@point-hub/papi 0.1.16 → 0.1.17

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/lib/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  // @bun
2
- var fN=Object.create;var{defineProperty:_K,getPrototypeOf:gN,getOwnPropertyNames:bN}=Object;var mN=Object.prototype.hasOwnProperty;var D6=(Z,J,$)=>{$=Z!=null?fN(gN(Z)):{};const X=J||!Z||!Z.__esModule?_K($,"default",{value:Z,enumerable:!0}):$;for(let Y of bN(Z))if(!mN.call(X,Y))_K(X,Y,{get:()=>Z[Y],enumerable:!0});return X};var z=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var O=(Z)=>{return import.meta.require(Z)};var G$=z((At,xK)=>{var l7=function(Z,{argv:J=process.argv.slice(2),permissive:$=!1,stopAtPositional:X=!1}={}){if(!Z)throw new g0("argument specification object is required","ARG_CONFIG_NO_SPEC");const Y={_:[]},Q={},K={};for(let G of Object.keys(Z)){if(!G)throw new g0("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(G[0]!=="-")throw new g0(`argument key must start with '-' but found: '${G}'`,"ARG_CONFIG_NONOPT_KEY");if(G.length===1)throw new g0(`argument key must have a name; singular '-' keys are not allowed: ${G}`,"ARG_CONFIG_NONAME_KEY");if(typeof Z[G]==="string"){Q[G]=Z[G];continue}let F=Z[G],W=!1;if(Array.isArray(F)&&F.length===1&&typeof F[0]==="function"){const[q]=F;F=(H,U,j=[])=>{return j.push(q(H,U,j[j.length-1])),j},W=q===Boolean||q[K$]===!0}else if(typeof F==="function")W=F===Boolean||F[K$]===!0;else throw new g0(`type missing or not a function or valid array type: ${G}`,"ARG_CONFIG_VAD_TYPE");if(G[1]!=="-"&&G.length>2)throw new g0(`short argument keys (with a single hyphen) must have only one character: ${G}`,"ARG_CONFIG_SHORTOPT_TOOLONG");K[G]=[F,W]}for(let G=0,F=J.length;G<F;G++){const W=J[G];if(X&&Y._.length>0){Y._=Y._.concat(J.slice(G));break}if(W==="--"){Y._=Y._.concat(J.slice(G+1));break}if(W.length>1&&W[0]==="-"){const q=W[1]==="-"||W.length===2?[W]:W.slice(1).split("").map((H)=>`-${H}`);for(let H=0;H<q.length;H++){const U=q[H],[j,V]=U[1]==="-"?U.split(/=(.*)/,2):[U,void 0];let L=j;while(L in Q)L=Q[L];if(!(L in K))if($){Y._.push(U);continue}else throw new g0(`unknown or unexpected option: ${j}`,"ARG_UNKNOWN_OPTION");const[D,N]=K[L];if(!N&&H+1<q.length)throw new g0(`option requires argument (but was followed by another short argument): ${j}`,"ARG_MISSING_REQUIRED_SHORTARG");if(N)Y[L]=D(!0,L,Y[L]);else if(V===void 0){if(J.length<G+2||J[G+1].length>1&&J[G+1][0]==="-"&&!(J[G+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(D===Number||typeof BigInt!=="undefined"&&D===BigInt))){const w=j===L?"":` (alias for ${L})`;throw new g0(`option requires argument: ${j}${w}`,"ARG_MISSING_REQUIRED_LONGARG")}Y[L]=D(J[G+1],L,Y[L]),++G}else Y[L]=D(V,L,Y[L])}}else Y._.push(W)}return Y},K$=Symbol("arg flag");class g0 extends Error{constructor(Z,J){super(Z);this.name="ArgError",this.code=J,Object.setPrototypeOf(this,g0.prototype)}}l7.flag=(Z)=>{return Z[K$]=!0,Z};l7.COUNT=l7.flag((Z,J,$)=>($||0)+1);l7.ArgError=g0;xK.exports=l7});var h9=z(($r,rK)=>{var W$=[],tK=0,Z0=(Z,J)=>{if(tK>=J)W$.push(Z)};Z0.WARN=1;Z0.INFO=2;Z0.DEBUG=3;Z0.reset=()=>{W$=[]};Z0.setDebugLevel=(Z)=>{tK=Z};Z0.warn=(Z)=>Z0(Z,Z0.WARN);Z0.info=(Z)=>Z0(Z,Z0.INFO);Z0.debug=(Z)=>Z0(Z,Z0.DEBUG);Z0.debugMessages=()=>W$;rK.exports=Z0});var eK=z((Xr,oK)=>{oK.exports=({onlyFirst:Z=!1}={})=>{const J=["[\\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(J,Z?void 0:"g")}});var JG=z((Yr,ZG)=>{var rN=eK();ZG.exports=(Z)=>typeof Z==="string"?Z.replace(rN(),""):Z});var XG=z((Qr,q$)=>{var $G=(Z)=>{if(Number.isNaN(Z))return!1;if(Z>=4352&&(Z<=4447||Z===9001||Z===9002||11904<=Z&&Z<=12871&&Z!==12351||12880<=Z&&Z<=19903||19968<=Z&&Z<=42182||43360<=Z&&Z<=43388||44032<=Z&&Z<=55203||63744<=Z&&Z<=64255||65040<=Z&&Z<=65049||65072<=Z&&Z<=65131||65281<=Z&&Z<=65376||65504<=Z&&Z<=65510||110592<=Z&&Z<=110593||127488<=Z&&Z<=127569||131072<=Z&&Z<=262141))return!0;return!1};q$.exports=$G;q$.exports.default=$G});var QG=z((Kr,YG)=>{YG.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 GG=z((Gr,H$)=>{var oN=JG(),eN=XG(),ZB=QG(),KG=(Z)=>{if(typeof Z!=="string"||Z.length===0)return 0;if(Z=oN(Z),Z.length===0)return 0;Z=Z.replace(ZB()," ");let J=0;for(let $=0;$<Z.length;$++){const X=Z.codePointAt($);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)$++;J+=eN(X)?2:1}return J};H$.exports=KG;H$.exports.default=KG});var z$=z((Fr,HG)=>{var O9=function(Z){return Z?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g},T8=function(Z){let J=O9();return(""+Z).replace(J,"").split("\n").reduce(function(Y,Q){return FG(Q)>Y?FG(Q):Y},0)},a7=function(Z,J){return Array(J+1).join(Z)},JB=function(Z,J,$,X){let Y=T8(Z);if(J+1>=Y){let Q=J-Y;switch(X){case"right":{Z=a7($,Q)+Z;break}case"center":{let K=Math.ceil(Q/2),G=Q-K;Z=a7($,G)+Z+a7($,K);break}default:{Z=Z+a7($,Q);break}}}return Z},i7=function(Z,J,$){J="\x1B["+J+"m",$="\x1B["+$+"m",d4[J]={set:Z,to:!0},d4[$]={set:Z,to:!1},d4[Z]={on:J,off:$}},WG=function(Z,J){let $=J[1]?parseInt(J[1].split(";")[0]):0;if($>=30&&$<=39||$>=90&&$<=97){Z.lastForegroundAdded=J[0];return}if($>=40&&$<=49||$>=100&&$<=107){Z.lastBackgroundAdded=J[0];return}if($===0){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))delete Z[Y];return}let X=d4[J[0]];if(X)Z[X.set]=X.to},$B=function(Z){let J=O9(!0),$=J.exec(Z),X={};while($!==null)WG(X,$),$=J.exec(Z);return X},qG=function(Z,J){let{lastBackgroundAdded:$,lastForegroundAdded:X}=Z;if(delete Z.lastBackgroundAdded,delete Z.lastForegroundAdded,Object.keys(Z).forEach(function(Y){if(Z[Y])J+=d4[Y].off}),$&&$!="\x1B[49m")J+="\x1B[49m";if(X&&X!="\x1B[39m")J+="\x1B[39m";return J},XB=function(Z,J){let{lastBackgroundAdded:$,lastForegroundAdded:X}=Z;if(delete Z.lastBackgroundAdded,delete Z.lastForegroundAdded,Object.keys(Z).forEach(function(Y){if(Z[Y])J=d4[Y].on+J}),$&&$!="\x1B[49m")J=$+J;if(X&&X!="\x1B[39m")J=X+J;return J},YB=function(Z,J){if(Z.length===T8(Z))return Z.substr(0,J);while(T8(Z)>J)Z=Z.slice(0,-1);return Z},QB=function(Z,J){let $=O9(!0),X=Z.split(O9()),Y=0,Q=0,K="",G,F={};while(Q<J){G=$.exec(Z);let W=X[Y];if(Y++,Q+T8(W)>J)W=YB(W,J-Q);if(K+=W,Q+=T8(W),Q<J){if(!G)break;K+=G[0],WG(F,G)}}return qG(F,K)},KB=function(Z,J,$){if($=$||"\u2026",T8(Z)<=J)return Z;return J-=T8($),QB(Z,J)+$},GB=function(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}},FB=function(Z,J){Z=Z||{},J=J||GB();let $=Object.assign({},J,Z);return $.chars=Object.assign({},J.chars,Z.chars),$.style=Object.assign({},J.style,Z.style),$},WB=function(Z,J){let $=[],X=J.split(/(\s+)/g),Y=[],Q=0,K;for(let G=0;G<X.length;G+=2){let F=X[G],W=Q+T8(F);if(Q>0&&K)W+=K.length;if(W>Z){if(Q!==0)$.push(Y.join(""));Y=[F],Q=T8(F)}else Y.push(K||"",F),Q=W;K=X[G+1]}if(Q)$.push(Y.join(""));return $},qB=function(Z,J){let $=[],X="";function Y(K,G){if(X.length&&G)X+=G;X+=K;while(X.length>Z)$.push(X.slice(0,Z)),X=X.slice(Z)}let Q=J.split(/(\s+)/g);for(let K=0;K<Q.length;K+=2)Y(Q[K],K&&Q[K-1]);if(X.length)$.push(X);return $},HB=function(Z,J,$=!0){let X=[];J=J.split("\n");const Y=$?WB:qB;for(let Q=0;Q<J.length;Q++)X.push.apply(X,Y(Z,J[Q]));return X},zB=function(Z){let J={},$=[];for(let X=0;X<Z.length;X++){let Y=XB(J,Z[X]);J=$B(Y);let Q=Object.assign({},J);$.push(qG(Q,Y))}return $},UB=function(Z,J){return["\x1B]","8",";",";",Z||J,"\x07",J,"\x1B]","8",";",";","\x07"].join("")},FG=GG(),d4={};i7("bold",1,22);i7("italics",3,23);i7("underline",4,24);i7("inverse",7,27);i7("strikethrough",9,29);HG.exports={strlen:T8,repeat:a7,pad:JB,truncate:KB,mergeOptions:FB,wordWrap:HB,colorizeLines:zB,hyperlink:UB}});var MG=z((Wr,VG)=>{var UG={};VG.exports=UG;var zG={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(zG).forEach(function(Z){var J=zG[Z],$=UG[Z]=[];$.open="\x1B["+J[0]+"m",$.close="\x1B["+J[1]+"m"})});var AG=z((qr,jG)=>{jG.exports=function(Z,J){J=J||process.argv;var $=J.indexOf("--"),X=/^-{1,2}/.test(Z)?"":"--",Y=J.indexOf(X+Z);return Y!==-1&&($===-1?!0:Y<$)}});var wG=z((Hr,LG)=>{var MB=function(Z){if(Z===0)return!1;return{level:Z,hasBasic:!0,has256:Z>=2,has16m:Z>=3}},jB=function(Z){if(p4===!1)return 0;if(Y8("color=16m")||Y8("color=full")||Y8("color=truecolor"))return 3;if(Y8("color=256"))return 2;if(Z&&!Z.isTTY&&p4!==!0)return 0;var J=p4?1:0;if(process.platform==="win32"){var $=VB.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number($[0])>=10&&Number($[2])>=10586)return Number($[2])>=14931?3:2;return 1}if("CI"in G0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in G0})||G0.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in G0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(G0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in G0){var X=parseInt((G0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(G0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(G0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(G0.TERM))return 1;if("COLORTERM"in G0)return 1;if(G0.TERM==="dumb")return J;return J},U$=function(Z){var J=jB(Z);return MB(J)},VB=import.meta.require("os"),Y8=AG(),G0=process.env,p4=void 0;if(Y8("no-color")||Y8("no-colors")||Y8("color=false"))p4=!1;else if(Y8("color")||Y8("colors")||Y8("color=true")||Y8("color=always"))p4=!0;if("FORCE_COLOR"in G0)p4=G0.FORCE_COLOR.length===0||parseInt(G0.FORCE_COLOR,10)!==0;LG.exports={supportsColor:U$,stdout:U$(process.stdout),stderr:U$(process.stderr)}});var PG=z((zr,RG)=>{RG.exports=function Z(J,$){var X="";J=J||"Run the trap, drop the bass",J=J.split("");var Y={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return J.forEach(function(Q){Q=Q.toLowerCase();var K=Y[Q]||[" "],G=Math.floor(Math.random()*K.length);if(typeof Y[Q]!=="undefined")X+=Y[Q][G];else X+=Q}),X}});var TG=z((Ur,DG)=>{DG.exports=function Z(J,$){J=J||" he is here ";var X={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},Y=[].concat(X.up,X.down,X.mid);function Q(F){var W=Math.floor(Math.random()*F);return W}function K(F){var W=!1;return Y.filter(function(q){W=q===F}),W}function G(F,W){var q="",H,U;W=W||{},W.up=typeof W.up!=="undefined"?W.up:!0,W.mid=typeof W.mid!=="undefined"?W.mid:!0,W.down=typeof W.down!=="undefined"?W.down:!0,W.size=typeof W.size!=="undefined"?W.size:"maxi",F=F.split("");for(U in F){if(K(U))continue;switch(q=q+F[U],H={up:0,down:0,mid:0},W.size){case"mini":H.up=Q(8),H.mid=Q(2),H.down=Q(8);break;case"maxi":H.up=Q(16)+3,H.mid=Q(4)+1,H.down=Q(64)+3;break;default:H.up=Q(8)+1,H.mid=Q(6)/2,H.down=Q(8)+1;break}var j=["up","mid","down"];for(var V in j){var L=j[V];for(var D=0;D<=H[L];D++)if(W[L])q=q+X[L][Q(X[L].length)]}}return q}return G(J,$)}});var EG=z((Vr,IG)=>{IG.exports=function(Z){return function(J,$,X){if(J===" ")return J;switch($%3){case 0:return Z.red(J);case 1:return Z.white(J);case 2:return Z.blue(J)}}}});var BG=z((Mr,NG)=>{NG.exports=function(Z){return function(J,$,X){return $%2===0?J:Z.inverse(J)}}});var hG=z((jr,CG)=>{CG.exports=function(Z){var J=["red","yellow","green","blue","magenta"];return function($,X,Y){if($===" ")return $;else return Z[J[X++%J.length]]($)}}});var SG=z((Ar,OG)=>{OG.exports=function(Z){var J=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function($,X,Y){return $===" "?$:Z[J[Math.round(Math.random()*(J.length-2))]]($)}}});var fG=z((wr,vG)=>{var _G=function(Z){var J=function $(){return DB.apply($,arguments)};return J._styles=Z,J.__proto__=PB,J},DB=function(){var Z=Array.prototype.slice.call(arguments),J=Z.map(function(K){if(K!=null&&K.constructor===String)return K;else return AB.inspect(K)}).join(" ");if(!l.enabled||!J)return J;var $=J.indexOf("\n")!=-1,X=this._styles,Y=X.length;while(Y--){var Q=G4[X[Y]];if(J=Q.open+J.replace(Q.closeRe,Q.open)+Q.close,$)J=J.replace(LB,function(K){return Q.close+K+Q.open})}return J},TB=function(){var Z={};return Object.keys(xG).forEach(function(J){Z[J]={get:function(){return _G([J])}}}),Z},l={};vG.exports=l;l.themes={};var AB=import.meta.require("util"),G4=l.styles=MG(),yG=Object.defineProperties,LB=new RegExp(/[\r\n]+/g);l.supportsColor=wG().supportsColor;if(typeof l.enabled==="undefined")l.enabled=l.supportsColor()!==!1;l.enable=function(){l.enabled=!0};l.disable=function(){l.enabled=!1};l.stripColors=l.strip=function(Z){return(""+Z).replace(/\x1B\[\d+m/g,"")};var Lr=l.stylize=function Z(J,$){if(!l.enabled)return J+"";var X=G4[$];if(!X&&$ in l)return l[$](J);return X.open+J+X.close},wB=/[|\\{}()[\]^$+*?.]/g,RB=function(Z){if(typeof Z!=="string")throw new TypeError("Expected a string");return Z.replace(wB,"\\$&")},xG=function(){var Z={};return G4.grey=G4.gray,Object.keys(G4).forEach(function(J){G4[J].closeRe=new RegExp(RB(G4[J].close),"g"),Z[J]={get:function(){return _G(this._styles.concat(J))}}}),Z}(),PB=yG(function Z(){},xG);l.setTheme=function(Z){if(typeof Z==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller\'s) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + \'/../themes/generic-logging.js\'); The new syntax looks like colors.setTheme(require(__dirname + \'/../themes/generic-logging.js\'));");return}for(var J in Z)(function($){l[$]=function(X){if(typeof Z[$]==="object"){var Y=X;for(var Q in Z[$])Y=l[Z[$][Q]](Y);return Y}return l[Z[$]](X)}})(J)};var IB=function Z(J,$){var X=$.split("");return X=X.map(J),X.join("")};l.trap=PG();l.zalgo=TG();l.maps={};l.maps.america=EG()(l);l.maps.zebra=BG()(l);l.maps.rainbow=hG()(l);l.maps.random=SG()(l);for(kG in l.maps)(function(Z){l[Z]=function(J){return IB(l.maps[Z],J)}})(kG);var kG;yG(l,TB())});var bG=z((Rr,gG)=>{var EB=fG();gG.exports=EB});var pG=z((Pr,y9)=>{var mG=function(...Z){return Z.filter((J)=>J!==void 0&&J!==null).shift()},V$=function(Z,J,$,X){let Y=$.split("-");if(Y.length>1)Y[1]=Y[1].charAt(0).toUpperCase()+Y[1].substr(1),Y=Y.join(""),X[Y]=mG(Z[Y],Z[$],J[Y],J[$]);else X[$]=mG(Z[$],J[$])},BB=function(Z,J,$){let X=Z[J];for(let Y=1;Y<$;Y++)X+=1+Z[J+Y];return X},uG=function(Z,J){return Z+J+1},{info:NB,debug:dG}=h9(),N0=z$();class s7{constructor(Z){this.setOptions(Z),this.x=null,this.y=null}setOptions(Z){if(["boolean","number","string"].indexOf(typeof Z)!==-1)Z={content:""+Z};Z=Z||{},this.options=Z;let J=Z.content;if(["boolean","number","string"].indexOf(typeof J)!==-1)this.content=String(J);else if(!J)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof J);if(this.colSpan=Z.colSpan||1,this.rowSpan=Z.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(Z,J){this.cells=J;let $=this.options.chars||{},X=Z.chars,Y=this.chars={};CB.forEach(function(G){V$($,X,G,Y)}),this.truncate=this.options.truncate||Z.truncate;let Q=this.options.style=this.options.style||{},K=Z.style;V$(Q,K,"padding-left",this),V$(Q,K,"padding-right",this),this.head=Q.head||K.head,this.border=Q.border||K.border,this.fixedWidth=Z.colWidths[this.x],this.lines=this.computeLines(Z),this.desiredWidth=N0.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(Z){const J=Z.wordWrap||Z.textWrap,{wordWrap:$=J}=this.options;if(this.fixedWidth&&$){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let Q=1;while(Q<this.colSpan)this.fixedWidth+=Z.colWidths[this.x+Q],Q++}const{wrapOnWordBoundary:X=!0}=Z,{wrapOnWordBoundary:Y=X}=this.options;return this.wrapLines(N0.wordWrap(this.fixedWidth,this.content,Y))}return this.wrapLines(this.content.split("\n"))}wrapLines(Z){const J=N0.colorizeLines(Z);if(this.href)return J.map(($)=>N0.hyperlink(this.href,$));return J}init(Z){let J=this.x,$=this.y;this.widths=Z.colWidths.slice(J,J+this.colSpan),this.heights=Z.rowHeights.slice($,$+this.rowSpan),this.width=this.widths.reduce(uG,-1),this.height=this.heights.reduce(uG,-1),this.hAlign=this.options.hAlign||Z.colAligns[J],this.vAlign=this.options.vAlign||Z.rowAligns[$],this.drawRight=J+this.colSpan==Z.colWidths.length}draw(Z,J){if(Z=="top")return this.drawTop(this.drawRight);if(Z=="bottom")return this.drawBottom(this.drawRight);let $=N0.truncate(this.content,10,this.truncate);if(!Z)NB(`${this.y}-${this.x}: ${this.rowSpan-Z}x${this.colSpan} Cell ${$}`);let X=Math.max(this.height-this.lines.length,0),Y;switch(this.vAlign){case"center":Y=Math.ceil(X/2);break;case"bottom":Y=X;break;default:Y=0}if(Z<Y||Z>=Y+this.lines.length)return this.drawEmpty(this.drawRight,J);let Q=this.lines.length>this.height&&Z+1>=this.height;return this.drawLine(Z-Y,this.drawRight,Q,J)}drawTop(Z){let J=[];if(this.cells)this.widths.forEach(function($,X){J.push(this._topLeftChar(X)),J.push(N0.repeat(this.chars[this.y==0?"top":"mid"],$))},this);else J.push(this._topLeftChar(0)),J.push(N0.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(Z)J.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",J.join(""))}_topLeftChar(Z){let J=this.x+Z,$;if(this.y==0)$=J==0?"topLeft":Z==0?"topMid":"top";else if(J==0)$="leftMid";else if($=Z==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][J]instanceof s7.ColSpanCell)$=Z==0?"topMid":"mid";if(Z==0){let Y=1;while(this.cells[this.y][J-Y]instanceof s7.ColSpanCell)Y++;if(this.cells[this.y][J-Y]instanceof s7.RowSpanCell)$="leftMid"}}return this.chars[$]}wrapWithStyleColors(Z,J){if(this[Z]&&this[Z].length)try{let $=bG();for(let X=this[Z].length-1;X>=0;X--)$=$[this[Z][X]];return $(J)}catch($){return J}else return J}drawLine(Z,J,$,X){let Y=this.chars[this.x==0?"left":"middle"];if(this.x&&X&&this.cells){let H=this.cells[this.y+X][this.x-1];while(H instanceof S9)H=this.cells[H.y][H.x-1];if(!(H instanceof k9))Y=this.chars.rightMid}let Q=N0.repeat(" ",this.paddingLeft),K=J?this.chars.right:"",G=N0.repeat(" ",this.paddingRight),F=this.lines[Z],W=this.width-(this.paddingLeft+this.paddingRight);if($)F+=this.truncate||"\u2026";let q=N0.truncate(F,W,this.truncate);return q=N0.pad(q,W," ",this.hAlign),q=Q+q+G,this.stylizeLine(Y,q,K)}stylizeLine(Z,J,$){if(Z=this.wrapWithStyleColors("border",Z),$=this.wrapWithStyleColors("border",$),this.y===0)J=this.wrapWithStyleColors("head",J);return Z+J+$}drawBottom(Z){let J=this.chars[this.x==0?"bottomLeft":"bottomMid"],$=N0.repeat(this.chars.bottom,this.width),X=Z?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",J+$+X)}drawEmpty(Z,J){let $=this.chars[this.x==0?"left":"middle"];if(this.x&&J&&this.cells){let Q=this.cells[this.y+J][this.x-1];while(Q instanceof S9)Q=this.cells[Q.y][Q.x-1];if(!(Q instanceof k9))$=this.chars.rightMid}let X=Z?this.chars.right:"",Y=N0.repeat(" ",this.width);return this.stylizeLine($,Y,X)}}class S9{constructor(){}draw(Z){if(typeof Z==="number")dG(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class k9{constructor(Z){this.originalCell=Z}init(Z){let J=this.y,$=this.originalCell.y;this.cellOffset=J-$,this.offset=BB(Z.rowHeights,$,this.cellOffset)}draw(Z){if(Z=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(Z=="bottom")return this.originalCell.draw("bottom");return dG(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+Z)}mergeTableOptions(){}}var CB=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];y9.exports=s7;y9.exports.ColSpanCell=S9;y9.exports.RowSpanCell=k9});var aG=z((Dr,lG)=>{var cG=function(Z,J,$,X){return function(Y,Q){let K=[],G=[],F={};Q.forEach(function(W){W.forEach(function(q){if((q[Z]||1)>1)G.push(q);else K[q[$]]=Math.max(K[q[$]]||0,q[J]||0,X)})}),Y.forEach(function(W,q){if(typeof W==="number")K[q]=W});for(let W=G.length-1;W>=0;W--){let q=G[W],H=q[Z],U=q[$],j=K[U],V=typeof Y[U]==="number"?0:1;if(typeof j==="number"){for(let L=1;L<H;L++)if(j+=1+K[U+L],typeof Y[U+L]!=="number")V++}else if(j=J==="desiredWidth"?q.desiredWidth-1:1,!F[U]||F[U]<j)F[U]=j;if(q[J]>j){let L=0;while(V>0&&q[J]>j){if(typeof Y[U+L]!=="number"){let D=Math.round((q[J]-j)/V);j+=D,K[U+L]+=D,V--}L++}}}Object.assign(Y,K,F);for(let W=0;W<Y.length;W++)Y[W]=Math.max(X,Y[W]||0)}},{warn:hB,debug:OB}=h9(),M$=pG(),{ColSpanCell:SB,RowSpanCell:kB}=M$;(function(){function Z(j,V){if(j[V]>0)return Z(j,V+1);return V}function J(j){let V={};j.forEach(function(L,D){let N=0;L.forEach(function(w){w.y=D,w.x=D?Z(V,N):N;const T=w.rowSpan||1,f=w.colSpan||1;if(T>1)for(let N1=0;N1<f;N1++)V[w.x+N1]=T;N=w.x+f}),Object.keys(V).forEach((w)=>{if(V[w]--,V[w]<1)delete V[w]})})}function $(j){let V=0;return j.forEach(function(L){L.forEach(function(D){V=Math.max(V,D.x+(D.colSpan||1))})}),V}function X(j){return j.length}function Y(j,V){let L=j.y,D=j.y-1+(j.rowSpan||1),N=V.y,w=V.y-1+(V.rowSpan||1),T=!(L>w||N>D),f=j.x,N1=j.x-1+(j.colSpan||1),c8=V.x,k=V.x-1+(V.colSpan||1),B=!(f>k||c8>N1);return T&&B}function Q(j,V,L){let D=Math.min(j.length-1,L),N={x:V,y:L};for(let w=0;w<=D;w++){let T=j[w];for(let f=0;f<T.length;f++)if(Y(N,T[f]))return!0}return!1}function K(j,V,L,D){for(let N=L;N<D;N++)if(Q(j,N,V))return!1;return!0}function G(j){j.forEach(function(V,L){V.forEach(function(D){for(let N=1;N<D.rowSpan;N++){let w=new kB(D);w.x=D.x,w.y=D.y+N,w.colSpan=D.colSpan,W(w,j[L+N])}})})}function F(j){for(let V=j.length-1;V>=0;V--){let L=j[V];for(let D=0;D<L.length;D++){let N=L[D];for(let w=1;w<N.colSpan;w++){let T=new SB;T.x=N.x+w,T.y=N.y,L.splice(D+1,0,T)}}}}function W(j,V){let L=0;while(L<V.length&&V[L].x<j.x)L++;V.splice(L,0,j)}function q(j){let V=X(j),L=$(j);OB(`Max rows: ${V}; Max cols: ${L}`);for(let D=0;D<V;D++)for(let N=0;N<L;N++)if(!Q(j,N,D)){let w={x:N,y:D,colSpan:1,rowSpan:1};N++;while(N<L&&!Q(j,N,D))w.colSpan++,N++;let T=D+1;while(T<V&&K(j,T,w.x,w.x+w.colSpan))w.rowSpan++,T++;let f=new M$(w);f.x=w.x,f.y=w.y,hB(`Missing cell at ${f.y}-${f.x}.`),W(f,j[D])}}function H(j){return j.map(function(V){if(!Array.isArray(V)){let L=Object.keys(V)[0];if(V=V[L],Array.isArray(V))V=V.slice(),V.unshift(L);else V=[L,V]}return V.map(function(L){return new M$(L)})})}function U(j){let V=H(j);return J(V),q(V),G(V),F(V),V}lG.exports={makeTableLayout:U,layoutTable:J,addRowSpanCells:G,maxWidth:$,fillInTable:q,computeWidths:cG("colSpan","desiredWidth","x",1),computeHeights:cG("rowSpan","desiredHeight","y",1)}})()});var sG=z((Tr,iG)=>{var A$=function(Z,J,$){let X=[];Z.forEach(function(Q){X.push(Q.draw(J))});let Y=X.join("");if(Y.length)$.push(Y)},l8=h9(),yB=z$(),j$=aG();class L$ extends Array{constructor(Z){super();const J=yB.mergeOptions(Z);if(Object.defineProperty(this,"options",{value:J,enumerable:J.debug}),J.debug){switch(typeof J.debug){case"boolean":l8.setDebugLevel(l8.WARN);break;case"number":l8.setDebugLevel(J.debug);break;case"string":l8.setDebugLevel(parseInt(J.debug,10));break;default:l8.setDebugLevel(l8.WARN),l8.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof J.debug}`)}Object.defineProperty(this,"messages",{get(){return l8.debugMessages()}})}}toString(){let Z=this,J=this.options.head&&this.options.head.length;if(J){if(Z=[this.options.head],this.length)Z.push.apply(Z,this)}else this.options.style.head=[];let $=j$.makeTableLayout(Z);$.forEach(function(Y){Y.forEach(function(Q){Q.mergeTableOptions(this.options,$)},this)},this),j$.computeWidths(this.options.colWidths,$),j$.computeHeights(this.options.rowHeights,$),$.forEach(function(Y){Y.forEach(function(Q){Q.init(this.options)},this)},this);let X=[];for(let Y=0;Y<$.length;Y++){let Q=$[Y],K=this.options.rowHeights[Y];if(Y===0||!this.options.style.compact||Y==1&&J)A$(Q,"top",X);for(let G=0;G<K;G++)A$(Q,G,X);if(Y+1==$.length)A$(Q,"bottom",X)}return X.join("\n")}get width(){return this.toString().split("\n")[0].length}}L$.reset=()=>l8.reset();iG.exports=L$});var w1=z((Or,rG)=>{var tG=function(Z,J){let $=0,X,Y="",Q="";for(;$<Z.length;$++)if(X=Z[$],Y+=X.open,Q+=X.close,J.includes(X.close))J=J.replace(X.rgx,X.close+X.open);return Y+J+Q},fB=function(Z,J){let $={has:Z,keys:J};return $.reset=Q1.reset.bind($),$.bold=Q1.bold.bind($),$.dim=Q1.dim.bind($),$.italic=Q1.italic.bind($),$.underline=Q1.underline.bind($),$.inverse=Q1.inverse.bind($),$.hidden=Q1.hidden.bind($),$.strikethrough=Q1.strikethrough.bind($),$.black=Q1.black.bind($),$.red=Q1.red.bind($),$.green=Q1.green.bind($),$.yellow=Q1.yellow.bind($),$.blue=Q1.blue.bind($),$.magenta=Q1.magenta.bind($),$.cyan=Q1.cyan.bind($),$.white=Q1.white.bind($),$.gray=Q1.gray.bind($),$.grey=Q1.grey.bind($),$.bgBlack=Q1.bgBlack.bind($),$.bgRed=Q1.bgRed.bind($),$.bgGreen=Q1.bgGreen.bind($),$.bgYellow=Q1.bgYellow.bind($),$.bgBlue=Q1.bgBlue.bind($),$.bgMagenta=Q1.bgMagenta.bind($),$.bgCyan=Q1.bgCyan.bind($),$.bgWhite=Q1.bgWhite.bind($),$},z1=function(Z,J){let $={open:`\x1B[${Z}m`,close:`\x1B[${J}m`,rgx:new RegExp(`\\x1b\\[${J}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return this.has.includes(Z)||(this.has.push(Z),this.keys.push($)),X===void 0?this:Q1.enabled?tG(this.keys,X+""):X+"";return X===void 0?fB([Z],[$]):Q1.enabled?tG([$],X+""):X+""}},{FORCE_COLOR:_B,NODE_DISABLE_COLORS:xB,TERM:vB}=process.env,Q1={enabled:!xB&&vB!=="dumb"&&_B!=="0",reset:z1(0,0),bold:z1(1,22),dim:z1(2,22),italic:z1(3,23),underline:z1(4,24),inverse:z1(7,27),hidden:z1(8,28),strikethrough:z1(9,29),black:z1(30,39),red:z1(31,39),green:z1(32,39),yellow:z1(33,39),blue:z1(34,39),magenta:z1(35,39),cyan:z1(36,39),white:z1(37,39),gray:z1(90,39),grey:z1(90,39),bgBlack:z1(40,49),bgRed:z1(41,49),bgGreen:z1(42,49),bgYellow:z1(43,49),bgBlue:z1(44,49),bgMagenta:z1(45,49),bgCyan:z1(46,49),bgWhite:z1(47,49)};rG.exports=Q1});var eG=z((Sr,oG)=>{oG.exports=(Z,J)=>{if(Z.meta&&Z.name!=="escape")return;if(Z.ctrl){if(Z.name==="a")return"first";if(Z.name==="c")return"abort";if(Z.name==="d")return"abort";if(Z.name==="e")return"last";if(Z.name==="g")return"reset"}if(J){if(Z.name==="j")return"down";if(Z.name==="k")return"up"}if(Z.name==="return")return"submit";if(Z.name==="enter")return"submit";if(Z.name==="backspace")return"delete";if(Z.name==="delete")return"deleteForward";if(Z.name==="abort")return"abort";if(Z.name==="escape")return"exit";if(Z.name==="tab")return"next";if(Z.name==="pagedown")return"nextPage";if(Z.name==="pageup")return"prevPage";if(Z.name==="home")return"home";if(Z.name==="end")return"end";if(Z.name==="up")return"up";if(Z.name==="down")return"down";if(Z.name==="right")return"right";if(Z.name==="left")return"left";return!1}});var x9=z((kr,ZF)=>{ZF.exports=(Z)=>{const J=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(J,"g");return typeof Z==="string"?Z.replace($,""):Z}});var P1=z((yr,JF)=>{var R1=`${"\x1B"}[`,P$={to(Z,J){if(!J)return`${R1}${Z+1}G`;return`${R1}${J+1};${Z+1}H`},move(Z,J){let $="";if(Z<0)$+=`${R1}${-Z}D`;else if(Z>0)$+=`${R1}${Z}C`;if(J<0)$+=`${R1}${-J}A`;else if(J>0)$+=`${R1}${J}B`;return $},up:(Z=1)=>`${R1}${Z}A`,down:(Z=1)=>`${R1}${Z}B`,forward:(Z=1)=>`${R1}${Z}C`,backward:(Z=1)=>`${R1}${Z}D`,nextLine:(Z=1)=>`${R1}E`.repeat(Z),prevLine:(Z=1)=>`${R1}F`.repeat(Z),left:`${R1}G`,hide:`${R1}?25l`,show:`${R1}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},gB={up:(Z=1)=>`${R1}S`.repeat(Z),down:(Z=1)=>`${R1}T`.repeat(Z)},bB={screen:`${R1}2J`,up:(Z=1)=>`${R1}1J`.repeat(Z),down:(Z=1)=>`${R1}J`.repeat(Z),line:`${R1}2K`,lineEnd:`${R1}K`,lineStart:`${R1}1K`,lines(Z){let J="";for(let $=0;$<Z;$++)J+=this.line+($<Z-1?P$.up():"");if(Z)J+=P$.left;return J}};JF.exports={cursor:P$,scroll:gB,erase:bB,beep:"\x07"}});var KF=z((_r,QF)=>{var mB=function(Z,J){var $=typeof Symbol!=="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(!$){if(Array.isArray(Z)||($=uB(Z))||J&&Z&&typeof Z.length==="number"){if($)Z=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=Z.length)return{done:!0};return{done:!1,value:Z[X++]}},e:function F(W){throw W},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function F(){$=$.call(Z)},n:function F(){var W=$.next();return Q=W.done,W},e:function F(W){K=!0,G=W},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},uB=function(Z,J){if(!Z)return;if(typeof Z==="string")return $F(Z,J);var $=Object.prototype.toString.call(Z).slice(8,-1);if($==="Object"&&Z.constructor)$=Z.constructor.name;if($==="Map"||$==="Set")return Array.from(Z);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return $F(Z,J)},$F=function(Z,J){if(J==null||J>Z.length)J=Z.length;for(var $=0,X=new Array(J);$<J;$++)X[$]=Z[$];return X},dB=x9(),YF=P1(),XF=YF.erase,pB=YF.cursor,cB=(Z)=>[...dB(Z)].length;QF.exports=function(Z,J){if(!J)return XF.line+pB.to(0);let $=0;const X=Z.split(/\r?\n/);var Y=mB(X),Q;try{for(Y.s();!(Q=Y.n()).done;){let K=Q.value;$+=1+Math.floor(Math.max(cB(K)-1,0)/J)}}catch(K){Y.e(K)}finally{Y.f()}return XF.lines($)}});var D$=z((xr,GF)=>{var n7={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},lB={arrowUp:n7.arrowUp,arrowDown:n7.arrowDown,arrowLeft:n7.arrowLeft,arrowRight:n7.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},aB=process.platform==="win32"?lB:n7;GF.exports=aB});var WF=z((vr,FF)=>{var c4=w1(),F4=D$(),T$=Object.freeze({password:{scale:1,render:(Z)=>"*".repeat(Z.length)},emoji:{scale:2,render:(Z)=>"\uD83D\uDE03".repeat(Z.length)},invisible:{scale:0,render:(Z)=>""},default:{scale:1,render:(Z)=>`${Z}`}}),iB=(Z)=>T$[Z]||T$.default,t7=Object.freeze({aborted:c4.red(F4.cross),done:c4.green(F4.tick),exited:c4.yellow(F4.cross),default:c4.cyan("?")}),sB=(Z,J,$)=>J?t7.aborted:$?t7.exited:Z?t7.done:t7.default,nB=(Z)=>c4.gray(Z?F4.ellipsis:F4.pointerSmall),tB=(Z,J)=>c4.gray(Z?J?F4.pointerSmall:"+":F4.line);FF.exports={styles:T$,render:iB,symbols:t7,symbol:sB,delimiter:nB,item:tB}});var HF=z((fr,qF)=>{var rB=x9();qF.exports=function(Z,J){let $=String(rB(Z)||"").split(/\r?\n/);if(!J)return $.length;return $.map((X)=>Math.ceil(X.length/J)).reduce((X,Y)=>X+Y)}});var UF=z((gr,zF)=>{zF.exports=(Z,J={})=>{const $=Number.isSafeInteger(parseInt(J.margin))?new Array(parseInt(J.margin)).fill(" ").join(""):J.margin||"",X=J.width;return(Z||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var MF=z((br,VF)=>{VF.exports=(Z,J,$)=>{$=$||J;let X=Math.min(J-$,Z-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,J);return{startIndex:X,endIndex:Y}}});var K8=z((mr,jF)=>{jF.exports={action:eG(),clear:KF(),style:WF(),strip:x9(),figures:D$(),lines:HF(),wrap:UF(),entriesToDisplay:MF()}});var i8=z((ur,RF)=>{var AF=import.meta.require("readline"),oB=K8(),eB=oB.action,ZC=import.meta.require("events"),LF=P1(),JC=LF.beep,$C=LF.cursor,XC=w1();class wF extends ZC{constructor(Z={}){super();this.firstRender=!0,this.in=Z.stdin||process.stdin,this.out=Z.stdout||process.stdout,this.onRender=(Z.onRender||(()=>{return})).bind(this);const J=AF.createInterface({input:this.in,escapeCodeTimeout:50});if(AF.emitKeypressEvents(this.in,J),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=eB(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write($C.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);J.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(JC)}render(){if(this.onRender(XC),this.firstRender)this.firstRender=!1}}RF.exports=wF});var NF=z((dr,EF)=>{var PF=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),F=G.value}catch(W){$(W);return}if(G.done)J(F);else Promise.resolve(F).then(X,Y)},DF=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(F){PF(Q,X,Y,K,G,"next",F)}function G(F){PF(Q,X,Y,K,G,"throw",F)}K(void 0)})}},v9=w1(),YC=i8(),TF=P1(),QC=TF.erase,r7=TF.cursor,f9=K8(),I$=f9.style,E$=f9.clear,KC=f9.lines,GC=f9.figures;class IF extends YC{constructor(Z={}){super(Z);this.transform=I$.render(Z.style),this.scale=this.transform.scale,this.msg=Z.message,this.initial=Z.initial||"",this.validator=Z.validate||(()=>!0),this.value="",this.errorMsg=Z.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=E$("",this.out.columns),this.render()}set value(Z){if(!Z&&this.initial)this.placeholder=!0,this.rendered=v9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(Z);this._value=Z,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var Z=this;return DF(function*(){let J=yield Z.validator(Z.value);if(typeof J==="string")Z.errorMsg=J,J=!1;Z.error=!J})()}submit(){var Z=this;return DF(function*(){if(Z.value=Z.value||Z.initial,Z.cursorOffset=0,Z.cursor=Z.rendered.length,yield Z.validate(),Z.error){Z.red=!0,Z.fire(),Z.render();return}Z.done=!0,Z.aborted=!1,Z.fire(),Z.render(),Z.out.write("\n"),Z.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(Z){if(this.placeholder)return;this.cursor=this.cursor+Z,this.cursorOffset+=Z}_(Z,J){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${Z}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let Z=this.value.slice(0,this.cursor-1),J=this.value.slice(this.cursor);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor+1);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(r7.down(KC(this.outputError,this.out.columns)-1)+E$(this.outputError,this.out.columns));this.out.write(E$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[I$.symbol(this.done,this.aborted),v9.bold(this.msg),I$.delimiter(this.done),this.red?v9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":GC.pointerSmall} ${v9.red().italic(J)}`,"");this.out.write(QC.line+r7.to(0)+this.outputText+r7.save+this.outputError+r7.restore+r7.move(this.cursorOffset,0))}}EF.exports=IF});var SF=z((pr,OF)=>{var s8=w1(),FC=i8(),o7=K8(),BF=o7.style,CF=o7.clear,g9=o7.figures,WC=o7.wrap,qC=o7.entriesToDisplay,HC=P1(),zC=HC.cursor;class hF extends FC{constructor(Z={}){super(Z);this.msg=Z.message,this.hint=Z.hint||"- Use arrow-keys. Return to submit.",this.warn=Z.warn||"- This option is disabled",this.cursor=Z.initial||0,this.choices=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),value:J&&(J.value===void 0?$:J.value),description:J&&J.description,selected:J&&J.selected,disabled:J&&J.disabled}}),this.optionsPerPage=Z.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=CF("",this.out.columns),this.render()}moveCursor(Z){this.cursor=Z,this.value=this.choices[Z].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(Z,J){if(Z===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(zC.hide);else this.out.write(CF(this.outputText,this.out.columns));super.render();let Z=qC(this.cursor,this.choices.length,this.optionsPerPage),J=Z.startIndex,$=Z.endIndex;if(this.outputText=[BF.symbol(this.done,this.aborted),s8.bold(this.msg),BF.delimiter(!1),this.done?this.selection.title:this.selection.disabled?s8.yellow(this.warn):s8.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let X=J;X<$;X++){let Y,Q,K="",G=this.choices[X];if(X===J&&J>0)Q=g9.arrowUp;else if(X===$-1&&$<this.choices.length)Q=g9.arrowDown;else Q=" ";if(G.disabled)Y=this.cursor===X?s8.gray().underline(G.title):s8.strikethrough().gray(G.title),Q=(this.cursor===X?s8.bold().gray(g9.pointer)+" ":" ")+Q;else if(Y=this.cursor===X?s8.cyan().underline(G.title):G.title,Q=(this.cursor===X?s8.cyan(g9.pointer)+" ":" ")+Q,G.description&&this.cursor===X){if(K=` - ${G.description}`,Q.length+Y.length+K.length>=this.out.columns||G.description.split(/\r?\n/).length>1)K="\n"+WC(G.description,{margin:3,width:this.out.columns})}this.outputText+=`${Q} ${Y}${s8.gray(K)}\n`}}this.out.write(this.outputText)}}OF.exports=hF});var gF=z((cr,fF)=>{var b9=w1(),UC=i8(),_F=K8(),kF=_F.style,VC=_F.clear,xF=P1(),yF=xF.cursor,MC=xF.erase;class vF extends UC{constructor(Z={}){super(Z);this.msg=Z.message,this.value=!!Z.initial,this.active=Z.active||"on",this.inactive=Z.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(Z,J){if(Z===" ")this.value=!this.value;else if(Z==="1")this.value=!0;else if(Z==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(yF.hide);else this.out.write(VC(this.outputText,this.out.columns));super.render(),this.outputText=[kF.symbol(this.done,this.aborted),b9.bold(this.msg),kF.delimiter(this.done),this.value?this.inactive:b9.cyan().underline(this.inactive),b9.gray("/"),this.value?b9.cyan().underline(this.active):this.active].join(" "),this.out.write(MC.line+yF.to(0)+this.outputText)}}fF.exports=vF});var I8=z((lr,bF)=>{class m9{constructor({token:Z,date:J,parts:$,locales:X}){this.token=Z,this.date=J||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const Z=this.parts.indexOf(this);return this.parts.find((J,$)=>$>Z&&J instanceof m9)}setTo(Z){}prev(){let Z=[].concat(this.parts).reverse();const J=Z.indexOf(this);return Z.find(($,X)=>X>J&&$ instanceof m9)}toString(){return String(this.date)}}bF.exports=m9});var dF=z((ar,uF)=>{var jC=I8();class mF extends jC{constructor(Z={}){super(Z)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let Z=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?Z.toUpperCase():Z}}uF.exports=mF});var lF=z((ir,cF)=>{var AC=I8(),LC=(Z)=>{return Z=Z%10,Z===1?"st":Z===2?"nd":Z===3?"rd":"th"};class pF extends AC{constructor(Z={}){super(Z)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(Z){this.date.setDate(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getDate(),J=this.date.getDay();return this.token==="DD"?String(Z).padStart(2,"0"):this.token==="Do"?Z+LC(Z):this.token==="d"?J+1:this.token==="ddd"?this.locales.weekdaysShort[J]:this.token==="dddd"?this.locales.weekdays[J]:Z}}cF.exports=pF});var sF=z((sr,iF)=>{var wC=I8();class aF extends wC{constructor(Z={}){super(Z)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(Z){this.date.setHours(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getHours();if(/h/.test(this.token))Z=Z%12||12;return this.token.length>1?String(Z).padStart(2,"0"):Z}}iF.exports=aF});var rF=z((nr,tF)=>{var RC=I8();class nF extends RC{constructor(Z={}){super(Z)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(Z){this.date.setMilliseconds(parseInt(Z.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}tF.exports=nF});var ZW=z((tr,eF)=>{var PC=I8();class oF extends PC{constructor(Z={}){super(Z)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(Z){this.date.setMinutes(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getMinutes();return this.token.length>1?String(Z).padStart(2,"0"):Z}}eF.exports=oF});var XW=z((rr,$W)=>{var DC=I8();class JW extends DC{constructor(Z={}){super(Z)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(Z){Z=parseInt(Z.substr(-2))-1,this.date.setMonth(Z<0?0:Z)}toString(){let Z=this.date.getMonth(),J=this.token.length;return J===2?String(Z+1).padStart(2,"0"):J===3?this.locales.monthsShort[Z]:J===4?this.locales.months[Z]:String(Z+1)}}$W.exports=JW});var KW=z((or,QW)=>{var TC=I8();class YW extends TC{constructor(Z={}){super(Z)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(Z){this.date.setSeconds(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getSeconds();return this.token.length>1?String(Z).padStart(2,"0"):Z}}QW.exports=YW});var WW=z((er,FW)=>{var IC=I8();class GW extends IC{constructor(Z={}){super(Z)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(Z){this.date.setFullYear(Z.substr(-4))}toString(){let Z=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?Z.substr(-2):Z}}FW.exports=GW});var HW=z((Zo,qW)=>{qW.exports={DatePart:I8(),Meridiem:dF(),Day:lF(),Hours:sF(),Milliseconds:rF(),Minutes:ZW(),Month:XW(),Seconds:KW(),Year:WW()}});var DW=z((Jo,PW)=>{var zW=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),F=G.value}catch(W){$(W);return}if(G.done)J(F);else Promise.resolve(F).then(X,Y)},UW=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(F){zW(Q,X,Y,K,G,"next",F)}function G(F){zW(Q,X,Y,K,G,"throw",F)}K(void 0)})}},N$=w1(),EC=i8(),B$=K8(),VW=B$.style,MW=B$.clear,NC=B$.figures,wW=P1(),BC=wW.erase,jW=wW.cursor,n8=HW(),AW=n8.DatePart,CC=n8.Meridiem,hC=n8.Day,OC=n8.Hours,SC=n8.Milliseconds,kC=n8.Minutes,yC=n8.Month,_C=n8.Seconds,xC=n8.Year,vC=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,LW={1:({token:Z})=>Z.replace(/\\(.)/g,"$1"),2:(Z)=>new hC(Z),3:(Z)=>new yC(Z),4:(Z)=>new xC(Z),5:(Z)=>new CC(Z),6:(Z)=>new OC(Z),7:(Z)=>new kC(Z),8:(Z)=>new _C(Z),9:(Z)=>new SC(Z)},fC={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class RW extends EC{constructor(Z={}){super(Z);this.msg=Z.message,this.cursor=0,this.typed="",this.locales=Object.assign(fC,Z.locales),this._date=Z.initial||new Date,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.mask=Z.mask||"YYYY-MM-DD HH:mm:ss",this.clear=MW("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(Z){if(Z)this._date.setTime(Z.getTime())}set mask(Z){let J;this.parts=[];while(J=vC.exec(Z)){let X=J.shift(),Y=J.findIndex((Q)=>Q!=null);this.parts.push(Y in LW?LW[Y]({token:J[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):J[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(Z){this.typed="",this.cursor=Z,this.fire()}reset(){this.moveCursor(this.parts.findIndex((Z)=>Z instanceof AW)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var Z=this;return UW(function*(){let J=yield Z.validator(Z.value);if(typeof J==="string")Z.errorMsg=J,J=!1;Z.error=!J})()}submit(){var Z=this;return UW(function*(){if(yield Z.validate(),Z.error){Z.color="red",Z.fire(),Z.render();return}Z.done=!0,Z.aborted=!1,Z.fire(),Z.render(),Z.out.write("\n"),Z.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let Z=this.parts[this.cursor].prev();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}right(){let Z=this.parts[this.cursor].next();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}next(){let Z=this.parts[this.cursor].next();this.moveCursor(Z?this.parts.indexOf(Z):this.parts.findIndex((J)=>J instanceof AW)),this.render()}_(Z){if(/\d/.test(Z))this.typed+=Z,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(jW.hide);else this.out.write(MW(this.outputText,this.out.columns));if(super.render(),this.outputText=[VW.symbol(this.done,this.aborted),N$.bold(this.msg),VW.delimiter(!1),this.parts.reduce((Z,J,$)=>Z.concat($===this.cursor&&!this.done?N$.cyan().underline(J.toString()):J),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":NC.pointerSmall} ${N$.red().italic(J)}`,"");this.out.write(BC.line+jW.to(0)+this.outputText)}}PW.exports=RW});var OW=z(($o,hW)=>{var TW=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),F=G.value}catch(W){$(W);return}if(G.done)J(F);else Promise.resolve(F).then(X,Y)},IW=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(F){TW(Q,X,Y,K,G,"next",F)}function G(F){TW(Q,X,Y,K,G,"throw",F)}K(void 0)})}},u9=w1(),gC=i8(),BW=P1(),d9=BW.cursor,bC=BW.erase,p9=K8(),C$=p9.style,mC=p9.figures,EW=p9.clear,uC=p9.lines,dC=/[0-9]/,h$=(Z)=>Z!==void 0,NW=(Z,J)=>{let $=Math.pow(10,J);return Math.round(Z*$)/$};class CW extends gC{constructor(Z={}){super(Z);this.transform=C$.render(Z.style),this.msg=Z.message,this.initial=h$(Z.initial)?Z.initial:"",this.float=!!Z.float,this.round=Z.round||2,this.inc=Z.increment||1,this.min=h$(Z.min)?Z.min:(-Infinity),this.max=h$(Z.max)?Z.max:Infinity,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(Z){if(!Z&&Z!==0)this.placeholder=!0,this.rendered=u9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${NW(Z,this.round)}`),this._value=NW(Z,this.round);this.fire()}get value(){return this._value}parse(Z){return this.float?parseFloat(Z):parseInt(Z)}valid(Z){return Z==="-"||Z==="."&&this.float||dC.test(Z)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let Z=this.value;this.value=Z!==""?Z:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var Z=this;return IW(function*(){let J=yield Z.validator(Z.value);if(typeof J==="string")Z.errorMsg=J,J=!1;Z.error=!J})()}submit(){var Z=this;return IW(function*(){if(yield Z.validate(),Z.error){Z.color="red",Z.fire(),Z.render();return}let J=Z.value;Z.value=J!==""?J:Z.initial,Z.done=!0,Z.aborted=!1,Z.error=!1,Z.fire(),Z.render(),Z.out.write("\n"),Z.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let Z=this.value.toString();if(Z.length===0)return this.bell();if(this.value=this.parse(Z=Z.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(Z,J){if(!this.valid(Z))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=Z,this.lastHit=$,this.color="cyan",Z===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(d9.down(uC(this.outputError,this.out.columns)-1)+EW(this.outputError,this.out.columns));this.out.write(EW(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[C$.symbol(this.done,this.aborted),u9.bold(this.msg),C$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?u9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":mC.pointerSmall} ${u9.red().italic(J)}`,"");this.out.write(bC.line+d9.to(0)+this.outputText+d9.save+this.outputError+d9.restore)}}hW.exports=CW});var O$=z((Xo,_W)=>{var E8=w1(),pC=P1(),cC=pC.cursor,lC=i8(),e7=K8(),SW=e7.clear,E6=e7.figures,kW=e7.style,aC=e7.wrap,iC=e7.entriesToDisplay;class yW extends lC{constructor(Z={}){super(Z);if(this.msg=Z.message,this.cursor=Z.cursor||0,this.scrollIndex=Z.cursor||0,this.hint=Z.hint||"",this.warn=Z.warn||"- This option is disabled -",this.minSelected=Z.min,this.showMinError=!1,this.maxChoices=Z.max,this.instructions=Z.instructions,this.optionsPerPage=Z.optionsPerPage||10,this.value=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),description:J&&J.description,value:J&&(J.value===void 0?$:J.value),selected:J&&J.selected,disabled:J&&J.disabled}}),this.clear=SW("",this.out.columns),!Z.overrideRender)this.render()}reset(){this.value.map((Z)=>!Z.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((Z)=>Z.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const Z=this.value.filter((J)=>J.selected);if(this.minSelected&&Z.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const Z=this.value[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const Z=!this.value[this.cursor].selected;this.value.filter((J)=>!J.disabled).forEach((J)=>J.selected=Z),this.render()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else if(Z==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${E6.arrowUp}/${E6.arrowDown}: Highlight option\n`+` ${E6.arrowLeft}/${E6.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(Z,J,$,X){const Y=(J.selected?E8.green(E6.radioOn):E6.radioOff)+" "+X+" ";let Q,K;if(J.disabled)Q=Z===$?E8.gray().underline(J.title):E8.strikethrough().gray(J.title);else if(Q=Z===$?E8.cyan().underline(J.title):J.title,Z===$&&J.description){if(K=` - ${J.description}`,Y.length+Q.length+K.length>=this.out.columns||J.description.split(/\r?\n/).length>1)K="\n"+aC(J.description,{margin:Y.length,width:this.out.columns})}return Y+Q+E8.gray(K||"")}paginateOptions(Z){if(Z.length===0)return E8.red("No matches for this query.");let J=iC(this.cursor,Z.length,this.optionsPerPage),$=J.startIndex,X=J.endIndex,Y,Q=[];for(let K=$;K<X;K++){if(K===$&&$>0)Y=E6.arrowUp;else if(K===X-1&&X<Z.length)Y=E6.arrowDown;else Y=" ";Q.push(this.renderOption(this.cursor,Z[K],K,Y))}return"\n"+Q.join("\n")}renderOptions(Z){if(!this.done)return this.paginateOptions(Z);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[E8.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)Z.push(E8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(cC.hide);super.render();let Z=[kW.symbol(this.done,this.aborted),E8.bold(this.msg),kW.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=E8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.value),this.out.write(this.clear+Z),this.clear=SW(Z,this.out.columns)}}_W.exports=yW});var dW=z((Yo,uW)=>{var xW=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),F=G.value}catch(W){$(W);return}if(G.done)J(F);else Promise.resolve(F).then(X,Y)},sC=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(F){xW(Q,X,Y,K,G,"next",F)}function G(F){xW(Q,X,Y,K,G,"throw",F)}K(void 0)})}},Z5=w1(),nC=i8(),bW=P1(),tC=bW.erase,vW=bW.cursor,J5=K8(),S$=J5.style,fW=J5.clear,k$=J5.figures,rC=J5.wrap,oC=J5.entriesToDisplay,gW=(Z,J)=>Z[J]&&(Z[J].value||Z[J].title||Z[J]),eC=(Z,J)=>Z[J]&&(Z[J].title||Z[J].value||Z[J]),Z2=(Z,J)=>{const $=Z.findIndex((X)=>X.value===J||X.title===J);return $>-1?$:void 0};class mW extends nC{constructor(Z={}){super(Z);this.msg=Z.message,this.suggest=Z.suggest,this.choices=Z.choices,this.initial=typeof Z.initial==="number"?Z.initial:Z2(Z.choices,Z.initial),this.select=this.initial||Z.cursor||0,this.i18n={noMatches:Z.noMatches||"no matches found"},this.fallback=Z.fallback||this.initial,this.clearFirst=Z.clearFirst||!1,this.suggestions=[],this.input="",this.limit=Z.limit||10,this.cursor=0,this.transform=S$.render(Z.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=fW("",this.out.columns),this.complete(this.render),this.render()}set fallback(Z){this._fb=Number.isSafeInteger(parseInt(Z))?parseInt(Z):Z}get fallback(){let Z;if(typeof this._fb==="number")Z=this.choices[this._fb];else if(typeof this._fb==="string")Z={title:this._fb};return Z||this._fb||{title:this.i18n.noMatches}}moveSelect(Z){if(this.select=Z,this.suggestions.length>0)this.value=gW(this.suggestions,Z);else this.value=this.fallback.value;this.fire()}complete(Z){var J=this;return sC(function*(){const $=J.completing=J.suggest(J.input,J.choices),X=yield $;if(J.completing!==$)return;J.suggestions=X.map((Q,K,G)=>({title:eC(G,K),value:gW(G,K),description:Q.description})),J.completing=!1;const Y=Math.max(X.length-1,0);J.moveSelect(Math.min(Y,J.select)),Z&&Z()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${Z}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let Z=this.input.slice(0,this.cursor-1),J=this.input.slice(this.cursor);this.input=`${Z}${J}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor+1);this.input=`${Z}${J}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(Z,J,$,X){let Y,Q=$?k$.arrowUp:X?k$.arrowDown:" ",K=J?Z5.cyan().underline(Z.title):Z.title;if(Q=(J?Z5.cyan(k$.pointer)+" ":" ")+Q,Z.description){if(Y=` - ${Z.description}`,Q.length+K.length+Y.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Y="\n"+rC(Z.description,{margin:3,width:this.out.columns})}return Q+" "+K+Z5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(vW.hide);else this.out.write(fW(this.outputText,this.out.columns));super.render();let Z=oC(this.select,this.choices.length,this.limit),J=Z.startIndex,$=Z.endIndex;if(this.outputText=[S$.symbol(this.done,this.aborted,this.exited),Z5.bold(this.msg),S$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const X=this.suggestions.slice(J,$).map((Y,Q)=>this.renderOption(Y,this.select===Q+J,Q===0&&J>0,Q+J===$-1&&$<this.choices.length)).join("\n");this.outputText+="\n"+(X||Z5.gray(this.fallback.title))}this.out.write(tC.line+vW.to(0)+this.outputText)}}uW.exports=mW});var iW=z((Qo,aW)=>{var t8=w1(),J2=P1(),$2=J2.cursor,X2=O$(),y$=K8(),pW=y$.clear,cW=y$.style,l4=y$.figures;class lW extends X2{constructor(Z={}){Z.overrideRender=!0;super(Z);this.inputValue="",this.clear=pW("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const Z=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const J=this.filteredOptions.findIndex(($)=>$===Z);this.cursor=J<0?0:J,this.render()}handleSpaceToggle(){const Z=this.filteredOptions[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}handleInputChange(Z){this.inputValue=this.inputValue+Z,this.updateFilteredOptions()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else this.handleInputChange(Z)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
2
+ var GN=Object.create;var{defineProperty:NK,getPrototypeOf:qN,getOwnPropertyNames:FN}=Object;var WN=Object.prototype.hasOwnProperty;var X4=(Z,J,$)=>{$=Z!=null?GN(qN(Z)):{};const X=J||!Z||!Z.__esModule?NK($,"default",{value:Z,enumerable:!0}):$;for(let Y of FN(Z))if(!WN.call(X,Y))NK(X,Y,{get:()=>Z[Y],enumerable:!0});return X};var z=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var O=(Z)=>{return import.meta.require(Z)};var $$=z((Cn,BK)=>{var u7=function(Z,{argv:J=process.argv.slice(2),permissive:$=!1,stopAtPositional:X=!1}={}){if(!Z)throw new f0("argument specification object is required","ARG_CONFIG_NO_SPEC");const Y={_:[]},Q={},K={};for(let G of Object.keys(Z)){if(!G)throw new f0("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(G[0]!=="-")throw new f0(`argument key must start with '-' but found: '${G}'`,"ARG_CONFIG_NONOPT_KEY");if(G.length===1)throw new f0(`argument key must have a name; singular '-' keys are not allowed: ${G}`,"ARG_CONFIG_NONAME_KEY");if(typeof Z[G]==="string"){Q[G]=Z[G];continue}let q=Z[G],F=!1;if(Array.isArray(q)&&q.length===1&&typeof q[0]==="function"){const[W]=q;q=(H,V,j=[])=>{return j.push(W(H,V,j[j.length-1])),j},F=W===Boolean||W[J$]===!0}else if(typeof q==="function")F=q===Boolean||q[J$]===!0;else throw new f0(`type missing or not a function or valid array type: ${G}`,"ARG_CONFIG_VAD_TYPE");if(G[1]!=="-"&&G.length>2)throw new f0(`short argument keys (with a single hyphen) must have only one character: ${G}`,"ARG_CONFIG_SHORTOPT_TOOLONG");K[G]=[q,F]}for(let G=0,q=J.length;G<q;G++){const F=J[G];if(X&&Y._.length>0){Y._=Y._.concat(J.slice(G));break}if(F==="--"){Y._=Y._.concat(J.slice(G+1));break}if(F.length>1&&F[0]==="-"){const W=F[1]==="-"||F.length===2?[F]:F.slice(1).split("").map((H)=>`-${H}`);for(let H=0;H<W.length;H++){const V=W[H],[j,U]=V[1]==="-"?V.split(/=(.*)/,2):[V,void 0];let L=j;while(L in Q)L=Q[L];if(!(L in K))if($){Y._.push(V);continue}else throw new f0(`unknown or unexpected option: ${j}`,"ARG_UNKNOWN_OPTION");const[D,B]=K[L];if(!B&&H+1<W.length)throw new f0(`option requires argument (but was followed by another short argument): ${j}`,"ARG_MISSING_REQUIRED_SHORTARG");if(B)Y[L]=D(!0,L,Y[L]);else if(U===void 0){if(J.length<G+2||J[G+1].length>1&&J[G+1][0]==="-"&&!(J[G+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(D===Number||typeof BigInt!=="undefined"&&D===BigInt))){const w=j===L?"":` (alias for ${L})`;throw new f0(`option requires argument: ${j}${w}`,"ARG_MISSING_REQUIRED_LONGARG")}Y[L]=D(J[G+1],L,Y[L]),++G}else Y[L]=D(U,L,Y[L])}}else Y._.push(F)}return Y},J$=Symbol("arg flag");class f0 extends Error{constructor(Z,J){super(Z);this.name="ArgError",this.code=J,Object.setPrototypeOf(this,f0.prototype)}}u7.flag=(Z)=>{return Z[J$]=!0,Z};u7.COUNT=u7.flag((Z,J,$)=>($||0)+1);u7.ArgError=f0;BK.exports=u7});var E9=z((Ut,pK)=>{var Y$=[],dK=0,e1=(Z,J)=>{if(dK>=J)Y$.push(Z)};e1.WARN=1;e1.INFO=2;e1.DEBUG=3;e1.reset=()=>{Y$=[]};e1.setDebugLevel=(Z)=>{dK=Z};e1.warn=(Z)=>e1(Z,e1.WARN);e1.info=(Z)=>e1(Z,e1.INFO);e1.debug=(Z)=>e1(Z,e1.DEBUG);e1.debugMessages=()=>Y$;pK.exports=e1});var lK=z((Mt,cK)=>{cK.exports=({onlyFirst:Z=!1}={})=>{const J=["[\\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(J,Z?void 0:"g")}});var iK=z((jt,aK)=>{var PN=lK();aK.exports=(Z)=>typeof Z==="string"?Z.replace(PN(),""):Z});var nK=z((At,Q$)=>{var sK=(Z)=>{if(Number.isNaN(Z))return!1;if(Z>=4352&&(Z<=4447||Z===9001||Z===9002||11904<=Z&&Z<=12871&&Z!==12351||12880<=Z&&Z<=19903||19968<=Z&&Z<=42182||43360<=Z&&Z<=43388||44032<=Z&&Z<=55203||63744<=Z&&Z<=64255||65040<=Z&&Z<=65049||65072<=Z&&Z<=65131||65281<=Z&&Z<=65376||65504<=Z&&Z<=65510||110592<=Z&&Z<=110593||127488<=Z&&Z<=127569||131072<=Z&&Z<=262141))return!0;return!1};Q$.exports=sK;Q$.exports.default=sK});var rK=z((Lt,tK)=>{tK.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 eK=z((wt,K$)=>{var DN=iK(),TN=nK(),IN=rK(),oK=(Z)=>{if(typeof Z!=="string"||Z.length===0)return 0;if(Z=DN(Z),Z.length===0)return 0;Z=Z.replace(IN()," ");let J=0;for(let $=0;$<Z.length;$++){const X=Z.codePointAt($);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)$++;J+=TN(X)?2:1}return J};K$.exports=oK;K$.exports.default=oK});var G$=z((Rt,XG)=>{var N9=function(Z){return Z?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g},D8=function(Z){let J=N9();return(""+Z).replace(J,"").split("\n").reduce(function(Y,Q){return ZG(Q)>Y?ZG(Q):Y},0)},d7=function(Z,J){return Array(J+1).join(Z)},EN=function(Z,J,$,X){let Y=D8(Z);if(J+1>=Y){let Q=J-Y;switch(X){case"right":{Z=d7($,Q)+Z;break}case"center":{let K=Math.ceil(Q/2),G=Q-K;Z=d7($,G)+Z+d7($,K);break}default:{Z=Z+d7($,Q);break}}}return Z},p7=function(Z,J,$){J="\x1B["+J+"m",$="\x1B["+$+"m",g4[J]={set:Z,to:!0},g4[$]={set:Z,to:!1},g4[Z]={on:J,off:$}},JG=function(Z,J){let $=J[1]?parseInt(J[1].split(";")[0]):0;if($>=30&&$<=39||$>=90&&$<=97){Z.lastForegroundAdded=J[0];return}if($>=40&&$<=49||$>=100&&$<=107){Z.lastBackgroundAdded=J[0];return}if($===0){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))delete Z[Y];return}let X=g4[J[0]];if(X)Z[X.set]=X.to},NN=function(Z){let J=N9(!0),$=J.exec(Z),X={};while($!==null)JG(X,$),$=J.exec(Z);return X},$G=function(Z,J){let{lastBackgroundAdded:$,lastForegroundAdded:X}=Z;if(delete Z.lastBackgroundAdded,delete Z.lastForegroundAdded,Object.keys(Z).forEach(function(Y){if(Z[Y])J+=g4[Y].off}),$&&$!="\x1B[49m")J+="\x1B[49m";if(X&&X!="\x1B[39m")J+="\x1B[39m";return J},BN=function(Z,J){let{lastBackgroundAdded:$,lastForegroundAdded:X}=Z;if(delete Z.lastBackgroundAdded,delete Z.lastForegroundAdded,Object.keys(Z).forEach(function(Y){if(Z[Y])J=g4[Y].on+J}),$&&$!="\x1B[49m")J=$+J;if(X&&X!="\x1B[39m")J=X+J;return J},CN=function(Z,J){if(Z.length===D8(Z))return Z.substr(0,J);while(D8(Z)>J)Z=Z.slice(0,-1);return Z},hN=function(Z,J){let $=N9(!0),X=Z.split(N9()),Y=0,Q=0,K="",G,q={};while(Q<J){G=$.exec(Z);let F=X[Y];if(Y++,Q+D8(F)>J)F=CN(F,J-Q);if(K+=F,Q+=D8(F),Q<J){if(!G)break;K+=G[0],JG(q,G)}}return $G(q,K)},ON=function(Z,J,$){if($=$||"\u2026",D8(Z)<=J)return Z;return J-=D8($),hN(Z,J)+$},SN=function(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}},yN=function(Z,J){Z=Z||{},J=J||SN();let $=Object.assign({},J,Z);return $.chars=Object.assign({},J.chars,Z.chars),$.style=Object.assign({},J.style,Z.style),$},kN=function(Z,J){let $=[],X=J.split(/(\s+)/g),Y=[],Q=0,K;for(let G=0;G<X.length;G+=2){let q=X[G],F=Q+D8(q);if(Q>0&&K)F+=K.length;if(F>Z){if(Q!==0)$.push(Y.join(""));Y=[q],Q=D8(q)}else Y.push(K||"",q),Q=F;K=X[G+1]}if(Q)$.push(Y.join(""));return $},_N=function(Z,J){let $=[],X="";function Y(K,G){if(X.length&&G)X+=G;X+=K;while(X.length>Z)$.push(X.slice(0,Z)),X=X.slice(Z)}let Q=J.split(/(\s+)/g);for(let K=0;K<Q.length;K+=2)Y(Q[K],K&&Q[K-1]);if(X.length)$.push(X);return $},xN=function(Z,J,$=!0){let X=[];J=J.split("\n");const Y=$?kN:_N;for(let Q=0;Q<J.length;Q++)X.push.apply(X,Y(Z,J[Q]));return X},vN=function(Z){let J={},$=[];for(let X=0;X<Z.length;X++){let Y=BN(J,Z[X]);J=NN(Y);let Q=Object.assign({},J);$.push($G(Q,Y))}return $},fN=function(Z,J){return["\x1B]","8",";",";",Z||J,"\x07",J,"\x1B]","8",";",";","\x07"].join("")},ZG=eK(),g4={};p7("bold",1,22);p7("italics",3,23);p7("underline",4,24);p7("inverse",7,27);p7("strikethrough",9,29);XG.exports={strlen:D8,repeat:d7,pad:EN,truncate:ON,mergeOptions:yN,wordWrap:xN,colorizeLines:vN,hyperlink:fN}});var GG=z((Pt,KG)=>{var QG={};KG.exports=QG;var YG={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(YG).forEach(function(Z){var J=YG[Z],$=QG[Z]=[];$.open="\x1B["+J[0]+"m",$.close="\x1B["+J[1]+"m"})});var FG=z((Dt,qG)=>{qG.exports=function(Z,J){J=J||process.argv;var $=J.indexOf("--"),X=/^-{1,2}/.test(Z)?"":"--",Y=J.indexOf(X+Z);return Y!==-1&&($===-1?!0:Y<$)}});var HG=z((Tt,WG)=>{var bN=function(Z){if(Z===0)return!1;return{level:Z,hasBasic:!0,has256:Z>=2,has16m:Z>=3}},mN=function(Z){if(b4===!1)return 0;if(X8("color=16m")||X8("color=full")||X8("color=truecolor"))return 3;if(X8("color=256"))return 2;if(Z&&!Z.isTTY&&b4!==!0)return 0;var J=b4?1:0;if(process.platform==="win32"){var $=gN.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number($[0])>=10&&Number($[2])>=10586)return Number($[2])>=14931?3:2;return 1}if("CI"in K0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in K0})||K0.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in K0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in K0){var X=parseInt((K0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(K0.TERM))return 1;if("COLORTERM"in K0)return 1;if(K0.TERM==="dumb")return J;return J},q$=function(Z){var J=mN(Z);return bN(J)},gN=import.meta.require("os"),X8=FG(),K0=process.env,b4=void 0;if(X8("no-color")||X8("no-colors")||X8("color=false"))b4=!1;else if(X8("color")||X8("colors")||X8("color=true")||X8("color=always"))b4=!0;if("FORCE_COLOR"in K0)b4=K0.FORCE_COLOR.length===0||parseInt(K0.FORCE_COLOR,10)!==0;WG.exports={supportsColor:q$,stdout:q$(process.stdout),stderr:q$(process.stderr)}});var VG=z((It,zG)=>{zG.exports=function Z(J,$){var X="";J=J||"Run the trap, drop the bass",J=J.split("");var Y={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return J.forEach(function(Q){Q=Q.toLowerCase();var K=Y[Q]||[" "],G=Math.floor(Math.random()*K.length);if(typeof Y[Q]!=="undefined")X+=Y[Q][G];else X+=Q}),X}});var MG=z((Et,UG)=>{UG.exports=function Z(J,$){J=J||" he is here ";var X={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},Y=[].concat(X.up,X.down,X.mid);function Q(q){var F=Math.floor(Math.random()*q);return F}function K(q){var F=!1;return Y.filter(function(W){F=W===q}),F}function G(q,F){var W="",H,V;F=F||{},F.up=typeof F.up!=="undefined"?F.up:!0,F.mid=typeof F.mid!=="undefined"?F.mid:!0,F.down=typeof F.down!=="undefined"?F.down:!0,F.size=typeof F.size!=="undefined"?F.size:"maxi",q=q.split("");for(V in q){if(K(V))continue;switch(W=W+q[V],H={up:0,down:0,mid:0},F.size){case"mini":H.up=Q(8),H.mid=Q(2),H.down=Q(8);break;case"maxi":H.up=Q(16)+3,H.mid=Q(4)+1,H.down=Q(64)+3;break;default:H.up=Q(8)+1,H.mid=Q(6)/2,H.down=Q(8)+1;break}var j=["up","mid","down"];for(var U in j){var L=j[U];for(var D=0;D<=H[L];D++)if(F[L])W=W+X[L][Q(X[L].length)]}}return W}return G(J,$)}});var AG=z((Nt,jG)=>{jG.exports=function(Z){return function(J,$,X){if(J===" ")return J;switch($%3){case 0:return Z.red(J);case 1:return Z.white(J);case 2:return Z.blue(J)}}}});var wG=z((Bt,LG)=>{LG.exports=function(Z){return function(J,$,X){return $%2===0?J:Z.inverse(J)}}});var PG=z((Ct,RG)=>{RG.exports=function(Z){var J=["red","yellow","green","blue","magenta"];return function($,X,Y){if($===" ")return $;else return Z[J[X++%J.length]]($)}}});var TG=z((ht,DG)=>{DG.exports=function(Z){var J=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function($,X,Y){return $===" "?$:Z[J[Math.round(Math.random()*(J.length-2))]]($)}}});var hG=z((St,CG)=>{var NG=function(Z){var J=function $(){return aN.apply($,arguments)};return J._styles=Z,J.__proto__=lN,J},aN=function(){var Z=Array.prototype.slice.call(arguments),J=Z.map(function(K){if(K!=null&&K.constructor===String)return K;else return uN.inspect(K)}).join(" ");if(!l.enabled||!J)return J;var $=J.indexOf("\n")!=-1,X=this._styles,Y=X.length;while(Y--){var Q=Y4[X[Y]];if(J=Q.open+J.replace(Q.closeRe,Q.open)+Q.close,$)J=J.replace(dN,function(K){return Q.close+K+Q.open})}return J},iN=function(){var Z={};return Object.keys(BG).forEach(function(J){Z[J]={get:function(){return NG([J])}}}),Z},l={};CG.exports=l;l.themes={};var uN=import.meta.require("util"),Y4=l.styles=GG(),EG=Object.defineProperties,dN=new RegExp(/[\r\n]+/g);l.supportsColor=HG().supportsColor;if(typeof l.enabled==="undefined")l.enabled=l.supportsColor()!==!1;l.enable=function(){l.enabled=!0};l.disable=function(){l.enabled=!1};l.stripColors=l.strip=function(Z){return(""+Z).replace(/\x1B\[\d+m/g,"")};var Ot=l.stylize=function Z(J,$){if(!l.enabled)return J+"";var X=Y4[$];if(!X&&$ in l)return l[$](J);return X.open+J+X.close},pN=/[|\\{}()[\]^$+*?.]/g,cN=function(Z){if(typeof Z!=="string")throw new TypeError("Expected a string");return Z.replace(pN,"\\$&")},BG=function(){var Z={};return Y4.grey=Y4.gray,Object.keys(Y4).forEach(function(J){Y4[J].closeRe=new RegExp(cN(Y4[J].close),"g"),Z[J]={get:function(){return NG(this._styles.concat(J))}}}),Z}(),lN=EG(function Z(){},BG);l.setTheme=function(Z){if(typeof Z==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller\'s) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + \'/../themes/generic-logging.js\'); The new syntax looks like colors.setTheme(require(__dirname + \'/../themes/generic-logging.js\'));");return}for(var J in Z)(function($){l[$]=function(X){if(typeof Z[$]==="object"){var Y=X;for(var Q in Z[$])Y=l[Z[$][Q]](Y);return Y}return l[Z[$]](X)}})(J)};var sN=function Z(J,$){var X=$.split("");return X=X.map(J),X.join("")};l.trap=VG();l.zalgo=MG();l.maps={};l.maps.america=AG()(l);l.maps.zebra=wG()(l);l.maps.rainbow=PG()(l);l.maps.random=TG()(l);for(IG in l.maps)(function(Z){l[Z]=function(J){return sN(l.maps[Z],J)}})(IG);var IG;EG(l,iN())});var SG=z((yt,OG)=>{var nN=hG();OG.exports=nN});var xG=z((kt,h9)=>{var yG=function(...Z){return Z.filter((J)=>J!==void 0&&J!==null).shift()},F$=function(Z,J,$,X){let Y=$.split("-");if(Y.length>1)Y[1]=Y[1].charAt(0).toUpperCase()+Y[1].substr(1),Y=Y.join(""),X[Y]=yG(Z[Y],Z[$],J[Y],J[$]);else X[$]=yG(Z[$],J[$])},rN=function(Z,J,$){let X=Z[J];for(let Y=1;Y<$;Y++)X+=1+Z[J+Y];return X},kG=function(Z,J){return Z+J+1},{info:tN,debug:_G}=E9(),E0=G$();class c7{constructor(Z){this.setOptions(Z),this.x=null,this.y=null}setOptions(Z){if(["boolean","number","string"].indexOf(typeof Z)!==-1)Z={content:""+Z};Z=Z||{},this.options=Z;let J=Z.content;if(["boolean","number","string"].indexOf(typeof J)!==-1)this.content=String(J);else if(!J)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof J);if(this.colSpan=Z.colSpan||1,this.rowSpan=Z.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(Z,J){this.cells=J;let $=this.options.chars||{},X=Z.chars,Y=this.chars={};oN.forEach(function(G){F$($,X,G,Y)}),this.truncate=this.options.truncate||Z.truncate;let Q=this.options.style=this.options.style||{},K=Z.style;F$(Q,K,"padding-left",this),F$(Q,K,"padding-right",this),this.head=Q.head||K.head,this.border=Q.border||K.border,this.fixedWidth=Z.colWidths[this.x],this.lines=this.computeLines(Z),this.desiredWidth=E0.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(Z){const J=Z.wordWrap||Z.textWrap,{wordWrap:$=J}=this.options;if(this.fixedWidth&&$){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let Q=1;while(Q<this.colSpan)this.fixedWidth+=Z.colWidths[this.x+Q],Q++}const{wrapOnWordBoundary:X=!0}=Z,{wrapOnWordBoundary:Y=X}=this.options;return this.wrapLines(E0.wordWrap(this.fixedWidth,this.content,Y))}return this.wrapLines(this.content.split("\n"))}wrapLines(Z){const J=E0.colorizeLines(Z);if(this.href)return J.map(($)=>E0.hyperlink(this.href,$));return J}init(Z){let J=this.x,$=this.y;this.widths=Z.colWidths.slice(J,J+this.colSpan),this.heights=Z.rowHeights.slice($,$+this.rowSpan),this.width=this.widths.reduce(kG,-1),this.height=this.heights.reduce(kG,-1),this.hAlign=this.options.hAlign||Z.colAligns[J],this.vAlign=this.options.vAlign||Z.rowAligns[$],this.drawRight=J+this.colSpan==Z.colWidths.length}draw(Z,J){if(Z=="top")return this.drawTop(this.drawRight);if(Z=="bottom")return this.drawBottom(this.drawRight);let $=E0.truncate(this.content,10,this.truncate);if(!Z)tN(`${this.y}-${this.x}: ${this.rowSpan-Z}x${this.colSpan} Cell ${$}`);let X=Math.max(this.height-this.lines.length,0),Y;switch(this.vAlign){case"center":Y=Math.ceil(X/2);break;case"bottom":Y=X;break;default:Y=0}if(Z<Y||Z>=Y+this.lines.length)return this.drawEmpty(this.drawRight,J);let Q=this.lines.length>this.height&&Z+1>=this.height;return this.drawLine(Z-Y,this.drawRight,Q,J)}drawTop(Z){let J=[];if(this.cells)this.widths.forEach(function($,X){J.push(this._topLeftChar(X)),J.push(E0.repeat(this.chars[this.y==0?"top":"mid"],$))},this);else J.push(this._topLeftChar(0)),J.push(E0.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(Z)J.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",J.join(""))}_topLeftChar(Z){let J=this.x+Z,$;if(this.y==0)$=J==0?"topLeft":Z==0?"topMid":"top";else if(J==0)$="leftMid";else if($=Z==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][J]instanceof c7.ColSpanCell)$=Z==0?"topMid":"mid";if(Z==0){let Y=1;while(this.cells[this.y][J-Y]instanceof c7.ColSpanCell)Y++;if(this.cells[this.y][J-Y]instanceof c7.RowSpanCell)$="leftMid"}}return this.chars[$]}wrapWithStyleColors(Z,J){if(this[Z]&&this[Z].length)try{let $=SG();for(let X=this[Z].length-1;X>=0;X--)$=$[this[Z][X]];return $(J)}catch($){return J}else return J}drawLine(Z,J,$,X){let Y=this.chars[this.x==0?"left":"middle"];if(this.x&&X&&this.cells){let H=this.cells[this.y+X][this.x-1];while(H instanceof B9)H=this.cells[H.y][H.x-1];if(!(H instanceof C9))Y=this.chars.rightMid}let Q=E0.repeat(" ",this.paddingLeft),K=J?this.chars.right:"",G=E0.repeat(" ",this.paddingRight),q=this.lines[Z],F=this.width-(this.paddingLeft+this.paddingRight);if($)q+=this.truncate||"\u2026";let W=E0.truncate(q,F,this.truncate);return W=E0.pad(W,F," ",this.hAlign),W=Q+W+G,this.stylizeLine(Y,W,K)}stylizeLine(Z,J,$){if(Z=this.wrapWithStyleColors("border",Z),$=this.wrapWithStyleColors("border",$),this.y===0)J=this.wrapWithStyleColors("head",J);return Z+J+$}drawBottom(Z){let J=this.chars[this.x==0?"bottomLeft":"bottomMid"],$=E0.repeat(this.chars.bottom,this.width),X=Z?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",J+$+X)}drawEmpty(Z,J){let $=this.chars[this.x==0?"left":"middle"];if(this.x&&J&&this.cells){let Q=this.cells[this.y+J][this.x-1];while(Q instanceof B9)Q=this.cells[Q.y][Q.x-1];if(!(Q instanceof C9))$=this.chars.rightMid}let X=Z?this.chars.right:"",Y=E0.repeat(" ",this.width);return this.stylizeLine($,Y,X)}}class B9{constructor(){}draw(Z){if(typeof Z==="number")_G(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class C9{constructor(Z){this.originalCell=Z}init(Z){let J=this.y,$=this.originalCell.y;this.cellOffset=J-$,this.offset=rN(Z.rowHeights,$,this.cellOffset)}draw(Z){if(Z=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(Z=="bottom")return this.originalCell.draw("bottom");return _G(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+Z)}mergeTableOptions(){}}var oN=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];h9.exports=c7;h9.exports.ColSpanCell=B9;h9.exports.RowSpanCell=C9});var gG=z((_t,fG)=>{var vG=function(Z,J,$,X){return function(Y,Q){let K=[],G=[],q={};Q.forEach(function(F){F.forEach(function(W){if((W[Z]||1)>1)G.push(W);else K[W[$]]=Math.max(K[W[$]]||0,W[J]||0,X)})}),Y.forEach(function(F,W){if(typeof F==="number")K[W]=F});for(let F=G.length-1;F>=0;F--){let W=G[F],H=W[Z],V=W[$],j=K[V],U=typeof Y[V]==="number"?0:1;if(typeof j==="number"){for(let L=1;L<H;L++)if(j+=1+K[V+L],typeof Y[V+L]!=="number")U++}else if(j=J==="desiredWidth"?W.desiredWidth-1:1,!q[V]||q[V]<j)q[V]=j;if(W[J]>j){let L=0;while(U>0&&W[J]>j){if(typeof Y[V+L]!=="number"){let D=Math.round((W[J]-j)/U);j+=D,K[V+L]+=D,U--}L++}}}Object.assign(Y,K,q);for(let F=0;F<Y.length;F++)Y[F]=Math.max(X,Y[F]||0)}},{warn:eN,debug:ZB}=E9(),W$=xG(),{ColSpanCell:JB,RowSpanCell:$B}=W$;(function(){function Z(j,U){if(j[U]>0)return Z(j,U+1);return U}function J(j){let U={};j.forEach(function(L,D){let B=0;L.forEach(function(w){w.y=D,w.x=D?Z(U,B):B;const T=w.rowSpan||1,f=w.colSpan||1;if(T>1)for(let N1=0;N1<f;N1++)U[w.x+N1]=T;B=w.x+f}),Object.keys(U).forEach((w)=>{if(U[w]--,U[w]<1)delete U[w]})})}function $(j){let U=0;return j.forEach(function(L){L.forEach(function(D){U=Math.max(U,D.x+(D.colSpan||1))})}),U}function X(j){return j.length}function Y(j,U){let L=j.y,D=j.y-1+(j.rowSpan||1),B=U.y,w=U.y-1+(U.rowSpan||1),T=!(L>w||B>D),f=j.x,N1=j.x-1+(j.colSpan||1),p8=U.x,y=U.x-1+(U.colSpan||1),N=!(f>y||p8>N1);return T&&N}function Q(j,U,L){let D=Math.min(j.length-1,L),B={x:U,y:L};for(let w=0;w<=D;w++){let T=j[w];for(let f=0;f<T.length;f++)if(Y(B,T[f]))return!0}return!1}function K(j,U,L,D){for(let B=L;B<D;B++)if(Q(j,B,U))return!1;return!0}function G(j){j.forEach(function(U,L){U.forEach(function(D){for(let B=1;B<D.rowSpan;B++){let w=new $B(D);w.x=D.x,w.y=D.y+B,w.colSpan=D.colSpan,F(w,j[L+B])}})})}function q(j){for(let U=j.length-1;U>=0;U--){let L=j[U];for(let D=0;D<L.length;D++){let B=L[D];for(let w=1;w<B.colSpan;w++){let T=new JB;T.x=B.x+w,T.y=B.y,L.splice(D+1,0,T)}}}}function F(j,U){let L=0;while(L<U.length&&U[L].x<j.x)L++;U.splice(L,0,j)}function W(j){let U=X(j),L=$(j);ZB(`Max rows: ${U}; Max cols: ${L}`);for(let D=0;D<U;D++)for(let B=0;B<L;B++)if(!Q(j,B,D)){let w={x:B,y:D,colSpan:1,rowSpan:1};B++;while(B<L&&!Q(j,B,D))w.colSpan++,B++;let T=D+1;while(T<U&&K(j,T,w.x,w.x+w.colSpan))w.rowSpan++,T++;let f=new W$(w);f.x=w.x,f.y=w.y,eN(`Missing cell at ${f.y}-${f.x}.`),F(f,j[D])}}function H(j){return j.map(function(U){if(!Array.isArray(U)){let L=Object.keys(U)[0];if(U=U[L],Array.isArray(U))U=U.slice(),U.unshift(L);else U=[L,U]}return U.map(function(L){return new W$(L)})})}function V(j){let U=H(j);return J(U),W(U),G(U),q(U),U}fG.exports={makeTableLayout:V,layoutTable:J,addRowSpanCells:G,maxWidth:$,fillInTable:W,computeWidths:vG("colSpan","desiredWidth","x",1),computeHeights:vG("rowSpan","desiredHeight","y",1)}})()});var mG=z((xt,bG)=>{var z$=function(Z,J,$){let X=[];Z.forEach(function(Q){X.push(Q.draw(J))});let Y=X.join("");if(Y.length)$.push(Y)},c8=E9(),XB=G$(),H$=gG();class V$ extends Array{constructor(Z){super();const J=XB.mergeOptions(Z);if(Object.defineProperty(this,"options",{value:J,enumerable:J.debug}),J.debug){switch(typeof J.debug){case"boolean":c8.setDebugLevel(c8.WARN);break;case"number":c8.setDebugLevel(J.debug);break;case"string":c8.setDebugLevel(parseInt(J.debug,10));break;default:c8.setDebugLevel(c8.WARN),c8.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof J.debug}`)}Object.defineProperty(this,"messages",{get(){return c8.debugMessages()}})}}toString(){let Z=this,J=this.options.head&&this.options.head.length;if(J){if(Z=[this.options.head],this.length)Z.push.apply(Z,this)}else this.options.style.head=[];let $=H$.makeTableLayout(Z);$.forEach(function(Y){Y.forEach(function(Q){Q.mergeTableOptions(this.options,$)},this)},this),H$.computeWidths(this.options.colWidths,$),H$.computeHeights(this.options.rowHeights,$),$.forEach(function(Y){Y.forEach(function(Q){Q.init(this.options)},this)},this);let X=[];for(let Y=0;Y<$.length;Y++){let Q=$[Y],K=this.options.rowHeights[Y];if(Y===0||!this.options.style.compact||Y==1&&J)z$(Q,"top",X);for(let G=0;G<K;G++)z$(Q,G,X);if(Y+1==$.length)z$(Q,"bottom",X)}return X.join("\n")}get width(){return this.toString().split("\n")[0].length}}V$.reset=()=>c8.reset();bG.exports=V$});var w1=z((dt,pG)=>{var dG=function(Z,J){let $=0,X,Y="",Q="";for(;$<Z.length;$++)if(X=Z[$],Y+=X.open,Q+=X.close,J.includes(X.close))J=J.replace(X.rgx,X.close+X.open);return Y+J+Q},GB=function(Z,J){let $={has:Z,keys:J};return $.reset=Q1.reset.bind($),$.bold=Q1.bold.bind($),$.dim=Q1.dim.bind($),$.italic=Q1.italic.bind($),$.underline=Q1.underline.bind($),$.inverse=Q1.inverse.bind($),$.hidden=Q1.hidden.bind($),$.strikethrough=Q1.strikethrough.bind($),$.black=Q1.black.bind($),$.red=Q1.red.bind($),$.green=Q1.green.bind($),$.yellow=Q1.yellow.bind($),$.blue=Q1.blue.bind($),$.magenta=Q1.magenta.bind($),$.cyan=Q1.cyan.bind($),$.white=Q1.white.bind($),$.gray=Q1.gray.bind($),$.grey=Q1.grey.bind($),$.bgBlack=Q1.bgBlack.bind($),$.bgRed=Q1.bgRed.bind($),$.bgGreen=Q1.bgGreen.bind($),$.bgYellow=Q1.bgYellow.bind($),$.bgBlue=Q1.bgBlue.bind($),$.bgMagenta=Q1.bgMagenta.bind($),$.bgCyan=Q1.bgCyan.bind($),$.bgWhite=Q1.bgWhite.bind($),$},z1=function(Z,J){let $={open:`\x1B[${Z}m`,close:`\x1B[${J}m`,rgx:new RegExp(`\\x1b\\[${J}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return this.has.includes(Z)||(this.has.push(Z),this.keys.push($)),X===void 0?this:Q1.enabled?dG(this.keys,X+""):X+"";return X===void 0?GB([Z],[$]):Q1.enabled?dG([$],X+""):X+""}},{FORCE_COLOR:YB,NODE_DISABLE_COLORS:QB,TERM:KB}=process.env,Q1={enabled:!QB&&KB!=="dumb"&&YB!=="0",reset:z1(0,0),bold:z1(1,22),dim:z1(2,22),italic:z1(3,23),underline:z1(4,24),inverse:z1(7,27),hidden:z1(8,28),strikethrough:z1(9,29),black:z1(30,39),red:z1(31,39),green:z1(32,39),yellow:z1(33,39),blue:z1(34,39),magenta:z1(35,39),cyan:z1(36,39),white:z1(37,39),gray:z1(90,39),grey:z1(90,39),bgBlack:z1(40,49),bgRed:z1(41,49),bgGreen:z1(42,49),bgYellow:z1(43,49),bgBlue:z1(44,49),bgMagenta:z1(45,49),bgCyan:z1(46,49),bgWhite:z1(47,49)};pG.exports=Q1});var lG=z((pt,cG)=>{cG.exports=(Z,J)=>{if(Z.meta&&Z.name!=="escape")return;if(Z.ctrl){if(Z.name==="a")return"first";if(Z.name==="c")return"abort";if(Z.name==="d")return"abort";if(Z.name==="e")return"last";if(Z.name==="g")return"reset"}if(J){if(Z.name==="j")return"down";if(Z.name==="k")return"up"}if(Z.name==="return")return"submit";if(Z.name==="enter")return"submit";if(Z.name==="backspace")return"delete";if(Z.name==="delete")return"deleteForward";if(Z.name==="abort")return"abort";if(Z.name==="escape")return"exit";if(Z.name==="tab")return"next";if(Z.name==="pagedown")return"nextPage";if(Z.name==="pageup")return"prevPage";if(Z.name==="home")return"home";if(Z.name==="end")return"end";if(Z.name==="up")return"up";if(Z.name==="down")return"down";if(Z.name==="right")return"right";if(Z.name==="left")return"left";return!1}});var S9=z((ct,aG)=>{aG.exports=(Z)=>{const J=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(J,"g");return typeof Z==="string"?Z.replace($,""):Z}});var P1=z((lt,iG)=>{var R1=`${"\x1B"}[`,j$={to(Z,J){if(!J)return`${R1}${Z+1}G`;return`${R1}${J+1};${Z+1}H`},move(Z,J){let $="";if(Z<0)$+=`${R1}${-Z}D`;else if(Z>0)$+=`${R1}${Z}C`;if(J<0)$+=`${R1}${-J}A`;else if(J>0)$+=`${R1}${J}B`;return $},up:(Z=1)=>`${R1}${Z}A`,down:(Z=1)=>`${R1}${Z}B`,forward:(Z=1)=>`${R1}${Z}C`,backward:(Z=1)=>`${R1}${Z}D`,nextLine:(Z=1)=>`${R1}E`.repeat(Z),prevLine:(Z=1)=>`${R1}F`.repeat(Z),left:`${R1}G`,hide:`${R1}?25l`,show:`${R1}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},qB={up:(Z=1)=>`${R1}S`.repeat(Z),down:(Z=1)=>`${R1}T`.repeat(Z)},FB={screen:`${R1}2J`,up:(Z=1)=>`${R1}1J`.repeat(Z),down:(Z=1)=>`${R1}J`.repeat(Z),line:`${R1}2K`,lineEnd:`${R1}K`,lineStart:`${R1}1K`,lines(Z){let J="";for(let $=0;$<Z;$++)J+=this.line+($<Z-1?j$.up():"");if(Z)J+=j$.left;return J}};iG.exports={cursor:j$,scroll:qB,erase:FB,beep:"\x07"}});var oG=z((at,rG)=>{var WB=function(Z,J){var $=typeof Symbol!=="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(!$){if(Array.isArray(Z)||($=HB(Z))||J&&Z&&typeof Z.length==="number"){if($)Z=$;var X=0,Y=function q(){};return{s:Y,n:function q(){if(X>=Z.length)return{done:!0};return{done:!1,value:Z[X++]}},e:function q(F){throw F},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function q(){$=$.call(Z)},n:function q(){var F=$.next();return Q=F.done,F},e:function q(F){K=!0,G=F},f:function q(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},HB=function(Z,J){if(!Z)return;if(typeof Z==="string")return sG(Z,J);var $=Object.prototype.toString.call(Z).slice(8,-1);if($==="Object"&&Z.constructor)$=Z.constructor.name;if($==="Map"||$==="Set")return Array.from(Z);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return sG(Z,J)},sG=function(Z,J){if(J==null||J>Z.length)J=Z.length;for(var $=0,X=new Array(J);$<J;$++)X[$]=Z[$];return X},zB=S9(),tG=P1(),nG=tG.erase,VB=tG.cursor,UB=(Z)=>[...zB(Z)].length;rG.exports=function(Z,J){if(!J)return nG.line+VB.to(0);let $=0;const X=Z.split(/\r?\n/);var Y=WB(X),Q;try{for(Y.s();!(Q=Y.n()).done;){let K=Q.value;$+=1+Math.floor(Math.max(UB(K)-1,0)/J)}}catch(K){Y.e(K)}finally{Y.f()}return nG.lines($)}});var A$=z((it,eG)=>{var l7={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},MB={arrowUp:l7.arrowUp,arrowDown:l7.arrowDown,arrowLeft:l7.arrowLeft,arrowRight:l7.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},jB=process.platform==="win32"?MB:l7;eG.exports=jB});var Jq=z((st,Zq)=>{var m4=w1(),Q4=A$(),L$=Object.freeze({password:{scale:1,render:(Z)=>"*".repeat(Z.length)},emoji:{scale:2,render:(Z)=>"\uD83D\uDE03".repeat(Z.length)},invisible:{scale:0,render:(Z)=>""},default:{scale:1,render:(Z)=>`${Z}`}}),AB=(Z)=>L$[Z]||L$.default,a7=Object.freeze({aborted:m4.red(Q4.cross),done:m4.green(Q4.tick),exited:m4.yellow(Q4.cross),default:m4.cyan("?")}),LB=(Z,J,$)=>J?a7.aborted:$?a7.exited:Z?a7.done:a7.default,wB=(Z)=>m4.gray(Z?Q4.ellipsis:Q4.pointerSmall),RB=(Z,J)=>m4.gray(Z?J?Q4.pointerSmall:"+":Q4.line);Zq.exports={styles:L$,render:AB,symbols:a7,symbol:LB,delimiter:wB,item:RB}});var Xq=z((nt,$q)=>{var PB=S9();$q.exports=function(Z,J){let $=String(PB(Z)||"").split(/\r?\n/);if(!J)return $.length;return $.map((X)=>Math.ceil(X.length/J)).reduce((X,Y)=>X+Y)}});var Qq=z((tt,Yq)=>{Yq.exports=(Z,J={})=>{const $=Number.isSafeInteger(parseInt(J.margin))?new Array(parseInt(J.margin)).fill(" ").join(""):J.margin||"",X=J.width;return(Z||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var Gq=z((rt,Kq)=>{Kq.exports=(Z,J,$)=>{$=$||J;let X=Math.min(J-$,Z-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,J);return{startIndex:X,endIndex:Y}}});var Q8=z((ot,qq)=>{qq.exports={action:lG(),clear:oG(),style:Jq(),strip:S9(),figures:A$(),lines:Xq(),wrap:Qq(),entriesToDisplay:Gq()}});var a8=z((et,zq)=>{var Fq=import.meta.require("readline"),DB=Q8(),TB=DB.action,IB=import.meta.require("events"),Wq=P1(),EB=Wq.beep,NB=Wq.cursor,BB=w1();class Hq extends IB{constructor(Z={}){super();this.firstRender=!0,this.in=Z.stdin||process.stdin,this.out=Z.stdout||process.stdout,this.onRender=(Z.onRender||(()=>{return})).bind(this);const J=Fq.createInterface({input:this.in,escapeCodeTimeout:50});if(Fq.emitKeypressEvents(this.in,J),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=TB(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(NB.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);J.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(EB)}render(){if(this.onRender(BB),this.firstRender)this.firstRender=!1}}zq.exports=Hq});var Lq=z((Zr,Aq)=>{var Vq=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),q=G.value}catch(F){$(F);return}if(G.done)J(q);else Promise.resolve(q).then(X,Y)},Uq=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(q){Vq(Q,X,Y,K,G,"next",q)}function G(q){Vq(Q,X,Y,K,G,"throw",q)}K(void 0)})}},y9=w1(),CB=a8(),Mq=P1(),hB=Mq.erase,i7=Mq.cursor,k9=Q8(),w$=k9.style,R$=k9.clear,OB=k9.lines,SB=k9.figures;class jq extends CB{constructor(Z={}){super(Z);this.transform=w$.render(Z.style),this.scale=this.transform.scale,this.msg=Z.message,this.initial=Z.initial||"",this.validator=Z.validate||(()=>!0),this.value="",this.errorMsg=Z.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=R$("",this.out.columns),this.render()}set value(Z){if(!Z&&this.initial)this.placeholder=!0,this.rendered=y9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(Z);this._value=Z,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var Z=this;return Uq(function*(){let J=yield Z.validator(Z.value);if(typeof J==="string")Z.errorMsg=J,J=!1;Z.error=!J})()}submit(){var Z=this;return Uq(function*(){if(Z.value=Z.value||Z.initial,Z.cursorOffset=0,Z.cursor=Z.rendered.length,yield Z.validate(),Z.error){Z.red=!0,Z.fire(),Z.render();return}Z.done=!0,Z.aborted=!1,Z.fire(),Z.render(),Z.out.write("\n"),Z.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(Z){if(this.placeholder)return;this.cursor=this.cursor+Z,this.cursorOffset+=Z}_(Z,J){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${Z}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let Z=this.value.slice(0,this.cursor-1),J=this.value.slice(this.cursor);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor+1);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(i7.down(OB(this.outputError,this.out.columns)-1)+R$(this.outputError,this.out.columns));this.out.write(R$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[w$.symbol(this.done,this.aborted),y9.bold(this.msg),w$.delimiter(this.done),this.red?y9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":SB.pointerSmall} ${y9.red().italic(J)}`,"");this.out.write(hB.line+i7.to(0)+this.outputText+i7.save+this.outputError+i7.restore+i7.move(this.cursorOffset,0))}}Aq.exports=jq});var Tq=z((Jr,Dq)=>{var i8=w1(),yB=a8(),s7=Q8(),wq=s7.style,Rq=s7.clear,_9=s7.figures,kB=s7.wrap,_B=s7.entriesToDisplay,xB=P1(),vB=xB.cursor;class Pq extends yB{constructor(Z={}){super(Z);this.msg=Z.message,this.hint=Z.hint||"- Use arrow-keys. Return to submit.",this.warn=Z.warn||"- This option is disabled",this.cursor=Z.initial||0,this.choices=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),value:J&&(J.value===void 0?$:J.value),description:J&&J.description,selected:J&&J.selected,disabled:J&&J.disabled}}),this.optionsPerPage=Z.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Rq("",this.out.columns),this.render()}moveCursor(Z){this.cursor=Z,this.value=this.choices[Z].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(Z,J){if(Z===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(vB.hide);else this.out.write(Rq(this.outputText,this.out.columns));super.render();let Z=_B(this.cursor,this.choices.length,this.optionsPerPage),J=Z.startIndex,$=Z.endIndex;if(this.outputText=[wq.symbol(this.done,this.aborted),i8.bold(this.msg),wq.delimiter(!1),this.done?this.selection.title:this.selection.disabled?i8.yellow(this.warn):i8.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let X=J;X<$;X++){let Y,Q,K="",G=this.choices[X];if(X===J&&J>0)Q=_9.arrowUp;else if(X===$-1&&$<this.choices.length)Q=_9.arrowDown;else Q=" ";if(G.disabled)Y=this.cursor===X?i8.gray().underline(G.title):i8.strikethrough().gray(G.title),Q=(this.cursor===X?i8.bold().gray(_9.pointer)+" ":" ")+Q;else if(Y=this.cursor===X?i8.cyan().underline(G.title):G.title,Q=(this.cursor===X?i8.cyan(_9.pointer)+" ":" ")+Q,G.description&&this.cursor===X){if(K=` - ${G.description}`,Q.length+Y.length+K.length>=this.out.columns||G.description.split(/\r?\n/).length>1)K="\n"+kB(G.description,{margin:3,width:this.out.columns})}this.outputText+=`${Q} ${Y}${i8.gray(K)}\n`}}this.out.write(this.outputText)}}Dq.exports=Pq});var Oq=z(($r,hq)=>{var x9=w1(),fB=a8(),Nq=Q8(),Iq=Nq.style,gB=Nq.clear,Bq=P1(),Eq=Bq.cursor,bB=Bq.erase;class Cq extends fB{constructor(Z={}){super(Z);this.msg=Z.message,this.value=!!Z.initial,this.active=Z.active||"on",this.inactive=Z.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(Z,J){if(Z===" ")this.value=!this.value;else if(Z==="1")this.value=!0;else if(Z==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Eq.hide);else this.out.write(gB(this.outputText,this.out.columns));super.render(),this.outputText=[Iq.symbol(this.done,this.aborted),x9.bold(this.msg),Iq.delimiter(this.done),this.value?this.inactive:x9.cyan().underline(this.inactive),x9.gray("/"),this.value?x9.cyan().underline(this.active):this.active].join(" "),this.out.write(bB.line+Eq.to(0)+this.outputText)}}hq.exports=Cq});var T8=z((Xr,Sq)=>{class v9{constructor({token:Z,date:J,parts:$,locales:X}){this.token=Z,this.date=J||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const Z=this.parts.indexOf(this);return this.parts.find((J,$)=>$>Z&&J instanceof v9)}setTo(Z){}prev(){let Z=[].concat(this.parts).reverse();const J=Z.indexOf(this);return Z.find(($,X)=>X>J&&$ instanceof v9)}toString(){return String(this.date)}}Sq.exports=v9});var _q=z((Yr,kq)=>{var mB=T8();class yq extends mB{constructor(Z={}){super(Z)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let Z=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?Z.toUpperCase():Z}}kq.exports=yq});var fq=z((Qr,vq)=>{var uB=T8(),dB=(Z)=>{return Z=Z%10,Z===1?"st":Z===2?"nd":Z===3?"rd":"th"};class xq extends uB{constructor(Z={}){super(Z)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(Z){this.date.setDate(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getDate(),J=this.date.getDay();return this.token==="DD"?String(Z).padStart(2,"0"):this.token==="Do"?Z+dB(Z):this.token==="d"?J+1:this.token==="ddd"?this.locales.weekdaysShort[J]:this.token==="dddd"?this.locales.weekdays[J]:Z}}vq.exports=xq});var mq=z((Kr,bq)=>{var pB=T8();class gq extends pB{constructor(Z={}){super(Z)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(Z){this.date.setHours(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getHours();if(/h/.test(this.token))Z=Z%12||12;return this.token.length>1?String(Z).padStart(2,"0"):Z}}bq.exports=gq});var pq=z((Gr,dq)=>{var cB=T8();class uq extends cB{constructor(Z={}){super(Z)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(Z){this.date.setMilliseconds(parseInt(Z.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}dq.exports=uq});var aq=z((qr,lq)=>{var lB=T8();class cq extends lB{constructor(Z={}){super(Z)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(Z){this.date.setMinutes(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getMinutes();return this.token.length>1?String(Z).padStart(2,"0"):Z}}lq.exports=cq});var nq=z((Fr,sq)=>{var aB=T8();class iq extends aB{constructor(Z={}){super(Z)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(Z){Z=parseInt(Z.substr(-2))-1,this.date.setMonth(Z<0?0:Z)}toString(){let Z=this.date.getMonth(),J=this.token.length;return J===2?String(Z+1).padStart(2,"0"):J===3?this.locales.monthsShort[Z]:J===4?this.locales.months[Z]:String(Z+1)}}sq.exports=iq});var oq=z((Wr,rq)=>{var iB=T8();class tq extends iB{constructor(Z={}){super(Z)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(Z){this.date.setSeconds(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getSeconds();return this.token.length>1?String(Z).padStart(2,"0"):Z}}rq.exports=tq});var JF=z((Hr,ZF)=>{var sB=T8();class eq extends sB{constructor(Z={}){super(Z)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(Z){this.date.setFullYear(Z.substr(-4))}toString(){let Z=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?Z.substr(-2):Z}}ZF.exports=eq});var XF=z((zr,$F)=>{$F.exports={DatePart:T8(),Meridiem:_q(),Day:fq(),Hours:mq(),Milliseconds:pq(),Minutes:aq(),Month:nq(),Seconds:oq(),Year:JF()}});var UF=z((Vr,VF)=>{var YF=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),q=G.value}catch(F){$(F);return}if(G.done)J(q);else Promise.resolve(q).then(X,Y)},QF=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(q){YF(Q,X,Y,K,G,"next",q)}function G(q){YF(Q,X,Y,K,G,"throw",q)}K(void 0)})}},P$=w1(),nB=a8(),D$=Q8(),KF=D$.style,GF=D$.clear,tB=D$.figures,HF=P1(),rB=HF.erase,qF=HF.cursor,s8=XF(),FF=s8.DatePart,oB=s8.Meridiem,eB=s8.Day,ZC=s8.Hours,JC=s8.Milliseconds,$C=s8.Minutes,XC=s8.Month,YC=s8.Seconds,QC=s8.Year,KC=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,WF={1:({token:Z})=>Z.replace(/\\(.)/g,"$1"),2:(Z)=>new eB(Z),3:(Z)=>new XC(Z),4:(Z)=>new QC(Z),5:(Z)=>new oB(Z),6:(Z)=>new ZC(Z),7:(Z)=>new $C(Z),8:(Z)=>new YC(Z),9:(Z)=>new JC(Z)},GC={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class zF extends nB{constructor(Z={}){super(Z);this.msg=Z.message,this.cursor=0,this.typed="",this.locales=Object.assign(GC,Z.locales),this._date=Z.initial||new Date,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.mask=Z.mask||"YYYY-MM-DD HH:mm:ss",this.clear=GF("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(Z){if(Z)this._date.setTime(Z.getTime())}set mask(Z){let J;this.parts=[];while(J=KC.exec(Z)){let X=J.shift(),Y=J.findIndex((Q)=>Q!=null);this.parts.push(Y in WF?WF[Y]({token:J[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):J[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(Z){this.typed="",this.cursor=Z,this.fire()}reset(){this.moveCursor(this.parts.findIndex((Z)=>Z instanceof FF)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var Z=this;return QF(function*(){let J=yield Z.validator(Z.value);if(typeof J==="string")Z.errorMsg=J,J=!1;Z.error=!J})()}submit(){var Z=this;return QF(function*(){if(yield Z.validate(),Z.error){Z.color="red",Z.fire(),Z.render();return}Z.done=!0,Z.aborted=!1,Z.fire(),Z.render(),Z.out.write("\n"),Z.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let Z=this.parts[this.cursor].prev();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}right(){let Z=this.parts[this.cursor].next();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}next(){let Z=this.parts[this.cursor].next();this.moveCursor(Z?this.parts.indexOf(Z):this.parts.findIndex((J)=>J instanceof FF)),this.render()}_(Z){if(/\d/.test(Z))this.typed+=Z,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(qF.hide);else this.out.write(GF(this.outputText,this.out.columns));if(super.render(),this.outputText=[KF.symbol(this.done,this.aborted),P$.bold(this.msg),KF.delimiter(!1),this.parts.reduce((Z,J,$)=>Z.concat($===this.cursor&&!this.done?P$.cyan().underline(J.toString()):J),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":tB.pointerSmall} ${P$.red().italic(J)}`,"");this.out.write(rB.line+qF.to(0)+this.outputText)}}VF.exports=zF});var DF=z((Ur,PF)=>{var MF=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),q=G.value}catch(F){$(F);return}if(G.done)J(q);else Promise.resolve(q).then(X,Y)},jF=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(q){MF(Q,X,Y,K,G,"next",q)}function G(q){MF(Q,X,Y,K,G,"throw",q)}K(void 0)})}},f9=w1(),qC=a8(),wF=P1(),g9=wF.cursor,FC=wF.erase,b9=Q8(),T$=b9.style,WC=b9.figures,AF=b9.clear,HC=b9.lines,zC=/[0-9]/,I$=(Z)=>Z!==void 0,LF=(Z,J)=>{let $=Math.pow(10,J);return Math.round(Z*$)/$};class RF extends qC{constructor(Z={}){super(Z);this.transform=T$.render(Z.style),this.msg=Z.message,this.initial=I$(Z.initial)?Z.initial:"",this.float=!!Z.float,this.round=Z.round||2,this.inc=Z.increment||1,this.min=I$(Z.min)?Z.min:(-Infinity),this.max=I$(Z.max)?Z.max:Infinity,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(Z){if(!Z&&Z!==0)this.placeholder=!0,this.rendered=f9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${LF(Z,this.round)}`),this._value=LF(Z,this.round);this.fire()}get value(){return this._value}parse(Z){return this.float?parseFloat(Z):parseInt(Z)}valid(Z){return Z==="-"||Z==="."&&this.float||zC.test(Z)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let Z=this.value;this.value=Z!==""?Z:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var Z=this;return jF(function*(){let J=yield Z.validator(Z.value);if(typeof J==="string")Z.errorMsg=J,J=!1;Z.error=!J})()}submit(){var Z=this;return jF(function*(){if(yield Z.validate(),Z.error){Z.color="red",Z.fire(),Z.render();return}let J=Z.value;Z.value=J!==""?J:Z.initial,Z.done=!0,Z.aborted=!1,Z.error=!1,Z.fire(),Z.render(),Z.out.write("\n"),Z.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let Z=this.value.toString();if(Z.length===0)return this.bell();if(this.value=this.parse(Z=Z.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(Z,J){if(!this.valid(Z))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=Z,this.lastHit=$,this.color="cyan",Z===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(g9.down(HC(this.outputError,this.out.columns)-1)+AF(this.outputError,this.out.columns));this.out.write(AF(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[T$.symbol(this.done,this.aborted),f9.bold(this.msg),T$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?f9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":WC.pointerSmall} ${f9.red().italic(J)}`,"");this.out.write(FC.line+g9.to(0)+this.outputText+g9.save+this.outputError+g9.restore)}}PF.exports=RF});var E$=z((Mr,NF)=>{var I8=w1(),VC=P1(),UC=VC.cursor,MC=a8(),n7=Q8(),TF=n7.clear,D6=n7.figures,IF=n7.style,jC=n7.wrap,AC=n7.entriesToDisplay;class EF extends MC{constructor(Z={}){super(Z);if(this.msg=Z.message,this.cursor=Z.cursor||0,this.scrollIndex=Z.cursor||0,this.hint=Z.hint||"",this.warn=Z.warn||"- This option is disabled -",this.minSelected=Z.min,this.showMinError=!1,this.maxChoices=Z.max,this.instructions=Z.instructions,this.optionsPerPage=Z.optionsPerPage||10,this.value=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),description:J&&J.description,value:J&&(J.value===void 0?$:J.value),selected:J&&J.selected,disabled:J&&J.disabled}}),this.clear=TF("",this.out.columns),!Z.overrideRender)this.render()}reset(){this.value.map((Z)=>!Z.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((Z)=>Z.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const Z=this.value.filter((J)=>J.selected);if(this.minSelected&&Z.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const Z=this.value[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const Z=!this.value[this.cursor].selected;this.value.filter((J)=>!J.disabled).forEach((J)=>J.selected=Z),this.render()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else if(Z==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${D6.arrowUp}/${D6.arrowDown}: Highlight option\n`+` ${D6.arrowLeft}/${D6.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(Z,J,$,X){const Y=(J.selected?I8.green(D6.radioOn):D6.radioOff)+" "+X+" ";let Q,K;if(J.disabled)Q=Z===$?I8.gray().underline(J.title):I8.strikethrough().gray(J.title);else if(Q=Z===$?I8.cyan().underline(J.title):J.title,Z===$&&J.description){if(K=` - ${J.description}`,Y.length+Q.length+K.length>=this.out.columns||J.description.split(/\r?\n/).length>1)K="\n"+jC(J.description,{margin:Y.length,width:this.out.columns})}return Y+Q+I8.gray(K||"")}paginateOptions(Z){if(Z.length===0)return I8.red("No matches for this query.");let J=AC(this.cursor,Z.length,this.optionsPerPage),$=J.startIndex,X=J.endIndex,Y,Q=[];for(let K=$;K<X;K++){if(K===$&&$>0)Y=D6.arrowUp;else if(K===X-1&&X<Z.length)Y=D6.arrowDown;else Y=" ";Q.push(this.renderOption(this.cursor,Z[K],K,Y))}return"\n"+Q.join("\n")}renderOptions(Z){if(!this.done)return this.paginateOptions(Z);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[I8.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)Z.push(I8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(UC.hide);super.render();let Z=[IF.symbol(this.done,this.aborted),I8.bold(this.msg),IF.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=I8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.value),this.out.write(this.clear+Z),this.clear=TF(Z,this.out.columns)}}NF.exports=EF});var _F=z((jr,kF)=>{var BF=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),q=G.value}catch(F){$(F);return}if(G.done)J(q);else Promise.resolve(q).then(X,Y)},LC=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(q){BF(Q,X,Y,K,G,"next",q)}function G(q){BF(Q,X,Y,K,G,"throw",q)}K(void 0)})}},t7=w1(),wC=a8(),SF=P1(),RC=SF.erase,CF=SF.cursor,r7=Q8(),N$=r7.style,hF=r7.clear,B$=r7.figures,PC=r7.wrap,DC=r7.entriesToDisplay,OF=(Z,J)=>Z[J]&&(Z[J].value||Z[J].title||Z[J]),TC=(Z,J)=>Z[J]&&(Z[J].title||Z[J].value||Z[J]),IC=(Z,J)=>{const $=Z.findIndex((X)=>X.value===J||X.title===J);return $>-1?$:void 0};class yF extends wC{constructor(Z={}){super(Z);this.msg=Z.message,this.suggest=Z.suggest,this.choices=Z.choices,this.initial=typeof Z.initial==="number"?Z.initial:IC(Z.choices,Z.initial),this.select=this.initial||Z.cursor||0,this.i18n={noMatches:Z.noMatches||"no matches found"},this.fallback=Z.fallback||this.initial,this.clearFirst=Z.clearFirst||!1,this.suggestions=[],this.input="",this.limit=Z.limit||10,this.cursor=0,this.transform=N$.render(Z.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=hF("",this.out.columns),this.complete(this.render),this.render()}set fallback(Z){this._fb=Number.isSafeInteger(parseInt(Z))?parseInt(Z):Z}get fallback(){let Z;if(typeof this._fb==="number")Z=this.choices[this._fb];else if(typeof this._fb==="string")Z={title:this._fb};return Z||this._fb||{title:this.i18n.noMatches}}moveSelect(Z){if(this.select=Z,this.suggestions.length>0)this.value=OF(this.suggestions,Z);else this.value=this.fallback.value;this.fire()}complete(Z){var J=this;return LC(function*(){const $=J.completing=J.suggest(J.input,J.choices),X=yield $;if(J.completing!==$)return;J.suggestions=X.map((Q,K,G)=>({title:TC(G,K),value:OF(G,K),description:Q.description})),J.completing=!1;const Y=Math.max(X.length-1,0);J.moveSelect(Math.min(Y,J.select)),Z&&Z()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${Z}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let Z=this.input.slice(0,this.cursor-1),J=this.input.slice(this.cursor);this.input=`${Z}${J}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor+1);this.input=`${Z}${J}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(Z,J,$,X){let Y,Q=$?B$.arrowUp:X?B$.arrowDown:" ",K=J?t7.cyan().underline(Z.title):Z.title;if(Q=(J?t7.cyan(B$.pointer)+" ":" ")+Q,Z.description){if(Y=` - ${Z.description}`,Q.length+K.length+Y.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Y="\n"+PC(Z.description,{margin:3,width:this.out.columns})}return Q+" "+K+t7.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(CF.hide);else this.out.write(hF(this.outputText,this.out.columns));super.render();let Z=DC(this.select,this.choices.length,this.limit),J=Z.startIndex,$=Z.endIndex;if(this.outputText=[N$.symbol(this.done,this.aborted,this.exited),t7.bold(this.msg),N$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const X=this.suggestions.slice(J,$).map((Y,Q)=>this.renderOption(Y,this.select===Q+J,Q===0&&J>0,Q+J===$-1&&$<this.choices.length)).join("\n");this.outputText+="\n"+(X||t7.gray(this.fallback.title))}this.out.write(RC.line+CF.to(0)+this.outputText)}}kF.exports=yF});var bF=z((Ar,gF)=>{var n8=w1(),EC=P1(),NC=EC.cursor,BC=E$(),C$=Q8(),xF=C$.clear,vF=C$.style,u4=C$.figures;class fF extends BC{constructor(Z={}){Z.overrideRender=!0;super(Z);this.inputValue="",this.clear=xF("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const Z=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const J=this.filteredOptions.findIndex(($)=>$===Z);this.cursor=J<0?0:J,this.render()}handleSpaceToggle(){const Z=this.filteredOptions[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}handleInputChange(Z){this.inputValue=this.inputValue+Z,this.updateFilteredOptions()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else this.handleInputChange(Z)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
3
3
  Instructions:
4
- ${l4.arrowUp}/${l4.arrowDown}: Highlight option
5
- ${l4.arrowLeft}/${l4.arrowRight}/[space]: Toggle selection
4
+ ${u4.arrowUp}/${u4.arrowDown}: Highlight option
5
+ ${u4.arrowLeft}/${u4.arrowRight}/[space]: Toggle selection
6
6
  [a,b,c]/delete: Filter choices
7
7
  enter/return: Complete answer
8
8
  `}return""}renderCurrentInput(){return`
9
- Filtered results for: ${this.inputValue?this.inputValue:t8.gray("Enter something to filter")}\n`}renderOption(Z,J,$){let X;if(J.disabled)X=Z===$?t8.gray().underline(J.title):t8.strikethrough().gray(J.title);else X=Z===$?t8.cyan().underline(J.title):J.title;return(J.selected?t8.green(l4.radioOn):l4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[t8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)Z.push(t8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write($2.hide);super.render();let Z=[cW.symbol(this.done,this.aborted),t8.bold(this.msg),cW.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=t8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+Z),this.clear=pW(Z,this.out.columns)}}aW.exports=lW});var Jq=z((Ko,Zq)=>{var sW=w1(),Y2=i8(),rW=K8(),nW=rW.style,Q2=rW.clear,oW=P1(),K2=oW.erase,tW=oW.cursor;class eW extends Y2{constructor(Z={}){super(Z);this.msg=Z.message,this.value=Z.initial,this.initialValue=!!Z.initial,this.yesMsg=Z.yes||"yes",this.yesOption=Z.yesOption||"(Y/n)",this.noMsg=Z.no||"no",this.noOption=Z.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){if(Z.toLowerCase()==="y")return this.value=!0,this.submit();if(Z.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(tW.hide);else this.out.write(Q2(this.outputText,this.out.columns));super.render(),this.outputText=[nW.symbol(this.done,this.aborted),sW.bold(this.msg),nW.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:sW.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(K2.line+tW.to(0)+this.outputText)}}Zq.exports=eW});var Xq=z((Go,$q)=>{$q.exports={TextPrompt:NF(),SelectPrompt:SF(),TogglePrompt:gF(),DatePrompt:DW(),NumberPrompt:OW(),MultiselectPrompt:O$(),AutocompletePrompt:dW(),AutocompleteMultiselectPrompt:iW(),ConfirmPrompt:Jq()}});var Qq=z((Yq)=>{var N8=function(Z,J,$={}){return new Promise((X,Y)=>{const Q=new G2[Z](J),K=$.onAbort||c9,G=$.onSubmit||c9,F=$.onExit||c9;Q.on("state",J.onState||c9),Q.on("submit",(W)=>X(G(W))),Q.on("exit",(W)=>X(F(W))),Q.on("abort",(W)=>Y(K(W)))})},j0=Yq,G2=Xq(),c9=(Z)=>Z;j0.text=(Z)=>N8("TextPrompt",Z);j0.password=(Z)=>{return Z.style="password",j0.text(Z)};j0.invisible=(Z)=>{return Z.style="invisible",j0.text(Z)};j0.number=(Z)=>N8("NumberPrompt",Z);j0.date=(Z)=>N8("DatePrompt",Z);j0.confirm=(Z)=>N8("ConfirmPrompt",Z);j0.list=(Z)=>{const J=Z.separator||",";return N8("TextPrompt",Z,{onSubmit:($)=>$.split(J).map((X)=>X.trim())})};j0.toggle=(Z)=>N8("TogglePrompt",Z);j0.select=(Z)=>N8("SelectPrompt",Z);j0.multiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return N8("MultiselectPrompt",Z,{onAbort:J,onSubmit:J})};j0.autocompleteMultiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return N8("AutocompleteMultiselectPrompt",Z,{onAbort:J,onSubmit:J})};var F2=(Z,J)=>Promise.resolve(J.filter(($)=>$.title.slice(0,Z.length).toLowerCase()===Z.toLowerCase()));j0.autocomplete=(Z)=>{return Z.suggest=Z.suggest||F2,Z.choices=[].concat(Z.choices||[]),N8("AutocompletePrompt",Z)}});var Uq=z((Wo,zq)=>{var Kq=function(Z,J){var $=Object.keys(Z);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(Z);if(J)X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(Z,Y).enumerable});$.push.apply($,X)}return $},Gq=function(Z){for(var J=1;J<arguments.length;J++){var $=arguments[J]!=null?arguments[J]:{};if(J%2)Kq(Object($),!0).forEach(function(X){W2(Z,X,$[X])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(Z,Object.getOwnPropertyDescriptors($));else Kq(Object($)).forEach(function(X){Object.defineProperty(Z,X,Object.getOwnPropertyDescriptor($,X))})}return Z},W2=function(Z,J,$){if(J in Z)Object.defineProperty(Z,J,{value:$,enumerable:!0,configurable:!0,writable:!0});else Z[J]=$;return Z},q2=function(Z,J){var $=typeof Symbol!=="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(!$){if(Array.isArray(Z)||($=H2(Z))||J&&Z&&typeof Z.length==="number"){if($)Z=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=Z.length)return{done:!0};return{done:!1,value:Z[X++]}},e:function F(W){throw W},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function F(){$=$.call(Z)},n:function F(){var W=$.next();return Q=W.done,W},e:function F(W){K=!0,G=W},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},H2=function(Z,J){if(!Z)return;if(typeof Z==="string")return Fq(Z,J);var $=Object.prototype.toString.call(Z).slice(8,-1);if($==="Object"&&Z.constructor)$=Z.constructor.name;if($==="Map"||$==="Set")return Array.from(Z);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return Fq(Z,J)},Fq=function(Z,J){if(J==null||J>Z.length)J=Z.length;for(var $=0,X=new Array(J);$<J;$++)X[$]=Z[$];return X},Wq=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),F=G.value}catch(W){$(W);return}if(G.done)J(F);else Promise.resolve(F).then(X,Y)},qq=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(F){Wq(Q,X,Y,K,G,"next",F)}function G(F){Wq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},N6=function(){return x$.apply(this,arguments)},x$=function(){return x$=qq(function*(Z=[],{onSubmit:J=Hq,onCancel:$=Hq}={}){const X={},Y=N6._override||{};Z=[].concat(Z);let Q,K,G,F,W,q;const H=function(){var D=qq(function*(N,w,T=!1){if(!T&&N.validate&&N.validate(w)!==!0)return;return N.format?yield N.format(w,X):w});return function N(w,T){return D.apply(this,arguments)}}();var U=q2(Z),j;try{for(U.s();!(j=U.n()).done;){K=j.value;var V=K;if(F=V.name,W=V.type,typeof W==="function")W=yield W(Q,Gq({},X),K),K.type=W;if(!W)continue;for(let D in K){if(z2.includes(D))continue;let N=K[D];K[D]=typeof N==="function"?yield N(Q,Gq({},X),q):N}if(q=K,typeof K.message!=="string")throw new Error("prompt message is required");var L=K;if(F=L.name,W=L.type,_$[W]===void 0)throw new Error(`prompt type (${W}) is not defined`);if(Y[K.name]!==void 0){if(Q=yield H(K,Y[K.name]),Q!==void 0){X[F]=Q;continue}}try{Q=N6._injected?U2(N6._injected,K.initial):yield _$[W](K),X[F]=Q=yield H(K,Q,!0),G=yield J(K,Q,X)}catch(D){G=!(yield $(K,X))}if(G)return X}}catch(D){U.e(D)}finally{U.f()}return X}),x$.apply(this,arguments)},U2=function(Z,J){const $=Z.shift();if($ instanceof Error)throw $;return $===void 0?J:$},V2=function(Z){N6._injected=(N6._injected||[]).concat(Z)},M2=function(Z){N6._override=Object.assign({},Z)},_$=Qq(),z2=["suggest","format","onState","validate","onRender","type"],Hq=()=>{};zq.exports=Object.assign(N6,{prompt:N6,prompts:_$,inject:V2,override:M2})});var Mq=z((qo,Vq)=>{Vq.exports=(Z,J)=>{if(Z.meta&&Z.name!=="escape")return;if(Z.ctrl){if(Z.name==="a")return"first";if(Z.name==="c")return"abort";if(Z.name==="d")return"abort";if(Z.name==="e")return"last";if(Z.name==="g")return"reset"}if(J){if(Z.name==="j")return"down";if(Z.name==="k")return"up"}if(Z.name==="return")return"submit";if(Z.name==="enter")return"submit";if(Z.name==="backspace")return"delete";if(Z.name==="delete")return"deleteForward";if(Z.name==="abort")return"abort";if(Z.name==="escape")return"exit";if(Z.name==="tab")return"next";if(Z.name==="pagedown")return"nextPage";if(Z.name==="pageup")return"prevPage";if(Z.name==="home")return"home";if(Z.name==="end")return"end";if(Z.name==="up")return"up";if(Z.name==="down")return"down";if(Z.name==="right")return"right";if(Z.name==="left")return"left";return!1}});var l9=z((Ho,jq)=>{jq.exports=(Z)=>{const J=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(J,"g");return typeof Z==="string"?Z.replace($,""):Z}});var wq=z((zo,Lq)=>{var j2=l9(),{erase:Aq,cursor:A2}=P1(),L2=(Z)=>[...j2(Z)].length;Lq.exports=function(Z,J){if(!J)return Aq.line+A2.to(0);let $=0;const X=Z.split(/\r?\n/);for(let Y of X)$+=1+Math.floor(Math.max(L2(Y)-1,0)/J);return Aq.lines($)}});var v$=z((Uo,Rq)=>{var $5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},w2={arrowUp:$5.arrowUp,arrowDown:$5.arrowDown,arrowLeft:$5.arrowLeft,arrowRight:$5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},R2=process.platform==="win32"?w2:$5;Rq.exports=R2});var Dq=z((Vo,Pq)=>{var a4=w1(),W4=v$(),f$=Object.freeze({password:{scale:1,render:(Z)=>"*".repeat(Z.length)},emoji:{scale:2,render:(Z)=>"\uD83D\uDE03".repeat(Z.length)},invisible:{scale:0,render:(Z)=>""},default:{scale:1,render:(Z)=>`${Z}`}}),P2=(Z)=>f$[Z]||f$.default,X5=Object.freeze({aborted:a4.red(W4.cross),done:a4.green(W4.tick),exited:a4.yellow(W4.cross),default:a4.cyan("?")}),D2=(Z,J,$)=>J?X5.aborted:$?X5.exited:Z?X5.done:X5.default,T2=(Z)=>a4.gray(Z?W4.ellipsis:W4.pointerSmall),I2=(Z,J)=>a4.gray(Z?J?W4.pointerSmall:"+":W4.line);Pq.exports={styles:f$,render:P2,symbols:X5,symbol:D2,delimiter:T2,item:I2}});var Iq=z((Mo,Tq)=>{var E2=l9();Tq.exports=function(Z,J){let $=String(E2(Z)||"").split(/\r?\n/);if(!J)return $.length;return $.map((X)=>Math.ceil(X.length/J)).reduce((X,Y)=>X+Y)}});var Nq=z((jo,Eq)=>{Eq.exports=(Z,J={})=>{const $=Number.isSafeInteger(parseInt(J.margin))?new Array(parseInt(J.margin)).fill(" ").join(""):J.margin||"",X=J.width;return(Z||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var Cq=z((Ao,Bq)=>{Bq.exports=(Z,J,$)=>{$=$||J;let X=Math.min(J-$,Z-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,J);return{startIndex:X,endIndex:Y}}});var G8=z((Lo,hq)=>{hq.exports={action:Mq(),clear:wq(),style:Dq(),strip:l9(),figures:v$(),lines:Iq(),wrap:Nq(),entriesToDisplay:Cq()}});var r8=z((wo,kq)=>{var Oq=import.meta.require("readline"),{action:N2}=G8(),B2=import.meta.require("events"),{beep:C2,cursor:h2}=P1(),O2=w1();class Sq extends B2{constructor(Z={}){super();this.firstRender=!0,this.in=Z.stdin||process.stdin,this.out=Z.stdout||process.stdout,this.onRender=(Z.onRender||(()=>{return})).bind(this);const J=Oq.createInterface({input:this.in,escapeCodeTimeout:50});if(Oq.emitKeypressEvents(this.in,J),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=N2(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(h2.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);J.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(C2)}render(){if(this.onRender(O2),this.firstRender)this.firstRender=!1}}kq.exports=Sq});var xq=z((Ro,_q)=>{var a9=w1(),S2=r8(),{erase:k2,cursor:Y5}=P1(),{style:g$,clear:b$,lines:y2,figures:_2}=G8();class yq extends S2{constructor(Z={}){super(Z);this.transform=g$.render(Z.style),this.scale=this.transform.scale,this.msg=Z.message,this.initial=Z.initial||"",this.validator=Z.validate||(()=>!0),this.value="",this.errorMsg=Z.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=b$("",this.out.columns),this.render()}set value(Z){if(!Z&&this.initial)this.placeholder=!0,this.rendered=a9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(Z);this._value=Z,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let Z=await this.validator(this.value);if(typeof Z==="string")this.errorMsg=Z,Z=!1;this.error=!Z}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(Z){if(this.placeholder)return;this.cursor=this.cursor+Z,this.cursorOffset+=Z}_(Z,J){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${Z}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let Z=this.value.slice(0,this.cursor-1),J=this.value.slice(this.cursor);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor+1);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(Y5.down(y2(this.outputError,this.out.columns)-1)+b$(this.outputError,this.out.columns));this.out.write(b$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[g$.symbol(this.done,this.aborted),a9.bold(this.msg),g$.delimiter(this.done),this.red?a9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":_2.pointerSmall} ${a9.red().italic(J)}`,"");this.out.write(k2.line+Y5.to(0)+this.outputText+Y5.save+this.outputError+Y5.restore+Y5.move(this.cursorOffset,0))}}_q.exports=yq});var mq=z((Po,bq)=>{var o8=w1(),x2=r8(),{style:vq,clear:fq,figures:i9,wrap:v2,entriesToDisplay:f2}=G8(),{cursor:g2}=P1();class gq extends x2{constructor(Z={}){super(Z);this.msg=Z.message,this.hint=Z.hint||"- Use arrow-keys. Return to submit.",this.warn=Z.warn||"- This option is disabled",this.cursor=Z.initial||0,this.choices=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),value:J&&(J.value===void 0?$:J.value),description:J&&J.description,selected:J&&J.selected,disabled:J&&J.disabled}}),this.optionsPerPage=Z.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=fq("",this.out.columns),this.render()}moveCursor(Z){this.cursor=Z,this.value=this.choices[Z].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(Z,J){if(Z===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(g2.hide);else this.out.write(fq(this.outputText,this.out.columns));super.render();let{startIndex:Z,endIndex:J}=f2(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[vq.symbol(this.done,this.aborted),o8.bold(this.msg),vq.delimiter(!1),this.done?this.selection.title:this.selection.disabled?o8.yellow(this.warn):o8.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let $=Z;$<J;$++){let X,Y,Q="",K=this.choices[$];if($===Z&&Z>0)Y=i9.arrowUp;else if($===J-1&&J<this.choices.length)Y=i9.arrowDown;else Y=" ";if(K.disabled)X=this.cursor===$?o8.gray().underline(K.title):o8.strikethrough().gray(K.title),Y=(this.cursor===$?o8.bold().gray(i9.pointer)+" ":" ")+Y;else if(X=this.cursor===$?o8.cyan().underline(K.title):K.title,Y=(this.cursor===$?o8.cyan(i9.pointer)+" ":" ")+Y,K.description&&this.cursor===$){if(Q=` - ${K.description}`,Y.length+X.length+Q.length>=this.out.columns||K.description.split(/\r?\n/).length>1)Q="\n"+v2(K.description,{margin:3,width:this.out.columns})}this.outputText+=`${Y} ${X}${o8.gray(Q)}\n`}}this.out.write(this.outputText)}}bq.exports=gq});var lq=z((Do,cq)=>{var s9=w1(),b2=r8(),{style:uq,clear:m2}=G8(),{cursor:dq,erase:u2}=P1();class pq extends b2{constructor(Z={}){super(Z);this.msg=Z.message,this.value=!!Z.initial,this.active=Z.active||"on",this.inactive=Z.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(Z,J){if(Z===" ")this.value=!this.value;else if(Z==="1")this.value=!0;else if(Z==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(dq.hide);else this.out.write(m2(this.outputText,this.out.columns));super.render(),this.outputText=[uq.symbol(this.done,this.aborted),s9.bold(this.msg),uq.delimiter(this.done),this.value?this.inactive:s9.cyan().underline(this.inactive),s9.gray("/"),this.value?s9.cyan().underline(this.active):this.active].join(" "),this.out.write(u2.line+dq.to(0)+this.outputText)}}cq.exports=pq});var B8=z((To,aq)=>{class n9{constructor({token:Z,date:J,parts:$,locales:X}){this.token=Z,this.date=J||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const Z=this.parts.indexOf(this);return this.parts.find((J,$)=>$>Z&&J instanceof n9)}setTo(Z){}prev(){let Z=[].concat(this.parts).reverse();const J=Z.indexOf(this);return Z.find(($,X)=>X>J&&$ instanceof n9)}toString(){return String(this.date)}}aq.exports=n9});var nq=z((Io,sq)=>{var d2=B8();class iq extends d2{constructor(Z={}){super(Z)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let Z=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?Z.toUpperCase():Z}}sq.exports=iq});var oq=z((Eo,rq)=>{var p2=B8(),c2=(Z)=>{return Z=Z%10,Z===1?"st":Z===2?"nd":Z===3?"rd":"th"};class tq extends p2{constructor(Z={}){super(Z)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(Z){this.date.setDate(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getDate(),J=this.date.getDay();return this.token==="DD"?String(Z).padStart(2,"0"):this.token==="Do"?Z+c2(Z):this.token==="d"?J+1:this.token==="ddd"?this.locales.weekdaysShort[J]:this.token==="dddd"?this.locales.weekdays[J]:Z}}rq.exports=tq});var JH=z((No,ZH)=>{var l2=B8();class eq extends l2{constructor(Z={}){super(Z)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(Z){this.date.setHours(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getHours();if(/h/.test(this.token))Z=Z%12||12;return this.token.length>1?String(Z).padStart(2,"0"):Z}}ZH.exports=eq});var YH=z((Bo,XH)=>{var a2=B8();class $H extends a2{constructor(Z={}){super(Z)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(Z){this.date.setMilliseconds(parseInt(Z.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}XH.exports=$H});var GH=z((Co,KH)=>{var i2=B8();class QH extends i2{constructor(Z={}){super(Z)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(Z){this.date.setMinutes(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getMinutes();return this.token.length>1?String(Z).padStart(2,"0"):Z}}KH.exports=QH});var qH=z((ho,WH)=>{var s2=B8();class FH extends s2{constructor(Z={}){super(Z)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(Z){Z=parseInt(Z.substr(-2))-1,this.date.setMonth(Z<0?0:Z)}toString(){let Z=this.date.getMonth(),J=this.token.length;return J===2?String(Z+1).padStart(2,"0"):J===3?this.locales.monthsShort[Z]:J===4?this.locales.months[Z]:String(Z+1)}}WH.exports=FH});var UH=z((Oo,zH)=>{var n2=B8();class HH extends n2{constructor(Z={}){super(Z)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(Z){this.date.setSeconds(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getSeconds();return this.token.length>1?String(Z).padStart(2,"0"):Z}}zH.exports=HH});var jH=z((So,MH)=>{var t2=B8();class VH extends t2{constructor(Z={}){super(Z)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(Z){this.date.setFullYear(Z.substr(-4))}toString(){let Z=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?Z.substr(-2):Z}}MH.exports=VH});var LH=z((ko,AH)=>{AH.exports={DatePart:B8(),Meridiem:nq(),Day:oq(),Hours:JH(),Milliseconds:YH(),Minutes:GH(),Month:qH(),Seconds:UH(),Year:jH()}});var NH=z((yo,EH)=>{var m$=w1(),r2=r8(),{style:wH,clear:RH,figures:o2}=G8(),{erase:e2,cursor:PH}=P1(),{DatePart:DH,Meridiem:Zh,Day:Jh,Hours:$h,Milliseconds:Xh,Minutes:Yh,Month:Qh,Seconds:Kh,Year:Gh}=LH(),Fh=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,TH={1:({token:Z})=>Z.replace(/\\(.)/g,"$1"),2:(Z)=>new Jh(Z),3:(Z)=>new Qh(Z),4:(Z)=>new Gh(Z),5:(Z)=>new Zh(Z),6:(Z)=>new $h(Z),7:(Z)=>new Yh(Z),8:(Z)=>new Kh(Z),9:(Z)=>new Xh(Z)},Wh={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class IH extends r2{constructor(Z={}){super(Z);this.msg=Z.message,this.cursor=0,this.typed="",this.locales=Object.assign(Wh,Z.locales),this._date=Z.initial||new Date,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.mask=Z.mask||"YYYY-MM-DD HH:mm:ss",this.clear=RH("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(Z){if(Z)this._date.setTime(Z.getTime())}set mask(Z){let J;this.parts=[];while(J=Fh.exec(Z)){let X=J.shift(),Y=J.findIndex((Q)=>Q!=null);this.parts.push(Y in TH?TH[Y]({token:J[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):J[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(Z){this.typed="",this.cursor=Z,this.fire()}reset(){this.moveCursor(this.parts.findIndex((Z)=>Z instanceof DH)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let Z=await this.validator(this.value);if(typeof Z==="string")this.errorMsg=Z,Z=!1;this.error=!Z}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let Z=this.parts[this.cursor].prev();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}right(){let Z=this.parts[this.cursor].next();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}next(){let Z=this.parts[this.cursor].next();this.moveCursor(Z?this.parts.indexOf(Z):this.parts.findIndex((J)=>J instanceof DH)),this.render()}_(Z){if(/\d/.test(Z))this.typed+=Z,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(PH.hide);else this.out.write(RH(this.outputText,this.out.columns));if(super.render(),this.outputText=[wH.symbol(this.done,this.aborted),m$.bold(this.msg),wH.delimiter(!1),this.parts.reduce((Z,J,$)=>Z.concat($===this.cursor&&!this.done?m$.cyan().underline(J.toString()):J),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":o2.pointerSmall} ${m$.red().italic(J)}`,"");this.out.write(e2.line+PH.to(0)+this.outputText)}}EH.exports=IH});var SH=z((_o,OH)=>{var t9=w1(),qh=r8(),{cursor:r9,erase:Hh}=P1(),{style:u$,figures:zh,clear:BH,lines:Uh}=G8(),Vh=/[0-9]/,d$=(Z)=>Z!==void 0,CH=(Z,J)=>{let $=Math.pow(10,J);return Math.round(Z*$)/$};class hH extends qh{constructor(Z={}){super(Z);this.transform=u$.render(Z.style),this.msg=Z.message,this.initial=d$(Z.initial)?Z.initial:"",this.float=!!Z.float,this.round=Z.round||2,this.inc=Z.increment||1,this.min=d$(Z.min)?Z.min:(-Infinity),this.max=d$(Z.max)?Z.max:Infinity,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(Z){if(!Z&&Z!==0)this.placeholder=!0,this.rendered=t9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${CH(Z,this.round)}`),this._value=CH(Z,this.round);this.fire()}get value(){return this._value}parse(Z){return this.float?parseFloat(Z):parseInt(Z)}valid(Z){return Z==="-"||Z==="."&&this.float||Vh.test(Z)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let Z=this.value;this.value=Z!==""?Z:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let Z=await this.validator(this.value);if(typeof Z==="string")this.errorMsg=Z,Z=!1;this.error=!Z}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let Z=this.value;this.value=Z!==""?Z:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let Z=this.value.toString();if(Z.length===0)return this.bell();if(this.value=this.parse(Z=Z.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(Z,J){if(!this.valid(Z))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=Z,this.lastHit=$,this.color="cyan",Z===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(r9.down(Uh(this.outputError,this.out.columns)-1)+BH(this.outputError,this.out.columns));this.out.write(BH(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[u$.symbol(this.done,this.aborted),t9.bold(this.msg),u$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?t9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":zh.pointerSmall} ${t9.red().italic(J)}`,"");this.out.write(Hh.line+r9.to(0)+this.outputText+r9.save+this.outputError+r9.restore)}}OH.exports=hH});var p$=z((xo,xH)=>{var C8=w1(),{cursor:Mh}=P1(),jh=r8(),{clear:kH,figures:B6,style:yH,wrap:Ah,entriesToDisplay:Lh}=G8();class _H extends jh{constructor(Z={}){super(Z);if(this.msg=Z.message,this.cursor=Z.cursor||0,this.scrollIndex=Z.cursor||0,this.hint=Z.hint||"",this.warn=Z.warn||"- This option is disabled -",this.minSelected=Z.min,this.showMinError=!1,this.maxChoices=Z.max,this.instructions=Z.instructions,this.optionsPerPage=Z.optionsPerPage||10,this.value=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),description:J&&J.description,value:J&&(J.value===void 0?$:J.value),selected:J&&J.selected,disabled:J&&J.disabled}}),this.clear=kH("",this.out.columns),!Z.overrideRender)this.render()}reset(){this.value.map((Z)=>!Z.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((Z)=>Z.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const Z=this.value.filter((J)=>J.selected);if(this.minSelected&&Z.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const Z=this.value[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const Z=!this.value[this.cursor].selected;this.value.filter((J)=>!J.disabled).forEach((J)=>J.selected=Z),this.render()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else if(Z==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${B6.arrowUp}/${B6.arrowDown}: Highlight option\n`+` ${B6.arrowLeft}/${B6.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(Z,J,$,X){const Y=(J.selected?C8.green(B6.radioOn):B6.radioOff)+" "+X+" ";let Q,K;if(J.disabled)Q=Z===$?C8.gray().underline(J.title):C8.strikethrough().gray(J.title);else if(Q=Z===$?C8.cyan().underline(J.title):J.title,Z===$&&J.description){if(K=` - ${J.description}`,Y.length+Q.length+K.length>=this.out.columns||J.description.split(/\r?\n/).length>1)K="\n"+Ah(J.description,{margin:Y.length,width:this.out.columns})}return Y+Q+C8.gray(K||"")}paginateOptions(Z){if(Z.length===0)return C8.red("No matches for this query.");let{startIndex:J,endIndex:$}=Lh(this.cursor,Z.length,this.optionsPerPage),X,Y=[];for(let Q=J;Q<$;Q++){if(Q===J&&J>0)X=B6.arrowUp;else if(Q===$-1&&$<Z.length)X=B6.arrowDown;else X=" ";Y.push(this.renderOption(this.cursor,Z[Q],Q,X))}return"\n"+Y.join("\n")}renderOptions(Z){if(!this.done)return this.paginateOptions(Z);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[C8.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)Z.push(C8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(Mh.hide);super.render();let Z=[yH.symbol(this.done,this.aborted),C8.bold(this.msg),yH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=C8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.value),this.out.write(this.clear+Z),this.clear=kH(Z,this.out.columns)}}xH.exports=_H});var uH=z((vo,mH)=>{var Q5=w1(),wh=r8(),{erase:Rh,cursor:vH}=P1(),{style:c$,clear:fH,figures:l$,wrap:Ph,entriesToDisplay:Dh}=G8(),gH=(Z,J)=>Z[J]&&(Z[J].value||Z[J].title||Z[J]),Th=(Z,J)=>Z[J]&&(Z[J].title||Z[J].value||Z[J]),Ih=(Z,J)=>{const $=Z.findIndex((X)=>X.value===J||X.title===J);return $>-1?$:void 0};class bH extends wh{constructor(Z={}){super(Z);this.msg=Z.message,this.suggest=Z.suggest,this.choices=Z.choices,this.initial=typeof Z.initial==="number"?Z.initial:Ih(Z.choices,Z.initial),this.select=this.initial||Z.cursor||0,this.i18n={noMatches:Z.noMatches||"no matches found"},this.fallback=Z.fallback||this.initial,this.clearFirst=Z.clearFirst||!1,this.suggestions=[],this.input="",this.limit=Z.limit||10,this.cursor=0,this.transform=c$.render(Z.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=fH("",this.out.columns),this.complete(this.render),this.render()}set fallback(Z){this._fb=Number.isSafeInteger(parseInt(Z))?parseInt(Z):Z}get fallback(){let Z;if(typeof this._fb==="number")Z=this.choices[this._fb];else if(typeof this._fb==="string")Z={title:this._fb};return Z||this._fb||{title:this.i18n.noMatches}}moveSelect(Z){if(this.select=Z,this.suggestions.length>0)this.value=gH(this.suggestions,Z);else this.value=this.fallback.value;this.fire()}async complete(Z){const J=this.completing=this.suggest(this.input,this.choices),$=await J;if(this.completing!==J)return;this.suggestions=$.map((Y,Q,K)=>({title:Th(K,Q),value:gH(K,Q),description:Y.description})),this.completing=!1;const X=Math.max($.length-1,0);this.moveSelect(Math.min(X,this.select)),Z&&Z()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${Z}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let Z=this.input.slice(0,this.cursor-1),J=this.input.slice(this.cursor);this.input=`${Z}${J}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor+1);this.input=`${Z}${J}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(Z,J,$,X){let Y,Q=$?l$.arrowUp:X?l$.arrowDown:" ",K=J?Q5.cyan().underline(Z.title):Z.title;if(Q=(J?Q5.cyan(l$.pointer)+" ":" ")+Q,Z.description){if(Y=` - ${Z.description}`,Q.length+K.length+Y.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Y="\n"+Ph(Z.description,{margin:3,width:this.out.columns})}return Q+" "+K+Q5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(vH.hide);else this.out.write(fH(this.outputText,this.out.columns));super.render();let{startIndex:Z,endIndex:J}=Dh(this.select,this.choices.length,this.limit);if(this.outputText=[c$.symbol(this.done,this.aborted,this.exited),Q5.bold(this.msg),c$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const $=this.suggestions.slice(Z,J).map((X,Y)=>this.renderOption(X,this.select===Y+Z,Y===0&&Z>0,Y+Z===J-1&&J<this.choices.length)).join("\n");this.outputText+="\n"+($||Q5.gray(this.fallback.title))}this.out.write(Rh.line+vH.to(0)+this.outputText)}}mH.exports=bH});var aH=z((fo,lH)=>{var e8=w1(),{cursor:Eh}=P1(),Nh=p$(),{clear:dH,style:pH,figures:i4}=G8();class cH extends Nh{constructor(Z={}){Z.overrideRender=!0;super(Z);this.inputValue="",this.clear=dH("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const Z=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const J=this.filteredOptions.findIndex(($)=>$===Z);this.cursor=J<0?0:J,this.render()}handleSpaceToggle(){const Z=this.filteredOptions[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}handleInputChange(Z){this.inputValue=this.inputValue+Z,this.updateFilteredOptions()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else this.handleInputChange(Z)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
9
+ Filtered results for: ${this.inputValue?this.inputValue:n8.gray("Enter something to filter")}\n`}renderOption(Z,J,$){let X;if(J.disabled)X=Z===$?n8.gray().underline(J.title):n8.strikethrough().gray(J.title);else X=Z===$?n8.cyan().underline(J.title):J.title;return(J.selected?n8.green(u4.radioOn):u4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[n8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)Z.push(n8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(NC.hide);super.render();let Z=[vF.symbol(this.done,this.aborted),n8.bold(this.msg),vF.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=n8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+Z),this.clear=xF(Z,this.out.columns)}}gF.exports=fF});var iF=z((Lr,aF)=>{var mF=w1(),CC=a8(),pF=Q8(),uF=pF.style,hC=pF.clear,cF=P1(),OC=cF.erase,dF=cF.cursor;class lF extends CC{constructor(Z={}){super(Z);this.msg=Z.message,this.value=Z.initial,this.initialValue=!!Z.initial,this.yesMsg=Z.yes||"yes",this.yesOption=Z.yesOption||"(Y/n)",this.noMsg=Z.no||"no",this.noOption=Z.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){if(Z.toLowerCase()==="y")return this.value=!0,this.submit();if(Z.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(dF.hide);else this.out.write(hC(this.outputText,this.out.columns));super.render(),this.outputText=[uF.symbol(this.done,this.aborted),mF.bold(this.msg),uF.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:mF.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(OC.line+dF.to(0)+this.outputText)}}aF.exports=lF});var nF=z((wr,sF)=>{sF.exports={TextPrompt:Lq(),SelectPrompt:Tq(),TogglePrompt:Oq(),DatePrompt:UF(),NumberPrompt:DF(),MultiselectPrompt:E$(),AutocompletePrompt:_F(),AutocompleteMultiselectPrompt:bF(),ConfirmPrompt:iF()}});var rF=z((tF)=>{var E8=function(Z,J,$={}){return new Promise((X,Y)=>{const Q=new SC[Z](J),K=$.onAbort||m9,G=$.onSubmit||m9,q=$.onExit||m9;Q.on("state",J.onState||m9),Q.on("submit",(F)=>X(G(F))),Q.on("exit",(F)=>X(q(F))),Q.on("abort",(F)=>Y(K(F)))})},M0=tF,SC=nF(),m9=(Z)=>Z;M0.text=(Z)=>E8("TextPrompt",Z);M0.password=(Z)=>{return Z.style="password",M0.text(Z)};M0.invisible=(Z)=>{return Z.style="invisible",M0.text(Z)};M0.number=(Z)=>E8("NumberPrompt",Z);M0.date=(Z)=>E8("DatePrompt",Z);M0.confirm=(Z)=>E8("ConfirmPrompt",Z);M0.list=(Z)=>{const J=Z.separator||",";return E8("TextPrompt",Z,{onSubmit:($)=>$.split(J).map((X)=>X.trim())})};M0.toggle=(Z)=>E8("TogglePrompt",Z);M0.select=(Z)=>E8("SelectPrompt",Z);M0.multiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E8("MultiselectPrompt",Z,{onAbort:J,onSubmit:J})};M0.autocompleteMultiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E8("AutocompleteMultiselectPrompt",Z,{onAbort:J,onSubmit:J})};var yC=(Z,J)=>Promise.resolve(J.filter(($)=>$.title.slice(0,Z.length).toLowerCase()===Z.toLowerCase()));M0.autocomplete=(Z)=>{return Z.suggest=Z.suggest||yC,Z.choices=[].concat(Z.choices||[]),E8("AutocompletePrompt",Z)}});var QW=z((Pr,YW)=>{var oF=function(Z,J){var $=Object.keys(Z);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(Z);if(J)X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(Z,Y).enumerable});$.push.apply($,X)}return $},eF=function(Z){for(var J=1;J<arguments.length;J++){var $=arguments[J]!=null?arguments[J]:{};if(J%2)oF(Object($),!0).forEach(function(X){kC(Z,X,$[X])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(Z,Object.getOwnPropertyDescriptors($));else oF(Object($)).forEach(function(X){Object.defineProperty(Z,X,Object.getOwnPropertyDescriptor($,X))})}return Z},kC=function(Z,J,$){if(J in Z)Object.defineProperty(Z,J,{value:$,enumerable:!0,configurable:!0,writable:!0});else Z[J]=$;return Z},_C=function(Z,J){var $=typeof Symbol!=="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(!$){if(Array.isArray(Z)||($=xC(Z))||J&&Z&&typeof Z.length==="number"){if($)Z=$;var X=0,Y=function q(){};return{s:Y,n:function q(){if(X>=Z.length)return{done:!0};return{done:!1,value:Z[X++]}},e:function q(F){throw F},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function q(){$=$.call(Z)},n:function q(){var F=$.next();return Q=F.done,F},e:function q(F){K=!0,G=F},f:function q(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},xC=function(Z,J){if(!Z)return;if(typeof Z==="string")return ZW(Z,J);var $=Object.prototype.toString.call(Z).slice(8,-1);if($==="Object"&&Z.constructor)$=Z.constructor.name;if($==="Map"||$==="Set")return Array.from(Z);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return ZW(Z,J)},ZW=function(Z,J){if(J==null||J>Z.length)J=Z.length;for(var $=0,X=new Array(J);$<J;$++)X[$]=Z[$];return X},JW=function(Z,J,$,X,Y,Q,K){try{var G=Z[Q](K),q=G.value}catch(F){$(F);return}if(G.done)J(q);else Promise.resolve(q).then(X,Y)},$W=function(Z){return function(){var J=this,$=arguments;return new Promise(function(X,Y){var Q=Z.apply(J,$);function K(q){JW(Q,X,Y,K,G,"next",q)}function G(q){JW(Q,X,Y,K,G,"throw",q)}K(void 0)})}},T6=function(){return O$.apply(this,arguments)},O$=function(){return O$=$W(function*(Z=[],{onSubmit:J=XW,onCancel:$=XW}={}){const X={},Y=T6._override||{};Z=[].concat(Z);let Q,K,G,q,F,W;const H=function(){var D=$W(function*(B,w,T=!1){if(!T&&B.validate&&B.validate(w)!==!0)return;return B.format?yield B.format(w,X):w});return function B(w,T){return D.apply(this,arguments)}}();var V=_C(Z),j;try{for(V.s();!(j=V.n()).done;){K=j.value;var U=K;if(q=U.name,F=U.type,typeof F==="function")F=yield F(Q,eF({},X),K),K.type=F;if(!F)continue;for(let D in K){if(vC.includes(D))continue;let B=K[D];K[D]=typeof B==="function"?yield B(Q,eF({},X),W):B}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");var L=K;if(q=L.name,F=L.type,h$[F]===void 0)throw new Error(`prompt type (${F}) is not defined`);if(Y[K.name]!==void 0){if(Q=yield H(K,Y[K.name]),Q!==void 0){X[q]=Q;continue}}try{Q=T6._injected?fC(T6._injected,K.initial):yield h$[F](K),X[q]=Q=yield H(K,Q,!0),G=yield J(K,Q,X)}catch(D){G=!(yield $(K,X))}if(G)return X}}catch(D){V.e(D)}finally{V.f()}return X}),O$.apply(this,arguments)},fC=function(Z,J){const $=Z.shift();if($ instanceof Error)throw $;return $===void 0?J:$},gC=function(Z){T6._injected=(T6._injected||[]).concat(Z)},bC=function(Z){T6._override=Object.assign({},Z)},h$=rF(),vC=["suggest","format","onState","validate","onRender","type"],XW=()=>{};YW.exports=Object.assign(T6,{prompt:T6,prompts:h$,inject:gC,override:bC})});var GW=z((Dr,KW)=>{KW.exports=(Z,J)=>{if(Z.meta&&Z.name!=="escape")return;if(Z.ctrl){if(Z.name==="a")return"first";if(Z.name==="c")return"abort";if(Z.name==="d")return"abort";if(Z.name==="e")return"last";if(Z.name==="g")return"reset"}if(J){if(Z.name==="j")return"down";if(Z.name==="k")return"up"}if(Z.name==="return")return"submit";if(Z.name==="enter")return"submit";if(Z.name==="backspace")return"delete";if(Z.name==="delete")return"deleteForward";if(Z.name==="abort")return"abort";if(Z.name==="escape")return"exit";if(Z.name==="tab")return"next";if(Z.name==="pagedown")return"nextPage";if(Z.name==="pageup")return"prevPage";if(Z.name==="home")return"home";if(Z.name==="end")return"end";if(Z.name==="up")return"up";if(Z.name==="down")return"down";if(Z.name==="right")return"right";if(Z.name==="left")return"left";return!1}});var u9=z((Tr,qW)=>{qW.exports=(Z)=>{const J=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(J,"g");return typeof Z==="string"?Z.replace($,""):Z}});var HW=z((Ir,WW)=>{var mC=u9(),{erase:FW,cursor:uC}=P1(),dC=(Z)=>[...mC(Z)].length;WW.exports=function(Z,J){if(!J)return FW.line+uC.to(0);let $=0;const X=Z.split(/\r?\n/);for(let Y of X)$+=1+Math.floor(Math.max(dC(Y)-1,0)/J);return FW.lines($)}});var S$=z((Er,zW)=>{var o7={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},pC={arrowUp:o7.arrowUp,arrowDown:o7.arrowDown,arrowLeft:o7.arrowLeft,arrowRight:o7.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},cC=process.platform==="win32"?pC:o7;zW.exports=cC});var UW=z((Nr,VW)=>{var d4=w1(),K4=S$(),y$=Object.freeze({password:{scale:1,render:(Z)=>"*".repeat(Z.length)},emoji:{scale:2,render:(Z)=>"\uD83D\uDE03".repeat(Z.length)},invisible:{scale:0,render:(Z)=>""},default:{scale:1,render:(Z)=>`${Z}`}}),lC=(Z)=>y$[Z]||y$.default,e7=Object.freeze({aborted:d4.red(K4.cross),done:d4.green(K4.tick),exited:d4.yellow(K4.cross),default:d4.cyan("?")}),aC=(Z,J,$)=>J?e7.aborted:$?e7.exited:Z?e7.done:e7.default,iC=(Z)=>d4.gray(Z?K4.ellipsis:K4.pointerSmall),sC=(Z,J)=>d4.gray(Z?J?K4.pointerSmall:"+":K4.line);VW.exports={styles:y$,render:lC,symbols:e7,symbol:aC,delimiter:iC,item:sC}});var jW=z((Br,MW)=>{var nC=u9();MW.exports=function(Z,J){let $=String(nC(Z)||"").split(/\r?\n/);if(!J)return $.length;return $.map((X)=>Math.ceil(X.length/J)).reduce((X,Y)=>X+Y)}});var LW=z((Cr,AW)=>{AW.exports=(Z,J={})=>{const $=Number.isSafeInteger(parseInt(J.margin))?new Array(parseInt(J.margin)).fill(" ").join(""):J.margin||"",X=J.width;return(Z||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var RW=z((hr,wW)=>{wW.exports=(Z,J,$)=>{$=$||J;let X=Math.min(J-$,Z-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,J);return{startIndex:X,endIndex:Y}}});var K8=z((Or,PW)=>{PW.exports={action:GW(),clear:HW(),style:UW(),strip:u9(),figures:S$(),lines:jW(),wrap:LW(),entriesToDisplay:RW()}});var t8=z((Sr,IW)=>{var DW=import.meta.require("readline"),{action:tC}=K8(),rC=import.meta.require("events"),{beep:oC,cursor:eC}=P1(),Z2=w1();class TW extends rC{constructor(Z={}){super();this.firstRender=!0,this.in=Z.stdin||process.stdin,this.out=Z.stdout||process.stdout,this.onRender=(Z.onRender||(()=>{return})).bind(this);const J=DW.createInterface({input:this.in,escapeCodeTimeout:50});if(DW.emitKeypressEvents(this.in,J),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=tC(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(eC.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);J.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(oC)}render(){if(this.onRender(Z2),this.firstRender)this.firstRender=!1}}IW.exports=TW});var BW=z((yr,NW)=>{var d9=w1(),J2=t8(),{erase:$2,cursor:Z5}=P1(),{style:k$,clear:_$,lines:X2,figures:Y2}=K8();class EW extends J2{constructor(Z={}){super(Z);this.transform=k$.render(Z.style),this.scale=this.transform.scale,this.msg=Z.message,this.initial=Z.initial||"",this.validator=Z.validate||(()=>!0),this.value="",this.errorMsg=Z.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=_$("",this.out.columns),this.render()}set value(Z){if(!Z&&this.initial)this.placeholder=!0,this.rendered=d9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(Z);this._value=Z,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let Z=await this.validator(this.value);if(typeof Z==="string")this.errorMsg=Z,Z=!1;this.error=!Z}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(Z){if(this.placeholder)return;this.cursor=this.cursor+Z,this.cursorOffset+=Z}_(Z,J){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${Z}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let Z=this.value.slice(0,this.cursor-1),J=this.value.slice(this.cursor);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor+1);if(this.value=`${Z}${J}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(Z5.down(X2(this.outputError,this.out.columns)-1)+_$(this.outputError,this.out.columns));this.out.write(_$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[k$.symbol(this.done,this.aborted),d9.bold(this.msg),k$.delimiter(this.done),this.red?d9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":Y2.pointerSmall} ${d9.red().italic(J)}`,"");this.out.write($2.line+Z5.to(0)+this.outputText+Z5.save+this.outputError+Z5.restore+Z5.move(this.cursorOffset,0))}}NW.exports=EW});var yW=z((kr,SW)=>{var r8=w1(),Q2=t8(),{style:CW,clear:hW,figures:p9,wrap:K2,entriesToDisplay:G2}=K8(),{cursor:q2}=P1();class OW extends Q2{constructor(Z={}){super(Z);this.msg=Z.message,this.hint=Z.hint||"- Use arrow-keys. Return to submit.",this.warn=Z.warn||"- This option is disabled",this.cursor=Z.initial||0,this.choices=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),value:J&&(J.value===void 0?$:J.value),description:J&&J.description,selected:J&&J.selected,disabled:J&&J.disabled}}),this.optionsPerPage=Z.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=hW("",this.out.columns),this.render()}moveCursor(Z){this.cursor=Z,this.value=this.choices[Z].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(Z,J){if(Z===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(q2.hide);else this.out.write(hW(this.outputText,this.out.columns));super.render();let{startIndex:Z,endIndex:J}=G2(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[CW.symbol(this.done,this.aborted),r8.bold(this.msg),CW.delimiter(!1),this.done?this.selection.title:this.selection.disabled?r8.yellow(this.warn):r8.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let $=Z;$<J;$++){let X,Y,Q="",K=this.choices[$];if($===Z&&Z>0)Y=p9.arrowUp;else if($===J-1&&J<this.choices.length)Y=p9.arrowDown;else Y=" ";if(K.disabled)X=this.cursor===$?r8.gray().underline(K.title):r8.strikethrough().gray(K.title),Y=(this.cursor===$?r8.bold().gray(p9.pointer)+" ":" ")+Y;else if(X=this.cursor===$?r8.cyan().underline(K.title):K.title,Y=(this.cursor===$?r8.cyan(p9.pointer)+" ":" ")+Y,K.description&&this.cursor===$){if(Q=` - ${K.description}`,Y.length+X.length+Q.length>=this.out.columns||K.description.split(/\r?\n/).length>1)Q="\n"+K2(K.description,{margin:3,width:this.out.columns})}this.outputText+=`${Y} ${X}${r8.gray(Q)}\n`}}this.out.write(this.outputText)}}SW.exports=OW});var fW=z((_r,vW)=>{var c9=w1(),F2=t8(),{style:kW,clear:W2}=K8(),{cursor:_W,erase:H2}=P1();class xW extends F2{constructor(Z={}){super(Z);this.msg=Z.message,this.value=!!Z.initial,this.active=Z.active||"on",this.inactive=Z.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(Z,J){if(Z===" ")this.value=!this.value;else if(Z==="1")this.value=!0;else if(Z==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(_W.hide);else this.out.write(W2(this.outputText,this.out.columns));super.render(),this.outputText=[kW.symbol(this.done,this.aborted),c9.bold(this.msg),kW.delimiter(this.done),this.value?this.inactive:c9.cyan().underline(this.inactive),c9.gray("/"),this.value?c9.cyan().underline(this.active):this.active].join(" "),this.out.write(H2.line+_W.to(0)+this.outputText)}}vW.exports=xW});var N8=z((xr,gW)=>{class l9{constructor({token:Z,date:J,parts:$,locales:X}){this.token=Z,this.date=J||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const Z=this.parts.indexOf(this);return this.parts.find((J,$)=>$>Z&&J instanceof l9)}setTo(Z){}prev(){let Z=[].concat(this.parts).reverse();const J=Z.indexOf(this);return Z.find(($,X)=>X>J&&$ instanceof l9)}toString(){return String(this.date)}}gW.exports=l9});var uW=z((vr,mW)=>{var z2=N8();class bW extends z2{constructor(Z={}){super(Z)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let Z=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?Z.toUpperCase():Z}}mW.exports=bW});var cW=z((fr,pW)=>{var V2=N8(),U2=(Z)=>{return Z=Z%10,Z===1?"st":Z===2?"nd":Z===3?"rd":"th"};class dW extends V2{constructor(Z={}){super(Z)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(Z){this.date.setDate(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getDate(),J=this.date.getDay();return this.token==="DD"?String(Z).padStart(2,"0"):this.token==="Do"?Z+U2(Z):this.token==="d"?J+1:this.token==="ddd"?this.locales.weekdaysShort[J]:this.token==="dddd"?this.locales.weekdays[J]:Z}}pW.exports=dW});var iW=z((gr,aW)=>{var M2=N8();class lW extends M2{constructor(Z={}){super(Z)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(Z){this.date.setHours(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getHours();if(/h/.test(this.token))Z=Z%12||12;return this.token.length>1?String(Z).padStart(2,"0"):Z}}aW.exports=lW});var tW=z((br,nW)=>{var j2=N8();class sW extends j2{constructor(Z={}){super(Z)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(Z){this.date.setMilliseconds(parseInt(Z.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}nW.exports=sW});var eW=z((mr,oW)=>{var A2=N8();class rW extends A2{constructor(Z={}){super(Z)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(Z){this.date.setMinutes(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getMinutes();return this.token.length>1?String(Z).padStart(2,"0"):Z}}oW.exports=rW});var $H=z((ur,JH)=>{var L2=N8();class ZH extends L2{constructor(Z={}){super(Z)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(Z){Z=parseInt(Z.substr(-2))-1,this.date.setMonth(Z<0?0:Z)}toString(){let Z=this.date.getMonth(),J=this.token.length;return J===2?String(Z+1).padStart(2,"0"):J===3?this.locales.monthsShort[Z]:J===4?this.locales.months[Z]:String(Z+1)}}JH.exports=ZH});var QH=z((dr,YH)=>{var w2=N8();class XH extends w2{constructor(Z={}){super(Z)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(Z){this.date.setSeconds(parseInt(Z.substr(-2)))}toString(){let Z=this.date.getSeconds();return this.token.length>1?String(Z).padStart(2,"0"):Z}}YH.exports=XH});var qH=z((pr,GH)=>{var R2=N8();class KH extends R2{constructor(Z={}){super(Z)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(Z){this.date.setFullYear(Z.substr(-4))}toString(){let Z=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?Z.substr(-2):Z}}GH.exports=KH});var WH=z((cr,FH)=>{FH.exports={DatePart:N8(),Meridiem:uW(),Day:cW(),Hours:iW(),Milliseconds:tW(),Minutes:eW(),Month:$H(),Seconds:QH(),Year:qH()}});var LH=z((lr,AH)=>{var x$=w1(),P2=t8(),{style:HH,clear:zH,figures:D2}=K8(),{erase:T2,cursor:VH}=P1(),{DatePart:UH,Meridiem:I2,Day:E2,Hours:N2,Milliseconds:B2,Minutes:C2,Month:h2,Seconds:O2,Year:S2}=WH(),y2=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,MH={1:({token:Z})=>Z.replace(/\\(.)/g,"$1"),2:(Z)=>new E2(Z),3:(Z)=>new h2(Z),4:(Z)=>new S2(Z),5:(Z)=>new I2(Z),6:(Z)=>new N2(Z),7:(Z)=>new C2(Z),8:(Z)=>new O2(Z),9:(Z)=>new B2(Z)},k2={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class jH extends P2{constructor(Z={}){super(Z);this.msg=Z.message,this.cursor=0,this.typed="",this.locales=Object.assign(k2,Z.locales),this._date=Z.initial||new Date,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.mask=Z.mask||"YYYY-MM-DD HH:mm:ss",this.clear=zH("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(Z){if(Z)this._date.setTime(Z.getTime())}set mask(Z){let J;this.parts=[];while(J=y2.exec(Z)){let X=J.shift(),Y=J.findIndex((Q)=>Q!=null);this.parts.push(Y in MH?MH[Y]({token:J[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):J[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(Z){this.typed="",this.cursor=Z,this.fire()}reset(){this.moveCursor(this.parts.findIndex((Z)=>Z instanceof UH)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let Z=await this.validator(this.value);if(typeof Z==="string")this.errorMsg=Z,Z=!1;this.error=!Z}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let Z=this.parts[this.cursor].prev();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}right(){let Z=this.parts[this.cursor].next();if(Z==null)return this.bell();this.moveCursor(this.parts.indexOf(Z)),this.render()}next(){let Z=this.parts[this.cursor].next();this.moveCursor(Z?this.parts.indexOf(Z):this.parts.findIndex((J)=>J instanceof UH)),this.render()}_(Z){if(/\d/.test(Z))this.typed+=Z,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(VH.hide);else this.out.write(zH(this.outputText,this.out.columns));if(super.render(),this.outputText=[HH.symbol(this.done,this.aborted),x$.bold(this.msg),HH.delimiter(!1),this.parts.reduce((Z,J,$)=>Z.concat($===this.cursor&&!this.done?x$.cyan().underline(J.toString()):J),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":D2.pointerSmall} ${x$.red().italic(J)}`,"");this.out.write(T2.line+VH.to(0)+this.outputText)}}AH.exports=jH});var TH=z((ar,DH)=>{var a9=w1(),_2=t8(),{cursor:i9,erase:x2}=P1(),{style:v$,figures:v2,clear:wH,lines:f2}=K8(),g2=/[0-9]/,f$=(Z)=>Z!==void 0,RH=(Z,J)=>{let $=Math.pow(10,J);return Math.round(Z*$)/$};class PH extends _2{constructor(Z={}){super(Z);this.transform=v$.render(Z.style),this.msg=Z.message,this.initial=f$(Z.initial)?Z.initial:"",this.float=!!Z.float,this.round=Z.round||2,this.inc=Z.increment||1,this.min=f$(Z.min)?Z.min:(-Infinity),this.max=f$(Z.max)?Z.max:Infinity,this.errorMsg=Z.error||"Please Enter A Valid Value",this.validator=Z.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(Z){if(!Z&&Z!==0)this.placeholder=!0,this.rendered=a9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${RH(Z,this.round)}`),this._value=RH(Z,this.round);this.fire()}get value(){return this._value}parse(Z){return this.float?parseFloat(Z):parseInt(Z)}valid(Z){return Z==="-"||Z==="."&&this.float||g2.test(Z)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let Z=this.value;this.value=Z!==""?Z:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let Z=await this.validator(this.value);if(typeof Z==="string")this.errorMsg=Z,Z=!1;this.error=!Z}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let Z=this.value;this.value=Z!==""?Z:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let Z=this.value.toString();if(Z.length===0)return this.bell();if(this.value=this.parse(Z=Z.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(Z,J){if(!this.valid(Z))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=Z,this.lastHit=$,this.color="cyan",Z===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(i9.down(f2(this.outputError,this.out.columns)-1)+wH(this.outputError,this.out.columns));this.out.write(wH(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[v$.symbol(this.done,this.aborted),a9.bold(this.msg),v$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?a9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((Z,J,$)=>Z+`\n${$?" ":v2.pointerSmall} ${a9.red().italic(J)}`,"");this.out.write(x2.line+i9.to(0)+this.outputText+i9.save+this.outputError+i9.restore)}}DH.exports=PH});var g$=z((ir,BH)=>{var B8=w1(),{cursor:b2}=P1(),m2=t8(),{clear:IH,figures:I6,style:EH,wrap:u2,entriesToDisplay:d2}=K8();class NH extends m2{constructor(Z={}){super(Z);if(this.msg=Z.message,this.cursor=Z.cursor||0,this.scrollIndex=Z.cursor||0,this.hint=Z.hint||"",this.warn=Z.warn||"- This option is disabled -",this.minSelected=Z.min,this.showMinError=!1,this.maxChoices=Z.max,this.instructions=Z.instructions,this.optionsPerPage=Z.optionsPerPage||10,this.value=Z.choices.map((J,$)=>{if(typeof J==="string")J={title:J,value:$};return{title:J&&(J.title||J.value||J),description:J&&J.description,value:J&&(J.value===void 0?$:J.value),selected:J&&J.selected,disabled:J&&J.disabled}}),this.clear=IH("",this.out.columns),!Z.overrideRender)this.render()}reset(){this.value.map((Z)=>!Z.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((Z)=>Z.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const Z=this.value.filter((J)=>J.selected);if(this.minSelected&&Z.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const Z=this.value[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const Z=!this.value[this.cursor].selected;this.value.filter((J)=>!J.disabled).forEach((J)=>J.selected=Z),this.render()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else if(Z==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${I6.arrowUp}/${I6.arrowDown}: Highlight option\n`+` ${I6.arrowLeft}/${I6.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(Z,J,$,X){const Y=(J.selected?B8.green(I6.radioOn):I6.radioOff)+" "+X+" ";let Q,K;if(J.disabled)Q=Z===$?B8.gray().underline(J.title):B8.strikethrough().gray(J.title);else if(Q=Z===$?B8.cyan().underline(J.title):J.title,Z===$&&J.description){if(K=` - ${J.description}`,Y.length+Q.length+K.length>=this.out.columns||J.description.split(/\r?\n/).length>1)K="\n"+u2(J.description,{margin:Y.length,width:this.out.columns})}return Y+Q+B8.gray(K||"")}paginateOptions(Z){if(Z.length===0)return B8.red("No matches for this query.");let{startIndex:J,endIndex:$}=d2(this.cursor,Z.length,this.optionsPerPage),X,Y=[];for(let Q=J;Q<$;Q++){if(Q===J&&J>0)X=I6.arrowUp;else if(Q===$-1&&$<Z.length)X=I6.arrowDown;else X=" ";Y.push(this.renderOption(this.cursor,Z[Q],Q,X))}return"\n"+Y.join("\n")}renderOptions(Z){if(!this.done)return this.paginateOptions(Z);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[B8.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)Z.push(B8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(b2.hide);super.render();let Z=[EH.symbol(this.done,this.aborted),B8.bold(this.msg),EH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=B8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.value),this.out.write(this.clear+Z),this.clear=IH(Z,this.out.columns)}}BH.exports=NH});var kH=z((sr,yH)=>{var J5=w1(),p2=t8(),{erase:c2,cursor:CH}=P1(),{style:b$,clear:hH,figures:m$,wrap:l2,entriesToDisplay:a2}=K8(),OH=(Z,J)=>Z[J]&&(Z[J].value||Z[J].title||Z[J]),i2=(Z,J)=>Z[J]&&(Z[J].title||Z[J].value||Z[J]),s2=(Z,J)=>{const $=Z.findIndex((X)=>X.value===J||X.title===J);return $>-1?$:void 0};class SH extends p2{constructor(Z={}){super(Z);this.msg=Z.message,this.suggest=Z.suggest,this.choices=Z.choices,this.initial=typeof Z.initial==="number"?Z.initial:s2(Z.choices,Z.initial),this.select=this.initial||Z.cursor||0,this.i18n={noMatches:Z.noMatches||"no matches found"},this.fallback=Z.fallback||this.initial,this.clearFirst=Z.clearFirst||!1,this.suggestions=[],this.input="",this.limit=Z.limit||10,this.cursor=0,this.transform=b$.render(Z.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=hH("",this.out.columns),this.complete(this.render),this.render()}set fallback(Z){this._fb=Number.isSafeInteger(parseInt(Z))?parseInt(Z):Z}get fallback(){let Z;if(typeof this._fb==="number")Z=this.choices[this._fb];else if(typeof this._fb==="string")Z={title:this._fb};return Z||this._fb||{title:this.i18n.noMatches}}moveSelect(Z){if(this.select=Z,this.suggestions.length>0)this.value=OH(this.suggestions,Z);else this.value=this.fallback.value;this.fire()}async complete(Z){const J=this.completing=this.suggest(this.input,this.choices),$=await J;if(this.completing!==J)return;this.suggestions=$.map((Y,Q,K)=>({title:i2(K,Q),value:OH(K,Q),description:Y.description})),this.completing=!1;const X=Math.max($.length-1,0);this.moveSelect(Math.min(X,this.select)),Z&&Z()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${Z}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let Z=this.input.slice(0,this.cursor-1),J=this.input.slice(this.cursor);this.input=`${Z}${J}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor+1);this.input=`${Z}${J}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(Z,J,$,X){let Y,Q=$?m$.arrowUp:X?m$.arrowDown:" ",K=J?J5.cyan().underline(Z.title):Z.title;if(Q=(J?J5.cyan(m$.pointer)+" ":" ")+Q,Z.description){if(Y=` - ${Z.description}`,Q.length+K.length+Y.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Y="\n"+l2(Z.description,{margin:3,width:this.out.columns})}return Q+" "+K+J5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(CH.hide);else this.out.write(hH(this.outputText,this.out.columns));super.render();let{startIndex:Z,endIndex:J}=a2(this.select,this.choices.length,this.limit);if(this.outputText=[b$.symbol(this.done,this.aborted,this.exited),J5.bold(this.msg),b$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const $=this.suggestions.slice(Z,J).map((X,Y)=>this.renderOption(X,this.select===Y+Z,Y===0&&Z>0,Y+Z===J-1&&J<this.choices.length)).join("\n");this.outputText+="\n"+($||J5.gray(this.fallback.title))}this.out.write(c2.line+CH.to(0)+this.outputText)}}yH.exports=SH});var gH=z((nr,fH)=>{var o8=w1(),{cursor:n2}=P1(),t2=g$(),{clear:_H,style:xH,figures:p4}=K8();class vH extends t2{constructor(Z={}){Z.overrideRender=!0;super(Z);this.inputValue="",this.clear=_H("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const Z=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const J=this.filteredOptions.findIndex(($)=>$===Z);this.cursor=J<0?0:J,this.render()}handleSpaceToggle(){const Z=this.filteredOptions[this.cursor];if(Z.selected)Z.selected=!1,this.render();else if(Z.disabled||this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();else Z.selected=!0,this.render()}handleInputChange(Z){this.inputValue=this.inputValue+Z,this.updateFilteredOptions()}_(Z,J){if(Z===" ")this.handleSpaceToggle();else this.handleInputChange(Z)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
10
10
  Instructions:
11
- ${i4.arrowUp}/${i4.arrowDown}: Highlight option
12
- ${i4.arrowLeft}/${i4.arrowRight}/[space]: Toggle selection
11
+ ${p4.arrowUp}/${p4.arrowDown}: Highlight option
12
+ ${p4.arrowLeft}/${p4.arrowRight}/[space]: Toggle selection
13
13
  [a,b,c]/delete: Filter choices
14
14
  enter/return: Complete answer
15
15
  `}return""}renderCurrentInput(){return`
16
- Filtered results for: ${this.inputValue?this.inputValue:e8.gray("Enter something to filter")}\n`}renderOption(Z,J,$){let X;if(J.disabled)X=Z===$?e8.gray().underline(J.title):e8.strikethrough().gray(J.title);else X=Z===$?e8.cyan().underline(J.title):J.title;return(J.selected?e8.green(i4.radioOn):i4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[e8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)Z.push(e8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(Eh.hide);super.render();let Z=[pH.symbol(this.done,this.aborted),e8.bold(this.msg),pH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=e8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+Z),this.clear=dH(Z,this.out.columns)}}lH.exports=cH});var oH=z((go,rH)=>{var iH=w1(),Bh=r8(),{style:sH,clear:Ch}=G8(),{erase:hh,cursor:nH}=P1();class tH extends Bh{constructor(Z={}){super(Z);this.msg=Z.message,this.value=Z.initial,this.initialValue=!!Z.initial,this.yesMsg=Z.yes||"yes",this.yesOption=Z.yesOption||"(Y/n)",this.noMsg=Z.no||"no",this.noOption=Z.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){if(Z.toLowerCase()==="y")return this.value=!0,this.submit();if(Z.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(nH.hide);else this.out.write(Ch(this.outputText,this.out.columns));super.render(),this.outputText=[sH.symbol(this.done,this.aborted),iH.bold(this.msg),sH.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:iH.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(hh.line+nH.to(0)+this.outputText)}}rH.exports=tH});var Zz=z((bo,eH)=>{eH.exports={TextPrompt:xq(),SelectPrompt:mq(),TogglePrompt:lq(),DatePrompt:NH(),NumberPrompt:SH(),MultiselectPrompt:p$(),AutocompletePrompt:uH(),AutocompleteMultiselectPrompt:aH(),ConfirmPrompt:oH()}});var $z=z((Jz)=>{var h8=function(Z,J,$={}){return new Promise((X,Y)=>{const Q=new Oh[Z](J),K=$.onAbort||o9,G=$.onSubmit||o9,F=$.onExit||o9;Q.on("state",J.onState||o9),Q.on("submit",(W)=>X(G(W))),Q.on("exit",(W)=>X(F(W))),Q.on("abort",(W)=>Y(K(W)))})},A0=Jz,Oh=Zz(),o9=(Z)=>Z;A0.text=(Z)=>h8("TextPrompt",Z);A0.password=(Z)=>{return Z.style="password",A0.text(Z)};A0.invisible=(Z)=>{return Z.style="invisible",A0.text(Z)};A0.number=(Z)=>h8("NumberPrompt",Z);A0.date=(Z)=>h8("DatePrompt",Z);A0.confirm=(Z)=>h8("ConfirmPrompt",Z);A0.list=(Z)=>{const J=Z.separator||",";return h8("TextPrompt",Z,{onSubmit:($)=>$.split(J).map((X)=>X.trim())})};A0.toggle=(Z)=>h8("TogglePrompt",Z);A0.select=(Z)=>h8("SelectPrompt",Z);A0.multiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return h8("MultiselectPrompt",Z,{onAbort:J,onSubmit:J})};A0.autocompleteMultiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return h8("AutocompleteMultiselectPrompt",Z,{onAbort:J,onSubmit:J})};var Sh=(Z,J)=>Promise.resolve(J.filter(($)=>$.title.slice(0,Z.length).toLowerCase()===Z.toLowerCase()));A0.autocomplete=(Z)=>{return Z.suggest=Z.suggest||Sh,Z.choices=[].concat(Z.choices||[]),h8("AutocompletePrompt",Z)}});var Qz=z((uo,Yz)=>{async function C6(Z=[],{onSubmit:J=Xz,onCancel:$=Xz}={}){const X={},Y=C6._override||{};Z=[].concat(Z);let Q,K,G,F,W,q;const H=async(U,j,V=!1)=>{if(!V&&U.validate&&U.validate(j)!==!0)return;return U.format?await U.format(j,X):j};for(K of Z){if({name:F,type:W}=K,typeof W==="function")W=await W(Q,{...X},K),K.type=W;if(!W)continue;for(let U in K){if(kh.includes(U))continue;let j=K[U];K[U]=typeof j==="function"?await j(Q,{...X},q):j}if(q=K,typeof K.message!=="string")throw new Error("prompt message is required");if({name:F,type:W}=K,a$[W]===void 0)throw new Error(`prompt type (${W}) is not defined`);if(Y[K.name]!==void 0){if(Q=await H(K,Y[K.name]),Q!==void 0){X[F]=Q;continue}}try{Q=C6._injected?yh(C6._injected,K.initial):await a$[W](K),X[F]=Q=await H(K,Q,!0),G=await J(K,Q,X)}catch(U){G=!await $(K,X)}if(G)return X}return X}var yh=function(Z,J){const $=Z.shift();if($ instanceof Error)throw $;return $===void 0?J:$},_h=function(Z){C6._injected=(C6._injected||[]).concat(Z)},xh=function(Z){C6._override=Object.assign({},Z)},a$=$z(),kh=["suggest","format","onState","validate","onRender","type"],Xz=()=>{};Yz.exports=Object.assign(C6,{prompt:C6,prompts:a$,inject:_h,override:xh})});var Gz=z((po,Kz)=>{var vh=function(Z){Z=(Array.isArray(Z)?Z:Z.split(".")).map(Number);let J=0,$=process.versions.node.split(".").map(Number);for(;J<Z.length;J++){if($[J]>Z[J])return!1;if(Z[J]>$[J])return!0}return!1};Kz.exports=vh("8.6.0")?Uq():Qz()});var h=z((fz)=>{var bh=function(Z){return"errors"in Z&&Array.isArray(Z.errors)},mh=function(Z){return Z[Cz]===!0},uh=function(Z){const J=Object.assign({},Z);if(J.ok===0)J.ok=1,delete J.errmsg,delete J.code,delete J.codeName;return J},dh=function(Z,J){if(Z instanceof z4)return!0;if(Z instanceof O8){if((J>=9||Z.hasErrorLabel(fz.MongoErrorLabel.RetryableWriteError))&&!Z.hasErrorLabel(fz.MongoErrorLabel.HandshakeError))return!1}if(Z instanceof t$)return qz.has(Z.result?.code??Z.code??0);if(Z instanceof O8&&typeof Z.code==="number")return qz.has(Z.code);if(fz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(fz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},ph=function(Z){return Z.hasErrorLabel(fz.MongoErrorLabel.RetryableWriteError)},ch=function(Z){if(typeof Z.code==="number"?xz.has(Z.code):!1)return!0;if(Z instanceof z4)return!0;if(fz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(fz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},vz=function(Z){if(typeof Z.code==="number")return lh.has(Z.code);return fz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(Z.message)||fz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message)},sh=function(Z){if(typeof Z.code==="number")return ah.has(Z.code);if(vz(Z))return!1;return fz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message)},nh=function(Z){return!!(typeof Z.code==="number"&&ih.has(Z.code))},th=function(Z){if(Z instanceof s$||Z==null)return!0;return vz(Z)||sh(Z)},rh=function(Z){return!!(Z instanceof z4&&Z.message.match(/timed out/))},oh=function(Z,J){if(Z==null||!(Z instanceof O8))return!1;if(Z instanceof z4)return!0;if(J!=null&&J>=9){if(Z.code===fz.MONGODB_ERROR_CODES.CursorNotFound)return!0;return Z.hasErrorLabel(fz.MongoErrorLabel.ResumableChangeStreamError)}if(typeof Z.code==="number")return fz.GET_MORE_RESUMABLE_CODES.has(Z.code);return!1};Object.defineProperty(fz,"__esModule",{value:!0});fz.isResumableError=fz.isNetworkTimeoutError=fz.isSDAMUnrecoverableError=fz.isNodeShuttingDownError=fz.isRetryableReadError=fz.isRetryableWriteError=fz.needsRetryableWriteLabel=fz.MongoWriteConcernError=fz.MongoServerSelectionError=fz.MongoSystemError=fz.MongoMissingDependencyError=fz.MongoMissingCredentialsError=fz.MongoCompatibilityError=fz.MongoInvalidArgumentError=fz.MongoParseError=fz.MongoNetworkTimeoutError=fz.MongoNetworkError=fz.isNetworkErrorBeforeHandshake=fz.MongoTopologyClosedError=fz.MongoCursorExhaustedError=fz.MongoServerClosedError=fz.MongoCursorInUseError=fz.MongoUnexpectedServerResponseError=fz.MongoGridFSChunkError=fz.MongoGridFSStreamError=fz.MongoTailableCursorError=fz.MongoChangeStreamError=fz.MongoAzureError=fz.MongoAWSError=fz.MongoKerberosError=fz.MongoExpiredSessionError=fz.MongoTransactionError=fz.MongoNotConnectedError=fz.MongoDecompressionError=fz.MongoBatchReExecutionError=fz.MongoRuntimeError=fz.MongoAPIError=fz.MongoDriverError=fz.MongoServerError=fz.MongoError=fz.MongoErrorLabel=fz.GET_MORE_RESUMABLE_CODES=fz.MONGODB_ERROR_CODES=fz.NODE_IS_RECOVERING_ERROR_MESSAGE=fz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=fz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;var G5=Symbol("errorLabels");fz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");fz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");fz.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");fz.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391});fz.GET_MORE_RESUMABLE_CODES=new Set([fz.MONGODB_ERROR_CODES.HostUnreachable,fz.MONGODB_ERROR_CODES.HostNotFound,fz.MONGODB_ERROR_CODES.NetworkTimeout,fz.MONGODB_ERROR_CODES.ShutdownInProgress,fz.MONGODB_ERROR_CODES.PrimarySteppedDown,fz.MONGODB_ERROR_CODES.ExceededTimeLimit,fz.MONGODB_ERROR_CODES.SocketException,fz.MONGODB_ERROR_CODES.NotWritablePrimary,fz.MONGODB_ERROR_CODES.InterruptedAtShutdown,fz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,fz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,fz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,fz.MONGODB_ERROR_CODES.StaleShardVersion,fz.MONGODB_ERROR_CODES.StaleEpoch,fz.MONGODB_ERROR_CODES.StaleConfig,fz.MONGODB_ERROR_CODES.RetryChangeStream,fz.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,fz.MONGODB_ERROR_CODES.CursorNotFound]);fz.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class O8 extends Error{constructor(Z){super(O8.buildErrorMessage(Z));if(Z instanceof Error)this.cause=Z;this[G5]=new Set}static buildErrorMessage(Z){if(typeof Z==="string")return Z;if(bh(Z)&&Z.message.length===0)return Z.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":Z.errors.map(({message:J})=>J).join(", ");return Z.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(Z){return this[G5].has(Z)}addErrorLabel(Z){this[G5].add(Z)}get errorLabels(){return Array.from(this[G5])}}fz.MongoError=O8;class i$ extends O8{constructor(Z){super(Z.message||Z.errmsg||Z.$err||"n/a");if(Z.errorLabels)this[G5]=new Set(Z.errorLabels);for(let J in Z)if(J!=="errorLabels"&&J!=="errmsg"&&J!=="message")this[J]=Z[J]}get name(){return"MongoServerError"}}fz.MongoServerError=i$;class W5 extends O8{constructor(Z){super(Z)}get name(){return"MongoDriverError"}}fz.MongoDriverError=W5;class F0 extends W5{constructor(Z){super(Z)}get name(){return"MongoAPIError"}}fz.MongoAPIError=F0;class S8 extends W5{constructor(Z){super(Z)}get name(){return"MongoRuntimeError"}}fz.MongoRuntimeError=S8;class Hz extends F0{constructor(Z="This batch has already been executed, create new batch to execute"){super(Z)}get name(){return"MongoBatchReExecutionError"}}fz.MongoBatchReExecutionError=Hz;class zz extends S8{constructor(Z){super(Z)}get name(){return"MongoDecompressionError"}}fz.MongoDecompressionError=zz;class Uz extends F0{constructor(Z){super(Z)}get name(){return"MongoNotConnectedError"}}fz.MongoNotConnectedError=Uz;class Vz extends F0{constructor(Z){super(Z)}get name(){return"MongoTransactionError"}}fz.MongoTransactionError=Vz;class Mz extends F0{constructor(Z="Cannot use a session that has ended"){super(Z)}get name(){return"MongoExpiredSessionError"}}fz.MongoExpiredSessionError=Mz;class jz extends S8{constructor(Z){super(Z)}get name(){return"MongoKerberosError"}}fz.MongoKerberosError=jz;class Az extends S8{constructor(Z){super(Z)}get name(){return"MongoAWSError"}}fz.MongoAWSError=Az;class Lz extends S8{constructor(Z){super(Z)}get name(){return"MongoAzureError"}}fz.MongoAzureError=Lz;class wz extends S8{constructor(Z){super(Z)}get name(){return"MongoChangeStreamError"}}fz.MongoChangeStreamError=wz;class Rz extends F0{constructor(Z="Tailable cursor does not support this operation"){super(Z)}get name(){return"MongoTailableCursorError"}}fz.MongoTailableCursorError=Rz;class Pz extends S8{constructor(Z){super(Z)}get name(){return"MongoGridFSStreamError"}}fz.MongoGridFSStreamError=Pz;class Dz extends S8{constructor(Z){super(Z)}get name(){return"MongoGridFSChunkError"}}fz.MongoGridFSChunkError=Dz;class Tz extends S8{constructor(Z){super(Z)}get name(){return"MongoUnexpectedServerResponseError"}}fz.MongoUnexpectedServerResponseError=Tz;class Iz extends F0{constructor(Z="Cursor is already initialized"){super(Z)}get name(){return"MongoCursorInUseError"}}fz.MongoCursorInUseError=Iz;class Ez extends F0{constructor(Z="Server is closed"){super(Z)}get name(){return"MongoServerClosedError"}}fz.MongoServerClosedError=Ez;class Nz extends F0{constructor(Z){super(Z||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}fz.MongoCursorExhaustedError=Nz;class Bz extends F0{constructor(Z="Topology is closed"){super(Z)}get name(){return"MongoTopologyClosedError"}}fz.MongoTopologyClosedError=Bz;var Cz=Symbol("beforeHandshake");fz.isNetworkErrorBeforeHandshake=mh;class z4 extends O8{constructor(Z,J){super(Z);if(J&&typeof J.beforeHandshake==="boolean")this[Cz]=J.beforeHandshake}get name(){return"MongoNetworkError"}}fz.MongoNetworkError=z4;class hz extends z4{constructor(Z,J){super(Z,J)}get name(){return"MongoNetworkTimeoutError"}}fz.MongoNetworkTimeoutError=hz;class s$ extends W5{constructor(Z){super(Z)}get name(){return"MongoParseError"}}fz.MongoParseError=s$;class Oz extends F0{constructor(Z){super(Z)}get name(){return"MongoInvalidArgumentError"}}fz.MongoInvalidArgumentError=Oz;class Sz extends F0{constructor(Z){super(Z)}get name(){return"MongoCompatibilityError"}}fz.MongoCompatibilityError=Sz;class kz extends F0{constructor(Z){super(Z)}get name(){return"MongoMissingCredentialsError"}}fz.MongoMissingCredentialsError=kz;class yz extends F0{constructor(Z,{cause:J}={}){super(Z);if(J)this.cause=J}get name(){return"MongoMissingDependencyError"}}fz.MongoMissingDependencyError=yz;class n$ extends O8{constructor(Z,J){if(J&&J.error)super(J.error.message||J.error);else super(Z);if(J)this.reason=J;this.code=J.error?.code}get name(){return"MongoSystemError"}}fz.MongoSystemError=n$;class _z extends n${constructor(Z,J){super(Z,J)}get name(){return"MongoServerSelectionError"}}fz.MongoServerSelectionError=_z;class t$ extends i${constructor(Z,J){if(J&&Array.isArray(J.errorLabels))Z.errorLabels=J.errorLabels;super(Z);if(this.errInfo=Z.errInfo,J!=null)this.result=uh(J)}get name(){return"MongoWriteConcernError"}}fz.MongoWriteConcernError=t$;var xz=new Set([fz.MONGODB_ERROR_CODES.HostUnreachable,fz.MONGODB_ERROR_CODES.HostNotFound,fz.MONGODB_ERROR_CODES.NetworkTimeout,fz.MONGODB_ERROR_CODES.ShutdownInProgress,fz.MONGODB_ERROR_CODES.PrimarySteppedDown,fz.MONGODB_ERROR_CODES.SocketException,fz.MONGODB_ERROR_CODES.NotWritablePrimary,fz.MONGODB_ERROR_CODES.InterruptedAtShutdown,fz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,fz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,fz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),qz=new Set([...xz,fz.MONGODB_ERROR_CODES.ExceededTimeLimit]);fz.needsRetryableWriteLabel=dh;fz.isRetryableWriteError=ph;fz.isRetryableReadError=ch;var lh=new Set([fz.MONGODB_ERROR_CODES.ShutdownInProgress,fz.MONGODB_ERROR_CODES.PrimarySteppedDown,fz.MONGODB_ERROR_CODES.InterruptedAtShutdown,fz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,fz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),ah=new Set([fz.MONGODB_ERROR_CODES.NotWritablePrimary,fz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,fz.MONGODB_ERROR_CODES.LegacyNotPrimary]),ih=new Set([fz.MONGODB_ERROR_CODES.InterruptedAtShutdown,fz.MONGODB_ERROR_CODES.ShutdownInProgress]);fz.isNodeShuttingDownError=nh;fz.isSDAMUnrecoverableError=th;fz.isNetworkTimeoutError=rh;fz.isResumableError=oh});var M5=z((kS)=>{var JU=function(Z){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(Z))},O6=function(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"},n4=function(Z){return Object.prototype.toString.call(Z)==="[object RegExp]"},$U=function(Z){return Object.prototype.toString.call(Z)==="[object Map]"},t4=function(Z){return Object.prototype.toString.call(Z)==="[object Date]"},uO=function(Z){return h6.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},pO=function(){const{navigator:Z}=globalThis;return typeof Z==="object"&&Z.product==="ReactNative"},cO=function(Z){if(Z<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${Z}`);return e4.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},wU=function(Z){return Z!=null&&typeof Z==="object"&&"$id"in Z&&Z.$id!=null&&"$ref"in Z&&typeof Z.$ref==="string"&&(!("$db"in Z)||("$db"in Z)&&typeof Z.$db==="string")},rz=function(Z){return!isNaN(parseInt(Z,10))},QS=function(Z){const J=M.fromNumber(1e9);let $=M.fromNumber(0);if(!Z.parts[0]&&!Z.parts[1]&&!Z.parts[2]&&!Z.parts[3])return{quotient:Z,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(Z.parts[X],0)),Z.parts[X]=$.div(J).low,$=$.modulo(J);return{quotient:Z,rem:$}},KS=function(Z,J){if(!Z&&!J)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=Z.shiftRightUnsigned(32),X=new M(Z.getLowBits(),0),Y=J.shiftRightUnsigned(32),Q=new M(J.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const F=X.multiply(Y);let W=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(F).add(W.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),W=G.shiftLeft(32).add(new M(W.getLowBits(),0)),{high:K,low:W}},GS=function(Z,J){const $=Z.high>>>0,X=J.high>>>0;if($<X)return!0;else if($===X){const Y=Z.low>>>0,Q=J.low>>>0;if(Y<Q)return!0}return!1},F8=function(Z,J){throw new R(`"${Z}" is not a valid Decimal128 string - ${J}`)},YZ=function(Z,J,$){let X=5;if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)X+=oz(Y.toString(),Z[Y],J,!0,$);else{if(typeof Z?.toBSON==="function")Z=Z.toBSON();for(let Y of Object.keys(Z))X+=oz(Y,Z[Y],J,!1,$)}return X},oz=function(Z,J,$=!1,X=!1,Y=!1){if(typeof J?.toBSON==="function")J=J.toBSON();switch(typeof J){case"string":return 1+A.utf8ByteLength(Z)+1+4+A.utf8ByteLength(J)+1;case"number":if(Math.floor(J)===J&&J>=KU&&J<=QU)if(J>=zZ&&J<=HZ)return(Z!=null?A.utf8ByteLength(Z)+1:0)+5;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;case"undefined":if(X||!Y)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;return 0;case"boolean":return(Z!=null?A.utf8ByteLength(Z)+1:0)+2;case"object":if(J!=null&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==V4)throw new k6;else if(J==null||J._bsontype==="MinKey"||J._bsontype==="MaxKey")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;else if(J._bsontype==="ObjectId")return(Z!=null?A.utf8ByteLength(Z)+1:0)+13;else if(J instanceof Date||t4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(ArrayBuffer.isView(J)||J instanceof ArrayBuffer||JU(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+6+J.byteLength;else if(J._bsontype==="Long"||J._bsontype==="Double"||J._bsontype==="Timestamp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(J._bsontype==="Decimal128")return(Z!=null?A.utf8ByteLength(Z)+1:0)+17;else if(J._bsontype==="Code")if(J.scope!=null&&Object.keys(J.scope).length>0)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+4+A.utf8ByteLength(J.code.toString())+1+YZ(J.scope,$,Y);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.code.toString())+1;else if(J._bsontype==="Binary"){const Q=J;if(Q.sub_type===s.SUBTYPE_BYTE_ARRAY)return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1+4);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1)}else if(J._bsontype==="Symbol")return(Z!=null?A.utf8ByteLength(Z)+1:0)+A.utf8ByteLength(J.value)+4+1+1;else if(J._bsontype==="DBRef"){const Q=Object.assign({$ref:J.collection,$id:J.oid},J.fields);if(J.db!=null)Q.$db=J.db;return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+YZ(Q,$,Y)}else if(J instanceof RegExp||n4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.source)+1+(J.global?1:0)+(J.ignoreCase?1:0)+(J.multiline?1:0)+1;else if(J._bsontype==="BSONRegExp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.pattern)+1+A.utf8ByteLength(J.options)+1;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+YZ(J,$,Y)+1;case"function":if($)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.toString())+1}return 0},WS=function(Z){return Z.split("").sort().join("")},PU=function(Z,J,$){let X=0;for(let Y=J;Y<$;Y+=1){const Q=Z[Y];if(X){if((Q&zS)!==wS)return!1;X-=1}else if(Q&HS)if((Q&US)===jS)X=1;else if((Q&VS)===AS)X=2;else if((Q&MS)===LS)X=3;else return!1}return!X},DU=function(Z,J,$){J=J==null?{}:J;const X=J&&J.index?J.index:0,Y=Z[X]|Z[X+1]<<8|Z[X+2]<<16|Z[X+3]<<24;if(Y<5)throw new R(`bson size must be >= 5, is ${Y}`);if(J.allowObjectSmallerThanBufferSize&&Z.length<Y)throw new R(`buffer length ${Z.length} must be >= bson size ${Y}`);if(!J.allowObjectSmallerThanBufferSize&&Z.length!==Y)throw new R(`buffer length ${Z.length} must === bson size ${Y}`);if(Y+X>Z.byteLength)throw new R(`(bson size ${Y} + options.index ${X} must be <= buffer length ${Z.byteLength})`);if(Z[X+Y-1]!==0)throw new R("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return QZ(Z,X,J,$)},QZ=function(Z,J,$,X=!1){const Y=$.fieldsAsRaw==null?null:$.fieldsAsRaw,Q=$.raw==null?!1:$.raw,K=typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,G=$.promoteBuffers??!1,F=$.promoteLongs??!0,W=$.promoteValues??!0,q=$.useBigInt64??!1;if(q&&!W)throw new R("Must either request bigint or Long for int64 deserialization");if(q&&!F)throw new R("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let U=!0,j;const V=new Set,L=H.utf8;if(typeof L==="boolean")j=L;else{U=!1;const k=Object.keys(L).map(function(B){return L[B]});if(k.length===0)throw new R("UTF-8 validation setting cannot be empty");if(typeof k[0]!=="boolean")throw new R("Invalid UTF-8 validation option, must specify boolean values");if(j=k[0],!k.every((B)=>B===j))throw new R("Invalid UTF-8 validation option - keys must be all true or all false")}if(!U)for(let k of Object.keys(L))V.add(k);const D=J;if(Z.length<5)throw new R("corrupt bson message < 5 bytes long");const N=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(N<5||N>Z.length)throw new R("corrupt bson message");const w=X?[]:{};let T=0;const f=!1;let N1=X?!1:null;const c8=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);while(!f){const k=Z[J++];if(k===0)break;let B=J;while(Z[B]!==0&&B<Z.length)B++;if(B>=Z.byteLength)throw new R("Bad BSON Document: illegal CString");const G1=X?T++:A.toUTF8(Z,J,B);let u=!0;if(U||V.has(G1))u=j;else u=!j;if(N1!==!1&&G1[0]==="$")N1=DS.test(G1);let v;if(J=B+1,k===GU){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");v=XZ(Z,J,J+C-1,u),J=J+C}else if(k===WU){const C=A.allocate(12);C.set(Z.subarray(J,J+12)),v=new U1(C),J=J+12}else if(k===o4&&W===!1)v=new _6(Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24);else if(k===o4)v=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;else if(k===KZ&&W===!1)v=new y6(c8.getFloat64(J,!0)),J=J+8;else if(k===KZ)v=c8.getFloat64(J,!0),J=J+8;else if(k===HU){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,y=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;v=new Date(new M(C,y).toNumber())}else if(k===qU){if(Z[J]!==0&&Z[J]!==1)throw new R("illegal boolean type value");v=Z[J++]===1}else if(k===wX){const C=J,y=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;if(y<=0||y>Z.length-J)throw new R("bad embedded document length in bson");if(Q)v=Z.slice(J,J+y);else{let H1=$;if(!U)H1={...$,validation:{utf8:u}};v=QZ(Z,C,H1,!1)}J=J+y}else if(k===FU){const C=J,y=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;let H1=$;const M0=J+y;if(Y&&Y[G1])H1={...$,raw:!0};if(!U)H1={...H1,validation:{utf8:u}};if(v=QZ(Z,C,H1,!0),J=J+y,Z[J-1]!==0)throw new R("invalid array terminator byte");if(J!==M0)throw new R("corrupted array bson")}else if(k===gO)v=void 0;else if(k===PX)v=null;else if(k===TX){const C=z5.fromUint8Array(Z.subarray(J,J+8)),y=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,H1=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,M0=new M(y,H1);if(q)v=C.getBigInt64(0,!0);else if(F&&W===!0)v=M0.lessThanOrEqual(RS)&&M0.greaterThanOrEqual(PS)?M0.toNumber():M0;else v=M0}else if(k===MU){const C=A.allocate(16);C.set(Z.subarray(J,J+16),0),J=J+16,v=new J0(C)}else if(k===RX){let C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;const y=C,H1=Z[J++];if(C<0)throw new R("Negative binary type element size found");if(C>Z.byteLength)throw new R("Binary type size larger than document size");if(Z.slice!=null){if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>y-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<y-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}if(G&&W)v=A.toLocalBufferType(Z.slice(J,J+C));else if(v=new s(Z.slice(J,J+C),H1),H1===FZ&&k1.isValid(v))v=v.toUUID()}else{const M0=A.allocate(C);if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>y-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<y-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}for(B=0;B<C;B++)M0[B]=Z[J+B];if(G&&W)v=M0;else if(v=new s(Z.slice(J,J+C),H1),H1===FZ&&k1.isValid(v))v=v.toUUID()}J=J+C}else if(k===GZ&&K===!1){B=J;while(Z[B]!==0&&B<Z.length)B++;if(B>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,B);J=B+1,B=J;while(Z[B]!==0&&B<Z.length)B++;if(B>=Z.length)throw new R("Bad BSON Document: illegal CString");const y=A.toUTF8(Z,J,B);J=B+1;const H1=new Array(y.length);for(B=0;B<y.length;B++)switch(y[B]){case"m":H1[B]="m";break;case"s":H1[B]="g";break;case"i":H1[B]="i";break}v=new RegExp(C,H1.join(""))}else if(k===GZ&&K===!0){B=J;while(Z[B]!==0&&B<Z.length)B++;if(B>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,B);J=B+1,B=J;while(Z[B]!==0&&B<Z.length)B++;if(B>=Z.length)throw new R("Bad BSON Document: illegal CString");const y=A.toUTF8(Z,J,B);J=B+1,v=new d0(C,y)}else if(k===zU){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const y=XZ(Z,J,J+C-1,u);v=W?y:new A4(y),J=J+C}else if(k===VU){const C=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24),y=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24);v=new u0({i:C,t:y})}else if(k===jU)v=new j4;else if(k===AU)v=new M4;else if(k===DX){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const y=XZ(Z,J,J+C-1,u);v=new J6(y),J=J+C}else if(k===UU){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<13)throw new R("code_w_scope total size shorter minimum expected length");const y=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(y<=0||y>Z.length-J||Z[J+y-1]!==0)throw new R("bad string length in bson");const H1=XZ(Z,J,J+y-1,u);J=J+y;const M0=J,Q$=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24,vN=QZ(Z,M0,$,!1);if(J=J+Q$,C<8+Q$+y)throw new R("code_w_scope total size is too short, truncating scope");if(C>8+Q$+y)throw new R("code_w_scope total size is too long, clips outer document");v=new J6(H1,vN)}else if(k===bO){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");if(H!=null&&H.utf8){if(!PU(Z,J,J+C-1))throw new R("Invalid UTF-8 string in BSON document")}const y=A.toUTF8(Z,J,J+C-1);J=J+C;const H1=A.allocate(12);H1.set(Z.subarray(J,J+12),0);const M0=new U1(H1);J=J+12,v=new y8(y,M0)}else throw new R(`Detected unknown BSON type ${k.toString(16)} for fieldname "${G1}"`);if(G1==="__proto__")Object.defineProperty(w,G1,{value:v,writable:!0,enumerable:!0,configurable:!0});else w[G1]=v}if(N!==J-D){if(X)throw new R("corrupt array bson");throw new R("corrupt object bson")}if(!N1)return w;if(wU(w)){const k=Object.assign({},w);return delete k.$ref,delete k.$id,delete k.$db,new y8(w.$ref,w.$id,w.$db,k)}return w},XZ=function(Z,J,$,X){const Y=A.toUTF8(Z,J,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!PU(Z,J,$))throw new R("Invalid UTF-8 string in BSON document");break}}return Y},e$=function(Z,J,$,X){Z[X++]=GU;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y+1,Z[X-1]=0;const Q=A.encodeUTF8Into(Z,$,X+4);return Z[X+3]=Q+1>>24&255,Z[X+2]=Q+1>>16&255,Z[X+1]=Q+1>>8&255,Z[X]=Q+1&255,X=X+4+Q,Z[X++]=0,X},ZX=function(Z,J,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=HZ&&$>=zZ?o4:KZ;if(Q===o4)Z7.setInt32(0,$,!0);else Z7.setFloat64(0,$,!0);const K=Q===o4?TS:qZ;Z[X++]=Q;const G=A.encodeUTF8Into(Z,J,X);return X=X+G,Z[X++]=0,Z.set(K,X),X+=K.byteLength,X},JX=function(Z,J,$,X){Z[X++]=TX;const Y=A.encodeUTF8Into(Z,J,X);return X+=Y,Z[X++]=0,Z7.setBigInt64(0,$,!0),Z.set(qZ,X),X+=qZ.byteLength,X},H5=function(Z,J,$,X){Z[X++]=PX;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},$X=function(Z,J,$,X){Z[X++]=qU;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$?1:0,X},XX=function(Z,J,$,X){Z[X++]=HU;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=G&255,Z[X++]=G>>8&255,Z[X++]=G>>16&255,Z[X++]=G>>24&255,X},YX=function(Z,J,$,X){Z[X++]=GZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.source&&$.source.match(WZ)!=null)throw new R("value "+$.source+" must not contain null bytes");if(X=X+A.encodeUTF8Into(Z,$.source,X),Z[X++]=0,$.ignoreCase)Z[X++]=105;if($.global)Z[X++]=115;if($.multiline)Z[X++]=109;return Z[X++]=0,X},QX=function(Z,J,$,X){Z[X++]=GZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.pattern.match(WZ)!=null)throw new R("pattern "+$.pattern+" must not contain null bytes");X=X+A.encodeUTF8Into(Z,$.pattern,X),Z[X++]=0;const Q=$.options.split("").sort().join("");return X=X+A.encodeUTF8Into(Z,Q,X),Z[X++]=0,X},KX=function(Z,J,$,X){if($===null)Z[X++]=PX;else if($._bsontype==="MinKey")Z[X++]=jU;else Z[X++]=AU;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},GX=function(Z,J,$,X){Z[X++]=WU;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,O6($.id))Z.set($.id.subarray(0,12),X);else throw new R("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X+12},FX=function(Z,J,$,X){Z[X++]=RX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.length;return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=mO,Z.set($,X),X=X+Q,X},WX=function(Z,J,$,X,Y,Q,K,G,F){if(F.has($))throw new R("Cannot convert circular structure to BSON");F.add($),Z[X++]=Array.isArray($)?FU:wX;const W=A.encodeUTF8Into(Z,J,X);X=X+W,Z[X++]=0;const q=V5(Z,$,Y,X,Q+1,K,G,F);return F.delete($),q},qX=function(Z,J,$,X){Z[X++]=MU;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z.set($.bytes.subarray(0,16),X),X+16},HX=function(Z,J,$,X){Z[X++]=$._bsontype==="Long"?TX:VU;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,X},zX=function(Z,J,$,X){$=$.valueOf(),Z[X++]=o4;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$&255,Z[X++]=$>>8&255,Z[X++]=$>>16&255,Z[X++]=$>>24&255,X},UX=function(Z,J,$,X){Z[X++]=KZ;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z7.setFloat64(0,$.value,!0),Z.set(qZ,X),X=X+8,X},VX=function(Z,J,$,X){Z[X++]=DX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.toString(),K=A.encodeUTF8Into(Z,Q,X+4)+1;return Z[X]=K&255,Z[X+1]=K>>8&255,Z[X+2]=K>>16&255,Z[X+3]=K>>24&255,X=X+4+K-1,Z[X++]=0,X},MX=function(Z,J,$,X,Y=!1,Q=0,K=!1,G=!0,F){if($.scope&&typeof $.scope==="object"){Z[X++]=UU;const W=A.encodeUTF8Into(Z,J,X);X=X+W,Z[X++]=0;let q=X;const H=$.code;X=X+4;const U=A.encodeUTF8Into(Z,H,X+4)+1;Z[X]=U&255,Z[X+1]=U>>8&255,Z[X+2]=U>>16&255,Z[X+3]=U>>24&255,Z[X+4+U-1]=0,X=X+U+4;const j=V5(Z,$.scope,Y,X,Q+1,K,G,F);X=j-1;const V=j-q;Z[q++]=V&255,Z[q++]=V>>8&255,Z[q++]=V>>16&255,Z[q++]=V>>24&255,Z[X++]=0}else{Z[X++]=DX;const W=A.encodeUTF8Into(Z,J,X);X=X+W,Z[X++]=0;const q=$.code.toString(),H=A.encodeUTF8Into(Z,q,X+4)+1;Z[X]=H&255,Z[X+1]=H>>8&255,Z[X+2]=H>>16&255,Z[X+3]=H>>24&255,X=X+4+H-1,Z[X++]=0}return X},jX=function(Z,J,$,X){Z[X++]=RX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K+4;if(Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=$.sub_type,$.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K-4,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255;return Z.set(Q,X),X=X+$.position,X},AX=function(Z,J,$,X){Z[X++]=zU;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=A.encodeUTF8Into(Z,$.value,X+4)+1;return Z[X]=Q&255,Z[X+1]=Q>>8&255,Z[X+2]=Q>>16&255,Z[X+3]=Q>>24&255,X=X+4+Q-1,Z[X++]=0,X},LX=function(Z,J,$,X,Y,Q,K){Z[X++]=wX;const G=A.encodeUTF8Into(Z,J,X);X=X+G,Z[X++]=0;let F=X,W={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)W.$db=$.db;W=Object.assign(W,$.fields);const q=V5(Z,W,!1,X,Y+1,Q,!0,K),H=q-F;return Z[F++]=H&255,Z[F++]=H>>8&255,Z[F++]=H>>16&255,Z[F++]=H>>24&255,q},V5=function(Z,J,$,X,Y,Q,K,G){if(G==null){if(J==null)return Z[0]=5,Z[1]=0,Z[2]=0,Z[3]=0,Z[4]=0,5;if(Array.isArray(J))throw new R("serialize does not support an array as the root input");if(typeof J!=="object")throw new R("serialize does not support non-object as the root input");else if("_bsontype"in J&&typeof J._bsontype==="string")throw new R("BSON types cannot be serialized as a document");else if(t4(J)||n4(J)||O6(J)||JU(J))throw new R("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(J);let F=X+4;if(Array.isArray(J))for(let q=0;q<J.length;q++){const H=`${q}`;let U=J[q];if(typeof U?.toBSON==="function")U=U.toBSON();if(typeof U==="string")F=e$(Z,H,U,F);else if(typeof U==="number")F=ZX(Z,H,U,F);else if(typeof U==="bigint")F=JX(Z,H,U,F);else if(typeof U==="boolean")F=$X(Z,H,U,F);else if(U instanceof Date||t4(U))F=XX(Z,H,U,F);else if(U===void 0)F=H5(Z,H,U,F);else if(U===null)F=H5(Z,H,U,F);else if(O6(U))F=FX(Z,H,U,F);else if(U instanceof RegExp||n4(U))F=YX(Z,H,U,F);else if(typeof U==="object"&&U._bsontype==null)F=WX(Z,H,U,F,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==V4)throw new k6;else if(U._bsontype==="ObjectId")F=GX(Z,H,U,F);else if(U._bsontype==="Decimal128")F=qX(Z,H,U,F);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")F=HX(Z,H,U,F);else if(U._bsontype==="Double")F=UX(Z,H,U,F);else if(typeof U==="function"&&Q)F=VX(Z,H,U,F);else if(U._bsontype==="Code")F=MX(Z,H,U,F,$,Y,Q,K,G);else if(U._bsontype==="Binary")F=jX(Z,H,U,F);else if(U._bsontype==="BSONSymbol")F=AX(Z,H,U,F);else if(U._bsontype==="DBRef")F=LX(Z,H,U,F,Y,Q,G);else if(U._bsontype==="BSONRegExp")F=QX(Z,H,U,F);else if(U._bsontype==="Int32")F=zX(Z,H,U,F);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")F=KX(Z,H,U,F);else if(typeof U._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}else if(J instanceof Map||$U(J)){const q=J.entries();let H=!1;while(!H){const U=q.next();if(H=!!U.done,H)continue;const j=U.value[0];let V=U.value[1];if(typeof V?.toBSON==="function")V=V.toBSON();const L=typeof V;if(typeof j==="string"&&!ez.has(j)){if(j.match(WZ)!=null)throw new R("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new R("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new R("key "+j+" must not contain '.'")}}if(L==="string")F=e$(Z,j,V,F);else if(L==="number")F=ZX(Z,j,V,F);else if(L==="bigint")F=JX(Z,j,V,F);else if(L==="boolean")F=$X(Z,j,V,F);else if(V instanceof Date||t4(V))F=XX(Z,j,V,F);else if(V===null||V===void 0&&K===!1)F=H5(Z,j,V,F);else if(O6(V))F=FX(Z,j,V,F);else if(V instanceof RegExp||n4(V))F=YX(Z,j,V,F);else if(L==="object"&&V._bsontype==null)F=WX(Z,j,V,F,$,Y,Q,K,G);else if(typeof V==="object"&&V[Symbol.for("@@mdb.bson.version")]!==V4)throw new k6;else if(V._bsontype==="ObjectId")F=GX(Z,j,V,F);else if(L==="object"&&V._bsontype==="Decimal128")F=qX(Z,j,V,F);else if(V._bsontype==="Long"||V._bsontype==="Timestamp")F=HX(Z,j,V,F);else if(V._bsontype==="Double")F=UX(Z,j,V,F);else if(V._bsontype==="Code")F=MX(Z,j,V,F,$,Y,Q,K,G);else if(typeof V==="function"&&Q)F=VX(Z,j,V,F);else if(V._bsontype==="Binary")F=jX(Z,j,V,F);else if(V._bsontype==="BSONSymbol")F=AX(Z,j,V,F);else if(V._bsontype==="DBRef")F=LX(Z,j,V,F,Y,Q,G);else if(V._bsontype==="BSONRegExp")F=QX(Z,j,V,F);else if(V._bsontype==="Int32")F=zX(Z,j,V,F);else if(V._bsontype==="MinKey"||V._bsontype==="MaxKey")F=KX(Z,j,V,F);else if(typeof V._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(V._bsontype)}`)}}else{if(typeof J?.toBSON==="function"){if(J=J.toBSON(),J!=null&&typeof J!=="object")throw new R("toBSON function did not return an object")}for(let q of Object.keys(J)){let H=J[q];if(typeof H?.toBSON==="function")H=H.toBSON();const U=typeof H;if(typeof q==="string"&&!ez.has(q)){if(q.match(WZ)!=null)throw new R("key "+q+" must not contain null bytes");if($){if(q[0]==="$")throw new R("key "+q+" must not start with '$'");else if(~q.indexOf("."))throw new R("key "+q+" must not contain '.'")}}if(U==="string")F=e$(Z,q,H,F);else if(U==="number")F=ZX(Z,q,H,F);else if(U==="bigint")F=JX(Z,q,H,F);else if(U==="boolean")F=$X(Z,q,H,F);else if(H instanceof Date||t4(H))F=XX(Z,q,H,F);else if(H===void 0){if(K===!1)F=H5(Z,q,H,F)}else if(H===null)F=H5(Z,q,H,F);else if(O6(H))F=FX(Z,q,H,F);else if(H instanceof RegExp||n4(H))F=YX(Z,q,H,F);else if(U==="object"&&H._bsontype==null)F=WX(Z,q,H,F,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==V4)throw new k6;else if(H._bsontype==="ObjectId")F=GX(Z,q,H,F);else if(U==="object"&&H._bsontype==="Decimal128")F=qX(Z,q,H,F);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")F=HX(Z,q,H,F);else if(H._bsontype==="Double")F=UX(Z,q,H,F);else if(H._bsontype==="Code")F=MX(Z,q,H,F,$,Y,Q,K,G);else if(typeof H==="function"&&Q)F=VX(Z,q,H,F);else if(H._bsontype==="Binary")F=jX(Z,q,H,F);else if(H._bsontype==="BSONSymbol")F=AX(Z,q,H,F);else if(H._bsontype==="DBRef")F=LX(Z,q,H,F,Y,Q,G);else if(H._bsontype==="BSONRegExp")F=QX(Z,q,H,F);else if(H._bsontype==="Int32")F=zX(Z,q,H,F);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")F=KX(Z,q,H,F);else if(typeof H._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(J),Z[F++]=0;const W=F-X;return Z[X++]=W&255,Z[X++]=W>>8&255,Z[X++]=W>>16&255,Z[X++]=W>>24&255,F},IS=function(Z){return Z!=null&&typeof Z==="object"&&"_bsontype"in Z&&typeof Z._bsontype==="string"},TU=function(Z,J={}){if(typeof Z==="number"){const X=Z<=HZ&&Z>=zZ,Y=Z<=XU&&Z>=YU;if(J.relaxed||J.legacy)return Z;if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(X)return new _6(Z);if(Y){if(J.useBigInt64)return BigInt(Z);return M.fromNumber(Z)}}return new y6(Z)}if(Z==null||typeof Z!=="object")return Z;if(Z.$undefined)return null;const $=Object.keys(Z).filter((X)=>X.startsWith("$")&&Z[X]!=null);for(let X=0;X<$.length;X++){const Y=ES[$[X]];if(Y)return Y.fromExtendedJSON(Z,J)}if(Z.$date!=null){const X=Z.$date,Y=new Date;if(J.legacy)if(typeof X==="number")Y.setTime(X);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(typeof X==="bigint")Y.setTime(Number(X));else throw new U5(`Unrecognized type for EJSON date: ${typeof X}`);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(M.isLong(X))Y.setTime(X.toNumber());else if(typeof X==="number"&&J.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new U5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(Z.$code!=null){const X=Object.assign({},Z);if(Z.$scope)X.$scope=TU(Z.$scope);return J6.fromExtendedJSON(Z)}if(wU(Z)||Z.$dbPointer){const X=Z.$ref?Z:Z.$dbPointer;if(X instanceof y8)return X;const Y=Object.keys(X).filter((K)=>K.startsWith("$"));let Q=!0;if(Y.forEach((K)=>{if(["$ref","$id","$db"].indexOf(K)===-1)Q=!1}),Q)return y8.fromExtendedJSON(X)}return Z},NS=function(Z,J){return Z.map(($,X)=>{J.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return Z6($,J)}finally{J.seenObjects.pop()}})},ZU=function(Z){const J=Z.toISOString();return Z.getUTCMilliseconds()!==0?J:J.slice(0,-5)+"Z"},Z6=function(Z,J){if(Z instanceof Map||$U(Z)){const $=Object.create(null);for(let[X,Y]of Z){if(typeof X!=="string")throw new R("Can only serialize maps with string keys");$[X]=Y}return Z6($,J)}if((typeof Z==="object"||typeof Z==="function")&&Z!==null){const $=J.seenObjects.findIndex((X)=>X.obj===Z);if($!==-1){const X=J.seenObjects.map((q)=>q.propertyName),Y=X.slice(0,$).map((q)=>`${q} -> `).join(""),Q=X[$],K=" -> "+X.slice($+1,X.length-1).map((q)=>`${q} -> `).join(""),G=X[X.length-1],F=" ".repeat(Y.length+Q.length/2),W="-".repeat(K.length+(Q.length+G.length)/2-1);throw new R("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${F}\\${W}/`)}J.seenObjects[J.seenObjects.length-1].obj=Z}if(Array.isArray(Z))return NS(Z,J);if(Z===void 0)return null;if(Z instanceof Date||t4(Z)){const $=Z.getTime(),X=$>-1&&$<253402318800000;if(J.legacy)return J.relaxed&&X?{$date:Z.getTime()}:{$date:ZU(Z)};return J.relaxed&&X?{$date:ZU(Z)}:{$date:{$numberLong:Z.getTime().toString()}}}if(typeof Z==="number"&&(!J.relaxed||!isFinite(Z))){if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(Z>=zZ&&Z<=HZ)return{$numberInt:Z.toString()};if(Z>=YU&&Z<=XU)return{$numberLong:Z.toString()}}return{$numberDouble:Object.is(Z,-0)?"-0.0":Z.toString()}}if(typeof Z==="bigint"){if(!J.relaxed)return{$numberLong:BigInt.asIntN(64,Z).toString()};return Number(BigInt.asIntN(64,Z))}if(Z instanceof RegExp||n4(Z)){let $=Z.flags;if($===void 0){const Y=Z.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new d0(Z.source,$).toExtendedJSON(J)}if(Z!=null&&typeof Z==="object")return CS(Z,J);return Z},CS=function(Z,J){if(Z==null||typeof Z!=="object")throw new R("not an object instance");const $=Z._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(Z)){J.seenObjects.push({propertyName:Y,obj:null});try{const Q=Z6(Z[Y],J);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{J.seenObjects.pop()}}return X}else if(Z!=null&&typeof Z==="object"&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==V4)throw new k6;else if(IS(Z)){let X=Z;if(typeof X.toExtendedJSON!=="function"){const Y=BS[Z._bsontype];if(!Y)throw new R("Unrecognized or invalid _bsontype: "+Z._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new J6(X.code,Z6(X.scope,J));else if($==="DBRef"&&X.oid)X=new y8(Z6(X.collection,J),Z6(X.oid,J),Z6(X.db,J),Z6(X.fields,J));return X.toExtendedJSON(J)}else throw new R("_bsontype must be a string, but was: "+typeof $)},IU=function(Z,J){const $={useBigInt64:J?.useBigInt64??!1,relaxed:J?.relaxed??!0,legacy:J?.legacy??!1};return JSON.parse(Z,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new R(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return TU(Y,$)})},EU=function(Z,J,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(J!=null&&typeof J==="object"&&!Array.isArray(J))X=J,J=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=Z6(Z,Y);return JSON.stringify(Q,J,$)},hS=function(Z,J){return J=J||{},JSON.parse(EU(Z,J))},OS=function(Z,J){return J=J||{},IU(JSON.stringify(Z),J)},BU=function(Z){if(S6.length<Z)S6=A.allocate(Z)},CU=function(Z,J={}){const $=typeof J.checkKeys==="boolean"?J.checkKeys:!1,X=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,Y=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0,Q=typeof J.minInternalBufferSize==="number"?J.minInternalBufferSize:NU;if(S6.length<Q)S6=A.allocate(Q);const K=V5(S6,Z,$,0,0,X,Y,null),G=A.allocate(K);return G.set(S6.subarray(0,K),0),G},hU=function(Z,J,$={}){const X=typeof $.checkKeys==="boolean"?$.checkKeys:!1,Y=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,Q=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!0,K=typeof $.index==="number"?$.index:0,G=V5(S6,Z,X,0,0,Y,Q,null);return J.set(S6.subarray(0,G),K),K+G-1},OU=function(Z,J={}){return DU(A.toLocalBufferType(Z),J)},SU=function(Z,J={}){J=J||{};const $=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,X=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0;return YZ(Z,$,X)},kU=function(Z,J,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=A.toLocalBufferType(Z);let F=J;for(let W=0;W<$;W++){const q=G[F]|G[F+1]<<8|G[F+2]<<16|G[F+3]<<24;K.index=F,X[Y+W]=DU(G,K),F=F+q}return F},V4=5,HZ=2147483647,zZ=-2147483648,XU=Math.pow(2,63)-1,YU=-Math.pow(2,63),QU=Math.pow(2,53),KU=-Math.pow(2,53),KZ=1,GU=2,wX=3,FU=4,RX=5,gO=6,WU=7,qU=8,HU=9,PX=10,GZ=11,bO=12,DX=13,zU=14,UU=15,o4=16,VU=17,TX=18,MU=19,jU=255,AU=127,mO=0,FZ=4,LU=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class R extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(Z){super(Z)}static isBSONError(Z){return Z!=null&&typeof Z==="object"&&"bsonError"in Z&&Z.bsonError===!0&&"name"in Z&&"message"in Z&&"stack"in Z}}class k6 extends R{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${V4}.x.x`)}}class U5 extends R{get name(){return"BSONRuntimeError"}constructor(Z){super(Z)}}var dO=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return uO}})(),h6={toLocalBufferType(Z){if(Buffer.isBuffer(Z))return Z;if(ArrayBuffer.isView(Z))return Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return Buffer.from(Z);throw new R(`Cannot create Buffer from ${String(Z)}`)},allocate(Z){return Buffer.alloc(Z)},equals(Z,J){return h6.toLocalBufferType(Z).equals(J)},fromNumberArray(Z){return Buffer.from(Z)},fromBase64(Z){return Buffer.from(Z,"base64")},toBase64(Z){return h6.toLocalBufferType(Z).toString("base64")},fromISO88591(Z){return Buffer.from(Z,"binary")},toISO88591(Z){return h6.toLocalBufferType(Z).toString("binary")},fromHex(Z){return Buffer.from(Z,"hex")},toHex(Z){return h6.toLocalBufferType(Z).toString("hex")},fromUTF8(Z){return Buffer.from(Z,"utf8")},toUTF8(Z,J,$){return h6.toLocalBufferType(Z).toString("utf8",J,$)},utf8ByteLength(Z){return Buffer.byteLength(Z,"utf8")},encodeUTF8Into(Z,J,$){return h6.toLocalBufferType(Z).write(J,$,void 0,"utf8")},randomBytes:dO},lO=(()=>{const{crypto:Z}=globalThis;if(Z!=null&&typeof Z.getRandomValues==="function")return(J)=>{return Z.getRandomValues(e4.allocate(J))};else{if(pO()){const{console:J}=globalThis;J?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return cO}})(),uz=/(\d|[a-f])/i,e4={toLocalBufferType(Z){const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="Uint8Array")return Z;if(ArrayBuffer.isView(Z))return new Uint8Array(Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength));if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return new Uint8Array(Z);throw new R(`Cannot make a Uint8Array from ${String(Z)}`)},allocate(Z){if(typeof Z!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(Z)}`);return new Uint8Array(Z)},equals(Z,J){if(Z.byteLength!==J.byteLength)return!1;for(let $=0;$<Z.byteLength;$++)if(Z[$]!==J[$])return!1;return!0},fromNumberArray(Z){return Uint8Array.from(Z)},fromBase64(Z){return Uint8Array.from(atob(Z),(J)=>J.charCodeAt(0))},toBase64(Z){return btoa(e4.toISO88591(Z))},fromISO88591(Z){return Uint8Array.from(Z,(J)=>J.charCodeAt(0)&255)},toISO88591(Z){return Array.from(Uint16Array.from(Z),(J)=>String.fromCharCode(J)).join("")},fromHex(Z){const J=Z.length%2===0?Z:Z.slice(0,Z.length-1),$=[];for(let X=0;X<J.length;X+=2){const Y=J[X],Q=J[X+1];if(!uz.test(Y))break;if(!uz.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(Z){return Array.from(Z,(J)=>J.toString(16).padStart(2,"0")).join("")},fromUTF8(Z){return(new TextEncoder()).encode(Z)},toUTF8(Z,J,$){return new TextDecoder("utf8",{fatal:!1}).decode(Z.slice(J,$))},utf8ByteLength(Z){return e4.fromUTF8(Z).byteLength},encodeUTF8Into(Z,J,$){const X=e4.fromUTF8(J);return Z.set(X,$),X.byteLength},randomBytes:lO},aO=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,A=aO?h6:e4;class z5 extends DataView{static fromUint8Array(Z){return new DataView(Z.buffer,Z.byteOffset,Z.byteLength)}}class W0{get[Symbol.for("@@mdb.bson.version")](){return V4}}class s extends W0{get _bsontype(){return"Binary"}constructor(Z,J){super();if(Z!=null&&typeof Z!=="string"&&!ArrayBuffer.isView(Z)&&!(Z instanceof ArrayBuffer)&&!Array.isArray(Z))throw new R("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");if(this.sub_type=J??s.BSON_BINARY_SUBTYPE_DEFAULT,Z==null)this.buffer=A.allocate(s.BUFFER_SIZE),this.position=0;else{if(typeof Z==="string")this.buffer=A.fromISO88591(Z);else if(Array.isArray(Z))this.buffer=A.fromNumberArray(Z);else this.buffer=A.toLocalBufferType(Z);this.position=this.buffer.byteLength}}put(Z){if(typeof Z==="string"&&Z.length!==1)throw new R("only accepts single character String");else if(typeof Z!=="number"&&Z.length!==1)throw new R("only accepts single character Uint8Array or Array");let J;if(typeof Z==="string")J=Z.charCodeAt(0);else if(typeof Z==="number")J=Z;else J=Z[0];if(J<0||J>255)throw new R("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=J;else{const $=A.allocate(s.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=J}}write(Z,J){if(J=typeof J==="number"?J:this.position,this.buffer.byteLength<J+Z.length){const $=A.allocate(this.buffer.byteLength+Z.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(Z))this.buffer.set(A.toLocalBufferType(Z),J),this.position=J+Z.byteLength>this.position?J+Z.length:this.position;else if(typeof Z==="string"){const $=A.fromISO88591(Z);this.buffer.set($,J),this.position=J+Z.length>this.position?J+Z.length:this.position}}read(Z,J){return J=J&&J>0?J:this.position,this.buffer.slice(Z,Z+J)}value(Z){if(Z=!!Z,Z&&this.buffer.length===this.position)return this.buffer;if(Z)return this.buffer.slice(0,this.position);return A.toISO88591(this.buffer.subarray(0,this.position))}length(){return this.position}toJSON(){return A.toBase64(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.buffer);if(Z==="base64")return A.toBase64(this.buffer);if(Z==="utf8"||Z==="utf-8")return A.toUTF8(this.buffer,0,this.buffer.byteLength);return A.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(Z){Z=Z||{};const J=A.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(Z.legacy)return{$binary:J,$type:$.length===1?"0"+$:$};return{$binary:{base64:J,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===s.SUBTYPE_UUID)return new k1(this.buffer.slice(0,this.position));throw new R(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${s.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(Z,J){return new s(A.fromHex(Z),J)}static createFromBase64(Z,J){return new s(A.fromBase64(Z),J)}static fromExtendedJSON(Z,J){J=J||{};let $,X;if("$binary"in Z){if(J.legacy&&typeof Z.$binary==="string"&&"$type"in Z)X=Z.$type?parseInt(Z.$type,16):0,$=A.fromBase64(Z.$binary);else if(typeof Z.$binary!=="string")X=Z.$binary.subType?parseInt(Z.$binary.subType,16):0,$=A.fromBase64(Z.$binary.base64)}else if("$uuid"in Z)X=4,$=k1.bytesFromString(Z.$uuid);if(!$)throw new R(`Unexpected Binary Extended JSON format ${JSON.stringify(Z)}`);return X===FZ?new k1($):new s($,X)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`Binary.createFromBase64("${A.toBase64(this.buffer.subarray(0,this.position))}", ${this.sub_type})`}}s.BSON_BINARY_SUBTYPE_DEFAULT=0;s.BUFFER_SIZE=256;s.SUBTYPE_DEFAULT=0;s.SUBTYPE_FUNCTION=1;s.SUBTYPE_BYTE_ARRAY=2;s.SUBTYPE_UUID_OLD=3;s.SUBTYPE_UUID=4;s.SUBTYPE_MD5=5;s.SUBTYPE_ENCRYPTED=6;s.SUBTYPE_COLUMN=7;s.SUBTYPE_USER_DEFINED=128;var r$=16,iO=/^[0-9A-F]{32}$/i,sO=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class k1 extends s{constructor(Z){let J;if(Z==null)J=k1.generate();else if(Z instanceof k1)J=A.toLocalBufferType(new Uint8Array(Z.buffer));else if(ArrayBuffer.isView(Z)&&Z.byteLength===r$)J=A.toLocalBufferType(Z);else if(typeof Z==="string")J=k1.bytesFromString(Z);else throw new R("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(J,FZ)}get id(){return this.buffer}set id(Z){this.buffer=Z}toHexString(Z=!0){if(Z)return[A.toHex(this.buffer.subarray(0,4)),A.toHex(this.buffer.subarray(4,6)),A.toHex(this.buffer.subarray(6,8)),A.toHex(this.buffer.subarray(8,10)),A.toHex(this.buffer.subarray(10,16))].join("-");return A.toHex(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.id);if(Z==="base64")return A.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(!Z)return!1;if(Z instanceof k1)return A.equals(Z.id,this.id);try{return A.equals(new k1(Z).id,this.id)}catch{return!1}}toBinary(){return new s(this.id,s.SUBTYPE_UUID)}static generate(){const Z=A.randomBytes(r$);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z}static isValid(Z){if(!Z)return!1;if(typeof Z==="string")return k1.isValidUUIDString(Z);if(O6(Z))return Z.byteLength===r$;return Z._bsontype==="Binary"&&Z.sub_type===this.SUBTYPE_UUID&&Z.buffer.byteLength===16}static createFromHexString(Z){const J=k1.bytesFromString(Z);return new k1(J)}static createFromBase64(Z){return new k1(A.fromBase64(Z))}static bytesFromString(Z){if(!k1.isValidUUIDString(Z))throw new R("UUID string representation must be 32 hex digits or canonical hyphenated representation");return A.fromHex(Z.replace(/-/g,""))}static isValidUUIDString(Z){return iO.test(Z)||sO.test(Z)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new UUID("${this.toHexString()}")`}}k1.cacheHexString=!1;class J6 extends W0{get _bsontype(){return"Code"}constructor(Z,J){super();this.code=Z.toString(),this.scope=J??null}toJSON(){if(this.scope!=null)return{code:this.code,scope:this.scope};return{code:this.code}}toExtendedJSON(){if(this.scope)return{$code:this.code,$scope:this.scope};return{$code:this.code}}static fromExtendedJSON(Z){return new J6(Z.$code,Z.$scope)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.toJSON();return`new Code("${String(Z.code)}"${Z.scope!=null?`, ${JSON.stringify(Z.scope)}`:""})`}}class y8 extends W0{get _bsontype(){return"DBRef"}constructor(Z,J,$,X){super();const Y=Z.split(".");if(Y.length===2)$=Y.shift(),Z=Y.shift();this.collection=Z,this.oid=J,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(Z){this.collection=Z}toJSON(){const Z=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)Z.$db=this.db;return Z}toExtendedJSON(Z){Z=Z||{};let J={$ref:this.collection,$id:this.oid};if(Z.legacy)return J;if(this.db)J.$db=this.db;return J=Object.assign(J,this.fields),J}static fromExtendedJSON(Z){const J=Object.assign({},Z);return delete J.$ref,delete J.$id,delete J.$db,new y8(Z.$ref,Z.$id,Z.$db,J)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return`new DBRef("${this.namespace}", new ObjectId("${String(Z)}")${this.db?`, "${this.db}"`:""})`}}var m0=void 0;try{m0=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var dz=1<<16,nO=1<<24,r4=dz*dz,RU=r4*r4,pz=RU/2,cz={},lz={},tO=20,rO=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends W0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(Z=0,J,$){super();if(typeof Z==="bigint")Object.assign(this,M.fromBigInt(Z,!!J));else if(typeof Z==="string")Object.assign(this,M.fromString(Z,!!J));else this.low=Z|0,this.high=J|0,this.unsigned=!!$}static fromBits(Z,J,$){return new M(Z,J,$)}static fromInt(Z,J){let $,X,Y;if(J){if(Z>>>=0,Y=0<=Z&&Z<256){if(X=lz[Z],X)return X}if($=M.fromBits(Z,(Z|0)<0?-1:0,!0),Y)lz[Z]=$;return $}else{if(Z|=0,Y=-128<=Z&&Z<128){if(X=cz[Z],X)return X}if($=M.fromBits(Z,Z<0?-1:0,!1),Y)cz[Z]=$;return $}}static fromNumber(Z,J){if(isNaN(Z))return J?M.UZERO:M.ZERO;if(J){if(Z<0)return M.UZERO;if(Z>=RU)return M.MAX_UNSIGNED_VALUE}else{if(Z<=-pz)return M.MIN_VALUE;if(Z+1>=pz)return M.MAX_VALUE}if(Z<0)return M.fromNumber(-Z,J).neg();return M.fromBits(Z%r4|0,Z/r4|0,J)}static fromBigInt(Z,J){return M.fromString(Z.toString(),J)}static fromString(Z,J,$){if(Z.length===0)throw new R("empty string");if(Z==="NaN"||Z==="Infinity"||Z==="+Infinity"||Z==="-Infinity")return M.ZERO;if(typeof J==="number")$=J,J=!1;else J=!!J;if($=$||10,$<2||36<$)throw new R("radix");let X;if((X=Z.indexOf("-"))>0)throw new R("interior hyphen");else if(X===0)return M.fromString(Z.substring(1),J,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<Z.length;K+=8){const G=Math.min(8,Z.length-K),F=parseInt(Z.substring(K,K+G),$);if(G<8){const W=M.fromNumber(Math.pow($,G));Q=Q.mul(W).add(M.fromNumber(F))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(F))}return Q.unsigned=J,Q}static fromBytes(Z,J,$){return $?M.fromBytesLE(Z,J):M.fromBytesBE(Z,J)}static fromBytesLE(Z,J){return new M(Z[0]|Z[1]<<8|Z[2]<<16|Z[3]<<24,Z[4]|Z[5]<<8|Z[6]<<16|Z[7]<<24,J)}static fromBytesBE(Z,J){return new M(Z[4]<<24|Z[5]<<16|Z[6]<<8|Z[7],Z[0]<<24|Z[1]<<16|Z[2]<<8|Z[3],J)}static isLong(Z){return Z!=null&&typeof Z==="object"&&"__isLong__"in Z&&Z.__isLong__===!0}static fromValue(Z,J){if(typeof Z==="number")return M.fromNumber(Z,J);if(typeof Z==="string")return M.fromString(Z,J);return M.fromBits(Z.low,Z.high,typeof J==="boolean"?J:Z.unsigned)}add(Z){if(!M.isLong(Z))Z=M.fromValue(Z);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,F=Z.low&65535;let W=0,q=0,H=0,U=0;return U+=Y+F,H+=U>>>16,U&=65535,H+=X+G,q+=H>>>16,H&=65535,q+=$+K,W+=q>>>16,q&=65535,W+=J+Q,W&=65535,M.fromBits(H<<16|U,W<<16|q,this.unsigned)}and(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low&Z.low,this.high&Z.high,this.unsigned)}compare(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.eq(Z))return 0;const J=this.isNegative(),$=Z.isNegative();if(J&&!$)return-1;if(!J&&$)return 1;if(!this.unsigned)return this.sub(Z).isNegative()?-1:1;return Z.high>>>0>this.high>>>0||Z.high===this.high&&Z.low>>>0>this.low>>>0?-1:1}comp(Z){return this.compare(Z)}divide(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(Z.isZero())throw new R("division by zero");if(m0){if(!this.unsigned&&this.high===-2147483648&&Z.low===-1&&Z.high===-1)return this;const Y=(this.unsigned?m0.div_u:m0.div_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(Y,m0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let J,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(Z.eq(M.ONE)||Z.eq(M.NEG_ONE))return M.MIN_VALUE;else if(Z.eq(M.MIN_VALUE))return M.ONE;else if(J=this.shr(1).div(Z).shl(1),J.eq(M.ZERO))return Z.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(Z.mul(J)),X=J.add($.div(Z)),X;else if(Z.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(Z.isNegative())return this.neg().div(Z.neg());return this.neg().div(Z).neg()}else if(Z.isNegative())return this.div(Z.neg()).neg();X=M.ZERO}else{if(!Z.unsigned)Z=Z.toUnsigned();if(Z.gt(this))return M.UZERO;if(Z.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(Z)){J=Math.max(1,Math.floor($.toNumber()/Z.toNumber()));const Y=Math.ceil(Math.log(J)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(J),G=K.mul(Z);while(G.isNegative()||G.gt($))J-=Q,K=M.fromNumber(J,this.unsigned),G=K.mul(Z);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(Z){return this.divide(Z)}equals(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.unsigned!==Z.unsigned&&this.high>>>31===1&&Z.high>>>31===1)return!1;return this.high===Z.high&&this.low===Z.low}eq(Z){return this.equals(Z)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(M.MIN_VALUE)?64:this.neg().getNumBitsAbs();const Z=this.high!==0?this.high:this.low;let J;for(J=31;J>0;J--)if((Z&1<<J)!==0)break;return this.high!==0?J+33:J+1}greaterThan(Z){return this.comp(Z)>0}gt(Z){return this.greaterThan(Z)}greaterThanOrEqual(Z){return this.comp(Z)>=0}gte(Z){return this.greaterThanOrEqual(Z)}ge(Z){return this.greaterThanOrEqual(Z)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(Z){return this.comp(Z)<0}lt(Z){return this.lessThan(Z)}lessThanOrEqual(Z){return this.comp(Z)<=0}lte(Z){return this.lessThanOrEqual(Z)}modulo(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(m0){const J=(this.unsigned?m0.rem_u:m0.rem_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(J,m0.get_high(),this.unsigned)}return this.sub(this.div(Z).mul(Z))}mod(Z){return this.modulo(Z)}rem(Z){return this.modulo(Z)}multiply(Z){if(this.isZero())return M.ZERO;if(!M.isLong(Z))Z=M.fromValue(Z);if(m0){const j=m0.mul(this.low,this.high,Z.low,Z.high);return M.fromBits(j,m0.get_high(),this.unsigned)}if(Z.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return Z.isOdd()?M.MIN_VALUE:M.ZERO;if(Z.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(Z.isNegative())return this.neg().mul(Z.neg());else return this.neg().mul(Z).neg();else if(Z.isNegative())return this.mul(Z.neg()).neg();if(this.lt(M.TWO_PWR_24)&&Z.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*Z.toNumber(),this.unsigned);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,F=Z.low&65535;let W=0,q=0,H=0,U=0;return U+=Y*F,H+=U>>>16,U&=65535,H+=X*F,q+=H>>>16,H&=65535,H+=Y*G,q+=H>>>16,H&=65535,q+=$*F,W+=q>>>16,q&=65535,q+=X*G,W+=q>>>16,q&=65535,q+=Y*K,W+=q>>>16,q&=65535,W+=J*F+$*G+X*K+Y*Q,W&=65535,M.fromBits(H<<16|U,W<<16|q,this.unsigned)}mul(Z){return this.multiply(Z)}negate(){if(!this.unsigned&&this.eq(M.MIN_VALUE))return M.MIN_VALUE;return this.not().add(M.ONE)}neg(){return this.negate()}not(){return M.fromBits(~this.low,~this.high,this.unsigned)}notEquals(Z){return!this.equals(Z)}neq(Z){return this.notEquals(Z)}ne(Z){return this.notEquals(Z)}or(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low|Z.low,this.high|Z.high,this.unsigned)}shiftLeft(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low<<Z,this.high<<Z|this.low>>>32-Z,this.unsigned);else return M.fromBits(0,this.low<<Z-32,this.unsigned)}shl(Z){return this.shiftLeft(Z)}shiftRight(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low>>>Z|this.high<<32-Z,this.high>>Z,this.unsigned);else return M.fromBits(this.high>>Z-32,this.high>=0?0:-1,this.unsigned)}shr(Z){return this.shiftRight(Z)}shiftRightUnsigned(Z){if(M.isLong(Z))Z=Z.toInt();if(Z&=63,Z===0)return this;else{const J=this.high;if(Z<32){const $=this.low;return M.fromBits($>>>Z|J<<32-Z,J>>>Z,this.unsigned)}else if(Z===32)return M.fromBits(J,0,this.unsigned);else return M.fromBits(J>>>Z-32,0,this.unsigned)}}shr_u(Z){return this.shiftRightUnsigned(Z)}shru(Z){return this.shiftRightUnsigned(Z)}subtract(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return this.add(Z.neg())}sub(Z){return this.subtract(Z)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*r4+(this.low>>>0);return this.high*r4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(Z){return Z?this.toBytesLE():this.toBytesBE()}toBytesLE(){const Z=this.high,J=this.low;return[J&255,J>>>8&255,J>>>16&255,J>>>24,Z&255,Z>>>8&255,Z>>>16&255,Z>>>24]}toBytesBE(){const Z=this.high,J=this.low;return[Z>>>24,Z>>>16&255,Z>>>8&255,Z&255,J>>>24,J>>>16&255,J>>>8&255,J&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(Z){if(Z=Z||10,Z<2||36<Z)throw new R("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(Z),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(Z)+K.toInt().toString(Z)}else return"-"+this.neg().toString(Z);const J=M.fromNumber(Math.pow(Z,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(J);let K=($.sub(Y.mul(J)).toInt()>>>0).toString(Z);if($=Y,$.isZero())return K+X;else{while(K.length<6)K="0"+K;X=""+K+X}}}toUnsigned(){if(this.unsigned)return this;return M.fromBits(this.low,this.high,!0)}xor(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low^Z.low,this.high^Z.high,this.unsigned)}eqz(){return this.isZero()}le(Z){return this.lessThanOrEqual(Z)}toExtendedJSON(Z){if(Z&&Z.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(Z,J){const{useBigInt64:$=!1,relaxed:X=!0}={...J};if(Z.$numberLong.length>tO)throw new R("$numberLong string is too long");if(!rO.test(Z.$numberLong))throw new R(`\$numberLong string "${Z.$numberLong}" is in an invalid format`);if($){const Q=BigInt(Z.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(Z.$numberLong);if(X)return Y.toNumber();return Y}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Long("${this.toString()}"${this.unsigned?", true":""})`}}M.TWO_PWR_24=M.fromInt(nO);M.MAX_UNSIGNED_VALUE=M.fromBits(4294967295|0,4294967295|0,!0);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,!0);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,!0);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(4294967295|0,2147483647|0,!1);M.MIN_VALUE=M.fromBits(0,2147483648|0,!1);var oO=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,eO=/^(\+|-)?(Infinity|inf)$/i,ZS=/^(\+|-)?NaN$/i,s4=6111,q5=-6176,az=6176,iz=34,o$=A.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),sz=A.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),nz=A.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),JS=/^([-+])?(\d+)?$/,$S=31,tz=16383,XS=30,YS=31;class J0 extends W0{get _bsontype(){return"Decimal128"}constructor(Z){super();if(typeof Z==="string")this.bytes=J0.fromString(Z).bytes;else if(O6(Z)){if(Z.byteLength!==16)throw new R("Decimal128 must take a Buffer of 16 bytes");this.bytes=Z}else throw new R("Decimal128 must take a Buffer or string")}static fromString(Z){return J0._fromString(Z,{allowRounding:!1})}static fromStringWithRounding(Z){return J0._fromString(Z,{allowRounding:!0})}static _fromString(Z,J){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,F=0,W=0,q=0;const H=[0];let U=0,j=0,V=0,L=0,D=new M(0,0),N=new M(0,0),w=0,T=0;if(Z.length>=7000)throw new R(""+Z+" not a valid Decimal128 string");const f=Z.match(oO),N1=Z.match(eO),c8=Z.match(ZS);if(!f&&!N1&&!c8||Z.length===0)throw new R(""+Z+" not a valid Decimal128 string");if(f){const u=f[2],v=f[4],C=f[5],y=f[6];if(v&&y===void 0)F8(Z,"missing exponent power");if(v&&u===void 0)F8(Z,"missing exponent base");if(v===void 0&&(C||y))F8(Z,"missing e before exponent")}if(Z[T]==="+"||Z[T]==="-")X=!0,$=Z[T++]==="-";if(!rz(Z[T])&&Z[T]!=="."){if(Z[T]==="i"||Z[T]==="I")return new J0($?sz:nz);else if(Z[T]==="N")return new J0(o$)}while(rz(Z[T])||Z[T]==="."){if(Z[T]==="."){if(Y)F8(Z,"contains multiple periods");Y=!0,T=T+1;continue}if(U<iz){if(Z[T]!=="0"||Q){if(!Q)q=G;Q=!0,H[j++]=parseInt(Z[T],10),U=U+1}}if(Q)F=F+1;if(Y)W=W+1;G=G+1,T=T+1}if(Y&&!G)throw new R(""+Z+" not a valid Decimal128 string");if(Z[T]==="e"||Z[T]==="E"){const u=Z.substr(++T).match(JS);if(!u||!u[2])return new J0(o$);L=parseInt(u[0],10),T=T+u[0].length}if(Z[T])return new J0(o$);if(!U)H[0]=0,F=1,U=1,K=0;else if(V=U-1,K=F,K!==1)while(Z[q+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(L<=W&&W>L+(1<<14))L=q5;else L=L-W;while(L>s4){if(V=V+1,V>=iz){if(K===0){L=s4;break}F8(Z,"overflow")}L=L-1}if(J.allowRounding){while(L<q5||U<F){if(V===0&&K<U){L=q5,K=0;break}if(U<F)F=F-1;else V=V-1;if(L<s4)L=L+1;else{if(H.join("").match(/^0+$/)){L=s4;break}F8(Z,"overflow")}}if(V+1<K){let u=G;if(Y)q=q+1,u=u+1;if(X)q=q+1,u=u+1;const v=parseInt(Z[q+V+1],10);let C=0;if(v>=5){if(C=1,v===5){C=H[V]%2===1?1:0;for(let y=q+V+2;y<u;y++)if(parseInt(Z[y],10)){C=1;break}}}if(C){let y=V;for(;y>=0;y--)if(++H[y]>9){if(H[y]=0,y===0)if(L<s4)L=L+1,H[y]=1;else return new J0($?sz:nz)}else break}}}else{while(L<q5||U<F){if(V===0){if(K===0){L=q5;break}F8(Z,"exponent underflow")}if(U<F){if(Z[F-1+Number(X)+Number(Y)]!=="0"&&K!==0)F8(Z,"inexact rounding");F=F-1}else{if(H[V]!==0)F8(Z,"inexact rounding");V=V-1}if(L<s4)L=L+1;else F8(Z,"overflow")}if(V+1<K){if(Y)q=q+1;if(X)q=q+1;if(parseInt(Z[q+V+1],10)!==0)F8(Z,"inexact rounding")}}if(D=M.fromNumber(0),N=M.fromNumber(0),K===0)D=M.fromNumber(0),N=M.fromNumber(0);else if(V<17){let u=0;N=M.fromNumber(H[u++]),D=new M(0,0);for(;u<=V;u++)N=N.multiply(M.fromNumber(10)),N=N.add(M.fromNumber(H[u]))}else{let u=0;D=M.fromNumber(H[u++]);for(;u<=V-17;u++)D=D.multiply(M.fromNumber(10)),D=D.add(M.fromNumber(H[u]));N=M.fromNumber(H[u++]);for(;u<=V;u++)N=N.multiply(M.fromNumber(10)),N=N.add(M.fromNumber(H[u]))}const k=KS(D,M.fromString("100000000000000000"));if(k.low=k.low.add(N),GS(k.low,N))k.high=k.high.add(M.fromNumber(1));w=L+az;const B={low:M.fromNumber(0),high:M.fromNumber(0)};if(k.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1)))B.high=B.high.or(M.fromNumber(3).shiftLeft(61)),B.high=B.high.or(M.fromNumber(w).and(M.fromNumber(16383).shiftLeft(47))),B.high=B.high.or(k.high.and(M.fromNumber(140737488355327)));else B.high=B.high.or(M.fromNumber(w&16383).shiftLeft(49)),B.high=B.high.or(k.high.and(M.fromNumber(562949953421311)));if(B.low=k.low,$)B.high=B.high.or(M.fromString("9223372036854775808"));const G1=A.allocate(16);return T=0,G1[T++]=B.low.low&255,G1[T++]=B.low.low>>8&255,G1[T++]=B.low.low>>16&255,G1[T++]=B.low.low>>24&255,G1[T++]=B.low.high&255,G1[T++]=B.low.high>>8&255,G1[T++]=B.low.high>>16&255,G1[T++]=B.low.high>>24&255,G1[T++]=B.high.low&255,G1[T++]=B.high.low>>8&255,G1[T++]=B.high.low>>16&255,G1[T++]=B.high.low>>24&255,G1[T++]=B.high.high&255,G1[T++]=B.high.high>>8&255,G1[T++]=B.high.high>>16&255,G1[T++]=B.high.high>>24&255,new J0(G1)}toString(){let Z,J=0;const $=new Array(36);for(let T=0;T<$.length;T++)$[T]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,F;const W=[];X=0;const q=this.bytes,H=q[X++]|q[X++]<<8|q[X++]<<16|q[X++]<<24,U=q[X++]|q[X++]<<8|q[X++]<<16|q[X++]<<24,j=q[X++]|q[X++]<<8|q[X++]<<16|q[X++]<<24,V=q[X++]|q[X++]<<8|q[X++]<<16|q[X++]<<24;if(X=0,{low:new M(H,U),high:new M(j,V)}.high.lessThan(M.ZERO))W.push("-");const D=V>>26&$S;if(D>>3===3)if(D===XS)return W.join("")+"Infinity";else if(D===YS)return"NaN";else Z=V>>15&tz,Q=8+(V>>14&1);else Q=V>>14&7,Z=V>>17&tz;const N=Z-az;if(K.parts[0]=(V&16383)+((Q&15)<<14),K.parts[1]=j,K.parts[2]=U,K.parts[3]=H,K.parts[0]===0&&K.parts[1]===0&&K.parts[2]===0&&K.parts[3]===0)Y=!0;else for(F=3;F>=0;F--){let T=0;const f=QS(K);if(K=f.quotient,T=f.rem.low,!T)continue;for(G=8;G>=0;G--)$[F*9+G]=T%10,T=Math.floor(T/10)}if(Y)J=1,$[X]=0;else{J=36;while(!$[X])J=J-1,X=X+1}const w=J-1+N;if(w>=34||w<=-7||N>0){if(J>34){if(W.push("0"),N>0)W.push(`E+${N}`);else if(N<0)W.push(`E${N}`);return W.join("")}if(W.push(`${$[X++]}`),J=J-1,J)W.push(".");for(let T=0;T<J;T++)W.push(`${$[X++]}`);if(W.push("E"),w>0)W.push(`+${w}`);else W.push(`${w}`)}else if(N>=0)for(let T=0;T<J;T++)W.push(`${$[X++]}`);else{let T=J+N;if(T>0)for(let f=0;f<T;f++)W.push(`${$[X++]}`);else W.push("0");W.push(".");while(T++<0)W.push("0");for(let f=0;f<J-Math.max(T-1,0);f++)W.push(`${$[X++]}`)}return W.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(Z){return J0.fromString(Z.$numberDecimal)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Decimal128("${this.toString()}")`}}class y6 extends W0{get _bsontype(){return"Double"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z}valueOf(){return this.value}toJSON(){return this.value}toString(Z){return this.value.toString(Z)}toExtendedJSON(Z){if(Z&&(Z.legacy||Z.relaxed&&isFinite(this.value)))return this.value;if(Object.is(Math.sign(this.value),-0))return{$numberDouble:"-0.0"};return{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(Z,J){const $=parseFloat(Z.$numberDouble);return J&&J.relaxed?$:new y6($)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Double(${this.toExtendedJSON().$numberDouble})`}}class _6 extends W0{get _bsontype(){return"Int32"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z|0}valueOf(){return this.value}toString(Z){return this.value.toString(Z)}toJSON(){return this.value}toExtendedJSON(Z){if(Z&&(Z.relaxed||Z.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(Z,J){return J&&J.relaxed?parseInt(Z.$numberInt,10):new _6(Z.$numberInt)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Int32(${this.valueOf()})`}}class M4 extends W0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new M4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MaxKey()"}}class j4 extends W0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new j4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MinKey()"}}var FS=new RegExp("^[0-9a-fA-F]{24}$"),U4=null,k8=Symbol("id");class U1 extends W0{get _bsontype(){return"ObjectId"}constructor(Z){super();let J;if(typeof Z==="object"&&Z&&"id"in Z){if(typeof Z.id!=="string"&&!ArrayBuffer.isView(Z.id))throw new R("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in Z&&typeof Z.toHexString==="function")J=A.fromHex(Z.toHexString());else J=Z.id}else J=Z;if(J==null||typeof J==="number")this[k8]=U1.generate(typeof J==="number"?J:void 0);else if(ArrayBuffer.isView(J)&&J.byteLength===12)this[k8]=A.toLocalBufferType(J);else if(typeof J==="string")if(J.length===12){const $=A.fromUTF8(J);if($.byteLength===12)this[k8]=$;else throw new R("Argument passed in must be a string of 12 bytes")}else if(J.length===24&&FS.test(J))this[k8]=A.fromHex(J);else throw new R("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new R("Argument passed in does not match the accepted types");if(U1.cacheHexString)this.__id=A.toHex(this.id)}get id(){return this[k8]}set id(Z){if(this[k8]=Z,U1.cacheHexString)this.__id=A.toHex(Z)}toHexString(){if(U1.cacheHexString&&this.__id)return this.__id;const Z=A.toHex(this.id);if(U1.cacheHexString&&!this.__id)this.__id=Z;return Z}static getInc(){return U1.index=(U1.index+1)%16777215}static generate(Z){if(typeof Z!=="number")Z=Math.floor(Date.now()/1000);const J=U1.getInc(),$=A.allocate(12);if(z5.fromUint8Array($).setUint32(0,Z,!1),U4===null)U4=A.randomBytes(5);return $[4]=U4[0],$[5]=U4[1],$[6]=U4[2],$[7]=U4[3],$[8]=U4[4],$[11]=J&255,$[10]=J>>8&255,$[9]=J>>16&255,$}toString(Z){if(Z==="base64")return A.toBase64(this.id);if(Z==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(Z===void 0||Z===null)return!1;if(Z instanceof U1)return this[k8][11]===Z[k8][11]&&A.equals(this[k8],Z[k8]);if(typeof Z==="string"&&U1.isValid(Z)&&Z.length===12&&O6(this.id))return A.equals(this.id,A.fromISO88591(Z));if(typeof Z==="string"&&U1.isValid(Z)&&Z.length===24)return Z.toLowerCase()===this.toHexString();if(typeof Z==="string"&&U1.isValid(Z)&&Z.length===12)return A.equals(A.fromUTF8(Z),this.id);if(typeof Z==="object"&&"toHexString"in Z&&typeof Z.toHexString==="function"){const J=Z.toHexString(),$=this.toHexString().toLowerCase();return typeof J==="string"&&J.toLowerCase()===$}return!1}getTimestamp(){const Z=new Date,J=z5.fromUint8Array(this.id).getUint32(0,!1);return Z.setTime(Math.floor(J)*1000),Z}static createPk(){return new U1}static createFromTime(Z){const J=A.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return z5.fromUint8Array(J).setUint32(0,Z,!1),new U1(J)}static createFromHexString(Z){if(Z?.length!==24)throw new R("hex string must be 24 characters");return new U1(A.fromHex(Z))}static createFromBase64(Z){if(Z?.length!==16)throw new R("base64 string must be 16 characters");return new U1(A.fromBase64(Z))}static isValid(Z){if(Z==null)return!1;try{return new U1(Z),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(Z){return new U1(Z.$oid)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new ObjectId("${this.toHexString()}")`}}U1.index=Math.floor(Math.random()*16777215);class d0 extends W0{get _bsontype(){return"BSONRegExp"}constructor(Z,J){super();if(this.pattern=Z,this.options=WS(J??""),this.pattern.indexOf("\0")!==-1)throw new R(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new R(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let $=0;$<this.options.length;$++)if(!(this.options[$]==="i"||this.options[$]==="m"||this.options[$]==="x"||this.options[$]==="l"||this.options[$]==="s"||this.options[$]==="u"))throw new R(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(Z){return Z?Z.split("").sort().join(""):""}toExtendedJSON(Z){if(Z=Z||{},Z.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(Z){if("$regex"in Z)if(typeof Z.$regex!=="string"){if(Z.$regex._bsontype==="BSONRegExp")return Z}else return new d0(Z.$regex,d0.parseOptions(Z.$options));if("$regularExpression"in Z)return new d0(Z.$regularExpression.pattern,d0.parseOptions(Z.$regularExpression.options));throw new R(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(Z)}`)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new BSONRegExp(${JSON.stringify(this.pattern)}, ${JSON.stringify(this.options)})`}}class A4 extends W0{get _bsontype(){return"BSONSymbol"}constructor(Z){super();this.value=Z}valueOf(){return this.value}toString(){return this.value}inspect(){return`new BSONSymbol("${this.value}")`}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(Z){return new A4(Z.$symbol)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}}var qS=M;class u0 extends qS{get _bsontype(){return"Timestamp"}constructor(Z){if(Z==null)super(0,0,!0);else if(typeof Z==="bigint")super(Z,!0);else if(M.isLong(Z))super(Z.low,Z.high,!0);else if(typeof Z==="object"&&"t"in Z&&"i"in Z){if(typeof Z.t!=="number"&&(typeof Z.t!=="object"||Z.t._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide t as a number");if(typeof Z.i!=="number"&&(typeof Z.i!=="object"||Z.i._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide i as a number");const J=Number(Z.t),$=Number(Z.i);if(J<0||Number.isNaN(J))throw new R("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new R("Timestamp constructed from { t, i } must provide a positive i");if(J>4294967295)throw new R("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new R("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,J,!0)}else throw new R("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(Z){return new u0(M.fromInt(Z,!0))}static fromNumber(Z){return new u0(M.fromNumber(Z,!0))}static fromBits(Z,J){return new u0({i:Z,t:J})}static fromString(Z,J){return new u0(M.fromString(Z,!0,J))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(Z){const J=M.isLong(Z.$timestamp.i)?Z.$timestamp.i.getLowBitsUnsigned():Z.$timestamp.i,$=M.isLong(Z.$timestamp.t)?Z.$timestamp.t.getLowBitsUnsigned():Z.$timestamp.t;return new u0({t:$,i:J})}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Timestamp({ t: ${this.getHighBits()}, i: ${this.getLowBits()} })`}}u0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var HS=128,zS=192,US=224,VS=240,MS=248,jS=192,AS=224,LS=240,wS=128,RS=M.fromNumber(QU),PS=M.fromNumber(KU),DS=/^\$ref$|^\$id$|^\$db$/,WZ=/\x00/,ez=new Set(["$db","$ref","$id","$clusterTime"]),Z7=new DataView(new ArrayBuffer(8),0,8),TS=new Uint8Array(Z7.buffer,0,4),qZ=new Uint8Array(Z7.buffer,0,8),ES={$oid:U1,$binary:s,$uuid:s,$symbol:A4,$numberInt:_6,$numberDecimal:J0,$numberDouble:y6,$numberLong:M,$minKey:j4,$maxKey:M4,$regex:d0,$regularExpression:d0,$timestamp:u0},BS={Binary:(Z)=>new s(Z.value(),Z.sub_type),Code:(Z)=>new J6(Z.code,Z.scope),DBRef:(Z)=>new y8(Z.collection||Z.namespace,Z.oid,Z.db,Z.fields),Decimal128:(Z)=>new J0(Z.bytes),Double:(Z)=>new y6(Z.value),Int32:(Z)=>new _6(Z.value),Long:(Z)=>M.fromBits(Z.low!=null?Z.low:Z.low_,Z.low!=null?Z.high:Z.high_,Z.low!=null?Z.unsigned:Z.unsigned_),MaxKey:()=>new M4,MinKey:()=>new j4,ObjectId:(Z)=>new U1(Z),BSONRegExp:(Z)=>new d0(Z.pattern,Z.options),BSONSymbol:(Z)=>new A4(Z.value),Timestamp:(Z)=>u0.fromBits(Z.low,Z.high)},L4=Object.create(null);L4.parse=IU;L4.stringify=EU;L4.serialize=hS;L4.deserialize=OS;Object.freeze(L4);var NU=17825792,S6=A.allocate(NU),SS=Object.freeze({__proto__:null,BSONError:R,BSONRegExp:d0,BSONRuntimeError:U5,BSONSymbol:A4,BSONType:LU,BSONValue:W0,BSONVersionError:k6,Binary:s,Code:J6,DBRef:y8,Decimal128:J0,Double:y6,EJSON:L4,Int32:_6,Long:M,MaxKey:M4,MinKey:j4,ObjectId:U1,Timestamp:u0,UUID:k1,calculateObjectSize:SU,deserialize:OU,deserializeStream:kU,serialize:CU,serializeWithBufferAndIndex:hU,setInternalBufferSize:BU});kS.BSON=SS;kS.BSONError=R;kS.BSONRegExp=d0;kS.BSONRuntimeError=U5;kS.BSONSymbol=A4;kS.BSONType=LU;kS.BSONValue=W0;kS.BSONVersionError=k6;kS.Binary=s;kS.Code=J6;kS.DBRef=y8;kS.Decimal128=J0;kS.Double=y6;kS.EJSON=L4;kS.Int32=_6;kS.Long=M;kS.MaxKey=M4;kS.MinKey=j4;kS.ObjectId=U1;kS.Timestamp=u0;kS.UUID=k1;kS.calculateObjectSize=SU;kS.deserialize=OU;kS.deserializeStream=kU;kS.serialize=CU;kS.serializeWithBufferAndIndex=hU;kS.setInternalBufferSize=BU});var D1=z((B1)=>{var Kk=function(Z){const{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:W,enableUtf8Validation:q}=Z;return{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:W,enableUtf8Validation:q}},Gk=function(Z,J){const $=J?.bsonOptions;return{raw:Z?.raw??$?.raw??!1,useBigInt64:Z?.useBigInt64??$?.useBigInt64??!1,promoteLongs:Z?.promoteLongs??$?.promoteLongs??!0,promoteValues:Z?.promoteValues??$?.promoteValues??!0,promoteBuffers:Z?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:Z?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:Z?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:Z?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:Z?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:Z?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(B1,"__esModule",{value:!0});B1.resolveBSONOptions=B1.pluckBSONSerializeOptions=B1.Timestamp=B1.serialize=B1.ObjectId=B1.MinKey=B1.MaxKey=B1.Long=B1.Int32=B1.Double=B1.deserialize=B1.Decimal128=B1.DBRef=B1.Code=B1.calculateObjectSize=B1.BSONType=B1.BSONSymbol=B1.BSONRegExp=B1.BSON=B1.Binary=void 0;var f1=M5();Object.defineProperty(B1,"Binary",{enumerable:!0,get:function(){return f1.Binary}});Object.defineProperty(B1,"BSON",{enumerable:!0,get:function(){return f1.BSON}});Object.defineProperty(B1,"BSONRegExp",{enumerable:!0,get:function(){return f1.BSONRegExp}});Object.defineProperty(B1,"BSONSymbol",{enumerable:!0,get:function(){return f1.BSONSymbol}});Object.defineProperty(B1,"BSONType",{enumerable:!0,get:function(){return f1.BSONType}});Object.defineProperty(B1,"calculateObjectSize",{enumerable:!0,get:function(){return f1.calculateObjectSize}});Object.defineProperty(B1,"Code",{enumerable:!0,get:function(){return f1.Code}});Object.defineProperty(B1,"DBRef",{enumerable:!0,get:function(){return f1.DBRef}});Object.defineProperty(B1,"Decimal128",{enumerable:!0,get:function(){return f1.Decimal128}});Object.defineProperty(B1,"deserialize",{enumerable:!0,get:function(){return f1.deserialize}});Object.defineProperty(B1,"Double",{enumerable:!0,get:function(){return f1.Double}});Object.defineProperty(B1,"Int32",{enumerable:!0,get:function(){return f1.Int32}});Object.defineProperty(B1,"Long",{enumerable:!0,get:function(){return f1.Long}});Object.defineProperty(B1,"MaxKey",{enumerable:!0,get:function(){return f1.MaxKey}});Object.defineProperty(B1,"MinKey",{enumerable:!0,get:function(){return f1.MinKey}});Object.defineProperty(B1,"ObjectId",{enumerable:!0,get:function(){return f1.ObjectId}});Object.defineProperty(B1,"serialize",{enumerable:!0,get:function(){return f1.serialize}});Object.defineProperty(B1,"Timestamp",{enumerable:!0,get:function(){return f1.Timestamp}});B1.pluckBSONSerializeOptions=Kk;B1.resolveBSONOptions=Gk});var w4=z((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.OP_MSG=_U.OP_COMPRESSED=_U.OP_DELETE=_U.OP_QUERY=_U.OP_INSERT=_U.OP_UPDATE=_U.OP_REPLY=_U.MIN_SUPPORTED_QE_SERVER_VERSION=_U.MIN_SUPPORTED_QE_WIRE_VERSION=_U.MAX_SUPPORTED_WIRE_VERSION=_U.MIN_SUPPORTED_WIRE_VERSION=_U.MAX_SUPPORTED_SERVER_VERSION=_U.MIN_SUPPORTED_SERVER_VERSION=void 0;_U.MIN_SUPPORTED_SERVER_VERSION="3.6";_U.MAX_SUPPORTED_SERVER_VERSION="7.0";_U.MIN_SUPPORTED_WIRE_VERSION=6;_U.MAX_SUPPORTED_WIRE_VERSION=21;_U.MIN_SUPPORTED_QE_WIRE_VERSION=21;_U.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";_U.OP_REPLY=1;_U.OP_UPDATE=2001;_U.OP_INSERT=2002;_U.OP_QUERY=2004;_U.OP_DELETE=2006;_U.OP_COMPRESSED=2012;_U.OP_MSG=2013});var g1=z((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.TOPOLOGY_EVENTS=vU.CMAP_EVENTS=vU.HEARTBEAT_EVENTS=vU.RESUME_TOKEN_CHANGED=vU.END=vU.CHANGE=vU.INIT=vU.MORE=vU.RESPONSE=vU.SERVER_HEARTBEAT_FAILED=vU.SERVER_HEARTBEAT_SUCCEEDED=vU.SERVER_HEARTBEAT_STARTED=vU.COMMAND_FAILED=vU.COMMAND_SUCCEEDED=vU.COMMAND_STARTED=vU.CLUSTER_TIME_RECEIVED=vU.CONNECTION_CHECKED_IN=vU.CONNECTION_CHECKED_OUT=vU.CONNECTION_CHECK_OUT_FAILED=vU.CONNECTION_CHECK_OUT_STARTED=vU.CONNECTION_CLOSED=vU.CONNECTION_READY=vU.CONNECTION_CREATED=vU.CONNECTION_POOL_READY=vU.CONNECTION_POOL_CLEARED=vU.CONNECTION_POOL_CLOSED=vU.CONNECTION_POOL_CREATED=vU.TOPOLOGY_DESCRIPTION_CHANGED=vU.TOPOLOGY_CLOSED=vU.TOPOLOGY_OPENING=vU.SERVER_DESCRIPTION_CHANGED=vU.SERVER_CLOSED=vU.SERVER_OPENING=vU.DESCRIPTION_RECEIVED=vU.UNPINNED=vU.PINNED=vU.MESSAGE=vU.ENDED=vU.CLOSED=vU.CONNECT=vU.OPEN=vU.CLOSE=vU.TIMEOUT=vU.ERROR=vU.SYSTEM_JS_COLLECTION=vU.SYSTEM_COMMAND_COLLECTION=vU.SYSTEM_USER_COLLECTION=vU.SYSTEM_PROFILE_COLLECTION=vU.SYSTEM_INDEX_COLLECTION=vU.SYSTEM_NAMESPACE_COLLECTION=void 0;vU.LEGACY_HELLO_COMMAND_CAMEL_CASE=vU.LEGACY_HELLO_COMMAND=vU.MONGO_CLIENT_EVENTS=vU.LOCAL_SERVER_EVENTS=vU.SERVER_RELAY_EVENTS=vU.APM_EVENTS=void 0;vU.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";vU.SYSTEM_INDEX_COLLECTION="system.indexes";vU.SYSTEM_PROFILE_COLLECTION="system.profile";vU.SYSTEM_USER_COLLECTION="system.users";vU.SYSTEM_COMMAND_COLLECTION="$cmd";vU.SYSTEM_JS_COLLECTION="system.js";vU.ERROR="error";vU.TIMEOUT="timeout";vU.CLOSE="close";vU.OPEN="open";vU.CONNECT="connect";vU.CLOSED="closed";vU.ENDED="ended";vU.MESSAGE="message";vU.PINNED="pinned";vU.UNPINNED="unpinned";vU.DESCRIPTION_RECEIVED="descriptionReceived";vU.SERVER_OPENING="serverOpening";vU.SERVER_CLOSED="serverClosed";vU.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";vU.TOPOLOGY_OPENING="topologyOpening";vU.TOPOLOGY_CLOSED="topologyClosed";vU.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";vU.CONNECTION_POOL_CREATED="connectionPoolCreated";vU.CONNECTION_POOL_CLOSED="connectionPoolClosed";vU.CONNECTION_POOL_CLEARED="connectionPoolCleared";vU.CONNECTION_POOL_READY="connectionPoolReady";vU.CONNECTION_CREATED="connectionCreated";vU.CONNECTION_READY="connectionReady";vU.CONNECTION_CLOSED="connectionClosed";vU.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";vU.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";vU.CONNECTION_CHECKED_OUT="connectionCheckedOut";vU.CONNECTION_CHECKED_IN="connectionCheckedIn";vU.CLUSTER_TIME_RECEIVED="clusterTimeReceived";vU.COMMAND_STARTED="commandStarted";vU.COMMAND_SUCCEEDED="commandSucceeded";vU.COMMAND_FAILED="commandFailed";vU.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";vU.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";vU.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";vU.RESPONSE="response";vU.MORE="more";vU.INIT="init";vU.CHANGE="change";vU.END="end";vU.RESUME_TOKEN_CHANGED="resumeTokenChanged";vU.HEARTBEAT_EVENTS=Object.freeze([vU.SERVER_HEARTBEAT_STARTED,vU.SERVER_HEARTBEAT_SUCCEEDED,vU.SERVER_HEARTBEAT_FAILED]);vU.CMAP_EVENTS=Object.freeze([vU.CONNECTION_POOL_CREATED,vU.CONNECTION_POOL_READY,vU.CONNECTION_POOL_CLEARED,vU.CONNECTION_POOL_CLOSED,vU.CONNECTION_CREATED,vU.CONNECTION_READY,vU.CONNECTION_CLOSED,vU.CONNECTION_CHECK_OUT_STARTED,vU.CONNECTION_CHECK_OUT_FAILED,vU.CONNECTION_CHECKED_OUT,vU.CONNECTION_CHECKED_IN]);vU.TOPOLOGY_EVENTS=Object.freeze([vU.SERVER_OPENING,vU.SERVER_CLOSED,vU.SERVER_DESCRIPTION_CHANGED,vU.TOPOLOGY_OPENING,vU.TOPOLOGY_CLOSED,vU.TOPOLOGY_DESCRIPTION_CHANGED,vU.ERROR,vU.TIMEOUT,vU.CLOSE]);vU.APM_EVENTS=Object.freeze([vU.COMMAND_STARTED,vU.COMMAND_SUCCEEDED,vU.COMMAND_FAILED]);vU.SERVER_RELAY_EVENTS=Object.freeze([vU.SERVER_HEARTBEAT_STARTED,vU.SERVER_HEARTBEAT_SUCCEEDED,vU.SERVER_HEARTBEAT_FAILED,vU.COMMAND_STARTED,vU.COMMAND_SUCCEEDED,vU.COMMAND_FAILED,...vU.CMAP_EVENTS]);vU.LOCAL_SERVER_EVENTS=Object.freeze([vU.CONNECT,vU.DESCRIPTION_RECEIVED,vU.CLOSED,vU.ENDED]);vU.MONGO_CLIENT_EVENTS=Object.freeze([...vU.CMAP_EVENTS,...vU.APM_EVENTS,...vU.TOPOLOGY_EVENTS,...vU.HEARTBEAT_EVENTS]);vU.LEGACY_HELLO_COMMAND="ismaster";vU.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var p0=z((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.ReadConcern=qV.ReadConcernLevel=void 0;qV.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class $7{constructor(Z){this.level=qV.ReadConcernLevel[Z]??Z}static fromOptions(Z){if(Z==null)return;if(Z.readConcern){const{readConcern:J}=Z;if(J instanceof $7)return J;else if(typeof J==="string")return new $7(J);else if("level"in J&&J.level)return new $7(J.level)}if(Z.level)return new $7(Z.level);return}static get MAJORITY(){return qV.ReadConcernLevel.majority}static get AVAILABLE(){return qV.ReadConcernLevel.available}static get LINEARIZABLE(){return qV.ReadConcernLevel.linearizable}static get SNAPSHOT(){return qV.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}qV.ReadConcern=$7});var y1=z((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});zV.ReadPreference=zV.ReadPreferenceMode=void 0;var R4=h();zV.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class a{constructor(Z,J,$){if(!a.isValid(Z))throw new R4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(Z)}`);if($==null&&typeof J==="object"&&!Array.isArray(J))$=J,J=void 0;else if(J&&!Array.isArray(J))throw new R4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=Z,this.tags=J,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new R4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===a.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new R4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new R4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new R4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(Z){return new a(Z)}static fromOptions(Z){if(!Z)return;const J=Z.readPreference??Z.session?.transaction.options.readPreference,$=Z.readPreferenceTags;if(J==null)return;if(typeof J==="string")return new a(J,$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:Z.hedge});else if(!(J instanceof a)&&typeof J==="object"){const X=J.mode||J.preference;if(X&&typeof X==="string")return new a(X,J.tags??$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:Z.hedge})}if($)J.tags=$;return J}static translate(Z){if(Z.readPreference==null)return Z;const J=Z.readPreference;if(typeof J==="string")Z.readPreference=new a(J);else if(J&&!(J instanceof a)&&typeof J==="object"){const $=J.mode||J.preference;if($&&typeof $==="string")Z.readPreference=new a($,J.tags,{maxStalenessSeconds:J.maxStalenessSeconds})}else if(!(J instanceof a))throw new R4.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return Z}static isValid(Z){return(new Set([a.PRIMARY,a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST,null])).has(Z)}isValid(Z){return a.isValid(typeof Z==="string"?Z:this.mode)}secondaryOk(){return(new Set([a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST])).has(this.mode)}equals(Z){return Z.mode===this.mode}toJSON(){const Z={mode:this.mode};if(Array.isArray(this.tags))Z.tags=this.tags;if(this.maxStalenessSeconds)Z.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)Z.hedge=this.hedge;return Z}}a.PRIMARY=zV.ReadPreferenceMode.primary;a.PRIMARY_PREFERRED=zV.ReadPreferenceMode.primaryPreferred;a.SECONDARY=zV.ReadPreferenceMode.secondary;a.SECONDARY_PREFERRED=zV.ReadPreferenceMode.secondaryPreferred;a.NEAREST=zV.ReadPreferenceMode.nearest;a.primary=new a(zV.ReadPreferenceMode.primary);a.primaryPreferred=new a(zV.ReadPreferenceMode.primaryPreferred);a.secondary=new a(zV.ReadPreferenceMode.secondary);a.secondaryPreferred=new a(zV.ReadPreferenceMode.secondaryPreferred);a.nearest=new a(zV.ReadPreferenceMode.nearest);zV.ReadPreference=a});var c0=z((VV)=>{var pk=function(Z){Z.forEach(dk.clearTimeout),Z.clear()},ck=function(Z,J){if(Z.clusterTime==null)Z.clusterTime=J;else if(J.clusterTime.greaterThan(Z.clusterTime.clusterTime))Z.clusterTime=J};Object.defineProperty(VV,"__esModule",{value:!0});VV._advanceClusterTime=VV.drainTimerQueue=VV.ServerType=VV.TopologyType=VV.STATE_CONNECTED=VV.STATE_CONNECTING=VV.STATE_CLOSED=VV.STATE_CLOSING=void 0;var dk=import.meta.require("timers");VV.STATE_CLOSING="closing";VV.STATE_CLOSED="closed";VV.STATE_CONNECTING="connecting";VV.STATE_CONNECTED="connected";VV.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});VV.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});VV.drainTimerQueue=pk;VV._advanceClusterTime=ck});var L0=z((jV)=>{Object.defineProperty(jV,"__esModule",{value:!0});jV.WriteConcern=jV.WRITE_CONCERN_KEYS=void 0;jV.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class j5{constructor(Z,J,$,X){if(Z!=null)if(!Number.isNaN(Number(Z)))this.w=Number(Z);else this.w=Z;if(J!=null)this.wtimeoutMS=this.wtimeout=J;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(Z,J){const $={};if(J.w!=null)$.w=J.w;if(J.wtimeoutMS!=null)$.wtimeout=J.wtimeoutMS;if(J.journal!=null)$.j=J.j;return Z.writeConcern=$,Z}static fromOptions(Z,J){if(Z==null)return;J=J??{};let $;if(typeof Z==="string"||typeof Z==="number")$={w:Z};else if(Z instanceof j5)$=Z;else $=Z.writeConcern;const X=J instanceof j5?J:J.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:F=void 0,wtimeoutMS:W=void 0}={...X,...$};if(Y!=null||Q!=null||W!=null||K!=null||F!=null||G!=null)return new j5(Y,Q??W,K??F,G);return}}jV.WriteConcern=j5});var _=z((CV)=>{var Wy=function(Z,J){for(let $ of J)if(Z===$||$.startsWith("*.")&&Z?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&Z?.endsWith($.substring(2,$.length)))return!0;return!1},qy=function(Z){if(typeof Z!=="string")throw new $0.MongoInvalidArgumentError("Collection name must be a String");if(!Z||Z.indexOf("..")!==-1)throw new $0.MongoInvalidArgumentError("Collection names cannot be empty");if(Z.indexOf("$")!==-1&&Z.match(/((^\$cmd)|(oplog\.\$main))/)==null)throw new $0.MongoInvalidArgumentError("Collection names must not contain '$'");if(Z.match(/^\.|\.$/)!=null)throw new $0.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(Z.indexOf("\0")!==-1)throw new $0.MongoInvalidArgumentError("Collection names cannot contain a null character")},Hy=function(Z){let J=void 0;if(typeof Z==="string")J=Z;else if(Array.isArray(Z))J={},Z.forEach(($)=>{J[$]=1});else if(Z!=null&&typeof Z==="object"){J={};for(let $ in Z)J[$]=Z[$]}return J},kX=function(Z){return zy(Z)==="[object Object]"},Uy=function(Z,J){return{...Z,...J}},Vy=function(Z,J){const $={};for(let X in Z)if(J.includes(X))$[X]=Z[X];return $},My=function(Z,J){if(J&&J.s.options?.retryWrites)Z.retryWrites=!0;return Z},jy=function(Z){return!!Z&&typeof Z.then==="function"},Ay=function(Z,J,$){const X=RV(J).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)Z.collation=$.collation;else throw new $0.MongoCompatibilityError("Current topology does not support collation")},Ly=function(Z,J,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},Z.readConcern||{});if(J.s.readConcern)Object.assign(X,J.s.readConcern);if(Object.keys(X).length>0)Object.assign(Z,{readConcern:X})},wy=function(Z,J){if(Z.explain)return Z;return{explain:Z,verbosity:J.verbosity}},RV=function(Z){if("topology"in Z&&Z.topology)return Z.topology;else if("client"in Z&&Z.client.topology)return Z.client.topology;throw new $0.MongoNotConnectedError("MongoClient must be connected to perform this operation")},Ry=function(Z){return w5.fromString(Z)};function*Py(Z=0){let J=Z;while(!0){const $=J;J+=1,yield $}}var Dy=function(Z,J){const $=Z();if(J==null)return $;$.then((X)=>J(void 0,X),(X)=>J(X));return},Ty=function(Z){return Z.split(".")[0]},Iy=function(){const Z=ek.randomBytes(16);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z},Ey=function(Z){if(Z){if(Z.loadBalanced)return Xy.MAX_SUPPORTED_WIRE_VERSION;if(Z.hello)return Z.hello.maxWireVersion;if("lastHello"in Z&&typeof Z.lastHello==="function"){const J=Z.lastHello();if(J)return J.maxWireVersion}if(Z.description&&"maxWireVersion"in Z.description&&Z.description.maxWireVersion!=null)return Z.description.maxWireVersion}return 0},Ny=function(Z,J,$){Z=Z||[];let X=0,Y=0;for(X=0;X<Z.length;++X)Y++,J(Z[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===Z.length&&Y<=0)$()}},By=function(Z,J){if(!Array.isArray(Z)||!Array.isArray(J))return!1;return Z.length===J.length&&Z.every(($,X)=>$===J[X])},Cy=function(Z,J){if(Z===J)return!0;if(!Z||!J)return Z===J;if(Z==null&&J!=null||Z!=null&&J==null)return!1;if(Z.constructor.name!==J.constructor.name)return!1;if(Z.message!==J.message)return!1;return!0},hy=function(Z){return function J($,X){const Y=Z[$.s.state];if(Y&&Y.indexOf(X)<0)throw new $0.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},PV=function(){const Z=process.hrtime();return Math.floor(Z[0]*1000+Z[1]/1e6)},Oy=function(Z){if(typeof Z!=="number")throw new $0.MongoInvalidArgumentError("Numeric value required to calculate duration");const J=PV()-Z;return J<0?0:J},DV=function(Z){if(Array.isArray(Z)){for(let $ of Z)if(DV($))return!0;return!1}const J=Object.keys(Z);return J.length>0&&J[0][0]==="$"},Sy=function(Z,J){const $=Object.assign({},J,wV.resolveBSONOptions(J,Z));if(!J?.session?.inTransaction()){const Q=Qy.ReadConcern.fromOptions(J)??Z?.readConcern;if(Q)$.readConcern=Q;const K=Fy.WriteConcern.fromOptions(J)??Z?.writeConcern;if(K)$.writeConcern=K}const Y=Ky.ReadPreference.fromOptions(J)??Z?.readPreference;if(Y)$.readPreference=Y;return $},TV=function(Z,J){Z=Array.isArray(Z)?new Set(Z):Z,J=Array.isArray(J)?new Set(J):J;for(let $ of J)if(!Z.has($))return!1;return!0},ky=function(Z){return Z[Yy.LEGACY_HELLO_COMMAND]||Z.hello?!0:!1},yy=function(Z,J){const $=new Set(Z);for(let X of J)$.delete(X);return $},IV=function(Z,J=void 0){if(!kX(Z))return!1;const $=Z.constructor;if($&&$.prototype){if(!kX($.prototype))return!1;if(!_y($.prototype,"isPrototypeOf"))return!1}if(J){const X=Object.keys(Z);return TV(X,J)}return!0},yX=function(Z){if(Z==null)return Z;else if(Array.isArray(Z))return Z.map(($)=>yX($));else if(IV(Z)){const $={};for(let X in Z)$[X]=yX(Z[X]);return $}const J=Z.constructor;if(J)switch(J.name.toLowerCase()){case"date":return new J(Number(Z));case"map":return new Map(Z);case"set":return new Set(Z);case"buffer":return Buffer.from(Z)}return Z},NV=function(Z){return process.emitWarning(Z,{code:CV.MONGODB_WARNING_CODE})},xy=function(Z){if(!LV.has(Z))return LV.add(Z),NV(Z)},vy=function(Z){return Object.values(Z).join(", ")},fy=function(Z){if(!Z)return!1;if(Z.loadBalanced)return!0;if(Z.description.logicalSessionTimeoutMinutes!=null){if(Z.description.type!==Gy.ServerType.Standalone)return!0}return!1},gy=function(Z,J=0){const $=Array.from(Z);if(J>$.length)throw new $0.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=J%$.length===0?1:$.length-J;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return J%$.length===0?$:$.slice(Y)},by=function(Z,J){if(Z.aggregate||Z.count||Z.distinct||Z.find||Z.geoNear)return!0;if(Z.mapReduce&&J&&J.out&&(J.out.inline===1||J.out==="inline"))return!0;return!1},my=function(){let Z=null;if(typeof process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE==="string"&&process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE.length>0)try{Z=import.meta.require(process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE)}catch{}else try{Z=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch{}return Z},uy=function(Z,J){if(Z==null&&J==null)return 0;if(Z==null)return-1;if(J==null)return 1;return CV.ByteUtils.compare(Z.id,J.id)},BV=function(Z){if(typeof Z==="number")return Math.trunc(Z);const J=Number.parseInt(String(Z),10);return Number.isNaN(J)?null:J},dy=function(Z){const J=BV(Z);return J!=null&&J>=0?J:null},py=function(Z,J){const $=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,X=J.endsWith(".")?J.slice(0,J.length-1):J,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function cy(Z,J={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...Jy.parse(Z),...J},Q=Zy.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>{G+=F}),K.once("end",()=>{if(J.json===!1){$(G);return}try{const F=JSON.parse(G);$(F)}catch{X(new $0.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new $0.MongoNetworkTimeoutError(`Network request to ${Z} timed out after ${J.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}Object.defineProperty(CV,"__esModule",{value:!0});CV.matchesParentDomain=CV.parseUnsignedInteger=CV.parseInteger=CV.compareObjectId=CV.getMongoDBClientEncryption=CV.commandSupportsReadConcern=CV.shuffle=CV.supportsRetryableWrites=CV.enumToString=CV.emitWarningOnce=CV.emitWarning=CV.MONGODB_WARNING_CODE=CV.DEFAULT_PK_FACTORY=CV.HostAddress=CV.BufferPool=CV.List=CV.deepCopy=CV.isRecord=CV.setDifference=CV.isHello=CV.isSuperset=CV.resolveOptions=CV.hasAtomicOperators=CV.calculateDurationInMs=CV.now=CV.makeStateMachine=CV.errorStrictEqual=CV.arrayStrictEqual=CV.eachAsync=CV.maxWireVersion=CV.uuidV4=CV.databaseNamespace=CV.maybeCallback=CV.makeCounter=CV.MongoDBCollectionNamespace=CV.MongoDBNamespace=CV.ns=CV.getTopology=CV.decorateWithExplain=CV.decorateWithReadConcern=CV.decorateWithCollation=CV.isPromiseLike=CV.applyRetryableWrites=CV.filterOptions=CV.mergeOptions=CV.isObject=CV.normalizeHintField=CV.checkCollectionName=CV.hostMatchesWildcards=CV.ByteUtils=void 0;CV.request=void 0;var ek=import.meta.require("crypto"),Zy=import.meta.require("http"),Jy=import.meta.require("url"),$y=import.meta.require("url"),wV=D1(),Xy=w4(),Yy=g1(),$0=h(),Qy=p0(),Ky=y1(),Gy=c0(),Fy=L0();CV.ByteUtils={toLocalBufferType(Z){return Buffer.isBuffer(Z)?Z:Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength)},equals(Z,J){return CV.ByteUtils.toLocalBufferType(Z).equals(J)},compare(Z,J){return CV.ByteUtils.toLocalBufferType(Z).compare(J)},toBase64(Z){return CV.ByteUtils.toLocalBufferType(Z).toString("base64")}};CV.hostMatchesWildcards=Wy;CV.checkCollectionName=qy;CV.normalizeHintField=Hy;var zy=(Z)=>Object.prototype.toString.call(Z);CV.isObject=kX;CV.mergeOptions=Uy;CV.filterOptions=Vy;CV.applyRetryableWrites=My;CV.isPromiseLike=jy;CV.decorateWithCollation=Ay;CV.decorateWithReadConcern=Ly;CV.decorateWithExplain=wy;CV.getTopology=RV;CV.ns=Ry;class w5{constructor(Z,J){this.db=Z,this.collection=J,this.collection=J===""?void 0:J}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(Z){return new _X(this.db,Z)}static fromString(Z){if(typeof Z!=="string"||Z==="")throw new $0.MongoRuntimeError(`Cannot parse namespace from "${Z}"`);const[J,...$]=Z.split("."),X=$.join(".");return new w5(J,X===""?void 0:X)}}CV.MongoDBNamespace=w5;class _X extends w5{constructor(Z,J){super(Z,J);this.collection=J}}CV.MongoDBCollectionNamespace=_X;CV.makeCounter=Py;CV.maybeCallback=Dy;CV.databaseNamespace=Ty;CV.uuidV4=Iy;CV.maxWireVersion=Ey;CV.eachAsync=Ny;CV.arrayStrictEqual=By;CV.errorStrictEqual=Cy;CV.makeStateMachine=hy;CV.now=PV;CV.calculateDurationInMs=Oy;CV.hasAtomicOperators=DV;CV.resolveOptions=Sy;CV.isSuperset=TV;CV.isHello=ky;CV.setDifference=yy;var _y=(Z,J)=>Object.prototype.hasOwnProperty.call(Z,J);CV.isRecord=IV;CV.deepCopy=yX;class xX{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(let Z of this.nodes())yield Z.value}*nodes(){let Z=this.head.next;while(Z!==this.head){const{next:J}=Z;yield Z,Z=J}}push(Z){this.count+=1;const J={next:this.head,prev:this.head.prev,value:Z};this.head.prev.next=J,this.head.prev=J}pushMany(Z){for(let J of Z)this.push(J)}unshift(Z){this.count+=1;const J={next:this.head.next,prev:this.head,value:Z};this.head.next.prev=J,this.head.next=J}remove(Z){if(Z===this.head||this.length===0)return null;this.count-=1;const{prev:J,next:$}=Z;return J.next=$,$.prev=J,Z.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(Z){for(let J of this.nodes())if(Z(J.value))this.remove(J)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}CV.List=xX;class EV{constructor(){this.buffers=new xX,this.totalByteLength=0}get length(){return this.totalByteLength}append(Z){this.buffers.push(Z),this.totalByteLength+=Z.length}getInt32(){if(this.totalByteLength<4)return null;const Z=this.buffers.first();if(Z!=null&&Z.byteLength>=4)return Z.readInt32LE(0);const J=this.read(4),$=J.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(J),$}read(Z){if(typeof Z!=="number"||Z<0)throw new $0.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(Z>this.totalByteLength)return Buffer.alloc(0);const J=Buffer.allocUnsafe(Z);for(let $=0;$<Z;){const X=this.buffers.shift();if(X==null)break;const Y=Z-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(J.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return J}}CV.BufferPool=EV;class L5{constructor(Z){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const J=Z.split(" ").join("%20");if(J.endsWith(".sock")){this.socketPath=decodeURIComponent(J);return}const $=`iLoveJS://${J}`;let X;try{X=new $y.URL($)}catch(G){const F=new $0.MongoRuntimeError(`Unable to parse ${J} with URL`);throw F.cause=G,F}const{hostname:Y,port:Q}=X;let K=decodeURIComponent(Y).toLowerCase();if(K.startsWith("[")&&K.endsWith("]"))this.isIPv6=!0,K=K.substring(1,Y.length-1);if(this.host=K.toLowerCase(),typeof Q==="number")this.port=Q;else if(typeof Q==="string"&&Q!=="")this.port=Number.parseInt(Q,10);else this.port=27017;if(this.port===0)throw new $0.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){if(typeof this.host==="string"){if(this.isIPv6)return`[${this.host}]:${this.port}`;return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(Z){return new L5(Z)}static fromHostPort(Z,J){if(Z.includes(":"))Z=`[${Z}]`;return L5.fromString(`${Z}:${J}`)}static fromSrvRecord({name:Z,port:J}){return L5.fromHostPort(Z,J)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const Z=this.host??"",J=this.port??0;return{host:Z,port:J}}}CV.HostAddress=L5;CV.DEFAULT_PK_FACTORY={createPk(){return new wV.ObjectId}};CV.MONGODB_WARNING_CODE="MONGODB DRIVER";CV.emitWarning=NV;var LV=new Set;CV.emitWarningOnce=xy;CV.enumToString=vy;CV.supportsRetryableWrites=fy;CV.shuffle=gy;CV.commandSupportsReadConcern=by;CV.getMongoDBClientEncryption=my;CV.compareObjectId=uy;CV.parseInteger=BV;CV.parseUnsignedInteger=dy;CV.matchesParentDomain=py;CV.request=cy});var gX=z((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});kV.Explain=kV.ExplainVerbosity=void 0;var g_=h();kV.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class fX{constructor(Z){if(typeof Z==="boolean")this.verbosity=Z?kV.ExplainVerbosity.allPlansExecution:kV.ExplainVerbosity.queryPlanner;else this.verbosity=Z}static fromOptions(Z){if(Z?.explain==null)return;const J=Z.explain;if(typeof J==="boolean"||typeof J==="string")return new fX(J);throw new g_.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}kV.Explain=fX});var P5=z((xV)=>{var m_=function(){return(Z,J)=>bX(Z,J.filter(($)=>$.isWritable))},u_=function(Z){return(J,$)=>{if(!Z)return[];return $.filter((X)=>{return X.address===Z.address&&X.type!==B0.ServerType.Unknown})}},d_=function(Z,J){if(!J||!Z||Z&&Z<xV.MIN_SECONDARY_WRITE_WIRE_VERSION)return mX(R5.ReadPreference.primary);return mX(J)},p_=function(Z,J,$){if(Z.maxStalenessSeconds==null||Z.maxStalenessSeconds<0)return $;const X=Z.maxStalenessSeconds,Y=(J.heartbeatFrequencyMS+b_)/1000;if(X<Y)throw new VZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<_V)throw new VZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${_V} seconds`);if(J.type===B0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(J.servers.values()).filter(UZ)[0];return $.reduce((K,G)=>{const W=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+J.heartbeatFrequencyMS)/1000,q=Z.maxStalenessSeconds??0;if(W<=q)K.push(G);return K},[])}if(J.type===B0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const W=(Q.lastWriteDate-G.lastWriteDate+J.heartbeatFrequencyMS)/1000,q=Z.maxStalenessSeconds??0;if(W<=q)K.push(G);return K},[])}return $},c_=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||J[Q]!==Z[Q])return!1}return!0},l_=function(Z,J){if(Z.tags==null||Array.isArray(Z.tags)&&Z.tags.length===0)return J;for(let $=0;$<Z.tags.length;++$){const X=Z.tags[$],Y=J.reduce((Q,K)=>{if(c_(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},bX=function(Z,J){const $=J.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+Z.localThresholdMS;return J.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},UZ=function(Z){return Z.type===B0.ServerType.RSPrimary},a_=function(Z){return Z.type===B0.ServerType.RSSecondary},i_=function(Z){return Z.type===B0.ServerType.RSSecondary||Z.type===B0.ServerType.RSPrimary},s_=function(Z){return Z.type!==B0.ServerType.Unknown},n_=function(Z){return Z.type===B0.ServerType.LoadBalancer},mX=function(Z){if(!Z.isValid())throw new VZ.MongoInvalidArgumentError("Invalid read preference specified");return(J,$)=>{const X=J.commonWireVersion;if(X&&Z.minWireVersion&&Z.minWireVersion>X)throw new VZ.MongoCompatibilityError(`Minimum wire version '${Z.minWireVersion}' required, but found '${X}'`);if(J.type===B0.TopologyType.LoadBalanced)return $.filter(n_);if(J.type===B0.TopologyType.Unknown)return[];if(J.type===B0.TopologyType.Single||J.type===B0.TopologyType.Sharded)return bX(J,$.filter(s_));const Y=Z.mode;if(Y===R5.ReadPreference.PRIMARY)return $.filter(UZ);if(Y===R5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(UZ);if(G.length)return G}const Q=Y===R5.ReadPreference.NEAREST?i_:a_,K=bX(J,l_(Z,p_(Z,J,$.filter(Q))));if(Y===R5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(UZ);return K}};Object.defineProperty(xV,"__esModule",{value:!0});xV.readPreferenceServerSelector=xV.secondaryWritableServerSelector=xV.sameServerSelector=xV.writableServerSelector=xV.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var VZ=h(),R5=y1(),B0=c0(),b_=1e4,_V=90;xV.MIN_SECONDARY_WRITE_WIRE_VERSION=13;xV.writableServerSelector=m_;xV.sameServerSelector=u_;xV.secondaryWritableServerSelector=d_;xV.readPreferenceServerSelector=mX});var J1=z((bV)=>{var Jx=function(Z,J){if(!Array.isArray(J)&&!(J instanceof Set))J=[J];return J=new Set(J),Object.defineProperty(Z,"aspects",{value:J,writable:!1}),J};Object.defineProperty(bV,"__esModule",{value:!0});bV.defineAspects=bV.AbstractCallbackOperation=bV.AbstractOperation=bV.Aspect=void 0;var e_=import.meta.require("util"),Zx=D1(),uX=y1();bV.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};var dX=Symbol("session");class pX{constructor(Z={}){this.readPreference=this.hasAspect(bV.Aspect.WRITE_OPERATION)?uX.ReadPreference.primary:uX.ReadPreference.fromOptions(Z)??uX.ReadPreference.primary,this.bsonOptions=Zx.resolveBSONOptions(Z),this[dX]=Z.session!=null?Z.session:void 0,this.options=Z,this.bypassPinningCheck=!!Z.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(Z){const J=this.constructor;if(J.aspects==null)return!1;return J.aspects.has(Z)}get session(){return this[dX]}clearSession(){this[dX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}bV.AbstractOperation=pX;class gV extends pX{constructor(Z={}){super(Z)}execute(Z,J){return e_.promisify(($)=>{this.executeCallback(Z,J,$)})()}}bV.AbstractCallbackOperation=gV;bV.defineAspects=Jx});var T1=z((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.CommandCallbackOperation=cV.CommandOperation=void 0;var Yx=h(),Qx=gX(),Kx=p0(),Gx=P5(),D5=_(),dV=L0(),X7=J1();class cX extends X7.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J??{};const $=J?.dbName||J?.authdb;if($)this.ns=new D5.MongoDBNamespace($,"$cmd");else this.ns=Z?Z.s.namespace.withCollection("$cmd"):new D5.MongoDBNamespace("admin","$cmd");if(this.readConcern=Kx.ReadConcern.fromOptions(J),this.writeConcern=dV.WriteConcern.fromOptions(J),this.hasAspect(X7.Aspect.EXPLAINABLE))this.explain=Qx.Explain.fromOptions(J);else if(J?.explain!=null)throw new Yx.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect(X7.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(Z,J,$){this.server=Z;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:J},Y=D5.maxWireVersion(Z),Q=this.session&&this.session.inTransaction();if(this.readConcern&&D5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<Gx.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect(X7.Aspect.WRITE_OPERATION)&&!Q)dV.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect(X7.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect(X7.Aspect.EXPLAINABLE)&&this.explain)$=D5.decorateWithExplain($,this.explain);return Z.commandAsync(this.ns,$,X)}}cV.CommandOperation=cX;class pV extends cX{constructor(Z,J){super(Z,J)}executeCommandCallback(Z,J,$,X){super.executeCommand(Z,J,$).then((Y)=>X(void 0,Y),(Y)=>X(Y,void 0))}}cV.CommandCallbackOperation=pV});var aX=z((sV)=>{Object.defineProperty(sV,"__esModule",{value:!0});sV.AddUserOperation=void 0;var Wx=import.meta.require("crypto"),qx=h(),aV=_(),Hx=T1(),iV=J1();class lX extends Hx.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.db=Z,this.username=J,this.password=$,this.options=X??{}}executeCallback(Z,J,$){const X=this.db,Y=this.username,Q=this.password,K=this.options;if("digestPassword"in K&&K.digestPassword!=null)return $(new qx.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let G;if(!K.roles||Array.isArray(K.roles)&&K.roles.length===0)if(aV.emitWarningOnce('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),X.databaseName.toLowerCase()==="admin")G=["root"];else G=["dbOwner"];else G=Array.isArray(K.roles)?K.roles:[K.roles];let F;try{F=aV.getTopology(X)}catch(U){return $(U)}const W=F.lastHello().maxWireVersion>=7;let q=Q;if(!W){const U=Wx.createHash("md5");U.update(`${Y}:mongo:${Q}`),q=U.digest("hex")}const H={createUser:Y,customData:K.customData||{},roles:G,digestPassword:W};if(typeof Q==="string")H.pwd=q;super.executeCommandCallback(Z,J,H,$)}}sV.AddUserOperation=lX;iV.defineAspects(lX,[iV.Aspect.WRITE_OPERATION])});var C0=z((eV)=>{var Ux=function(Z,J,$){return iX.maybeCallback(()=>Vx(Z,J),$)};async function Vx(Z,J){if(!(J instanceof x6.AbstractCallbackOperation))throw new q0.MongoRuntimeError("This method requires a valid operation instance");if(Z.topology==null){if(Z.s.hasBeenClosed)throw new q0.MongoNotConnectedError("Client must be connected before running operations");Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await Z.connect()}finally{delete Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=Z;if($==null)throw new q0.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=J.session,Y;if(X==null)Y=Symbol(),X=Z.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new q0.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new q0.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");const Q=J.readPreference??tV.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(tV.ReadPreference.primary))throw new q0.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!J.bypassPinningCheck)X.unpin();let G;if(J.hasAspect(x6.Aspect.MUST_SELECT_SAME_SERVER))G=rV.sameServerSelector(J.server?.description);else if(J.trySecondaryWrite)G=rV.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const F=await $.selectServerAsync(G,{session:X});if(X==null)return J.execute(F,void 0);if(!J.hasAspect(x6.Aspect.RETRYABLE))try{return await J.execute(F,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const W=$.s.options.retryReads&&!K&&J.canRetryRead,q=$.s.options.retryWrites&&!K&&iX.supportsRetryableWrites(F)&&J.canRetryWrite,H=J.hasAspect(x6.Aspect.READ_OPERATION),U=J.hasAspect(x6.Aspect.WRITE_OPERATION),j=H&&W||U&&q;if(U&&q)J.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await J.execute(F,X)}catch(V){if(j&&V instanceof q0.MongoError)return await Mx(J,V,{session:X,topology:$,selector:G});throw V}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function Mx(Z,J,{session:$,topology:X,selector:Y}){const Q=Z.hasAspect(x6.Aspect.WRITE_OPERATION),K=Z.hasAspect(x6.Aspect.READ_OPERATION);if(Q&&J.code===zx)throw new q0.MongoServerError({message:oV,errmsg:oV,originalError:J});if(Q&&!q0.isRetryableWriteError(J))throw J;if(K&&!q0.isRetryableReadError(J))throw J;if(J instanceof q0.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&Z.hasAspect(x6.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!iX.supportsRetryableWrites(G))throw new q0.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await Z.execute(G,$)}catch(F){if(F instanceof q0.MongoError&&F.hasErrorLabel(q0.MongoErrorLabel.NoWritesPerformed))throw J;throw F}}Object.defineProperty(eV,"__esModule",{value:!0});eV.executeOperation=void 0;var q0=h(),tV=y1(),rV=P5(),iX=_(),x6=J1(),zx=q0.MONGODB_ERROR_CODES.IllegalOperation,oV="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";eV.executeOperation=Ux});var YM=z(($M)=>{Object.defineProperty($M,"__esModule",{value:!0});$M.ListDatabasesOperation=void 0;var JM=_(),jx=T1(),sX=J1();class nX extends jx.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.ns=new JM.MongoDBNamespace("admin","$cmd")}executeCallback(Z,J,$){const X={listDatabases:1};if(typeof this.options.nameOnly==="boolean")X.nameOnly=this.options.nameOnly;if(this.options.filter)X.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")X.authorizedDatabases=this.options.authorizedDatabases;if(JM.maxWireVersion(Z)>=9&&this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,$)}}$M.ListDatabasesOperation=nX;sX.defineAspects(nX,[sX.Aspect.READ_OPERATION,sX.Aspect.RETRYABLE])});var rX=z((KM)=>{Object.defineProperty(KM,"__esModule",{value:!0});KM.RemoveUserOperation=void 0;var Ax=T1(),QM=J1();class tX extends Ax.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$,this.username=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropUser:this.username},(X)=>{$(X,X?!1:!0)})}}KM.RemoveUserOperation=tX;QM.defineAspects(tX,[QM.Aspect.WRITE_OPERATION])});var Y7=z((WM)=>{Object.defineProperty(WM,"__esModule",{value:!0});WM.RunAdminCommandOperation=WM.RunCommandOperation=void 0;var Lx=_(),wx=T1();class oX extends wx.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.command=J}executeCallback(Z,J,$){const X=this.command;this.executeCommandCallback(Z,J,X,$)}}WM.RunCommandOperation=oX;class FM extends oX{constructor(Z,J,$){super(Z,J,$);this.ns=new Lx.MongoDBNamespace("admin")}}WM.RunAdminCommandOperation=FM});var VM=z((zM)=>{Object.defineProperty(zM,"__esModule",{value:!0});zM.ValidateCollectionOperation=void 0;var MZ=h(),Px=T1();class HM extends Px.CommandCallbackOperation{constructor(Z,J,$){const X={validate:J},Y=Object.keys($);for(let Q=0;Q<Y.length;Q++)if(Object.prototype.hasOwnProperty.call($,Y[Q])&&Y[Q]!=="session")X[Y[Q]]=$[Y[Q]];super(Z.s.db,$);this.options=$,this.command=X,this.collectionName=J}executeCallback(Z,J,$){const X=this.collectionName;super.executeCommandCallback(Z,J,this.command,(Y,Q)=>{if(Y!=null)return $(Y);if(Q.ok===0)return $(new MZ.MongoRuntimeError("Error with validate command"));if(Q.result!=null&&typeof Q.result!=="string")return $(new MZ.MongoRuntimeError("Error with validation data"));if(Q.result!=null&&Q.result.match(/exception|corrupt/)!=null)return $(new MZ.MongoRuntimeError(`Invalid collection ${X}`));if(Q.valid!=null&&!Q.valid)return $(new MZ.MongoRuntimeError(`Invalid collection ${X}`));return $(void 0,Q)})}}zM.ValidateCollectionOperation=HM});var eX=z((jM)=>{Object.defineProperty(jM,"__esModule",{value:!0});jM.Admin=void 0;var Dx=aX(),T5=C0(),Tx=YM(),Ix=rX(),Ex=Y7(),Nx=VM();class MM{constructor(Z){this.s={db:Z}}async command(Z,J){return T5.executeOperation(this.s.db.client,new Ex.RunCommandOperation(this.s.db,Z,{dbName:"admin",...J}))}async buildInfo(Z){return this.command({buildinfo:1},Z)}async serverInfo(Z){return this.command({buildinfo:1},Z)}async serverStatus(Z){return this.command({serverStatus:1},Z)}async ping(Z){return this.command({ping:1},Z)}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return T5.executeOperation(this.s.db.client,new Dx.AddUserOperation(this.s.db,Z,X,{dbName:"admin",...$}))}async removeUser(Z,J){return T5.executeOperation(this.s.db.client,new Ix.RemoveUserOperation(this.s.db,Z,{dbName:"admin",...J}))}async validateCollection(Z,J={}){return T5.executeOperation(this.s.db.client,new Nx.ValidateCollectionOperation(this,Z,J))}async listDatabases(Z){return T5.executeOperation(this.s.db.client,new Tx.ListDatabasesOperation(this.s.db,Z))}async replSetGetStatus(Z){return this.command({replSetGetStatus:1},Z)}}jM.Admin=MM});var XY=z((LM)=>{var $Y=function(Z,J){const $={q:Z,limit:typeof J.limit==="number"?J.limit:0};if(J.collation)$.collation=J.collation;if(J.hint)$.hint=J.hint;return $};Object.defineProperty(LM,"__esModule",{value:!0});LM.makeDeleteStatement=LM.DeleteManyOperation=LM.DeleteOneOperation=LM.DeleteOperation=void 0;var I5=h(),Bx=T1(),l0=J1();class E5 extends Bx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.limit!=null?Z.limit>0:!0)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={delete:this.ns.collection,deletes:this.statements,ordered:Y};if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new I5.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}LM.DeleteOperation=E5;class ZY extends E5{constructor(Z,J,$){super(Z.s.namespace,[$Y(J,{...$,limit:1})],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new I5.MongoServerError(Y));if(Y.writeErrors)return $(new I5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}LM.DeleteOneOperation=ZY;class JY extends E5{constructor(Z,J,$){super(Z.s.namespace,[$Y(J,$)],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new I5.MongoServerError(Y));if(Y.writeErrors)return $(new I5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}LM.DeleteManyOperation=JY;LM.makeDeleteStatement=$Y;l0.defineAspects(E5,[l0.Aspect.RETRYABLE,l0.Aspect.WRITE_OPERATION]);l0.defineAspects(ZY,[l0.Aspect.RETRYABLE,l0.Aspect.WRITE_OPERATION,l0.Aspect.EXPLAINABLE,l0.Aspect.SKIP_COLLATION]);l0.defineAspects(JY,[l0.Aspect.WRITE_OPERATION,l0.Aspect.EXPLAINABLE,l0.Aspect.SKIP_COLLATION])});var KY=z((RM)=>{Object.defineProperty(RM,"__esModule",{value:!0});RM.BulkWriteOperation=void 0;var YY=J1();class QY extends YY.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.operations=J}executeCallback(Z,J,$){const X=this.collection,Y=this.operations,Q={...this.options,...this.bsonOptions,readPreference:this.readPreference},K=Q.ordered===!1?X.initializeUnorderedBulkOp(Q):X.initializeOrderedBulkOp(Q);try{for(let G=0;G<Y.length;G++)K.raw(Y[G])}catch(G){return $(G)}K.execute({...Q,session:J}).then((G)=>$(void 0,G),(G)=>$(G))}}RM.BulkWriteOperation=QY;YY.defineAspects(QY,[YY.Aspect.WRITE_OPERATION])});var GY=z((DM)=>{var yx=function(Z,J,$,X){let Y=$,Q=X;if(typeof $==="function")Q=$,Y={};const K=Y.full==null?!1:Y.full;let G;try{G=kx.getTopology(Z)}catch(W){return Q(W)}if(G.isDestroyed())return Q(new Sx.MongoTopologyClosedError);function F(W){const q={};for(let H=0;H<W.length;H++){const U=W[H];q[U.name]=[];for(let j in U.key)q[U.name].push([j,U.key[j]])}return q}Z.collection(J).listIndexes(Y).toArray().then((W)=>{if(!Array.isArray(W))return Q(void 0,[]);if(K)return Q(void 0,W);Q(void 0,F(W))},(W)=>Q(W))},_x=function(Z,J,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:Z.s.db.options?.forceServerObjectId)===!0)return J;return J.map((Y)=>{if(Y._id==null)Y._id=Z.s.pkFactory.createPk();return Y})};Object.defineProperty(DM,"__esModule",{value:!0});DM.prepareDocs=DM.indexInformation=void 0;var Sx=h(),kx=_();DM.indexInformation=yx;DM.prepareDocs=_x});var qY=z((EM)=>{Object.defineProperty(EM,"__esModule",{value:!0});EM.InsertManyOperation=EM.InsertOneOperation=EM.InsertOperation=void 0;var jZ=h(),vx=L0(),fx=KY(),gx=T1(),IM=GY(),$6=J1();class AZ extends gx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=Z,this.documents=J}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={insert:this.ns.collection,documents:this.documents,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.comment!==void 0)Q.comment=X.comment;super.executeCommandCallback(Z,J,Q,$)}}EM.InsertOperation=AZ;class FY extends AZ{constructor(Z,J,$){super(Z.s.namespace,IM.prepareDocs(Z,[J],$),$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new jZ.MongoServerError(Y));if(Y.writeErrors)return $(new jZ.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id})})}}EM.InsertOneOperation=FY;class WY extends $6.AbstractCallbackOperation{constructor(Z,J,$){super($);if(!Array.isArray(J))throw new jZ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=Z,this.docs=J}executeCallback(Z,J,$){const X=this.collection,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=vx.WriteConcern.fromOptions(Y);new fx.BulkWriteOperation(X,IM.prepareDocs(X,this.docs,Y).map((G)=>({insertOne:{document:G}})),Y).executeCallback(Z,J,(G,F)=>{if(G||F==null){if(G&&G.message==="Operation must be an object with an operation key")G=new jZ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");return $(G)}$(void 0,{acknowledged:Q?.w!==0,insertedCount:F.insertedCount,insertedIds:F.insertedIds})})}}EM.InsertManyOperation=WY;$6.defineAspects(AZ,[$6.Aspect.RETRYABLE,$6.Aspect.WRITE_OPERATION]);$6.defineAspects(FY,[$6.Aspect.RETRYABLE,$6.Aspect.WRITE_OPERATION]);$6.defineAspects(WY,[$6.Aspect.WRITE_OPERATION])});var MY=z((BM)=>{var LZ=function(Z,J,$){if(Z==null||typeof Z!=="object")throw new a0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(J==null||typeof J!=="object")throw new a0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:Z,u:J};if(typeof $.upsert==="boolean")X.upsert=$.upsert;if($.multi)X.multi=$.multi;if($.hint)X.hint=$.hint;if($.arrayFilters)X.arrayFilters=$.arrayFilters;if($.collation)X.collation=$.collation;return X};Object.defineProperty(BM,"__esModule",{value:!0});BM.makeUpdateStatement=BM.ReplaceOneOperation=BM.UpdateManyOperation=BM.UpdateOneOperation=BM.UpdateOperation=void 0;var a0=h(),HY=_(),ux=T1(),d1=J1();class Q7 extends ux.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.multi==null||Z.multi===!1)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={update:this.ns.collection,updates:this.statements,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new a0.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}BM.UpdateOperation=Q7;class zY extends Q7{constructor(Z,J,$,X){super(Z.s.namespace,[LZ(J,$,{...X,multi:!1})],X);if(!HY.hasAtomicOperators($))throw new a0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new a0.MongoServerError(Y));if(Y.writeErrors)return $(new a0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}BM.UpdateOneOperation=zY;class UY extends Q7{constructor(Z,J,$,X){super(Z.s.namespace,[LZ(J,$,{...X,multi:!0})],X);if(!HY.hasAtomicOperators($))throw new a0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new a0.MongoServerError(Y));if(Y.writeErrors)return $(new a0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}BM.UpdateManyOperation=UY;class VY extends Q7{constructor(Z,J,$,X){super(Z.s.namespace,[LZ(J,$,{...X,multi:!1})],X);if(HY.hasAtomicOperators($))throw new a0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new a0.MongoServerError(Y));if(Y.writeErrors)return $(new a0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}BM.ReplaceOneOperation=VY;BM.makeUpdateStatement=LZ;d1.defineAspects(Q7,[d1.Aspect.RETRYABLE,d1.Aspect.WRITE_OPERATION,d1.Aspect.SKIP_COLLATION]);d1.defineAspects(zY,[d1.Aspect.RETRYABLE,d1.Aspect.WRITE_OPERATION,d1.Aspect.EXPLAINABLE,d1.Aspect.SKIP_COLLATION]);d1.defineAspects(UY,[d1.Aspect.WRITE_OPERATION,d1.Aspect.EXPLAINABLE,d1.Aspect.SKIP_COLLATION]);d1.defineAspects(VY,[d1.Aspect.RETRYABLE,d1.Aspect.WRITE_OPERATION,d1.Aspect.SKIP_COLLATION])});var O5=z((xM)=>{var DZ=function(Z,J,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&J.ok===1){J.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:Z.operations[0]};J.writeErrors.push(new PZ(Q));return}else if(X.ok===0&&J.ok===0)return;if(_M(Z)&&X.n)J.nInserted=J.nInserted+X.n;if(AY(Z)&&X.n)J.nRemoved=J.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)J.upserted.push({index:X.upserted[Q].index+Z.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,J.upserted.push({index:Z.originalZeroIndex,_id:X.upserted});if(jY(Z)&&X.n){const Q=X.nModified;if(J.nUpserted=J.nUpserted+Y,J.nMatched=J.nMatched+(X.n-Y),typeof Q==="number")J.nModified=J.nModified+Q;else J.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:Z.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:Z.operations[X.writeErrors[Q].index]};J.writeErrors.push(new PZ(K))}if(X.writeConcernError)J.writeConcernErrors.push(new h5(X.writeConcernError))},kM=function(Z,J,$){if(Z.s.batches.length===0)return $(void 0,new f6(Z.s.bulkResult,Z.isOrdered));const X=Z.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof _1.MongoWriteConcernError))return $(new K7(K,new f6(Z.s.bulkResult,Z.isOrdered)));if(K instanceof _1.MongoWriteConcernError)return sx(X,Z.s.bulkResult,Z.isOrdered,K,$);DZ(X,Z.s.bulkResult,K,G);const F=new f6(Z.s.bulkResult,Z.isOrdered);if(Z.handleWriteError($,F))return;kM(Z,J,$)}const Q=v6.resolveOptions(Z,{...J,ordered:Z.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(Z.operationId)Y.operationId=Z.operationId;if(Z.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(Z.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(jY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(AY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(_M(X))RZ.executeOperation(Z.s.collection.client,new ax.InsertOperation(Z.s.namespace,X.operations,Q),Y);else if(jY(X))RZ.executeOperation(Z.s.collection.client,new P4.UpdateOperation(Z.s.namespace,X.operations,Q),Y);else if(AY(X))RZ.executeOperation(Z.s.collection.client,new C5.DeleteOperation(Z.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,DZ(X,Z.s.bulkResult,K,void 0),$()}},sx=function(Z,J,$,X,Y){DZ(Z,J,void 0,X.result),Y(new K7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new f6(J,$)))},OM=function(Z){if(typeof Z.s.options.forceServerObjectId==="boolean")return Z.s.options.forceServerObjectId;if(typeof Z.s.collection.s.db.options?.forceServerObjectId==="boolean")return Z.s.collection.s.db.options?.forceServerObjectId;return!1},_M=function(Z){return Z.batchType===xM.BatchType.INSERT},jY=function(Z){return Z.batchType===xM.BatchType.UPDATE},AY=function(Z){return Z.batchType===xM.BatchType.DELETE},B5=function(Z){let{currentOp:J}=Z.s;if(Z.s.currentOp=void 0,!J)J={};return J};Object.defineProperty(xM,"__esModule",{value:!0});xM.BulkOperationBase=xM.FindOperators=xM.MongoBulkWriteError=xM.mergeBatchResults=xM.WriteError=xM.WriteConcernError=xM.BulkWriteResult=xM.Batch=xM.BatchType=void 0;var wZ=D1(),_1=h(),C5=XY(),RZ=C0(),ax=qY(),ix=J1(),P4=MY(),v6=_(),hM=L0(),N5=Symbol("serverError");xM.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class SM{constructor(Z,J){this.originalZeroIndex=J,this.currentIndex=0,this.originalIndexes=[],this.batchType=Z,this.operations=[],this.size=0,this.sizeBytes=0}}xM.Batch=SM;class f6{static generateIdMap(Z){const J={};for(let $ of Z)J[$.index]=$._id;return J}constructor(Z,J){this.result=Z,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=f6.generateIdMap(this.result.upserted),this.insertedIds=f6.generateIdMap(this.getSuccessfullyInsertedIds(Z,J)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}getSuccessfullyInsertedIds(Z,J){if(Z.writeErrors.length===0)return Z.insertedIds;if(J)return Z.insertedIds.slice(0,Z.writeErrors[0].index);return Z.insertedIds.filter(({index:$})=>!Z.writeErrors.some((X)=>$===X.index))}get ok(){return this.result.ok}get nInserted(){return this.result.nInserted}get nUpserted(){return this.result.nUpserted}get nMatched(){return this.result.nMatched}get nModified(){return this.result.nModified}get nRemoved(){return this.result.nRemoved}getInsertedIds(){return this.result.insertedIds}getUpsertedIds(){return this.result.upserted}getUpsertedIdAt(Z){return this.result.upserted[Z]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(Z){return Z<this.result.writeErrors.length?this.result.writeErrors[Z]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length===0)return;else if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];else{let Z="";for(let J=0;J<this.result.writeConcernErrors.length;J++){const $=this.result.writeConcernErrors[J];if(Z=Z+$.errmsg,J===0)Z=Z+" and "}return new h5({errmsg:Z,code:_1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}xM.BulkWriteResult=f6;class h5{constructor(Z){this[N5]=Z}get code(){return this[N5].code}get errmsg(){return this[N5].errmsg}get errInfo(){return this[N5].errInfo}toJSON(){return this[N5]}toString(){return`WriteConcernError(${this.errmsg})`}}xM.WriteConcernError=h5;class PZ{constructor(Z){this.err=Z}get code(){return this.err.code}get index(){return this.err.index}get errmsg(){return this.err.errmsg}get errInfo(){return this.err.errInfo}getOperation(){return this.err.op}toJSON(){return{code:this.err.code,index:this.err.index,errmsg:this.err.errmsg,op:this.err.op}}toString(){return`WriteError(${JSON.stringify(this.toJSON())})`}}xM.WriteError=PZ;xM.mergeBatchResults=DZ;class K7 extends _1.MongoServerError{constructor(Z,J){super(Z);if(this.writeErrors=[],Z instanceof h5)this.err=Z;else if(!(Z instanceof Error))this.message=Z.message,this.code=Z.code,this.writeErrors=Z.writeErrors??[];this.result=J,Object.assign(this,Z)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}xM.MongoBulkWriteError=K7;class LY{constructor(Z){this.bulkOperation=Z}update(Z){const J=B5(this.bulkOperation);return this.bulkOperation.addToOperationsList(xM.BatchType.UPDATE,P4.makeUpdateStatement(J.selector,Z,{...J,multi:!0}))}updateOne(Z){if(!v6.hasAtomicOperators(Z))throw new _1.MongoInvalidArgumentError("Update document requires atomic operators");const J=B5(this.bulkOperation);return this.bulkOperation.addToOperationsList(xM.BatchType.UPDATE,P4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}replaceOne(Z){if(v6.hasAtomicOperators(Z))throw new _1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const J=B5(this.bulkOperation);return this.bulkOperation.addToOperationsList(xM.BatchType.UPDATE,P4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}deleteOne(){const Z=B5(this.bulkOperation);return this.bulkOperation.addToOperationsList(xM.BatchType.DELETE,C5.makeDeleteStatement(Z.selector,{...Z,limit:1}))}delete(){const Z=B5(this.bulkOperation);return this.bulkOperation.addToOperationsList(xM.BatchType.DELETE,C5.makeDeleteStatement(Z.selector,{...Z,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=Z,this}arrayFilters(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=Z,this}hint(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=Z,this}}xM.FindOperators=LY;class yM extends ix.AbstractCallbackOperation{constructor(Z,J){super(J);this.bulkOperation=Z}executeCallback(Z,J,$){if(this.options.session==null)this.options.session=J;return kM(this.bulkOperation,this.options,$)}}class wY{constructor(Z,J,$){this.isOrdered=$;const X=v6.getTopology(Z);J=J==null?{}:J;const Y=Z.s.namespace,Q=!1,K=void 0,G=X.lastHello(),F=!!(X.s.options&&X.s.options.autoEncrypter),W=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,q=F?2097152:W,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,U=(H-1).toString(10).length+2;let j=Object.assign({},J);j=v6.applyRetryableWrites(j,Z.s.db);const V={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:V,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:hM.WriteConcern.fromOptions(J),maxBsonObjectSize:W,maxBatchSizeBytes:q,maxWriteBatchSize:H,maxKeySize:U,namespace:Y,topology:X,options:j,bsonOptions:wZ.resolveBSONOptions(J),currentOp:K,executed:Q,collection:Z,err:void 0,checkKeys:typeof J.checkKeys==="boolean"?J.checkKeys:!1},J.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(Z){if(Z._id==null&&!OM(this))Z._id=new wZ.ObjectId;return this.addToOperationsList(xM.BatchType.INSERT,Z)}find(Z){if(!Z)throw new _1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:Z},new LY(this)}raw(Z){if(Z==null||typeof Z!=="object")throw new _1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in Z){const J=OM(this);if(Z.insertOne&&Z.insertOne.document==null){if(J!==!0&&Z.insertOne._id==null)Z.insertOne._id=new wZ.ObjectId;return this.addToOperationsList(xM.BatchType.INSERT,Z.insertOne)}if(J!==!0&&Z.insertOne.document._id==null)Z.insertOne.document._id=new wZ.ObjectId;return this.addToOperationsList(xM.BatchType.INSERT,Z.insertOne.document)}if("replaceOne"in Z||"updateOne"in Z||"updateMany"in Z){if("replaceOne"in Z){if("q"in Z.replaceOne)throw new _1.MongoInvalidArgumentError("Raw operations are not allowed");const J=P4.makeUpdateStatement(Z.replaceOne.filter,Z.replaceOne.replacement,{...Z.replaceOne,multi:!1});if(v6.hasAtomicOperators(J.u))throw new _1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(xM.BatchType.UPDATE,J)}if("updateOne"in Z){if("q"in Z.updateOne)throw new _1.MongoInvalidArgumentError("Raw operations are not allowed");const J=P4.makeUpdateStatement(Z.updateOne.filter,Z.updateOne.update,{...Z.updateOne,multi:!1});if(!v6.hasAtomicOperators(J.u))throw new _1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(xM.BatchType.UPDATE,J)}if("updateMany"in Z){if("q"in Z.updateMany)throw new _1.MongoInvalidArgumentError("Raw operations are not allowed");const J=P4.makeUpdateStatement(Z.updateMany.filter,Z.updateMany.update,{...Z.updateMany,multi:!0});if(!v6.hasAtomicOperators(J.u))throw new _1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(xM.BatchType.UPDATE,J)}}if("deleteOne"in Z){if("q"in Z.deleteOne)throw new _1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(xM.BatchType.DELETE,C5.makeDeleteStatement(Z.deleteOne.filter,{...Z.deleteOne,limit:1}))}if("deleteMany"in Z){if("q"in Z.deleteMany)throw new _1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(xM.BatchType.DELETE,C5.makeDeleteStatement(Z.deleteMany.filter,{...Z.deleteMany,limit:0}))}throw new _1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const Z=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)Z.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)Z.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)Z.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)Z.push(this.s.currentRemoveBatch)}return Z}async execute(Z={}){if(this.s.executed)throw new _1.MongoBatchReExecutionError;const J=hM.WriteConcern.fromOptions(Z);if(J)this.s.writeConcern=J;if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0)throw new _1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...Z},X=new yM(this,$);return RZ.executeOperation(this.s.collection.client,X)}handleWriteError(Z,J){if(this.s.bulkResult.writeErrors.length>0){const X=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return Z(new K7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},J)),!0}const $=J.getWriteConcernError();if($)return Z(new K7($,J)),!0;return!1}}xM.BulkOperationBase=wY;Object.defineProperty(wY.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var RY=z((bM)=>{Object.defineProperty(bM,"__esModule",{value:!0});bM.OrderedBulkOperation=void 0;var $v=D1(),fM=h(),TZ=O5();class gM extends TZ.BulkOperationBase{constructor(Z,J){super(Z,J,!0)}addToOperationsList(Z,J){const $=$v.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new fM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new TZ.Batch(Z,this.s.currentIndex);const X=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new TZ.Batch(Z,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(Z===TZ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:J._id});if(Array.isArray(J))throw new fM.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(J),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}bM.OrderedBulkOperation=gM});var PY=z((pM)=>{Object.defineProperty(pM,"__esModule",{value:!0});pM.UnorderedBulkOperation=void 0;var Xv=D1(),uM=h(),X6=O5();class dM extends X6.BulkOperationBase{constructor(Z,J){super(Z,J,!1)}handleWriteError(Z,J){if(this.s.batches.length)return!1;return super.handleWriteError(Z,J)}addToOperationsList(Z,J){const $=Xv.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new uM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,Z===X6.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(Z===X6.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(Z===X6.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new X6.Batch(Z,this.s.currentIndex);if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new X6.Batch(Z,this.s.currentIndex);if(Array.isArray(J))throw new uM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(J),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,Z===X6.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:J._id});else if(Z===X6.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(Z===X6.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}pM.UnorderedBulkOperation=dM});var IZ=z((aM)=>{Object.defineProperty(aM,"__esModule",{value:!0});aM.AggregateOperation=aM.DB_AGGREGATE_COLLECTION=void 0;var lM=h(),Yv=_(),Qv=L0(),Kv=T1(),S5=J1();aM.DB_AGGREGATE_COLLECTION=1;var Gv=8;class DY extends Kv.CommandCallbackOperation{constructor(Z,J,$){super(void 0,{...$,dbName:Z.db});if(this.options={...$},this.target=Z.collection||aM.DB_AGGREGATE_COLLECTION,this.pipeline=J,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(J.length>0){const X=J[J.length-1];if(X.$out||X.$merge)this.hasWriteStage=!0}if(this.hasWriteStage)this.trySecondaryWrite=!0;else delete this.options.writeConcern;if(this.explain&&this.writeConcern)throw new lM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new lM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(Z){this.pipeline.push(Z)}executeCallback(Z,J,$){const X=this.options,Y=Yv.maxWireVersion(Z),Q={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&Y<Gv)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)Qv.WriteConcern.apply(Q,this.writeConcern);if(X.bypassDocumentValidation===!0)Q.bypassDocumentValidation=X.bypassDocumentValidation;if(typeof X.allowDiskUse==="boolean")Q.allowDiskUse=X.allowDiskUse;if(X.hint)Q.hint=X.hint;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(Q.cursor=X.cursor||{},X.batchSize&&!this.hasWriteStage)Q.cursor.batchSize=X.batchSize;super.executeCommandCallback(Z,J,Q,$)}}aM.AggregateOperation=DY;S5.defineAspects(DY,[S5.Aspect.READ_OPERATION,S5.Aspect.RETRYABLE,S5.Aspect.EXPLAINABLE,S5.Aspect.CURSOR_CREATING])});var h0=z((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.CancellationToken=tM.TypedEventEmitter=void 0;var Fv=import.meta.require("events");class TY extends Fv.EventEmitter{emitAndLog(Z,...J){if(this.emit(Z,...J),this.component)this.mongoLogger?.debug(this.component,J[0])}}tM.TypedEventEmitter=TY;class nM extends TY{}tM.CancellationToken=nM});var NY=z((oM)=>{Object.defineProperty(oM,"__esModule",{value:!0});oM.GetMoreOperation=void 0;var IY=h(),qv=_(),EZ=J1();class EY extends EZ.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.options=X,this.ns=Z,this.cursorId=J,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new IY.MongoRuntimeError("Getmore must run on the same server operation began on"));if(this.cursorId==null||this.cursorId.isZero())return $(new IY.MongoRuntimeError("Unable to iterate cursor with no id"));const X=this.ns.collection;if(X==null)return $(new IY.MongoRuntimeError("A collection name must be determined before getMore"));const Y={getMore:this.cursorId,collection:X};if(typeof this.options.batchSize==="number")Y.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")Y.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&qv.maxWireVersion(Z)>=9)Y.comment=this.options.comment;const Q={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};Z.command(this.ns,Y,Q,$)}}oM.GetMoreOperation=EY;EZ.defineAspects(EY,[EZ.Aspect.READ_OPERATION,EZ.Aspect.MUST_SELECT_SAME_SERVER])});var Xj=z((Jj)=>{Object.defineProperty(Jj,"__esModule",{value:!0});Jj.KillCursorsOperation=void 0;var Zj=h(),BY=J1();class CY extends BY.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.ns=J,this.cursorId=Z,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new Zj.MongoRuntimeError("Killcursor must run on the same server operation began on"));const X=this.ns.collection;if(X==null)return $(new Zj.MongoRuntimeError("A collection name must be determined before killCursors"));const Y={killCursors:X,cursors:[this.cursorId]};Z.command(this.ns,Y,{session:J},()=>$())}}Jj.KillCursorsOperation=CY;BY.defineAspects(CY,[BY.Aspect.MUST_SELECT_SAME_SERVER])});var hY=z((Yj)=>{Object.defineProperty(Yj,"__esModule",{value:!0});Yj.ConnectionPoolMetrics=void 0;class Y6{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(Z){if(Z===Y6.TXN)this.txnConnections+=1;else if(Z===Y6.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(Z){if(Z===Y6.TXN)this.txnConnections-=1;else if(Z===Y6.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(Z){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${Z}, `+`connections in use by cursors: ${this.cursorConnections}, `+`connections in use by transactions: ${this.txnConnections}, `+`connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}}Y6.TXN="txn";Y6.CURSOR="cursor";Y6.OTHER="other";Yj.ConnectionPoolMetrics=Y6});var k5=z((Wj)=>{var Gj=function(Z,J){if(J?.loadBalanced)return C1.ServerType.LoadBalancer;if(!Z||!Z.ok)return C1.ServerType.Unknown;if(Z.isreplicaset)return C1.ServerType.RSGhost;if(Z.msg&&Z.msg==="isdbgrid")return C1.ServerType.Mongos;if(Z.setName)if(Z.hidden)return C1.ServerType.RSOther;else if(Z.isWritablePrimary)return C1.ServerType.RSPrimary;else if(Z.secondary)return C1.ServerType.RSSecondary;else if(Z.arbiterOnly)return C1.ServerType.RSArbiter;else return C1.ServerType.RSOther;return C1.ServerType.Standalone},Vv=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);return $.length===X.length&&$.every((Y)=>J[Y]===Z[Y])},Fj=function(Z,J){if(Z==null||J==null)return-1;if(!Z.processId.equals(J.processId))return-1;const $=NZ.Long.isLong(Z.counter)?Z.counter:NZ.Long.fromNumber(Z.counter),X=NZ.Long.isLong(J.counter)?J.counter:NZ.Long.fromNumber(J.counter);return $.compare(X)};Object.defineProperty(Wj,"__esModule",{value:!0});Wj.compareTopologyVersion=Wj.parseServerType=Wj.ServerDescription=void 0;var NZ=D1(),Hv=h(),G7=_(),C1=c0(),zv=new Set([C1.ServerType.RSPrimary,C1.ServerType.Standalone,C1.ServerType.Mongos,C1.ServerType.LoadBalancer]),Uv=new Set([C1.ServerType.RSPrimary,C1.ServerType.RSSecondary,C1.ServerType.Mongos,C1.ServerType.Standalone,C1.ServerType.LoadBalancer]);class Kj{constructor(Z,J,$={}){if(Z==null||Z==="")throw new Hv.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof Z==="string"?G7.HostAddress.fromString(Z).toString():Z.toString(),this.type=Gj(J,$),this.hosts=J?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=J?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=J?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=J?.tags??{},this.minWireVersion=J?.minWireVersion??0,this.maxWireVersion=J?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=G7.now(),this.lastWriteDate=J?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??J?.topologyVersion??null,this.setName=J?.setName??null,this.setVersion=J?.setVersion??null,this.electionId=J?.electionId??null,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes??null,this.primary=J?.primary??null,this.me=J?.me?.toLowerCase()??null,this.$clusterTime=J?.$clusterTime??null}get hostAddress(){return G7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===C1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return Uv.has(this.type)}get isWritable(){return zv.has(this.type)}get host(){const Z=`:${this.port}`.length;return this.address.slice(0,-Z)}get port(){const Z=this.address.split(":").pop();return Z?Number.parseInt(Z,10):27017}equals(Z){const J=this.topologyVersion===Z?.topologyVersion||Fj(this.topologyVersion,Z?.topologyVersion)===0,$=this.electionId!=null&&Z?.electionId!=null?G7.compareObjectId(this.electionId,Z.electionId)===0:this.electionId===Z?.electionId;return Z!=null&&G7.errorStrictEqual(this.error,Z.error)&&this.type===Z.type&&this.minWireVersion===Z.minWireVersion&&G7.arrayStrictEqual(this.hosts,Z.hosts)&&Vv(this.tags,Z.tags)&&this.setName===Z.setName&&this.setVersion===Z.setVersion&&$&&this.primary===Z.primary&&this.logicalSessionTimeoutMinutes===Z.logicalSessionTimeoutMinutes&&J}}Wj.ServerDescription=Kj;Wj.parseServerType=Gj;Wj.compareTopologyVersion=Fj});var SY=z((jj)=>{var Pv=function(Z){switch(Z){case i.ServerType.Standalone:return i.TopologyType.Single;case i.ServerType.Mongos:return i.TopologyType.Sharded;case i.ServerType.RSPrimary:return i.TopologyType.ReplicaSetWithPrimary;case i.ServerType.RSOther:case i.ServerType.RSSecondary:return i.TopologyType.ReplicaSetNoPrimary;default:return i.TopologyType.Unknown}},Mj=function(Z,J,$=null,X=null,Y=null){if($=$||J.setName,$!==J.setName)return Z.delete(J.address),[D4(Z),$,X,Y];if(J.maxWireVersion>=17){const G=OY.compareObjectId(Y,J.electionId),F=G===0,W=G===-1,q=(X??-1)<=(J.setVersion??-1);if(W||F&&q)Y=J.electionId,X=J.setVersion;else return Z.set(J.address,new g6.ServerDescription(J.address)),[D4(Z),$,X,Y]}else{const G=J.electionId?J.electionId:null;if(J.setVersion&&G){if(X&&Y){if(X>J.setVersion||OY.compareObjectId(Y,G)>0)return Z.set(J.address,new g6.ServerDescription(J.address)),[D4(Z),$,X,Y]}Y=J.electionId}if(J.setVersion!=null&&(X==null||J.setVersion>X))X=J.setVersion}for(let[G,F]of Z)if(F.type===i.ServerType.RSPrimary&&F.address!==J.address){Z.set(G,new g6.ServerDescription(F.address));break}J.allHosts.forEach((G)=>{if(!Z.has(G))Z.set(G,new g6.ServerDescription(G))});const Q=Array.from(Z.keys()),K=J.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{Z.delete(G)}),[D4(Z),$,X,Y]},Dv=function(Z,J,$=null){if($==null)throw new Av.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==J.setName||J.me&&J.address!==J.me)Z.delete(J.address);return D4(Z)},Tv=function(Z,J,$=null){const X=i.TopologyType.ReplicaSetNoPrimary;if($=$??J.setName,$!==J.setName)return Z.delete(J.address),[X,$];if(J.allHosts.forEach((Y)=>{if(!Z.has(Y))Z.set(Y,new g6.ServerDescription(Y))}),J.me&&J.address!==J.me)Z.delete(J.address);return[X,$]},D4=function(Z){for(let J of Z.values())if(J.type===i.ServerType.RSPrimary)return i.TopologyType.ReplicaSetWithPrimary;return i.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(jj,"__esModule",{value:!0});jj.TopologyDescription=void 0;var BZ=w4(),Av=h(),OY=_(),i=c0(),g6=k5(),Lv=BZ.MIN_SUPPORTED_SERVER_VERSION,wv=BZ.MAX_SUPPORTED_SERVER_VERSION,Hj=BZ.MIN_SUPPORTED_WIRE_VERSION,zj=BZ.MAX_SUPPORTED_WIRE_VERSION,Rv=new Set([i.ServerType.Mongos,i.ServerType.Unknown]),Uj=new Set([i.ServerType.Mongos,i.ServerType.Standalone]),Vj=new Set([i.ServerType.RSSecondary,i.ServerType.RSArbiter,i.ServerType.RSOther]);class y5{constructor(Z,J=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=Z??i.TopologyType.Unknown,this.servers=J??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=K.heartbeatFrequencyMS??0,this.localThresholdMS=K.localThresholdMS??15,this.setName=$??null,this.maxElectionId=Y??null,this.maxSetVersion=X??null,this.commonWireVersion=Q??0;for(let G of this.servers.values()){if(G.type===i.ServerType.Unknown||G.type===i.ServerType.LoadBalancer)continue;if(G.minWireVersion>zj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${zj} (MongoDB ${wv})`;if(G.maxWireVersion<Hj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${Hj} (MongoDB ${Lv}).`;break}}this.logicalSessionTimeoutMinutes=null;for(let[,G]of this.servers)if(G.isReadable){if(G.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=G.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,G.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(Z,J=0){const $=Z.hostnames(),X=new Set(this.servers.keys()),Y=new Set($),Q=new Set;for(let G of X)if(Y.delete(G),!$.has(G))Q.add(G);if(Y.size===0&&Q.size===0)return this;const K=new Map(this.servers);for(let G of Q)K.delete(G);if(Y.size>0){if(J===0)for(let G of Y)K.set(G,new g6.ServerDescription(G));else if(K.size<J){const G=OY.shuffle(Y,J-K.size);for(let F of G)K.set(F,new g6.ServerDescription(F))}}return new y5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(Z){const J=Z.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=Z.type,F=new Map(this.servers);if(Z.maxWireVersion!==0)if(K==null)K=Z.maxWireVersion;else K=Math.min(K,Z.maxWireVersion);if(typeof Z.setName==="string"&&typeof X==="string"&&Z.setName!==X)if($===i.TopologyType.Single)Z=new g6.ServerDescription(J);else F.delete(J);if(F.set(J,Z),$===i.TopologyType.Single)return new y5(i.TopologyType.Single,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===i.TopologyType.Unknown)if(G===i.ServerType.Standalone&&this.servers.size!==1)F.delete(J);else $=Pv(G);if($===i.TopologyType.Sharded){if(!Rv.has(G))F.delete(J)}if($===i.TopologyType.ReplicaSetNoPrimary){if(Uj.has(G))F.delete(J);if(G===i.ServerType.RSPrimary){const W=Mj(F,Z,X,Y,Q);$=W[0],X=W[1],Y=W[2],Q=W[3]}else if(Vj.has(G)){const W=Tv(F,Z,X);$=W[0],X=W[1]}}if($===i.TopologyType.ReplicaSetWithPrimary)if(Uj.has(G))F.delete(J),$=D4(F);else if(G===i.ServerType.RSPrimary){const W=Mj(F,Z,X,Y,Q);$=W[0],X=W[1],Y=W[2],Q=W[3]}else if(Vj.has(G))$=Dv(F,Z,X);else $=D4(F);return new y5($,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const Z=Array.from(this.servers.values()).filter((J)=>J.error);if(Z.length>0)return Z[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((Z)=>Z.type!==i.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((Z)=>Z.isDataBearing)}hasServer(Z){return this.servers.has(Z)}}jj.TopologyDescription=y5});var yY=z((wj)=>{var Nv=function(Z){let J=Z?.readPreference??kY.ReadPreference.primary;if(Z?.readPreference)J=Z.readPreference;if(typeof J==="string")J=kY.ReadPreference.fromString(J);if(!(J instanceof kY.ReadPreference))throw new Iv.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return J},Bv=function(Z){if(Z==null)return!1;if(Z.description&&Z.description.type===Lj.ServerType.Mongos)return!0;if(Z.description&&Z.description instanceof Ev.TopologyDescription)return Array.from(Z.description.servers.values()).some(($)=>$.type===Lj.ServerType.Mongos);return!1};Object.defineProperty(wj,"__esModule",{value:!0});wj.isSharded=wj.getReadPreference=void 0;var Iv=h(),kY=y1(),Lj=c0(),Ev=SY();wj.getReadPreference=Nv;wj.isSharded=Bv});var _Y=z((Tj)=>{var xv=function(Z){return!!(Z.commitTransaction||Z.abortTransaction)};Object.defineProperty(Tj,"__esModule",{value:!0});Tj.isTransactionCommand=Tj.Transaction=Tj.TxnState=void 0;var Pj=h(),hv=p0(),Ov=y1(),Sv=L0();Tj.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});var kv={[Tj.TxnState.NO_TRANSACTION]:[Tj.TxnState.NO_TRANSACTION,Tj.TxnState.STARTING_TRANSACTION],[Tj.TxnState.STARTING_TRANSACTION]:[Tj.TxnState.TRANSACTION_IN_PROGRESS,Tj.TxnState.TRANSACTION_COMMITTED,Tj.TxnState.TRANSACTION_COMMITTED_EMPTY,Tj.TxnState.TRANSACTION_ABORTED],[Tj.TxnState.TRANSACTION_IN_PROGRESS]:[Tj.TxnState.TRANSACTION_IN_PROGRESS,Tj.TxnState.TRANSACTION_COMMITTED,Tj.TxnState.TRANSACTION_ABORTED],[Tj.TxnState.TRANSACTION_COMMITTED]:[Tj.TxnState.TRANSACTION_COMMITTED,Tj.TxnState.TRANSACTION_COMMITTED_EMPTY,Tj.TxnState.STARTING_TRANSACTION,Tj.TxnState.NO_TRANSACTION],[Tj.TxnState.TRANSACTION_ABORTED]:[Tj.TxnState.STARTING_TRANSACTION,Tj.TxnState.NO_TRANSACTION],[Tj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Tj.TxnState.TRANSACTION_COMMITTED_EMPTY,Tj.TxnState.NO_TRANSACTION]},yv=new Set([Tj.TxnState.STARTING_TRANSACTION,Tj.TxnState.TRANSACTION_IN_PROGRESS]),_v=new Set([Tj.TxnState.TRANSACTION_COMMITTED,Tj.TxnState.TRANSACTION_COMMITTED_EMPTY,Tj.TxnState.TRANSACTION_ABORTED]);class Dj{constructor(Z){Z=Z??{},this.state=Tj.TxnState.NO_TRANSACTION,this.options={};const J=Sv.WriteConcern.fromOptions(Z);if(J){if(J.w===0)throw new Pj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=J}if(Z.readConcern)this.options.readConcern=hv.ReadConcern.fromOptions(Z);if(Z.readPreference)this.options.readPreference=Ov.ReadPreference.fromOptions(Z);if(Z.maxCommitTimeMS)this.options.maxTimeMS=Z.maxCommitTimeMS;this._pinnedServer=void 0,this._recoveryToken=void 0}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===Tj.TxnState.STARTING_TRANSACTION}get isActive(){return yv.has(this.state)}get isCommitted(){return _v.has(this.state)}transition(Z){const J=kv[this.state];if(J&&J.includes(Z)){if(this.state=Z,this.state===Tj.TxnState.NO_TRANSACTION||this.state===Tj.TxnState.STARTING_TRANSACTION||this.state===Tj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new Pj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${Z}]`)}pinServer(Z){if(this.isActive)this._pinnedServer=Z}unpinServer(){this._pinnedServer=void 0}}Tj.Transaction=Dj;Tj.isTransactionCommand=xv});var x5=z((_j)=>{var kj=function(Z,J){return q8.calculateDurationInMs(Z)<J},cv=function(Z){const J=Z instanceof b.MongoServerError&&Z.codeName&&pv.has(Z.codeName);return yZ(Z)||!J&&Z.code!==b.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&Z.code!==b.MONGODB_ERROR_CODES.UnknownReplWriteConcern},kZ=function(Z,J){const $=Z[W7],X=J?.error;if(Z.inTransaction()&&X&&X instanceof b.MongoError&&X.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return;const Y=Z.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(J?.error==null||J?.force){if(K.pool.checkIn($),$.emit(Oj.UNPINNED,Z.transaction.state!==j1.TxnState.NO_TRANSACTION?hZ.ConnectionPoolMetrics.TXN:hZ.ConnectionPoolMetrics.CURSOR),J?.forceClear)K.pool.clear({serviceId:$.serviceId})}Z[W7]=void 0}},yZ=function(Z){if(Z==null||!(Z instanceof b.MongoServerError))return!1;return Z.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired||Z.writeConcernError&&Z.writeConcernError.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired},yj=function(Z,J,$,X){return Z.commitTransaction().catch((Y)=>{if(Y instanceof b.MongoError&&kj(J,Sj)&&!yZ(Y)){if(Y.hasErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult))return yj(Z,J,$,X);if(Y.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return fY(Z,J,$,X)}throw Y})},av=function(Z){return lv.has(Z.transaction.state)},fY=function(Z,J,$,X){Z.startTransaction(X);let Y;try{Y=$(Z)}catch(Q){Y=Promise.reject(Q)}if(!q8.isPromiseLike(Y))throw Z.abortTransaction().catch(()=>null),new b.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return Y.then(()=>{if(av(Z))return;return yj(Z,J,$,X)},(Q)=>{function K(G){if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError)&&kj(J,Sj))return fY(Z,J,$,X);if(yZ(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(Z.inTransaction())return Z.abortTransaction().then(()=>K(Q));return K(Q)})},iv=function(Z,J,$){const X=Z.transaction.state;if(X===j1.TxnState.NO_TRANSACTION){$(new b.MongoTransactionError("No transaction started"));return}if(J==="commitTransaction"){if(X===j1.TxnState.STARTING_TRANSACTION||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===j1.TxnState.TRANSACTION_COMMITTED||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new b.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[J]:1};let Q;if(Z.transaction.options.writeConcern)Q=Object.assign({},Z.transaction.options.writeConcern);else if(Z.clientOptions&&Z.clientOptions.writeConcern)Q={w:Z.clientOptions.writeConcern.w};if(X===j1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)uv.WriteConcern.apply(Y,Q);if(J==="commitTransaction"&&Z.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:Z.transaction.options.maxTimeMS});function K(G,F){if(J!=="commitTransaction"){if(Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),Z.loadBalanced)kZ(Z,{force:!1});return $()}if(Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED),G instanceof b.MongoError){if(G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)||G instanceof b.MongoWriteConcernError||yZ(G)){if(cv(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult),Z.unpin({error:G})}else if(G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))Z.unpin({error:G})}$(G,F)}if(Z.transaction.recoveryToken)Y.recoveryToken=Z.transaction.recoveryToken;Ej.executeOperation(Z.client,new Nj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:Bj.ReadPreference.primary,bypassPinningCheck:!0}),(G,F)=>{if(Y.abortTransaction)Z.unpin();if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)){if(Y.commitTransaction)Z.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Ej.executeOperation(Z.client,new Nj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:Bj.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G,F)})},sv=function(Z,J,$){if(Z.hasEnded)return new b.MongoExpiredSessionError;const X=Z.serverSession;if(X==null)return new b.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(Z&&Z.explicit)return new b.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=q8.now(),J.lsid=X.id;const Y=Z.inTransaction()||j1.isTransactionCommand(J);if(!!$.willRetryWrite||Y)X.txnNumber+=Z[SZ],Z[SZ]=0,J.txnNumber=CZ.Long.fromNumber(X.txnNumber);if(!Y){if(Z.transaction.state!==j1.TxnState.NO_TRANSACTION)Z.transaction.transition(j1.TxnState.NO_TRANSACTION);if(Z.supports.causalConsistency&&Z.operationTime&&q8.commandSupportsReadConcern(J,$))J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime});else if(Z[q7]){if(J.readConcern=J.readConcern||{level:mv.ReadConcernLevel.snapshot},Z[OZ]!=null)Object.assign(J.readConcern,{atClusterTime:Z[OZ]})}return}if(J.autocommit=!1,Z.transaction.state===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_IN_PROGRESS),J.startTransaction=!0;const K=Z.transaction.options.readConcern||Z?.clientOptions?.readConcern;if(K)J.readConcern=K;if(Z.supports.causalConsistency&&Z.operationTime)J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime})}return},nv=function(Z,J){if(J.$clusterTime)xY._advanceClusterTime(Z,J.$clusterTime);if(J.operationTime&&Z&&Z.supports.causalConsistency)Z.advanceOperationTime(J.operationTime);if(J.recoveryToken&&Z&&Z.inTransaction())Z.transaction._recoveryToken=J.recoveryToken;if(Z?.[q7]&&Z[OZ]==null){const $=J.cursor?.atClusterTime||J.atClusterTime;if($)Z[OZ]=$}},hj;Object.defineProperty(_j,"__esModule",{value:!0});_j.updateSessionFromResponse=_j.applySession=_j.ServerSessionPool=_j.ServerSession=_j.maybeClearPinnedConnection=_j.ClientSession=void 0;var fv=import.meta.require("util"),CZ=D1(),hZ=hY(),gv=yY(),Oj=g1(),b=h(),bv=h0(),Ej=C0(),Nj=Y7(),mv=p0(),Bj=y1(),xY=c0(),j1=_Y(),q8=_(),uv=L0(),dv=8,F7=Symbol("serverSession"),OZ=Symbol("snapshotTime"),q7=Symbol("snapshotEnabled"),W7=Symbol("pinnedConnection"),SZ=Symbol("txnNumberIncrement");class vY extends bv.TypedEventEmitter{constructor(Z,J,$,X){super();if(this[hj]=!1,Z==null)throw new b.MongoRuntimeError("ClientSession requires a MongoClient");if(J==null||!(J instanceof gY))throw new b.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[q7]=!0,$.causalConsistency===!0)throw new b.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=Z,this.sessionPool=J,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[F7]=this.explicit?this.sessionPool.acquire():null,this[SZ]=0;const Y=this.explicit&&$.snapshot!==!0;this.supports={causalConsistency:$.causalConsistency??Y},this.clusterTime=$.initialClusterTime,this.operationTime=void 0,this.owner=$.owner,this.defaultTransactionOptions=Object.assign({},$.defaultTransactionOptions),this.transaction=new j1.Transaction}get id(){return this[F7]?.id}get serverSession(){let Z=this[F7];if(Z==null){if(this.explicit)throw new b.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new b.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");Z=this.sessionPool.acquire(),this[F7]=Z}return Z}get snapshotEnabled(){return this[q7]}get loadBalanced(){return this.client.topology?.description.type===xY.TopologyType.LoadBalanced}get pinnedConnection(){return this[W7]}pin(Z){if(this[W7])throw TypeError("Cannot pin multiple connections to the same session");this[W7]=Z,Z.emit(Oj.PINNED,this.inTransaction()?hZ.ConnectionPoolMetrics.TXN:hZ.ConnectionPoolMetrics.CURSOR)}unpin(Z){if(this.loadBalanced)return kZ(this,Z);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[W7]:this.transaction.isPinned}async endSession(Z){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const J=this[F7];if(J!=null)this.sessionPool.release(J),Object.defineProperty(this,F7,{value:_5.clone(J),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{kZ(this,{force:!0,...Z})}}advanceOperationTime(Z){if(this.operationTime==null){this.operationTime=Z;return}if(Z.greaterThan(this.operationTime))this.operationTime=Z}advanceClusterTime(Z){if(!Z||typeof Z!=="object")throw new b.MongoInvalidArgumentError("input cluster time must be an object");if(!Z.clusterTime||Z.clusterTime._bsontype!=="Timestamp")throw new b.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!Z.signature||Z.signature.hash?._bsontype!=="Binary"||typeof Z.signature.keyId!=="bigint"&&typeof Z.signature.keyId!=="number"&&Z.signature.keyId?._bsontype!=="Long")throw new b.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');xY._advanceClusterTime(this,Z)}equals(Z){if(!(Z instanceof vY))return!1;if(this.id==null||Z.id==null)return!1;return q8.ByteUtils.equals(this.id.id.buffer,Z.id.id.buffer)}incrementTransactionNumber(){this[SZ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(Z){if(this[q7])throw new b.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new b.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const J=q8.maxWireVersion(this.client.topology);if(gv.isSharded(this.client.topology)&&J!=null&&J<dv)throw new b.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new j1.Transaction({readConcern:Z?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:Z?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:Z?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:Z?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(j1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Cj(this,"commitTransaction")}async abortTransaction(){return Cj(this,"abortTransaction")}toBSON(){throw new b.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(Z,J){const $=q8.now();return fY(this,$,Z,J)}}_j.ClientSession=vY;hj=q7;var Sj=120000,pv=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);_j.maybeClearPinnedConnection=kZ;var lv=new Set([j1.TxnState.NO_TRANSACTION,j1.TxnState.TRANSACTION_COMMITTED,j1.TxnState.TRANSACTION_ABORTED]),Cj=fv.promisify(iv);class _5{constructor(){this.id={id:new CZ.Binary(q8.uuidV4(),CZ.Binary.SUBTYPE_UUID)},this.lastUse=q8.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(Z){return Math.round(q8.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>Z-1}static clone(Z){const J=new ArrayBuffer(16),$=Buffer.from(J);$.set(Z.id.id.buffer);const X=new CZ.Binary($,Z.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:Z.lastUse,txnNumber:Z.txnNumber,isDirty:Z.isDirty},_5.prototype)}}_j.ServerSession=_5;class gY{constructor(Z){if(Z==null)throw new b.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=Z,this.sessions=new q8.List}acquire(){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;let J=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(Z))){J=$;break}}if(J==null)J=new _5;return J}release(Z){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!J)this.sessions.unshift(Z);if(!J)return;if(this.sessions.prune(($)=>$.hasTimedOut(J)),!Z.hasTimedOut(J)){if(Z.isDirty)return;this.sessions.unshift(Z)}}}_j.ServerSessionPool=gY;_j.applySession=sv;_j.updateSessionFromResponse=nv});var K6=z((uj)=>{async function vZ(Z,{blocking:J,transform:$}){if(Z.closed)return null;do{if(Z[X0]==null)await bY.promisify(Z[mj].bind(Z))();if(Z[Y0].length!==0){const Y=Z[Y0].shift();if(Y!=null&&$&&Z[b5])try{return Z[b5](Y)}catch(Q){throw await z7(Z,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(Z.isDead)return await z7(Z,{}),null;const X=Z[b1].batchSize||1000;try{const Y=await bY.promisify(Z._getMore.bind(Z))(X);if(Y){const Q=typeof Y.cursor.id==="number"?H8.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?H8.Long.fromBigInt(Y.cursor.id):Y.cursor.id;Z[Y0].pushMany(Y.cursor.nextBatch),Z[X0]=Q}}catch(Y){throw await z7(Z,{error:Y}).catch(()=>null),Y}if(Z.isDead)await z7(Z,{});if(Z[Y0].length===0&&J===!1)return null}while(!Z.isDead||Z[Y0].length!==0);return null}var uY=function(Z,J,$){const X=Z[X0],Y=Z[v5],Q=Z[xZ],K=Z[Q6],G=J?.error,F=J?.needsToEmitClosed??Z[Y0].length===0;if(G){if(Z.loadBalanced&&G instanceof O0.MongoNetworkError)return W()}if(X==null||Q==null||X.isZero()||Y==null){if(F)Z[T4]=!0,Z[X0]=H8.Long.ZERO,Z.emit(U7.CLOSE);if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{$()});return}if(!K.inTransaction())mY.maybeClearPinnedConnection(K,{error:G})}return $()}function W(){if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{Z.emit(U7.CLOSE),$()});return}if(!K.inTransaction())mY.maybeClearPinnedConnection(K,{error:G})}return Z.emit(U7.CLOSE),$()}if(Z[g5]=!0,K.hasEnded)return W();bj.executeOperation(Z[H7],new Xf.KillCursorsOperation(X,Y,Q,{session:K})).catch(()=>null).finally(W)},I4=function(Z){if(Z[f5])throw new O0.MongoCursorInUseError};Object.defineProperty(uj,"__esModule",{value:!0});uj.assertUninitialized=uj.AbstractCursor=uj.CURSOR_FLAGS=void 0;var gj=import.meta.require("stream"),bY=import.meta.require("util"),H8=D1(),O0=h(),Jf=h0(),bj=C0(),$f=NY(),Xf=Xj(),vj=p0(),_Z=y1(),mY=x5(),fj=_(),X0=Symbol("id"),Y0=Symbol("documents"),xZ=Symbol("server"),v5=Symbol("namespace"),H7=Symbol("client"),Q6=Symbol("session"),b1=Symbol("options"),b5=Symbol("transform"),f5=Symbol("initialized"),T4=Symbol("closed"),g5=Symbol("killed"),mj=Symbol("kInit");uj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class U7 extends Jf.TypedEventEmitter{constructor(Z,J,$={}){super();if(!Z.s.isMongoClient)throw new O0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[H7]=Z,this[v5]=J,this[X0]=null,this[Y0]=new fj.List,this[f5]=!1,this[T4]=!1,this[g5]=!1,this[b1]={readPreference:$.readPreference&&$.readPreference instanceof _Z.ReadPreference?$.readPreference:_Z.ReadPreference.primary,...H8.pluckBSONSerializeOptions($)};const X=vj.ReadConcern.fromOptions($);if(X)this[b1].readConcern=X;if(typeof $.batchSize==="number")this[b1].batchSize=$.batchSize;if($.comment!==void 0)this[b1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[b1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[b1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof mY.ClientSession)this[Q6]=$.session;else this[Q6]=this[H7].startSession({owner:this,explicit:!1})}get id(){return this[X0]??void 0}get isDead(){return(this[X0]?.isZero()??!1)||this[T4]||this[g5]}get client(){return this[H7]}get server(){return this[xZ]}get namespace(){return this[v5]}get readPreference(){return this[b1].readPreference}get readConcern(){return this[b1].readConcern}get session(){return this[Q6]}set session(Z){this[Q6]=Z}get cursorOptions(){return this[b1]}get closed(){return this[T4]}get killed(){return this[g5]}get loadBalanced(){return!!this[H7].topology?.loadBalanced}bufferedCount(){return this[Y0].length}readBufferedDocuments(Z){const J=[],$=Math.min(Z??this[Y0].length,this[Y0].length);for(let X=0;X<$;X++){const Y=this[Y0].shift();if(Y!=null)J.push(Y)}return J}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const Z=await this.next();if(Z===null){if(!this.closed)throw await z7(this,{needsToEmitClosed:!0}).catch(()=>null),new O0.MongoAPIError("Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.");break}if(yield Z,this[X0]===H8.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(Z){if(Z?.transform){const J=Z.transform;return new dY(this).pipe(new gj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=J(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new dY(this)}async hasNext(){if(this[X0]===H8.Long.ZERO)return!1;if(this[Y0].length!==0)return!0;const Z=await vZ(this,{blocking:!0,transform:!1});if(Z)return this[Y0].unshift(Z),!0;return!1}async next(){if(this[X0]===H8.Long.ZERO)throw new O0.MongoCursorExhaustedError;return vZ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[X0]===H8.Long.ZERO)throw new O0.MongoCursorExhaustedError;return vZ(this,{blocking:!1,transform:!0})}async forEach(Z){if(typeof Z!=="function")throw new O0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let J of this)if(Z(J)===!1)break}async close(){const Z=!this[T4];this[T4]=!0,await z7(this,{needsToEmitClosed:Z})}async toArray(){const Z=[];for await(let J of this)Z.push(J);return Z}addCursorFlag(Z,J){if(I4(this),!uj.CURSOR_FLAGS.includes(Z))throw new O0.MongoInvalidArgumentError(`Flag ${Z} is not one of ${uj.CURSOR_FLAGS}`);if(typeof J!=="boolean")throw new O0.MongoInvalidArgumentError(`Flag ${Z} must be a boolean value`);return this[b1][Z]=J,this}map(Z){I4(this);const J=this[b5];if(J)this[b5]=($)=>{return Z(J($))};else this[b5]=Z;return this}withReadPreference(Z){if(I4(this),Z instanceof _Z.ReadPreference)this[b1].readPreference=Z;else if(typeof Z==="string")this[b1].readPreference=_Z.ReadPreference.fromString(Z);else throw new O0.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return this}withReadConcern(Z){I4(this);const J=vj.ReadConcern.fromOptions({readConcern:Z});if(J)this[b1].readConcern=J;return this}maxTimeMS(Z){if(I4(this),typeof Z!=="number")throw new O0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[b1].maxTimeMS=Z,this}batchSize(Z){if(I4(this),this[b1].tailable)throw new O0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof Z!=="number")throw new O0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[b1].batchSize=Z,this}rewind(){if(!this[f5])return;this[X0]=null,this[Y0].clear(),this[T4]=!1,this[g5]=!1,this[f5]=!1;const Z=this[Q6];if(Z){if(Z.explicit===!1){if(!Z.hasEnded)Z.endSession().catch(()=>null);this[Q6]=this.client.startSession({owner:this,explicit:!1})}}}_getMore(Z,J){const $=new $f.GetMoreOperation(this[v5],this[X0],this[xZ],{...this[b1],session:this[Q6],batchSize:Z});bj.executeOperation(this[H7],$,J)}[mj](Z){this._initialize(this[Q6],(J,$)=>{if($){const X=$.response;if(this[xZ]=$.server,X.cursor){if(this[X0]=typeof X.cursor.id==="number"?H8.Long.fromNumber(X.cursor.id):typeof X.cursor.id==="bigint"?H8.Long.fromBigInt(X.cursor.id):X.cursor.id,X.cursor.ns)this[v5]=fj.ns(X.cursor.ns);this[Y0].pushMany(X.cursor.firstBatch)}if(this[X0]==null)this[X0]=H8.Long.ZERO,this[Y0].push($.response)}if(this[f5]=!0,J)return uY(this,{error:J},()=>Z(J,void 0));if(this.isDead)return uY(this,void 0,()=>Z());Z()})}}U7.CLOSE="close";uj.AbstractCursor=U7;var z7=bY.promisify(uY);uj.assertUninitialized=I4;class dY extends gj.Readable{constructor(Z){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=Z}_read(Z){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(Z,J){this._cursor.close().then(()=>J(Z),($)=>J($))}_readNext(){vZ(this._cursor,{blocking:!0,transform:!0}).then((Z)=>{if(Z==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(Z))return this._readNext();this._readInProgress=!1}},(Z)=>{if(Z.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(Z.message.match(/operation was interrupted/))return this.push(null);return this.destroy(Z)})}}});var m5=z((lj)=>{Object.defineProperty(lj,"__esModule",{value:!0});lj.AggregationCursor=void 0;var pj=IZ(),cj=C0(),Qf=_(),i0=K6(),Q0=Symbol("pipeline"),fZ=Symbol("options");class cY extends i0.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);this[Q0]=$,this[fZ]=X}get pipeline(){return this[Q0]}clone(){const Z=Qf.mergeOptions({},this[fZ]);return delete Z.session,new cY(this.client,this.namespace,this[Q0],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new pj.AggregateOperation(this.namespace,this[Q0],{...this[fZ],...this.cursorOptions,session:Z});cj.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}async explain(Z){return cj.executeOperation(this.client,new pj.AggregateOperation(this.namespace,this[Q0],{...this[fZ],...this.cursorOptions,explain:Z??!0}))}group(Z){return i0.assertUninitialized(this),this[Q0].push({$group:Z}),this}limit(Z){return i0.assertUninitialized(this),this[Q0].push({$limit:Z}),this}match(Z){return i0.assertUninitialized(this),this[Q0].push({$match:Z}),this}out(Z){return i0.assertUninitialized(this),this[Q0].push({$out:Z}),this}project(Z){return i0.assertUninitialized(this),this[Q0].push({$project:Z}),this}lookup(Z){return i0.assertUninitialized(this),this[Q0].push({$lookup:Z}),this}redact(Z){return i0.assertUninitialized(this),this[Q0].push({$redact:Z}),this}skip(Z){return i0.assertUninitialized(this),this[Q0].push({$skip:Z}),this}sort(Z){return i0.assertUninitialized(this),this[Q0].push({$sort:Z}),this}unwind(Z){return i0.assertUninitialized(this),this[Q0].push({$unwind:Z}),this}geoNear(Z){return i0.assertUninitialized(this),this[Q0].push({$geoNear:Z}),this}}lj.AggregationCursor=cY});var iY=z((ij)=>{Object.defineProperty(ij,"__esModule",{value:!0});ij.CountOperation=void 0;var Kf=T1(),lY=J1();class aY extends Kf.CommandCallbackOperation{constructor(Z,J,$){super({s:{namespace:Z}},$);this.options=$,this.collectionName=Z.collection,this.query=J}executeCallback(Z,J,$){const X=this.options,Y={count:this.collectionName,query:this.query};if(typeof X.limit==="number")Y.limit=X.limit;if(typeof X.skip==="number")Y.skip=X.skip;if(X.hint!=null)Y.hint=X.hint;if(typeof X.maxTimeMS==="number")Y.maxTimeMS=X.maxTimeMS;super.executeCommandCallback(Z,J,Y,(Q,K)=>{$(Q,K?K.n:0)})}}ij.CountOperation=aY;lY.defineAspects(aY,[lY.Aspect.READ_OPERATION,lY.Aspect.RETRYABLE])});var gZ=z((tj)=>{var V7=function(Z=1){const J=`${Z}`.toLowerCase();if(Gf(Z))return Z;switch(J){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new nj.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(Z)}`)}},Gf=function(Z){return typeof Z==="object"&&Z!=null&&"$meta"in Z&&typeof Z.$meta==="string"},Ff=function(Z){if(Array.isArray(Z)&&Z.length===2)try{return V7(Z[1]),!0}catch(J){return!1}return!1},Wf=function(Z){return Array.isArray(Z)&&Array.isArray(Z[0])},qf=function(Z){return Z instanceof Map&&Z.size>0},Hf=function(Z){return new Map([[`${Z[0]}`,V7([Z[1]])]])},zf=function(Z){const J=Z.map(([$,X])=>[`${$}`,V7(X)]);return new Map(J)},Uf=function(Z){const J=Z.map(($)=>[`${$}`,1]);return new Map(J)},Vf=function(Z){const J=Object.entries(Z).map(([$,X])=>[`${$}`,V7(X)]);return new Map(J)},Mf=function(Z){const J=Array.from(Z).map(([$,X])=>[`${$}`,V7(X)]);return new Map(J)},jf=function(Z,J){if(Z==null)return;if(typeof Z==="string")return new Map([[Z,V7(J)]]);if(typeof Z!=="object")throw new nj.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(Z)} Sort must be a valid object`);if(!Array.isArray(Z))return qf(Z)?Mf(Z):Object.keys(Z).length?Vf(Z):void 0;if(!Z.length)return;if(Wf(Z))return zf(Z);if(Ff(Z))return Hf(Z);return Uf(Z)};Object.defineProperty(tj,"__esModule",{value:!0});tj.formatSort=void 0;var nj=h();tj.formatSort=jf});var JA=z((ej)=>{var Pf=function(Z,J,$){const X={find:Z.collection,filter:J};if($.sort)X.sort=wf.formatSort($.sort);if($.projection){let Q=$.projection;if(Q&&Array.isArray(Q))Q=Q.length?Q.reduce((K,G)=>{return K[G]=1,K},{}):{_id:1};X.projection=Q}if($.hint)X.hint=oj.normalizeHintField($.hint);if(typeof $.skip==="number")X.skip=$.skip;if(typeof $.limit==="number")if($.limit<0)X.limit=-$.limit,X.singleBatch=!0;else X.limit=$.limit;if(typeof $.batchSize==="number")if($.batchSize<0){if($.limit&&$.limit!==0&&Math.abs($.batchSize)<Math.abs($.limit))X.limit=-$.batchSize;X.singleBatch=!0}else X.batchSize=$.batchSize;if(typeof $.singleBatch==="boolean")X.singleBatch=$.singleBatch;if($.comment!==void 0)X.comment=$.comment;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=Lf.ReadConcern.fromOptions($);if(Y)X.readConcern=Y.toJSON();if($.max)X.max=$.max;if($.min)X.min=$.min;if(typeof $.returnKey==="boolean")X.returnKey=$.returnKey;if(typeof $.showRecordId==="boolean")X.showRecordId=$.showRecordId;if(typeof $.tailable==="boolean")X.tailable=$.tailable;if(typeof $.oplogReplay==="boolean")X.oplogReplay=$.oplogReplay;if(typeof $.timeout==="boolean")X.noCursorTimeout=!$.timeout;else if(typeof $.noCursorTimeout==="boolean")X.noCursorTimeout=$.noCursorTimeout;if(typeof $.awaitData==="boolean")X.awaitData=$.awaitData;if(typeof $.allowPartialResults==="boolean")X.allowPartialResults=$.allowPartialResults;if($.collation)X.collation=$.collation;if(typeof $.allowDiskUse==="boolean")X.allowDiskUse=$.allowDiskUse;if($.let)X.let=$.let;return X};Object.defineProperty(ej,"__esModule",{value:!0});ej.FindOperation=void 0;var Af=h(),Lf=p0(),wf=gZ(),oj=_(),Rf=T1(),u5=J1();class sY extends Rf.CommandCallbackOperation{constructor(Z,J,$={},X={}){super(Z,X);if(this.options={...X},delete this.options.writeConcern,this.ns=J,typeof $!=="object"||Array.isArray($))throw new Af.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}executeCallback(Z,J,$){this.server=Z;const X=this.options;let Y=Pf(this.ns,this.filter,X);if(this.explain)Y=oj.decorateWithExplain(Y,this.explain);Z.command(this.ns,Y,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:J},$)}}ej.FindOperation=sY;u5.defineAspects(sY,[u5.Aspect.READ_OPERATION,u5.Aspect.RETRYABLE,u5.Aspect.EXPLAINABLE,u5.Aspect.CURSOR_CREATING])});var oY=z((YA)=>{Object.defineProperty(YA,"__esModule",{value:!0});YA.FindCursor=YA.FLAGS=void 0;var Df=D1(),z8=h(),Tf=iY(),nY=C0(),$A=JA(),tY=gZ(),XA=_(),c1=K6(),E4=Symbol("filter"),d5=Symbol("numReturned"),n=Symbol("builtOptions");YA.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class rY extends c1.AbstractCursor{constructor(Z,J,$={},X={}){super(Z,J,X);if(this[E4]=$,this[n]=X,X.sort!=null)this[n].sort=tY.formatSort(X.sort)}clone(){const Z=XA.mergeOptions({},this[n]);return delete Z.session,new rY(this.client,this.namespace,this[E4],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new $A.FindOperation(void 0,this.namespace,this[E4],{...this[n],...this.cursorOptions,session:Z});nY.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);if(Y.cursor)this[d5]=Y.cursor.firstBatch.length;else this[d5]=Y.documents?Y.documents.length:0;J(void 0,{server:$.server,session:Z,response:Y})})}_getMore(Z,J){const $=this[d5];if($){const X=this[n].limit;if(Z=X&&X>0&&$+Z>X?X-$:Z,Z<=0){this.close().finally(()=>J(void 0,{cursor:{id:Df.Long.ZERO,nextBatch:[]}}));return}}super._getMore(Z,(X,Y)=>{if(X)return J(X);if(Y)this[d5]=this[d5]+Y.cursor.nextBatch.length;J(void 0,Y)})}async count(Z){if(XA.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof Z==="boolean")throw new z8.MongoInvalidArgumentError("Invalid first parameter to count");return nY.executeOperation(this.client,new Tf.CountOperation(this.namespace,this[E4],{...this[n],...this.cursorOptions,...Z}))}async explain(Z){return nY.executeOperation(this.client,new $A.FindOperation(void 0,this.namespace,this[E4],{...this[n],...this.cursorOptions,explain:Z??!0}))}filter(Z){return c1.assertUninitialized(this),this[E4]=Z,this}hint(Z){return c1.assertUninitialized(this),this[n].hint=Z,this}min(Z){return c1.assertUninitialized(this),this[n].min=Z,this}max(Z){return c1.assertUninitialized(this),this[n].max=Z,this}returnKey(Z){return c1.assertUninitialized(this),this[n].returnKey=Z,this}showRecordId(Z){return c1.assertUninitialized(this),this[n].showRecordId=Z,this}addQueryModifier(Z,J){if(c1.assertUninitialized(this),Z[0]!=="$")throw new z8.MongoInvalidArgumentError(`${Z} is not a valid query modifier`);switch(Z.substr(1)){case"comment":this[n].comment=J;break;case"explain":this[n].explain=J;break;case"hint":this[n].hint=J;break;case"max":this[n].max=J;break;case"maxTimeMS":this[n].maxTimeMS=J;break;case"min":this[n].min=J;break;case"orderby":this[n].sort=tY.formatSort(J);break;case"query":this[E4]=J;break;case"returnKey":this[n].returnKey=J;break;case"showDiskLoc":this[n].showRecordId=J;break;default:throw new z8.MongoInvalidArgumentError(`Invalid query modifier: ${Z}`)}return this}comment(Z){return c1.assertUninitialized(this),this[n].comment=Z,this}maxAwaitTimeMS(Z){if(c1.assertUninitialized(this),typeof Z!=="number")throw new z8.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[n].maxAwaitTimeMS=Z,this}maxTimeMS(Z){if(c1.assertUninitialized(this),typeof Z!=="number")throw new z8.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[n].maxTimeMS=Z,this}project(Z){return c1.assertUninitialized(this),this[n].projection=Z,this}sort(Z,J){if(c1.assertUninitialized(this),this[n].tailable)throw new z8.MongoTailableCursorError("Tailable cursor does not support sorting");return this[n].sort=tY.formatSort(Z,J),this}allowDiskUse(Z=!0){if(c1.assertUninitialized(this),!this[n].sort)throw new z8.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!Z)return this[n].allowDiskUse=!1,this;return this[n].allowDiskUse=!0,this}collation(Z){return c1.assertUninitialized(this),this[n].collation=Z,this}limit(Z){if(c1.assertUninitialized(this),this[n].tailable)throw new z8.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof Z!=="number")throw new z8.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[n].limit=Z,this}skip(Z){if(c1.assertUninitialized(this),this[n].tailable)throw new z8.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof Z!=="number")throw new z8.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[n].skip=Z,this}}YA.FindCursor=rY});var p5=z((WA)=>{var Bf=function(Z){return typeof Z==="number"||Z==="2d"||Z==="2dsphere"||Z==="text"||Z==="geoHaystack"},Cf=function(Z){return Array.isArray(Z)&&Z.length===2&&Bf(Z[1])},hf=function(Z,J){const $=new Map,X=!Array.isArray(Z)||Cf(Z)?[Z]:Z;for(let Y of X)if(typeof Y==="string")$.set(Y,1);else if(Array.isArray(Y))$.set(Y[0],Y[1]??1);else if(Y instanceof Map)for(let[Q,K]of Y)$.set(Q,K);else if(Z3.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...J,key:$}};Object.defineProperty(WA,"__esModule",{value:!0});WA.IndexInformationOperation=WA.IndexExistsOperation=WA.ListIndexesOperation=WA.DropIndexesOperation=WA.DropIndexOperation=WA.EnsureIndexOperation=WA.CreateIndexOperation=WA.CreateIndexesOperation=WA.IndexesOperation=void 0;var eY=h(),Ef=y1(),Z3=_(),J3=T1(),$3=GY(),l1=J1(),Nf=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);class KA extends l1.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection,Y=this.options;$3.indexInformation(X.s.db,X.collectionName,{full:!0,...Y,readPreference:this.readPreference,session:J},$)}}WA.IndexesOperation=KA;class bZ extends J3.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collectionName=J,this.indexes=$.map((Y)=>{const Q=Y.key instanceof Map?Y.key:new Map(Object.entries(Y.key)),K=Y.name!=null?Y.name:Array.from(Q).flat().join("_");return{...Object.fromEntries(Object.entries({...Y}).filter(([F])=>Nf.has(F))),name:K,key:Q}})}executeCallback(Z,J,$){const X=this.options,Y=this.indexes,Q=Z3.maxWireVersion(Z),K={createIndexes:this.collectionName,indexes:Y};if(X.commitQuorum!=null){if(Q<9){$(new eY.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));return}K.commitQuorum=X.commitQuorum}this.options.collation=void 0,super.executeCommandCallback(Z,J,K,(G)=>{if(G){$(G);return}const F=Y.map((W)=>W.name||"");$(void 0,F)})}}WA.CreateIndexesOperation=bZ;class mZ extends bZ{constructor(Z,J,$,X){super(Z,J,[hf($,X)],X)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);return $(void 0,Y[0])})}}WA.CreateIndexOperation=mZ;class X3 extends mZ{constructor(Z,J,$,X){super(Z,J,$,X);this.readPreference=Ef.ReadPreference.primary,this.db=Z,this.collectionName=J}executeCallback(Z,J,$){const X=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:J}).toArray().then((Q)=>{if(Q=Array.isArray(Q)?Q:[Q],Q.some((K)=>K.name===X)){$(void 0,X);return}super.executeCallback(Z,J,$)},(Q)=>{if(Q instanceof eY.MongoError&&Q.code===eY.MONGODB_ERROR_CODES.NamespaceNotFound)return super.executeCallback(Z,J,$);return $(Q)})}}WA.EnsureIndexOperation=X3;class uZ extends J3.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.collection=Z,this.indexName=J}executeCallback(Z,J,$){const X={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommandCallback(Z,J,X,$)}}WA.DropIndexOperation=uZ;class Y3 extends uZ{constructor(Z,J){super(Z,"*",J)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X)=>{if(X)return $(X,!1);$(void 0,!0)})}}WA.DropIndexesOperation=Y3;class Q3 extends J3.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options={...J},delete this.options.writeConcern,this.collectionNamespace=Z.s.namespace}executeCallback(Z,J,$){const X=Z3.maxWireVersion(Z),Y=this.options.batchSize?{batchSize:this.options.batchSize}:{},Q={listIndexes:this.collectionNamespace.collection,cursor:Y};if(X>=9&&this.options.comment!==void 0)Q.comment=this.options.comment;super.executeCommandCallback(Z,J,Q,$)}}WA.ListIndexesOperation=Q3;class GA extends l1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.indexes=J}executeCallback(Z,J,$){const X=this.collection,Y=this.indexes;$3.indexInformation(X.s.db,X.collectionName,{...this.options,readPreference:this.readPreference,session:J},(Q,K)=>{if(Q!=null)return $(Q);if(!Array.isArray(Y))return $(void 0,K[Y]!=null);for(let G=0;G<Y.length;G++)if(K[Y[G]]==null)return $(void 0,!1);return $(void 0,!0)})}}WA.IndexExistsOperation=GA;class FA extends l1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$??{},this.db=Z,this.name=J}executeCallback(Z,J,$){const X=this.db,Y=this.name;$3.indexInformation(X,Y,{...this.options,readPreference:this.readPreference,session:J},$)}}WA.IndexInformationOperation=FA;l1.defineAspects(Q3,[l1.Aspect.READ_OPERATION,l1.Aspect.RETRYABLE,l1.Aspect.CURSOR_CREATING]);l1.defineAspects(bZ,[l1.Aspect.WRITE_OPERATION]);l1.defineAspects(mZ,[l1.Aspect.WRITE_OPERATION]);l1.defineAspects(X3,[l1.Aspect.WRITE_OPERATION]);l1.defineAspects(uZ,[l1.Aspect.WRITE_OPERATION]);l1.defineAspects(Y3,[l1.Aspect.WRITE_OPERATION])});var G3=z((HA)=>{Object.defineProperty(HA,"__esModule",{value:!0});HA.ListIndexesCursor=void 0;var gf=C0(),bf=p5(),mf=K6();class K3 extends mf.AbstractCursor{constructor(Z,J){super(Z.client,Z.s.namespace,J);this.parent=Z,this.options=J}clone(){return new K3(this.parent,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new bf.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:Z});gf.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}HA.ListIndexesCursor=K3});var jA=z((VA)=>{Object.defineProperty(VA,"__esModule",{value:!0});VA.ListSearchIndexesCursor=void 0;var uf=m5();class UA extends uf.AggregationCursor{constructor({fullNamespace:Z,client:J},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(J,Z,Y,X)}}VA.ListSearchIndexesCursor=UA});var RA=z((LA)=>{Object.defineProperty(LA,"__esModule",{value:!0});LA.CountDocumentsOperation=void 0;var df=IZ();class AA extends df.AggregateOperation{constructor(Z,J,$){const X=[];if(X.push({$match:J}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(Z.s.namespace,X,$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y){$(X);return}const Q=Y;if(Q.cursor==null||Q.cursor.firstBatch==null){$(void 0,0);return}const K=Q.cursor.firstBatch;$(void 0,K.length?K[0].n:0)})}}LA.CountDocumentsOperation=AA});var IA=z((DA)=>{Object.defineProperty(DA,"__esModule",{value:!0});DA.DistinctOperation=void 0;var PA=_(),pf=T1(),dZ=J1();class F3 extends pf.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collection=Z,this.key=J,this.query=$}executeCallback(Z,J,$){const X=this.collection,Y=this.key,Q=this.query,K=this.options,G={distinct:X.collectionName,key:Y,query:Q};if(typeof K.maxTimeMS==="number")G.maxTimeMS=K.maxTimeMS;if(typeof K.comment!=="undefined")G.comment=K.comment;PA.decorateWithReadConcern(G,X,K);try{PA.decorateWithCollation(G,X,K)}catch(F){return $(F)}super.executeCommandCallback(Z,J,G,(F,W)=>{if(F){$(F);return}$(void 0,this.explain?W:W.values)})}}DA.DistinctOperation=F3;dZ.defineAspects(F3,[dZ.Aspect.READ_OPERATION,dZ.Aspect.RETRYABLE,dZ.Aspect.EXPLAINABLE])});var q3=z((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.DropDatabaseOperation=BA.DropCollectionOperation=void 0;var EA=h(),NA=T1(),pZ=J1();class cZ extends NA.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.db=Z,this.options=$,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.options,Q=this.name,K=X.client.options.autoEncryption?.encryptedFieldsMap;let G=Y.encryptedFields??K?.[`${X.databaseName}.${Q}`];if(!G&&K)G=(await X.listCollections({name:Q},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(G){const F=G.escCollection||`enxcol_.${Q}.esc`,W=G.ecocCollection||`enxcol_.${Q}.ecoc`;for(let q of[F,W]){const H=new cZ(X,q);try{await H.executeWithoutEncryptedFieldsCheck(Z,J)}catch(U){if(!(U instanceof EA.MongoServerError)||U.code!==EA.MONGODB_ERROR_CODES.NamespaceNotFound)throw U}}}return this.executeWithoutEncryptedFieldsCheck(Z,J)})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{super.executeCommandCallback(Z,J,{drop:this.name},(Y,Q)=>{if(Y)return X(Y);$(!!Q.ok)})})}}BA.DropCollectionOperation=cZ;class W3 extends NA.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropDatabase:1},(X,Y)=>{if(X)return $(X);if(Y.ok)return $(void 0,!0);$(void 0,!1)})}}BA.DropDatabaseOperation=W3;pZ.defineAspects(cZ,[pZ.Aspect.WRITE_OPERATION]);pZ.defineAspects(W3,[pZ.Aspect.WRITE_OPERATION])});var SA=z((hA)=>{Object.defineProperty(hA,"__esModule",{value:!0});hA.EstimatedDocumentCountOperation=void 0;var lf=T1(),lZ=J1();class H3 extends lf.CommandCallbackOperation{constructor(Z,J={}){super(Z,J);this.options=J,this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")X.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,(Y,Q)=>{if(Y){$(Y);return}$(void 0,Q?.n||0)})}}hA.EstimatedDocumentCountOperation=H3;lZ.defineAspects(H3,[lZ.Aspect.READ_OPERATION,lZ.Aspect.RETRYABLE,lZ.Aspect.CURSOR_CREATING])});var z3=z((vA)=>{var kA=function(Z,J){if(Z.new=J.returnDocument===vA.ReturnDocument.AFTER,Z.upsert=J.upsert===!0,J.bypassDocumentValidation===!0)Z.bypassDocumentValidation=J.bypassDocumentValidation;return Z};Object.defineProperty(vA,"__esModule",{value:!0});vA.FindOneAndUpdateOperation=vA.FindOneAndReplaceOperation=vA.FindOneAndDeleteOperation=vA.ReturnDocument=void 0;var b6=h(),af=y1(),sf=gZ(),iZ=_(),nf=T1(),aZ=J1();vA.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class c5 extends nf.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??($.includeResultMetadata=!0);const X=sf.formatSort($.sort);if(X)this.cmdBase.sort=X;if($.projection)this.cmdBase.fields=$.projection;if($.maxTimeMS)this.cmdBase.maxTimeMS=$.maxTimeMS;if($.writeConcern)this.cmdBase.writeConcern=$.writeConcern;if($.let)this.cmdBase.let=$.let;if($.comment!==void 0)this.cmdBase.comment=$.comment;this.readPreference=af.ReadPreference.primary,this.collection=Z,this.query=J}executeCallback(Z,J,$){const X=this.collection,Y=this.query,Q={...this.options,...this.bsonOptions},K={findAndModify:X.collectionName,query:Y,...this.cmdBase};try{iZ.decorateWithCollation(K,X,Q)}catch(G){return $(G)}if(Q.hint){if(this.writeConcern?.w===0||iZ.maxWireVersion(Z)<8){$(new b6.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));return}K.hint=Q.hint}super.executeCommandCallback(Z,J,K,(G,F)=>{if(G)return $(G);return $(void 0,Q.includeResultMetadata?F:F.value??null)})}}class yA extends c5{constructor(Z,J,$){if(J==null||typeof J!=="object")throw new b6.MongoInvalidArgumentError('Argument "filter" must be an object');super(Z,J,$);this.cmdBase.remove=!0}}vA.FindOneAndDeleteOperation=yA;class _A extends c5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new b6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new b6.MongoInvalidArgumentError('Argument "replacement" must be an object');if(iZ.hasAtomicOperators($))throw new b6.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(Z,J,X);this.cmdBase.update=$,kA(this.cmdBase,X)}}vA.FindOneAndReplaceOperation=_A;class xA extends c5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new b6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new b6.MongoInvalidArgumentError('Argument "update" must be an object');if(!iZ.hasAtomicOperators($))throw new b6.MongoInvalidArgumentError("Update document requires atomic operators");super(Z,J,X);if(this.cmdBase.update=$,kA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}vA.FindOneAndUpdateOperation=xA;aZ.defineAspects(c5,[aZ.Aspect.WRITE_OPERATION,aZ.Aspect.RETRYABLE,aZ.Aspect.EXPLAINABLE])});var dA=z((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.IsCappedOperation=void 0;var of=h(),ef=J1();class bA extends ef.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new of.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,!!Y[0].options?.capped)},(Y)=>$(Y))}}mA.IsCappedOperation=bA});var aA=z((cA)=>{Object.defineProperty(cA,"__esModule",{value:!0});cA.OptionsOperation=void 0;var Zg=h(),Jg=J1();class pA extends Jg.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Zg.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,Y[0].options)},(Y)=>$(Y))}}cA.OptionsOperation=pA});var V3=z((sA)=>{Object.defineProperty(sA,"__esModule",{value:!0});sA.RenameOperation=void 0;var $g=N4(),Xg=h(),Yg=_(),iA=J1(),Qg=Y7();class U3 extends Qg.RunAdminCommandOperation{constructor(Z,J,$){Yg.checkCollectionName(J);const X=Z.namespace,Y=Z.s.namespace.withCollection(J).toString(),Q=typeof $.dropTarget==="boolean"?$.dropTarget:!1,K={renameCollection:X,to:Y,dropTarget:Q};super(Z,K,$);this.options=$,this.collection=Z,this.newName=J}executeCallback(Z,J,$){const X=this.collection;super.executeCallback(Z,J,(Y,Q)=>{if(Y)return $(Y);if(Q?.errmsg)return $(new Xg.MongoServerError(Q));let K;try{K=new $g.Collection(X.s.db,this.newName,X.s.options)}catch(G){return $(G)}return $(void 0,K)})}}sA.RenameOperation=U3;iA.defineAspects(U3,[iA.Aspect.WRITE_OPERATION])});var eA=z((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.CreateSearchIndexesOperation=void 0;var Kg=J1();class tA extends Kg.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.descriptions=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={createSearchIndexes:X.collection,indexes:this.descriptions};Z.command(X,Y,{session:J},(Q,K)=>{if(Q||!K){$(Q);return}const G=K?.indexesCreated??[];$(void 0,G.map(({name:F})=>F))})}}rA.CreateSearchIndexesOperation=tA});var XL=z((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.DropSearchIndexOperation=void 0;var Gg=J1();class ZL extends Gg.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.name=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={dropSearchIndex:X.collection};if(typeof this.name==="string")Y.name=this.name;Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}JL.DropSearchIndexOperation=ZL});var GL=z((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.UpdateSearchIndexOperation=void 0;var Fg=J1();class YL extends Fg.AbstractCallbackOperation{constructor(Z,J,$){super();this.collection=Z,this.name=J,this.definition=$}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={updateSearchIndex:X.collection,name:this.name,definition:this.definition};Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}QL.UpdateSearchIndexOperation=YL});var A3=z((WL)=>{Object.defineProperty(WL,"__esModule",{value:!0});WL.DbStatsOperation=WL.CollStatsOperation=void 0;var FL=T1(),sZ=J1();class M3 extends FL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={collStats:this.collectionName};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}WL.CollStatsOperation=M3;class j3 extends FL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){const X={dbStats:!0};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}WL.DbStatsOperation=j3;sZ.defineAspects(M3,[sZ.Aspect.READ_OPERATION]);sZ.defineAspects(j3,[sZ.Aspect.READ_OPERATION])});var N4=z((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.Collection=void 0;var qg=D1(),Hg=RY(),zg=PY(),Ug=M7(),Vg=m5(),Mg=oY(),jg=G3(),Ag=jA(),HL=h(),Lg=KY(),wg=iY(),Rg=RA(),zL=XY(),Pg=IA(),Dg=q3(),Tg=SA(),X1=C0(),L3=z3(),B4=p5(),UL=qY(),Ig=dA(),Eg=aA(),Ng=V3(),Bg=eA(),Cg=XL(),hg=GL(),Og=A3(),w3=MY(),Sg=p0(),R3=y1(),o=_(),kg=L0();class VL{constructor(Z,J,$){o.checkCollectionName(J),this.s={db:Z,options:$,namespace:new o.MongoDBCollectionNamespace(Z.databaseName,J),pkFactory:Z.options?.pkFactory??o.DEFAULT_PK_FACTORY,readPreference:R3.ReadPreference.fromOptions($),bsonOptions:qg.resolveBSONOptions($,Z),readConcern:Sg.ReadConcern.fromOptions($),writeConcern:kg.WriteConcern.fromOptions($)},this.client=Z.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){if(this.s.readConcern==null)return this.s.db.readConcern;return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.s.db.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null)return this.s.db.writeConcern;return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(Z){this.s.collectionHint=o.normalizeHintField(Z)}async insertOne(Z,J){return X1.executeOperation(this.client,new UL.InsertOneOperation(this,Z,o.resolveOptions(this,J)))}async insertMany(Z,J){return X1.executeOperation(this.client,new UL.InsertManyOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async bulkWrite(Z,J){if(!Array.isArray(Z))throw new HL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return X1.executeOperation(this.client,new Lg.BulkWriteOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async updateOne(Z,J,$){return X1.executeOperation(this.client,new w3.UpdateOneOperation(this,Z,J,o.resolveOptions(this,$)))}async replaceOne(Z,J,$){return X1.executeOperation(this.client,new w3.ReplaceOneOperation(this,Z,J,o.resolveOptions(this,$)))}async updateMany(Z,J,$){return X1.executeOperation(this.client,new w3.UpdateManyOperation(this,Z,J,o.resolveOptions(this,$)))}async deleteOne(Z={},J={}){return X1.executeOperation(this.client,new zL.DeleteOneOperation(this,Z,o.resolveOptions(this,J)))}async deleteMany(Z={},J={}){return X1.executeOperation(this.client,new zL.DeleteManyOperation(this,Z,o.resolveOptions(this,J)))}async rename(Z,J){return X1.executeOperation(this.client,new Ng.RenameOperation(this,Z,{...J,readPreference:R3.ReadPreference.PRIMARY}))}async drop(Z){return X1.executeOperation(this.client,new Dg.DropCollectionOperation(this.s.db,this.collectionName,Z))}async findOne(Z={},J={}){const $=this.find(Z,J).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(Z={},J={}){return new Mg.FindCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}async options(Z){return X1.executeOperation(this.client,new Eg.OptionsOperation(this,o.resolveOptions(this,Z)))}async isCapped(Z){return X1.executeOperation(this.client,new Ig.IsCappedOperation(this,o.resolveOptions(this,Z)))}async createIndex(Z,J){return X1.executeOperation(this.client,new B4.CreateIndexOperation(this,this.collectionName,Z,o.resolveOptions(this,J)))}async createIndexes(Z,J){return X1.executeOperation(this.client,new B4.CreateIndexesOperation(this,this.collectionName,Z,o.resolveOptions(this,{...J,maxTimeMS:void 0})))}async dropIndex(Z,J){return X1.executeOperation(this.client,new B4.DropIndexOperation(this,Z,{...o.resolveOptions(this,J),readPreference:R3.ReadPreference.primary}))}async dropIndexes(Z){return X1.executeOperation(this.client,new B4.DropIndexesOperation(this,o.resolveOptions(this,Z)))}listIndexes(Z){return new jg.ListIndexesCursor(this,o.resolveOptions(this,Z))}async indexExists(Z,J){return X1.executeOperation(this.client,new B4.IndexExistsOperation(this,Z,o.resolveOptions(this,J)))}async indexInformation(Z){return X1.executeOperation(this.client,new B4.IndexInformationOperation(this.s.db,this.collectionName,o.resolveOptions(this,Z)))}async estimatedDocumentCount(Z){return X1.executeOperation(this.client,new Tg.EstimatedDocumentCountOperation(this,o.resolveOptions(this,Z)))}async countDocuments(Z={},J={}){return X1.executeOperation(this.client,new Rg.CountDocumentsOperation(this,Z,o.resolveOptions(this,J)))}async distinct(Z,J={},$={}){return X1.executeOperation(this.client,new Pg.DistinctOperation(this,Z,J,o.resolveOptions(this,$)))}async indexes(Z){return X1.executeOperation(this.client,new B4.IndexesOperation(this,o.resolveOptions(this,Z)))}async stats(Z){return X1.executeOperation(this.client,new Og.CollStatsOperation(this,Z))}async findOneAndDelete(Z,J){return X1.executeOperation(this.client,new L3.FindOneAndDeleteOperation(this,Z,o.resolveOptions(this,J)))}async findOneAndReplace(Z,J,$){return X1.executeOperation(this.client,new L3.FindOneAndReplaceOperation(this,Z,J,o.resolveOptions(this,$)))}async findOneAndUpdate(Z,J,$){return X1.executeOperation(this.client,new L3.FindOneAndUpdateOperation(this,Z,J,o.resolveOptions(this,$)))}aggregate(Z=[],J){if(!Array.isArray(Z))throw new HL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new Vg.AggregationCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new Ug.ChangeStream(this,Z,o.resolveOptions(this,J))}initializeUnorderedBulkOp(Z){return new zg.UnorderedBulkOperation(this,o.resolveOptions(this,Z))}initializeOrderedBulkOp(Z){return new Hg.OrderedBulkOperation(this,o.resolveOptions(this,Z))}async count(Z={},J={}){return X1.executeOperation(this.client,new wg.CountOperation(this.fullNamespace,Z,o.resolveOptions(this,J)))}listSearchIndexes(Z,J){J=typeof Z==="object"?Z:J==null?{}:J;const $=Z==null?null:typeof Z==="object"?null:Z;return new Ag.ListSearchIndexesCursor(this,$,J)}async createSearchIndex(Z){const[J]=await this.createSearchIndexes([Z]);return J}async createSearchIndexes(Z){return X1.executeOperation(this.client,new Bg.CreateSearchIndexesOperation(this,Z))}async dropSearchIndex(Z){return X1.executeOperation(this.client,new Cg.DropSearchIndexOperation(this,Z))}async updateSearchIndex(Z,J){return X1.executeOperation(this.client,new hg.UpdateSearchIndexOperation(this,Z,J))}}ML.Collection=VL});var I3=z((LL)=>{Object.defineProperty(LL,"__esModule",{value:!0});LL.ChangeStreamCursor=void 0;var P3=M7(),AL=g1(),yg=IZ(),_g=C0(),D3=_(),xg=K6();class T3 extends xg.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);if(this.pipeline=$,this.options=X,this._resumeToken=null,this.startAtOperationTime=X.startAtOperationTime,X.startAfter)this.resumeToken=X.startAfter;else if(X.resumeAfter)this.resumeToken=X.resumeAfter}set resumeToken(Z){this._resumeToken=Z,this.emit(P3.ChangeStream.RESUME_TOKEN_CHANGED,Z)}get resumeToken(){return this._resumeToken}get resumeOptions(){const Z={...this.options};for(let J of["resumeAfter","startAfter","startAtOperationTime"])delete Z[J];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)Z.startAfter=this.resumeToken;else Z.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&D3.maxWireVersion(this.server)>=7)Z.startAtOperationTime=this.startAtOperationTime;return Z}cacheResumeToken(Z){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=Z;this.hasReceived=!0}_processBatch(Z){const J=Z.cursor;if(J.postBatchResumeToken){if(this.postBatchResumeToken=Z.cursor.postBatchResumeToken,("firstBatch"in Z.cursor?Z.cursor.firstBatch:Z.cursor.nextBatch).length===0)this.resumeToken=J.postBatchResumeToken}}clone(){return new T3(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(Z,J){const $=new yg.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:Z});_g.executeOperation(Z.client,$,(X,Y)=>{if(X||Y==null)return J(X);const Q=$.server;if(this.maxWireVersion=D3.maxWireVersion(Q),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=Y.operationTime;this._processBatch(Y),this.emit(AL.INIT,Y),this.emit(AL.RESPONSE),J(void 0,{server:Q,session:Z,response:Y})})}_getMore(Z,J){super._getMore(Z,($,X)=>{if($)return J($);this.maxWireVersion=D3.maxWireVersion(this.server),this._processBatch(X),this.emit(P3.ChangeStream.MORE,X),this.emit(P3.ChangeStream.RESPONSE),J($,X)})}}LL.ChangeStreamCursor=T3});var DL=z((RL)=>{Object.defineProperty(RL,"__esModule",{value:!0});RL.ListCollectionsOperation=void 0;var vg=_(),fg=T1(),nZ=J1();class E3 extends fg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);if(this.options={...$},delete this.options.writeConcern,this.db=Z,this.filter=J,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}executeCallback(Z,J,$){return super.executeCommandCallback(Z,J,this.generateCommand(vg.maxWireVersion(Z)),$)}generateCommand(Z){const J={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(Z>=9&&this.options.comment!==void 0)J.comment=this.options.comment;return J}}RL.ListCollectionsOperation=E3;nZ.defineAspects(E3,[nZ.Aspect.READ_OPERATION,nZ.Aspect.RETRYABLE,nZ.Aspect.CURSOR_CREATING])});var B3=z((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.ListCollectionsCursor=void 0;var gg=C0(),bg=DL(),mg=K6();class N3 extends mg.AbstractCursor{constructor(Z,J,$){super(Z.client,Z.s.namespace,$);this.parent=Z,this.filter=J,this.options=$}clone(){return new N3(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new bg.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:Z});gg.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}TL.ListCollectionsCursor=N3});var hL=z((BL)=>{Object.defineProperty(BL,"__esModule",{value:!0});BL.RunCommandCursor=void 0;var j7=h(),EL=C0(),ug=NY(),dg=Y7(),pg=_(),cg=K6();class NL extends cg.AbstractCursor{setComment(Z){return this.getMoreOptions.comment=Z,this}setMaxTimeMS(Z){return this.getMoreOptions.maxAwaitTimeMS=Z,this}setBatchSize(Z){return this.getMoreOptions.batchSize=Z,this}clone(){throw new j7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(Z){throw new j7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(Z,J){throw new j7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(Z){throw new j7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(Z){throw new j7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(Z,J,$={}){super(Z.client,pg.ns(Z.namespace),$);this.getMoreOptions={},this.db=Z,this.command=Object.freeze({...J})}_initialize(Z,J){const $=new dg.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:Z,readPreference:this.cursorOptions.readPreference});EL.executeOperation(this.client,$).then((X)=>{if(X.cursor==null){J(new j7.MongoUnexpectedServerResponseError("Expected server to respond with cursor"));return}J(void 0,{server:$.server,session:Z,response:X})},(X)=>J(X))}_getMore(Z,J){const $=new ug.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});EL.executeOperation(this.client,$,J)}}BL.RunCommandCursor=NL});var yL=z((SL)=>{Object.defineProperty(SL,"__esModule",{value:!0});SL.CollectionsOperation=void 0;var lg=N4(),ag=J1();class OL extends ag.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.db=Z}executeCallback(Z,J,$){this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:J}).toArray().then((X)=>{const Y=[];for(let{name:Q}of X)if(!Q.includes("$"))Y.push(new lg.Collection(this.db,Q,this.db.s.options));$(void 0,Y)},(X)=>$(X))}}SL.CollectionsOperation=OL});var gL=z((vL)=>{Object.defineProperty(vL,"__esModule",{value:!0});vL.CreateCollectionOperation=void 0;var _L=w4(),ig=N4(),sg=h(),ng=T1(),tg=p5(),xL=J1(),rg=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),og="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class tZ extends ng.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.options=$,this.db=Z,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.name,Q=this.options,K=Q.encryptedFields??X.client.options.autoEncryption?.encryptedFieldsMap?.[`${X.databaseName}.${Y}`];if(K){if(!Z.loadBalanced&&Z.description.maxWireVersion<_L.MIN_SUPPORTED_QE_WIRE_VERSION)throw new sg.MongoCompatibilityError(`${og} The minimum server version required is ${_L.MIN_SUPPORTED_QE_SERVER_VERSION}`);const F=K.escCollection??`enxcol_.${Y}.esc`,W=K.ecocCollection??`enxcol_.${Y}.ecoc`;for(let q of[F,W])await new tZ(X,q,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(Z,J);if(!Q.encryptedFields)this.options={...this.options,encryptedFields:K}}const G=await this.executeWithoutEncryptedFieldsCheck(Z,J);if(K)await new tg.CreateIndexOperation(X,Y,{__safeContent__:1},{}).execute(Z,J);return G})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{const Y=this.db,Q=this.name,K=this.options,G=(W)=>{if(W)return X(W);$(new ig.Collection(Y,Q,K))},F={create:Q};for(let W in K)if(K[W]!=null&&typeof K[W]!=="function"&&!rg.has(W))F[W]=K[W];super.executeCommandCallback(Z,J,F,G)})}}vL.CreateCollectionOperation=tZ;xL.defineAspects(tZ,[xL.Aspect.WRITE_OPERATION])});var pL=z((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.ProfilingLevelOperation=void 0;var bL=h(),eg=T1();class mL extends eg.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{profile:-1},(X,Y)=>{if(X==null&&Y.ok===1){const Q=Y.was;if(Q===0)return $(void 0,"off");if(Q===1)return $(void 0,"slow_only");if(Q===2)return $(void 0,"all");return $(new bL.MongoRuntimeError(`Illegal profiling level value ${Q}`))}else X!=null?$(X):$(new bL.MongoRuntimeError("Error with profile command"))})}}uL.ProfilingLevelOperation=mL});var C3=z((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.SetProfilingLevelOperation=aL.ProfilingLevel=void 0;var cL=h(),Zb=_(),Jb=T1(),$b=new Set(["off","slow_only","all"]);aL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class lL extends Jb.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);switch(this.options=$,J){case aL.ProfilingLevel.off:this.profile=0;break;case aL.ProfilingLevel.slowOnly:this.profile=1;break;case aL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=J}executeCallback(Z,J,$){const X=this.level;if(!$b.has(X))return $(new cL.MongoInvalidArgumentError(`Profiling level must be one of "${Zb.enumToString(aL.ProfilingLevel)}"`));super.executeCommandCallback(Z,J,{profile:this.profile},(Y,Q)=>{if(Y==null&&Q.ok===1)return $(void 0,X);return Y!=null?$(Y):$(new cL.MongoRuntimeError("Error with profile command"))})}}aL.SetProfilingLevelOperation=lL});var oZ=z((rL)=>{var Db=function(Z){if(typeof Z!=="string")throw new rZ.MongoInvalidArgumentError("Database name must be a string");if(Z.length===0)throw new rZ.MongoInvalidArgumentError("Database name cannot be the empty string");if(Z==="$external")return;const J=[" ",".","$","/","\\"];for(let $=0;$<J.length;$++)if(Z.indexOf(J[$])!==-1)throw new rZ.MongoAPIError(`database names cannot contain the character '${J[$]}'`)};Object.defineProperty(rL,"__esModule",{value:!0});rL.Db=void 0;var Xb=eX(),Yb=D1(),Qb=M7(),Kb=N4(),A7=g1(),Gb=m5(),Fb=B3(),Wb=hL(),rZ=h(),qb=aX(),Hb=yL(),zb=gL(),sL=q3(),S0=C0(),nL=p5(),Ub=pL(),Vb=rX(),Mb=V3(),jb=Y7(),Ab=C3(),Lb=A3(),wb=p0(),tL=y1(),m1=_(),Rb=L0(),Pb=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class m6{constructor(Z,J,$){$=$??{},$=m1.filterOptions($,Pb),Db(J),this.s={options:$,readPreference:tL.ReadPreference.fromOptions($),bsonOptions:Yb.resolveBSONOptions($,Z),pkFactory:$?.pkFactory??m1.DEFAULT_PK_FACTORY,readConcern:wb.ReadConcern.fromOptions($),writeConcern:Rb.WriteConcern.fromOptions($),namespace:new m1.MongoDBNamespace(J)},this.client=Z}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||!1}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.client.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(Z,J){return S0.executeOperation(this.client,new zb.CreateCollectionOperation(this,Z,m1.resolveOptions(this,J)))}async command(Z,J){return S0.executeOperation(this.client,new jb.RunCommandOperation(this,Z,J))}aggregate(Z=[],J){return new Gb.AggregationCursor(this.client,this.s.namespace,Z,m1.resolveOptions(this,J))}admin(){return new Xb.Admin(this)}collection(Z,J={}){if(typeof J==="function")throw new rZ.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Kb.Collection(this,Z,m1.resolveOptions(this,J))}async stats(Z){return S0.executeOperation(this.client,new Lb.DbStatsOperation(this,m1.resolveOptions(this,Z)))}listCollections(Z={},J={}){return new Fb.ListCollectionsCursor(this,Z,m1.resolveOptions(this,J))}async renameCollection(Z,J,$){return S0.executeOperation(this.client,new Mb.RenameOperation(this.collection(Z),J,{...$,new_collection:!0,readPreference:tL.ReadPreference.primary}))}async dropCollection(Z,J){return S0.executeOperation(this.client,new sL.DropCollectionOperation(this,Z,m1.resolveOptions(this,J)))}async dropDatabase(Z){return S0.executeOperation(this.client,new sL.DropDatabaseOperation(this,m1.resolveOptions(this,Z)))}async collections(Z){return S0.executeOperation(this.client,new Hb.CollectionsOperation(this,m1.resolveOptions(this,Z)))}async createIndex(Z,J,$){return S0.executeOperation(this.client,new nL.CreateIndexOperation(this,Z,J,m1.resolveOptions(this,$)))}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return S0.executeOperation(this.client,new qb.AddUserOperation(this,Z,X,m1.resolveOptions(this,$)))}async removeUser(Z,J){return S0.executeOperation(this.client,new Vb.RemoveUserOperation(this,Z,m1.resolveOptions(this,J)))}async setProfilingLevel(Z,J){return S0.executeOperation(this.client,new Ab.SetProfilingLevelOperation(this,Z,m1.resolveOptions(this,J)))}async profilingLevel(Z){return S0.executeOperation(this.client,new Ub.ProfilingLevelOperation(this,m1.resolveOptions(this,Z)))}async indexInformation(Z,J){return S0.executeOperation(this.client,new nL.IndexInformationOperation(this,Z,m1.resolveOptions(this,J)))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new Qb.ChangeStream(this,Z,m1.resolveOptions(this,J))}runCursorCommand(Z,J){return new Wb.RunCommandCursor(this,Z,J)}}m6.SYSTEM_NAMESPACE_COLLECTION=A7.SYSTEM_NAMESPACE_COLLECTION;m6.SYSTEM_INDEX_COLLECTION=A7.SYSTEM_INDEX_COLLECTION;m6.SYSTEM_PROFILE_COLLECTION=A7.SYSTEM_PROFILE_COLLECTION;m6.SYSTEM_USER_COLLECTION=A7.SYSTEM_USER_COLLECTION;m6.SYSTEM_COMMAND_COLLECTION=A7.SYSTEM_COMMAND_COLLECTION;m6.SYSTEM_JS_COLLECTION=A7.SYSTEM_JS_COLLECTION;rL.Db=m6});var Jw=z((e11,Zw)=>{var G6=function(Z,J){if(!(this instanceof G6))return new G6(Z,J);this.length=0,this.updates=[],this.path=new Uint16Array(4),this.pages=new Array(32768),this.maxPages=this.pages.length,this.level=0,this.pageSize=Z||1024,this.deduplicate=J?J.deduplicate:null,this.zeros=this.deduplicate?eZ(this.deduplicate.length):null},Tb=function(Z,J){while(Z.maxPages<J){var $=Z.pages;Z.pages=new Array(32768),Z.pages[0]=$,Z.level++,Z.maxPages*=32768}},Ib=function(Z,J){if(Z.length===J)return Z;if(Z.length>J)return Z.slice(0,J);var $=eZ(J);return Z.copy($),$},eZ=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},Eb=function(Z){var J=Buffer.allocUnsafe?Buffer.allocUnsafe(Z.length):new Buffer(Z.length);return Z.copy(J),J},eL=function(Z,J){this.offset=Z*J.length,this.buffer=J,this.updated=!1,this.deduplicate=0},Nb=function(Z,J){Z=(Z-(J[0]=Z&32767))/32768,Z=(Z-(J[1]=Z&32767))/32768,J[3]=(Z-(J[2]=Z&32767))/32768&32767};Zw.exports=G6;G6.prototype.updated=function(Z){while(this.deduplicate&&Z.buffer[Z.deduplicate]===this.deduplicate[Z.deduplicate])if(Z.deduplicate++,Z.deduplicate===this.deduplicate.length){if(Z.deduplicate=0,Z.buffer.equals&&Z.buffer.equals(this.deduplicate))Z.buffer=this.deduplicate;break}if(Z.updated||!this.updates)return;Z.updated=!0,this.updates.push(Z)};G6.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var Z=this.updates.pop();return Z.updated=!1,Z};G6.prototype._array=function(Z,J){if(Z>=this.maxPages){if(J)return;Tb(this,Z)}Nb(Z,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(J)return;Q=$[Y]=new Array(32768)}$=Q}return $};G6.prototype.get=function(Z,J){var $=this._array(Z,J),X=this.path[0],Y=$&&$[X];if(!Y&&!J){if(Y=$[X]=new eL(Z,eZ(this.pageSize)),Z>=this.length)this.length=Z+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!J)Y.buffer=Eb(Y.buffer),Y.deduplicate=0;return Y};G6.prototype.set=function(Z,J){var $=this._array(Z,!1),X=this.path[0];if(Z>=this.length)this.length=Z+1;if(!J||this.zeros&&J.equals&&J.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&J.equals&&J.equals(this.deduplicate))J=this.deduplicate;var Y=$[X],Q=Ib(J,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new eL(Z,Q)};G6.prototype.toBuffer=function(){var Z=new Array(this.length),J=eZ(this.pageSize),$=0;while($<Z.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<Z.length;Y++)Z[$++]=X&&X[Y]?X[Y].buffer:J}return Buffer.concat(Z)}});var Xw=z((Z01,$w)=>{var u6=function(Z){if(!(this instanceof u6))return new u6(Z);if(!Z)Z={};if(Buffer.isBuffer(Z))Z={buffer:Z};if(this.pageOffset=Z.pageOffset||0,this.pageSize=Z.pageSize||1024,this.pages=Z.pages||Bb(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!hb(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!Z.trackUpdates,this._pageMask=this.pageSize-1,Z.buffer){for(var J=0;J<Z.buffer.length;J+=this.pageSize)this.pages.set(J/this.pageSize,Z.buffer.slice(J,J+this.pageSize));this.byteLength=Z.buffer.length,this.length=8*this.byteLength}},Cb=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},hb=function(Z){return!(Z&Z-1)},Bb=Jw();$w.exports=u6;u6.prototype.get=function(Z){var J=Z&7,$=(Z-J)/8;return!!(this.getByte($)&128>>J)};u6.prototype.getByte=function(Z){var J=Z&this._pageMask,$=(Z-J)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[J+this.pageOffset]:0};u6.prototype.set=function(Z,J){var $=Z&7,X=(Z-$)/8,Y=this.getByte(X);return this.setByte(X,J?Y|128>>$:Y&(255^128>>$))};u6.prototype.toBuffer=function(){var Z=Cb(this.pages.length*this.pageSize);for(var J=0;J<this.pages.length;J++){var $=this.pages.get(J,!0),X=J*this.pageSize;if($)$.buffer.copy(Z,X,this.pageOffset,this.pageOffset+this.pageSize)}return Z};u6.prototype.setByte=function(Z,J){var $=Z&this._pageMask,X=(Z-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===J)return!1;if(Y.buffer[$]=J,Z>=this.byteLength)this.byteLength=Z+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var Qw=z((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});var Ob=import.meta.require("zlib");Yw.default=Ob.gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))});var Fw=z((K0)=>{var L7=function(){const Z=Kw.default.readUInt32BE(a5);a5+=4;const J=Kw.default.slice(a5,a5+Z);return a5+=Z,kb.default({buffer:J})},Gw=K0&&K0.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(K0,"__esModule",{value:!0});K0.bidirectional_l=K0.bidirectional_r_al=K0.prohibited_characters=K0.non_ASCII_space_characters=K0.commonly_mapped_to_nothing=K0.unassigned_code_points=void 0;var kb=Gw(Xw()),Kw=Gw(Qw()),a5=0;K0.unassigned_code_points=L7();K0.commonly_mapped_to_nothing=L7();K0.non_ASCII_space_characters=L7();K0.prohibited_characters=L7();K0.bidirectional_r_al=L7();K0.bidirectional_l=L7()});var zw=z((X01,Hw)=>{var qw=function(Z){const J=[],$=Z.length;for(let X=0;X<$;X+=1){const Y=Z.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=Z.charCodeAt(X+1);if(Q>=56320&&Q<=57343){J.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}J.push(Y)}return J},i5=function(Z,J={}){if(typeof Z!=="string")throw new TypeError("Expected string.");if(Z.length===0)return"";const $=qw(Z).map((q)=>yb.get(q)?32:q).filter((q)=>!_b.get(q)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=qw(X);if(Y.some((q)=>d6.prohibited_characters.get(q)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(J.allowUnassigned!==!0){if(Y.some((H)=>d6.unassigned_code_points.get(H)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}const K=Y.some((q)=>d6.bidirectional_r_al.get(q)),G=Y.some((q)=>d6.bidirectional_l.get(q));if(K&&G)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const F=d6.bidirectional_r_al.get(Ww(xb(X))),W=d6.bidirectional_r_al.get(Ww(vb(X)));if(K&&!(F&&W))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return X},d6=Fw(),yb=d6.non_ASCII_space_characters,_b=d6.commonly_mapped_to_nothing,Ww=(Z)=>Z.codePointAt(0),xb=(Z)=>Z[0],vb=(Z)=>Z[Z.length-1];i5.saslprep=i5;i5.default=i5;Hw.exports=i5});var R7=z((Uw)=>{var s5=function(Z){return new Proxy(Z?{kModuleError:Z}:{},{get:($,X)=>{if(X==="kModuleError")return Z;throw Z},set:()=>{throw Z}})},fb=function(){try{return Uw.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),Uw.Kerberos}catch{return Uw.Kerberos}},gb=function(){try{return Uw.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),Uw.ZStandard}catch{return Uw.ZStandard}},bb=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return s5(new w7.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},mb=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(Z){return{kModuleError:new w7.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:Z})}}};Object.defineProperty(Uw,"__esModule",{value:!0});Uw.AutoEncryptionLoggerLevel=Uw.aws4=Uw.saslprep=Uw.getSnappy=Uw.getAwsCredentialProvider=Uw.getZstdLibrary=Uw.ZStandard=Uw.getKerberos=Uw.Kerberos=void 0;var w7=h();Uw.Kerberos=s5(new w7.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));Uw.getKerberos=fb;Uw.ZStandard=s5(new w7.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));Uw.getZstdLibrary=gb;Uw.getAwsCredentialProvider=bb;Uw.getSnappy=mb;Uw.saslprep=s5(new w7.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{Uw.saslprep=zw()}catch{}Uw.aws4=s5(new w7.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{Uw.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}Uw.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})});var F6=z((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.AuthProvider=ww.AuthContext=void 0;var lb=h();class Aw{constructor(Z,J,$){this.reauthenticating=!1,this.connection=Z,this.credentials=J,this.options=$}}ww.AuthContext=Aw;class Lw{async prepare(Z,J){return Z}async reauth(Z){if(Z.reauthenticating)throw new lb.MongoRuntimeError("Reauthentication already in progress.");try{Z.reauthenticating=!0,await this.auth(Z)}finally{Z.reauthenticating=!1}}}ww.AuthProvider=Lw});var XJ=z((Ew)=>{async function h3(Z,J){return Z.commandAsync(sb.ns("$external.$cmd"),J,void 0)}async function tb(Z){const{hostAddress:J}=Z.options,{credentials:$}=Z;if(!J||typeof J.host!=="string"||!$)throw new Pw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(Zm(),"kModuleError"in n5)throw n5.kModuleError;const{initializeClient:X}=n5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",F=await Iw(J.host,K),W={};if(Q!=null)Object.assign(W,{user:Y,password:Q});const q=K.SERVICE_HOST??F;let H=`${G}${process.platform==="win32"?"/":"@"}${q}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,W)}var rb=function(Z){return{saslStart:1,mechanism:"GSSAPI",payload:Z,autoAuthorize:1}},ob=function(Z,J){return{saslContinue:1,conversationId:J,payload:Z}};async function Tw(Z,J,$){try{return await Z.step($)||""}catch(X){if(J===0)throw X;return Tw(Z,J-1,$)}}async function eb(Z,J,$){const X=await Z.unwrap($);return Z.wrap(X||"",{user:J})}async function Iw(Z,J){const $=J.CANONICALIZE_HOST_NAME;if(!$||$===Ew.GSSAPICanonicalizationValue.none)return Z;if($===Ew.GSSAPICanonicalizationValue.on||$===Ew.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await O3.promises.lookup(Z);try{const Y=await O3.promises.resolvePtr(X);return Y.length>0?Y[0]:Z}catch(Y){return S3(Z)}}else return S3(Z)}async function S3(Z){try{const J=await O3.promises.resolveCname(Z);return J.length>0?J[0]:Z}catch{return Z}}var Zm=function(){if(!n5)n5=ib.getKerberos()};Object.defineProperty(Ew,"__esModule",{value:!0});Ew.resolveCname=Ew.performGSSAPICanonicalizeHostName=Ew.GSSAPI=Ew.GSSAPICanonicalizationValue=void 0;var O3=import.meta.require("dns"),ib=R7(),Pw=h(),sb=_(),nb=F6();Ew.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var n5;class Dw extends nb.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if($==null)throw new Pw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await tb(Z),Q=await Y.step(""),K=await h3(J,rb(Q)),G=await Tw(Y,10,K.payload),F=await h3(J,ob(G,K.conversationId)),W=await eb(Y,X,F.payload);await h3(J,{saslContinue:1,conversationId:F.conversationId,payload:W})}}Ew.GSSAPI=Dw;Ew.performGSSAPICanonicalizeHostName=Iw;Ew.resolveCname=S3});var _8=z((Bw)=>{Object.defineProperty(Bw,"__esModule",{value:!0});Bw.AUTH_MECHS_AUTH_SRC_EXTERNAL=Bw.AuthMechanism=void 0;Bw.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509",MONGODB_OIDC:"MONGODB-OIDC"});Bw.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([Bw.AuthMechanism.MONGODB_GSSAPI,Bw.AuthMechanism.MONGODB_AWS,Bw.AuthMechanism.MONGODB_OIDC,Bw.AuthMechanism.MONGODB_X509])});var QJ=z((Sw)=>{var Ym=function(Z){if(Z){if(Array.isArray(Z.saslSupportedMechs))return Z.saslSupportedMechs.includes(a1.AuthMechanism.MONGODB_SCRAM_SHA256)?a1.AuthMechanism.MONGODB_SCRAM_SHA256:a1.AuthMechanism.MONGODB_SCRAM_SHA1;if(Z.maxWireVersion>=3)return a1.AuthMechanism.MONGODB_SCRAM_SHA1}return a1.AuthMechanism.MONGODB_CR};Object.defineProperty(Sw,"__esModule",{value:!0});Sw.MongoCredentials=Sw.DEFAULT_ALLOWED_HOSTS=void 0;var s0=h(),Xm=XJ(),a1=_8(),hw=["aws","azure"],Ow="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";Sw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var Qm="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class YJ{constructor(Z){if(this.username=Z.username??"",this.password=Z.password,this.source=Z.source,!this.source&&Z.db)this.source=Z.db;if(this.mechanism=Z.mechanism||a1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=Z.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID)this.username=process.env.AWS_ACCESS_KEY_ID;if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY)this.password=process.env.AWS_SECRET_ACCESS_KEY;if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null)this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}if(this.mechanism===a1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:Sw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(Z){return this.mechanism===Z.mechanism&&this.username===Z.username&&this.password===Z.password&&this.source===Z.source}resolveAuthMechanism(Z){if(this.mechanism.match(/DEFAULT/i))return new YJ({username:this.username,password:this.password,source:this.source,mechanism:Ym(Z),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===a1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===a1.AuthMechanism.MONGODB_CR||this.mechanism===a1.AuthMechanism.MONGODB_PLAIN||this.mechanism===a1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===a1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new s0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===a1.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new s0.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.PROVIDER_NAME==="azure"&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new s0.MongoAzureError(Qm);if(this.mechanismProperties.PROVIDER_NAME&&!hw.includes(this.mechanismProperties.PROVIDER_NAME))throw new s0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${hw.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new s0.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new s0.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const J=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(J))throw new s0.MongoInvalidArgumentError(Ow);for(let $ of J)if(typeof $!=="string")throw new s0.MongoInvalidArgumentError(Ow)}}if(a1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external")throw new s0.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}if(this.mechanism===a1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new s0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===a1.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new s0.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const Z=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(Xm.GSSAPICanonicalizationValue).includes(Z))throw new s0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${Z}`)}static merge(Z,J){return new YJ({username:J.username??Z?.username??"",password:J.password??Z?.password??"",mechanism:J.mechanism??Z?.mechanism??a1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:J.mechanismProperties??Z?.mechanismProperties??{},source:J.source??J.db??Z?.source??"admin"})}}Sw.MongoCredentials=YJ});var GJ=z((fw)=>{var F1=function(Z,J,$){if($.globals)Z=$.globals[Z.name];return new Z(`${$.context?$.context:"Value"} ${J}.`)},T7=function(Z,J){if(typeof Z==="bigint")throw F1(TypeError,"is a BigInt which cannot be converted to a number",J);if(!J.globals)return Number(Z);return J.globals.Number(Z)},xw=function(Z){if(Z>0&&Z%1===0.5&&(Z&1)===0||Z<0&&Z%1===-0.5&&(Z&1)===1)return r5(Math.floor(Z));return r5(Math.round(Z))},KJ=function(Z){return r5(Math.trunc(Z))},_w=function(Z){return Z<0?-1:1},Km=function(Z,J){const $=Z%J;if(_w(J)!==_w($))return $+J;return $},r5=function(Z){return Z===0?0:Z},I7=function(Z,{unsigned:J}){let $,X;if(J)$=0,X=2**Z-1;else $=-(2**(Z-1)),X=2**(Z-1)-1;const Y=2**Z,Q=2**(Z-1);return(K,G={})=>{let F=T7(K,G);if(F=r5(F),G.enforceRange){if(!Number.isFinite(F))throw F1(TypeError,"is not a finite number",G);if(F=KJ(F),F<$||F>X)throw F1(TypeError,`is outside the accepted range of ${$} to ${X}, inclusive`,G);return F}if(!Number.isNaN(F)&&G.clamp)return F=Math.min(Math.max(F,$),X),F=xw(F),F;if(!Number.isFinite(F)||F===0)return 0;if(F=KJ(F),F>=$&&F<=X)return F;if(F=Km(F,Y),!J&&F>=Q)return F-Y;return F}},vw=function(Z,{unsigned:J}){const $=Number.MAX_SAFE_INTEGER,X=J?0:Number.MIN_SAFE_INTEGER,Y=J?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=T7(Q,K);if(G=r5(G),K.enforceRange){if(!Number.isFinite(G))throw F1(TypeError,"is not a finite number",K);if(G=KJ(G),G<X||G>$)throw F1(TypeError,`is outside the accepted range of ${X} to ${$}, inclusive`,K);return G}if(!Number.isNaN(G)&&K.clamp)return G=Math.min(Math.max(G,X),$),G=xw(G),G;if(!Number.isFinite(G)||G===0)return 0;let F=BigInt(KJ(G));return F=Y(Z,F),Number(F)}},k3=function(Z){try{return Gm.call(Z),!0}catch{return!1}},P7=function(Z){try{return Fm.call(Z),!0}catch{return!1}},D7=function(Z){try{return new Uint8Array(Z),!1}catch{return!0}};fw.any=(Z)=>{return Z};fw.undefined=()=>{return};fw.boolean=(Z)=>{return Boolean(Z)};fw.byte=I7(8,{unsigned:!1});fw.octet=I7(8,{unsigned:!0});fw.short=I7(16,{unsigned:!1});fw["unsigned short"]=I7(16,{unsigned:!0});fw.long=I7(32,{unsigned:!1});fw["unsigned long"]=I7(32,{unsigned:!0});fw["long long"]=vw(64,{unsigned:!1});fw["unsigned long long"]=vw(64,{unsigned:!0});fw.double=(Z,J={})=>{const $=T7(Z,J);if(!Number.isFinite($))throw F1(TypeError,"is not a finite floating-point value",J);return $};fw["unrestricted double"]=(Z,J={})=>{return T7(Z,J)};fw.float=(Z,J={})=>{const $=T7(Z,J);if(!Number.isFinite($))throw F1(TypeError,"is not a finite floating-point value",J);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw F1(TypeError,"is outside the range of a single-precision floating-point value",J);return X};fw["unrestricted float"]=(Z,J={})=>{const $=T7(Z,J);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};fw.DOMString=(Z,J={})=>{if(J.treatNullAsEmptyString&&Z===null)return"";if(typeof Z==="symbol")throw F1(TypeError,"is a symbol, which cannot be converted to a string",J);return(J.globals?J.globals.String:String)(Z)};fw.ByteString=(Z,J={})=>{const $=fw.DOMString(Z,J);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw F1(TypeError,"is not a valid ByteString",J);return $};fw.USVString=(Z,J={})=>{const $=fw.DOMString(Z,J),X=$.length,Y=[];for(let Q=0;Q<X;++Q){const K=$.charCodeAt(Q);if(K<55296||K>57343)Y.push(String.fromCodePoint(K));else if(56320<=K&&K<=57343)Y.push(String.fromCodePoint(65533));else if(Q===X-1)Y.push(String.fromCodePoint(65533));else{const G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){const F=K&1023,W=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*F+W)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};fw.object=(Z,J={})=>{if(Z===null||typeof Z!=="object"&&typeof Z!=="function")throw F1(TypeError,"is not an object",J);return Z};var Gm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,Fm=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;fw.ArrayBuffer=(Z,J={})=>{if(!k3(Z)){if(J.allowShared&&!P7(Z))throw F1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",J);throw F1(TypeError,"is not an ArrayBuffer",J)}if(D7(Z))throw F1(TypeError,"is a detached ArrayBuffer",J);return Z};var Wm=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;fw.DataView=(Z,J={})=>{try{Wm.call(Z)}catch($){throw F1(TypeError,"is not a DataView",J)}if(!J.allowShared&&P7(Z.buffer))throw F1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",J);if(D7(Z.buffer))throw F1(TypeError,"is backed by a detached ArrayBuffer",J);return Z};var qm=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((Z)=>{const{name:J}=Z,$=/^[AEIOU]/u.test(J)?"an":"a";fw[J]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||qm.call(X)!==J)throw F1(TypeError,`is not ${$} ${J} object`,Y);if(!Y.allowShared&&P7(X.buffer))throw F1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(D7(X.buffer))throw F1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});fw.ArrayBufferView=(Z,J={})=>{if(!ArrayBuffer.isView(Z))throw F1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",J);if(!J.allowShared&&P7(Z.buffer))throw F1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(D7(Z.buffer))throw F1(TypeError,"is a view on a detached ArrayBuffer",J);return Z};fw.BufferSource=(Z,J={})=>{if(ArrayBuffer.isView(Z)){if(!J.allowShared&&P7(Z.buffer))throw F1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(D7(Z.buffer))throw F1(TypeError,"is a view on a detached ArrayBuffer",J);return Z}if(!J.allowShared&&!k3(Z))throw F1(TypeError,"is not an ArrayBuffer or a view on one",J);if(J.allowShared&&!P7(Z)&&!k3(Z))throw F1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",J);if(D7(Z))throw F1(TypeError,"is a detached ArrayBuffer",J);return Z};fw.DOMTimeStamp=fw["unsigned long long"]});var WJ=z((lw,aw)=>{var ym=function(Z){return typeof Z==="object"&&Z!==null||typeof Z==="function"},_m=function(Z,J){for(let $ of Reflect.ownKeys(J)){const X=Reflect.getOwnPropertyDescriptor(J,$);if(X&&!Reflect.defineProperty(Z,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},xm=function(Z,J){const $=dw(Z);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(J))},dw=function(Z){if(bw(Z,FJ))return Z[FJ];const J=Object.create(null);J["%Object.prototype%"]=Z.Object.prototype,J["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new Z.Array()[Symbol.iterator]()));try{J["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(Z.eval("(async function* () {})").prototype))}catch{J["%AsyncIteratorPrototype%"]=vm}return Z[FJ]=J,J},fm=function(Z,J,$){if(!Z[E7])Z[E7]=Object.create(null);if(J in Z[E7])return Z[E7][J];return Z[E7][J]=$(),Z[E7][J]},pw=function(Z){return Z?Z[mw]:null},cw=function(Z){return Z?Z[uw]:null},gm=function(Z){const J=pw(Z);return J?J:Z},bm=function(Z){const J=cw(Z);return J?J:Z},um=function(Z){if(typeof Z!=="string")return!1;const J=Z>>>0;if(J===4294967295)return!1;const $=`${J}`;if(Z!==$)return!1;return!0},pm=function(Z){try{return dm.call(Z),!0}catch(J){return!1}},cm=function([Z,J],$){let X;switch($){case"key":X=Z;break;case"value":X=J;break;case"key+value":X=[Z,J];break}return{value:X,done:!1}},bw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),mw=Symbol("wrapper"),uw=Symbol("impl"),E7=Symbol("SameObject caches"),FJ=Symbol.for("[webidl2js] constructor registry"),vm=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),mm=Symbol("internal"),dm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,lm=Symbol("supports property index"),am=Symbol("supported property indices"),im=Symbol("supports property name"),sm=Symbol("supported property names"),nm=Symbol("indexed property get"),tm=Symbol("indexed property set new"),rm=Symbol("indexed property set existing"),om=Symbol("named property get"),em=Symbol("named property set new"),Zu=Symbol("named property set existing"),Ju=Symbol("named property delete"),$u=Symbol("async iterator get the next iteration result"),Xu=Symbol("async iterator return steps"),Yu=Symbol("async iterator initialization steps"),Qu=Symbol("async iterator end of iteration");aw.exports=lw={isObject:ym,hasOwn:bw,define:_m,newObjectInRealm:xm,wrapperSymbol:mw,implSymbol:uw,getSameObject:fm,ctorRegistrySymbol:FJ,initCtorRegistry:dw,wrapperForImpl:pw,implForWrapper:cw,tryWrapperForImpl:gm,tryImplForWrapper:bm,iterInternalSymbol:mm,isArrayBuffer:pm,isArrayIndexPropName:um,supportsPropertyIndex:lm,supportedPropertyIndices:am,supportsPropertyName:im,supportedPropertyNames:sm,indexedGet:nm,indexedSetNew:tm,indexedSetExisting:rm,namedGet:om,namedSetNew:em,namedSetExisting:Zu,namedDelete:Ju,asyncIteratorNext:$u,asyncIteratorReturn:Xu,asyncIteratorInit:Yu,asyncIteratorEOI:Qu,iteratorResult:cm}});var sw=z((q01,iw)=>{var Ku=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,Gu=/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,Fu=/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,Wu=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,qu=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,Hu=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,zu=/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11FD5}-\u{11FF1}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,Uu=/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,Vu=/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,Mu=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,ju=/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1123E}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,Au=/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;iw.exports={combiningMarks:Ku,combiningClassVirama:Gu,validZWNJ:Fu,bidiDomain:Wu,bidiS1LTR:qu,bidiS1RTL:Hu,bidiS2:zu,bidiS3:Uu,bidiS4EN:Vu,bidiS4AN:Mu,bidiS5:ju,bidiS6:Au}});var nw=z((H01,Lu)=>{Lu.exports=[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xE0"],[193,1,"\xE1"],[194,1,"\xE2"],[195,1,"\xE3"],[196,1,"\xE4"],[197,1,"\xE5"],[198,1,"\xE6"],[199,1,"\xE7"],[200,1,"\xE8"],[201,1,"\xE9"],[202,1,"\xEA"],[203,1,"\xEB"],[204,1,"\xEC"],[205,1,"\xED"],[206,1,"\xEE"],[207,1,"\xEF"],[208,1,"\xF0"],[209,1,"\xF1"],[210,1,"\xF2"],[211,1,"\xF3"],[212,1,"\xF4"],[213,1,"\xF5"],[214,1,"\xF6"],[215,2],[216,1,"\xF8"],[217,1,"\xF9"],[218,1,"\xFA"],[219,1,"\xFB"],[220,1,"\xFC"],[221,1,"\xFD"],[222,1,"\xFE"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010B"],[267,2],[268,1,"\u010D"],[269,2],[270,1,"\u010F"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011B"],[283,2],[284,1,"\u011D"],[285,2],[286,1,"\u011F"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012B"],[299,2],[300,1,"\u012D"],[301,2],[302,1,"\u012F"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013A"],[314,2],[315,1,"\u013C"],[316,2],[317,1,"\u013E"],[318,2],[[319,320],1,"l\xB7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02BCn"],[330,1,"\u014B"],[331,2],[332,1,"\u014D"],[333,2],[334,1,"\u014F"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015B"],[347,2],[348,1,"\u015D"],[349,2],[350,1,"\u015F"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016B"],[363,2],[364,1,"\u016D"],[365,2],[366,1,"\u016F"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xFF"],[377,1,"\u017A"],[378,2],[379,1,"\u017C"],[380,2],[381,1,"\u017E"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018C"],[[396,397],2],[398,1,"\u01DD"],[399,1,"\u0259"],[400,1,"\u025B"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026F"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01A1"],[417,2],[418,1,"\u01A3"],[419,2],[420,1,"\u01A5"],[421,2],[422,1,"\u0280"],[423,1,"\u01A8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01AD"],[429,2],[430,1,"\u0288"],[431,1,"\u01B0"],[432,2],[433,1,"\u028A"],[434,1,"\u028B"],[435,1,"\u01B4"],[436,2],[437,1,"\u01B6"],[438,2],[439,1,"\u0292"],[440,1,"\u01B9"],[[441,443],2],[444,1,"\u01BD"],[[445,451],2],[[452,454],1,"d\u017E"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01CE"],[462,2],[463,1,"\u01D0"],[464,2],[465,1,"\u01D2"],[466,2],[467,1,"\u01D4"],[468,2],[469,1,"\u01D6"],[470,2],[471,1,"\u01D8"],[472,2],[473,1,"\u01DA"],[474,2],[475,1,"\u01DC"],[[476,477],2],[478,1,"\u01DF"],[479,2],[480,1,"\u01E1"],[481,2],[482,1,"\u01E3"],[483,2],[484,1,"\u01E5"],[485,2],[486,1,"\u01E7"],[487,2],[488,1,"\u01E9"],[489,2],[490,1,"\u01EB"],[491,2],[492,1,"\u01ED"],[493,2],[494,1,"\u01EF"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01F5"],[501,2],[502,1,"\u0195"],[503,1,"\u01BF"],[504,1,"\u01F9"],[505,2],[506,1,"\u01FB"],[507,2],[508,1,"\u01FD"],[509,2],[510,1,"\u01FF"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020B"],[523,2],[524,1,"\u020D"],[525,2],[526,1,"\u020F"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021B"],[539,2],[540,1,"\u021D"],[541,2],[542,1,"\u021F"],[543,2],[544,1,"\u019E"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022B"],[555,2],[556,1,"\u022D"],[557,2],[558,1,"\u022F"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2C65"],[571,1,"\u023C"],[572,2],[573,1,"\u019A"],[574,1,"\u2C66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028C"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024B"],[587,2],[588,1,"\u024D"],[589,2],[590,1,"\u024F"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027B"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030A"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030B"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03B9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02B9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03B9"],[[891,893],2],[894,5,";"],[895,1,"\u03F3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03AC"],[903,1,"\xB7"],[904,1,"\u03AD"],[905,1,"\u03AE"],[906,1,"\u03AF"],[907,3],[908,1,"\u03CC"],[909,3],[910,1,"\u03CD"],[911,1,"\u03CE"],[912,2],[913,1,"\u03B1"],[914,1,"\u03B2"],[915,1,"\u03B3"],[916,1,"\u03B4"],[917,1,"\u03B5"],[918,1,"\u03B6"],[919,1,"\u03B7"],[920,1,"\u03B8"],[921,1,"\u03B9"],[922,1,"\u03BA"],[923,1,"\u03BB"],[924,1,"\u03BC"],[925,1,"\u03BD"],[926,1,"\u03BE"],[927,1,"\u03BF"],[928,1,"\u03C0"],[929,1,"\u03C1"],[930,3],[931,1,"\u03C3"],[932,1,"\u03C4"],[933,1,"\u03C5"],[934,1,"\u03C6"],[935,1,"\u03C7"],[936,1,"\u03C8"],[937,1,"\u03C9"],[938,1,"\u03CA"],[939,1,"\u03CB"],[[940,961],2],[962,6,"\u03C3"],[[963,974],2],[975,1,"\u03D7"],[976,1,"\u03B2"],[977,1,"\u03B8"],[978,1,"\u03C5"],[979,1,"\u03CD"],[980,1,"\u03CB"],[981,1,"\u03C6"],[982,1,"\u03C0"],[983,2],[984,1,"\u03D9"],[985,2],[986,1,"\u03DB"],[987,2],[988,1,"\u03DD"],[989,2],[990,1,"\u03DF"],[991,2],[992,1,"\u03E1"],[993,2],[994,1,"\u03E3"],[995,2],[996,1,"\u03E5"],[997,2],[998,1,"\u03E7"],[999,2],[1000,1,"\u03E9"],[1001,2],[1002,1,"\u03EB"],[1003,2],[1004,1,"\u03ED"],[1005,2],[1006,1,"\u03EF"],[1007,2],[1008,1,"\u03BA"],[1009,1,"\u03C1"],[1010,1,"\u03C3"],[1011,2],[1012,1,"\u03B8"],[1013,1,"\u03B5"],[1014,2],[1015,1,"\u03F8"],[1016,2],[1017,1,"\u03C3"],[1018,1,"\u03FB"],[1019,2],[1020,2],[1021,1,"\u037B"],[1022,1,"\u037C"],[1023,1,"\u037D"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045A"],[1035,1,"\u045B"],[1036,1,"\u045C"],[1037,1,"\u045D"],[1038,1,"\u045E"],[1039,1,"\u045F"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043A"],[1051,1,"\u043B"],[1052,1,"\u043C"],[1053,1,"\u043D"],[1054,1,"\u043E"],[1055,1,"\u043F"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044A"],[1067,1,"\u044B"],[1068,1,"\u044C"],[1069,1,"\u044D"],[1070,1,"\u044E"],[1071,1,"\u044F"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046B"],[1131,2],[1132,1,"\u046D"],[1133,2],[1134,1,"\u046F"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047B"],[1147,2],[1148,1,"\u047D"],[1149,2],[1150,1,"\u047F"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048B"],[1163,2],[1164,1,"\u048D"],[1165,2],[1166,1,"\u048F"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049B"],[1179,2],[1180,1,"\u049D"],[1181,2],[1182,1,"\u049F"],[1183,2],[1184,1,"\u04A1"],[1185,2],[1186,1,"\u04A3"],[1187,2],[1188,1,"\u04A5"],[1189,2],[1190,1,"\u04A7"],[1191,2],[1192,1,"\u04A9"],[1193,2],[1194,1,"\u04AB"],[1195,2],[1196,1,"\u04AD"],[1197,2],[1198,1,"\u04AF"],[1199,2],[1200,1,"\u04B1"],[1201,2],[1202,1,"\u04B3"],[1203,2],[1204,1,"\u04B5"],[1205,2],[1206,1,"\u04B7"],[1207,2],[1208,1,"\u04B9"],[1209,2],[1210,1,"\u04BB"],[1211,2],[1212,1,"\u04BD"],[1213,2],[1214,1,"\u04BF"],[1215,2],[1216,3],[1217,1,"\u04C2"],[1218,2],[1219,1,"\u04C4"],[1220,2],[1221,1,"\u04C6"],[1222,2],[1223,1,"\u04C8"],[1224,2],[1225,1,"\u04CA"],[1226,2],[1227,1,"\u04CC"],[1228,2],[1229,1,"\u04CE"],[1230,2],[1231,2],[1232,1,"\u04D1"],[1233,2],[1234,1,"\u04D3"],[1235,2],[1236,1,"\u04D5"],[1237,2],[1238,1,"\u04D7"],[1239,2],[1240,1,"\u04D9"],[1241,2],[1242,1,"\u04DB"],[1243,2],[1244,1,"\u04DD"],[1245,2],[1246,1,"\u04DF"],[1247,2],[1248,1,"\u04E1"],[1249,2],[1250,1,"\u04E3"],[1251,2],[1252,1,"\u04E5"],[1253,2],[1254,1,"\u04E7"],[1255,2],[1256,1,"\u04E9"],[1257,2],[1258,1,"\u04EB"],[1259,2],[1260,1,"\u04ED"],[1261,2],[1262,1,"\u04EF"],[1263,2],[1264,1,"\u04F1"],[1265,2],[1266,1,"\u04F3"],[1267,2],[1268,1,"\u04F5"],[1269,2],[1270,1,"\u04F7"],[1271,2],[1272,1,"\u04F9"],[1273,2],[1274,1,"\u04FB"],[1275,2],[1276,1,"\u04FD"],[1277,2],[1278,1,"\u04FF"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050B"],[1291,2],[1292,1,"\u050D"],[1293,2],[1294,1,"\u050F"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051B"],[1307,2],[1308,1,"\u051D"],[1309,2],[1310,1,"\u051F"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052B"],[1323,2],[1324,1,"\u052D"],[1325,2],[1326,1,"\u052F"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056A"],[1339,1,"\u056B"],[1340,1,"\u056C"],[1341,1,"\u056D"],[1342,1,"\u056E"],[1343,1,"\u056F"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057A"],[1355,1,"\u057B"],[1356,1,"\u057C"],[1357,1,"\u057D"],[1358,1,"\u057E"],[1359,1,"\u057F"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06C7\u0674"],[1656,1,"\u064A\u0674"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"\u0915\u093C"],[2393,1,"\u0916\u093C"],[2394,1,"\u0917\u093C"],[2395,1,"\u091C\u093C"],[2396,1,"\u0921\u093C"],[2397,1,"\u0922\u093C"],[2398,1,"\u092B\u093C"],[2399,1,"\u092F\u093C"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"\u09A1\u09BC"],[2525,1,"\u09A2\u09BC"],[2526,3],[2527,1,"\u09AF\u09BC"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"\u0A32\u0A3C"],[2612,3],[2613,2],[2614,1,"\u0A38\u0A3C"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"\u0A16\u0A3C"],[2650,1,"\u0A17\u0A3C"],[2651,1,"\u0A1C\u0A3C"],[2652,2],[2653,3],[2654,1,"\u0A2B\u0A3C"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"\u0B21\u0B3C"],[2909,1,"\u0B22\u0B3C"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[[3315,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"\u0E4D\u0E32"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"\u0ECD\u0EB2"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[[3790,3791],3],[[3792,3801],2],[[3802,3803],3],[3804,1,"\u0EAB\u0E99"],[3805,1,"\u0EAB\u0EA1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0F0B"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"\u0F42\u0FB7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0F4C\u0FB7"],[[3918,3921],2],[3922,1,"\u0F51\u0FB7"],[[3923,3926],2],[3927,1,"\u0F56\u0FB7"],[[3928,3931],2],[3932,1,"\u0F5B\u0FB7"],[[3933,3944],2],[3945,1,"\u0F40\u0FB5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0F71\u0F72"],[3956,2],[3957,1,"\u0F71\u0F74"],[3958,1,"\u0FB2\u0F80"],[3959,1,"\u0FB2\u0F71\u0F80"],[3960,1,"\u0FB3\u0F80"],[3961,1,"\u0FB3\u0F71\u0F80"],[[3962,3968],2],[3969,1,"\u0F71\u0F80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0F92\u0FB7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0F9C\u0FB7"],[[3998,4001],2],[4002,1,"\u0FA1\u0FB7"],[[4003,4006],2],[4007,1,"\u0FA6\u0FB7"],[[4008,4011],2],[4012,1,"\u0FAB\u0FB7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0F90\u0FB5"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"\u2D27"],[[4296,4300],3],[4301,1,"\u2D2D"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10DC"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"\u13F0"],[5113,1,"\u13F1"],[5114,1,"\u13F2"],[5115,1,"\u13F3"],[5116,1,"\u13F4"],[5117,1,"\u13F5"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043E"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044A"],[7303,1,"\u0463"],[7304,1,"\uA64B"],[[7305,7311],3],[7312,1,"\u10D0"],[7313,1,"\u10D1"],[7314,1,"\u10D2"],[7315,1,"\u10D3"],[7316,1,"\u10D4"],[7317,1,"\u10D5"],[7318,1,"\u10D6"],[7319,1,"\u10D7"],[7320,1,"\u10D8"],[7321,1,"\u10D9"],[7322,1,"\u10DA"],[7323,1,"\u10DB"],[7324,1,"\u10DC"],[7325,1,"\u10DD"],[7326,1,"\u10DE"],[7327,1,"\u10DF"],[7328,1,"\u10E0"],[7329,1,"\u10E1"],[7330,1,"\u10E2"],[7331,1,"\u10E3"],[7332,1,"\u10E4"],[7333,1,"\u10E5"],[7334,1,"\u10E6"],[7335,1,"\u10E7"],[7336,1,"\u10E8"],[7337,1,"\u10E9"],[7338,1,"\u10EA"],[7339,1,"\u10EB"],[7340,1,"\u10EC"],[7341,1,"\u10ED"],[7342,1,"\u10EE"],[7343,1,"\u10EF"],[7344,1,"\u10F0"],[7345,1,"\u10F1"],[7346,1,"\u10F2"],[7347,1,"\u10F3"],[7348,1,"\u10F4"],[7349,1,"\u10F5"],[7350,1,"\u10F6"],[7351,1,"\u10F7"],[7352,1,"\u10F8"],[7353,1,"\u10F9"],[7354,1,"\u10FA"],[[7355,7356],3],[7357,1,"\u10FD"],[7358,1,"\u10FE"],[7359,1,"\u10FF"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"\xE6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01DD"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1D02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025B"],[7500,1,"\u025C"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014B"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1D16"],[7509,1,"\u1D17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1D1D"],[7514,1,"\u026F"],[7515,1,"v"],[7516,1,"\u1D25"],[7517,1,"\u03B2"],[7518,1,"\u03B3"],[7519,1,"\u03B4"],[7520,1,"\u03C6"],[7521,1,"\u03C7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03B2"],[7527,1,"\u03B3"],[7528,1,"\u03C1"],[7529,1,"\u03C6"],[7530,1,"\u03C7"],[7531,2],[[7532,7543],2],[7544,1,"\u043D"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xF0"],[7583,1,"\u025C"],[7584,1,"f"],[7585,1,"\u025F"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026A"],[7591,1,"\u1D7B"],[7592,1,"\u029D"],[7593,1,"\u026D"],[7594,1,"\u1D85"],[7595,1,"\u029F"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01AB"],[7606,1,"\u0289"],[7607,1,"\u028A"],[7608,1,"\u1D1C"],[7609,1,"\u028B"],[7610,1,"\u028C"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03B8"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"\u1E01"],[7681,2],[7682,1,"\u1E03"],[7683,2],[7684,1,"\u1E05"],[7685,2],[7686,1,"\u1E07"],[7687,2],[7688,1,"\u1E09"],[7689,2],[7690,1,"\u1E0B"],[7691,2],[7692,1,"\u1E0D"],[7693,2],[7694,1,"\u1E0F"],[7695,2],[7696,1,"\u1E11"],[7697,2],[7698,1,"\u1E13"],[7699,2],[7700,1,"\u1E15"],[7701,2],[7702,1,"\u1E17"],[7703,2],[7704,1,"\u1E19"],[7705,2],[7706,1,"\u1E1B"],[7707,2],[7708,1,"\u1E1D"],[7709,2],[7710,1,"\u1E1F"],[7711,2],[7712,1,"\u1E21"],[7713,2],[7714,1,"\u1E23"],[7715,2],[7716,1,"\u1E25"],[7717,2],[7718,1,"\u1E27"],[7719,2],[7720,1,"\u1E29"],[7721,2],[7722,1,"\u1E2B"],[7723,2],[7724,1,"\u1E2D"],[7725,2],[7726,1,"\u1E2F"],[7727,2],[7728,1,"\u1E31"],[7729,2],[7730,1,"\u1E33"],[7731,2],[7732,1,"\u1E35"],[7733,2],[7734,1,"\u1E37"],[7735,2],[7736,1,"\u1E39"],[7737,2],[7738,1,"\u1E3B"],[7739,2],[7740,1,"\u1E3D"],[7741,2],[7742,1,"\u1E3F"],[7743,2],[7744,1,"\u1E41"],[7745,2],[7746,1,"\u1E43"],[7747,2],[7748,1,"\u1E45"],[7749,2],[7750,1,"\u1E47"],[7751,2],[7752,1,"\u1E49"],[7753,2],[7754,1,"\u1E4B"],[7755,2],[7756,1,"\u1E4D"],[7757,2],[7758,1,"\u1E4F"],[7759,2],[7760,1,"\u1E51"],[7761,2],[7762,1,"\u1E53"],[7763,2],[7764,1,"\u1E55"],[7765,2],[7766,1,"\u1E57"],[7767,2],[7768,1,"\u1E59"],[7769,2],[7770,1,"\u1E5B"],[7771,2],[7772,1,"\u1E5D"],[7773,2],[7774,1,"\u1E5F"],[7775,2],[7776,1,"\u1E61"],[7777,2],[7778,1,"\u1E63"],[7779,2],[7780,1,"\u1E65"],[7781,2],[7782,1,"\u1E67"],[7783,2],[7784,1,"\u1E69"],[7785,2],[7786,1,"\u1E6B"],[7787,2],[7788,1,"\u1E6D"],[7789,2],[7790,1,"\u1E6F"],[7791,2],[7792,1,"\u1E71"],[7793,2],[7794,1,"\u1E73"],[7795,2],[7796,1,"\u1E75"],[7797,2],[7798,1,"\u1E77"],[7799,2],[7800,1,"\u1E79"],[7801,2],[7802,1,"\u1E7B"],[7803,2],[7804,1,"\u1E7D"],[7805,2],[7806,1,"\u1E7F"],[7807,2],[7808,1,"\u1E81"],[7809,2],[7810,1,"\u1E83"],[7811,2],[7812,1,"\u1E85"],[7813,2],[7814,1,"\u1E87"],[7815,2],[7816,1,"\u1E89"],[7817,2],[7818,1,"\u1E8B"],[7819,2],[7820,1,"\u1E8D"],[7821,2],[7822,1,"\u1E8F"],[7823,2],[7824,1,"\u1E91"],[7825,2],[7826,1,"\u1E93"],[7827,2],[7828,1,"\u1E95"],[[7829,7833],2],[7834,1,"a\u02BE"],[7835,1,"\u1E61"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"\u1EA1"],[7841,2],[7842,1,"\u1EA3"],[7843,2],[7844,1,"\u1EA5"],[7845,2],[7846,1,"\u1EA7"],[7847,2],[7848,1,"\u1EA9"],[7849,2],[7850,1,"\u1EAB"],[7851,2],[7852,1,"\u1EAD"],[7853,2],[7854,1,"\u1EAF"],[7855,2],[7856,1,"\u1EB1"],[7857,2],[7858,1,"\u1EB3"],[7859,2],[7860,1,"\u1EB5"],[7861,2],[7862,1,"\u1EB7"],[7863,2],[7864,1,"\u1EB9"],[7865,2],[7866,1,"\u1EBB"],[7867,2],[7868,1,"\u1EBD"],[7869,2],[7870,1,"\u1EBF"],[7871,2],[7872,1,"\u1EC1"],[7873,2],[7874,1,"\u1EC3"],[7875,2],[7876,1,"\u1EC5"],[7877,2],[7878,1,"\u1EC7"],[7879,2],[7880,1,"\u1EC9"],[7881,2],[7882,1,"\u1ECB"],[7883,2],[7884,1,"\u1ECD"],[7885,2],[7886,1,"\u1ECF"],[7887,2],[7888,1,"\u1ED1"],[7889,2],[7890,1,"\u1ED3"],[7891,2],[7892,1,"\u1ED5"],[7893,2],[7894,1,"\u1ED7"],[7895,2],[7896,1,"\u1ED9"],[7897,2],[7898,1,"\u1EDB"],[7899,2],[7900,1,"\u1EDD"],[7901,2],[7902,1,"\u1EDF"],[7903,2],[7904,1,"\u1EE1"],[7905,2],[7906,1,"\u1EE3"],[7907,2],[7908,1,"\u1EE5"],[7909,2],[7910,1,"\u1EE7"],[7911,2],[7912,1,"\u1EE9"],[7913,2],[7914,1,"\u1EEB"],[7915,2],[7916,1,"\u1EED"],[7917,2],[7918,1,"\u1EEF"],[7919,2],[7920,1,"\u1EF1"],[7921,2],[7922,1,"\u1EF3"],[7923,2],[7924,1,"\u1EF5"],[7925,2],[7926,1,"\u1EF7"],[7927,2],[7928,1,"\u1EF9"],[7929,2],[7930,1,"\u1EFB"],[7931,2],[7932,1,"\u1EFD"],[7933,2],[7934,1,"\u1EFF"],[7935,2],[[7936,7943],2],[7944,1,"\u1F00"],[7945,1,"\u1F01"],[7946,1,"\u1F02"],[7947,1,"\u1F03"],[7948,1,"\u1F04"],[7949,1,"\u1F05"],[7950,1,"\u1F06"],[7951,1,"\u1F07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1F10"],[7961,1,"\u1F11"],[7962,1,"\u1F12"],[7963,1,"\u1F13"],[7964,1,"\u1F14"],[7965,1,"\u1F15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1F20"],[7977,1,"\u1F21"],[7978,1,"\u1F22"],[7979,1,"\u1F23"],[7980,1,"\u1F24"],[7981,1,"\u1F25"],[7982,1,"\u1F26"],[7983,1,"\u1F27"],[[7984,7991],2],[7992,1,"\u1F30"],[7993,1,"\u1F31"],[7994,1,"\u1F32"],[7995,1,"\u1F33"],[7996,1,"\u1F34"],[7997,1,"\u1F35"],[7998,1,"\u1F36"],[7999,1,"\u1F37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1F40"],[8009,1,"\u1F41"],[8010,1,"\u1F42"],[8011,1,"\u1F43"],[8012,1,"\u1F44"],[8013,1,"\u1F45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1F51"],[8026,3],[8027,1,"\u1F53"],[8028,3],[8029,1,"\u1F55"],[8030,3],[8031,1,"\u1F57"],[[8032,8039],2],[8040,1,"\u1F60"],[8041,1,"\u1F61"],[8042,1,"\u1F62"],[8043,1,"\u1F63"],[8044,1,"\u1F64"],[8045,1,"\u1F65"],[8046,1,"\u1F66"],[8047,1,"\u1F67"],[8048,2],[8049,1,"\u03AC"],[8050,2],[8051,1,"\u03AD"],[8052,2],[8053,1,"\u03AE"],[8054,2],[8055,1,"\u03AF"],[8056,2],[8057,1,"\u03CC"],[8058,2],[8059,1,"\u03CD"],[8060,2],[8061,1,"\u03CE"],[[8062,8063],3],[8064,1,"\u1F00\u03B9"],[8065,1,"\u1F01\u03B9"],[8066,1,"\u1F02\u03B9"],[8067,1,"\u1F03\u03B9"],[8068,1,"\u1F04\u03B9"],[8069,1,"\u1F05\u03B9"],[8070,1,"\u1F06\u03B9"],[8071,1,"\u1F07\u03B9"],[8072,1,"\u1F00\u03B9"],[8073,1,"\u1F01\u03B9"],[8074,1,"\u1F02\u03B9"],[8075,1,"\u1F03\u03B9"],[8076,1,"\u1F04\u03B9"],[8077,1,"\u1F05\u03B9"],[8078,1,"\u1F06\u03B9"],[8079,1,"\u1F07\u03B9"],[8080,1,"\u1F20\u03B9"],[8081,1,"\u1F21\u03B9"],[8082,1,"\u1F22\u03B9"],[8083,1,"\u1F23\u03B9"],[8084,1,"\u1F24\u03B9"],[8085,1,"\u1F25\u03B9"],[8086,1,"\u1F26\u03B9"],[8087,1,"\u1F27\u03B9"],[8088,1,"\u1F20\u03B9"],[8089,1,"\u1F21\u03B9"],[8090,1,"\u1F22\u03B9"],[8091,1,"\u1F23\u03B9"],[8092,1,"\u1F24\u03B9"],[8093,1,"\u1F25\u03B9"],[8094,1,"\u1F26\u03B9"],[8095,1,"\u1F27\u03B9"],[8096,1,"\u1F60\u03B9"],[8097,1,"\u1F61\u03B9"],[8098,1,"\u1F62\u03B9"],[8099,1,"\u1F63\u03B9"],[8100,1,"\u1F64\u03B9"],[8101,1,"\u1F65\u03B9"],[8102,1,"\u1F66\u03B9"],[8103,1,"\u1F67\u03B9"],[8104,1,"\u1F60\u03B9"],[8105,1,"\u1F61\u03B9"],[8106,1,"\u1F62\u03B9"],[8107,1,"\u1F63\u03B9"],[8108,1,"\u1F64\u03B9"],[8109,1,"\u1F65\u03B9"],[8110,1,"\u1F66\u03B9"],[8111,1,"\u1F67\u03B9"],[[8112,8113],2],[8114,1,"\u1F70\u03B9"],[8115,1,"\u03B1\u03B9"],[8116,1,"\u03AC\u03B9"],[8117,3],[8118,2],[8119,1,"\u1FB6\u03B9"],[8120,1,"\u1FB0"],[8121,1,"\u1FB1"],[8122,1,"\u1F70"],[8123,1,"\u03AC"],[8124,1,"\u03B1\u03B9"],[8125,5," \u0313"],[8126,1,"\u03B9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1F74\u03B9"],[8131,1,"\u03B7\u03B9"],[8132,1,"\u03AE\u03B9"],[8133,3],[8134,2],[8135,1,"\u1FC6\u03B9"],[8136,1,"\u1F72"],[8137,1,"\u03AD"],[8138,1,"\u1F74"],[8139,1,"\u03AE"],[8140,1,"\u03B7\u03B9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1FD0"],[8153,1,"\u1FD1"],[8154,1,"\u1F76"],[8155,1,"\u03AF"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03B0"],[[8164,8167],2],[8168,1,"\u1FE0"],[8169,1,"\u1FE1"],[8170,1,"\u1F7A"],[8171,1,"\u03CD"],[8172,1,"\u1FE5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1F7C\u03B9"],[8179,1,"\u03C9\u03B9"],[8180,1,"\u03CE\u03B9"],[8181,3],[8182,2],[8183,1,"\u1FF6\u03B9"],[8184,1,"\u1F78"],[8185,1,"\u03CC"],[8186,1,"\u1F7C"],[8187,1,"\u03CE"],[8188,1,"\u03C9\u03B9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"\u2212"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"\xB0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025B"],[8456,2],[8457,1,"\xB0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"\u03C9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xE5"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"\u05D0"],[8502,1,"\u05D1"],[8503,1,"\u05D2"],[8504,1,"\u05D3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03C0"],[[8509,8510],1,"\u03B3"],[8511,1,"\u03C0"],[8512,1,"\u2211"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222B\u222B"],[8749,1,"\u222B\u222B\u222B"],[8750,2],[8751,1,"\u222E\u222E"],[8752,1,"\u222E\u222E\u222E"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"\u3008"],[9002,1,"\u3009"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"\u222B\u222B\u222B\u222B"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2ADD\u0338"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"\u2C30"],[11265,1,"\u2C31"],[11266,1,"\u2C32"],[11267,1,"\u2C33"],[11268,1,"\u2C34"],[11269,1,"\u2C35"],[11270,1,"\u2C36"],[11271,1,"\u2C37"],[11272,1,"\u2C38"],[11273,1,"\u2C39"],[11274,1,"\u2C3A"],[11275,1,"\u2C3B"],[11276,1,"\u2C3C"],[11277,1,"\u2C3D"],[11278,1,"\u2C3E"],[11279,1,"\u2C3F"],[11280,1,"\u2C40"],[11281,1,"\u2C41"],[11282,1,"\u2C42"],[11283,1,"\u2C43"],[11284,1,"\u2C44"],[11285,1,"\u2C45"],[11286,1,"\u2C46"],[11287,1,"\u2C47"],[11288,1,"\u2C48"],[11289,1,"\u2C49"],[11290,1,"\u2C4A"],[11291,1,"\u2C4B"],[11292,1,"\u2C4C"],[11293,1,"\u2C4D"],[11294,1,"\u2C4E"],[11295,1,"\u2C4F"],[11296,1,"\u2C50"],[11297,1,"\u2C51"],[11298,1,"\u2C52"],[11299,1,"\u2C53"],[11300,1,"\u2C54"],[11301,1,"\u2C55"],[11302,1,"\u2C56"],[11303,1,"\u2C57"],[11304,1,"\u2C58"],[11305,1,"\u2C59"],[11306,1,"\u2C5A"],[11307,1,"\u2C5B"],[11308,1,"\u2C5C"],[11309,1,"\u2C5D"],[11310,1,"\u2C5E"],[11311,1,"\u2C5F"],[[11312,11358],2],[11359,2],[11360,1,"\u2C61"],[11361,2],[11362,1,"\u026B"],[11363,1,"\u1D7D"],[11364,1,"\u027D"],[[11365,11366],2],[11367,1,"\u2C68"],[11368,2],[11369,1,"\u2C6A"],[11370,2],[11371,1,"\u2C6C"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2C73"],[11379,2],[11380,2],[11381,1,"\u2C76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023F"],[11391,1,"\u0240"],[11392,1,"\u2C81"],[11393,2],[11394,1,"\u2C83"],[11395,2],[11396,1,"\u2C85"],[11397,2],[11398,1,"\u2C87"],[11399,2],[11400,1,"\u2C89"],[11401,2],[11402,1,"\u2C8B"],[11403,2],[11404,1,"\u2C8D"],[11405,2],[11406,1,"\u2C8F"],[11407,2],[11408,1,"\u2C91"],[11409,2],[11410,1,"\u2C93"],[11411,2],[11412,1,"\u2C95"],[11413,2],[11414,1,"\u2C97"],[11415,2],[11416,1,"\u2C99"],[11417,2],[11418,1,"\u2C9B"],[11419,2],[11420,1,"\u2C9D"],[11421,2],[11422,1,"\u2C9F"],[11423,2],[11424,1,"\u2CA1"],[11425,2],[11426,1,"\u2CA3"],[11427,2],[11428,1,"\u2CA5"],[11429,2],[11430,1,"\u2CA7"],[11431,2],[11432,1,"\u2CA9"],[11433,2],[11434,1,"\u2CAB"],[11435,2],[11436,1,"\u2CAD"],[11437,2],[11438,1,"\u2CAF"],[11439,2],[11440,1,"\u2CB1"],[11441,2],[11442,1,"\u2CB3"],[11443,2],[11444,1,"\u2CB5"],[11445,2],[11446,1,"\u2CB7"],[11447,2],[11448,1,"\u2CB9"],[11449,2],[11450,1,"\u2CBB"],[11451,2],[11452,1,"\u2CBD"],[11453,2],[11454,1,"\u2CBF"],[11455,2],[11456,1,"\u2CC1"],[11457,2],[11458,1,"\u2CC3"],[11459,2],[11460,1,"\u2CC5"],[11461,2],[11462,1,"\u2CC7"],[11463,2],[11464,1,"\u2CC9"],[11465,2],[11466,1,"\u2CCB"],[11467,2],[11468,1,"\u2CCD"],[11469,2],[11470,1,"\u2CCF"],[11471,2],[11472,1,"\u2CD1"],[11473,2],[11474,1,"\u2CD3"],[11475,2],[11476,1,"\u2CD5"],[11477,2],[11478,1,"\u2CD7"],[11479,2],[11480,1,"\u2CD9"],[11481,2],[11482,1,"\u2CDB"],[11483,2],[11484,1,"\u2CDD"],[11485,2],[11486,1,"\u2CDF"],[11487,2],[11488,1,"\u2CE1"],[11489,2],[11490,1,"\u2CE3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2CEC"],[11500,2],[11501,1,"\u2CEE"],[[11502,11505],2],[11506,1,"\u2CF3"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"\u2D61"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"\u6BCD"],[[11936,12018],2],[12019,1,"\u9F9F"],[[12020,12031],3],[12032,1,"\u4E00"],[12033,1,"\u4E28"],[12034,1,"\u4E36"],[12035,1,"\u4E3F"],[12036,1,"\u4E59"],[12037,1,"\u4E85"],[12038,1,"\u4E8C"],[12039,1,"\u4EA0"],[12040,1,"\u4EBA"],[12041,1,"\u513F"],[12042,1,"\u5165"],[12043,1,"\u516B"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51AB"],[12047,1,"\u51E0"],[12048,1,"\u51F5"],[12049,1,"\u5200"],[12050,1,"\u529B"],[12051,1,"\u52F9"],[12052,1,"\u5315"],[12053,1,"\u531A"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535C"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53B6"],[12060,1,"\u53C8"],[12061,1,"\u53E3"],[12062,1,"\u56D7"],[12063,1,"\u571F"],[12064,1,"\u58EB"],[12065,1,"\u5902"],[12066,1,"\u590A"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5B50"],[12071,1,"\u5B80"],[12072,1,"\u5BF8"],[12073,1,"\u5C0F"],[12074,1,"\u5C22"],[12075,1,"\u5C38"],[12076,1,"\u5C6E"],[12077,1,"\u5C71"],[12078,1,"\u5DDB"],[12079,1,"\u5DE5"],[12080,1,"\u5DF1"],[12081,1,"\u5DFE"],[12082,1,"\u5E72"],[12083,1,"\u5E7A"],[12084,1,"\u5E7F"],[12085,1,"\u5EF4"],[12086,1,"\u5EFE"],[12087,1,"\u5F0B"],[12088,1,"\u5F13"],[12089,1,"\u5F50"],[12090,1,"\u5F61"],[12091,1,"\u5F73"],[12092,1,"\u5FC3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624B"],[12096,1,"\u652F"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65A4"],[12101,1,"\u65B9"],[12102,1,"\u65E0"],[12103,1,"\u65E5"],[12104,1,"\u66F0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6B20"],[12108,1,"\u6B62"],[12109,1,"\u6B79"],[12110,1,"\u6BB3"],[12111,1,"\u6BCB"],[12112,1,"\u6BD4"],[12113,1,"\u6BDB"],[12114,1,"\u6C0F"],[12115,1,"\u6C14"],[12116,1,"\u6C34"],[12117,1,"\u706B"],[12118,1,"\u722A"],[12119,1,"\u7236"],[12120,1,"\u723B"],[12121,1,"\u723F"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725B"],[12125,1,"\u72AC"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74DC"],[12129,1,"\u74E6"],[12130,1,"\u7518"],[12131,1,"\u751F"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758B"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767D"],[12138,1,"\u76AE"],[12139,1,"\u76BF"],[12140,1,"\u76EE"],[12141,1,"\u77DB"],[12142,1,"\u77E2"],[12143,1,"\u77F3"],[12144,1,"\u793A"],[12145,1,"\u79B8"],[12146,1,"\u79BE"],[12147,1,"\u7A74"],[12148,1,"\u7ACB"],[12149,1,"\u7AF9"],[12150,1,"\u7C73"],[12151,1,"\u7CF8"],[12152,1,"\u7F36"],[12153,1,"\u7F51"],[12154,1,"\u7F8A"],[12155,1,"\u7FBD"],[12156,1,"\u8001"],[12157,1,"\u800C"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807F"],[12161,1,"\u8089"],[12162,1,"\u81E3"],[12163,1,"\u81EA"],[12164,1,"\u81F3"],[12165,1,"\u81FC"],[12166,1,"\u820C"],[12167,1,"\u821B"],[12168,1,"\u821F"],[12169,1,"\u826E"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864D"],[12173,1,"\u866B"],[12174,1,"\u8840"],[12175,1,"\u884C"],[12176,1,"\u8863"],[12177,1,"\u897E"],[12178,1,"\u898B"],[12179,1,"\u89D2"],[12180,1,"\u8A00"],[12181,1,"\u8C37"],[12182,1,"\u8C46"],[12183,1,"\u8C55"],[12184,1,"\u8C78"],[12185,1,"\u8C9D"],[12186,1,"\u8D64"],[12187,1,"\u8D70"],[12188,1,"\u8DB3"],[12189,1,"\u8EAB"],[12190,1,"\u8ECA"],[12191,1,"\u8F9B"],[12192,1,"\u8FB0"],[12193,1,"\u8FB5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91C6"],[12197,1,"\u91CC"],[12198,1,"\u91D1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961C"],[12202,1,"\u96B6"],[12203,1,"\u96B9"],[12204,1,"\u96E8"],[12205,1,"\u9751"],[12206,1,"\u975E"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97CB"],[12210,1,"\u97ED"],[12211,1,"\u97F3"],[12212,1,"\u9801"],[12213,1,"\u98A8"],[12214,1,"\u98DB"],[12215,1,"\u98DF"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99AC"],[12219,1,"\u9AA8"],[12220,1,"\u9AD8"],[12221,1,"\u9ADF"],[12222,1,"\u9B25"],[12223,1,"\u9B2F"],[12224,1,"\u9B32"],[12225,1,"\u9B3C"],[12226,1,"\u9B5A"],[12227,1,"\u9CE5"],[12228,1,"\u9E75"],[12229,1,"\u9E7F"],[12230,1,"\u9EA5"],[12231,1,"\u9EBB"],[12232,1,"\u9EC3"],[12233,1,"\u9ECD"],[12234,1,"\u9ED1"],[12235,1,"\u9EF9"],[12236,1,"\u9EFD"],[12237,1,"\u9F0E"],[12238,1,"\u9F13"],[12239,1,"\u9F20"],[12240,1,"\u9F3B"],[12241,1,"\u9F4A"],[12242,1,"\u9F52"],[12243,1,"\u9F8D"],[12244,1,"\u9F9C"],[12245,1,"\u9FA0"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," \u3099"],[12444,5," \u309A"],[[12445,12446],2],[12447,1,"\u3088\u308A"],[12448,2],[[12449,12542],2],[12543,1,"\u30B3\u30C8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11AA"],[12596,1,"\u1102"],[12597,1,"\u11AC"],[12598,1,"\u11AD"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11B0"],[12603,1,"\u11B1"],[12604,1,"\u11B2"],[12605,1,"\u11B3"],[12606,1,"\u11B4"],[12607,1,"\u11B5"],[12608,1,"\u111A"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110A"],[12615,1,"\u110B"],[12616,1,"\u110C"],[12617,1,"\u110D"],[12618,1,"\u110E"],[12619,1,"\u110F"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116A"],[12633,1,"\u116B"],[12634,1,"\u116C"],[12635,1,"\u116D"],[12636,1,"\u116E"],[12637,1,"\u116F"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11C7"],[12648,1,"\u11C8"],[12649,1,"\u11CC"],[12650,1,"\u11CE"],[12651,1,"\u11D3"],[12652,1,"\u11D7"],[12653,1,"\u11D9"],[12654,1,"\u111C"],[12655,1,"\u11DD"],[12656,1,"\u11DF"],[12657,1,"\u111D"],[12658,1,"\u111E"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112B"],[12665,1,"\u112C"],[12666,1,"\u112D"],[12667,1,"\u112E"],[12668,1,"\u112F"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114C"],[12674,1,"\u11F1"],[12675,1,"\u11F2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119E"],[12686,1,"\u11A1"],[12687,3],[[12688,12689],2],[12690,1,"\u4E00"],[12691,1,"\u4E8C"],[12692,1,"\u4E09"],[12693,1,"\u56DB"],[12694,1,"\u4E0A"],[12695,1,"\u4E2D"],[12696,1,"\u4E0B"],[12697,1,"\u7532"],[12698,1,"\u4E59"],[12699,1,"\u4E19"],[12700,1,"\u4E01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4EBA"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110B)"],[12808,5,"(\u110C)"],[12809,5,"(\u110E)"],[12810,5,"(\u110F)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uAC00)"],[12815,5,"(\uB098)"],[12816,5,"(\uB2E4)"],[12817,5,"(\uB77C)"],[12818,5,"(\uB9C8)"],[12819,5,"(\uBC14)"],[12820,5,"(\uC0AC)"],[12821,5,"(\uC544)"],[12822,5,"(\uC790)"],[12823,5,"(\uCC28)"],[12824,5,"(\uCE74)"],[12825,5,"(\uD0C0)"],[12826,5,"(\uD30C)"],[12827,5,"(\uD558)"],[12828,5,"(\uC8FC)"],[12829,5,"(\uC624\uC804)"],[12830,5,"(\uC624\uD6C4)"],[12831,3],[12832,5,"(\u4E00)"],[12833,5,"(\u4E8C)"],[12834,5,"(\u4E09)"],[12835,5,"(\u56DB)"],[12836,5,"(\u4E94)"],[12837,5,"(\u516D)"],[12838,5,"(\u4E03)"],[12839,5,"(\u516B)"],[12840,5,"(\u4E5D)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706B)"],[12844,5,"(\u6C34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91D1)"],[12847,5,"(\u571F)"],[12848,5,"(\u65E5)"],[12849,5,"(\u682A)"],[12850,5,"(\u6709)"],[12851,5,"(\u793E)"],[12852,5,"(\u540D)"],[12853,5,"(\u7279)"],[12854,5,"(\u8CA1)"],[12855,5,"(\u795D)"],[12856,5,"(\u52B4)"],[12857,5,"(\u4EE3)"],[12858,5,"(\u547C)"],[12859,5,"(\u5B66)"],[12860,5,"(\u76E3)"],[12861,5,"(\u4F01)"],[12862,5,"(\u8CC7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796D)"],[12865,5,"(\u4F11)"],[12866,5,"(\u81EA)"],[12867,5,"(\u81F3)"],[12868,1,"\u554F"],[12869,1,"\u5E7C"],[12870,1,"\u6587"],[12871,1,"\u7B8F"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110B"],[12904,1,"\u110C"],[12905,1,"\u110E"],[12906,1,"\u110F"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uAC00"],[12911,1,"\uB098"],[12912,1,"\uB2E4"],[12913,1,"\uB77C"],[12914,1,"\uB9C8"],[12915,1,"\uBC14"],[12916,1,"\uC0AC"],[12917,1,"\uC544"],[12918,1,"\uC790"],[12919,1,"\uCC28"],[12920,1,"\uCE74"],[12921,1,"\uD0C0"],[12922,1,"\uD30C"],[12923,1,"\uD558"],[12924,1,"\uCC38\uACE0"],[12925,1,"\uC8FC\uC758"],[12926,1,"\uC6B0"],[12927,2],[12928,1,"\u4E00"],[12929,1,"\u4E8C"],[12930,1,"\u4E09"],[12931,1,"\u56DB"],[12932,1,"\u4E94"],[12933,1,"\u516D"],[12934,1,"\u4E03"],[12935,1,"\u516B"],[12936,1,"\u4E5D"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706B"],[12940,1,"\u6C34"],[12941,1,"\u6728"],[12942,1,"\u91D1"],[12943,1,"\u571F"],[12944,1,"\u65E5"],[12945,1,"\u682A"],[12946,1,"\u6709"],[12947,1,"\u793E"],[12948,1,"\u540D"],[12949,1,"\u7279"],[12950,1,"\u8CA1"],[12951,1,"\u795D"],[12952,1,"\u52B4"],[12953,1,"\u79D8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512A"],[12958,1,"\u5370"],[12959,1,"\u6CE8"],[12960,1,"\u9805"],[12961,1,"\u4F11"],[12962,1,"\u5199"],[12963,1,"\u6B63"],[12964,1,"\u4E0A"],[12965,1,"\u4E2D"],[12966,1,"\u4E0B"],[12967,1,"\u5DE6"],[12968,1,"\u53F3"],[12969,1,"\u533B"],[12970,1,"\u5B97"],[12971,1,"\u5B66"],[12972,1,"\u76E3"],[12973,1,"\u4F01"],[12974,1,"\u8CC7"],[12975,1,"\u5354"],[12976,1,"\u591C"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30A2"],[13009,1,"\u30A4"],[13010,1,"\u30A6"],[13011,1,"\u30A8"],[13012,1,"\u30AA"],[13013,1,"\u30AB"],[13014,1,"\u30AD"],[13015,1,"\u30AF"],[13016,1,"\u30B1"],[13017,1,"\u30B3"],[13018,1,"\u30B5"],[13019,1,"\u30B7"],[13020,1,"\u30B9"],[13021,1,"\u30BB"],[13022,1,"\u30BD"],[13023,1,"\u30BF"],[13024,1,"\u30C1"],[13025,1,"\u30C4"],[13026,1,"\u30C6"],[13027,1,"\u30C8"],[13028,1,"\u30CA"],[13029,1,"\u30CB"],[13030,1,"\u30CC"],[13031,1,"\u30CD"],[13032,1,"\u30CE"],[13033,1,"\u30CF"],[13034,1,"\u30D2"],[13035,1,"\u30D5"],[13036,1,"\u30D8"],[13037,1,"\u30DB"],[13038,1,"\u30DE"],[13039,1,"\u30DF"],[13040,1,"\u30E0"],[13041,1,"\u30E1"],[13042,1,"\u30E2"],[13043,1,"\u30E4"],[13044,1,"\u30E6"],[13045,1,"\u30E8"],[13046,1,"\u30E9"],[13047,1,"\u30EA"],[13048,1,"\u30EB"],[13049,1,"\u30EC"],[13050,1,"\u30ED"],[13051,1,"\u30EF"],[13052,1,"\u30F0"],[13053,1,"\u30F1"],[13054,1,"\u30F2"],[13055,1,"\u4EE4\u548C"],[13056,1,"\u30A2\u30D1\u30FC\u30C8"],[13057,1,"\u30A2\u30EB\u30D5\u30A1"],[13058,1,"\u30A2\u30F3\u30DA\u30A2"],[13059,1,"\u30A2\u30FC\u30EB"],[13060,1,"\u30A4\u30CB\u30F3\u30B0"],[13061,1,"\u30A4\u30F3\u30C1"],[13062,1,"\u30A6\u30A9\u30F3"],[13063,1,"\u30A8\u30B9\u30AF\u30FC\u30C9"],[13064,1,"\u30A8\u30FC\u30AB\u30FC"],[13065,1,"\u30AA\u30F3\u30B9"],[13066,1,"\u30AA\u30FC\u30E0"],[13067,1,"\u30AB\u30A4\u30EA"],[13068,1,"\u30AB\u30E9\u30C3\u30C8"],[13069,1,"\u30AB\u30ED\u30EA\u30FC"],[13070,1,"\u30AC\u30ED\u30F3"],[13071,1,"\u30AC\u30F3\u30DE"],[13072,1,"\u30AE\u30AC"],[13073,1,"\u30AE\u30CB\u30FC"],[13074,1,"\u30AD\u30E5\u30EA\u30FC"],[13075,1,"\u30AE\u30EB\u30C0\u30FC"],[13076,1,"\u30AD\u30ED"],[13077,1,"\u30AD\u30ED\u30B0\u30E9\u30E0"],[13078,1,"\u30AD\u30ED\u30E1\u30FC\u30C8\u30EB"],[13079,1,"\u30AD\u30ED\u30EF\u30C3\u30C8"],[13080,1,"\u30B0\u30E9\u30E0"],[13081,1,"\u30B0\u30E9\u30E0\u30C8\u30F3"],[13082,1,"\u30AF\u30EB\u30BC\u30A4\u30ED"],[13083,1,"\u30AF\u30ED\u30FC\u30CD"],[13084,1,"\u30B1\u30FC\u30B9"],[13085,1,"\u30B3\u30EB\u30CA"],[13086,1,"\u30B3\u30FC\u30DD"],[13087,1,"\u30B5\u30A4\u30AF\u30EB"],[13088,1,"\u30B5\u30F3\u30C1\u30FC\u30E0"],[13089,1,"\u30B7\u30EA\u30F3\u30B0"],[13090,1,"\u30BB\u30F3\u30C1"],[13091,1,"\u30BB\u30F3\u30C8"],[13092,1,"\u30C0\u30FC\u30B9"],[13093,1,"\u30C7\u30B7"],[13094,1,"\u30C9\u30EB"],[13095,1,"\u30C8\u30F3"],[13096,1,"\u30CA\u30CE"],[13097,1,"\u30CE\u30C3\u30C8"],[13098,1,"\u30CF\u30A4\u30C4"],[13099,1,"\u30D1\u30FC\u30BB\u30F3\u30C8"],[13100,1,"\u30D1\u30FC\u30C4"],[13101,1,"\u30D0\u30FC\u30EC\u30EB"],[13102,1,"\u30D4\u30A2\u30B9\u30C8\u30EB"],[13103,1,"\u30D4\u30AF\u30EB"],[13104,1,"\u30D4\u30B3"],[13105,1,"\u30D3\u30EB"],[13106,1,"\u30D5\u30A1\u30E9\u30C3\u30C9"],[13107,1,"\u30D5\u30A3\u30FC\u30C8"],[13108,1,"\u30D6\u30C3\u30B7\u30A7\u30EB"],[13109,1,"\u30D5\u30E9\u30F3"],[13110,1,"\u30D8\u30AF\u30BF\u30FC\u30EB"],[13111,1,"\u30DA\u30BD"],[13112,1,"\u30DA\u30CB\u30D2"],[13113,1,"\u30D8\u30EB\u30C4"],[13114,1,"\u30DA\u30F3\u30B9"],[13115,1,"\u30DA\u30FC\u30B8"],[13116,1,"\u30D9\u30FC\u30BF"],[13117,1,"\u30DD\u30A4\u30F3\u30C8"],[13118,1,"\u30DC\u30EB\u30C8"],[13119,1,"\u30DB\u30F3"],[13120,1,"\u30DD\u30F3\u30C9"],[13121,1,"\u30DB\u30FC\u30EB"],[13122,1,"\u30DB\u30FC\u30F3"],[13123,1,"\u30DE\u30A4\u30AF\u30ED"],[13124,1,"\u30DE\u30A4\u30EB"],[13125,1,"\u30DE\u30C3\u30CF"],[13126,1,"\u30DE\u30EB\u30AF"],[13127,1,"\u30DE\u30F3\u30B7\u30E7\u30F3"],[13128,1,"\u30DF\u30AF\u30ED\u30F3"],[13129,1,"\u30DF\u30EA"],[13130,1,"\u30DF\u30EA\u30D0\u30FC\u30EB"],[13131,1,"\u30E1\u30AC"],[13132,1,"\u30E1\u30AC\u30C8\u30F3"],[13133,1,"\u30E1\u30FC\u30C8\u30EB"],[13134,1,"\u30E4\u30FC\u30C9"],[13135,1,"\u30E4\u30FC\u30EB"],[13136,1,"\u30E6\u30A2\u30F3"],[13137,1,"\u30EA\u30C3\u30C8\u30EB"],[13138,1,"\u30EA\u30E9"],[13139,1,"\u30EB\u30D4\u30FC"],[13140,1,"\u30EB\u30FC\u30D6\u30EB"],[13141,1,"\u30EC\u30E0"],[13142,1,"\u30EC\u30F3\u30C8\u30B2\u30F3"],[13143,1,"\u30EF\u30C3\u30C8"],[13144,1,"0\u70B9"],[13145,1,"1\u70B9"],[13146,1,"2\u70B9"],[13147,1,"3\u70B9"],[13148,1,"4\u70B9"],[13149,1,"5\u70B9"],[13150,1,"6\u70B9"],[13151,1,"7\u70B9"],[13152,1,"8\u70B9"],[13153,1,"9\u70B9"],[13154,1,"10\u70B9"],[13155,1,"11\u70B9"],[13156,1,"12\u70B9"],[13157,1,"13\u70B9"],[13158,1,"14\u70B9"],[13159,1,"15\u70B9"],[13160,1,"16\u70B9"],[13161,1,"17\u70B9"],[13162,1,"18\u70B9"],[13163,1,"19\u70B9"],[13164,1,"20\u70B9"],[13165,1,"21\u70B9"],[13166,1,"22\u70B9"],[13167,1,"23\u70B9"],[13168,1,"24\u70B9"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"\u5E73\u6210"],[13180,1,"\u662D\u548C"],[13181,1,"\u5927\u6B63"],[13182,1,"\u660E\u6CBB"],[13183,1,"\u682A\u5F0F\u4F1A\u793E"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03BCa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"\u03BCf"],[13197,1,"\u03BCg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03BCl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03BCm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03BCs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03BCv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03BCw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03C9"],[13249,1,"m\u03C9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65E5"],[13281,1,"2\u65E5"],[13282,1,"3\u65E5"],[13283,1,"4\u65E5"],[13284,1,"5\u65E5"],[13285,1,"6\u65E5"],[13286,1,"7\u65E5"],[13287,1,"8\u65E5"],[13288,1,"9\u65E5"],[13289,1,"10\u65E5"],[13290,1,"11\u65E5"],[13291,1,"12\u65E5"],[13292,1,"13\u65E5"],[13293,1,"14\u65E5"],[13294,1,"15\u65E5"],[13295,1,"16\u65E5"],[13296,1,"17\u65E5"],[13297,1,"18\u65E5"],[13298,1,"19\u65E5"],[13299,1,"20\u65E5"],[13300,1,"21\u65E5"],[13301,1,"22\u65E5"],[13302,1,"23\u65E5"],[13303,1,"24\u65E5"],[13304,1,"25\u65E5"],[13305,1,"26\u65E5"],[13306,1,"27\u65E5"],[13307,1,"28\u65E5"],[13308,1,"29\u65E5"],[13309,1,"30\u65E5"],[13310,1,"31\u65E5"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"\uA641"],[42561,2],[42562,1,"\uA643"],[42563,2],[42564,1,"\uA645"],[42565,2],[42566,1,"\uA647"],[42567,2],[42568,1,"\uA649"],[42569,2],[42570,1,"\uA64B"],[42571,2],[42572,1,"\uA64D"],[42573,2],[42574,1,"\uA64F"],[42575,2],[42576,1,"\uA651"],[42577,2],[42578,1,"\uA653"],[42579,2],[42580,1,"\uA655"],[42581,2],[42582,1,"\uA657"],[42583,2],[42584,1,"\uA659"],[42585,2],[42586,1,"\uA65B"],[42587,2],[42588,1,"\uA65D"],[42589,2],[42590,1,"\uA65F"],[42591,2],[42592,1,"\uA661"],[42593,2],[42594,1,"\uA663"],[42595,2],[42596,1,"\uA665"],[42597,2],[42598,1,"\uA667"],[42599,2],[42600,1,"\uA669"],[42601,2],[42602,1,"\uA66B"],[42603,2],[42604,1,"\uA66D"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\uA681"],[42625,2],[42626,1,"\uA683"],[42627,2],[42628,1,"\uA685"],[42629,2],[42630,1,"\uA687"],[42631,2],[42632,1,"\uA689"],[42633,2],[42634,1,"\uA68B"],[42635,2],[42636,1,"\uA68D"],[42637,2],[42638,1,"\uA68F"],[42639,2],[42640,1,"\uA691"],[42641,2],[42642,1,"\uA693"],[42643,2],[42644,1,"\uA695"],[42645,2],[42646,1,"\uA697"],[42647,2],[42648,1,"\uA699"],[42649,2],[42650,1,"\uA69B"],[42651,2],[42652,1,"\u044A"],[42653,1,"\u044C"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"\uA723"],[42787,2],[42788,1,"\uA725"],[42789,2],[42790,1,"\uA727"],[42791,2],[42792,1,"\uA729"],[42793,2],[42794,1,"\uA72B"],[42795,2],[42796,1,"\uA72D"],[42797,2],[42798,1,"\uA72F"],[[42799,42801],2],[42802,1,"\uA733"],[42803,2],[42804,1,"\uA735"],[42805,2],[42806,1,"\uA737"],[42807,2],[42808,1,"\uA739"],[42809,2],[42810,1,"\uA73B"],[42811,2],[42812,1,"\uA73D"],[42813,2],[42814,1,"\uA73F"],[42815,2],[42816,1,"\uA741"],[42817,2],[42818,1,"\uA743"],[42819,2],[42820,1,"\uA745"],[42821,2],[42822,1,"\uA747"],[42823,2],[42824,1,"\uA749"],[42825,2],[42826,1,"\uA74B"],[42827,2],[42828,1,"\uA74D"],[42829,2],[42830,1,"\uA74F"],[42831,2],[42832,1,"\uA751"],[42833,2],[42834,1,"\uA753"],[42835,2],[42836,1,"\uA755"],[42837,2],[42838,1,"\uA757"],[42839,2],[42840,1,"\uA759"],[42841,2],[42842,1,"\uA75B"],[42843,2],[42844,1,"\uA75D"],[42845,2],[42846,1,"\uA75F"],[42847,2],[42848,1,"\uA761"],[42849,2],[42850,1,"\uA763"],[42851,2],[42852,1,"\uA765"],[42853,2],[42854,1,"\uA767"],[42855,2],[42856,1,"\uA769"],[42857,2],[42858,1,"\uA76B"],[42859,2],[42860,1,"\uA76D"],[42861,2],[42862,1,"\uA76F"],[42863,2],[42864,1,"\uA76F"],[[42865,42872],2],[42873,1,"\uA77A"],[42874,2],[42875,1,"\uA77C"],[42876,2],[42877,1,"\u1D79"],[42878,1,"\uA77F"],[42879,2],[42880,1,"\uA781"],[42881,2],[42882,1,"\uA783"],[42883,2],[42884,1,"\uA785"],[42885,2],[42886,1,"\uA787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\uA78C"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\uA791"],[42897,2],[42898,1,"\uA793"],[42899,2],[[42900,42901],2],[42902,1,"\uA797"],[42903,2],[42904,1,"\uA799"],[42905,2],[42906,1,"\uA79B"],[42907,2],[42908,1,"\uA79D"],[42909,2],[42910,1,"\uA79F"],[42911,2],[42912,1,"\uA7A1"],[42913,2],[42914,1,"\uA7A3"],[42915,2],[42916,1,"\uA7A5"],[42917,2],[42918,1,"\uA7A7"],[42919,2],[42920,1,"\uA7A9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025C"],[42924,1,"\u0261"],[42925,1,"\u026C"],[42926,1,"\u026A"],[42927,2],[42928,1,"\u029E"],[42929,1,"\u0287"],[42930,1,"\u029D"],[42931,1,"\uAB53"],[42932,1,"\uA7B5"],[42933,2],[42934,1,"\uA7B7"],[42935,2],[42936,1,"\uA7B9"],[42937,2],[42938,1,"\uA7BB"],[42939,2],[42940,1,"\uA7BD"],[42941,2],[42942,1,"\uA7BF"],[42943,2],[42944,1,"\uA7C1"],[42945,2],[42946,1,"\uA7C3"],[42947,2],[42948,1,"\uA794"],[42949,1,"\u0282"],[42950,1,"\u1D8E"],[42951,1,"\uA7C8"],[42952,2],[42953,1,"\uA7CA"],[42954,2],[[42955,42959],3],[42960,1,"\uA7D1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\uA7D7"],[42967,2],[42968,1,"\uA7D9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"\uA727"],[43869,1,"\uAB37"],[43870,1,"\u026B"],[43871,1,"\uAB52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028D"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13A0"],[43889,1,"\u13A1"],[43890,1,"\u13A2"],[43891,1,"\u13A3"],[43892,1,"\u13A4"],[43893,1,"\u13A5"],[43894,1,"\u13A6"],[43895,1,"\u13A7"],[43896,1,"\u13A8"],[43897,1,"\u13A9"],[43898,1,"\u13AA"],[43899,1,"\u13AB"],[43900,1,"\u13AC"],[43901,1,"\u13AD"],[43902,1,"\u13AE"],[43903,1,"\u13AF"],[43904,1,"\u13B0"],[43905,1,"\u13B1"],[43906,1,"\u13B2"],[43907,1,"\u13B3"],[43908,1,"\u13B4"],[43909,1,"\u13B5"],[43910,1,"\u13B6"],[43911,1,"\u13B7"],[43912,1,"\u13B8"],[43913,1,"\u13B9"],[43914,1,"\u13BA"],[43915,1,"\u13BB"],[43916,1,"\u13BC"],[43917,1,"\u13BD"],[43918,1,"\u13BE"],[43919,1,"\u13BF"],[43920,1,"\u13C0"],[43921,1,"\u13C1"],[43922,1,"\u13C2"],[43923,1,"\u13C3"],[43924,1,"\u13C4"],[43925,1,"\u13C5"],[43926,1,"\u13C6"],[43927,1,"\u13C7"],[43928,1,"\u13C8"],[43929,1,"\u13C9"],[43930,1,"\u13CA"],[43931,1,"\u13CB"],[43932,1,"\u13CC"],[43933,1,"\u13CD"],[43934,1,"\u13CE"],[43935,1,"\u13CF"],[43936,1,"\u13D0"],[43937,1,"\u13D1"],[43938,1,"\u13D2"],[43939,1,"\u13D3"],[43940,1,"\u13D4"],[43941,1,"\u13D5"],[43942,1,"\u13D6"],[43943,1,"\u13D7"],[43944,1,"\u13D8"],[43945,1,"\u13D9"],[43946,1,"\u13DA"],[43947,1,"\u13DB"],[43948,1,"\u13DC"],[43949,1,"\u13DD"],[43950,1,"\u13DE"],[43951,1,"\u13DF"],[43952,1,"\u13E0"],[43953,1,"\u13E1"],[43954,1,"\u13E2"],[43955,1,"\u13E3"],[43956,1,"\u13E4"],[43957,1,"\u13E5"],[43958,1,"\u13E6"],[43959,1,"\u13E7"],[43960,1,"\u13E8"],[43961,1,"\u13E9"],[43962,1,"\u13EA"],[43963,1,"\u13EB"],[43964,1,"\u13EC"],[43965,1,"\u13ED"],[43966,1,"\u13EE"],[43967,1,"\u13EF"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"\u8C48"],[63745,1,"\u66F4"],[63746,1,"\u8ECA"],[63747,1,"\u8CC8"],[63748,1,"\u6ED1"],[63749,1,"\u4E32"],[63750,1,"\u53E5"],[[63751,63752],1,"\u9F9C"],[63753,1,"\u5951"],[63754,1,"\u91D1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61F6"],[63758,1,"\u7669"],[63759,1,"\u7F85"],[63760,1,"\u863F"],[63761,1,"\u87BA"],[63762,1,"\u88F8"],[63763,1,"\u908F"],[63764,1,"\u6A02"],[63765,1,"\u6D1B"],[63766,1,"\u70D9"],[63767,1,"\u73DE"],[63768,1,"\u843D"],[63769,1,"\u916A"],[63770,1,"\u99F1"],[63771,1,"\u4E82"],[63772,1,"\u5375"],[63773,1,"\u6B04"],[63774,1,"\u721B"],[63775,1,"\u862D"],[63776,1,"\u9E1E"],[63777,1,"\u5D50"],[63778,1,"\u6FEB"],[63779,1,"\u85CD"],[63780,1,"\u8964"],[63781,1,"\u62C9"],[63782,1,"\u81D8"],[63783,1,"\u881F"],[63784,1,"\u5ECA"],[63785,1,"\u6717"],[63786,1,"\u6D6A"],[63787,1,"\u72FC"],[63788,1,"\u90CE"],[63789,1,"\u4F86"],[63790,1,"\u51B7"],[63791,1,"\u52DE"],[63792,1,"\u64C4"],[63793,1,"\u6AD3"],[63794,1,"\u7210"],[63795,1,"\u76E7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865C"],[63799,1,"\u8DEF"],[63800,1,"\u9732"],[63801,1,"\u9B6F"],[63802,1,"\u9DFA"],[63803,1,"\u788C"],[63804,1,"\u797F"],[63805,1,"\u7DA0"],[63806,1,"\u83C9"],[63807,1,"\u9304"],[63808,1,"\u9E7F"],[63809,1,"\u8AD6"],[63810,1,"\u58DF"],[63811,1,"\u5F04"],[63812,1,"\u7C60"],[63813,1,"\u807E"],[63814,1,"\u7262"],[63815,1,"\u78CA"],[63816,1,"\u8CC2"],[63817,1,"\u96F7"],[63818,1,"\u58D8"],[63819,1,"\u5C62"],[63820,1,"\u6A13"],[63821,1,"\u6DDA"],[63822,1,"\u6F0F"],[63823,1,"\u7D2F"],[63824,1,"\u7E37"],[63825,1,"\u964B"],[63826,1,"\u52D2"],[63827,1,"\u808B"],[63828,1,"\u51DC"],[63829,1,"\u51CC"],[63830,1,"\u7A1C"],[63831,1,"\u7DBE"],[63832,1,"\u83F1"],[63833,1,"\u9675"],[63834,1,"\u8B80"],[63835,1,"\u62CF"],[63836,1,"\u6A02"],[63837,1,"\u8AFE"],[63838,1,"\u4E39"],[63839,1,"\u5BE7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78FB"],[63845,1,"\u4FBF"],[63846,1,"\u5FA9"],[63847,1,"\u4E0D"],[63848,1,"\u6CCC"],[63849,1,"\u6578"],[63850,1,"\u7D22"],[63851,1,"\u53C3"],[63852,1,"\u585E"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8AAA"],[63856,1,"\u6BBA"],[63857,1,"\u8FB0"],[63858,1,"\u6C88"],[63859,1,"\u62FE"],[63860,1,"\u82E5"],[63861,1,"\u63A0"],[63862,1,"\u7565"],[63863,1,"\u4EAE"],[63864,1,"\u5169"],[63865,1,"\u51C9"],[63866,1,"\u6881"],[63867,1,"\u7CE7"],[63868,1,"\u826F"],[63869,1,"\u8AD2"],[63870,1,"\u91CF"],[63871,1,"\u52F5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5EEC"],[63875,1,"\u65C5"],[63876,1,"\u6FFE"],[63877,1,"\u792A"],[63878,1,"\u95AD"],[63879,1,"\u9A6A"],[63880,1,"\u9E97"],[63881,1,"\u9ECE"],[63882,1,"\u529B"],[63883,1,"\u66C6"],[63884,1,"\u6B77"],[63885,1,"\u8F62"],[63886,1,"\u5E74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649A"],[63890,1,"\u6F23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79CA"],[63894,1,"\u7DF4"],[63895,1,"\u806F"],[63896,1,"\u8F26"],[63897,1,"\u84EE"],[63898,1,"\u9023"],[63899,1,"\u934A"],[63900,1,"\u5217"],[63901,1,"\u52A3"],[63902,1,"\u54BD"],[63903,1,"\u70C8"],[63904,1,"\u88C2"],[63905,1,"\u8AAA"],[63906,1,"\u5EC9"],[63907,1,"\u5FF5"],[63908,1,"\u637B"],[63909,1,"\u6BAE"],[63910,1,"\u7C3E"],[63911,1,"\u7375"],[63912,1,"\u4EE4"],[63913,1,"\u56F9"],[63914,1,"\u5BE7"],[63915,1,"\u5DBA"],[63916,1,"\u601C"],[63917,1,"\u73B2"],[63918,1,"\u7469"],[63919,1,"\u7F9A"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96F6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4F8B"],[63926,1,"\u79AE"],[63927,1,"\u91B4"],[63928,1,"\u96B8"],[63929,1,"\u60E1"],[63930,1,"\u4E86"],[63931,1,"\u50DA"],[63932,1,"\u5BEE"],[63933,1,"\u5C3F"],[63934,1,"\u6599"],[63935,1,"\u6A02"],[63936,1,"\u71CE"],[63937,1,"\u7642"],[63938,1,"\u84FC"],[63939,1,"\u907C"],[63940,1,"\u9F8D"],[63941,1,"\u6688"],[63942,1,"\u962E"],[63943,1,"\u5289"],[63944,1,"\u677B"],[63945,1,"\u67F3"],[63946,1,"\u6D41"],[63947,1,"\u6E9C"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786B"],[63951,1,"\u7D10"],[63952,1,"\u985E"],[63953,1,"\u516D"],[63954,1,"\u622E"],[63955,1,"\u9678"],[63956,1,"\u502B"],[63957,1,"\u5D19"],[63958,1,"\u6DEA"],[63959,1,"\u8F2A"],[63960,1,"\u5F8B"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540F"],[63967,1,"\u5C65"],[63968,1,"\u6613"],[63969,1,"\u674E"],[63970,1,"\u68A8"],[63971,1,"\u6CE5"],[63972,1,"\u7406"],[63973,1,"\u75E2"],[63974,1,"\u7F79"],[63975,1,"\u88CF"],[63976,1,"\u88E1"],[63977,1,"\u91CC"],[63978,1,"\u96E2"],[63979,1,"\u533F"],[63980,1,"\u6EBA"],[63981,1,"\u541D"],[63982,1,"\u71D0"],[63983,1,"\u7498"],[63984,1,"\u85FA"],[63985,1,"\u96A3"],[63986,1,"\u9C57"],[63987,1,"\u9E9F"],[63988,1,"\u6797"],[63989,1,"\u6DCB"],[63990,1,"\u81E8"],[63991,1,"\u7ACB"],[63992,1,"\u7B20"],[63993,1,"\u7C92"],[63994,1,"\u72C0"],[63995,1,"\u7099"],[63996,1,"\u8B58"],[63997,1,"\u4EC0"],[63998,1,"\u8336"],[63999,1,"\u523A"],[64000,1,"\u5207"],[64001,1,"\u5EA6"],[64002,1,"\u62D3"],[64003,1,"\u7CD6"],[64004,1,"\u5B85"],[64005,1,"\u6D1E"],[64006,1,"\u66B4"],[64007,1,"\u8F3B"],[64008,1,"\u884C"],[64009,1,"\u964D"],[64010,1,"\u898B"],[64011,1,"\u5ED3"],[64012,1,"\u5140"],[64013,1,"\u55C0"],[[64014,64015],2],[64016,1,"\u585A"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51DE"],[64022,1,"\u732A"],[64023,1,"\u76CA"],[64024,1,"\u793C"],[64025,1,"\u795E"],[64026,1,"\u7965"],[64027,1,"\u798F"],[64028,1,"\u9756"],[64029,1,"\u7CBE"],[64030,1,"\u7FBD"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8AF8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90FD"],[[64039,64041],2],[64042,1,"\u98EF"],[64043,1,"\u98FC"],[64044,1,"\u9928"],[64045,1,"\u9DB4"],[64046,1,"\u90DE"],[64047,1,"\u96B7"],[64048,1,"\u4FAE"],[64049,1,"\u50E7"],[64050,1,"\u514D"],[64051,1,"\u52C9"],[64052,1,"\u52E4"],[64053,1,"\u5351"],[64054,1,"\u559D"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58A8"],[64059,1,"\u5C64"],[64060,1,"\u5C6E"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618E"],[64064,1,"\u61F2"],[64065,1,"\u654F"],[64066,1,"\u65E2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6D77"],[64070,1,"\u6E1A"],[64071,1,"\u6F22"],[64072,1,"\u716E"],[64073,1,"\u722B"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793E"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795D"],[64082,1,"\u798D"],[64083,1,"\u798E"],[64084,1,"\u7A40"],[64085,1,"\u7A81"],[64086,1,"\u7BC0"],[64087,1,"\u7DF4"],[64088,1,"\u7E09"],[64089,1,"\u7E41"],[64090,1,"\u7F72"],[64091,1,"\u8005"],[64092,1,"\u81ED"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8B01"],[64099,1,"\u8B39"],[64100,1,"\u8CD3"],[64101,1,"\u8D08"],[64102,1,"\u8FB6"],[64103,1,"\u9038"],[64104,1,"\u96E3"],[64105,1,"\u97FF"],[64106,1,"\u983B"],[64107,1,"\u6075"],[64108,1,"\uD850\uDEEE"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4E26"],[64113,1,"\u51B5"],[64114,1,"\u5168"],[64115,1,"\u4F80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52C7"],[64119,1,"\u52FA"],[64120,1,"\u559D"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55E2"],[64124,1,"\u585A"],[64125,1,"\u58B3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5A62"],[64129,1,"\u5B28"],[64130,1,"\u5ED2"],[64131,1,"\u5ED9"],[64132,1,"\u5F69"],[64133,1,"\u5FAD"],[64134,1,"\u60D8"],[64135,1,"\u614E"],[64136,1,"\u6108"],[64137,1,"\u618E"],[64138,1,"\u6160"],[64139,1,"\u61F2"],[64140,1,"\u6234"],[64141,1,"\u63C4"],[64142,1,"\u641C"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671B"],[64148,1,"\u6756"],[64149,1,"\u6B79"],[64150,1,"\u6BBA"],[64151,1,"\u6D41"],[64152,1,"\u6EDB"],[64153,1,"\u6ECB"],[64154,1,"\u6F22"],[64155,1,"\u701E"],[64156,1,"\u716E"],[64157,1,"\u77A7"],[64158,1,"\u7235"],[64159,1,"\u72AF"],[64160,1,"\u732A"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753B"],[64164,1,"\u761D"],[64165,1,"\u761F"],[64166,1,"\u76CA"],[64167,1,"\u76DB"],[64168,1,"\u76F4"],[64169,1,"\u774A"],[64170,1,"\u7740"],[64171,1,"\u78CC"],[64172,1,"\u7AB1"],[64173,1,"\u7BC0"],[64174,1,"\u7C7B"],[64175,1,"\u7D5B"],[64176,1,"\u7DF4"],[64177,1,"\u7F3E"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83EF"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8ABF"],[64186,1,"\u8AF8"],[64187,1,"\u8ACB"],[64188,1,"\u8B01"],[64189,1,"\u8AFE"],[64190,1,"\u8AED"],[64191,1,"\u8B39"],[64192,1,"\u8B8A"],[64193,1,"\u8D08"],[64194,1,"\u8F38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967C"],[64199,1,"\u96E3"],[64200,1,"\u9756"],[64201,1,"\u97DB"],[64202,1,"\u97FF"],[64203,1,"\u980B"],[64204,1,"\u983B"],[64205,1,"\u9B12"],[64206,1,"\u9F9C"],[64207,1,"\uD84A\uDC4A"],[64208,1,"\uD84A\uDC44"],[64209,1,"\uD84C\uDFD5"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\uD854\uDE49"],[64214,1,"\uD857\uDCD0"],[64215,1,"\uD85F\uDED3"],[64216,1,"\u9F43"],[64217,1,"\u9F8E"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056B"],[64278,1,"\u057E\u0576"],[64279,1,"\u0574\u056D"],[[64280,64284],3],[64285,1,"\u05D9\u05B4"],[64286,2],[64287,1,"\u05F2\u05B7"],[64288,1,"\u05E2"],[64289,1,"\u05D0"],[64290,1,"\u05D3"],[64291,1,"\u05D4"],[64292,1,"\u05DB"],[64293,1,"\u05DC"],[64294,1,"\u05DD"],[64295,1,"\u05E8"],[64296,1,"\u05EA"],[64297,5,"+"],[64298,1,"\u05E9\u05C1"],[64299,1,"\u05E9\u05C2"],[64300,1,"\u05E9\u05BC\u05C1"],[64301,1,"\u05E9\u05BC\u05C2"],[64302,1,"\u05D0\u05B7"],[64303,1,"\u05D0\u05B8"],[64304,1,"\u05D0\u05BC"],[64305,1,"\u05D1\u05BC"],[64306,1,"\u05D2\u05BC"],[64307,1,"\u05D3\u05BC"],[64308,1,"\u05D4\u05BC"],[64309,1,"\u05D5\u05BC"],[64310,1,"\u05D6\u05BC"],[64311,3],[64312,1,"\u05D8\u05BC"],[64313,1,"\u05D9\u05BC"],[64314,1,"\u05DA\u05BC"],[64315,1,"\u05DB\u05BC"],[64316,1,"\u05DC\u05BC"],[64317,3],[64318,1,"\u05DE\u05BC"],[64319,3],[64320,1,"\u05E0\u05BC"],[64321,1,"\u05E1\u05BC"],[64322,3],[64323,1,"\u05E3\u05BC"],[64324,1,"\u05E4\u05BC"],[64325,3],[64326,1,"\u05E6\u05BC"],[64327,1,"\u05E7\u05BC"],[64328,1,"\u05E8\u05BC"],[64329,1,"\u05E9\u05BC"],[64330,1,"\u05EA\u05BC"],[64331,1,"\u05D5\u05B9"],[64332,1,"\u05D1\u05BF"],[64333,1,"\u05DB\u05BF"],[64334,1,"\u05E4\u05BF"],[64335,1,"\u05D0\u05DC"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067B"],[[64342,64345],1,"\u067E"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067A"],[[64354,64357],1,"\u067F"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06A4"],[[64366,64369],1,"\u06A6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068D"],[[64388,64389],1,"\u068C"],[[64390,64391],1,"\u068E"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06A9"],[[64402,64405],1,"\u06AF"],[[64406,64409],1,"\u06B3"],[[64410,64413],1,"\u06B1"],[[64414,64415],1,"\u06BA"],[[64416,64419],1,"\u06BB"],[[64420,64421],1,"\u06C0"],[[64422,64425],1,"\u06C1"],[[64426,64429],1,"\u06BE"],[[64430,64431],1,"\u06D2"],[[64432,64433],1,"\u06D3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06AD"],[[64471,64472],1,"\u06C7"],[[64473,64474],1,"\u06C6"],[[64475,64476],1,"\u06C8"],[64477,1,"\u06C7\u0674"],[[64478,64479],1,"\u06CB"],[[64480,64481],1,"\u06C5"],[[64482,64483],1,"\u06C9"],[[64484,64487],1,"\u06D0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06D5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06C7"],[[64498,64499],1,"\u0626\u06C6"],[[64500,64501],1,"\u0626\u06C8"],[[64502,64504],1,"\u0626\u06D0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06CC"],[64512,1,"\u0626\u062C"],[64513,1,"\u0626\u062D"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064A"],[64517,1,"\u0628\u062C"],[64518,1,"\u0628\u062D"],[64519,1,"\u0628\u062E"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064A"],[64523,1,"\u062A\u062C"],[64524,1,"\u062A\u062D"],[64525,1,"\u062A\u062E"],[64526,1,"\u062A\u0645"],[64527,1,"\u062A\u0649"],[64528,1,"\u062A\u064A"],[64529,1,"\u062B\u062C"],[64530,1,"\u062B\u0645"],[64531,1,"\u062B\u0649"],[64532,1,"\u062B\u064A"],[64533,1,"\u062C\u062D"],[64534,1,"\u062C\u0645"],[64535,1,"\u062D\u062C"],[64536,1,"\u062D\u0645"],[64537,1,"\u062E\u062C"],[64538,1,"\u062E\u062D"],[64539,1,"\u062E\u0645"],[64540,1,"\u0633\u062C"],[64541,1,"\u0633\u062D"],[64542,1,"\u0633\u062E"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062D"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062C"],[64547,1,"\u0636\u062D"],[64548,1,"\u0636\u062E"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062D"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062C"],[64554,1,"\u0639\u0645"],[64555,1,"\u063A\u062C"],[64556,1,"\u063A\u0645"],[64557,1,"\u0641\u062C"],[64558,1,"\u0641\u062D"],[64559,1,"\u0641\u062E"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064A"],[64563,1,"\u0642\u062D"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064A"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062C"],[64569,1,"\u0643\u062D"],[64570,1,"\u0643\u062E"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064A"],[64575,1,"\u0644\u062C"],[64576,1,"\u0644\u062D"],[64577,1,"\u0644\u062E"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064A"],[64581,1,"\u0645\u062C"],[64582,1,"\u0645\u062D"],[64583,1,"\u0645\u062E"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064A"],[64587,1,"\u0646\u062C"],[64588,1,"\u0646\u062D"],[64589,1,"\u0646\u062E"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064A"],[64593,1,"\u0647\u062C"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064A"],[64597,1,"\u064A\u062C"],[64598,1,"\u064A\u062D"],[64599,1,"\u064A\u062E"],[64600,1,"\u064A\u0645"],[64601,1,"\u064A\u0649"],[64602,1,"\u064A\u064A"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064C\u0651"],[64607,5," \u064D\u0651"],[64608,5," \u064E\u0651"],[64609,5," \u064F\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064A"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064A"],[64624,1,"\u062A\u0631"],[64625,1,"\u062A\u0632"],[64626,1,"\u062A\u0645"],[64627,1,"\u062A\u0646"],[64628,1,"\u062A\u0649"],[64629,1,"\u062A\u064A"],[64630,1,"\u062B\u0631"],[64631,1,"\u062B\u0632"],[64632,1,"\u062B\u0645"],[64633,1,"\u062B\u0646"],[64634,1,"\u062B\u0649"],[64635,1,"\u062B\u064A"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064A"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064A"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064A"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064A"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064A"],[64656,1,"\u0649\u0670"],[64657,1,"\u064A\u0631"],[64658,1,"\u064A\u0632"],[64659,1,"\u064A\u0645"],[64660,1,"\u064A\u0646"],[64661,1,"\u064A\u0649"],[64662,1,"\u064A\u064A"],[64663,1,"\u0626\u062C"],[64664,1,"\u0626\u062D"],[64665,1,"\u0626\u062E"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062C"],[64669,1,"\u0628\u062D"],[64670,1,"\u0628\u062E"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062A\u062C"],[64674,1,"\u062A\u062D"],[64675,1,"\u062A\u062E"],[64676,1,"\u062A\u0645"],[64677,1,"\u062A\u0647"],[64678,1,"\u062B\u0645"],[64679,1,"\u062C\u062D"],[64680,1,"\u062C\u0645"],[64681,1,"\u062D\u062C"],[64682,1,"\u062D\u0645"],[64683,1,"\u062E\u062C"],[64684,1,"\u062E\u0645"],[64685,1,"\u0633\u062C"],[64686,1,"\u0633\u062D"],[64687,1,"\u0633\u062E"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062D"],[64690,1,"\u0635\u062E"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062C"],[64693,1,"\u0636\u062D"],[64694,1,"\u0636\u062E"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062D"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062C"],[64699,1,"\u0639\u0645"],[64700,1,"\u063A\u062C"],[64701,1,"\u063A\u0645"],[64702,1,"\u0641\u062C"],[64703,1,"\u0641\u062D"],[64704,1,"\u0641\u062E"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062D"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062C"],[64709,1,"\u0643\u062D"],[64710,1,"\u0643\u062E"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062C"],[64714,1,"\u0644\u062D"],[64715,1,"\u0644\u062E"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062C"],[64719,1,"\u0645\u062D"],[64720,1,"\u0645\u062E"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062C"],[64723,1,"\u0646\u062D"],[64724,1,"\u0646\u062E"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062C"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064A\u062C"],[64731,1,"\u064A\u062D"],[64732,1,"\u064A\u062E"],[64733,1,"\u064A\u0645"],[64734,1,"\u064A\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062A\u0645"],[64740,1,"\u062A\u0647"],[64741,1,"\u062B\u0645"],[64742,1,"\u062B\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064A\u0645"],[64753,1,"\u064A\u0647"],[64754,1,"\u0640\u064E\u0651"],[64755,1,"\u0640\u064F\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064A"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064A"],[64761,1,"\u063A\u0649"],[64762,1,"\u063A\u064A"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064A"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064A"],[64767,1,"\u062D\u0649"],[64768,1,"\u062D\u064A"],[64769,1,"\u062C\u0649"],[64770,1,"\u062C\u064A"],[64771,1,"\u062E\u0649"],[64772,1,"\u062E\u064A"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064A"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064A"],[64777,1,"\u0634\u062C"],[64778,1,"\u0634\u062D"],[64779,1,"\u0634\u062E"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064A"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064A"],[64789,1,"\u063A\u0649"],[64790,1,"\u063A\u064A"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064A"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064A"],[64795,1,"\u062D\u0649"],[64796,1,"\u062D\u064A"],[64797,1,"\u062C\u0649"],[64798,1,"\u062C\u064A"],[64799,1,"\u062E\u0649"],[64800,1,"\u062E\u064A"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064A"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064A"],[64805,1,"\u0634\u062C"],[64806,1,"\u0634\u062D"],[64807,1,"\u0634\u062E"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062C"],[64814,1,"\u0634\u062D"],[64815,1,"\u0634\u062E"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062C"],[64821,1,"\u0633\u062D"],[64822,1,"\u0633\u062E"],[64823,1,"\u0634\u062C"],[64824,1,"\u0634\u062D"],[64825,1,"\u0634\u062E"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064B"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062A\u062C\u0645"],[[64849,64850],1,"\u062A\u062D\u062C"],[64851,1,"\u062A\u062D\u0645"],[64852,1,"\u062A\u062E\u0645"],[64853,1,"\u062A\u0645\u062C"],[64854,1,"\u062A\u0645\u062D"],[64855,1,"\u062A\u0645\u062E"],[[64856,64857],1,"\u062C\u0645\u062D"],[64858,1,"\u062D\u0645\u064A"],[64859,1,"\u062D\u0645\u0649"],[64860,1,"\u0633\u062D\u062C"],[64861,1,"\u0633\u062C\u062D"],[64862,1,"\u0633\u062C\u0649"],[[64863,64864],1,"\u0633\u0645\u062D"],[64865,1,"\u0633\u0645\u062C"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062D\u062D"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062D\u0645"],[64873,1,"\u0634\u062C\u064A"],[[64874,64875],1,"\u0634\u0645\u062E"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062D\u0649"],[[64879,64880],1,"\u0636\u062E\u0645"],[[64881,64882],1,"\u0637\u0645\u062D"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064A"],[64885,1,"\u0639\u062C\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063A\u0645\u0645"],[64890,1,"\u063A\u0645\u064A"],[64891,1,"\u063A\u0645\u0649"],[[64892,64893],1,"\u0641\u062E\u0645"],[64894,1,"\u0642\u0645\u062D"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062D\u0645"],[64897,1,"\u0644\u062D\u064A"],[64898,1,"\u0644\u062D\u0649"],[[64899,64900],1,"\u0644\u062C\u062C"],[[64901,64902],1,"\u0644\u062E\u0645"],[[64903,64904],1,"\u0644\u0645\u062D"],[64905,1,"\u0645\u062D\u062C"],[64906,1,"\u0645\u062D\u0645"],[64907,1,"\u0645\u062D\u064A"],[64908,1,"\u0645\u062C\u062D"],[64909,1,"\u0645\u062C\u0645"],[64910,1,"\u0645\u062E\u062C"],[64911,1,"\u0645\u062E\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062C\u062E"],[64915,1,"\u0647\u0645\u062C"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062D\u0645"],[64918,1,"\u0646\u062D\u0649"],[[64919,64920],1,"\u0646\u062C\u0645"],[64921,1,"\u0646\u062C\u0649"],[64922,1,"\u0646\u0645\u064A"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064A\u0645\u0645"],[64926,1,"\u0628\u062E\u064A"],[64927,1,"\u062A\u062C\u064A"],[64928,1,"\u062A\u062C\u0649"],[64929,1,"\u062A\u062E\u064A"],[64930,1,"\u062A\u062E\u0649"],[64931,1,"\u062A\u0645\u064A"],[64932,1,"\u062A\u0645\u0649"],[64933,1,"\u062C\u0645\u064A"],[64934,1,"\u062C\u062D\u0649"],[64935,1,"\u062C\u0645\u0649"],[64936,1,"\u0633\u062E\u0649"],[64937,1,"\u0635\u062D\u064A"],[64938,1,"\u0634\u062D\u064A"],[64939,1,"\u0636\u062D\u064A"],[64940,1,"\u0644\u062C\u064A"],[64941,1,"\u0644\u0645\u064A"],[64942,1,"\u064A\u062D\u064A"],[64943,1,"\u064A\u062C\u064A"],[64944,1,"\u064A\u0645\u064A"],[64945,1,"\u0645\u0645\u064A"],[64946,1,"\u0642\u0645\u064A"],[64947,1,"\u0646\u062D\u064A"],[64948,1,"\u0642\u0645\u062D"],[64949,1,"\u0644\u062D\u0645"],[64950,1,"\u0639\u0645\u064A"],[64951,1,"\u0643\u0645\u064A"],[64952,1,"\u0646\u062C\u062D"],[64953,1,"\u0645\u062E\u064A"],[64954,1,"\u0644\u062C\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062C\u0645"],[64957,1,"\u0646\u062C\u062D"],[64958,1,"\u062C\u062D\u064A"],[64959,1,"\u062D\u062C\u064A"],[64960,1,"\u0645\u062C\u064A"],[64961,1,"\u0641\u0645\u064A"],[64962,1,"\u0628\u062D\u064A"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062C\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062E\u064A"],[64967,1,"\u0646\u062C\u064A"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06D2"],[65009,1,"\u0642\u0644\u06D2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062D\u0645\u062F"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064A\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300A"],[65086,1,"\u300B"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300C"],[65090,1,"\u300D"],[65091,1,"\u300E"],[65092,1,"\u300F"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," \u064B"],[65137,1,"\u0640\u064B"],[65138,5," \u064C"],[65139,2],[65140,5," \u064D"],[65141,3],[65142,5," \u064E"],[65143,1,"\u0640\u064E"],[65144,5," \u064F"],[65145,1,"\u0640\u064F"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062A"],[[65177,65180],1,"\u062B"],[[65181,65184],1,"\u062C"],[[65185,65188],1,"\u062D"],[[65189,65192],1,"\u062E"],[[65193,65194],1,"\u062F"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063A"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064A"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300C"],[65379,1,"\u300D"],[65380,1,"\u3001"],[65381,1,"\u30FB"],[65382,1,"\u30F2"],[65383,1,"\u30A1"],[65384,1,"\u30A3"],[65385,1,"\u30A5"],[65386,1,"\u30A7"],[65387,1,"\u30A9"],[65388,1,"\u30E3"],[65389,1,"\u30E5"],[65390,1,"\u30E7"],[65391,1,"\u30C3"],[65392,1,"\u30FC"],[65393,1,"\u30A2"],[65394,1,"\u30A4"],[65395,1,"\u30A6"],[65396,1,"\u30A8"],[65397,1,"\u30AA"],[65398,1,"\u30AB"],[65399,1,"\u30AD"],[65400,1,"\u30AF"],[65401,1,"\u30B1"],[65402,1,"\u30B3"],[65403,1,"\u30B5"],[65404,1,"\u30B7"],[65405,1,"\u30B9"],[65406,1,"\u30BB"],[65407,1,"\u30BD"],[65408,1,"\u30BF"],[65409,1,"\u30C1"],[65410,1,"\u30C4"],[65411,1,"\u30C6"],[65412,1,"\u30C8"],[65413,1,"\u30CA"],[65414,1,"\u30CB"],[65415,1,"\u30CC"],[65416,1,"\u30CD"],[65417,1,"\u30CE"],[65418,1,"\u30CF"],[65419,1,"\u30D2"],[65420,1,"\u30D5"],[65421,1,"\u30D8"],[65422,1,"\u30DB"],[65423,1,"\u30DE"],[65424,1,"\u30DF"],[65425,1,"\u30E0"],[65426,1,"\u30E1"],[65427,1,"\u30E2"],[65428,1,"\u30E4"],[65429,1,"\u30E6"],[65430,1,"\u30E8"],[65431,1,"\u30E9"],[65432,1,"\u30EA"],[65433,1,"\u30EB"],[65434,1,"\u30EC"],[65435,1,"\u30ED"],[65436,1,"\u30EF"],[65437,1,"\u30F3"],[65438,1,"\u3099"],[65439,1,"\u309A"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11AA"],[65444,1,"\u1102"],[65445,1,"\u11AC"],[65446,1,"\u11AD"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11B0"],[65451,1,"\u11B1"],[65452,1,"\u11B2"],[65453,1,"\u11B3"],[65454,1,"\u11B4"],[65455,1,"\u11B5"],[65456,1,"\u111A"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110A"],[65463,1,"\u110B"],[65464,1,"\u110C"],[65465,1,"\u110D"],[65466,1,"\u110E"],[65467,1,"\u110F"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116A"],[65486,1,"\u116B"],[65487,1,"\u116C"],[[65488,65489],3],[65490,1,"\u116D"],[65491,1,"\u116E"],[65492,1,"\u116F"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xA2"],[65505,1,"\xA3"],[65506,1,"\xAC"],[65507,5," \u0304"],[65508,1,"\xA6"],[65509,1,"\xA5"],[65510,1,"\u20A9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25A0"],[65518,1,"\u25CB"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"\uD801\uDC28"],[66561,1,"\uD801\uDC29"],[66562,1,"\uD801\uDC2A"],[66563,1,"\uD801\uDC2B"],[66564,1,"\uD801\uDC2C"],[66565,1,"\uD801\uDC2D"],[66566,1,"\uD801\uDC2E"],[66567,1,"\uD801\uDC2F"],[66568,1,"\uD801\uDC30"],[66569,1,"\uD801\uDC31"],[66570,1,"\uD801\uDC32"],[66571,1,"\uD801\uDC33"],[66572,1,"\uD801\uDC34"],[66573,1,"\uD801\uDC35"],[66574,1,"\uD801\uDC36"],[66575,1,"\uD801\uDC37"],[66576,1,"\uD801\uDC38"],[66577,1,"\uD801\uDC39"],[66578,1,"\uD801\uDC3A"],[66579,1,"\uD801\uDC3B"],[66580,1,"\uD801\uDC3C"],[66581,1,"\uD801\uDC3D"],[66582,1,"\uD801\uDC3E"],[66583,1,"\uD801\uDC3F"],[66584,1,"\uD801\uDC40"],[66585,1,"\uD801\uDC41"],[66586,1,"\uD801\uDC42"],[66587,1,"\uD801\uDC43"],[66588,1,"\uD801\uDC44"],[66589,1,"\uD801\uDC45"],[66590,1,"\uD801\uDC46"],[66591,1,"\uD801\uDC47"],[66592,1,"\uD801\uDC48"],[66593,1,"\uD801\uDC49"],[66594,1,"\uD801\uDC4A"],[66595,1,"\uD801\uDC4B"],[66596,1,"\uD801\uDC4C"],[66597,1,"\uD801\uDC4D"],[66598,1,"\uD801\uDC4E"],[66599,1,"\uD801\uDC4F"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\uD801\uDCD8"],[66737,1,"\uD801\uDCD9"],[66738,1,"\uD801\uDCDA"],[66739,1,"\uD801\uDCDB"],[66740,1,"\uD801\uDCDC"],[66741,1,"\uD801\uDCDD"],[66742,1,"\uD801\uDCDE"],[66743,1,"\uD801\uDCDF"],[66744,1,"\uD801\uDCE0"],[66745,1,"\uD801\uDCE1"],[66746,1,"\uD801\uDCE2"],[66747,1,"\uD801\uDCE3"],[66748,1,"\uD801\uDCE4"],[66749,1,"\uD801\uDCE5"],[66750,1,"\uD801\uDCE6"],[66751,1,"\uD801\uDCE7"],[66752,1,"\uD801\uDCE8"],[66753,1,"\uD801\uDCE9"],[66754,1,"\uD801\uDCEA"],[66755,1,"\uD801\uDCEB"],[66756,1,"\uD801\uDCEC"],[66757,1,"\uD801\uDCED"],[66758,1,"\uD801\uDCEE"],[66759,1,"\uD801\uDCEF"],[66760,1,"\uD801\uDCF0"],[66761,1,"\uD801\uDCF1"],[66762,1,"\uD801\uDCF2"],[66763,1,"\uD801\uDCF3"],[66764,1,"\uD801\uDCF4"],[66765,1,"\uD801\uDCF5"],[66766,1,"\uD801\uDCF6"],[66767,1,"\uD801\uDCF7"],[66768,1,"\uD801\uDCF8"],[66769,1,"\uD801\uDCF9"],[66770,1,"\uD801\uDCFA"],[66771,1,"\uD801\uDCFB"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"\uD801\uDD97"],[66929,1,"\uD801\uDD98"],[66930,1,"\uD801\uDD99"],[66931,1,"\uD801\uDD9A"],[66932,1,"\uD801\uDD9B"],[66933,1,"\uD801\uDD9C"],[66934,1,"\uD801\uDD9D"],[66935,1,"\uD801\uDD9E"],[66936,1,"\uD801\uDD9F"],[66937,1,"\uD801\uDDA0"],[66938,1,"\uD801\uDDA1"],[66939,3],[66940,1,"\uD801\uDDA3"],[66941,1,"\uD801\uDDA4"],[66942,1,"\uD801\uDDA5"],[66943,1,"\uD801\uDDA6"],[66944,1,"\uD801\uDDA7"],[66945,1,"\uD801\uDDA8"],[66946,1,"\uD801\uDDA9"],[66947,1,"\uD801\uDDAA"],[66948,1,"\uD801\uDDAB"],[66949,1,"\uD801\uDDAC"],[66950,1,"\uD801\uDDAD"],[66951,1,"\uD801\uDDAE"],[66952,1,"\uD801\uDDAF"],[66953,1,"\uD801\uDDB0"],[66954,1,"\uD801\uDDB1"],[66955,3],[66956,1,"\uD801\uDDB3"],[66957,1,"\uD801\uDDB4"],[66958,1,"\uD801\uDDB5"],[66959,1,"\uD801\uDDB6"],[66960,1,"\uD801\uDDB7"],[66961,1,"\uD801\uDDB8"],[66962,1,"\uD801\uDDB9"],[66963,3],[66964,1,"\uD801\uDDBB"],[66965,1,"\uD801\uDDBC"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"\u02D0"],[67458,1,"\u02D1"],[67459,1,"\xE6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02A3"],[67464,1,"\uAB66"],[67465,1,"\u02A5"],[67466,1,"\u02A4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1D91"],[67470,1,"\u0258"],[67471,1,"\u025E"],[67472,1,"\u02A9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029B"],[67477,1,"\u0127"],[67478,1,"\u029C"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02AA"],[67482,1,"\u02AB"],[67483,1,"\u026C"],[67484,1,"\uD837\uDF04"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\uD837\uDF05"],[67488,1,"\u028E"],[67489,1,"\uD837\uDF06"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\uD837\uDF08"],[67496,1,"\u027D"],[67497,1,"\u027E"],[67498,1,"\u0280"],[67499,1,"\u02A8"],[67500,1,"\u02A6"],[67501,1,"\uAB67"],[67502,1,"\u02A7"],[67503,1,"\u0288"],[67504,1,"\u2C71"],[67505,3],[67506,1,"\u028F"],[67507,1,"\u02A1"],[67508,1,"\u02A2"],[67509,1,"\u0298"],[67510,1,"\u01C0"],[67511,1,"\u01C1"],[67512,1,"\u01C2"],[67513,1,"\uD837\uDF0A"],[67514,1,"\uD837\uDF1E"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"\uD803\uDCC0"],[68737,1,"\uD803\uDCC1"],[68738,1,"\uD803\uDCC2"],[68739,1,"\uD803\uDCC3"],[68740,1,"\uD803\uDCC4"],[68741,1,"\uD803\uDCC5"],[68742,1,"\uD803\uDCC6"],[68743,1,"\uD803\uDCC7"],[68744,1,"\uD803\uDCC8"],[68745,1,"\uD803\uDCC9"],[68746,1,"\uD803\uDCCA"],[68747,1,"\uD803\uDCCB"],[68748,1,"\uD803\uDCCC"],[68749,1,"\uD803\uDCCD"],[68750,1,"\uD803\uDCCE"],[68751,1,"\uD803\uDCCF"],[68752,1,"\uD803\uDCD0"],[68753,1,"\uD803\uDCD1"],[68754,1,"\uD803\uDCD2"],[68755,1,"\uD803\uDCD3"],[68756,1,"\uD803\uDCD4"],[68757,1,"\uD803\uDCD5"],[68758,1,"\uD803\uDCD6"],[68759,1,"\uD803\uDCD7"],[68760,1,"\uD803\uDCD8"],[68761,1,"\uD803\uDCD9"],[68762,1,"\uD803\uDCDA"],[68763,1,"\uD803\uDCDB"],[68764,1,"\uD803\uDCDC"],[68765,1,"\uD803\uDCDD"],[68766,1,"\uD803\uDCDE"],[68767,1,"\uD803\uDCDF"],[68768,1,"\uD803\uDCE0"],[68769,1,"\uD803\uDCE1"],[68770,1,"\uD803\uDCE2"],[68771,1,"\uD803\uDCE3"],[68772,1,"\uD803\uDCE4"],[68773,1,"\uD803\uDCE5"],[68774,1,"\uD803\uDCE6"],[68775,1,"\uD803\uDCE7"],[68776,1,"\uD803\uDCE8"],[68777,1,"\uD803\uDCE9"],[68778,1,"\uD803\uDCEA"],[68779,1,"\uD803\uDCEB"],[68780,1,"\uD803\uDCEC"],[68781,1,"\uD803\uDCED"],[68782,1,"\uD803\uDCEE"],[68783,1,"\uD803\uDCEF"],[68784,1,"\uD803\uDCF0"],[68785,1,"\uD803\uDCF1"],[68786,1,"\uD803\uDCF2"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69375],3],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"\uD806\uDCC0"],[71841,1,"\uD806\uDCC1"],[71842,1,"\uD806\uDCC2"],[71843,1,"\uD806\uDCC3"],[71844,1,"\uD806\uDCC4"],[71845,1,"\uD806\uDCC5"],[71846,1,"\uD806\uDCC6"],[71847,1,"\uD806\uDCC7"],[71848,1,"\uD806\uDCC8"],[71849,1,"\uD806\uDCC9"],[71850,1,"\uD806\uDCCA"],[71851,1,"\uD806\uDCCB"],[71852,1,"\uD806\uDCCC"],[71853,1,"\uD806\uDCCD"],[71854,1,"\uD806\uDCCE"],[71855,1,"\uD806\uDCCF"],[71856,1,"\uD806\uDCD0"],[71857,1,"\uD806\uDCD1"],[71858,1,"\uD806\uDCD2"],[71859,1,"\uD806\uDCD3"],[71860,1,"\uD806\uDCD4"],[71861,1,"\uD806\uDCD5"],[71862,1,"\uD806\uDCD6"],[71863,1,"\uD806\uDCD7"],[71864,1,"\uD806\uDCD8"],[71865,1,"\uD806\uDCD9"],[71866,1,"\uD806\uDCDA"],[71867,1,"\uD806\uDCDB"],[71868,1,"\uD806\uDCDC"],[71869,1,"\uD806\uDCDD"],[71870,1,"\uD806\uDCDE"],[71871,1,"\uD806\uDCDF"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,3],[[78896,78904],3],[[78905,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"\uD81B\uDE60"],[93761,1,"\uD81B\uDE61"],[93762,1,"\uD81B\uDE62"],[93763,1,"\uD81B\uDE63"],[93764,1,"\uD81B\uDE64"],[93765,1,"\uD81B\uDE65"],[93766,1,"\uD81B\uDE66"],[93767,1,"\uD81B\uDE67"],[93768,1,"\uD81B\uDE68"],[93769,1,"\uD81B\uDE69"],[93770,1,"\uD81B\uDE6A"],[93771,1,"\uD81B\uDE6B"],[93772,1,"\uD81B\uDE6C"],[93773,1,"\uD81B\uDE6D"],[93774,1,"\uD81B\uDE6E"],[93775,1,"\uD81B\uDE6F"],[93776,1,"\uD81B\uDE70"],[93777,1,"\uD81B\uDE71"],[93778,1,"\uD81B\uDE72"],[93779,1,"\uD81B\uDE73"],[93780,1,"\uD81B\uDE74"],[93781,1,"\uD81B\uDE75"],[93782,1,"\uD81B\uDE76"],[93783,1,"\uD81B\uDE77"],[93784,1,"\uD81B\uDE78"],[93785,1,"\uD81B\uDE79"],[93786,1,"\uD81B\uDE7A"],[93787,1,"\uD81B\uDE7B"],[93788,1,"\uD81B\uDE7C"],[93789,1,"\uD81B\uDE7D"],[93790,1,"\uD81B\uDE7E"],[93791,1,"\uD81B\uDE7F"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110927],3],[[110928,110930],2],[[110931,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"\uD834\uDD57\uD834\uDD65"],[119135,1,"\uD834\uDD58\uD834\uDD65"],[119136,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6E"],[119137,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6F"],[119138,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD70"],[119139,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD71"],[119140,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\uD834\uDDB9\uD834\uDD65"],[119228,1,"\uD834\uDDBA\uD834\uDD65"],[119229,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6E"],[119230,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6E"],[119231,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6F"],[119232,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6F"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03B1"],[120489,1,"\u03B2"],[120490,1,"\u03B3"],[120491,1,"\u03B4"],[120492,1,"\u03B5"],[120493,1,"\u03B6"],[120494,1,"\u03B7"],[120495,1,"\u03B8"],[120496,1,"\u03B9"],[120497,1,"\u03BA"],[120498,1,"\u03BB"],[120499,1,"\u03BC"],[120500,1,"\u03BD"],[120501,1,"\u03BE"],[120502,1,"\u03BF"],[120503,1,"\u03C0"],[120504,1,"\u03C1"],[120505,1,"\u03B8"],[120506,1,"\u03C3"],[120507,1,"\u03C4"],[120508,1,"\u03C5"],[120509,1,"\u03C6"],[120510,1,"\u03C7"],[120511,1,"\u03C8"],[120512,1,"\u03C9"],[120513,1,"\u2207"],[120514,1,"\u03B1"],[120515,1,"\u03B2"],[120516,1,"\u03B3"],[120517,1,"\u03B4"],[120518,1,"\u03B5"],[120519,1,"\u03B6"],[120520,1,"\u03B7"],[120521,1,"\u03B8"],[120522,1,"\u03B9"],[120523,1,"\u03BA"],[120524,1,"\u03BB"],[120525,1,"\u03BC"],[120526,1,"\u03BD"],[120527,1,"\u03BE"],[120528,1,"\u03BF"],[120529,1,"\u03C0"],[120530,1,"\u03C1"],[[120531,120532],1,"\u03C3"],[120533,1,"\u03C4"],[120534,1,"\u03C5"],[120535,1,"\u03C6"],[120536,1,"\u03C7"],[120537,1,"\u03C8"],[120538,1,"\u03C9"],[120539,1,"\u2202"],[120540,1,"\u03B5"],[120541,1,"\u03B8"],[120542,1,"\u03BA"],[120543,1,"\u03C6"],[120544,1,"\u03C1"],[120545,1,"\u03C0"],[120546,1,"\u03B1"],[120547,1,"\u03B2"],[120548,1,"\u03B3"],[120549,1,"\u03B4"],[120550,1,"\u03B5"],[120551,1,"\u03B6"],[120552,1,"\u03B7"],[120553,1,"\u03B8"],[120554,1,"\u03B9"],[120555,1,"\u03BA"],[120556,1,"\u03BB"],[120557,1,"\u03BC"],[120558,1,"\u03BD"],[120559,1,"\u03BE"],[120560,1,"\u03BF"],[120561,1,"\u03C0"],[120562,1,"\u03C1"],[120563,1,"\u03B8"],[120564,1,"\u03C3"],[120565,1,"\u03C4"],[120566,1,"\u03C5"],[120567,1,"\u03C6"],[120568,1,"\u03C7"],[120569,1,"\u03C8"],[120570,1,"\u03C9"],[120571,1,"\u2207"],[120572,1,"\u03B1"],[120573,1,"\u03B2"],[120574,1,"\u03B3"],[120575,1,"\u03B4"],[120576,1,"\u03B5"],[120577,1,"\u03B6"],[120578,1,"\u03B7"],[120579,1,"\u03B8"],[120580,1,"\u03B9"],[120581,1,"\u03BA"],[120582,1,"\u03BB"],[120583,1,"\u03BC"],[120584,1,"\u03BD"],[120585,1,"\u03BE"],[120586,1,"\u03BF"],[120587,1,"\u03C0"],[120588,1,"\u03C1"],[[120589,120590],1,"\u03C3"],[120591,1,"\u03C4"],[120592,1,"\u03C5"],[120593,1,"\u03C6"],[120594,1,"\u03C7"],[120595,1,"\u03C8"],[120596,1,"\u03C9"],[120597,1,"\u2202"],[120598,1,"\u03B5"],[120599,1,"\u03B8"],[120600,1,"\u03BA"],[120601,1,"\u03C6"],[120602,1,"\u03C1"],[120603,1,"\u03C0"],[120604,1,"\u03B1"],[120605,1,"\u03B2"],[120606,1,"\u03B3"],[120607,1,"\u03B4"],[120608,1,"\u03B5"],[120609,1,"\u03B6"],[120610,1,"\u03B7"],[120611,1,"\u03B8"],[120612,1,"\u03B9"],[120613,1,"\u03BA"],[120614,1,"\u03BB"],[120615,1,"\u03BC"],[120616,1,"\u03BD"],[120617,1,"\u03BE"],[120618,1,"\u03BF"],[120619,1,"\u03C0"],[120620,1,"\u03C1"],[120621,1,"\u03B8"],[120622,1,"\u03C3"],[120623,1,"\u03C4"],[120624,1,"\u03C5"],[120625,1,"\u03C6"],[120626,1,"\u03C7"],[120627,1,"\u03C8"],[120628,1,"\u03C9"],[120629,1,"\u2207"],[120630,1,"\u03B1"],[120631,1,"\u03B2"],[120632,1,"\u03B3"],[120633,1,"\u03B4"],[120634,1,"\u03B5"],[120635,1,"\u03B6"],[120636,1,"\u03B7"],[120637,1,"\u03B8"],[120638,1,"\u03B9"],[120639,1,"\u03BA"],[120640,1,"\u03BB"],[120641,1,"\u03BC"],[120642,1,"\u03BD"],[120643,1,"\u03BE"],[120644,1,"\u03BF"],[120645,1,"\u03C0"],[120646,1,"\u03C1"],[[120647,120648],1,"\u03C3"],[120649,1,"\u03C4"],[120650,1,"\u03C5"],[120651,1,"\u03C6"],[120652,1,"\u03C7"],[120653,1,"\u03C8"],[120654,1,"\u03C9"],[120655,1,"\u2202"],[120656,1,"\u03B5"],[120657,1,"\u03B8"],[120658,1,"\u03BA"],[120659,1,"\u03C6"],[120660,1,"\u03C1"],[120661,1,"\u03C0"],[120662,1,"\u03B1"],[120663,1,"\u03B2"],[120664,1,"\u03B3"],[120665,1,"\u03B4"],[120666,1,"\u03B5"],[120667,1,"\u03B6"],[120668,1,"\u03B7"],[120669,1,"\u03B8"],[120670,1,"\u03B9"],[120671,1,"\u03BA"],[120672,1,"\u03BB"],[120673,1,"\u03BC"],[120674,1,"\u03BD"],[120675,1,"\u03BE"],[120676,1,"\u03BF"],[120677,1,"\u03C0"],[120678,1,"\u03C1"],[120679,1,"\u03B8"],[120680,1,"\u03C3"],[120681,1,"\u03C4"],[120682,1,"\u03C5"],[120683,1,"\u03C6"],[120684,1,"\u03C7"],[120685,1,"\u03C8"],[120686,1,"\u03C9"],[120687,1,"\u2207"],[120688,1,"\u03B1"],[120689,1,"\u03B2"],[120690,1,"\u03B3"],[120691,1,"\u03B4"],[120692,1,"\u03B5"],[120693,1,"\u03B6"],[120694,1,"\u03B7"],[120695,1,"\u03B8"],[120696,1,"\u03B9"],[120697,1,"\u03BA"],[120698,1,"\u03BB"],[120699,1,"\u03BC"],[120700,1,"\u03BD"],[120701,1,"\u03BE"],[120702,1,"\u03BF"],[120703,1,"\u03C0"],[120704,1,"\u03C1"],[[120705,120706],1,"\u03C3"],[120707,1,"\u03C4"],[120708,1,"\u03C5"],[120709,1,"\u03C6"],[120710,1,"\u03C7"],[120711,1,"\u03C8"],[120712,1,"\u03C9"],[120713,1,"\u2202"],[120714,1,"\u03B5"],[120715,1,"\u03B8"],[120716,1,"\u03BA"],[120717,1,"\u03C6"],[120718,1,"\u03C1"],[120719,1,"\u03C0"],[120720,1,"\u03B1"],[120721,1,"\u03B2"],[120722,1,"\u03B3"],[120723,1,"\u03B4"],[120724,1,"\u03B5"],[120725,1,"\u03B6"],[120726,1,"\u03B7"],[120727,1,"\u03B8"],[120728,1,"\u03B9"],[120729,1,"\u03BA"],[120730,1,"\u03BB"],[120731,1,"\u03BC"],[120732,1,"\u03BD"],[120733,1,"\u03BE"],[120734,1,"\u03BF"],[120735,1,"\u03C0"],[120736,1,"\u03C1"],[120737,1,"\u03B8"],[120738,1,"\u03C3"],[120739,1,"\u03C4"],[120740,1,"\u03C5"],[120741,1,"\u03C6"],[120742,1,"\u03C7"],[120743,1,"\u03C8"],[120744,1,"\u03C9"],[120745,1,"\u2207"],[120746,1,"\u03B1"],[120747,1,"\u03B2"],[120748,1,"\u03B3"],[120749,1,"\u03B4"],[120750,1,"\u03B5"],[120751,1,"\u03B6"],[120752,1,"\u03B7"],[120753,1,"\u03B8"],[120754,1,"\u03B9"],[120755,1,"\u03BA"],[120756,1,"\u03BB"],[120757,1,"\u03BC"],[120758,1,"\u03BD"],[120759,1,"\u03BE"],[120760,1,"\u03BF"],[120761,1,"\u03C0"],[120762,1,"\u03C1"],[[120763,120764],1,"\u03C3"],[120765,1,"\u03C4"],[120766,1,"\u03C5"],[120767,1,"\u03C6"],[120768,1,"\u03C7"],[120769,1,"\u03C8"],[120770,1,"\u03C9"],[120771,1,"\u2202"],[120772,1,"\u03B5"],[120773,1,"\u03B8"],[120774,1,"\u03BA"],[120775,1,"\u03C6"],[120776,1,"\u03C1"],[120777,1,"\u03C0"],[[120778,120779],1,"\u03DD"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"\uD83A\uDD22"],[125185,1,"\uD83A\uDD23"],[125186,1,"\uD83A\uDD24"],[125187,1,"\uD83A\uDD25"],[125188,1,"\uD83A\uDD26"],[125189,1,"\uD83A\uDD27"],[125190,1,"\uD83A\uDD28"],[125191,1,"\uD83A\uDD29"],[125192,1,"\uD83A\uDD2A"],[125193,1,"\uD83A\uDD2B"],[125194,1,"\uD83A\uDD2C"],[125195,1,"\uD83A\uDD2D"],[125196,1,"\uD83A\uDD2E"],[125197,1,"\uD83A\uDD2F"],[125198,1,"\uD83A\uDD30"],[125199,1,"\uD83A\uDD31"],[125200,1,"\uD83A\uDD32"],[125201,1,"\uD83A\uDD33"],[125202,1,"\uD83A\uDD34"],[125203,1,"\uD83A\uDD35"],[125204,1,"\uD83A\uDD36"],[125205,1,"\uD83A\uDD37"],[125206,1,"\uD83A\uDD38"],[125207,1,"\uD83A\uDD39"],[125208,1,"\uD83A\uDD3A"],[125209,1,"\uD83A\uDD3B"],[125210,1,"\uD83A\uDD3C"],[125211,1,"\uD83A\uDD3D"],[125212,1,"\uD83A\uDD3E"],[125213,1,"\uD83A\uDD3F"],[125214,1,"\uD83A\uDD40"],[125215,1,"\uD83A\uDD41"],[125216,1,"\uD83A\uDD42"],[125217,1,"\uD83A\uDD43"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062C"],[126467,1,"\u062F"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062D"],[126472,1,"\u0637"],[126473,1,"\u064A"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062A"],[126486,1,"\u062B"],[126487,1,"\u062E"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063A"],[126492,1,"\u066E"],[126493,1,"\u06BA"],[126494,1,"\u06A1"],[126495,1,"\u066F"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062C"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062D"],[126504,3],[126505,1,"\u064A"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062A"],[126518,1,"\u062B"],[126519,1,"\u062E"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063A"],[[126524,126529],3],[126530,1,"\u062C"],[[126531,126534],3],[126535,1,"\u062D"],[126536,3],[126537,1,"\u064A"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062E"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063A"],[126556,3],[126557,1,"\u06BA"],[126558,3],[126559,1,"\u066F"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062C"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062D"],[126568,1,"\u0637"],[126569,1,"\u064A"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062A"],[126582,1,"\u062B"],[126583,1,"\u062E"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063A"],[126588,1,"\u066E"],[126589,3],[126590,1,"\u06A1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062C"],[126595,1,"\u062F"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062D"],[126600,1,"\u0637"],[126601,1,"\u064A"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062A"],[126614,1,"\u062B"],[126615,1,"\u062E"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063A"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062C"],[126627,1,"\u062F"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062D"],[126632,1,"\u0637"],[126633,1,"\u064A"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062A"],[126646,1,"\u062B"],[126647,1,"\u062E"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063A"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"\u3014s\u3015"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"\u307B\u304B"],[127489,1,"\u30B3\u30B3"],[127490,1,"\u30B5"],[[127491,127503],3],[127504,1,"\u624B"],[127505,1,"\u5B57"],[127506,1,"\u53CC"],[127507,1,"\u30C7"],[127508,1,"\u4E8C"],[127509,1,"\u591A"],[127510,1,"\u89E3"],[127511,1,"\u5929"],[127512,1,"\u4EA4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524D"],[127517,1,"\u5F8C"],[127518,1,"\u518D"],[127519,1,"\u65B0"],[127520,1,"\u521D"],[127521,1,"\u7D42"],[127522,1,"\u751F"],[127523,1,"\u8CA9"],[127524,1,"\u58F0"],[127525,1,"\u5439"],[127526,1,"\u6F14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4E00"],[127530,1,"\u4E09"],[127531,1,"\u904A"],[127532,1,"\u5DE6"],[127533,1,"\u4E2D"],[127534,1,"\u53F3"],[127535,1,"\u6307"],[127536,1,"\u8D70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7A7A"],[127540,1,"\u5408"],[127541,1,"\u6E80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55B6"],[127547,1,"\u914D"],[[127548,127551],3],[127552,1,"\u3014\u672C\u3015"],[127553,1,"\u3014\u4E09\u3015"],[127554,1,"\u3014\u4E8C\u3015"],[127555,1,"\u3014\u5B89\u3015"],[127556,1,"\u3014\u70B9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76D7\u3015"],[127559,1,"\u3014\u52DD\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5F97"],[127569,1,"\u53EF"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128732],3],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128895],3],[[128896,128980],2],[[128981,128984],2],[[128985,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],3],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],3],[[129712,129718],2],[[129719,129722],2],[[129723,129727],3],[[129728,129730],2],[[129731,129733],2],[[129734,129743],3],[[129744,129750],2],[[129751,129753],2],[[129754,129759],3],[[129760,129767],2],[[129768,129775],3],[[129776,129782],2],[[129783,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[[177977,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\uD840\uDD22"],[194564,1,"\u4F60"],[194565,1,"\u4FAE"],[194566,1,"\u4FBB"],[194567,1,"\u5002"],[194568,1,"\u507A"],[194569,1,"\u5099"],[194570,1,"\u50E7"],[194571,1,"\u50CF"],[194572,1,"\u349E"],[194573,1,"\uD841\uDE3A"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\uD841\uDD1C"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\uD841\uDD4B"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\uD864\uDDDF"],[194589,1,"\u51F5"],[194590,1,"\u5203"],[194591,1,"\u34DF"],[194592,1,"\u523B"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52C7"],[194598,1,"\u52C9"],[194599,1,"\u52E4"],[194600,1,"\u52FA"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535A"],[194607,1,"\u5373"],[194608,1,"\u537D"],[[194609,194611],1,"\u537F"],[194612,1,"\uD842\uDE2C"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\uD842\uDF63"],[194617,1,"\u53EB"],[194618,1,"\u53F1"],[194619,1,"\u5406"],[194620,1,"\u549E"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54A2"],[194625,1,"\u54F6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55AB"],[194633,1,"\u55B3"],[194634,1,"\u55C2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58EE"],[194642,1,"\u57CE"],[194643,1,"\u57F4"],[194644,1,"\u580D"],[194645,1,"\u578B"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58AC"],[194649,1,"\uD845\uDCE4"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\uD845\uDEA8"],[194657,1,"\uD845\uDEEA"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,3],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\uD846\uDDC8"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\uD846\uDF18"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,3],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\uD847\uDDE4"],[194684,1,"\u5D43"],[194685,1,"\uD847\uDDE6"],[194686,1,"\u5D6E"],[194687,1,"\u5D6B"],[194688,1,"\u5D7C"],[194689,1,"\u5DE1"],[194690,1,"\u5DE2"],[194691,1,"\u382F"],[194692,1,"\u5DFD"],[194693,1,"\u5E28"],[194694,1,"\u5E3D"],[194695,1,"\u5E69"],[194696,1,"\u3862"],[194697,1,"\uD848\uDD83"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\uD868\uDF92"],[194704,1,"\u5EFE"],[[194705,194706],1,"\uD848\uDF31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\uD84C\uDEB8"],[194712,1,"\uD858\uDDDA"],[194713,1,"\u5F62"],[194714,1,"\u5F6B"],[194715,1,"\u38E3"],[194716,1,"\u5F9A"],[194717,1,"\u5FCD"],[194718,1,"\u5FD7"],[194719,1,"\u5FF9"],[194720,1,"\u6081"],[194721,1,"\u393A"],[194722,1,"\u391C"],[194723,1,"\u6094"],[194724,1,"\uD849\uDED4"],[194725,1,"\u60C7"],[194726,1,"\u6148"],[194727,1,"\u614C"],[194728,1,"\u614E"],[194729,1,"\u614C"],[194730,1,"\u617A"],[194731,1,"\u618E"],[194732,1,"\u61B2"],[194733,1,"\u61A4"],[194734,1,"\u61AF"],[194735,1,"\u61DE"],[194736,1,"\u61F2"],[194737,1,"\u61F6"],[194738,1,"\u6210"],[194739,1,"\u621B"],[194740,1,"\u625D"],[194741,1,"\u62B1"],[194742,1,"\u62D4"],[194743,1,"\u6350"],[194744,1,"\uD84A\uDF0C"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\uD84A\uDFF1"],[194751,1,"\u6422"],[194752,1,"\u63C5"],[194753,1,"\u63A9"],[194754,1,"\u3A2E"],[194755,1,"\u6469"],[194756,1,"\u647E"],[194757,1,"\u649D"],[194758,1,"\u6477"],[194759,1,"\u3A6C"],[194760,1,"\u654F"],[194761,1,"\u656C"],[194762,1,"\uD84C\uDC0A"],[194763,1,"\u65E3"],[194764,1,"\u66F8"],[194765,1,"\u6649"],[194766,1,"\u3B19"],[194767,1,"\u6691"],[194768,1,"\u3B08"],[194769,1,"\u3AE4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669C"],[194774,1,"\u80AD"],[194775,1,"\u43D9"],[194776,1,"\u6717"],[194777,1,"\u671B"],[194778,1,"\u6721"],[194779,1,"\u675E"],[194780,1,"\u6753"],[194781,1,"\uD84C\uDFC3"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\uD84D\uDC6D"],[194788,1,"\u688E"],[194789,1,"\u681F"],[194790,1,"\u6914"],[194791,1,"\u3B9D"],[194792,1,"\u6942"],[194793,1,"\u69A3"],[194794,1,"\u69EA"],[194795,1,"\u6AA8"],[194796,1,"\uD84D\uDEA3"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\uD84E\uDCA7"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\uD84E\uDE8D"],[194808,1,"\uD847\uDD0B"],[194809,1,"\uD84E\uDEFA"],[194810,1,"\u6C4E"],[194811,1,"\uD84F\uDCBC"],[194812,1,"\u6CBF"],[194813,1,"\u6CCD"],[194814,1,"\u6C67"],[194815,1,"\u6D16"],[194816,1,"\u6D3E"],[194817,1,"\u6D77"],[194818,1,"\u6D41"],[194819,1,"\u6D69"],[194820,1,"\u6D78"],[194821,1,"\u6D85"],[194822,1,"\uD84F\uDD1E"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\uD84F\uDED1"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\uD84F\uDF5E"],[194833,1,"\uD84F\uDF8E"],[194834,1,"\u6FC6"],[194835,1,"\u7039"],[194836,1,"\u701E"],[194837,1,"\u701B"],[194838,1,"\u3D96"],[194839,1,"\u704A"],[194840,1,"\u707D"],[194841,1,"\u7077"],[194842,1,"\u70AD"],[194843,1,"\uD841\uDD25"],[194844,1,"\u7145"],[194845,1,"\uD850\uDE63"],[194846,1,"\u719C"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\uD851\uDE08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\uD851\uDF35"],[194855,1,"\uD852\uDC14"],[194856,1,"\u737A"],[194857,1,"\u738B"],[194858,1,"\u3EAC"],[194859,1,"\u73A5"],[[194860,194861],1,"\u3EB8"],[194862,1,"\u7447"],[194863,1,"\u745C"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74CA"],[194867,1,"\u3F1B"],[194868,1,"\u7524"],[194869,1,"\uD853\uDC36"],[194870,1,"\u753E"],[194871,1,"\uD853\uDC92"],[194872,1,"\u7570"],[194873,1,"\uD848\uDD9F"],[194874,1,"\u7610"],[194875,1,"\uD853\uDFA1"],[194876,1,"\uD853\uDFB8"],[194877,1,"\uD854\uDC44"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\uD854\uDCF3"],[194882,1,"\uD854\uDCF2"],[194883,1,"\uD854\uDD19"],[194884,1,"\uD854\uDD33"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\uD855\uDC1D"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\uD855\uDE26"],[194899,1,"\u7956"],[194900,1,"\uD855\uDE9A"],[194901,1,"\uD855\uDEC5"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\uD856\uDD7C"],[[194909,194910],1,"\uD856\uDEA7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\uD856\uDFAB"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\uD857\uDC80"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\uD857\uDF86"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\uD858\uDE28"],[194931,1,"\uD858\uDE47"],[194932,1,"\u4359"],[194933,1,"\uD858\uDED9"],[194934,1,"\u7F7A"],[194935,1,"\uD858\uDF3E"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\uD859\uDCDA"],[194940,1,"\uD859\uDD23"],[194941,1,"\u8060"],[194942,1,"\uD859\uDDA8"],[194943,1,"\u8070"],[194944,1,"\uD84C\uDF5F"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\uD859\uDFA7"],[194952,1,"\uD859\uDFB5"],[194953,1,"\uD84C\uDF93"],[194954,1,"\uD84C\uDF9C"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8F9E"],[194958,1,"\u446B"],[194959,1,"\u8291"],[194960,1,"\u828B"],[194961,1,"\u829D"],[194962,1,"\u52B3"],[194963,1,"\u82B1"],[194964,1,"\u82B3"],[194965,1,"\u82BD"],[194966,1,"\u82E6"],[194967,1,"\uD85A\uDF3C"],[194968,1,"\u82E5"],[194969,1,"\u831D"],[194970,1,"\u8363"],[194971,1,"\u83AD"],[194972,1,"\u8323"],[194973,1,"\u83BD"],[194974,1,"\u83E7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83CA"],[194978,1,"\u83CC"],[194979,1,"\u83DC"],[194980,1,"\uD85B\uDC36"],[194981,1,"\uD85B\uDD6B"],[194982,1,"\uD85B\uDCD5"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\uD85C\uDFCA"],[194988,1,"\u8564"],[194989,1,"\uD85B\uDF2C"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\uD85B\uDFB1"],[194993,1,"\uD85C\uDCD2"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195000,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\uD85D\uDE67"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\uD85E\uDCAE"],[195020,1,"\uD85E\uDD66"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\uD85F\uDCA8"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\uD85F\uDF2F"],[195033,1,"\uD842\uDC04"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\uD842\uDCDE"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\uD861\uDDD2"],[195041,1,"\uD861\uDDED"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\uD861\uDF2E"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\uD862\uDFFA"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\uD863\uDD77"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\uD864\uDD45"],[195063,1,"\uD864\uDE1A"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\uD865\uDC0A"],[195068,1,"\u4AB2"],[195069,1,"\uD865\uDC96"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\uD865\uDDB6"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\uD866\uDF30"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\uD868\uDCCE"],[195089,1,"\u4CF8"],[195090,1,"\uD868\uDD05"],[195091,1,"\uD868\uDE0E"],[195092,1,"\uD868\uDE91"],[195093,1,"\u9EBB"],[195094,1,"\u4D56"],[195095,1,"\u9EF9"],[195096,1,"\u9EFE"],[195097,1,"\u9F05"],[195098,1,"\u9F0F"],[195099,1,"\u9F16"],[195100,1,"\u9F3B"],[195101,1,"\uD869\uDE00"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]});var rw=z((wu,tw)=>{wu.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var $R=z((z01,JR)=>{var Pu=function(Z){return/[^\x00-\x7F]/u.test(Z)},ew=function(Z,{useSTD3ASCIIRules:J}){let $=0,X=ow.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=ow[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=Z&&G>=Z){if(J&&(Q[1]===H0.disallowed_STD3_valid||Q[1]===H0.disallowed_STD3_mapped))return[H0.disallowed,...Q.slice(2)];else if(Q[1]===H0.disallowed_STD3_valid)return[H0.valid,...Q.slice(2)];else if(Q[1]===H0.disallowed_STD3_mapped)return[H0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>Z)X=Y-1;else $=Y+1}return null},Du=function(Z,{useSTD3ASCIIRules:J,processingOption:$}){let X=!1,Y="";for(let Q of Z){const[K,G]=ew(Q.codePointAt(0),{useSTD3ASCIIRules:J});switch(K){case H0.disallowed:X=!0,Y+=Q;break;case H0.ignored:break;case H0.mapped:Y+=G;break;case H0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case H0.valid:Y+=Q;break}}return{string:Y,error:X}},Tu=function(Z,{checkHyphens:J,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(Z.normalize("NFC")!==Z)return!1;const K=Array.from(Z);if(J){if(K[2]==="-"&&K[3]==="-"||(Z.startsWith("-")||Z.endsWith("-")))return!1}if(Z.includes(".")||K.length>0&&n0.combiningMarks.test(K[0]))return!1;for(let G of K){const[F]=ew(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&F!==H0.valid||Y==="nontransitional"&&F!==H0.valid&&F!==H0.deviation)return!1}if(X){let G=0;for(let[F,W]of K.entries())if(W==="\u200C"||W==="\u200D"){if(F>0){if(n0.combiningClassVirama.test(K[F-1]))continue;if(W==="\u200C"){const q=K.indexOf("\u200C",F+1),H=q<0?K.slice(G):K.slice(G,q);if(n0.validZWNJ.test(H.join(""))){G=F+1;continue}}}return!1}}if($){let G;if(n0.bidiS1LTR.test(K[0]))G=!1;else if(n0.bidiS1RTL.test(K[0]))G=!0;else return!1;if(G){if(!n0.bidiS2.test(Z)||!n0.bidiS3.test(Z)||n0.bidiS4EN.test(Z)&&n0.bidiS4AN.test(Z))return!1}else if(!n0.bidiS5.test(Z)||!n0.bidiS6.test(Z))return!1}return!0},Iu=function(Z){const J=Z.map(($)=>{if($.startsWith("xn--"))try{return _3.decode($.substring(4))}catch(X){return""}return $}).join(".");return n0.bidiDomain.test(J)},ZR=function(Z,J){const{processingOption:$}=J;let{string:X,error:Y}=Du(Z,J);X=X.normalize("NFC");const Q=X.split("."),K=Iu(Q);for(let[G,F]of Q.entries()){let W=F,q=$;if(W.startsWith("xn--")){try{W=_3.decode(W.substring(4)),Q[G]=W}catch(U){Y=!0;continue}q="nontransitional"}if(Y)continue;if(!Tu(W,{...J,processingOption:q,checkBidi:J.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},Eu=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional",verifyDNSLength:K=!1}={}){if(Q!=="transitional"&&Q!=="nontransitional")throw new RangeError("processingOption must be either transitional or nontransitional");const G=ZR(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let F=G.string.split(".");if(F=F.map((W)=>{if(Pu(W))try{return`xn--${_3.encode(W)}`}catch(q){G.error=!0}return W}),K){const W=F.join(".").length;if(W>253||W===0)G.error=!0;for(let q=0;q<F.length;++q)if(F[q].length>63||F[q].length===0){G.error=!0;break}}if(G.error)return null;return F.join(".")},Nu=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=ZR(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},_3=import.meta.require("punycode"),n0=sw(),ow=nw(),{STATUS_MAPPING:H0}=rw();JR.exports={toASCII:Eu,toUnicode:Nu}});var v3=z((U01,YR)=>{var x3=function(Z){return Z>=48&&Z<=57},XR=function(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122},Bu=function(Z){return XR(Z)||x3(Z)},Cu=function(Z){return x3(Z)||Z>=65&&Z<=70||Z>=97&&Z<=102};YR.exports={isASCIIDigit:x3,isASCIIAlpha:XR,isASCIIAlphanumeric:Bu,isASCIIHex:Cu}});var qJ=z((V01,QR)=>{var Su=function(Z){return hu.encode(Z)},ku=function(Z){return Ou.decode(Z)},hu=new TextEncoder,Ou=new TextDecoder("utf-8",{ignoreBOM:!0});QR.exports={utf8Encode:Su,utf8DecodeWithoutBOM:ku}});var HJ=z((M01,zR)=>{var t=function(Z){return Z.codePointAt(0)},yu=function(Z){let J=Z.toString(16).toUpperCase();if(J.length===1)J=`0${J}`;return`%${J}`},FR=function(Z){const J=new Uint8Array(Z.byteLength);let $=0;for(let X=0;X<Z.byteLength;++X){const Y=Z[X];if(Y!==37)J[$++]=Y;else if(Y===37&&(!KR(Z[X+1])||!KR(Z[X+2])))J[$++]=Y;else{const Q=parseInt(String.fromCodePoint(Z[X+1],Z[X+2]),16);J[$++]=Q,X+=2}}return J.slice(0,$)},_u=function(Z){const J=GR(Z);return FR(J)},f3=function(Z){return Z<=31||Z>126},vu=function(Z){return f3(Z)||xu.has(Z)},g3=function(Z){return f3(Z)||fu.has(Z)},gu=function(Z){return g3(Z)||Z===t("'")},WR=function(Z){return g3(Z)||bu.has(Z)},qR=function(Z){return WR(Z)||mu.has(Z)},du=function(Z){return qR(Z)||uu.has(Z)},cu=function(Z){return du(Z)||pu.has(Z)},HR=function(Z,J){const $=GR(Z);let X="";for(let Y of $)if(!J(Y))X+=String.fromCharCode(Y);else X+=yu(Y);return X},lu=function(Z,J){return HR(String.fromCodePoint(Z),J)},au=function(Z,J,$=!1){let X="";for(let Y of Z)if($&&Y===" ")X+="+";else X+=HR(Y,J);return X},{isASCIIHex:KR}=v3(),{utf8Encode:GR}=qJ(),xu=new Set([t(" "),t("\""),t("<"),t(">"),t("`")]),fu=new Set([t(" "),t("\""),t("#"),t("<"),t(">")]),bu=new Set([t("?"),t("`"),t("{"),t("}")]),mu=new Set([t("/"),t(":"),t(";"),t("="),t("@"),t("["),t("\\"),t("]"),t("^"),t("|")]),uu=new Set([t("$"),t("%"),t("&"),t("+"),t(",")]),pu=new Set([t("!"),t("'"),t("("),t(")"),t("~")]);zR.exports={isC0ControlPercentEncode:f3,isFragmentPercentEncode:vu,isQueryPercentEncode:g3,isSpecialQueryPercentEncode:gu,isPathPercentEncode:WR,isUserinfoPercentEncode:qR,isURLEncodedPercentEncode:cu,percentDecodeString:_u,percentDecodeBytes:FR,utf8PercentEncodeString:au,utf8PercentEncodeCodePoint:lu}});var c3=z((Rd,z0)=>{var E=function(Z){return Z.codePointAt(0)},UR=function(Z){return[...Z].length},VR=function(Z,J){const $=Z[J];return isNaN($)?void 0:String.fromCodePoint($)},MR=function(Z){return Z==="."||Z.toLowerCase()==="%2e"},Zd=function(Z){return Z=Z.toLowerCase(),Z===".."||Z==="%2e."||Z===".%2e"||Z==="%2e%2e"},Jd=function(Z,J){return s1.isASCIIAlpha(Z)&&(J===E(":")||J===E("|"))},wR=function(Z){return Z.length===2&&s1.isASCIIAlpha(Z.codePointAt(0))&&(Z[1]===":"||Z[1]==="|")},$d=function(Z){return Z.length===2&&s1.isASCIIAlpha(Z.codePointAt(0))&&Z[1]===":"},Xd=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Yd=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},zJ=function(Z){return LR[Z]!==void 0},i1=function(Z){return zJ(Z.scheme)},b3=function(Z){return!zJ(Z.scheme)},RR=function(Z){return LR[Z]},PR=function(Z){if(Z==="")return m;let J=10;if(Z.length>=2&&Z.charAt(0)==="0"&&Z.charAt(1).toLowerCase()==="x")Z=Z.substring(2),J=16;else if(Z.length>=2&&Z.charAt(0)==="0")Z=Z.substring(1),J=8;if(Z==="")return 0;let $=/[^0-7]/u;if(J===10)$=/[^0-9]/u;if(J===16)$=/[^0-9A-Fa-f]/u;if($.test(Z))return m;return parseInt(Z,J)},Qd=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length>1)J.pop()}if(J.length>4)return m;const $=[];for(let Q of J){const K=PR(Q);if(K===m)return m;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return m;if($[$.length-1]>=256**(5-$.length))return m;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},Kd=function(Z){let J="",$=Z;for(let X=1;X<=4;++X){if(J=String($%256)+J,X!==4)J=`.${J}`;$=Math.floor($/256)}return J},Gd=function(Z){const J=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(Z=Array.from(Z,(Q)=>Q.codePointAt(0)),Z[Y]===E(":")){if(Z[Y+1]!==E(":"))return m;Y+=2,++$,X=$}while(Y<Z.length){if($===8)return m;if(Z[Y]===E(":")){if(X!==null)return m;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&s1.isASCIIHex(Z[Y]))Q=Q*16+parseInt(VR(Z,Y),16),++Y,++K;if(Z[Y]===E(".")){if(K===0)return m;if(Y-=K,$>6)return m;let G=0;while(Z[Y]!==void 0){let F=null;if(G>0)if(Z[Y]===E(".")&&G<4)++Y;else return m;if(!s1.isASCIIDigit(Z[Y]))return m;while(s1.isASCIIDigit(Z[Y])){const W=parseInt(VR(Z,Y));if(F===null)F=W;else if(F===0)return m;else F=F*10+W;if(F>255)return m;++Y}if(J[$]=J[$]*256+F,++G,G===2||G===4)++$}if(G!==4)return m;break}else if(Z[Y]===E(":")){if(++Y,Z[Y]===void 0)return m}else if(Z[Y]!==void 0)return m;J[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=J[X+Q-1];J[X+Q-1]=J[$],J[$]=K,--$,--Q}}else if(X===null&&$!==8)return m;return J},Fd=function(Z){let J="";const $=Hd(Z);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&Z[Y]===0)continue;else if(X)X=!1;if($===Y){J+=Y===0?"::":":",X=!0;continue}if(J+=Z[Y].toString(16),Y!==7)J+=":"}return J},m3=function(Z,J=!1){if(Z[0]==="["){if(Z[Z.length-1]!=="]")return m;return Gd(Z.substring(1,Z.length-1))}if(J)return qd(Z);const $=su(nu(Z)),X=zd($);if(X===m)return m;if(Xd(X))return m;if(Wd(X))return Qd(X);return X},Wd=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length===1)return!1;J.pop()}const $=J[J.length-1];if(PR($)!==m)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},qd=function(Z){if(Yd(Z))return m;return VJ(Z,AR)},Hd=function(Z){let J=null,$=1,X=null,Y=0;for(let Q=0;Q<Z.length;++Q)if(Z[Q]!==0){if(Y>$)J=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return J},d3=function(Z){if(typeof Z==="number")return Kd(Z);if(Z instanceof Array)return`[${Fd(Z)}]`;return Z},zd=function(Z,J=!1){const $=iu.toASCII(Z,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:J,verifyDNSLength:J});if($===null||$==="")return m;return $},Ud=function(Z){return Z.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},Vd=function(Z){return Z.replace(/\u0009|\u000A|\u000D/ug,"")},DR=function(Z){const{path:J}=Z;if(J.length===0)return;if(Z.scheme==="file"&&J.length===1&&jd(J[0]))return;J.pop()},TR=function(Z){return Z.username!==""||Z.password!==""},Md=function(Z){return Z.host===null||Z.host===""||N7(Z)||Z.scheme==="file"},N7=function(Z){return typeof Z.path==="string"},jd=function(Z){return/^[A-Za-z]:$/u.test(Z)},I1=function(Z,J,$,X,Y){if(this.pointer=0,this.input=Z,this.base=J||null,this.encodingOverride=$||"utf-8",this.stateOverride=Y,this.url=X,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const K=Ud(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=Vd(this.input);if(Q!==this.input)this.parseError=!0;this.input=Q,this.state=Y||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(K)=>K.codePointAt(0));for(;this.pointer<=this.input.length;++this.pointer){const K=this.input[this.pointer],G=isNaN(K)?void 0:String.fromCodePoint(K),F=this[`parse ${this.state}`](K,G);if(!F)break;else if(F===m){this.failure=!0;break}}},IR=function(Z,J){const $=Z.length-J;return $>=2&&Jd(Z[J],Z[J+1])&&($===2||Ad.has(Z[J+2]))},Ld=function(Z,J){let $=`${Z.scheme}:`;if(Z.host!==null){if($+="//",Z.username!==""||Z.password!==""){if($+=Z.username,Z.password!=="")$+=`:${Z.password}`;$+="@"}if($+=d3(Z.host),Z.port!==null)$+=`:${Z.port}`}if(Z.host===null&&!N7(Z)&&Z.path.length>1&&Z.path[0]==="")$+="/.";if($+=p3(Z),Z.query!==null)$+=`?${Z.query}`;if(!J&&Z.fragment!==null)$+=`#${Z.fragment}`;return $},wd=function(Z){let J=`${Z.scheme}://`;if(J+=d3(Z.host),Z.port!==null)J+=`:${Z.port}`;return J},p3=function(Z){if(N7(Z))return Z.path;let J="";for(let $ of Z.path)J+=`/${$}`;return J},iu=$R(),s1=v3(),{utf8DecodeWithoutBOM:su}=qJ(),{percentDecodeString:nu,utf8PercentEncodeCodePoint:UJ,utf8PercentEncodeString:VJ,isC0ControlPercentEncode:AR,isFragmentPercentEncode:tu,isQueryPercentEncode:ru,isSpecialQueryPercentEncode:ou,isPathPercentEncode:eu,isUserinfoPercentEncode:u3}=HJ(),LR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},m=Symbol("failure");I1.prototype["parse scheme start"]=function Z(J,$){if(s1.isASCIIAlpha(J))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,m;return!0};I1.prototype["parse scheme"]=function Z(J,$){if(s1.isASCIIAlphanumeric(J)||J===E("+")||J===E("-")||J===E("."))this.buffer+=$.toLowerCase();else if(J===E(":")){if(this.stateOverride){if(i1(this.url)&&!zJ(this.buffer))return!1;if(!i1(this.url)&&zJ(this.buffer))return!1;if((TR(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&this.url.host==="")return!1}if(this.url.scheme=this.buffer,this.stateOverride){if(this.url.port===RR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==E("/")||this.input[this.pointer+2]!==E("/"))this.parseError=!0;this.state="file"}else if(i1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(i1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===E("/"))this.state="path or authority",++this.pointer;else this.url.path="",this.state="opaque path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,m;return!0};I1.prototype["parse no scheme"]=function Z(J){if(this.base===null||N7(this.base)&&J!==E("#"))return m;else if(N7(this.base)&&J===E("#"))this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};I1.prototype["parse special relative or authority"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};I1.prototype["parse path or authority"]=function Z(J){if(J===E("/"))this.state="authority";else this.state="path",--this.pointer;return!0};I1.prototype["parse relative"]=function Z(J){if(this.url.scheme=this.base.scheme,J===E("/"))this.state="relative slash";else if(i1(this.url)&&J===E("\\"))this.parseError=!0,this.state="relative slash";else if(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};I1.prototype["parse relative slash"]=function Z(J){if(i1(this.url)&&(J===E("/")||J===E("\\"))){if(J===E("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(J===E("/"))this.state="authority";else this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer;return!0};I1.prototype["parse special authority slashes"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};I1.prototype["parse special authority ignore slashes"]=function Z(J){if(J!==E("/")&&J!==E("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};I1.prototype["parse authority"]=function Z(J,$){if(J===E("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=UR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===E(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=UJ(Q,u3);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||i1(this.url)&&J===E("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,m;this.pointer-=UR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};I1.prototype["parse hostname"]=I1.prototype["parse host"]=function Z(J,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(J===E(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,m;if(this.stateOverride==="hostname")return!1;const X=m3(this.buffer,b3(this.url));if(X===m)return m;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||i1(this.url)&&J===E("\\")){if(--this.pointer,i1(this.url)&&this.buffer==="")return this.parseError=!0,m;else if(this.stateOverride&&this.buffer===""&&(TR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=m3(this.buffer,b3(this.url));if(X===m)return m;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(J===E("["))this.arrFlag=!0;else if(J===E("]"))this.arrFlag=!1;this.buffer+=$}return!0};I1.prototype["parse port"]=function Z(J,$){if(s1.isASCIIDigit(J))this.buffer+=$;else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||i1(this.url)&&J===E("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,m;this.url.port=X===RR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,m;return!0};var Ad=new Set([E("/"),E("\\"),E("?"),E("#")]);I1.prototype["parse file"]=function Z(J){if(this.url.scheme="file",this.url.host="",J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J)){if(this.url.query=null,!IR(this.input,this.pointer))DR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};I1.prototype["parse file slash"]=function Z(J){if(J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!IR(this.input,this.pointer)&&$d(this.base.path[0]))this.url.path.push(this.base.path[0]);this.url.host=this.base.host}this.state="path",--this.pointer}return!0};I1.prototype["parse file host"]=function Z(J,$){if(isNaN(J)||J===E("/")||J===E("\\")||J===E("?")||J===E("#"))if(--this.pointer,!this.stateOverride&&wR(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let X=m3(this.buffer,b3(this.url));if(X===m)return m;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};I1.prototype["parse path start"]=function Z(J){if(i1(this.url)){if(J===E("\\"))this.parseError=!0;if(this.state="path",J!==E("/")&&J!==E("\\"))--this.pointer}else if(!this.stateOverride&&J===E("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&J===E("#"))this.url.fragment="",this.state="fragment";else if(J!==void 0){if(this.state="path",J!==E("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};I1.prototype["parse path"]=function Z(J){if(isNaN(J)||J===E("/")||i1(this.url)&&J===E("\\")||!this.stateOverride&&(J===E("?")||J===E("#"))){if(i1(this.url)&&J===E("\\"))this.parseError=!0;if(Zd(this.buffer)){if(DR(this.url),J!==E("/")&&!(i1(this.url)&&J===E("\\")))this.url.path.push("")}else if(MR(this.buffer)&&J!==E("/")&&!(i1(this.url)&&J===E("\\")))this.url.path.push("");else if(!MR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&wR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",J===E("?"))this.url.query="",this.state="query";if(J===E("#"))this.url.fragment="",this.state="fragment"}else{if(J===E("%")&&(!s1.isASCIIHex(this.input[this.pointer+1])||!s1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=UJ(J,eu)}return!0};I1.prototype["parse opaque path"]=function Z(J){if(J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(J)&&J!==E("%"))this.parseError=!0;if(J===E("%")&&(!s1.isASCIIHex(this.input[this.pointer+1])||!s1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(J))this.url.path+=UJ(J,AR)}return!0};I1.prototype["parse query"]=function Z(J,$){if(!i1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&J===E("#")||isNaN(J)){const X=i1(this.url)?ou:ru;if(this.url.query+=VJ(this.buffer,X),this.buffer="",J===E("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(J)){if(J===E("%")&&(!s1.isASCIIHex(this.input[this.pointer+1])||!s1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};I1.prototype["parse fragment"]=function Z(J){if(!isNaN(J)){if(J===E("%")&&(!s1.isASCIIHex(this.input[this.pointer+1])||!s1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=UJ(J,tu)}return!0};Rd.serializeURL=Ld;Rd.serializePath=p3;Rd.serializeURLOrigin=function(Z){switch(Z.scheme){case"blob":try{return Rd.serializeURLOrigin(Rd.parseURL(p3(Z)))}catch(J){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return wd({scheme:Z.scheme,host:Z.host,port:Z.port});case"file":return"null";default:return"null"}};Rd.basicURLParse=function(Z,J){if(J===void 0)J={};const $=new I1(Z,J.baseURL,J.encodingOverride,J.url,J.stateOverride);if($.failure)return null;return $.url};Rd.setTheUsername=function(Z,J){Z.username=VJ(J,u3)};Rd.setThePassword=function(Z,J){Z.password=VJ(J,u3)};Rd.serializeHost=d3;Rd.cannotHaveAUsernamePasswordPort=Md;Rd.hasAnOpaquePath=N7;Rd.serializeInteger=function(Z){return String(Z)};Rd.parseURL=function(Z,J){if(J===void 0)J={};return Rd.basicURLParse(Z,{baseURL:J.baseURL,encodingOverride:J.encodingOverride})}});var l3=z((j01,kR)=>{var OR=function(Z){return Z.codePointAt(0)},Sd=function(Z){const J=_d(Z,OR("&")),$=[];for(let X of J){if(X.length===0)continue;let Y,Q;const K=X.indexOf(OR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=SR(Y,43,32),Q=SR(Q,43,32);const G=NR(BR(Y)),F=NR(BR(Q));$.push([G,F])}return $},kd=function(Z){return Sd(Od(Z))},yd=function(Z,J=void 0){let $="utf-8";if(J!==void 0)$=J;let X="";for(let[Y,Q]of Z.entries()){const K=CR(Q[0],hR,!0);let G=Q[1];if(Q.length>2&&Q[2]!==void 0){if(Q[2]==="hidden"&&K==="_charset_")G=$;else if(Q[2]==="file")G=G.name}if(G=CR(G,hR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},_d=function(Z,J){const $=[];let X=0,Y=Z.indexOf(J);while(Y>=0)$.push(Z.slice(X,Y)),X=Y+1,Y=Z.indexOf(J,X);if(X!==Z.length)$.push(Z.slice(X));return $},SR=function(Z,J,$){let X=Z.indexOf(J);while(X>=0)Z[X]=$,X=Z.indexOf(J,X+1);return Z},{utf8Encode:Od,utf8DecodeWithoutBOM:NR}=qJ(),{percentDecodeBytes:BR,utf8PercentEncodeString:CR,isURLEncodedPercentEncode:hR}=HJ();kR.exports={parseUrlencodedString:kd,serializeUrlencoded:yd}});var _R=z((xd)=>{var yR=GJ(),MJ=WJ();xd.convert=(Z,J,{context:$="The provided value"}={})=>{if(typeof J!=="function")throw new Z.TypeError($+" is not a function");function X(...Y){const Q=MJ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=MJ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(J,Q,Y),K=yR.any(K,{context:$,globals:Z}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=MJ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(J,Y);return Q=yR.any(Q,{context:$,globals:Z}),Q},X[MJ.wrapperSymbol]=J,X.objectReference=J,X}});var xR=z((fd)=>{var a3=l3();fd.implementation=class Z{constructor(J,$,{doNotStripQMark:X=!1}){let Y=$[0];if(this._list=[],this._url=null,!X&&typeof Y==="string"&&Y[0]==="?")Y=Y.slice(1);if(Array.isArray(Y))for(let Q of Y){if(Q.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([Q[0],Q[1]])}else if(typeof Y==="object"&&Object.getPrototypeOf(Y)===null)for(let Q of Object.keys(Y)){const K=Y[Q];this._list.push([Q,K])}else this._list=a3.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let J=a3.serializeUrlencoded(this._list);if(J==="")J=null;this._url._url.query=J}}append(J,$){this._list.push([J,$]),this._updateSteps()}delete(J){let $=0;while($<this._list.length)if(this._list[$][0]===J)this._list.splice($,1);else $++;this._updateSteps()}get(J){for(let $ of this._list)if($[0]===J)return $[1];return null}getAll(J){const $=[];for(let X of this._list)if(X[0]===J)$.push(X[1]);return $}has(J){for(let $ of this._list)if($[0]===J)return!0;return!1}set(J,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===J)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([J,$]);this._updateSteps()}sort(){this._list.sort((J,$)=>{if(J[0]<$[0])return-1;if(J[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return a3.serializeUrlencoded(this._list)}}});var s3=z((ud)=>{var gR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!W1.isObject($))$=Z[fR].URLSearchParams.prototype;return Object.create($)},t0=GJ(),W1=WJ(),bd=_R(),vR=W1.newObjectInRealm,h1=W1.implSymbol,fR=W1.ctorRegistrySymbol;ud.is=(Z)=>{return W1.isObject(Z)&&W1.hasOwn(Z,h1)&&Z[h1]instanceof p6.implementation};ud.isImpl=(Z)=>{return W1.isObject(Z)&&Z instanceof p6.implementation};ud.convert=(Z,J,{context:$="The provided value"}={})=>{if(ud.is(J))return W1.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URLSearchParams'.`)};ud.createDefaultIterator=(Z,J,$)=>{const Y=Z[fR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,W1.iterInternalSymbol,{value:{target:J,kind:$,index:0},configurable:!0}),Q};ud.create=(Z,J,$)=>{const X=gR(Z);return ud.setup(X,Z,J,$)};ud.createImpl=(Z,J,$)=>{const X=ud.create(Z,J,$);return W1.implForWrapper(X)};ud._internalSetup=(Z,J)=>{};ud.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,ud._internalSetup(Z,J),Object.defineProperty(Z,h1,{value:new p6.implementation(J,$,X),configurable:!0}),Z[h1][W1.wrapperSymbol]=Z,p6.init)p6.init(Z[h1]);return Z};ud.new=(Z,J)=>{const $=gR(Z,J);if(ud._internalSetup($,Z),Object.defineProperty($,h1,{value:Object.create(p6.implementation.prototype),configurable:!0}),$[h1][W1.wrapperSymbol]=$,p6.init)p6.init($[h1]);return $[h1]};var md=new Set(["Window","Worker"]);ud.install=(Z,J)=>{if(!J.some((Y)=>md.has(Y)))return;const $=W1.initCtorRegistry(Z);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(W1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!W1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let F of G){if(!W1.isObject(F))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const W=[],q=F;for(let H of q)H=t0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:Z}),W.push(H);F=W}K.push(F)}Q=K}else if(!W1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else{const K=Object.create(null);for(let G of Reflect.ownKeys(Q)){const F=Object.getOwnPropertyDescriptor(Q,G);if(F&&F.enumerable){let W=G;W=t0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:Z});let q=Q[G];q=t0.USVString(q,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:Z}),K[W]=q}}Q=K}else Q=t0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:Z});else Q="";Y.push(Q)}return ud.setup(Object.create(new.target.prototype),Z,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!ud.is(K))throw new Z.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=t0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:Z}),G.push(F)}{let F=arguments[1];F=t0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:Z}),G.push(F)}return W1.tryWrapperForImpl(K[h1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:Z;if(!ud.is(Q))throw new Z.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=t0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return W1.tryWrapperForImpl(Q[h1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:Z;if(!ud.is(Q))throw new Z.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=t0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:Z;if(!ud.is(Q))throw new Z.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=t0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return W1.tryWrapperForImpl(Q[h1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:Z;if(!ud.is(Q))throw new Z.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=t0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!ud.is(K))throw new Z.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=t0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:Z}),G.push(F)}{let F=arguments[1];F=t0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:Z}),G.push(F)}return W1.tryWrapperForImpl(K[h1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:Z;if(!ud.is(Y))throw new Z.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return W1.tryWrapperForImpl(Y[h1].sort())}toString(){const Y=this!==null&&this!==void 0?this:Z;if(!ud.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[h1].toString()}keys(){if(!ud.is(this))throw new Z.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return ud.createDefaultIterator(Z,this,"key")}values(){if(!ud.is(this))throw new Z.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return ud.createDefaultIterator(Z,this,"value")}entries(){if(!ud.is(this))throw new Z.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return ud.createDefaultIterator(Z,this,"key+value")}forEach(Y){if(!ud.is(this))throw new Z.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=bd.convert(Z,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[h1]),G=0;while(G<K.length){const[F,W]=K[G].map(W1.tryWrapperForImpl);Y.call(Q,W,F,this),K=Array.from(this[h1]),G++}}}Object.defineProperties(X.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:X.prototype.entries,configurable:!0,writable:!0}}),$["URLSearchParams"]=X,$["URLSearchParams Iterator"]=Object.create($["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),W1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[W1.iterInternalSymbol];if(!Y)throw new Z.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:Q,kind:K,index:G}=Y,F=Array.from(Q[h1]),W=F.length;if(G>=W)return vR(Z,{value:void 0,done:!0});const q=F[G];return Y.index=G+1,vR(Z,W1.iteratorResult(q.map(W1.tryWrapperForImpl),K))}}),Object.defineProperty(Z,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var p6=xR()});var dR=z((sd)=>{var V1=c3(),uR=l3(),id=s3();sd.implementation=class Z{constructor(J,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=V1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=V1.basicURLParse(X,{baseURL:Q});if(K===null)throw new TypeError(`Invalid URL: ${X}`);const G=K.query!==null?K.query:"";this._url=K,this._query=id.createImpl(J,[G],{doNotStripQMark:!0}),this._query._url=this}get href(){return V1.serializeURL(this._url)}set href(J){const $=V1.basicURLParse(J);if($===null)throw new TypeError(`Invalid URL: ${J}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=uR.parseUrlencodedString(X)}get origin(){return V1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(J){V1.basicURLParse(`${J}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(J){if(V1.cannotHaveAUsernamePasswordPort(this._url))return;V1.setTheUsername(this._url,J)}get password(){return this._url.password}set password(J){if(V1.cannotHaveAUsernamePasswordPort(this._url))return;V1.setThePassword(this._url,J)}get host(){const J=this._url;if(J.host===null)return"";if(J.port===null)return V1.serializeHost(J.host);return`${V1.serializeHost(J.host)}:${V1.serializeInteger(J.port)}`}set host(J){if(V1.hasAnOpaquePath(this._url))return;V1.basicURLParse(J,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return V1.serializeHost(this._url.host)}set hostname(J){if(V1.hasAnOpaquePath(this._url))return;V1.basicURLParse(J,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return V1.serializeInteger(this._url.port)}set port(J){if(V1.cannotHaveAUsernamePasswordPort(this._url))return;if(J==="")this._url.port=null;else V1.basicURLParse(J,{url:this._url,stateOverride:"port"})}get pathname(){return V1.serializePath(this._url)}set pathname(J){if(V1.hasAnOpaquePath(this._url))return;this._url.path=[],V1.basicURLParse(J,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(J){const $=this._url;if(J===""){$.query=null,this._query._list=[];return}const X=J[0]==="?"?J.substring(1):J;$.query="",V1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=uR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(J){if(J===""){this._url.fragment=null;return}const $=J[0]==="#"?J.substring(1):J;this._url.fragment="",V1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}});var aR=z((od)=>{var pR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!k0.isObject($))$=Z[td].URL.prototype;return Object.create($)},r0=GJ(),k0=WJ(),e=k0.implSymbol,td=k0.ctorRegistrySymbol;od.is=(Z)=>{return k0.isObject(Z)&&k0.hasOwn(Z,e)&&Z[e]instanceof c6.implementation};od.isImpl=(Z)=>{return k0.isObject(Z)&&Z instanceof c6.implementation};od.convert=(Z,J,{context:$="The provided value"}={})=>{if(od.is(J))return k0.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URL'.`)};od.create=(Z,J,$)=>{const X=pR(Z);return od.setup(X,Z,J,$)};od.createImpl=(Z,J,$)=>{const X=od.create(Z,J,$);return k0.implForWrapper(X)};od._internalSetup=(Z,J)=>{};od.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,od._internalSetup(Z,J),Object.defineProperty(Z,e,{value:new c6.implementation(J,$,X),configurable:!0}),Z[e][k0.wrapperSymbol]=Z,c6.init)c6.init(Z[e]);return Z};od.new=(Z,J)=>{const $=pR(Z,J);if(od._internalSetup($,Z),Object.defineProperty($,e,{value:Object.create(c6.implementation.prototype),configurable:!0}),$[e][k0.wrapperSymbol]=$,c6.init)c6.init($[e]);return $[e]};var rd=new Set(["Window","Worker"]);od.install=(Z,J)=>{if(!J.some((Y)=>rd.has(Y)))return;const $=k0.initCtorRegistry(Z);class X{constructor(Y){if(arguments.length<1)throw new Z.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=r0.USVString(K,{context:"Failed to construct 'URL': parameter 1",globals:Z}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=r0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:Z});Q.push(K)}return od.setup(Object.create(new.target.prototype),Z,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[e].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[e].href}set href(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set href' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:Z}),Q[e].href=Y}toString(){const Y=this;if(!od.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[e].href}get origin(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[e].origin}get protocol(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[e].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set protocol' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:Z}),Q[e].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[e].username}set username(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set username' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:Z}),Q[e].username=Y}get password(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[e].password}set password(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set password' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:Z}),Q[e].password=Y}get host(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[e].host}set host(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set host' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:Z}),Q[e].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[e].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set hostname' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:Z}),Q[e].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[e].port}set port(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set port' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:Z}),Q[e].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[e].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set pathname' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:Z}),Q[e].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[e].search}set search(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set search' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:Z}),Q[e].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return k0.getSameObject(this,"searchParams",()=>{return k0.tryWrapperForImpl(Y[e].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:Z;if(!od.is(Y))throw new Z.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[e].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:Z;if(!od.is(Q))throw new Z.TypeError("'set hash' called on an object that is not a valid instance of URL.");Y=r0.USVString(Y,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:Z}),Q[e].hash=Y}}if(Object.defineProperties(X.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),$["URL"]=X,Object.defineProperty(Z,"URL",{configurable:!0,writable:!0,value:X}),J.includes("Window"))Object.defineProperty(Z,"webkitURL",{configurable:!0,writable:!0,value:X})};var c6=dR()});var iR=z((Kp)=>{var Yp=aR(),Qp=s3();Kp.URL=Yp;Kp.URLSearchParams=Qp});var nR=z((Hp)=>{var{URL:Wp,URLSearchParams:qp}=iR(),U8=c3(),sR=HJ(),AJ={Array,Object,Promise,String,TypeError};Wp.install(AJ,["Window"]);qp.install(AJ,["Window"]);Hp.URL=AJ.URL;Hp.URLSearchParams=AJ.URLSearchParams;Hp.parseURL=U8.parseURL;Hp.basicURLParse=U8.basicURLParse;Hp.serializeURL=U8.serializeURL;Hp.serializePath=U8.serializePath;Hp.serializeHost=U8.serializeHost;Hp.serializeInteger=U8.serializeInteger;Hp.serializeURLOrigin=U8.serializeURLOrigin;Hp.setTheUsername=U8.setTheUsername;Hp.setThePassword=U8.setThePassword;Hp.cannotHaveAUsernamePasswordPort=U8.cannotHaveAUsernamePasswordPort;Hp.hasAnOpaquePath=U8.hasAnOpaquePath;Hp.percentDecodeString=sR.percentDecodeString;Hp.percentDecodeBytes=sR.percentDecodeBytes});var rR=z((o0)=>{var Op=function(Z,J){var $,X;const Y=Z.clone(),Q=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;if((Y.username||Y.password)&&K)Y.username=Q,Y.password="";else if(Y.password)Y.password=Q;if(Y.searchParams.has("authMechanismProperties")){const G=new tR.CommaAndColonSeparatedRecord(Y.searchParams.get("authMechanismProperties"));if(G.get("AWS_SESSION_TOKEN"))G.set("AWS_SESSION_TOKEN",Q),Y.searchParams.set("authMechanismProperties",G.toString())}if(Y.searchParams.has("tlsCertificateKeyFilePassword"))Y.searchParams.set("tlsCertificateKeyFilePassword",Q);if(Y.searchParams.has("proxyUsername")&&K)Y.searchParams.set("proxyUsername",Q);if(Y.searchParams.has("proxyPassword"))Y.searchParams.set("proxyPassword",Q);return Y},Sp=function(Z,J){var $,X;const Y=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new tR.default(Z)}catch(W){}if(K)return J={...J,replacementString:"___credentials___"},K.redact(J).toString().replace(/___credentials___/g,Y);const G=Y,F=[(W)=>W.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(W)=>W.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(W)=>W.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(W)=>Q?W.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):W,(W)=>W.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let W of F)Z=W(Z);return Z},Bp=o0&&o0.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),Cp=o0&&o0.__setModuleDefault||(Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J}),hp=o0&&o0.__importStar||function(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var $ in Z)if($!=="default"&&Object.prototype.hasOwnProperty.call(Z,$))Bp(J,Z,$)}return Cp(J,Z),J};Object.defineProperty(o0,"__esModule",{value:!0});o0.redactConnectionString=o0.redactValidConnectionString=void 0;var tR=hp(t3());o0.redactValidConnectionString=Op;o0.redactConnectionString=Sp});var t3=z((o3)=>{var yp=function(Z){return Z.startsWith("mongodb://")||Z.startsWith("mongodb+srv://")},xp=function(Z){return class J extends Z{append($,X){return super.append(this._normalizeKey($),X)}delete($){return super.delete(this._normalizeKey($))}get($){return super.get(this._normalizeKey($))}getAll($){return super.getAll(this._normalizeKey($))}has($){return super.has(this._normalizeKey($))}set($,X){return super.set(this._normalizeKey($),X)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey($){return r3.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(o3,"__esModule",{value:!0});o3.CommaAndColonSeparatedRecord=o3.ConnectionString=o3.redactConnectionString=void 0;var kp=nR(),oR=rR();Object.defineProperty(o3,"redactConnectionString",{enumerable:!0,get:function(){return oR.redactConnectionString}});var o5="__this_is_a_placeholder__",_p=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class r3 extends Map{delete(Z){return super.delete(this._normalizeKey(Z))}get(Z){return super.get(this._normalizeKey(Z))}has(Z){return super.has(this._normalizeKey(Z))}set(Z,J){return super.set(this._normalizeKey(Z),J)}_normalizeKey(Z){Z=`${Z}`;for(let J of this.keys())if(J.toLowerCase()===Z.toLowerCase()){Z=J;break}return Z}}class eR extends kp.URL{}class x8 extends Error{get name(){return"MongoParseError"}}class e5 extends eR{constructor(Z,J={}){var $;const{looseValidation:X}=J;if(!X&&!yp(Z))throw new x8('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=Z.match(_p);if(!Y)throw new x8(`Invalid connection string "${Z}"`);const{protocol:Q,username:K,password:G,hosts:F,rest:W}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!F)throw new x8(`Protocol and host list are required in "${Z}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(U){throw new x8(U.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new x8(`Username contains unescaped characters ${K}`);if(!K||!G){const U=Z.replace(`${Q}://`,"");if(U.startsWith("@")||U.startsWith(":"))throw new x8("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new x8("Password contains unescaped characters")}let q="";if(typeof K==="string")q+=K;if(typeof G==="string")q+=`:${G}`;if(q)q+="@";try{super(`${Q.toLowerCase()}://${q}${o5}${W}`)}catch(H){if(X)new e5(Z,{...J,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(o5,F);throw H}if(this._hosts=F.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new x8("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new x8("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,xp(this.searchParams.constructor).prototype)}get host(){return o5}set host(Z){throw new Error("No single host for connection string")}get hostname(){return o5}set hostname(Z){throw new Error("No single host for connection string")}get port(){return""}set port(Z){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(Z){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(Z){this._hosts=Z}toString(){return super.toString().replace(o5,this.hosts.join(","))}clone(){return new e5(this.toString(),{looseValidation:!0})}redact(Z){return oR.redactValidConnectionString(this,Z)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:W}=this;return{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:W}}}o3.ConnectionString=e5;class ZP extends r3{constructor(Z){super();for(let J of(Z!==null&&Z!==void 0?Z:"").split(",")){if(!J)continue;const $=J.indexOf(":");if($===-1)this.set(J,"");else this.set(J.slice(0,$),J.slice($+1))}}toString(){return[...this].map((Z)=>Z.join(":")).join(",")}}o3.CommaAndColonSeparatedRecord=ZP;o3.default=e5});var $P=z((B01,gp)=>{gp.exports={name:"mongodb",version:"5.9.2",description:"The official MongoDB driver for Node.js",main:"lib/index.js",files:["lib","src","etc/prepare.js","mongodb.d.ts","tsconfig.json"],types:"mongodb.d.ts",repository:{type:"git",url:"git@github.com:mongodb/node-mongodb-native.git"},keywords:["mongodb","driver","official"],author:{name:"The MongoDB NodeJS Team",email:"dbx-node@mongodb.com"},dependencies:{bson:"^5.5.0","mongodb-connection-string-url":"^2.6.0",socks:"^2.7.1"},optionalDependencies:{"@mongodb-js/saslprep":"^1.1.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.0.0",kerberos:"^1.0.0 || ^2.0.0","mongodb-client-encryption":">=2.3.0 <3",snappy:"^7.2.2"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.35.1","@microsoft/tsdoc-config":"^0.16.2","@mongodb-js/zstd":"^1.1.0","@octokit/core":"^4.2.4","@types/chai":"^4.3.5","@types/chai-subset":"^1.3.3","@types/express":"^4.17.17","@types/kerberos":"^1.1.2","@types/mocha":"^10.0.1","@types/node":"^20.1.0","@types/semver":"^7.5.0","@types/sinon":"^10.0.14","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.40.0","eslint-config-prettier":"^8.8.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17",express:"^4.18.2","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-legacy":"^5.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.0",sinon:"^15.0.4","sinon-chai":"^3.7.0",snappy:"^7.2.2","source-map-support":"^0.5.21","ts-node":"^10.9.1",tsd:"^0.28.1",typescript:"^5.0.4","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.2.0",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=14.20.1"},bugs:{url:"https://jira.mongodb.org/projects/NODE/issues/"},homepage:"https://github.com/mongodb/node-mongodb-native",scripts:{"build:evergreen":"node .evergreen/generate_evergreen_tasks.js","build:ts":"node ./node_modules/typescript/bin/tsc","build:dts":"npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"node test/benchmarks/driverBench","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js","check:lint":"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd","check:eslint":"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test","check:tsd":"tsd --version && tsd","check:dependencies":"mocha test/action/dependency.test.ts","check:dts":"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd","check:search-indexes":"nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.spec.test.ts","check:test":"mocha --config test/mocha_mongodb.json test/integration","check:unit":"mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js","check:adl":"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts","check:oidc":"mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts","check:oidc-azure":"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts","check:ocsp":"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js","check:kerberos":"nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts","check:tls":"mocha --config test/manual/mocharc.json test/manual/tls_support.test.js","check:ldap":"nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js","check:socks5":"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts","check:csfle":"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption","check:snappy":"mocha test/unit/assorted/snappy.test.js","fix:eslint":"npm run check:eslint -- --fix",prepare:"node etc/prepare.js","preview:docs":"ts-node etc/docs/preview.ts",test:"npm run check:lint && npm run test:all","test:all":"npm run check:unit && npm run check:test","update:docs":"npm run build:docs -- --yes"},tsd:{directory:"test/types",compilerOptions:{strict:!0,target:"esnext",module:"commonjs",moduleResolution:"node"}}}});var FP=z((KP)=>{var bp=function(Z){const J=new e3(512),{appName:$=""}=Z;if($.length>0){const q=Buffer.byteLength($,"utf8")<=128?Z.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");J.ifItFitsItSits("application",{name:q})}const{name:X="",version:Y="",platform:Q=""}=Z.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${YP}|${Y}`:YP};if(!J.ifItFitsItSits("driver",K))throw new XP.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=mp();if(Q.length>0)G=`${G}|${Q}`;if(!J.ifItFitsItSits("platform",G))throw new XP.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const F=(new Map()).set("name",LJ.platform).set("architecture",LJ.arch).set("version",Z9.release()).set("type",Z9.type());if(!J.ifItFitsItSits("os",F))for(let q of F.keys()){if(F.delete(q),F.size===0)break;if(J.ifItFitsItSits("os",F))break}const W=QP();if(W!=null){if(!J.ifItFitsItSits("env",W))for(let q of W.keys()){if(W.delete(q),W.size===0)break;if(J.ifItFitsItSits("env",W))break}}return J.toObject()},QP=function(){const{AWS_EXECUTION_ENV:Z="",AWS_LAMBDA_RUNTIME_API:J="",FUNCTIONS_WORKER_RUNTIME:$="",K_SERVICE:X="",FUNCTION_NAME:Y="",VERCEL:Q="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:K="",AWS_REGION:G="",FUNCTION_MEMORY_MB:F="",FUNCTION_REGION:W="",FUNCTION_TIMEOUT_SEC:q="",VERCEL_REGION:H=""}=LJ.env,U=Z.startsWith("AWS_Lambda_")||J.length>0,j=$.length>0,V=X.length>0||Y.length>0,L=Q.length>0,D=new Map;if(L&&!(j||V)){if(H.length>0)D.set("region",H);return D.set("name","vercel"),D}if(U&&!(j||V||L)){if(G.length>0)D.set("region",G);if(K.length>0&&Number.isInteger(+K))D.set("memory_mb",new B7.Int32(K));return D.set("name","aws.lambda"),D}if(j&&!(V||U||L))return D.set("name","azure.func"),D;if(V&&!(j||U||L)){if(W.length>0)D.set("region",W);if(F.length>0&&Number.isInteger(+F))D.set("memory_mb",new B7.Int32(F));if(q.length>0&&Number.isInteger(+q))D.set("timeout_sec",new B7.Int32(q));return D.set("name","gcp.func"),D}return null},mp=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${Z9.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${Z9.endianness()}`;return`Node.js ${LJ.version}, ${Z9.endianness()}`};Object.defineProperty(KP,"__esModule",{value:!0});KP.getFAASEnv=KP.makeClientMetadata=KP.LimitedSizeDocument=void 0;var Z9=import.meta.require("os"),LJ=import.meta.require("process"),B7=D1(),XP=h(),YP=$P().version;class e3{constructor(Z){this.maxSize=Z,this.document=new Map,this.documentSize=5}ifItFitsItSits(Z,J){const $=B7.BSON.serialize((new Map()).set(Z,J)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(Z,J),!0}toObject(){return B7.BSON.deserialize(B7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}KP.LimitedSizeDocument=e3;KP.makeClientMetadata=bp;KP.getFAASEnv=QP});var RJ=z((VP)=>{var zP=function(){if(W6==null){const Z=qP.getSnappy();if("kModuleError"in Z)throw Z.kModuleError;W6=Z}return W6};async function ip(Z,J){const $={};switch(Z.agreedCompressor){case"snappy":return W6??(W6=zP()),W6.compress(J);case"zstd":{if(UP(),"kModuleError"in a6)throw a6.kModuleError;return a6.compress(J,cp)}case"zlib":{if(Z.zlibCompressionLevel)$.level=Z.zlibCompressionLevel;return ap(J,$)}default:throw new HP.MongoInvalidArgumentError(`Unknown compressor ${Z.agreedCompressor} failed to compress`)}}async function sp(Z,J){if(Z!==VP.Compressor.snappy&&Z!==VP.Compressor.zstd&&Z!==VP.Compressor.zlib&&Z!==VP.Compressor.none)throw new HP.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${Z})`);switch(Z){case VP.Compressor.snappy:return W6??(W6=zP()),W6.uncompress(J,{asBuffer:!0});case VP.Compressor.zstd:{if(UP(),"kModuleError"in a6)throw a6.kModuleError;return a6.decompress(J)}case VP.Compressor.zlib:return lp(J);default:return J}}var UP=function(){if(!a6)a6=qP.getZstdLibrary()};Object.defineProperty(VP,"__esModule",{value:!0});VP.decompress=VP.compress=VP.uncompressibleCommands=VP.Compressor=void 0;var WP=import.meta.require("util"),wJ=import.meta.require("zlib"),pp=g1(),qP=R7(),HP=h();VP.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});VP.uncompressibleCommands=new Set([pp.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var cp=3,lp=WP.promisify(wJ.inflate.bind(wJ)),ap=WP.promisify(wJ.deflate.bind(wJ)),a6,W6=null;VP.compress=ip;VP.decompress=sp});var PP=z((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.Encrypter=void 0;var rp=g1(),jP=h(),op=C7(),ep=_(),AP,J9=Symbol("internalClient");class LP{constructor(Z,J,$){if(typeof $.autoEncryption!=="object")throw new jP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[J9]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=Z;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(Z,J,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=Z;else $.autoEncryption.metadataClient=this.getInternalClient(Z,J,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new AP(Z,$.autoEncryption)}getInternalClient(Z,J,$){let X=this[J9];if(X==null){const Y={};for(let Q of[...Object.getOwnPropertyNames($),...Object.getOwnPropertySymbols($)]){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(Q))continue;Reflect.set(Y,Q,Reflect.get($,Q))}Y.minPoolSize=0,X=new op.MongoClient(J,Y),this[J9]=X;for(let Q of rp.MONGO_CLIENT_EVENTS)for(let K of Z.listeners(Q))X.on(Q,K);Z.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const Z=this[J9];if(this.needsConnecting&&Z!=null)this.needsConnecting=!1,await Z.connect()}close(Z,J,$){this.autoEncrypter.teardown(!!J,(X)=>{const Y=this[J9];if(Y!=null&&Z!==Y){Y.close(J).then(()=>$(),(Q)=>$(Q));return}$(X)})}static checkForMongoCrypt(){const Z=ep.getMongoDBClientEncryption();if(Z==null)throw new jP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project");AP=Z.extension($9()).AutoEncrypter}}wP.Encrypter=LP});var YQ=z((IP)=>{var X9=function(Z){const J=Object.values(IP.SeverityLevel),$=Z?.toLowerCase();if($!=null&&J.includes($))return $;return null},h7=function(Z){return{write:(J)=>{Z.write(Jc.inspect(J,{compact:!0,breakLength:Infinity}),"utf-8");return}}},$c=function({MONGODB_LOG_PATH:Z},{mongodbLogPath:J}){if(typeof J==="string"&&/^stderr$/i.test(J))return h7(process.stderr);if(typeof J==="string"&&/^stdout$/i.test(J))return h7(process.stdout);if(typeof J==="object"&&typeof J?.write==="function")return J;if(Z&&/^stderr$/i.test(Z))return h7(process.stderr);if(Z&&/^stdout$/i.test(Z))return h7(process.stdout);return h7(process.stderr)},Xc=function(Z,J){const $=IP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z),X=IP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J);return $<X?-1:$>X?1:0},JQ=function(Z,J){const $=Zc.EJSON.stringify(Z);return J!==0&&$.length>J?`${$.slice(0,J)}...`:$},Yc=function(Z){const J=Z;return J.toLog!==void 0&&typeof J.toLog==="function"},ZQ=function(Z,J){Z.commandName=J.commandName,Z.requestId=J.requestId,Z.driverConnectionId=J?.connectionId;const{host:$,port:X}=XQ.HostAddress.fromString(J.address).toHostPort();if(Z.serverHost=$,Z.serverPort=X,J?.serviceId)Z.serviceId=J.serviceId.toHexString();return Z},V8=function(Z,J){const{host:$,port:X}=XQ.HostAddress.fromString(J.address).toHostPort();return Z.serverHost=$,Z.serverPort=X,Z},Qc=function(Z,J=IP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(Z.name){case R0.COMMAND_STARTED:return $=ZQ($,Z),$.message="Command started",$.command=JQ(Z.command,J),$.databaseName=Z.databaseName,$;case R0.COMMAND_SUCCEEDED:return $=ZQ($,Z),$.message="Command succeeded",$.durationMS=Z.duration,$.reply=JQ(Z.reply,J),$;case R0.COMMAND_FAILED:return $=ZQ($,Z),$.message="Command failed",$.durationMS=Z.duration,$.failure=Z.failure,$;case R0.CONNECTION_POOL_CREATED:if($=V8($,Z),$.message="Connection pool created",Z.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=Z.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case R0.CONNECTION_POOL_READY:return $=V8($,Z),$.message="Connection pool ready",$;case R0.CONNECTION_POOL_CLEARED:if($=V8($,Z),$.message="Connection pool cleared",Z.serviceId?._bsontype==="ObjectId")$.serviceId=Z.serviceId.toHexString();return $;case R0.CONNECTION_POOL_CLOSED:return $=V8($,Z),$.message="Connection pool closed",$;case R0.CONNECTION_CREATED:return $=V8($,Z),$.message="Connection created",$.driverConnectionId=Z.connectionId,$;case R0.CONNECTION_READY:return $=V8($,Z),$.message="Connection ready",$.driverConnectionId=Z.connectionId,$;case R0.CONNECTION_CLOSED:switch($=V8($,Z),$.message="Connection closed",$.driverConnectionId=Z.connectionId,Z.reason){case"stale":$.reason="Connection became stale because the pool was cleared";break;case"idle":$.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":if($.reason="An error occurred while using the connection",Z.error)$.error=Z.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case R0.CONNECTION_CHECK_OUT_STARTED:return $=V8($,Z),$.message="Connection checkout started",$;case R0.CONNECTION_CHECK_OUT_FAILED:switch($=V8($,Z),$.message="Connection checkout failed",Z.reason){case"poolClosed":$.reason="Connection pool was closed";break;case"timeout":$.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":if($.reason="An error occurred while trying to establish a new connection",Z.error)$.error=Z.error;break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case R0.CONNECTION_CHECKED_OUT:return $=V8($,Z),$.message="Connection checked out",$.driverConnectionId=Z.connectionId,$;case R0.CONNECTION_CHECKED_IN:return $=V8($,Z),$.message="Connection checked in",$.driverConnectionId=Z.connectionId,$;default:for(let[X,Y]of Object.entries(Z))if(Y!=null)$[X]=Y}return $};Object.defineProperty(IP,"__esModule",{value:!0});IP.MongoLogger=IP.stringifyWithMaxLen=IP.createStdioLogger=IP.MongoLoggableComponent=IP.SEVERITY_LEVEL_MAP=IP.DEFAULT_MAX_DOCUMENT_LENGTH=IP.SeverityLevel=void 0;var Zc=M5(),Jc=import.meta.require("util"),R0=g1(),XQ=_();IP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});IP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class DP extends Map{constructor(Z){const J=[];for(let[$,X]of Z)J.push([X,$]);J.push(...Z);super(J)}getNumericSeverityLevel(Z){return this.get(Z)}getSeverityLevelName(Z){return this.get(Z)}}IP.SEVERITY_LEVEL_MAP=new DP([[IP.SeverityLevel.OFF,(-Infinity)],[IP.SeverityLevel.EMERGENCY,0],[IP.SeverityLevel.ALERT,1],[IP.SeverityLevel.CRITICAL,2],[IP.SeverityLevel.ERROR,3],[IP.SeverityLevel.WARNING,4],[IP.SeverityLevel.NOTICE,5],[IP.SeverityLevel.INFORMATIONAL,6],[IP.SeverityLevel.DEBUG,7],[IP.SeverityLevel.TRACE,8]]);IP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection"});IP.createStdioLogger=h7;IP.stringifyWithMaxLen=JQ;class TP{constructor(Z){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=Z.componentSeverities,this.maxDocumentLength=Z.maxDocumentLength,this.logDestination=Z.logDestination}log(Z,J,$){if(Xc(Z,this.componentSeverities[J])>0)return;let X={t:new Date,c:J,s:Z};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Yc($))X={...X,...$.toLog()};else X={...X,...Qc($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(Z,J){const $={...Z,...J,mongodbLogPath:$c(Z,J)},X=X9($.MONGODB_LOG_ALL)??IP.SeverityLevel.OFF;return{componentSeverities:{command:X9($.MONGODB_LOG_COMMAND)??X,topology:X9($.MONGODB_LOG_TOPOLOGY)??X,serverSelection:X9($.MONGODB_LOG_SERVER_SELECTION)??X,connection:X9($.MONGODB_LOG_CONNECTION)??X,default:X},maxDocumentLength:XQ.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}IP.MongoLogger=TP});var HQ=z((kP)=>{async function jc(Z){if(typeof Z.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(Z.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const J=Z.srvHost,$=await BP.promises.resolveSrv(`_${Z.srvServiceName}._tcp.${J}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:q}of $)if(!n1.matchesParentDomain(q,J))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((q)=>n1.HostAddress.fromString(`${q.name}:${q.port??27017}`));GQ(X,Z,!0);let Y;try{Y=await BP.promises.resolveTxt(J)}catch(q){if(q.code!=="ENODATA"&&q.code!=="ENOTFOUND")throw q;return X}if(Y.length>1)throw new S.MongoParseError("Multiple text records not allowed");const Q=new qc.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((q)=>!KQ.includes(q)))throw new S.MongoParseError(`Text record may only set any of: ${KQ.join(", ")}`);if(KQ.some((q)=>Q.get(q)===""))throw new S.MongoParseError("Cannot have empty URI params in DNS TXT Record");const G=Q.get("authSource")??void 0,F=Q.get("replicaSet")??void 0,W=Q.get("loadBalanced")??void 0;if(!Z.userSpecifiedAuthSource&&G&&Z.credentials&&!v8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(Z.credentials.mechanism))Z.credentials=O7.MongoCredentials.merge(Z.credentials,{source:G});if(!Z.userSpecifiedReplicaSet&&F)Z.replicaSet=F;if(W==="true")Z.loadBalanced=!0;if(Z.replicaSet&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return GQ(X,Z,!0),X}var Ac=function(Z){if(!Z)return;const J=($,X)=>{if(Z.has($)&&Z.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};J("tlsInsecure","tlsAllowInvalidCertificates"),J("tlsInsecure","tlsAllowInvalidHostnames"),J("tlsInsecure","tlsDisableCertificateRevocationCheck"),J("tlsInsecure","tlsDisableOCSPEndpointCheck"),J("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),J("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),J("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},H6=function(Z,J){if(typeof J==="boolean")return J;const $=String(J).toLowerCase();if(Lc.has($)){if($!=="true")n1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : true instead`);return!0}if(wc.has($)){if($!=="false")n1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : false instead`);return!1}throw new S.MongoParseError(`Expected ${Z} to be stringified boolean value, got: ${J}`)},WQ=function(Z,J){const $=n1.parseInteger(J);if($!=null)return $;throw new S.MongoParseError(`Expected ${Z} to be stringified int value, got: ${J}`)},Y9=function(Z,J){const $=WQ(Z,J);if($<0)throw new S.MongoParseError(`${Z} can only be a positive int value, got: ${J}`);return $};function*OP(Z){const J=Z.split(",");for(let $ of J){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var Rc=function(Z,J=void 0,$={}){if(J!=null&&!(J instanceof PJ.MongoClient))$=J,J=void 0;if($.useBigInt64&&typeof $.promoteLongs==="boolean"&&!$.promoteLongs)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");if($.useBigInt64&&typeof $.promoteValues==="boolean"&&!$.promoteValues)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");const X=new Wc.default(Z),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(kP.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(n1.HostAddress.fromString);const G=new Q9;if(X.pathname!=="/"&&X.pathname!==""){const w=decodeURIComponent(X.pathname[0]==="/"?X.pathname.slice(1):X.pathname);if(w)G.set("dbName",[w])}if(X.username!==""){const w={username:decodeURIComponent(X.username)};if(typeof X.password==="string")w.password=decodeURIComponent(X.password);G.set("auth",[w])}for(let w of X.searchParams.keys()){const T=[...X.searchParams.getAll(w)];if(T.includes(""))throw new S.MongoAPIError("URI cannot contain options with no value");if(!G.has(w))G.set(w,T)}const F=new Q9(Object.entries($).filter(([,w])=>w!=null));if(G.has("serverApi"))throw new S.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const W=G.get("authMechanismProperties");if(W){for(let w of W)if(/(^|,)ALLOWED_HOSTS:/.test(w))throw new S.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(F.has("loadBalanced"))throw new S.MongoParseError("loadBalanced is only a valid option in the URI");const q=new Q9,H=new Set([...G.keys(),...F.keys()]);for(let w of H){const T=[],f=F.get(w);if(f!=null)T.push(f);const N1=G.get(w)??[];T.push(...N1),q.set(w,T)}const U=q.has("tlsCertificateKeyFile")&&!q.has("tlsCertificateFile");if(U)q.set("tlsCertificateFile",q.get("tlsCertificateKeyFile"));if(q.has("tls")||q.has("ssl")){const w=(q.get("tls")||[]).concat(q.get("ssl")||[]).map(H6.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}Ac(q);const j=n1.setDifference(H,Array.from(Object.keys(kP.OPTIONS)).map((w)=>w.toLowerCase()));if(j.size!==0){const w=j.size>1?"options":"option",T=j.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(j).join(", ")} ${T} not supported`)}for(let[w,T]of Object.entries(kP.OPTIONS)){const f=q.get(w);if(!f||f.length===0){if(kP.DEFAULT_OPTIONS.has(w))SP(K,w,T,[kP.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:N1}=T;if(N1&&!(U&&w==="tlsCertificateFile")){const k=typeof N1==="string"?`: ${N1}`:"";n1.emitWarning(`${w} is a deprecated option${k}`)}SP(K,w,T,f)}}if(K.credentials){const w=K.credentials.mechanism===v8.AuthMechanism.MONGODB_GSSAPI,T=K.credentials.mechanism===v8.AuthMechanism.MONGODB_X509,f=K.credentials.mechanism===v8.AuthMechanism.MONGODB_AWS,N1=K.credentials.mechanism===v8.AuthMechanism.MONGODB_OIDC;if((w||T)&&q.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||T||f||N1)&&K.dbName&&!q.has("authSource"))K.credentials=O7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(f&&K.credentials.username&&!K.credentials.password)throw new S.MongoMissingCredentialsError(`When using ${K.credentials.mechanism} password must be set when a username is specified`);if(K.credentials.validate(),K.credentials.password===""&&K.credentials.username===""&&K.credentials.mechanism===v8.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if(GQ(Y,K,Q),J&&K.autoEncryption)hP.Encrypter.checkForMongoCrypt(),K.encrypter=new hP.Encrypter(J,Z,$),K.autoEncrypter=K.encrypter.autoEncrypter;if(K.userSpecifiedAuthSource=F.has("authSource")||G.has("authSource"),K.userSpecifiedReplicaSet=F.has("replicaSet")||G.has("replicaSet"),Q){if(K.srvHost=Y[0],K.directConnection)throw new S.MongoAPIError("SRV URI does not support directConnection");if(K.srvMaxHosts>0&&typeof K.replicaSet==="string")throw new S.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const w=!F.has("tls")&&!G.has("tls"),T=!F.has("ssl")&&!G.has("ssl");if(w&&T)K.tls=!0}else if(G.has("srvMaxHosts")||F.has("srvMaxHosts")||G.has("srvServiceName")||F.has("srvServiceName"))throw new S.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(K.directConnection&&K.hosts.length!==1)throw new S.MongoParseError("directConnection option requires exactly one host");if(!K.proxyHost&&(K.proxyPort||K.proxyUsername||K.proxyPassword))throw new S.MongoParseError("Must specify proxyHost if other proxy options are passed");if(K.proxyUsername&&!K.proxyPassword||!K.proxyUsername&&K.proxyPassword)throw new S.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((w)=>G.get(w)??[]).some((w)=>w.length>1))throw new S.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const L=Symbol.for("@@mdb.enableMongoLogger");K[L]=K[L]??!1;let D={},N={};if(K[L])D={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...K[Symbol.for("@@mdb.internalLoggerConfig")]},N={mongodbLogPath:K.mongodbLogPath};return K.mongoLoggerOptions=zc.MongoLogger.resolveOptions(D,N),K.metadata=Hc.makeClientMetadata(K),K},GQ=function(Z,J,$){if(J.loadBalanced){if(Z.length>1)throw new S.MongoParseError(Uc);if(J.replicaSet)throw new S.MongoParseError(Vc);if(J.directConnection)throw new S.MongoParseError(Mc);if($&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},SP=function(Z,J,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??J;switch(Q){case"boolean":Z[G]=H6(G,X[0]);break;case"int":Z[G]=WQ(G,X[0]);break;case"uint":Z[G]=Y9(G,X[0]);break;case"string":if(X[0]==null)break;Z[G]=String(X[0]);break;case"record":if(!n1.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);Z[G]=X[0];break;case"any":Z[G]=X[0];break;default:{if(!K)throw new S.MongoParseError("Descriptors missing a type must define a transform");const F=K({name:G,options:Z,values:X});Z[G]=F;break}}};Object.defineProperty(kP,"__esModule",{value:!0});kP.FEATURE_FLAGS=kP.DEFAULT_OPTIONS=kP.OPTIONS=kP.parseOptions=kP.resolveSRVRecord=void 0;var BP=import.meta.require("dns"),C4=import.meta.require("fs"),Wc=t3(),qc=import.meta.require("url"),O7=QJ(),v8=_8(),Hc=FP(),CP=RJ(),hP=PP(),S=h(),PJ=C7(),zc=YQ(),QQ=p0(),i6=y1(),n1=_(),q6=L0(),KQ=["authSource","replicaSet","loadBalanced"],Uc="loadBalanced option only supported with a single host in the URI",Vc="loadBalanced option not supported with a replicaSet option",Mc="loadBalanced option not supported when directConnection is provided";kP.resolveSRVRecord=jc;var Lc=new Set(["true","t","1","y","yes"]),wc=new Set(["false","f","0","n","no","-1"]);class Q9 extends Map{constructor(Z=[]){super(Z.map(([J,$])=>[J.toLowerCase(),$]))}has(Z){return super.has(Z.toLowerCase())}get(Z){return super.get(Z.toLowerCase())}set(Z,J){return super.set(Z.toLowerCase(),J)}delete(Z){return super.delete(Z.toLowerCase())}}kP.parseOptions=Rc;kP.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:Z,options:J,values:[$]}){if(!n1.isRecord($,["username","password"]))throw new S.MongoParseError(`${Z} must be an object with 'username' and 'password' properties`);return O7.MongoCredentials.merge(J.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:Z,values:[J]}){const $=Object.values(v8.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${J}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${J}`);let Y=Z.credentials?.source;if(X===v8.AuthMechanism.MONGODB_PLAIN||v8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=Z.credentials?.password;if(X===v8.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return O7.MongoCredentials.merge(Z.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:Z,values:J}){let $=Object.create(null);for(let X of J)if(typeof X==="string")for(let[Y,Q]of OP(X))try{$[Y]=H6(Y,Q)}catch{$[Y]=Q}else{if(!n1.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return O7.MongoCredentials.merge(Z.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:Z,values:[J]}){const $=String(J);return O7.MongoCredentials.merge(Z.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[Z]}){const J=typeof Z==="string"?{version:Z}:Z,$=J&&J.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(PJ.ServerApiVersion).join('", "')}"]`);if(!Object.values(PJ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(PJ.ServerApiVersion).join('", "')}"]`);return J}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:Z}){const J=new Set;for(let $ of Z){const X=typeof $==="string"?$.split(","):$;if(!Array.isArray(X))throw new S.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let Y of X)if(Object.keys(CP.Compressor).includes(String(Y)))J.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(CP.Compressor)}.`)}return[...J]}},connectTimeoutMS:{default:30000,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:Z,values:[J]}){const $=WQ(Z,J);if($===4||$===6)return $;throw new S.MongoParseError(`Option 'family' must be 4 or 6 got ${$}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,fsync:H6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from fsync=${$}`);return X}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:H6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:H6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},keepAlive:{default:!0,type:"boolean",deprecated:"Will not be able to turn off in the future."},keepAliveInitialDelay:{default:120000,type:"uint",deprecated:"Will not be configurable in the future."},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:Z,values:[J]}){const $=Y9(Z,J);if($===0)throw new S.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return $}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:Z,options:J,values:[$]}){const X=Y9(Z,$);if(J.readPreference)return i6.ReadPreference.fromOptions({readPreference:{...J.readPreference,maxStalenessSeconds:X}});else return new i6.ReadPreference("secondary",void 0,{maxStalenessSeconds:X})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform({values:[Z],options:J}){return{...J.driverInfo,name:String(Z)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:n1.DEFAULT_PK_FACTORY,transform({values:[Z]}){if(n1.isRecord(Z,["createPk"])&&typeof Z.createPk==="function")return Z;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${Z}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[Z],options:J}){if(Z instanceof QQ.ReadConcern||n1.isRecord(Z,["level"]))return QQ.ReadConcern.fromOptions({...J.readConcern,...Z});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(Z)}`)}},readConcernLevel:{target:"readConcern",transform({values:[Z],options:J}){return QQ.ReadConcern.fromOptions({...J.readConcern,level:Z})}},readPreference:{default:i6.ReadPreference.primary,transform({values:[Z],options:J}){if(Z instanceof i6.ReadPreference)return i6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if(n1.isRecord(Z,["mode"])){const $=i6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(Z)}`)}if(typeof Z==="string"){const $={hedge:J.readPreference?.hedge,maxStalenessSeconds:J.readPreference?.maxStalenessSeconds};return new i6.ReadPreference(Z,J.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${Z}`)}},readPreferenceTags:{target:"readPreference",transform({values:Z,options:J}){const $=Array.isArray(Z[0])?Z[0]:Z,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of OP(Y))Q[K]=G;if(n1.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return i6.ReadPreference.fromOptions({readPreference:J.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:30000,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},sslCA:{deprecated:"sslCA is deprecated and will be removed in the next major version. Please use tlsCAFile instead.",target:"ca",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},sslCRL:{deprecated:"sslCRL is deprecated and will be removed in the next major version and be replaced by tlsCRLFile in that release.",target:"crl",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},sslCert:{deprecated:"sslCert is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},sslKey:{deprecated:"sslKey is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"key",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},sslPass:{deprecated:"sslPass is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFilePassword instead.",target:"passphrase",type:"string"},sslValidate:{deprecated:"sslValidate is deprecated and will be removed in the next major version. Please use tlsAllowInvalidCertificates instead.",target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:Z,values:[J]}){return!H6(Z,J)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:Z,values:[J]}){return H6(Z,J)?()=>{return}:void 0}},tlsCAFile:{target:"ca",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateFile:{deprecated:"tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFile:{target:"key",transform({values:[Z]}){return C4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:Z,options:J,values:[$]}){const X=H6(Z,$);if(X)J.checkServerIdentity=()=>{return},J.rejectUnauthorized=!1;else J.checkServerIdentity=J.tlsAllowInvalidHostnames?()=>{return}:void 0,J.rejectUnauthorized=J.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[Z],options:J}){return q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[Z],options:J}){if(n1.isRecord(Z)||Z instanceof q6.WriteConcern)return q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,...Z}});else if(Z==="majority"||typeof Z==="number")return q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(Z)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[Z],options:J}){const $=q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeout:Y9("wtimeout",Z)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[Z],options:J}){const $=q6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeoutMS:Y9("wtimeoutMS",Z)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean"},useUnifiedTopology:{type:"boolean"},mongodbLogPath:{type:"any"}};kP.DEFAULT_OPTIONS=new Q9(Object.entries(kP.OPTIONS).filter(([,Z])=>Z.default!=null).map(([Z,J])=>[Z,J.default]));kP.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var TJ=z((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.ServerHeartbeatFailedEvent=dP.ServerHeartbeatSucceededEvent=dP.ServerHeartbeatStartedEvent=dP.TopologyClosedEvent=dP.TopologyOpeningEvent=dP.TopologyDescriptionChangedEvent=dP.ServerClosedEvent=dP.ServerOpeningEvent=dP.ServerDescriptionChangedEvent=void 0;class yP{constructor(Z,J,$,X){this.topologyId=Z,this.address=J,this.previousDescription=$,this.newDescription=X}}dP.ServerDescriptionChangedEvent=yP;class _P{constructor(Z,J){this.topologyId=Z,this.address=J}}dP.ServerOpeningEvent=_P;class xP{constructor(Z,J){this.topologyId=Z,this.address=J}}dP.ServerClosedEvent=xP;class vP{constructor(Z,J,$){this.topologyId=Z,this.previousDescription=J,this.newDescription=$}}dP.TopologyDescriptionChangedEvent=vP;class fP{constructor(Z){this.topologyId=Z}}dP.TopologyOpeningEvent=fP;class gP{constructor(Z){this.topologyId=Z}}dP.TopologyClosedEvent=gP;class bP{constructor(Z){this.connectionId=Z}}dP.ServerHeartbeatStartedEvent=bP;class mP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.reply=$??{}}}dP.ServerHeartbeatSucceededEvent=mP;class uP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.failure=$}}dP.ServerHeartbeatFailedEvent=uP});var IJ=z((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.BinMsg=nP.Msg=nP.Response=nP.Query=void 0;var s6=D1(),G9=h(),Sc=y1(),kc=_(),K9=w4(),S7=0,yc=2,_c=4,xc=8,vc=16,fc=32,gc=64,bc=128,mc=1,uc=2,dc=4,pc=8;class zQ{constructor(Z,J,$){if(Z==null)throw new G9.MongoRuntimeError("Namespace must be specified for query");if(J==null)throw new G9.MongoRuntimeError("A query document must be specified for query");if(Z.indexOf("\0")!==-1)throw new G9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=Z,this.query=J,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=zQ.getRequestId(),this.pre32Limit=$.pre32Limit,this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk=typeof $.secondaryOk==="boolean"?$.secondaryOk:!1,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=S7++}nextRequestId(){return S7+1}static getRequestId(){return++S7}toBin(){const Z=[];let J=null,$=0;if(this.tailable)$|=yc;if(this.secondaryOk)$|=_c;if(this.oplogReplay)$|=xc;if(this.noCursorTimeout)$|=vc;if(this.awaitData)$|=fc;if(this.exhaust)$|=gc;if(this.partial)$|=bc;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);Z.push(X);const Y=s6.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(Z.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)J=s6.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),Z.push(J);const Q=X.length+Y.length+(J?J.length:0);let K=4;return X[3]=Q>>24&255,X[2]=Q>>16&255,X[1]=Q>>8&255,X[0]=Q&255,X[K+3]=this.requestId>>24&255,X[K+2]=this.requestId>>16&255,X[K+1]=this.requestId>>8&255,X[K]=this.requestId&255,K=K+4,X[K+3]=0>>24&255,X[K+2]=0>>16&255,X[K+1]=0>>8&255,X[K]=0&255,K=K+4,X[K+3]=K9.OP_QUERY>>24&255,X[K+2]=K9.OP_QUERY>>16&255,X[K+1]=K9.OP_QUERY>>8&255,X[K]=K9.OP_QUERY&255,K=K+4,X[K+3]=$>>24&255,X[K+2]=$>>16&255,X[K+1]=$>>8&255,X[K]=$&255,K=K+4,K=K+X.write(this.ns,K,"utf8")+1,X[K-1]=0,X[K+3]=this.numberToSkip>>24&255,X[K+2]=this.numberToSkip>>16&255,X[K+1]=this.numberToSkip>>8&255,X[K]=this.numberToSkip&255,K=K+4,X[K+3]=this.numberToReturn>>24&255,X[K+2]=this.numberToReturn>>16&255,X[K+1]=this.numberToReturn>>8&255,X[K]=this.numberToReturn&255,K=K+4,Z}}nP.Query=zQ;class cP{constructor(Z,J,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{};const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp;let F;const W={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new s6.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=(this.responseFlags&mc)!==0,this.queryFailure=(this.responseFlags&uc)!==0,this.shardConfigStale=(this.responseFlags&dc)!==0,this.awaitCapable=(this.responseFlags&pc)!==0;for(let q=0;q<this.numberReturned;q++){if(F=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,J)this.documents[q]=this.data.slice(this.index,this.index+F);else this.documents[q]=s6.deserialize(this.data.slice(this.index,this.index+F),W);this.index=this.index+F}if(this.documents.length===1&&$!=null&&J){const q={};q[$]=!0,W.fieldsAsRaw=q;const H=s6.deserialize(this.documents[0],W);this.documents=[H]}this.parsed=!0}}nP.Response=cP;var lP=1,aP=2,iP=1<<16;class UQ{constructor(Z,J,$){if(J==null)throw new G9.MongoInvalidArgumentError("Query document must be specified for query");if(this.ns=Z,this.command=J,this.command.$db=kc.databaseNamespace(Z),$.readPreference&&$.readPreference.mode!==Sc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:UQ.getRequestId(),this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=$.moreToCome||!1,this.exhaustAllowed=typeof $.exhaustAllowed==="boolean"?$.exhaustAllowed:!1}toBin(){const Z=[];let J=0;if(this.checksumPresent)J|=lP;if(this.moreToCome)J|=aP;if(this.exhaustAllowed)J|=iP;const $=Buffer.alloc(20);Z.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(Z,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE(K9.OP_MSG,12),$.writeUInt32LE(J,16),Z}makeDocumentSegment(Z,J){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(J);return Z.push($),Z.push(X),$.length+X.length}serializeBson(Z){return s6.serialize(Z,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return S7=S7+1&2147483647,S7}}nP.Msg=UQ;class sP{constructor(Z,J,$,X){this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&lP)!==0,this.moreToCome=(this.responseFlags&aP)!==0,this.exhaustAllowed=(this.responseFlags&iP)!==0,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1,this.documents=[]}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{},this.index=4;const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp,F=this.parseBsonSerializationOptions(Z),W={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:F};while(this.index<this.data.length){const q=this.data.readUInt8(this.index++);if(q===0){const H=this.data.readUInt32LE(this.index),U=this.data.slice(this.index,this.index+H);this.documents.push(J?U:s6.deserialize(U,W)),this.index+=H}else if(q===1)throw new G9.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(this.documents.length===1&&$!=null&&J){const q={};q[$]=!0,W.fieldsAsRaw=q;const H=s6.deserialize(this.documents[0],W);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:Z}){if(Z===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}nP.BinMsg=sP});var LQ=z((XD)=>{var jQ=function(Z){if(Z instanceof eP.Msg)return M8.deepCopy(Z.command);if(Z.query?.$query){let X;if(Z.ns==="admin.$cmd")X=Object.assign({},Z.query.$query);else X={find:tc(Z)},Object.keys(rP).forEach((Y)=>{if(Z.query[Y]!=null)X[rP[Y]]=M8.deepCopy(Z.query[Y])});if(Object.keys(oP).forEach((Y)=>{const Q=Y;if(Z[Q]!=null)X[oP[Q]]=M8.deepCopy(Z[Q])}),rc.forEach((Y)=>{if(Z[Y])X[Y]=Z[Y]}),Z.pre32Limit!=null)X.limit=Z.pre32Limit;if(Z.query.$explain)return{explain:X};return X}const J={},$={};if(Z.query){for(let X in Z.query)J[X]=M8.deepCopy(Z.query[X]);$.query=J}for(let X in Z){if(X==="query")continue;$[X]=M8.deepCopy(Z[X])}return Z.query?J:$},oc=function(Z,J){if(!J)return J;if(Z instanceof eP.Msg)return M8.deepCopy(J.result?J.result:J);if(Z.query&&Z.query.$query!=null)return{ok:1,cursor:{id:M8.deepCopy(J.cursorId),ns:sc(Z),firstBatch:M8.deepCopy(J.documents)}};return M8.deepCopy(J.result?J.result:J)},AQ=function(Z){let J;if("id"in Z)J=Z.id;return{address:Z.address,serviceId:Z.serviceId,connectionId:J}};Object.defineProperty(XD,"__esModule",{value:!0});XD.SENSITIVE_COMMANDS=XD.CommandFailedEvent=XD.CommandSucceededEvent=XD.CommandStartedEvent=void 0;var F9=g1(),M8=_(),eP=IJ();class ZD{constructor(Z,J){this.name=F9.COMMAND_STARTED;const $=jQ(J),X=VQ($),{address:Y,connectionId:Q,serviceId:K}=AQ(Z);if(XD.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=J.requestId,this.databaseName=nc(J),this.commandName=X,this.command=MQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}XD.CommandStartedEvent=ZD;class JD{constructor(Z,J,$,X){this.name=F9.COMMAND_SUCCEEDED;const Y=jQ(J),Q=VQ(Y),{address:K,connectionId:G,serviceId:F}=AQ(Z);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=J.requestId,this.commandName=Q,this.duration=M8.calculateDurationInMs(X),this.reply=MQ(Q,Y,oc(J,$))}get hasServiceId(){return!!this.serviceId}}XD.CommandSucceededEvent=JD;class $D{constructor(Z,J,$,X){this.name=F9.COMMAND_FAILED;const Y=jQ(J),Q=VQ(Y),{address:K,connectionId:G,serviceId:F}=AQ(Z);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=J.requestId,this.commandName=Q,this.duration=M8.calculateDurationInMs(X),this.failure=MQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}XD.CommandFailedEvent=$D;XD.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var ic=new Set(["hello",F9.LEGACY_HELLO_COMMAND,F9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),VQ=(Z)=>Object.keys(Z)[0],sc=(Z)=>Z.ns,nc=(Z)=>Z.ns.split(".")[0],tc=(Z)=>Z.ns.split(".")[1],MQ=(Z,J,$)=>XD.SENSITIVE_COMMANDS.has(Z)||ic.has(Z)&&J.speculativeAuthenticate?{}:$,rP={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},oP={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},rc=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var FD=z((KD)=>{var Ql=function(Z){const J=Z instanceof W9.Msg?Z.command:Z.query,$=Object.keys(J)[0];return!CJ.uncompressibleCommands.has($)},q9=function(Z,J){const $=Z[BJ],X=$.getInt32();if(X==null)return J();if(X<0)return J(new wQ.MongoParseError(`Invalid message size: ${X}`));if(X>Z.maxBsonMessageSize)return J(new wQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${Z.maxBsonMessageSize}`));if(X>$.length)return J();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(Z.isMonitoringConnection){const q=$.getInt32();if(q!=null&&q<=$.length)return!0}return!1};let G=Q.opCode===NJ.OP_MSG?W9.BinMsg:W9.Response;if(Q.opCode!==NJ.OP_COMPRESSED){const q=Y.subarray(n6);if(K())return q9(Z,J);if(Z.emit("message",new G(Y,Q,q)),$.length>=4)return q9(Z,J);return J()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(n6),Q.length=Y.readInt32LE(n6+4);const F=Y[n6+8],W=Y.slice(n6+9);G=Q.opCode===NJ.OP_MSG?W9.BinMsg:W9.Response,CJ.decompress(F,W).then((q)=>{if(q.length!==Q.length)return J(new wQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return q9(Z,J);if(Z.emit("message",new G(Y,Q,q)),$.length>=4)return q9(Z,J);return J()},(q)=>{return J(q)})};Object.defineProperty(KD,"__esModule",{value:!0});KD.MessageStream=void 0;var $l=import.meta.require("stream"),wQ=h(),Xl=_(),W9=IJ(),CJ=RJ(),NJ=w4(),n6=16,YD=9,Yl=67108864,BJ=Symbol("buffer");class QD extends $l.Duplex{constructor(Z={}){super(Z);this.isMonitoringConnection=!1,this.maxBsonMessageSize=Z.maxBsonMessageSize||Yl,this[BJ]=new Xl.BufferPool}get buffer(){return this[BJ]}_write(Z,J,$){this[BJ].append(Z),q9(this,$)}_read(){return}writeCommand(Z,J){const $=J.agreedCompressor??"none";if($==="none"||!Ql(Z)){const G=Z.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(Z.toBin()),Y=X.slice(n6),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:J.zlibCompressionLevel??0};CJ.compress(K,Y).then((G)=>{const F=Buffer.alloc(n6);F.writeInt32LE(n6+YD+G.length,0),F.writeInt32LE(Z.requestId,4),F.writeInt32LE(0,8),F.writeInt32LE(NJ.OP_COMPRESSED,12);const W=Buffer.alloc(YD);W.writeInt32LE(Q,0),W.writeInt32LE(Y.length,4),W.writeUInt8(CJ.Compressor[$],8),this.push(Buffer.concat([F,W,G]))},(G)=>{J.cb(G)})}}KD.MessageStream=QD});var zD=z((qD)=>{Object.defineProperty(qD,"__esModule",{value:!0});qD.StreamDescription=void 0;var Kl=c0(),Gl=k5(),Fl=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class WD{constructor(Z,J){this.address=Z,this.type=Kl.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes,this.loadBalanced=!!J?.loadBalanced,this.compressors=J&&J.compressors&&Array.isArray(J.compressors)?J.compressors:[]}receiveResponse(Z){if(Z==null)return;this.type=Gl.parseServerType(Z);for(let J of Fl){if(Z[J]!=null)this[J]=Z[J];if("__nodejs_mock_server__"in Z)this.__nodejs_mock_server__=Z.__nodejs_mock_server__}if(Z.compression)this.compressor=this.compressors.filter((J)=>Z.compression?.includes(J))[0]}}qD.StreamDescription=WD});var H9=z((RD)=>{var wD=function(Z){return Z.description.logicalSessionTimeoutMinutes!=null},Vl=function(Z){const J=Z.description;if(J==null)return!1;return t6.maxWireVersion(Z)>=6&&!J.__nodejs_mock_server__},Ml=function(Z,J){if(J.proxyHost)return J.hostAddress.toString();const{remoteAddress:$,remotePort:X}=Z;if(typeof $==="string"&&typeof X==="number")return t6.HostAddress.fromHostPort($,X).toString();return t6.uuidV4().toString("hex")},jl=function(Z,J,$,X){$=$??{};const Y={requestId:J.requestId,cb:X,session:$.session,noResponse:typeof $.noResponse==="boolean"?$.noResponse:!1,documentsReturnedIn:$.documentsReturnedIn,useBigInt64:typeof $.useBigInt64==="boolean"?$.useBigInt64:!1,promoteLongs:typeof $.promoteLongs==="boolean"?$.promoteLongs:!0,promoteValues:typeof $.promoteValues==="boolean"?$.promoteValues:!0,promoteBuffers:typeof $.promoteBuffers==="boolean"?$.promoteBuffers:!1,bsonRegExp:typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,enableUtf8Validation:typeof $.enableUtf8Validation==="boolean"?$.enableUtf8Validation:!0,raw:typeof $.raw==="boolean"?$.raw:!1,started:0};if(Z[b8]&&Z[b8].compressor){if(Y.agreedCompressor=Z[b8].compressor,Z[b8].zlibCompressionLevel)Y.zlibCompressionLevel=Z[b8].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")Z[t1].setTimeout($.socketTimeoutMS);else if(Z.socketTimeoutMS!==0)Z[t1].setTimeout(Z.socketTimeoutMS);if(Z.monitorCommands)Z.emit(x1.COMMAND_STARTED,new hJ.CommandStartedEvent(Z,J)),Y.started=t6.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)Z.emit(x1.COMMAND_FAILED,new hJ.CommandFailedEvent(Z,J,Q,Y.started));else if(K&&(K.ok===0||K.$err))Z.emit(x1.COMMAND_FAILED,new hJ.CommandFailedEvent(Z,J,K,Y.started));else Z.emit(x1.COMMAND_SUCCEEDED,new hJ.CommandSucceededEvent(Z,J,K,Y.started));if(typeof X==="function")X(Q,Q instanceof g8.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)Z[j8].set(Y.requestId,Y);try{Z[f8].writeCommand(J,Y)}catch(Q){if(!Y.noResponse){Z[j8].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};Object.defineProperty(RD,"__esModule",{value:!0});RD.hasSessionSupport=RD.CryptoConnection=RD.Connection=void 0;var UD=import.meta.require("timers"),Wl=import.meta.require("util"),r6=g1(),g8=h(),ql=h0(),VD=x5(),t6=_(),hJ=LQ(),MD=IJ(),Hl=FD(),zl=zD(),jD=yY(),t1=Symbol("stream"),j8=Symbol("queue"),f8=Symbol("messageStream"),RQ=Symbol("generation"),PQ=Symbol("lastUseTime"),DQ=Symbol("clusterTime"),b8=Symbol("description"),TQ=Symbol("hello"),AD=Symbol("autoEncrypter"),OJ=Symbol("delayedTimeoutId"),Ul="Connection internal queue contains more than 1 operation description";class x1 extends ql.TypedEventEmitter{constructor(Z,J){super();this.commandAsync=Wl.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=J.id,this.address=Ml(Z,J),this.socketTimeoutMS=J.socketTimeoutMS??0,this.monitorCommands=J.monitorCommands,this.serverApi=J.serverApi,this.closed=!1,this[TQ]=null,this[DQ]=null,this[b8]=new zl.StreamDescription(this.address,J),this[RQ]=J.generation,this[PQ]=t6.now(),this[j8]=new Map,this[f8]=new Hl.MessageStream({...J,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[t1]=Z,this[OJ]=null,this[f8].on("message",($)=>this.onMessage($)),this[f8].on("error",($)=>this.onError($)),this[t1].on("close",()=>this.onClose()),this[t1].on("timeout",()=>this.onTimeout()),this[t1].on("error",()=>{}),this[t1].pipe(this[f8]),this[f8].pipe(this[t1])}get description(){return this[b8]}get hello(){return this[TQ]}set hello(Z){this[b8].receiveResponse(Z),this[b8]=Object.freeze(this[b8]),this[TQ]=Z}set isMonitoringConnection(Z){this[f8].isMonitoringConnection=Z}get isMonitoringConnection(){return this[f8].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[RQ]||0}set generation(Z){this[RQ]=Z}get idleTime(){return t6.calculateDurationInMs(this[PQ])}get clusterTime(){return this[DQ]}get stream(){return this[t1]}markAvailable(){this[PQ]=t6.now()}onError(Z){this.cleanup(!0,Z)}onClose(){const Z=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new g8.MongoNetworkError(Z))}onTimeout(){this[OJ]=UD.setTimeout(()=>{const Z=`connection ${this.id} to ${this.address} timed out`,J=this.hello==null;this.cleanup(!0,new g8.MongoNetworkTimeoutError(Z,{beforeHandshake:J}))},1).unref()}onMessage(Z){const J=this[OJ];if(J!=null)UD.clearTimeout(J),this[OJ]=null;const $=this[t1].timeout??0;this[t1].setTimeout(0),this.emit("message",Z);let X=this[j8].get(Z.responseTo);if(!X&&this.isMonitoringConnection)if(this[j8].size>1)this.cleanup(!0,new g8.MongoRuntimeError(Ul));else{const Q=this[j8].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[j8].delete(K)}}if(!X)return;const Y=X.cb;if(this[j8].delete(Z.responseTo),"moreToCome"in Z&&Z.moreToCome)this[j8].set(Z.requestId,X),this[t1].setTimeout($);try{Z.parse(X)}catch(Q){Y(Q);return}if(Z.documents[0]){const Q=Z.documents[0],K=X.session;if(K)VD.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[DQ]=Q.$clusterTime,this.emit(x1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new g8.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new g8.MongoServerError(Q));return}}Y(void 0,Z.documents[0])}destroy(Z,J){if(this.closed){process.nextTick(()=>J?.());return}if(typeof J==="function")this.once("close",()=>process.nextTick(()=>J()));this.removeAllListeners(x1.PINNED),this.removeAllListeners(x1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(Z.force,new g8.MongoNetworkError($))}cleanup(Z,J){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[j8].values())X.cb(J);this[j8].clear(),this.emit(x1.CLOSE)};if(this[t1].removeAllListeners(),this[f8].removeAllListeners(),this[f8].destroy(),Z){this[t1].destroy(),$();return}if(!this[t1].writableEnded)this[t1].end(()=>{this[t1].destroy(),$()});else $()}command(Z,J,$,X){let Y={...J};const Q=jD.getReadPreference($),K=Vl(this),G=$?.session;let F=this.clusterTime;if(this.serverApi){const{version:U,strict:j,deprecationErrors:V}=this.serverApi;if(Y.apiVersion=U,j!=null)Y.apiStrict=j;if(V!=null)Y.apiDeprecationErrors=V}if(wD(this)&&G){if(G.clusterTime&&F&&G.clusterTime.clusterTime.greaterThan(F.clusterTime))F=G.clusterTime;const U=VD.applySession(G,Y,$);if(U)return X(U)}else if(G?.explicit)return X(new g8.MongoCompatibilityError("Current topology does not support sessions"));if(F)Y.$clusterTime=F;if(jD.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const W=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),q=`${Z.db}.\$cmd`,H=K?new MD.Msg(q,Y,W):new MD.Query(q,Y,W);try{jl(this,H,W,X)}catch(U){X(U)}}}x1.COMMAND_STARTED=r6.COMMAND_STARTED;x1.COMMAND_SUCCEEDED=r6.COMMAND_SUCCEEDED;x1.COMMAND_FAILED=r6.COMMAND_FAILED;x1.CLUSTER_TIME_RECEIVED=r6.CLUSTER_TIME_RECEIVED;x1.CLOSE=r6.CLOSE;x1.MESSAGE=r6.MESSAGE;x1.PINNED=r6.PINNED;x1.UNPINNED=r6.UNPINNED;RD.Connection=x1;class LD extends x1{constructor(Z,J){super(Z,J);this[AD]=J.autoEncrypter}command(Z,J,$,X){const Y=this[AD];if(!Y)return X(new g8.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=t6.maxWireVersion(this);if(Q===0)return super.command(Z,J,$,X);if(Q<8){X(new g8.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=J.find||J.findAndModify?J.sort:null,G=J.createIndexes?J.indexes.map((F)=>F.key):null;Y.encrypt(Z.toString(),J,$,(F,W)=>{if(F||W==null){X(F,null);return}if(K!=null&&(J.find||J.findAndModify))W.sort=K;if(G!=null&&J.createIndexes)for(let[q,H]of G.entries())W.indexes[q].key=H;super.command(Z,W,$,(q,H)=>{if(q||H==null){X(q,H);return}Y.decrypt(H,$,X)})})}}RD.CryptoConnection=LD;RD.hasSessionSupport=wD});var TD=z((DD)=>{var z9=function(Z){if(Z===4)return"ipv4";if(Z===6)return"ipv6";return Z?Z.toLowerCase():"ipv4"},x=DD,{Buffer:SJ}=import.meta.require("buffer"),wl=import.meta.require("os");x.toBuffer=function(Z,J,$){$=~~$;let X;if(this.isV4Format(Z))X=J||SJ.alloc($+4),Z.split(/\./g).map((Y)=>{X[$++]=parseInt(Y,10)&255});else if(this.isV6Format(Z)){const Y=Z.split(":",8);let Q;for(Q=0;Q<Y.length;Q++){const K=this.isV4Format(Y[Q]);let G;if(K)G=this.toBuffer(Y[Q]),Y[Q]=G.slice(0,2).toString("hex");if(G&&++Q<8)Y.splice(Q,0,G.slice(2,4).toString("hex"))}if(Y[0]==="")while(Y.length<8)Y.unshift("0");else if(Y[Y.length-1]==="")while(Y.length<8)Y.push("0");else if(Y.length<8){for(Q=0;Q<Y.length&&Y[Q]!=="";Q++);const K=[Q,1];for(Q=9-Y.length;Q>0;Q--)K.push("0");Y.splice(...K)}X=J||SJ.alloc($+16);for(Q=0;Q<Y.length;Q++){const K=parseInt(Y[Q],16);X[$++]=K>>8&255,X[$++]=K&255}}if(!X)throw Error(`Invalid ip address: ${Z}`);return X};x.toString=function(Z,J,$){J=~~J,$=$||Z.length-J;let X=[];if($===4){for(let Y=0;Y<$;Y++)X.push(Z[J+Y]);X=X.join(".")}else if($===16){for(let Y=0;Y<$;Y+=2)X.push(Z.readUInt16BE(J+Y).toString(16));X=X.join(":"),X=X.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),X=X.replace(/:{3,4}/,"::")}return X};var Rl=/^(\d{1,3}\.){3,3}\d{1,3}$/,Pl=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;x.isV4Format=function(Z){return Rl.test(Z)};x.isV6Format=function(Z){return Pl.test(Z)};x.fromPrefixLen=function(Z,J){if(Z>32)J="ipv6";else J=z9(J);let $=4;if(J==="ipv6")$=16;const X=SJ.alloc($);for(let Y=0,Q=X.length;Y<Q;++Y){let K=8;if(Z<8)K=Z;Z-=K,X[Y]=~(255>>K)&255}return x.toString(X)};x.mask=function(Z,J){Z=x.toBuffer(Z),J=x.toBuffer(J);const $=SJ.alloc(Math.max(Z.length,J.length));let X;if(Z.length===J.length)for(X=0;X<Z.length;X++)$[X]=Z[X]&J[X];else if(J.length===4)for(X=0;X<J.length;X++)$[X]=Z[Z.length-4+X]&J[X];else{for(X=0;X<$.length-6;X++)$[X]=0;$[10]=255,$[11]=255;for(X=0;X<Z.length;X++)$[X+12]=Z[X]&J[X+12];X+=12}for(;X<$.length;X++)$[X]=0;return x.toString($)};x.cidr=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.mask($,X)};x.subnet=function(Z,J){const $=x.toLong(x.mask(Z,J)),X=x.toBuffer(J);let Y=0;for(let K=0;K<X.length;K++)if(X[K]===255)Y+=8;else{let G=X[K]&255;while(G)G=G<<1&255,Y++}const Q=2**(32-Y);return{networkAddress:x.fromLong($),firstAddress:Q<=2?x.fromLong($):x.fromLong($+1),lastAddress:Q<=2?x.fromLong($+Q-1):x.fromLong($+Q-2),broadcastAddress:x.fromLong($+Q-1),subnetMask:J,subnetMaskLength:Y,numHosts:Q<=2?Q:Q-2,length:Q,contains(K){return $===x.toLong(x.mask(K,J))}}};x.cidrSubnet=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.subnet($,X)};x.not=function(Z){const J=x.toBuffer(Z);for(let $=0;$<J.length;$++)J[$]=255^J[$];return x.toString(J)};x.or=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let Q=0;Q<Z.length;++Q)Z[Q]|=J[Q];return x.toString(Z)}let $=Z,X=J;if(J.length>Z.length)$=J,X=Z;const Y=$.length-X.length;for(let Q=Y;Q<$.length;++Q)$[Q]|=X[Q-Y];return x.toString($)};x.isEqual=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let X=0;X<Z.length;X++)if(Z[X]!==J[X])return!1;return!0}if(J.length===4){const X=J;J=Z,Z=X}for(let X=0;X<10;X++)if(J[X]!==0)return!1;const $=J.readUInt16BE(10);if($!==0&&$!==65535)return!1;for(let X=0;X<4;X++)if(Z[X]!==J[X+12])return!1;return!0};x.isPrivate=function(Z){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^f[cd][0-9a-f]{2}:/i.test(Z)||/^fe80:/i.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.isPublic=function(Z){return!x.isPrivate(Z)};x.isLoopback=function(Z){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(Z)||/^fe80::1$/.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.loopback=function(Z){if(Z=z9(Z),Z!=="ipv4"&&Z!=="ipv6")throw new Error("family must be ipv4 or ipv6");return Z==="ipv4"?"127.0.0.1":"fe80::1"};x.address=function(Z,J){const $=wl.networkInterfaces();if(J=z9(J),Z&&Z!=="private"&&Z!=="public"){const Y=$[Z].filter((Q)=>{return z9(Q.family)===J});if(Y.length===0)return;return Y[0].address}const X=Object.keys($).map((Y)=>{const Q=$[Y].filter((K)=>{if(K.family=z9(K.family),K.family!==J||x.isLoopback(K.address))return!1;if(!Z)return!0;return Z==="public"?x.isPrivate(K.address):x.isPublic(K.address)});return Q.length?Q[0].address:void 0}).filter(Boolean);return!X.length?x.loopback(J):X[0]};x.toLong=function(Z){let J=0;return Z.split(".").forEach(($)=>{J<<=8,J+=parseInt($)}),J>>>0};x.fromLong=function(Z){return`${Z>>>24}.${Z>>16&255}.${Z>>8&255}.${Z&255}`}});var CD=z((BD)=>{var Dl=function(Z){if(!ID.Buffer.isEncoding(Z))throw new Error(h4.INVALID_ENCODING)},ED=function(Z){return typeof Z==="number"&&isFinite(Z)&&Nl(Z)},ND=function(Z,J){if(typeof Z==="number"){if(!ED(Z)||Z<0)throw new Error(J?h4.INVALID_OFFSET:h4.INVALID_LENGTH)}else throw new Error(J?h4.INVALID_OFFSET_NON_NUMBER:h4.INVALID_LENGTH_NON_NUMBER)},Tl=function(Z){ND(Z,!1)},Il=function(Z){ND(Z,!0)},El=function(Z,J){if(Z<0||Z>J.length)throw new Error(h4.INVALID_TARGET_OFFSET)},Nl=function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z},Bl=function(Z){if(typeof BigInt==="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof ID.Buffer.prototype[Z]==="undefined")throw new Error(`Platform does not support Buffer.prototype.${Z}.`)};Object.defineProperty(BD,"__esModule",{value:!0});var ID=import.meta.require("buffer"),h4={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};BD.ERRORS=h4;BD.checkEncoding=Dl;BD.isFiniteInteger=ED;BD.checkLengthValue=Tl;BD.checkOffsetValue=Il;BD.checkTargetOffset=El;BD.bigIntAndBufferInt64Check=Bl});var SD=z((OD)=>{Object.defineProperty(OD,"__esModule",{value:!0});var c=CD(),hD=4096,xl="utf8";class IQ{constructor(Z){if(this.length=0,this._encoding=xl,this._writeOffset=0,this._readOffset=0,IQ.isSmartBufferOptions(Z)){if(Z.encoding)c.checkEncoding(Z.encoding),this._encoding=Z.encoding;if(Z.size)if(c.isFiniteInteger(Z.size)&&Z.size>0)this._buff=Buffer.allocUnsafe(Z.size);else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(Z.buff)if(Buffer.isBuffer(Z.buff))this._buff=Z.buff,this.length=Z.buff.length;else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(hD)}else{if(typeof Z!=="undefined")throw new Error(c.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(hD)}}static fromSize(Z,J){return new this({size:Z,encoding:J})}static fromBuffer(Z,J){return new this({buff:Z,encoding:J})}static fromOptions(Z){return new this(Z)}static isSmartBufferOptions(Z){const J=Z;return J&&(J.encoding!==void 0||J.size!==void 0||J.buff!==void 0)}readInt8(Z){return this._readNumberValue(Buffer.prototype.readInt8,1,Z)}readInt16BE(Z){return this._readNumberValue(Buffer.prototype.readInt16BE,2,Z)}readInt16LE(Z){return this._readNumberValue(Buffer.prototype.readInt16LE,2,Z)}readInt32BE(Z){return this._readNumberValue(Buffer.prototype.readInt32BE,4,Z)}readInt32LE(Z){return this._readNumberValue(Buffer.prototype.readInt32LE,4,Z)}readBigInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,Z)}readBigInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,Z)}writeInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt8,1,Z,J),this}insertInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt8,1,Z,J)}writeInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}insertInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}writeInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}insertInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}writeInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}insertInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}writeInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}insertInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}writeBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}insertBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}writeBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}insertBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}readUInt8(Z){return this._readNumberValue(Buffer.prototype.readUInt8,1,Z)}readUInt16BE(Z){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,Z)}readUInt16LE(Z){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,Z)}readUInt32BE(Z){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,Z)}readUInt32LE(Z){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,Z)}readBigUInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,Z)}readBigUInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,Z)}writeUInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}insertUInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}writeUInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}insertUInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}writeUInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}insertUInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}writeUInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}insertUInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}writeUInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}insertUInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}writeBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}insertBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}writeBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}insertBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}readFloatBE(Z){return this._readNumberValue(Buffer.prototype.readFloatBE,4,Z)}readFloatLE(Z){return this._readNumberValue(Buffer.prototype.readFloatLE,4,Z)}writeFloatBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}insertFloatBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}writeFloatLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}insertFloatLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}readDoubleBE(Z){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,Z)}readDoubleLE(Z){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,Z)}writeDoubleBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}insertDoubleBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}writeDoubleLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}insertDoubleLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}readString(Z,J){let $;if(typeof Z==="number")c.checkLengthValue(Z),$=Math.min(Z,this.length-this._readOffset);else J=Z,$=this.length-this._readOffset;if(typeof J!=="undefined")c.checkEncoding(J);const X=this._buff.slice(this._readOffset,this._readOffset+$).toString(J||this._encoding);return this._readOffset+=$,X}insertString(Z,J,$){return c.checkOffsetValue(J),this._handleString(Z,!0,J,$)}writeString(Z,J,$){return this._handleString(Z,!1,J,$)}readStringNT(Z){if(typeof Z!=="undefined")c.checkEncoding(Z);let J=this.length;for(let X=this._readOffset;X<this.length;X++)if(this._buff[X]===0){J=X;break}const $=this._buff.slice(this._readOffset,J);return this._readOffset=J+1,$.toString(Z||this._encoding)}insertStringNT(Z,J,$){return c.checkOffsetValue(J),this.insertString(Z,J,$),this.insertUInt8(0,J+Z.length),this}writeStringNT(Z,J,$){return this.writeString(Z,J,$),this.writeUInt8(0,typeof J==="number"?J+Z.length:this.writeOffset),this}readBuffer(Z){if(typeof Z!=="undefined")c.checkLengthValue(Z);const J=typeof Z==="number"?Z:this.length,$=Math.min(this.length,this._readOffset+J),X=this._buff.slice(this._readOffset,$);return this._readOffset=$,X}insertBuffer(Z,J){return c.checkOffsetValue(J),this._handleBuffer(Z,!0,J)}writeBuffer(Z,J){return this._handleBuffer(Z,!1,J)}readBufferNT(){let Z=this.length;for(let $=this._readOffset;$<this.length;$++)if(this._buff[$]===0){Z=$;break}const J=this._buff.slice(this._readOffset,Z);return this._readOffset=Z+1,J}insertBufferNT(Z,J){return c.checkOffsetValue(J),this.insertBuffer(Z,J),this.insertUInt8(0,J+Z.length),this}writeBufferNT(Z,J){if(typeof J!=="undefined")c.checkOffsetValue(J);return this.writeBuffer(Z,J),this.writeUInt8(0,typeof J==="number"?J+Z.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._readOffset=Z}get writeOffset(){return this._writeOffset}set writeOffset(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._writeOffset=Z}get encoding(){return this._encoding}set encoding(Z){c.checkEncoding(Z),this._encoding=Z}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(Z){const J=typeof Z==="string"?Z:this._encoding;return c.checkEncoding(J),this._buff.toString(J,0,this.length)}destroy(){return this.clear(),this}_handleString(Z,J,$,X){let Y=this._writeOffset,Q=this._encoding;if(typeof $==="number")Y=$;else if(typeof $==="string")c.checkEncoding($),Q=$;if(typeof X==="string")c.checkEncoding(X),Q=X;const K=Buffer.byteLength(Z,Q);if(J)this.ensureInsertable(K,Y);else this._ensureWriteable(K,Y);if(this._buff.write(Z,Y,K,Q),J)this._writeOffset+=K;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,Y+K);else this._writeOffset+=K;return this}_handleBuffer(Z,J,$){const X=typeof $==="number"?$:this._writeOffset;if(J)this.ensureInsertable(Z.length,X);else this._ensureWriteable(Z.length,X);if(Z.copy(this._buff,X),J)this._writeOffset+=Z.length;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,X+Z.length);else this._writeOffset+=Z.length;return this}ensureReadable(Z,J){let $=this._readOffset;if(typeof J!=="undefined")c.checkOffsetValue(J),$=J;if($<0||$+Z>this.length)throw new Error(c.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(Z,J){if(c.checkOffsetValue(J),this._ensureCapacity(this.length+Z),J<this.length)this._buff.copy(this._buff,J+Z,J,this._buff.length);if(J+Z>this.length)this.length=J+Z;else this.length+=Z}_ensureWriteable(Z,J){const $=typeof J==="number"?J:this._writeOffset;if(this._ensureCapacity($+Z),$+Z>this.length)this.length=$+Z}_ensureCapacity(Z){const J=this._buff.length;if(Z>J){let $=this._buff,X=J*3/2+1;if(X<Z)X=Z;this._buff=Buffer.allocUnsafe(X),$.copy(this._buff,0,0,J)}}_readNumberValue(Z,J,$){this.ensureReadable(J,$);const X=Z.call(this._buff,typeof $==="number"?$:this._readOffset);if(typeof $==="undefined")this._readOffset+=J;return X}_insertNumberValue(Z,J,$,X){return c.checkOffsetValue(X),this.ensureInsertable(J,X),Z.call(this._buff,$,X),this._writeOffset+=J,this}_writeNumberValue(Z,J,$,X){if(typeof X==="number"){if(X<0)throw new Error(c.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);c.checkOffsetValue(X)}const Y=typeof X==="number"?X:this._writeOffset;if(this._ensureWriteable(J,Y),Z.call(this._buff,$,Y),typeof X==="number")this._writeOffset=Math.max(this._writeOffset,Y+J);else this._writeOffset+=J;return this}}OD.SmartBuffer=IQ});var SQ=z((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.SOCKS5_NO_ACCEPTABLE_AUTH=kD.SOCKS5_CUSTOM_AUTH_END=kD.SOCKS5_CUSTOM_AUTH_START=kD.SOCKS_INCOMING_PACKET_SIZES=kD.SocksClientState=kD.Socks5Response=kD.Socks5HostType=kD.Socks5Auth=kD.Socks4Response=kD.SocksCommand=kD.ERRORS=kD.DEFAULT_TIMEOUT=void 0;var fl=30000;kD.DEFAULT_TIMEOUT=fl;var gl={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};kD.ERRORS=gl;var bl={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:(Z)=>Z+7,Socks4Response:8};kD.SOCKS_INCOMING_PACKET_SIZES=bl;var EQ;(function(Z){Z[Z.connect=1]="connect",Z[Z.bind=2]="bind",Z[Z.associate=3]="associate"})(EQ||(EQ={}));kD.SocksCommand=EQ;var NQ;(function(Z){Z[Z.Granted=90]="Granted",Z[Z.Failed=91]="Failed",Z[Z.Rejected=92]="Rejected",Z[Z.RejectedIdent=93]="RejectedIdent"})(NQ||(NQ={}));kD.Socks4Response=NQ;var BQ;(function(Z){Z[Z.NoAuth=0]="NoAuth",Z[Z.GSSApi=1]="GSSApi",Z[Z.UserPass=2]="UserPass"})(BQ||(BQ={}));kD.Socks5Auth=BQ;var ml=128;kD.SOCKS5_CUSTOM_AUTH_START=ml;var ul=254;kD.SOCKS5_CUSTOM_AUTH_END=ul;var dl=255;kD.SOCKS5_NO_ACCEPTABLE_AUTH=dl;var CQ;(function(Z){Z[Z.Granted=0]="Granted",Z[Z.Failure=1]="Failure",Z[Z.NotAllowed=2]="NotAllowed",Z[Z.NetworkUnreachable=3]="NetworkUnreachable",Z[Z.HostUnreachable=4]="HostUnreachable",Z[Z.ConnectionRefused=5]="ConnectionRefused",Z[Z.TTLExpired=6]="TTLExpired",Z[Z.CommandNotSupported=7]="CommandNotSupported",Z[Z.AddressNotSupported=8]="AddressNotSupported"})(CQ||(CQ={}));kD.Socks5Response=CQ;var hQ;(function(Z){Z[Z.IPv4=1]="IPv4",Z[Z.Hostname=3]="Hostname",Z[Z.IPv6=4]="IPv6"})(hQ||(hQ={}));kD.Socks5HostType=hQ;var OQ;(function(Z){Z[Z.Created=0]="Created",Z[Z.Connecting=1]="Connecting",Z[Z.Connected=2]="Connected",Z[Z.SentInitialHandshake=3]="SentInitialHandshake",Z[Z.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",Z[Z.SentAuthentication=5]="SentAuthentication",Z[Z.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",Z[Z.SentFinalHandshake=7]="SentFinalHandshake",Z[Z.ReceivedFinalResponse=8]="ReceivedFinalResponse",Z[Z.BoundWaitingForConnection=9]="BoundWaitingForConnection",Z[Z.Established=10]="Established",Z[Z.Disconnected=11]="Disconnected",Z[Z.Error=99]="Error"})(OQ||(OQ={}));kD.SocksClientState=OQ});var kQ=z((xD)=>{var Za=function(Z){for(let J=Z.length-1;J>0;J--){const $=Math.floor(Math.random()*(J+1));[Z[J],Z[$]]=[Z[$],Z[J]]}};Object.defineProperty(xD,"__esModule",{value:!0});xD.shuffleArray=xD.SocksClientError=void 0;class _D extends Error{constructor(Z,J){super(Z);this.options=J}}xD.SocksClientError=_D;xD.shuffleArray=Za});var pD=z((uD)=>{var Xa=function(Z,J=["connect","bind","associate"]){if(!u1.SocksCommand[Z.command])throw new U0.SocksClientError(u1.ERRORS.InvalidSocksCommand,Z);if(J.indexOf(Z.command)===-1)throw new U0.SocksClientError(u1.ERRORS.InvalidSocksCommandForOperation,Z);if(!gD(Z.destination))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!bD(Z.proxy))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsProxy,Z);if(fD(Z.proxy,Z),Z.timeout&&!mD(Z.timeout))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsTimeout,Z);if(Z.existing_socket&&!(Z.existing_socket instanceof $a.Duplex))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsExistingSocket,Z)},Ya=function(Z){if(Z.command!=="connect")throw new U0.SocksClientError(u1.ERRORS.InvalidSocksCommandChain,Z);if(!gD(Z.destination))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!(Z.proxies&&Array.isArray(Z.proxies)&&Z.proxies.length>=2))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsProxiesLength,Z);if(Z.proxies.forEach((J)=>{if(!bD(J))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsProxy,Z);fD(J,Z)}),Z.timeout&&!mD(Z.timeout))throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsTimeout,Z)},fD=function(Z,J){if(Z.custom_auth_method!==void 0){if(Z.custom_auth_method<u1.SOCKS5_CUSTOM_AUTH_START||Z.custom_auth_method>u1.SOCKS5_CUSTOM_AUTH_END)throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsCustomAuthRange,J);if(Z.custom_auth_request_handler===void 0||typeof Z.custom_auth_request_handler!=="function")throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_size===void 0)throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_handler===void 0||typeof Z.custom_auth_response_handler!=="function")throw new U0.SocksClientError(u1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J)}},gD=function(Z){return Z&&typeof Z.host==="string"&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535},bD=function(Z){return Z&&(typeof Z.host==="string"||typeof Z.ipaddress==="string")&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535&&(Z.type===4||Z.type===5)},mD=function(Z){return typeof Z==="number"&&Z>0};Object.defineProperty(uD,"__esModule",{value:!0});uD.validateSocksClientChainOptions=uD.validateSocksClientOptions=void 0;var U0=kQ(),u1=SQ(),$a=import.meta.require("stream");uD.validateSocksClientOptions=Xa;uD.validateSocksClientChainOptions=Ya});var iD=z((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.ReceiveBuffer=void 0;class cD{constructor(Z=4096){this.buffer=Buffer.allocUnsafe(Z),this.offset=0,this.originalSize=Z}get length(){return this.offset}append(Z){if(!Buffer.isBuffer(Z))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+Z.length>=this.buffer.length){const J=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+Z.length)),J.copy(this.buffer)}return Z.copy(this.buffer,this.offset),this.offset+=Z.length}peek(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,Z)}get(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const J=Buffer.allocUnsafe(Z);return this.buffer.slice(0,Z).copy(J),this.buffer.copyWithin(0,Z,Z+this.offset-Z),this.offset-=Z,J}}lD.ReceiveBuffer=cD});var sD=z((o6)=>{var k7=o6&&o6.__awaiter||function(Z,J,$,X){function Y(Q){return Q instanceof $?Q:new $(function(K){K(Q)})}return new($||($=Promise))(function(Q,K){function G(q){try{W(X.next(q))}catch(H){K(H)}}function F(q){try{W(X.throw(q))}catch(H){K(H)}}function W(q){q.done?Q(q.value):Y(q.value).then(G,F)}W((X=X.apply(Z,J||[])).next())})};Object.defineProperty(o6,"__esModule",{value:!0});o6.SocksClientError=o6.SocksClient=void 0;var Ka=import.meta.require("events"),y7=import.meta.require("net"),_0=TD(),P0=SD(),I=SQ(),yQ=pD(),Ga=iD(),_Q=kQ();Object.defineProperty(o6,"SocksClientError",{enumerable:!0,get:function(){return _Q.SocksClientError}});class kJ extends Ka.EventEmitter{constructor(Z){super();this.options=Object.assign({},Z),yQ.validateSocksClientOptions(Z),this.setState(I.SocksClientState.Created)}static createConnection(Z,J){return new Promise(($,X)=>{try{yQ.validateSocksClientOptions(Z,["connect"])}catch(Q){if(typeof J==="function")return J(Q),$(Q);else return X(Q)}const Y=new kJ(Z);Y.connect(Z.existing_socket),Y.once("established",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(null,Q),$(Q);else $(Q)}),Y.once("error",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(Q),$(Q);else X(Q)})})}static createConnectionChain(Z,J){return new Promise(($,X)=>k7(this,void 0,void 0,function*(){try{yQ.validateSocksClientChainOptions(Z)}catch(Y){if(typeof J==="function")return J(Y),$(Y);else return X(Y)}if(Z.randomizeChain)_Q.shuffleArray(Z.proxies);try{let Y;for(let Q=0;Q<Z.proxies.length;Q++){const K=Z.proxies[Q],G=Q===Z.proxies.length-1?Z.destination:{host:Z.proxies[Q+1].host||Z.proxies[Q+1].ipaddress,port:Z.proxies[Q+1].port},F=yield kJ.createConnection({command:"connect",proxy:K,destination:G,existing_socket:Y});Y=Y||F.socket}if(typeof J==="function")J(null,{socket:Y}),$({socket:Y});else $({socket:Y})}catch(Y){if(typeof J==="function")J(Y),$(Y);else X(Y)}}))}static createUDPFrame(Z){const J=new P0.SmartBuffer;if(J.writeUInt16BE(0),J.writeUInt8(Z.frameNumber||0),y7.isIPv4(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv4),J.writeUInt32BE(_0.toLong(Z.remoteHost.host));else if(y7.isIPv6(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv6),J.writeBuffer(_0.toBuffer(Z.remoteHost.host));else J.writeUInt8(I.Socks5HostType.Hostname),J.writeUInt8(Buffer.byteLength(Z.remoteHost.host)),J.writeString(Z.remoteHost.host);return J.writeUInt16BE(Z.remoteHost.port),J.writeBuffer(Z.data),J.toBuffer()}static parseUDPFrame(Z){const J=P0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $=J.readUInt8(),X=J.readUInt8();let Y;if(X===I.Socks5HostType.IPv4)Y=_0.fromLong(J.readUInt32BE());else if(X===I.Socks5HostType.IPv6)Y=_0.toString(J.readBuffer(16));else Y=J.readString(J.readUInt8());const Q=J.readUInt16BE();return{frameNumber:$,remoteHost:{host:Y,port:Q},data:J.readBuffer()}}setState(Z){if(this.state!==I.SocksClientState.Error)this.state=Z}connect(Z){this.onDataReceived=($)=>this.onDataReceivedHandler($),this.onClose=()=>this.onCloseHandler(),this.onError=($)=>this.onErrorHandler($),this.onConnect=()=>this.onConnectHandler();const J=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||I.DEFAULT_TIMEOUT);if(J.unref&&typeof J.unref==="function")J.unref();if(Z)this.socket=Z;else this.socket=new y7.Socket;if(this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(I.SocksClientState.Connecting),this.receiveBuffer=new Ga.ReceiveBuffer,Z)this.socket.emit("connect");else if(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null)this.socket.setNoDelay(!!this.options.set_tcp_nodelay);this.prependOnceListener("established",($)=>{setImmediate(()=>{if(this.receiveBuffer.length>0){const X=this.receiveBuffer.get(this.receiveBuffer.length);$.socket.emit("data",X)}$.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.BoundWaitingForConnection)this.closeSocket(I.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){if(this.setState(I.SocksClientState.Connected),this.options.proxy.type===4)this.sendSocks4InitialHandshake();else this.sendSocks5InitialHandshake();this.setState(I.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(Z){this.receiveBuffer.append(Z),this.processData()}processData(){while(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize)if(this.state===I.SocksClientState.SentInitialHandshake)if(this.options.proxy.type===4)this.handleSocks4FinalHandshakeResponse();else this.handleInitialSocks5HandshakeResponse();else if(this.state===I.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===I.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===I.SocksClientState.BoundWaitingForConnection)if(this.options.proxy.type===4)this.handleSocks4IncomingConnectionResponse();else this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(I.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(I.ERRORS.SocketClosed)}onErrorHandler(Z){this.closeSocket(Z.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(Z){if(this.state!==I.SocksClientState.Error)this.setState(I.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new _Q.SocksClientError(Z,this.options))}sendSocks4InitialHandshake(){const Z=this.options.proxy.userId||"",J=new P0.SmartBuffer;if(J.writeUInt8(4),J.writeUInt8(I.SocksCommand[this.options.command]),J.writeUInt16BE(this.options.destination.port),y7.isIPv4(this.options.destination.host))J.writeBuffer(_0.toBuffer(this.options.destination.host)),J.writeStringNT(Z);else J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(1),J.writeStringNT(Z),J.writeStringNT(this.options.destination.host);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(J.toBuffer())}handleSocks4FinalHandshakeResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedConnection} - (${I.Socks4Response[Z[1]]})`);else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind){const J=P0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:_0.fromLong(J.readUInt32BE())};if($.host==="0.0.0.0")$.host=this.options.proxy.ipaddress;this.setState(I.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:$,socket:this.socket})}else this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${I.Socks4Response[Z[1]]})`);else{const J=P0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:_0.fromLong(J.readUInt32BE())};this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}sendSocks5InitialHandshake(){const Z=new P0.SmartBuffer,J=[I.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password)J.push(I.Socks5Auth.UserPass);if(this.options.proxy.custom_auth_method!==void 0)J.push(this.options.proxy.custom_auth_method);Z.writeUInt8(5),Z.writeUInt8(J.length);for(let $ of J)Z.writeUInt8($);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const Z=this.receiveBuffer.get(2);if(Z[0]!==5)this.closeSocket(I.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);else if(Z[1]===I.SOCKS5_NO_ACCEPTABLE_AUTH)this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);else if(Z[1]===I.Socks5Auth.NoAuth)this.socks5ChosenAuthType=I.Socks5Auth.NoAuth,this.sendSocks5CommandRequest();else if(Z[1]===I.Socks5Auth.UserPass)this.socks5ChosenAuthType=I.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication();else if(Z[1]===this.options.proxy.custom_auth_method)this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication();else this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const Z=this.options.proxy.userId||"",J=this.options.proxy.password||"",$=new P0.SmartBuffer;$.writeUInt8(1),$.writeUInt8(Buffer.byteLength(Z)),$.writeString(Z),$.writeUInt8(Buffer.byteLength(J)),$.writeString(J),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write($.toBuffer()),this.setState(I.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return k7(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(I.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(Z){return k7(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(Z)})}handleSocks5AuthenticationNoAuthHandshakeResponse(Z){return k7(this,void 0,void 0,function*(){return Z[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(Z){return k7(this,void 0,void 0,function*(){return Z[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return k7(this,void 0,void 0,function*(){this.setState(I.SocksClientState.ReceivedAuthenticationResponse);let Z=!1;if(this.socks5ChosenAuthType===I.Socks5Auth.NoAuth)Z=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===I.Socks5Auth.UserPass)Z=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method)Z=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));if(!Z)this.closeSocket(I.ERRORS.Socks5AuthenticationFailed);else this.sendSocks5CommandRequest()})}sendSocks5CommandRequest(){const Z=new P0.SmartBuffer;if(Z.writeUInt8(5),Z.writeUInt8(I.SocksCommand[this.options.command]),Z.writeUInt8(0),y7.isIPv4(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv4),Z.writeBuffer(_0.toBuffer(this.options.destination.host));else if(y7.isIPv6(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv6),Z.writeBuffer(_0.toBuffer(this.options.destination.host));else Z.writeUInt8(I.Socks5HostType.Hostname),Z.writeUInt8(this.options.destination.host.length),Z.writeString(this.options.destination.host);Z.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=P0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:_0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=P0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=P0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:_0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}if(this.setState(I.SocksClientState.ReceivedFinalResponse),I.SocksCommand[this.options.command]===I.SocksCommand.connect)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind)this.setState(I.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.associate)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}handleSocks5IncomingConnectionResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=P0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:_0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=P0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=P0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:_0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}o6.SocksClient=kJ});var nD=z((O4)=>{var Fa=O4&&O4.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),Wa=O4&&O4.__exportStar||function(Z,J){for(var $ in Z)if($!=="default"&&!Object.prototype.hasOwnProperty.call(J,$))Fa(J,Z,$)};Object.defineProperty(O4,"__esModule",{value:!0});Wa(sD(),O4)});var JT=z((eD)=>{Object.defineProperty(eD,"__esModule",{value:!0});eD.MongoCR=void 0;var tD=import.meta.require("crypto"),qa=h(),rD=_(),Ha=F6();class oD extends Ha.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new qa.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await J.commandAsync(rD.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=tD.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),F=tD.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),W={authenticate:1,user:X,nonce:K,key:F};await J.commandAsync(rD.ns(`${Q}.\$cmd`),W,void 0)}}eD.MongoCR=oD});var QT=z((XT)=>{async function Ra(Z){function J($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new S4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new Ma.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:Z.source,mechanism:ja.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(e6.credentialProvider??(e6.credentialProvider=yJ.getAwsCredentialProvider()),"kModuleError"in e6.credentialProvider){if(xQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return J(await z6.request(`${wa}${xQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await z6.request(`${fQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await z6.request(`${fQ}/${$T}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await z6.request(`${fQ}/${$T}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return J(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=xQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!Aa.has(X),K=Y&&Q?e6.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):e6.credentialProvider.fromNodeProviderChain();try{const G=await K();return J({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new S4.MongoAWSError(G.message)}}}var Pa=function(Z){const J=Z.split(".");if(J.length===1||J[1]==="amazonaws")return"us-east-1";return J[1]};Object.defineProperty(XT,"__esModule",{value:!0});XT.MongoDBAWS=void 0;var za=import.meta.require("crypto"),xQ=import.meta.require("process"),Ua=import.meta.require("util"),vQ=D1(),yJ=R7(),S4=h(),z6=_(),Va=F6(),Ma=QJ(),ja=_8(),Aa=new Set(["ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),La=110,wa="http://169.254.170.2",fQ="http://169.254.169.254",$T="/latest/meta-data/iam/security-credentials",gQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class e6 extends Va.AuthProvider{constructor(){super();this.randomBytesAsync=Ua.promisify(za.randomBytes)}async auth(Z){const{connection:J}=Z;if(!Z.credentials)throw new S4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in yJ.aws4)throw yJ.aws4.kModuleError;const{sign:$}=yJ.aws4;if(z6.maxWireVersion(J)<9)throw new S4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!Z.credentials.username)Z.credentials=await Ra(Z.credentials);const{credentials:X}=Z,Y=X.username,Q=X.password,K=X.mechanismProperties.AWS_SESSION_TOKEN,G=Y&&Q&&K?{accessKeyId:Y,secretAccessKey:Q,sessionToken:K}:Y&&Q?{accessKeyId:Y,secretAccessKey:Q}:void 0,F=X.source,W=await this.randomBytesAsync(32),q={saslStart:1,mechanism:"MONGODB-AWS",payload:vQ.serialize({r:W,p:La},gQ)},H=await J.commandAsync(z6.ns(`${F}.\$cmd`),q,void 0),U=vQ.deserialize(H.payload.buffer,gQ),j=U.h,V=U.s.buffer;if(V.length!==64)throw new S4.MongoRuntimeError(`Invalid server nonce length ${V.length}, expected 64`);if(!z6.ByteUtils.equals(V.subarray(0,W.byteLength),W))throw new S4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new S4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const L="Action=GetCallerIdentity&Version=2011-06-15",D=$({method:"POST",host:j,region:Pa(U.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":L.length,"X-MongoDB-Server-Nonce":z6.ByteUtils.toBase64(V),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:L},G),N={a:D.headers.Authorization,d:D.headers["X-Amz-Date"]};if(K)N.t=K;const w={saslContinue:1,conversationId:1,payload:vQ.serialize(N,gQ)};await J.commandAsync(z6.ns(`${F}.\$cmd`),w,void 0)}}e6.credentialProvider=null;XT.MongoDBAWS=e6});var mQ=z((GT)=>{var bQ=function(Z){return{saslStart:1,mechanism:Ia.AuthMechanism.MONGODB_OIDC,payload:Da.BSON.serialize({jwt:Z})}};Object.defineProperty(GT,"__esModule",{value:!0});GT.commandDocument=GT.ServiceWorkflow=void 0;var Da=M5(),Ta=_(),Ia=_8();class KT{async execute(Z,J){const $=await this.getToken(J),X=bQ($);return Z.commandAsync(Ta.ns(J.source),X,void 0)}async speculativeAuth(Z){const J=await this.getToken(Z),$=bQ(J);return $.db=Z.source,{speculativeAuthenticate:$}}}GT.ServiceWorkflow=KT;GT.commandDocument=bQ});var zT=z((qT)=>{Object.defineProperty(qT,"__esModule",{value:!0});qT.AwsServiceWorkflow=void 0;var Na=import.meta.require("fs"),Ba=h(),Ca=mQ(),ha="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class WT extends Ca.ServiceWorkflow{constructor(){super()}async getToken(){const Z=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!Z)throw new Ba.MongoAWSError(ha);return Na.promises.readFile(Z,"utf8")}}qT.AwsServiceWorkflow=WT});var _J=z((MT)=>{Object.defineProperty(MT,"__esModule",{value:!0});MT.Cache=MT.ExpiringCacheEntry=void 0;var Oa=300000;class UT{constructor(Z){this.expiration=this.expirationTime(Z)}isValid(){return this.expiration-Date.now()>Oa}expirationTime(Z){return Date.now()+Z*1000}}MT.ExpiringCacheEntry=UT;class VT{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(Z,J,$){return JSON.stringify([Z,J,$])}}MT.Cache=VT});var PT=z((wT)=>{Object.defineProperty(wT,"__esModule",{value:!0});wT.AzureTokenCache=wT.AzureTokenEntry=void 0;var AT=_J();class uQ extends AT.ExpiringCacheEntry{constructor(Z,J){super(J);this.token=Z}}wT.AzureTokenEntry=uQ;class LT extends AT.Cache{addEntry(Z,J){const $=new uQ(J.access_token,J.expires_in);return this.entries.set(Z,$),$}cacheKey(Z){return Z}deleteEntry(Z){this.entries.delete(Z)}getEntry(Z){return this.entries.get(Z)}}wT.AzureTokenCache=LT});var NT=z((IT)=>{async function ma(Z){const J=`${va}&resource=${Z}`;return await ya.request(J,{json:!0,headers:fa})}var ua=function(Z){if(Z==null||typeof Z!=="object")return!1;return"access_token"in Z&&"expires_in"in Z};Object.defineProperty(IT,"__esModule",{value:!0});IT.AzureServiceWorkflow=void 0;var DT=h(),ya=_(),_a=PT(),xa=mQ(),va="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",fa=Object.freeze({Metadata:"true",Accept:"application/json"}),ga="Azure endpoint did not return a value with only access_token and expires_in properties",ba="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class TT extends xa.ServiceWorkflow{constructor(){super(...arguments);this.cache=new _a.AzureTokenCache}async getToken(Z){const J=Z?.mechanismProperties.TOKEN_AUDIENCE;if(!J)throw new DT.MongoAzureError(ba);let $;const X=this.cache.getEntry(J);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(J);const Y=await ma(J);if(!ua(Y))throw new DT.MongoAzureError(ga);this.cache.addEntry(J,Y),$=Y.access_token}return $}}IT.AzureServiceWorkflow=TT});var kT=z((OT)=>{var BT=function(Z){let J=Promise.resolve();return async($,X)=>{return await J,J=J.then(()=>Z($,X)),J}},la=function(Z,J){let $=U9.get(Z),X=U9.get(J??CT);if($==null)k4++,$=k4,U9.set(Z,k4);if(X==null&&J)k4++,X=k4,U9.set(J,k4);return`${$}-${X}`};Object.defineProperty(OT,"__esModule",{value:!0});OT.CallbackLockCache=void 0;var da=h(),pa=_J(),ca="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",k4=0,CT=async()=>({accessToken:"test"}),U9=new WeakMap;U9.set(CT,k4);class hT extends pa.Cache{getEntry(Z,J){const $=J.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=J.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new da.MongoInvalidArgumentError(ca);const Y=la($,X),Q=this.cacheKey(Z.address,J.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(Z,J,$,X){const Y={requestCallback:BT($),refreshCallback:X?BT(X):void 0,callbackHash:J};return this.entries.set(Z,Y),Y}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}OT.CallbackLockCache=hT});var fT=z((xT)=>{Object.defineProperty(xT,"__esModule",{value:!0});xT.TokenEntryCache=xT.TokenEntry=void 0;var yT=_J(),aa=0;class dQ extends yT.ExpiringCacheEntry{constructor(Z,J,$){super($);this.tokenResult=Z,this.serverInfo=J}}xT.TokenEntry=dQ;class _T extends yT.Cache{addEntry(Z,J,$,X,Y){const Q=new dQ(X,Y,X.expiresInSeconds??aa);return this.entries.set(this.cacheKey(Z,J,$),Q),Q}deleteEntry(Z,J,$){this.entries.delete(this.cacheKey(Z,J,$))}getEntry(Z,J,$){return this.entries.get(this.cacheKey(Z,J,$))}deleteExpiredEntries(){for(let[Z,J]of this.entries)if(!J.isValid())this.entries.delete(Z)}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}xT.TokenEntryCache=_T});var cT=z((dT)=>{var Zi=function(Z,J){if(J!=null&&typeof J==="number")return{saslContinue:1,conversationId:J,payload:new y4.Binary(y4.BSON.serialize({jwt:Z}))};return{saslStart:1,mechanism:mT.AuthMechanism.MONGODB_OIDC,payload:new y4.Binary(y4.BSON.serialize({jwt:Z}))}},Ji=function(Z){if(Z==null||typeof Z!=="object")return!0;if(!("accessToken"in Z))return!0;return!Object.getOwnPropertyNames(Z).every((J)=>oa.includes(J))},bT=function(Z){const J={};if(Z.username)J.n=Z.username;return{saslStart:1,autoAuthorize:1,mechanism:mT.AuthMechanism.MONGODB_OIDC,payload:new y4.Binary(y4.BSON.serialize(J))}};Object.defineProperty(dT,"__esModule",{value:!0});dT.CallbackWorkflow=void 0;var y4=M5(),pQ=h(),gT=_(),mT=_8(),sa=kT(),na=fT(),ta=0,ra=300,oa=["accessToken","expiresInSeconds","refreshToken"],ea="User provided OIDC callbacks must return a valid object with an accessToken.";class uT{constructor(){this.cache=new na.TokenEntryCache,this.callbackCache=new sa.CallbackLockCache}async speculativeAuth(Z){const J=bT(Z);return J.db=Z.source,{speculativeAuthenticate:J}}async execute(Z,J,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(Z,J),G=this.cache.getEntry(Z.address,J.username,K);let F;if(G)if(G.isValid()&&!$)F=await this.finishAuthentication(Z,J,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const W=await this.fetchAccessToken(Z,J,G.serverInfo,$,K,Y,Q);try{F=await this.finishAuthentication(Z,J,W,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(q){if($&&q instanceof pQ.MongoError&&q.code===pQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(Z.address,J.username,K),F=await this.execute(Z,J,$);else throw q}}else{const W=await this.startAuthentication(Z,J,$,X),q=W.conversationId,H=y4.BSON.deserialize(W.payload.buffer),U=await this.fetchAccessToken(Z,J,H,$,K,Y,Q);F=await this.finishAuthentication(Z,J,U,q)}return F}async startAuthentication(Z,J,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await Z.commandAsync(gT.ns(J.source),bT(J),void 0);return Y}async finishAuthentication(Z,J,$,X){return await Z.commandAsync(gT.ns(J.source),Zi($.accessToken,X),void 0)}async fetchAccessToken(Z,J,$,X,Y,Q,K){const G=this.cache.getEntry(Z.address,J.username,Y);let F;const W={timeoutSeconds:ra,version:ta};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)W.refreshToken=G.tokenResult.refreshToken,F=await K($,W);else F=await Q($,W)}else F=await Q($,W);if(Ji(F))throw this.cache.deleteEntry(Z.address,J.username,Y),new pQ.MongoMissingCredentialsError(ea);return this.cache.deleteExpiredEntries(),this.cache.addEntry(Z.address,J.username||"",Y,F,$),F}}dT.CallbackWorkflow=uT});var rT=z((nT)=>{var lT=function(Z){const{credentials:J}=Z;if(!J)throw new iT.MongoMissingCredentialsError(Ki);return J},aT=function(Z){const J=Z.mechanismProperties.PROVIDER_NAME,$=nT.OIDC_WORKFLOWS.get(J||"callback");if(!$)throw new iT.MongoInvalidArgumentError(`Could not load workflow for provider ${Z.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(nT,"__esModule",{value:!0});nT.MongoDBOIDC=nT.OIDC_WORKFLOWS=void 0;var iT=h(),$i=F6(),Xi=zT(),Yi=NT(),Qi=cT(),Ki="AuthContext must provide credentials.";nT.OIDC_WORKFLOWS=new Map;nT.OIDC_WORKFLOWS.set("callback",new Qi.CallbackWorkflow);nT.OIDC_WORKFLOWS.set("aws",new Xi.AwsServiceWorkflow);nT.OIDC_WORKFLOWS.set("azure",new Yi.AzureServiceWorkflow);class sT extends $i.AuthProvider{constructor(){super()}async auth(Z){const{connection:J,reauthenticating:$,response:X}=Z,Y=lT(Z);await aT(Y).execute(J,Y,$,X)}async prepare(Z,J){const $=lT(J),Y=await aT($).speculativeAuth($);return{...Z,...Y}}}nT.MongoDBOIDC=sT});var JI=z((eT)=>{Object.defineProperty(eT,"__esModule",{value:!0});eT.Plain=void 0;var Gi=D1(),Fi=h(),Wi=_(),qi=F6();class oT extends qi.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new Fi.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Gi.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await J.commandAsync(Wi.ns("$external.$cmd"),K,void 0)}}eT.Plain=oT});var zI=z((qI)=>{var YI=function(Z){return Z.replace("=","=3D").replace(",","=2C")},QI=function(Z,J){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(Z,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(J.toString("base64"),"utf8")])},KI=function(Z,J,$){const X=YI(J.username);return{saslStart:1,mechanism:Z==="sha1"?$I.AuthMechanism.MONGODB_SCRAM_SHA1:$I.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new cQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),QI(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function Ui(Z,J){const{connection:$,credentials:X}=J;if(!X)throw new A8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!J.nonce)throw new A8.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=J.nonce,Q=X.source,K=KI(Z,X,Y),G=await $.commandAsync(fJ.ns(`${Q}.\$cmd`),K,void 0);await GI(Z,G,J)}async function GI(Z,J,$){const{connection:X,credentials:Y}=$;if(!Y)throw new A8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new A8.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=YI(Y.username),F=Y.password;let W;if(Z==="sha256")W="kModuleError"in M9.saslprep||typeof M9.saslprep!=="function"?F:M9.saslprep(F);else W=Vi(G,F);const q=Buffer.isBuffer(J.payload)?new cQ.Binary(J.payload):J.payload,H=XI(q.value()),U=parseInt(H.i,10);if(U&&U<4096)throw new A8.MongoRuntimeError(`Server returned an invalid iteration count ${U}`);const{s:j,r:V}=H;if(V.startsWith("nonce"))throw new A8.MongoRuntimeError(`Server returned an invalid nonce: ${V}`);const L=`c=biws,r=${V}`,D=wi(W,Buffer.from(j,"base64"),U,Z),N=xJ(Z,D,"Client Key"),w=xJ(Z,D,"Server Key"),T=ji(Z,N),f=[QI(G,Q),q.value(),L].join(","),N1=xJ(Z,T,f),c8=`p=${Mi(N,N1)}`,k=[L,c8].join(","),B=xJ(Z,w,f),G1={saslContinue:1,conversationId:J.conversationId,payload:new cQ.Binary(Buffer.from(k))},u=await X.commandAsync(fJ.ns(`${K}.\$cmd`),G1,void 0),v=XI(u.payload.value());if(!Ri(Buffer.from(v.v,"base64"),B))throw new A8.MongoRuntimeError("Server returned an invalid signature");if(u.done!==!1)return;const C={saslContinue:1,conversationId:u.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(fJ.ns(`${K}.\$cmd`),C,void 0)}var XI=function(Z){const J={},$=Z.split(",");for(let X=0;X<$.length;X++){const Y=$[X].split("=");J[Y[0]]=Y[1]}return J},Vi=function(Z,J){if(typeof Z!=="string")throw new A8.MongoInvalidArgumentError("Username must be a string");if(typeof J!=="string")throw new A8.MongoInvalidArgumentError("Password must be a string");if(J.length===0)throw new A8.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=Z4.createHash("md5")}catch(X){if(Z4.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${Z}:mongo:${J}`,"utf8"),$.digest("hex")},Mi=function(Z,J){if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);if(!Buffer.isBuffer(J))J=Buffer.from(J);const $=Math.max(Z.length,J.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(Z[Y]^J[Y]);return Buffer.from(X).toString("base64")},ji=function(Z,J){return Z4.createHash(Z).update(J).digest()},xJ=function(Z,J,$){return Z4.createHmac(Z,J).update($).digest()},Ai=function(){vJ={},lQ=0},wi=function(Z,J,$,X){const Y=[Z,J.toString("base64"),$].join("_");if(vJ[Y]!=null)return vJ[Y];const Q=Z4.pbkdf2Sync(Z,J,$,Li[X],X);if(lQ>=200)Ai();return vJ[Y]=Q,lQ+=1,Q},Ri=function(Z,J){if(Z.length!==J.length)return!1;if(typeof Z4.timingSafeEqual==="function")return Z4.timingSafeEqual(Z,J);let $=0;for(let X=0;X<Z.length;X++)$|=Z[X]^J[X];return $===0};Object.defineProperty(qI,"__esModule",{value:!0});qI.ScramSHA256=qI.ScramSHA1=void 0;var Z4=import.meta.require("crypto"),Hi=import.meta.require("util"),cQ=D1(),M9=R7(),A8=h(),fJ=_(),zi=F6(),$I=_8();class aQ extends zi.AuthProvider{constructor(Z){super();this.cryptoMethod=Z||"sha1",this.randomBytesAsync=Hi.promisify(Z4.randomBytes)}async prepare(Z,J){const $=this.cryptoMethod,X=J.credentials;if(!X)throw new A8.MongoMissingCredentialsError("AuthContext must provide credentials.");if($==="sha256"&&(("kModuleError"in M9.saslprep)||typeof M9.saslprep!=="function"))fJ.emitWarning("Warning: no saslprep library specified. Passwords will not be sanitized");const Y=await this.randomBytesAsync(24);return J.nonce=Y,{...Z,speculativeAuthenticate:{...KI($,X,Y),db:X.source}}}async auth(Z){const{reauthenticating:J,response:$}=Z;if($?.speculativeAuthenticate&&!J)return GI(this.cryptoMethod,$.speculativeAuthenticate,Z);return Ui(this.cryptoMethod,Z)}}var vJ={},lQ=0,Li={sha256:32,sha1:20};class FI extends aQ{constructor(){super("sha1")}}qI.ScramSHA1=FI;class WI extends aQ{constructor(){super("sha256")}}qI.ScramSHA256=WI});var LI=z((jI)=>{var VI=function(Z){const J={authenticate:1,mechanism:"MONGODB-X509"};if(Z.username)J.user=Z.username;return J};Object.defineProperty(jI,"__esModule",{value:!0});jI.X509=void 0;var UI=h(),Di=_(),Ti=F6();class MI extends Ti.AuthProvider{async prepare(Z,J){const{credentials:$}=J;if(!$)throw new UI.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...Z,speculativeAuthenticate:VI($)}}async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new UI.MongoMissingCredentialsError("AuthContext must provide credentials.");if(Z.response?.speculativeAuthenticate)return;await J.commandAsync(Di.ns("$external.$cmd"),VI($),void 0)}}jI.X509=MI});var rQ=z((NI)=>{var yi=function(Z,J){sQ({...Z,existingSocket:void 0},($,X)=>{if($||!X)return J($);let Y=Z.connectionType??RI.Connection;if(Z.autoEncrypter)Y=RI.CryptoConnection;const Q=new Y(X,Z);xi(Q,Z).then(()=>J(void 0,Q),(K)=>{Q.destroy({force:!1}),J(K)})})},_i=function(Z,J){const $=Number(Z.maxWireVersion),X=Number(Z.minWireVersion),Y=!Number.isNaN($)&&$>=_7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=_7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${J.hostAddress} reports minimum wire version ${JSON.stringify(Z.minWireVersion)}, but this version of the Node.js Driver requires at most ${_7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${_7.MAX_SUPPORTED_SERVER_VERSION})`;return new v1.MongoCompatibilityError(G)}const K=`Server at ${J.hostAddress} reports maximum wire version ${JSON.stringify(Z.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${_7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${_7.MIN_SUPPORTED_SERVER_VERSION})`;return new v1.MongoCompatibilityError(K)};async function xi(Z,J){const $=J.credentials;if($){if($.mechanism!==e0.AuthMechanism.MONGODB_DEFAULT&&!NI.AUTH_PROVIDERS.get($.mechanism))throw new v1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new Ni.AuthContext(Z,$,J);Z.authContext=X;const Y=await II(X),Q={...J};if(typeof J.connectTimeoutMS==="number")Q.socketTimeoutMS=J.connectTimeoutMS;const K=(new Date()).getTime(),G=await Z.commandAsync(TI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[DI.LEGACY_HELLO_COMMAND];if(G.helloOk)Z.helloOk=!0;const F=_i(G,J);if(F)throw F;if(J.loadBalanced){if(!G.serviceId)throw new v1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(Z.hello=G,Z.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const W=$.resolveAuthMechanism(G),q=NI.AUTH_PROVIDERS.get(W.mechanism);if(!q)throw new v1.MongoInvalidArgumentError(`No AuthProvider for ${W.mechanism} defined.`);try{await q.auth(X)}catch(H){if(H instanceof v1.MongoError){if(H.addErrorLabel(v1.MongoErrorLabel.HandshakeError),v1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(v1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function II(Z){const J=Z.options,$=J.compressors?J.compressors:[],{serverApi:X}=Z.connection,Y={[X?.version?"hello":DI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:J.metadata,compression:$};if(J.loadBalanced===!0)Y.loadBalanced=!0;const Q=Z.credentials;if(Q){if(Q.mechanism===e0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=NI.AUTH_PROVIDERS.get(e0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new v1.MongoInvalidArgumentError(`No AuthProvider for ${e0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,Z)}const K=NI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new v1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,Z)}return Y}var nQ=function(Z){const J=Z.hostAddress;if(!J)throw new v1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of NI.LEGAL_TCP_SOCKET_OPTIONS)if(Z[X]!=null)$[X]=Z[X];if(typeof J.socketPath==="string")return $.path=J.socketPath,$;else if(typeof J.host==="string")return $.host=J.host,$.port=J.port,$;else throw new v1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(J)}`)},vi=function(Z){const J=nQ(Z);for(let $ of NI.LEGAL_TLS_SOCKET_OPTIONS)if(Z[$]!=null)J[$]=Z[$];if(Z.existingSocket)J.socket=Z.existingSocket;if(J.servername==null&&J.host&&!PI.isIP(J.host))J.servername=J.host;return J},sQ=function(Z,J){const $=Z.tls??!1,X=Z.keepAlive??!0,Y=Z.socketTimeoutMS??Reflect.get(Z,"socketTimeout")??0,Q=Z.noDelay??!0,K=Z.connectTimeoutMS??30000,G=Z.rejectUnauthorized??!0,F=((Z.keepAliveInitialDelay??120000)>Y?Math.round(Y/2):Z.keepAliveInitialDelay)??120000,W=Z.existingSocket;let q;const H=function(D,N){if(D&&q)q.destroy();J(D,N)};if(Z.proxyHost!=null)return gi({...Z,connectTimeoutMS:K},H);if($){const D=Ei.connect(vi(Z));if(typeof D.disableRenegotiation==="function")D.disableRenegotiation();q=D}else if(W)q=W;else q=PI.createConnection(nQ(Z));q.setKeepAlive(X,F),q.setTimeout(K),q.setNoDelay(Q);const U=$?"secureConnect":"connect";let j;function V(D){return(N)=>{if(iQ.forEach((w)=>q.removeAllListeners(w)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);q.removeListener(U,L),H(EI(D,N))}}function L(){if(iQ.forEach((D)=>q.removeAllListeners(D)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);if("authorizationError"in q){if(q.authorizationError&&G)return H(q.authorizationError)}q.setTimeout(0),H(void 0,q)}if(iQ.forEach((D)=>q.once(D,V(D))),Z.cancellationToken)j=V("cancel"),Z.cancellationToken.once("cancel",j);if(W)process.nextTick(L);else q.once(U,L)},gi=function(Z,J){const $=TI.HostAddress.fromHostPort(Z.proxyHost??"",Z.proxyPort??1080);sQ({...Z,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X)return J(X);const Q=nQ(Z);if(typeof Q.host!=="string"||typeof Q.port!=="number")return J(new v1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));Ii.SocksClient.createConnection({existing_socket:Y,timeout:Z.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:Z.proxyUsername||void 0,password:Z.proxyPassword||void 0}}).then(({socket:K})=>{sQ({...Z,existingSocket:K,proxyHost:void 0},J)},(K)=>J(EI("error",K)))})},EI=function(Z,J){switch(Z){case"error":return new v1.MongoNetworkError(J);case"timeout":return new v1.MongoNetworkTimeoutError("connection timed out");case"close":return new v1.MongoNetworkError("connection closed");case"cancel":return new v1.MongoNetworkError("connection establishment was cancelled");default:return new v1.MongoNetworkError("unknown network error")}};Object.defineProperty(NI,"__esModule",{value:!0});NI.LEGAL_TCP_SOCKET_OPTIONS=NI.LEGAL_TLS_SOCKET_OPTIONS=NI.prepareHandshakeDocument=NI.connect=NI.AUTH_PROVIDERS=void 0;var PI=import.meta.require("net"),Ii=nD(),Ei=import.meta.require("tls"),DI=g1(),v1=h(),TI=_(),Ni=F6(),Bi=XJ(),Ci=JT(),hi=QT(),Oi=rT(),Si=JI(),e0=_8(),wI=zI(),ki=LI(),RI=H9(),_7=w4();NI.AUTH_PROVIDERS=new Map([[e0.AuthMechanism.MONGODB_AWS,new hi.MongoDBAWS],[e0.AuthMechanism.MONGODB_CR,new Ci.MongoCR],[e0.AuthMechanism.MONGODB_GSSAPI,new Bi.GSSAPI],[e0.AuthMechanism.MONGODB_OIDC,new Oi.MongoDBOIDC],[e0.AuthMechanism.MONGODB_PLAIN,new Si.Plain],[e0.AuthMechanism.MONGODB_SCRAM_SHA1,new wI.ScramSHA1],[e0.AuthMechanism.MONGODB_SCRAM_SHA256,new wI.ScramSHA256],[e0.AuthMechanism.MONGODB_X509,new ki.X509]]);NI.connect=yi;NI.prepareHandshakeDocument=II;NI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];NI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var fi=["error","close","timeout","parseError"],iQ=new Set(fi)});var oQ=z((bI)=>{Object.defineProperty(bI,"__esModule",{value:!0});bI.ConnectionPoolClearedEvent=bI.ConnectionCheckedInEvent=bI.ConnectionCheckedOutEvent=bI.ConnectionCheckOutFailedEvent=bI.ConnectionCheckOutStartedEvent=bI.ConnectionClosedEvent=bI.ConnectionReadyEvent=bI.ConnectionCreatedEvent=bI.ConnectionPoolClosedEvent=bI.ConnectionPoolReadyEvent=bI.ConnectionPoolCreatedEvent=bI.ConnectionPoolMonitoringEvent=void 0;var L8=g1();class x0{constructor(Z){this.time=new Date,this.address=Z.address}}bI.ConnectionPoolMonitoringEvent=x0;class CI extends x0{constructor(Z){super(Z);if(this.name=L8.CONNECTION_POOL_CREATED,Z.options.credentials!=null)this.options={...Z.options,credentials:{}};else this.options=Z.options}}bI.ConnectionPoolCreatedEvent=CI;class hI extends x0{constructor(Z){super(Z);this.name=L8.CONNECTION_POOL_READY}}bI.ConnectionPoolReadyEvent=hI;class OI extends x0{constructor(Z){super(Z);this.name=L8.CONNECTION_POOL_CLOSED}}bI.ConnectionPoolClosedEvent=OI;class SI extends x0{constructor(Z,J){super(Z);this.name=L8.CONNECTION_CREATED,this.connectionId=J.id}}bI.ConnectionCreatedEvent=SI;class kI extends x0{constructor(Z,J){super(Z);this.name=L8.CONNECTION_READY,this.connectionId=J.id}}bI.ConnectionReadyEvent=kI;class yI extends x0{constructor(Z,J,$,X){super(Z);this.name=L8.CONNECTION_CLOSED,this.connectionId=J.id,this.reason=$,this.serviceId=J.serviceId,this.error=X??null}}bI.ConnectionClosedEvent=yI;class _I extends x0{constructor(Z){super(Z);this.name=L8.CONNECTION_CHECK_OUT_STARTED}}bI.ConnectionCheckOutStartedEvent=_I;class xI extends x0{constructor(Z,J,$){super(Z);this.name=L8.CONNECTION_CHECK_OUT_FAILED,this.reason=J,this.error=$}}bI.ConnectionCheckOutFailedEvent=xI;class vI extends x0{constructor(Z,J){super(Z);this.name=L8.CONNECTION_CHECKED_OUT,this.connectionId=J.id}}bI.ConnectionCheckedOutEvent=vI;class fI extends x0{constructor(Z,J){super(Z);this.name=L8.CONNECTION_CHECKED_IN,this.connectionId=J.id}}bI.ConnectionCheckedInEvent=fI;class gI extends x0{constructor(Z,J={}){super(Z);this.name=L8.CONNECTION_POOL_CLEARED,this.serviceId=J.serviceId,this.interruptInUseConnections=J.interruptInUseConnections}}bI.ConnectionPoolClearedEvent=gI});var ZK=z((cI)=>{Object.defineProperty(cI,"__esModule",{value:!0});cI.WaitQueueTimeoutError=cI.PoolClearedOnNetworkError=cI.PoolClearedError=cI.PoolClosedError=void 0;var gJ=h();class uI extends gJ.MongoDriverError{constructor(Z){super("Attempted to check out a connection from closed connection pool");this.address=Z.address}get name(){return"MongoPoolClosedError"}}cI.PoolClosedError=uI;class eQ extends gJ.MongoNetworkError{constructor(Z,J){const $=J?J:`Connection pool for ${Z.address} was cleared because another operation failed with: "${Z.serverError?.message}"`;super($);this.address=Z.address,this.addErrorLabel(gJ.MongoErrorLabel.RetryableWriteError)}get name(){return"MongoPoolClearedError"}}cI.PoolClearedError=eQ;class dI extends eQ{constructor(Z){super(Z,`Connection to ${Z.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}cI.PoolClearedOnNetworkError=dI;class pI extends gJ.MongoDriverError{constructor(Z,J){super(Z);this.address=J}get name(){return"MongoWaitQueueTimeoutError"}}cI.WaitQueueTimeoutError=pI});var rI=z((nI)=>{Object.defineProperty(nI,"__esModule",{value:!0});nI.ConnectionPool=nI.PoolState=void 0;var m8=import.meta.require("timers"),J8=g1(),w8=h(),aI=h0(),bJ=_(),iI=rQ(),mJ=H9(),r1=oQ(),x7=ZK(),Js=hY(),uJ=Symbol("server"),U6=Symbol("connections"),v7=Symbol("pending"),J4=Symbol("checkedOut"),_4=Symbol("minPoolSizeTimer"),f7=Symbol("generation"),sI=Symbol("serviceGenerations"),dJ=Symbol("connectionCounter"),pJ=Symbol("cancellationToken"),V6=Symbol("waitQueue"),cJ=Symbol("cancelled"),lJ=Symbol("metrics"),aJ=Symbol("processingWaitQueue"),R8=Symbol("poolState");nI.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class Y1 extends aI.TypedEventEmitter{constructor(Z,J){super();if(this.options=Object.freeze({...J,connectionType:mJ.Connection,maxPoolSize:J.maxPoolSize??100,minPoolSize:J.minPoolSize??0,maxConnecting:J.maxConnecting??2,maxIdleTimeMS:J.maxIdleTimeMS??0,waitQueueTimeoutMS:J.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:J.minPoolSizeCheckFrequencyMS??100,autoEncrypter:J.autoEncrypter,metadata:J.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new w8.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[R8]=nI.PoolState.paused,this[uJ]=Z,this[U6]=new bJ.List,this[v7]=0,this[J4]=new Set,this[_4]=void 0,this[f7]=0,this[sI]=new Map,this[dJ]=bJ.makeCounter(1),this[pJ]=new aI.CancellationToken,this[pJ].setMaxListeners(Infinity),this[V6]=new bJ.List,this[lJ]=new Js.ConnectionPoolMetrics,this[aJ]=!1,this.mongoLogger=this[uJ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(Y1.CONNECTION_POOL_CREATED,new r1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[R8]===nI.PoolState.closed}get generation(){return this[f7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[U6].length}get pendingConnectionCount(){return this[v7]}get currentCheckedOutCount(){return this[J4].size}get waitQueueSize(){return this[V6].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[sI]}get serverError(){return this[uJ].description.error}get checkedOutConnections(){return this[J4]}waitQueueErrorMetrics(){return this[lJ].info(this.options.maxPoolSize)}ready(){if(this[R8]!==nI.PoolState.paused)return;this[R8]=nI.PoolState.ready,this.emitAndLog(Y1.CONNECTION_POOL_READY,new r1.ConnectionPoolReadyEvent(this)),m8.clearTimeout(this[_4]),this.ensureMinPoolSize()}checkOut(Z){this.emitAndLog(Y1.CONNECTION_CHECK_OUT_STARTED,new r1.ConnectionCheckOutStartedEvent(this));const J={callback:Z},$=this.options.waitQueueTimeoutMS;if($)J.timer=m8.setTimeout(()=>{J[cJ]=!0,J.timer=void 0,this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new r1.ConnectionCheckOutFailedEvent(this,"timeout")),J.callback(new x7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))},$);this[V6].push(J),process.nextTick(()=>this.processWaitQueue())}checkIn(Z){if(!this[J4].has(Z))return;const J=this.closed,$=this.connectionIsStale(Z),X=!!(J||$||Z.closed);if(!X)Z.markAvailable(),this[U6].unshift(Z);if(this[J4].delete(Z),this.emitAndLog(Y1.CONNECTION_CHECKED_IN,new r1.ConnectionCheckedInEvent(this,Z)),X){const Y=Z.closed?"error":J?"poolClosed":"stale";this.destroyConnection(Z,Y)}process.nextTick(()=>this.processWaitQueue())}clear(Z={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=Z;if(!Y)throw new w8.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const Q=Y.toHexString(),K=this.serviceGenerations.get(Q);if(K==null)throw new w8.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new r1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const J=Z.interruptInUseConnections??!1,$=this[f7];this[f7]+=1;const X=this[R8]===nI.PoolState.paused;if(this[R8]=nI.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new r1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:J}));if(J)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(Z){for(let J of this[J4])if(J.generation<=Z)this.checkIn(J),J.onError(new x7.PoolClearedOnNetworkError(this))}close(Z,J){let $=Z;const X=J??Z;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[pJ].emit("cancel"),typeof this[dJ].return==="function")this[dJ].return(void 0);this[R8]=nI.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),bJ.eachAsync(this[U6].toArray(),(Y,Q)=>{this.emitAndLog(Y1.CONNECTION_CLOSED,new r1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[U6].clear(),this.emitAndLog(Y1.CONNECTION_POOL_CLOSED,new r1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(Z,J,$){if(Z){J(void 0,Z,(X,Y)=>{if(X)return this.withReauthentication(X,Z,J,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{J(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,J,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(Z,J,$,X){if(Z instanceof w8.MongoError&&Z.code===w8.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(J,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(Z)}reauthenticate(Z,J,$){const X=Z.authContext;if(!X)return $(new w8.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new w8.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(Z.hello||void 0),K=iI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new w8.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{J(void 0,Z,(G,F)=>{if(G)return $(G);$(void 0,F)})},(G)=>$(G))}clearMinPoolSizeTimer(){const Z=this[_4];if(Z)m8.clearTimeout(Z)}destroyConnection(Z,J){this.emitAndLog(Y1.CONNECTION_CLOSED,new r1.ConnectionClosedEvent(this,Z,J)),process.nextTick(()=>Z.destroy({force:!1}))}connectionIsStale(Z){const J=Z.serviceId;if(this.loadBalanced&&J){const $=J.toHexString(),X=this.serviceGenerations.get($);return Z.generation!==X}return Z.generation!==this[f7]}connectionIsIdle(Z){return!!(this.options.maxIdleTimeMS&&Z.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(Z){const J=this.connectionIsStale(Z),$=this.connectionIsIdle(Z);if(!J&&!$&&!Z.closed)return!1;const X=Z.closed?"error":J?"stale":"idle";return this.destroyConnection(Z,X),!0}createConnection(Z){const J={...this.options,id:this[dJ].next().value,generation:this[f7],cancellationToken:this[pJ]};this[v7]++,this.emitAndLog(Y1.CONNECTION_CREATED,new r1.ConnectionCreatedEvent(this,{id:J.id})),iI.connect(J,($,X)=>{if($||!X){if(this[v7]--,this.emitAndLog(Y1.CONNECTION_CLOSED,new r1.ConnectionClosedEvent(this,{id:J.id,serviceId:void 0},"error",$)),$ instanceof w8.MongoNetworkError||$ instanceof w8.MongoServerError)$.connectionGeneration=J.generation;Z($??new w8.MongoRuntimeError("Connection creation failed without error"));return}if(this[R8]!==nI.PoolState.ready){this[v7]--,X.destroy({force:!0}),Z(this.closed?new x7.PoolClosedError(this):new x7.PoolClearedError(this));return}for(let Y of[...J8.APM_EVENTS,mJ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(mJ.Connection.PINNED,(Q)=>this[lJ].markPinned(Q)),X.on(mJ.Connection.UNPINNED,(Q)=>this[lJ].markUnpinned(Q));const Y=X.serviceId;if(Y){let Q;const K=Y.toHexString();if(Q=this.serviceGenerations.get(K))X.generation=Q;else this.serviceGenerations.set(K,0),X.generation=0}}X.markAvailable(),this.emitAndLog(Y1.CONNECTION_READY,new r1.ConnectionReadyEvent(this,X)),this[v7]--,Z(void 0,X);return})}ensureMinPoolSize(){const Z=this.options.minPoolSize;if(this[R8]!==nI.PoolState.ready||Z===0)return;if(this[U6].prune((J)=>this.destroyConnectionIfPerished(J)),this.totalConnectionCount<Z&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((J,$)=>{if(J)this[uJ].handleError(J);if(!J&&$)this[U6].push($),process.nextTick(()=>this.processWaitQueue());if(this[R8]===nI.PoolState.ready)m8.clearTimeout(this[_4]),this[_4]=m8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else m8.clearTimeout(this[_4]),this[_4]=m8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[aJ])return;this[aJ]=!0;while(this.waitQueueSize){const $=this[V6].first();if(!$){this[V6].shift();continue}if($[cJ]){this[V6].shift();continue}if(this[R8]!==nI.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new x7.PoolClosedError(this):new x7.PoolClearedError(this);if(this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new r1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timer)m8.clearTimeout($.timer);this[V6].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[U6].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X)){if(this[J4].add(X),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new r1.ConnectionCheckedOutEvent(this,X)),$.timer)m8.clearTimeout($.timer);this[V6].shift(),$.callback(void 0,X)}}const{maxPoolSize:Z,maxConnecting:J}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<J&&(Z===0||this.totalConnectionCount<Z)){const $=this[V6].shift();if(!$||$[cJ])continue;this.createConnection((X,Y)=>{if($[cJ]){if(!X&&Y)this[U6].push(Y)}else{if(X)this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new r1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[J4].add(Y),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new r1.ConnectionCheckedOutEvent(this,Y));if($.timer)m8.clearTimeout($.timer);$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[aJ]=!1}}Y1.CONNECTION_POOL_CREATED=J8.CONNECTION_POOL_CREATED;Y1.CONNECTION_POOL_CLOSED=J8.CONNECTION_POOL_CLOSED;Y1.CONNECTION_POOL_CLEARED=J8.CONNECTION_POOL_CLEARED;Y1.CONNECTION_POOL_READY=J8.CONNECTION_POOL_READY;Y1.CONNECTION_CREATED=J8.CONNECTION_CREATED;Y1.CONNECTION_READY=J8.CONNECTION_READY;Y1.CONNECTION_CLOSED=J8.CONNECTION_CLOSED;Y1.CONNECTION_CHECK_OUT_STARTED=J8.CONNECTION_CHECK_OUT_STARTED;Y1.CONNECTION_CHECK_OUT_FAILED=J8.CONNECTION_CHECK_OUT_FAILED;Y1.CONNECTION_CHECKED_OUT=J8.CONNECTION_CHECKED_OUT;Y1.CONNECTION_CHECKED_IN=J8.CONNECTION_CHECKED_IN;nI.ConnectionPool=Y1});var GE=z((QE)=>{var P9=function(Z){return Z.s.state===o1.STATE_CLOSED||Z.s.state===o1.STATE_CLOSING},ZE=function(Z){Z[u8]?.stop(),Z[u8]=void 0,Z.rttPinger?.close(),Z.rttPinger=void 0,Z[v4].emit("cancel"),Z[M6]?.destroy({force:!0}),Z[M6]=void 0},Ys=function(Z,J){let $=v0.now();Z.emit(w9.Server.SERVER_HEARTBEAT_STARTED,new L9.ServerHeartbeatStartedEvent(Z.address));function X(Q){Z[M6]?.destroy({force:!0}),Z[M6]=void 0,Z.emit(w9.Server.SERVER_HEARTBEAT_FAILED,new L9.ServerHeartbeatFailedEvent(Z.address,v0.calculateDurationInMs($),Q));const K=!(Q instanceof A9.MongoError)?new A9.MongoError(Q):Q;if(K.addErrorLabel(A9.MongoErrorLabel.ResetPool),K instanceof A9.MongoNetworkTimeoutError)K.addErrorLabel(A9.MongoErrorLabel.InterruptInUseConnections);Z.emit("resetServer",K),J(Q)}const Y=Z[M6];if(Y&&!Y.closed){const{serverApi:Q,helloOk:K}=Y,G=Z.options.connectTimeoutMS,F=Z.options.heartbeatFrequencyMS,W=Z[iJ].description.topologyVersion,q=W!=null,H={[Q?.version||K?"hello":JK.LEGACY_HELLO_COMMAND]:1,...q&&W?{maxAwaitTimeMS:F,topologyVersion:Qs(W)}:{}},U=q?{socketTimeoutMS:G?G+F:0,exhaustAllowed:!0}:{socketTimeoutMS:G};if(q&&Z.rttPinger==null)Z.rttPinger=new $K(Z[v4],Object.assign({heartbeatFrequencyMS:Z.options.heartbeatFrequencyMS},Z.connectOptions));Y.command(v0.ns("admin.$cmd"),H,U,(j,V)=>{if(j)return X(j);if(!("isWritablePrimary"in V))V.isWritablePrimary=V[JK.LEGACY_HELLO_COMMAND];const L=q&&Z.rttPinger?Z.rttPinger.roundTripTime:v0.calculateDurationInMs($);if(Z.emit(w9.Server.SERVER_HEARTBEAT_SUCCEEDED,new L9.ServerHeartbeatSucceededEvent(Z.address,L,V)),q&&V.topologyVersion)Z.emit(w9.Server.SERVER_HEARTBEAT_STARTED,new L9.ServerHeartbeatStartedEvent(Z.address)),$=v0.now();else Z.rttPinger?.close(),Z.rttPinger=void 0,J(void 0,V)});return}$E.connect(Z.connectOptions,(Q,K)=>{if(Q){Z[M6]=void 0,X(Q);return}if(K){if(K.isMonitoringConnection=!0,P9(Z)){K.destroy({force:!0});return}Z[M6]=K,Z.emit(w9.Server.SERVER_HEARTBEAT_SUCCEEDED,new L9.ServerHeartbeatSucceededEvent(Z.address,v0.calculateDurationInMs($),K.hello)),J(void 0,K.hello)}})},JE=function(Z){return(J)=>{if(Z.s.state===x4){process.nextTick(J);return}b7(Z,x4);function $(){if(!P9(Z))b7(Z,g7);J()}Ys(Z,(X,Y)=>{if(X){if(Z[iJ].description.type===o1.ServerType.Unknown)return $()}if(Y&&Y.topologyVersion)$4.setTimeout(()=>{if(!P9(Z))Z[u8]?.wake()},0);$()})}},Qs=function(Z){return{processId:Z.processId,counter:oI.Long.isLong(Z.counter)?Z.counter:oI.Long.fromNumber(Z.counter)}},YE=function(Z,J){const $=v0.now();J.cancellationToken=Z[v4];const X=J.heartbeatFrequencyMS;if(Z.closed)return;function Y(G){if(Z.closed){G?.destroy({force:!0});return}if(Z.connection==null)Z.connection=G;Z[R9]=v0.calculateDurationInMs($),Z[u8]=$4.setTimeout(()=>YE(Z,J),X)}const Q=Z.connection;if(Q==null){$E.connect(J,(G,F)=>{if(G){Z.connection=void 0,Z[R9]=0;return}Y(F)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":JK.LEGACY_HELLO_COMMAND;Q.commandAsync(v0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{Z.connection?.destroy({force:!0}),Z.connection=void 0,Z[R9]=0})};Object.defineProperty(QE,"__esModule",{value:!0});QE.MonitorInterval=QE.RTTPinger=QE.Monitor=void 0;var $4=import.meta.require("timers"),oI=D1(),$E=rQ(),$s=H9(),JK=g1(),A9=h(),eI=h0(),v0=_(),o1=c0(),L9=TJ(),w9=XK(),iJ=Symbol("server"),u8=Symbol("monitorId"),M6=Symbol("connection"),v4=Symbol("cancellationToken"),R9=Symbol("roundTripTime"),g7="idle",x4="monitoring",b7=v0.makeStateMachine({[o1.STATE_CLOSING]:[o1.STATE_CLOSING,g7,o1.STATE_CLOSED],[o1.STATE_CLOSED]:[o1.STATE_CLOSED,x4],[g7]:[g7,x4,o1.STATE_CLOSING],[x4]:[x4,g7,o1.STATE_CLOSING]}),Xs=new Set([o1.STATE_CLOSING,o1.STATE_CLOSED,x4]);class XE extends eI.TypedEventEmitter{get connection(){return this[M6]}constructor(Z,J){super();this[iJ]=Z,this[M6]=void 0,this[v4]=new eI.CancellationToken,this[v4].setMaxListeners(Infinity),this[u8]=void 0,this.s={state:o1.STATE_CLOSED},this.address=Z.description.address,this.options=Object.freeze({connectTimeoutMS:J.connectTimeoutMS??1e4,heartbeatFrequencyMS:J.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:J.minHeartbeatFrequencyMS??500});const $=this[v4],X=Object.assign({id:"<monitor>",generation:Z.pool.generation,connectionType:$s.Connection,cancellationToken:$,hostAddress:Z.description.hostAddress},J,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});if(delete X.credentials,X.autoEncrypter)delete X.autoEncrypter;this.connectOptions=Object.freeze(X)}connect(){if(this.s.state!==o1.STATE_CLOSED)return;const Z=this.options.heartbeatFrequencyMS,J=this.options.minHeartbeatFrequencyMS;this[u8]=new sJ(JE(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:J,immediate:!0})}requestCheck(){if(Xs.has(this.s.state))return;this[u8]?.wake()}reset(){const Z=this[iJ].description.topologyVersion;if(P9(this)||Z==null)return;b7(this,o1.STATE_CLOSING),ZE(this),b7(this,g7);const J=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[u8]=new sJ(JE(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:$})}close(){if(P9(this))return;b7(this,o1.STATE_CLOSING),ZE(this),this.emit("close"),b7(this,o1.STATE_CLOSED)}}QE.Monitor=XE;class $K{constructor(Z,J){this.connection=void 0,this[v4]=Z,this[R9]=0,this.closed=!1;const $=J.heartbeatFrequencyMS;this[u8]=$4.setTimeout(()=>YE(this,J),$)}get roundTripTime(){return this[R9]}close(){this.closed=!0,$4.clearTimeout(this[u8]),this.connection?.destroy({force:!0}),this.connection=void 0}}QE.RTTPinger=$K;class sJ{constructor(Z,J={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)$4.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=v0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=Z,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=J.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=J.minHeartbeatFrequencyMS??500,J.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const J=v0.now()-this.lastExecutionEnded;if(J<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(J<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-J);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)$4.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const Z=v0.now(),J=Z-this.lastExecutionEnded;return{timerId:this.timerId!=null?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:Z,timeSinceLastCall:J}}_reschedule(Z){if(this.stopped)return;if(this.timerId)$4.clearTimeout(this.timerId);this.timerId=$4.setTimeout(this._executeAndReschedule,Z||this.heartbeatFrequencyMS)}}QE.MonitorInterval=sJ});var XK=z((WE)=>{var Vs=function(Z,J){if(Z===-1)return J;const $=0.2;return $*J+(1-$)*Z},YK=function(Z,J){if(Z.loadBalanced)return;if(J instanceof A1.MongoNetworkError&&!(J instanceof A1.MongoNetworkTimeoutError))Z.monitor?.reset();Z.emit(D0.DESCRIPTION_RECEIVED,new GK.ServerDescription(Z.description.hostAddress,void 0,{error:J}))},Ms=function(Z,J){if(J)return J.inTransaction()||"aggregate"in Z||"find"in Z||"getMore"in Z||"listCollections"in Z||"listIndexes"in Z;return!1},js=function(Z,J){if(J.serviceId)return J.generation!==Z.serviceGenerations.get(J.serviceId.toHexString());return J.generation!==Z.generation},As=function(Z,J){const $=J.topologyVersion,X=Z.description.topologyVersion;return GK.compareTopologyVersion(X,$)<0},QK=function(Z,J){return Z&&Z.inTransaction()&&!KK.isTransactionCommand(J)},FE=function(Z){return Z.s.options.retryWrites!==!1},Ls=function(Z,J,$,X,Y){const Q=X?.session;return function K(G,F){if(G==null&&F!=null)return Y(void 0,F);if(X!=null&&"noResponse"in X&&X.noResponse===!0)return Y(void 0,null);if(!G)return Y(new A1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof A1.MongoError))return Y(G);if(js(Z.pool,J))return Y(G);if(G instanceof A1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(QK(Q,$)&&!G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(A1.MongoErrorLabel.TransientTransactionError);if((FE(Z.topology)||KK.isTransactionCommand($))&&nJ.supportsRetryableWrites(Z)&&!QK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError)}else if((FE(Z.topology)||KK.isTransactionCommand($))&&A1.needsRetryableWriteLabel(G,nJ.maxWireVersion(Z))&&!QK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return Z.handleError(G,J),Y(G)}};Object.defineProperty(WE,"__esModule",{value:!0});WE.Server=void 0;var Fs=import.meta.require("util"),Ws=H9(),qs=rI(),Hs=ZK(),d8=g1(),A1=h(),zs=h0(),KK=_Y(),nJ=_(),q1=c0(),Us=GE(),GK=k5(),D9=nJ.makeStateMachine({[q1.STATE_CLOSED]:[q1.STATE_CLOSED,q1.STATE_CONNECTING],[q1.STATE_CONNECTING]:[q1.STATE_CONNECTING,q1.STATE_CLOSING,q1.STATE_CONNECTED,q1.STATE_CLOSED],[q1.STATE_CONNECTED]:[q1.STATE_CONNECTED,q1.STATE_CLOSING,q1.STATE_CLOSED],[q1.STATE_CLOSING]:[q1.STATE_CLOSING,q1.STATE_CLOSED]});class D0 extends zs.TypedEventEmitter{constructor(Z,J,$){super();this.commandAsync=Fs.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:J.hostAddress,...$};this.topology=Z,this.pool=new qs.ConnectionPool(this,X),this.s={description:J,options:$,state:q1.STATE_CLOSED,operationCount:0};for(let Y of[...d8.CMAP_EVENTS,...d8.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(Ws.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new Us.Monitor(this,this.s.options);for(let Y of d8.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>YK(this,Y)),this.monitor.on(D0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(D0.DESCRIPTION_RECEIVED,new GK.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:Vs(this.description.roundTripTime,Y.duration)})),this.s.state===q1.STATE_CONNECTING)D9(this,q1.STATE_CONNECTED),this.emit(D0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(Z){this.topology.clusterTime=Z}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter)return this.s.options.autoEncrypter;return}get loadBalanced(){return this.topology.description.type===q1.TopologyType.LoadBalanced}connect(){if(this.s.state!==q1.STATE_CLOSED)return;if(D9(this,q1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else D9(this,q1.STATE_CONNECTED),this.emit(D0.CONNECT,this)}destroy(Z,J){if(typeof Z==="function")J=Z,Z={force:!1};if(Z=Object.assign({},{force:!1},Z),this.s.state===q1.STATE_CLOSED){if(typeof J==="function")J();return}if(D9(this,q1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(Z,($)=>{if(D9(this,q1.STATE_CLOSED),this.emit("closed"),typeof J==="function")J($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(Z,J,$,X){if(X==null)throw new A1.MongoInvalidArgumentError("Callback must be provided");if(Z.db==null||typeof Z==="string")throw new A1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===q1.STATE_CLOSING||this.s.state===q1.STATE_CLOSED){X(new A1.MongoServerClosedError);return}const Y=Object.assign({},$,{wireProtocolCommand:!1});if(Y.omitReadPreference)delete Y.readPreference;const Q=Y.session,K=Q?.pinnedConnection;if(this.loadBalanced&&Q&&K==null&&Ms(J,Q)){this.pool.checkOut((G,F)=>{if(G||F==null){if(X)return X(G);return}Q.pin(F),this.command(Z,J,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,F,W)=>{if(G||!F){if(this.decrementOperationCount(),!G)return W(new A1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof Hs.PoolClearedError))this.handleError(G);return W(G)}F.command(Z,J,Y,Ls(this,F,J,Y,(q,H)=>{this.decrementOperationCount(),W(q,H)}))},X)}handleError(Z,J){if(!(Z instanceof A1.MongoError))return;if(Z.connectionGeneration&&Z.connectionGeneration<this.pool.generation)return;const X=Z instanceof A1.MongoNetworkError&&!(Z instanceof A1.MongoNetworkTimeoutError),Y=A1.isNetworkErrorBeforeHandshake(Z),Q=Z.hasErrorLabel(A1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool),YK(this,Z);else if(J)this.pool.clear({serviceId:J.serviceId})}else if(A1.isSDAMUnrecoverableError(Z)){if(As(this,Z)){const K=nJ.maxWireVersion(this)<=7||A1.isNodeShuttingDownError(Z);if(this.loadBalanced&&J&&K)this.pool.clear({serviceId:J.serviceId});if(!this.loadBalanced){if(K)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool);YK(this,Z),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}D0.SERVER_HEARTBEAT_STARTED=d8.SERVER_HEARTBEAT_STARTED;D0.SERVER_HEARTBEAT_SUCCEEDED=d8.SERVER_HEARTBEAT_SUCCEEDED;D0.SERVER_HEARTBEAT_FAILED=d8.SERVER_HEARTBEAT_FAILED;D0.CONNECT=d8.CONNECT;D0.DESCRIPTION_RECEIVED=d8.DESCRIPTION_RECEIVED;D0.CLOSED=d8.CLOSED;D0.ENDED=d8.ENDED;WE.Server=D0});var qK=z((zE)=>{Object.defineProperty(zE,"__esModule",{value:!0});zE.SrvPoller=zE.SrvPollingEvent=void 0;var ws=import.meta.require("dns"),FK=import.meta.require("timers"),Rs=h(),Ps=h0(),HE=_();class WK{constructor(Z){this.srvRecords=Z}hostnames(){return new Set(this.srvRecords.map((Z)=>HE.HostAddress.fromSrvRecord(Z).toString()))}}zE.SrvPollingEvent=WK;class tJ extends Ps.TypedEventEmitter{constructor(Z){super();if(!Z||!Z.srvHost)throw new Rs.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=Z.srvHost,this.srvMaxHosts=Z.srvMaxHosts??0,this.srvServiceName=Z.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1e4,this.haMode=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){if(!this._timeout)this.schedule()}stop(){if(this._timeout)FK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)FK.clearTimeout(this._timeout);this._timeout=FK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(Z){this.haMode=!1,this.schedule(),this.emit(tJ.SRV_RECORD_DISCOVERY,new WK(Z))}failure(){this.haMode=!0,this.schedule()}async _poll(){const Z=this.generation;let J;try{J=await ws.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(Z!==this.generation)return;const $=[];for(let X of J)if(HE.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}tJ.SRV_RECORD_DISCOVERY="srvRecordDiscovery";zE.SrvPoller=tJ});var EE=z((TE)=>{var RE=function(Z,J,$,X){$=$??{force:!1};for(let Y of T0.LOCAL_SERVER_EVENTS)Z.removeAllListeners(Y);Z.destroy($,()=>{J.emit(K1.SERVER_CLOSED,new X4.ServerClosedEvent(J.s.id,Z.description.address));for(let Y of T0.SERVER_RELAY_EVENTS)Z.removeAllListeners(Y);if(typeof X==="function")X()})},Es=function(Z){if(Z?.directConnection)return p.TopologyType.Single;if(Z?.replicaSet)return p.TopologyType.ReplicaSetNoPrimary;if(Z?.loadBalanced)return p.TopologyType.LoadBalanced;return p.TopologyType.Unknown},PE=function(Z,J){Z.emit(K1.SERVER_OPENING,new X4.ServerOpeningEvent(Z.s.id,J.address));const $=new jE.Server(Z,J,Z.s.options);for(let X of T0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>Z.emit(X,Y));return $.on(jE.Server.DESCRIPTION_RECEIVED,(X)=>Z.serverUpdateHandler(X)),$.connect(),$},LE=function(Z,J){if(J&&Z.s.servers.has(J.address)){const $=Z.s.servers.get(J.address);if($){if($.s.description=J,J.error instanceof L6.MongoError&&J.error.hasErrorLabel(L6.MongoErrorLabel.ResetPool)){const X=J.error.hasErrorLabel(L6.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(J.error==null){const X=Z.s.description.type;if(J.isDataBearing||J.type!==p.ServerType.Unknown&&X===p.TopologyType.Single)$.pool.ready()}}}for(let $ of Z.description.servers.values())if(!Z.s.servers.has($.address)){const X=PE(Z,$);Z.s.servers.set($.address,X)}for(let $ of Z.s.servers){const X=$[0];if(Z.description.hasServer(X))continue;if(!Z.s.servers.has(X))continue;const Y=Z.s.servers.get(X);if(Z.s.servers.delete(X),Y)RE(Y,Z)}},DE=function(Z,J){while(Z.length){const $=Z.shift();if(!$)continue;if($.timer)oJ.clearTimeout($.timer);if(!$[UK])$.callback(J)}},wE=function(Z){if(Z.s.state===p.STATE_CLOSED){DE(Z[A6],new L6.MongoTopologyClosedError);return}const J=Z.description.type===p.TopologyType.Sharded,$=Array.from(Z.description.servers.values()),X=Z[A6].length;for(let Y=0;Y<X;++Y){const Q=Z[A6].shift();if(!Q)continue;if(Q[UK])continue;let K;try{const W=Q.serverSelector;K=W?W(Z.description,$):$}catch(W){if(Q.timer)oJ.clearTimeout(Q.timer);Q.callback(W);continue}let G;if(K.length===0){Z[A6].push(Q);continue}else if(K.length===1)G=Z.s.servers.get(K[0].address);else{const W=j6.shuffle(K,2),q=Z.s.servers.get(W[0].address),H=Z.s.servers.get(W[1].address);G=q&&H&&q.s.operationCount<H.s.operationCount?q:H}if(!G){Q.callback(new L6.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",Z.description));return}const F=Q.transaction;if(J&&F&&F.isActive&&G)F.pinServer(G);if(Q.timer)oJ.clearTimeout(Q.timer);Q.callback(void 0,G)}if(Z[A6].length>0)for(let[,Y]of Z.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},Ns=function(Z,J){const X=Z.servers.get(J.address)?.topologyVersion;return zK.compareTopologyVersion(X,J.topologyVersion)>0};Object.defineProperty(TE,"__esModule",{value:!0});TE.ServerCapabilities=TE.Topology=void 0;var oJ=import.meta.require("timers"),VE=import.meta.require("util"),ME=HQ(),T0=g1(),L6=h(),Ts=h0(),T9=y1(),j6=_(),p=c0(),X4=TJ(),jE=XK(),zK=k5(),HK=P5(),rJ=qK(),AE=SY(),Is=0,I9=j6.makeStateMachine({[p.STATE_CLOSED]:[p.STATE_CLOSED,p.STATE_CONNECTING],[p.STATE_CONNECTING]:[p.STATE_CONNECTING,p.STATE_CLOSING,p.STATE_CONNECTED,p.STATE_CLOSED],[p.STATE_CONNECTED]:[p.STATE_CONNECTED,p.STATE_CLOSING,p.STATE_CLOSED],[p.STATE_CLOSING]:[p.STATE_CLOSING,p.STATE_CLOSED]}),UK=Symbol("cancelled"),A6=Symbol("waitQueue");class K1 extends Ts.TypedEventEmitter{constructor(Z,J,$){super();if(this.client=Z,this.selectServerAsync=VE.promisify((F,W,q)=>this.selectServer(F,W,q)),$=$??{hosts:[j6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(ME.DEFAULT_OPTIONS.entries()),...Object.fromEntries(ME.FEATURE_FLAGS.entries())},typeof J==="string")J=[j6.HostAddress.fromString(J)];else if(!Array.isArray(J))J=[J];const X=[];for(let F of J)if(typeof F==="string")X.push(j6.HostAddress.fromString(F));else if(F instanceof j6.HostAddress)X.push(F);else throw new L6.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(F)}`);const Y=Es($),Q=Is++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:j6.shuffle(X,$.srvMaxHosts),G=new Map;for(let F of K)G.set(F.toString(),new zK.ServerDescription(F));if(this[A6]=new j6.List,this.s={id:Q,options:$,seedlist:X,state:p.STATE_CLOSED,description:new AE.TopologyDescription(Y,G,$.replicaSet,void 0,void 0,void 0,$),serverSelectionTimeoutMS:$.serverSelectionTimeoutMS,heartbeatFrequencyMS:$.heartbeatFrequencyMS,minHeartbeatFrequencyMS:$.minHeartbeatFrequencyMS,servers:new Map,credentials:$?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:(F)=>this.detectShardedTopology(F),detectSrvRecords:(F)=>this.detectSrvRecords(F)},$.srvHost&&!$.loadBalanced)this.s.srvPoller=$.srvPoller??new rJ.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(Z){const J=Z.previousDescription.type,$=Z.newDescription.type,X=J!==p.TopologyType.Sharded&&$===p.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(rJ.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(rJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(Z){const J=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(Z,this.s.options.srvMaxHosts),this.s.description===J)return;LE(this),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new X4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new VK(this.lastHello())}connect(Z,J){if(typeof Z==="function")J=Z,Z={};if(Z=Z??{},this.s.state===p.STATE_CONNECTED){if(typeof J==="function")J();return}I9(this,p.STATE_CONNECTING),this.emit(K1.TOPOLOGY_OPENING,new X4.TopologyOpeningEvent(this.s.id)),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new X4.TopologyDescriptionChangedEvent(this.s.id,new AE.TopologyDescription(p.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,PE(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new zK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>J?J(Q):this.emit(K1.ERROR,Q),Y=Z.readPreference??T9.ReadPreference.primary;this.selectServer(HK.readPreferenceServerSelector(Y),Z,(Q,K)=>{if(Q)return this.close({force:!1},()=>X(Q));if(this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]!==!0&&K&&this.s.credentials){K.command(j6.ns("admin.$cmd"),{ping:1},{},(F)=>{if(F)return X(F);I9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)});return}I9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)})}close(Z,J){if(Z=Z??{force:!1},this.s.state===p.STATE_CLOSED||this.s.state===p.STATE_CLOSING)return J?.();const $=Array.from(this.s.servers.values(),(X)=>{return VE.promisify(RE)(X,this,{force:!!Z?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),I9(this,p.STATE_CLOSING),DE(this[A6],new L6.MongoTopologyClosedError),p.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(rJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),I9(this,p.STATE_CLOSED),this.emit(K1.TOPOLOGY_CLOSED,new X4.TopologyClosedEvent(this.s.id))}).finally(()=>J?.())}selectServer(Z,J,$){let X;if(typeof Z!=="function")if(typeof Z==="string")X=HK.readPreferenceServerSelector(T9.ReadPreference.fromString(Z));else{let W;if(Z instanceof T9.ReadPreference)W=Z;else T9.ReadPreference.translate(J),W=J.readPreference||T9.ReadPreference.primary;X=HK.readPreferenceServerSelector(W)}else X=Z;J=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},J);const Y=this.description.type===p.TopologyType.Sharded,Q=J.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$},F=J.serverSelectionTimeoutMS;if(F)G.timer=oJ.setTimeout(()=>{G[UK]=!0,G.timer=void 0;const W=new L6.MongoServerSelectionError(`Server selection timed out after ${F} ms`,this.description);G.callback(W)},F);this[A6].push(G),wE(this)}serverUpdateHandler(Z){if(!this.s.description.hasServer(Z.address))return;if(Ns(this.s.description,Z))return;const J=this.s.description,$=this.s.description.servers.get(Z.address);if(!$)return;const X=Z.$clusterTime;if(X)p._advanceClusterTime(this,X);const Y=$&&$.equals(Z);if(this.s.description=this.s.description.update(Z),this.s.description.compatibilityError){this.emit(K1.ERROR,new L6.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(Z.address);if(Q)this.emit(K1.SERVER_DESCRIPTION_CHANGED,new X4.ServerDescriptionChangedEvent(this.s.id,Z.address,$,Q))}if(LE(this,Z),this[A6].length>0)wE(this);if(!Y)this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new X4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}auth(Z,J){if(typeof Z==="function")J=Z,Z=void 0;if(typeof J==="function")J(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===p.STATE_CONNECTED}isDestroyed(){return this.s.state===p.STATE_CLOSED}lastHello(){const Z=Array.from(this.description.servers.values());if(Z.length===0)return{};return Z.filter((X)=>X.type!==p.ServerType.Unknown)[0]||{maxWireVersion:this.description.commonWireVersion}}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(Z){this.s.clusterTime=Z}}K1.SERVER_OPENING=T0.SERVER_OPENING;K1.SERVER_CLOSED=T0.SERVER_CLOSED;K1.SERVER_DESCRIPTION_CHANGED=T0.SERVER_DESCRIPTION_CHANGED;K1.TOPOLOGY_OPENING=T0.TOPOLOGY_OPENING;K1.TOPOLOGY_CLOSED=T0.TOPOLOGY_CLOSED;K1.TOPOLOGY_DESCRIPTION_CHANGED=T0.TOPOLOGY_DESCRIPTION_CHANGED;K1.ERROR=T0.ERROR;K1.OPEN=T0.OPEN;K1.CONNECT=T0.CONNECT;K1.CLOSE=T0.CLOSE;K1.TIMEOUT=T0.TIMEOUT;TE.Topology=K1;class VK{constructor(Z){this.minWireVersion=Z.minWireVersion||0,this.maxWireVersion=Z.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}TE.ServerCapabilities=VK});var C7=z((yE)=>{Object.defineProperty(yE,"__esModule",{value:!0});yE.MongoClient=yE.ServerApiVersion=void 0;var NE=import.meta.require("util"),Cs=D1(),hs=M7(),Os=QJ(),Ss=_8(),BE=HQ(),ks=g1(),ys=oZ(),CE=h(),_s=YQ(),xs=h0(),hE=y1(),vs=P5(),OE=EE(),SE=x5(),MK=_();yE.ServerApiVersion=Object.freeze({v1:"1"});var e1=Symbol("options");class kE extends xs.TypedEventEmitter{constructor(Z,J){super();this[e1]=BE.parseOptions(Z,this,J),this.mongoLogger=new _s.MongoLogger(this[e1].mongoLoggerOptions);const $=this;this.s={url:Z,bsonOptions:Cs.resolveBSONOptions(this[e1]),namespace:MK.ns("admin"),hasBeenClosed:!1,sessionPool:new SE.ServerSessionPool(this),activeSessions:new Set,get options(){return $[e1]},get readConcern(){return $[e1].readConcern},get writeConcern(){return $[e1].writeConcern},get readPreference(){return $[e1].readPreference},get isMongoClient(){return!0}}}get options(){return Object.freeze({...this[e1]})}get serverApi(){return this[e1].serverApi&&Object.freeze({...this[e1].serverApi})}get monitorCommands(){return this[e1].monitorCommands}set monitorCommands(Z){this[e1].monitorCommands=Z}get autoEncrypter(){return this[e1].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const Z=this[e1];if(typeof Z.srvHost==="string"){const $=await BE.resolveSRVRecord(Z);for(let[X,Y]of $.entries())Z.hosts[X]=Y}if(Z.credentials?.mechanism===Ss.AuthMechanism.MONGODB_OIDC){const $=Z.credentials?.mechanismProperties?.ALLOWED_HOSTS||Os.DEFAULT_ALLOWED_HOSTS;if(!Z.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of Z.hosts)if(!MK.hostMatchesWildcards(Y.toHostPort().host,$))throw new CE.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new OE.Topology(this,Z.hosts,Z),this.topology.once(OE.Topology.OPEN,()=>this.emit("open",this));for(let $ of ks.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const J=async()=>{try{await NE.promisify(($)=>this.topology?.connect(Z,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await NE.promisify((X)=>this.autoEncrypter?.init(X))(),await J(),await Z.encrypter.connectInternalClient();else await J();return this}async close(Z=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const J=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(J),this.topology==null)return;const $=vs.readPreferenceServerSelector(hE.ReadPreference.primaryPreferred),X=this.topology.description,Y=Array.from(X.servers.values());if($(X,Y).length!==0){const G=Array.from(this.s.sessionPool.sessions,({id:F})=>F);if(G.length!==0)await this.db("admin").command({endSessions:G},{readPreference:hE.ReadPreference.primaryPreferred,noResponse:!0}).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,F)=>{K.close({force:Z},(W)=>{if(W)return F(W);const{encrypter:q}=this[e1];if(q)return q.close(this,Z,(H)=>{if(H)return F(H);G()});G()})})}db(Z,J){if(J=J??{},!Z)Z=this.options.dbName;const $=Object.assign({},this[e1],J);return new ys.Db(this,Z,$)}static async connect(Z,J){return new this(Z,J).connect()}startSession(Z){const J=new SE.ClientSession(this,this.s.sessionPool,{explicit:!0,...Z},this[e1]);return this.s.activeSessions.add(J),J.once("ended",()=>{this.s.activeSessions.delete(J)}),J}async withSession(Z,J){const $={owner:Symbol(),...typeof Z==="object"?Z:{}},X=typeof Z==="function"?Z:J;if(X==null)throw new CE.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new hs.ChangeStream(this,Z,MK.resolveOptions(this,J))}}yE.MongoClient=kE});var M7=z((xE)=>{Object.defineProperty(xE,"__esModule",{value:!0});xE.ChangeStream=void 0;var gs=N4(),D8=g1(),bs=I3(),ms=oZ(),P8=h(),us=C7(),ds=h0(),jK=_(),m7=Symbol("cursorStream"),u7=Symbol("closed"),E9=Symbol("mode"),ps=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],f4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},cs=[D8.RESUME_TOKEN_CHANGED,D8.END,D8.CLOSE],ls="A change stream document has been received that lacks a resume token (_id).",eJ="ChangeStream is closed";class I0 extends ds.TypedEventEmitter{constructor(Z,J=[],$={}){super();if(this.pipeline=J,this.options={...$},delete this.options.writeConcern,Z instanceof gs.Collection)this.type=f4.COLLECTION;else if(Z instanceof ms.Db)this.type=f4.DATABASE;else if(Z instanceof us.MongoClient)this.type=f4.CLUSTER;else throw new P8.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=Z,this.namespace=Z.s.namespace,!this.options.readPreference&&Z.readPreference)this.options.readPreference=Z.readPreference;this.cursor=this._createChangeStreamCursor($),this[u7]=!1,this[E9]=!1,this.on("newListener",(X)=>{if(X==="change"&&this.cursor&&this.listenerCount("change")===0)this._streamEvents(this.cursor)}),this.on("removeListener",(X)=>{if(X==="change"&&this.listenerCount("change")===0&&this.cursor)this[m7]?.removeAllListeners("data")})}get cursorStream(){return this[m7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async next(){this._setIsIterator();while(!0)try{const Z=await this.cursor.next();return this._processChange(Z??null)}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[u7]||this.cursor.closed}async close(){this[u7]=!0;const Z=this.cursor;try{await Z.close()}finally{this._endStream()}}stream(Z){if(this.closed)throw new P8.MongoChangeStreamError(eJ);return this.streamOptions=Z,this.cursor.stream(Z)}_setIsEmitter(){if(this[E9]==="iterator")throw new P8.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[E9]="emitter"}_setIsIterator(){if(this[E9]==="emitter")throw new P8.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[E9]="iterator"}_createChangeStreamCursor(Z){const J=jK.filterOptions(Z,ps);if(this.type===f4.CLUSTER)J.allChangesForCluster=!0;const $=[{$changeStream:J},...this.pipeline],X=this.type===f4.CLUSTER?this.parent:this.type===f4.DATABASE?this.parent.client:this.type===f4.COLLECTION?this.parent.client:null;if(X==null)throw new P8.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new bs.ChangeStreamCursor(X,this.namespace,$,Z);for(let Q of cs)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(I0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(Z){this.emit(I0.ERROR,Z),this.close().catch(()=>null)}_streamEvents(Z){this._setIsEmitter();const J=this[m7]??Z.stream();this[m7]=J,J.on("data",($)=>{try{const X=this._processChange($);this.emit(I0.CHANGE,X)}catch(X){this.emit(I0.ERROR,X)}}),J.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const Z=this[m7];if(Z)["data","close","end","error"].forEach((J)=>Z.removeAllListeners(J)),Z.destroy();this[m7]=void 0}_processChange(Z){if(this[u7])throw new P8.MongoAPIError(eJ);if(Z==null)throw new P8.MongoRuntimeError(eJ);if(Z&&!Z._id)throw new P8.MongoChangeStreamError(ls);return this.cursor.cacheResumeToken(Z._id),this.options.startAtOperationTime=void 0,Z}_processErrorStreamMode(Z){if(this[u7])return;if(P8.isResumableError(Z,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),jK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(Z);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(Z)}async _processErrorIteratorMode(Z){if(this[u7])throw new P8.MongoAPIError(eJ);if(!P8.isResumableError(Z,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw Z}await this.cursor.close().catch(()=>null);const J=jK.getTopology(this.parent);try{await J.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),Z}}}I0.RESPONSE=D8.RESPONSE;I0.MORE=D8.MORE;I0.INIT=D8.INIT;I0.CLOSE=D8.CLOSE;I0.CHANGE=D8.CHANGE;I0.END=D8.END;I0.ERROR=D8.ERROR;I0.RESUME_TOKEN_CHANGED=D8.RESUME_TOKEN_CHANGED;xE.ChangeStream=I0});var AK=z((gE)=>{var fE=function(Z){if(Z.s.init)throw new f0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},is=function(Z){if(Z.destroyed)return;if(!Z.s.cursor)return;if(!Z.s.file)return;const J=({error:$,doc:X})=>{if(Z.destroyed)return;if($){Z.emit(E1.ERROR,$);return}if(!X){Z.push(null),Z.s.cursor?.close().then(()=>{Z.emit(E1.CLOSE)},(U)=>{Z.emit(E1.ERROR,U)});return}if(!Z.s.file)return;const Y=Z.s.file.length-Z.s.bytesRead,Q=Z.s.expected++,K=Math.min(Z.s.file.chunkSize,Y);if(X.n>Q)return Z.emit(E1.ERROR,new f0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return Z.emit(E1.ERROR,new f0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected: ${Q}`));let G=Buffer.isBuffer(X.data)?X.data:X.data.buffer;if(G.byteLength!==K){if(Y<=0)return Z.emit(E1.ERROR,new f0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${Z.s.file.length} bytes but already read ${Z.s.bytesRead} bytes`));return Z.emit(E1.ERROR,new f0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(Z.s.bytesRead+=G.byteLength,G.byteLength===0)return Z.push(null);let F=null,W=null;if(Z.s.bytesToSkip!=null)F=Z.s.bytesToSkip,Z.s.bytesToSkip=0;const q=Q===Z.s.expectedEnd-1,H=Z.s.options.end-Z.s.bytesToSkip;if(q&&Z.s.bytesToTrim!=null)W=Z.s.file.chunkSize-Z.s.bytesToTrim;else if(Z.s.options.end&&H<X.data.byteLength)W=H;if(F!=null||W!=null)G=G.slice(F||0,W||G.byteLength);Z.push(G);return};Z.s.cursor.next().then(($)=>J({error:null,doc:$}),($)=>J({error:$,doc:null}))},ss=function(Z){const J={};if(Z.s.readPreference)J.readPreference=Z.s.readPreference;if(Z.s.options&&Z.s.options.sort)J.sort=Z.s.options.sort;if(Z.s.options&&Z.s.options.skip)J.skip=Z.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return Z.emit(E1.ERROR,X);if(!Y){const G=`FileNotFound: file ${Z.s.filter._id?Z.s.filter._id.toString():Z.s.filter.filename} was not found`,F=new f0.MongoRuntimeError(G);return F.code="ENOENT",Z.emit(E1.ERROR,F)}if(Y.length<=0){Z.push(null);return}if(Z.destroyed){Z.emit(E1.CLOSE);return}try{Z.s.bytesToSkip=ts(Z,Y,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}const Q={files_id:Y._id};if(Z.s.options&&Z.s.options.start!=null){const K=Math.floor(Z.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(Z.s.cursor=Z.s.chunks.find(Q).sort({n:1}),Z.s.readPreference)Z.s.cursor.withReadPreference(Z.s.readPreference);Z.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),Z.s.file=Y;try{Z.s.bytesToTrim=rs(Z,Y,Z.s.cursor,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}Z.emit(E1.FILE,Y);return};Z.s.files.findOne(Z.s.filter,J).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},ns=function(Z,J){if(Z.s.file)return J();if(!Z.s.init)ss(Z),Z.s.init=!0;Z.once("file",()=>{J()})},ts=function(Z,J,$){if($&&$.start!=null){if($.start>J.length)throw new f0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${J.length})`);if($.start<0)throw new f0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be negative`);if($.end!=null&&$.end<$.start)throw new f0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be greater than stream end (${$.end})`);return Z.s.bytesRead=Math.floor($.start/J.chunkSize)*J.chunkSize,Z.s.expected=Math.floor($.start/J.chunkSize),$.start-Z.s.bytesRead}throw new f0.MongoInvalidArgumentError("Start option must be defined")},rs=function(Z,J,$,X){if(X&&X.end!=null){if(X.end>J.length)throw new f0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${J.length})`);if(X.start==null||X.start<0)throw new f0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be negative`);const Y=X.start!=null?Math.floor(X.start/J.chunkSize):0;return $.limit(Math.ceil(X.end/J.chunkSize)-Y),Z.s.expectedEnd=Math.ceil(X.end/J.chunkSize),Math.ceil(X.end/J.chunkSize)*J.chunkSize-X.end}throw new f0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(gE,"__esModule",{value:!0});gE.GridFSBucketReadStream=void 0;var as=import.meta.require("stream"),f0=h();class E1 extends as.Readable{constructor(Z,J,$,X,Y){super();this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:Z,expected:0,files:J,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;ns(this,()=>is(this))}start(Z=0){return fE(this),this.s.options.start=Z,this}end(Z=0){return fE(this),this.s.options.end=Z,this}async abort(){if(this.push(null),this.destroyed=!0,this.s.cursor)try{await this.s.cursor.close()}finally{this.emit(E1.CLOSE)}else if(!this.s.init)this.emit(E1.CLOSE)}}E1.ERROR="error";E1.FILE="file";E1.DATA="data";E1.END="end";E1.CLOSE="close";gE.GridFSBucketReadStream=E1});var RK=z((cE)=>{var wK=function(Z,J,$){if(Z.state.errored)return;if(Z.state.errored=!0,$)return $(J);Z.emit(w6.ERROR,J)},pE=function(Z,J,$){return{_id:new dE.ObjectId,files_id:Z,n:J,data:$}};async function Zn(Z){const J={files_id:1,n:1};let $;try{$=await Z.chunks.listIndexes().toArray()}catch(Y){if(Y instanceof g4.MongoError&&Y.code===g4.MONGODB_ERROR_CODES.NamespaceNotFound)$=[];else throw Y}if(!$.find((Y)=>{if(Object.keys(Y.key).length===2&&Y.key.files_id===1&&Y.key.n===1)return!0;return!1}))await Z.chunks.createIndex(J,{...Z.writeConcern,background:!0,unique:!0})}var LK=function(Z,J){if(Z.done)return!0;if(Z.state.streamEnd&&Z.state.outstandingRequests===0&&!Z.state.errored){Z.done=!0;const $=$n(Z.id,Z.length,Z.chunkSizeBytes,Z.filename,Z.options.contentType,Z.options.aliases,Z.options.metadata);if(N9(Z,J))return!1;return Z.files.insertOne($,{writeConcern:Z.writeConcern}).then(()=>{Z.emit(w6.FINISH,$),Z.emit(w6.CLOSE)},(X)=>{return wK(Z,X,J)}),!0}return!1};async function Jn(Z){if(await Z.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await Z.files.listIndexes().toArray()}catch(Q){if(Q instanceof g4.MongoError&&Q.code===g4.MONGODB_ERROR_CODES.NamespaceNotFound)X=[];else throw Q}if(!X.find((Q)=>{if(Object.keys(Q.key).length===2&&Q.key.filename===1&&Q.key.uploadDate===1)return!0;return!1}))await Z.files.createIndex($,{background:!1});await Zn(Z)}var $n=function(Z,J,$,X,Y,Q,K){const G={_id:Z,length:J,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},Xn=function(Z,J,$,X){if(N9(Z,X))return!1;const Y=Buffer.isBuffer(J)?J:Buffer.from(J,$);if(Z.length+=Y.length,Z.pos+Y.length<Z.chunkSizeBytes)return Y.copy(Z.bufToStore,Z.pos),Z.pos+=Y.length,X&&X(),!0;let Q=Y.length,K=Z.chunkSizeBytes-Z.pos,G=Math.min(K,Y.length),F=0;while(Q>0){const W=Y.length-Q;Y.copy(Z.bufToStore,Z.pos,W,W+G),Z.pos+=G,K-=G;let q;if(K===0){if(q=pE(Z.id,Z.n,Buffer.from(Z.bufToStore)),++Z.state.outstandingRequests,++F,N9(Z,X))return!1;Z.chunks.insertOne(q,{writeConcern:Z.writeConcern}).then(()=>{if(--Z.state.outstandingRequests,--F,!F)Z.emit("drain",q),X&&X(),LK(Z)},(H)=>{return wK(Z,H)}),K=Z.chunkSizeBytes,Z.pos=0,++Z.n}Q-=G,G=Math.min(K,Q)}return!1},mE=function(Z,J){if(Z.bucket.s.checkedIndexes)return J(!1);return Z.bucket.once("index",()=>{J(!0)}),!0},uE=function(Z,J){if(Z.pos===0)return LK(Z,J);++Z.state.outstandingRequests;const $=Buffer.alloc(Z.pos);Z.bufToStore.copy($,0,0,Z.pos);const X=pE(Z.id,Z.n,$);if(N9(Z,J))return!1;return Z.chunks.insertOne(X,{writeConcern:Z.writeConcern}).then(()=>{--Z.state.outstandingRequests,LK(Z)},(Y)=>{return wK(Z,Y)}),!0},N9=function(Z,J){if(Z.state.aborted){if(typeof J==="function")J(new g4.MongoAPIError("Stream has been aborted"));return!0}return!1};Object.defineProperty(cE,"__esModule",{value:!0});cE.GridFSBucketWriteStream=void 0;var os=import.meta.require("stream"),dE=D1(),g4=h(),es=L0();class w6 extends os.Writable{constructor(Z,J,$){super();if($=$??{},this.bucket=Z,this.chunks=Z.s._chunksCollection,this.filename=J,this.files=Z.s._filesCollection,this.options=$,this.writeConcern=es.WriteConcern.fromOptions($)||Z.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new dE.ObjectId,this.chunkSizeBytes=$.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},!this.bucket.s.calledOpenUploadStream)this.bucket.s.calledOpenUploadStream=!0,Jn(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}write(Z,J,$){const X=typeof J==="function"?void 0:J;return $=typeof J==="function"?J:$,mE(this,()=>Xn(this,Z,X,$))}async abort(){if(this.state.streamEnd)throw new g4.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new g4.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}end(Z,J,$){const X=typeof Z==="function"?void 0:Z,Y=typeof J==="function"?void 0:J;if($=typeof Z==="function"?Z:typeof J==="function"?J:$,this.state.streamEnd||N9(this,$))return this;if(this.state.streamEnd=!0,$)this.once(w6.FINISH,(Q)=>{if($)$(void 0,Q)});if(!X)return mE(this,()=>!!uE(this)),this;return this.write(X,Y,()=>{uE(this)}),this}}w6.CLOSE="close";w6.ERROR="error";w6.FINISH="finish";cE.GridFSBucketWriteStream=w6});var rE=z((nE)=>{Object.defineProperty(nE,"__esModule",{value:!0});nE.GridFSBucket=void 0;var aE=h(),Yn=h0(),Qn=L0(),iE=AK(),sE=RK(),Kn={bucketName:"fs",chunkSizeBytes:261120};class PK extends Yn.TypedEventEmitter{constructor(Z,J){super();this.setMaxListeners(0);const $={...Kn,...J,writeConcern:Qn.WriteConcern.fromOptions(J)};this.s={db:Z,options:$,_chunksCollection:Z.collection($.bucketName+".chunks"),_filesCollection:Z.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(Z,J){return new sE.GridFSBucketWriteStream(this,Z,J)}openUploadStreamWithId(Z,J,$){return new sE.GridFSBucketWriteStream(this,J,{...$,id:Z})}openDownloadStream(Z,J){return new iE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:Z},J)}async delete(Z){const{deletedCount:J}=await this.s._filesCollection.deleteOne({_id:Z});if(await this.s._chunksCollection.deleteMany({files_id:Z}),J===0)throw new aE.MongoRuntimeError(`File not found for id ${Z}`)}find(Z={},J={}){return this.s._filesCollection.find(Z,J)}openDownloadStreamByName(Z,J){let $={uploadDate:-1},X=void 0;if(J&&J.revision!=null)if(J.revision>=0)$={uploadDate:1},X=J.revision;else X=-J.revision-1;return new iE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:Z},{...J,sort:$,skip:X})}async rename(Z,J){const $={_id:Z},X={$set:{filename:J}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new aE.MongoRuntimeError(`File with id ${Z} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}PK.INDEX="index";nE.GridFSBucket=PK});var $9=z((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.AbstractCursor=P.MongoWriteConcernError=P.MongoUnexpectedServerResponseError=P.MongoTransactionError=P.MongoTopologyClosedError=P.MongoTailableCursorError=P.MongoSystemError=P.MongoServerSelectionError=P.MongoServerError=P.MongoServerClosedError=P.MongoRuntimeError=P.MongoParseError=P.MongoNotConnectedError=P.MongoNetworkTimeoutError=P.MongoNetworkError=P.MongoMissingDependencyError=P.MongoMissingCredentialsError=P.MongoKerberosError=P.MongoInvalidArgumentError=P.MongoGridFSStreamError=P.MongoGridFSChunkError=P.MongoExpiredSessionError=P.MongoError=P.MongoDriverError=P.MongoDecompressionError=P.MongoCursorInUseError=P.MongoCursorExhaustedError=P.MongoCompatibilityError=P.MongoChangeStreamError=P.MongoBatchReExecutionError=P.MongoAzureError=P.MongoAWSError=P.MongoAPIError=P.ChangeStreamCursor=P.MongoBulkWriteError=P.Timestamp=P.ObjectId=P.MinKey=P.MaxKey=P.Long=P.Int32=P.Double=P.Decimal128=P.DBRef=P.Code=P.BSONType=P.BSONSymbol=P.BSONRegExp=P.Binary=P.BSON=void 0;P.ServerClosedEvent=P.ConnectionReadyEvent=P.ConnectionPoolReadyEvent=P.ConnectionPoolMonitoringEvent=P.ConnectionPoolCreatedEvent=P.ConnectionPoolClosedEvent=P.ConnectionPoolClearedEvent=P.ConnectionCreatedEvent=P.ConnectionClosedEvent=P.ConnectionCheckOutStartedEvent=P.ConnectionCheckOutFailedEvent=P.ConnectionCheckedOutEvent=P.ConnectionCheckedInEvent=P.CommandSucceededEvent=P.CommandStartedEvent=P.CommandFailedEvent=P.WriteConcern=P.ReadPreference=P.ReadConcern=P.TopologyType=P.ServerType=P.ReadPreferenceMode=P.ReadConcernLevel=P.ProfilingLevel=P.ReturnDocument=P.ServerApiVersion=P.ExplainVerbosity=P.MongoErrorLabel=P.AutoEncryptionLoggerLevel=P.CURSOR_FLAGS=P.Compressor=P.AuthMechanism=P.GSSAPICanonicalizationValue=P.BatchType=P.UnorderedBulkOperation=P.OrderedBulkOperation=P.MongoClient=P.ListIndexesCursor=P.ListCollectionsCursor=P.GridFSBucketWriteStream=P.GridFSBucketReadStream=P.GridFSBucket=P.FindCursor=P.Db=P.Collection=P.ClientSession=P.ChangeStream=P.CancellationToken=P.AggregationCursor=P.Admin=void 0;P.SrvPollingEvent=P.TopologyOpeningEvent=P.TopologyDescriptionChangedEvent=P.TopologyClosedEvent=P.ServerOpeningEvent=P.ServerHeartbeatSucceededEvent=P.ServerHeartbeatStartedEvent=P.ServerHeartbeatFailedEvent=P.ServerDescriptionChangedEvent=void 0;var Gn=eX();Object.defineProperty(P,"Admin",{enumerable:!0,get:function(){return Gn.Admin}});var Fn=RY();Object.defineProperty(P,"OrderedBulkOperation",{enumerable:!0,get:function(){return Fn.OrderedBulkOperation}});var Wn=PY();Object.defineProperty(P,"UnorderedBulkOperation",{enumerable:!0,get:function(){return Wn.UnorderedBulkOperation}});var qn=M7();Object.defineProperty(P,"ChangeStream",{enumerable:!0,get:function(){return qn.ChangeStream}});var Hn=N4();Object.defineProperty(P,"Collection",{enumerable:!0,get:function(){return Hn.Collection}});var zn=K6();Object.defineProperty(P,"AbstractCursor",{enumerable:!0,get:function(){return zn.AbstractCursor}});var Un=m5();Object.defineProperty(P,"AggregationCursor",{enumerable:!0,get:function(){return Un.AggregationCursor}});var Vn=oY();Object.defineProperty(P,"FindCursor",{enumerable:!0,get:function(){return Vn.FindCursor}});var Mn=B3();Object.defineProperty(P,"ListCollectionsCursor",{enumerable:!0,get:function(){return Mn.ListCollectionsCursor}});var jn=G3();Object.defineProperty(P,"ListIndexesCursor",{enumerable:!0,get:function(){return jn.ListIndexesCursor}});var An=oZ();Object.defineProperty(P,"Db",{enumerable:!0,get:function(){return An.Db}});var Ln=rE();Object.defineProperty(P,"GridFSBucket",{enumerable:!0,get:function(){return Ln.GridFSBucket}});var wn=AK();Object.defineProperty(P,"GridFSBucketReadStream",{enumerable:!0,get:function(){return wn.GridFSBucketReadStream}});var Rn=RK();Object.defineProperty(P,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return Rn.GridFSBucketWriteStream}});var Pn=C7();Object.defineProperty(P,"MongoClient",{enumerable:!0,get:function(){return Pn.MongoClient}});var Dn=h0();Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return Dn.CancellationToken}});var Tn=x5();Object.defineProperty(P,"ClientSession",{enumerable:!0,get:function(){return Tn.ClientSession}});var In=D1();Object.defineProperty(P,"BSON",{enumerable:!0,get:function(){return In.BSON}});var E0=D1();Object.defineProperty(P,"Binary",{enumerable:!0,get:function(){return E0.Binary}});Object.defineProperty(P,"BSONRegExp",{enumerable:!0,get:function(){return E0.BSONRegExp}});Object.defineProperty(P,"BSONSymbol",{enumerable:!0,get:function(){return E0.BSONSymbol}});Object.defineProperty(P,"BSONType",{enumerable:!0,get:function(){return E0.BSONType}});Object.defineProperty(P,"Code",{enumerable:!0,get:function(){return E0.Code}});Object.defineProperty(P,"DBRef",{enumerable:!0,get:function(){return E0.DBRef}});Object.defineProperty(P,"Decimal128",{enumerable:!0,get:function(){return E0.Decimal128}});Object.defineProperty(P,"Double",{enumerable:!0,get:function(){return E0.Double}});Object.defineProperty(P,"Int32",{enumerable:!0,get:function(){return E0.Int32}});Object.defineProperty(P,"Long",{enumerable:!0,get:function(){return E0.Long}});Object.defineProperty(P,"MaxKey",{enumerable:!0,get:function(){return E0.MaxKey}});Object.defineProperty(P,"MinKey",{enumerable:!0,get:function(){return E0.MinKey}});Object.defineProperty(P,"ObjectId",{enumerable:!0,get:function(){return E0.ObjectId}});Object.defineProperty(P,"Timestamp",{enumerable:!0,get:function(){return E0.Timestamp}});var En=O5();Object.defineProperty(P,"MongoBulkWriteError",{enumerable:!0,get:function(){return En.MongoBulkWriteError}});var Nn=I3();Object.defineProperty(P,"ChangeStreamCursor",{enumerable:!0,get:function(){return Nn.ChangeStreamCursor}});var Z1=h();Object.defineProperty(P,"MongoAPIError",{enumerable:!0,get:function(){return Z1.MongoAPIError}});Object.defineProperty(P,"MongoAWSError",{enumerable:!0,get:function(){return Z1.MongoAWSError}});Object.defineProperty(P,"MongoAzureError",{enumerable:!0,get:function(){return Z1.MongoAzureError}});Object.defineProperty(P,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return Z1.MongoBatchReExecutionError}});Object.defineProperty(P,"MongoChangeStreamError",{enumerable:!0,get:function(){return Z1.MongoChangeStreamError}});Object.defineProperty(P,"MongoCompatibilityError",{enumerable:!0,get:function(){return Z1.MongoCompatibilityError}});Object.defineProperty(P,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return Z1.MongoCursorExhaustedError}});Object.defineProperty(P,"MongoCursorInUseError",{enumerable:!0,get:function(){return Z1.MongoCursorInUseError}});Object.defineProperty(P,"MongoDecompressionError",{enumerable:!0,get:function(){return Z1.MongoDecompressionError}});Object.defineProperty(P,"MongoDriverError",{enumerable:!0,get:function(){return Z1.MongoDriverError}});Object.defineProperty(P,"MongoError",{enumerable:!0,get:function(){return Z1.MongoError}});Object.defineProperty(P,"MongoExpiredSessionError",{enumerable:!0,get:function(){return Z1.MongoExpiredSessionError}});Object.defineProperty(P,"MongoGridFSChunkError",{enumerable:!0,get:function(){return Z1.MongoGridFSChunkError}});Object.defineProperty(P,"MongoGridFSStreamError",{enumerable:!0,get:function(){return Z1.MongoGridFSStreamError}});Object.defineProperty(P,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return Z1.MongoInvalidArgumentError}});Object.defineProperty(P,"MongoKerberosError",{enumerable:!0,get:function(){return Z1.MongoKerberosError}});Object.defineProperty(P,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return Z1.MongoMissingCredentialsError}});Object.defineProperty(P,"MongoMissingDependencyError",{enumerable:!0,get:function(){return Z1.MongoMissingDependencyError}});Object.defineProperty(P,"MongoNetworkError",{enumerable:!0,get:function(){return Z1.MongoNetworkError}});Object.defineProperty(P,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return Z1.MongoNetworkTimeoutError}});Object.defineProperty(P,"MongoNotConnectedError",{enumerable:!0,get:function(){return Z1.MongoNotConnectedError}});Object.defineProperty(P,"MongoParseError",{enumerable:!0,get:function(){return Z1.MongoParseError}});Object.defineProperty(P,"MongoRuntimeError",{enumerable:!0,get:function(){return Z1.MongoRuntimeError}});Object.defineProperty(P,"MongoServerClosedError",{enumerable:!0,get:function(){return Z1.MongoServerClosedError}});Object.defineProperty(P,"MongoServerError",{enumerable:!0,get:function(){return Z1.MongoServerError}});Object.defineProperty(P,"MongoServerSelectionError",{enumerable:!0,get:function(){return Z1.MongoServerSelectionError}});Object.defineProperty(P,"MongoSystemError",{enumerable:!0,get:function(){return Z1.MongoSystemError}});Object.defineProperty(P,"MongoTailableCursorError",{enumerable:!0,get:function(){return Z1.MongoTailableCursorError}});Object.defineProperty(P,"MongoTopologyClosedError",{enumerable:!0,get:function(){return Z1.MongoTopologyClosedError}});Object.defineProperty(P,"MongoTransactionError",{enumerable:!0,get:function(){return Z1.MongoTransactionError}});Object.defineProperty(P,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return Z1.MongoUnexpectedServerResponseError}});Object.defineProperty(P,"MongoWriteConcernError",{enumerable:!0,get:function(){return Z1.MongoWriteConcernError}});var Bn=O5();Object.defineProperty(P,"BatchType",{enumerable:!0,get:function(){return Bn.BatchType}});var Cn=XJ();Object.defineProperty(P,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return Cn.GSSAPICanonicalizationValue}});var hn=_8();Object.defineProperty(P,"AuthMechanism",{enumerable:!0,get:function(){return hn.AuthMechanism}});var On=RJ();Object.defineProperty(P,"Compressor",{enumerable:!0,get:function(){return On.Compressor}});var Sn=K6();Object.defineProperty(P,"CURSOR_FLAGS",{enumerable:!0,get:function(){return Sn.CURSOR_FLAGS}});var kn=R7();Object.defineProperty(P,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return kn.AutoEncryptionLoggerLevel}});var yn=h();Object.defineProperty(P,"MongoErrorLabel",{enumerable:!0,get:function(){return yn.MongoErrorLabel}});var _n=gX();Object.defineProperty(P,"ExplainVerbosity",{enumerable:!0,get:function(){return _n.ExplainVerbosity}});var xn=C7();Object.defineProperty(P,"ServerApiVersion",{enumerable:!0,get:function(){return xn.ServerApiVersion}});var vn=z3();Object.defineProperty(P,"ReturnDocument",{enumerable:!0,get:function(){return vn.ReturnDocument}});var fn=C3();Object.defineProperty(P,"ProfilingLevel",{enumerable:!0,get:function(){return fn.ProfilingLevel}});var gn=p0();Object.defineProperty(P,"ReadConcernLevel",{enumerable:!0,get:function(){return gn.ReadConcernLevel}});var bn=y1();Object.defineProperty(P,"ReadPreferenceMode",{enumerable:!0,get:function(){return bn.ReadPreferenceMode}});var oE=c0();Object.defineProperty(P,"ServerType",{enumerable:!0,get:function(){return oE.ServerType}});Object.defineProperty(P,"TopologyType",{enumerable:!0,get:function(){return oE.TopologyType}});var mn=p0();Object.defineProperty(P,"ReadConcern",{enumerable:!0,get:function(){return mn.ReadConcern}});var un=y1();Object.defineProperty(P,"ReadPreference",{enumerable:!0,get:function(){return un.ReadPreference}});var dn=L0();Object.defineProperty(P,"WriteConcern",{enumerable:!0,get:function(){return dn.WriteConcern}});var DK=LQ();Object.defineProperty(P,"CommandFailedEvent",{enumerable:!0,get:function(){return DK.CommandFailedEvent}});Object.defineProperty(P,"CommandStartedEvent",{enumerable:!0,get:function(){return DK.CommandStartedEvent}});Object.defineProperty(P,"CommandSucceededEvent",{enumerable:!0,get:function(){return DK.CommandSucceededEvent}});var $8=oQ();Object.defineProperty(P,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return $8.ConnectionCheckedInEvent}});Object.defineProperty(P,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return $8.ConnectionCheckedOutEvent}});Object.defineProperty(P,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return $8.ConnectionCheckOutFailedEvent}});Object.defineProperty(P,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return $8.ConnectionCheckOutStartedEvent}});Object.defineProperty(P,"ConnectionClosedEvent",{enumerable:!0,get:function(){return $8.ConnectionClosedEvent}});Object.defineProperty(P,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return $8.ConnectionCreatedEvent}});Object.defineProperty(P,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return $8.ConnectionPoolClearedEvent}});Object.defineProperty(P,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return $8.ConnectionPoolClosedEvent}});Object.defineProperty(P,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return $8.ConnectionPoolCreatedEvent}});Object.defineProperty(P,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return $8.ConnectionPoolMonitoringEvent}});Object.defineProperty(P,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return $8.ConnectionPoolReadyEvent}});Object.defineProperty(P,"ConnectionReadyEvent",{enumerable:!0,get:function(){return $8.ConnectionReadyEvent}});var R6=TJ();Object.defineProperty(P,"ServerClosedEvent",{enumerable:!0,get:function(){return R6.ServerClosedEvent}});Object.defineProperty(P,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return R6.ServerDescriptionChangedEvent}});Object.defineProperty(P,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return R6.ServerHeartbeatFailedEvent}});Object.defineProperty(P,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return R6.ServerHeartbeatStartedEvent}});Object.defineProperty(P,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return R6.ServerHeartbeatSucceededEvent}});Object.defineProperty(P,"ServerOpeningEvent",{enumerable:!0,get:function(){return R6.ServerOpeningEvent}});Object.defineProperty(P,"TopologyClosedEvent",{enumerable:!0,get:function(){return R6.TopologyClosedEvent}});Object.defineProperty(P,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return R6.TopologyDescriptionChangedEvent}});Object.defineProperty(P,"TopologyOpeningEvent",{enumerable:!0,get:function(){return R6.TopologyOpeningEvent}});var pn=qK();Object.defineProperty(P,"SrvPollingEvent",{enumerable:!0,get:function(){return pn.SrvPollingEvent}})});var jN=z((l51,MN)=>{var Yt=function(Z){return Z%4===0&&Z%100!==0||Z%400===0},Qt=function(Z=""){if(Z.length===10){let $=Z.replace(".","-").replace("/","-").split("-");if($.length===3){if($[0].length===4){let X=parseInt($[0]),Y=parseInt($[1]),Q=parseInt($[2]);if(Y===2){if(Yt(X)){if(Q>29)return!1}else if(Q>28)return!1}if(Y===4||Y===6||Y===9||Y===11){if(Q>30)return!1}}}return!0}return!0},P6=function(Z){let J;if(typeof Z==="number"){if(J=new Date(Z),typeof J==="object")return!0}if(J=new Date(Z),typeof J==="object"){if(J.toString()==="Invalid Date")return!1;if(!Qt(Z))return!1;return!0}var $=/^\d{4}\-\d{1,2}\-\d{1,2}$/;if(!$.test(Z))return!1;var X=Z.split("-"),Y=parseInt(X[2],10),Q=parseInt(X[1],10),K=parseInt(X[0],10);if(K<1000||K>3000||Q==0||Q>12)return!1;var G=[31,28,31,30,31,30,31,31,30,31,30,31];if(K%400==0||K%100!=0&&K%4==0)G[1]=29;return Y>0&&Y<=G[Q-1]},VN=function(Z,J,$){this.name=Z,this.fn=J,this.passes=null,this._customMessage=void 0,this.async=$},Y$={required:function(Z){var J;if(Z===void 0||Z===null)return!1;return J=String(Z).replace(/\s/g,""),J.length>0?!0:!1},required_if:function(Z,J,$){if(J=this.getParameters(),this.validator._objectPath(this.validator.input,J[0])===J[1])return this.validator.getRule("required").validate(Z);return!0},required_unless:function(Z,J,$){if(J=this.getParameters(),this.validator._objectPath(this.validator.input,J[0])!==J[1])return this.validator.getRule("required").validate(Z);return!0},required_with:function(Z,J,$){if(this.validator._objectPath(this.validator.input,J))return this.validator.getRule("required").validate(Z);return!0},required_with_all:function(Z,J,$){J=this.getParameters();for(var X=0;X<J.length;X++)if(!this.validator._objectPath(this.validator.input,J[X]))return!0;return this.validator.getRule("required").validate(Z)},required_without:function(Z,J,$){if(this.validator._objectPath(this.validator.input,J))return!0;return this.validator.getRule("required").validate(Z)},required_without_all:function(Z,J,$){J=this.getParameters();for(var X=0;X<J.length;X++)if(this.validator._objectPath(this.validator.input,J[X]))return!0;return this.validator.getRule("required").validate(Z)},boolean:function(Z){return Z===!0||Z===!1||Z===0||Z===1||Z==="0"||Z==="1"||Z==="true"||Z==="false"},size:function(Z,J,$){if(Z){J=parseFloat(J);var X=this.getSize();return X===J}return!0},string:function(Z,J,$){return typeof Z==="string"},sometimes:function(Z){return!0},min:function(Z,J,$){var X=this.getSize();return X>=J},max:function(Z,J,$){var X=this.getSize();return X<=J},between:function(Z,J,$){J=this.getParameters();var X=this.getSize(),Y=parseFloat(J[0],10),Q=parseFloat(J[1],10);return X>=Y&&X<=Q},email:function(Z){var J=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!J.test(Z))J=/^((?:[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]|[^\u0000-\u007F])+@(?:[a-zA-Z0-9]|[^\u0000-\u007F])(?:(?:[a-zA-Z0-9-]|[^\u0000-\u007F]){0,61}(?:[a-zA-Z0-9]|[^\u0000-\u007F]))?(?:\.(?:[a-zA-Z0-9]|[^\u0000-\u007F])(?:(?:[a-zA-Z0-9-]|[^\u0000-\u007F]){0,61}(?:[a-zA-Z0-9]|[^\u0000-\u007F]))?)+)*$/;return J.test(Z)},numeric:function(Z){var J=Number(Z);if(typeof J==="number"&&!isNaN(J)&&typeof Z!=="boolean")return!0;else return!1},array:function(Z){return Z instanceof Array},url:function(Z){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_\+.~#?&/=]*)/i.test(Z)},alpha:function(Z){return/^[a-zA-Z]+$/.test(Z)},alpha_dash:function(Z){return/^[a-zA-Z0-9_\-]+$/.test(Z)},alpha_num:function(Z){return/^[a-zA-Z0-9]+$/.test(Z)},same:function(Z,J){var $=this.validator._flattenObject(this.validator.input)[J],X=Z;if($===X)return!0;return!1},different:function(Z,J){var $=this.validator._flattenObject(this.validator.input)[J],X=Z;if($!==X)return!0;return!1},in:function(Z,J){var $,X;if(Z)$=this.getParameters();if(Z&&!(Z instanceof Array)){var Y=Z;for(X=0;X<$.length;X++){if(typeof $[X]==="string")Y=String(Z);if(Y===$[X])return!0}return!1}if(Z&&Z instanceof Array){for(X=0;X<Z.length;X++)if($.indexOf(Z[X])<0)return!1}return!0},not_in:function(Z,J){var $=this.getParameters(),X=$.length,Y=!0;for(var Q=0;Q<X;Q++){var K=Z;if(typeof $[Q]==="string")K=String(Z);if(K===$[Q]){Y=!1;break}}return Y},accepted:function(Z){if(Z==="on"||Z==="yes"||Z===1||Z==="1"||Z===!0)return!0;return!1},confirmed:function(Z,J,$){var X=$+"_confirmation";if(this.validator.input[X]===Z)return!0;return!1},integer:function(Z){return String(parseInt(Z,10))===String(Z)},digits:function(Z,J){var $=this.validator.getRule("numeric");if($.validate(Z)&&String(Z.trim()).length===parseInt(J))return!0;return!1},digits_between:function(Z){var J=this.validator.getRule("numeric"),$=this.getParameters(),X=String(Z).length,Y=parseFloat($[0],10),Q=parseFloat($[1],10);if(J.validate(Z)&&X>=Y&&X<=Q)return!0;return!1},regex:function(Z,J){let $=J;var X=/[g|i|m]{1,3}$/,Y=J.match(X);return Y=Y?Y[0]:"",J=J.replace(X,"").slice(1,-1),J=new RegExp(J,Y),!!J.test(Z)},date:function(Z,J){return P6(Z)},present:function(Z){return typeof Z!=="undefined"},after:function(Z,J){var $=this.validator.input[J],X=Z;if(!P6($))return!1;if(!P6(X))return!1;if(new Date($).getTime()<new Date(X).getTime())return!0;return!1},after_or_equal:function(Z,J){var $=this.validator.input[J],X=Z;if(!P6($))return!1;if(!P6(X))return!1;if(new Date($).getTime()<=new Date(X).getTime())return!0;return!1},before:function(Z,J){var $=this.validator.input[J],X=Z;if(!P6($))return!1;if(!P6(X))return!1;if(new Date($).getTime()>new Date(X).getTime())return!0;return!1},before_or_equal:function(Z,J){var $=this.validator.input[J],X=Z;if(!P6($))return!1;if(!P6(X))return!1;if(new Date($).getTime()>=new Date(X).getTime())return!0;return!1},hex:function(Z){return/^[0-9a-f]+$/i.test(Z)},ipv4:function(Z,J,$){if(typeof Z!="string")return!1;var X=/^[0-9]+$/;if(octets=Z.split("."),octets.length!=4)return!1;for(let Q=0;Q<octets.length;Q++){const K=octets[Q];if(!X.test(K))return!1;var Y=parseInt(K);if(Y>=256)return!1}return!0},ipv6:function(Z,J,$){if(typeof Z!="string")return!1;var X=/^[0-9a-f]+$/;if(hextets=Z.split(":"),colons=Z.match(/::/),colons!=null&&Z.match(/::/g).length>1)return!1;if(Z[0]==":"&&(colons==null||colons!=null&&colons.index!=0))return!1;if(Z[Z.length-1]==":"&&(colons==null||colons!=null&&colons.index!=Z.length-2))return!1;if(3>hextets.length)return!1;var Y=hextets.length==9&&colons!=null&&(colons.index==0||colons.index==Z.length-2);if(hextets.length>8&&!Y)return!1;if(hextets.length!=8&&colons==null)return!1;for(let Q=0;Q<hextets.length;Q++){const K=hextets[Q];if(K.length==0)continue;if(!X.test(K))return!1;if(K.length>4)return!1}return!0},ip:function(Z,J,$){return Y$.ipv4(Z,J,$)||Y$.ipv6(Z,J,$)}},zN=function(){throw new Error("Validator `"+this.name+"` is not defined!")},UN;VN.prototype={validate:function(Z,J,$,X){var Y=this;if(this._setValidatingData($,Z,J),typeof X==="function"){this.callback=X;var Q=function(K,G){Y.response(K,G)};if(this.async)return this._apply(Z,J,$,Q);else return Q(this._apply(Z,J,$))}return this._apply(Z,J,$)},_apply:function(Z,J,$,X){var Y=this.isMissed()?zN:this.fn;return Y.apply(this,[Z,J,$,X])},_setValidatingData:function(Z,J,$){this.attribute=Z,this.inputValue=J,this.ruleValue=$},getParameters:function(){var Z=[];if(typeof this.ruleValue==="string")Z=this.ruleValue.split(",");if(typeof this.ruleValue==="number")Z.push(this.ruleValue);if(this.ruleValue instanceof Array)Z=this.ruleValue;return Z},getSize:function(){var Z=this.inputValue;if(Z instanceof Array)return Z.length;if(typeof Z==="number")return Z;if(this.validator._hasNumericRule(this.attribute))return parseFloat(Z,10);return Z.length},_getValueType:function(){if(typeof this.inputValue==="number"||this.validator._hasNumericRule(this.attribute))return"numeric";return"string"},response:function(Z,J){this.passes=Z===void 0||Z===!0,this._customMessage=J,this.callback(this.passes,J)},setValidator:function(Z){this.validator=Z},isMissed:function(){return typeof this.fn!=="function"},get customMessage(){return this.isMissed()?UN:this._customMessage}};var Kt={asyncRules:[],implicitRules:["required","required_if","required_unless","required_with","required_with_all","required_without","required_without_all","accepted","present"],make:function(Z,J){var $=this.isAsync(Z),X=new VN(Z,Y$[Z],$);return X.setValidator(J),X},isAsync:function(Z){for(var J=0,$=this.asyncRules.length;J<$;J++)if(this.asyncRules[J]===Z)return!0;return!1},isImplicit:function(Z){return this.implicitRules.indexOf(Z)>-1},register:function(Z,J){Y$[Z]=J},registerImplicit:function(Z,J){this.register(Z,J),this.implicitRules.push(Z)},registerAsync:function(Z,J){this.register(Z,J),this.asyncRules.push(Z)},registerAsyncImplicit:function(Z,J){this.registerImplicit(Z,J),this.asyncRules.push(Z)},registerMissedRuleValidator:function(Z,J){zN=Z,UN=J}};MN.exports=Kt});var OK=z((a51,AN)=>{var Ft=function(Z){return Z.replace(/[_\[]/g," ").replace(/]/g,"")},Gt={between:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{min:$[0],max:$[1]})},digits_between:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{min:$[0],max:$[1]})},required_if:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{other:this._getAttributeName($[0]),value:$[1]})},required_unless:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{other:this._getAttributeName($[0]),value:$[1]})},required_with:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{field:this._getAttributeName($[0])})},required_with_all:function(Z,J){var $=J.getParameters(),X=this._getAttributeName.bind(this);return this._replacePlaceholders(J,Z,{fields:$.map(X).join(", ")})},required_without:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{field:this._getAttributeName($[0])})},required_without_all:function(Z,J){var $=J.getParameters(),X=this._getAttributeName.bind(this);return this._replacePlaceholders(J,Z,{fields:$.map(X).join(", ")})},after:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{after:this._getAttributeName($[0])})},before:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{before:this._getAttributeName($[0])})},after_or_equal:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{after_or_equal:this._getAttributeName($[0])})},before_or_equal:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{before_or_equal:this._getAttributeName($[0])})},same:function(Z,J){var $=J.getParameters();return this._replacePlaceholders(J,Z,{same:this._getAttributeName($[0])})}};AN.exports={replacements:Gt,formatter:Ft}});var RN=z((i51,wN)=>{var LN=OK(),SK=function(Z,J){this.lang=Z,this.messages=J,this.customMessages={},this.attributeNames={}};SK.prototype={constructor:SK,_setCustom:function(Z){this.customMessages=Z||{}},_setAttributeNames:function(Z){this.attributeNames=Z},_setAttributeFormatter:function(Z){this.attributeFormatter=Z},_getAttributeName:function(Z){var J=Z;if(this.attributeNames.hasOwnProperty(Z))return this.attributeNames[Z];else if(this.messages.attributes.hasOwnProperty(Z))J=this.messages.attributes[Z];if(this.attributeFormatter)J=this.attributeFormatter(J);return J},all:function(){return this.messages},render:function(Z){if(Z.customMessage)return Z.customMessage;var J=this._getTemplate(Z),$;if(LN.replacements[Z.name])$=LN.replacements[Z.name].apply(this,[J,Z]);else $=this._replacePlaceholders(Z,J,{});return $},_getTemplate:function(Z){var J=this.messages,$=J.def,X=this.customMessages,Y=[Z.name+"."+Z.attribute,Z.name];for(var Q=0,K;Q<Y.length;Q++)if(K=Y[Q],X.hasOwnProperty(K)){$=X[K];break}else if(J.hasOwnProperty(K)){$=J[K];break}if(typeof $==="object")$=$[Z._getValueType()];return $},_replacePlaceholders:function(Z,J,$){var X,Y;if($.attribute=this._getAttributeName(Z.attribute),$[Z.name]=$[Z.name]||Z.getParameters().join(","),typeof J==="string"&&typeof $==="object"){X=J;for(Y in $)X=X.replace(new RegExp(":"+Y,"g"),$[Y])}return X}};wN.exports=SK});var DN=z((s51,PN)=>{PN.exports={accepted:"The :attribute must be accepted.",after:"The :attribute must be after :after.",after_or_equal:"The :attribute must be equal or after :after_or_equal.",alpha:"The :attribute field must contain only alphabetic characters.",alpha_dash:"The :attribute field may only contain alpha-numeric characters, as well as dashes and underscores.",alpha_num:"The :attribute field must be alphanumeric.",before:"The :attribute must be before :before.",before_or_equal:"The :attribute must be equal or before :before_or_equal.",between:{numeric:"The :attribute field must be between :min and :max.",string:"The :attribute field must be between :min and :max characters."},confirmed:"The :attribute confirmation does not match.",email:"The :attribute format is invalid.",date:"The :attribute is not a valid date format.",def:"The :attribute attribute has errors.",digits:"The :attribute must be :digits digits.",digits_between:"The :attribute field must be between :min and :max digits.",different:"The :attribute and :different must be different.",in:"The selected :attribute is invalid.",integer:"The :attribute must be an integer.",hex:"The :attribute field should have hexadecimal format",min:{numeric:"The :attribute must be at least :min.",string:"The :attribute must be at least :min characters."},max:{numeric:"The :attribute may not be greater than :max.",string:"The :attribute may not be greater than :max characters."},not_in:"The selected :attribute is invalid.",numeric:"The :attribute must be a number.",present:"The :attribute field must be present (but can be empty).",required:"The :attribute field is required.",required_if:"The :attribute field is required when :other is :value.",required_unless:"The :attribute field is required when :other is not :value.",required_with:"The :attribute field is required when :field is not empty.",required_with_all:"The :attribute field is required when :fields are not empty.",required_without:"The :attribute field is required when :field is empty.",required_without_all:"The :attribute field is required when :fields are empty.",same:"The :attribute and :same fields must match.",size:{numeric:"The :attribute must be :size.",string:"The :attribute must be :size characters."},string:"The :attribute must be a string.",url:"The :attribute format is invalid.",regex:"The :attribute format is invalid.",attributes:{}}});var IN=z((n51,TN)=>{var Wt=RN();DN();var qt=require,Ht={messages:{},_set:function(Z,J){this.messages[Z]=J},_setRuleMessage:function(Z,J,$){if(this._load(Z),$===void 0)$=this.messages[Z].def;this.messages[Z][J]=$},_load:function(Z){if(!this.messages[Z])try{var J=qt("./lang/"+Z);this._set(Z,J)}catch($){}},_get:function(Z){return this._load(Z),this.messages[Z]},_make:function(Z){return this._load(Z),new Wt(Z,this.messages[Z])}};TN.exports=Ht});var NN=z((t51,EN)=>{var kK=function(){this.errors={}};kK.prototype={constructor:kK,add:function(Z,J){if(!this.has(Z))this.errors[Z]=[];if(this.errors[Z].indexOf(J)===-1)this.errors[Z].push(J)},get:function(Z){if(this.has(Z))return this.errors[Z];return[]},first:function(Z){if(this.has(Z))return this.errors[Z][0];return!1},all:function(){return this.errors},has:function(Z){if(this.errors.hasOwnProperty(Z))return!0;return!1}};EN.exports=kK});var hN=z((r51,CN)=>{var BN=function(Z,J){this.onResolvedAll=J,this.onFailedOne=Z,this.resolvers={},this.resolversCount=0,this.passed=[],this.failed=[],this.firing=!1};BN.prototype={add:function(Z){var J=this.resolversCount;return this.resolvers[J]=Z,this.resolversCount++,J},resolve:function(Z){var J=this.resolvers[Z];if(J.passes===!0)this.passed.push(J);else if(J.passes===!1)this.failed.push(J),this.onFailedOne(J);this.fire()},isAllResolved:function(){return this.passed.length+this.failed.length===this.resolversCount},fire:function(){if(!this.firing)return;if(this.isAllResolved())this.onResolvedAll(this.failed.length===0)},enableFiring:function(){this.firing=!0}};CN.exports=BN});var SN=z((o51,ON)=>{var K4=jN(),m4=IN(),zt=NN(),Ut=OK(),Vt=hN(),S1=function(Z,J,$){var X=S1.getDefaultLang();this.input=Z||{},this.messages=m4._make(X),this.messages._setCustom($),this.setAttributeFormatter(S1.prototype.attributeFormatter),this.errors=new zt,this.errorCount=0,this.hasAsync=!1,this.rules=this._parseRules(J)};S1.prototype={constructor:S1,lang:"en",numericRules:["integer","numeric"],attributeFormatter:Ut.formatter,check:function(){var Z=this;for(var J in this.rules){var $=this.rules[J],X=this._objectPath(this.input,J);if(this._hasRule(J,["sometimes"])&&!this._suppliedWithData(J))continue;for(var Y=0,Q=$.length,K,G,F;Y<Q;Y++){if(G=$[Y],K=this.getRule(G.name),!this._isValidatable(K,X))continue;if(F=K.validate(X,G.value,J),!F)this._addFailure(K);if(this._shouldStopValidating(J,F))break}}return this.errorCount===0},checkAsync:function(Z,J){var $=this;Z=Z||function(){},J=J||function(){};var X=function(V,L){$._addFailure(V,L)},Y=function(V){if(V)Z();else J()},Q=new Vt(X,Y),K=function(V,L,D,N){return function(){var w=Q.add(N);N.validate(V,L.value,D,function(){Q.resolve(w)})}};for(var G in this.rules){var F=this.rules[G],W=this._objectPath(this.input,G);if(this._hasRule(G,["sometimes"])&&!this._suppliedWithData(G))continue;for(var q=0,H=F.length,U,j;q<H;q++){if(j=F[q],U=this.getRule(j.name),!this._isValidatable(U,W))continue;K(W,j,G,U)()}}Q.enableFiring(),Q.fire()},_addFailure:function(Z){var J=this.messages.render(Z);this.errors.add(Z.attribute,J),this.errorCount++},_flattenObject:function(Z){var J={};function $(X,Y){if(!Y&&Object.getOwnPropertyNames(X).length===0)return;if(Object(X)!==X||Array.isArray(X))J[Y]=X;else{var Q=!0;for(var K in X)Q=!1,$(X[K],Y?Y+"."+K:K);if(Q)J[Y]={}}}if(Z)$(Z);return J},_objectPath:function(Z,J){if(Object.prototype.hasOwnProperty.call(Z,J))return Z[J];var $=J.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),X={};for(var Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))X[Y]=Z[Y];for(var Q=0,K=$.length;Q<K;Q++)if(typeof X==="object"&&X!==null&&Object.hasOwnProperty.call(X,$[Q]))X=X[$[Q]];else return;return X},_parseRules:function(Z){var J={};Z=this._flattenObject(Z);for(var $ in Z){var X=Z[$];this._parseRulesCheck($,X,J)}return J},_parseRulesCheck:function(Z,J,$,X){if(Z.indexOf("*")>-1)this._parsedRulesRecurse(Z,J,$,X);else this._parseRulesDefault(Z,J,$,X)},_parsedRulesRecurse:function(Z,J,$,X){var Y=Z.substr(0,Z.indexOf("*")-1),Q=this._objectPath(this.input,Y);if(Q)for(var K=0;K<Q.length;K++){var G=X?X.slice():[];G.push(K),this._parseRulesCheck(Z.replace("*",K),J,$,G)}},_parseRulesDefault:function(Z,J,$,X){var Y=[];if(J instanceof Array)J=this._prepareRulesArray(J);if(typeof J==="string")J=J.split("|");for(var Q=0,K=J.length,G;Q<K;Q++){if(G=typeof J[Q]==="string"?this._extractRuleAndRuleValue(J[Q]):J[Q],G.value)G.value=this._replaceWildCards(G.value,X),this._replaceWildCardsMessages(X);if(K4.isAsync(G.name))this.hasAsync=!0;Y.push(G)}$[Z]=Y},_replaceWildCards:function(Z,J){if(!J)return Z;var $=Z;if(J.forEach(function(X){if(Array.isArray($))$=$[0];const Y=$.indexOf("*");if(Y===-1)return $;$=$.substr(0,Y)+X+$.substr(Y+1)}),Array.isArray(Z))Z[0]=$,$=Z;return $},_replaceWildCardsMessages:function(Z){var J=this.messages.customMessages,$=this;Object.keys(J).forEach(function(X){if(Z){var Y=$._replaceWildCards(X,Z);J[Y]=J[X]}}),this.messages._setCustom(J)},_prepareRulesArray:function(Z){var J=[];for(var $=0,X=Z.length;$<X;$++)if(typeof Z[$]==="object")for(var Y in Z[$])J.push({name:Y,value:Z[$][Y]});else J.push(Z[$]);return J},_suppliedWithData:function(Z){return this.input.hasOwnProperty(Z)},_extractRuleAndRuleValue:function(Z){var J={},$;if(J.name=Z,Z.indexOf(":")>=0)$=Z.split(":"),J.name=$[0],J.value=$.slice(1).join(":");return J},_hasRule:function(Z,J){var $=this.rules[Z]||[];for(var X=0,Y=$.length;X<Y;X++)if(J.indexOf($[X].name)>-1)return!0;return!1},_hasNumericRule:function(Z){return this._hasRule(Z,this.numericRules)},_isValidatable:function(Z,J){if(Array.isArray(J))return!0;if(K4.isImplicit(Z.name))return!0;return this.getRule("required").validate(J)},_shouldStopValidating:function(Z,J){var $=this.stopOnAttributes;if(typeof $==="undefined"||$===!1||J===!0)return!1;if($ instanceof Array)return $.indexOf(Z)>-1;return!0},setAttributeNames:function(Z){this.messages._setAttributeNames(Z)},setAttributeFormatter:function(Z){this.messages._setAttributeFormatter(Z)},getRule:function(Z){return K4.make(Z,this)},stopOnError:function(Z){this.stopOnAttributes=Z},passes:function(Z){var J=this._checkAsync("passes",Z);if(J)return this.checkAsync(Z);return this.check()},fails:function(Z){var J=this._checkAsync("fails",Z);if(J)return this.checkAsync(function(){},Z);return!this.check()},_checkAsync:function(Z,J){var $=typeof J==="function";if(this.hasAsync&&!$)throw Z+" expects a callback when async rules are being tested.";return this.hasAsync||$}};S1.setMessages=function(Z,J){return m4._set(Z,J),this};S1.getMessages=function(Z){return m4._get(Z)};S1.useLang=function(Z){this.prototype.lang=Z};S1.getDefaultLang=function(){return this.prototype.lang};S1.setAttributeFormatter=function(Z){this.prototype.attributeFormatter=Z};S1.stopOnError=function(Z){this.prototype.stopOnAttributes=Z};S1.register=function(Z,J,$,X){var Y=S1.getDefaultLang();K4.register(Z,J),m4._setRuleMessage(Y,Z,$)};S1.registerImplicit=function(Z,J,$,X){var Y=S1.getDefaultLang();K4.registerImplicit(Z,J),m4._setRuleMessage(Y,Z,$)};S1.registerAsync=function(Z,J,$,X){var Y=S1.getDefaultLang();K4.registerAsync(Z,J),m4._setRuleMessage(Y,Z,$)};S1.registerAsyncImplicit=function(Z,J,$){var X=S1.getDefaultLang();K4.registerAsyncImplicit(Z,J),m4._setRuleMessage(X,Z,$)};S1.registerMissedRuleValidator=function(Z,J){K4.registerMissedRuleValidator(Z,J)};ON.exports=S1});import{createRequire as gh} from"module";var vK=D6(G$(),1);class u4{static list(Z){return vK.default({},{argv:Z.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(Z,J){if(Z.length>J.length)throw new Error("Too many arguments");const $={};for(let X=0;X<J.length;X++){const Y=J[X];$[Y.name]=Z[X]}try{return $}catch(X){throw X}}static requireArguments(Z){let J="";if(Object.keys(Z).forEach((X,Y,Q)=>{if(Z[X]===void 0){if(J+=X,Y<Q.length-1)J+=", "}}),J!=="")throw new Error(`Argument ${J} is required`)}}class T6{constructor(Z){var J;this.opts={},this.args={},this.name=Z.name,this.alias=(J=Z.alias)!==null&&J!==void 0?J:[],this.description=Z.description,this.summary=Z.summary,this.arguments=Z.arguments,this.options=Z.options}}import*as C9 from"tty";var{env:I6={},argv:gK=[],platform:uN=""}=typeof process==="undefined"?{}:process,dN="NO_COLOR"in I6||gK.includes("--no-color"),pN="FORCE_COLOR"in I6||gK.includes("--color"),cN=uN==="win32",bK=I6.TERM==="dumb",lN=C9&&C9.isatty&&C9.isatty(1)&&I6.TERM&&!bK,aN="CI"in I6&&(("GITHUB_ACTIONS"in I6)||("GITLAB_CI"in I6)||("CIRCLECI"in I6)),iN=!dN&&(pN||cN&&!bK||lN||aN),mK=(Z,J,$,X,Y=J.substring(0,Z)+X,Q=J.substring(Z+$.length),K=Q.indexOf($))=>Y+(K<0?Q:mK(K,Q,$,X)),sN=(Z,J,$,X,Y)=>Z<0?$+J+X:$+mK(Z,J,X,Y)+X,nN=(Z,J,$=Z,X=Z.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?sN((""+Y).indexOf(J,X),Y,Z,J,$):"",d=(Z,J,$)=>nN(`\x1B[${Z}m`,`\x1B[${J}m`,$),fK={reset:d(0,0),bold:d(1,22,"\x1B[22m\x1B[1m"),dim:d(2,22,"\x1B[22m\x1B[2m"),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49),blackBright:d(90,39),redBright:d(91,39),greenBright:d(92,39),yellowBright:d(93,39),blueBright:d(94,39),magentaBright:d(95,39),cyanBright:d(96,39),whiteBright:d(97,39),bgBlackBright:d(100,49),bgRedBright:d(101,49),bgGreenBright:d(102,49),bgYellowBright:d(103,49),bgBlueBright:d(104,49),bgMagentaBright:d(105,49),bgCyanBright:d(106,49),bgWhiteBright:d(107,49)},tN=({useColor:Z=iN}={})=>Z?fK:Object.keys(fK).reduce((J,$)=>({...J,[$]:String}),{}),{reset:Rt,bold:Pt,dim:Dt,italic:Tt,underline:It,inverse:Et,hidden:Nt,strikethrough:Bt,black:Ct,red:uK,green:dK,yellow:pK,blue:cK,magenta:ht,cyan:Ot,white:St,gray:lK,bgBlack:kt,bgRed:aK,bgGreen:iK,bgYellow:sK,bgBlue:nK,bgMagenta:yt,bgCyan:_t,bgWhite:xt,blackBright:vt,redBright:ft,greenBright:gt,yellowBright:bt,blueBright:mt,magentaBright:ut,cyanBright:dt,whiteBright:pt,bgBlackBright:ct,bgRedBright:lt,bgGreenBright:at,bgYellowBright:it,bgBlueBright:st,bgMagentaBright:nt,bgCyanBright:tt,bgWhiteBright:rt}=tN();class $1{static red(Z){return uK(Z)}static green(Z){return dK(Z)}static blue(Z){return cK(Z)}static gray(Z){return lK(Z)}static yellow(Z){return pK(Z)}static bgRed(Z){return aK(Z)}static bgGreen(Z){return iK(Z)}static bgBlue(Z){return nK(Z)}static bgYellow(Z){return sK(Z)}}class F${constructor(Z){this.commands=[],this.name=Z}getCommands(){return this.commands.filter((Z)=>Z.name!=="")}getCommand(Z){var J;return(J=this.commands.find(($)=>$.name===Z))!==null&&J!==void 0?J:this.commands.find(($)=>$.alias.includes(Z))}createCommand(Z){this.addHelpFlag(Z),this.commands.push(Z)}findDuplicate(){const Z=new Set,J=[],$=[],X=[];return this.commands.forEach((Y)=>{if(Z.size===Z.add(Y.name).size)J.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((W)=>{if(K.size===K.add(W.name).size)Q.push(W.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],F=new Set;if(Y.options.forEach((W)=>{if(F.size===F.add(W.flag).size)G.push(W.flag);if(W.type==="boolean"&&W.shorthand&&F.size===F.add(W.shorthand).size)G.push(W.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:J.length>0||$.length>0||X.length>0,commands:J,arguments:$,options:X}}addHelpFlag(Z){Z.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var nG=D6(sG(),1);class w$ extends nG.default{constructor(Z){super(Z)}static termsWidth(...Z){return Math.max(...Z)}}class a8 extends w${constructor(Z=30){super({colWidths:[Z,process.stdout.columns-Z],wordWrap:!0,chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}})}}class Q8{static rootHelp(Z,J){this.outputRoot+=$1.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${Z.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("COMMANDS"),this.outputRoot+=this.br();const $=a8.termsWidth(Q8.commandTermLength(Z.getCommands()),Q8.optionTermLength(J)),X=new a8($+this.separatorLength+Math.round($/2));Z.getCommands().forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new a8($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("OPTIONS"),this.outputRoot+=this.br(),J.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(Z,J){if(this.output+=$1.yellow("USAGE"),this.output+=this.br(),this.output+=` ${Z.name} ${J.name}`,J.options.length)this.output+=" [options]";J.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("ARGUMENTS"),this.output+=this.br();const $=a8.termsWidth(Q8.argumentTermLength(J.arguments),Q8.optionTermLength(J.options)),X=new a8($+this.separatorLength+Math.round($/2));J.arguments.forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("OPTIONS"),this.output+=this.br();const Y=new a8($+this.separatorLength+Math.round($/2));if(J.options.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),J.alias.length)this.output+=this.br(),this.output+=$1.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${$1.green(J.alias.join(","))}`;console.log(this.output)}static br(Z=1){let J="";for(let $=0;$<Z;$++)J+="\n";return J}static commandTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}static optionTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.flag.length)},0)}static argumentTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}}Q8.separatorLength=10;Q8.outputRoot="";Q8.output="";var R$=D6(G$(),1);class _9{static convert(Z){const J={};for(let $=0;$<Z.length;$++){const X=Z[$];if(J[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)J[X.shorthand]=X.flag}return J}static parseRoot(Z,J){try{const $=this.convert(J);return R$.default($,{argv:Z.slice(2)})}catch($){throw $}}static parse(Z,J,$){try{const X=this.convert($),Y=R$.default(X,{argv:Z.slice(3)});return{args:u4.parse(Y._,J),opts:Y}}catch(X){throw X}}}var fh=D6(Gz(),1);class Fz{constructor(Z,J){if(J)this.version=J;else this.version=this.packageVersion();this.command=new F$(Z)}packageVersion(){const Z=gh(import.meta.url),{version:J}=Z("../package.json");return J}register(Z){this.command.createCommand(Z)}run(Z){try{const J=this.command.findDuplicate();if(J.isDuplicate){if(J.commands.length)console.error($1.red("[ERROR] Duplicate commands")),console.error(J.commands);if(J.arguments.length)console.error($1.red("[ERROR] Duplicate arguments")),console.error(J.arguments);if(J.options.length)console.error($1.red("[ERROR] Duplicate options")),console.error(J.options);return}if(u4.list(Z).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(_9.parseRoot(Z,Q)["--version"])return console.log(this.version);return Q8.rootHelp(this.command,Q)}let X=this.command.getCommand(Z[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=_9.parse(Z,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return Q8.commandHelp(this.command,X);u4.requireArguments(X.args),X.handle()}catch(J){if(J instanceof Error)return console.error($1.red(`[ERROR] ${J.message}`));return console.error(J)}}}function e9(Z,J,$){$(new q4(404))}class b0 extends Error{constructor(Z){super(Z.message);Object.setPrototypeOf(this,new.target.prototype),this.code=Z.code,this.status=Z.status,this.message=Z.message,this.errors=Z.errors,Error.captureStackTrace(this)}}var K5=(Z)=>{if(Z instanceof b0)return Z.isOperational;return!1};function ZZ(Z,J,$,X){if(Z instanceof b0&&K5(Z)){const Q={name:Z.name,code:Z.code,status:Z.status,message:Z.message};if(Z.errors)Q.errors=Z.errors;return $.status(Z.code).json(Q),X(Z)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(Z)}function H4(Z){if(typeof Z==="number")return Wz.find((J)=>{return J.code===Z});else return Wz.find((J)=>{return J.status===Z})}var Wz=[{name:"ClientError",code:400,status:"Bad Request",message:"The server cannot process the request."},{name:"ClientError",code:401,status:"Unauthorized",message:"Authentication credentials is invalid."},{name:"ClientError",code:403,status:"Forbidden",message:"Don't have necessary permissions for this resource."},{name:"ClientError",code:404,status:"Not Found",message:"The URL is not recognized or endpoint is valid but the resource itself does not exist."},{name:"ClientError",code:422,status:"Unprocessable Entity",message:"The request was well-formed but was unable to be followed due to semantic errors."},{name:"ClientError",code:429,status:"Too Many Requests",message:"Sent too many requests in a given amount of time."},{name:"ServerError",code:500,status:"Internal Server Error",message:"An unexpected condition was encountered."}];class q4 extends b0{constructor(Z,J){const $=H4(Z);if(!$)throw new Error(`Error codeStatus "${Z}" not found`);const X=$;if(J)X.errors=J;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var xN=D6($9(),1);import P41 from"fs";import T41 from"path";import N41 from"fs";import C41 from"path";import S41 from"fs";var TK=(Z)=>Z[0].toUpperCase()+Z.slice(1);var B9=(Z)=>{return Z.replace(/(?:^\w|[A-Z]|\b\w)/g,function(J,$){return $===0?J.toLowerCase():J.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var b4=(Z)=>TK(B9(Z));var O1=(Z)=>Z.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import d7 from"fs";import ZN from"path";class Z$ extends T6{constructor(){super({name:"make:command",description:"Make a new console command",summary:"Make a new console command",arguments:[{name:"name",description:"Name of console command"}],options:[]})}async handle(){if(d7.existsSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`)){console.error($1.red("Command directory is exists"));return}d7.mkdirSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`,{recursive:!0});const Z=d7.readFileSync(ZN.resolve(Q4,"./command/index.command.ts")).toString().replace("[name]",O1(this.args.name)).replace("NewCommand",`${b4(this.args.name)}Command`);d7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.command.ts`,Z);const J=d7.readFileSync(ZN.resolve(Q4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${b4(this.args.name)}Command`).replace(/newCommand/g,`${B9(this.args.name)}Command`);d7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/console/commands/${O1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${O1(this.args.name)}/index.spec.ts`,"has been created")}}import p8 from"fs";import J$ from"path";class $$ extends T6{constructor(){super({name:"make:middleware",description:"Make a new middleware",summary:"Make a new middleware",arguments:[{name:"name",description:"Name of middleware"}],options:[{type:"boolean",flag:"--configurable",shorthand:"-c",description:"Export a function which accepts an options"}]})}async handle(){if(p8.existsSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`)){console.error($1.red("Middleware directory is exists"));return}if(p8.mkdirSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const Z=p8.readFileSync(J$.resolve(Q4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${b4(this.args.name)}Middleware`);p8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=p8.readFileSync(J$.resolve(Q4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");p8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const Z=p8.readFileSync(J$.resolve(Q4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${b4(this.args.name)}Middleware`);p8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=p8.readFileSync(J$.resolve(Q4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");p8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}}class IK{command;constructor(Z){this.command=Z}async register(){this.command.register(new Z$),this.command.register(new $$)}}class EK{Z;session;constructor(Z){this.adapter=Z}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(Z){return this.adapter.database(Z),this}collection(Z){return this.adapter.collection(Z),this}async listCollections(){return this.adapter.listCollections()}startSession(){return this.adapter.startSession()}async endSession(){await this.adapter.endSession()}startTransaction(){this.adapter.startTransaction()}async commitTransaction(){await this.adapter.commitTransaction()}async abortTransaction(){await this.adapter.abortTransaction()}async createIndex(Z,J,$){await this.adapter.createIndex(Z,J,$)}async createCollection(Z,J){await this.adapter.createCollection(Z,J)}async dropCollection(Z,J){await this.adapter.dropCollection(Z,J)}async updateSchema(Z,J){await this.adapter.updateSchema(Z,J)}async create(Z,J){return await this.adapter.create(Z,J)}async createMany(Z,J){return await this.adapter.createMany(Z,J)}async retrieveAll(Z,J){return await this.adapter.retrieveAll(Z,J)}async retrieve(Z,J){return await this.adapter.retrieve(Z,J)}async update(Z,J,$){return await this.adapter.update(Z,J,$)}async updateMany(Z,J,$){return await this.adapter.updateMany(Z,J,$)}async delete(Z,J){return await this.adapter.delete(Z,J)}async deleteMany(Z,J){return await this.adapter.deleteMany(Z,J)}async deleteAll(Z){return await this.adapter.deleteAll(Z)}async aggregate(Z,J,$){return await this.adapter.aggregate(Z,J,$)}}var c7=D6($9(),1);function JN(Z){const J=Object.prototype.toString.call(Z);if(Z instanceof Date||typeof Z==="object"&&J==="[object Date]")return new Z.constructor(+Z);else if(typeof Z==="number"||J==="[object Number]"||typeof Z==="string"||J==="[object String]")return new Date(Z);else return new Date(NaN)}function $N(Z){return Z instanceof Date||typeof Z==="object"&&Object.prototype.toString.call(Z)==="[object Date]"}function X$(Z){if(!$N(Z)&&typeof Z!=="number")return!1;const J=JN(Z);return!isNaN(Number(J))}var p7=D6($9(),1);class V0{db;constructor(Z){this.db=Z}async createUnique(Z,J){await this.db.createIndex(Z,J,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(Z,J){await this.db.createIndex(Z,J,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(Z){return(await this.db.listCollections()).some(function($){return $.name===Z})}static stringToObjectId(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.stringToObjectId(J)});else if(typeof Z==="object"&&!X$(Z))return Object.keys(Z).reduce((J,$)=>{const X=V0.stringToObjectId(Z[$]);return J[$]=X,J},{});else if(typeof Z==="string"&&p7.ObjectId.isValid(Z)&&Z===new p7.ObjectId(Z).toString())return new p7.ObjectId(Z);return Z}static objectIdToString(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.objectIdToString(J)});else if(typeof Z==="object"&&p7.ObjectId.isValid(Z))return Z.toString();else if(typeof Z==="object"&&!X$(Z))return Object.keys(Z).reduce((J,$)=>{if(p7.ObjectId.isValid(Z)||X$(Z))return Z.toString();else{const X=V0.objectIdToString(Z[$]);return J[$]=X,J}},{});return Z}}function XN(Z=1){if(typeof Z==="string")return parseInt(Z);return Z}function YN(Z=10){if(typeof Z==="string")return parseInt(Z);return Z}function on(Z,J){return(XN(Z)-1)*YN(J)}function en(Z){return Z}function Zt(Z="",J=[]){const $=KN(QN(Z));return GN($,J)}function QN(Z){return Z.split(" ").join().split(",").filter((J)=>J)}function KN(Z,J=1){const $={};for(let X=0;X<Z.length;X++)$[`${Z[X].trim()}`]=J;return $}function GN(Z,J){for(let $=0;$<J.length;$++)Z[`${J[$]}`]=0;return Z}function Jt(Z){const J={};if(Z)Z.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),J[$.trim()]=-1;else J[$.trim()]=1});return J}var L1={page:XN,limit:YN,skip:on,sort:Jt,fields:Zt,filter:en,filterExludeFields:GN,convertStringToArray:QN,convertArrayToObject:KN};class NK{J;client;_database;_collection;session;constructor(Z,J){this.databaseName=J;const $={};this.client=new c7.MongoClient(Z,$),this.database(J)}async open(){await this.client.connect()}async close(){await this.client.close()}database(Z,J){return this._database=this.client.db(Z,J),this}collection(Z,J){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(Z,J),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(Z,J,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(Z,J,$)}async updateSchema(Z,J){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:Z,validator:{$jsonSchema:J}})}async createCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.createCollection(Z,J)}async dropCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(Z,J)}startSession(){return this.session=this.client.startSession(),this.session}async endSession(){await this.session?.endSession()}startTransaction(){this.session?.startTransaction()}async commitTransaction(){await this.session?.commitTransaction()}async abortTransaction(){await this.session?.abortTransaction()}async create(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{insertedId:(await this._collection.insertOne(Z,$)).insertedId.toString()}}async createMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.insertMany(Z,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=this._collection.find(V0.stringToObjectId(Z.filter??{}),$).limit(L1.limit(Z.pageSize)).skip(L1.skip(L1.page(Z.page),L1.limit(Z.pageSize)));if(Z.sort&&L1.sort(Z.sort))X.sort(L1.sort(Z.sort));if(L1.fields(Z.fields,Z.excludeFields))X.project(L1.fields(Z.fields,Z.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(Z.filter??{},$);return{data:V0.objectIdToString(Y),pagination:{page:L1.page(Z.page),pageCount:Math.ceil(Q/L1.limit(Z.pageSize)),pageSize:L1.limit(Z.pageSize),totalDocument:Q}}}async retrieve(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.findOne({_id:new c7.ObjectId(Z)},$);return V0.objectIdToString(X)}async update(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new c7.ObjectId(Z)},{$set:V0.stringToObjectId(J)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(Z,{$set:V0.stringToObjectId(J)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteOne({_id:new c7.ObjectId(Z)},$)).deletedCount}}async deleteMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteMany({_id:{$in:V0.stringToObjectId(Z)}},$)).deletedCount}}async deleteAll(Z){if(!this._collection)throw new Error("Collection not found");const J=Z;return{deletedCount:(await this._collection.deleteMany({},J)).deletedCount}}async aggregate(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...Z,{$skip:(L1.page(J.page)-1)*L1.limit(J.pageSize)},{$limit:L1.limit(J.pageSize)}],X);if(J.sort&&L1.sort(J.sort))Y.sort(L1.sort(J.sort));if(L1.fields(J.fields,J.excludeFields))Y.project(L1.fields(J.fields,J.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...Z,{$count:"totalDocument"}],X).toArray(),F=G.length?G[0].totalDocument:0;return{data:V0.objectIdToString(Q),pagination:{page:L1.page(J.page),pageCount:Math.ceil(F/L1.limit(J.pageSize)),pageSize:L1.limit(J.pageSize),totalDocument:F}}}}function $t(Z,J){J.errors={},(Z.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],J.errors=Y})}function Xt(Z,J){if(Object.keys(Z.keyPattern).length===1)J.errors={[Object.keys(Z.keyPattern)[0]]:[`The ${Object.keys(Z.keyPattern)[0]} is exists.`]};else{const $=Object.keys(Z.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(Z.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(Z.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});J.errors=X}}class BK extends b0{constructor(Z){const J=H4(400);if(Z.code===121)$t(Z,J);else if(Z.code===11000)Xt(Z,J);super(J);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}function CK(){return(Z,J,$,X)=>{if(Z instanceof FN)throw new WN(Z);X(Z)}}class X8{static dbConnection;static async open(Z,J="api_test"){X8.dbConnection=new qN(Z,J),await X8.dbConnection.open()}static async close(){await X8.dbConnection.close()}static async createCollections(Z){const J=new HN(X8.dbConnection);for(let $=0;$<Z.length;$++)for(let X=0;X<Z[$].length;X++){if(!await J.isExists(Z[$][X].collection))console.info(`[schema] ${Z[$][X].collection} - create collection`),await X8.dbConnection.createCollection(Z[$][X].collection);console.info(`[schema] ${Z[$][X].collection} - update schema`),await X8.dbConnection.updateSchema(Z[$][X].collection,Z[$][X].schema);for(let Y of Z[$][X].unique)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUnique(Z[$][X].collection,hK.convertArrayToObject(Y,-1));for(let Y of Z[$][X].uniqueIfExists)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUniqueIfNotNull(Z[$][X].collection,hK.convertArrayToObject(Y,-1))}}static async reset(){const Z=await X8.dbConnection.listCollections();for(let J of Z)await X8.dbConnection.collection(J.name).deleteAll()}static async retrieve(Z,J){return await X8.dbConnection.collection(Z).retrieve(J)}static async retrieveAll(Z,J={}){return await X8.dbConnection.collection(Z).retrieveAll(J)}}var kN=D6(SN(),1);var Mt=async(Z,J)=>{const $=new kN.default(Z,J);if($.fails())throw new yN.ApiError(422,$.errors.errors)};class yK{constructor(){this.modelCount=1,this.modelSequence=[],this.modelState={}}count(Z){return this.modelCount=Z,this}sequence(Z){return this.modelSequence=Z,this}state(Z){return this.modelState=Z,this}useSequence(){const Z=[];for(let J=0;J<this.modelCount;J++){const $=this.definition();let X={};if(this.modelSequence.length)X=this.modelSequence[J%this.modelSequence.length];Z.push(Object.assign({},this.useState(Object.assign(Object.assign({},$),X))))}return Z}useState(Z){return Object.assign(Object.assign({},Z),this.modelState)}make(Z=1){if(this.count(Z),this.modelCount===1)return this.makeOne();return this.makeMany(Z)}makeOne(){return this.useState(this.definition())}makeMany(Z){return this.count(Z),this.useSequence()}}class _N{app;server=null;constructor(Z){this.app=Z}listen(Z,J){return new Promise(($,X)=>{if(J)this.server=this.app.listen(Z,J).once("listening",$).once("error",X);else this.server=this.app.listen(Z).once("listening",$).once("error",X)})}async start(Z,J){await this.listen(Z,J)}stop(){this.server?.close(),this.server=null}get host(){const Z=this.server?.address();if(Z?.address==="0.0.0.0"||Z?.address==="::")return"localhost";else return Z?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var Q4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),z91=T6,U91=IK,V91=EK,qN=NK,HN=V0,hK=L1,FN=xN.MongoServerError,WN=BK,yN={ApiError:q4,BaseError:b0,isTrustedError:K5,getHttpError:H4,mongodbErrorHandlerMiddleware:CK,errorHandlerMiddleware:ZZ,invalidPathMiddleware:e9};export{Q4 as stubDir,Mt as schemaValidation,X8 as DatabaseTestUtil,_N as BaseServer,FN as BaseMongoServerError,WN as BaseMongoErrorHandler,hK as BaseMongoDBQuerystring,HN as BaseMongoDBHelper,qN as BaseMongoDBConnection,yK as BaseFactory,yN as BaseErrorHandler,V91 as BaseDatabaseConnection,U91 as BaseConsoleKernel,z91 as BaseConsoleCommand,Fz as BaseConsoleCli};
16
+ Filtered results for: ${this.inputValue?this.inputValue:o8.gray("Enter something to filter")}\n`}renderOption(Z,J,$){let X;if(J.disabled)X=Z===$?o8.gray().underline(J.title):o8.strikethrough().gray(J.title);else X=Z===$?o8.cyan().underline(J.title):J.title;return(J.selected?o8.green(p4.radioOn):p4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[o8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)Z.push(o8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n2.hide);super.render();let Z=[xH.symbol(this.done,this.aborted),o8.bold(this.msg),xH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=o8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+Z),this.clear=_H(Z,this.out.columns)}}fH.exports=vH});var cH=z((tr,pH)=>{var bH=w1(),r2=t8(),{style:mH,clear:o2}=K8(),{erase:e2,cursor:uH}=P1();class dH extends r2{constructor(Z={}){super(Z);this.msg=Z.message,this.value=Z.initial,this.initialValue=!!Z.initial,this.yesMsg=Z.yes||"yes",this.yesOption=Z.yesOption||"(Y/n)",this.noMsg=Z.no||"no",this.noOption=Z.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){if(Z.toLowerCase()==="y")return this.value=!0,this.submit();if(Z.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(uH.hide);else this.out.write(o2(this.outputText,this.out.columns));super.render(),this.outputText=[mH.symbol(this.done,this.aborted),bH.bold(this.msg),mH.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:bH.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(e2.line+uH.to(0)+this.outputText)}}pH.exports=dH});var aH=z((rr,lH)=>{lH.exports={TextPrompt:BW(),SelectPrompt:yW(),TogglePrompt:fW(),DatePrompt:LH(),NumberPrompt:TH(),MultiselectPrompt:g$(),AutocompletePrompt:kH(),AutocompleteMultiselectPrompt:gH(),ConfirmPrompt:cH()}});var sH=z((iH)=>{var C8=function(Z,J,$={}){return new Promise((X,Y)=>{const Q=new Zh[Z](J),K=$.onAbort||s9,G=$.onSubmit||s9,q=$.onExit||s9;Q.on("state",J.onState||s9),Q.on("submit",(F)=>X(G(F))),Q.on("exit",(F)=>X(q(F))),Q.on("abort",(F)=>Y(K(F)))})},j0=iH,Zh=aH(),s9=(Z)=>Z;j0.text=(Z)=>C8("TextPrompt",Z);j0.password=(Z)=>{return Z.style="password",j0.text(Z)};j0.invisible=(Z)=>{return Z.style="invisible",j0.text(Z)};j0.number=(Z)=>C8("NumberPrompt",Z);j0.date=(Z)=>C8("DatePrompt",Z);j0.confirm=(Z)=>C8("ConfirmPrompt",Z);j0.list=(Z)=>{const J=Z.separator||",";return C8("TextPrompt",Z,{onSubmit:($)=>$.split(J).map((X)=>X.trim())})};j0.toggle=(Z)=>C8("TogglePrompt",Z);j0.select=(Z)=>C8("SelectPrompt",Z);j0.multiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return C8("MultiselectPrompt",Z,{onAbort:J,onSubmit:J})};j0.autocompleteMultiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return C8("AutocompleteMultiselectPrompt",Z,{onAbort:J,onSubmit:J})};var Jh=(Z,J)=>Promise.resolve(J.filter(($)=>$.title.slice(0,Z.length).toLowerCase()===Z.toLowerCase()));j0.autocomplete=(Z)=>{return Z.suggest=Z.suggest||Jh,Z.choices=[].concat(Z.choices||[]),C8("AutocompletePrompt",Z)}});var rH=z((er,tH)=>{async function E6(Z=[],{onSubmit:J=nH,onCancel:$=nH}={}){const X={},Y=E6._override||{};Z=[].concat(Z);let Q,K,G,q,F,W;const H=async(V,j,U=!1)=>{if(!U&&V.validate&&V.validate(j)!==!0)return;return V.format?await V.format(j,X):j};for(K of Z){if({name:q,type:F}=K,typeof F==="function")F=await F(Q,{...X},K),K.type=F;if(!F)continue;for(let V in K){if($h.includes(V))continue;let j=K[V];K[V]=typeof j==="function"?await j(Q,{...X},W):j}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");if({name:q,type:F}=K,u$[F]===void 0)throw new Error(`prompt type (${F}) is not defined`);if(Y[K.name]!==void 0){if(Q=await H(K,Y[K.name]),Q!==void 0){X[q]=Q;continue}}try{Q=E6._injected?Xh(E6._injected,K.initial):await u$[F](K),X[q]=Q=await H(K,Q,!0),G=await J(K,Q,X)}catch(V){G=!await $(K,X)}if(G)return X}return X}var Xh=function(Z,J){const $=Z.shift();if($ instanceof Error)throw $;return $===void 0?J:$},Yh=function(Z){E6._injected=(E6._injected||[]).concat(Z)},Qh=function(Z){E6._override=Object.assign({},Z)},u$=sH(),$h=["suggest","format","onState","validate","onRender","type"],nH=()=>{};tH.exports=Object.assign(E6,{prompt:E6,prompts:u$,inject:Yh,override:Qh})});var eH=z((Zo,oH)=>{var Kh=function(Z){Z=(Array.isArray(Z)?Z:Z.split(".")).map(Number);let J=0,$=process.versions.node.split(".").map(Number);for(;J<Z.length;J++){if($[J]>Z[J])return!1;if(Z[J]>$[J])return!0}return!1};oH.exports=Kh("8.6.0")?QW():rH()});var h=z((hz)=>{var Fh=function(Z){return"errors"in Z&&Array.isArray(Z.errors)},Wh=function(Z){return Z[Rz]===!0},Hh=function(Z){const J=Object.assign({},Z);if(J.ok===0)J.ok=1,delete J.errmsg,delete J.code,delete J.codeName;return J},zh=function(Z,J){if(Z instanceof F4)return!0;if(Z instanceof h8){if((J>=9||Z.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError))&&!Z.hasErrorLabel(hz.MongoErrorLabel.HandshakeError))return!1}if(Z instanceof l$)return $z.has(Z.result?.code??Z.code??0);if(Z instanceof h8&&typeof Z.code==="number")return $z.has(Z.code);if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},Vh=function(Z){return Z.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError)},Uh=function(Z){if(typeof Z.code==="number"?Bz.has(Z.code):!1)return!0;if(Z instanceof F4)return!0;if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},Cz=function(Z){if(typeof Z.code==="number")return Mh.has(Z.code);return hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(Z.message)||hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message)},Lh=function(Z){if(typeof Z.code==="number")return jh.has(Z.code);if(Cz(Z))return!1;return hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message)},wh=function(Z){return!!(typeof Z.code==="number"&&Ah.has(Z.code))},Rh=function(Z){if(Z instanceof p$||Z==null)return!0;return Cz(Z)||Lh(Z)},Ph=function(Z){return!!(Z instanceof F4&&Z.message.match(/timed out/))},Dh=function(Z,J){if(Z==null||!(Z instanceof h8))return!1;if(Z instanceof F4)return!0;if(J!=null&&J>=9){if(Z.code===hz.MONGODB_ERROR_CODES.CursorNotFound)return!0;return Z.hasErrorLabel(hz.MongoErrorLabel.ResumableChangeStreamError)}if(typeof Z.code==="number")return hz.GET_MORE_RESUMABLE_CODES.has(Z.code);return!1};Object.defineProperty(hz,"__esModule",{value:!0});hz.isResumableError=hz.isNetworkTimeoutError=hz.isSDAMUnrecoverableError=hz.isNodeShuttingDownError=hz.isRetryableReadError=hz.isRetryableWriteError=hz.needsRetryableWriteLabel=hz.MongoWriteConcernError=hz.MongoServerSelectionError=hz.MongoSystemError=hz.MongoMissingDependencyError=hz.MongoMissingCredentialsError=hz.MongoCompatibilityError=hz.MongoInvalidArgumentError=hz.MongoParseError=hz.MongoNetworkTimeoutError=hz.MongoNetworkError=hz.isNetworkErrorBeforeHandshake=hz.MongoTopologyClosedError=hz.MongoCursorExhaustedError=hz.MongoServerClosedError=hz.MongoCursorInUseError=hz.MongoUnexpectedServerResponseError=hz.MongoGridFSChunkError=hz.MongoGridFSStreamError=hz.MongoTailableCursorError=hz.MongoChangeStreamError=hz.MongoAzureError=hz.MongoAWSError=hz.MongoKerberosError=hz.MongoExpiredSessionError=hz.MongoTransactionError=hz.MongoNotConnectedError=hz.MongoDecompressionError=hz.MongoBatchReExecutionError=hz.MongoRuntimeError=hz.MongoAPIError=hz.MongoDriverError=hz.MongoServerError=hz.MongoError=hz.MongoErrorLabel=hz.GET_MORE_RESUMABLE_CODES=hz.MONGODB_ERROR_CODES=hz.NODE_IS_RECOVERING_ERROR_MESSAGE=hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;var X5=Symbol("errorLabels");hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");hz.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");hz.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391});hz.GET_MORE_RESUMABLE_CODES=new Set([hz.MONGODB_ERROR_CODES.HostUnreachable,hz.MONGODB_ERROR_CODES.HostNotFound,hz.MONGODB_ERROR_CODES.NetworkTimeout,hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.ExceededTimeLimit,hz.MONGODB_ERROR_CODES.SocketException,hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,hz.MONGODB_ERROR_CODES.StaleShardVersion,hz.MONGODB_ERROR_CODES.StaleEpoch,hz.MONGODB_ERROR_CODES.StaleConfig,hz.MONGODB_ERROR_CODES.RetryChangeStream,hz.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,hz.MONGODB_ERROR_CODES.CursorNotFound]);hz.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class h8 extends Error{constructor(Z){super(h8.buildErrorMessage(Z));if(Z instanceof Error)this.cause=Z;this[X5]=new Set}static buildErrorMessage(Z){if(typeof Z==="string")return Z;if(Fh(Z)&&Z.message.length===0)return Z.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":Z.errors.map(({message:J})=>J).join(", ");return Z.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(Z){return this[X5].has(Z)}addErrorLabel(Z){this[X5].add(Z)}get errorLabels(){return Array.from(this[X5])}}hz.MongoError=h8;class d$ extends h8{constructor(Z){super(Z.message||Z.errmsg||Z.$err||"n/a");if(Z.errorLabels)this[X5]=new Set(Z.errorLabels);for(let J in Z)if(J!=="errorLabels"&&J!=="errmsg"&&J!=="message")this[J]=Z[J]}get name(){return"MongoServerError"}}hz.MongoServerError=d$;class Q5 extends h8{constructor(Z){super(Z)}get name(){return"MongoDriverError"}}hz.MongoDriverError=Q5;class G0 extends Q5{constructor(Z){super(Z)}get name(){return"MongoAPIError"}}hz.MongoAPIError=G0;class O8 extends Q5{constructor(Z){super(Z)}get name(){return"MongoRuntimeError"}}hz.MongoRuntimeError=O8;class Xz extends G0{constructor(Z="This batch has already been executed, create new batch to execute"){super(Z)}get name(){return"MongoBatchReExecutionError"}}hz.MongoBatchReExecutionError=Xz;class Yz extends O8{constructor(Z){super(Z)}get name(){return"MongoDecompressionError"}}hz.MongoDecompressionError=Yz;class Qz extends G0{constructor(Z){super(Z)}get name(){return"MongoNotConnectedError"}}hz.MongoNotConnectedError=Qz;class Kz extends G0{constructor(Z){super(Z)}get name(){return"MongoTransactionError"}}hz.MongoTransactionError=Kz;class Gz extends G0{constructor(Z="Cannot use a session that has ended"){super(Z)}get name(){return"MongoExpiredSessionError"}}hz.MongoExpiredSessionError=Gz;class qz extends O8{constructor(Z){super(Z)}get name(){return"MongoKerberosError"}}hz.MongoKerberosError=qz;class Fz extends O8{constructor(Z){super(Z)}get name(){return"MongoAWSError"}}hz.MongoAWSError=Fz;class Wz extends O8{constructor(Z){super(Z)}get name(){return"MongoAzureError"}}hz.MongoAzureError=Wz;class Hz extends O8{constructor(Z){super(Z)}get name(){return"MongoChangeStreamError"}}hz.MongoChangeStreamError=Hz;class zz extends G0{constructor(Z="Tailable cursor does not support this operation"){super(Z)}get name(){return"MongoTailableCursorError"}}hz.MongoTailableCursorError=zz;class Vz extends O8{constructor(Z){super(Z)}get name(){return"MongoGridFSStreamError"}}hz.MongoGridFSStreamError=Vz;class Uz extends O8{constructor(Z){super(Z)}get name(){return"MongoGridFSChunkError"}}hz.MongoGridFSChunkError=Uz;class Mz extends O8{constructor(Z){super(Z)}get name(){return"MongoUnexpectedServerResponseError"}}hz.MongoUnexpectedServerResponseError=Mz;class jz extends G0{constructor(Z="Cursor is already initialized"){super(Z)}get name(){return"MongoCursorInUseError"}}hz.MongoCursorInUseError=jz;class Az extends G0{constructor(Z="Server is closed"){super(Z)}get name(){return"MongoServerClosedError"}}hz.MongoServerClosedError=Az;class Lz extends G0{constructor(Z){super(Z||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}hz.MongoCursorExhaustedError=Lz;class wz extends G0{constructor(Z="Topology is closed"){super(Z)}get name(){return"MongoTopologyClosedError"}}hz.MongoTopologyClosedError=wz;var Rz=Symbol("beforeHandshake");hz.isNetworkErrorBeforeHandshake=Wh;class F4 extends h8{constructor(Z,J){super(Z);if(J&&typeof J.beforeHandshake==="boolean")this[Rz]=J.beforeHandshake}get name(){return"MongoNetworkError"}}hz.MongoNetworkError=F4;class Pz extends F4{constructor(Z,J){super(Z,J)}get name(){return"MongoNetworkTimeoutError"}}hz.MongoNetworkTimeoutError=Pz;class p$ extends Q5{constructor(Z){super(Z)}get name(){return"MongoParseError"}}hz.MongoParseError=p$;class Dz extends G0{constructor(Z){super(Z)}get name(){return"MongoInvalidArgumentError"}}hz.MongoInvalidArgumentError=Dz;class Tz extends G0{constructor(Z){super(Z)}get name(){return"MongoCompatibilityError"}}hz.MongoCompatibilityError=Tz;class Iz extends G0{constructor(Z){super(Z)}get name(){return"MongoMissingCredentialsError"}}hz.MongoMissingCredentialsError=Iz;class Ez extends G0{constructor(Z,{cause:J}={}){super(Z);if(J)this.cause=J}get name(){return"MongoMissingDependencyError"}}hz.MongoMissingDependencyError=Ez;class c$ extends h8{constructor(Z,J){if(J&&J.error)super(J.error.message||J.error);else super(Z);if(J)this.reason=J;this.code=J.error?.code}get name(){return"MongoSystemError"}}hz.MongoSystemError=c$;class Nz extends c${constructor(Z,J){super(Z,J)}get name(){return"MongoServerSelectionError"}}hz.MongoServerSelectionError=Nz;class l$ extends d${constructor(Z,J){if(J&&Array.isArray(J.errorLabels))Z.errorLabels=J.errorLabels;super(Z);if(this.errInfo=Z.errInfo,J!=null)this.result=Hh(J)}get name(){return"MongoWriteConcernError"}}hz.MongoWriteConcernError=l$;var Bz=new Set([hz.MONGODB_ERROR_CODES.HostUnreachable,hz.MONGODB_ERROR_CODES.HostNotFound,hz.MONGODB_ERROR_CODES.NetworkTimeout,hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.SocketException,hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),$z=new Set([...Bz,hz.MONGODB_ERROR_CODES.ExceededTimeLimit]);hz.needsRetryableWriteLabel=zh;hz.isRetryableWriteError=Vh;hz.isRetryableReadError=Uh;var Mh=new Set([hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),jh=new Set([hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.LegacyNotPrimary]),Ah=new Set([hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.ShutdownInProgress]);hz.isNodeShuttingDownError=wh;hz.isSDAMUnrecoverableError=Rh;hz.isNetworkTimeoutError=Ph;hz.isResumableError=Dh});var H5=z(($S)=>{var iz=function(Z){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(Z))},B6=function(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"},l4=function(Z){return Object.prototype.toString.call(Z)==="[object RegExp]"},sz=function(Z){return Object.prototype.toString.call(Z)==="[object Map]"},a4=function(Z){return Object.prototype.toString.call(Z)==="[object Date]"},HO=function(Z){return N6.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},VO=function(){const{navigator:Z}=globalThis;return typeof Z==="object"&&Z.product==="ReactNative"},UO=function(Z){if(Z<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${Z}`);return n4.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},HV=function(Z){return Z!=null&&typeof Z==="object"&&"$id"in Z&&Z.$id!=null&&"$ref"in Z&&typeof Z.$ref==="string"&&(!("$db"in Z)||("$db"in Z)&&typeof Z.$db==="string")},pz=function(Z){return!isNaN(parseInt(Z,10))},hO=function(Z){const J=M.fromNumber(1e9);let $=M.fromNumber(0);if(!Z.parts[0]&&!Z.parts[1]&&!Z.parts[2]&&!Z.parts[3])return{quotient:Z,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(Z.parts[X],0)),Z.parts[X]=$.div(J).low,$=$.modulo(J);return{quotient:Z,rem:$}},OO=function(Z,J){if(!Z&&!J)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=Z.shiftRightUnsigned(32),X=new M(Z.getLowBits(),0),Y=J.shiftRightUnsigned(32),Q=new M(J.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const q=X.multiply(Y);let F=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(q).add(F.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),F=G.shiftLeft(32).add(new M(F.getLowBits(),0)),{high:K,low:F}},SO=function(Z,J){const $=Z.high>>>0,X=J.high>>>0;if($<X)return!0;else if($===X){const Y=Z.low>>>0,Q=J.low>>>0;if(Y<Q)return!0}return!1},G8=function(Z,J){throw new R(`"${Z}" is not a valid Decimal128 string - ${J}`)},ZZ=function(Z,J,$){let X=5;if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)X+=cz(Y.toString(),Z[Y],J,!0,$);else{if(typeof Z?.toBSON==="function")Z=Z.toBSON();for(let Y of Object.keys(Z))X+=cz(Y,Z[Y],J,!1,$)}return X},cz=function(Z,J,$=!1,X=!1,Y=!1){if(typeof J?.toBSON==="function")J=J.toBSON();switch(typeof J){case"string":return 1+A.utf8ByteLength(Z)+1+4+A.utf8ByteLength(J)+1;case"number":if(Math.floor(J)===J&&J>=oz&&J<=rz)if(J>=qZ&&J<=GZ)return(Z!=null?A.utf8ByteLength(Z)+1:0)+5;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;case"undefined":if(X||!Y)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;return 0;case"boolean":return(Z!=null?A.utf8ByteLength(Z)+1:0)+2;case"object":if(J!=null&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(J==null||J._bsontype==="MinKey"||J._bsontype==="MaxKey")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;else if(J._bsontype==="ObjectId")return(Z!=null?A.utf8ByteLength(Z)+1:0)+13;else if(J instanceof Date||a4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(ArrayBuffer.isView(J)||J instanceof ArrayBuffer||iz(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+6+J.byteLength;else if(J._bsontype==="Long"||J._bsontype==="Double"||J._bsontype==="Timestamp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(J._bsontype==="Decimal128")return(Z!=null?A.utf8ByteLength(Z)+1:0)+17;else if(J._bsontype==="Code")if(J.scope!=null&&Object.keys(J.scope).length>0)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+4+A.utf8ByteLength(J.code.toString())+1+ZZ(J.scope,$,Y);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.code.toString())+1;else if(J._bsontype==="Binary"){const Q=J;if(Q.sub_type===s.SUBTYPE_BYTE_ARRAY)return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1+4);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1)}else if(J._bsontype==="Symbol")return(Z!=null?A.utf8ByteLength(Z)+1:0)+A.utf8ByteLength(J.value)+4+1+1;else if(J._bsontype==="DBRef"){const Q=Object.assign({$ref:J.collection,$id:J.oid},J.fields);if(J.db!=null)Q.$db=J.db;return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+ZZ(Q,$,Y)}else if(J instanceof RegExp||l4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.source)+1+(J.global?1:0)+(J.ignoreCase?1:0)+(J.multiline?1:0)+1;else if(J._bsontype==="BSONRegExp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.pattern)+1+A.utf8ByteLength(J.options)+1;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+ZZ(J,$,Y)+1;case"function":if($)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.toString())+1}return 0},kO=function(Z){return Z.split("").sort().join("")},VV=function(Z,J,$){let X=0;for(let Y=J;Y<$;Y+=1){const Q=Z[Y];if(X){if((Q&vO)!==pO)return!1;X-=1}else if(Q&xO)if((Q&fO)===mO)X=1;else if((Q&gO)===uO)X=2;else if((Q&bO)===dO)X=3;else return!1}return!X},UV=function(Z,J,$){J=J==null?{}:J;const X=J&&J.index?J.index:0,Y=Z[X]|Z[X+1]<<8|Z[X+2]<<16|Z[X+3]<<24;if(Y<5)throw new R(`bson size must be >= 5, is ${Y}`);if(J.allowObjectSmallerThanBufferSize&&Z.length<Y)throw new R(`buffer length ${Z.length} must be >= bson size ${Y}`);if(!J.allowObjectSmallerThanBufferSize&&Z.length!==Y)throw new R(`buffer length ${Z.length} must === bson size ${Y}`);if(Y+X>Z.byteLength)throw new R(`(bson size ${Y} + options.index ${X} must be <= buffer length ${Z.byteLength})`);if(Z[X+Y-1]!==0)throw new R("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return JZ(Z,X,J,$)},JZ=function(Z,J,$,X=!1){const Y=$.fieldsAsRaw==null?null:$.fieldsAsRaw,Q=$.raw==null?!1:$.raw,K=typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,G=$.promoteBuffers??!1,q=$.promoteLongs??!0,F=$.promoteValues??!0,W=$.useBigInt64??!1;if(W&&!F)throw new R("Must either request bigint or Long for int64 deserialization");if(W&&!q)throw new R("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let V=!0,j;const U=new Set,L=H.utf8;if(typeof L==="boolean")j=L;else{V=!1;const y=Object.keys(L).map(function(N){return L[N]});if(y.length===0)throw new R("UTF-8 validation setting cannot be empty");if(typeof y[0]!=="boolean")throw new R("Invalid UTF-8 validation option, must specify boolean values");if(j=y[0],!y.every((N)=>N===j))throw new R("Invalid UTF-8 validation option - keys must be all true or all false")}if(!V)for(let y of Object.keys(L))U.add(y);const D=J;if(Z.length<5)throw new R("corrupt bson message < 5 bytes long");const B=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(B<5||B>Z.length)throw new R("corrupt bson message");const w=X?[]:{};let T=0;const f=!1;let N1=X?!1:null;const p8=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);while(!f){const y=Z[J++];if(y===0)break;let N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.byteLength)throw new R("Bad BSON Document: illegal CString");const G1=X?T++:A.toUTF8(Z,J,N);let u=!0;if(V||U.has(G1))u=j;else u=!j;if(N1!==!1&&G1[0]==="$")N1=aO.test(G1);let v;if(J=N+1,y===ez){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");v=e9(Z,J,J+C-1,u),J=J+C}else if(y===JV){const C=A.allocate(12);C.set(Z.subarray(J,J+12)),v=new V1(C),J=J+12}else if(y===s4&&F===!1)v=new S6(Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24);else if(y===s4)v=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;else if(y===$Z&&F===!1)v=new O6(p8.getFloat64(J,!0)),J=J+8;else if(y===$Z)v=p8.getFloat64(J,!0),J=J+8;else if(y===XV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;v=new Date(new M(C,k).toNumber())}else if(y===$V){if(Z[J]!==0&&Z[J]!==1)throw new R("illegal boolean type value");v=Z[J++]===1}else if(y===UX){const C=J,k=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;if(k<=0||k>Z.length-J)throw new R("bad embedded document length in bson");if(Q)v=Z.slice(J,J+k);else{let H1=$;if(!V)H1={...$,validation:{utf8:u}};v=JZ(Z,C,H1,!1)}J=J+k}else if(y===ZV){const C=J,k=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;let H1=$;const U0=J+k;if(Y&&Y[G1])H1={...$,raw:!0};if(!V)H1={...H1,validation:{utf8:u}};if(v=JZ(Z,C,H1,!0),J=J+k,Z[J-1]!==0)throw new R("invalid array terminator byte");if(J!==U0)throw new R("corrupted array bson")}else if(y===qO)v=void 0;else if(y===jX)v=null;else if(y===LX){const C=q5.fromUint8Array(Z.subarray(J,J+8)),k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,H1=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,U0=new M(k,H1);if(W)v=C.getBigInt64(0,!0);else if(q&&F===!0)v=U0.lessThanOrEqual(cO)&&U0.greaterThanOrEqual(lO)?U0.toNumber():U0;else v=U0}else if(y===GV){const C=A.allocate(16);C.set(Z.subarray(J,J+16),0),J=J+16,v=new Z0(C)}else if(y===MX){let C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;const k=C,H1=Z[J++];if(C<0)throw new R("Negative binary type element size found");if(C>Z.byteLength)throw new R("Binary type size larger than document size");if(Z.slice!=null){if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>k-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<k-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}if(G&&F)v=A.toLocalBufferType(Z.slice(J,J+C));else if(v=new s(Z.slice(J,J+C),H1),H1===YZ&&S1.isValid(v))v=v.toUUID()}else{const U0=A.allocate(C);if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>k-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<k-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}for(N=0;N<C;N++)U0[N]=Z[J+N];if(G&&F)v=U0;else if(v=new s(Z.slice(J,J+C),H1),H1===YZ&&S1.isValid(v))v=v.toUUID()}J=J+C}else if(y===XZ&&K===!1){N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,N);J=N+1,N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const k=A.toUTF8(Z,J,N);J=N+1;const H1=new Array(k.length);for(N=0;N<k.length;N++)switch(k[N]){case"m":H1[N]="m";break;case"s":H1[N]="g";break;case"i":H1[N]="i";break}v=new RegExp(C,H1.join(""))}else if(y===XZ&&K===!0){N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,N);J=N+1,N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const k=A.toUTF8(Z,J,N);J=N+1,v=new u0(C,k)}else if(y===YV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const k=e9(Z,J,J+C-1,u);v=F?k:new U4(k),J=J+C}else if(y===KV){const C=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24),k=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24);v=new m0({i:C,t:k})}else if(y===qV)v=new V4;else if(y===FV)v=new z4;else if(y===AX){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const k=e9(Z,J,J+C-1,u);v=new Z6(k),J=J+C}else if(y===QV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<13)throw new R("code_w_scope total size shorter minimum expected length");const k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(k<=0||k>Z.length-J||Z[J+k-1]!==0)throw new R("bad string length in bson");const H1=e9(Z,J,J+k-1,u);J=J+k;const U0=J,Z$=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24,KN=JZ(Z,U0,$,!1);if(J=J+Z$,C<8+Z$+k)throw new R("code_w_scope total size is too short, truncating scope");if(C>8+Z$+k)throw new R("code_w_scope total size is too long, clips outer document");v=new Z6(H1,KN)}else if(y===FO){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");if(H!=null&&H.utf8){if(!VV(Z,J,J+C-1))throw new R("Invalid UTF-8 string in BSON document")}const k=A.toUTF8(Z,J,J+C-1);J=J+C;const H1=A.allocate(12);H1.set(Z.subarray(J,J+12),0);const U0=new V1(H1);J=J+12,v=new y8(k,U0)}else throw new R(`Detected unknown BSON type ${y.toString(16)} for fieldname "${G1}"`);if(G1==="__proto__")Object.defineProperty(w,G1,{value:v,writable:!0,enumerable:!0,configurable:!0});else w[G1]=v}if(B!==J-D){if(X)throw new R("corrupt array bson");throw new R("corrupt object bson")}if(!N1)return w;if(HV(w)){const y=Object.assign({},w);return delete y.$ref,delete y.$id,delete y.$db,new y8(w.$ref,w.$id,w.$db,y)}return w},e9=function(Z,J,$,X){const Y=A.toUTF8(Z,J,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!VV(Z,J,$))throw new R("Invalid UTF-8 string in BSON document");break}}return Y},s$=function(Z,J,$,X){Z[X++]=ez;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y+1,Z[X-1]=0;const Q=A.encodeUTF8Into(Z,$,X+4);return Z[X+3]=Q+1>>24&255,Z[X+2]=Q+1>>16&255,Z[X+1]=Q+1>>8&255,Z[X]=Q+1&255,X=X+4+Q,Z[X++]=0,X},n$=function(Z,J,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=GZ&&$>=qZ?s4:$Z;if(Q===s4)t4.setInt32(0,$,!0);else t4.setFloat64(0,$,!0);const K=Q===s4?iO:KZ;Z[X++]=Q;const G=A.encodeUTF8Into(Z,J,X);return X=X+G,Z[X++]=0,Z.set(K,X),X+=K.byteLength,X},t$=function(Z,J,$,X){Z[X++]=LX;const Y=A.encodeUTF8Into(Z,J,X);return X+=Y,Z[X++]=0,t4.setBigInt64(0,$,!0),Z.set(KZ,X),X+=KZ.byteLength,X},G5=function(Z,J,$,X){Z[X++]=jX;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},r$=function(Z,J,$,X){Z[X++]=$V;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$?1:0,X},o$=function(Z,J,$,X){Z[X++]=XV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=G&255,Z[X++]=G>>8&255,Z[X++]=G>>16&255,Z[X++]=G>>24&255,X},e$=function(Z,J,$,X){Z[X++]=XZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.source&&$.source.match(QZ)!=null)throw new R("value "+$.source+" must not contain null bytes");if(X=X+A.encodeUTF8Into(Z,$.source,X),Z[X++]=0,$.ignoreCase)Z[X++]=105;if($.global)Z[X++]=115;if($.multiline)Z[X++]=109;return Z[X++]=0,X},ZX=function(Z,J,$,X){Z[X++]=XZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.pattern.match(QZ)!=null)throw new R("pattern "+$.pattern+" must not contain null bytes");X=X+A.encodeUTF8Into(Z,$.pattern,X),Z[X++]=0;const Q=$.options.split("").sort().join("");return X=X+A.encodeUTF8Into(Z,Q,X),Z[X++]=0,X},JX=function(Z,J,$,X){if($===null)Z[X++]=jX;else if($._bsontype==="MinKey")Z[X++]=qV;else Z[X++]=FV;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},$X=function(Z,J,$,X){Z[X++]=JV;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,B6($.id))Z.set($.id.subarray(0,12),X);else throw new R("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X+12},XX=function(Z,J,$,X){Z[X++]=MX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.length;return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=WO,Z.set($,X),X=X+Q,X},YX=function(Z,J,$,X,Y,Q,K,G,q){if(q.has($))throw new R("Cannot convert circular structure to BSON");q.add($),Z[X++]=Array.isArray($)?ZV:UX;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;const W=W5(Z,$,Y,X,Q+1,K,G,q);return q.delete($),W},QX=function(Z,J,$,X){Z[X++]=GV;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z.set($.bytes.subarray(0,16),X),X+16},KX=function(Z,J,$,X){Z[X++]=$._bsontype==="Long"?LX:KV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,X},GX=function(Z,J,$,X){$=$.valueOf(),Z[X++]=s4;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$&255,Z[X++]=$>>8&255,Z[X++]=$>>16&255,Z[X++]=$>>24&255,X},qX=function(Z,J,$,X){Z[X++]=$Z;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,t4.setFloat64(0,$.value,!0),Z.set(KZ,X),X=X+8,X},FX=function(Z,J,$,X){Z[X++]=AX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.toString(),K=A.encodeUTF8Into(Z,Q,X+4)+1;return Z[X]=K&255,Z[X+1]=K>>8&255,Z[X+2]=K>>16&255,Z[X+3]=K>>24&255,X=X+4+K-1,Z[X++]=0,X},WX=function(Z,J,$,X,Y=!1,Q=0,K=!1,G=!0,q){if($.scope&&typeof $.scope==="object"){Z[X++]=QV;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;let W=X;const H=$.code;X=X+4;const V=A.encodeUTF8Into(Z,H,X+4)+1;Z[X]=V&255,Z[X+1]=V>>8&255,Z[X+2]=V>>16&255,Z[X+3]=V>>24&255,Z[X+4+V-1]=0,X=X+V+4;const j=W5(Z,$.scope,Y,X,Q+1,K,G,q);X=j-1;const U=j-W;Z[W++]=U&255,Z[W++]=U>>8&255,Z[W++]=U>>16&255,Z[W++]=U>>24&255,Z[X++]=0}else{Z[X++]=AX;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;const W=$.code.toString(),H=A.encodeUTF8Into(Z,W,X+4)+1;Z[X]=H&255,Z[X+1]=H>>8&255,Z[X+2]=H>>16&255,Z[X+3]=H>>24&255,X=X+4+H-1,Z[X++]=0}return X},HX=function(Z,J,$,X){Z[X++]=MX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K+4;if(Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=$.sub_type,$.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K-4,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255;return Z.set(Q,X),X=X+$.position,X},zX=function(Z,J,$,X){Z[X++]=YV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=A.encodeUTF8Into(Z,$.value,X+4)+1;return Z[X]=Q&255,Z[X+1]=Q>>8&255,Z[X+2]=Q>>16&255,Z[X+3]=Q>>24&255,X=X+4+Q-1,Z[X++]=0,X},VX=function(Z,J,$,X,Y,Q,K){Z[X++]=UX;const G=A.encodeUTF8Into(Z,J,X);X=X+G,Z[X++]=0;let q=X,F={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)F.$db=$.db;F=Object.assign(F,$.fields);const W=W5(Z,F,!1,X,Y+1,Q,!0,K),H=W-q;return Z[q++]=H&255,Z[q++]=H>>8&255,Z[q++]=H>>16&255,Z[q++]=H>>24&255,W},W5=function(Z,J,$,X,Y,Q,K,G){if(G==null){if(J==null)return Z[0]=5,Z[1]=0,Z[2]=0,Z[3]=0,Z[4]=0,5;if(Array.isArray(J))throw new R("serialize does not support an array as the root input");if(typeof J!=="object")throw new R("serialize does not support non-object as the root input");else if("_bsontype"in J&&typeof J._bsontype==="string")throw new R("BSON types cannot be serialized as a document");else if(a4(J)||l4(J)||B6(J)||iz(J))throw new R("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(J);let q=X+4;if(Array.isArray(J))for(let W=0;W<J.length;W++){const H=`${W}`;let V=J[W];if(typeof V?.toBSON==="function")V=V.toBSON();if(typeof V==="string")q=s$(Z,H,V,q);else if(typeof V==="number")q=n$(Z,H,V,q);else if(typeof V==="bigint")q=t$(Z,H,V,q);else if(typeof V==="boolean")q=r$(Z,H,V,q);else if(V instanceof Date||a4(V))q=o$(Z,H,V,q);else if(V===void 0)q=G5(Z,H,V,q);else if(V===null)q=G5(Z,H,V,q);else if(B6(V))q=XX(Z,H,V,q);else if(V instanceof RegExp||l4(V))q=e$(Z,H,V,q);else if(typeof V==="object"&&V._bsontype==null)q=YX(Z,H,V,q,$,Y,Q,K,G);else if(typeof V==="object"&&V[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(V._bsontype==="ObjectId")q=$X(Z,H,V,q);else if(V._bsontype==="Decimal128")q=QX(Z,H,V,q);else if(V._bsontype==="Long"||V._bsontype==="Timestamp")q=KX(Z,H,V,q);else if(V._bsontype==="Double")q=qX(Z,H,V,q);else if(typeof V==="function"&&Q)q=FX(Z,H,V,q);else if(V._bsontype==="Code")q=WX(Z,H,V,q,$,Y,Q,K,G);else if(V._bsontype==="Binary")q=HX(Z,H,V,q);else if(V._bsontype==="BSONSymbol")q=zX(Z,H,V,q);else if(V._bsontype==="DBRef")q=VX(Z,H,V,q,Y,Q,G);else if(V._bsontype==="BSONRegExp")q=ZX(Z,H,V,q);else if(V._bsontype==="Int32")q=GX(Z,H,V,q);else if(V._bsontype==="MinKey"||V._bsontype==="MaxKey")q=JX(Z,H,V,q);else if(typeof V._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(V._bsontype)}`)}else if(J instanceof Map||sz(J)){const W=J.entries();let H=!1;while(!H){const V=W.next();if(H=!!V.done,H)continue;const j=V.value[0];let U=V.value[1];if(typeof U?.toBSON==="function")U=U.toBSON();const L=typeof U;if(typeof j==="string"&&!lz.has(j)){if(j.match(QZ)!=null)throw new R("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new R("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new R("key "+j+" must not contain '.'")}}if(L==="string")q=s$(Z,j,U,q);else if(L==="number")q=n$(Z,j,U,q);else if(L==="bigint")q=t$(Z,j,U,q);else if(L==="boolean")q=r$(Z,j,U,q);else if(U instanceof Date||a4(U))q=o$(Z,j,U,q);else if(U===null||U===void 0&&K===!1)q=G5(Z,j,U,q);else if(B6(U))q=XX(Z,j,U,q);else if(U instanceof RegExp||l4(U))q=e$(Z,j,U,q);else if(L==="object"&&U._bsontype==null)q=YX(Z,j,U,q,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(U._bsontype==="ObjectId")q=$X(Z,j,U,q);else if(L==="object"&&U._bsontype==="Decimal128")q=QX(Z,j,U,q);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")q=KX(Z,j,U,q);else if(U._bsontype==="Double")q=qX(Z,j,U,q);else if(U._bsontype==="Code")q=WX(Z,j,U,q,$,Y,Q,K,G);else if(typeof U==="function"&&Q)q=FX(Z,j,U,q);else if(U._bsontype==="Binary")q=HX(Z,j,U,q);else if(U._bsontype==="BSONSymbol")q=zX(Z,j,U,q);else if(U._bsontype==="DBRef")q=VX(Z,j,U,q,Y,Q,G);else if(U._bsontype==="BSONRegExp")q=ZX(Z,j,U,q);else if(U._bsontype==="Int32")q=GX(Z,j,U,q);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")q=JX(Z,j,U,q);else if(typeof U._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}}else{if(typeof J?.toBSON==="function"){if(J=J.toBSON(),J!=null&&typeof J!=="object")throw new R("toBSON function did not return an object")}for(let W of Object.keys(J)){let H=J[W];if(typeof H?.toBSON==="function")H=H.toBSON();const V=typeof H;if(typeof W==="string"&&!lz.has(W)){if(W.match(QZ)!=null)throw new R("key "+W+" must not contain null bytes");if($){if(W[0]==="$")throw new R("key "+W+" must not start with '$'");else if(~W.indexOf("."))throw new R("key "+W+" must not contain '.'")}}if(V==="string")q=s$(Z,W,H,q);else if(V==="number")q=n$(Z,W,H,q);else if(V==="bigint")q=t$(Z,W,H,q);else if(V==="boolean")q=r$(Z,W,H,q);else if(H instanceof Date||a4(H))q=o$(Z,W,H,q);else if(H===void 0){if(K===!1)q=G5(Z,W,H,q)}else if(H===null)q=G5(Z,W,H,q);else if(B6(H))q=XX(Z,W,H,q);else if(H instanceof RegExp||l4(H))q=e$(Z,W,H,q);else if(V==="object"&&H._bsontype==null)q=YX(Z,W,H,q,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(H._bsontype==="ObjectId")q=$X(Z,W,H,q);else if(V==="object"&&H._bsontype==="Decimal128")q=QX(Z,W,H,q);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")q=KX(Z,W,H,q);else if(H._bsontype==="Double")q=qX(Z,W,H,q);else if(H._bsontype==="Code")q=WX(Z,W,H,q,$,Y,Q,K,G);else if(typeof H==="function"&&Q)q=FX(Z,W,H,q);else if(H._bsontype==="Binary")q=HX(Z,W,H,q);else if(H._bsontype==="BSONSymbol")q=zX(Z,W,H,q);else if(H._bsontype==="DBRef")q=VX(Z,W,H,q,Y,Q,G);else if(H._bsontype==="BSONRegExp")q=ZX(Z,W,H,q);else if(H._bsontype==="Int32")q=GX(Z,W,H,q);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")q=JX(Z,W,H,q);else if(typeof H._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(J),Z[q++]=0;const F=q-X;return Z[X++]=F&255,Z[X++]=F>>8&255,Z[X++]=F>>16&255,Z[X++]=F>>24&255,q},sO=function(Z){return Z!=null&&typeof Z==="object"&&"_bsontype"in Z&&typeof Z._bsontype==="string"},MV=function(Z,J={}){if(typeof Z==="number"){const X=Z<=GZ&&Z>=qZ,Y=Z<=nz&&Z>=tz;if(J.relaxed||J.legacy)return Z;if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(X)return new S6(Z);if(Y){if(J.useBigInt64)return BigInt(Z);return M.fromNumber(Z)}}return new O6(Z)}if(Z==null||typeof Z!=="object")return Z;if(Z.$undefined)return null;const $=Object.keys(Z).filter((X)=>X.startsWith("$")&&Z[X]!=null);for(let X=0;X<$.length;X++){const Y=nO[$[X]];if(Y)return Y.fromExtendedJSON(Z,J)}if(Z.$date!=null){const X=Z.$date,Y=new Date;if(J.legacy)if(typeof X==="number")Y.setTime(X);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(typeof X==="bigint")Y.setTime(Number(X));else throw new F5(`Unrecognized type for EJSON date: ${typeof X}`);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(M.isLong(X))Y.setTime(X.toNumber());else if(typeof X==="number"&&J.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new F5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(Z.$code!=null){const X=Object.assign({},Z);if(Z.$scope)X.$scope=MV(Z.$scope);return Z6.fromExtendedJSON(Z)}if(HV(Z)||Z.$dbPointer){const X=Z.$ref?Z:Z.$dbPointer;if(X instanceof y8)return X;const Y=Object.keys(X).filter((K)=>K.startsWith("$"));let Q=!0;if(Y.forEach((K)=>{if(["$ref","$id","$db"].indexOf(K)===-1)Q=!1}),Q)return y8.fromExtendedJSON(X)}return Z},tO=function(Z,J){return Z.map(($,X)=>{J.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return e8($,J)}finally{J.seenObjects.pop()}})},az=function(Z){const J=Z.toISOString();return Z.getUTCMilliseconds()!==0?J:J.slice(0,-5)+"Z"},e8=function(Z,J){if(Z instanceof Map||sz(Z)){const $=Object.create(null);for(let[X,Y]of Z){if(typeof X!=="string")throw new R("Can only serialize maps with string keys");$[X]=Y}return e8($,J)}if((typeof Z==="object"||typeof Z==="function")&&Z!==null){const $=J.seenObjects.findIndex((X)=>X.obj===Z);if($!==-1){const X=J.seenObjects.map((W)=>W.propertyName),Y=X.slice(0,$).map((W)=>`${W} -> `).join(""),Q=X[$],K=" -> "+X.slice($+1,X.length-1).map((W)=>`${W} -> `).join(""),G=X[X.length-1],q=" ".repeat(Y.length+Q.length/2),F="-".repeat(K.length+(Q.length+G.length)/2-1);throw new R("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${q}\\${F}/`)}J.seenObjects[J.seenObjects.length-1].obj=Z}if(Array.isArray(Z))return tO(Z,J);if(Z===void 0)return null;if(Z instanceof Date||a4(Z)){const $=Z.getTime(),X=$>-1&&$<253402318800000;if(J.legacy)return J.relaxed&&X?{$date:Z.getTime()}:{$date:az(Z)};return J.relaxed&&X?{$date:az(Z)}:{$date:{$numberLong:Z.getTime().toString()}}}if(typeof Z==="number"&&(!J.relaxed||!isFinite(Z))){if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(Z>=qZ&&Z<=GZ)return{$numberInt:Z.toString()};if(Z>=tz&&Z<=nz)return{$numberLong:Z.toString()}}return{$numberDouble:Object.is(Z,-0)?"-0.0":Z.toString()}}if(typeof Z==="bigint"){if(!J.relaxed)return{$numberLong:BigInt.asIntN(64,Z).toString()};return Number(BigInt.asIntN(64,Z))}if(Z instanceof RegExp||l4(Z)){let $=Z.flags;if($===void 0){const Y=Z.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new u0(Z.source,$).toExtendedJSON(J)}if(Z!=null&&typeof Z==="object")return oO(Z,J);return Z},oO=function(Z,J){if(Z==null||typeof Z!=="object")throw new R("not an object instance");const $=Z._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(Z)){J.seenObjects.push({propertyName:Y,obj:null});try{const Q=e8(Z[Y],J);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{J.seenObjects.pop()}}return X}else if(Z!=null&&typeof Z==="object"&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(sO(Z)){let X=Z;if(typeof X.toExtendedJSON!=="function"){const Y=rO[Z._bsontype];if(!Y)throw new R("Unrecognized or invalid _bsontype: "+Z._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new Z6(X.code,e8(X.scope,J));else if($==="DBRef"&&X.oid)X=new y8(e8(X.collection,J),e8(X.oid,J),e8(X.db,J),e8(X.fields,J));return X.toExtendedJSON(J)}else throw new R("_bsontype must be a string, but was: "+typeof $)},jV=function(Z,J){const $={useBigInt64:J?.useBigInt64??!1,relaxed:J?.relaxed??!0,legacy:J?.legacy??!1};return JSON.parse(Z,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new R(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return MV(Y,$)})},AV=function(Z,J,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(J!=null&&typeof J==="object"&&!Array.isArray(J))X=J,J=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=e8(Z,Y);return JSON.stringify(Q,J,$)},eO=function(Z,J){return J=J||{},JSON.parse(AV(Z,J))},ZS=function(Z,J){return J=J||{},jV(JSON.stringify(Z),J)},wV=function(Z){if(C6.length<Z)C6=A.allocate(Z)},RV=function(Z,J={}){const $=typeof J.checkKeys==="boolean"?J.checkKeys:!1,X=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,Y=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0,Q=typeof J.minInternalBufferSize==="number"?J.minInternalBufferSize:LV;if(C6.length<Q)C6=A.allocate(Q);const K=W5(C6,Z,$,0,0,X,Y,null),G=A.allocate(K);return G.set(C6.subarray(0,K),0),G},PV=function(Z,J,$={}){const X=typeof $.checkKeys==="boolean"?$.checkKeys:!1,Y=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,Q=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!0,K=typeof $.index==="number"?$.index:0,G=W5(C6,Z,X,0,0,Y,Q,null);return J.set(C6.subarray(0,G),K),K+G-1},DV=function(Z,J={}){return UV(A.toLocalBufferType(Z),J)},TV=function(Z,J={}){J=J||{};const $=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,X=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0;return ZZ(Z,$,X)},IV=function(Z,J,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=A.toLocalBufferType(Z);let q=J;for(let F=0;F<$;F++){const W=G[q]|G[q+1]<<8|G[q+2]<<16|G[q+3]<<24;K.index=q,X[Y+F]=UV(G,K),q=q+W}return q},H4=5,GZ=2147483647,qZ=-2147483648,nz=Math.pow(2,63)-1,tz=-Math.pow(2,63),rz=Math.pow(2,53),oz=-Math.pow(2,53),$Z=1,ez=2,UX=3,ZV=4,MX=5,qO=6,JV=7,$V=8,XV=9,jX=10,XZ=11,FO=12,AX=13,YV=14,QV=15,s4=16,KV=17,LX=18,GV=19,qV=255,FV=127,WO=0,YZ=4,WV=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class R extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(Z){super(Z)}static isBSONError(Z){return Z!=null&&typeof Z==="object"&&"bsonError"in Z&&Z.bsonError===!0&&"name"in Z&&"message"in Z&&"stack"in Z}}class h6 extends R{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${H4}.x.x`)}}class F5 extends R{get name(){return"BSONRuntimeError"}constructor(Z){super(Z)}}var zO=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return HO}})(),N6={toLocalBufferType(Z){if(Buffer.isBuffer(Z))return Z;if(ArrayBuffer.isView(Z))return Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return Buffer.from(Z);throw new R(`Cannot create Buffer from ${String(Z)}`)},allocate(Z){return Buffer.alloc(Z)},equals(Z,J){return N6.toLocalBufferType(Z).equals(J)},fromNumberArray(Z){return Buffer.from(Z)},fromBase64(Z){return Buffer.from(Z,"base64")},toBase64(Z){return N6.toLocalBufferType(Z).toString("base64")},fromISO88591(Z){return Buffer.from(Z,"binary")},toISO88591(Z){return N6.toLocalBufferType(Z).toString("binary")},fromHex(Z){return Buffer.from(Z,"hex")},toHex(Z){return N6.toLocalBufferType(Z).toString("hex")},fromUTF8(Z){return Buffer.from(Z,"utf8")},toUTF8(Z,J,$){return N6.toLocalBufferType(Z).toString("utf8",J,$)},utf8ByteLength(Z){return Buffer.byteLength(Z,"utf8")},encodeUTF8Into(Z,J,$){return N6.toLocalBufferType(Z).write(J,$,void 0,"utf8")},randomBytes:zO},MO=(()=>{const{crypto:Z}=globalThis;if(Z!=null&&typeof Z.getRandomValues==="function")return(J)=>{return Z.getRandomValues(n4.allocate(J))};else{if(VO()){const{console:J}=globalThis;J?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return UO}})(),kz=/(\d|[a-f])/i,n4={toLocalBufferType(Z){const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="Uint8Array")return Z;if(ArrayBuffer.isView(Z))return new Uint8Array(Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength));if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return new Uint8Array(Z);throw new R(`Cannot make a Uint8Array from ${String(Z)}`)},allocate(Z){if(typeof Z!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(Z)}`);return new Uint8Array(Z)},equals(Z,J){if(Z.byteLength!==J.byteLength)return!1;for(let $=0;$<Z.byteLength;$++)if(Z[$]!==J[$])return!1;return!0},fromNumberArray(Z){return Uint8Array.from(Z)},fromBase64(Z){return Uint8Array.from(atob(Z),(J)=>J.charCodeAt(0))},toBase64(Z){return btoa(n4.toISO88591(Z))},fromISO88591(Z){return Uint8Array.from(Z,(J)=>J.charCodeAt(0)&255)},toISO88591(Z){return Array.from(Uint16Array.from(Z),(J)=>String.fromCharCode(J)).join("")},fromHex(Z){const J=Z.length%2===0?Z:Z.slice(0,Z.length-1),$=[];for(let X=0;X<J.length;X+=2){const Y=J[X],Q=J[X+1];if(!kz.test(Y))break;if(!kz.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(Z){return Array.from(Z,(J)=>J.toString(16).padStart(2,"0")).join("")},fromUTF8(Z){return(new TextEncoder()).encode(Z)},toUTF8(Z,J,$){return new TextDecoder("utf8",{fatal:!1}).decode(Z.slice(J,$))},utf8ByteLength(Z){return n4.fromUTF8(Z).byteLength},encodeUTF8Into(Z,J,$){const X=n4.fromUTF8(J);return Z.set(X,$),X.byteLength},randomBytes:MO},jO=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,A=jO?N6:n4;class q5 extends DataView{static fromUint8Array(Z){return new DataView(Z.buffer,Z.byteOffset,Z.byteLength)}}class q0{get[Symbol.for("@@mdb.bson.version")](){return H4}}class s extends q0{get _bsontype(){return"Binary"}constructor(Z,J){super();if(Z!=null&&typeof Z!=="string"&&!ArrayBuffer.isView(Z)&&!(Z instanceof ArrayBuffer)&&!Array.isArray(Z))throw new R("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");if(this.sub_type=J??s.BSON_BINARY_SUBTYPE_DEFAULT,Z==null)this.buffer=A.allocate(s.BUFFER_SIZE),this.position=0;else{if(typeof Z==="string")this.buffer=A.fromISO88591(Z);else if(Array.isArray(Z))this.buffer=A.fromNumberArray(Z);else this.buffer=A.toLocalBufferType(Z);this.position=this.buffer.byteLength}}put(Z){if(typeof Z==="string"&&Z.length!==1)throw new R("only accepts single character String");else if(typeof Z!=="number"&&Z.length!==1)throw new R("only accepts single character Uint8Array or Array");let J;if(typeof Z==="string")J=Z.charCodeAt(0);else if(typeof Z==="number")J=Z;else J=Z[0];if(J<0||J>255)throw new R("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=J;else{const $=A.allocate(s.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=J}}write(Z,J){if(J=typeof J==="number"?J:this.position,this.buffer.byteLength<J+Z.length){const $=A.allocate(this.buffer.byteLength+Z.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(Z))this.buffer.set(A.toLocalBufferType(Z),J),this.position=J+Z.byteLength>this.position?J+Z.length:this.position;else if(typeof Z==="string"){const $=A.fromISO88591(Z);this.buffer.set($,J),this.position=J+Z.length>this.position?J+Z.length:this.position}}read(Z,J){return J=J&&J>0?J:this.position,this.buffer.slice(Z,Z+J)}value(Z){if(Z=!!Z,Z&&this.buffer.length===this.position)return this.buffer;if(Z)return this.buffer.slice(0,this.position);return A.toISO88591(this.buffer.subarray(0,this.position))}length(){return this.position}toJSON(){return A.toBase64(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.buffer);if(Z==="base64")return A.toBase64(this.buffer);if(Z==="utf8"||Z==="utf-8")return A.toUTF8(this.buffer,0,this.buffer.byteLength);return A.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(Z){Z=Z||{};const J=A.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(Z.legacy)return{$binary:J,$type:$.length===1?"0"+$:$};return{$binary:{base64:J,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===s.SUBTYPE_UUID)return new S1(this.buffer.slice(0,this.position));throw new R(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${s.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(Z,J){return new s(A.fromHex(Z),J)}static createFromBase64(Z,J){return new s(A.fromBase64(Z),J)}static fromExtendedJSON(Z,J){J=J||{};let $,X;if("$binary"in Z){if(J.legacy&&typeof Z.$binary==="string"&&"$type"in Z)X=Z.$type?parseInt(Z.$type,16):0,$=A.fromBase64(Z.$binary);else if(typeof Z.$binary!=="string")X=Z.$binary.subType?parseInt(Z.$binary.subType,16):0,$=A.fromBase64(Z.$binary.base64)}else if("$uuid"in Z)X=4,$=S1.bytesFromString(Z.$uuid);if(!$)throw new R(`Unexpected Binary Extended JSON format ${JSON.stringify(Z)}`);return X===YZ?new S1($):new s($,X)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`Binary.createFromBase64("${A.toBase64(this.buffer.subarray(0,this.position))}", ${this.sub_type})`}}s.BSON_BINARY_SUBTYPE_DEFAULT=0;s.BUFFER_SIZE=256;s.SUBTYPE_DEFAULT=0;s.SUBTYPE_FUNCTION=1;s.SUBTYPE_BYTE_ARRAY=2;s.SUBTYPE_UUID_OLD=3;s.SUBTYPE_UUID=4;s.SUBTYPE_MD5=5;s.SUBTYPE_ENCRYPTED=6;s.SUBTYPE_COLUMN=7;s.SUBTYPE_USER_DEFINED=128;var a$=16,AO=/^[0-9A-F]{32}$/i,LO=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class S1 extends s{constructor(Z){let J;if(Z==null)J=S1.generate();else if(Z instanceof S1)J=A.toLocalBufferType(new Uint8Array(Z.buffer));else if(ArrayBuffer.isView(Z)&&Z.byteLength===a$)J=A.toLocalBufferType(Z);else if(typeof Z==="string")J=S1.bytesFromString(Z);else throw new R("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(J,YZ)}get id(){return this.buffer}set id(Z){this.buffer=Z}toHexString(Z=!0){if(Z)return[A.toHex(this.buffer.subarray(0,4)),A.toHex(this.buffer.subarray(4,6)),A.toHex(this.buffer.subarray(6,8)),A.toHex(this.buffer.subarray(8,10)),A.toHex(this.buffer.subarray(10,16))].join("-");return A.toHex(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.id);if(Z==="base64")return A.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(!Z)return!1;if(Z instanceof S1)return A.equals(Z.id,this.id);try{return A.equals(new S1(Z).id,this.id)}catch{return!1}}toBinary(){return new s(this.id,s.SUBTYPE_UUID)}static generate(){const Z=A.randomBytes(a$);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z}static isValid(Z){if(!Z)return!1;if(typeof Z==="string")return S1.isValidUUIDString(Z);if(B6(Z))return Z.byteLength===a$;return Z._bsontype==="Binary"&&Z.sub_type===this.SUBTYPE_UUID&&Z.buffer.byteLength===16}static createFromHexString(Z){const J=S1.bytesFromString(Z);return new S1(J)}static createFromBase64(Z){return new S1(A.fromBase64(Z))}static bytesFromString(Z){if(!S1.isValidUUIDString(Z))throw new R("UUID string representation must be 32 hex digits or canonical hyphenated representation");return A.fromHex(Z.replace(/-/g,""))}static isValidUUIDString(Z){return AO.test(Z)||LO.test(Z)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new UUID("${this.toHexString()}")`}}S1.cacheHexString=!1;class Z6 extends q0{get _bsontype(){return"Code"}constructor(Z,J){super();this.code=Z.toString(),this.scope=J??null}toJSON(){if(this.scope!=null)return{code:this.code,scope:this.scope};return{code:this.code}}toExtendedJSON(){if(this.scope)return{$code:this.code,$scope:this.scope};return{$code:this.code}}static fromExtendedJSON(Z){return new Z6(Z.$code,Z.$scope)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.toJSON();return`new Code("${String(Z.code)}"${Z.scope!=null?`, ${JSON.stringify(Z.scope)}`:""})`}}class y8 extends q0{get _bsontype(){return"DBRef"}constructor(Z,J,$,X){super();const Y=Z.split(".");if(Y.length===2)$=Y.shift(),Z=Y.shift();this.collection=Z,this.oid=J,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(Z){this.collection=Z}toJSON(){const Z=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)Z.$db=this.db;return Z}toExtendedJSON(Z){Z=Z||{};let J={$ref:this.collection,$id:this.oid};if(Z.legacy)return J;if(this.db)J.$db=this.db;return J=Object.assign(J,this.fields),J}static fromExtendedJSON(Z){const J=Object.assign({},Z);return delete J.$ref,delete J.$id,delete J.$db,new y8(Z.$ref,Z.$id,Z.$db,J)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return`new DBRef("${this.namespace}", new ObjectId("${String(Z)}")${this.db?`, "${this.db}"`:""})`}}var b0=void 0;try{b0=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var _z=1<<16,wO=1<<24,i4=_z*_z,zV=i4*i4,xz=zV/2,vz={},fz={},RO=20,PO=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends q0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(Z=0,J,$){super();if(typeof Z==="bigint")Object.assign(this,M.fromBigInt(Z,!!J));else if(typeof Z==="string")Object.assign(this,M.fromString(Z,!!J));else this.low=Z|0,this.high=J|0,this.unsigned=!!$}static fromBits(Z,J,$){return new M(Z,J,$)}static fromInt(Z,J){let $,X,Y;if(J){if(Z>>>=0,Y=0<=Z&&Z<256){if(X=fz[Z],X)return X}if($=M.fromBits(Z,(Z|0)<0?-1:0,!0),Y)fz[Z]=$;return $}else{if(Z|=0,Y=-128<=Z&&Z<128){if(X=vz[Z],X)return X}if($=M.fromBits(Z,Z<0?-1:0,!1),Y)vz[Z]=$;return $}}static fromNumber(Z,J){if(isNaN(Z))return J?M.UZERO:M.ZERO;if(J){if(Z<0)return M.UZERO;if(Z>=zV)return M.MAX_UNSIGNED_VALUE}else{if(Z<=-xz)return M.MIN_VALUE;if(Z+1>=xz)return M.MAX_VALUE}if(Z<0)return M.fromNumber(-Z,J).neg();return M.fromBits(Z%i4|0,Z/i4|0,J)}static fromBigInt(Z,J){return M.fromString(Z.toString(),J)}static fromString(Z,J,$){if(Z.length===0)throw new R("empty string");if(Z==="NaN"||Z==="Infinity"||Z==="+Infinity"||Z==="-Infinity")return M.ZERO;if(typeof J==="number")$=J,J=!1;else J=!!J;if($=$||10,$<2||36<$)throw new R("radix");let X;if((X=Z.indexOf("-"))>0)throw new R("interior hyphen");else if(X===0)return M.fromString(Z.substring(1),J,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<Z.length;K+=8){const G=Math.min(8,Z.length-K),q=parseInt(Z.substring(K,K+G),$);if(G<8){const F=M.fromNumber(Math.pow($,G));Q=Q.mul(F).add(M.fromNumber(q))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(q))}return Q.unsigned=J,Q}static fromBytes(Z,J,$){return $?M.fromBytesLE(Z,J):M.fromBytesBE(Z,J)}static fromBytesLE(Z,J){return new M(Z[0]|Z[1]<<8|Z[2]<<16|Z[3]<<24,Z[4]|Z[5]<<8|Z[6]<<16|Z[7]<<24,J)}static fromBytesBE(Z,J){return new M(Z[4]<<24|Z[5]<<16|Z[6]<<8|Z[7],Z[0]<<24|Z[1]<<16|Z[2]<<8|Z[3],J)}static isLong(Z){return Z!=null&&typeof Z==="object"&&"__isLong__"in Z&&Z.__isLong__===!0}static fromValue(Z,J){if(typeof Z==="number")return M.fromNumber(Z,J);if(typeof Z==="string")return M.fromString(Z,J);return M.fromBits(Z.low,Z.high,typeof J==="boolean"?J:Z.unsigned)}add(Z){if(!M.isLong(Z))Z=M.fromValue(Z);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,q=Z.low&65535;let F=0,W=0,H=0,V=0;return V+=Y+q,H+=V>>>16,V&=65535,H+=X+G,W+=H>>>16,H&=65535,W+=$+K,F+=W>>>16,W&=65535,F+=J+Q,F&=65535,M.fromBits(H<<16|V,F<<16|W,this.unsigned)}and(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low&Z.low,this.high&Z.high,this.unsigned)}compare(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.eq(Z))return 0;const J=this.isNegative(),$=Z.isNegative();if(J&&!$)return-1;if(!J&&$)return 1;if(!this.unsigned)return this.sub(Z).isNegative()?-1:1;return Z.high>>>0>this.high>>>0||Z.high===this.high&&Z.low>>>0>this.low>>>0?-1:1}comp(Z){return this.compare(Z)}divide(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(Z.isZero())throw new R("division by zero");if(b0){if(!this.unsigned&&this.high===-2147483648&&Z.low===-1&&Z.high===-1)return this;const Y=(this.unsigned?b0.div_u:b0.div_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(Y,b0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let J,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(Z.eq(M.ONE)||Z.eq(M.NEG_ONE))return M.MIN_VALUE;else if(Z.eq(M.MIN_VALUE))return M.ONE;else if(J=this.shr(1).div(Z).shl(1),J.eq(M.ZERO))return Z.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(Z.mul(J)),X=J.add($.div(Z)),X;else if(Z.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(Z.isNegative())return this.neg().div(Z.neg());return this.neg().div(Z).neg()}else if(Z.isNegative())return this.div(Z.neg()).neg();X=M.ZERO}else{if(!Z.unsigned)Z=Z.toUnsigned();if(Z.gt(this))return M.UZERO;if(Z.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(Z)){J=Math.max(1,Math.floor($.toNumber()/Z.toNumber()));const Y=Math.ceil(Math.log(J)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(J),G=K.mul(Z);while(G.isNegative()||G.gt($))J-=Q,K=M.fromNumber(J,this.unsigned),G=K.mul(Z);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(Z){return this.divide(Z)}equals(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.unsigned!==Z.unsigned&&this.high>>>31===1&&Z.high>>>31===1)return!1;return this.high===Z.high&&this.low===Z.low}eq(Z){return this.equals(Z)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(M.MIN_VALUE)?64:this.neg().getNumBitsAbs();const Z=this.high!==0?this.high:this.low;let J;for(J=31;J>0;J--)if((Z&1<<J)!==0)break;return this.high!==0?J+33:J+1}greaterThan(Z){return this.comp(Z)>0}gt(Z){return this.greaterThan(Z)}greaterThanOrEqual(Z){return this.comp(Z)>=0}gte(Z){return this.greaterThanOrEqual(Z)}ge(Z){return this.greaterThanOrEqual(Z)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(Z){return this.comp(Z)<0}lt(Z){return this.lessThan(Z)}lessThanOrEqual(Z){return this.comp(Z)<=0}lte(Z){return this.lessThanOrEqual(Z)}modulo(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(b0){const J=(this.unsigned?b0.rem_u:b0.rem_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(J,b0.get_high(),this.unsigned)}return this.sub(this.div(Z).mul(Z))}mod(Z){return this.modulo(Z)}rem(Z){return this.modulo(Z)}multiply(Z){if(this.isZero())return M.ZERO;if(!M.isLong(Z))Z=M.fromValue(Z);if(b0){const j=b0.mul(this.low,this.high,Z.low,Z.high);return M.fromBits(j,b0.get_high(),this.unsigned)}if(Z.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return Z.isOdd()?M.MIN_VALUE:M.ZERO;if(Z.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(Z.isNegative())return this.neg().mul(Z.neg());else return this.neg().mul(Z).neg();else if(Z.isNegative())return this.mul(Z.neg()).neg();if(this.lt(M.TWO_PWR_24)&&Z.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*Z.toNumber(),this.unsigned);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,q=Z.low&65535;let F=0,W=0,H=0,V=0;return V+=Y*q,H+=V>>>16,V&=65535,H+=X*q,W+=H>>>16,H&=65535,H+=Y*G,W+=H>>>16,H&=65535,W+=$*q,F+=W>>>16,W&=65535,W+=X*G,F+=W>>>16,W&=65535,W+=Y*K,F+=W>>>16,W&=65535,F+=J*q+$*G+X*K+Y*Q,F&=65535,M.fromBits(H<<16|V,F<<16|W,this.unsigned)}mul(Z){return this.multiply(Z)}negate(){if(!this.unsigned&&this.eq(M.MIN_VALUE))return M.MIN_VALUE;return this.not().add(M.ONE)}neg(){return this.negate()}not(){return M.fromBits(~this.low,~this.high,this.unsigned)}notEquals(Z){return!this.equals(Z)}neq(Z){return this.notEquals(Z)}ne(Z){return this.notEquals(Z)}or(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low|Z.low,this.high|Z.high,this.unsigned)}shiftLeft(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low<<Z,this.high<<Z|this.low>>>32-Z,this.unsigned);else return M.fromBits(0,this.low<<Z-32,this.unsigned)}shl(Z){return this.shiftLeft(Z)}shiftRight(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low>>>Z|this.high<<32-Z,this.high>>Z,this.unsigned);else return M.fromBits(this.high>>Z-32,this.high>=0?0:-1,this.unsigned)}shr(Z){return this.shiftRight(Z)}shiftRightUnsigned(Z){if(M.isLong(Z))Z=Z.toInt();if(Z&=63,Z===0)return this;else{const J=this.high;if(Z<32){const $=this.low;return M.fromBits($>>>Z|J<<32-Z,J>>>Z,this.unsigned)}else if(Z===32)return M.fromBits(J,0,this.unsigned);else return M.fromBits(J>>>Z-32,0,this.unsigned)}}shr_u(Z){return this.shiftRightUnsigned(Z)}shru(Z){return this.shiftRightUnsigned(Z)}subtract(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return this.add(Z.neg())}sub(Z){return this.subtract(Z)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*i4+(this.low>>>0);return this.high*i4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(Z){return Z?this.toBytesLE():this.toBytesBE()}toBytesLE(){const Z=this.high,J=this.low;return[J&255,J>>>8&255,J>>>16&255,J>>>24,Z&255,Z>>>8&255,Z>>>16&255,Z>>>24]}toBytesBE(){const Z=this.high,J=this.low;return[Z>>>24,Z>>>16&255,Z>>>8&255,Z&255,J>>>24,J>>>16&255,J>>>8&255,J&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(Z){if(Z=Z||10,Z<2||36<Z)throw new R("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(Z),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(Z)+K.toInt().toString(Z)}else return"-"+this.neg().toString(Z);const J=M.fromNumber(Math.pow(Z,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(J);let K=($.sub(Y.mul(J)).toInt()>>>0).toString(Z);if($=Y,$.isZero())return K+X;else{while(K.length<6)K="0"+K;X=""+K+X}}}toUnsigned(){if(this.unsigned)return this;return M.fromBits(this.low,this.high,!0)}xor(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low^Z.low,this.high^Z.high,this.unsigned)}eqz(){return this.isZero()}le(Z){return this.lessThanOrEqual(Z)}toExtendedJSON(Z){if(Z&&Z.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(Z,J){const{useBigInt64:$=!1,relaxed:X=!0}={...J};if(Z.$numberLong.length>RO)throw new R("$numberLong string is too long");if(!PO.test(Z.$numberLong))throw new R(`\$numberLong string "${Z.$numberLong}" is in an invalid format`);if($){const Q=BigInt(Z.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(Z.$numberLong);if(X)return Y.toNumber();return Y}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Long("${this.toString()}"${this.unsigned?", true":""})`}}M.TWO_PWR_24=M.fromInt(wO);M.MAX_UNSIGNED_VALUE=M.fromBits(4294967295|0,4294967295|0,!0);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,!0);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,!0);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(4294967295|0,2147483647|0,!1);M.MIN_VALUE=M.fromBits(0,2147483648|0,!1);var DO=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,TO=/^(\+|-)?(Infinity|inf)$/i,IO=/^(\+|-)?NaN$/i,c4=6111,K5=-6176,gz=6176,bz=34,i$=A.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),mz=A.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),uz=A.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),EO=/^([-+])?(\d+)?$/,NO=31,dz=16383,BO=30,CO=31;class Z0 extends q0{get _bsontype(){return"Decimal128"}constructor(Z){super();if(typeof Z==="string")this.bytes=Z0.fromString(Z).bytes;else if(B6(Z)){if(Z.byteLength!==16)throw new R("Decimal128 must take a Buffer of 16 bytes");this.bytes=Z}else throw new R("Decimal128 must take a Buffer or string")}static fromString(Z){return Z0._fromString(Z,{allowRounding:!1})}static fromStringWithRounding(Z){return Z0._fromString(Z,{allowRounding:!0})}static _fromString(Z,J){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,q=0,F=0,W=0;const H=[0];let V=0,j=0,U=0,L=0,D=new M(0,0),B=new M(0,0),w=0,T=0;if(Z.length>=7000)throw new R(""+Z+" not a valid Decimal128 string");const f=Z.match(DO),N1=Z.match(TO),p8=Z.match(IO);if(!f&&!N1&&!p8||Z.length===0)throw new R(""+Z+" not a valid Decimal128 string");if(f){const u=f[2],v=f[4],C=f[5],k=f[6];if(v&&k===void 0)G8(Z,"missing exponent power");if(v&&u===void 0)G8(Z,"missing exponent base");if(v===void 0&&(C||k))G8(Z,"missing e before exponent")}if(Z[T]==="+"||Z[T]==="-")X=!0,$=Z[T++]==="-";if(!pz(Z[T])&&Z[T]!=="."){if(Z[T]==="i"||Z[T]==="I")return new Z0($?mz:uz);else if(Z[T]==="N")return new Z0(i$)}while(pz(Z[T])||Z[T]==="."){if(Z[T]==="."){if(Y)G8(Z,"contains multiple periods");Y=!0,T=T+1;continue}if(V<bz){if(Z[T]!=="0"||Q){if(!Q)W=G;Q=!0,H[j++]=parseInt(Z[T],10),V=V+1}}if(Q)q=q+1;if(Y)F=F+1;G=G+1,T=T+1}if(Y&&!G)throw new R(""+Z+" not a valid Decimal128 string");if(Z[T]==="e"||Z[T]==="E"){const u=Z.substr(++T).match(EO);if(!u||!u[2])return new Z0(i$);L=parseInt(u[0],10),T=T+u[0].length}if(Z[T])return new Z0(i$);if(!V)H[0]=0,q=1,V=1,K=0;else if(U=V-1,K=q,K!==1)while(Z[W+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(L<=F&&F>L+(1<<14))L=K5;else L=L-F;while(L>c4){if(U=U+1,U>=bz){if(K===0){L=c4;break}G8(Z,"overflow")}L=L-1}if(J.allowRounding){while(L<K5||V<q){if(U===0&&K<V){L=K5,K=0;break}if(V<q)q=q-1;else U=U-1;if(L<c4)L=L+1;else{if(H.join("").match(/^0+$/)){L=c4;break}G8(Z,"overflow")}}if(U+1<K){let u=G;if(Y)W=W+1,u=u+1;if(X)W=W+1,u=u+1;const v=parseInt(Z[W+U+1],10);let C=0;if(v>=5){if(C=1,v===5){C=H[U]%2===1?1:0;for(let k=W+U+2;k<u;k++)if(parseInt(Z[k],10)){C=1;break}}}if(C){let k=U;for(;k>=0;k--)if(++H[k]>9){if(H[k]=0,k===0)if(L<c4)L=L+1,H[k]=1;else return new Z0($?mz:uz)}else break}}}else{while(L<K5||V<q){if(U===0){if(K===0){L=K5;break}G8(Z,"exponent underflow")}if(V<q){if(Z[q-1+Number(X)+Number(Y)]!=="0"&&K!==0)G8(Z,"inexact rounding");q=q-1}else{if(H[U]!==0)G8(Z,"inexact rounding");U=U-1}if(L<c4)L=L+1;else G8(Z,"overflow")}if(U+1<K){if(Y)W=W+1;if(X)W=W+1;if(parseInt(Z[W+U+1],10)!==0)G8(Z,"inexact rounding")}}if(D=M.fromNumber(0),B=M.fromNumber(0),K===0)D=M.fromNumber(0),B=M.fromNumber(0);else if(U<17){let u=0;B=M.fromNumber(H[u++]),D=new M(0,0);for(;u<=U;u++)B=B.multiply(M.fromNumber(10)),B=B.add(M.fromNumber(H[u]))}else{let u=0;D=M.fromNumber(H[u++]);for(;u<=U-17;u++)D=D.multiply(M.fromNumber(10)),D=D.add(M.fromNumber(H[u]));B=M.fromNumber(H[u++]);for(;u<=U;u++)B=B.multiply(M.fromNumber(10)),B=B.add(M.fromNumber(H[u]))}const y=OO(D,M.fromString("100000000000000000"));if(y.low=y.low.add(B),SO(y.low,B))y.high=y.high.add(M.fromNumber(1));w=L+gz;const N={low:M.fromNumber(0),high:M.fromNumber(0)};if(y.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1)))N.high=N.high.or(M.fromNumber(3).shiftLeft(61)),N.high=N.high.or(M.fromNumber(w).and(M.fromNumber(16383).shiftLeft(47))),N.high=N.high.or(y.high.and(M.fromNumber(140737488355327)));else N.high=N.high.or(M.fromNumber(w&16383).shiftLeft(49)),N.high=N.high.or(y.high.and(M.fromNumber(562949953421311)));if(N.low=y.low,$)N.high=N.high.or(M.fromString("9223372036854775808"));const G1=A.allocate(16);return T=0,G1[T++]=N.low.low&255,G1[T++]=N.low.low>>8&255,G1[T++]=N.low.low>>16&255,G1[T++]=N.low.low>>24&255,G1[T++]=N.low.high&255,G1[T++]=N.low.high>>8&255,G1[T++]=N.low.high>>16&255,G1[T++]=N.low.high>>24&255,G1[T++]=N.high.low&255,G1[T++]=N.high.low>>8&255,G1[T++]=N.high.low>>16&255,G1[T++]=N.high.low>>24&255,G1[T++]=N.high.high&255,G1[T++]=N.high.high>>8&255,G1[T++]=N.high.high>>16&255,G1[T++]=N.high.high>>24&255,new Z0(G1)}toString(){let Z,J=0;const $=new Array(36);for(let T=0;T<$.length;T++)$[T]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,q;const F=[];X=0;const W=this.bytes,H=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,V=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,j=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,U=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24;if(X=0,{low:new M(H,V),high:new M(j,U)}.high.lessThan(M.ZERO))F.push("-");const D=U>>26&NO;if(D>>3===3)if(D===BO)return F.join("")+"Infinity";else if(D===CO)return"NaN";else Z=U>>15&dz,Q=8+(U>>14&1);else Q=U>>14&7,Z=U>>17&dz;const B=Z-gz;if(K.parts[0]=(U&16383)+((Q&15)<<14),K.parts[1]=j,K.parts[2]=V,K.parts[3]=H,K.parts[0]===0&&K.parts[1]===0&&K.parts[2]===0&&K.parts[3]===0)Y=!0;else for(q=3;q>=0;q--){let T=0;const f=hO(K);if(K=f.quotient,T=f.rem.low,!T)continue;for(G=8;G>=0;G--)$[q*9+G]=T%10,T=Math.floor(T/10)}if(Y)J=1,$[X]=0;else{J=36;while(!$[X])J=J-1,X=X+1}const w=J-1+B;if(w>=34||w<=-7||B>0){if(J>34){if(F.push("0"),B>0)F.push(`E+${B}`);else if(B<0)F.push(`E${B}`);return F.join("")}if(F.push(`${$[X++]}`),J=J-1,J)F.push(".");for(let T=0;T<J;T++)F.push(`${$[X++]}`);if(F.push("E"),w>0)F.push(`+${w}`);else F.push(`${w}`)}else if(B>=0)for(let T=0;T<J;T++)F.push(`${$[X++]}`);else{let T=J+B;if(T>0)for(let f=0;f<T;f++)F.push(`${$[X++]}`);else F.push("0");F.push(".");while(T++<0)F.push("0");for(let f=0;f<J-Math.max(T-1,0);f++)F.push(`${$[X++]}`)}return F.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(Z){return Z0.fromString(Z.$numberDecimal)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Decimal128("${this.toString()}")`}}class O6 extends q0{get _bsontype(){return"Double"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z}valueOf(){return this.value}toJSON(){return this.value}toString(Z){return this.value.toString(Z)}toExtendedJSON(Z){if(Z&&(Z.legacy||Z.relaxed&&isFinite(this.value)))return this.value;if(Object.is(Math.sign(this.value),-0))return{$numberDouble:"-0.0"};return{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(Z,J){const $=parseFloat(Z.$numberDouble);return J&&J.relaxed?$:new O6($)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Double(${this.toExtendedJSON().$numberDouble})`}}class S6 extends q0{get _bsontype(){return"Int32"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z|0}valueOf(){return this.value}toString(Z){return this.value.toString(Z)}toJSON(){return this.value}toExtendedJSON(Z){if(Z&&(Z.relaxed||Z.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(Z,J){return J&&J.relaxed?parseInt(Z.$numberInt,10):new S6(Z.$numberInt)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Int32(${this.valueOf()})`}}class z4 extends q0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new z4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MaxKey()"}}class V4 extends q0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new V4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MinKey()"}}var yO=new RegExp("^[0-9a-fA-F]{24}$"),W4=null,S8=Symbol("id");class V1 extends q0{get _bsontype(){return"ObjectId"}constructor(Z){super();let J;if(typeof Z==="object"&&Z&&"id"in Z){if(typeof Z.id!=="string"&&!ArrayBuffer.isView(Z.id))throw new R("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in Z&&typeof Z.toHexString==="function")J=A.fromHex(Z.toHexString());else J=Z.id}else J=Z;if(J==null||typeof J==="number")this[S8]=V1.generate(typeof J==="number"?J:void 0);else if(ArrayBuffer.isView(J)&&J.byteLength===12)this[S8]=A.toLocalBufferType(J);else if(typeof J==="string")if(J.length===12){const $=A.fromUTF8(J);if($.byteLength===12)this[S8]=$;else throw new R("Argument passed in must be a string of 12 bytes")}else if(J.length===24&&yO.test(J))this[S8]=A.fromHex(J);else throw new R("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new R("Argument passed in does not match the accepted types");if(V1.cacheHexString)this.__id=A.toHex(this.id)}get id(){return this[S8]}set id(Z){if(this[S8]=Z,V1.cacheHexString)this.__id=A.toHex(Z)}toHexString(){if(V1.cacheHexString&&this.__id)return this.__id;const Z=A.toHex(this.id);if(V1.cacheHexString&&!this.__id)this.__id=Z;return Z}static getInc(){return V1.index=(V1.index+1)%16777215}static generate(Z){if(typeof Z!=="number")Z=Math.floor(Date.now()/1000);const J=V1.getInc(),$=A.allocate(12);if(q5.fromUint8Array($).setUint32(0,Z,!1),W4===null)W4=A.randomBytes(5);return $[4]=W4[0],$[5]=W4[1],$[6]=W4[2],$[7]=W4[3],$[8]=W4[4],$[11]=J&255,$[10]=J>>8&255,$[9]=J>>16&255,$}toString(Z){if(Z==="base64")return A.toBase64(this.id);if(Z==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(Z===void 0||Z===null)return!1;if(Z instanceof V1)return this[S8][11]===Z[S8][11]&&A.equals(this[S8],Z[S8]);if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===12&&B6(this.id))return A.equals(this.id,A.fromISO88591(Z));if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===24)return Z.toLowerCase()===this.toHexString();if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===12)return A.equals(A.fromUTF8(Z),this.id);if(typeof Z==="object"&&"toHexString"in Z&&typeof Z.toHexString==="function"){const J=Z.toHexString(),$=this.toHexString().toLowerCase();return typeof J==="string"&&J.toLowerCase()===$}return!1}getTimestamp(){const Z=new Date,J=q5.fromUint8Array(this.id).getUint32(0,!1);return Z.setTime(Math.floor(J)*1000),Z}static createPk(){return new V1}static createFromTime(Z){const J=A.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return q5.fromUint8Array(J).setUint32(0,Z,!1),new V1(J)}static createFromHexString(Z){if(Z?.length!==24)throw new R("hex string must be 24 characters");return new V1(A.fromHex(Z))}static createFromBase64(Z){if(Z?.length!==16)throw new R("base64 string must be 16 characters");return new V1(A.fromBase64(Z))}static isValid(Z){if(Z==null)return!1;try{return new V1(Z),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(Z){return new V1(Z.$oid)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new ObjectId("${this.toHexString()}")`}}V1.index=Math.floor(Math.random()*16777215);class u0 extends q0{get _bsontype(){return"BSONRegExp"}constructor(Z,J){super();if(this.pattern=Z,this.options=kO(J??""),this.pattern.indexOf("\0")!==-1)throw new R(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new R(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let $=0;$<this.options.length;$++)if(!(this.options[$]==="i"||this.options[$]==="m"||this.options[$]==="x"||this.options[$]==="l"||this.options[$]==="s"||this.options[$]==="u"))throw new R(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(Z){return Z?Z.split("").sort().join(""):""}toExtendedJSON(Z){if(Z=Z||{},Z.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(Z){if("$regex"in Z)if(typeof Z.$regex!=="string"){if(Z.$regex._bsontype==="BSONRegExp")return Z}else return new u0(Z.$regex,u0.parseOptions(Z.$options));if("$regularExpression"in Z)return new u0(Z.$regularExpression.pattern,u0.parseOptions(Z.$regularExpression.options));throw new R(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(Z)}`)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new BSONRegExp(${JSON.stringify(this.pattern)}, ${JSON.stringify(this.options)})`}}class U4 extends q0{get _bsontype(){return"BSONSymbol"}constructor(Z){super();this.value=Z}valueOf(){return this.value}toString(){return this.value}inspect(){return`new BSONSymbol("${this.value}")`}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(Z){return new U4(Z.$symbol)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}}var _O=M;class m0 extends _O{get _bsontype(){return"Timestamp"}constructor(Z){if(Z==null)super(0,0,!0);else if(typeof Z==="bigint")super(Z,!0);else if(M.isLong(Z))super(Z.low,Z.high,!0);else if(typeof Z==="object"&&"t"in Z&&"i"in Z){if(typeof Z.t!=="number"&&(typeof Z.t!=="object"||Z.t._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide t as a number");if(typeof Z.i!=="number"&&(typeof Z.i!=="object"||Z.i._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide i as a number");const J=Number(Z.t),$=Number(Z.i);if(J<0||Number.isNaN(J))throw new R("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new R("Timestamp constructed from { t, i } must provide a positive i");if(J>4294967295)throw new R("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new R("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,J,!0)}else throw new R("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(Z){return new m0(M.fromInt(Z,!0))}static fromNumber(Z){return new m0(M.fromNumber(Z,!0))}static fromBits(Z,J){return new m0({i:Z,t:J})}static fromString(Z,J){return new m0(M.fromString(Z,!0,J))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(Z){const J=M.isLong(Z.$timestamp.i)?Z.$timestamp.i.getLowBitsUnsigned():Z.$timestamp.i,$=M.isLong(Z.$timestamp.t)?Z.$timestamp.t.getLowBitsUnsigned():Z.$timestamp.t;return new m0({t:$,i:J})}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Timestamp({ t: ${this.getHighBits()}, i: ${this.getLowBits()} })`}}m0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var xO=128,vO=192,fO=224,gO=240,bO=248,mO=192,uO=224,dO=240,pO=128,cO=M.fromNumber(rz),lO=M.fromNumber(oz),aO=/^\$ref$|^\$id$|^\$db$/,QZ=/\x00/,lz=new Set(["$db","$ref","$id","$clusterTime"]),t4=new DataView(new ArrayBuffer(8),0,8),iO=new Uint8Array(t4.buffer,0,4),KZ=new Uint8Array(t4.buffer,0,8),nO={$oid:V1,$binary:s,$uuid:s,$symbol:U4,$numberInt:S6,$numberDecimal:Z0,$numberDouble:O6,$numberLong:M,$minKey:V4,$maxKey:z4,$regex:u0,$regularExpression:u0,$timestamp:m0},rO={Binary:(Z)=>new s(Z.value(),Z.sub_type),Code:(Z)=>new Z6(Z.code,Z.scope),DBRef:(Z)=>new y8(Z.collection||Z.namespace,Z.oid,Z.db,Z.fields),Decimal128:(Z)=>new Z0(Z.bytes),Double:(Z)=>new O6(Z.value),Int32:(Z)=>new S6(Z.value),Long:(Z)=>M.fromBits(Z.low!=null?Z.low:Z.low_,Z.low!=null?Z.high:Z.high_,Z.low!=null?Z.unsigned:Z.unsigned_),MaxKey:()=>new z4,MinKey:()=>new V4,ObjectId:(Z)=>new V1(Z),BSONRegExp:(Z)=>new u0(Z.pattern,Z.options),BSONSymbol:(Z)=>new U4(Z.value),Timestamp:(Z)=>m0.fromBits(Z.low,Z.high)},M4=Object.create(null);M4.parse=jV;M4.stringify=AV;M4.serialize=eO;M4.deserialize=ZS;Object.freeze(M4);var LV=17825792,C6=A.allocate(LV),JS=Object.freeze({__proto__:null,BSONError:R,BSONRegExp:u0,BSONRuntimeError:F5,BSONSymbol:U4,BSONType:WV,BSONValue:q0,BSONVersionError:h6,Binary:s,Code:Z6,DBRef:y8,Decimal128:Z0,Double:O6,EJSON:M4,Int32:S6,Long:M,MaxKey:z4,MinKey:V4,ObjectId:V1,Timestamp:m0,UUID:S1,calculateObjectSize:TV,deserialize:DV,deserializeStream:IV,serialize:RV,serializeWithBufferAndIndex:PV,setInternalBufferSize:wV});$S.BSON=JS;$S.BSONError=R;$S.BSONRegExp=u0;$S.BSONRuntimeError=F5;$S.BSONSymbol=U4;$S.BSONType=WV;$S.BSONValue=q0;$S.BSONVersionError=h6;$S.Binary=s;$S.Code=Z6;$S.DBRef=y8;$S.Decimal128=Z0;$S.Double=O6;$S.EJSON=M4;$S.Int32=S6;$S.Long=M;$S.MaxKey=z4;$S.MinKey=V4;$S.ObjectId=V1;$S.Timestamp=m0;$S.UUID=S1;$S.calculateObjectSize=TV;$S.deserialize=DV;$S.deserializeStream=IV;$S.serialize=RV;$S.serializeWithBufferAndIndex=PV;$S.setInternalBufferSize=wV});var D1=z((B1)=>{var OS=function(Z){const{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:q,raw:F,enableUtf8Validation:W}=Z;return{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:q,raw:F,enableUtf8Validation:W}},SS=function(Z,J){const $=J?.bsonOptions;return{raw:Z?.raw??$?.raw??!1,useBigInt64:Z?.useBigInt64??$?.useBigInt64??!1,promoteLongs:Z?.promoteLongs??$?.promoteLongs??!0,promoteValues:Z?.promoteValues??$?.promoteValues??!0,promoteBuffers:Z?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:Z?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:Z?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:Z?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:Z?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:Z?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(B1,"__esModule",{value:!0});B1.resolveBSONOptions=B1.pluckBSONSerializeOptions=B1.Timestamp=B1.serialize=B1.ObjectId=B1.MinKey=B1.MaxKey=B1.Long=B1.Int32=B1.Double=B1.deserialize=B1.Decimal128=B1.DBRef=B1.Code=B1.calculateObjectSize=B1.BSONType=B1.BSONSymbol=B1.BSONRegExp=B1.BSON=B1.Binary=void 0;var v1=H5();Object.defineProperty(B1,"Binary",{enumerable:!0,get:function(){return v1.Binary}});Object.defineProperty(B1,"BSON",{enumerable:!0,get:function(){return v1.BSON}});Object.defineProperty(B1,"BSONRegExp",{enumerable:!0,get:function(){return v1.BSONRegExp}});Object.defineProperty(B1,"BSONSymbol",{enumerable:!0,get:function(){return v1.BSONSymbol}});Object.defineProperty(B1,"BSONType",{enumerable:!0,get:function(){return v1.BSONType}});Object.defineProperty(B1,"calculateObjectSize",{enumerable:!0,get:function(){return v1.calculateObjectSize}});Object.defineProperty(B1,"Code",{enumerable:!0,get:function(){return v1.Code}});Object.defineProperty(B1,"DBRef",{enumerable:!0,get:function(){return v1.DBRef}});Object.defineProperty(B1,"Decimal128",{enumerable:!0,get:function(){return v1.Decimal128}});Object.defineProperty(B1,"deserialize",{enumerable:!0,get:function(){return v1.deserialize}});Object.defineProperty(B1,"Double",{enumerable:!0,get:function(){return v1.Double}});Object.defineProperty(B1,"Int32",{enumerable:!0,get:function(){return v1.Int32}});Object.defineProperty(B1,"Long",{enumerable:!0,get:function(){return v1.Long}});Object.defineProperty(B1,"MaxKey",{enumerable:!0,get:function(){return v1.MaxKey}});Object.defineProperty(B1,"MinKey",{enumerable:!0,get:function(){return v1.MinKey}});Object.defineProperty(B1,"ObjectId",{enumerable:!0,get:function(){return v1.ObjectId}});Object.defineProperty(B1,"serialize",{enumerable:!0,get:function(){return v1.serialize}});Object.defineProperty(B1,"Timestamp",{enumerable:!0,get:function(){return v1.Timestamp}});B1.pluckBSONSerializeOptions=OS;B1.resolveBSONOptions=SS});var j4=z((NV)=>{Object.defineProperty(NV,"__esModule",{value:!0});NV.OP_MSG=NV.OP_COMPRESSED=NV.OP_DELETE=NV.OP_QUERY=NV.OP_INSERT=NV.OP_UPDATE=NV.OP_REPLY=NV.MIN_SUPPORTED_QE_SERVER_VERSION=NV.MIN_SUPPORTED_QE_WIRE_VERSION=NV.MAX_SUPPORTED_WIRE_VERSION=NV.MIN_SUPPORTED_WIRE_VERSION=NV.MAX_SUPPORTED_SERVER_VERSION=NV.MIN_SUPPORTED_SERVER_VERSION=void 0;NV.MIN_SUPPORTED_SERVER_VERSION="3.6";NV.MAX_SUPPORTED_SERVER_VERSION="7.0";NV.MIN_SUPPORTED_WIRE_VERSION=6;NV.MAX_SUPPORTED_WIRE_VERSION=21;NV.MIN_SUPPORTED_QE_WIRE_VERSION=21;NV.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";NV.OP_REPLY=1;NV.OP_UPDATE=2001;NV.OP_INSERT=2002;NV.OP_QUERY=2004;NV.OP_DELETE=2006;NV.OP_COMPRESSED=2012;NV.OP_MSG=2013});var f1=z((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.TOPOLOGY_EVENTS=CV.CMAP_EVENTS=CV.HEARTBEAT_EVENTS=CV.RESUME_TOKEN_CHANGED=CV.END=CV.CHANGE=CV.INIT=CV.MORE=CV.RESPONSE=CV.SERVER_HEARTBEAT_FAILED=CV.SERVER_HEARTBEAT_SUCCEEDED=CV.SERVER_HEARTBEAT_STARTED=CV.COMMAND_FAILED=CV.COMMAND_SUCCEEDED=CV.COMMAND_STARTED=CV.CLUSTER_TIME_RECEIVED=CV.CONNECTION_CHECKED_IN=CV.CONNECTION_CHECKED_OUT=CV.CONNECTION_CHECK_OUT_FAILED=CV.CONNECTION_CHECK_OUT_STARTED=CV.CONNECTION_CLOSED=CV.CONNECTION_READY=CV.CONNECTION_CREATED=CV.CONNECTION_POOL_READY=CV.CONNECTION_POOL_CLEARED=CV.CONNECTION_POOL_CLOSED=CV.CONNECTION_POOL_CREATED=CV.TOPOLOGY_DESCRIPTION_CHANGED=CV.TOPOLOGY_CLOSED=CV.TOPOLOGY_OPENING=CV.SERVER_DESCRIPTION_CHANGED=CV.SERVER_CLOSED=CV.SERVER_OPENING=CV.DESCRIPTION_RECEIVED=CV.UNPINNED=CV.PINNED=CV.MESSAGE=CV.ENDED=CV.CLOSED=CV.CONNECT=CV.OPEN=CV.CLOSE=CV.TIMEOUT=CV.ERROR=CV.SYSTEM_JS_COLLECTION=CV.SYSTEM_COMMAND_COLLECTION=CV.SYSTEM_USER_COLLECTION=CV.SYSTEM_PROFILE_COLLECTION=CV.SYSTEM_INDEX_COLLECTION=CV.SYSTEM_NAMESPACE_COLLECTION=void 0;CV.LEGACY_HELLO_COMMAND_CAMEL_CASE=CV.LEGACY_HELLO_COMMAND=CV.MONGO_CLIENT_EVENTS=CV.LOCAL_SERVER_EVENTS=CV.SERVER_RELAY_EVENTS=CV.APM_EVENTS=void 0;CV.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";CV.SYSTEM_INDEX_COLLECTION="system.indexes";CV.SYSTEM_PROFILE_COLLECTION="system.profile";CV.SYSTEM_USER_COLLECTION="system.users";CV.SYSTEM_COMMAND_COLLECTION="$cmd";CV.SYSTEM_JS_COLLECTION="system.js";CV.ERROR="error";CV.TIMEOUT="timeout";CV.CLOSE="close";CV.OPEN="open";CV.CONNECT="connect";CV.CLOSED="closed";CV.ENDED="ended";CV.MESSAGE="message";CV.PINNED="pinned";CV.UNPINNED="unpinned";CV.DESCRIPTION_RECEIVED="descriptionReceived";CV.SERVER_OPENING="serverOpening";CV.SERVER_CLOSED="serverClosed";CV.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";CV.TOPOLOGY_OPENING="topologyOpening";CV.TOPOLOGY_CLOSED="topologyClosed";CV.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";CV.CONNECTION_POOL_CREATED="connectionPoolCreated";CV.CONNECTION_POOL_CLOSED="connectionPoolClosed";CV.CONNECTION_POOL_CLEARED="connectionPoolCleared";CV.CONNECTION_POOL_READY="connectionPoolReady";CV.CONNECTION_CREATED="connectionCreated";CV.CONNECTION_READY="connectionReady";CV.CONNECTION_CLOSED="connectionClosed";CV.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";CV.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";CV.CONNECTION_CHECKED_OUT="connectionCheckedOut";CV.CONNECTION_CHECKED_IN="connectionCheckedIn";CV.CLUSTER_TIME_RECEIVED="clusterTimeReceived";CV.COMMAND_STARTED="commandStarted";CV.COMMAND_SUCCEEDED="commandSucceeded";CV.COMMAND_FAILED="commandFailed";CV.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";CV.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";CV.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";CV.RESPONSE="response";CV.MORE="more";CV.INIT="init";CV.CHANGE="change";CV.END="end";CV.RESUME_TOKEN_CHANGED="resumeTokenChanged";CV.HEARTBEAT_EVENTS=Object.freeze([CV.SERVER_HEARTBEAT_STARTED,CV.SERVER_HEARTBEAT_SUCCEEDED,CV.SERVER_HEARTBEAT_FAILED]);CV.CMAP_EVENTS=Object.freeze([CV.CONNECTION_POOL_CREATED,CV.CONNECTION_POOL_READY,CV.CONNECTION_POOL_CLEARED,CV.CONNECTION_POOL_CLOSED,CV.CONNECTION_CREATED,CV.CONNECTION_READY,CV.CONNECTION_CLOSED,CV.CONNECTION_CHECK_OUT_STARTED,CV.CONNECTION_CHECK_OUT_FAILED,CV.CONNECTION_CHECKED_OUT,CV.CONNECTION_CHECKED_IN]);CV.TOPOLOGY_EVENTS=Object.freeze([CV.SERVER_OPENING,CV.SERVER_CLOSED,CV.SERVER_DESCRIPTION_CHANGED,CV.TOPOLOGY_OPENING,CV.TOPOLOGY_CLOSED,CV.TOPOLOGY_DESCRIPTION_CHANGED,CV.ERROR,CV.TIMEOUT,CV.CLOSE]);CV.APM_EVENTS=Object.freeze([CV.COMMAND_STARTED,CV.COMMAND_SUCCEEDED,CV.COMMAND_FAILED]);CV.SERVER_RELAY_EVENTS=Object.freeze([CV.SERVER_HEARTBEAT_STARTED,CV.SERVER_HEARTBEAT_SUCCEEDED,CV.SERVER_HEARTBEAT_FAILED,CV.COMMAND_STARTED,CV.COMMAND_SUCCEEDED,CV.COMMAND_FAILED,...CV.CMAP_EVENTS]);CV.LOCAL_SERVER_EVENTS=Object.freeze([CV.CONNECT,CV.DESCRIPTION_RECEIVED,CV.CLOSED,CV.ENDED]);CV.MONGO_CLIENT_EVENTS=Object.freeze([...CV.CMAP_EVENTS,...CV.APM_EVENTS,...CV.TOPOLOGY_EVENTS,...CV.HEARTBEAT_EVENTS]);CV.LEGACY_HELLO_COMMAND="ismaster";CV.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var d0=z(($U)=>{Object.defineProperty($U,"__esModule",{value:!0});$U.ReadConcern=$U.ReadConcernLevel=void 0;$U.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class o4{constructor(Z){this.level=$U.ReadConcernLevel[Z]??Z}static fromOptions(Z){if(Z==null)return;if(Z.readConcern){const{readConcern:J}=Z;if(J instanceof o4)return J;else if(typeof J==="string")return new o4(J);else if("level"in J&&J.level)return new o4(J.level)}if(Z.level)return new o4(Z.level);return}static get MAJORITY(){return $U.ReadConcernLevel.majority}static get AVAILABLE(){return $U.ReadConcernLevel.available}static get LINEARIZABLE(){return $U.ReadConcernLevel.linearizable}static get SNAPSHOT(){return $U.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}$U.ReadConcern=o4});var y1=z((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.ReadPreference=YU.ReadPreferenceMode=void 0;var A4=h();YU.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class a{constructor(Z,J,$){if(!a.isValid(Z))throw new A4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(Z)}`);if($==null&&typeof J==="object"&&!Array.isArray(J))$=J,J=void 0;else if(J&&!Array.isArray(J))throw new A4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=Z,this.tags=J,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new A4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===a.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(Z){return new a(Z)}static fromOptions(Z){if(!Z)return;const J=Z.readPreference??Z.session?.transaction.options.readPreference,$=Z.readPreferenceTags;if(J==null)return;if(typeof J==="string")return new a(J,$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:Z.hedge});else if(!(J instanceof a)&&typeof J==="object"){const X=J.mode||J.preference;if(X&&typeof X==="string")return new a(X,J.tags??$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:Z.hedge})}if($)J.tags=$;return J}static translate(Z){if(Z.readPreference==null)return Z;const J=Z.readPreference;if(typeof J==="string")Z.readPreference=new a(J);else if(J&&!(J instanceof a)&&typeof J==="object"){const $=J.mode||J.preference;if($&&typeof $==="string")Z.readPreference=new a($,J.tags,{maxStalenessSeconds:J.maxStalenessSeconds})}else if(!(J instanceof a))throw new A4.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return Z}static isValid(Z){return(new Set([a.PRIMARY,a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST,null])).has(Z)}isValid(Z){return a.isValid(typeof Z==="string"?Z:this.mode)}secondaryOk(){return(new Set([a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST])).has(this.mode)}equals(Z){return Z.mode===this.mode}toJSON(){const Z={mode:this.mode};if(Array.isArray(this.tags))Z.tags=this.tags;if(this.maxStalenessSeconds)Z.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)Z.hedge=this.hedge;return Z}}a.PRIMARY=YU.ReadPreferenceMode.primary;a.PRIMARY_PREFERRED=YU.ReadPreferenceMode.primaryPreferred;a.SECONDARY=YU.ReadPreferenceMode.secondary;a.SECONDARY_PREFERRED=YU.ReadPreferenceMode.secondaryPreferred;a.NEAREST=YU.ReadPreferenceMode.nearest;a.primary=new a(YU.ReadPreferenceMode.primary);a.primaryPreferred=new a(YU.ReadPreferenceMode.primaryPreferred);a.secondary=new a(YU.ReadPreferenceMode.secondary);a.secondaryPreferred=new a(YU.ReadPreferenceMode.secondaryPreferred);a.nearest=new a(YU.ReadPreferenceMode.nearest);YU.ReadPreference=a});var p0=z((KU)=>{var Vy=function(Z){Z.forEach(zy.clearTimeout),Z.clear()},Uy=function(Z,J){if(Z.clusterTime==null)Z.clusterTime=J;else if(J.clusterTime.greaterThan(Z.clusterTime.clusterTime))Z.clusterTime=J};Object.defineProperty(KU,"__esModule",{value:!0});KU._advanceClusterTime=KU.drainTimerQueue=KU.ServerType=KU.TopologyType=KU.STATE_CONNECTED=KU.STATE_CONNECTING=KU.STATE_CLOSED=KU.STATE_CLOSING=void 0;var zy=import.meta.require("timers");KU.STATE_CLOSING="closing";KU.STATE_CLOSED="closed";KU.STATE_CONNECTING="connecting";KU.STATE_CONNECTED="connected";KU.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});KU.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});KU.drainTimerQueue=Vy;KU._advanceClusterTime=Uy});var A0=z((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.WriteConcern=qU.WRITE_CONCERN_KEYS=void 0;qU.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class z5{constructor(Z,J,$,X){if(Z!=null)if(!Number.isNaN(Number(Z)))this.w=Number(Z);else this.w=Z;if(J!=null)this.wtimeoutMS=this.wtimeout=J;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(Z,J){const $={};if(J.w!=null)$.w=J.w;if(J.wtimeoutMS!=null)$.wtimeout=J.wtimeoutMS;if(J.journal!=null)$.j=J.j;return Z.writeConcern=$,Z}static fromOptions(Z,J){if(Z==null)return;J=J??{};let $;if(typeof Z==="string"||typeof Z==="number")$={w:Z};else if(Z instanceof z5)$=Z;else $=Z.writeConcern;const X=J instanceof z5?J:J.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:q=void 0,wtimeoutMS:F=void 0}={...X,...$};if(Y!=null||Q!=null||F!=null||K!=null||q!=null||G!=null)return new z5(Y,Q??F,K??q,G);return}}qU.WriteConcern=z5});var _=z((RU)=>{var ky=function(Z,J){for(let $ of J)if(Z===$||$.startsWith("*.")&&Z?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&Z?.endsWith($.substring(2,$.length)))return!0;return!1},_y=function(Z){if(typeof Z!=="string")throw new J0.MongoInvalidArgumentError("Collection name must be a String");if(!Z||Z.indexOf("..")!==-1)throw new J0.MongoInvalidArgumentError("Collection names cannot be empty");if(Z.indexOf("$")!==-1&&Z.match(/((^\$cmd)|(oplog\.\$main))/)==null)throw new J0.MongoInvalidArgumentError("Collection names must not contain '$'");if(Z.match(/^\.|\.$/)!=null)throw new J0.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(Z.indexOf("\0")!==-1)throw new J0.MongoInvalidArgumentError("Collection names cannot contain a null character")},xy=function(Z){let J=void 0;if(typeof Z==="string")J=Z;else if(Array.isArray(Z))J={},Z.forEach(($)=>{J[$]=1});else if(Z!=null&&typeof Z==="object"){J={};for(let $ in Z)J[$]=Z[$]}return J},BX=function(Z){return vy(Z)==="[object Object]"},fy=function(Z,J){return{...Z,...J}},gy=function(Z,J){const $={};for(let X in Z)if(J.includes(X))$[X]=Z[X];return $},by=function(Z,J){if(J&&J.s.options?.retryWrites)Z.retryWrites=!0;return Z},my=function(Z){return!!Z&&typeof Z.then==="function"},uy=function(Z,J,$){const X=zU(J).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)Z.collation=$.collation;else throw new J0.MongoCompatibilityError("Current topology does not support collation")},dy=function(Z,J,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},Z.readConcern||{});if(J.s.readConcern)Object.assign(X,J.s.readConcern);if(Object.keys(X).length>0)Object.assign(Z,{readConcern:X})},py=function(Z,J){if(Z.explain)return Z;return{explain:Z,verbosity:J.verbosity}},zU=function(Z){if("topology"in Z&&Z.topology)return Z.topology;else if("client"in Z&&Z.client.topology)return Z.client.topology;throw new J0.MongoNotConnectedError("MongoClient must be connected to perform this operation")},cy=function(Z){return M5.fromString(Z)};function*ly(Z=0){let J=Z;while(!0){const $=J;J+=1,yield $}}var ay=function(Z,J){const $=Z();if(J==null)return $;$.then((X)=>J(void 0,X),(X)=>J(X));return},iy=function(Z){return Z.split(".")[0]},sy=function(){const Z=Ty.randomBytes(16);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z},ny=function(Z){if(Z){if(Z.loadBalanced)return By.MAX_SUPPORTED_WIRE_VERSION;if(Z.hello)return Z.hello.maxWireVersion;if("lastHello"in Z&&typeof Z.lastHello==="function"){const J=Z.lastHello();if(J)return J.maxWireVersion}if(Z.description&&"maxWireVersion"in Z.description&&Z.description.maxWireVersion!=null)return Z.description.maxWireVersion}return 0},ty=function(Z,J,$){Z=Z||[];let X=0,Y=0;for(X=0;X<Z.length;++X)Y++,J(Z[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===Z.length&&Y<=0)$()}},ry=function(Z,J){if(!Array.isArray(Z)||!Array.isArray(J))return!1;return Z.length===J.length&&Z.every(($,X)=>$===J[X])},oy=function(Z,J){if(Z===J)return!0;if(!Z||!J)return Z===J;if(Z==null&&J!=null||Z!=null&&J==null)return!1;if(Z.constructor.name!==J.constructor.name)return!1;if(Z.message!==J.message)return!1;return!0},ey=function(Z){return function J($,X){const Y=Z[$.s.state];if(Y&&Y.indexOf(X)<0)throw new J0.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},VU=function(){const Z=process.hrtime();return Math.floor(Z[0]*1000+Z[1]/1e6)},Zk=function(Z){if(typeof Z!=="number")throw new J0.MongoInvalidArgumentError("Numeric value required to calculate duration");const J=VU()-Z;return J<0?0:J},UU=function(Z){if(Array.isArray(Z)){for(let $ of Z)if(UU($))return!0;return!1}const J=Object.keys(Z);return J.length>0&&J[0][0]==="$"},Jk=function(Z,J){const $=Object.assign({},J,HU.resolveBSONOptions(J,Z));if(!J?.session?.inTransaction()){const Q=hy.ReadConcern.fromOptions(J)??Z?.readConcern;if(Q)$.readConcern=Q;const K=yy.WriteConcern.fromOptions(J)??Z?.writeConcern;if(K)$.writeConcern=K}const Y=Oy.ReadPreference.fromOptions(J)??Z?.readPreference;if(Y)$.readPreference=Y;return $},MU=function(Z,J){Z=Array.isArray(Z)?new Set(Z):Z,J=Array.isArray(J)?new Set(J):J;for(let $ of J)if(!Z.has($))return!1;return!0},$k=function(Z){return Z[Cy.LEGACY_HELLO_COMMAND]||Z.hello?!0:!1},Xk=function(Z,J){const $=new Set(Z);for(let X of J)$.delete(X);return $},jU=function(Z,J=void 0){if(!BX(Z))return!1;const $=Z.constructor;if($&&$.prototype){if(!BX($.prototype))return!1;if(!Yk($.prototype,"isPrototypeOf"))return!1}if(J){const X=Object.keys(Z);return MU(X,J)}return!0},CX=function(Z){if(Z==null)return Z;else if(Array.isArray(Z))return Z.map(($)=>CX($));else if(jU(Z)){const $={};for(let X in Z)$[X]=CX(Z[X]);return $}const J=Z.constructor;if(J)switch(J.name.toLowerCase()){case"date":return new J(Number(Z));case"map":return new Map(Z);case"set":return new Set(Z);case"buffer":return Buffer.from(Z)}return Z},LU=function(Z){return process.emitWarning(Z,{code:RU.MONGODB_WARNING_CODE})},Qk=function(Z){if(!WU.has(Z))return WU.add(Z),LU(Z)},Kk=function(Z){return Object.values(Z).join(", ")},Gk=function(Z){if(!Z)return!1;if(Z.loadBalanced)return!0;if(Z.description.logicalSessionTimeoutMinutes!=null){if(Z.description.type!==Sy.ServerType.Standalone)return!0}return!1},qk=function(Z,J=0){const $=Array.from(Z);if(J>$.length)throw new J0.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=J%$.length===0?1:$.length-J;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return J%$.length===0?$:$.slice(Y)},Fk=function(Z,J){if(Z.aggregate||Z.count||Z.distinct||Z.find||Z.geoNear)return!0;if(Z.mapReduce&&J&&J.out&&(J.out.inline===1||J.out==="inline"))return!0;return!1},Wk=function(){let Z=null;if(typeof process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE==="string"&&process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE.length>0)try{Z=import.meta.require(process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE)}catch{}else try{Z=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch{}return Z},Hk=function(Z,J){if(Z==null&&J==null)return 0;if(Z==null)return-1;if(J==null)return 1;return RU.ByteUtils.compare(Z.id,J.id)},wU=function(Z){if(typeof Z==="number")return Math.trunc(Z);const J=Number.parseInt(String(Z),10);return Number.isNaN(J)?null:J},zk=function(Z){const J=wU(Z);return J!=null&&J>=0?J:null},Vk=function(Z,J){const $=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,X=J.endsWith(".")?J.slice(0,J.length-1):J,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function Uk(Z,J={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...Ey.parse(Z),...J},Q=Iy.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(q)=>{G+=q}),K.once("end",()=>{if(J.json===!1){$(G);return}try{const q=JSON.parse(G);$(q)}catch{X(new J0.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new J0.MongoNetworkTimeoutError(`Network request to ${Z} timed out after ${J.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}Object.defineProperty(RU,"__esModule",{value:!0});RU.matchesParentDomain=RU.parseUnsignedInteger=RU.parseInteger=RU.compareObjectId=RU.getMongoDBClientEncryption=RU.commandSupportsReadConcern=RU.shuffle=RU.supportsRetryableWrites=RU.enumToString=RU.emitWarningOnce=RU.emitWarning=RU.MONGODB_WARNING_CODE=RU.DEFAULT_PK_FACTORY=RU.HostAddress=RU.BufferPool=RU.List=RU.deepCopy=RU.isRecord=RU.setDifference=RU.isHello=RU.isSuperset=RU.resolveOptions=RU.hasAtomicOperators=RU.calculateDurationInMs=RU.now=RU.makeStateMachine=RU.errorStrictEqual=RU.arrayStrictEqual=RU.eachAsync=RU.maxWireVersion=RU.uuidV4=RU.databaseNamespace=RU.maybeCallback=RU.makeCounter=RU.MongoDBCollectionNamespace=RU.MongoDBNamespace=RU.ns=RU.getTopology=RU.decorateWithExplain=RU.decorateWithReadConcern=RU.decorateWithCollation=RU.isPromiseLike=RU.applyRetryableWrites=RU.filterOptions=RU.mergeOptions=RU.isObject=RU.normalizeHintField=RU.checkCollectionName=RU.hostMatchesWildcards=RU.ByteUtils=void 0;RU.request=void 0;var Ty=import.meta.require("crypto"),Iy=import.meta.require("http"),Ey=import.meta.require("url"),Ny=import.meta.require("url"),HU=D1(),By=j4(),Cy=f1(),J0=h(),hy=d0(),Oy=y1(),Sy=p0(),yy=A0();RU.ByteUtils={toLocalBufferType(Z){return Buffer.isBuffer(Z)?Z:Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength)},equals(Z,J){return RU.ByteUtils.toLocalBufferType(Z).equals(J)},compare(Z,J){return RU.ByteUtils.toLocalBufferType(Z).compare(J)},toBase64(Z){return RU.ByteUtils.toLocalBufferType(Z).toString("base64")}};RU.hostMatchesWildcards=ky;RU.checkCollectionName=_y;RU.normalizeHintField=xy;var vy=(Z)=>Object.prototype.toString.call(Z);RU.isObject=BX;RU.mergeOptions=fy;RU.filterOptions=gy;RU.applyRetryableWrites=by;RU.isPromiseLike=my;RU.decorateWithCollation=uy;RU.decorateWithReadConcern=dy;RU.decorateWithExplain=py;RU.getTopology=zU;RU.ns=cy;class M5{constructor(Z,J){this.db=Z,this.collection=J,this.collection=J===""?void 0:J}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(Z){return new hX(this.db,Z)}static fromString(Z){if(typeof Z!=="string"||Z==="")throw new J0.MongoRuntimeError(`Cannot parse namespace from "${Z}"`);const[J,...$]=Z.split("."),X=$.join(".");return new M5(J,X===""?void 0:X)}}RU.MongoDBNamespace=M5;class hX extends M5{constructor(Z,J){super(Z,J);this.collection=J}}RU.MongoDBCollectionNamespace=hX;RU.makeCounter=ly;RU.maybeCallback=ay;RU.databaseNamespace=iy;RU.uuidV4=sy;RU.maxWireVersion=ny;RU.eachAsync=ty;RU.arrayStrictEqual=ry;RU.errorStrictEqual=oy;RU.makeStateMachine=ey;RU.now=VU;RU.calculateDurationInMs=Zk;RU.hasAtomicOperators=UU;RU.resolveOptions=Jk;RU.isSuperset=MU;RU.isHello=$k;RU.setDifference=Xk;var Yk=(Z,J)=>Object.prototype.hasOwnProperty.call(Z,J);RU.isRecord=jU;RU.deepCopy=CX;class OX{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(let Z of this.nodes())yield Z.value}*nodes(){let Z=this.head.next;while(Z!==this.head){const{next:J}=Z;yield Z,Z=J}}push(Z){this.count+=1;const J={next:this.head,prev:this.head.prev,value:Z};this.head.prev.next=J,this.head.prev=J}pushMany(Z){for(let J of Z)this.push(J)}unshift(Z){this.count+=1;const J={next:this.head.next,prev:this.head,value:Z};this.head.next.prev=J,this.head.next=J}remove(Z){if(Z===this.head||this.length===0)return null;this.count-=1;const{prev:J,next:$}=Z;return J.next=$,$.prev=J,Z.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(Z){for(let J of this.nodes())if(Z(J.value))this.remove(J)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}RU.List=OX;class AU{constructor(){this.buffers=new OX,this.totalByteLength=0}get length(){return this.totalByteLength}append(Z){this.buffers.push(Z),this.totalByteLength+=Z.length}getInt32(){if(this.totalByteLength<4)return null;const Z=this.buffers.first();if(Z!=null&&Z.byteLength>=4)return Z.readInt32LE(0);const J=this.read(4),$=J.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(J),$}read(Z){if(typeof Z!=="number"||Z<0)throw new J0.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(Z>this.totalByteLength)return Buffer.alloc(0);const J=Buffer.allocUnsafe(Z);for(let $=0;$<Z;){const X=this.buffers.shift();if(X==null)break;const Y=Z-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(J.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return J}}RU.BufferPool=AU;class U5{constructor(Z){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const J=Z.split(" ").join("%20");if(J.endsWith(".sock")){this.socketPath=decodeURIComponent(J);return}const $=`iLoveJS://${J}`;let X;try{X=new Ny.URL($)}catch(G){const q=new J0.MongoRuntimeError(`Unable to parse ${J} with URL`);throw q.cause=G,q}const{hostname:Y,port:Q}=X;let K=decodeURIComponent(Y).toLowerCase();if(K.startsWith("[")&&K.endsWith("]"))this.isIPv6=!0,K=K.substring(1,Y.length-1);if(this.host=K.toLowerCase(),typeof Q==="number")this.port=Q;else if(typeof Q==="string"&&Q!=="")this.port=Number.parseInt(Q,10);else this.port=27017;if(this.port===0)throw new J0.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){if(typeof this.host==="string"){if(this.isIPv6)return`[${this.host}]:${this.port}`;return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(Z){return new U5(Z)}static fromHostPort(Z,J){if(Z.includes(":"))Z=`[${Z}]`;return U5.fromString(`${Z}:${J}`)}static fromSrvRecord({name:Z,port:J}){return U5.fromHostPort(Z,J)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const Z=this.host??"",J=this.port??0;return{host:Z,port:J}}}RU.HostAddress=U5;RU.DEFAULT_PK_FACTORY={createPk(){return new HU.ObjectId}};RU.MONGODB_WARNING_CODE="MONGODB DRIVER";RU.emitWarning=LU;var WU=new Set;RU.emitWarningOnce=Qk;RU.enumToString=Kk;RU.supportsRetryableWrites=Gk;RU.shuffle=qk;RU.commandSupportsReadConcern=Fk;RU.getMongoDBClientEncryption=Wk;RU.compareObjectId=Hk;RU.parseInteger=wU;RU.parseUnsignedInteger=zk;RU.matchesParentDomain=Vk;RU.request=Uk});var kX=z((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.Explain=IU.ExplainVerbosity=void 0;var q_=h();IU.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class yX{constructor(Z){if(typeof Z==="boolean")this.verbosity=Z?IU.ExplainVerbosity.allPlansExecution:IU.ExplainVerbosity.queryPlanner;else this.verbosity=Z}static fromOptions(Z){if(Z?.explain==null)return;const J=Z.explain;if(typeof J==="boolean"||typeof J==="string")return new yX(J);throw new q_.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}IU.Explain=yX});var A5=z((BU)=>{var W_=function(){return(Z,J)=>_X(Z,J.filter(($)=>$.isWritable))},H_=function(Z){return(J,$)=>{if(!Z)return[];return $.filter((X)=>{return X.address===Z.address&&X.type!==N0.ServerType.Unknown})}},z_=function(Z,J){if(!J||!Z||Z&&Z<BU.MIN_SECONDARY_WRITE_WIRE_VERSION)return xX(j5.ReadPreference.primary);return xX(J)},V_=function(Z,J,$){if(Z.maxStalenessSeconds==null||Z.maxStalenessSeconds<0)return $;const X=Z.maxStalenessSeconds,Y=(J.heartbeatFrequencyMS+F_)/1000;if(X<Y)throw new WZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<NU)throw new WZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${NU} seconds`);if(J.type===N0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(J.servers.values()).filter(FZ)[0];return $.reduce((K,G)=>{const F=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+J.heartbeatFrequencyMS)/1000,W=Z.maxStalenessSeconds??0;if(F<=W)K.push(G);return K},[])}if(J.type===N0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const F=(Q.lastWriteDate-G.lastWriteDate+J.heartbeatFrequencyMS)/1000,W=Z.maxStalenessSeconds??0;if(F<=W)K.push(G);return K},[])}return $},U_=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||J[Q]!==Z[Q])return!1}return!0},M_=function(Z,J){if(Z.tags==null||Array.isArray(Z.tags)&&Z.tags.length===0)return J;for(let $=0;$<Z.tags.length;++$){const X=Z.tags[$],Y=J.reduce((Q,K)=>{if(U_(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},_X=function(Z,J){const $=J.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+Z.localThresholdMS;return J.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},FZ=function(Z){return Z.type===N0.ServerType.RSPrimary},j_=function(Z){return Z.type===N0.ServerType.RSSecondary},A_=function(Z){return Z.type===N0.ServerType.RSSecondary||Z.type===N0.ServerType.RSPrimary},L_=function(Z){return Z.type!==N0.ServerType.Unknown},w_=function(Z){return Z.type===N0.ServerType.LoadBalancer},xX=function(Z){if(!Z.isValid())throw new WZ.MongoInvalidArgumentError("Invalid read preference specified");return(J,$)=>{const X=J.commonWireVersion;if(X&&Z.minWireVersion&&Z.minWireVersion>X)throw new WZ.MongoCompatibilityError(`Minimum wire version '${Z.minWireVersion}' required, but found '${X}'`);if(J.type===N0.TopologyType.LoadBalanced)return $.filter(w_);if(J.type===N0.TopologyType.Unknown)return[];if(J.type===N0.TopologyType.Single||J.type===N0.TopologyType.Sharded)return _X(J,$.filter(L_));const Y=Z.mode;if(Y===j5.ReadPreference.PRIMARY)return $.filter(FZ);if(Y===j5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(FZ);if(G.length)return G}const Q=Y===j5.ReadPreference.NEAREST?A_:j_,K=_X(J,M_(Z,V_(Z,J,$.filter(Q))));if(Y===j5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(FZ);return K}};Object.defineProperty(BU,"__esModule",{value:!0});BU.readPreferenceServerSelector=BU.secondaryWritableServerSelector=BU.sameServerSelector=BU.writableServerSelector=BU.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var WZ=h(),j5=y1(),N0=p0(),F_=1e4,NU=90;BU.MIN_SECONDARY_WRITE_WIRE_VERSION=13;BU.writableServerSelector=W_;BU.sameServerSelector=H_;BU.secondaryWritableServerSelector=z_;BU.readPreferenceServerSelector=xX});var J1=z((SU)=>{var E_=function(Z,J){if(!Array.isArray(J)&&!(J instanceof Set))J=[J];return J=new Set(J),Object.defineProperty(Z,"aspects",{value:J,writable:!1}),J};Object.defineProperty(SU,"__esModule",{value:!0});SU.defineAspects=SU.AbstractCallbackOperation=SU.AbstractOperation=SU.Aspect=void 0;var T_=import.meta.require("util"),I_=D1(),vX=y1();SU.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};var fX=Symbol("session");class gX{constructor(Z={}){this.readPreference=this.hasAspect(SU.Aspect.WRITE_OPERATION)?vX.ReadPreference.primary:vX.ReadPreference.fromOptions(Z)??vX.ReadPreference.primary,this.bsonOptions=I_.resolveBSONOptions(Z),this[fX]=Z.session!=null?Z.session:void 0,this.options=Z,this.bypassPinningCheck=!!Z.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(Z){const J=this.constructor;if(J.aspects==null)return!1;return J.aspects.has(Z)}get session(){return this[fX]}clearSession(){this[fX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}SU.AbstractOperation=gX;class OU extends gX{constructor(Z={}){super(Z)}execute(Z,J){return T_.promisify(($)=>{this.executeCallback(Z,J,$)})()}}SU.AbstractCallbackOperation=OU;SU.defineAspects=E_});var T1=z((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.CommandCallbackOperation=vU.CommandOperation=void 0;var C_=h(),h_=kX(),O_=d0(),S_=A5(),L5=_(),_U=A0(),e4=J1();class bX extends e4.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J??{};const $=J?.dbName||J?.authdb;if($)this.ns=new L5.MongoDBNamespace($,"$cmd");else this.ns=Z?Z.s.namespace.withCollection("$cmd"):new L5.MongoDBNamespace("admin","$cmd");if(this.readConcern=O_.ReadConcern.fromOptions(J),this.writeConcern=_U.WriteConcern.fromOptions(J),this.hasAspect(e4.Aspect.EXPLAINABLE))this.explain=h_.Explain.fromOptions(J);else if(J?.explain!=null)throw new C_.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect(e4.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(Z,J,$){this.server=Z;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:J},Y=L5.maxWireVersion(Z),Q=this.session&&this.session.inTransaction();if(this.readConcern&&L5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<S_.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect(e4.Aspect.WRITE_OPERATION)&&!Q)_U.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect(e4.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect(e4.Aspect.EXPLAINABLE)&&this.explain)$=L5.decorateWithExplain($,this.explain);return Z.commandAsync(this.ns,$,X)}}vU.CommandOperation=bX;class xU extends bX{constructor(Z,J){super(Z,J)}executeCommandCallback(Z,J,$,X){super.executeCommand(Z,J,$).then((Y)=>X(void 0,Y),(Y)=>X(Y,void 0))}}vU.CommandCallbackOperation=xU});var uX=z((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.AddUserOperation=void 0;var k_=import.meta.require("crypto"),__=h(),gU=_(),x_=T1(),bU=J1();class mX extends x_.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.db=Z,this.username=J,this.password=$,this.options=X??{}}executeCallback(Z,J,$){const X=this.db,Y=this.username,Q=this.password,K=this.options;if("digestPassword"in K&&K.digestPassword!=null)return $(new __.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let G;if(!K.roles||Array.isArray(K.roles)&&K.roles.length===0)if(gU.emitWarningOnce('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),X.databaseName.toLowerCase()==="admin")G=["root"];else G=["dbOwner"];else G=Array.isArray(K.roles)?K.roles:[K.roles];let q;try{q=gU.getTopology(X)}catch(V){return $(V)}const F=q.lastHello().maxWireVersion>=7;let W=Q;if(!F){const V=k_.createHash("md5");V.update(`${Y}:mongo:${Q}`),W=V.digest("hex")}const H={createUser:Y,customData:K.customData||{},roles:G,digestPassword:F};if(typeof Q==="string")H.pwd=W;super.executeCommandCallback(Z,J,H,$)}}mU.AddUserOperation=mX;bU.defineAspects(mX,[bU.Aspect.WRITE_OPERATION])});var B0=z((lU)=>{var f_=function(Z,J,$){return dX.maybeCallback(()=>g_(Z,J),$)};async function g_(Z,J){if(!(J instanceof y6.AbstractCallbackOperation))throw new F0.MongoRuntimeError("This method requires a valid operation instance");if(Z.topology==null){if(Z.s.hasBeenClosed)throw new F0.MongoNotConnectedError("Client must be connected before running operations");Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await Z.connect()}finally{delete Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=Z;if($==null)throw new F0.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=J.session,Y;if(X==null)Y=Symbol(),X=Z.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new F0.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new F0.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");const Q=J.readPreference??dU.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(dU.ReadPreference.primary))throw new F0.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!J.bypassPinningCheck)X.unpin();let G;if(J.hasAspect(y6.Aspect.MUST_SELECT_SAME_SERVER))G=pU.sameServerSelector(J.server?.description);else if(J.trySecondaryWrite)G=pU.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const q=await $.selectServerAsync(G,{session:X});if(X==null)return J.execute(q,void 0);if(!J.hasAspect(y6.Aspect.RETRYABLE))try{return await J.execute(q,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const F=$.s.options.retryReads&&!K&&J.canRetryRead,W=$.s.options.retryWrites&&!K&&dX.supportsRetryableWrites(q)&&J.canRetryWrite,H=J.hasAspect(y6.Aspect.READ_OPERATION),V=J.hasAspect(y6.Aspect.WRITE_OPERATION),j=H&&F||V&&W;if(V&&W)J.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await J.execute(q,X)}catch(U){if(j&&U instanceof F0.MongoError)return await b_(J,U,{session:X,topology:$,selector:G});throw U}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function b_(Z,J,{session:$,topology:X,selector:Y}){const Q=Z.hasAspect(y6.Aspect.WRITE_OPERATION),K=Z.hasAspect(y6.Aspect.READ_OPERATION);if(Q&&J.code===v_)throw new F0.MongoServerError({message:cU,errmsg:cU,originalError:J});if(Q&&!F0.isRetryableWriteError(J))throw J;if(K&&!F0.isRetryableReadError(J))throw J;if(J instanceof F0.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&Z.hasAspect(y6.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!dX.supportsRetryableWrites(G))throw new F0.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await Z.execute(G,$)}catch(q){if(q instanceof F0.MongoError&&q.hasErrorLabel(F0.MongoErrorLabel.NoWritesPerformed))throw J;throw q}}Object.defineProperty(lU,"__esModule",{value:!0});lU.executeOperation=void 0;var F0=h(),dU=y1(),pU=A5(),dX=_(),y6=J1(),v_=F0.MONGODB_ERROR_CODES.IllegalOperation,cU="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";lU.executeOperation=f_});var tU=z((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.ListDatabasesOperation=void 0;var iU=_(),m_=T1(),pX=J1();class cX extends m_.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.ns=new iU.MongoDBNamespace("admin","$cmd")}executeCallback(Z,J,$){const X={listDatabases:1};if(typeof this.options.nameOnly==="boolean")X.nameOnly=this.options.nameOnly;if(this.options.filter)X.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")X.authorizedDatabases=this.options.authorizedDatabases;if(iU.maxWireVersion(Z)>=9&&this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,$)}}sU.ListDatabasesOperation=cX;pX.defineAspects(cX,[pX.Aspect.READ_OPERATION,pX.Aspect.RETRYABLE])});var aX=z((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.RemoveUserOperation=void 0;var u_=T1(),rU=J1();class lX extends u_.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$,this.username=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropUser:this.username},(X)=>{$(X,X?!1:!0)})}}oU.RemoveUserOperation=lX;rU.defineAspects(lX,[rU.Aspect.WRITE_OPERATION])});var Z7=z((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.RunAdminCommandOperation=JM.RunCommandOperation=void 0;var d_=_(),p_=T1();class iX extends p_.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.command=J}executeCallback(Z,J,$){const X=this.command;this.executeCommandCallback(Z,J,X,$)}}JM.RunCommandOperation=iX;class ZM extends iX{constructor(Z,J,$){super(Z,J,$);this.ns=new d_.MongoDBNamespace("admin")}}JM.RunAdminCommandOperation=ZM});var KM=z((YM)=>{Object.defineProperty(YM,"__esModule",{value:!0});YM.ValidateCollectionOperation=void 0;var HZ=h(),l_=T1();class XM extends l_.CommandCallbackOperation{constructor(Z,J,$){const X={validate:J},Y=Object.keys($);for(let Q=0;Q<Y.length;Q++)if(Object.prototype.hasOwnProperty.call($,Y[Q])&&Y[Q]!=="session")X[Y[Q]]=$[Y[Q]];super(Z.s.db,$);this.options=$,this.command=X,this.collectionName=J}executeCallback(Z,J,$){const X=this.collectionName;super.executeCommandCallback(Z,J,this.command,(Y,Q)=>{if(Y!=null)return $(Y);if(Q.ok===0)return $(new HZ.MongoRuntimeError("Error with validate command"));if(Q.result!=null&&typeof Q.result!=="string")return $(new HZ.MongoRuntimeError("Error with validation data"));if(Q.result!=null&&Q.result.match(/exception|corrupt/)!=null)return $(new HZ.MongoRuntimeError(`Invalid collection ${X}`));if(Q.valid!=null&&!Q.valid)return $(new HZ.MongoRuntimeError(`Invalid collection ${X}`));return $(void 0,Q)})}}YM.ValidateCollectionOperation=XM});var sX=z((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.Admin=void 0;var a_=uX(),w5=B0(),i_=tU(),s_=aX(),n_=Z7(),t_=KM();class GM{constructor(Z){this.s={db:Z}}async command(Z,J){return w5.executeOperation(this.s.db.client,new n_.RunCommandOperation(this.s.db,Z,{dbName:"admin",...J}))}async buildInfo(Z){return this.command({buildinfo:1},Z)}async serverInfo(Z){return this.command({buildinfo:1},Z)}async serverStatus(Z){return this.command({serverStatus:1},Z)}async ping(Z){return this.command({ping:1},Z)}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return w5.executeOperation(this.s.db.client,new a_.AddUserOperation(this.s.db,Z,X,{dbName:"admin",...$}))}async removeUser(Z,J){return w5.executeOperation(this.s.db.client,new s_.RemoveUserOperation(this.s.db,Z,{dbName:"admin",...J}))}async validateCollection(Z,J={}){return w5.executeOperation(this.s.db.client,new t_.ValidateCollectionOperation(this,Z,J))}async listDatabases(Z){return w5.executeOperation(this.s.db.client,new i_.ListDatabasesOperation(this.s.db,Z))}async replSetGetStatus(Z){return this.command({replSetGetStatus:1},Z)}}qM.Admin=GM});var oX=z((WM)=>{var rX=function(Z,J){const $={q:Z,limit:typeof J.limit==="number"?J.limit:0};if(J.collation)$.collation=J.collation;if(J.hint)$.hint=J.hint;return $};Object.defineProperty(WM,"__esModule",{value:!0});WM.makeDeleteStatement=WM.DeleteManyOperation=WM.DeleteOneOperation=WM.DeleteOperation=void 0;var R5=h(),r_=T1(),c0=J1();class P5 extends r_.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.limit!=null?Z.limit>0:!0)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={delete:this.ns.collection,deletes:this.statements,ordered:Y};if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new R5.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}WM.DeleteOperation=P5;class nX extends P5{constructor(Z,J,$){super(Z.s.namespace,[rX(J,{...$,limit:1})],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new R5.MongoServerError(Y));if(Y.writeErrors)return $(new R5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}WM.DeleteOneOperation=nX;class tX extends P5{constructor(Z,J,$){super(Z.s.namespace,[rX(J,$)],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new R5.MongoServerError(Y));if(Y.writeErrors)return $(new R5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}WM.DeleteManyOperation=tX;WM.makeDeleteStatement=rX;c0.defineAspects(P5,[c0.Aspect.RETRYABLE,c0.Aspect.WRITE_OPERATION]);c0.defineAspects(nX,[c0.Aspect.RETRYABLE,c0.Aspect.WRITE_OPERATION,c0.Aspect.EXPLAINABLE,c0.Aspect.SKIP_COLLATION]);c0.defineAspects(tX,[c0.Aspect.WRITE_OPERATION,c0.Aspect.EXPLAINABLE,c0.Aspect.SKIP_COLLATION])});var JY=z((zM)=>{Object.defineProperty(zM,"__esModule",{value:!0});zM.BulkWriteOperation=void 0;var eX=J1();class ZY extends eX.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.operations=J}executeCallback(Z,J,$){const X=this.collection,Y=this.operations,Q={...this.options,...this.bsonOptions,readPreference:this.readPreference},K=Q.ordered===!1?X.initializeUnorderedBulkOp(Q):X.initializeOrderedBulkOp(Q);try{for(let G=0;G<Y.length;G++)K.raw(Y[G])}catch(G){return $(G)}K.execute({...Q,session:J}).then((G)=>$(void 0,G),(G)=>$(G))}}zM.BulkWriteOperation=ZY;eX.defineAspects(ZY,[eX.Aspect.WRITE_OPERATION])});var $Y=z((UM)=>{var Xx=function(Z,J,$,X){let Y=$,Q=X;if(typeof $==="function")Q=$,Y={};const K=Y.full==null?!1:Y.full;let G;try{G=$x.getTopology(Z)}catch(F){return Q(F)}if(G.isDestroyed())return Q(new Jx.MongoTopologyClosedError);function q(F){const W={};for(let H=0;H<F.length;H++){const V=F[H];W[V.name]=[];for(let j in V.key)W[V.name].push([j,V.key[j]])}return W}Z.collection(J).listIndexes(Y).toArray().then((F)=>{if(!Array.isArray(F))return Q(void 0,[]);if(K)return Q(void 0,F);Q(void 0,q(F))},(F)=>Q(F))},Yx=function(Z,J,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:Z.s.db.options?.forceServerObjectId)===!0)return J;return J.map((Y)=>{if(Y._id==null)Y._id=Z.s.pkFactory.createPk();return Y})};Object.defineProperty(UM,"__esModule",{value:!0});UM.prepareDocs=UM.indexInformation=void 0;var Jx=h(),$x=_();UM.indexInformation=Xx;UM.prepareDocs=Yx});var QY=z((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.InsertManyOperation=AM.InsertOneOperation=AM.InsertOperation=void 0;var zZ=h(),Kx=A0(),Gx=JY(),qx=T1(),jM=$Y(),J6=J1();class VZ extends qx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=Z,this.documents=J}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={insert:this.ns.collection,documents:this.documents,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.comment!==void 0)Q.comment=X.comment;super.executeCommandCallback(Z,J,Q,$)}}AM.InsertOperation=VZ;class XY extends VZ{constructor(Z,J,$){super(Z.s.namespace,jM.prepareDocs(Z,[J],$),$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new zZ.MongoServerError(Y));if(Y.writeErrors)return $(new zZ.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id})})}}AM.InsertOneOperation=XY;class YY extends J6.AbstractCallbackOperation{constructor(Z,J,$){super($);if(!Array.isArray(J))throw new zZ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=Z,this.docs=J}executeCallback(Z,J,$){const X=this.collection,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=Kx.WriteConcern.fromOptions(Y);new Gx.BulkWriteOperation(X,jM.prepareDocs(X,this.docs,Y).map((G)=>({insertOne:{document:G}})),Y).executeCallback(Z,J,(G,q)=>{if(G||q==null){if(G&&G.message==="Operation must be an object with an operation key")G=new zZ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");return $(G)}$(void 0,{acknowledged:Q?.w!==0,insertedCount:q.insertedCount,insertedIds:q.insertedIds})})}}AM.InsertManyOperation=YY;J6.defineAspects(VZ,[J6.Aspect.RETRYABLE,J6.Aspect.WRITE_OPERATION]);J6.defineAspects(XY,[J6.Aspect.RETRYABLE,J6.Aspect.WRITE_OPERATION]);J6.defineAspects(YY,[J6.Aspect.WRITE_OPERATION])});var WY=z((wM)=>{var UZ=function(Z,J,$){if(Z==null||typeof Z!=="object")throw new l0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(J==null||typeof J!=="object")throw new l0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:Z,u:J};if(typeof $.upsert==="boolean")X.upsert=$.upsert;if($.multi)X.multi=$.multi;if($.hint)X.hint=$.hint;if($.arrayFilters)X.arrayFilters=$.arrayFilters;if($.collation)X.collation=$.collation;return X};Object.defineProperty(wM,"__esModule",{value:!0});wM.makeUpdateStatement=wM.ReplaceOneOperation=wM.UpdateManyOperation=wM.UpdateOneOperation=wM.UpdateOperation=void 0;var l0=h(),KY=_(),Hx=T1(),u1=J1();class J7 extends Hx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.multi==null||Z.multi===!1)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={update:this.ns.collection,updates:this.statements,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new l0.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}wM.UpdateOperation=J7;class GY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!1})],X);if(!KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.UpdateOneOperation=GY;class qY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!0})],X);if(!KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.UpdateManyOperation=qY;class FY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!1})],X);if(KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.ReplaceOneOperation=FY;wM.makeUpdateStatement=UZ;u1.defineAspects(J7,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(GY,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.EXPLAINABLE,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(qY,[u1.Aspect.WRITE_OPERATION,u1.Aspect.EXPLAINABLE,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(FY,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.SKIP_COLLATION])});var N5=z((BM)=>{var LZ=function(Z,J,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&J.ok===1){J.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:Z.operations[0]};J.writeErrors.push(new AZ(Q));return}else if(X.ok===0&&J.ok===0)return;if(NM(Z)&&X.n)J.nInserted=J.nInserted+X.n;if(zY(Z)&&X.n)J.nRemoved=J.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)J.upserted.push({index:X.upserted[Q].index+Z.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,J.upserted.push({index:Z.originalZeroIndex,_id:X.upserted});if(HY(Z)&&X.n){const Q=X.nModified;if(J.nUpserted=J.nUpserted+Y,J.nMatched=J.nMatched+(X.n-Y),typeof Q==="number")J.nModified=J.nModified+Q;else J.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:Z.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:Z.operations[X.writeErrors[Q].index]};J.writeErrors.push(new AZ(K))}if(X.writeConcernError)J.writeConcernErrors.push(new E5(X.writeConcernError))},IM=function(Z,J,$){if(Z.s.batches.length===0)return $(void 0,new _6(Z.s.bulkResult,Z.isOrdered));const X=Z.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof k1.MongoWriteConcernError))return $(new $7(K,new _6(Z.s.bulkResult,Z.isOrdered)));if(K instanceof k1.MongoWriteConcernError)return Lx(X,Z.s.bulkResult,Z.isOrdered,K,$);LZ(X,Z.s.bulkResult,K,G);const q=new _6(Z.s.bulkResult,Z.isOrdered);if(Z.handleWriteError($,q))return;IM(Z,J,$)}const Q=k6.resolveOptions(Z,{...J,ordered:Z.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(Z.operationId)Y.operationId=Z.operationId;if(Z.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(Z.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(HY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(zY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(NM(X))jZ.executeOperation(Z.s.collection.client,new jx.InsertOperation(Z.s.namespace,X.operations,Q),Y);else if(HY(X))jZ.executeOperation(Z.s.collection.client,new L4.UpdateOperation(Z.s.namespace,X.operations,Q),Y);else if(zY(X))jZ.executeOperation(Z.s.collection.client,new I5.DeleteOperation(Z.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,LZ(X,Z.s.bulkResult,K,void 0),$()}},Lx=function(Z,J,$,X,Y){LZ(Z,J,void 0,X.result),Y(new $7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new _6(J,$)))},DM=function(Z){if(typeof Z.s.options.forceServerObjectId==="boolean")return Z.s.options.forceServerObjectId;if(typeof Z.s.collection.s.db.options?.forceServerObjectId==="boolean")return Z.s.collection.s.db.options?.forceServerObjectId;return!1},NM=function(Z){return Z.batchType===BM.BatchType.INSERT},HY=function(Z){return Z.batchType===BM.BatchType.UPDATE},zY=function(Z){return Z.batchType===BM.BatchType.DELETE},T5=function(Z){let{currentOp:J}=Z.s;if(Z.s.currentOp=void 0,!J)J={};return J};Object.defineProperty(BM,"__esModule",{value:!0});BM.BulkOperationBase=BM.FindOperators=BM.MongoBulkWriteError=BM.mergeBatchResults=BM.WriteError=BM.WriteConcernError=BM.BulkWriteResult=BM.Batch=BM.BatchType=void 0;var MZ=D1(),k1=h(),I5=oX(),jZ=B0(),jx=QY(),Ax=J1(),L4=WY(),k6=_(),PM=A0(),D5=Symbol("serverError");BM.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class TM{constructor(Z,J){this.originalZeroIndex=J,this.currentIndex=0,this.originalIndexes=[],this.batchType=Z,this.operations=[],this.size=0,this.sizeBytes=0}}BM.Batch=TM;class _6{static generateIdMap(Z){const J={};for(let $ of Z)J[$.index]=$._id;return J}constructor(Z,J){this.result=Z,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=_6.generateIdMap(this.result.upserted),this.insertedIds=_6.generateIdMap(this.getSuccessfullyInsertedIds(Z,J)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}getSuccessfullyInsertedIds(Z,J){if(Z.writeErrors.length===0)return Z.insertedIds;if(J)return Z.insertedIds.slice(0,Z.writeErrors[0].index);return Z.insertedIds.filter(({index:$})=>!Z.writeErrors.some((X)=>$===X.index))}get ok(){return this.result.ok}get nInserted(){return this.result.nInserted}get nUpserted(){return this.result.nUpserted}get nMatched(){return this.result.nMatched}get nModified(){return this.result.nModified}get nRemoved(){return this.result.nRemoved}getInsertedIds(){return this.result.insertedIds}getUpsertedIds(){return this.result.upserted}getUpsertedIdAt(Z){return this.result.upserted[Z]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(Z){return Z<this.result.writeErrors.length?this.result.writeErrors[Z]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length===0)return;else if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];else{let Z="";for(let J=0;J<this.result.writeConcernErrors.length;J++){const $=this.result.writeConcernErrors[J];if(Z=Z+$.errmsg,J===0)Z=Z+" and "}return new E5({errmsg:Z,code:k1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}BM.BulkWriteResult=_6;class E5{constructor(Z){this[D5]=Z}get code(){return this[D5].code}get errmsg(){return this[D5].errmsg}get errInfo(){return this[D5].errInfo}toJSON(){return this[D5]}toString(){return`WriteConcernError(${this.errmsg})`}}BM.WriteConcernError=E5;class AZ{constructor(Z){this.err=Z}get code(){return this.err.code}get index(){return this.err.index}get errmsg(){return this.err.errmsg}get errInfo(){return this.err.errInfo}getOperation(){return this.err.op}toJSON(){return{code:this.err.code,index:this.err.index,errmsg:this.err.errmsg,op:this.err.op}}toString(){return`WriteError(${JSON.stringify(this.toJSON())})`}}BM.WriteError=AZ;BM.mergeBatchResults=LZ;class $7 extends k1.MongoServerError{constructor(Z,J){super(Z);if(this.writeErrors=[],Z instanceof E5)this.err=Z;else if(!(Z instanceof Error))this.message=Z.message,this.code=Z.code,this.writeErrors=Z.writeErrors??[];this.result=J,Object.assign(this,Z)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}BM.MongoBulkWriteError=$7;class VY{constructor(Z){this.bulkOperation=Z}update(Z){const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!0}))}updateOne(Z){if(!k6.hasAtomicOperators(Z))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}replaceOne(Z){if(k6.hasAtomicOperators(Z))throw new k1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}deleteOne(){const Z=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.selector,{...Z,limit:1}))}delete(){const Z=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.selector,{...Z,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=Z,this}arrayFilters(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=Z,this}hint(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=Z,this}}BM.FindOperators=VY;class EM extends Ax.AbstractCallbackOperation{constructor(Z,J){super(J);this.bulkOperation=Z}executeCallback(Z,J,$){if(this.options.session==null)this.options.session=J;return IM(this.bulkOperation,this.options,$)}}class UY{constructor(Z,J,$){this.isOrdered=$;const X=k6.getTopology(Z);J=J==null?{}:J;const Y=Z.s.namespace,Q=!1,K=void 0,G=X.lastHello(),q=!!(X.s.options&&X.s.options.autoEncrypter),F=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,W=q?2097152:F,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,V=(H-1).toString(10).length+2;let j=Object.assign({},J);j=k6.applyRetryableWrites(j,Z.s.db);const U={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:U,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:PM.WriteConcern.fromOptions(J),maxBsonObjectSize:F,maxBatchSizeBytes:W,maxWriteBatchSize:H,maxKeySize:V,namespace:Y,topology:X,options:j,bsonOptions:MZ.resolveBSONOptions(J),currentOp:K,executed:Q,collection:Z,err:void 0,checkKeys:typeof J.checkKeys==="boolean"?J.checkKeys:!1},J.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(Z){if(Z._id==null&&!DM(this))Z._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z)}find(Z){if(!Z)throw new k1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:Z},new VY(this)}raw(Z){if(Z==null||typeof Z!=="object")throw new k1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in Z){const J=DM(this);if(Z.insertOne&&Z.insertOne.document==null){if(J!==!0&&Z.insertOne._id==null)Z.insertOne._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z.insertOne)}if(J!==!0&&Z.insertOne.document._id==null)Z.insertOne.document._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z.insertOne.document)}if("replaceOne"in Z||"updateOne"in Z||"updateMany"in Z){if("replaceOne"in Z){if("q"in Z.replaceOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.replaceOne.filter,Z.replaceOne.replacement,{...Z.replaceOne,multi:!1});if(k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}if("updateOne"in Z){if("q"in Z.updateOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.updateOne.filter,Z.updateOne.update,{...Z.updateOne,multi:!1});if(!k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}if("updateMany"in Z){if("q"in Z.updateMany)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.updateMany.filter,Z.updateMany.update,{...Z.updateMany,multi:!0});if(!k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}}if("deleteOne"in Z){if("q"in Z.deleteOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.deleteOne.filter,{...Z.deleteOne,limit:1}))}if("deleteMany"in Z){if("q"in Z.deleteMany)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.deleteMany.filter,{...Z.deleteMany,limit:0}))}throw new k1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const Z=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)Z.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)Z.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)Z.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)Z.push(this.s.currentRemoveBatch)}return Z}async execute(Z={}){if(this.s.executed)throw new k1.MongoBatchReExecutionError;const J=PM.WriteConcern.fromOptions(Z);if(J)this.s.writeConcern=J;if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0)throw new k1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...Z},X=new EM(this,$);return jZ.executeOperation(this.s.collection.client,X)}handleWriteError(Z,J){if(this.s.bulkResult.writeErrors.length>0){const X=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return Z(new $7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},J)),!0}const $=J.getWriteConcernError();if($)return Z(new $7($,J)),!0;return!1}}BM.BulkOperationBase=UY;Object.defineProperty(UY.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var MY=z((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM.OrderedBulkOperation=void 0;var Nx=D1(),hM=h(),wZ=N5();class OM extends wZ.BulkOperationBase{constructor(Z,J){super(Z,J,!0)}addToOperationsList(Z,J){const $=Nx.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new hM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new wZ.Batch(Z,this.s.currentIndex);const X=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new wZ.Batch(Z,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(Z===wZ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:J._id});if(Array.isArray(J))throw new hM.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(J),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}SM.OrderedBulkOperation=OM});var jY=z((xM)=>{Object.defineProperty(xM,"__esModule",{value:!0});xM.UnorderedBulkOperation=void 0;var Bx=D1(),kM=h(),$6=N5();class _M extends $6.BulkOperationBase{constructor(Z,J){super(Z,J,!1)}handleWriteError(Z,J){if(this.s.batches.length)return!1;return super.handleWriteError(Z,J)}addToOperationsList(Z,J){const $=Bx.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new kM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,Z===$6.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(Z===$6.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(Z===$6.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new $6.Batch(Z,this.s.currentIndex);if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new $6.Batch(Z,this.s.currentIndex);if(Array.isArray(J))throw new kM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(J),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,Z===$6.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:J._id});else if(Z===$6.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(Z===$6.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}xM.UnorderedBulkOperation=_M});var RZ=z((gM)=>{Object.defineProperty(gM,"__esModule",{value:!0});gM.AggregateOperation=gM.DB_AGGREGATE_COLLECTION=void 0;var fM=h(),Cx=_(),hx=A0(),Ox=T1(),B5=J1();gM.DB_AGGREGATE_COLLECTION=1;var Sx=8;class AY extends Ox.CommandCallbackOperation{constructor(Z,J,$){super(void 0,{...$,dbName:Z.db});if(this.options={...$},this.target=Z.collection||gM.DB_AGGREGATE_COLLECTION,this.pipeline=J,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(J.length>0){const X=J[J.length-1];if(X.$out||X.$merge)this.hasWriteStage=!0}if(this.hasWriteStage)this.trySecondaryWrite=!0;else delete this.options.writeConcern;if(this.explain&&this.writeConcern)throw new fM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new fM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(Z){this.pipeline.push(Z)}executeCallback(Z,J,$){const X=this.options,Y=Cx.maxWireVersion(Z),Q={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&Y<Sx)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)hx.WriteConcern.apply(Q,this.writeConcern);if(X.bypassDocumentValidation===!0)Q.bypassDocumentValidation=X.bypassDocumentValidation;if(typeof X.allowDiskUse==="boolean")Q.allowDiskUse=X.allowDiskUse;if(X.hint)Q.hint=X.hint;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(Q.cursor=X.cursor||{},X.batchSize&&!this.hasWriteStage)Q.cursor.batchSize=X.batchSize;super.executeCommandCallback(Z,J,Q,$)}}gM.AggregateOperation=AY;B5.defineAspects(AY,[B5.Aspect.READ_OPERATION,B5.Aspect.RETRYABLE,B5.Aspect.EXPLAINABLE,B5.Aspect.CURSOR_CREATING])});var C0=z((dM)=>{Object.defineProperty(dM,"__esModule",{value:!0});dM.CancellationToken=dM.TypedEventEmitter=void 0;var yx=import.meta.require("events");class LY extends yx.EventEmitter{emitAndLog(Z,...J){if(this.emit(Z,...J),this.component)this.mongoLogger?.debug(this.component,J[0])}}dM.TypedEventEmitter=LY;class uM extends LY{}dM.CancellationToken=uM});var PY=z((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.GetMoreOperation=void 0;var wY=h(),_x=_(),PZ=J1();class RY extends PZ.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.options=X,this.ns=Z,this.cursorId=J,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new wY.MongoRuntimeError("Getmore must run on the same server operation began on"));if(this.cursorId==null||this.cursorId.isZero())return $(new wY.MongoRuntimeError("Unable to iterate cursor with no id"));const X=this.ns.collection;if(X==null)return $(new wY.MongoRuntimeError("A collection name must be determined before getMore"));const Y={getMore:this.cursorId,collection:X};if(typeof this.options.batchSize==="number")Y.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")Y.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&_x.maxWireVersion(Z)>=9)Y.comment=this.options.comment;const Q={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};Z.command(this.ns,Y,Q,$)}}cM.GetMoreOperation=RY;PZ.defineAspects(RY,[PZ.Aspect.READ_OPERATION,PZ.Aspect.MUST_SELECT_SAME_SERVER])});var nM=z((iM)=>{Object.defineProperty(iM,"__esModule",{value:!0});iM.KillCursorsOperation=void 0;var aM=h(),DY=J1();class TY extends DY.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.ns=J,this.cursorId=Z,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new aM.MongoRuntimeError("Killcursor must run on the same server operation began on"));const X=this.ns.collection;if(X==null)return $(new aM.MongoRuntimeError("A collection name must be determined before killCursors"));const Y={killCursors:X,cursors:[this.cursorId]};Z.command(this.ns,Y,{session:J},()=>$())}}iM.KillCursorsOperation=TY;DY.defineAspects(TY,[DY.Aspect.MUST_SELECT_SAME_SERVER])});var IY=z((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.ConnectionPoolMetrics=void 0;class X6{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(Z){if(Z===X6.TXN)this.txnConnections+=1;else if(Z===X6.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(Z){if(Z===X6.TXN)this.txnConnections-=1;else if(Z===X6.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(Z){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${Z}, `+`connections in use by cursors: ${this.cursorConnections}, `+`connections in use by transactions: ${this.txnConnections}, `+`connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}}X6.TXN="txn";X6.CURSOR="cursor";X6.OTHER="other";tM.ConnectionPoolMetrics=X6});var C5=z((Jj)=>{var eM=function(Z,J){if(J?.loadBalanced)return C1.ServerType.LoadBalancer;if(!Z||!Z.ok)return C1.ServerType.Unknown;if(Z.isreplicaset)return C1.ServerType.RSGhost;if(Z.msg&&Z.msg==="isdbgrid")return C1.ServerType.Mongos;if(Z.setName)if(Z.hidden)return C1.ServerType.RSOther;else if(Z.isWritablePrimary)return C1.ServerType.RSPrimary;else if(Z.secondary)return C1.ServerType.RSSecondary;else if(Z.arbiterOnly)return C1.ServerType.RSArbiter;else return C1.ServerType.RSOther;return C1.ServerType.Standalone},gx=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);return $.length===X.length&&$.every((Y)=>J[Y]===Z[Y])},Zj=function(Z,J){if(Z==null||J==null)return-1;if(!Z.processId.equals(J.processId))return-1;const $=DZ.Long.isLong(Z.counter)?Z.counter:DZ.Long.fromNumber(Z.counter),X=DZ.Long.isLong(J.counter)?J.counter:DZ.Long.fromNumber(J.counter);return $.compare(X)};Object.defineProperty(Jj,"__esModule",{value:!0});Jj.compareTopologyVersion=Jj.parseServerType=Jj.ServerDescription=void 0;var DZ=D1(),xx=h(),X7=_(),C1=p0(),vx=new Set([C1.ServerType.RSPrimary,C1.ServerType.Standalone,C1.ServerType.Mongos,C1.ServerType.LoadBalancer]),fx=new Set([C1.ServerType.RSPrimary,C1.ServerType.RSSecondary,C1.ServerType.Mongos,C1.ServerType.Standalone,C1.ServerType.LoadBalancer]);class oM{constructor(Z,J,$={}){if(Z==null||Z==="")throw new xx.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof Z==="string"?X7.HostAddress.fromString(Z).toString():Z.toString(),this.type=eM(J,$),this.hosts=J?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=J?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=J?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=J?.tags??{},this.minWireVersion=J?.minWireVersion??0,this.maxWireVersion=J?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=X7.now(),this.lastWriteDate=J?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??J?.topologyVersion??null,this.setName=J?.setName??null,this.setVersion=J?.setVersion??null,this.electionId=J?.electionId??null,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes??null,this.primary=J?.primary??null,this.me=J?.me?.toLowerCase()??null,this.$clusterTime=J?.$clusterTime??null}get hostAddress(){return X7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===C1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return fx.has(this.type)}get isWritable(){return vx.has(this.type)}get host(){const Z=`:${this.port}`.length;return this.address.slice(0,-Z)}get port(){const Z=this.address.split(":").pop();return Z?Number.parseInt(Z,10):27017}equals(Z){const J=this.topologyVersion===Z?.topologyVersion||Zj(this.topologyVersion,Z?.topologyVersion)===0,$=this.electionId!=null&&Z?.electionId!=null?X7.compareObjectId(this.electionId,Z.electionId)===0:this.electionId===Z?.electionId;return Z!=null&&X7.errorStrictEqual(this.error,Z.error)&&this.type===Z.type&&this.minWireVersion===Z.minWireVersion&&X7.arrayStrictEqual(this.hosts,Z.hosts)&&gx(this.tags,Z.tags)&&this.setName===Z.setName&&this.setVersion===Z.setVersion&&$&&this.primary===Z.primary&&this.logicalSessionTimeoutMinutes===Z.logicalSessionTimeoutMinutes&&J}}Jj.ServerDescription=oM;Jj.parseServerType=eM;Jj.compareTopologyVersion=Zj});var NY=z((qj)=>{var lx=function(Z){switch(Z){case i.ServerType.Standalone:return i.TopologyType.Single;case i.ServerType.Mongos:return i.TopologyType.Sharded;case i.ServerType.RSPrimary:return i.TopologyType.ReplicaSetWithPrimary;case i.ServerType.RSOther:case i.ServerType.RSSecondary:return i.TopologyType.ReplicaSetNoPrimary;default:return i.TopologyType.Unknown}},Gj=function(Z,J,$=null,X=null,Y=null){if($=$||J.setName,$!==J.setName)return Z.delete(J.address),[w4(Z),$,X,Y];if(J.maxWireVersion>=17){const G=EY.compareObjectId(Y,J.electionId),q=G===0,F=G===-1,W=(X??-1)<=(J.setVersion??-1);if(F||q&&W)Y=J.electionId,X=J.setVersion;else return Z.set(J.address,new x6.ServerDescription(J.address)),[w4(Z),$,X,Y]}else{const G=J.electionId?J.electionId:null;if(J.setVersion&&G){if(X&&Y){if(X>J.setVersion||EY.compareObjectId(Y,G)>0)return Z.set(J.address,new x6.ServerDescription(J.address)),[w4(Z),$,X,Y]}Y=J.electionId}if(J.setVersion!=null&&(X==null||J.setVersion>X))X=J.setVersion}for(let[G,q]of Z)if(q.type===i.ServerType.RSPrimary&&q.address!==J.address){Z.set(G,new x6.ServerDescription(q.address));break}J.allHosts.forEach((G)=>{if(!Z.has(G))Z.set(G,new x6.ServerDescription(G))});const Q=Array.from(Z.keys()),K=J.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{Z.delete(G)}),[w4(Z),$,X,Y]},ax=function(Z,J,$=null){if($==null)throw new ux.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==J.setName||J.me&&J.address!==J.me)Z.delete(J.address);return w4(Z)},ix=function(Z,J,$=null){const X=i.TopologyType.ReplicaSetNoPrimary;if($=$??J.setName,$!==J.setName)return Z.delete(J.address),[X,$];if(J.allHosts.forEach((Y)=>{if(!Z.has(Y))Z.set(Y,new x6.ServerDescription(Y))}),J.me&&J.address!==J.me)Z.delete(J.address);return[X,$]},w4=function(Z){for(let J of Z.values())if(J.type===i.ServerType.RSPrimary)return i.TopologyType.ReplicaSetWithPrimary;return i.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(qj,"__esModule",{value:!0});qj.TopologyDescription=void 0;var TZ=j4(),ux=h(),EY=_(),i=p0(),x6=C5(),dx=TZ.MIN_SUPPORTED_SERVER_VERSION,px=TZ.MAX_SUPPORTED_SERVER_VERSION,Xj=TZ.MIN_SUPPORTED_WIRE_VERSION,Yj=TZ.MAX_SUPPORTED_WIRE_VERSION,cx=new Set([i.ServerType.Mongos,i.ServerType.Unknown]),Qj=new Set([i.ServerType.Mongos,i.ServerType.Standalone]),Kj=new Set([i.ServerType.RSSecondary,i.ServerType.RSArbiter,i.ServerType.RSOther]);class h5{constructor(Z,J=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=Z??i.TopologyType.Unknown,this.servers=J??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=K.heartbeatFrequencyMS??0,this.localThresholdMS=K.localThresholdMS??15,this.setName=$??null,this.maxElectionId=Y??null,this.maxSetVersion=X??null,this.commonWireVersion=Q??0;for(let G of this.servers.values()){if(G.type===i.ServerType.Unknown||G.type===i.ServerType.LoadBalancer)continue;if(G.minWireVersion>Yj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${Yj} (MongoDB ${px})`;if(G.maxWireVersion<Xj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${Xj} (MongoDB ${dx}).`;break}}this.logicalSessionTimeoutMinutes=null;for(let[,G]of this.servers)if(G.isReadable){if(G.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=G.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,G.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(Z,J=0){const $=Z.hostnames(),X=new Set(this.servers.keys()),Y=new Set($),Q=new Set;for(let G of X)if(Y.delete(G),!$.has(G))Q.add(G);if(Y.size===0&&Q.size===0)return this;const K=new Map(this.servers);for(let G of Q)K.delete(G);if(Y.size>0){if(J===0)for(let G of Y)K.set(G,new x6.ServerDescription(G));else if(K.size<J){const G=EY.shuffle(Y,J-K.size);for(let q of G)K.set(q,new x6.ServerDescription(q))}}return new h5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(Z){const J=Z.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=Z.type,q=new Map(this.servers);if(Z.maxWireVersion!==0)if(K==null)K=Z.maxWireVersion;else K=Math.min(K,Z.maxWireVersion);if(typeof Z.setName==="string"&&typeof X==="string"&&Z.setName!==X)if($===i.TopologyType.Single)Z=new x6.ServerDescription(J);else q.delete(J);if(q.set(J,Z),$===i.TopologyType.Single)return new h5(i.TopologyType.Single,q,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===i.TopologyType.Unknown)if(G===i.ServerType.Standalone&&this.servers.size!==1)q.delete(J);else $=lx(G);if($===i.TopologyType.Sharded){if(!cx.has(G))q.delete(J)}if($===i.TopologyType.ReplicaSetNoPrimary){if(Qj.has(G))q.delete(J);if(G===i.ServerType.RSPrimary){const F=Gj(q,Z,X,Y,Q);$=F[0],X=F[1],Y=F[2],Q=F[3]}else if(Kj.has(G)){const F=ix(q,Z,X);$=F[0],X=F[1]}}if($===i.TopologyType.ReplicaSetWithPrimary)if(Qj.has(G))q.delete(J),$=w4(q);else if(G===i.ServerType.RSPrimary){const F=Gj(q,Z,X,Y,Q);$=F[0],X=F[1],Y=F[2],Q=F[3]}else if(Kj.has(G))$=ax(q,Z,X);else $=w4(q);return new h5($,q,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const Z=Array.from(this.servers.values()).filter((J)=>J.error);if(Z.length>0)return Z[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((Z)=>Z.type!==i.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((Z)=>Z.isDataBearing)}hasServer(Z){return this.servers.has(Z)}}qj.TopologyDescription=h5});var CY=z((Hj)=>{var tx=function(Z){let J=Z?.readPreference??BY.ReadPreference.primary;if(Z?.readPreference)J=Z.readPreference;if(typeof J==="string")J=BY.ReadPreference.fromString(J);if(!(J instanceof BY.ReadPreference))throw new sx.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return J},rx=function(Z){if(Z==null)return!1;if(Z.description&&Z.description.type===Wj.ServerType.Mongos)return!0;if(Z.description&&Z.description instanceof nx.TopologyDescription)return Array.from(Z.description.servers.values()).some(($)=>$.type===Wj.ServerType.Mongos);return!1};Object.defineProperty(Hj,"__esModule",{value:!0});Hj.isSharded=Hj.getReadPreference=void 0;var sx=h(),BY=y1(),Wj=p0(),nx=NY();Hj.getReadPreference=tx;Hj.isSharded=rx});var hY=z((Mj)=>{var Qv=function(Z){return!!(Z.commitTransaction||Z.abortTransaction)};Object.defineProperty(Mj,"__esModule",{value:!0});Mj.isTransactionCommand=Mj.Transaction=Mj.TxnState=void 0;var Vj=h(),ex=d0(),Zv=y1(),Jv=A0();Mj.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});var $v={[Mj.TxnState.NO_TRANSACTION]:[Mj.TxnState.NO_TRANSACTION,Mj.TxnState.STARTING_TRANSACTION],[Mj.TxnState.STARTING_TRANSACTION]:[Mj.TxnState.TRANSACTION_IN_PROGRESS,Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.TRANSACTION_ABORTED],[Mj.TxnState.TRANSACTION_IN_PROGRESS]:[Mj.TxnState.TRANSACTION_IN_PROGRESS,Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_ABORTED],[Mj.TxnState.TRANSACTION_COMMITTED]:[Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.NO_TRANSACTION],[Mj.TxnState.TRANSACTION_ABORTED]:[Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.NO_TRANSACTION],[Mj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.NO_TRANSACTION]},Xv=new Set([Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.TRANSACTION_IN_PROGRESS]),Yv=new Set([Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.TRANSACTION_ABORTED]);class Uj{constructor(Z){Z=Z??{},this.state=Mj.TxnState.NO_TRANSACTION,this.options={};const J=Jv.WriteConcern.fromOptions(Z);if(J){if(J.w===0)throw new Vj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=J}if(Z.readConcern)this.options.readConcern=ex.ReadConcern.fromOptions(Z);if(Z.readPreference)this.options.readPreference=Zv.ReadPreference.fromOptions(Z);if(Z.maxCommitTimeMS)this.options.maxTimeMS=Z.maxCommitTimeMS;this._pinnedServer=void 0,this._recoveryToken=void 0}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===Mj.TxnState.STARTING_TRANSACTION}get isActive(){return Xv.has(this.state)}get isCommitted(){return Yv.has(this.state)}transition(Z){const J=$v[this.state];if(J&&J.includes(Z)){if(this.state=Z,this.state===Mj.TxnState.NO_TRANSACTION||this.state===Mj.TxnState.STARTING_TRANSACTION||this.state===Mj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new Vj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${Z}]`)}pinServer(Z){if(this.isActive)this._pinnedServer=Z}unpinServer(){this._pinnedServer=void 0}}Mj.Transaction=Uj;Mj.isTransactionCommand=Qv});var S5=z((Nj)=>{var Ij=function(Z,J){return F8.calculateDurationInMs(Z)<J},Uv=function(Z){const J=Z instanceof b.MongoServerError&&Z.codeName&&Vv.has(Z.codeName);return hZ(Z)||!J&&Z.code!==b.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&Z.code!==b.MONGODB_ERROR_CODES.UnknownReplWriteConcern},CZ=function(Z,J){const $=Z[Q7],X=J?.error;if(Z.inTransaction()&&X&&X instanceof b.MongoError&&X.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return;const Y=Z.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(J?.error==null||J?.force){if(K.pool.checkIn($),$.emit(Dj.UNPINNED,Z.transaction.state!==j1.TxnState.NO_TRANSACTION?EZ.ConnectionPoolMetrics.TXN:EZ.ConnectionPoolMetrics.CURSOR),J?.forceClear)K.pool.clear({serviceId:$.serviceId})}Z[Q7]=void 0}},hZ=function(Z){if(Z==null||!(Z instanceof b.MongoServerError))return!1;return Z.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired||Z.writeConcernError&&Z.writeConcernError.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired},Ej=function(Z,J,$,X){return Z.commitTransaction().catch((Y)=>{if(Y instanceof b.MongoError&&Ij(J,Tj)&&!hZ(Y)){if(Y.hasErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult))return Ej(Z,J,$,X);if(Y.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return yY(Z,J,$,X)}throw Y})},jv=function(Z){return Mv.has(Z.transaction.state)},yY=function(Z,J,$,X){Z.startTransaction(X);let Y;try{Y=$(Z)}catch(Q){Y=Promise.reject(Q)}if(!F8.isPromiseLike(Y))throw Z.abortTransaction().catch(()=>null),new b.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return Y.then(()=>{if(jv(Z))return;return Ej(Z,J,$,X)},(Q)=>{function K(G){if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError)&&Ij(J,Tj))return yY(Z,J,$,X);if(hZ(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(Z.inTransaction())return Z.abortTransaction().then(()=>K(Q));return K(Q)})},Av=function(Z,J,$){const X=Z.transaction.state;if(X===j1.TxnState.NO_TRANSACTION){$(new b.MongoTransactionError("No transaction started"));return}if(J==="commitTransaction"){if(X===j1.TxnState.STARTING_TRANSACTION||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===j1.TxnState.TRANSACTION_COMMITTED||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new b.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[J]:1};let Q;if(Z.transaction.options.writeConcern)Q=Object.assign({},Z.transaction.options.writeConcern);else if(Z.clientOptions&&Z.clientOptions.writeConcern)Q={w:Z.clientOptions.writeConcern.w};if(X===j1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)Hv.WriteConcern.apply(Y,Q);if(J==="commitTransaction"&&Z.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:Z.transaction.options.maxTimeMS});function K(G,q){if(J!=="commitTransaction"){if(Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),Z.loadBalanced)CZ(Z,{force:!1});return $()}if(Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED),G instanceof b.MongoError){if(G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)||G instanceof b.MongoWriteConcernError||hZ(G)){if(Uv(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult),Z.unpin({error:G})}else if(G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))Z.unpin({error:G})}$(G,q)}if(Z.transaction.recoveryToken)Y.recoveryToken=Z.transaction.recoveryToken;Aj.executeOperation(Z.client,new Lj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:wj.ReadPreference.primary,bypassPinningCheck:!0}),(G,q)=>{if(Y.abortTransaction)Z.unpin();if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)){if(Y.commitTransaction)Z.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Aj.executeOperation(Z.client,new Lj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:wj.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G,q)})},Lv=function(Z,J,$){if(Z.hasEnded)return new b.MongoExpiredSessionError;const X=Z.serverSession;if(X==null)return new b.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(Z&&Z.explicit)return new b.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=F8.now(),J.lsid=X.id;const Y=Z.inTransaction()||j1.isTransactionCommand(J);if(!!$.willRetryWrite||Y)X.txnNumber+=Z[BZ],Z[BZ]=0,J.txnNumber=IZ.Long.fromNumber(X.txnNumber);if(!Y){if(Z.transaction.state!==j1.TxnState.NO_TRANSACTION)Z.transaction.transition(j1.TxnState.NO_TRANSACTION);if(Z.supports.causalConsistency&&Z.operationTime&&F8.commandSupportsReadConcern(J,$))J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime});else if(Z[K7]){if(J.readConcern=J.readConcern||{level:Wv.ReadConcernLevel.snapshot},Z[NZ]!=null)Object.assign(J.readConcern,{atClusterTime:Z[NZ]})}return}if(J.autocommit=!1,Z.transaction.state===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_IN_PROGRESS),J.startTransaction=!0;const K=Z.transaction.options.readConcern||Z?.clientOptions?.readConcern;if(K)J.readConcern=K;if(Z.supports.causalConsistency&&Z.operationTime)J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime})}return},wv=function(Z,J){if(J.$clusterTime)OY._advanceClusterTime(Z,J.$clusterTime);if(J.operationTime&&Z&&Z.supports.causalConsistency)Z.advanceOperationTime(J.operationTime);if(J.recoveryToken&&Z&&Z.inTransaction())Z.transaction._recoveryToken=J.recoveryToken;if(Z?.[K7]&&Z[NZ]==null){const $=J.cursor?.atClusterTime||J.atClusterTime;if($)Z[NZ]=$}},Pj;Object.defineProperty(Nj,"__esModule",{value:!0});Nj.updateSessionFromResponse=Nj.applySession=Nj.ServerSessionPool=Nj.ServerSession=Nj.maybeClearPinnedConnection=Nj.ClientSession=void 0;var Gv=import.meta.require("util"),IZ=D1(),EZ=IY(),qv=CY(),Dj=f1(),b=h(),Fv=C0(),Aj=B0(),Lj=Z7(),Wv=d0(),wj=y1(),OY=p0(),j1=hY(),F8=_(),Hv=A0(),zv=8,Y7=Symbol("serverSession"),NZ=Symbol("snapshotTime"),K7=Symbol("snapshotEnabled"),Q7=Symbol("pinnedConnection"),BZ=Symbol("txnNumberIncrement");class SY extends Fv.TypedEventEmitter{constructor(Z,J,$,X){super();if(this[Pj]=!1,Z==null)throw new b.MongoRuntimeError("ClientSession requires a MongoClient");if(J==null||!(J instanceof kY))throw new b.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[K7]=!0,$.causalConsistency===!0)throw new b.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=Z,this.sessionPool=J,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[Y7]=this.explicit?this.sessionPool.acquire():null,this[BZ]=0;const Y=this.explicit&&$.snapshot!==!0;this.supports={causalConsistency:$.causalConsistency??Y},this.clusterTime=$.initialClusterTime,this.operationTime=void 0,this.owner=$.owner,this.defaultTransactionOptions=Object.assign({},$.defaultTransactionOptions),this.transaction=new j1.Transaction}get id(){return this[Y7]?.id}get serverSession(){let Z=this[Y7];if(Z==null){if(this.explicit)throw new b.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new b.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");Z=this.sessionPool.acquire(),this[Y7]=Z}return Z}get snapshotEnabled(){return this[K7]}get loadBalanced(){return this.client.topology?.description.type===OY.TopologyType.LoadBalanced}get pinnedConnection(){return this[Q7]}pin(Z){if(this[Q7])throw TypeError("Cannot pin multiple connections to the same session");this[Q7]=Z,Z.emit(Dj.PINNED,this.inTransaction()?EZ.ConnectionPoolMetrics.TXN:EZ.ConnectionPoolMetrics.CURSOR)}unpin(Z){if(this.loadBalanced)return CZ(this,Z);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[Q7]:this.transaction.isPinned}async endSession(Z){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const J=this[Y7];if(J!=null)this.sessionPool.release(J),Object.defineProperty(this,Y7,{value:O5.clone(J),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{CZ(this,{force:!0,...Z})}}advanceOperationTime(Z){if(this.operationTime==null){this.operationTime=Z;return}if(Z.greaterThan(this.operationTime))this.operationTime=Z}advanceClusterTime(Z){if(!Z||typeof Z!=="object")throw new b.MongoInvalidArgumentError("input cluster time must be an object");if(!Z.clusterTime||Z.clusterTime._bsontype!=="Timestamp")throw new b.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!Z.signature||Z.signature.hash?._bsontype!=="Binary"||typeof Z.signature.keyId!=="bigint"&&typeof Z.signature.keyId!=="number"&&Z.signature.keyId?._bsontype!=="Long")throw new b.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');OY._advanceClusterTime(this,Z)}equals(Z){if(!(Z instanceof SY))return!1;if(this.id==null||Z.id==null)return!1;return F8.ByteUtils.equals(this.id.id.buffer,Z.id.id.buffer)}incrementTransactionNumber(){this[BZ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(Z){if(this[K7])throw new b.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new b.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const J=F8.maxWireVersion(this.client.topology);if(qv.isSharded(this.client.topology)&&J!=null&&J<zv)throw new b.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new j1.Transaction({readConcern:Z?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:Z?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:Z?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:Z?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(j1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Rj(this,"commitTransaction")}async abortTransaction(){return Rj(this,"abortTransaction")}toBSON(){throw new b.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(Z,J){const $=F8.now();return yY(this,$,Z,J)}}Nj.ClientSession=SY;Pj=K7;var Tj=120000,Vv=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);Nj.maybeClearPinnedConnection=CZ;var Mv=new Set([j1.TxnState.NO_TRANSACTION,j1.TxnState.TRANSACTION_COMMITTED,j1.TxnState.TRANSACTION_ABORTED]),Rj=Gv.promisify(Av);class O5{constructor(){this.id={id:new IZ.Binary(F8.uuidV4(),IZ.Binary.SUBTYPE_UUID)},this.lastUse=F8.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(Z){return Math.round(F8.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>Z-1}static clone(Z){const J=new ArrayBuffer(16),$=Buffer.from(J);$.set(Z.id.id.buffer);const X=new IZ.Binary($,Z.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:Z.lastUse,txnNumber:Z.txnNumber,isDirty:Z.isDirty},O5.prototype)}}Nj.ServerSession=O5;class kY{constructor(Z){if(Z==null)throw new b.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=Z,this.sessions=new F8.List}acquire(){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;let J=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(Z))){J=$;break}}if(J==null)J=new O5;return J}release(Z){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!J)this.sessions.unshift(Z);if(!J)return;if(this.sessions.prune(($)=>$.hasTimedOut(J)),!Z.hasTimedOut(J)){if(Z.isDirty)return;this.sessions.unshift(Z)}}}Nj.ServerSessionPool=kY;Nj.applySession=Lv;Nj.updateSessionFromResponse=wv});var Q6=z((kj)=>{async function yZ(Z,{blocking:J,transform:$}){if(Z.closed)return null;do{if(Z[$0]==null)await _Y.promisify(Z[yj].bind(Z))();if(Z[X0].length!==0){const Y=Z[X0].shift();if(Y!=null&&$&&Z[x5])try{return Z[x5](Y)}catch(Q){throw await q7(Z,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(Z.isDead)return await q7(Z,{}),null;const X=Z[g1].batchSize||1000;try{const Y=await _Y.promisify(Z._getMore.bind(Z))(X);if(Y){const Q=typeof Y.cursor.id==="number"?W8.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?W8.Long.fromBigInt(Y.cursor.id):Y.cursor.id;Z[X0].pushMany(Y.cursor.nextBatch),Z[$0]=Q}}catch(Y){throw await q7(Z,{error:Y}).catch(()=>null),Y}if(Z.isDead)await q7(Z,{});if(Z[X0].length===0&&J===!1)return null}while(!Z.isDead||Z[X0].length!==0);return null}var vY=function(Z,J,$){const X=Z[$0],Y=Z[y5],Q=Z[SZ],K=Z[Y6],G=J?.error,q=J?.needsToEmitClosed??Z[X0].length===0;if(G){if(Z.loadBalanced&&G instanceof h0.MongoNetworkError)return F()}if(X==null||Q==null||X.isZero()||Y==null){if(q)Z[R4]=!0,Z[$0]=W8.Long.ZERO,Z.emit(F7.CLOSE);if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{$()});return}if(!K.inTransaction())xY.maybeClearPinnedConnection(K,{error:G})}return $()}function F(){if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{Z.emit(F7.CLOSE),$()});return}if(!K.inTransaction())xY.maybeClearPinnedConnection(K,{error:G})}return Z.emit(F7.CLOSE),$()}if(Z[_5]=!0,K.hasEnded)return F();Sj.executeOperation(Z[G7],new Bv.KillCursorsOperation(X,Y,Q,{session:K})).catch(()=>null).finally(F)},P4=function(Z){if(Z[k5])throw new h0.MongoCursorInUseError};Object.defineProperty(kj,"__esModule",{value:!0});kj.assertUninitialized=kj.AbstractCursor=kj.CURSOR_FLAGS=void 0;var Oj=import.meta.require("stream"),_Y=import.meta.require("util"),W8=D1(),h0=h(),Ev=C0(),Sj=B0(),Nv=PY(),Bv=nM(),Cj=d0(),OZ=y1(),xY=S5(),hj=_(),$0=Symbol("id"),X0=Symbol("documents"),SZ=Symbol("server"),y5=Symbol("namespace"),G7=Symbol("client"),Y6=Symbol("session"),g1=Symbol("options"),x5=Symbol("transform"),k5=Symbol("initialized"),R4=Symbol("closed"),_5=Symbol("killed"),yj=Symbol("kInit");kj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class F7 extends Ev.TypedEventEmitter{constructor(Z,J,$={}){super();if(!Z.s.isMongoClient)throw new h0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[G7]=Z,this[y5]=J,this[$0]=null,this[X0]=new hj.List,this[k5]=!1,this[R4]=!1,this[_5]=!1,this[g1]={readPreference:$.readPreference&&$.readPreference instanceof OZ.ReadPreference?$.readPreference:OZ.ReadPreference.primary,...W8.pluckBSONSerializeOptions($)};const X=Cj.ReadConcern.fromOptions($);if(X)this[g1].readConcern=X;if(typeof $.batchSize==="number")this[g1].batchSize=$.batchSize;if($.comment!==void 0)this[g1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[g1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[g1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof xY.ClientSession)this[Y6]=$.session;else this[Y6]=this[G7].startSession({owner:this,explicit:!1})}get id(){return this[$0]??void 0}get isDead(){return(this[$0]?.isZero()??!1)||this[R4]||this[_5]}get client(){return this[G7]}get server(){return this[SZ]}get namespace(){return this[y5]}get readPreference(){return this[g1].readPreference}get readConcern(){return this[g1].readConcern}get session(){return this[Y6]}set session(Z){this[Y6]=Z}get cursorOptions(){return this[g1]}get closed(){return this[R4]}get killed(){return this[_5]}get loadBalanced(){return!!this[G7].topology?.loadBalanced}bufferedCount(){return this[X0].length}readBufferedDocuments(Z){const J=[],$=Math.min(Z??this[X0].length,this[X0].length);for(let X=0;X<$;X++){const Y=this[X0].shift();if(Y!=null)J.push(Y)}return J}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const Z=await this.next();if(Z===null){if(!this.closed)throw await q7(this,{needsToEmitClosed:!0}).catch(()=>null),new h0.MongoAPIError("Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.");break}if(yield Z,this[$0]===W8.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(Z){if(Z?.transform){const J=Z.transform;return new fY(this).pipe(new Oj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=J(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new fY(this)}async hasNext(){if(this[$0]===W8.Long.ZERO)return!1;if(this[X0].length!==0)return!0;const Z=await yZ(this,{blocking:!0,transform:!1});if(Z)return this[X0].unshift(Z),!0;return!1}async next(){if(this[$0]===W8.Long.ZERO)throw new h0.MongoCursorExhaustedError;return yZ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[$0]===W8.Long.ZERO)throw new h0.MongoCursorExhaustedError;return yZ(this,{blocking:!1,transform:!0})}async forEach(Z){if(typeof Z!=="function")throw new h0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let J of this)if(Z(J)===!1)break}async close(){const Z=!this[R4];this[R4]=!0,await q7(this,{needsToEmitClosed:Z})}async toArray(){const Z=[];for await(let J of this)Z.push(J);return Z}addCursorFlag(Z,J){if(P4(this),!kj.CURSOR_FLAGS.includes(Z))throw new h0.MongoInvalidArgumentError(`Flag ${Z} is not one of ${kj.CURSOR_FLAGS}`);if(typeof J!=="boolean")throw new h0.MongoInvalidArgumentError(`Flag ${Z} must be a boolean value`);return this[g1][Z]=J,this}map(Z){P4(this);const J=this[x5];if(J)this[x5]=($)=>{return Z(J($))};else this[x5]=Z;return this}withReadPreference(Z){if(P4(this),Z instanceof OZ.ReadPreference)this[g1].readPreference=Z;else if(typeof Z==="string")this[g1].readPreference=OZ.ReadPreference.fromString(Z);else throw new h0.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return this}withReadConcern(Z){P4(this);const J=Cj.ReadConcern.fromOptions({readConcern:Z});if(J)this[g1].readConcern=J;return this}maxTimeMS(Z){if(P4(this),typeof Z!=="number")throw new h0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[g1].maxTimeMS=Z,this}batchSize(Z){if(P4(this),this[g1].tailable)throw new h0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof Z!=="number")throw new h0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[g1].batchSize=Z,this}rewind(){if(!this[k5])return;this[$0]=null,this[X0].clear(),this[R4]=!1,this[_5]=!1,this[k5]=!1;const Z=this[Y6];if(Z){if(Z.explicit===!1){if(!Z.hasEnded)Z.endSession().catch(()=>null);this[Y6]=this.client.startSession({owner:this,explicit:!1})}}}_getMore(Z,J){const $=new Nv.GetMoreOperation(this[y5],this[$0],this[SZ],{...this[g1],session:this[Y6],batchSize:Z});Sj.executeOperation(this[G7],$,J)}[yj](Z){this._initialize(this[Y6],(J,$)=>{if($){const X=$.response;if(this[SZ]=$.server,X.cursor){if(this[$0]=typeof X.cursor.id==="number"?W8.Long.fromNumber(X.cursor.id):typeof X.cursor.id==="bigint"?W8.Long.fromBigInt(X.cursor.id):X.cursor.id,X.cursor.ns)this[y5]=hj.ns(X.cursor.ns);this[X0].pushMany(X.cursor.firstBatch)}if(this[$0]==null)this[$0]=W8.Long.ZERO,this[X0].push($.response)}if(this[k5]=!0,J)return vY(this,{error:J},()=>Z(J,void 0));if(this.isDead)return vY(this,void 0,()=>Z());Z()})}}F7.CLOSE="close";kj.AbstractCursor=F7;var q7=_Y.promisify(vY);kj.assertUninitialized=P4;class fY extends Oj.Readable{constructor(Z){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=Z}_read(Z){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(Z,J){this._cursor.close().then(()=>J(Z),($)=>J($))}_readNext(){yZ(this._cursor,{blocking:!0,transform:!0}).then((Z)=>{if(Z==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(Z))return this._readNext();this._readInProgress=!1}},(Z)=>{if(Z.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(Z.message.match(/operation was interrupted/))return this.push(null);return this.destroy(Z)})}}});var v5=z((fj)=>{Object.defineProperty(fj,"__esModule",{value:!0});fj.AggregationCursor=void 0;var xj=RZ(),vj=B0(),hv=_(),a0=Q6(),Y0=Symbol("pipeline"),kZ=Symbol("options");class bY extends a0.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);this[Y0]=$,this[kZ]=X}get pipeline(){return this[Y0]}clone(){const Z=hv.mergeOptions({},this[kZ]);return delete Z.session,new bY(this.client,this.namespace,this[Y0],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new xj.AggregateOperation(this.namespace,this[Y0],{...this[kZ],...this.cursorOptions,session:Z});vj.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}async explain(Z){return vj.executeOperation(this.client,new xj.AggregateOperation(this.namespace,this[Y0],{...this[kZ],...this.cursorOptions,explain:Z??!0}))}group(Z){return a0.assertUninitialized(this),this[Y0].push({$group:Z}),this}limit(Z){return a0.assertUninitialized(this),this[Y0].push({$limit:Z}),this}match(Z){return a0.assertUninitialized(this),this[Y0].push({$match:Z}),this}out(Z){return a0.assertUninitialized(this),this[Y0].push({$out:Z}),this}project(Z){return a0.assertUninitialized(this),this[Y0].push({$project:Z}),this}lookup(Z){return a0.assertUninitialized(this),this[Y0].push({$lookup:Z}),this}redact(Z){return a0.assertUninitialized(this),this[Y0].push({$redact:Z}),this}skip(Z){return a0.assertUninitialized(this),this[Y0].push({$skip:Z}),this}sort(Z){return a0.assertUninitialized(this),this[Y0].push({$sort:Z}),this}unwind(Z){return a0.assertUninitialized(this),this[Y0].push({$unwind:Z}),this}geoNear(Z){return a0.assertUninitialized(this),this[Y0].push({$geoNear:Z}),this}}fj.AggregationCursor=bY});var dY=z((bj)=>{Object.defineProperty(bj,"__esModule",{value:!0});bj.CountOperation=void 0;var Ov=T1(),mY=J1();class uY extends Ov.CommandCallbackOperation{constructor(Z,J,$){super({s:{namespace:Z}},$);this.options=$,this.collectionName=Z.collection,this.query=J}executeCallback(Z,J,$){const X=this.options,Y={count:this.collectionName,query:this.query};if(typeof X.limit==="number")Y.limit=X.limit;if(typeof X.skip==="number")Y.skip=X.skip;if(X.hint!=null)Y.hint=X.hint;if(typeof X.maxTimeMS==="number")Y.maxTimeMS=X.maxTimeMS;super.executeCommandCallback(Z,J,Y,(Q,K)=>{$(Q,K?K.n:0)})}}bj.CountOperation=uY;mY.defineAspects(uY,[mY.Aspect.READ_OPERATION,mY.Aspect.RETRYABLE])});var _Z=z((dj)=>{var W7=function(Z=1){const J=`${Z}`.toLowerCase();if(Sv(Z))return Z;switch(J){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new uj.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(Z)}`)}},Sv=function(Z){return typeof Z==="object"&&Z!=null&&"$meta"in Z&&typeof Z.$meta==="string"},yv=function(Z){if(Array.isArray(Z)&&Z.length===2)try{return W7(Z[1]),!0}catch(J){return!1}return!1},kv=function(Z){return Array.isArray(Z)&&Array.isArray(Z[0])},_v=function(Z){return Z instanceof Map&&Z.size>0},xv=function(Z){return new Map([[`${Z[0]}`,W7([Z[1]])]])},vv=function(Z){const J=Z.map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},fv=function(Z){const J=Z.map(($)=>[`${$}`,1]);return new Map(J)},gv=function(Z){const J=Object.entries(Z).map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},bv=function(Z){const J=Array.from(Z).map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},mv=function(Z,J){if(Z==null)return;if(typeof Z==="string")return new Map([[Z,W7(J)]]);if(typeof Z!=="object")throw new uj.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(Z)} Sort must be a valid object`);if(!Array.isArray(Z))return _v(Z)?bv(Z):Object.keys(Z).length?gv(Z):void 0;if(!Z.length)return;if(kv(Z))return vv(Z);if(yv(Z))return xv(Z);return fv(Z)};Object.defineProperty(dj,"__esModule",{value:!0});dj.formatSort=void 0;var uj=h();dj.formatSort=mv});var ij=z((lj)=>{var lv=function(Z,J,$){const X={find:Z.collection,filter:J};if($.sort)X.sort=pv.formatSort($.sort);if($.projection){let Q=$.projection;if(Q&&Array.isArray(Q))Q=Q.length?Q.reduce((K,G)=>{return K[G]=1,K},{}):{_id:1};X.projection=Q}if($.hint)X.hint=cj.normalizeHintField($.hint);if(typeof $.skip==="number")X.skip=$.skip;if(typeof $.limit==="number")if($.limit<0)X.limit=-$.limit,X.singleBatch=!0;else X.limit=$.limit;if(typeof $.batchSize==="number")if($.batchSize<0){if($.limit&&$.limit!==0&&Math.abs($.batchSize)<Math.abs($.limit))X.limit=-$.batchSize;X.singleBatch=!0}else X.batchSize=$.batchSize;if(typeof $.singleBatch==="boolean")X.singleBatch=$.singleBatch;if($.comment!==void 0)X.comment=$.comment;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=dv.ReadConcern.fromOptions($);if(Y)X.readConcern=Y.toJSON();if($.max)X.max=$.max;if($.min)X.min=$.min;if(typeof $.returnKey==="boolean")X.returnKey=$.returnKey;if(typeof $.showRecordId==="boolean")X.showRecordId=$.showRecordId;if(typeof $.tailable==="boolean")X.tailable=$.tailable;if(typeof $.oplogReplay==="boolean")X.oplogReplay=$.oplogReplay;if(typeof $.timeout==="boolean")X.noCursorTimeout=!$.timeout;else if(typeof $.noCursorTimeout==="boolean")X.noCursorTimeout=$.noCursorTimeout;if(typeof $.awaitData==="boolean")X.awaitData=$.awaitData;if(typeof $.allowPartialResults==="boolean")X.allowPartialResults=$.allowPartialResults;if($.collation)X.collation=$.collation;if(typeof $.allowDiskUse==="boolean")X.allowDiskUse=$.allowDiskUse;if($.let)X.let=$.let;return X};Object.defineProperty(lj,"__esModule",{value:!0});lj.FindOperation=void 0;var uv=h(),dv=d0(),pv=_Z(),cj=_(),cv=T1(),f5=J1();class pY extends cv.CommandCallbackOperation{constructor(Z,J,$={},X={}){super(Z,X);if(this.options={...X},delete this.options.writeConcern,this.ns=J,typeof $!=="object"||Array.isArray($))throw new uv.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}executeCallback(Z,J,$){this.server=Z;const X=this.options;let Y=lv(this.ns,this.filter,X);if(this.explain)Y=cj.decorateWithExplain(Y,this.explain);Z.command(this.ns,Y,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:J},$)}}lj.FindOperation=pY;f5.defineAspects(pY,[f5.Aspect.READ_OPERATION,f5.Aspect.RETRYABLE,f5.Aspect.EXPLAINABLE,f5.Aspect.CURSOR_CREATING])});var iY=z((tj)=>{Object.defineProperty(tj,"__esModule",{value:!0});tj.FindCursor=tj.FLAGS=void 0;var av=D1(),H8=h(),iv=dY(),cY=B0(),sj=ij(),lY=_Z(),nj=_(),p1=Q6(),D4=Symbol("filter"),g5=Symbol("numReturned"),n=Symbol("builtOptions");tj.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class aY extends p1.AbstractCursor{constructor(Z,J,$={},X={}){super(Z,J,X);if(this[D4]=$,this[n]=X,X.sort!=null)this[n].sort=lY.formatSort(X.sort)}clone(){const Z=nj.mergeOptions({},this[n]);return delete Z.session,new aY(this.client,this.namespace,this[D4],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new sj.FindOperation(void 0,this.namespace,this[D4],{...this[n],...this.cursorOptions,session:Z});cY.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);if(Y.cursor)this[g5]=Y.cursor.firstBatch.length;else this[g5]=Y.documents?Y.documents.length:0;J(void 0,{server:$.server,session:Z,response:Y})})}_getMore(Z,J){const $=this[g5];if($){const X=this[n].limit;if(Z=X&&X>0&&$+Z>X?X-$:Z,Z<=0){this.close().finally(()=>J(void 0,{cursor:{id:av.Long.ZERO,nextBatch:[]}}));return}}super._getMore(Z,(X,Y)=>{if(X)return J(X);if(Y)this[g5]=this[g5]+Y.cursor.nextBatch.length;J(void 0,Y)})}async count(Z){if(nj.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof Z==="boolean")throw new H8.MongoInvalidArgumentError("Invalid first parameter to count");return cY.executeOperation(this.client,new iv.CountOperation(this.namespace,this[D4],{...this[n],...this.cursorOptions,...Z}))}async explain(Z){return cY.executeOperation(this.client,new sj.FindOperation(void 0,this.namespace,this[D4],{...this[n],...this.cursorOptions,explain:Z??!0}))}filter(Z){return p1.assertUninitialized(this),this[D4]=Z,this}hint(Z){return p1.assertUninitialized(this),this[n].hint=Z,this}min(Z){return p1.assertUninitialized(this),this[n].min=Z,this}max(Z){return p1.assertUninitialized(this),this[n].max=Z,this}returnKey(Z){return p1.assertUninitialized(this),this[n].returnKey=Z,this}showRecordId(Z){return p1.assertUninitialized(this),this[n].showRecordId=Z,this}addQueryModifier(Z,J){if(p1.assertUninitialized(this),Z[0]!=="$")throw new H8.MongoInvalidArgumentError(`${Z} is not a valid query modifier`);switch(Z.substr(1)){case"comment":this[n].comment=J;break;case"explain":this[n].explain=J;break;case"hint":this[n].hint=J;break;case"max":this[n].max=J;break;case"maxTimeMS":this[n].maxTimeMS=J;break;case"min":this[n].min=J;break;case"orderby":this[n].sort=lY.formatSort(J);break;case"query":this[D4]=J;break;case"returnKey":this[n].returnKey=J;break;case"showDiskLoc":this[n].showRecordId=J;break;default:throw new H8.MongoInvalidArgumentError(`Invalid query modifier: ${Z}`)}return this}comment(Z){return p1.assertUninitialized(this),this[n].comment=Z,this}maxAwaitTimeMS(Z){if(p1.assertUninitialized(this),typeof Z!=="number")throw new H8.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[n].maxAwaitTimeMS=Z,this}maxTimeMS(Z){if(p1.assertUninitialized(this),typeof Z!=="number")throw new H8.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[n].maxTimeMS=Z,this}project(Z){return p1.assertUninitialized(this),this[n].projection=Z,this}sort(Z,J){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support sorting");return this[n].sort=lY.formatSort(Z,J),this}allowDiskUse(Z=!0){if(p1.assertUninitialized(this),!this[n].sort)throw new H8.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!Z)return this[n].allowDiskUse=!1,this;return this[n].allowDiskUse=!0,this}collation(Z){return p1.assertUninitialized(this),this[n].collation=Z,this}limit(Z){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof Z!=="number")throw new H8.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[n].limit=Z,this}skip(Z){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof Z!=="number")throw new H8.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[n].skip=Z,this}}tj.FindCursor=aY});var b5=z((JA)=>{var rv=function(Z){return typeof Z==="number"||Z==="2d"||Z==="2dsphere"||Z==="text"||Z==="geoHaystack"},ov=function(Z){return Array.isArray(Z)&&Z.length===2&&rv(Z[1])},ev=function(Z,J){const $=new Map,X=!Array.isArray(Z)||ov(Z)?[Z]:Z;for(let Y of X)if(typeof Y==="string")$.set(Y,1);else if(Array.isArray(Y))$.set(Y[0],Y[1]??1);else if(Y instanceof Map)for(let[Q,K]of Y)$.set(Q,K);else if(nY.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...J,key:$}};Object.defineProperty(JA,"__esModule",{value:!0});JA.IndexInformationOperation=JA.IndexExistsOperation=JA.ListIndexesOperation=JA.DropIndexesOperation=JA.DropIndexOperation=JA.EnsureIndexOperation=JA.CreateIndexOperation=JA.CreateIndexesOperation=JA.IndexesOperation=void 0;var sY=h(),nv=y1(),nY=_(),tY=T1(),rY=$Y(),c1=J1(),tv=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);class oj extends c1.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection,Y=this.options;rY.indexInformation(X.s.db,X.collectionName,{full:!0,...Y,readPreference:this.readPreference,session:J},$)}}JA.IndexesOperation=oj;class xZ extends tY.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collectionName=J,this.indexes=$.map((Y)=>{const Q=Y.key instanceof Map?Y.key:new Map(Object.entries(Y.key)),K=Y.name!=null?Y.name:Array.from(Q).flat().join("_");return{...Object.fromEntries(Object.entries({...Y}).filter(([q])=>tv.has(q))),name:K,key:Q}})}executeCallback(Z,J,$){const X=this.options,Y=this.indexes,Q=nY.maxWireVersion(Z),K={createIndexes:this.collectionName,indexes:Y};if(X.commitQuorum!=null){if(Q<9){$(new sY.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));return}K.commitQuorum=X.commitQuorum}this.options.collation=void 0,super.executeCommandCallback(Z,J,K,(G)=>{if(G){$(G);return}const q=Y.map((F)=>F.name||"");$(void 0,q)})}}JA.CreateIndexesOperation=xZ;class vZ extends xZ{constructor(Z,J,$,X){super(Z,J,[ev($,X)],X)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);return $(void 0,Y[0])})}}JA.CreateIndexOperation=vZ;class oY extends vZ{constructor(Z,J,$,X){super(Z,J,$,X);this.readPreference=nv.ReadPreference.primary,this.db=Z,this.collectionName=J}executeCallback(Z,J,$){const X=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:J}).toArray().then((Q)=>{if(Q=Array.isArray(Q)?Q:[Q],Q.some((K)=>K.name===X)){$(void 0,X);return}super.executeCallback(Z,J,$)},(Q)=>{if(Q instanceof sY.MongoError&&Q.code===sY.MONGODB_ERROR_CODES.NamespaceNotFound)return super.executeCallback(Z,J,$);return $(Q)})}}JA.EnsureIndexOperation=oY;class fZ extends tY.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.collection=Z,this.indexName=J}executeCallback(Z,J,$){const X={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommandCallback(Z,J,X,$)}}JA.DropIndexOperation=fZ;class eY extends fZ{constructor(Z,J){super(Z,"*",J)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X)=>{if(X)return $(X,!1);$(void 0,!0)})}}JA.DropIndexesOperation=eY;class Z3 extends tY.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options={...J},delete this.options.writeConcern,this.collectionNamespace=Z.s.namespace}executeCallback(Z,J,$){const X=nY.maxWireVersion(Z),Y=this.options.batchSize?{batchSize:this.options.batchSize}:{},Q={listIndexes:this.collectionNamespace.collection,cursor:Y};if(X>=9&&this.options.comment!==void 0)Q.comment=this.options.comment;super.executeCommandCallback(Z,J,Q,$)}}JA.ListIndexesOperation=Z3;class ej extends c1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.indexes=J}executeCallback(Z,J,$){const X=this.collection,Y=this.indexes;rY.indexInformation(X.s.db,X.collectionName,{...this.options,readPreference:this.readPreference,session:J},(Q,K)=>{if(Q!=null)return $(Q);if(!Array.isArray(Y))return $(void 0,K[Y]!=null);for(let G=0;G<Y.length;G++)if(K[Y[G]]==null)return $(void 0,!1);return $(void 0,!0)})}}JA.IndexExistsOperation=ej;class ZA extends c1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$??{},this.db=Z,this.name=J}executeCallback(Z,J,$){const X=this.db,Y=this.name;rY.indexInformation(X,Y,{...this.options,readPreference:this.readPreference,session:J},$)}}JA.IndexInformationOperation=ZA;c1.defineAspects(Z3,[c1.Aspect.READ_OPERATION,c1.Aspect.RETRYABLE,c1.Aspect.CURSOR_CREATING]);c1.defineAspects(xZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(vZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(oY,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(fZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(eY,[c1.Aspect.WRITE_OPERATION])});var $3=z((XA)=>{Object.defineProperty(XA,"__esModule",{value:!0});XA.ListIndexesCursor=void 0;var qf=B0(),Ff=b5(),Wf=Q6();class J3 extends Wf.AbstractCursor{constructor(Z,J){super(Z.client,Z.s.namespace,J);this.parent=Z,this.options=J}clone(){return new J3(this.parent,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new Ff.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:Z});qf.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}XA.ListIndexesCursor=J3});var qA=z((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});KA.ListSearchIndexesCursor=void 0;var Hf=v5();class QA extends Hf.AggregationCursor{constructor({fullNamespace:Z,client:J},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(J,Z,Y,X)}}KA.ListSearchIndexesCursor=QA});var zA=z((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.CountDocumentsOperation=void 0;var zf=RZ();class FA extends zf.AggregateOperation{constructor(Z,J,$){const X=[];if(X.push({$match:J}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(Z.s.namespace,X,$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y){$(X);return}const Q=Y;if(Q.cursor==null||Q.cursor.firstBatch==null){$(void 0,0);return}const K=Q.cursor.firstBatch;$(void 0,K.length?K[0].n:0)})}}WA.CountDocumentsOperation=FA});var jA=z((UA)=>{Object.defineProperty(UA,"__esModule",{value:!0});UA.DistinctOperation=void 0;var VA=_(),Vf=T1(),gZ=J1();class X3 extends Vf.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collection=Z,this.key=J,this.query=$}executeCallback(Z,J,$){const X=this.collection,Y=this.key,Q=this.query,K=this.options,G={distinct:X.collectionName,key:Y,query:Q};if(typeof K.maxTimeMS==="number")G.maxTimeMS=K.maxTimeMS;if(typeof K.comment!=="undefined")G.comment=K.comment;VA.decorateWithReadConcern(G,X,K);try{VA.decorateWithCollation(G,X,K)}catch(q){return $(q)}super.executeCommandCallback(Z,J,G,(q,F)=>{if(q){$(q);return}$(void 0,this.explain?F:F.values)})}}UA.DistinctOperation=X3;gZ.defineAspects(X3,[gZ.Aspect.READ_OPERATION,gZ.Aspect.RETRYABLE,gZ.Aspect.EXPLAINABLE])});var Q3=z((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.DropDatabaseOperation=wA.DropCollectionOperation=void 0;var AA=h(),LA=T1(),bZ=J1();class mZ extends LA.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.db=Z,this.options=$,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.options,Q=this.name,K=X.client.options.autoEncryption?.encryptedFieldsMap;let G=Y.encryptedFields??K?.[`${X.databaseName}.${Q}`];if(!G&&K)G=(await X.listCollections({name:Q},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(G){const q=G.escCollection||`enxcol_.${Q}.esc`,F=G.ecocCollection||`enxcol_.${Q}.ecoc`;for(let W of[q,F]){const H=new mZ(X,W);try{await H.executeWithoutEncryptedFieldsCheck(Z,J)}catch(V){if(!(V instanceof AA.MongoServerError)||V.code!==AA.MONGODB_ERROR_CODES.NamespaceNotFound)throw V}}}return this.executeWithoutEncryptedFieldsCheck(Z,J)})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{super.executeCommandCallback(Z,J,{drop:this.name},(Y,Q)=>{if(Y)return X(Y);$(!!Q.ok)})})}}wA.DropCollectionOperation=mZ;class Y3 extends LA.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropDatabase:1},(X,Y)=>{if(X)return $(X);if(Y.ok)return $(void 0,!0);$(void 0,!1)})}}wA.DropDatabaseOperation=Y3;bZ.defineAspects(mZ,[bZ.Aspect.WRITE_OPERATION]);bZ.defineAspects(Y3,[bZ.Aspect.WRITE_OPERATION])});var TA=z((PA)=>{Object.defineProperty(PA,"__esModule",{value:!0});PA.EstimatedDocumentCountOperation=void 0;var Mf=T1(),uZ=J1();class K3 extends Mf.CommandCallbackOperation{constructor(Z,J={}){super(Z,J);this.options=J,this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")X.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,(Y,Q)=>{if(Y){$(Y);return}$(void 0,Q?.n||0)})}}PA.EstimatedDocumentCountOperation=K3;uZ.defineAspects(K3,[uZ.Aspect.READ_OPERATION,uZ.Aspect.RETRYABLE,uZ.Aspect.CURSOR_CREATING])});var G3=z((CA)=>{var IA=function(Z,J){if(Z.new=J.returnDocument===CA.ReturnDocument.AFTER,Z.upsert=J.upsert===!0,J.bypassDocumentValidation===!0)Z.bypassDocumentValidation=J.bypassDocumentValidation;return Z};Object.defineProperty(CA,"__esModule",{value:!0});CA.FindOneAndUpdateOperation=CA.FindOneAndReplaceOperation=CA.FindOneAndDeleteOperation=CA.ReturnDocument=void 0;var v6=h(),jf=y1(),Af=_Z(),pZ=_(),Lf=T1(),dZ=J1();CA.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class m5 extends Lf.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??($.includeResultMetadata=!0);const X=Af.formatSort($.sort);if(X)this.cmdBase.sort=X;if($.projection)this.cmdBase.fields=$.projection;if($.maxTimeMS)this.cmdBase.maxTimeMS=$.maxTimeMS;if($.writeConcern)this.cmdBase.writeConcern=$.writeConcern;if($.let)this.cmdBase.let=$.let;if($.comment!==void 0)this.cmdBase.comment=$.comment;this.readPreference=jf.ReadPreference.primary,this.collection=Z,this.query=J}executeCallback(Z,J,$){const X=this.collection,Y=this.query,Q={...this.options,...this.bsonOptions},K={findAndModify:X.collectionName,query:Y,...this.cmdBase};try{pZ.decorateWithCollation(K,X,Q)}catch(G){return $(G)}if(Q.hint){if(this.writeConcern?.w===0||pZ.maxWireVersion(Z)<8){$(new v6.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));return}K.hint=Q.hint}super.executeCommandCallback(Z,J,K,(G,q)=>{if(G)return $(G);return $(void 0,Q.includeResultMetadata?q:q.value??null)})}}class EA extends m5{constructor(Z,J,$){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');super(Z,J,$);this.cmdBase.remove=!0}}CA.FindOneAndDeleteOperation=EA;class NA extends m5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new v6.MongoInvalidArgumentError('Argument "replacement" must be an object');if(pZ.hasAtomicOperators($))throw new v6.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(Z,J,X);this.cmdBase.update=$,IA(this.cmdBase,X)}}CA.FindOneAndReplaceOperation=NA;class BA extends m5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new v6.MongoInvalidArgumentError('Argument "update" must be an object');if(!pZ.hasAtomicOperators($))throw new v6.MongoInvalidArgumentError("Update document requires atomic operators");super(Z,J,X);if(this.cmdBase.update=$,IA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}CA.FindOneAndUpdateOperation=BA;dZ.defineAspects(m5,[dZ.Aspect.WRITE_OPERATION,dZ.Aspect.RETRYABLE,dZ.Aspect.EXPLAINABLE])});var _A=z((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});yA.IsCappedOperation=void 0;var Pf=h(),Df=J1();class SA extends Df.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Pf.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,!!Y[0].options?.capped)},(Y)=>$(Y))}}yA.IsCappedOperation=SA});var gA=z((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.OptionsOperation=void 0;var Tf=h(),If=J1();class xA extends If.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Tf.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,Y[0].options)},(Y)=>$(Y))}}vA.OptionsOperation=xA});var F3=z((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.RenameOperation=void 0;var Ef=T4(),Nf=h(),Bf=_(),bA=J1(),Cf=Z7();class q3 extends Cf.RunAdminCommandOperation{constructor(Z,J,$){Bf.checkCollectionName(J);const X=Z.namespace,Y=Z.s.namespace.withCollection(J).toString(),Q=typeof $.dropTarget==="boolean"?$.dropTarget:!1,K={renameCollection:X,to:Y,dropTarget:Q};super(Z,K,$);this.options=$,this.collection=Z,this.newName=J}executeCallback(Z,J,$){const X=this.collection;super.executeCallback(Z,J,(Y,Q)=>{if(Y)return $(Y);if(Q?.errmsg)return $(new Nf.MongoServerError(Q));let K;try{K=new Ef.Collection(X.s.db,this.newName,X.s.options)}catch(G){return $(G)}return $(void 0,K)})}}mA.RenameOperation=q3;bA.defineAspects(q3,[bA.Aspect.WRITE_OPERATION])});var lA=z((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.CreateSearchIndexesOperation=void 0;var hf=J1();class dA extends hf.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.descriptions=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={createSearchIndexes:X.collection,indexes:this.descriptions};Z.command(X,Y,{session:J},(Q,K)=>{if(Q||!K){$(Q);return}const G=K?.indexesCreated??[];$(void 0,G.map(({name:q})=>q))})}}pA.CreateSearchIndexesOperation=dA});var nA=z((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.DropSearchIndexOperation=void 0;var Of=J1();class aA extends Of.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.name=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={dropSearchIndex:X.collection};if(typeof this.name==="string")Y.name=this.name;Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}iA.DropSearchIndexOperation=aA});var eA=z((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.UpdateSearchIndexOperation=void 0;var Sf=J1();class tA extends Sf.AbstractCallbackOperation{constructor(Z,J,$){super();this.collection=Z,this.name=J,this.definition=$}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={updateSearchIndex:X.collection,name:this.name,definition:this.definition};Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}rA.UpdateSearchIndexOperation=tA});var z3=z((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.DbStatsOperation=JL.CollStatsOperation=void 0;var ZL=T1(),cZ=J1();class W3 extends ZL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={collStats:this.collectionName};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}JL.CollStatsOperation=W3;class H3 extends ZL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){const X={dbStats:!0};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}JL.DbStatsOperation=H3;cZ.defineAspects(W3,[cZ.Aspect.READ_OPERATION]);cZ.defineAspects(H3,[cZ.Aspect.READ_OPERATION])});var T4=z((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.Collection=void 0;var kf=D1(),_f=MY(),xf=jY(),vf=H7(),ff=v5(),gf=iY(),bf=$3(),mf=qA(),XL=h(),uf=JY(),df=dY(),pf=zA(),YL=oX(),cf=jA(),lf=Q3(),af=TA(),X1=B0(),V3=G3(),I4=b5(),QL=QY(),sf=_A(),nf=gA(),tf=F3(),rf=lA(),of=nA(),ef=eA(),Zg=z3(),U3=WY(),Jg=d0(),M3=y1(),o=_(),$g=A0();class KL{constructor(Z,J,$){o.checkCollectionName(J),this.s={db:Z,options:$,namespace:new o.MongoDBCollectionNamespace(Z.databaseName,J),pkFactory:Z.options?.pkFactory??o.DEFAULT_PK_FACTORY,readPreference:M3.ReadPreference.fromOptions($),bsonOptions:kf.resolveBSONOptions($,Z),readConcern:Jg.ReadConcern.fromOptions($),writeConcern:$g.WriteConcern.fromOptions($)},this.client=Z.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){if(this.s.readConcern==null)return this.s.db.readConcern;return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.s.db.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null)return this.s.db.writeConcern;return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(Z){this.s.collectionHint=o.normalizeHintField(Z)}async insertOne(Z,J){return X1.executeOperation(this.client,new QL.InsertOneOperation(this,Z,o.resolveOptions(this,J)))}async insertMany(Z,J){return X1.executeOperation(this.client,new QL.InsertManyOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async bulkWrite(Z,J){if(!Array.isArray(Z))throw new XL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return X1.executeOperation(this.client,new uf.BulkWriteOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async updateOne(Z,J,$){return X1.executeOperation(this.client,new U3.UpdateOneOperation(this,Z,J,o.resolveOptions(this,$)))}async replaceOne(Z,J,$){return X1.executeOperation(this.client,new U3.ReplaceOneOperation(this,Z,J,o.resolveOptions(this,$)))}async updateMany(Z,J,$){return X1.executeOperation(this.client,new U3.UpdateManyOperation(this,Z,J,o.resolveOptions(this,$)))}async deleteOne(Z={},J={}){return X1.executeOperation(this.client,new YL.DeleteOneOperation(this,Z,o.resolveOptions(this,J)))}async deleteMany(Z={},J={}){return X1.executeOperation(this.client,new YL.DeleteManyOperation(this,Z,o.resolveOptions(this,J)))}async rename(Z,J){return X1.executeOperation(this.client,new tf.RenameOperation(this,Z,{...J,readPreference:M3.ReadPreference.PRIMARY}))}async drop(Z){return X1.executeOperation(this.client,new lf.DropCollectionOperation(this.s.db,this.collectionName,Z))}async findOne(Z={},J={}){const $=this.find(Z,J).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(Z={},J={}){return new gf.FindCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}async options(Z){return X1.executeOperation(this.client,new nf.OptionsOperation(this,o.resolveOptions(this,Z)))}async isCapped(Z){return X1.executeOperation(this.client,new sf.IsCappedOperation(this,o.resolveOptions(this,Z)))}async createIndex(Z,J){return X1.executeOperation(this.client,new I4.CreateIndexOperation(this,this.collectionName,Z,o.resolveOptions(this,J)))}async createIndexes(Z,J){return X1.executeOperation(this.client,new I4.CreateIndexesOperation(this,this.collectionName,Z,o.resolveOptions(this,{...J,maxTimeMS:void 0})))}async dropIndex(Z,J){return X1.executeOperation(this.client,new I4.DropIndexOperation(this,Z,{...o.resolveOptions(this,J),readPreference:M3.ReadPreference.primary}))}async dropIndexes(Z){return X1.executeOperation(this.client,new I4.DropIndexesOperation(this,o.resolveOptions(this,Z)))}listIndexes(Z){return new bf.ListIndexesCursor(this,o.resolveOptions(this,Z))}async indexExists(Z,J){return X1.executeOperation(this.client,new I4.IndexExistsOperation(this,Z,o.resolveOptions(this,J)))}async indexInformation(Z){return X1.executeOperation(this.client,new I4.IndexInformationOperation(this.s.db,this.collectionName,o.resolveOptions(this,Z)))}async estimatedDocumentCount(Z){return X1.executeOperation(this.client,new af.EstimatedDocumentCountOperation(this,o.resolveOptions(this,Z)))}async countDocuments(Z={},J={}){return X1.executeOperation(this.client,new pf.CountDocumentsOperation(this,Z,o.resolveOptions(this,J)))}async distinct(Z,J={},$={}){return X1.executeOperation(this.client,new cf.DistinctOperation(this,Z,J,o.resolveOptions(this,$)))}async indexes(Z){return X1.executeOperation(this.client,new I4.IndexesOperation(this,o.resolveOptions(this,Z)))}async stats(Z){return X1.executeOperation(this.client,new Zg.CollStatsOperation(this,Z))}async findOneAndDelete(Z,J){return X1.executeOperation(this.client,new V3.FindOneAndDeleteOperation(this,Z,o.resolveOptions(this,J)))}async findOneAndReplace(Z,J,$){return X1.executeOperation(this.client,new V3.FindOneAndReplaceOperation(this,Z,J,o.resolveOptions(this,$)))}async findOneAndUpdate(Z,J,$){return X1.executeOperation(this.client,new V3.FindOneAndUpdateOperation(this,Z,J,o.resolveOptions(this,$)))}aggregate(Z=[],J){if(!Array.isArray(Z))throw new XL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new ff.AggregationCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new vf.ChangeStream(this,Z,o.resolveOptions(this,J))}initializeUnorderedBulkOp(Z){return new xf.UnorderedBulkOperation(this,o.resolveOptions(this,Z))}initializeOrderedBulkOp(Z){return new _f.OrderedBulkOperation(this,o.resolveOptions(this,Z))}async count(Z={},J={}){return X1.executeOperation(this.client,new df.CountOperation(this.fullNamespace,Z,o.resolveOptions(this,J)))}listSearchIndexes(Z,J){J=typeof Z==="object"?Z:J==null?{}:J;const $=Z==null?null:typeof Z==="object"?null:Z;return new mf.ListSearchIndexesCursor(this,$,J)}async createSearchIndex(Z){const[J]=await this.createSearchIndexes([Z]);return J}async createSearchIndexes(Z){return X1.executeOperation(this.client,new rf.CreateSearchIndexesOperation(this,Z))}async dropSearchIndex(Z){return X1.executeOperation(this.client,new of.DropSearchIndexOperation(this,Z))}async updateSearchIndex(Z,J){return X1.executeOperation(this.client,new ef.UpdateSearchIndexOperation(this,Z,J))}}GL.Collection=KL});var w3=z((WL)=>{Object.defineProperty(WL,"__esModule",{value:!0});WL.ChangeStreamCursor=void 0;var j3=H7(),FL=f1(),Xg=RZ(),Yg=B0(),A3=_(),Qg=Q6();class L3 extends Qg.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);if(this.pipeline=$,this.options=X,this._resumeToken=null,this.startAtOperationTime=X.startAtOperationTime,X.startAfter)this.resumeToken=X.startAfter;else if(X.resumeAfter)this.resumeToken=X.resumeAfter}set resumeToken(Z){this._resumeToken=Z,this.emit(j3.ChangeStream.RESUME_TOKEN_CHANGED,Z)}get resumeToken(){return this._resumeToken}get resumeOptions(){const Z={...this.options};for(let J of["resumeAfter","startAfter","startAtOperationTime"])delete Z[J];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)Z.startAfter=this.resumeToken;else Z.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&A3.maxWireVersion(this.server)>=7)Z.startAtOperationTime=this.startAtOperationTime;return Z}cacheResumeToken(Z){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=Z;this.hasReceived=!0}_processBatch(Z){const J=Z.cursor;if(J.postBatchResumeToken){if(this.postBatchResumeToken=Z.cursor.postBatchResumeToken,("firstBatch"in Z.cursor?Z.cursor.firstBatch:Z.cursor.nextBatch).length===0)this.resumeToken=J.postBatchResumeToken}}clone(){return new L3(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(Z,J){const $=new Xg.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:Z});Yg.executeOperation(Z.client,$,(X,Y)=>{if(X||Y==null)return J(X);const Q=$.server;if(this.maxWireVersion=A3.maxWireVersion(Q),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=Y.operationTime;this._processBatch(Y),this.emit(FL.INIT,Y),this.emit(FL.RESPONSE),J(void 0,{server:Q,session:Z,response:Y})})}_getMore(Z,J){super._getMore(Z,($,X)=>{if($)return J($);this.maxWireVersion=A3.maxWireVersion(this.server),this._processBatch(X),this.emit(j3.ChangeStream.MORE,X),this.emit(j3.ChangeStream.RESPONSE),J($,X)})}}WL.ChangeStreamCursor=L3});var UL=z((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.ListCollectionsOperation=void 0;var Kg=_(),Gg=T1(),lZ=J1();class R3 extends Gg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);if(this.options={...$},delete this.options.writeConcern,this.db=Z,this.filter=J,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}executeCallback(Z,J,$){return super.executeCommandCallback(Z,J,this.generateCommand(Kg.maxWireVersion(Z)),$)}generateCommand(Z){const J={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(Z>=9&&this.options.comment!==void 0)J.comment=this.options.comment;return J}}zL.ListCollectionsOperation=R3;lZ.defineAspects(R3,[lZ.Aspect.READ_OPERATION,lZ.Aspect.RETRYABLE,lZ.Aspect.CURSOR_CREATING])});var D3=z((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.ListCollectionsCursor=void 0;var qg=B0(),Fg=UL(),Wg=Q6();class P3 extends Wg.AbstractCursor{constructor(Z,J,$){super(Z.client,Z.s.namespace,$);this.parent=Z,this.filter=J,this.options=$}clone(){return new P3(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new Fg.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:Z});qg.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}ML.ListCollectionsCursor=P3});var PL=z((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.RunCommandCursor=void 0;var z7=h(),AL=B0(),Hg=PY(),zg=Z7(),Vg=_(),Ug=Q6();class LL extends Ug.AbstractCursor{setComment(Z){return this.getMoreOptions.comment=Z,this}setMaxTimeMS(Z){return this.getMoreOptions.maxAwaitTimeMS=Z,this}setBatchSize(Z){return this.getMoreOptions.batchSize=Z,this}clone(){throw new z7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(Z){throw new z7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(Z,J){throw new z7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(Z){throw new z7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(Z){throw new z7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(Z,J,$={}){super(Z.client,Vg.ns(Z.namespace),$);this.getMoreOptions={},this.db=Z,this.command=Object.freeze({...J})}_initialize(Z,J){const $=new zg.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:Z,readPreference:this.cursorOptions.readPreference});AL.executeOperation(this.client,$).then((X)=>{if(X.cursor==null){J(new z7.MongoUnexpectedServerResponseError("Expected server to respond with cursor"));return}J(void 0,{server:$.server,session:Z,response:X})},(X)=>J(X))}_getMore(Z,J){const $=new Hg.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});AL.executeOperation(this.client,$,J)}}wL.RunCommandCursor=LL});var EL=z((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.CollectionsOperation=void 0;var Mg=T4(),jg=J1();class DL extends jg.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.db=Z}executeCallback(Z,J,$){this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:J}).toArray().then((X)=>{const Y=[];for(let{name:Q}of X)if(!Q.includes("$"))Y.push(new Mg.Collection(this.db,Q,this.db.s.options));$(void 0,Y)},(X)=>$(X))}}TL.CollectionsOperation=DL});var OL=z((CL)=>{Object.defineProperty(CL,"__esModule",{value:!0});CL.CreateCollectionOperation=void 0;var NL=j4(),Ag=T4(),Lg=h(),wg=T1(),Rg=b5(),BL=J1(),Pg=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),Dg="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class aZ extends wg.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.options=$,this.db=Z,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.name,Q=this.options,K=Q.encryptedFields??X.client.options.autoEncryption?.encryptedFieldsMap?.[`${X.databaseName}.${Y}`];if(K){if(!Z.loadBalanced&&Z.description.maxWireVersion<NL.MIN_SUPPORTED_QE_WIRE_VERSION)throw new Lg.MongoCompatibilityError(`${Dg} The minimum server version required is ${NL.MIN_SUPPORTED_QE_SERVER_VERSION}`);const q=K.escCollection??`enxcol_.${Y}.esc`,F=K.ecocCollection??`enxcol_.${Y}.ecoc`;for(let W of[q,F])await new aZ(X,W,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(Z,J);if(!Q.encryptedFields)this.options={...this.options,encryptedFields:K}}const G=await this.executeWithoutEncryptedFieldsCheck(Z,J);if(K)await new Rg.CreateIndexOperation(X,Y,{__safeContent__:1},{}).execute(Z,J);return G})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{const Y=this.db,Q=this.name,K=this.options,G=(F)=>{if(F)return X(F);$(new Ag.Collection(Y,Q,K))},q={create:Q};for(let F in K)if(K[F]!=null&&typeof K[F]!=="function"&&!Pg.has(F))q[F]=K[F];super.executeCommandCallback(Z,J,q,G)})}}CL.CreateCollectionOperation=aZ;BL.defineAspects(aZ,[BL.Aspect.WRITE_OPERATION])});var xL=z((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.ProfilingLevelOperation=void 0;var SL=h(),Tg=T1();class yL extends Tg.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{profile:-1},(X,Y)=>{if(X==null&&Y.ok===1){const Q=Y.was;if(Q===0)return $(void 0,"off");if(Q===1)return $(void 0,"slow_only");if(Q===2)return $(void 0,"all");return $(new SL.MongoRuntimeError(`Illegal profiling level value ${Q}`))}else X!=null?$(X):$(new SL.MongoRuntimeError("Error with profile command"))})}}kL.ProfilingLevelOperation=yL});var T3=z((gL)=>{Object.defineProperty(gL,"__esModule",{value:!0});gL.SetProfilingLevelOperation=gL.ProfilingLevel=void 0;var vL=h(),Ig=_(),Eg=T1(),Ng=new Set(["off","slow_only","all"]);gL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class fL extends Eg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);switch(this.options=$,J){case gL.ProfilingLevel.off:this.profile=0;break;case gL.ProfilingLevel.slowOnly:this.profile=1;break;case gL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=J}executeCallback(Z,J,$){const X=this.level;if(!Ng.has(X))return $(new vL.MongoInvalidArgumentError(`Profiling level must be one of "${Ig.enumToString(gL.ProfilingLevel)}"`));super.executeCommandCallback(Z,J,{profile:this.profile},(Y,Q)=>{if(Y==null&&Q.ok===1)return $(void 0,X);return Y!=null?$(Y):$(new vL.MongoRuntimeError("Error with profile command"))})}}gL.SetProfilingLevelOperation=fL});var sZ=z((pL)=>{var ag=function(Z){if(typeof Z!=="string")throw new iZ.MongoInvalidArgumentError("Database name must be a string");if(Z.length===0)throw new iZ.MongoInvalidArgumentError("Database name cannot be the empty string");if(Z==="$external")return;const J=[" ",".","$","/","\\"];for(let $=0;$<J.length;$++)if(Z.indexOf(J[$])!==-1)throw new iZ.MongoAPIError(`database names cannot contain the character '${J[$]}'`)};Object.defineProperty(pL,"__esModule",{value:!0});pL.Db=void 0;var Bg=sX(),Cg=D1(),hg=H7(),Og=T4(),V7=f1(),Sg=v5(),yg=D3(),kg=PL(),iZ=h(),_g=uX(),xg=EL(),vg=OL(),mL=Q3(),O0=B0(),uL=b5(),fg=xL(),gg=aX(),bg=F3(),mg=Z7(),ug=T3(),dg=z3(),pg=d0(),dL=y1(),b1=_(),cg=A0(),lg=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class f6{constructor(Z,J,$){$=$??{},$=b1.filterOptions($,lg),ag(J),this.s={options:$,readPreference:dL.ReadPreference.fromOptions($),bsonOptions:Cg.resolveBSONOptions($,Z),pkFactory:$?.pkFactory??b1.DEFAULT_PK_FACTORY,readConcern:pg.ReadConcern.fromOptions($),writeConcern:cg.WriteConcern.fromOptions($),namespace:new b1.MongoDBNamespace(J)},this.client=Z}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||!1}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.client.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(Z,J){return O0.executeOperation(this.client,new vg.CreateCollectionOperation(this,Z,b1.resolveOptions(this,J)))}async command(Z,J){return O0.executeOperation(this.client,new mg.RunCommandOperation(this,Z,J))}aggregate(Z=[],J){return new Sg.AggregationCursor(this.client,this.s.namespace,Z,b1.resolveOptions(this,J))}admin(){return new Bg.Admin(this)}collection(Z,J={}){if(typeof J==="function")throw new iZ.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Og.Collection(this,Z,b1.resolveOptions(this,J))}async stats(Z){return O0.executeOperation(this.client,new dg.DbStatsOperation(this,b1.resolveOptions(this,Z)))}listCollections(Z={},J={}){return new yg.ListCollectionsCursor(this,Z,b1.resolveOptions(this,J))}async renameCollection(Z,J,$){return O0.executeOperation(this.client,new bg.RenameOperation(this.collection(Z),J,{...$,new_collection:!0,readPreference:dL.ReadPreference.primary}))}async dropCollection(Z,J){return O0.executeOperation(this.client,new mL.DropCollectionOperation(this,Z,b1.resolveOptions(this,J)))}async dropDatabase(Z){return O0.executeOperation(this.client,new mL.DropDatabaseOperation(this,b1.resolveOptions(this,Z)))}async collections(Z){return O0.executeOperation(this.client,new xg.CollectionsOperation(this,b1.resolveOptions(this,Z)))}async createIndex(Z,J,$){return O0.executeOperation(this.client,new uL.CreateIndexOperation(this,Z,J,b1.resolveOptions(this,$)))}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return O0.executeOperation(this.client,new _g.AddUserOperation(this,Z,X,b1.resolveOptions(this,$)))}async removeUser(Z,J){return O0.executeOperation(this.client,new gg.RemoveUserOperation(this,Z,b1.resolveOptions(this,J)))}async setProfilingLevel(Z,J){return O0.executeOperation(this.client,new ug.SetProfilingLevelOperation(this,Z,b1.resolveOptions(this,J)))}async profilingLevel(Z){return O0.executeOperation(this.client,new fg.ProfilingLevelOperation(this,b1.resolveOptions(this,Z)))}async indexInformation(Z,J){return O0.executeOperation(this.client,new uL.IndexInformationOperation(this,Z,b1.resolveOptions(this,J)))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new hg.ChangeStream(this,Z,b1.resolveOptions(this,J))}runCursorCommand(Z,J){return new kg.RunCommandCursor(this,Z,J)}}f6.SYSTEM_NAMESPACE_COLLECTION=V7.SYSTEM_NAMESPACE_COLLECTION;f6.SYSTEM_INDEX_COLLECTION=V7.SYSTEM_INDEX_COLLECTION;f6.SYSTEM_PROFILE_COLLECTION=V7.SYSTEM_PROFILE_COLLECTION;f6.SYSTEM_USER_COLLECTION=V7.SYSTEM_USER_COLLECTION;f6.SYSTEM_COMMAND_COLLECTION=V7.SYSTEM_COMMAND_COLLECTION;f6.SYSTEM_JS_COLLECTION=V7.SYSTEM_JS_COLLECTION;pL.Db=f6});var iL=z((H11,aL)=>{var K6=function(Z,J){if(!(this instanceof K6))return new K6(Z,J);this.length=0,this.updates=[],this.path=new Uint16Array(4),this.pages=new Array(32768),this.maxPages=this.pages.length,this.level=0,this.pageSize=Z||1024,this.deduplicate=J?J.deduplicate:null,this.zeros=this.deduplicate?nZ(this.deduplicate.length):null},ig=function(Z,J){while(Z.maxPages<J){var $=Z.pages;Z.pages=new Array(32768),Z.pages[0]=$,Z.level++,Z.maxPages*=32768}},sg=function(Z,J){if(Z.length===J)return Z;if(Z.length>J)return Z.slice(0,J);var $=nZ(J);return Z.copy($),$},nZ=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},ng=function(Z){var J=Buffer.allocUnsafe?Buffer.allocUnsafe(Z.length):new Buffer(Z.length);return Z.copy(J),J},lL=function(Z,J){this.offset=Z*J.length,this.buffer=J,this.updated=!1,this.deduplicate=0},tg=function(Z,J){Z=(Z-(J[0]=Z&32767))/32768,Z=(Z-(J[1]=Z&32767))/32768,J[3]=(Z-(J[2]=Z&32767))/32768&32767};aL.exports=K6;K6.prototype.updated=function(Z){while(this.deduplicate&&Z.buffer[Z.deduplicate]===this.deduplicate[Z.deduplicate])if(Z.deduplicate++,Z.deduplicate===this.deduplicate.length){if(Z.deduplicate=0,Z.buffer.equals&&Z.buffer.equals(this.deduplicate))Z.buffer=this.deduplicate;break}if(Z.updated||!this.updates)return;Z.updated=!0,this.updates.push(Z)};K6.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var Z=this.updates.pop();return Z.updated=!1,Z};K6.prototype._array=function(Z,J){if(Z>=this.maxPages){if(J)return;ig(this,Z)}tg(Z,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(J)return;Q=$[Y]=new Array(32768)}$=Q}return $};K6.prototype.get=function(Z,J){var $=this._array(Z,J),X=this.path[0],Y=$&&$[X];if(!Y&&!J){if(Y=$[X]=new lL(Z,nZ(this.pageSize)),Z>=this.length)this.length=Z+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!J)Y.buffer=ng(Y.buffer),Y.deduplicate=0;return Y};K6.prototype.set=function(Z,J){var $=this._array(Z,!1),X=this.path[0];if(Z>=this.length)this.length=Z+1;if(!J||this.zeros&&J.equals&&J.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&J.equals&&J.equals(this.deduplicate))J=this.deduplicate;var Y=$[X],Q=sg(J,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new lL(Z,Q)};K6.prototype.toBuffer=function(){var Z=new Array(this.length),J=nZ(this.pageSize),$=0;while($<Z.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<Z.length;Y++)Z[$++]=X&&X[Y]?X[Y].buffer:J}return Buffer.concat(Z)}});var nL=z((z11,sL)=>{var g6=function(Z){if(!(this instanceof g6))return new g6(Z);if(!Z)Z={};if(Buffer.isBuffer(Z))Z={buffer:Z};if(this.pageOffset=Z.pageOffset||0,this.pageSize=Z.pageSize||1024,this.pages=Z.pages||rg(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!eg(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!Z.trackUpdates,this._pageMask=this.pageSize-1,Z.buffer){for(var J=0;J<Z.buffer.length;J+=this.pageSize)this.pages.set(J/this.pageSize,Z.buffer.slice(J,J+this.pageSize));this.byteLength=Z.buffer.length,this.length=8*this.byteLength}},og=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},eg=function(Z){return!(Z&Z-1)},rg=iL();sL.exports=g6;g6.prototype.get=function(Z){var J=Z&7,$=(Z-J)/8;return!!(this.getByte($)&128>>J)};g6.prototype.getByte=function(Z){var J=Z&this._pageMask,$=(Z-J)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[J+this.pageOffset]:0};g6.prototype.set=function(Z,J){var $=Z&7,X=(Z-$)/8,Y=this.getByte(X);return this.setByte(X,J?Y|128>>$:Y&(255^128>>$))};g6.prototype.toBuffer=function(){var Z=og(this.pages.length*this.pageSize);for(var J=0;J<this.pages.length;J++){var $=this.pages.get(J,!0),X=J*this.pageSize;if($)$.buffer.copy(Z,X,this.pageOffset,this.pageOffset+this.pageSize)}return Z};g6.prototype.setByte=function(Z,J){var $=Z&this._pageMask,X=(Z-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===J)return!1;if(Y.buffer[$]=J,Z>=this.byteLength)this.byteLength=Z+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var rL=z((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});var Zb=import.meta.require("zlib");tL.default=Zb.gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))});var Zw=z((Q0)=>{var U7=function(){const Z=oL.default.readUInt32BE(d5);d5+=4;const J=oL.default.slice(d5,d5+Z);return d5+=Z,$b.default({buffer:J})},eL=Q0&&Q0.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.bidirectional_l=Q0.bidirectional_r_al=Q0.prohibited_characters=Q0.non_ASCII_space_characters=Q0.commonly_mapped_to_nothing=Q0.unassigned_code_points=void 0;var $b=eL(nL()),oL=eL(rL()),d5=0;Q0.unassigned_code_points=U7();Q0.commonly_mapped_to_nothing=U7();Q0.non_ASCII_space_characters=U7();Q0.prohibited_characters=U7();Q0.bidirectional_r_al=U7();Q0.bidirectional_l=U7()});var Yw=z((M11,Xw)=>{var $w=function(Z){const J=[],$=Z.length;for(let X=0;X<$;X+=1){const Y=Z.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=Z.charCodeAt(X+1);if(Q>=56320&&Q<=57343){J.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}J.push(Y)}return J},p5=function(Z,J={}){if(typeof Z!=="string")throw new TypeError("Expected string.");if(Z.length===0)return"";const $=$w(Z).map((W)=>Xb.get(W)?32:W).filter((W)=>!Yb.get(W)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=$w(X);if(Y.some((W)=>b6.prohibited_characters.get(W)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(J.allowUnassigned!==!0){if(Y.some((H)=>b6.unassigned_code_points.get(H)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}const K=Y.some((W)=>b6.bidirectional_r_al.get(W)),G=Y.some((W)=>b6.bidirectional_l.get(W));if(K&&G)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const q=b6.bidirectional_r_al.get(Jw(Qb(X))),F=b6.bidirectional_r_al.get(Jw(Kb(X)));if(K&&!(q&&F))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return X},b6=Zw(),Xb=b6.non_ASCII_space_characters,Yb=b6.commonly_mapped_to_nothing,Jw=(Z)=>Z.codePointAt(0),Qb=(Z)=>Z[0],Kb=(Z)=>Z[Z.length-1];p5.saslprep=p5;p5.default=p5;Xw.exports=p5});var j7=z((Qw)=>{var c5=function(Z){return new Proxy(Z?{kModuleError:Z}:{},{get:($,X)=>{if(X==="kModuleError")return Z;throw Z},set:()=>{throw Z}})},Gb=function(){try{return Qw.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),Qw.Kerberos}catch{return Qw.Kerberos}},qb=function(){try{return Qw.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),Qw.ZStandard}catch{return Qw.ZStandard}},Fb=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return c5(new M7.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},Wb=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(Z){return{kModuleError:new M7.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:Z})}}};Object.defineProperty(Qw,"__esModule",{value:!0});Qw.AutoEncryptionLoggerLevel=Qw.aws4=Qw.saslprep=Qw.getSnappy=Qw.getAwsCredentialProvider=Qw.getZstdLibrary=Qw.ZStandard=Qw.getKerberos=Qw.Kerberos=void 0;var M7=h();Qw.Kerberos=c5(new M7.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));Qw.getKerberos=Gb;Qw.ZStandard=c5(new M7.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));Qw.getZstdLibrary=qb;Qw.getAwsCredentialProvider=Fb;Qw.getSnappy=Wb;Qw.saslprep=c5(new M7.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{Qw.saslprep=Yw()}catch{}Qw.aws4=c5(new M7.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{Qw.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}Qw.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})});var G6=z((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.AuthProvider=Hw.AuthContext=void 0;var Mb=h();class Fw{constructor(Z,J,$){this.reauthenticating=!1,this.connection=Z,this.credentials=J,this.options=$}}Hw.AuthContext=Fw;class Ww{async prepare(Z,J){return Z}async reauth(Z){if(Z.reauthenticating)throw new Mb.MongoRuntimeError("Reauthentication already in progress.");try{Z.reauthenticating=!0,await this.auth(Z)}finally{Z.reauthenticating=!1}}}Hw.AuthProvider=Ww});var eZ=z((Aw)=>{async function I3(Z,J){return Z.commandAsync(Lb.ns("$external.$cmd"),J,void 0)}async function Rb(Z){const{hostAddress:J}=Z.options,{credentials:$}=Z;if(!J||typeof J.host!=="string"||!$)throw new Vw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(Ib(),"kModuleError"in l5)throw l5.kModuleError;const{initializeClient:X}=l5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",q=await jw(J.host,K),F={};if(Q!=null)Object.assign(F,{user:Y,password:Q});const W=K.SERVICE_HOST??q;let H=`${G}${process.platform==="win32"?"/":"@"}${W}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,F)}var Pb=function(Z){return{saslStart:1,mechanism:"GSSAPI",payload:Z,autoAuthorize:1}},Db=function(Z,J){return{saslContinue:1,conversationId:J,payload:Z}};async function Mw(Z,J,$){try{return await Z.step($)||""}catch(X){if(J===0)throw X;return Mw(Z,J-1,$)}}async function Tb(Z,J,$){const X=await Z.unwrap($);return Z.wrap(X||"",{user:J})}async function jw(Z,J){const $=J.CANONICALIZE_HOST_NAME;if(!$||$===Aw.GSSAPICanonicalizationValue.none)return Z;if($===Aw.GSSAPICanonicalizationValue.on||$===Aw.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await E3.promises.lookup(Z);try{const Y=await E3.promises.resolvePtr(X);return Y.length>0?Y[0]:Z}catch(Y){return N3(Z)}}else return N3(Z)}async function N3(Z){try{const J=await E3.promises.resolveCname(Z);return J.length>0?J[0]:Z}catch{return Z}}var Ib=function(){if(!l5)l5=Ab.getKerberos()};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.resolveCname=Aw.performGSSAPICanonicalizeHostName=Aw.GSSAPI=Aw.GSSAPICanonicalizationValue=void 0;var E3=import.meta.require("dns"),Ab=j7(),Vw=h(),Lb=_(),wb=G6();Aw.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var l5;class Uw extends wb.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if($==null)throw new Vw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await Rb(Z),Q=await Y.step(""),K=await I3(J,Pb(Q)),G=await Mw(Y,10,K.payload),q=await I3(J,Db(G,K.conversationId)),F=await Tb(Y,X,q.payload);await I3(J,{saslContinue:1,conversationId:q.conversationId,payload:F})}}Aw.GSSAPI=Uw;Aw.performGSSAPICanonicalizeHostName=jw;Aw.resolveCname=N3});var k8=z((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.AUTH_MECHS_AUTH_SRC_EXTERNAL=ww.AuthMechanism=void 0;ww.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509",MONGODB_OIDC:"MONGODB-OIDC"});ww.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([ww.AuthMechanism.MONGODB_GSSAPI,ww.AuthMechanism.MONGODB_AWS,ww.AuthMechanism.MONGODB_OIDC,ww.AuthMechanism.MONGODB_X509])});var JJ=z((Tw)=>{var Cb=function(Z){if(Z){if(Array.isArray(Z.saslSupportedMechs))return Z.saslSupportedMechs.includes(l1.AuthMechanism.MONGODB_SCRAM_SHA256)?l1.AuthMechanism.MONGODB_SCRAM_SHA256:l1.AuthMechanism.MONGODB_SCRAM_SHA1;if(Z.maxWireVersion>=3)return l1.AuthMechanism.MONGODB_SCRAM_SHA1}return l1.AuthMechanism.MONGODB_CR};Object.defineProperty(Tw,"__esModule",{value:!0});Tw.MongoCredentials=Tw.DEFAULT_ALLOWED_HOSTS=void 0;var i0=h(),Bb=eZ(),l1=k8(),Pw=["aws","azure"],Dw="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";Tw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var hb="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class ZJ{constructor(Z){if(this.username=Z.username??"",this.password=Z.password,this.source=Z.source,!this.source&&Z.db)this.source=Z.db;if(this.mechanism=Z.mechanism||l1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=Z.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID)this.username=process.env.AWS_ACCESS_KEY_ID;if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY)this.password=process.env.AWS_SECRET_ACCESS_KEY;if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null)this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}if(this.mechanism===l1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:Tw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(Z){return this.mechanism===Z.mechanism&&this.username===Z.username&&this.password===Z.password&&this.source===Z.source}resolveAuthMechanism(Z){if(this.mechanism.match(/DEFAULT/i))return new ZJ({username:this.username,password:this.password,source:this.source,mechanism:Cb(Z),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===l1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===l1.AuthMechanism.MONGODB_CR||this.mechanism===l1.AuthMechanism.MONGODB_PLAIN||this.mechanism===l1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===l1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new i0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===l1.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new i0.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.PROVIDER_NAME==="azure"&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new i0.MongoAzureError(hb);if(this.mechanismProperties.PROVIDER_NAME&&!Pw.includes(this.mechanismProperties.PROVIDER_NAME))throw new i0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${Pw.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new i0.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new i0.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const J=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(J))throw new i0.MongoInvalidArgumentError(Dw);for(let $ of J)if(typeof $!=="string")throw new i0.MongoInvalidArgumentError(Dw)}}if(l1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external")throw new i0.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}if(this.mechanism===l1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new i0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===l1.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new i0.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const Z=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(Bb.GSSAPICanonicalizationValue).includes(Z))throw new i0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${Z}`)}static merge(Z,J){return new ZJ({username:J.username??Z?.username??"",password:J.password??Z?.password??"",mechanism:J.mechanism??Z?.mechanism??l1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:J.mechanismProperties??Z?.mechanismProperties??{},source:J.source??J.db??Z?.source??"admin"})}}Tw.MongoCredentials=ZJ});var XJ=z((hw)=>{var q1=function(Z,J,$){if($.globals)Z=$.globals[Z.name];return new Z(`${$.context?$.context:"Value"} ${J}.`)},w7=function(Z,J){if(typeof Z==="bigint")throw q1(TypeError,"is a BigInt which cannot be converted to a number",J);if(!J.globals)return Number(Z);return J.globals.Number(Z)},Bw=function(Z){if(Z>0&&Z%1===0.5&&(Z&1)===0||Z<0&&Z%1===-0.5&&(Z&1)===1)return i5(Math.floor(Z));return i5(Math.round(Z))},$J=function(Z){return i5(Math.trunc(Z))},Nw=function(Z){return Z<0?-1:1},Ob=function(Z,J){const $=Z%J;if(Nw(J)!==Nw($))return $+J;return $},i5=function(Z){return Z===0?0:Z},R7=function(Z,{unsigned:J}){let $,X;if(J)$=0,X=2**Z-1;else $=-(2**(Z-1)),X=2**(Z-1)-1;const Y=2**Z,Q=2**(Z-1);return(K,G={})=>{let q=w7(K,G);if(q=i5(q),G.enforceRange){if(!Number.isFinite(q))throw q1(TypeError,"is not a finite number",G);if(q=$J(q),q<$||q>X)throw q1(TypeError,`is outside the accepted range of ${$} to ${X}, inclusive`,G);return q}if(!Number.isNaN(q)&&G.clamp)return q=Math.min(Math.max(q,$),X),q=Bw(q),q;if(!Number.isFinite(q)||q===0)return 0;if(q=$J(q),q>=$&&q<=X)return q;if(q=Ob(q,Y),!J&&q>=Q)return q-Y;return q}},Cw=function(Z,{unsigned:J}){const $=Number.MAX_SAFE_INTEGER,X=J?0:Number.MIN_SAFE_INTEGER,Y=J?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=w7(Q,K);if(G=i5(G),K.enforceRange){if(!Number.isFinite(G))throw q1(TypeError,"is not a finite number",K);if(G=$J(G),G<X||G>$)throw q1(TypeError,`is outside the accepted range of ${X} to ${$}, inclusive`,K);return G}if(!Number.isNaN(G)&&K.clamp)return G=Math.min(Math.max(G,X),$),G=Bw(G),G;if(!Number.isFinite(G)||G===0)return 0;let q=BigInt($J(G));return q=Y(Z,q),Number(q)}},B3=function(Z){try{return Sb.call(Z),!0}catch{return!1}},A7=function(Z){try{return yb.call(Z),!0}catch{return!1}},L7=function(Z){try{return new Uint8Array(Z),!1}catch{return!0}};hw.any=(Z)=>{return Z};hw.undefined=()=>{return};hw.boolean=(Z)=>{return Boolean(Z)};hw.byte=R7(8,{unsigned:!1});hw.octet=R7(8,{unsigned:!0});hw.short=R7(16,{unsigned:!1});hw["unsigned short"]=R7(16,{unsigned:!0});hw.long=R7(32,{unsigned:!1});hw["unsigned long"]=R7(32,{unsigned:!0});hw["long long"]=Cw(64,{unsigned:!1});hw["unsigned long long"]=Cw(64,{unsigned:!0});hw.double=(Z,J={})=>{const $=w7(Z,J);if(!Number.isFinite($))throw q1(TypeError,"is not a finite floating-point value",J);return $};hw["unrestricted double"]=(Z,J={})=>{return w7(Z,J)};hw.float=(Z,J={})=>{const $=w7(Z,J);if(!Number.isFinite($))throw q1(TypeError,"is not a finite floating-point value",J);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw q1(TypeError,"is outside the range of a single-precision floating-point value",J);return X};hw["unrestricted float"]=(Z,J={})=>{const $=w7(Z,J);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};hw.DOMString=(Z,J={})=>{if(J.treatNullAsEmptyString&&Z===null)return"";if(typeof Z==="symbol")throw q1(TypeError,"is a symbol, which cannot be converted to a string",J);return(J.globals?J.globals.String:String)(Z)};hw.ByteString=(Z,J={})=>{const $=hw.DOMString(Z,J);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw q1(TypeError,"is not a valid ByteString",J);return $};hw.USVString=(Z,J={})=>{const $=hw.DOMString(Z,J),X=$.length,Y=[];for(let Q=0;Q<X;++Q){const K=$.charCodeAt(Q);if(K<55296||K>57343)Y.push(String.fromCodePoint(K));else if(56320<=K&&K<=57343)Y.push(String.fromCodePoint(65533));else if(Q===X-1)Y.push(String.fromCodePoint(65533));else{const G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){const q=K&1023,F=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*q+F)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};hw.object=(Z,J={})=>{if(Z===null||typeof Z!=="object"&&typeof Z!=="function")throw q1(TypeError,"is not an object",J);return Z};var Sb=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,yb=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;hw.ArrayBuffer=(Z,J={})=>{if(!B3(Z)){if(J.allowShared&&!A7(Z))throw q1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",J);throw q1(TypeError,"is not an ArrayBuffer",J)}if(L7(Z))throw q1(TypeError,"is a detached ArrayBuffer",J);return Z};var kb=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;hw.DataView=(Z,J={})=>{try{kb.call(Z)}catch($){throw q1(TypeError,"is not a DataView",J)}if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is backed by a detached ArrayBuffer",J);return Z};var _b=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((Z)=>{const{name:J}=Z,$=/^[AEIOU]/u.test(J)?"an":"a";hw[J]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||_b.call(X)!==J)throw q1(TypeError,`is not ${$} ${J} object`,Y);if(!Y.allowShared&&A7(X.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(L7(X.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});hw.ArrayBufferView=(Z,J={})=>{if(!ArrayBuffer.isView(Z))throw q1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",J);if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",J);return Z};hw.BufferSource=(Z,J={})=>{if(ArrayBuffer.isView(Z)){if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",J);return Z}if(!J.allowShared&&!B3(Z))throw q1(TypeError,"is not an ArrayBuffer or a view on one",J);if(J.allowShared&&!A7(Z)&&!B3(Z))throw q1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",J);if(L7(Z))throw q1(TypeError,"is a detached ArrayBuffer",J);return Z};hw.DOMTimeStamp=hw["unsigned long long"]});var QJ=z((fw,gw)=>{var Xm=function(Z){return typeof Z==="object"&&Z!==null||typeof Z==="function"},Ym=function(Z,J){for(let $ of Reflect.ownKeys(J)){const X=Reflect.getOwnPropertyDescriptor(J,$);if(X&&!Reflect.defineProperty(Z,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},Qm=function(Z,J){const $=_w(Z);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(J))},_w=function(Z){if(Sw(Z,YJ))return Z[YJ];const J=Object.create(null);J["%Object.prototype%"]=Z.Object.prototype,J["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new Z.Array()[Symbol.iterator]()));try{J["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(Z.eval("(async function* () {})").prototype))}catch{J["%AsyncIteratorPrototype%"]=Km}return Z[YJ]=J,J},Gm=function(Z,J,$){if(!Z[P7])Z[P7]=Object.create(null);if(J in Z[P7])return Z[P7][J];return Z[P7][J]=$(),Z[P7][J]},xw=function(Z){return Z?Z[yw]:null},vw=function(Z){return Z?Z[kw]:null},qm=function(Z){const J=xw(Z);return J?J:Z},Fm=function(Z){const J=vw(Z);return J?J:Z},Hm=function(Z){if(typeof Z!=="string")return!1;const J=Z>>>0;if(J===4294967295)return!1;const $=`${J}`;if(Z!==$)return!1;return!0},Vm=function(Z){try{return zm.call(Z),!0}catch(J){return!1}},Um=function([Z,J],$){let X;switch($){case"key":X=Z;break;case"value":X=J;break;case"key+value":X=[Z,J];break}return{value:X,done:!1}},Sw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),yw=Symbol("wrapper"),kw=Symbol("impl"),P7=Symbol("SameObject caches"),YJ=Symbol.for("[webidl2js] constructor registry"),Km=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Wm=Symbol("internal"),zm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,Mm=Symbol("supports property index"),jm=Symbol("supported property indices"),Am=Symbol("supports property name"),Lm=Symbol("supported property names"),wm=Symbol("indexed property get"),Rm=Symbol("indexed property set new"),Pm=Symbol("indexed property set existing"),Dm=Symbol("named property get"),Tm=Symbol("named property set new"),Im=Symbol("named property set existing"),Em=Symbol("named property delete"),Nm=Symbol("async iterator get the next iteration result"),Bm=Symbol("async iterator return steps"),Cm=Symbol("async iterator initialization steps"),hm=Symbol("async iterator end of iteration");gw.exports=fw={isObject:Xm,hasOwn:Sw,define:Ym,newObjectInRealm:Qm,wrapperSymbol:yw,implSymbol:kw,getSameObject:Gm,ctorRegistrySymbol:YJ,initCtorRegistry:_w,wrapperForImpl:xw,implForWrapper:vw,tryWrapperForImpl:qm,tryImplForWrapper:Fm,iterInternalSymbol:Wm,isArrayBuffer:Vm,isArrayIndexPropName:Hm,supportsPropertyIndex:Mm,supportedPropertyIndices:jm,supportsPropertyName:Am,supportedPropertyNames:Lm,indexedGet:wm,indexedSetNew:Rm,indexedSetExisting:Pm,namedGet:Dm,namedSetNew:Tm,namedSetExisting:Im,namedDelete:Em,asyncIteratorNext:Nm,asyncIteratorReturn:Bm,asyncIteratorInit:Cm,asyncIteratorEOI:hm,iteratorResult:Um}});var mw=z((D11,bw)=>{var Om=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,Sm=/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,ym=/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,km=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,_m=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,xm=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,vm=/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11FD5}-\u{11FF1}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,fm=/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,gm=/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bm=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,mm=/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1123E}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,um=/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;bw.exports={combiningMarks:Om,combiningClassVirama:Sm,validZWNJ:ym,bidiDomain:km,bidiS1LTR:_m,bidiS1RTL:xm,bidiS2:vm,bidiS3:fm,bidiS4EN:gm,bidiS4AN:bm,bidiS5:mm,bidiS6:um}});var uw=z((T11,dm)=>{dm.exports=[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xE0"],[193,1,"\xE1"],[194,1,"\xE2"],[195,1,"\xE3"],[196,1,"\xE4"],[197,1,"\xE5"],[198,1,"\xE6"],[199,1,"\xE7"],[200,1,"\xE8"],[201,1,"\xE9"],[202,1,"\xEA"],[203,1,"\xEB"],[204,1,"\xEC"],[205,1,"\xED"],[206,1,"\xEE"],[207,1,"\xEF"],[208,1,"\xF0"],[209,1,"\xF1"],[210,1,"\xF2"],[211,1,"\xF3"],[212,1,"\xF4"],[213,1,"\xF5"],[214,1,"\xF6"],[215,2],[216,1,"\xF8"],[217,1,"\xF9"],[218,1,"\xFA"],[219,1,"\xFB"],[220,1,"\xFC"],[221,1,"\xFD"],[222,1,"\xFE"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010B"],[267,2],[268,1,"\u010D"],[269,2],[270,1,"\u010F"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011B"],[283,2],[284,1,"\u011D"],[285,2],[286,1,"\u011F"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012B"],[299,2],[300,1,"\u012D"],[301,2],[302,1,"\u012F"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013A"],[314,2],[315,1,"\u013C"],[316,2],[317,1,"\u013E"],[318,2],[[319,320],1,"l\xB7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02BCn"],[330,1,"\u014B"],[331,2],[332,1,"\u014D"],[333,2],[334,1,"\u014F"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015B"],[347,2],[348,1,"\u015D"],[349,2],[350,1,"\u015F"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016B"],[363,2],[364,1,"\u016D"],[365,2],[366,1,"\u016F"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xFF"],[377,1,"\u017A"],[378,2],[379,1,"\u017C"],[380,2],[381,1,"\u017E"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018C"],[[396,397],2],[398,1,"\u01DD"],[399,1,"\u0259"],[400,1,"\u025B"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026F"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01A1"],[417,2],[418,1,"\u01A3"],[419,2],[420,1,"\u01A5"],[421,2],[422,1,"\u0280"],[423,1,"\u01A8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01AD"],[429,2],[430,1,"\u0288"],[431,1,"\u01B0"],[432,2],[433,1,"\u028A"],[434,1,"\u028B"],[435,1,"\u01B4"],[436,2],[437,1,"\u01B6"],[438,2],[439,1,"\u0292"],[440,1,"\u01B9"],[[441,443],2],[444,1,"\u01BD"],[[445,451],2],[[452,454],1,"d\u017E"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01CE"],[462,2],[463,1,"\u01D0"],[464,2],[465,1,"\u01D2"],[466,2],[467,1,"\u01D4"],[468,2],[469,1,"\u01D6"],[470,2],[471,1,"\u01D8"],[472,2],[473,1,"\u01DA"],[474,2],[475,1,"\u01DC"],[[476,477],2],[478,1,"\u01DF"],[479,2],[480,1,"\u01E1"],[481,2],[482,1,"\u01E3"],[483,2],[484,1,"\u01E5"],[485,2],[486,1,"\u01E7"],[487,2],[488,1,"\u01E9"],[489,2],[490,1,"\u01EB"],[491,2],[492,1,"\u01ED"],[493,2],[494,1,"\u01EF"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01F5"],[501,2],[502,1,"\u0195"],[503,1,"\u01BF"],[504,1,"\u01F9"],[505,2],[506,1,"\u01FB"],[507,2],[508,1,"\u01FD"],[509,2],[510,1,"\u01FF"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020B"],[523,2],[524,1,"\u020D"],[525,2],[526,1,"\u020F"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021B"],[539,2],[540,1,"\u021D"],[541,2],[542,1,"\u021F"],[543,2],[544,1,"\u019E"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022B"],[555,2],[556,1,"\u022D"],[557,2],[558,1,"\u022F"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2C65"],[571,1,"\u023C"],[572,2],[573,1,"\u019A"],[574,1,"\u2C66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028C"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024B"],[587,2],[588,1,"\u024D"],[589,2],[590,1,"\u024F"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027B"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030A"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030B"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03B9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02B9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03B9"],[[891,893],2],[894,5,";"],[895,1,"\u03F3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03AC"],[903,1,"\xB7"],[904,1,"\u03AD"],[905,1,"\u03AE"],[906,1,"\u03AF"],[907,3],[908,1,"\u03CC"],[909,3],[910,1,"\u03CD"],[911,1,"\u03CE"],[912,2],[913,1,"\u03B1"],[914,1,"\u03B2"],[915,1,"\u03B3"],[916,1,"\u03B4"],[917,1,"\u03B5"],[918,1,"\u03B6"],[919,1,"\u03B7"],[920,1,"\u03B8"],[921,1,"\u03B9"],[922,1,"\u03BA"],[923,1,"\u03BB"],[924,1,"\u03BC"],[925,1,"\u03BD"],[926,1,"\u03BE"],[927,1,"\u03BF"],[928,1,"\u03C0"],[929,1,"\u03C1"],[930,3],[931,1,"\u03C3"],[932,1,"\u03C4"],[933,1,"\u03C5"],[934,1,"\u03C6"],[935,1,"\u03C7"],[936,1,"\u03C8"],[937,1,"\u03C9"],[938,1,"\u03CA"],[939,1,"\u03CB"],[[940,961],2],[962,6,"\u03C3"],[[963,974],2],[975,1,"\u03D7"],[976,1,"\u03B2"],[977,1,"\u03B8"],[978,1,"\u03C5"],[979,1,"\u03CD"],[980,1,"\u03CB"],[981,1,"\u03C6"],[982,1,"\u03C0"],[983,2],[984,1,"\u03D9"],[985,2],[986,1,"\u03DB"],[987,2],[988,1,"\u03DD"],[989,2],[990,1,"\u03DF"],[991,2],[992,1,"\u03E1"],[993,2],[994,1,"\u03E3"],[995,2],[996,1,"\u03E5"],[997,2],[998,1,"\u03E7"],[999,2],[1000,1,"\u03E9"],[1001,2],[1002,1,"\u03EB"],[1003,2],[1004,1,"\u03ED"],[1005,2],[1006,1,"\u03EF"],[1007,2],[1008,1,"\u03BA"],[1009,1,"\u03C1"],[1010,1,"\u03C3"],[1011,2],[1012,1,"\u03B8"],[1013,1,"\u03B5"],[1014,2],[1015,1,"\u03F8"],[1016,2],[1017,1,"\u03C3"],[1018,1,"\u03FB"],[1019,2],[1020,2],[1021,1,"\u037B"],[1022,1,"\u037C"],[1023,1,"\u037D"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045A"],[1035,1,"\u045B"],[1036,1,"\u045C"],[1037,1,"\u045D"],[1038,1,"\u045E"],[1039,1,"\u045F"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043A"],[1051,1,"\u043B"],[1052,1,"\u043C"],[1053,1,"\u043D"],[1054,1,"\u043E"],[1055,1,"\u043F"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044A"],[1067,1,"\u044B"],[1068,1,"\u044C"],[1069,1,"\u044D"],[1070,1,"\u044E"],[1071,1,"\u044F"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046B"],[1131,2],[1132,1,"\u046D"],[1133,2],[1134,1,"\u046F"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047B"],[1147,2],[1148,1,"\u047D"],[1149,2],[1150,1,"\u047F"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048B"],[1163,2],[1164,1,"\u048D"],[1165,2],[1166,1,"\u048F"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049B"],[1179,2],[1180,1,"\u049D"],[1181,2],[1182,1,"\u049F"],[1183,2],[1184,1,"\u04A1"],[1185,2],[1186,1,"\u04A3"],[1187,2],[1188,1,"\u04A5"],[1189,2],[1190,1,"\u04A7"],[1191,2],[1192,1,"\u04A9"],[1193,2],[1194,1,"\u04AB"],[1195,2],[1196,1,"\u04AD"],[1197,2],[1198,1,"\u04AF"],[1199,2],[1200,1,"\u04B1"],[1201,2],[1202,1,"\u04B3"],[1203,2],[1204,1,"\u04B5"],[1205,2],[1206,1,"\u04B7"],[1207,2],[1208,1,"\u04B9"],[1209,2],[1210,1,"\u04BB"],[1211,2],[1212,1,"\u04BD"],[1213,2],[1214,1,"\u04BF"],[1215,2],[1216,3],[1217,1,"\u04C2"],[1218,2],[1219,1,"\u04C4"],[1220,2],[1221,1,"\u04C6"],[1222,2],[1223,1,"\u04C8"],[1224,2],[1225,1,"\u04CA"],[1226,2],[1227,1,"\u04CC"],[1228,2],[1229,1,"\u04CE"],[1230,2],[1231,2],[1232,1,"\u04D1"],[1233,2],[1234,1,"\u04D3"],[1235,2],[1236,1,"\u04D5"],[1237,2],[1238,1,"\u04D7"],[1239,2],[1240,1,"\u04D9"],[1241,2],[1242,1,"\u04DB"],[1243,2],[1244,1,"\u04DD"],[1245,2],[1246,1,"\u04DF"],[1247,2],[1248,1,"\u04E1"],[1249,2],[1250,1,"\u04E3"],[1251,2],[1252,1,"\u04E5"],[1253,2],[1254,1,"\u04E7"],[1255,2],[1256,1,"\u04E9"],[1257,2],[1258,1,"\u04EB"],[1259,2],[1260,1,"\u04ED"],[1261,2],[1262,1,"\u04EF"],[1263,2],[1264,1,"\u04F1"],[1265,2],[1266,1,"\u04F3"],[1267,2],[1268,1,"\u04F5"],[1269,2],[1270,1,"\u04F7"],[1271,2],[1272,1,"\u04F9"],[1273,2],[1274,1,"\u04FB"],[1275,2],[1276,1,"\u04FD"],[1277,2],[1278,1,"\u04FF"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050B"],[1291,2],[1292,1,"\u050D"],[1293,2],[1294,1,"\u050F"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051B"],[1307,2],[1308,1,"\u051D"],[1309,2],[1310,1,"\u051F"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052B"],[1323,2],[1324,1,"\u052D"],[1325,2],[1326,1,"\u052F"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056A"],[1339,1,"\u056B"],[1340,1,"\u056C"],[1341,1,"\u056D"],[1342,1,"\u056E"],[1343,1,"\u056F"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057A"],[1355,1,"\u057B"],[1356,1,"\u057C"],[1357,1,"\u057D"],[1358,1,"\u057E"],[1359,1,"\u057F"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06C7\u0674"],[1656,1,"\u064A\u0674"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"\u0915\u093C"],[2393,1,"\u0916\u093C"],[2394,1,"\u0917\u093C"],[2395,1,"\u091C\u093C"],[2396,1,"\u0921\u093C"],[2397,1,"\u0922\u093C"],[2398,1,"\u092B\u093C"],[2399,1,"\u092F\u093C"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"\u09A1\u09BC"],[2525,1,"\u09A2\u09BC"],[2526,3],[2527,1,"\u09AF\u09BC"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"\u0A32\u0A3C"],[2612,3],[2613,2],[2614,1,"\u0A38\u0A3C"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"\u0A16\u0A3C"],[2650,1,"\u0A17\u0A3C"],[2651,1,"\u0A1C\u0A3C"],[2652,2],[2653,3],[2654,1,"\u0A2B\u0A3C"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"\u0B21\u0B3C"],[2909,1,"\u0B22\u0B3C"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[[3315,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"\u0E4D\u0E32"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"\u0ECD\u0EB2"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[[3790,3791],3],[[3792,3801],2],[[3802,3803],3],[3804,1,"\u0EAB\u0E99"],[3805,1,"\u0EAB\u0EA1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0F0B"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"\u0F42\u0FB7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0F4C\u0FB7"],[[3918,3921],2],[3922,1,"\u0F51\u0FB7"],[[3923,3926],2],[3927,1,"\u0F56\u0FB7"],[[3928,3931],2],[3932,1,"\u0F5B\u0FB7"],[[3933,3944],2],[3945,1,"\u0F40\u0FB5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0F71\u0F72"],[3956,2],[3957,1,"\u0F71\u0F74"],[3958,1,"\u0FB2\u0F80"],[3959,1,"\u0FB2\u0F71\u0F80"],[3960,1,"\u0FB3\u0F80"],[3961,1,"\u0FB3\u0F71\u0F80"],[[3962,3968],2],[3969,1,"\u0F71\u0F80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0F92\u0FB7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0F9C\u0FB7"],[[3998,4001],2],[4002,1,"\u0FA1\u0FB7"],[[4003,4006],2],[4007,1,"\u0FA6\u0FB7"],[[4008,4011],2],[4012,1,"\u0FAB\u0FB7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0F90\u0FB5"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"\u2D27"],[[4296,4300],3],[4301,1,"\u2D2D"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10DC"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"\u13F0"],[5113,1,"\u13F1"],[5114,1,"\u13F2"],[5115,1,"\u13F3"],[5116,1,"\u13F4"],[5117,1,"\u13F5"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043E"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044A"],[7303,1,"\u0463"],[7304,1,"\uA64B"],[[7305,7311],3],[7312,1,"\u10D0"],[7313,1,"\u10D1"],[7314,1,"\u10D2"],[7315,1,"\u10D3"],[7316,1,"\u10D4"],[7317,1,"\u10D5"],[7318,1,"\u10D6"],[7319,1,"\u10D7"],[7320,1,"\u10D8"],[7321,1,"\u10D9"],[7322,1,"\u10DA"],[7323,1,"\u10DB"],[7324,1,"\u10DC"],[7325,1,"\u10DD"],[7326,1,"\u10DE"],[7327,1,"\u10DF"],[7328,1,"\u10E0"],[7329,1,"\u10E1"],[7330,1,"\u10E2"],[7331,1,"\u10E3"],[7332,1,"\u10E4"],[7333,1,"\u10E5"],[7334,1,"\u10E6"],[7335,1,"\u10E7"],[7336,1,"\u10E8"],[7337,1,"\u10E9"],[7338,1,"\u10EA"],[7339,1,"\u10EB"],[7340,1,"\u10EC"],[7341,1,"\u10ED"],[7342,1,"\u10EE"],[7343,1,"\u10EF"],[7344,1,"\u10F0"],[7345,1,"\u10F1"],[7346,1,"\u10F2"],[7347,1,"\u10F3"],[7348,1,"\u10F4"],[7349,1,"\u10F5"],[7350,1,"\u10F6"],[7351,1,"\u10F7"],[7352,1,"\u10F8"],[7353,1,"\u10F9"],[7354,1,"\u10FA"],[[7355,7356],3],[7357,1,"\u10FD"],[7358,1,"\u10FE"],[7359,1,"\u10FF"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"\xE6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01DD"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1D02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025B"],[7500,1,"\u025C"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014B"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1D16"],[7509,1,"\u1D17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1D1D"],[7514,1,"\u026F"],[7515,1,"v"],[7516,1,"\u1D25"],[7517,1,"\u03B2"],[7518,1,"\u03B3"],[7519,1,"\u03B4"],[7520,1,"\u03C6"],[7521,1,"\u03C7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03B2"],[7527,1,"\u03B3"],[7528,1,"\u03C1"],[7529,1,"\u03C6"],[7530,1,"\u03C7"],[7531,2],[[7532,7543],2],[7544,1,"\u043D"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xF0"],[7583,1,"\u025C"],[7584,1,"f"],[7585,1,"\u025F"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026A"],[7591,1,"\u1D7B"],[7592,1,"\u029D"],[7593,1,"\u026D"],[7594,1,"\u1D85"],[7595,1,"\u029F"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01AB"],[7606,1,"\u0289"],[7607,1,"\u028A"],[7608,1,"\u1D1C"],[7609,1,"\u028B"],[7610,1,"\u028C"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03B8"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"\u1E01"],[7681,2],[7682,1,"\u1E03"],[7683,2],[7684,1,"\u1E05"],[7685,2],[7686,1,"\u1E07"],[7687,2],[7688,1,"\u1E09"],[7689,2],[7690,1,"\u1E0B"],[7691,2],[7692,1,"\u1E0D"],[7693,2],[7694,1,"\u1E0F"],[7695,2],[7696,1,"\u1E11"],[7697,2],[7698,1,"\u1E13"],[7699,2],[7700,1,"\u1E15"],[7701,2],[7702,1,"\u1E17"],[7703,2],[7704,1,"\u1E19"],[7705,2],[7706,1,"\u1E1B"],[7707,2],[7708,1,"\u1E1D"],[7709,2],[7710,1,"\u1E1F"],[7711,2],[7712,1,"\u1E21"],[7713,2],[7714,1,"\u1E23"],[7715,2],[7716,1,"\u1E25"],[7717,2],[7718,1,"\u1E27"],[7719,2],[7720,1,"\u1E29"],[7721,2],[7722,1,"\u1E2B"],[7723,2],[7724,1,"\u1E2D"],[7725,2],[7726,1,"\u1E2F"],[7727,2],[7728,1,"\u1E31"],[7729,2],[7730,1,"\u1E33"],[7731,2],[7732,1,"\u1E35"],[7733,2],[7734,1,"\u1E37"],[7735,2],[7736,1,"\u1E39"],[7737,2],[7738,1,"\u1E3B"],[7739,2],[7740,1,"\u1E3D"],[7741,2],[7742,1,"\u1E3F"],[7743,2],[7744,1,"\u1E41"],[7745,2],[7746,1,"\u1E43"],[7747,2],[7748,1,"\u1E45"],[7749,2],[7750,1,"\u1E47"],[7751,2],[7752,1,"\u1E49"],[7753,2],[7754,1,"\u1E4B"],[7755,2],[7756,1,"\u1E4D"],[7757,2],[7758,1,"\u1E4F"],[7759,2],[7760,1,"\u1E51"],[7761,2],[7762,1,"\u1E53"],[7763,2],[7764,1,"\u1E55"],[7765,2],[7766,1,"\u1E57"],[7767,2],[7768,1,"\u1E59"],[7769,2],[7770,1,"\u1E5B"],[7771,2],[7772,1,"\u1E5D"],[7773,2],[7774,1,"\u1E5F"],[7775,2],[7776,1,"\u1E61"],[7777,2],[7778,1,"\u1E63"],[7779,2],[7780,1,"\u1E65"],[7781,2],[7782,1,"\u1E67"],[7783,2],[7784,1,"\u1E69"],[7785,2],[7786,1,"\u1E6B"],[7787,2],[7788,1,"\u1E6D"],[7789,2],[7790,1,"\u1E6F"],[7791,2],[7792,1,"\u1E71"],[7793,2],[7794,1,"\u1E73"],[7795,2],[7796,1,"\u1E75"],[7797,2],[7798,1,"\u1E77"],[7799,2],[7800,1,"\u1E79"],[7801,2],[7802,1,"\u1E7B"],[7803,2],[7804,1,"\u1E7D"],[7805,2],[7806,1,"\u1E7F"],[7807,2],[7808,1,"\u1E81"],[7809,2],[7810,1,"\u1E83"],[7811,2],[7812,1,"\u1E85"],[7813,2],[7814,1,"\u1E87"],[7815,2],[7816,1,"\u1E89"],[7817,2],[7818,1,"\u1E8B"],[7819,2],[7820,1,"\u1E8D"],[7821,2],[7822,1,"\u1E8F"],[7823,2],[7824,1,"\u1E91"],[7825,2],[7826,1,"\u1E93"],[7827,2],[7828,1,"\u1E95"],[[7829,7833],2],[7834,1,"a\u02BE"],[7835,1,"\u1E61"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"\u1EA1"],[7841,2],[7842,1,"\u1EA3"],[7843,2],[7844,1,"\u1EA5"],[7845,2],[7846,1,"\u1EA7"],[7847,2],[7848,1,"\u1EA9"],[7849,2],[7850,1,"\u1EAB"],[7851,2],[7852,1,"\u1EAD"],[7853,2],[7854,1,"\u1EAF"],[7855,2],[7856,1,"\u1EB1"],[7857,2],[7858,1,"\u1EB3"],[7859,2],[7860,1,"\u1EB5"],[7861,2],[7862,1,"\u1EB7"],[7863,2],[7864,1,"\u1EB9"],[7865,2],[7866,1,"\u1EBB"],[7867,2],[7868,1,"\u1EBD"],[7869,2],[7870,1,"\u1EBF"],[7871,2],[7872,1,"\u1EC1"],[7873,2],[7874,1,"\u1EC3"],[7875,2],[7876,1,"\u1EC5"],[7877,2],[7878,1,"\u1EC7"],[7879,2],[7880,1,"\u1EC9"],[7881,2],[7882,1,"\u1ECB"],[7883,2],[7884,1,"\u1ECD"],[7885,2],[7886,1,"\u1ECF"],[7887,2],[7888,1,"\u1ED1"],[7889,2],[7890,1,"\u1ED3"],[7891,2],[7892,1,"\u1ED5"],[7893,2],[7894,1,"\u1ED7"],[7895,2],[7896,1,"\u1ED9"],[7897,2],[7898,1,"\u1EDB"],[7899,2],[7900,1,"\u1EDD"],[7901,2],[7902,1,"\u1EDF"],[7903,2],[7904,1,"\u1EE1"],[7905,2],[7906,1,"\u1EE3"],[7907,2],[7908,1,"\u1EE5"],[7909,2],[7910,1,"\u1EE7"],[7911,2],[7912,1,"\u1EE9"],[7913,2],[7914,1,"\u1EEB"],[7915,2],[7916,1,"\u1EED"],[7917,2],[7918,1,"\u1EEF"],[7919,2],[7920,1,"\u1EF1"],[7921,2],[7922,1,"\u1EF3"],[7923,2],[7924,1,"\u1EF5"],[7925,2],[7926,1,"\u1EF7"],[7927,2],[7928,1,"\u1EF9"],[7929,2],[7930,1,"\u1EFB"],[7931,2],[7932,1,"\u1EFD"],[7933,2],[7934,1,"\u1EFF"],[7935,2],[[7936,7943],2],[7944,1,"\u1F00"],[7945,1,"\u1F01"],[7946,1,"\u1F02"],[7947,1,"\u1F03"],[7948,1,"\u1F04"],[7949,1,"\u1F05"],[7950,1,"\u1F06"],[7951,1,"\u1F07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1F10"],[7961,1,"\u1F11"],[7962,1,"\u1F12"],[7963,1,"\u1F13"],[7964,1,"\u1F14"],[7965,1,"\u1F15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1F20"],[7977,1,"\u1F21"],[7978,1,"\u1F22"],[7979,1,"\u1F23"],[7980,1,"\u1F24"],[7981,1,"\u1F25"],[7982,1,"\u1F26"],[7983,1,"\u1F27"],[[7984,7991],2],[7992,1,"\u1F30"],[7993,1,"\u1F31"],[7994,1,"\u1F32"],[7995,1,"\u1F33"],[7996,1,"\u1F34"],[7997,1,"\u1F35"],[7998,1,"\u1F36"],[7999,1,"\u1F37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1F40"],[8009,1,"\u1F41"],[8010,1,"\u1F42"],[8011,1,"\u1F43"],[8012,1,"\u1F44"],[8013,1,"\u1F45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1F51"],[8026,3],[8027,1,"\u1F53"],[8028,3],[8029,1,"\u1F55"],[8030,3],[8031,1,"\u1F57"],[[8032,8039],2],[8040,1,"\u1F60"],[8041,1,"\u1F61"],[8042,1,"\u1F62"],[8043,1,"\u1F63"],[8044,1,"\u1F64"],[8045,1,"\u1F65"],[8046,1,"\u1F66"],[8047,1,"\u1F67"],[8048,2],[8049,1,"\u03AC"],[8050,2],[8051,1,"\u03AD"],[8052,2],[8053,1,"\u03AE"],[8054,2],[8055,1,"\u03AF"],[8056,2],[8057,1,"\u03CC"],[8058,2],[8059,1,"\u03CD"],[8060,2],[8061,1,"\u03CE"],[[8062,8063],3],[8064,1,"\u1F00\u03B9"],[8065,1,"\u1F01\u03B9"],[8066,1,"\u1F02\u03B9"],[8067,1,"\u1F03\u03B9"],[8068,1,"\u1F04\u03B9"],[8069,1,"\u1F05\u03B9"],[8070,1,"\u1F06\u03B9"],[8071,1,"\u1F07\u03B9"],[8072,1,"\u1F00\u03B9"],[8073,1,"\u1F01\u03B9"],[8074,1,"\u1F02\u03B9"],[8075,1,"\u1F03\u03B9"],[8076,1,"\u1F04\u03B9"],[8077,1,"\u1F05\u03B9"],[8078,1,"\u1F06\u03B9"],[8079,1,"\u1F07\u03B9"],[8080,1,"\u1F20\u03B9"],[8081,1,"\u1F21\u03B9"],[8082,1,"\u1F22\u03B9"],[8083,1,"\u1F23\u03B9"],[8084,1,"\u1F24\u03B9"],[8085,1,"\u1F25\u03B9"],[8086,1,"\u1F26\u03B9"],[8087,1,"\u1F27\u03B9"],[8088,1,"\u1F20\u03B9"],[8089,1,"\u1F21\u03B9"],[8090,1,"\u1F22\u03B9"],[8091,1,"\u1F23\u03B9"],[8092,1,"\u1F24\u03B9"],[8093,1,"\u1F25\u03B9"],[8094,1,"\u1F26\u03B9"],[8095,1,"\u1F27\u03B9"],[8096,1,"\u1F60\u03B9"],[8097,1,"\u1F61\u03B9"],[8098,1,"\u1F62\u03B9"],[8099,1,"\u1F63\u03B9"],[8100,1,"\u1F64\u03B9"],[8101,1,"\u1F65\u03B9"],[8102,1,"\u1F66\u03B9"],[8103,1,"\u1F67\u03B9"],[8104,1,"\u1F60\u03B9"],[8105,1,"\u1F61\u03B9"],[8106,1,"\u1F62\u03B9"],[8107,1,"\u1F63\u03B9"],[8108,1,"\u1F64\u03B9"],[8109,1,"\u1F65\u03B9"],[8110,1,"\u1F66\u03B9"],[8111,1,"\u1F67\u03B9"],[[8112,8113],2],[8114,1,"\u1F70\u03B9"],[8115,1,"\u03B1\u03B9"],[8116,1,"\u03AC\u03B9"],[8117,3],[8118,2],[8119,1,"\u1FB6\u03B9"],[8120,1,"\u1FB0"],[8121,1,"\u1FB1"],[8122,1,"\u1F70"],[8123,1,"\u03AC"],[8124,1,"\u03B1\u03B9"],[8125,5," \u0313"],[8126,1,"\u03B9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1F74\u03B9"],[8131,1,"\u03B7\u03B9"],[8132,1,"\u03AE\u03B9"],[8133,3],[8134,2],[8135,1,"\u1FC6\u03B9"],[8136,1,"\u1F72"],[8137,1,"\u03AD"],[8138,1,"\u1F74"],[8139,1,"\u03AE"],[8140,1,"\u03B7\u03B9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1FD0"],[8153,1,"\u1FD1"],[8154,1,"\u1F76"],[8155,1,"\u03AF"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03B0"],[[8164,8167],2],[8168,1,"\u1FE0"],[8169,1,"\u1FE1"],[8170,1,"\u1F7A"],[8171,1,"\u03CD"],[8172,1,"\u1FE5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1F7C\u03B9"],[8179,1,"\u03C9\u03B9"],[8180,1,"\u03CE\u03B9"],[8181,3],[8182,2],[8183,1,"\u1FF6\u03B9"],[8184,1,"\u1F78"],[8185,1,"\u03CC"],[8186,1,"\u1F7C"],[8187,1,"\u03CE"],[8188,1,"\u03C9\u03B9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"\u2212"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"\xB0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025B"],[8456,2],[8457,1,"\xB0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"\u03C9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xE5"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"\u05D0"],[8502,1,"\u05D1"],[8503,1,"\u05D2"],[8504,1,"\u05D3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03C0"],[[8509,8510],1,"\u03B3"],[8511,1,"\u03C0"],[8512,1,"\u2211"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222B\u222B"],[8749,1,"\u222B\u222B\u222B"],[8750,2],[8751,1,"\u222E\u222E"],[8752,1,"\u222E\u222E\u222E"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"\u3008"],[9002,1,"\u3009"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"\u222B\u222B\u222B\u222B"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2ADD\u0338"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"\u2C30"],[11265,1,"\u2C31"],[11266,1,"\u2C32"],[11267,1,"\u2C33"],[11268,1,"\u2C34"],[11269,1,"\u2C35"],[11270,1,"\u2C36"],[11271,1,"\u2C37"],[11272,1,"\u2C38"],[11273,1,"\u2C39"],[11274,1,"\u2C3A"],[11275,1,"\u2C3B"],[11276,1,"\u2C3C"],[11277,1,"\u2C3D"],[11278,1,"\u2C3E"],[11279,1,"\u2C3F"],[11280,1,"\u2C40"],[11281,1,"\u2C41"],[11282,1,"\u2C42"],[11283,1,"\u2C43"],[11284,1,"\u2C44"],[11285,1,"\u2C45"],[11286,1,"\u2C46"],[11287,1,"\u2C47"],[11288,1,"\u2C48"],[11289,1,"\u2C49"],[11290,1,"\u2C4A"],[11291,1,"\u2C4B"],[11292,1,"\u2C4C"],[11293,1,"\u2C4D"],[11294,1,"\u2C4E"],[11295,1,"\u2C4F"],[11296,1,"\u2C50"],[11297,1,"\u2C51"],[11298,1,"\u2C52"],[11299,1,"\u2C53"],[11300,1,"\u2C54"],[11301,1,"\u2C55"],[11302,1,"\u2C56"],[11303,1,"\u2C57"],[11304,1,"\u2C58"],[11305,1,"\u2C59"],[11306,1,"\u2C5A"],[11307,1,"\u2C5B"],[11308,1,"\u2C5C"],[11309,1,"\u2C5D"],[11310,1,"\u2C5E"],[11311,1,"\u2C5F"],[[11312,11358],2],[11359,2],[11360,1,"\u2C61"],[11361,2],[11362,1,"\u026B"],[11363,1,"\u1D7D"],[11364,1,"\u027D"],[[11365,11366],2],[11367,1,"\u2C68"],[11368,2],[11369,1,"\u2C6A"],[11370,2],[11371,1,"\u2C6C"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2C73"],[11379,2],[11380,2],[11381,1,"\u2C76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023F"],[11391,1,"\u0240"],[11392,1,"\u2C81"],[11393,2],[11394,1,"\u2C83"],[11395,2],[11396,1,"\u2C85"],[11397,2],[11398,1,"\u2C87"],[11399,2],[11400,1,"\u2C89"],[11401,2],[11402,1,"\u2C8B"],[11403,2],[11404,1,"\u2C8D"],[11405,2],[11406,1,"\u2C8F"],[11407,2],[11408,1,"\u2C91"],[11409,2],[11410,1,"\u2C93"],[11411,2],[11412,1,"\u2C95"],[11413,2],[11414,1,"\u2C97"],[11415,2],[11416,1,"\u2C99"],[11417,2],[11418,1,"\u2C9B"],[11419,2],[11420,1,"\u2C9D"],[11421,2],[11422,1,"\u2C9F"],[11423,2],[11424,1,"\u2CA1"],[11425,2],[11426,1,"\u2CA3"],[11427,2],[11428,1,"\u2CA5"],[11429,2],[11430,1,"\u2CA7"],[11431,2],[11432,1,"\u2CA9"],[11433,2],[11434,1,"\u2CAB"],[11435,2],[11436,1,"\u2CAD"],[11437,2],[11438,1,"\u2CAF"],[11439,2],[11440,1,"\u2CB1"],[11441,2],[11442,1,"\u2CB3"],[11443,2],[11444,1,"\u2CB5"],[11445,2],[11446,1,"\u2CB7"],[11447,2],[11448,1,"\u2CB9"],[11449,2],[11450,1,"\u2CBB"],[11451,2],[11452,1,"\u2CBD"],[11453,2],[11454,1,"\u2CBF"],[11455,2],[11456,1,"\u2CC1"],[11457,2],[11458,1,"\u2CC3"],[11459,2],[11460,1,"\u2CC5"],[11461,2],[11462,1,"\u2CC7"],[11463,2],[11464,1,"\u2CC9"],[11465,2],[11466,1,"\u2CCB"],[11467,2],[11468,1,"\u2CCD"],[11469,2],[11470,1,"\u2CCF"],[11471,2],[11472,1,"\u2CD1"],[11473,2],[11474,1,"\u2CD3"],[11475,2],[11476,1,"\u2CD5"],[11477,2],[11478,1,"\u2CD7"],[11479,2],[11480,1,"\u2CD9"],[11481,2],[11482,1,"\u2CDB"],[11483,2],[11484,1,"\u2CDD"],[11485,2],[11486,1,"\u2CDF"],[11487,2],[11488,1,"\u2CE1"],[11489,2],[11490,1,"\u2CE3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2CEC"],[11500,2],[11501,1,"\u2CEE"],[[11502,11505],2],[11506,1,"\u2CF3"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"\u2D61"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"\u6BCD"],[[11936,12018],2],[12019,1,"\u9F9F"],[[12020,12031],3],[12032,1,"\u4E00"],[12033,1,"\u4E28"],[12034,1,"\u4E36"],[12035,1,"\u4E3F"],[12036,1,"\u4E59"],[12037,1,"\u4E85"],[12038,1,"\u4E8C"],[12039,1,"\u4EA0"],[12040,1,"\u4EBA"],[12041,1,"\u513F"],[12042,1,"\u5165"],[12043,1,"\u516B"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51AB"],[12047,1,"\u51E0"],[12048,1,"\u51F5"],[12049,1,"\u5200"],[12050,1,"\u529B"],[12051,1,"\u52F9"],[12052,1,"\u5315"],[12053,1,"\u531A"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535C"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53B6"],[12060,1,"\u53C8"],[12061,1,"\u53E3"],[12062,1,"\u56D7"],[12063,1,"\u571F"],[12064,1,"\u58EB"],[12065,1,"\u5902"],[12066,1,"\u590A"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5B50"],[12071,1,"\u5B80"],[12072,1,"\u5BF8"],[12073,1,"\u5C0F"],[12074,1,"\u5C22"],[12075,1,"\u5C38"],[12076,1,"\u5C6E"],[12077,1,"\u5C71"],[12078,1,"\u5DDB"],[12079,1,"\u5DE5"],[12080,1,"\u5DF1"],[12081,1,"\u5DFE"],[12082,1,"\u5E72"],[12083,1,"\u5E7A"],[12084,1,"\u5E7F"],[12085,1,"\u5EF4"],[12086,1,"\u5EFE"],[12087,1,"\u5F0B"],[12088,1,"\u5F13"],[12089,1,"\u5F50"],[12090,1,"\u5F61"],[12091,1,"\u5F73"],[12092,1,"\u5FC3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624B"],[12096,1,"\u652F"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65A4"],[12101,1,"\u65B9"],[12102,1,"\u65E0"],[12103,1,"\u65E5"],[12104,1,"\u66F0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6B20"],[12108,1,"\u6B62"],[12109,1,"\u6B79"],[12110,1,"\u6BB3"],[12111,1,"\u6BCB"],[12112,1,"\u6BD4"],[12113,1,"\u6BDB"],[12114,1,"\u6C0F"],[12115,1,"\u6C14"],[12116,1,"\u6C34"],[12117,1,"\u706B"],[12118,1,"\u722A"],[12119,1,"\u7236"],[12120,1,"\u723B"],[12121,1,"\u723F"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725B"],[12125,1,"\u72AC"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74DC"],[12129,1,"\u74E6"],[12130,1,"\u7518"],[12131,1,"\u751F"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758B"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767D"],[12138,1,"\u76AE"],[12139,1,"\u76BF"],[12140,1,"\u76EE"],[12141,1,"\u77DB"],[12142,1,"\u77E2"],[12143,1,"\u77F3"],[12144,1,"\u793A"],[12145,1,"\u79B8"],[12146,1,"\u79BE"],[12147,1,"\u7A74"],[12148,1,"\u7ACB"],[12149,1,"\u7AF9"],[12150,1,"\u7C73"],[12151,1,"\u7CF8"],[12152,1,"\u7F36"],[12153,1,"\u7F51"],[12154,1,"\u7F8A"],[12155,1,"\u7FBD"],[12156,1,"\u8001"],[12157,1,"\u800C"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807F"],[12161,1,"\u8089"],[12162,1,"\u81E3"],[12163,1,"\u81EA"],[12164,1,"\u81F3"],[12165,1,"\u81FC"],[12166,1,"\u820C"],[12167,1,"\u821B"],[12168,1,"\u821F"],[12169,1,"\u826E"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864D"],[12173,1,"\u866B"],[12174,1,"\u8840"],[12175,1,"\u884C"],[12176,1,"\u8863"],[12177,1,"\u897E"],[12178,1,"\u898B"],[12179,1,"\u89D2"],[12180,1,"\u8A00"],[12181,1,"\u8C37"],[12182,1,"\u8C46"],[12183,1,"\u8C55"],[12184,1,"\u8C78"],[12185,1,"\u8C9D"],[12186,1,"\u8D64"],[12187,1,"\u8D70"],[12188,1,"\u8DB3"],[12189,1,"\u8EAB"],[12190,1,"\u8ECA"],[12191,1,"\u8F9B"],[12192,1,"\u8FB0"],[12193,1,"\u8FB5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91C6"],[12197,1,"\u91CC"],[12198,1,"\u91D1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961C"],[12202,1,"\u96B6"],[12203,1,"\u96B9"],[12204,1,"\u96E8"],[12205,1,"\u9751"],[12206,1,"\u975E"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97CB"],[12210,1,"\u97ED"],[12211,1,"\u97F3"],[12212,1,"\u9801"],[12213,1,"\u98A8"],[12214,1,"\u98DB"],[12215,1,"\u98DF"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99AC"],[12219,1,"\u9AA8"],[12220,1,"\u9AD8"],[12221,1,"\u9ADF"],[12222,1,"\u9B25"],[12223,1,"\u9B2F"],[12224,1,"\u9B32"],[12225,1,"\u9B3C"],[12226,1,"\u9B5A"],[12227,1,"\u9CE5"],[12228,1,"\u9E75"],[12229,1,"\u9E7F"],[12230,1,"\u9EA5"],[12231,1,"\u9EBB"],[12232,1,"\u9EC3"],[12233,1,"\u9ECD"],[12234,1,"\u9ED1"],[12235,1,"\u9EF9"],[12236,1,"\u9EFD"],[12237,1,"\u9F0E"],[12238,1,"\u9F13"],[12239,1,"\u9F20"],[12240,1,"\u9F3B"],[12241,1,"\u9F4A"],[12242,1,"\u9F52"],[12243,1,"\u9F8D"],[12244,1,"\u9F9C"],[12245,1,"\u9FA0"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," \u3099"],[12444,5," \u309A"],[[12445,12446],2],[12447,1,"\u3088\u308A"],[12448,2],[[12449,12542],2],[12543,1,"\u30B3\u30C8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11AA"],[12596,1,"\u1102"],[12597,1,"\u11AC"],[12598,1,"\u11AD"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11B0"],[12603,1,"\u11B1"],[12604,1,"\u11B2"],[12605,1,"\u11B3"],[12606,1,"\u11B4"],[12607,1,"\u11B5"],[12608,1,"\u111A"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110A"],[12615,1,"\u110B"],[12616,1,"\u110C"],[12617,1,"\u110D"],[12618,1,"\u110E"],[12619,1,"\u110F"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116A"],[12633,1,"\u116B"],[12634,1,"\u116C"],[12635,1,"\u116D"],[12636,1,"\u116E"],[12637,1,"\u116F"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11C7"],[12648,1,"\u11C8"],[12649,1,"\u11CC"],[12650,1,"\u11CE"],[12651,1,"\u11D3"],[12652,1,"\u11D7"],[12653,1,"\u11D9"],[12654,1,"\u111C"],[12655,1,"\u11DD"],[12656,1,"\u11DF"],[12657,1,"\u111D"],[12658,1,"\u111E"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112B"],[12665,1,"\u112C"],[12666,1,"\u112D"],[12667,1,"\u112E"],[12668,1,"\u112F"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114C"],[12674,1,"\u11F1"],[12675,1,"\u11F2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119E"],[12686,1,"\u11A1"],[12687,3],[[12688,12689],2],[12690,1,"\u4E00"],[12691,1,"\u4E8C"],[12692,1,"\u4E09"],[12693,1,"\u56DB"],[12694,1,"\u4E0A"],[12695,1,"\u4E2D"],[12696,1,"\u4E0B"],[12697,1,"\u7532"],[12698,1,"\u4E59"],[12699,1,"\u4E19"],[12700,1,"\u4E01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4EBA"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110B)"],[12808,5,"(\u110C)"],[12809,5,"(\u110E)"],[12810,5,"(\u110F)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uAC00)"],[12815,5,"(\uB098)"],[12816,5,"(\uB2E4)"],[12817,5,"(\uB77C)"],[12818,5,"(\uB9C8)"],[12819,5,"(\uBC14)"],[12820,5,"(\uC0AC)"],[12821,5,"(\uC544)"],[12822,5,"(\uC790)"],[12823,5,"(\uCC28)"],[12824,5,"(\uCE74)"],[12825,5,"(\uD0C0)"],[12826,5,"(\uD30C)"],[12827,5,"(\uD558)"],[12828,5,"(\uC8FC)"],[12829,5,"(\uC624\uC804)"],[12830,5,"(\uC624\uD6C4)"],[12831,3],[12832,5,"(\u4E00)"],[12833,5,"(\u4E8C)"],[12834,5,"(\u4E09)"],[12835,5,"(\u56DB)"],[12836,5,"(\u4E94)"],[12837,5,"(\u516D)"],[12838,5,"(\u4E03)"],[12839,5,"(\u516B)"],[12840,5,"(\u4E5D)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706B)"],[12844,5,"(\u6C34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91D1)"],[12847,5,"(\u571F)"],[12848,5,"(\u65E5)"],[12849,5,"(\u682A)"],[12850,5,"(\u6709)"],[12851,5,"(\u793E)"],[12852,5,"(\u540D)"],[12853,5,"(\u7279)"],[12854,5,"(\u8CA1)"],[12855,5,"(\u795D)"],[12856,5,"(\u52B4)"],[12857,5,"(\u4EE3)"],[12858,5,"(\u547C)"],[12859,5,"(\u5B66)"],[12860,5,"(\u76E3)"],[12861,5,"(\u4F01)"],[12862,5,"(\u8CC7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796D)"],[12865,5,"(\u4F11)"],[12866,5,"(\u81EA)"],[12867,5,"(\u81F3)"],[12868,1,"\u554F"],[12869,1,"\u5E7C"],[12870,1,"\u6587"],[12871,1,"\u7B8F"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110B"],[12904,1,"\u110C"],[12905,1,"\u110E"],[12906,1,"\u110F"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uAC00"],[12911,1,"\uB098"],[12912,1,"\uB2E4"],[12913,1,"\uB77C"],[12914,1,"\uB9C8"],[12915,1,"\uBC14"],[12916,1,"\uC0AC"],[12917,1,"\uC544"],[12918,1,"\uC790"],[12919,1,"\uCC28"],[12920,1,"\uCE74"],[12921,1,"\uD0C0"],[12922,1,"\uD30C"],[12923,1,"\uD558"],[12924,1,"\uCC38\uACE0"],[12925,1,"\uC8FC\uC758"],[12926,1,"\uC6B0"],[12927,2],[12928,1,"\u4E00"],[12929,1,"\u4E8C"],[12930,1,"\u4E09"],[12931,1,"\u56DB"],[12932,1,"\u4E94"],[12933,1,"\u516D"],[12934,1,"\u4E03"],[12935,1,"\u516B"],[12936,1,"\u4E5D"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706B"],[12940,1,"\u6C34"],[12941,1,"\u6728"],[12942,1,"\u91D1"],[12943,1,"\u571F"],[12944,1,"\u65E5"],[12945,1,"\u682A"],[12946,1,"\u6709"],[12947,1,"\u793E"],[12948,1,"\u540D"],[12949,1,"\u7279"],[12950,1,"\u8CA1"],[12951,1,"\u795D"],[12952,1,"\u52B4"],[12953,1,"\u79D8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512A"],[12958,1,"\u5370"],[12959,1,"\u6CE8"],[12960,1,"\u9805"],[12961,1,"\u4F11"],[12962,1,"\u5199"],[12963,1,"\u6B63"],[12964,1,"\u4E0A"],[12965,1,"\u4E2D"],[12966,1,"\u4E0B"],[12967,1,"\u5DE6"],[12968,1,"\u53F3"],[12969,1,"\u533B"],[12970,1,"\u5B97"],[12971,1,"\u5B66"],[12972,1,"\u76E3"],[12973,1,"\u4F01"],[12974,1,"\u8CC7"],[12975,1,"\u5354"],[12976,1,"\u591C"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30A2"],[13009,1,"\u30A4"],[13010,1,"\u30A6"],[13011,1,"\u30A8"],[13012,1,"\u30AA"],[13013,1,"\u30AB"],[13014,1,"\u30AD"],[13015,1,"\u30AF"],[13016,1,"\u30B1"],[13017,1,"\u30B3"],[13018,1,"\u30B5"],[13019,1,"\u30B7"],[13020,1,"\u30B9"],[13021,1,"\u30BB"],[13022,1,"\u30BD"],[13023,1,"\u30BF"],[13024,1,"\u30C1"],[13025,1,"\u30C4"],[13026,1,"\u30C6"],[13027,1,"\u30C8"],[13028,1,"\u30CA"],[13029,1,"\u30CB"],[13030,1,"\u30CC"],[13031,1,"\u30CD"],[13032,1,"\u30CE"],[13033,1,"\u30CF"],[13034,1,"\u30D2"],[13035,1,"\u30D5"],[13036,1,"\u30D8"],[13037,1,"\u30DB"],[13038,1,"\u30DE"],[13039,1,"\u30DF"],[13040,1,"\u30E0"],[13041,1,"\u30E1"],[13042,1,"\u30E2"],[13043,1,"\u30E4"],[13044,1,"\u30E6"],[13045,1,"\u30E8"],[13046,1,"\u30E9"],[13047,1,"\u30EA"],[13048,1,"\u30EB"],[13049,1,"\u30EC"],[13050,1,"\u30ED"],[13051,1,"\u30EF"],[13052,1,"\u30F0"],[13053,1,"\u30F1"],[13054,1,"\u30F2"],[13055,1,"\u4EE4\u548C"],[13056,1,"\u30A2\u30D1\u30FC\u30C8"],[13057,1,"\u30A2\u30EB\u30D5\u30A1"],[13058,1,"\u30A2\u30F3\u30DA\u30A2"],[13059,1,"\u30A2\u30FC\u30EB"],[13060,1,"\u30A4\u30CB\u30F3\u30B0"],[13061,1,"\u30A4\u30F3\u30C1"],[13062,1,"\u30A6\u30A9\u30F3"],[13063,1,"\u30A8\u30B9\u30AF\u30FC\u30C9"],[13064,1,"\u30A8\u30FC\u30AB\u30FC"],[13065,1,"\u30AA\u30F3\u30B9"],[13066,1,"\u30AA\u30FC\u30E0"],[13067,1,"\u30AB\u30A4\u30EA"],[13068,1,"\u30AB\u30E9\u30C3\u30C8"],[13069,1,"\u30AB\u30ED\u30EA\u30FC"],[13070,1,"\u30AC\u30ED\u30F3"],[13071,1,"\u30AC\u30F3\u30DE"],[13072,1,"\u30AE\u30AC"],[13073,1,"\u30AE\u30CB\u30FC"],[13074,1,"\u30AD\u30E5\u30EA\u30FC"],[13075,1,"\u30AE\u30EB\u30C0\u30FC"],[13076,1,"\u30AD\u30ED"],[13077,1,"\u30AD\u30ED\u30B0\u30E9\u30E0"],[13078,1,"\u30AD\u30ED\u30E1\u30FC\u30C8\u30EB"],[13079,1,"\u30AD\u30ED\u30EF\u30C3\u30C8"],[13080,1,"\u30B0\u30E9\u30E0"],[13081,1,"\u30B0\u30E9\u30E0\u30C8\u30F3"],[13082,1,"\u30AF\u30EB\u30BC\u30A4\u30ED"],[13083,1,"\u30AF\u30ED\u30FC\u30CD"],[13084,1,"\u30B1\u30FC\u30B9"],[13085,1,"\u30B3\u30EB\u30CA"],[13086,1,"\u30B3\u30FC\u30DD"],[13087,1,"\u30B5\u30A4\u30AF\u30EB"],[13088,1,"\u30B5\u30F3\u30C1\u30FC\u30E0"],[13089,1,"\u30B7\u30EA\u30F3\u30B0"],[13090,1,"\u30BB\u30F3\u30C1"],[13091,1,"\u30BB\u30F3\u30C8"],[13092,1,"\u30C0\u30FC\u30B9"],[13093,1,"\u30C7\u30B7"],[13094,1,"\u30C9\u30EB"],[13095,1,"\u30C8\u30F3"],[13096,1,"\u30CA\u30CE"],[13097,1,"\u30CE\u30C3\u30C8"],[13098,1,"\u30CF\u30A4\u30C4"],[13099,1,"\u30D1\u30FC\u30BB\u30F3\u30C8"],[13100,1,"\u30D1\u30FC\u30C4"],[13101,1,"\u30D0\u30FC\u30EC\u30EB"],[13102,1,"\u30D4\u30A2\u30B9\u30C8\u30EB"],[13103,1,"\u30D4\u30AF\u30EB"],[13104,1,"\u30D4\u30B3"],[13105,1,"\u30D3\u30EB"],[13106,1,"\u30D5\u30A1\u30E9\u30C3\u30C9"],[13107,1,"\u30D5\u30A3\u30FC\u30C8"],[13108,1,"\u30D6\u30C3\u30B7\u30A7\u30EB"],[13109,1,"\u30D5\u30E9\u30F3"],[13110,1,"\u30D8\u30AF\u30BF\u30FC\u30EB"],[13111,1,"\u30DA\u30BD"],[13112,1,"\u30DA\u30CB\u30D2"],[13113,1,"\u30D8\u30EB\u30C4"],[13114,1,"\u30DA\u30F3\u30B9"],[13115,1,"\u30DA\u30FC\u30B8"],[13116,1,"\u30D9\u30FC\u30BF"],[13117,1,"\u30DD\u30A4\u30F3\u30C8"],[13118,1,"\u30DC\u30EB\u30C8"],[13119,1,"\u30DB\u30F3"],[13120,1,"\u30DD\u30F3\u30C9"],[13121,1,"\u30DB\u30FC\u30EB"],[13122,1,"\u30DB\u30FC\u30F3"],[13123,1,"\u30DE\u30A4\u30AF\u30ED"],[13124,1,"\u30DE\u30A4\u30EB"],[13125,1,"\u30DE\u30C3\u30CF"],[13126,1,"\u30DE\u30EB\u30AF"],[13127,1,"\u30DE\u30F3\u30B7\u30E7\u30F3"],[13128,1,"\u30DF\u30AF\u30ED\u30F3"],[13129,1,"\u30DF\u30EA"],[13130,1,"\u30DF\u30EA\u30D0\u30FC\u30EB"],[13131,1,"\u30E1\u30AC"],[13132,1,"\u30E1\u30AC\u30C8\u30F3"],[13133,1,"\u30E1\u30FC\u30C8\u30EB"],[13134,1,"\u30E4\u30FC\u30C9"],[13135,1,"\u30E4\u30FC\u30EB"],[13136,1,"\u30E6\u30A2\u30F3"],[13137,1,"\u30EA\u30C3\u30C8\u30EB"],[13138,1,"\u30EA\u30E9"],[13139,1,"\u30EB\u30D4\u30FC"],[13140,1,"\u30EB\u30FC\u30D6\u30EB"],[13141,1,"\u30EC\u30E0"],[13142,1,"\u30EC\u30F3\u30C8\u30B2\u30F3"],[13143,1,"\u30EF\u30C3\u30C8"],[13144,1,"0\u70B9"],[13145,1,"1\u70B9"],[13146,1,"2\u70B9"],[13147,1,"3\u70B9"],[13148,1,"4\u70B9"],[13149,1,"5\u70B9"],[13150,1,"6\u70B9"],[13151,1,"7\u70B9"],[13152,1,"8\u70B9"],[13153,1,"9\u70B9"],[13154,1,"10\u70B9"],[13155,1,"11\u70B9"],[13156,1,"12\u70B9"],[13157,1,"13\u70B9"],[13158,1,"14\u70B9"],[13159,1,"15\u70B9"],[13160,1,"16\u70B9"],[13161,1,"17\u70B9"],[13162,1,"18\u70B9"],[13163,1,"19\u70B9"],[13164,1,"20\u70B9"],[13165,1,"21\u70B9"],[13166,1,"22\u70B9"],[13167,1,"23\u70B9"],[13168,1,"24\u70B9"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"\u5E73\u6210"],[13180,1,"\u662D\u548C"],[13181,1,"\u5927\u6B63"],[13182,1,"\u660E\u6CBB"],[13183,1,"\u682A\u5F0F\u4F1A\u793E"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03BCa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"\u03BCf"],[13197,1,"\u03BCg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03BCl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03BCm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03BCs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03BCv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03BCw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03C9"],[13249,1,"m\u03C9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65E5"],[13281,1,"2\u65E5"],[13282,1,"3\u65E5"],[13283,1,"4\u65E5"],[13284,1,"5\u65E5"],[13285,1,"6\u65E5"],[13286,1,"7\u65E5"],[13287,1,"8\u65E5"],[13288,1,"9\u65E5"],[13289,1,"10\u65E5"],[13290,1,"11\u65E5"],[13291,1,"12\u65E5"],[13292,1,"13\u65E5"],[13293,1,"14\u65E5"],[13294,1,"15\u65E5"],[13295,1,"16\u65E5"],[13296,1,"17\u65E5"],[13297,1,"18\u65E5"],[13298,1,"19\u65E5"],[13299,1,"20\u65E5"],[13300,1,"21\u65E5"],[13301,1,"22\u65E5"],[13302,1,"23\u65E5"],[13303,1,"24\u65E5"],[13304,1,"25\u65E5"],[13305,1,"26\u65E5"],[13306,1,"27\u65E5"],[13307,1,"28\u65E5"],[13308,1,"29\u65E5"],[13309,1,"30\u65E5"],[13310,1,"31\u65E5"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"\uA641"],[42561,2],[42562,1,"\uA643"],[42563,2],[42564,1,"\uA645"],[42565,2],[42566,1,"\uA647"],[42567,2],[42568,1,"\uA649"],[42569,2],[42570,1,"\uA64B"],[42571,2],[42572,1,"\uA64D"],[42573,2],[42574,1,"\uA64F"],[42575,2],[42576,1,"\uA651"],[42577,2],[42578,1,"\uA653"],[42579,2],[42580,1,"\uA655"],[42581,2],[42582,1,"\uA657"],[42583,2],[42584,1,"\uA659"],[42585,2],[42586,1,"\uA65B"],[42587,2],[42588,1,"\uA65D"],[42589,2],[42590,1,"\uA65F"],[42591,2],[42592,1,"\uA661"],[42593,2],[42594,1,"\uA663"],[42595,2],[42596,1,"\uA665"],[42597,2],[42598,1,"\uA667"],[42599,2],[42600,1,"\uA669"],[42601,2],[42602,1,"\uA66B"],[42603,2],[42604,1,"\uA66D"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\uA681"],[42625,2],[42626,1,"\uA683"],[42627,2],[42628,1,"\uA685"],[42629,2],[42630,1,"\uA687"],[42631,2],[42632,1,"\uA689"],[42633,2],[42634,1,"\uA68B"],[42635,2],[42636,1,"\uA68D"],[42637,2],[42638,1,"\uA68F"],[42639,2],[42640,1,"\uA691"],[42641,2],[42642,1,"\uA693"],[42643,2],[42644,1,"\uA695"],[42645,2],[42646,1,"\uA697"],[42647,2],[42648,1,"\uA699"],[42649,2],[42650,1,"\uA69B"],[42651,2],[42652,1,"\u044A"],[42653,1,"\u044C"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"\uA723"],[42787,2],[42788,1,"\uA725"],[42789,2],[42790,1,"\uA727"],[42791,2],[42792,1,"\uA729"],[42793,2],[42794,1,"\uA72B"],[42795,2],[42796,1,"\uA72D"],[42797,2],[42798,1,"\uA72F"],[[42799,42801],2],[42802,1,"\uA733"],[42803,2],[42804,1,"\uA735"],[42805,2],[42806,1,"\uA737"],[42807,2],[42808,1,"\uA739"],[42809,2],[42810,1,"\uA73B"],[42811,2],[42812,1,"\uA73D"],[42813,2],[42814,1,"\uA73F"],[42815,2],[42816,1,"\uA741"],[42817,2],[42818,1,"\uA743"],[42819,2],[42820,1,"\uA745"],[42821,2],[42822,1,"\uA747"],[42823,2],[42824,1,"\uA749"],[42825,2],[42826,1,"\uA74B"],[42827,2],[42828,1,"\uA74D"],[42829,2],[42830,1,"\uA74F"],[42831,2],[42832,1,"\uA751"],[42833,2],[42834,1,"\uA753"],[42835,2],[42836,1,"\uA755"],[42837,2],[42838,1,"\uA757"],[42839,2],[42840,1,"\uA759"],[42841,2],[42842,1,"\uA75B"],[42843,2],[42844,1,"\uA75D"],[42845,2],[42846,1,"\uA75F"],[42847,2],[42848,1,"\uA761"],[42849,2],[42850,1,"\uA763"],[42851,2],[42852,1,"\uA765"],[42853,2],[42854,1,"\uA767"],[42855,2],[42856,1,"\uA769"],[42857,2],[42858,1,"\uA76B"],[42859,2],[42860,1,"\uA76D"],[42861,2],[42862,1,"\uA76F"],[42863,2],[42864,1,"\uA76F"],[[42865,42872],2],[42873,1,"\uA77A"],[42874,2],[42875,1,"\uA77C"],[42876,2],[42877,1,"\u1D79"],[42878,1,"\uA77F"],[42879,2],[42880,1,"\uA781"],[42881,2],[42882,1,"\uA783"],[42883,2],[42884,1,"\uA785"],[42885,2],[42886,1,"\uA787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\uA78C"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\uA791"],[42897,2],[42898,1,"\uA793"],[42899,2],[[42900,42901],2],[42902,1,"\uA797"],[42903,2],[42904,1,"\uA799"],[42905,2],[42906,1,"\uA79B"],[42907,2],[42908,1,"\uA79D"],[42909,2],[42910,1,"\uA79F"],[42911,2],[42912,1,"\uA7A1"],[42913,2],[42914,1,"\uA7A3"],[42915,2],[42916,1,"\uA7A5"],[42917,2],[42918,1,"\uA7A7"],[42919,2],[42920,1,"\uA7A9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025C"],[42924,1,"\u0261"],[42925,1,"\u026C"],[42926,1,"\u026A"],[42927,2],[42928,1,"\u029E"],[42929,1,"\u0287"],[42930,1,"\u029D"],[42931,1,"\uAB53"],[42932,1,"\uA7B5"],[42933,2],[42934,1,"\uA7B7"],[42935,2],[42936,1,"\uA7B9"],[42937,2],[42938,1,"\uA7BB"],[42939,2],[42940,1,"\uA7BD"],[42941,2],[42942,1,"\uA7BF"],[42943,2],[42944,1,"\uA7C1"],[42945,2],[42946,1,"\uA7C3"],[42947,2],[42948,1,"\uA794"],[42949,1,"\u0282"],[42950,1,"\u1D8E"],[42951,1,"\uA7C8"],[42952,2],[42953,1,"\uA7CA"],[42954,2],[[42955,42959],3],[42960,1,"\uA7D1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\uA7D7"],[42967,2],[42968,1,"\uA7D9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"\uA727"],[43869,1,"\uAB37"],[43870,1,"\u026B"],[43871,1,"\uAB52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028D"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13A0"],[43889,1,"\u13A1"],[43890,1,"\u13A2"],[43891,1,"\u13A3"],[43892,1,"\u13A4"],[43893,1,"\u13A5"],[43894,1,"\u13A6"],[43895,1,"\u13A7"],[43896,1,"\u13A8"],[43897,1,"\u13A9"],[43898,1,"\u13AA"],[43899,1,"\u13AB"],[43900,1,"\u13AC"],[43901,1,"\u13AD"],[43902,1,"\u13AE"],[43903,1,"\u13AF"],[43904,1,"\u13B0"],[43905,1,"\u13B1"],[43906,1,"\u13B2"],[43907,1,"\u13B3"],[43908,1,"\u13B4"],[43909,1,"\u13B5"],[43910,1,"\u13B6"],[43911,1,"\u13B7"],[43912,1,"\u13B8"],[43913,1,"\u13B9"],[43914,1,"\u13BA"],[43915,1,"\u13BB"],[43916,1,"\u13BC"],[43917,1,"\u13BD"],[43918,1,"\u13BE"],[43919,1,"\u13BF"],[43920,1,"\u13C0"],[43921,1,"\u13C1"],[43922,1,"\u13C2"],[43923,1,"\u13C3"],[43924,1,"\u13C4"],[43925,1,"\u13C5"],[43926,1,"\u13C6"],[43927,1,"\u13C7"],[43928,1,"\u13C8"],[43929,1,"\u13C9"],[43930,1,"\u13CA"],[43931,1,"\u13CB"],[43932,1,"\u13CC"],[43933,1,"\u13CD"],[43934,1,"\u13CE"],[43935,1,"\u13CF"],[43936,1,"\u13D0"],[43937,1,"\u13D1"],[43938,1,"\u13D2"],[43939,1,"\u13D3"],[43940,1,"\u13D4"],[43941,1,"\u13D5"],[43942,1,"\u13D6"],[43943,1,"\u13D7"],[43944,1,"\u13D8"],[43945,1,"\u13D9"],[43946,1,"\u13DA"],[43947,1,"\u13DB"],[43948,1,"\u13DC"],[43949,1,"\u13DD"],[43950,1,"\u13DE"],[43951,1,"\u13DF"],[43952,1,"\u13E0"],[43953,1,"\u13E1"],[43954,1,"\u13E2"],[43955,1,"\u13E3"],[43956,1,"\u13E4"],[43957,1,"\u13E5"],[43958,1,"\u13E6"],[43959,1,"\u13E7"],[43960,1,"\u13E8"],[43961,1,"\u13E9"],[43962,1,"\u13EA"],[43963,1,"\u13EB"],[43964,1,"\u13EC"],[43965,1,"\u13ED"],[43966,1,"\u13EE"],[43967,1,"\u13EF"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"\u8C48"],[63745,1,"\u66F4"],[63746,1,"\u8ECA"],[63747,1,"\u8CC8"],[63748,1,"\u6ED1"],[63749,1,"\u4E32"],[63750,1,"\u53E5"],[[63751,63752],1,"\u9F9C"],[63753,1,"\u5951"],[63754,1,"\u91D1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61F6"],[63758,1,"\u7669"],[63759,1,"\u7F85"],[63760,1,"\u863F"],[63761,1,"\u87BA"],[63762,1,"\u88F8"],[63763,1,"\u908F"],[63764,1,"\u6A02"],[63765,1,"\u6D1B"],[63766,1,"\u70D9"],[63767,1,"\u73DE"],[63768,1,"\u843D"],[63769,1,"\u916A"],[63770,1,"\u99F1"],[63771,1,"\u4E82"],[63772,1,"\u5375"],[63773,1,"\u6B04"],[63774,1,"\u721B"],[63775,1,"\u862D"],[63776,1,"\u9E1E"],[63777,1,"\u5D50"],[63778,1,"\u6FEB"],[63779,1,"\u85CD"],[63780,1,"\u8964"],[63781,1,"\u62C9"],[63782,1,"\u81D8"],[63783,1,"\u881F"],[63784,1,"\u5ECA"],[63785,1,"\u6717"],[63786,1,"\u6D6A"],[63787,1,"\u72FC"],[63788,1,"\u90CE"],[63789,1,"\u4F86"],[63790,1,"\u51B7"],[63791,1,"\u52DE"],[63792,1,"\u64C4"],[63793,1,"\u6AD3"],[63794,1,"\u7210"],[63795,1,"\u76E7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865C"],[63799,1,"\u8DEF"],[63800,1,"\u9732"],[63801,1,"\u9B6F"],[63802,1,"\u9DFA"],[63803,1,"\u788C"],[63804,1,"\u797F"],[63805,1,"\u7DA0"],[63806,1,"\u83C9"],[63807,1,"\u9304"],[63808,1,"\u9E7F"],[63809,1,"\u8AD6"],[63810,1,"\u58DF"],[63811,1,"\u5F04"],[63812,1,"\u7C60"],[63813,1,"\u807E"],[63814,1,"\u7262"],[63815,1,"\u78CA"],[63816,1,"\u8CC2"],[63817,1,"\u96F7"],[63818,1,"\u58D8"],[63819,1,"\u5C62"],[63820,1,"\u6A13"],[63821,1,"\u6DDA"],[63822,1,"\u6F0F"],[63823,1,"\u7D2F"],[63824,1,"\u7E37"],[63825,1,"\u964B"],[63826,1,"\u52D2"],[63827,1,"\u808B"],[63828,1,"\u51DC"],[63829,1,"\u51CC"],[63830,1,"\u7A1C"],[63831,1,"\u7DBE"],[63832,1,"\u83F1"],[63833,1,"\u9675"],[63834,1,"\u8B80"],[63835,1,"\u62CF"],[63836,1,"\u6A02"],[63837,1,"\u8AFE"],[63838,1,"\u4E39"],[63839,1,"\u5BE7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78FB"],[63845,1,"\u4FBF"],[63846,1,"\u5FA9"],[63847,1,"\u4E0D"],[63848,1,"\u6CCC"],[63849,1,"\u6578"],[63850,1,"\u7D22"],[63851,1,"\u53C3"],[63852,1,"\u585E"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8AAA"],[63856,1,"\u6BBA"],[63857,1,"\u8FB0"],[63858,1,"\u6C88"],[63859,1,"\u62FE"],[63860,1,"\u82E5"],[63861,1,"\u63A0"],[63862,1,"\u7565"],[63863,1,"\u4EAE"],[63864,1,"\u5169"],[63865,1,"\u51C9"],[63866,1,"\u6881"],[63867,1,"\u7CE7"],[63868,1,"\u826F"],[63869,1,"\u8AD2"],[63870,1,"\u91CF"],[63871,1,"\u52F5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5EEC"],[63875,1,"\u65C5"],[63876,1,"\u6FFE"],[63877,1,"\u792A"],[63878,1,"\u95AD"],[63879,1,"\u9A6A"],[63880,1,"\u9E97"],[63881,1,"\u9ECE"],[63882,1,"\u529B"],[63883,1,"\u66C6"],[63884,1,"\u6B77"],[63885,1,"\u8F62"],[63886,1,"\u5E74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649A"],[63890,1,"\u6F23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79CA"],[63894,1,"\u7DF4"],[63895,1,"\u806F"],[63896,1,"\u8F26"],[63897,1,"\u84EE"],[63898,1,"\u9023"],[63899,1,"\u934A"],[63900,1,"\u5217"],[63901,1,"\u52A3"],[63902,1,"\u54BD"],[63903,1,"\u70C8"],[63904,1,"\u88C2"],[63905,1,"\u8AAA"],[63906,1,"\u5EC9"],[63907,1,"\u5FF5"],[63908,1,"\u637B"],[63909,1,"\u6BAE"],[63910,1,"\u7C3E"],[63911,1,"\u7375"],[63912,1,"\u4EE4"],[63913,1,"\u56F9"],[63914,1,"\u5BE7"],[63915,1,"\u5DBA"],[63916,1,"\u601C"],[63917,1,"\u73B2"],[63918,1,"\u7469"],[63919,1,"\u7F9A"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96F6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4F8B"],[63926,1,"\u79AE"],[63927,1,"\u91B4"],[63928,1,"\u96B8"],[63929,1,"\u60E1"],[63930,1,"\u4E86"],[63931,1,"\u50DA"],[63932,1,"\u5BEE"],[63933,1,"\u5C3F"],[63934,1,"\u6599"],[63935,1,"\u6A02"],[63936,1,"\u71CE"],[63937,1,"\u7642"],[63938,1,"\u84FC"],[63939,1,"\u907C"],[63940,1,"\u9F8D"],[63941,1,"\u6688"],[63942,1,"\u962E"],[63943,1,"\u5289"],[63944,1,"\u677B"],[63945,1,"\u67F3"],[63946,1,"\u6D41"],[63947,1,"\u6E9C"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786B"],[63951,1,"\u7D10"],[63952,1,"\u985E"],[63953,1,"\u516D"],[63954,1,"\u622E"],[63955,1,"\u9678"],[63956,1,"\u502B"],[63957,1,"\u5D19"],[63958,1,"\u6DEA"],[63959,1,"\u8F2A"],[63960,1,"\u5F8B"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540F"],[63967,1,"\u5C65"],[63968,1,"\u6613"],[63969,1,"\u674E"],[63970,1,"\u68A8"],[63971,1,"\u6CE5"],[63972,1,"\u7406"],[63973,1,"\u75E2"],[63974,1,"\u7F79"],[63975,1,"\u88CF"],[63976,1,"\u88E1"],[63977,1,"\u91CC"],[63978,1,"\u96E2"],[63979,1,"\u533F"],[63980,1,"\u6EBA"],[63981,1,"\u541D"],[63982,1,"\u71D0"],[63983,1,"\u7498"],[63984,1,"\u85FA"],[63985,1,"\u96A3"],[63986,1,"\u9C57"],[63987,1,"\u9E9F"],[63988,1,"\u6797"],[63989,1,"\u6DCB"],[63990,1,"\u81E8"],[63991,1,"\u7ACB"],[63992,1,"\u7B20"],[63993,1,"\u7C92"],[63994,1,"\u72C0"],[63995,1,"\u7099"],[63996,1,"\u8B58"],[63997,1,"\u4EC0"],[63998,1,"\u8336"],[63999,1,"\u523A"],[64000,1,"\u5207"],[64001,1,"\u5EA6"],[64002,1,"\u62D3"],[64003,1,"\u7CD6"],[64004,1,"\u5B85"],[64005,1,"\u6D1E"],[64006,1,"\u66B4"],[64007,1,"\u8F3B"],[64008,1,"\u884C"],[64009,1,"\u964D"],[64010,1,"\u898B"],[64011,1,"\u5ED3"],[64012,1,"\u5140"],[64013,1,"\u55C0"],[[64014,64015],2],[64016,1,"\u585A"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51DE"],[64022,1,"\u732A"],[64023,1,"\u76CA"],[64024,1,"\u793C"],[64025,1,"\u795E"],[64026,1,"\u7965"],[64027,1,"\u798F"],[64028,1,"\u9756"],[64029,1,"\u7CBE"],[64030,1,"\u7FBD"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8AF8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90FD"],[[64039,64041],2],[64042,1,"\u98EF"],[64043,1,"\u98FC"],[64044,1,"\u9928"],[64045,1,"\u9DB4"],[64046,1,"\u90DE"],[64047,1,"\u96B7"],[64048,1,"\u4FAE"],[64049,1,"\u50E7"],[64050,1,"\u514D"],[64051,1,"\u52C9"],[64052,1,"\u52E4"],[64053,1,"\u5351"],[64054,1,"\u559D"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58A8"],[64059,1,"\u5C64"],[64060,1,"\u5C6E"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618E"],[64064,1,"\u61F2"],[64065,1,"\u654F"],[64066,1,"\u65E2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6D77"],[64070,1,"\u6E1A"],[64071,1,"\u6F22"],[64072,1,"\u716E"],[64073,1,"\u722B"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793E"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795D"],[64082,1,"\u798D"],[64083,1,"\u798E"],[64084,1,"\u7A40"],[64085,1,"\u7A81"],[64086,1,"\u7BC0"],[64087,1,"\u7DF4"],[64088,1,"\u7E09"],[64089,1,"\u7E41"],[64090,1,"\u7F72"],[64091,1,"\u8005"],[64092,1,"\u81ED"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8B01"],[64099,1,"\u8B39"],[64100,1,"\u8CD3"],[64101,1,"\u8D08"],[64102,1,"\u8FB6"],[64103,1,"\u9038"],[64104,1,"\u96E3"],[64105,1,"\u97FF"],[64106,1,"\u983B"],[64107,1,"\u6075"],[64108,1,"\uD850\uDEEE"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4E26"],[64113,1,"\u51B5"],[64114,1,"\u5168"],[64115,1,"\u4F80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52C7"],[64119,1,"\u52FA"],[64120,1,"\u559D"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55E2"],[64124,1,"\u585A"],[64125,1,"\u58B3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5A62"],[64129,1,"\u5B28"],[64130,1,"\u5ED2"],[64131,1,"\u5ED9"],[64132,1,"\u5F69"],[64133,1,"\u5FAD"],[64134,1,"\u60D8"],[64135,1,"\u614E"],[64136,1,"\u6108"],[64137,1,"\u618E"],[64138,1,"\u6160"],[64139,1,"\u61F2"],[64140,1,"\u6234"],[64141,1,"\u63C4"],[64142,1,"\u641C"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671B"],[64148,1,"\u6756"],[64149,1,"\u6B79"],[64150,1,"\u6BBA"],[64151,1,"\u6D41"],[64152,1,"\u6EDB"],[64153,1,"\u6ECB"],[64154,1,"\u6F22"],[64155,1,"\u701E"],[64156,1,"\u716E"],[64157,1,"\u77A7"],[64158,1,"\u7235"],[64159,1,"\u72AF"],[64160,1,"\u732A"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753B"],[64164,1,"\u761D"],[64165,1,"\u761F"],[64166,1,"\u76CA"],[64167,1,"\u76DB"],[64168,1,"\u76F4"],[64169,1,"\u774A"],[64170,1,"\u7740"],[64171,1,"\u78CC"],[64172,1,"\u7AB1"],[64173,1,"\u7BC0"],[64174,1,"\u7C7B"],[64175,1,"\u7D5B"],[64176,1,"\u7DF4"],[64177,1,"\u7F3E"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83EF"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8ABF"],[64186,1,"\u8AF8"],[64187,1,"\u8ACB"],[64188,1,"\u8B01"],[64189,1,"\u8AFE"],[64190,1,"\u8AED"],[64191,1,"\u8B39"],[64192,1,"\u8B8A"],[64193,1,"\u8D08"],[64194,1,"\u8F38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967C"],[64199,1,"\u96E3"],[64200,1,"\u9756"],[64201,1,"\u97DB"],[64202,1,"\u97FF"],[64203,1,"\u980B"],[64204,1,"\u983B"],[64205,1,"\u9B12"],[64206,1,"\u9F9C"],[64207,1,"\uD84A\uDC4A"],[64208,1,"\uD84A\uDC44"],[64209,1,"\uD84C\uDFD5"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\uD854\uDE49"],[64214,1,"\uD857\uDCD0"],[64215,1,"\uD85F\uDED3"],[64216,1,"\u9F43"],[64217,1,"\u9F8E"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056B"],[64278,1,"\u057E\u0576"],[64279,1,"\u0574\u056D"],[[64280,64284],3],[64285,1,"\u05D9\u05B4"],[64286,2],[64287,1,"\u05F2\u05B7"],[64288,1,"\u05E2"],[64289,1,"\u05D0"],[64290,1,"\u05D3"],[64291,1,"\u05D4"],[64292,1,"\u05DB"],[64293,1,"\u05DC"],[64294,1,"\u05DD"],[64295,1,"\u05E8"],[64296,1,"\u05EA"],[64297,5,"+"],[64298,1,"\u05E9\u05C1"],[64299,1,"\u05E9\u05C2"],[64300,1,"\u05E9\u05BC\u05C1"],[64301,1,"\u05E9\u05BC\u05C2"],[64302,1,"\u05D0\u05B7"],[64303,1,"\u05D0\u05B8"],[64304,1,"\u05D0\u05BC"],[64305,1,"\u05D1\u05BC"],[64306,1,"\u05D2\u05BC"],[64307,1,"\u05D3\u05BC"],[64308,1,"\u05D4\u05BC"],[64309,1,"\u05D5\u05BC"],[64310,1,"\u05D6\u05BC"],[64311,3],[64312,1,"\u05D8\u05BC"],[64313,1,"\u05D9\u05BC"],[64314,1,"\u05DA\u05BC"],[64315,1,"\u05DB\u05BC"],[64316,1,"\u05DC\u05BC"],[64317,3],[64318,1,"\u05DE\u05BC"],[64319,3],[64320,1,"\u05E0\u05BC"],[64321,1,"\u05E1\u05BC"],[64322,3],[64323,1,"\u05E3\u05BC"],[64324,1,"\u05E4\u05BC"],[64325,3],[64326,1,"\u05E6\u05BC"],[64327,1,"\u05E7\u05BC"],[64328,1,"\u05E8\u05BC"],[64329,1,"\u05E9\u05BC"],[64330,1,"\u05EA\u05BC"],[64331,1,"\u05D5\u05B9"],[64332,1,"\u05D1\u05BF"],[64333,1,"\u05DB\u05BF"],[64334,1,"\u05E4\u05BF"],[64335,1,"\u05D0\u05DC"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067B"],[[64342,64345],1,"\u067E"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067A"],[[64354,64357],1,"\u067F"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06A4"],[[64366,64369],1,"\u06A6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068D"],[[64388,64389],1,"\u068C"],[[64390,64391],1,"\u068E"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06A9"],[[64402,64405],1,"\u06AF"],[[64406,64409],1,"\u06B3"],[[64410,64413],1,"\u06B1"],[[64414,64415],1,"\u06BA"],[[64416,64419],1,"\u06BB"],[[64420,64421],1,"\u06C0"],[[64422,64425],1,"\u06C1"],[[64426,64429],1,"\u06BE"],[[64430,64431],1,"\u06D2"],[[64432,64433],1,"\u06D3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06AD"],[[64471,64472],1,"\u06C7"],[[64473,64474],1,"\u06C6"],[[64475,64476],1,"\u06C8"],[64477,1,"\u06C7\u0674"],[[64478,64479],1,"\u06CB"],[[64480,64481],1,"\u06C5"],[[64482,64483],1,"\u06C9"],[[64484,64487],1,"\u06D0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06D5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06C7"],[[64498,64499],1,"\u0626\u06C6"],[[64500,64501],1,"\u0626\u06C8"],[[64502,64504],1,"\u0626\u06D0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06CC"],[64512,1,"\u0626\u062C"],[64513,1,"\u0626\u062D"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064A"],[64517,1,"\u0628\u062C"],[64518,1,"\u0628\u062D"],[64519,1,"\u0628\u062E"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064A"],[64523,1,"\u062A\u062C"],[64524,1,"\u062A\u062D"],[64525,1,"\u062A\u062E"],[64526,1,"\u062A\u0645"],[64527,1,"\u062A\u0649"],[64528,1,"\u062A\u064A"],[64529,1,"\u062B\u062C"],[64530,1,"\u062B\u0645"],[64531,1,"\u062B\u0649"],[64532,1,"\u062B\u064A"],[64533,1,"\u062C\u062D"],[64534,1,"\u062C\u0645"],[64535,1,"\u062D\u062C"],[64536,1,"\u062D\u0645"],[64537,1,"\u062E\u062C"],[64538,1,"\u062E\u062D"],[64539,1,"\u062E\u0645"],[64540,1,"\u0633\u062C"],[64541,1,"\u0633\u062D"],[64542,1,"\u0633\u062E"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062D"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062C"],[64547,1,"\u0636\u062D"],[64548,1,"\u0636\u062E"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062D"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062C"],[64554,1,"\u0639\u0645"],[64555,1,"\u063A\u062C"],[64556,1,"\u063A\u0645"],[64557,1,"\u0641\u062C"],[64558,1,"\u0641\u062D"],[64559,1,"\u0641\u062E"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064A"],[64563,1,"\u0642\u062D"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064A"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062C"],[64569,1,"\u0643\u062D"],[64570,1,"\u0643\u062E"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064A"],[64575,1,"\u0644\u062C"],[64576,1,"\u0644\u062D"],[64577,1,"\u0644\u062E"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064A"],[64581,1,"\u0645\u062C"],[64582,1,"\u0645\u062D"],[64583,1,"\u0645\u062E"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064A"],[64587,1,"\u0646\u062C"],[64588,1,"\u0646\u062D"],[64589,1,"\u0646\u062E"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064A"],[64593,1,"\u0647\u062C"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064A"],[64597,1,"\u064A\u062C"],[64598,1,"\u064A\u062D"],[64599,1,"\u064A\u062E"],[64600,1,"\u064A\u0645"],[64601,1,"\u064A\u0649"],[64602,1,"\u064A\u064A"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064C\u0651"],[64607,5," \u064D\u0651"],[64608,5," \u064E\u0651"],[64609,5," \u064F\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064A"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064A"],[64624,1,"\u062A\u0631"],[64625,1,"\u062A\u0632"],[64626,1,"\u062A\u0645"],[64627,1,"\u062A\u0646"],[64628,1,"\u062A\u0649"],[64629,1,"\u062A\u064A"],[64630,1,"\u062B\u0631"],[64631,1,"\u062B\u0632"],[64632,1,"\u062B\u0645"],[64633,1,"\u062B\u0646"],[64634,1,"\u062B\u0649"],[64635,1,"\u062B\u064A"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064A"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064A"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064A"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064A"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064A"],[64656,1,"\u0649\u0670"],[64657,1,"\u064A\u0631"],[64658,1,"\u064A\u0632"],[64659,1,"\u064A\u0645"],[64660,1,"\u064A\u0646"],[64661,1,"\u064A\u0649"],[64662,1,"\u064A\u064A"],[64663,1,"\u0626\u062C"],[64664,1,"\u0626\u062D"],[64665,1,"\u0626\u062E"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062C"],[64669,1,"\u0628\u062D"],[64670,1,"\u0628\u062E"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062A\u062C"],[64674,1,"\u062A\u062D"],[64675,1,"\u062A\u062E"],[64676,1,"\u062A\u0645"],[64677,1,"\u062A\u0647"],[64678,1,"\u062B\u0645"],[64679,1,"\u062C\u062D"],[64680,1,"\u062C\u0645"],[64681,1,"\u062D\u062C"],[64682,1,"\u062D\u0645"],[64683,1,"\u062E\u062C"],[64684,1,"\u062E\u0645"],[64685,1,"\u0633\u062C"],[64686,1,"\u0633\u062D"],[64687,1,"\u0633\u062E"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062D"],[64690,1,"\u0635\u062E"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062C"],[64693,1,"\u0636\u062D"],[64694,1,"\u0636\u062E"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062D"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062C"],[64699,1,"\u0639\u0645"],[64700,1,"\u063A\u062C"],[64701,1,"\u063A\u0645"],[64702,1,"\u0641\u062C"],[64703,1,"\u0641\u062D"],[64704,1,"\u0641\u062E"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062D"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062C"],[64709,1,"\u0643\u062D"],[64710,1,"\u0643\u062E"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062C"],[64714,1,"\u0644\u062D"],[64715,1,"\u0644\u062E"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062C"],[64719,1,"\u0645\u062D"],[64720,1,"\u0645\u062E"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062C"],[64723,1,"\u0646\u062D"],[64724,1,"\u0646\u062E"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062C"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064A\u062C"],[64731,1,"\u064A\u062D"],[64732,1,"\u064A\u062E"],[64733,1,"\u064A\u0645"],[64734,1,"\u064A\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062A\u0645"],[64740,1,"\u062A\u0647"],[64741,1,"\u062B\u0645"],[64742,1,"\u062B\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064A\u0645"],[64753,1,"\u064A\u0647"],[64754,1,"\u0640\u064E\u0651"],[64755,1,"\u0640\u064F\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064A"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064A"],[64761,1,"\u063A\u0649"],[64762,1,"\u063A\u064A"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064A"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064A"],[64767,1,"\u062D\u0649"],[64768,1,"\u062D\u064A"],[64769,1,"\u062C\u0649"],[64770,1,"\u062C\u064A"],[64771,1,"\u062E\u0649"],[64772,1,"\u062E\u064A"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064A"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064A"],[64777,1,"\u0634\u062C"],[64778,1,"\u0634\u062D"],[64779,1,"\u0634\u062E"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064A"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064A"],[64789,1,"\u063A\u0649"],[64790,1,"\u063A\u064A"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064A"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064A"],[64795,1,"\u062D\u0649"],[64796,1,"\u062D\u064A"],[64797,1,"\u062C\u0649"],[64798,1,"\u062C\u064A"],[64799,1,"\u062E\u0649"],[64800,1,"\u062E\u064A"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064A"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064A"],[64805,1,"\u0634\u062C"],[64806,1,"\u0634\u062D"],[64807,1,"\u0634\u062E"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062C"],[64814,1,"\u0634\u062D"],[64815,1,"\u0634\u062E"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062C"],[64821,1,"\u0633\u062D"],[64822,1,"\u0633\u062E"],[64823,1,"\u0634\u062C"],[64824,1,"\u0634\u062D"],[64825,1,"\u0634\u062E"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064B"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062A\u062C\u0645"],[[64849,64850],1,"\u062A\u062D\u062C"],[64851,1,"\u062A\u062D\u0645"],[64852,1,"\u062A\u062E\u0645"],[64853,1,"\u062A\u0645\u062C"],[64854,1,"\u062A\u0645\u062D"],[64855,1,"\u062A\u0645\u062E"],[[64856,64857],1,"\u062C\u0645\u062D"],[64858,1,"\u062D\u0645\u064A"],[64859,1,"\u062D\u0645\u0649"],[64860,1,"\u0633\u062D\u062C"],[64861,1,"\u0633\u062C\u062D"],[64862,1,"\u0633\u062C\u0649"],[[64863,64864],1,"\u0633\u0645\u062D"],[64865,1,"\u0633\u0645\u062C"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062D\u062D"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062D\u0645"],[64873,1,"\u0634\u062C\u064A"],[[64874,64875],1,"\u0634\u0645\u062E"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062D\u0649"],[[64879,64880],1,"\u0636\u062E\u0645"],[[64881,64882],1,"\u0637\u0645\u062D"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064A"],[64885,1,"\u0639\u062C\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063A\u0645\u0645"],[64890,1,"\u063A\u0645\u064A"],[64891,1,"\u063A\u0645\u0649"],[[64892,64893],1,"\u0641\u062E\u0645"],[64894,1,"\u0642\u0645\u062D"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062D\u0645"],[64897,1,"\u0644\u062D\u064A"],[64898,1,"\u0644\u062D\u0649"],[[64899,64900],1,"\u0644\u062C\u062C"],[[64901,64902],1,"\u0644\u062E\u0645"],[[64903,64904],1,"\u0644\u0645\u062D"],[64905,1,"\u0645\u062D\u062C"],[64906,1,"\u0645\u062D\u0645"],[64907,1,"\u0645\u062D\u064A"],[64908,1,"\u0645\u062C\u062D"],[64909,1,"\u0645\u062C\u0645"],[64910,1,"\u0645\u062E\u062C"],[64911,1,"\u0645\u062E\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062C\u062E"],[64915,1,"\u0647\u0645\u062C"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062D\u0645"],[64918,1,"\u0646\u062D\u0649"],[[64919,64920],1,"\u0646\u062C\u0645"],[64921,1,"\u0646\u062C\u0649"],[64922,1,"\u0646\u0645\u064A"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064A\u0645\u0645"],[64926,1,"\u0628\u062E\u064A"],[64927,1,"\u062A\u062C\u064A"],[64928,1,"\u062A\u062C\u0649"],[64929,1,"\u062A\u062E\u064A"],[64930,1,"\u062A\u062E\u0649"],[64931,1,"\u062A\u0645\u064A"],[64932,1,"\u062A\u0645\u0649"],[64933,1,"\u062C\u0645\u064A"],[64934,1,"\u062C\u062D\u0649"],[64935,1,"\u062C\u0645\u0649"],[64936,1,"\u0633\u062E\u0649"],[64937,1,"\u0635\u062D\u064A"],[64938,1,"\u0634\u062D\u064A"],[64939,1,"\u0636\u062D\u064A"],[64940,1,"\u0644\u062C\u064A"],[64941,1,"\u0644\u0645\u064A"],[64942,1,"\u064A\u062D\u064A"],[64943,1,"\u064A\u062C\u064A"],[64944,1,"\u064A\u0645\u064A"],[64945,1,"\u0645\u0645\u064A"],[64946,1,"\u0642\u0645\u064A"],[64947,1,"\u0646\u062D\u064A"],[64948,1,"\u0642\u0645\u062D"],[64949,1,"\u0644\u062D\u0645"],[64950,1,"\u0639\u0645\u064A"],[64951,1,"\u0643\u0645\u064A"],[64952,1,"\u0646\u062C\u062D"],[64953,1,"\u0645\u062E\u064A"],[64954,1,"\u0644\u062C\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062C\u0645"],[64957,1,"\u0646\u062C\u062D"],[64958,1,"\u062C\u062D\u064A"],[64959,1,"\u062D\u062C\u064A"],[64960,1,"\u0645\u062C\u064A"],[64961,1,"\u0641\u0645\u064A"],[64962,1,"\u0628\u062D\u064A"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062C\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062E\u064A"],[64967,1,"\u0646\u062C\u064A"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06D2"],[65009,1,"\u0642\u0644\u06D2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062D\u0645\u062F"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064A\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300A"],[65086,1,"\u300B"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300C"],[65090,1,"\u300D"],[65091,1,"\u300E"],[65092,1,"\u300F"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," \u064B"],[65137,1,"\u0640\u064B"],[65138,5," \u064C"],[65139,2],[65140,5," \u064D"],[65141,3],[65142,5," \u064E"],[65143,1,"\u0640\u064E"],[65144,5," \u064F"],[65145,1,"\u0640\u064F"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062A"],[[65177,65180],1,"\u062B"],[[65181,65184],1,"\u062C"],[[65185,65188],1,"\u062D"],[[65189,65192],1,"\u062E"],[[65193,65194],1,"\u062F"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063A"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064A"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300C"],[65379,1,"\u300D"],[65380,1,"\u3001"],[65381,1,"\u30FB"],[65382,1,"\u30F2"],[65383,1,"\u30A1"],[65384,1,"\u30A3"],[65385,1,"\u30A5"],[65386,1,"\u30A7"],[65387,1,"\u30A9"],[65388,1,"\u30E3"],[65389,1,"\u30E5"],[65390,1,"\u30E7"],[65391,1,"\u30C3"],[65392,1,"\u30FC"],[65393,1,"\u30A2"],[65394,1,"\u30A4"],[65395,1,"\u30A6"],[65396,1,"\u30A8"],[65397,1,"\u30AA"],[65398,1,"\u30AB"],[65399,1,"\u30AD"],[65400,1,"\u30AF"],[65401,1,"\u30B1"],[65402,1,"\u30B3"],[65403,1,"\u30B5"],[65404,1,"\u30B7"],[65405,1,"\u30B9"],[65406,1,"\u30BB"],[65407,1,"\u30BD"],[65408,1,"\u30BF"],[65409,1,"\u30C1"],[65410,1,"\u30C4"],[65411,1,"\u30C6"],[65412,1,"\u30C8"],[65413,1,"\u30CA"],[65414,1,"\u30CB"],[65415,1,"\u30CC"],[65416,1,"\u30CD"],[65417,1,"\u30CE"],[65418,1,"\u30CF"],[65419,1,"\u30D2"],[65420,1,"\u30D5"],[65421,1,"\u30D8"],[65422,1,"\u30DB"],[65423,1,"\u30DE"],[65424,1,"\u30DF"],[65425,1,"\u30E0"],[65426,1,"\u30E1"],[65427,1,"\u30E2"],[65428,1,"\u30E4"],[65429,1,"\u30E6"],[65430,1,"\u30E8"],[65431,1,"\u30E9"],[65432,1,"\u30EA"],[65433,1,"\u30EB"],[65434,1,"\u30EC"],[65435,1,"\u30ED"],[65436,1,"\u30EF"],[65437,1,"\u30F3"],[65438,1,"\u3099"],[65439,1,"\u309A"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11AA"],[65444,1,"\u1102"],[65445,1,"\u11AC"],[65446,1,"\u11AD"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11B0"],[65451,1,"\u11B1"],[65452,1,"\u11B2"],[65453,1,"\u11B3"],[65454,1,"\u11B4"],[65455,1,"\u11B5"],[65456,1,"\u111A"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110A"],[65463,1,"\u110B"],[65464,1,"\u110C"],[65465,1,"\u110D"],[65466,1,"\u110E"],[65467,1,"\u110F"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116A"],[65486,1,"\u116B"],[65487,1,"\u116C"],[[65488,65489],3],[65490,1,"\u116D"],[65491,1,"\u116E"],[65492,1,"\u116F"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xA2"],[65505,1,"\xA3"],[65506,1,"\xAC"],[65507,5," \u0304"],[65508,1,"\xA6"],[65509,1,"\xA5"],[65510,1,"\u20A9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25A0"],[65518,1,"\u25CB"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"\uD801\uDC28"],[66561,1,"\uD801\uDC29"],[66562,1,"\uD801\uDC2A"],[66563,1,"\uD801\uDC2B"],[66564,1,"\uD801\uDC2C"],[66565,1,"\uD801\uDC2D"],[66566,1,"\uD801\uDC2E"],[66567,1,"\uD801\uDC2F"],[66568,1,"\uD801\uDC30"],[66569,1,"\uD801\uDC31"],[66570,1,"\uD801\uDC32"],[66571,1,"\uD801\uDC33"],[66572,1,"\uD801\uDC34"],[66573,1,"\uD801\uDC35"],[66574,1,"\uD801\uDC36"],[66575,1,"\uD801\uDC37"],[66576,1,"\uD801\uDC38"],[66577,1,"\uD801\uDC39"],[66578,1,"\uD801\uDC3A"],[66579,1,"\uD801\uDC3B"],[66580,1,"\uD801\uDC3C"],[66581,1,"\uD801\uDC3D"],[66582,1,"\uD801\uDC3E"],[66583,1,"\uD801\uDC3F"],[66584,1,"\uD801\uDC40"],[66585,1,"\uD801\uDC41"],[66586,1,"\uD801\uDC42"],[66587,1,"\uD801\uDC43"],[66588,1,"\uD801\uDC44"],[66589,1,"\uD801\uDC45"],[66590,1,"\uD801\uDC46"],[66591,1,"\uD801\uDC47"],[66592,1,"\uD801\uDC48"],[66593,1,"\uD801\uDC49"],[66594,1,"\uD801\uDC4A"],[66595,1,"\uD801\uDC4B"],[66596,1,"\uD801\uDC4C"],[66597,1,"\uD801\uDC4D"],[66598,1,"\uD801\uDC4E"],[66599,1,"\uD801\uDC4F"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\uD801\uDCD8"],[66737,1,"\uD801\uDCD9"],[66738,1,"\uD801\uDCDA"],[66739,1,"\uD801\uDCDB"],[66740,1,"\uD801\uDCDC"],[66741,1,"\uD801\uDCDD"],[66742,1,"\uD801\uDCDE"],[66743,1,"\uD801\uDCDF"],[66744,1,"\uD801\uDCE0"],[66745,1,"\uD801\uDCE1"],[66746,1,"\uD801\uDCE2"],[66747,1,"\uD801\uDCE3"],[66748,1,"\uD801\uDCE4"],[66749,1,"\uD801\uDCE5"],[66750,1,"\uD801\uDCE6"],[66751,1,"\uD801\uDCE7"],[66752,1,"\uD801\uDCE8"],[66753,1,"\uD801\uDCE9"],[66754,1,"\uD801\uDCEA"],[66755,1,"\uD801\uDCEB"],[66756,1,"\uD801\uDCEC"],[66757,1,"\uD801\uDCED"],[66758,1,"\uD801\uDCEE"],[66759,1,"\uD801\uDCEF"],[66760,1,"\uD801\uDCF0"],[66761,1,"\uD801\uDCF1"],[66762,1,"\uD801\uDCF2"],[66763,1,"\uD801\uDCF3"],[66764,1,"\uD801\uDCF4"],[66765,1,"\uD801\uDCF5"],[66766,1,"\uD801\uDCF6"],[66767,1,"\uD801\uDCF7"],[66768,1,"\uD801\uDCF8"],[66769,1,"\uD801\uDCF9"],[66770,1,"\uD801\uDCFA"],[66771,1,"\uD801\uDCFB"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"\uD801\uDD97"],[66929,1,"\uD801\uDD98"],[66930,1,"\uD801\uDD99"],[66931,1,"\uD801\uDD9A"],[66932,1,"\uD801\uDD9B"],[66933,1,"\uD801\uDD9C"],[66934,1,"\uD801\uDD9D"],[66935,1,"\uD801\uDD9E"],[66936,1,"\uD801\uDD9F"],[66937,1,"\uD801\uDDA0"],[66938,1,"\uD801\uDDA1"],[66939,3],[66940,1,"\uD801\uDDA3"],[66941,1,"\uD801\uDDA4"],[66942,1,"\uD801\uDDA5"],[66943,1,"\uD801\uDDA6"],[66944,1,"\uD801\uDDA7"],[66945,1,"\uD801\uDDA8"],[66946,1,"\uD801\uDDA9"],[66947,1,"\uD801\uDDAA"],[66948,1,"\uD801\uDDAB"],[66949,1,"\uD801\uDDAC"],[66950,1,"\uD801\uDDAD"],[66951,1,"\uD801\uDDAE"],[66952,1,"\uD801\uDDAF"],[66953,1,"\uD801\uDDB0"],[66954,1,"\uD801\uDDB1"],[66955,3],[66956,1,"\uD801\uDDB3"],[66957,1,"\uD801\uDDB4"],[66958,1,"\uD801\uDDB5"],[66959,1,"\uD801\uDDB6"],[66960,1,"\uD801\uDDB7"],[66961,1,"\uD801\uDDB8"],[66962,1,"\uD801\uDDB9"],[66963,3],[66964,1,"\uD801\uDDBB"],[66965,1,"\uD801\uDDBC"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"\u02D0"],[67458,1,"\u02D1"],[67459,1,"\xE6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02A3"],[67464,1,"\uAB66"],[67465,1,"\u02A5"],[67466,1,"\u02A4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1D91"],[67470,1,"\u0258"],[67471,1,"\u025E"],[67472,1,"\u02A9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029B"],[67477,1,"\u0127"],[67478,1,"\u029C"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02AA"],[67482,1,"\u02AB"],[67483,1,"\u026C"],[67484,1,"\uD837\uDF04"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\uD837\uDF05"],[67488,1,"\u028E"],[67489,1,"\uD837\uDF06"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\uD837\uDF08"],[67496,1,"\u027D"],[67497,1,"\u027E"],[67498,1,"\u0280"],[67499,1,"\u02A8"],[67500,1,"\u02A6"],[67501,1,"\uAB67"],[67502,1,"\u02A7"],[67503,1,"\u0288"],[67504,1,"\u2C71"],[67505,3],[67506,1,"\u028F"],[67507,1,"\u02A1"],[67508,1,"\u02A2"],[67509,1,"\u0298"],[67510,1,"\u01C0"],[67511,1,"\u01C1"],[67512,1,"\u01C2"],[67513,1,"\uD837\uDF0A"],[67514,1,"\uD837\uDF1E"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"\uD803\uDCC0"],[68737,1,"\uD803\uDCC1"],[68738,1,"\uD803\uDCC2"],[68739,1,"\uD803\uDCC3"],[68740,1,"\uD803\uDCC4"],[68741,1,"\uD803\uDCC5"],[68742,1,"\uD803\uDCC6"],[68743,1,"\uD803\uDCC7"],[68744,1,"\uD803\uDCC8"],[68745,1,"\uD803\uDCC9"],[68746,1,"\uD803\uDCCA"],[68747,1,"\uD803\uDCCB"],[68748,1,"\uD803\uDCCC"],[68749,1,"\uD803\uDCCD"],[68750,1,"\uD803\uDCCE"],[68751,1,"\uD803\uDCCF"],[68752,1,"\uD803\uDCD0"],[68753,1,"\uD803\uDCD1"],[68754,1,"\uD803\uDCD2"],[68755,1,"\uD803\uDCD3"],[68756,1,"\uD803\uDCD4"],[68757,1,"\uD803\uDCD5"],[68758,1,"\uD803\uDCD6"],[68759,1,"\uD803\uDCD7"],[68760,1,"\uD803\uDCD8"],[68761,1,"\uD803\uDCD9"],[68762,1,"\uD803\uDCDA"],[68763,1,"\uD803\uDCDB"],[68764,1,"\uD803\uDCDC"],[68765,1,"\uD803\uDCDD"],[68766,1,"\uD803\uDCDE"],[68767,1,"\uD803\uDCDF"],[68768,1,"\uD803\uDCE0"],[68769,1,"\uD803\uDCE1"],[68770,1,"\uD803\uDCE2"],[68771,1,"\uD803\uDCE3"],[68772,1,"\uD803\uDCE4"],[68773,1,"\uD803\uDCE5"],[68774,1,"\uD803\uDCE6"],[68775,1,"\uD803\uDCE7"],[68776,1,"\uD803\uDCE8"],[68777,1,"\uD803\uDCE9"],[68778,1,"\uD803\uDCEA"],[68779,1,"\uD803\uDCEB"],[68780,1,"\uD803\uDCEC"],[68781,1,"\uD803\uDCED"],[68782,1,"\uD803\uDCEE"],[68783,1,"\uD803\uDCEF"],[68784,1,"\uD803\uDCF0"],[68785,1,"\uD803\uDCF1"],[68786,1,"\uD803\uDCF2"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69375],3],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"\uD806\uDCC0"],[71841,1,"\uD806\uDCC1"],[71842,1,"\uD806\uDCC2"],[71843,1,"\uD806\uDCC3"],[71844,1,"\uD806\uDCC4"],[71845,1,"\uD806\uDCC5"],[71846,1,"\uD806\uDCC6"],[71847,1,"\uD806\uDCC7"],[71848,1,"\uD806\uDCC8"],[71849,1,"\uD806\uDCC9"],[71850,1,"\uD806\uDCCA"],[71851,1,"\uD806\uDCCB"],[71852,1,"\uD806\uDCCC"],[71853,1,"\uD806\uDCCD"],[71854,1,"\uD806\uDCCE"],[71855,1,"\uD806\uDCCF"],[71856,1,"\uD806\uDCD0"],[71857,1,"\uD806\uDCD1"],[71858,1,"\uD806\uDCD2"],[71859,1,"\uD806\uDCD3"],[71860,1,"\uD806\uDCD4"],[71861,1,"\uD806\uDCD5"],[71862,1,"\uD806\uDCD6"],[71863,1,"\uD806\uDCD7"],[71864,1,"\uD806\uDCD8"],[71865,1,"\uD806\uDCD9"],[71866,1,"\uD806\uDCDA"],[71867,1,"\uD806\uDCDB"],[71868,1,"\uD806\uDCDC"],[71869,1,"\uD806\uDCDD"],[71870,1,"\uD806\uDCDE"],[71871,1,"\uD806\uDCDF"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,3],[[78896,78904],3],[[78905,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"\uD81B\uDE60"],[93761,1,"\uD81B\uDE61"],[93762,1,"\uD81B\uDE62"],[93763,1,"\uD81B\uDE63"],[93764,1,"\uD81B\uDE64"],[93765,1,"\uD81B\uDE65"],[93766,1,"\uD81B\uDE66"],[93767,1,"\uD81B\uDE67"],[93768,1,"\uD81B\uDE68"],[93769,1,"\uD81B\uDE69"],[93770,1,"\uD81B\uDE6A"],[93771,1,"\uD81B\uDE6B"],[93772,1,"\uD81B\uDE6C"],[93773,1,"\uD81B\uDE6D"],[93774,1,"\uD81B\uDE6E"],[93775,1,"\uD81B\uDE6F"],[93776,1,"\uD81B\uDE70"],[93777,1,"\uD81B\uDE71"],[93778,1,"\uD81B\uDE72"],[93779,1,"\uD81B\uDE73"],[93780,1,"\uD81B\uDE74"],[93781,1,"\uD81B\uDE75"],[93782,1,"\uD81B\uDE76"],[93783,1,"\uD81B\uDE77"],[93784,1,"\uD81B\uDE78"],[93785,1,"\uD81B\uDE79"],[93786,1,"\uD81B\uDE7A"],[93787,1,"\uD81B\uDE7B"],[93788,1,"\uD81B\uDE7C"],[93789,1,"\uD81B\uDE7D"],[93790,1,"\uD81B\uDE7E"],[93791,1,"\uD81B\uDE7F"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110927],3],[[110928,110930],2],[[110931,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"\uD834\uDD57\uD834\uDD65"],[119135,1,"\uD834\uDD58\uD834\uDD65"],[119136,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6E"],[119137,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6F"],[119138,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD70"],[119139,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD71"],[119140,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\uD834\uDDB9\uD834\uDD65"],[119228,1,"\uD834\uDDBA\uD834\uDD65"],[119229,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6E"],[119230,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6E"],[119231,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6F"],[119232,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6F"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03B1"],[120489,1,"\u03B2"],[120490,1,"\u03B3"],[120491,1,"\u03B4"],[120492,1,"\u03B5"],[120493,1,"\u03B6"],[120494,1,"\u03B7"],[120495,1,"\u03B8"],[120496,1,"\u03B9"],[120497,1,"\u03BA"],[120498,1,"\u03BB"],[120499,1,"\u03BC"],[120500,1,"\u03BD"],[120501,1,"\u03BE"],[120502,1,"\u03BF"],[120503,1,"\u03C0"],[120504,1,"\u03C1"],[120505,1,"\u03B8"],[120506,1,"\u03C3"],[120507,1,"\u03C4"],[120508,1,"\u03C5"],[120509,1,"\u03C6"],[120510,1,"\u03C7"],[120511,1,"\u03C8"],[120512,1,"\u03C9"],[120513,1,"\u2207"],[120514,1,"\u03B1"],[120515,1,"\u03B2"],[120516,1,"\u03B3"],[120517,1,"\u03B4"],[120518,1,"\u03B5"],[120519,1,"\u03B6"],[120520,1,"\u03B7"],[120521,1,"\u03B8"],[120522,1,"\u03B9"],[120523,1,"\u03BA"],[120524,1,"\u03BB"],[120525,1,"\u03BC"],[120526,1,"\u03BD"],[120527,1,"\u03BE"],[120528,1,"\u03BF"],[120529,1,"\u03C0"],[120530,1,"\u03C1"],[[120531,120532],1,"\u03C3"],[120533,1,"\u03C4"],[120534,1,"\u03C5"],[120535,1,"\u03C6"],[120536,1,"\u03C7"],[120537,1,"\u03C8"],[120538,1,"\u03C9"],[120539,1,"\u2202"],[120540,1,"\u03B5"],[120541,1,"\u03B8"],[120542,1,"\u03BA"],[120543,1,"\u03C6"],[120544,1,"\u03C1"],[120545,1,"\u03C0"],[120546,1,"\u03B1"],[120547,1,"\u03B2"],[120548,1,"\u03B3"],[120549,1,"\u03B4"],[120550,1,"\u03B5"],[120551,1,"\u03B6"],[120552,1,"\u03B7"],[120553,1,"\u03B8"],[120554,1,"\u03B9"],[120555,1,"\u03BA"],[120556,1,"\u03BB"],[120557,1,"\u03BC"],[120558,1,"\u03BD"],[120559,1,"\u03BE"],[120560,1,"\u03BF"],[120561,1,"\u03C0"],[120562,1,"\u03C1"],[120563,1,"\u03B8"],[120564,1,"\u03C3"],[120565,1,"\u03C4"],[120566,1,"\u03C5"],[120567,1,"\u03C6"],[120568,1,"\u03C7"],[120569,1,"\u03C8"],[120570,1,"\u03C9"],[120571,1,"\u2207"],[120572,1,"\u03B1"],[120573,1,"\u03B2"],[120574,1,"\u03B3"],[120575,1,"\u03B4"],[120576,1,"\u03B5"],[120577,1,"\u03B6"],[120578,1,"\u03B7"],[120579,1,"\u03B8"],[120580,1,"\u03B9"],[120581,1,"\u03BA"],[120582,1,"\u03BB"],[120583,1,"\u03BC"],[120584,1,"\u03BD"],[120585,1,"\u03BE"],[120586,1,"\u03BF"],[120587,1,"\u03C0"],[120588,1,"\u03C1"],[[120589,120590],1,"\u03C3"],[120591,1,"\u03C4"],[120592,1,"\u03C5"],[120593,1,"\u03C6"],[120594,1,"\u03C7"],[120595,1,"\u03C8"],[120596,1,"\u03C9"],[120597,1,"\u2202"],[120598,1,"\u03B5"],[120599,1,"\u03B8"],[120600,1,"\u03BA"],[120601,1,"\u03C6"],[120602,1,"\u03C1"],[120603,1,"\u03C0"],[120604,1,"\u03B1"],[120605,1,"\u03B2"],[120606,1,"\u03B3"],[120607,1,"\u03B4"],[120608,1,"\u03B5"],[120609,1,"\u03B6"],[120610,1,"\u03B7"],[120611,1,"\u03B8"],[120612,1,"\u03B9"],[120613,1,"\u03BA"],[120614,1,"\u03BB"],[120615,1,"\u03BC"],[120616,1,"\u03BD"],[120617,1,"\u03BE"],[120618,1,"\u03BF"],[120619,1,"\u03C0"],[120620,1,"\u03C1"],[120621,1,"\u03B8"],[120622,1,"\u03C3"],[120623,1,"\u03C4"],[120624,1,"\u03C5"],[120625,1,"\u03C6"],[120626,1,"\u03C7"],[120627,1,"\u03C8"],[120628,1,"\u03C9"],[120629,1,"\u2207"],[120630,1,"\u03B1"],[120631,1,"\u03B2"],[120632,1,"\u03B3"],[120633,1,"\u03B4"],[120634,1,"\u03B5"],[120635,1,"\u03B6"],[120636,1,"\u03B7"],[120637,1,"\u03B8"],[120638,1,"\u03B9"],[120639,1,"\u03BA"],[120640,1,"\u03BB"],[120641,1,"\u03BC"],[120642,1,"\u03BD"],[120643,1,"\u03BE"],[120644,1,"\u03BF"],[120645,1,"\u03C0"],[120646,1,"\u03C1"],[[120647,120648],1,"\u03C3"],[120649,1,"\u03C4"],[120650,1,"\u03C5"],[120651,1,"\u03C6"],[120652,1,"\u03C7"],[120653,1,"\u03C8"],[120654,1,"\u03C9"],[120655,1,"\u2202"],[120656,1,"\u03B5"],[120657,1,"\u03B8"],[120658,1,"\u03BA"],[120659,1,"\u03C6"],[120660,1,"\u03C1"],[120661,1,"\u03C0"],[120662,1,"\u03B1"],[120663,1,"\u03B2"],[120664,1,"\u03B3"],[120665,1,"\u03B4"],[120666,1,"\u03B5"],[120667,1,"\u03B6"],[120668,1,"\u03B7"],[120669,1,"\u03B8"],[120670,1,"\u03B9"],[120671,1,"\u03BA"],[120672,1,"\u03BB"],[120673,1,"\u03BC"],[120674,1,"\u03BD"],[120675,1,"\u03BE"],[120676,1,"\u03BF"],[120677,1,"\u03C0"],[120678,1,"\u03C1"],[120679,1,"\u03B8"],[120680,1,"\u03C3"],[120681,1,"\u03C4"],[120682,1,"\u03C5"],[120683,1,"\u03C6"],[120684,1,"\u03C7"],[120685,1,"\u03C8"],[120686,1,"\u03C9"],[120687,1,"\u2207"],[120688,1,"\u03B1"],[120689,1,"\u03B2"],[120690,1,"\u03B3"],[120691,1,"\u03B4"],[120692,1,"\u03B5"],[120693,1,"\u03B6"],[120694,1,"\u03B7"],[120695,1,"\u03B8"],[120696,1,"\u03B9"],[120697,1,"\u03BA"],[120698,1,"\u03BB"],[120699,1,"\u03BC"],[120700,1,"\u03BD"],[120701,1,"\u03BE"],[120702,1,"\u03BF"],[120703,1,"\u03C0"],[120704,1,"\u03C1"],[[120705,120706],1,"\u03C3"],[120707,1,"\u03C4"],[120708,1,"\u03C5"],[120709,1,"\u03C6"],[120710,1,"\u03C7"],[120711,1,"\u03C8"],[120712,1,"\u03C9"],[120713,1,"\u2202"],[120714,1,"\u03B5"],[120715,1,"\u03B8"],[120716,1,"\u03BA"],[120717,1,"\u03C6"],[120718,1,"\u03C1"],[120719,1,"\u03C0"],[120720,1,"\u03B1"],[120721,1,"\u03B2"],[120722,1,"\u03B3"],[120723,1,"\u03B4"],[120724,1,"\u03B5"],[120725,1,"\u03B6"],[120726,1,"\u03B7"],[120727,1,"\u03B8"],[120728,1,"\u03B9"],[120729,1,"\u03BA"],[120730,1,"\u03BB"],[120731,1,"\u03BC"],[120732,1,"\u03BD"],[120733,1,"\u03BE"],[120734,1,"\u03BF"],[120735,1,"\u03C0"],[120736,1,"\u03C1"],[120737,1,"\u03B8"],[120738,1,"\u03C3"],[120739,1,"\u03C4"],[120740,1,"\u03C5"],[120741,1,"\u03C6"],[120742,1,"\u03C7"],[120743,1,"\u03C8"],[120744,1,"\u03C9"],[120745,1,"\u2207"],[120746,1,"\u03B1"],[120747,1,"\u03B2"],[120748,1,"\u03B3"],[120749,1,"\u03B4"],[120750,1,"\u03B5"],[120751,1,"\u03B6"],[120752,1,"\u03B7"],[120753,1,"\u03B8"],[120754,1,"\u03B9"],[120755,1,"\u03BA"],[120756,1,"\u03BB"],[120757,1,"\u03BC"],[120758,1,"\u03BD"],[120759,1,"\u03BE"],[120760,1,"\u03BF"],[120761,1,"\u03C0"],[120762,1,"\u03C1"],[[120763,120764],1,"\u03C3"],[120765,1,"\u03C4"],[120766,1,"\u03C5"],[120767,1,"\u03C6"],[120768,1,"\u03C7"],[120769,1,"\u03C8"],[120770,1,"\u03C9"],[120771,1,"\u2202"],[120772,1,"\u03B5"],[120773,1,"\u03B8"],[120774,1,"\u03BA"],[120775,1,"\u03C6"],[120776,1,"\u03C1"],[120777,1,"\u03C0"],[[120778,120779],1,"\u03DD"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"\uD83A\uDD22"],[125185,1,"\uD83A\uDD23"],[125186,1,"\uD83A\uDD24"],[125187,1,"\uD83A\uDD25"],[125188,1,"\uD83A\uDD26"],[125189,1,"\uD83A\uDD27"],[125190,1,"\uD83A\uDD28"],[125191,1,"\uD83A\uDD29"],[125192,1,"\uD83A\uDD2A"],[125193,1,"\uD83A\uDD2B"],[125194,1,"\uD83A\uDD2C"],[125195,1,"\uD83A\uDD2D"],[125196,1,"\uD83A\uDD2E"],[125197,1,"\uD83A\uDD2F"],[125198,1,"\uD83A\uDD30"],[125199,1,"\uD83A\uDD31"],[125200,1,"\uD83A\uDD32"],[125201,1,"\uD83A\uDD33"],[125202,1,"\uD83A\uDD34"],[125203,1,"\uD83A\uDD35"],[125204,1,"\uD83A\uDD36"],[125205,1,"\uD83A\uDD37"],[125206,1,"\uD83A\uDD38"],[125207,1,"\uD83A\uDD39"],[125208,1,"\uD83A\uDD3A"],[125209,1,"\uD83A\uDD3B"],[125210,1,"\uD83A\uDD3C"],[125211,1,"\uD83A\uDD3D"],[125212,1,"\uD83A\uDD3E"],[125213,1,"\uD83A\uDD3F"],[125214,1,"\uD83A\uDD40"],[125215,1,"\uD83A\uDD41"],[125216,1,"\uD83A\uDD42"],[125217,1,"\uD83A\uDD43"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062C"],[126467,1,"\u062F"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062D"],[126472,1,"\u0637"],[126473,1,"\u064A"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062A"],[126486,1,"\u062B"],[126487,1,"\u062E"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063A"],[126492,1,"\u066E"],[126493,1,"\u06BA"],[126494,1,"\u06A1"],[126495,1,"\u066F"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062C"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062D"],[126504,3],[126505,1,"\u064A"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062A"],[126518,1,"\u062B"],[126519,1,"\u062E"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063A"],[[126524,126529],3],[126530,1,"\u062C"],[[126531,126534],3],[126535,1,"\u062D"],[126536,3],[126537,1,"\u064A"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062E"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063A"],[126556,3],[126557,1,"\u06BA"],[126558,3],[126559,1,"\u066F"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062C"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062D"],[126568,1,"\u0637"],[126569,1,"\u064A"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062A"],[126582,1,"\u062B"],[126583,1,"\u062E"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063A"],[126588,1,"\u066E"],[126589,3],[126590,1,"\u06A1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062C"],[126595,1,"\u062F"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062D"],[126600,1,"\u0637"],[126601,1,"\u064A"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062A"],[126614,1,"\u062B"],[126615,1,"\u062E"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063A"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062C"],[126627,1,"\u062F"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062D"],[126632,1,"\u0637"],[126633,1,"\u064A"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062A"],[126646,1,"\u062B"],[126647,1,"\u062E"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063A"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"\u3014s\u3015"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"\u307B\u304B"],[127489,1,"\u30B3\u30B3"],[127490,1,"\u30B5"],[[127491,127503],3],[127504,1,"\u624B"],[127505,1,"\u5B57"],[127506,1,"\u53CC"],[127507,1,"\u30C7"],[127508,1,"\u4E8C"],[127509,1,"\u591A"],[127510,1,"\u89E3"],[127511,1,"\u5929"],[127512,1,"\u4EA4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524D"],[127517,1,"\u5F8C"],[127518,1,"\u518D"],[127519,1,"\u65B0"],[127520,1,"\u521D"],[127521,1,"\u7D42"],[127522,1,"\u751F"],[127523,1,"\u8CA9"],[127524,1,"\u58F0"],[127525,1,"\u5439"],[127526,1,"\u6F14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4E00"],[127530,1,"\u4E09"],[127531,1,"\u904A"],[127532,1,"\u5DE6"],[127533,1,"\u4E2D"],[127534,1,"\u53F3"],[127535,1,"\u6307"],[127536,1,"\u8D70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7A7A"],[127540,1,"\u5408"],[127541,1,"\u6E80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55B6"],[127547,1,"\u914D"],[[127548,127551],3],[127552,1,"\u3014\u672C\u3015"],[127553,1,"\u3014\u4E09\u3015"],[127554,1,"\u3014\u4E8C\u3015"],[127555,1,"\u3014\u5B89\u3015"],[127556,1,"\u3014\u70B9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76D7\u3015"],[127559,1,"\u3014\u52DD\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5F97"],[127569,1,"\u53EF"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128732],3],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128895],3],[[128896,128980],2],[[128981,128984],2],[[128985,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],3],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],3],[[129712,129718],2],[[129719,129722],2],[[129723,129727],3],[[129728,129730],2],[[129731,129733],2],[[129734,129743],3],[[129744,129750],2],[[129751,129753],2],[[129754,129759],3],[[129760,129767],2],[[129768,129775],3],[[129776,129782],2],[[129783,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[[177977,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\uD840\uDD22"],[194564,1,"\u4F60"],[194565,1,"\u4FAE"],[194566,1,"\u4FBB"],[194567,1,"\u5002"],[194568,1,"\u507A"],[194569,1,"\u5099"],[194570,1,"\u50E7"],[194571,1,"\u50CF"],[194572,1,"\u349E"],[194573,1,"\uD841\uDE3A"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\uD841\uDD1C"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\uD841\uDD4B"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\uD864\uDDDF"],[194589,1,"\u51F5"],[194590,1,"\u5203"],[194591,1,"\u34DF"],[194592,1,"\u523B"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52C7"],[194598,1,"\u52C9"],[194599,1,"\u52E4"],[194600,1,"\u52FA"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535A"],[194607,1,"\u5373"],[194608,1,"\u537D"],[[194609,194611],1,"\u537F"],[194612,1,"\uD842\uDE2C"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\uD842\uDF63"],[194617,1,"\u53EB"],[194618,1,"\u53F1"],[194619,1,"\u5406"],[194620,1,"\u549E"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54A2"],[194625,1,"\u54F6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55AB"],[194633,1,"\u55B3"],[194634,1,"\u55C2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58EE"],[194642,1,"\u57CE"],[194643,1,"\u57F4"],[194644,1,"\u580D"],[194645,1,"\u578B"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58AC"],[194649,1,"\uD845\uDCE4"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\uD845\uDEA8"],[194657,1,"\uD845\uDEEA"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,3],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\uD846\uDDC8"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\uD846\uDF18"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,3],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\uD847\uDDE4"],[194684,1,"\u5D43"],[194685,1,"\uD847\uDDE6"],[194686,1,"\u5D6E"],[194687,1,"\u5D6B"],[194688,1,"\u5D7C"],[194689,1,"\u5DE1"],[194690,1,"\u5DE2"],[194691,1,"\u382F"],[194692,1,"\u5DFD"],[194693,1,"\u5E28"],[194694,1,"\u5E3D"],[194695,1,"\u5E69"],[194696,1,"\u3862"],[194697,1,"\uD848\uDD83"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\uD868\uDF92"],[194704,1,"\u5EFE"],[[194705,194706],1,"\uD848\uDF31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\uD84C\uDEB8"],[194712,1,"\uD858\uDDDA"],[194713,1,"\u5F62"],[194714,1,"\u5F6B"],[194715,1,"\u38E3"],[194716,1,"\u5F9A"],[194717,1,"\u5FCD"],[194718,1,"\u5FD7"],[194719,1,"\u5FF9"],[194720,1,"\u6081"],[194721,1,"\u393A"],[194722,1,"\u391C"],[194723,1,"\u6094"],[194724,1,"\uD849\uDED4"],[194725,1,"\u60C7"],[194726,1,"\u6148"],[194727,1,"\u614C"],[194728,1,"\u614E"],[194729,1,"\u614C"],[194730,1,"\u617A"],[194731,1,"\u618E"],[194732,1,"\u61B2"],[194733,1,"\u61A4"],[194734,1,"\u61AF"],[194735,1,"\u61DE"],[194736,1,"\u61F2"],[194737,1,"\u61F6"],[194738,1,"\u6210"],[194739,1,"\u621B"],[194740,1,"\u625D"],[194741,1,"\u62B1"],[194742,1,"\u62D4"],[194743,1,"\u6350"],[194744,1,"\uD84A\uDF0C"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\uD84A\uDFF1"],[194751,1,"\u6422"],[194752,1,"\u63C5"],[194753,1,"\u63A9"],[194754,1,"\u3A2E"],[194755,1,"\u6469"],[194756,1,"\u647E"],[194757,1,"\u649D"],[194758,1,"\u6477"],[194759,1,"\u3A6C"],[194760,1,"\u654F"],[194761,1,"\u656C"],[194762,1,"\uD84C\uDC0A"],[194763,1,"\u65E3"],[194764,1,"\u66F8"],[194765,1,"\u6649"],[194766,1,"\u3B19"],[194767,1,"\u6691"],[194768,1,"\u3B08"],[194769,1,"\u3AE4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669C"],[194774,1,"\u80AD"],[194775,1,"\u43D9"],[194776,1,"\u6717"],[194777,1,"\u671B"],[194778,1,"\u6721"],[194779,1,"\u675E"],[194780,1,"\u6753"],[194781,1,"\uD84C\uDFC3"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\uD84D\uDC6D"],[194788,1,"\u688E"],[194789,1,"\u681F"],[194790,1,"\u6914"],[194791,1,"\u3B9D"],[194792,1,"\u6942"],[194793,1,"\u69A3"],[194794,1,"\u69EA"],[194795,1,"\u6AA8"],[194796,1,"\uD84D\uDEA3"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\uD84E\uDCA7"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\uD84E\uDE8D"],[194808,1,"\uD847\uDD0B"],[194809,1,"\uD84E\uDEFA"],[194810,1,"\u6C4E"],[194811,1,"\uD84F\uDCBC"],[194812,1,"\u6CBF"],[194813,1,"\u6CCD"],[194814,1,"\u6C67"],[194815,1,"\u6D16"],[194816,1,"\u6D3E"],[194817,1,"\u6D77"],[194818,1,"\u6D41"],[194819,1,"\u6D69"],[194820,1,"\u6D78"],[194821,1,"\u6D85"],[194822,1,"\uD84F\uDD1E"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\uD84F\uDED1"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\uD84F\uDF5E"],[194833,1,"\uD84F\uDF8E"],[194834,1,"\u6FC6"],[194835,1,"\u7039"],[194836,1,"\u701E"],[194837,1,"\u701B"],[194838,1,"\u3D96"],[194839,1,"\u704A"],[194840,1,"\u707D"],[194841,1,"\u7077"],[194842,1,"\u70AD"],[194843,1,"\uD841\uDD25"],[194844,1,"\u7145"],[194845,1,"\uD850\uDE63"],[194846,1,"\u719C"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\uD851\uDE08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\uD851\uDF35"],[194855,1,"\uD852\uDC14"],[194856,1,"\u737A"],[194857,1,"\u738B"],[194858,1,"\u3EAC"],[194859,1,"\u73A5"],[[194860,194861],1,"\u3EB8"],[194862,1,"\u7447"],[194863,1,"\u745C"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74CA"],[194867,1,"\u3F1B"],[194868,1,"\u7524"],[194869,1,"\uD853\uDC36"],[194870,1,"\u753E"],[194871,1,"\uD853\uDC92"],[194872,1,"\u7570"],[194873,1,"\uD848\uDD9F"],[194874,1,"\u7610"],[194875,1,"\uD853\uDFA1"],[194876,1,"\uD853\uDFB8"],[194877,1,"\uD854\uDC44"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\uD854\uDCF3"],[194882,1,"\uD854\uDCF2"],[194883,1,"\uD854\uDD19"],[194884,1,"\uD854\uDD33"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\uD855\uDC1D"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\uD855\uDE26"],[194899,1,"\u7956"],[194900,1,"\uD855\uDE9A"],[194901,1,"\uD855\uDEC5"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\uD856\uDD7C"],[[194909,194910],1,"\uD856\uDEA7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\uD856\uDFAB"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\uD857\uDC80"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\uD857\uDF86"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\uD858\uDE28"],[194931,1,"\uD858\uDE47"],[194932,1,"\u4359"],[194933,1,"\uD858\uDED9"],[194934,1,"\u7F7A"],[194935,1,"\uD858\uDF3E"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\uD859\uDCDA"],[194940,1,"\uD859\uDD23"],[194941,1,"\u8060"],[194942,1,"\uD859\uDDA8"],[194943,1,"\u8070"],[194944,1,"\uD84C\uDF5F"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\uD859\uDFA7"],[194952,1,"\uD859\uDFB5"],[194953,1,"\uD84C\uDF93"],[194954,1,"\uD84C\uDF9C"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8F9E"],[194958,1,"\u446B"],[194959,1,"\u8291"],[194960,1,"\u828B"],[194961,1,"\u829D"],[194962,1,"\u52B3"],[194963,1,"\u82B1"],[194964,1,"\u82B3"],[194965,1,"\u82BD"],[194966,1,"\u82E6"],[194967,1,"\uD85A\uDF3C"],[194968,1,"\u82E5"],[194969,1,"\u831D"],[194970,1,"\u8363"],[194971,1,"\u83AD"],[194972,1,"\u8323"],[194973,1,"\u83BD"],[194974,1,"\u83E7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83CA"],[194978,1,"\u83CC"],[194979,1,"\u83DC"],[194980,1,"\uD85B\uDC36"],[194981,1,"\uD85B\uDD6B"],[194982,1,"\uD85B\uDCD5"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\uD85C\uDFCA"],[194988,1,"\u8564"],[194989,1,"\uD85B\uDF2C"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\uD85B\uDFB1"],[194993,1,"\uD85C\uDCD2"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195000,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\uD85D\uDE67"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\uD85E\uDCAE"],[195020,1,"\uD85E\uDD66"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\uD85F\uDCA8"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\uD85F\uDF2F"],[195033,1,"\uD842\uDC04"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\uD842\uDCDE"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\uD861\uDDD2"],[195041,1,"\uD861\uDDED"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\uD861\uDF2E"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\uD862\uDFFA"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\uD863\uDD77"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\uD864\uDD45"],[195063,1,"\uD864\uDE1A"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\uD865\uDC0A"],[195068,1,"\u4AB2"],[195069,1,"\uD865\uDC96"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\uD865\uDDB6"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\uD866\uDF30"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\uD868\uDCCE"],[195089,1,"\u4CF8"],[195090,1,"\uD868\uDD05"],[195091,1,"\uD868\uDE0E"],[195092,1,"\uD868\uDE91"],[195093,1,"\u9EBB"],[195094,1,"\u4D56"],[195095,1,"\u9EF9"],[195096,1,"\u9EFE"],[195097,1,"\u9F05"],[195098,1,"\u9F0F"],[195099,1,"\u9F16"],[195100,1,"\u9F3B"],[195101,1,"\uD869\uDE00"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]});var pw=z((pm,dw)=>{pm.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var sw=z((I11,iw)=>{var lm=function(Z){return/[^\x00-\x7F]/u.test(Z)},lw=function(Z,{useSTD3ASCIIRules:J}){let $=0,X=cw.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=cw[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=Z&&G>=Z){if(J&&(Q[1]===W0.disallowed_STD3_valid||Q[1]===W0.disallowed_STD3_mapped))return[W0.disallowed,...Q.slice(2)];else if(Q[1]===W0.disallowed_STD3_valid)return[W0.valid,...Q.slice(2)];else if(Q[1]===W0.disallowed_STD3_mapped)return[W0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>Z)X=Y-1;else $=Y+1}return null},am=function(Z,{useSTD3ASCIIRules:J,processingOption:$}){let X=!1,Y="";for(let Q of Z){const[K,G]=lw(Q.codePointAt(0),{useSTD3ASCIIRules:J});switch(K){case W0.disallowed:X=!0,Y+=Q;break;case W0.ignored:break;case W0.mapped:Y+=G;break;case W0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case W0.valid:Y+=Q;break}}return{string:Y,error:X}},im=function(Z,{checkHyphens:J,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(Z.normalize("NFC")!==Z)return!1;const K=Array.from(Z);if(J){if(K[2]==="-"&&K[3]==="-"||(Z.startsWith("-")||Z.endsWith("-")))return!1}if(Z.includes(".")||K.length>0&&s0.combiningMarks.test(K[0]))return!1;for(let G of K){const[q]=lw(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&q!==W0.valid||Y==="nontransitional"&&q!==W0.valid&&q!==W0.deviation)return!1}if(X){let G=0;for(let[q,F]of K.entries())if(F==="\u200C"||F==="\u200D"){if(q>0){if(s0.combiningClassVirama.test(K[q-1]))continue;if(F==="\u200C"){const W=K.indexOf("\u200C",q+1),H=W<0?K.slice(G):K.slice(G,W);if(s0.validZWNJ.test(H.join(""))){G=q+1;continue}}}return!1}}if($){let G;if(s0.bidiS1LTR.test(K[0]))G=!1;else if(s0.bidiS1RTL.test(K[0]))G=!0;else return!1;if(G){if(!s0.bidiS2.test(Z)||!s0.bidiS3.test(Z)||s0.bidiS4EN.test(Z)&&s0.bidiS4AN.test(Z))return!1}else if(!s0.bidiS5.test(Z)||!s0.bidiS6.test(Z))return!1}return!0},sm=function(Z){const J=Z.map(($)=>{if($.startsWith("xn--"))try{return h3.decode($.substring(4))}catch(X){return""}return $}).join(".");return s0.bidiDomain.test(J)},aw=function(Z,J){const{processingOption:$}=J;let{string:X,error:Y}=am(Z,J);X=X.normalize("NFC");const Q=X.split("."),K=sm(Q);for(let[G,q]of Q.entries()){let F=q,W=$;if(F.startsWith("xn--")){try{F=h3.decode(F.substring(4)),Q[G]=F}catch(V){Y=!0;continue}W="nontransitional"}if(Y)continue;if(!im(F,{...J,processingOption:W,checkBidi:J.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},nm=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional",verifyDNSLength:K=!1}={}){if(Q!=="transitional"&&Q!=="nontransitional")throw new RangeError("processingOption must be either transitional or nontransitional");const G=aw(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let q=G.string.split(".");if(q=q.map((F)=>{if(lm(F))try{return`xn--${h3.encode(F)}`}catch(W){G.error=!0}return F}),K){const F=q.join(".").length;if(F>253||F===0)G.error=!0;for(let W=0;W<q.length;++W)if(q[W].length>63||q[W].length===0){G.error=!0;break}}if(G.error)return null;return q.join(".")},tm=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=aw(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},h3=import.meta.require("punycode"),s0=mw(),cw=uw(),{STATUS_MAPPING:W0}=pw();iw.exports={toASCII:nm,toUnicode:tm}});var S3=z((E11,tw)=>{var O3=function(Z){return Z>=48&&Z<=57},nw=function(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122},rm=function(Z){return nw(Z)||O3(Z)},om=function(Z){return O3(Z)||Z>=65&&Z<=70||Z>=97&&Z<=102};tw.exports={isASCIIDigit:O3,isASCIIAlpha:nw,isASCIIAlphanumeric:rm,isASCIIHex:om}});var KJ=z((N11,rw)=>{var Ju=function(Z){return em.encode(Z)},$u=function(Z){return Zu.decode(Z)},em=new TextEncoder,Zu=new TextDecoder("utf-8",{ignoreBOM:!0});rw.exports={utf8Encode:Ju,utf8DecodeWithoutBOM:$u}});var GJ=z((B11,YR)=>{var t=function(Z){return Z.codePointAt(0)},Xu=function(Z){let J=Z.toString(16).toUpperCase();if(J.length===1)J=`0${J}`;return`%${J}`},ZR=function(Z){const J=new Uint8Array(Z.byteLength);let $=0;for(let X=0;X<Z.byteLength;++X){const Y=Z[X];if(Y!==37)J[$++]=Y;else if(Y===37&&(!ow(Z[X+1])||!ow(Z[X+2])))J[$++]=Y;else{const Q=parseInt(String.fromCodePoint(Z[X+1],Z[X+2]),16);J[$++]=Q,X+=2}}return J.slice(0,$)},Yu=function(Z){const J=ew(Z);return ZR(J)},y3=function(Z){return Z<=31||Z>126},Ku=function(Z){return y3(Z)||Qu.has(Z)},k3=function(Z){return y3(Z)||Gu.has(Z)},qu=function(Z){return k3(Z)||Z===t("'")},JR=function(Z){return k3(Z)||Fu.has(Z)},$R=function(Z){return JR(Z)||Wu.has(Z)},zu=function(Z){return $R(Z)||Hu.has(Z)},Uu=function(Z){return zu(Z)||Vu.has(Z)},XR=function(Z,J){const $=ew(Z);let X="";for(let Y of $)if(!J(Y))X+=String.fromCharCode(Y);else X+=Xu(Y);return X},Mu=function(Z,J){return XR(String.fromCodePoint(Z),J)},ju=function(Z,J,$=!1){let X="";for(let Y of Z)if($&&Y===" ")X+="+";else X+=XR(Y,J);return X},{isASCIIHex:ow}=S3(),{utf8Encode:ew}=KJ(),Qu=new Set([t(" "),t("\""),t("<"),t(">"),t("`")]),Gu=new Set([t(" "),t("\""),t("#"),t("<"),t(">")]),Fu=new Set([t("?"),t("`"),t("{"),t("}")]),Wu=new Set([t("/"),t(":"),t(";"),t("="),t("@"),t("["),t("\\"),t("]"),t("^"),t("|")]),Hu=new Set([t("$"),t("%"),t("&"),t("+"),t(",")]),Vu=new Set([t("!"),t("'"),t("("),t(")"),t("~")]);YR.exports={isC0ControlPercentEncode:y3,isFragmentPercentEncode:Ku,isQueryPercentEncode:k3,isSpecialQueryPercentEncode:qu,isPathPercentEncode:JR,isUserinfoPercentEncode:$R,isURLEncodedPercentEncode:Uu,percentDecodeString:Yu,percentDecodeBytes:ZR,utf8PercentEncodeString:ju,utf8PercentEncodeCodePoint:Mu}});var b3=z((cu,H0)=>{var E=function(Z){return Z.codePointAt(0)},QR=function(Z){return[...Z].length},KR=function(Z,J){const $=Z[J];return isNaN($)?void 0:String.fromCodePoint($)},GR=function(Z){return Z==="."||Z.toLowerCase()==="%2e"},Iu=function(Z){return Z=Z.toLowerCase(),Z===".."||Z==="%2e."||Z===".%2e"||Z==="%2e%2e"},Eu=function(Z,J){return i1.isASCIIAlpha(Z)&&(J===E(":")||J===E("|"))},HR=function(Z){return Z.length===2&&i1.isASCIIAlpha(Z.codePointAt(0))&&(Z[1]===":"||Z[1]==="|")},Nu=function(Z){return Z.length===2&&i1.isASCIIAlpha(Z.codePointAt(0))&&Z[1]===":"},Bu=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Cu=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},qJ=function(Z){return WR[Z]!==void 0},a1=function(Z){return qJ(Z.scheme)},_3=function(Z){return!qJ(Z.scheme)},zR=function(Z){return WR[Z]},VR=function(Z){if(Z==="")return m;let J=10;if(Z.length>=2&&Z.charAt(0)==="0"&&Z.charAt(1).toLowerCase()==="x")Z=Z.substring(2),J=16;else if(Z.length>=2&&Z.charAt(0)==="0")Z=Z.substring(1),J=8;if(Z==="")return 0;let $=/[^0-7]/u;if(J===10)$=/[^0-9]/u;if(J===16)$=/[^0-9A-Fa-f]/u;if($.test(Z))return m;return parseInt(Z,J)},hu=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length>1)J.pop()}if(J.length>4)return m;const $=[];for(let Q of J){const K=VR(Q);if(K===m)return m;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return m;if($[$.length-1]>=256**(5-$.length))return m;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},Ou=function(Z){let J="",$=Z;for(let X=1;X<=4;++X){if(J=String($%256)+J,X!==4)J=`.${J}`;$=Math.floor($/256)}return J},Su=function(Z){const J=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(Z=Array.from(Z,(Q)=>Q.codePointAt(0)),Z[Y]===E(":")){if(Z[Y+1]!==E(":"))return m;Y+=2,++$,X=$}while(Y<Z.length){if($===8)return m;if(Z[Y]===E(":")){if(X!==null)return m;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&i1.isASCIIHex(Z[Y]))Q=Q*16+parseInt(KR(Z,Y),16),++Y,++K;if(Z[Y]===E(".")){if(K===0)return m;if(Y-=K,$>6)return m;let G=0;while(Z[Y]!==void 0){let q=null;if(G>0)if(Z[Y]===E(".")&&G<4)++Y;else return m;if(!i1.isASCIIDigit(Z[Y]))return m;while(i1.isASCIIDigit(Z[Y])){const F=parseInt(KR(Z,Y));if(q===null)q=F;else if(q===0)return m;else q=q*10+F;if(q>255)return m;++Y}if(J[$]=J[$]*256+q,++G,G===2||G===4)++$}if(G!==4)return m;break}else if(Z[Y]===E(":")){if(++Y,Z[Y]===void 0)return m}else if(Z[Y]!==void 0)return m;J[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=J[X+Q-1];J[X+Q-1]=J[$],J[$]=K,--$,--Q}}else if(X===null&&$!==8)return m;return J},yu=function(Z){let J="";const $=xu(Z);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&Z[Y]===0)continue;else if(X)X=!1;if($===Y){J+=Y===0?"::":":",X=!0;continue}if(J+=Z[Y].toString(16),Y!==7)J+=":"}return J},x3=function(Z,J=!1){if(Z[0]==="["){if(Z[Z.length-1]!=="]")return m;return Su(Z.substring(1,Z.length-1))}if(J)return _u(Z);const $=Lu(wu(Z)),X=vu($);if(X===m)return m;if(Bu(X))return m;if(ku(X))return hu(X);return X},ku=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length===1)return!1;J.pop()}const $=J[J.length-1];if(VR($)!==m)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},_u=function(Z){if(Cu(Z))return m;return WJ(Z,FR)},xu=function(Z){let J=null,$=1,X=null,Y=0;for(let Q=0;Q<Z.length;++Q)if(Z[Q]!==0){if(Y>$)J=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return J},f3=function(Z){if(typeof Z==="number")return Ou(Z);if(Z instanceof Array)return`[${yu(Z)}]`;return Z},vu=function(Z,J=!1){const $=Au.toASCII(Z,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:J,verifyDNSLength:J});if($===null||$==="")return m;return $},fu=function(Z){return Z.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},gu=function(Z){return Z.replace(/\u0009|\u000A|\u000D/ug,"")},UR=function(Z){const{path:J}=Z;if(J.length===0)return;if(Z.scheme==="file"&&J.length===1&&mu(J[0]))return;J.pop()},MR=function(Z){return Z.username!==""||Z.password!==""},bu=function(Z){return Z.host===null||Z.host===""||D7(Z)||Z.scheme==="file"},D7=function(Z){return typeof Z.path==="string"},mu=function(Z){return/^[A-Za-z]:$/u.test(Z)},I1=function(Z,J,$,X,Y){if(this.pointer=0,this.input=Z,this.base=J||null,this.encodingOverride=$||"utf-8",this.stateOverride=Y,this.url=X,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const K=fu(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=gu(this.input);if(Q!==this.input)this.parseError=!0;this.input=Q,this.state=Y||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(K)=>K.codePointAt(0));for(;this.pointer<=this.input.length;++this.pointer){const K=this.input[this.pointer],G=isNaN(K)?void 0:String.fromCodePoint(K),q=this[`parse ${this.state}`](K,G);if(!q)break;else if(q===m){this.failure=!0;break}}},jR=function(Z,J){const $=Z.length-J;return $>=2&&Eu(Z[J],Z[J+1])&&($===2||uu.has(Z[J+2]))},du=function(Z,J){let $=`${Z.scheme}:`;if(Z.host!==null){if($+="//",Z.username!==""||Z.password!==""){if($+=Z.username,Z.password!=="")$+=`:${Z.password}`;$+="@"}if($+=f3(Z.host),Z.port!==null)$+=`:${Z.port}`}if(Z.host===null&&!D7(Z)&&Z.path.length>1&&Z.path[0]==="")$+="/.";if($+=g3(Z),Z.query!==null)$+=`?${Z.query}`;if(!J&&Z.fragment!==null)$+=`#${Z.fragment}`;return $},pu=function(Z){let J=`${Z.scheme}://`;if(J+=f3(Z.host),Z.port!==null)J+=`:${Z.port}`;return J},g3=function(Z){if(D7(Z))return Z.path;let J="";for(let $ of Z.path)J+=`/${$}`;return J},Au=sw(),i1=S3(),{utf8DecodeWithoutBOM:Lu}=KJ(),{percentDecodeString:wu,utf8PercentEncodeCodePoint:FJ,utf8PercentEncodeString:WJ,isC0ControlPercentEncode:FR,isFragmentPercentEncode:Ru,isQueryPercentEncode:Pu,isSpecialQueryPercentEncode:Du,isPathPercentEncode:Tu,isUserinfoPercentEncode:v3}=GJ(),WR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},m=Symbol("failure");I1.prototype["parse scheme start"]=function Z(J,$){if(i1.isASCIIAlpha(J))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,m;return!0};I1.prototype["parse scheme"]=function Z(J,$){if(i1.isASCIIAlphanumeric(J)||J===E("+")||J===E("-")||J===E("."))this.buffer+=$.toLowerCase();else if(J===E(":")){if(this.stateOverride){if(a1(this.url)&&!qJ(this.buffer))return!1;if(!a1(this.url)&&qJ(this.buffer))return!1;if((MR(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&this.url.host==="")return!1}if(this.url.scheme=this.buffer,this.stateOverride){if(this.url.port===zR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==E("/")||this.input[this.pointer+2]!==E("/"))this.parseError=!0;this.state="file"}else if(a1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(a1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===E("/"))this.state="path or authority",++this.pointer;else this.url.path="",this.state="opaque path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,m;return!0};I1.prototype["parse no scheme"]=function Z(J){if(this.base===null||D7(this.base)&&J!==E("#"))return m;else if(D7(this.base)&&J===E("#"))this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};I1.prototype["parse special relative or authority"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};I1.prototype["parse path or authority"]=function Z(J){if(J===E("/"))this.state="authority";else this.state="path",--this.pointer;return!0};I1.prototype["parse relative"]=function Z(J){if(this.url.scheme=this.base.scheme,J===E("/"))this.state="relative slash";else if(a1(this.url)&&J===E("\\"))this.parseError=!0,this.state="relative slash";else if(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};I1.prototype["parse relative slash"]=function Z(J){if(a1(this.url)&&(J===E("/")||J===E("\\"))){if(J===E("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(J===E("/"))this.state="authority";else this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer;return!0};I1.prototype["parse special authority slashes"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};I1.prototype["parse special authority ignore slashes"]=function Z(J){if(J!==E("/")&&J!==E("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};I1.prototype["parse authority"]=function Z(J,$){if(J===E("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=QR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===E(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=FJ(Q,v3);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,m;this.pointer-=QR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};I1.prototype["parse hostname"]=I1.prototype["parse host"]=function Z(J,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(J===E(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,m;if(this.stateOverride==="hostname")return!1;const X=x3(this.buffer,_3(this.url));if(X===m)return m;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")){if(--this.pointer,a1(this.url)&&this.buffer==="")return this.parseError=!0,m;else if(this.stateOverride&&this.buffer===""&&(MR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=x3(this.buffer,_3(this.url));if(X===m)return m;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(J===E("["))this.arrFlag=!0;else if(J===E("]"))this.arrFlag=!1;this.buffer+=$}return!0};I1.prototype["parse port"]=function Z(J,$){if(i1.isASCIIDigit(J))this.buffer+=$;else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,m;this.url.port=X===zR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,m;return!0};var uu=new Set([E("/"),E("\\"),E("?"),E("#")]);I1.prototype["parse file"]=function Z(J){if(this.url.scheme="file",this.url.host="",J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J)){if(this.url.query=null,!jR(this.input,this.pointer))UR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};I1.prototype["parse file slash"]=function Z(J){if(J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!jR(this.input,this.pointer)&&Nu(this.base.path[0]))this.url.path.push(this.base.path[0]);this.url.host=this.base.host}this.state="path",--this.pointer}return!0};I1.prototype["parse file host"]=function Z(J,$){if(isNaN(J)||J===E("/")||J===E("\\")||J===E("?")||J===E("#"))if(--this.pointer,!this.stateOverride&&HR(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let X=x3(this.buffer,_3(this.url));if(X===m)return m;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};I1.prototype["parse path start"]=function Z(J){if(a1(this.url)){if(J===E("\\"))this.parseError=!0;if(this.state="path",J!==E("/")&&J!==E("\\"))--this.pointer}else if(!this.stateOverride&&J===E("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&J===E("#"))this.url.fragment="",this.state="fragment";else if(J!==void 0){if(this.state="path",J!==E("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};I1.prototype["parse path"]=function Z(J){if(isNaN(J)||J===E("/")||a1(this.url)&&J===E("\\")||!this.stateOverride&&(J===E("?")||J===E("#"))){if(a1(this.url)&&J===E("\\"))this.parseError=!0;if(Iu(this.buffer)){if(UR(this.url),J!==E("/")&&!(a1(this.url)&&J===E("\\")))this.url.path.push("")}else if(GR(this.buffer)&&J!==E("/")&&!(a1(this.url)&&J===E("\\")))this.url.path.push("");else if(!GR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&HR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",J===E("?"))this.url.query="",this.state="query";if(J===E("#"))this.url.fragment="",this.state="fragment"}else{if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=FJ(J,Tu)}return!0};I1.prototype["parse opaque path"]=function Z(J){if(J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(J)&&J!==E("%"))this.parseError=!0;if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(J))this.url.path+=FJ(J,FR)}return!0};I1.prototype["parse query"]=function Z(J,$){if(!a1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&J===E("#")||isNaN(J)){const X=a1(this.url)?Du:Pu;if(this.url.query+=WJ(this.buffer,X),this.buffer="",J===E("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(J)){if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};I1.prototype["parse fragment"]=function Z(J){if(!isNaN(J)){if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=FJ(J,Ru)}return!0};cu.serializeURL=du;cu.serializePath=g3;cu.serializeURLOrigin=function(Z){switch(Z.scheme){case"blob":try{return cu.serializeURLOrigin(cu.parseURL(g3(Z)))}catch(J){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return pu({scheme:Z.scheme,host:Z.host,port:Z.port});case"file":return"null";default:return"null"}};cu.basicURLParse=function(Z,J){if(J===void 0)J={};const $=new I1(Z,J.baseURL,J.encodingOverride,J.url,J.stateOverride);if($.failure)return null;return $.url};cu.setTheUsername=function(Z,J){Z.username=WJ(J,v3)};cu.setThePassword=function(Z,J){Z.password=WJ(J,v3)};cu.serializeHost=f3;cu.cannotHaveAUsernamePasswordPort=bu;cu.hasAnOpaquePath=D7;cu.serializeInteger=function(Z){return String(Z)};cu.parseURL=function(Z,J){if(J===void 0)J={};return cu.basicURLParse(Z,{baseURL:J.baseURL,encodingOverride:J.encodingOverride})}});var m3=z((C11,IR)=>{var DR=function(Z){return Z.codePointAt(0)},Jd=function(Z){const J=Yd(Z,DR("&")),$=[];for(let X of J){if(X.length===0)continue;let Y,Q;const K=X.indexOf(DR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=TR(Y,43,32),Q=TR(Q,43,32);const G=LR(wR(Y)),q=LR(wR(Q));$.push([G,q])}return $},$d=function(Z){return Jd(Zd(Z))},Xd=function(Z,J=void 0){let $="utf-8";if(J!==void 0)$=J;let X="";for(let[Y,Q]of Z.entries()){const K=RR(Q[0],PR,!0);let G=Q[1];if(Q.length>2&&Q[2]!==void 0){if(Q[2]==="hidden"&&K==="_charset_")G=$;else if(Q[2]==="file")G=G.name}if(G=RR(G,PR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},Yd=function(Z,J){const $=[];let X=0,Y=Z.indexOf(J);while(Y>=0)$.push(Z.slice(X,Y)),X=Y+1,Y=Z.indexOf(J,X);if(X!==Z.length)$.push(Z.slice(X));return $},TR=function(Z,J,$){let X=Z.indexOf(J);while(X>=0)Z[X]=$,X=Z.indexOf(J,X+1);return Z},{utf8Encode:Zd,utf8DecodeWithoutBOM:LR}=KJ(),{percentDecodeBytes:wR,utf8PercentEncodeString:RR,isURLEncodedPercentEncode:PR}=GJ();IR.exports={parseUrlencodedString:$d,serializeUrlencoded:Xd}});var NR=z((Qd)=>{var ER=XJ(),HJ=QJ();Qd.convert=(Z,J,{context:$="The provided value"}={})=>{if(typeof J!=="function")throw new Z.TypeError($+" is not a function");function X(...Y){const Q=HJ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=HJ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(J,Q,Y),K=ER.any(K,{context:$,globals:Z}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=HJ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(J,Y);return Q=ER.any(Q,{context:$,globals:Z}),Q},X[HJ.wrapperSymbol]=J,X.objectReference=J,X}});var BR=z((Gd)=>{var u3=m3();Gd.implementation=class Z{constructor(J,$,{doNotStripQMark:X=!1}){let Y=$[0];if(this._list=[],this._url=null,!X&&typeof Y==="string"&&Y[0]==="?")Y=Y.slice(1);if(Array.isArray(Y))for(let Q of Y){if(Q.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([Q[0],Q[1]])}else if(typeof Y==="object"&&Object.getPrototypeOf(Y)===null)for(let Q of Object.keys(Y)){const K=Y[Q];this._list.push([Q,K])}else this._list=u3.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let J=u3.serializeUrlencoded(this._list);if(J==="")J=null;this._url._url.query=J}}append(J,$){this._list.push([J,$]),this._updateSteps()}delete(J){let $=0;while($<this._list.length)if(this._list[$][0]===J)this._list.splice($,1);else $++;this._updateSteps()}get(J){for(let $ of this._list)if($[0]===J)return $[1];return null}getAll(J){const $=[];for(let X of this._list)if(X[0]===J)$.push(X[1]);return $}has(J){for(let $ of this._list)if($[0]===J)return!0;return!1}set(J,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===J)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([J,$]);this._updateSteps()}sort(){this._list.sort((J,$)=>{if(J[0]<$[0])return-1;if(J[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return u3.serializeUrlencoded(this._list)}}});var p3=z((Hd)=>{var OR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!F1.isObject($))$=Z[hR].URLSearchParams.prototype;return Object.create($)},n0=XJ(),F1=QJ(),Fd=NR(),CR=F1.newObjectInRealm,h1=F1.implSymbol,hR=F1.ctorRegistrySymbol;Hd.is=(Z)=>{return F1.isObject(Z)&&F1.hasOwn(Z,h1)&&Z[h1]instanceof m6.implementation};Hd.isImpl=(Z)=>{return F1.isObject(Z)&&Z instanceof m6.implementation};Hd.convert=(Z,J,{context:$="The provided value"}={})=>{if(Hd.is(J))return F1.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URLSearchParams'.`)};Hd.createDefaultIterator=(Z,J,$)=>{const Y=Z[hR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,F1.iterInternalSymbol,{value:{target:J,kind:$,index:0},configurable:!0}),Q};Hd.create=(Z,J,$)=>{const X=OR(Z);return Hd.setup(X,Z,J,$)};Hd.createImpl=(Z,J,$)=>{const X=Hd.create(Z,J,$);return F1.implForWrapper(X)};Hd._internalSetup=(Z,J)=>{};Hd.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,Hd._internalSetup(Z,J),Object.defineProperty(Z,h1,{value:new m6.implementation(J,$,X),configurable:!0}),Z[h1][F1.wrapperSymbol]=Z,m6.init)m6.init(Z[h1]);return Z};Hd.new=(Z,J)=>{const $=OR(Z,J);if(Hd._internalSetup($,Z),Object.defineProperty($,h1,{value:Object.create(m6.implementation.prototype),configurable:!0}),$[h1][F1.wrapperSymbol]=$,m6.init)m6.init($[h1]);return $[h1]};var Wd=new Set(["Window","Worker"]);Hd.install=(Z,J)=>{if(!J.some((Y)=>Wd.has(Y)))return;const $=F1.initCtorRegistry(Z);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(F1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!F1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let q of G){if(!F1.isObject(q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const F=[],W=q;for(let H of W)H=n0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:Z}),F.push(H);q=F}K.push(q)}Q=K}else if(!F1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else{const K=Object.create(null);for(let G of Reflect.ownKeys(Q)){const q=Object.getOwnPropertyDescriptor(Q,G);if(q&&q.enumerable){let F=G;F=n0.USVString(F,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:Z});let W=Q[G];W=n0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:Z}),K[F]=W}}Q=K}else Q=n0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:Z});else Q="";Y.push(Q)}return Hd.setup(Object.create(new.target.prototype),Z,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!Hd.is(K))throw new Z.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let q=arguments[0];q=n0.USVString(q,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:Z}),G.push(q)}{let q=arguments[1];q=n0.USVString(q,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:Z}),G.push(q)}return F1.tryWrapperForImpl(K[h1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return F1.tryWrapperForImpl(Q[h1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return F1.tryWrapperForImpl(Q[h1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!Hd.is(K))throw new Z.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let q=arguments[0];q=n0.USVString(q,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:Z}),G.push(q)}{let q=arguments[1];q=n0.USVString(q,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:Z}),G.push(q)}return F1.tryWrapperForImpl(K[h1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:Z;if(!Hd.is(Y))throw new Z.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return F1.tryWrapperForImpl(Y[h1].sort())}toString(){const Y=this!==null&&this!==void 0?this:Z;if(!Hd.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[h1].toString()}keys(){if(!Hd.is(this))throw new Z.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"key")}values(){if(!Hd.is(this))throw new Z.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"value")}entries(){if(!Hd.is(this))throw new Z.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"key+value")}forEach(Y){if(!Hd.is(this))throw new Z.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=Fd.convert(Z,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[h1]),G=0;while(G<K.length){const[q,F]=K[G].map(F1.tryWrapperForImpl);Y.call(Q,F,q,this),K=Array.from(this[h1]),G++}}}Object.defineProperties(X.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:X.prototype.entries,configurable:!0,writable:!0}}),$["URLSearchParams"]=X,$["URLSearchParams Iterator"]=Object.create($["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),F1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[F1.iterInternalSymbol];if(!Y)throw new Z.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:Q,kind:K,index:G}=Y,q=Array.from(Q[h1]),F=q.length;if(G>=F)return CR(Z,{value:void 0,done:!0});const W=q[G];return Y.index=G+1,CR(Z,F1.iteratorResult(W.map(F1.tryWrapperForImpl),K))}}),Object.defineProperty(Z,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var m6=BR()});var _R=z((Ld)=>{var U1=b3(),kR=m3(),Ad=p3();Ld.implementation=class Z{constructor(J,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=U1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=U1.basicURLParse(X,{baseURL:Q});if(K===null)throw new TypeError(`Invalid URL: ${X}`);const G=K.query!==null?K.query:"";this._url=K,this._query=Ad.createImpl(J,[G],{doNotStripQMark:!0}),this._query._url=this}get href(){return U1.serializeURL(this._url)}set href(J){const $=U1.basicURLParse(J);if($===null)throw new TypeError(`Invalid URL: ${J}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=kR.parseUrlencodedString(X)}get origin(){return U1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(J){U1.basicURLParse(`${J}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;U1.setTheUsername(this._url,J)}get password(){return this._url.password}set password(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;U1.setThePassword(this._url,J)}get host(){const J=this._url;if(J.host===null)return"";if(J.port===null)return U1.serializeHost(J.host);return`${U1.serializeHost(J.host)}:${U1.serializeInteger(J.port)}`}set host(J){if(U1.hasAnOpaquePath(this._url))return;U1.basicURLParse(J,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return U1.serializeHost(this._url.host)}set hostname(J){if(U1.hasAnOpaquePath(this._url))return;U1.basicURLParse(J,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return U1.serializeInteger(this._url.port)}set port(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;if(J==="")this._url.port=null;else U1.basicURLParse(J,{url:this._url,stateOverride:"port"})}get pathname(){return U1.serializePath(this._url)}set pathname(J){if(U1.hasAnOpaquePath(this._url))return;this._url.path=[],U1.basicURLParse(J,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(J){const $=this._url;if(J===""){$.query=null,this._query._list=[];return}const X=J[0]==="?"?J.substring(1):J;$.query="",U1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=kR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(J){if(J===""){this._url.fragment=null;return}const $=J[0]==="#"?J.substring(1):J;this._url.fragment="",U1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}});var gR=z((Dd)=>{var xR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!S0.isObject($))$=Z[Rd].URL.prototype;return Object.create($)},t0=XJ(),S0=QJ(),e=S0.implSymbol,Rd=S0.ctorRegistrySymbol;Dd.is=(Z)=>{return S0.isObject(Z)&&S0.hasOwn(Z,e)&&Z[e]instanceof u6.implementation};Dd.isImpl=(Z)=>{return S0.isObject(Z)&&Z instanceof u6.implementation};Dd.convert=(Z,J,{context:$="The provided value"}={})=>{if(Dd.is(J))return S0.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URL'.`)};Dd.create=(Z,J,$)=>{const X=xR(Z);return Dd.setup(X,Z,J,$)};Dd.createImpl=(Z,J,$)=>{const X=Dd.create(Z,J,$);return S0.implForWrapper(X)};Dd._internalSetup=(Z,J)=>{};Dd.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,Dd._internalSetup(Z,J),Object.defineProperty(Z,e,{value:new u6.implementation(J,$,X),configurable:!0}),Z[e][S0.wrapperSymbol]=Z,u6.init)u6.init(Z[e]);return Z};Dd.new=(Z,J)=>{const $=xR(Z,J);if(Dd._internalSetup($,Z),Object.defineProperty($,e,{value:Object.create(u6.implementation.prototype),configurable:!0}),$[e][S0.wrapperSymbol]=$,u6.init)u6.init($[e]);return $[e]};var Pd=new Set(["Window","Worker"]);Dd.install=(Z,J)=>{if(!J.some((Y)=>Pd.has(Y)))return;const $=S0.initCtorRegistry(Z);class X{constructor(Y){if(arguments.length<1)throw new Z.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=t0.USVString(K,{context:"Failed to construct 'URL': parameter 1",globals:Z}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=t0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:Z});Q.push(K)}return Dd.setup(Object.create(new.target.prototype),Z,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[e].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[e].href}set href(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set href' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:Z}),Q[e].href=Y}toString(){const Y=this;if(!Dd.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[e].href}get origin(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[e].origin}get protocol(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[e].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set protocol' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:Z}),Q[e].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[e].username}set username(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set username' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:Z}),Q[e].username=Y}get password(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[e].password}set password(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set password' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:Z}),Q[e].password=Y}get host(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[e].host}set host(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set host' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:Z}),Q[e].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[e].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set hostname' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:Z}),Q[e].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[e].port}set port(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set port' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:Z}),Q[e].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[e].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set pathname' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:Z}),Q[e].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[e].search}set search(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set search' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:Z}),Q[e].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return S0.getSameObject(this,"searchParams",()=>{return S0.tryWrapperForImpl(Y[e].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[e].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set hash' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:Z}),Q[e].hash=Y}}if(Object.defineProperties(X.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),$["URL"]=X,Object.defineProperty(Z,"URL",{configurable:!0,writable:!0,value:X}),J.includes("Window"))Object.defineProperty(Z,"webkitURL",{configurable:!0,writable:!0,value:X})};var u6=_R()});var bR=z((Od)=>{var Cd=gR(),hd=p3();Od.URL=Cd;Od.URLSearchParams=hd});var uR=z((xd)=>{var{URL:kd,URLSearchParams:_d}=bR(),z8=b3(),mR=GJ(),VJ={Array,Object,Promise,String,TypeError};kd.install(VJ,["Window"]);_d.install(VJ,["Window"]);xd.URL=VJ.URL;xd.URLSearchParams=VJ.URLSearchParams;xd.parseURL=z8.parseURL;xd.basicURLParse=z8.basicURLParse;xd.serializeURL=z8.serializeURL;xd.serializePath=z8.serializePath;xd.serializeHost=z8.serializeHost;xd.serializeInteger=z8.serializeInteger;xd.serializeURLOrigin=z8.serializeURLOrigin;xd.setTheUsername=z8.setTheUsername;xd.setThePassword=z8.setThePassword;xd.cannotHaveAUsernamePasswordPort=z8.cannotHaveAUsernamePasswordPort;xd.hasAnOpaquePath=z8.hasAnOpaquePath;xd.percentDecodeString=mR.percentDecodeString;xd.percentDecodeBytes=mR.percentDecodeBytes});var pR=z((r0)=>{var Zp=function(Z,J){var $,X;const Y=Z.clone(),Q=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;if((Y.username||Y.password)&&K)Y.username=Q,Y.password="";else if(Y.password)Y.password=Q;if(Y.searchParams.has("authMechanismProperties")){const G=new dR.CommaAndColonSeparatedRecord(Y.searchParams.get("authMechanismProperties"));if(G.get("AWS_SESSION_TOKEN"))G.set("AWS_SESSION_TOKEN",Q),Y.searchParams.set("authMechanismProperties",G.toString())}if(Y.searchParams.has("tlsCertificateKeyFilePassword"))Y.searchParams.set("tlsCertificateKeyFilePassword",Q);if(Y.searchParams.has("proxyUsername")&&K)Y.searchParams.set("proxyUsername",Q);if(Y.searchParams.has("proxyPassword"))Y.searchParams.set("proxyPassword",Q);return Y},Jp=function(Z,J){var $,X;const Y=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new dR.default(Z)}catch(F){}if(K)return J={...J,replacementString:"___credentials___"},K.redact(J).toString().replace(/___credentials___/g,Y);const G=Y,q=[(F)=>F.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(F)=>F.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(F)=>F.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(F)=>Q?F.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):F,(F)=>F.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let F of q)Z=F(Z);return Z},rd=r0&&r0.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),od=r0&&r0.__setModuleDefault||(Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J}),ed=r0&&r0.__importStar||function(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var $ in Z)if($!=="default"&&Object.prototype.hasOwnProperty.call(Z,$))rd(J,Z,$)}return od(J,Z),J};Object.defineProperty(r0,"__esModule",{value:!0});r0.redactConnectionString=r0.redactValidConnectionString=void 0;var dR=ed(l3());r0.redactValidConnectionString=Zp;r0.redactConnectionString=Jp});var l3=z((i3)=>{var Xp=function(Z){return Z.startsWith("mongodb://")||Z.startsWith("mongodb+srv://")},Qp=function(Z){return class J extends Z{append($,X){return super.append(this._normalizeKey($),X)}delete($){return super.delete(this._normalizeKey($))}get($){return super.get(this._normalizeKey($))}getAll($){return super.getAll(this._normalizeKey($))}has($){return super.has(this._normalizeKey($))}set($,X){return super.set(this._normalizeKey($),X)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey($){return a3.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(i3,"__esModule",{value:!0});i3.CommaAndColonSeparatedRecord=i3.ConnectionString=i3.redactConnectionString=void 0;var $p=uR(),cR=pR();Object.defineProperty(i3,"redactConnectionString",{enumerable:!0,get:function(){return cR.redactConnectionString}});var s5="__this_is_a_placeholder__",Yp=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a3 extends Map{delete(Z){return super.delete(this._normalizeKey(Z))}get(Z){return super.get(this._normalizeKey(Z))}has(Z){return super.has(this._normalizeKey(Z))}set(Z,J){return super.set(this._normalizeKey(Z),J)}_normalizeKey(Z){Z=`${Z}`;for(let J of this.keys())if(J.toLowerCase()===Z.toLowerCase()){Z=J;break}return Z}}class lR extends $p.URL{}class _8 extends Error{get name(){return"MongoParseError"}}class n5 extends lR{constructor(Z,J={}){var $;const{looseValidation:X}=J;if(!X&&!Xp(Z))throw new _8('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=Z.match(Yp);if(!Y)throw new _8(`Invalid connection string "${Z}"`);const{protocol:Q,username:K,password:G,hosts:q,rest:F}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!q)throw new _8(`Protocol and host list are required in "${Z}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(V){throw new _8(V.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new _8(`Username contains unescaped characters ${K}`);if(!K||!G){const V=Z.replace(`${Q}://`,"");if(V.startsWith("@")||V.startsWith(":"))throw new _8("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new _8("Password contains unescaped characters")}let W="";if(typeof K==="string")W+=K;if(typeof G==="string")W+=`:${G}`;if(W)W+="@";try{super(`${Q.toLowerCase()}://${W}${s5}${F}`)}catch(H){if(X)new n5(Z,{...J,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(s5,q);throw H}if(this._hosts=q.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new _8("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new _8("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,Qp(this.searchParams.constructor).prototype)}get host(){return s5}set host(Z){throw new Error("No single host for connection string")}get hostname(){return s5}set hostname(Z){throw new Error("No single host for connection string")}get port(){return""}set port(Z){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(Z){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(Z){this._hosts=Z}toString(){return super.toString().replace(s5,this.hosts.join(","))}clone(){return new n5(this.toString(),{looseValidation:!0})}redact(Z){return cR.redactValidConnectionString(this,Z)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:q,hash:F}=this;return{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:q,hash:F}}}i3.ConnectionString=n5;class aR extends a3{constructor(Z){super();for(let J of(Z!==null&&Z!==void 0?Z:"").split(",")){if(!J)continue;const $=J.indexOf(":");if($===-1)this.set(J,"");else this.set(J.slice(0,$),J.slice($+1))}}toString(){return[...this].map((Z)=>Z.join(":")).join(",")}}i3.CommaAndColonSeparatedRecord=aR;i3.default=n5});var sR=z((b11,qp)=>{qp.exports={name:"mongodb",version:"5.9.2",description:"The official MongoDB driver for Node.js",main:"lib/index.js",files:["lib","src","etc/prepare.js","mongodb.d.ts","tsconfig.json"],types:"mongodb.d.ts",repository:{type:"git",url:"git@github.com:mongodb/node-mongodb-native.git"},keywords:["mongodb","driver","official"],author:{name:"The MongoDB NodeJS Team",email:"dbx-node@mongodb.com"},dependencies:{bson:"^5.5.0","mongodb-connection-string-url":"^2.6.0",socks:"^2.7.1"},optionalDependencies:{"@mongodb-js/saslprep":"^1.1.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.0.0",kerberos:"^1.0.0 || ^2.0.0","mongodb-client-encryption":">=2.3.0 <3",snappy:"^7.2.2"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.35.1","@microsoft/tsdoc-config":"^0.16.2","@mongodb-js/zstd":"^1.1.0","@octokit/core":"^4.2.4","@types/chai":"^4.3.5","@types/chai-subset":"^1.3.3","@types/express":"^4.17.17","@types/kerberos":"^1.1.2","@types/mocha":"^10.0.1","@types/node":"^20.1.0","@types/semver":"^7.5.0","@types/sinon":"^10.0.14","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.40.0","eslint-config-prettier":"^8.8.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17",express:"^4.18.2","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-legacy":"^5.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.0",sinon:"^15.0.4","sinon-chai":"^3.7.0",snappy:"^7.2.2","source-map-support":"^0.5.21","ts-node":"^10.9.1",tsd:"^0.28.1",typescript:"^5.0.4","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.2.0",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=14.20.1"},bugs:{url:"https://jira.mongodb.org/projects/NODE/issues/"},homepage:"https://github.com/mongodb/node-mongodb-native",scripts:{"build:evergreen":"node .evergreen/generate_evergreen_tasks.js","build:ts":"node ./node_modules/typescript/bin/tsc","build:dts":"npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"node test/benchmarks/driverBench","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js","check:lint":"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd","check:eslint":"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test","check:tsd":"tsd --version && tsd","check:dependencies":"mocha test/action/dependency.test.ts","check:dts":"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd","check:search-indexes":"nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.spec.test.ts","check:test":"mocha --config test/mocha_mongodb.json test/integration","check:unit":"mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js","check:adl":"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts","check:oidc":"mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts","check:oidc-azure":"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts","check:ocsp":"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js","check:kerberos":"nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts","check:tls":"mocha --config test/manual/mocharc.json test/manual/tls_support.test.js","check:ldap":"nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js","check:socks5":"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts","check:csfle":"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption","check:snappy":"mocha test/unit/assorted/snappy.test.js","fix:eslint":"npm run check:eslint -- --fix",prepare:"node etc/prepare.js","preview:docs":"ts-node etc/docs/preview.ts",test:"npm run check:lint && npm run test:all","test:all":"npm run check:unit && npm run check:test","update:docs":"npm run build:docs -- --yes"},tsd:{directory:"test/types",compilerOptions:{strict:!0,target:"esnext",module:"commonjs",moduleResolution:"node"}}}});var ZP=z((oR)=>{var Fp=function(Z){const J=new s3(512),{appName:$=""}=Z;if($.length>0){const W=Buffer.byteLength($,"utf8")<=128?Z.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");J.ifItFitsItSits("application",{name:W})}const{name:X="",version:Y="",platform:Q=""}=Z.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${tR}|${Y}`:tR};if(!J.ifItFitsItSits("driver",K))throw new nR.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=Wp();if(Q.length>0)G=`${G}|${Q}`;if(!J.ifItFitsItSits("platform",G))throw new nR.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const q=(new Map()).set("name",UJ.platform).set("architecture",UJ.arch).set("version",t5.release()).set("type",t5.type());if(!J.ifItFitsItSits("os",q))for(let W of q.keys()){if(q.delete(W),q.size===0)break;if(J.ifItFitsItSits("os",q))break}const F=rR();if(F!=null){if(!J.ifItFitsItSits("env",F))for(let W of F.keys()){if(F.delete(W),F.size===0)break;if(J.ifItFitsItSits("env",F))break}}return J.toObject()},rR=function(){const{AWS_EXECUTION_ENV:Z="",AWS_LAMBDA_RUNTIME_API:J="",FUNCTIONS_WORKER_RUNTIME:$="",K_SERVICE:X="",FUNCTION_NAME:Y="",VERCEL:Q="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:K="",AWS_REGION:G="",FUNCTION_MEMORY_MB:q="",FUNCTION_REGION:F="",FUNCTION_TIMEOUT_SEC:W="",VERCEL_REGION:H=""}=UJ.env,V=Z.startsWith("AWS_Lambda_")||J.length>0,j=$.length>0,U=X.length>0||Y.length>0,L=Q.length>0,D=new Map;if(L&&!(j||U)){if(H.length>0)D.set("region",H);return D.set("name","vercel"),D}if(V&&!(j||U||L)){if(G.length>0)D.set("region",G);if(K.length>0&&Number.isInteger(+K))D.set("memory_mb",new T7.Int32(K));return D.set("name","aws.lambda"),D}if(j&&!(U||V||L))return D.set("name","azure.func"),D;if(U&&!(j||V||L)){if(F.length>0)D.set("region",F);if(q.length>0&&Number.isInteger(+q))D.set("memory_mb",new T7.Int32(q));if(W.length>0&&Number.isInteger(+W))D.set("timeout_sec",new T7.Int32(W));return D.set("name","gcp.func"),D}return null},Wp=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${t5.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${t5.endianness()}`;return`Node.js ${UJ.version}, ${t5.endianness()}`};Object.defineProperty(oR,"__esModule",{value:!0});oR.getFAASEnv=oR.makeClientMetadata=oR.LimitedSizeDocument=void 0;var t5=import.meta.require("os"),UJ=import.meta.require("process"),T7=D1(),nR=h(),tR=sR().version;class s3{constructor(Z){this.maxSize=Z,this.document=new Map,this.documentSize=5}ifItFitsItSits(Z,J){const $=T7.BSON.serialize((new Map()).set(Z,J)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(Z,J),!0}toObject(){return T7.BSON.deserialize(T7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}oR.LimitedSizeDocument=s3;oR.makeClientMetadata=Fp;oR.getFAASEnv=rR});var jJ=z((KP)=>{var YP=function(){if(q6==null){const Z=$P.getSnappy();if("kModuleError"in Z)throw Z.kModuleError;q6=Z}return q6};async function Ap(Z,J){const $={};switch(Z.agreedCompressor){case"snappy":return q6??(q6=YP()),q6.compress(J);case"zstd":{if(QP(),"kModuleError"in p6)throw p6.kModuleError;return p6.compress(J,Up)}case"zlib":{if(Z.zlibCompressionLevel)$.level=Z.zlibCompressionLevel;return jp(J,$)}default:throw new XP.MongoInvalidArgumentError(`Unknown compressor ${Z.agreedCompressor} failed to compress`)}}async function Lp(Z,J){if(Z!==KP.Compressor.snappy&&Z!==KP.Compressor.zstd&&Z!==KP.Compressor.zlib&&Z!==KP.Compressor.none)throw new XP.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${Z})`);switch(Z){case KP.Compressor.snappy:return q6??(q6=YP()),q6.uncompress(J,{asBuffer:!0});case KP.Compressor.zstd:{if(QP(),"kModuleError"in p6)throw p6.kModuleError;return p6.decompress(J)}case KP.Compressor.zlib:return Mp(J);default:return J}}var QP=function(){if(!p6)p6=$P.getZstdLibrary()};Object.defineProperty(KP,"__esModule",{value:!0});KP.decompress=KP.compress=KP.uncompressibleCommands=KP.Compressor=void 0;var JP=import.meta.require("util"),MJ=import.meta.require("zlib"),Vp=f1(),$P=j7(),XP=h();KP.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});KP.uncompressibleCommands=new Set([Vp.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var Up=3,Mp=JP.promisify(MJ.inflate.bind(MJ)),jp=JP.promisify(MJ.deflate.bind(MJ)),p6,q6=null;KP.compress=Ap;KP.decompress=Lp});var VP=z((HP)=>{Object.defineProperty(HP,"__esModule",{value:!0});HP.Encrypter=void 0;var Pp=f1(),qP=h(),Dp=I7(),Tp=_(),FP,r5=Symbol("internalClient");class WP{constructor(Z,J,$){if(typeof $.autoEncryption!=="object")throw new qP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[r5]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=Z;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(Z,J,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=Z;else $.autoEncryption.metadataClient=this.getInternalClient(Z,J,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new FP(Z,$.autoEncryption)}getInternalClient(Z,J,$){let X=this[r5];if(X==null){const Y={};for(let Q of[...Object.getOwnPropertyNames($),...Object.getOwnPropertySymbols($)]){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(Q))continue;Reflect.set(Y,Q,Reflect.get($,Q))}Y.minPoolSize=0,X=new Dp.MongoClient(J,Y),this[r5]=X;for(let Q of Pp.MONGO_CLIENT_EVENTS)for(let K of Z.listeners(Q))X.on(Q,K);Z.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const Z=this[r5];if(this.needsConnecting&&Z!=null)this.needsConnecting=!1,await Z.connect()}close(Z,J,$){this.autoEncrypter.teardown(!!J,(X)=>{const Y=this[r5];if(Y!=null&&Z!==Y){Y.close(J).then(()=>$(),(Q)=>$(Q));return}$(X)})}static checkForMongoCrypt(){const Z=Tp.getMongoDBClientEncryption();if(Z==null)throw new qP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project");FP=Z.extension(o5()).AutoEncrypter}}HP.Encrypter=WP});var e3=z((jP)=>{var e5=function(Z){const J=Object.values(jP.SeverityLevel),$=Z?.toLowerCase();if($!=null&&J.includes($))return $;return null},E7=function(Z){return{write:(J)=>{Z.write(Ep.inspect(J,{compact:!0,breakLength:Infinity}),"utf-8");return}}},Np=function({MONGODB_LOG_PATH:Z},{mongodbLogPath:J}){if(typeof J==="string"&&/^stderr$/i.test(J))return E7(process.stderr);if(typeof J==="string"&&/^stdout$/i.test(J))return E7(process.stdout);if(typeof J==="object"&&typeof J?.write==="function")return J;if(Z&&/^stderr$/i.test(Z))return E7(process.stderr);if(Z&&/^stdout$/i.test(Z))return E7(process.stdout);return E7(process.stderr)},Bp=function(Z,J){const $=jP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z),X=jP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J);return $<X?-1:$>X?1:0},t3=function(Z,J){const $=Ip.EJSON.stringify(Z);return J!==0&&$.length>J?`${$.slice(0,J)}...`:$},Cp=function(Z){const J=Z;return J.toLog!==void 0&&typeof J.toLog==="function"},n3=function(Z,J){Z.commandName=J.commandName,Z.requestId=J.requestId,Z.driverConnectionId=J?.connectionId;const{host:$,port:X}=o3.HostAddress.fromString(J.address).toHostPort();if(Z.serverHost=$,Z.serverPort=X,J?.serviceId)Z.serviceId=J.serviceId.toHexString();return Z},V8=function(Z,J){const{host:$,port:X}=o3.HostAddress.fromString(J.address).toHostPort();return Z.serverHost=$,Z.serverPort=X,Z},hp=function(Z,J=jP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(Z.name){case w0.COMMAND_STARTED:return $=n3($,Z),$.message="Command started",$.command=t3(Z.command,J),$.databaseName=Z.databaseName,$;case w0.COMMAND_SUCCEEDED:return $=n3($,Z),$.message="Command succeeded",$.durationMS=Z.duration,$.reply=t3(Z.reply,J),$;case w0.COMMAND_FAILED:return $=n3($,Z),$.message="Command failed",$.durationMS=Z.duration,$.failure=Z.failure,$;case w0.CONNECTION_POOL_CREATED:if($=V8($,Z),$.message="Connection pool created",Z.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=Z.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case w0.CONNECTION_POOL_READY:return $=V8($,Z),$.message="Connection pool ready",$;case w0.CONNECTION_POOL_CLEARED:if($=V8($,Z),$.message="Connection pool cleared",Z.serviceId?._bsontype==="ObjectId")$.serviceId=Z.serviceId.toHexString();return $;case w0.CONNECTION_POOL_CLOSED:return $=V8($,Z),$.message="Connection pool closed",$;case w0.CONNECTION_CREATED:return $=V8($,Z),$.message="Connection created",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_READY:return $=V8($,Z),$.message="Connection ready",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_CLOSED:switch($=V8($,Z),$.message="Connection closed",$.driverConnectionId=Z.connectionId,Z.reason){case"stale":$.reason="Connection became stale because the pool was cleared";break;case"idle":$.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":if($.reason="An error occurred while using the connection",Z.error)$.error=Z.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case w0.CONNECTION_CHECK_OUT_STARTED:return $=V8($,Z),$.message="Connection checkout started",$;case w0.CONNECTION_CHECK_OUT_FAILED:switch($=V8($,Z),$.message="Connection checkout failed",Z.reason){case"poolClosed":$.reason="Connection pool was closed";break;case"timeout":$.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":if($.reason="An error occurred while trying to establish a new connection",Z.error)$.error=Z.error;break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case w0.CONNECTION_CHECKED_OUT:return $=V8($,Z),$.message="Connection checked out",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_CHECKED_IN:return $=V8($,Z),$.message="Connection checked in",$.driverConnectionId=Z.connectionId,$;default:for(let[X,Y]of Object.entries(Z))if(Y!=null)$[X]=Y}return $};Object.defineProperty(jP,"__esModule",{value:!0});jP.MongoLogger=jP.stringifyWithMaxLen=jP.createStdioLogger=jP.MongoLoggableComponent=jP.SEVERITY_LEVEL_MAP=jP.DEFAULT_MAX_DOCUMENT_LENGTH=jP.SeverityLevel=void 0;var Ip=H5(),Ep=import.meta.require("util"),w0=f1(),o3=_();jP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});jP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class UP extends Map{constructor(Z){const J=[];for(let[$,X]of Z)J.push([X,$]);J.push(...Z);super(J)}getNumericSeverityLevel(Z){return this.get(Z)}getSeverityLevelName(Z){return this.get(Z)}}jP.SEVERITY_LEVEL_MAP=new UP([[jP.SeverityLevel.OFF,(-Infinity)],[jP.SeverityLevel.EMERGENCY,0],[jP.SeverityLevel.ALERT,1],[jP.SeverityLevel.CRITICAL,2],[jP.SeverityLevel.ERROR,3],[jP.SeverityLevel.WARNING,4],[jP.SeverityLevel.NOTICE,5],[jP.SeverityLevel.INFORMATIONAL,6],[jP.SeverityLevel.DEBUG,7],[jP.SeverityLevel.TRACE,8]]);jP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection"});jP.createStdioLogger=E7;jP.stringifyWithMaxLen=t3;class MP{constructor(Z){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=Z.componentSeverities,this.maxDocumentLength=Z.maxDocumentLength,this.logDestination=Z.logDestination}log(Z,J,$){if(Bp(Z,this.componentSeverities[J])>0)return;let X={t:new Date,c:J,s:Z};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Cp($))X={...X,...$.toLog()};else X={...X,...hp($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(Z,J){const $={...Z,...J,mongodbLogPath:Np(Z,J)},X=e5($.MONGODB_LOG_ALL)??jP.SeverityLevel.OFF;return{componentSeverities:{command:e5($.MONGODB_LOG_COMMAND)??X,topology:e5($.MONGODB_LOG_TOPOLOGY)??X,serverSelection:e5($.MONGODB_LOG_SERVER_SELECTION)??X,connection:e5($.MONGODB_LOG_CONNECTION)??X,default:X},maxDocumentLength:o3.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}jP.MongoLogger=MP});var KQ=z((IP)=>{async function mp(Z){if(typeof Z.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(Z.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const J=Z.srvHost,$=await wP.promises.resolveSrv(`_${Z.srvServiceName}._tcp.${J}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:W}of $)if(!s1.matchesParentDomain(W,J))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((W)=>s1.HostAddress.fromString(`${W.name}:${W.port??27017}`));$Q(X,Z,!0);let Y;try{Y=await wP.promises.resolveTxt(J)}catch(W){if(W.code!=="ENODATA"&&W.code!=="ENOTFOUND")throw W;return X}if(Y.length>1)throw new S.MongoParseError("Multiple text records not allowed");const Q=new _p.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((W)=>!JQ.includes(W)))throw new S.MongoParseError(`Text record may only set any of: ${JQ.join(", ")}`);if(JQ.some((W)=>Q.get(W)===""))throw new S.MongoParseError("Cannot have empty URI params in DNS TXT Record");const G=Q.get("authSource")??void 0,q=Q.get("replicaSet")??void 0,F=Q.get("loadBalanced")??void 0;if(!Z.userSpecifiedAuthSource&&G&&Z.credentials&&!x8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(Z.credentials.mechanism))Z.credentials=N7.MongoCredentials.merge(Z.credentials,{source:G});if(!Z.userSpecifiedReplicaSet&&q)Z.replicaSet=q;if(F==="true")Z.loadBalanced=!0;if(Z.replicaSet&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return $Q(X,Z,!0),X}var up=function(Z){if(!Z)return;const J=($,X)=>{if(Z.has($)&&Z.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};J("tlsInsecure","tlsAllowInvalidCertificates"),J("tlsInsecure","tlsAllowInvalidHostnames"),J("tlsInsecure","tlsDisableCertificateRevocationCheck"),J("tlsInsecure","tlsDisableOCSPEndpointCheck"),J("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),J("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),J("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},W6=function(Z,J){if(typeof J==="boolean")return J;const $=String(J).toLowerCase();if(dp.has($)){if($!=="true")s1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : true instead`);return!0}if(pp.has($)){if($!=="false")s1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : false instead`);return!1}throw new S.MongoParseError(`Expected ${Z} to be stringified boolean value, got: ${J}`)},YQ=function(Z,J){const $=s1.parseInteger(J);if($!=null)return $;throw new S.MongoParseError(`Expected ${Z} to be stringified int value, got: ${J}`)},Z9=function(Z,J){const $=YQ(Z,J);if($<0)throw new S.MongoParseError(`${Z} can only be a positive int value, got: ${J}`);return $};function*DP(Z){const J=Z.split(",");for(let $ of J){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var cp=function(Z,J=void 0,$={}){if(J!=null&&!(J instanceof AJ.MongoClient))$=J,J=void 0;if($.useBigInt64&&typeof $.promoteLongs==="boolean"&&!$.promoteLongs)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");if($.useBigInt64&&typeof $.promoteValues==="boolean"&&!$.promoteValues)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");const X=new kp.default(Z),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(IP.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(s1.HostAddress.fromString);const G=new J9;if(X.pathname!=="/"&&X.pathname!==""){const w=decodeURIComponent(X.pathname[0]==="/"?X.pathname.slice(1):X.pathname);if(w)G.set("dbName",[w])}if(X.username!==""){const w={username:decodeURIComponent(X.username)};if(typeof X.password==="string")w.password=decodeURIComponent(X.password);G.set("auth",[w])}for(let w of X.searchParams.keys()){const T=[...X.searchParams.getAll(w)];if(T.includes(""))throw new S.MongoAPIError("URI cannot contain options with no value");if(!G.has(w))G.set(w,T)}const q=new J9(Object.entries($).filter(([,w])=>w!=null));if(G.has("serverApi"))throw new S.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const F=G.get("authMechanismProperties");if(F){for(let w of F)if(/(^|,)ALLOWED_HOSTS:/.test(w))throw new S.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(q.has("loadBalanced"))throw new S.MongoParseError("loadBalanced is only a valid option in the URI");const W=new J9,H=new Set([...G.keys(),...q.keys()]);for(let w of H){const T=[],f=q.get(w);if(f!=null)T.push(f);const N1=G.get(w)??[];T.push(...N1),W.set(w,T)}const V=W.has("tlsCertificateKeyFile")&&!W.has("tlsCertificateFile");if(V)W.set("tlsCertificateFile",W.get("tlsCertificateKeyFile"));if(W.has("tls")||W.has("ssl")){const w=(W.get("tls")||[]).concat(W.get("ssl")||[]).map(W6.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}up(W);const j=s1.setDifference(H,Array.from(Object.keys(IP.OPTIONS)).map((w)=>w.toLowerCase()));if(j.size!==0){const w=j.size>1?"options":"option",T=j.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(j).join(", ")} ${T} not supported`)}for(let[w,T]of Object.entries(IP.OPTIONS)){const f=W.get(w);if(!f||f.length===0){if(IP.DEFAULT_OPTIONS.has(w))TP(K,w,T,[IP.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:N1}=T;if(N1&&!(V&&w==="tlsCertificateFile")){const y=typeof N1==="string"?`: ${N1}`:"";s1.emitWarning(`${w} is a deprecated option${y}`)}TP(K,w,T,f)}}if(K.credentials){const w=K.credentials.mechanism===x8.AuthMechanism.MONGODB_GSSAPI,T=K.credentials.mechanism===x8.AuthMechanism.MONGODB_X509,f=K.credentials.mechanism===x8.AuthMechanism.MONGODB_AWS,N1=K.credentials.mechanism===x8.AuthMechanism.MONGODB_OIDC;if((w||T)&&W.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||T||f||N1)&&K.dbName&&!W.has("authSource"))K.credentials=N7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(f&&K.credentials.username&&!K.credentials.password)throw new S.MongoMissingCredentialsError(`When using ${K.credentials.mechanism} password must be set when a username is specified`);if(K.credentials.validate(),K.credentials.password===""&&K.credentials.username===""&&K.credentials.mechanism===x8.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if($Q(Y,K,Q),J&&K.autoEncryption)PP.Encrypter.checkForMongoCrypt(),K.encrypter=new PP.Encrypter(J,Z,$),K.autoEncrypter=K.encrypter.autoEncrypter;if(K.userSpecifiedAuthSource=q.has("authSource")||G.has("authSource"),K.userSpecifiedReplicaSet=q.has("replicaSet")||G.has("replicaSet"),Q){if(K.srvHost=Y[0],K.directConnection)throw new S.MongoAPIError("SRV URI does not support directConnection");if(K.srvMaxHosts>0&&typeof K.replicaSet==="string")throw new S.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const w=!q.has("tls")&&!G.has("tls"),T=!q.has("ssl")&&!G.has("ssl");if(w&&T)K.tls=!0}else if(G.has("srvMaxHosts")||q.has("srvMaxHosts")||G.has("srvServiceName")||q.has("srvServiceName"))throw new S.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(K.directConnection&&K.hosts.length!==1)throw new S.MongoParseError("directConnection option requires exactly one host");if(!K.proxyHost&&(K.proxyPort||K.proxyUsername||K.proxyPassword))throw new S.MongoParseError("Must specify proxyHost if other proxy options are passed");if(K.proxyUsername&&!K.proxyPassword||!K.proxyUsername&&K.proxyPassword)throw new S.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((w)=>G.get(w)??[]).some((w)=>w.length>1))throw new S.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const L=Symbol.for("@@mdb.enableMongoLogger");K[L]=K[L]??!1;let D={},B={};if(K[L])D={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...K[Symbol.for("@@mdb.internalLoggerConfig")]},B={mongodbLogPath:K.mongodbLogPath};return K.mongoLoggerOptions=vp.MongoLogger.resolveOptions(D,B),K.metadata=xp.makeClientMetadata(K),K},$Q=function(Z,J,$){if(J.loadBalanced){if(Z.length>1)throw new S.MongoParseError(fp);if(J.replicaSet)throw new S.MongoParseError(gp);if(J.directConnection)throw new S.MongoParseError(bp);if($&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},TP=function(Z,J,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??J;switch(Q){case"boolean":Z[G]=W6(G,X[0]);break;case"int":Z[G]=YQ(G,X[0]);break;case"uint":Z[G]=Z9(G,X[0]);break;case"string":if(X[0]==null)break;Z[G]=String(X[0]);break;case"record":if(!s1.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);Z[G]=X[0];break;case"any":Z[G]=X[0];break;default:{if(!K)throw new S.MongoParseError("Descriptors missing a type must define a transform");const q=K({name:G,options:Z,values:X});Z[G]=q;break}}};Object.defineProperty(IP,"__esModule",{value:!0});IP.FEATURE_FLAGS=IP.DEFAULT_OPTIONS=IP.OPTIONS=IP.parseOptions=IP.resolveSRVRecord=void 0;var wP=import.meta.require("dns"),E4=import.meta.require("fs"),kp=l3(),_p=import.meta.require("url"),N7=JJ(),x8=k8(),xp=ZP(),RP=jJ(),PP=VP(),S=h(),AJ=I7(),vp=e3(),ZQ=d0(),c6=y1(),s1=_(),F6=A0(),JQ=["authSource","replicaSet","loadBalanced"],fp="loadBalanced option only supported with a single host in the URI",gp="loadBalanced option not supported with a replicaSet option",bp="loadBalanced option not supported when directConnection is provided";IP.resolveSRVRecord=mp;var dp=new Set(["true","t","1","y","yes"]),pp=new Set(["false","f","0","n","no","-1"]);class J9 extends Map{constructor(Z=[]){super(Z.map(([J,$])=>[J.toLowerCase(),$]))}has(Z){return super.has(Z.toLowerCase())}get(Z){return super.get(Z.toLowerCase())}set(Z,J){return super.set(Z.toLowerCase(),J)}delete(Z){return super.delete(Z.toLowerCase())}}IP.parseOptions=cp;IP.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:Z,options:J,values:[$]}){if(!s1.isRecord($,["username","password"]))throw new S.MongoParseError(`${Z} must be an object with 'username' and 'password' properties`);return N7.MongoCredentials.merge(J.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:Z,values:[J]}){const $=Object.values(x8.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${J}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${J}`);let Y=Z.credentials?.source;if(X===x8.AuthMechanism.MONGODB_PLAIN||x8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=Z.credentials?.password;if(X===x8.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return N7.MongoCredentials.merge(Z.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:Z,values:J}){let $=Object.create(null);for(let X of J)if(typeof X==="string")for(let[Y,Q]of DP(X))try{$[Y]=W6(Y,Q)}catch{$[Y]=Q}else{if(!s1.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return N7.MongoCredentials.merge(Z.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:Z,values:[J]}){const $=String(J);return N7.MongoCredentials.merge(Z.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[Z]}){const J=typeof Z==="string"?{version:Z}:Z,$=J&&J.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(AJ.ServerApiVersion).join('", "')}"]`);if(!Object.values(AJ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(AJ.ServerApiVersion).join('", "')}"]`);return J}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:Z}){const J=new Set;for(let $ of Z){const X=typeof $==="string"?$.split(","):$;if(!Array.isArray(X))throw new S.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let Y of X)if(Object.keys(RP.Compressor).includes(String(Y)))J.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(RP.Compressor)}.`)}return[...J]}},connectTimeoutMS:{default:30000,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:Z,values:[J]}){const $=YQ(Z,J);if($===4||$===6)return $;throw new S.MongoParseError(`Option 'family' must be 4 or 6 got ${$}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,fsync:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from fsync=${$}`);return X}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},keepAlive:{default:!0,type:"boolean",deprecated:"Will not be able to turn off in the future."},keepAliveInitialDelay:{default:120000,type:"uint",deprecated:"Will not be configurable in the future."},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:Z,values:[J]}){const $=Z9(Z,J);if($===0)throw new S.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return $}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:Z,options:J,values:[$]}){const X=Z9(Z,$);if(J.readPreference)return c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,maxStalenessSeconds:X}});else return new c6.ReadPreference("secondary",void 0,{maxStalenessSeconds:X})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform({values:[Z],options:J}){return{...J.driverInfo,name:String(Z)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:s1.DEFAULT_PK_FACTORY,transform({values:[Z]}){if(s1.isRecord(Z,["createPk"])&&typeof Z.createPk==="function")return Z;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${Z}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[Z],options:J}){if(Z instanceof ZQ.ReadConcern||s1.isRecord(Z,["level"]))return ZQ.ReadConcern.fromOptions({...J.readConcern,...Z});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(Z)}`)}},readConcernLevel:{target:"readConcern",transform({values:[Z],options:J}){return ZQ.ReadConcern.fromOptions({...J.readConcern,level:Z})}},readPreference:{default:c6.ReadPreference.primary,transform({values:[Z],options:J}){if(Z instanceof c6.ReadPreference)return c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if(s1.isRecord(Z,["mode"])){const $=c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(Z)}`)}if(typeof Z==="string"){const $={hedge:J.readPreference?.hedge,maxStalenessSeconds:J.readPreference?.maxStalenessSeconds};return new c6.ReadPreference(Z,J.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${Z}`)}},readPreferenceTags:{target:"readPreference",transform({values:Z,options:J}){const $=Array.isArray(Z[0])?Z[0]:Z,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of DP(Y))Q[K]=G;if(s1.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return c6.ReadPreference.fromOptions({readPreference:J.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:30000,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},sslCA:{deprecated:"sslCA is deprecated and will be removed in the next major version. Please use tlsCAFile instead.",target:"ca",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslCRL:{deprecated:"sslCRL is deprecated and will be removed in the next major version and be replaced by tlsCRLFile in that release.",target:"crl",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslCert:{deprecated:"sslCert is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslKey:{deprecated:"sslKey is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"key",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslPass:{deprecated:"sslPass is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFilePassword instead.",target:"passphrase",type:"string"},sslValidate:{deprecated:"sslValidate is deprecated and will be removed in the next major version. Please use tlsAllowInvalidCertificates instead.",target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:Z,values:[J]}){return!W6(Z,J)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:Z,values:[J]}){return W6(Z,J)?()=>{return}:void 0}},tlsCAFile:{target:"ca",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateFile:{deprecated:"tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFile:{target:"key",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:Z,options:J,values:[$]}){const X=W6(Z,$);if(X)J.checkServerIdentity=()=>{return},J.rejectUnauthorized=!1;else J.checkServerIdentity=J.tlsAllowInvalidHostnames?()=>{return}:void 0,J.rejectUnauthorized=J.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[Z],options:J}){return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[Z],options:J}){if(s1.isRecord(Z)||Z instanceof F6.WriteConcern)return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,...Z}});else if(Z==="majority"||typeof Z==="number")return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(Z)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[Z],options:J}){const $=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeout:Z9("wtimeout",Z)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[Z],options:J}){const $=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeoutMS:Z9("wtimeoutMS",Z)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean"},useUnifiedTopology:{type:"boolean"},mongodbLogPath:{type:"any"}};IP.DEFAULT_OPTIONS=new J9(Object.entries(IP.OPTIONS).filter(([,Z])=>Z.default!=null).map(([Z,J])=>[Z,J.default]));IP.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var wJ=z((_P)=>{Object.defineProperty(_P,"__esModule",{value:!0});_P.ServerHeartbeatFailedEvent=_P.ServerHeartbeatSucceededEvent=_P.ServerHeartbeatStartedEvent=_P.TopologyClosedEvent=_P.TopologyOpeningEvent=_P.TopologyDescriptionChangedEvent=_P.ServerClosedEvent=_P.ServerOpeningEvent=_P.ServerDescriptionChangedEvent=void 0;class EP{constructor(Z,J,$,X){this.topologyId=Z,this.address=J,this.previousDescription=$,this.newDescription=X}}_P.ServerDescriptionChangedEvent=EP;class NP{constructor(Z,J){this.topologyId=Z,this.address=J}}_P.ServerOpeningEvent=NP;class BP{constructor(Z,J){this.topologyId=Z,this.address=J}}_P.ServerClosedEvent=BP;class CP{constructor(Z,J,$){this.topologyId=Z,this.previousDescription=J,this.newDescription=$}}_P.TopologyDescriptionChangedEvent=CP;class hP{constructor(Z){this.topologyId=Z}}_P.TopologyOpeningEvent=hP;class OP{constructor(Z){this.topologyId=Z}}_P.TopologyClosedEvent=OP;class SP{constructor(Z){this.connectionId=Z}}_P.ServerHeartbeatStartedEvent=SP;class yP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.reply=$??{}}}_P.ServerHeartbeatSucceededEvent=yP;class kP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.failure=$}}_P.ServerHeartbeatFailedEvent=kP});var RJ=z((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.BinMsg=uP.Msg=uP.Response=uP.Query=void 0;var l6=D1(),X9=h(),Jc=y1(),$c=_(),$9=j4(),B7=0,Xc=2,Yc=4,Qc=8,Kc=16,Gc=32,qc=64,Fc=128,Wc=1,Hc=2,zc=4,Vc=8;class GQ{constructor(Z,J,$){if(Z==null)throw new X9.MongoRuntimeError("Namespace must be specified for query");if(J==null)throw new X9.MongoRuntimeError("A query document must be specified for query");if(Z.indexOf("\0")!==-1)throw new X9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=Z,this.query=J,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=GQ.getRequestId(),this.pre32Limit=$.pre32Limit,this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk=typeof $.secondaryOk==="boolean"?$.secondaryOk:!1,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=B7++}nextRequestId(){return B7+1}static getRequestId(){return++B7}toBin(){const Z=[];let J=null,$=0;if(this.tailable)$|=Xc;if(this.secondaryOk)$|=Yc;if(this.oplogReplay)$|=Qc;if(this.noCursorTimeout)$|=Kc;if(this.awaitData)$|=Gc;if(this.exhaust)$|=qc;if(this.partial)$|=Fc;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);Z.push(X);const Y=l6.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(Z.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)J=l6.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),Z.push(J);const Q=X.length+Y.length+(J?J.length:0);let K=4;return X[3]=Q>>24&255,X[2]=Q>>16&255,X[1]=Q>>8&255,X[0]=Q&255,X[K+3]=this.requestId>>24&255,X[K+2]=this.requestId>>16&255,X[K+1]=this.requestId>>8&255,X[K]=this.requestId&255,K=K+4,X[K+3]=0>>24&255,X[K+2]=0>>16&255,X[K+1]=0>>8&255,X[K]=0&255,K=K+4,X[K+3]=$9.OP_QUERY>>24&255,X[K+2]=$9.OP_QUERY>>16&255,X[K+1]=$9.OP_QUERY>>8&255,X[K]=$9.OP_QUERY&255,K=K+4,X[K+3]=$>>24&255,X[K+2]=$>>16&255,X[K+1]=$>>8&255,X[K]=$&255,K=K+4,K=K+X.write(this.ns,K,"utf8")+1,X[K-1]=0,X[K+3]=this.numberToSkip>>24&255,X[K+2]=this.numberToSkip>>16&255,X[K+1]=this.numberToSkip>>8&255,X[K]=this.numberToSkip&255,K=K+4,X[K+3]=this.numberToReturn>>24&255,X[K+2]=this.numberToReturn>>16&255,X[K+1]=this.numberToReturn>>8&255,X[K]=this.numberToReturn&255,K=K+4,Z}}uP.Query=GQ;class vP{constructor(Z,J,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{};const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp;let q;const F={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new l6.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=(this.responseFlags&Wc)!==0,this.queryFailure=(this.responseFlags&Hc)!==0,this.shardConfigStale=(this.responseFlags&zc)!==0,this.awaitCapable=(this.responseFlags&Vc)!==0;for(let W=0;W<this.numberReturned;W++){if(q=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,J)this.documents[W]=this.data.slice(this.index,this.index+q);else this.documents[W]=l6.deserialize(this.data.slice(this.index,this.index+q),F);this.index=this.index+q}if(this.documents.length===1&&$!=null&&J){const W={};W[$]=!0,F.fieldsAsRaw=W;const H=l6.deserialize(this.documents[0],F);this.documents=[H]}this.parsed=!0}}uP.Response=vP;var fP=1,gP=2,bP=1<<16;class qQ{constructor(Z,J,$){if(J==null)throw new X9.MongoInvalidArgumentError("Query document must be specified for query");if(this.ns=Z,this.command=J,this.command.$db=$c.databaseNamespace(Z),$.readPreference&&$.readPreference.mode!==Jc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:qQ.getRequestId(),this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=$.moreToCome||!1,this.exhaustAllowed=typeof $.exhaustAllowed==="boolean"?$.exhaustAllowed:!1}toBin(){const Z=[];let J=0;if(this.checksumPresent)J|=fP;if(this.moreToCome)J|=gP;if(this.exhaustAllowed)J|=bP;const $=Buffer.alloc(20);Z.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(Z,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE($9.OP_MSG,12),$.writeUInt32LE(J,16),Z}makeDocumentSegment(Z,J){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(J);return Z.push($),Z.push(X),$.length+X.length}serializeBson(Z){return l6.serialize(Z,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return B7=B7+1&2147483647,B7}}uP.Msg=qQ;class mP{constructor(Z,J,$,X){this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&fP)!==0,this.moreToCome=(this.responseFlags&gP)!==0,this.exhaustAllowed=(this.responseFlags&bP)!==0,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1,this.documents=[]}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{},this.index=4;const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp,q=this.parseBsonSerializationOptions(Z),F={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:q};while(this.index<this.data.length){const W=this.data.readUInt8(this.index++);if(W===0){const H=this.data.readUInt32LE(this.index),V=this.data.slice(this.index,this.index+H);this.documents.push(J?V:l6.deserialize(V,F)),this.index+=H}else if(W===1)throw new X9.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(this.documents.length===1&&$!=null&&J){const W={};W[$]=!0,F.fieldsAsRaw=W;const H=l6.deserialize(this.documents[0],F);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:Z}){if(Z===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}uP.BinMsg=mP});var VQ=z((nP)=>{var HQ=function(Z){if(Z instanceof lP.Msg)return U8.deepCopy(Z.command);if(Z.query?.$query){let X;if(Z.ns==="admin.$cmd")X=Object.assign({},Z.query.$query);else X={find:Rc(Z)},Object.keys(pP).forEach((Y)=>{if(Z.query[Y]!=null)X[pP[Y]]=U8.deepCopy(Z.query[Y])});if(Object.keys(cP).forEach((Y)=>{const Q=Y;if(Z[Q]!=null)X[cP[Q]]=U8.deepCopy(Z[Q])}),Pc.forEach((Y)=>{if(Z[Y])X[Y]=Z[Y]}),Z.pre32Limit!=null)X.limit=Z.pre32Limit;if(Z.query.$explain)return{explain:X};return X}const J={},$={};if(Z.query){for(let X in Z.query)J[X]=U8.deepCopy(Z.query[X]);$.query=J}for(let X in Z){if(X==="query")continue;$[X]=U8.deepCopy(Z[X])}return Z.query?J:$},Dc=function(Z,J){if(!J)return J;if(Z instanceof lP.Msg)return U8.deepCopy(J.result?J.result:J);if(Z.query&&Z.query.$query!=null)return{ok:1,cursor:{id:U8.deepCopy(J.cursorId),ns:Lc(Z),firstBatch:U8.deepCopy(J.documents)}};return U8.deepCopy(J.result?J.result:J)},zQ=function(Z){let J;if("id"in Z)J=Z.id;return{address:Z.address,serviceId:Z.serviceId,connectionId:J}};Object.defineProperty(nP,"__esModule",{value:!0});nP.SENSITIVE_COMMANDS=nP.CommandFailedEvent=nP.CommandSucceededEvent=nP.CommandStartedEvent=void 0;var Y9=f1(),U8=_(),lP=RJ();class aP{constructor(Z,J){this.name=Y9.COMMAND_STARTED;const $=HQ(J),X=FQ($),{address:Y,connectionId:Q,serviceId:K}=zQ(Z);if(nP.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=J.requestId,this.databaseName=wc(J),this.commandName=X,this.command=WQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}nP.CommandStartedEvent=aP;class iP{constructor(Z,J,$,X){this.name=Y9.COMMAND_SUCCEEDED;const Y=HQ(J),Q=FQ(Y),{address:K,connectionId:G,serviceId:q}=zQ(Z);this.address=K,this.connectionId=G,this.serviceId=q,this.requestId=J.requestId,this.commandName=Q,this.duration=U8.calculateDurationInMs(X),this.reply=WQ(Q,Y,Dc(J,$))}get hasServiceId(){return!!this.serviceId}}nP.CommandSucceededEvent=iP;class sP{constructor(Z,J,$,X){this.name=Y9.COMMAND_FAILED;const Y=HQ(J),Q=FQ(Y),{address:K,connectionId:G,serviceId:q}=zQ(Z);this.address=K,this.connectionId=G,this.serviceId=q,this.requestId=J.requestId,this.commandName=Q,this.duration=U8.calculateDurationInMs(X),this.failure=WQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}nP.CommandFailedEvent=sP;nP.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var Ac=new Set(["hello",Y9.LEGACY_HELLO_COMMAND,Y9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),FQ=(Z)=>Object.keys(Z)[0],Lc=(Z)=>Z.ns,wc=(Z)=>Z.ns.split(".")[0],Rc=(Z)=>Z.ns.split(".")[1],WQ=(Z,J,$)=>nP.SENSITIVE_COMMANDS.has(Z)||Ac.has(Z)&&J.speculativeAuthenticate?{}:$,pP={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},cP={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},Pc=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var ZD=z((oP)=>{var hc=function(Z){const J=Z instanceof Q9.Msg?Z.command:Z.query,$=Object.keys(J)[0];return!IJ.uncompressibleCommands.has($)},K9=function(Z,J){const $=Z[TJ],X=$.getInt32();if(X==null)return J();if(X<0)return J(new UQ.MongoParseError(`Invalid message size: ${X}`));if(X>Z.maxBsonMessageSize)return J(new UQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${Z.maxBsonMessageSize}`));if(X>$.length)return J();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(Z.isMonitoringConnection){const W=$.getInt32();if(W!=null&&W<=$.length)return!0}return!1};let G=Q.opCode===DJ.OP_MSG?Q9.BinMsg:Q9.Response;if(Q.opCode!==DJ.OP_COMPRESSED){const W=Y.subarray(a6);if(K())return K9(Z,J);if(Z.emit("message",new G(Y,Q,W)),$.length>=4)return K9(Z,J);return J()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(a6),Q.length=Y.readInt32LE(a6+4);const q=Y[a6+8],F=Y.slice(a6+9);G=Q.opCode===DJ.OP_MSG?Q9.BinMsg:Q9.Response,IJ.decompress(q,F).then((W)=>{if(W.length!==Q.length)return J(new UQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return K9(Z,J);if(Z.emit("message",new G(Y,Q,W)),$.length>=4)return K9(Z,J);return J()},(W)=>{return J(W)})};Object.defineProperty(oP,"__esModule",{value:!0});oP.MessageStream=void 0;var Nc=import.meta.require("stream"),UQ=h(),Bc=_(),Q9=RJ(),IJ=jJ(),DJ=j4(),a6=16,tP=9,Cc=67108864,TJ=Symbol("buffer");class rP extends Nc.Duplex{constructor(Z={}){super(Z);this.isMonitoringConnection=!1,this.maxBsonMessageSize=Z.maxBsonMessageSize||Cc,this[TJ]=new Bc.BufferPool}get buffer(){return this[TJ]}_write(Z,J,$){this[TJ].append(Z),K9(this,$)}_read(){return}writeCommand(Z,J){const $=J.agreedCompressor??"none";if($==="none"||!hc(Z)){const G=Z.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(Z.toBin()),Y=X.slice(a6),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:J.zlibCompressionLevel??0};IJ.compress(K,Y).then((G)=>{const q=Buffer.alloc(a6);q.writeInt32LE(a6+tP+G.length,0),q.writeInt32LE(Z.requestId,4),q.writeInt32LE(0,8),q.writeInt32LE(DJ.OP_COMPRESSED,12);const F=Buffer.alloc(tP);F.writeInt32LE(Q,0),F.writeInt32LE(Y.length,4),F.writeUInt8(IJ.Compressor[$],8),this.push(Buffer.concat([q,F,G]))},(G)=>{J.cb(G)})}}oP.MessageStream=rP});var YD=z(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.StreamDescription=void 0;var Oc=p0(),Sc=C5(),yc=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class JD{constructor(Z,J){this.address=Z,this.type=Oc.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes,this.loadBalanced=!!J?.loadBalanced,this.compressors=J&&J.compressors&&Array.isArray(J.compressors)?J.compressors:[]}receiveResponse(Z){if(Z==null)return;this.type=Sc.parseServerType(Z);for(let J of yc){if(Z[J]!=null)this[J]=Z[J];if("__nodejs_mock_server__"in Z)this.__nodejs_mock_server__=Z.__nodejs_mock_server__}if(Z.compression)this.compressor=this.compressors.filter((J)=>Z.compression?.includes(J))[0]}}$D.StreamDescription=JD});var G9=z((zD)=>{var HD=function(Z){return Z.description.logicalSessionTimeoutMinutes!=null},gc=function(Z){const J=Z.description;if(J==null)return!1;return i6.maxWireVersion(Z)>=6&&!J.__nodejs_mock_server__},bc=function(Z,J){if(J.proxyHost)return J.hostAddress.toString();const{remoteAddress:$,remotePort:X}=Z;if(typeof $==="string"&&typeof X==="number")return i6.HostAddress.fromHostPort($,X).toString();return i6.uuidV4().toString("hex")},mc=function(Z,J,$,X){$=$??{};const Y={requestId:J.requestId,cb:X,session:$.session,noResponse:typeof $.noResponse==="boolean"?$.noResponse:!1,documentsReturnedIn:$.documentsReturnedIn,useBigInt64:typeof $.useBigInt64==="boolean"?$.useBigInt64:!1,promoteLongs:typeof $.promoteLongs==="boolean"?$.promoteLongs:!0,promoteValues:typeof $.promoteValues==="boolean"?$.promoteValues:!0,promoteBuffers:typeof $.promoteBuffers==="boolean"?$.promoteBuffers:!1,bsonRegExp:typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,enableUtf8Validation:typeof $.enableUtf8Validation==="boolean"?$.enableUtf8Validation:!0,raw:typeof $.raw==="boolean"?$.raw:!1,started:0};if(Z[g8]&&Z[g8].compressor){if(Y.agreedCompressor=Z[g8].compressor,Z[g8].zlibCompressionLevel)Y.zlibCompressionLevel=Z[g8].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")Z[n1].setTimeout($.socketTimeoutMS);else if(Z.socketTimeoutMS!==0)Z[n1].setTimeout(Z.socketTimeoutMS);if(Z.monitorCommands)Z.emit(_1.COMMAND_STARTED,new EJ.CommandStartedEvent(Z,J)),Y.started=i6.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)Z.emit(_1.COMMAND_FAILED,new EJ.CommandFailedEvent(Z,J,Q,Y.started));else if(K&&(K.ok===0||K.$err))Z.emit(_1.COMMAND_FAILED,new EJ.CommandFailedEvent(Z,J,K,Y.started));else Z.emit(_1.COMMAND_SUCCEEDED,new EJ.CommandSucceededEvent(Z,J,K,Y.started));if(typeof X==="function")X(Q,Q instanceof f8.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)Z[M8].set(Y.requestId,Y);try{Z[v8].writeCommand(J,Y)}catch(Q){if(!Y.noResponse){Z[M8].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};Object.defineProperty(zD,"__esModule",{value:!0});zD.hasSessionSupport=zD.CryptoConnection=zD.Connection=void 0;var QD=import.meta.require("timers"),kc=import.meta.require("util"),s6=f1(),f8=h(),_c=C0(),KD=S5(),i6=_(),EJ=VQ(),GD=RJ(),xc=ZD(),vc=YD(),qD=CY(),n1=Symbol("stream"),M8=Symbol("queue"),v8=Symbol("messageStream"),MQ=Symbol("generation"),jQ=Symbol("lastUseTime"),AQ=Symbol("clusterTime"),g8=Symbol("description"),LQ=Symbol("hello"),FD=Symbol("autoEncrypter"),NJ=Symbol("delayedTimeoutId"),fc="Connection internal queue contains more than 1 operation description";class _1 extends _c.TypedEventEmitter{constructor(Z,J){super();this.commandAsync=kc.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=J.id,this.address=bc(Z,J),this.socketTimeoutMS=J.socketTimeoutMS??0,this.monitorCommands=J.monitorCommands,this.serverApi=J.serverApi,this.closed=!1,this[LQ]=null,this[AQ]=null,this[g8]=new vc.StreamDescription(this.address,J),this[MQ]=J.generation,this[jQ]=i6.now(),this[M8]=new Map,this[v8]=new xc.MessageStream({...J,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[n1]=Z,this[NJ]=null,this[v8].on("message",($)=>this.onMessage($)),this[v8].on("error",($)=>this.onError($)),this[n1].on("close",()=>this.onClose()),this[n1].on("timeout",()=>this.onTimeout()),this[n1].on("error",()=>{}),this[n1].pipe(this[v8]),this[v8].pipe(this[n1])}get description(){return this[g8]}get hello(){return this[LQ]}set hello(Z){this[g8].receiveResponse(Z),this[g8]=Object.freeze(this[g8]),this[LQ]=Z}set isMonitoringConnection(Z){this[v8].isMonitoringConnection=Z}get isMonitoringConnection(){return this[v8].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[MQ]||0}set generation(Z){this[MQ]=Z}get idleTime(){return i6.calculateDurationInMs(this[jQ])}get clusterTime(){return this[AQ]}get stream(){return this[n1]}markAvailable(){this[jQ]=i6.now()}onError(Z){this.cleanup(!0,Z)}onClose(){const Z=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new f8.MongoNetworkError(Z))}onTimeout(){this[NJ]=QD.setTimeout(()=>{const Z=`connection ${this.id} to ${this.address} timed out`,J=this.hello==null;this.cleanup(!0,new f8.MongoNetworkTimeoutError(Z,{beforeHandshake:J}))},1).unref()}onMessage(Z){const J=this[NJ];if(J!=null)QD.clearTimeout(J),this[NJ]=null;const $=this[n1].timeout??0;this[n1].setTimeout(0),this.emit("message",Z);let X=this[M8].get(Z.responseTo);if(!X&&this.isMonitoringConnection)if(this[M8].size>1)this.cleanup(!0,new f8.MongoRuntimeError(fc));else{const Q=this[M8].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[M8].delete(K)}}if(!X)return;const Y=X.cb;if(this[M8].delete(Z.responseTo),"moreToCome"in Z&&Z.moreToCome)this[M8].set(Z.requestId,X),this[n1].setTimeout($);try{Z.parse(X)}catch(Q){Y(Q);return}if(Z.documents[0]){const Q=Z.documents[0],K=X.session;if(K)KD.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[AQ]=Q.$clusterTime,this.emit(_1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new f8.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new f8.MongoServerError(Q));return}}Y(void 0,Z.documents[0])}destroy(Z,J){if(this.closed){process.nextTick(()=>J?.());return}if(typeof J==="function")this.once("close",()=>process.nextTick(()=>J()));this.removeAllListeners(_1.PINNED),this.removeAllListeners(_1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(Z.force,new f8.MongoNetworkError($))}cleanup(Z,J){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[M8].values())X.cb(J);this[M8].clear(),this.emit(_1.CLOSE)};if(this[n1].removeAllListeners(),this[v8].removeAllListeners(),this[v8].destroy(),Z){this[n1].destroy(),$();return}if(!this[n1].writableEnded)this[n1].end(()=>{this[n1].destroy(),$()});else $()}command(Z,J,$,X){let Y={...J};const Q=qD.getReadPreference($),K=gc(this),G=$?.session;let q=this.clusterTime;if(this.serverApi){const{version:V,strict:j,deprecationErrors:U}=this.serverApi;if(Y.apiVersion=V,j!=null)Y.apiStrict=j;if(U!=null)Y.apiDeprecationErrors=U}if(HD(this)&&G){if(G.clusterTime&&q&&G.clusterTime.clusterTime.greaterThan(q.clusterTime))q=G.clusterTime;const V=KD.applySession(G,Y,$);if(V)return X(V)}else if(G?.explicit)return X(new f8.MongoCompatibilityError("Current topology does not support sessions"));if(q)Y.$clusterTime=q;if(qD.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const F=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),W=`${Z.db}.\$cmd`,H=K?new GD.Msg(W,Y,F):new GD.Query(W,Y,F);try{mc(this,H,F,X)}catch(V){X(V)}}}_1.COMMAND_STARTED=s6.COMMAND_STARTED;_1.COMMAND_SUCCEEDED=s6.COMMAND_SUCCEEDED;_1.COMMAND_FAILED=s6.COMMAND_FAILED;_1.CLUSTER_TIME_RECEIVED=s6.CLUSTER_TIME_RECEIVED;_1.CLOSE=s6.CLOSE;_1.MESSAGE=s6.MESSAGE;_1.PINNED=s6.PINNED;_1.UNPINNED=s6.UNPINNED;zD.Connection=_1;class WD extends _1{constructor(Z,J){super(Z,J);this[FD]=J.autoEncrypter}command(Z,J,$,X){const Y=this[FD];if(!Y)return X(new f8.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=i6.maxWireVersion(this);if(Q===0)return super.command(Z,J,$,X);if(Q<8){X(new f8.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=J.find||J.findAndModify?J.sort:null,G=J.createIndexes?J.indexes.map((q)=>q.key):null;Y.encrypt(Z.toString(),J,$,(q,F)=>{if(q||F==null){X(q,null);return}if(K!=null&&(J.find||J.findAndModify))F.sort=K;if(G!=null&&J.createIndexes)for(let[W,H]of G.entries())F.indexes[W].key=H;super.command(Z,F,$,(W,H)=>{if(W||H==null){X(W,H);return}Y.decrypt(H,$,X)})})}}zD.CryptoConnection=WD;zD.hasSessionSupport=HD});var MD=z((UD)=>{var q9=function(Z){if(Z===4)return"ipv4";if(Z===6)return"ipv6";return Z?Z.toLowerCase():"ipv4"},x=UD,{Buffer:BJ}=import.meta.require("buffer"),pc=import.meta.require("os");x.toBuffer=function(Z,J,$){$=~~$;let X;if(this.isV4Format(Z))X=J||BJ.alloc($+4),Z.split(/\./g).map((Y)=>{X[$++]=parseInt(Y,10)&255});else if(this.isV6Format(Z)){const Y=Z.split(":",8);let Q;for(Q=0;Q<Y.length;Q++){const K=this.isV4Format(Y[Q]);let G;if(K)G=this.toBuffer(Y[Q]),Y[Q]=G.slice(0,2).toString("hex");if(G&&++Q<8)Y.splice(Q,0,G.slice(2,4).toString("hex"))}if(Y[0]==="")while(Y.length<8)Y.unshift("0");else if(Y[Y.length-1]==="")while(Y.length<8)Y.push("0");else if(Y.length<8){for(Q=0;Q<Y.length&&Y[Q]!=="";Q++);const K=[Q,1];for(Q=9-Y.length;Q>0;Q--)K.push("0");Y.splice(...K)}X=J||BJ.alloc($+16);for(Q=0;Q<Y.length;Q++){const K=parseInt(Y[Q],16);X[$++]=K>>8&255,X[$++]=K&255}}if(!X)throw Error(`Invalid ip address: ${Z}`);return X};x.toString=function(Z,J,$){J=~~J,$=$||Z.length-J;let X=[];if($===4){for(let Y=0;Y<$;Y++)X.push(Z[J+Y]);X=X.join(".")}else if($===16){for(let Y=0;Y<$;Y+=2)X.push(Z.readUInt16BE(J+Y).toString(16));X=X.join(":"),X=X.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),X=X.replace(/:{3,4}/,"::")}return X};var cc=/^(\d{1,3}\.){3,3}\d{1,3}$/,lc=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;x.isV4Format=function(Z){return cc.test(Z)};x.isV6Format=function(Z){return lc.test(Z)};x.fromPrefixLen=function(Z,J){if(Z>32)J="ipv6";else J=q9(J);let $=4;if(J==="ipv6")$=16;const X=BJ.alloc($);for(let Y=0,Q=X.length;Y<Q;++Y){let K=8;if(Z<8)K=Z;Z-=K,X[Y]=~(255>>K)&255}return x.toString(X)};x.mask=function(Z,J){Z=x.toBuffer(Z),J=x.toBuffer(J);const $=BJ.alloc(Math.max(Z.length,J.length));let X;if(Z.length===J.length)for(X=0;X<Z.length;X++)$[X]=Z[X]&J[X];else if(J.length===4)for(X=0;X<J.length;X++)$[X]=Z[Z.length-4+X]&J[X];else{for(X=0;X<$.length-6;X++)$[X]=0;$[10]=255,$[11]=255;for(X=0;X<Z.length;X++)$[X+12]=Z[X]&J[X+12];X+=12}for(;X<$.length;X++)$[X]=0;return x.toString($)};x.cidr=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.mask($,X)};x.subnet=function(Z,J){const $=x.toLong(x.mask(Z,J)),X=x.toBuffer(J);let Y=0;for(let K=0;K<X.length;K++)if(X[K]===255)Y+=8;else{let G=X[K]&255;while(G)G=G<<1&255,Y++}const Q=2**(32-Y);return{networkAddress:x.fromLong($),firstAddress:Q<=2?x.fromLong($):x.fromLong($+1),lastAddress:Q<=2?x.fromLong($+Q-1):x.fromLong($+Q-2),broadcastAddress:x.fromLong($+Q-1),subnetMask:J,subnetMaskLength:Y,numHosts:Q<=2?Q:Q-2,length:Q,contains(K){return $===x.toLong(x.mask(K,J))}}};x.cidrSubnet=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.subnet($,X)};x.not=function(Z){const J=x.toBuffer(Z);for(let $=0;$<J.length;$++)J[$]=255^J[$];return x.toString(J)};x.or=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let Q=0;Q<Z.length;++Q)Z[Q]|=J[Q];return x.toString(Z)}let $=Z,X=J;if(J.length>Z.length)$=J,X=Z;const Y=$.length-X.length;for(let Q=Y;Q<$.length;++Q)$[Q]|=X[Q-Y];return x.toString($)};x.isEqual=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let X=0;X<Z.length;X++)if(Z[X]!==J[X])return!1;return!0}if(J.length===4){const X=J;J=Z,Z=X}for(let X=0;X<10;X++)if(J[X]!==0)return!1;const $=J.readUInt16BE(10);if($!==0&&$!==65535)return!1;for(let X=0;X<4;X++)if(Z[X]!==J[X+12])return!1;return!0};x.isPrivate=function(Z){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^f[cd][0-9a-f]{2}:/i.test(Z)||/^fe80:/i.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.isPublic=function(Z){return!x.isPrivate(Z)};x.isLoopback=function(Z){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(Z)||/^fe80::1$/.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.loopback=function(Z){if(Z=q9(Z),Z!=="ipv4"&&Z!=="ipv6")throw new Error("family must be ipv4 or ipv6");return Z==="ipv4"?"127.0.0.1":"fe80::1"};x.address=function(Z,J){const $=pc.networkInterfaces();if(J=q9(J),Z&&Z!=="private"&&Z!=="public"){const Y=$[Z].filter((Q)=>{return q9(Q.family)===J});if(Y.length===0)return;return Y[0].address}const X=Object.keys($).map((Y)=>{const Q=$[Y].filter((K)=>{if(K.family=q9(K.family),K.family!==J||x.isLoopback(K.address))return!1;if(!Z)return!0;return Z==="public"?x.isPrivate(K.address):x.isPublic(K.address)});return Q.length?Q[0].address:void 0}).filter(Boolean);return!X.length?x.loopback(J):X[0]};x.toLong=function(Z){let J=0;return Z.split(".").forEach(($)=>{J<<=8,J+=parseInt($)}),J>>>0};x.fromLong=function(Z){return`${Z>>>24}.${Z>>16&255}.${Z>>8&255}.${Z&255}`}});var RD=z((wD)=>{var ac=function(Z){if(!jD.Buffer.isEncoding(Z))throw new Error(N4.INVALID_ENCODING)},AD=function(Z){return typeof Z==="number"&&isFinite(Z)&&tc(Z)},LD=function(Z,J){if(typeof Z==="number"){if(!AD(Z)||Z<0)throw new Error(J?N4.INVALID_OFFSET:N4.INVALID_LENGTH)}else throw new Error(J?N4.INVALID_OFFSET_NON_NUMBER:N4.INVALID_LENGTH_NON_NUMBER)},ic=function(Z){LD(Z,!1)},sc=function(Z){LD(Z,!0)},nc=function(Z,J){if(Z<0||Z>J.length)throw new Error(N4.INVALID_TARGET_OFFSET)},tc=function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z},rc=function(Z){if(typeof BigInt==="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof jD.Buffer.prototype[Z]==="undefined")throw new Error(`Platform does not support Buffer.prototype.${Z}.`)};Object.defineProperty(wD,"__esModule",{value:!0});var jD=import.meta.require("buffer"),N4={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};wD.ERRORS=N4;wD.checkEncoding=ac;wD.isFiniteInteger=AD;wD.checkLengthValue=ic;wD.checkOffsetValue=sc;wD.checkTargetOffset=nc;wD.bigIntAndBufferInt64Check=rc});var TD=z((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});var c=RD(),PD=4096,Ql="utf8";class wQ{constructor(Z){if(this.length=0,this._encoding=Ql,this._writeOffset=0,this._readOffset=0,wQ.isSmartBufferOptions(Z)){if(Z.encoding)c.checkEncoding(Z.encoding),this._encoding=Z.encoding;if(Z.size)if(c.isFiniteInteger(Z.size)&&Z.size>0)this._buff=Buffer.allocUnsafe(Z.size);else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(Z.buff)if(Buffer.isBuffer(Z.buff))this._buff=Z.buff,this.length=Z.buff.length;else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(PD)}else{if(typeof Z!=="undefined")throw new Error(c.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(PD)}}static fromSize(Z,J){return new this({size:Z,encoding:J})}static fromBuffer(Z,J){return new this({buff:Z,encoding:J})}static fromOptions(Z){return new this(Z)}static isSmartBufferOptions(Z){const J=Z;return J&&(J.encoding!==void 0||J.size!==void 0||J.buff!==void 0)}readInt8(Z){return this._readNumberValue(Buffer.prototype.readInt8,1,Z)}readInt16BE(Z){return this._readNumberValue(Buffer.prototype.readInt16BE,2,Z)}readInt16LE(Z){return this._readNumberValue(Buffer.prototype.readInt16LE,2,Z)}readInt32BE(Z){return this._readNumberValue(Buffer.prototype.readInt32BE,4,Z)}readInt32LE(Z){return this._readNumberValue(Buffer.prototype.readInt32LE,4,Z)}readBigInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,Z)}readBigInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,Z)}writeInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt8,1,Z,J),this}insertInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt8,1,Z,J)}writeInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}insertInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}writeInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}insertInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}writeInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}insertInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}writeInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}insertInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}writeBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}insertBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}writeBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}insertBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}readUInt8(Z){return this._readNumberValue(Buffer.prototype.readUInt8,1,Z)}readUInt16BE(Z){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,Z)}readUInt16LE(Z){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,Z)}readUInt32BE(Z){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,Z)}readUInt32LE(Z){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,Z)}readBigUInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,Z)}readBigUInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,Z)}writeUInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}insertUInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}writeUInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}insertUInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}writeUInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}insertUInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}writeUInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}insertUInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}writeUInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}insertUInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}writeBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}insertBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}writeBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}insertBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}readFloatBE(Z){return this._readNumberValue(Buffer.prototype.readFloatBE,4,Z)}readFloatLE(Z){return this._readNumberValue(Buffer.prototype.readFloatLE,4,Z)}writeFloatBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}insertFloatBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}writeFloatLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}insertFloatLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}readDoubleBE(Z){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,Z)}readDoubleLE(Z){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,Z)}writeDoubleBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}insertDoubleBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}writeDoubleLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}insertDoubleLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}readString(Z,J){let $;if(typeof Z==="number")c.checkLengthValue(Z),$=Math.min(Z,this.length-this._readOffset);else J=Z,$=this.length-this._readOffset;if(typeof J!=="undefined")c.checkEncoding(J);const X=this._buff.slice(this._readOffset,this._readOffset+$).toString(J||this._encoding);return this._readOffset+=$,X}insertString(Z,J,$){return c.checkOffsetValue(J),this._handleString(Z,!0,J,$)}writeString(Z,J,$){return this._handleString(Z,!1,J,$)}readStringNT(Z){if(typeof Z!=="undefined")c.checkEncoding(Z);let J=this.length;for(let X=this._readOffset;X<this.length;X++)if(this._buff[X]===0){J=X;break}const $=this._buff.slice(this._readOffset,J);return this._readOffset=J+1,$.toString(Z||this._encoding)}insertStringNT(Z,J,$){return c.checkOffsetValue(J),this.insertString(Z,J,$),this.insertUInt8(0,J+Z.length),this}writeStringNT(Z,J,$){return this.writeString(Z,J,$),this.writeUInt8(0,typeof J==="number"?J+Z.length:this.writeOffset),this}readBuffer(Z){if(typeof Z!=="undefined")c.checkLengthValue(Z);const J=typeof Z==="number"?Z:this.length,$=Math.min(this.length,this._readOffset+J),X=this._buff.slice(this._readOffset,$);return this._readOffset=$,X}insertBuffer(Z,J){return c.checkOffsetValue(J),this._handleBuffer(Z,!0,J)}writeBuffer(Z,J){return this._handleBuffer(Z,!1,J)}readBufferNT(){let Z=this.length;for(let $=this._readOffset;$<this.length;$++)if(this._buff[$]===0){Z=$;break}const J=this._buff.slice(this._readOffset,Z);return this._readOffset=Z+1,J}insertBufferNT(Z,J){return c.checkOffsetValue(J),this.insertBuffer(Z,J),this.insertUInt8(0,J+Z.length),this}writeBufferNT(Z,J){if(typeof J!=="undefined")c.checkOffsetValue(J);return this.writeBuffer(Z,J),this.writeUInt8(0,typeof J==="number"?J+Z.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._readOffset=Z}get writeOffset(){return this._writeOffset}set writeOffset(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._writeOffset=Z}get encoding(){return this._encoding}set encoding(Z){c.checkEncoding(Z),this._encoding=Z}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(Z){const J=typeof Z==="string"?Z:this._encoding;return c.checkEncoding(J),this._buff.toString(J,0,this.length)}destroy(){return this.clear(),this}_handleString(Z,J,$,X){let Y=this._writeOffset,Q=this._encoding;if(typeof $==="number")Y=$;else if(typeof $==="string")c.checkEncoding($),Q=$;if(typeof X==="string")c.checkEncoding(X),Q=X;const K=Buffer.byteLength(Z,Q);if(J)this.ensureInsertable(K,Y);else this._ensureWriteable(K,Y);if(this._buff.write(Z,Y,K,Q),J)this._writeOffset+=K;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,Y+K);else this._writeOffset+=K;return this}_handleBuffer(Z,J,$){const X=typeof $==="number"?$:this._writeOffset;if(J)this.ensureInsertable(Z.length,X);else this._ensureWriteable(Z.length,X);if(Z.copy(this._buff,X),J)this._writeOffset+=Z.length;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,X+Z.length);else this._writeOffset+=Z.length;return this}ensureReadable(Z,J){let $=this._readOffset;if(typeof J!=="undefined")c.checkOffsetValue(J),$=J;if($<0||$+Z>this.length)throw new Error(c.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(Z,J){if(c.checkOffsetValue(J),this._ensureCapacity(this.length+Z),J<this.length)this._buff.copy(this._buff,J+Z,J,this._buff.length);if(J+Z>this.length)this.length=J+Z;else this.length+=Z}_ensureWriteable(Z,J){const $=typeof J==="number"?J:this._writeOffset;if(this._ensureCapacity($+Z),$+Z>this.length)this.length=$+Z}_ensureCapacity(Z){const J=this._buff.length;if(Z>J){let $=this._buff,X=J*3/2+1;if(X<Z)X=Z;this._buff=Buffer.allocUnsafe(X),$.copy(this._buff,0,0,J)}}_readNumberValue(Z,J,$){this.ensureReadable(J,$);const X=Z.call(this._buff,typeof $==="number"?$:this._readOffset);if(typeof $==="undefined")this._readOffset+=J;return X}_insertNumberValue(Z,J,$,X){return c.checkOffsetValue(X),this.ensureInsertable(J,X),Z.call(this._buff,$,X),this._writeOffset+=J,this}_writeNumberValue(Z,J,$,X){if(typeof X==="number"){if(X<0)throw new Error(c.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);c.checkOffsetValue(X)}const Y=typeof X==="number"?X:this._writeOffset;if(this._ensureWriteable(J,Y),Z.call(this._buff,$,Y),typeof X==="number")this._writeOffset=Math.max(this._writeOffset,Y+J);else this._writeOffset+=J;return this}}DD.SmartBuffer=wQ});var NQ=z((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.SOCKS5_NO_ACCEPTABLE_AUTH=ID.SOCKS5_CUSTOM_AUTH_END=ID.SOCKS5_CUSTOM_AUTH_START=ID.SOCKS_INCOMING_PACKET_SIZES=ID.SocksClientState=ID.Socks5Response=ID.Socks5HostType=ID.Socks5Auth=ID.Socks4Response=ID.SocksCommand=ID.ERRORS=ID.DEFAULT_TIMEOUT=void 0;var Gl=30000;ID.DEFAULT_TIMEOUT=Gl;var ql={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};ID.ERRORS=ql;var Fl={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:(Z)=>Z+7,Socks4Response:8};ID.SOCKS_INCOMING_PACKET_SIZES=Fl;var RQ;(function(Z){Z[Z.connect=1]="connect",Z[Z.bind=2]="bind",Z[Z.associate=3]="associate"})(RQ||(RQ={}));ID.SocksCommand=RQ;var PQ;(function(Z){Z[Z.Granted=90]="Granted",Z[Z.Failed=91]="Failed",Z[Z.Rejected=92]="Rejected",Z[Z.RejectedIdent=93]="RejectedIdent"})(PQ||(PQ={}));ID.Socks4Response=PQ;var DQ;(function(Z){Z[Z.NoAuth=0]="NoAuth",Z[Z.GSSApi=1]="GSSApi",Z[Z.UserPass=2]="UserPass"})(DQ||(DQ={}));ID.Socks5Auth=DQ;var Wl=128;ID.SOCKS5_CUSTOM_AUTH_START=Wl;var Hl=254;ID.SOCKS5_CUSTOM_AUTH_END=Hl;var zl=255;ID.SOCKS5_NO_ACCEPTABLE_AUTH=zl;var TQ;(function(Z){Z[Z.Granted=0]="Granted",Z[Z.Failure=1]="Failure",Z[Z.NotAllowed=2]="NotAllowed",Z[Z.NetworkUnreachable=3]="NetworkUnreachable",Z[Z.HostUnreachable=4]="HostUnreachable",Z[Z.ConnectionRefused=5]="ConnectionRefused",Z[Z.TTLExpired=6]="TTLExpired",Z[Z.CommandNotSupported=7]="CommandNotSupported",Z[Z.AddressNotSupported=8]="AddressNotSupported"})(TQ||(TQ={}));ID.Socks5Response=TQ;var IQ;(function(Z){Z[Z.IPv4=1]="IPv4",Z[Z.Hostname=3]="Hostname",Z[Z.IPv6=4]="IPv6"})(IQ||(IQ={}));ID.Socks5HostType=IQ;var EQ;(function(Z){Z[Z.Created=0]="Created",Z[Z.Connecting=1]="Connecting",Z[Z.Connected=2]="Connected",Z[Z.SentInitialHandshake=3]="SentInitialHandshake",Z[Z.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",Z[Z.SentAuthentication=5]="SentAuthentication",Z[Z.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",Z[Z.SentFinalHandshake=7]="SentFinalHandshake",Z[Z.ReceivedFinalResponse=8]="ReceivedFinalResponse",Z[Z.BoundWaitingForConnection=9]="BoundWaitingForConnection",Z[Z.Established=10]="Established",Z[Z.Disconnected=11]="Disconnected",Z[Z.Error=99]="Error"})(EQ||(EQ={}));ID.SocksClientState=EQ});var BQ=z((BD)=>{var Il=function(Z){for(let J=Z.length-1;J>0;J--){const $=Math.floor(Math.random()*(J+1));[Z[J],Z[$]]=[Z[$],Z[J]]}};Object.defineProperty(BD,"__esModule",{value:!0});BD.shuffleArray=BD.SocksClientError=void 0;class ND extends Error{constructor(Z,J){super(Z);this.options=J}}BD.SocksClientError=ND;BD.shuffleArray=Il});var xD=z((kD)=>{var Bl=function(Z,J=["connect","bind","associate"]){if(!m1.SocksCommand[Z.command])throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommand,Z);if(J.indexOf(Z.command)===-1)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommandForOperation,Z);if(!OD(Z.destination))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!SD(Z.proxy))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxy,Z);if(hD(Z.proxy,Z),Z.timeout&&!yD(Z.timeout))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsTimeout,Z);if(Z.existing_socket&&!(Z.existing_socket instanceof Nl.Duplex))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsExistingSocket,Z)},Cl=function(Z){if(Z.command!=="connect")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommandChain,Z);if(!OD(Z.destination))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!(Z.proxies&&Array.isArray(Z.proxies)&&Z.proxies.length>=2))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxiesLength,Z);if(Z.proxies.forEach((J)=>{if(!SD(J))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxy,Z);hD(J,Z)}),Z.timeout&&!yD(Z.timeout))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsTimeout,Z)},hD=function(Z,J){if(Z.custom_auth_method!==void 0){if(Z.custom_auth_method<m1.SOCKS5_CUSTOM_AUTH_START||Z.custom_auth_method>m1.SOCKS5_CUSTOM_AUTH_END)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthRange,J);if(Z.custom_auth_request_handler===void 0||typeof Z.custom_auth_request_handler!=="function")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_size===void 0)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_handler===void 0||typeof Z.custom_auth_response_handler!=="function")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J)}},OD=function(Z){return Z&&typeof Z.host==="string"&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535},SD=function(Z){return Z&&(typeof Z.host==="string"||typeof Z.ipaddress==="string")&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535&&(Z.type===4||Z.type===5)},yD=function(Z){return typeof Z==="number"&&Z>0};Object.defineProperty(kD,"__esModule",{value:!0});kD.validateSocksClientChainOptions=kD.validateSocksClientOptions=void 0;var z0=BQ(),m1=NQ(),Nl=import.meta.require("stream");kD.validateSocksClientOptions=Bl;kD.validateSocksClientChainOptions=Cl});var bD=z((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.ReceiveBuffer=void 0;class vD{constructor(Z=4096){this.buffer=Buffer.allocUnsafe(Z),this.offset=0,this.originalSize=Z}get length(){return this.offset}append(Z){if(!Buffer.isBuffer(Z))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+Z.length>=this.buffer.length){const J=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+Z.length)),J.copy(this.buffer)}return Z.copy(this.buffer,this.offset),this.offset+=Z.length}peek(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,Z)}get(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const J=Buffer.allocUnsafe(Z);return this.buffer.slice(0,Z).copy(J),this.buffer.copyWithin(0,Z,Z+this.offset-Z),this.offset-=Z,J}}fD.ReceiveBuffer=vD});var mD=z((n6)=>{var C7=n6&&n6.__awaiter||function(Z,J,$,X){function Y(Q){return Q instanceof $?Q:new $(function(K){K(Q)})}return new($||($=Promise))(function(Q,K){function G(W){try{F(X.next(W))}catch(H){K(H)}}function q(W){try{F(X.throw(W))}catch(H){K(H)}}function F(W){W.done?Q(W.value):Y(W.value).then(G,q)}F((X=X.apply(Z,J||[])).next())})};Object.defineProperty(n6,"__esModule",{value:!0});n6.SocksClientError=n6.SocksClient=void 0;var Ol=import.meta.require("events"),h7=import.meta.require("net"),k0=MD(),R0=TD(),I=NQ(),CQ=xD(),Sl=bD(),hQ=BQ();Object.defineProperty(n6,"SocksClientError",{enumerable:!0,get:function(){return hQ.SocksClientError}});class CJ extends Ol.EventEmitter{constructor(Z){super();this.options=Object.assign({},Z),CQ.validateSocksClientOptions(Z),this.setState(I.SocksClientState.Created)}static createConnection(Z,J){return new Promise(($,X)=>{try{CQ.validateSocksClientOptions(Z,["connect"])}catch(Q){if(typeof J==="function")return J(Q),$(Q);else return X(Q)}const Y=new CJ(Z);Y.connect(Z.existing_socket),Y.once("established",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(null,Q),$(Q);else $(Q)}),Y.once("error",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(Q),$(Q);else X(Q)})})}static createConnectionChain(Z,J){return new Promise(($,X)=>C7(this,void 0,void 0,function*(){try{CQ.validateSocksClientChainOptions(Z)}catch(Y){if(typeof J==="function")return J(Y),$(Y);else return X(Y)}if(Z.randomizeChain)hQ.shuffleArray(Z.proxies);try{let Y;for(let Q=0;Q<Z.proxies.length;Q++){const K=Z.proxies[Q],G=Q===Z.proxies.length-1?Z.destination:{host:Z.proxies[Q+1].host||Z.proxies[Q+1].ipaddress,port:Z.proxies[Q+1].port},q=yield CJ.createConnection({command:"connect",proxy:K,destination:G,existing_socket:Y});Y=Y||q.socket}if(typeof J==="function")J(null,{socket:Y}),$({socket:Y});else $({socket:Y})}catch(Y){if(typeof J==="function")J(Y),$(Y);else X(Y)}}))}static createUDPFrame(Z){const J=new R0.SmartBuffer;if(J.writeUInt16BE(0),J.writeUInt8(Z.frameNumber||0),h7.isIPv4(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv4),J.writeUInt32BE(k0.toLong(Z.remoteHost.host));else if(h7.isIPv6(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv6),J.writeBuffer(k0.toBuffer(Z.remoteHost.host));else J.writeUInt8(I.Socks5HostType.Hostname),J.writeUInt8(Buffer.byteLength(Z.remoteHost.host)),J.writeString(Z.remoteHost.host);return J.writeUInt16BE(Z.remoteHost.port),J.writeBuffer(Z.data),J.toBuffer()}static parseUDPFrame(Z){const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $=J.readUInt8(),X=J.readUInt8();let Y;if(X===I.Socks5HostType.IPv4)Y=k0.fromLong(J.readUInt32BE());else if(X===I.Socks5HostType.IPv6)Y=k0.toString(J.readBuffer(16));else Y=J.readString(J.readUInt8());const Q=J.readUInt16BE();return{frameNumber:$,remoteHost:{host:Y,port:Q},data:J.readBuffer()}}setState(Z){if(this.state!==I.SocksClientState.Error)this.state=Z}connect(Z){this.onDataReceived=($)=>this.onDataReceivedHandler($),this.onClose=()=>this.onCloseHandler(),this.onError=($)=>this.onErrorHandler($),this.onConnect=()=>this.onConnectHandler();const J=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||I.DEFAULT_TIMEOUT);if(J.unref&&typeof J.unref==="function")J.unref();if(Z)this.socket=Z;else this.socket=new h7.Socket;if(this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(I.SocksClientState.Connecting),this.receiveBuffer=new Sl.ReceiveBuffer,Z)this.socket.emit("connect");else if(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null)this.socket.setNoDelay(!!this.options.set_tcp_nodelay);this.prependOnceListener("established",($)=>{setImmediate(()=>{if(this.receiveBuffer.length>0){const X=this.receiveBuffer.get(this.receiveBuffer.length);$.socket.emit("data",X)}$.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.BoundWaitingForConnection)this.closeSocket(I.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){if(this.setState(I.SocksClientState.Connected),this.options.proxy.type===4)this.sendSocks4InitialHandshake();else this.sendSocks5InitialHandshake();this.setState(I.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(Z){this.receiveBuffer.append(Z),this.processData()}processData(){while(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize)if(this.state===I.SocksClientState.SentInitialHandshake)if(this.options.proxy.type===4)this.handleSocks4FinalHandshakeResponse();else this.handleInitialSocks5HandshakeResponse();else if(this.state===I.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===I.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===I.SocksClientState.BoundWaitingForConnection)if(this.options.proxy.type===4)this.handleSocks4IncomingConnectionResponse();else this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(I.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(I.ERRORS.SocketClosed)}onErrorHandler(Z){this.closeSocket(Z.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(Z){if(this.state!==I.SocksClientState.Error)this.setState(I.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new hQ.SocksClientError(Z,this.options))}sendSocks4InitialHandshake(){const Z=this.options.proxy.userId||"",J=new R0.SmartBuffer;if(J.writeUInt8(4),J.writeUInt8(I.SocksCommand[this.options.command]),J.writeUInt16BE(this.options.destination.port),h7.isIPv4(this.options.destination.host))J.writeBuffer(k0.toBuffer(this.options.destination.host)),J.writeStringNT(Z);else J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(1),J.writeStringNT(Z),J.writeStringNT(this.options.destination.host);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(J.toBuffer())}handleSocks4FinalHandshakeResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedConnection} - (${I.Socks4Response[Z[1]]})`);else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind){const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:k0.fromLong(J.readUInt32BE())};if($.host==="0.0.0.0")$.host=this.options.proxy.ipaddress;this.setState(I.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:$,socket:this.socket})}else this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${I.Socks4Response[Z[1]]})`);else{const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:k0.fromLong(J.readUInt32BE())};this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}sendSocks5InitialHandshake(){const Z=new R0.SmartBuffer,J=[I.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password)J.push(I.Socks5Auth.UserPass);if(this.options.proxy.custom_auth_method!==void 0)J.push(this.options.proxy.custom_auth_method);Z.writeUInt8(5),Z.writeUInt8(J.length);for(let $ of J)Z.writeUInt8($);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const Z=this.receiveBuffer.get(2);if(Z[0]!==5)this.closeSocket(I.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);else if(Z[1]===I.SOCKS5_NO_ACCEPTABLE_AUTH)this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);else if(Z[1]===I.Socks5Auth.NoAuth)this.socks5ChosenAuthType=I.Socks5Auth.NoAuth,this.sendSocks5CommandRequest();else if(Z[1]===I.Socks5Auth.UserPass)this.socks5ChosenAuthType=I.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication();else if(Z[1]===this.options.proxy.custom_auth_method)this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication();else this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const Z=this.options.proxy.userId||"",J=this.options.proxy.password||"",$=new R0.SmartBuffer;$.writeUInt8(1),$.writeUInt8(Buffer.byteLength(Z)),$.writeString(Z),$.writeUInt8(Buffer.byteLength(J)),$.writeString(J),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write($.toBuffer()),this.setState(I.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return C7(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(I.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(Z)})}handleSocks5AuthenticationNoAuthHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return Z[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return Z[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return C7(this,void 0,void 0,function*(){this.setState(I.SocksClientState.ReceivedAuthenticationResponse);let Z=!1;if(this.socks5ChosenAuthType===I.Socks5Auth.NoAuth)Z=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===I.Socks5Auth.UserPass)Z=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method)Z=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));if(!Z)this.closeSocket(I.ERRORS.Socks5AuthenticationFailed);else this.sendSocks5CommandRequest()})}sendSocks5CommandRequest(){const Z=new R0.SmartBuffer;if(Z.writeUInt8(5),Z.writeUInt8(I.SocksCommand[this.options.command]),Z.writeUInt8(0),h7.isIPv4(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv4),Z.writeBuffer(k0.toBuffer(this.options.destination.host));else if(h7.isIPv6(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv6),Z.writeBuffer(k0.toBuffer(this.options.destination.host));else Z.writeUInt8(I.Socks5HostType.Hostname),Z.writeUInt8(this.options.destination.host.length),Z.writeString(this.options.destination.host);Z.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}if(this.setState(I.SocksClientState.ReceivedFinalResponse),I.SocksCommand[this.options.command]===I.SocksCommand.connect)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind)this.setState(I.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.associate)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}handleSocks5IncomingConnectionResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}n6.SocksClient=CJ});var uD=z((B4)=>{var yl=B4&&B4.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),kl=B4&&B4.__exportStar||function(Z,J){for(var $ in Z)if($!=="default"&&!Object.prototype.hasOwnProperty.call(J,$))yl(J,Z,$)};Object.defineProperty(B4,"__esModule",{value:!0});kl(mD(),B4)});var iD=z((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.MongoCR=void 0;var dD=import.meta.require("crypto"),_l=h(),pD=_(),xl=G6();class cD extends xl.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new _l.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await J.commandAsync(pD.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=dD.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),q=dD.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),F={authenticate:1,user:X,nonce:K,key:q};await J.commandAsync(pD.ns(`${Q}.\$cmd`),F,void 0)}}lD.MongoCR=cD});var rD=z((nD)=>{async function cl(Z){function J($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new C4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new bl.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:Z.source,mechanism:ml.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(t6.credentialProvider??(t6.credentialProvider=hJ.getAwsCredentialProvider()),"kModuleError"in t6.credentialProvider){if(OQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return J(await H6.request(`${pl}${OQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await H6.request(`${yQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await H6.request(`${yQ}/${sD}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await H6.request(`${yQ}/${sD}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return J(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=OQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!ul.has(X),K=Y&&Q?t6.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):t6.credentialProvider.fromNodeProviderChain();try{const G=await K();return J({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new C4.MongoAWSError(G.message)}}}var ll=function(Z){const J=Z.split(".");if(J.length===1||J[1]==="amazonaws")return"us-east-1";return J[1]};Object.defineProperty(nD,"__esModule",{value:!0});nD.MongoDBAWS=void 0;var vl=import.meta.require("crypto"),OQ=import.meta.require("process"),fl=import.meta.require("util"),SQ=D1(),hJ=j7(),C4=h(),H6=_(),gl=G6(),bl=JJ(),ml=k8(),ul=new Set(["ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),dl=110,pl="http://169.254.170.2",yQ="http://169.254.169.254",sD="/latest/meta-data/iam/security-credentials",kQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class t6 extends gl.AuthProvider{constructor(){super();this.randomBytesAsync=fl.promisify(vl.randomBytes)}async auth(Z){const{connection:J}=Z;if(!Z.credentials)throw new C4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in hJ.aws4)throw hJ.aws4.kModuleError;const{sign:$}=hJ.aws4;if(H6.maxWireVersion(J)<9)throw new C4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!Z.credentials.username)Z.credentials=await cl(Z.credentials);const{credentials:X}=Z,Y=X.username,Q=X.password,K=X.mechanismProperties.AWS_SESSION_TOKEN,G=Y&&Q&&K?{accessKeyId:Y,secretAccessKey:Q,sessionToken:K}:Y&&Q?{accessKeyId:Y,secretAccessKey:Q}:void 0,q=X.source,F=await this.randomBytesAsync(32),W={saslStart:1,mechanism:"MONGODB-AWS",payload:SQ.serialize({r:F,p:dl},kQ)},H=await J.commandAsync(H6.ns(`${q}.\$cmd`),W,void 0),V=SQ.deserialize(H.payload.buffer,kQ),j=V.h,U=V.s.buffer;if(U.length!==64)throw new C4.MongoRuntimeError(`Invalid server nonce length ${U.length}, expected 64`);if(!H6.ByteUtils.equals(U.subarray(0,F.byteLength),F))throw new C4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new C4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const L="Action=GetCallerIdentity&Version=2011-06-15",D=$({method:"POST",host:j,region:ll(V.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":L.length,"X-MongoDB-Server-Nonce":H6.ByteUtils.toBase64(U),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:L},G),B={a:D.headers.Authorization,d:D.headers["X-Amz-Date"]};if(K)B.t=K;const w={saslContinue:1,conversationId:1,payload:SQ.serialize(B,kQ)};await J.commandAsync(H6.ns(`${q}.\$cmd`),w,void 0)}}t6.credentialProvider=null;nD.MongoDBAWS=t6});var xQ=z((eD)=>{var _Q=function(Z){return{saslStart:1,mechanism:sl.AuthMechanism.MONGODB_OIDC,payload:al.BSON.serialize({jwt:Z})}};Object.defineProperty(eD,"__esModule",{value:!0});eD.commandDocument=eD.ServiceWorkflow=void 0;var al=H5(),il=_(),sl=k8();class oD{async execute(Z,J){const $=await this.getToken(J),X=_Q($);return Z.commandAsync(il.ns(J.source),X,void 0)}async speculativeAuth(Z){const J=await this.getToken(Z),$=_Q(J);return $.db=Z.source,{speculativeAuthenticate:$}}}eD.ServiceWorkflow=oD;eD.commandDocument=_Q});var YT=z(($T)=>{Object.defineProperty($T,"__esModule",{value:!0});$T.AwsServiceWorkflow=void 0;var tl=import.meta.require("fs"),rl=h(),ol=xQ(),el="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class JT extends ol.ServiceWorkflow{constructor(){super()}async getToken(){const Z=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!Z)throw new rl.MongoAWSError(el);return tl.promises.readFile(Z,"utf8")}}$T.AwsServiceWorkflow=JT});var OJ=z((GT)=>{Object.defineProperty(GT,"__esModule",{value:!0});GT.Cache=GT.ExpiringCacheEntry=void 0;var Za=300000;class QT{constructor(Z){this.expiration=this.expirationTime(Z)}isValid(){return this.expiration-Date.now()>Za}expirationTime(Z){return Date.now()+Z*1000}}GT.ExpiringCacheEntry=QT;class KT{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(Z,J,$){return JSON.stringify([Z,J,$])}}GT.Cache=KT});var VT=z((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});HT.AzureTokenCache=HT.AzureTokenEntry=void 0;var FT=OJ();class vQ extends FT.ExpiringCacheEntry{constructor(Z,J){super(J);this.token=Z}}HT.AzureTokenEntry=vQ;class WT extends FT.Cache{addEntry(Z,J){const $=new vQ(J.access_token,J.expires_in);return this.entries.set(Z,$),$}cacheKey(Z){return Z}deleteEntry(Z){this.entries.delete(Z)}getEntry(Z){return this.entries.get(Z)}}HT.AzureTokenCache=WT});var LT=z((jT)=>{async function Wa(Z){const J=`${Ka}&resource=${Z}`;return await Xa.request(J,{json:!0,headers:Ga})}var Ha=function(Z){if(Z==null||typeof Z!=="object")return!1;return"access_token"in Z&&"expires_in"in Z};Object.defineProperty(jT,"__esModule",{value:!0});jT.AzureServiceWorkflow=void 0;var UT=h(),Xa=_(),Ya=VT(),Qa=xQ(),Ka="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",Ga=Object.freeze({Metadata:"true",Accept:"application/json"}),qa="Azure endpoint did not return a value with only access_token and expires_in properties",Fa="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class MT extends Qa.ServiceWorkflow{constructor(){super(...arguments);this.cache=new Ya.AzureTokenCache}async getToken(Z){const J=Z?.mechanismProperties.TOKEN_AUDIENCE;if(!J)throw new UT.MongoAzureError(Fa);let $;const X=this.cache.getEntry(J);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(J);const Y=await Wa(J);if(!Ha(Y))throw new UT.MongoAzureError(qa);this.cache.addEntry(J,Y),$=Y.access_token}return $}}jT.AzureServiceWorkflow=MT});var IT=z((DT)=>{var wT=function(Z){let J=Promise.resolve();return async($,X)=>{return await J,J=J.then(()=>Z($,X)),J}},Ma=function(Z,J){let $=F9.get(Z),X=F9.get(J??RT);if($==null)h4++,$=h4,F9.set(Z,h4);if(X==null&&J)h4++,X=h4,F9.set(J,h4);return`${$}-${X}`};Object.defineProperty(DT,"__esModule",{value:!0});DT.CallbackLockCache=void 0;var za=h(),Va=OJ(),Ua="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",h4=0,RT=async()=>({accessToken:"test"}),F9=new WeakMap;F9.set(RT,h4);class PT extends Va.Cache{getEntry(Z,J){const $=J.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=J.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new za.MongoInvalidArgumentError(Ua);const Y=Ma($,X),Q=this.cacheKey(Z.address,J.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(Z,J,$,X){const Y={requestCallback:wT($),refreshCallback:X?wT(X):void 0,callbackHash:J};return this.entries.set(Z,Y),Y}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}DT.CallbackLockCache=PT});var hT=z((BT)=>{Object.defineProperty(BT,"__esModule",{value:!0});BT.TokenEntryCache=BT.TokenEntry=void 0;var ET=OJ(),ja=0;class fQ extends ET.ExpiringCacheEntry{constructor(Z,J,$){super($);this.tokenResult=Z,this.serverInfo=J}}BT.TokenEntry=fQ;class NT extends ET.Cache{addEntry(Z,J,$,X,Y){const Q=new fQ(X,Y,X.expiresInSeconds??ja);return this.entries.set(this.cacheKey(Z,J,$),Q),Q}deleteEntry(Z,J,$){this.entries.delete(this.cacheKey(Z,J,$))}getEntry(Z,J,$){return this.entries.get(this.cacheKey(Z,J,$))}deleteExpiredEntries(){for(let[Z,J]of this.entries)if(!J.isValid())this.entries.delete(Z)}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}BT.TokenEntryCache=NT});var vT=z((_T)=>{var Ia=function(Z,J){if(J!=null&&typeof J==="number")return{saslContinue:1,conversationId:J,payload:new O4.Binary(O4.BSON.serialize({jwt:Z}))};return{saslStart:1,mechanism:yT.AuthMechanism.MONGODB_OIDC,payload:new O4.Binary(O4.BSON.serialize({jwt:Z}))}},Ea=function(Z){if(Z==null||typeof Z!=="object")return!0;if(!("accessToken"in Z))return!0;return!Object.getOwnPropertyNames(Z).every((J)=>Da.includes(J))},ST=function(Z){const J={};if(Z.username)J.n=Z.username;return{saslStart:1,autoAuthorize:1,mechanism:yT.AuthMechanism.MONGODB_OIDC,payload:new O4.Binary(O4.BSON.serialize(J))}};Object.defineProperty(_T,"__esModule",{value:!0});_T.CallbackWorkflow=void 0;var O4=H5(),gQ=h(),OT=_(),yT=k8(),La=IT(),wa=hT(),Ra=0,Pa=300,Da=["accessToken","expiresInSeconds","refreshToken"],Ta="User provided OIDC callbacks must return a valid object with an accessToken.";class kT{constructor(){this.cache=new wa.TokenEntryCache,this.callbackCache=new La.CallbackLockCache}async speculativeAuth(Z){const J=ST(Z);return J.db=Z.source,{speculativeAuthenticate:J}}async execute(Z,J,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(Z,J),G=this.cache.getEntry(Z.address,J.username,K);let q;if(G)if(G.isValid()&&!$)q=await this.finishAuthentication(Z,J,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const F=await this.fetchAccessToken(Z,J,G.serverInfo,$,K,Y,Q);try{q=await this.finishAuthentication(Z,J,F,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(W){if($&&W instanceof gQ.MongoError&&W.code===gQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(Z.address,J.username,K),q=await this.execute(Z,J,$);else throw W}}else{const F=await this.startAuthentication(Z,J,$,X),W=F.conversationId,H=O4.BSON.deserialize(F.payload.buffer),V=await this.fetchAccessToken(Z,J,H,$,K,Y,Q);q=await this.finishAuthentication(Z,J,V,W)}return q}async startAuthentication(Z,J,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await Z.commandAsync(OT.ns(J.source),ST(J),void 0);return Y}async finishAuthentication(Z,J,$,X){return await Z.commandAsync(OT.ns(J.source),Ia($.accessToken,X),void 0)}async fetchAccessToken(Z,J,$,X,Y,Q,K){const G=this.cache.getEntry(Z.address,J.username,Y);let q;const F={timeoutSeconds:Pa,version:Ra};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)F.refreshToken=G.tokenResult.refreshToken,q=await K($,F);else q=await Q($,F)}else q=await Q($,F);if(Ea(q))throw this.cache.deleteEntry(Z.address,J.username,Y),new gQ.MongoMissingCredentialsError(Ta);return this.cache.deleteExpiredEntries(),this.cache.addEntry(Z.address,J.username||"",Y,q,$),q}}_T.CallbackWorkflow=kT});var pT=z((uT)=>{var fT=function(Z){const{credentials:J}=Z;if(!J)throw new bT.MongoMissingCredentialsError(Oa);return J},gT=function(Z){const J=Z.mechanismProperties.PROVIDER_NAME,$=uT.OIDC_WORKFLOWS.get(J||"callback");if(!$)throw new bT.MongoInvalidArgumentError(`Could not load workflow for provider ${Z.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(uT,"__esModule",{value:!0});uT.MongoDBOIDC=uT.OIDC_WORKFLOWS=void 0;var bT=h(),Na=G6(),Ba=YT(),Ca=LT(),ha=vT(),Oa="AuthContext must provide credentials.";uT.OIDC_WORKFLOWS=new Map;uT.OIDC_WORKFLOWS.set("callback",new ha.CallbackWorkflow);uT.OIDC_WORKFLOWS.set("aws",new Ba.AwsServiceWorkflow);uT.OIDC_WORKFLOWS.set("azure",new Ca.AzureServiceWorkflow);class mT extends Na.AuthProvider{constructor(){super()}async auth(Z){const{connection:J,reauthenticating:$,response:X}=Z,Y=fT(Z);await gT(Y).execute(J,Y,$,X)}async prepare(Z,J){const $=fT(J),Y=await gT($).speculativeAuth($);return{...Z,...Y}}}uT.MongoDBOIDC=mT});var iT=z((lT)=>{Object.defineProperty(lT,"__esModule",{value:!0});lT.Plain=void 0;var Sa=D1(),ya=h(),ka=_(),_a=G6();class cT extends _a.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new ya.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Sa.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await J.commandAsync(ka.ns("$external.$cmd"),K,void 0)}}lT.Plain=cT});var YI=z(($I)=>{var tT=function(Z){return Z.replace("=","=3D").replace(",","=2C")},rT=function(Z,J){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(Z,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(J.toString("base64"),"utf8")])},oT=function(Z,J,$){const X=tT(J.username);return{saslStart:1,mechanism:Z==="sha1"?sT.AuthMechanism.MONGODB_SCRAM_SHA1:sT.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new bQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),rT(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function fa(Z,J){const{connection:$,credentials:X}=J;if(!X)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!J.nonce)throw new j8.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=J.nonce,Q=X.source,K=oT(Z,X,Y),G=await $.commandAsync(kJ.ns(`${Q}.\$cmd`),K,void 0);await eT(Z,G,J)}async function eT(Z,J,$){const{connection:X,credentials:Y}=$;if(!Y)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new j8.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=tT(Y.username),q=Y.password;let F;if(Z==="sha256")F="kModuleError"in H9.saslprep||typeof H9.saslprep!=="function"?q:H9.saslprep(q);else F=ga(G,q);const W=Buffer.isBuffer(J.payload)?new bQ.Binary(J.payload):J.payload,H=nT(W.value()),V=parseInt(H.i,10);if(V&&V<4096)throw new j8.MongoRuntimeError(`Server returned an invalid iteration count ${V}`);const{s:j,r:U}=H;if(U.startsWith("nonce"))throw new j8.MongoRuntimeError(`Server returned an invalid nonce: ${U}`);const L=`c=biws,r=${U}`,D=pa(F,Buffer.from(j,"base64"),V,Z),B=SJ(Z,D,"Client Key"),w=SJ(Z,D,"Server Key"),T=ma(Z,B),f=[rT(G,Q),W.value(),L].join(","),N1=SJ(Z,T,f),p8=`p=${ba(B,N1)}`,y=[L,p8].join(","),N=SJ(Z,w,f),G1={saslContinue:1,conversationId:J.conversationId,payload:new bQ.Binary(Buffer.from(y))},u=await X.commandAsync(kJ.ns(`${K}.\$cmd`),G1,void 0),v=nT(u.payload.value());if(!ca(Buffer.from(v.v,"base64"),N))throw new j8.MongoRuntimeError("Server returned an invalid signature");if(u.done!==!1)return;const C={saslContinue:1,conversationId:u.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(kJ.ns(`${K}.\$cmd`),C,void 0)}var nT=function(Z){const J={},$=Z.split(",");for(let X=0;X<$.length;X++){const Y=$[X].split("=");J[Y[0]]=Y[1]}return J},ga=function(Z,J){if(typeof Z!=="string")throw new j8.MongoInvalidArgumentError("Username must be a string");if(typeof J!=="string")throw new j8.MongoInvalidArgumentError("Password must be a string");if(J.length===0)throw new j8.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=r6.createHash("md5")}catch(X){if(r6.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${Z}:mongo:${J}`,"utf8"),$.digest("hex")},ba=function(Z,J){if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);if(!Buffer.isBuffer(J))J=Buffer.from(J);const $=Math.max(Z.length,J.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(Z[Y]^J[Y]);return Buffer.from(X).toString("base64")},ma=function(Z,J){return r6.createHash(Z).update(J).digest()},SJ=function(Z,J,$){return r6.createHmac(Z,J).update($).digest()},ua=function(){yJ={},mQ=0},pa=function(Z,J,$,X){const Y=[Z,J.toString("base64"),$].join("_");if(yJ[Y]!=null)return yJ[Y];const Q=r6.pbkdf2Sync(Z,J,$,da[X],X);if(mQ>=200)ua();return yJ[Y]=Q,mQ+=1,Q},ca=function(Z,J){if(Z.length!==J.length)return!1;if(typeof r6.timingSafeEqual==="function")return r6.timingSafeEqual(Z,J);let $=0;for(let X=0;X<Z.length;X++)$|=Z[X]^J[X];return $===0};Object.defineProperty($I,"__esModule",{value:!0});$I.ScramSHA256=$I.ScramSHA1=void 0;var r6=import.meta.require("crypto"),xa=import.meta.require("util"),bQ=D1(),H9=j7(),j8=h(),kJ=_(),va=G6(),sT=k8();class uQ extends va.AuthProvider{constructor(Z){super();this.cryptoMethod=Z||"sha1",this.randomBytesAsync=xa.promisify(r6.randomBytes)}async prepare(Z,J){const $=this.cryptoMethod,X=J.credentials;if(!X)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if($==="sha256"&&(("kModuleError"in H9.saslprep)||typeof H9.saslprep!=="function"))kJ.emitWarning("Warning: no saslprep library specified. Passwords will not be sanitized");const Y=await this.randomBytesAsync(24);return J.nonce=Y,{...Z,speculativeAuthenticate:{...oT($,X,Y),db:X.source}}}async auth(Z){const{reauthenticating:J,response:$}=Z;if($?.speculativeAuthenticate&&!J)return eT(this.cryptoMethod,$.speculativeAuthenticate,Z);return fa(this.cryptoMethod,Z)}}var yJ={},mQ=0,da={sha256:32,sha1:20};class ZI extends uQ{constructor(){super("sha1")}}$I.ScramSHA1=ZI;class JI extends uQ{constructor(){super("sha256")}}$I.ScramSHA256=JI});var WI=z((qI)=>{var KI=function(Z){const J={authenticate:1,mechanism:"MONGODB-X509"};if(Z.username)J.user=Z.username;return J};Object.defineProperty(qI,"__esModule",{value:!0});qI.X509=void 0;var QI=h(),aa=_(),ia=G6();class GI extends ia.AuthProvider{async prepare(Z,J){const{credentials:$}=J;if(!$)throw new QI.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...Z,speculativeAuthenticate:KI($)}}async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new QI.MongoMissingCredentialsError("AuthContext must provide credentials.");if(Z.response?.speculativeAuthenticate)return;await J.commandAsync(aa.ns("$external.$cmd"),KI($),void 0)}}qI.X509=GI});var aQ=z((LI)=>{var Xi=function(Z,J){pQ({...Z,existingSocket:void 0},($,X)=>{if($||!X)return J($);let Y=Z.connectionType??zI.Connection;if(Z.autoEncrypter)Y=zI.CryptoConnection;const Q=new Y(X,Z);Qi(Q,Z).then(()=>J(void 0,Q),(K)=>{Q.destroy({force:!1}),J(K)})})},Yi=function(Z,J){const $=Number(Z.maxWireVersion),X=Number(Z.minWireVersion),Y=!Number.isNaN($)&&$>=O7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=O7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${J.hostAddress} reports minimum wire version ${JSON.stringify(Z.minWireVersion)}, but this version of the Node.js Driver requires at most ${O7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${O7.MAX_SUPPORTED_SERVER_VERSION})`;return new x1.MongoCompatibilityError(G)}const K=`Server at ${J.hostAddress} reports maximum wire version ${JSON.stringify(Z.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${O7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${O7.MIN_SUPPORTED_SERVER_VERSION})`;return new x1.MongoCompatibilityError(K)};async function Qi(Z,J){const $=J.credentials;if($){if($.mechanism!==o0.AuthMechanism.MONGODB_DEFAULT&&!LI.AUTH_PROVIDERS.get($.mechanism))throw new x1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new ta.AuthContext(Z,$,J);Z.authContext=X;const Y=await jI(X),Q={...J};if(typeof J.connectTimeoutMS==="number")Q.socketTimeoutMS=J.connectTimeoutMS;const K=(new Date()).getTime(),G=await Z.commandAsync(MI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[UI.LEGACY_HELLO_COMMAND];if(G.helloOk)Z.helloOk=!0;const q=Yi(G,J);if(q)throw q;if(J.loadBalanced){if(!G.serviceId)throw new x1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(Z.hello=G,Z.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const F=$.resolveAuthMechanism(G),W=LI.AUTH_PROVIDERS.get(F.mechanism);if(!W)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${F.mechanism} defined.`);try{await W.auth(X)}catch(H){if(H instanceof x1.MongoError){if(H.addErrorLabel(x1.MongoErrorLabel.HandshakeError),x1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(x1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function jI(Z){const J=Z.options,$=J.compressors?J.compressors:[],{serverApi:X}=Z.connection,Y={[X?.version?"hello":UI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:J.metadata,compression:$};if(J.loadBalanced===!0)Y.loadBalanced=!0;const Q=Z.credentials;if(Q){if(Q.mechanism===o0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=LI.AUTH_PROVIDERS.get(o0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${o0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,Z)}const K=LI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,Z)}return Y}var cQ=function(Z){const J=Z.hostAddress;if(!J)throw new x1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of LI.LEGAL_TCP_SOCKET_OPTIONS)if(Z[X]!=null)$[X]=Z[X];if(typeof J.socketPath==="string")return $.path=J.socketPath,$;else if(typeof J.host==="string")return $.host=J.host,$.port=J.port,$;else throw new x1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(J)}`)},Ki=function(Z){const J=cQ(Z);for(let $ of LI.LEGAL_TLS_SOCKET_OPTIONS)if(Z[$]!=null)J[$]=Z[$];if(Z.existingSocket)J.socket=Z.existingSocket;if(J.servername==null&&J.host&&!VI.isIP(J.host))J.servername=J.host;return J},pQ=function(Z,J){const $=Z.tls??!1,X=Z.keepAlive??!0,Y=Z.socketTimeoutMS??Reflect.get(Z,"socketTimeout")??0,Q=Z.noDelay??!0,K=Z.connectTimeoutMS??30000,G=Z.rejectUnauthorized??!0,q=((Z.keepAliveInitialDelay??120000)>Y?Math.round(Y/2):Z.keepAliveInitialDelay)??120000,F=Z.existingSocket;let W;const H=function(D,B){if(D&&W)W.destroy();J(D,B)};if(Z.proxyHost!=null)return qi({...Z,connectTimeoutMS:K},H);if($){const D=na.connect(Ki(Z));if(typeof D.disableRenegotiation==="function")D.disableRenegotiation();W=D}else if(F)W=F;else W=VI.createConnection(cQ(Z));W.setKeepAlive(X,q),W.setTimeout(K),W.setNoDelay(Q);const V=$?"secureConnect":"connect";let j;function U(D){return(B)=>{if(dQ.forEach((w)=>W.removeAllListeners(w)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);W.removeListener(V,L),H(AI(D,B))}}function L(){if(dQ.forEach((D)=>W.removeAllListeners(D)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);if("authorizationError"in W){if(W.authorizationError&&G)return H(W.authorizationError)}W.setTimeout(0),H(void 0,W)}if(dQ.forEach((D)=>W.once(D,U(D))),Z.cancellationToken)j=U("cancel"),Z.cancellationToken.once("cancel",j);if(F)process.nextTick(L);else W.once(V,L)},qi=function(Z,J){const $=MI.HostAddress.fromHostPort(Z.proxyHost??"",Z.proxyPort??1080);pQ({...Z,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X)return J(X);const Q=cQ(Z);if(typeof Q.host!=="string"||typeof Q.port!=="number")return J(new x1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));sa.SocksClient.createConnection({existing_socket:Y,timeout:Z.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:Z.proxyUsername||void 0,password:Z.proxyPassword||void 0}}).then(({socket:K})=>{pQ({...Z,existingSocket:K,proxyHost:void 0},J)},(K)=>J(AI("error",K)))})},AI=function(Z,J){switch(Z){case"error":return new x1.MongoNetworkError(J);case"timeout":return new x1.MongoNetworkTimeoutError("connection timed out");case"close":return new x1.MongoNetworkError("connection closed");case"cancel":return new x1.MongoNetworkError("connection establishment was cancelled");default:return new x1.MongoNetworkError("unknown network error")}};Object.defineProperty(LI,"__esModule",{value:!0});LI.LEGAL_TCP_SOCKET_OPTIONS=LI.LEGAL_TLS_SOCKET_OPTIONS=LI.prepareHandshakeDocument=LI.connect=LI.AUTH_PROVIDERS=void 0;var VI=import.meta.require("net"),sa=uD(),na=import.meta.require("tls"),UI=f1(),x1=h(),MI=_(),ta=G6(),ra=eZ(),oa=iD(),ea=rD(),Zi=pT(),Ji=iT(),o0=k8(),HI=YI(),$i=WI(),zI=G9(),O7=j4();LI.AUTH_PROVIDERS=new Map([[o0.AuthMechanism.MONGODB_AWS,new ea.MongoDBAWS],[o0.AuthMechanism.MONGODB_CR,new oa.MongoCR],[o0.AuthMechanism.MONGODB_GSSAPI,new ra.GSSAPI],[o0.AuthMechanism.MONGODB_OIDC,new Zi.MongoDBOIDC],[o0.AuthMechanism.MONGODB_PLAIN,new Ji.Plain],[o0.AuthMechanism.MONGODB_SCRAM_SHA1,new HI.ScramSHA1],[o0.AuthMechanism.MONGODB_SCRAM_SHA256,new HI.ScramSHA256],[o0.AuthMechanism.MONGODB_X509,new $i.X509]]);LI.connect=Xi;LI.prepareHandshakeDocument=jI;LI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];LI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var Gi=["error","close","timeout","parseError"],dQ=new Set(Gi)});var iQ=z((SI)=>{Object.defineProperty(SI,"__esModule",{value:!0});SI.ConnectionPoolClearedEvent=SI.ConnectionCheckedInEvent=SI.ConnectionCheckedOutEvent=SI.ConnectionCheckOutFailedEvent=SI.ConnectionCheckOutStartedEvent=SI.ConnectionClosedEvent=SI.ConnectionReadyEvent=SI.ConnectionCreatedEvent=SI.ConnectionPoolClosedEvent=SI.ConnectionPoolReadyEvent=SI.ConnectionPoolCreatedEvent=SI.ConnectionPoolMonitoringEvent=void 0;var A8=f1();class _0{constructor(Z){this.time=new Date,this.address=Z.address}}SI.ConnectionPoolMonitoringEvent=_0;class RI extends _0{constructor(Z){super(Z);if(this.name=A8.CONNECTION_POOL_CREATED,Z.options.credentials!=null)this.options={...Z.options,credentials:{}};else this.options=Z.options}}SI.ConnectionPoolCreatedEvent=RI;class PI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_POOL_READY}}SI.ConnectionPoolReadyEvent=PI;class DI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_POOL_CLOSED}}SI.ConnectionPoolClosedEvent=DI;class TI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CREATED,this.connectionId=J.id}}SI.ConnectionCreatedEvent=TI;class II extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_READY,this.connectionId=J.id}}SI.ConnectionReadyEvent=II;class EI extends _0{constructor(Z,J,$,X){super(Z);this.name=A8.CONNECTION_CLOSED,this.connectionId=J.id,this.reason=$,this.serviceId=J.serviceId,this.error=X??null}}SI.ConnectionClosedEvent=EI;class NI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_CHECK_OUT_STARTED}}SI.ConnectionCheckOutStartedEvent=NI;class BI extends _0{constructor(Z,J,$){super(Z);this.name=A8.CONNECTION_CHECK_OUT_FAILED,this.reason=J,this.error=$}}SI.ConnectionCheckOutFailedEvent=BI;class CI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CHECKED_OUT,this.connectionId=J.id}}SI.ConnectionCheckedOutEvent=CI;class hI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CHECKED_IN,this.connectionId=J.id}}SI.ConnectionCheckedInEvent=hI;class OI extends _0{constructor(Z,J={}){super(Z);this.name=A8.CONNECTION_POOL_CLEARED,this.serviceId=J.serviceId,this.interruptInUseConnections=J.interruptInUseConnections}}SI.ConnectionPoolClearedEvent=OI});var nQ=z((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.WaitQueueTimeoutError=vI.PoolClearedOnNetworkError=vI.PoolClearedError=vI.PoolClosedError=void 0;var _J=h();class kI extends _J.MongoDriverError{constructor(Z){super("Attempted to check out a connection from closed connection pool");this.address=Z.address}get name(){return"MongoPoolClosedError"}}vI.PoolClosedError=kI;class sQ extends _J.MongoNetworkError{constructor(Z,J){const $=J?J:`Connection pool for ${Z.address} was cleared because another operation failed with: "${Z.serverError?.message}"`;super($);this.address=Z.address,this.addErrorLabel(_J.MongoErrorLabel.RetryableWriteError)}get name(){return"MongoPoolClearedError"}}vI.PoolClearedError=sQ;class _I extends sQ{constructor(Z){super(Z,`Connection to ${Z.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}vI.PoolClearedOnNetworkError=_I;class xI extends _J.MongoDriverError{constructor(Z,J){super(Z);this.address=J}get name(){return"MongoWaitQueueTimeoutError"}}vI.WaitQueueTimeoutError=xI});var pI=z((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.ConnectionPool=uI.PoolState=void 0;var b8=import.meta.require("timers"),Z8=f1(),L8=h(),gI=C0(),xJ=_(),bI=aQ(),vJ=G9(),t1=iQ(),S7=nQ(),Ei=IY(),fJ=Symbol("server"),z6=Symbol("connections"),y7=Symbol("pending"),o6=Symbol("checkedOut"),S4=Symbol("minPoolSizeTimer"),k7=Symbol("generation"),mI=Symbol("serviceGenerations"),gJ=Symbol("connectionCounter"),bJ=Symbol("cancellationToken"),V6=Symbol("waitQueue"),mJ=Symbol("cancelled"),uJ=Symbol("metrics"),dJ=Symbol("processingWaitQueue"),w8=Symbol("poolState");uI.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class Y1 extends gI.TypedEventEmitter{constructor(Z,J){super();if(this.options=Object.freeze({...J,connectionType:vJ.Connection,maxPoolSize:J.maxPoolSize??100,minPoolSize:J.minPoolSize??0,maxConnecting:J.maxConnecting??2,maxIdleTimeMS:J.maxIdleTimeMS??0,waitQueueTimeoutMS:J.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:J.minPoolSizeCheckFrequencyMS??100,autoEncrypter:J.autoEncrypter,metadata:J.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new L8.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[w8]=uI.PoolState.paused,this[fJ]=Z,this[z6]=new xJ.List,this[y7]=0,this[o6]=new Set,this[S4]=void 0,this[k7]=0,this[mI]=new Map,this[gJ]=xJ.makeCounter(1),this[bJ]=new gI.CancellationToken,this[bJ].setMaxListeners(Infinity),this[V6]=new xJ.List,this[uJ]=new Ei.ConnectionPoolMetrics,this[dJ]=!1,this.mongoLogger=this[fJ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(Y1.CONNECTION_POOL_CREATED,new t1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[w8]===uI.PoolState.closed}get generation(){return this[k7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[z6].length}get pendingConnectionCount(){return this[y7]}get currentCheckedOutCount(){return this[o6].size}get waitQueueSize(){return this[V6].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[mI]}get serverError(){return this[fJ].description.error}get checkedOutConnections(){return this[o6]}waitQueueErrorMetrics(){return this[uJ].info(this.options.maxPoolSize)}ready(){if(this[w8]!==uI.PoolState.paused)return;this[w8]=uI.PoolState.ready,this.emitAndLog(Y1.CONNECTION_POOL_READY,new t1.ConnectionPoolReadyEvent(this)),b8.clearTimeout(this[S4]),this.ensureMinPoolSize()}checkOut(Z){this.emitAndLog(Y1.CONNECTION_CHECK_OUT_STARTED,new t1.ConnectionCheckOutStartedEvent(this));const J={callback:Z},$=this.options.waitQueueTimeoutMS;if($)J.timer=b8.setTimeout(()=>{J[mJ]=!0,J.timer=void 0,this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,"timeout")),J.callback(new S7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))},$);this[V6].push(J),process.nextTick(()=>this.processWaitQueue())}checkIn(Z){if(!this[o6].has(Z))return;const J=this.closed,$=this.connectionIsStale(Z),X=!!(J||$||Z.closed);if(!X)Z.markAvailable(),this[z6].unshift(Z);if(this[o6].delete(Z),this.emitAndLog(Y1.CONNECTION_CHECKED_IN,new t1.ConnectionCheckedInEvent(this,Z)),X){const Y=Z.closed?"error":J?"poolClosed":"stale";this.destroyConnection(Z,Y)}process.nextTick(()=>this.processWaitQueue())}clear(Z={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=Z;if(!Y)throw new L8.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const Q=Y.toHexString(),K=this.serviceGenerations.get(Q);if(K==null)throw new L8.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new t1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const J=Z.interruptInUseConnections??!1,$=this[k7];this[k7]+=1;const X=this[w8]===uI.PoolState.paused;if(this[w8]=uI.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new t1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:J}));if(J)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(Z){for(let J of this[o6])if(J.generation<=Z)this.checkIn(J),J.onError(new S7.PoolClearedOnNetworkError(this))}close(Z,J){let $=Z;const X=J??Z;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[bJ].emit("cancel"),typeof this[gJ].return==="function")this[gJ].return(void 0);this[w8]=uI.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),xJ.eachAsync(this[z6].toArray(),(Y,Q)=>{this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[z6].clear(),this.emitAndLog(Y1.CONNECTION_POOL_CLOSED,new t1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(Z,J,$){if(Z){J(void 0,Z,(X,Y)=>{if(X)return this.withReauthentication(X,Z,J,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{J(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,J,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(Z,J,$,X){if(Z instanceof L8.MongoError&&Z.code===L8.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(J,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(Z)}reauthenticate(Z,J,$){const X=Z.authContext;if(!X)return $(new L8.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new L8.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(Z.hello||void 0),K=bI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new L8.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{J(void 0,Z,(G,q)=>{if(G)return $(G);$(void 0,q)})},(G)=>$(G))}clearMinPoolSizeTimer(){const Z=this[S4];if(Z)b8.clearTimeout(Z)}destroyConnection(Z,J){this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,Z,J)),process.nextTick(()=>Z.destroy({force:!1}))}connectionIsStale(Z){const J=Z.serviceId;if(this.loadBalanced&&J){const $=J.toHexString(),X=this.serviceGenerations.get($);return Z.generation!==X}return Z.generation!==this[k7]}connectionIsIdle(Z){return!!(this.options.maxIdleTimeMS&&Z.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(Z){const J=this.connectionIsStale(Z),$=this.connectionIsIdle(Z);if(!J&&!$&&!Z.closed)return!1;const X=Z.closed?"error":J?"stale":"idle";return this.destroyConnection(Z,X),!0}createConnection(Z){const J={...this.options,id:this[gJ].next().value,generation:this[k7],cancellationToken:this[bJ]};this[y7]++,this.emitAndLog(Y1.CONNECTION_CREATED,new t1.ConnectionCreatedEvent(this,{id:J.id})),bI.connect(J,($,X)=>{if($||!X){if(this[y7]--,this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,{id:J.id,serviceId:void 0},"error",$)),$ instanceof L8.MongoNetworkError||$ instanceof L8.MongoServerError)$.connectionGeneration=J.generation;Z($??new L8.MongoRuntimeError("Connection creation failed without error"));return}if(this[w8]!==uI.PoolState.ready){this[y7]--,X.destroy({force:!0}),Z(this.closed?new S7.PoolClosedError(this):new S7.PoolClearedError(this));return}for(let Y of[...Z8.APM_EVENTS,vJ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(vJ.Connection.PINNED,(Q)=>this[uJ].markPinned(Q)),X.on(vJ.Connection.UNPINNED,(Q)=>this[uJ].markUnpinned(Q));const Y=X.serviceId;if(Y){let Q;const K=Y.toHexString();if(Q=this.serviceGenerations.get(K))X.generation=Q;else this.serviceGenerations.set(K,0),X.generation=0}}X.markAvailable(),this.emitAndLog(Y1.CONNECTION_READY,new t1.ConnectionReadyEvent(this,X)),this[y7]--,Z(void 0,X);return})}ensureMinPoolSize(){const Z=this.options.minPoolSize;if(this[w8]!==uI.PoolState.ready||Z===0)return;if(this[z6].prune((J)=>this.destroyConnectionIfPerished(J)),this.totalConnectionCount<Z&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((J,$)=>{if(J)this[fJ].handleError(J);if(!J&&$)this[z6].push($),process.nextTick(()=>this.processWaitQueue());if(this[w8]===uI.PoolState.ready)b8.clearTimeout(this[S4]),this[S4]=b8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else b8.clearTimeout(this[S4]),this[S4]=b8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[dJ])return;this[dJ]=!0;while(this.waitQueueSize){const $=this[V6].first();if(!$){this[V6].shift();continue}if($[mJ]){this[V6].shift();continue}if(this[w8]!==uI.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new S7.PoolClosedError(this):new S7.PoolClearedError(this);if(this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timer)b8.clearTimeout($.timer);this[V6].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[z6].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X)){if(this[o6].add(X),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new t1.ConnectionCheckedOutEvent(this,X)),$.timer)b8.clearTimeout($.timer);this[V6].shift(),$.callback(void 0,X)}}const{maxPoolSize:Z,maxConnecting:J}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<J&&(Z===0||this.totalConnectionCount<Z)){const $=this[V6].shift();if(!$||$[mJ])continue;this.createConnection((X,Y)=>{if($[mJ]){if(!X&&Y)this[z6].push(Y)}else{if(X)this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[o6].add(Y),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new t1.ConnectionCheckedOutEvent(this,Y));if($.timer)b8.clearTimeout($.timer);$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[dJ]=!1}}Y1.CONNECTION_POOL_CREATED=Z8.CONNECTION_POOL_CREATED;Y1.CONNECTION_POOL_CLOSED=Z8.CONNECTION_POOL_CLOSED;Y1.CONNECTION_POOL_CLEARED=Z8.CONNECTION_POOL_CLEARED;Y1.CONNECTION_POOL_READY=Z8.CONNECTION_POOL_READY;Y1.CONNECTION_CREATED=Z8.CONNECTION_CREATED;Y1.CONNECTION_READY=Z8.CONNECTION_READY;Y1.CONNECTION_CLOSED=Z8.CONNECTION_CLOSED;Y1.CONNECTION_CHECK_OUT_STARTED=Z8.CONNECTION_CHECK_OUT_STARTED;Y1.CONNECTION_CHECK_OUT_FAILED=Z8.CONNECTION_CHECK_OUT_FAILED;Y1.CONNECTION_CHECKED_OUT=Z8.CONNECTION_CHECKED_OUT;Y1.CONNECTION_CHECKED_IN=Z8.CONNECTION_CHECKED_IN;uI.ConnectionPool=Y1});var eI=z((rI)=>{var A9=function(Z){return Z.s.state===r1.STATE_CLOSED||Z.s.state===r1.STATE_CLOSING},aI=function(Z){Z[m8]?.stop(),Z[m8]=void 0,Z.rttPinger?.close(),Z.rttPinger=void 0,Z[k4].emit("cancel"),Z[U6]?.destroy({force:!0}),Z[U6]=void 0},Ci=function(Z,J){let $=x0.now();Z.emit(M9.Server.SERVER_HEARTBEAT_STARTED,new U9.ServerHeartbeatStartedEvent(Z.address));function X(Q){Z[U6]?.destroy({force:!0}),Z[U6]=void 0,Z.emit(M9.Server.SERVER_HEARTBEAT_FAILED,new U9.ServerHeartbeatFailedEvent(Z.address,x0.calculateDurationInMs($),Q));const K=!(Q instanceof V9.MongoError)?new V9.MongoError(Q):Q;if(K.addErrorLabel(V9.MongoErrorLabel.ResetPool),K instanceof V9.MongoNetworkTimeoutError)K.addErrorLabel(V9.MongoErrorLabel.InterruptInUseConnections);Z.emit("resetServer",K),J(Q)}const Y=Z[U6];if(Y&&!Y.closed){const{serverApi:Q,helloOk:K}=Y,G=Z.options.connectTimeoutMS,q=Z.options.heartbeatFrequencyMS,F=Z[pJ].description.topologyVersion,W=F!=null,H={[Q?.version||K?"hello":tQ.LEGACY_HELLO_COMMAND]:1,...W&&F?{maxAwaitTimeMS:q,topologyVersion:hi(F)}:{}},V=W?{socketTimeoutMS:G?G+q:0,exhaustAllowed:!0}:{socketTimeoutMS:G};if(W&&Z.rttPinger==null)Z.rttPinger=new rQ(Z[k4],Object.assign({heartbeatFrequencyMS:Z.options.heartbeatFrequencyMS},Z.connectOptions));Y.command(x0.ns("admin.$cmd"),H,V,(j,U)=>{if(j)return X(j);if(!("isWritablePrimary"in U))U.isWritablePrimary=U[tQ.LEGACY_HELLO_COMMAND];const L=W&&Z.rttPinger?Z.rttPinger.roundTripTime:x0.calculateDurationInMs($);if(Z.emit(M9.Server.SERVER_HEARTBEAT_SUCCEEDED,new U9.ServerHeartbeatSucceededEvent(Z.address,L,U)),W&&U.topologyVersion)Z.emit(M9.Server.SERVER_HEARTBEAT_STARTED,new U9.ServerHeartbeatStartedEvent(Z.address)),$=x0.now();else Z.rttPinger?.close(),Z.rttPinger=void 0,J(void 0,U)});return}sI.connect(Z.connectOptions,(Q,K)=>{if(Q){Z[U6]=void 0,X(Q);return}if(K){if(K.isMonitoringConnection=!0,A9(Z)){K.destroy({force:!0});return}Z[U6]=K,Z.emit(M9.Server.SERVER_HEARTBEAT_SUCCEEDED,new U9.ServerHeartbeatSucceededEvent(Z.address,x0.calculateDurationInMs($),K.hello)),J(void 0,K.hello)}})},iI=function(Z){return(J)=>{if(Z.s.state===y4){process.nextTick(J);return}x7(Z,y4);function $(){if(!A9(Z))x7(Z,_7);J()}Ci(Z,(X,Y)=>{if(X){if(Z[pJ].description.type===r1.ServerType.Unknown)return $()}if(Y&&Y.topologyVersion)e6.setTimeout(()=>{if(!A9(Z))Z[m8]?.wake()},0);$()})}},hi=function(Z){return{processId:Z.processId,counter:cI.Long.isLong(Z.counter)?Z.counter:cI.Long.fromNumber(Z.counter)}},tI=function(Z,J){const $=x0.now();J.cancellationToken=Z[k4];const X=J.heartbeatFrequencyMS;if(Z.closed)return;function Y(G){if(Z.closed){G?.destroy({force:!0});return}if(Z.connection==null)Z.connection=G;Z[j9]=x0.calculateDurationInMs($),Z[m8]=e6.setTimeout(()=>tI(Z,J),X)}const Q=Z.connection;if(Q==null){sI.connect(J,(G,q)=>{if(G){Z.connection=void 0,Z[j9]=0;return}Y(q)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":tQ.LEGACY_HELLO_COMMAND;Q.commandAsync(x0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{Z.connection?.destroy({force:!0}),Z.connection=void 0,Z[j9]=0})};Object.defineProperty(rI,"__esModule",{value:!0});rI.MonitorInterval=rI.RTTPinger=rI.Monitor=void 0;var e6=import.meta.require("timers"),cI=D1(),sI=aQ(),Ni=G9(),tQ=f1(),V9=h(),lI=C0(),x0=_(),r1=p0(),U9=wJ(),M9=oQ(),pJ=Symbol("server"),m8=Symbol("monitorId"),U6=Symbol("connection"),k4=Symbol("cancellationToken"),j9=Symbol("roundTripTime"),_7="idle",y4="monitoring",x7=x0.makeStateMachine({[r1.STATE_CLOSING]:[r1.STATE_CLOSING,_7,r1.STATE_CLOSED],[r1.STATE_CLOSED]:[r1.STATE_CLOSED,y4],[_7]:[_7,y4,r1.STATE_CLOSING],[y4]:[y4,_7,r1.STATE_CLOSING]}),Bi=new Set([r1.STATE_CLOSING,r1.STATE_CLOSED,y4]);class nI extends lI.TypedEventEmitter{get connection(){return this[U6]}constructor(Z,J){super();this[pJ]=Z,this[U6]=void 0,this[k4]=new lI.CancellationToken,this[k4].setMaxListeners(Infinity),this[m8]=void 0,this.s={state:r1.STATE_CLOSED},this.address=Z.description.address,this.options=Object.freeze({connectTimeoutMS:J.connectTimeoutMS??1e4,heartbeatFrequencyMS:J.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:J.minHeartbeatFrequencyMS??500});const $=this[k4],X=Object.assign({id:"<monitor>",generation:Z.pool.generation,connectionType:Ni.Connection,cancellationToken:$,hostAddress:Z.description.hostAddress},J,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});if(delete X.credentials,X.autoEncrypter)delete X.autoEncrypter;this.connectOptions=Object.freeze(X)}connect(){if(this.s.state!==r1.STATE_CLOSED)return;const Z=this.options.heartbeatFrequencyMS,J=this.options.minHeartbeatFrequencyMS;this[m8]=new cJ(iI(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:J,immediate:!0})}requestCheck(){if(Bi.has(this.s.state))return;this[m8]?.wake()}reset(){const Z=this[pJ].description.topologyVersion;if(A9(this)||Z==null)return;x7(this,r1.STATE_CLOSING),aI(this),x7(this,_7);const J=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[m8]=new cJ(iI(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:$})}close(){if(A9(this))return;x7(this,r1.STATE_CLOSING),aI(this),this.emit("close"),x7(this,r1.STATE_CLOSED)}}rI.Monitor=nI;class rQ{constructor(Z,J){this.connection=void 0,this[k4]=Z,this[j9]=0,this.closed=!1;const $=J.heartbeatFrequencyMS;this[m8]=e6.setTimeout(()=>tI(this,J),$)}get roundTripTime(){return this[j9]}close(){this.closed=!0,e6.clearTimeout(this[m8]),this.connection?.destroy({force:!0}),this.connection=void 0}}rI.RTTPinger=rQ;class cJ{constructor(Z,J={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)e6.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=x0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=Z,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=J.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=J.minHeartbeatFrequencyMS??500,J.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const J=x0.now()-this.lastExecutionEnded;if(J<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(J<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-J);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)e6.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const Z=x0.now(),J=Z-this.lastExecutionEnded;return{timerId:this.timerId!=null?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:Z,timeSinceLastCall:J}}_reschedule(Z){if(this.stopped)return;if(this.timerId)e6.clearTimeout(this.timerId);this.timerId=e6.setTimeout(this._executeAndReschedule,Z||this.heartbeatFrequencyMS)}}rI.MonitorInterval=cJ});var oQ=z((JE)=>{var gi=function(Z,J){if(Z===-1)return J;const $=0.2;return $*J+(1-$)*Z},eQ=function(Z,J){if(Z.loadBalanced)return;if(J instanceof A1.MongoNetworkError&&!(J instanceof A1.MongoNetworkTimeoutError))Z.monitor?.reset();Z.emit(P0.DESCRIPTION_RECEIVED,new $K.ServerDescription(Z.description.hostAddress,void 0,{error:J}))},bi=function(Z,J){if(J)return J.inTransaction()||"aggregate"in Z||"find"in Z||"getMore"in Z||"listCollections"in Z||"listIndexes"in Z;return!1},mi=function(Z,J){if(J.serviceId)return J.generation!==Z.serviceGenerations.get(J.serviceId.toHexString());return J.generation!==Z.generation},ui=function(Z,J){const $=J.topologyVersion,X=Z.description.topologyVersion;return $K.compareTopologyVersion(X,$)<0},ZK=function(Z,J){return Z&&Z.inTransaction()&&!JK.isTransactionCommand(J)},ZE=function(Z){return Z.s.options.retryWrites!==!1},di=function(Z,J,$,X,Y){const Q=X?.session;return function K(G,q){if(G==null&&q!=null)return Y(void 0,q);if(X!=null&&"noResponse"in X&&X.noResponse===!0)return Y(void 0,null);if(!G)return Y(new A1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof A1.MongoError))return Y(G);if(mi(Z.pool,J))return Y(G);if(G instanceof A1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(ZK(Q,$)&&!G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(A1.MongoErrorLabel.TransientTransactionError);if((ZE(Z.topology)||JK.isTransactionCommand($))&&lJ.supportsRetryableWrites(Z)&&!ZK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError)}else if((ZE(Z.topology)||JK.isTransactionCommand($))&&A1.needsRetryableWriteLabel(G,lJ.maxWireVersion(Z))&&!ZK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return Z.handleError(G,J),Y(G)}};Object.defineProperty(JE,"__esModule",{value:!0});JE.Server=void 0;var yi=import.meta.require("util"),ki=G9(),_i=pI(),xi=nQ(),u8=f1(),A1=h(),vi=C0(),JK=hY(),lJ=_(),W1=p0(),fi=eI(),$K=C5(),L9=lJ.makeStateMachine({[W1.STATE_CLOSED]:[W1.STATE_CLOSED,W1.STATE_CONNECTING],[W1.STATE_CONNECTING]:[W1.STATE_CONNECTING,W1.STATE_CLOSING,W1.STATE_CONNECTED,W1.STATE_CLOSED],[W1.STATE_CONNECTED]:[W1.STATE_CONNECTED,W1.STATE_CLOSING,W1.STATE_CLOSED],[W1.STATE_CLOSING]:[W1.STATE_CLOSING,W1.STATE_CLOSED]});class P0 extends vi.TypedEventEmitter{constructor(Z,J,$){super();this.commandAsync=yi.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:J.hostAddress,...$};this.topology=Z,this.pool=new _i.ConnectionPool(this,X),this.s={description:J,options:$,state:W1.STATE_CLOSED,operationCount:0};for(let Y of[...u8.CMAP_EVENTS,...u8.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(ki.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new fi.Monitor(this,this.s.options);for(let Y of u8.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>eQ(this,Y)),this.monitor.on(P0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(P0.DESCRIPTION_RECEIVED,new $K.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:gi(this.description.roundTripTime,Y.duration)})),this.s.state===W1.STATE_CONNECTING)L9(this,W1.STATE_CONNECTED),this.emit(P0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(Z){this.topology.clusterTime=Z}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter)return this.s.options.autoEncrypter;return}get loadBalanced(){return this.topology.description.type===W1.TopologyType.LoadBalanced}connect(){if(this.s.state!==W1.STATE_CLOSED)return;if(L9(this,W1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else L9(this,W1.STATE_CONNECTED),this.emit(P0.CONNECT,this)}destroy(Z,J){if(typeof Z==="function")J=Z,Z={force:!1};if(Z=Object.assign({},{force:!1},Z),this.s.state===W1.STATE_CLOSED){if(typeof J==="function")J();return}if(L9(this,W1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(Z,($)=>{if(L9(this,W1.STATE_CLOSED),this.emit("closed"),typeof J==="function")J($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(Z,J,$,X){if(X==null)throw new A1.MongoInvalidArgumentError("Callback must be provided");if(Z.db==null||typeof Z==="string")throw new A1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===W1.STATE_CLOSING||this.s.state===W1.STATE_CLOSED){X(new A1.MongoServerClosedError);return}const Y=Object.assign({},$,{wireProtocolCommand:!1});if(Y.omitReadPreference)delete Y.readPreference;const Q=Y.session,K=Q?.pinnedConnection;if(this.loadBalanced&&Q&&K==null&&bi(J,Q)){this.pool.checkOut((G,q)=>{if(G||q==null){if(X)return X(G);return}Q.pin(q),this.command(Z,J,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,q,F)=>{if(G||!q){if(this.decrementOperationCount(),!G)return F(new A1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof xi.PoolClearedError))this.handleError(G);return F(G)}q.command(Z,J,Y,di(this,q,J,Y,(W,H)=>{this.decrementOperationCount(),F(W,H)}))},X)}handleError(Z,J){if(!(Z instanceof A1.MongoError))return;if(Z.connectionGeneration&&Z.connectionGeneration<this.pool.generation)return;const X=Z instanceof A1.MongoNetworkError&&!(Z instanceof A1.MongoNetworkTimeoutError),Y=A1.isNetworkErrorBeforeHandshake(Z),Q=Z.hasErrorLabel(A1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool),eQ(this,Z);else if(J)this.pool.clear({serviceId:J.serviceId})}else if(A1.isSDAMUnrecoverableError(Z)){if(ui(this,Z)){const K=lJ.maxWireVersion(this)<=7||A1.isNodeShuttingDownError(Z);if(this.loadBalanced&&J&&K)this.pool.clear({serviceId:J.serviceId});if(!this.loadBalanced){if(K)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool);eQ(this,Z),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}P0.SERVER_HEARTBEAT_STARTED=u8.SERVER_HEARTBEAT_STARTED;P0.SERVER_HEARTBEAT_SUCCEEDED=u8.SERVER_HEARTBEAT_SUCCEEDED;P0.SERVER_HEARTBEAT_FAILED=u8.SERVER_HEARTBEAT_FAILED;P0.CONNECT=u8.CONNECT;P0.DESCRIPTION_RECEIVED=u8.DESCRIPTION_RECEIVED;P0.CLOSED=u8.CLOSED;P0.ENDED=u8.ENDED;JE.Server=P0});var QK=z((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.SrvPoller=YE.SrvPollingEvent=void 0;var pi=import.meta.require("dns"),XK=import.meta.require("timers"),ci=h(),li=C0(),XE=_();class YK{constructor(Z){this.srvRecords=Z}hostnames(){return new Set(this.srvRecords.map((Z)=>XE.HostAddress.fromSrvRecord(Z).toString()))}}YE.SrvPollingEvent=YK;class aJ extends li.TypedEventEmitter{constructor(Z){super();if(!Z||!Z.srvHost)throw new ci.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=Z.srvHost,this.srvMaxHosts=Z.srvMaxHosts??0,this.srvServiceName=Z.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1e4,this.haMode=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){if(!this._timeout)this.schedule()}stop(){if(this._timeout)XK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)XK.clearTimeout(this._timeout);this._timeout=XK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(Z){this.haMode=!1,this.schedule(),this.emit(aJ.SRV_RECORD_DISCOVERY,new YK(Z))}failure(){this.haMode=!0,this.schedule()}async _poll(){const Z=this.generation;let J;try{J=await pi.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(Z!==this.generation)return;const $=[];for(let X of J)if(XE.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}aJ.SRV_RECORD_DISCOVERY="srvRecordDiscovery";YE.SrvPoller=aJ});var AE=z((ME)=>{var zE=function(Z,J,$,X){$=$??{force:!1};for(let Y of D0.LOCAL_SERVER_EVENTS)Z.removeAllListeners(Y);Z.destroy($,()=>{J.emit(K1.SERVER_CLOSED,new Z4.ServerClosedEvent(J.s.id,Z.description.address));for(let Y of D0.SERVER_RELAY_EVENTS)Z.removeAllListeners(Y);if(typeof X==="function")X()})},ni=function(Z){if(Z?.directConnection)return p.TopologyType.Single;if(Z?.replicaSet)return p.TopologyType.ReplicaSetNoPrimary;if(Z?.loadBalanced)return p.TopologyType.LoadBalanced;return p.TopologyType.Unknown},VE=function(Z,J){Z.emit(K1.SERVER_OPENING,new Z4.ServerOpeningEvent(Z.s.id,J.address));const $=new qE.Server(Z,J,Z.s.options);for(let X of D0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>Z.emit(X,Y));return $.on(qE.Server.DESCRIPTION_RECEIVED,(X)=>Z.serverUpdateHandler(X)),$.connect(),$},WE=function(Z,J){if(J&&Z.s.servers.has(J.address)){const $=Z.s.servers.get(J.address);if($){if($.s.description=J,J.error instanceof A6.MongoError&&J.error.hasErrorLabel(A6.MongoErrorLabel.ResetPool)){const X=J.error.hasErrorLabel(A6.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(J.error==null){const X=Z.s.description.type;if(J.isDataBearing||J.type!==p.ServerType.Unknown&&X===p.TopologyType.Single)$.pool.ready()}}}for(let $ of Z.description.servers.values())if(!Z.s.servers.has($.address)){const X=VE(Z,$);Z.s.servers.set($.address,X)}for(let $ of Z.s.servers){const X=$[0];if(Z.description.hasServer(X))continue;if(!Z.s.servers.has(X))continue;const Y=Z.s.servers.get(X);if(Z.s.servers.delete(X),Y)zE(Y,Z)}},UE=function(Z,J){while(Z.length){const $=Z.shift();if(!$)continue;if($.timer)sJ.clearTimeout($.timer);if(!$[qK])$.callback(J)}},HE=function(Z){if(Z.s.state===p.STATE_CLOSED){UE(Z[j6],new A6.MongoTopologyClosedError);return}const J=Z.description.type===p.TopologyType.Sharded,$=Array.from(Z.description.servers.values()),X=Z[j6].length;for(let Y=0;Y<X;++Y){const Q=Z[j6].shift();if(!Q)continue;if(Q[qK])continue;let K;try{const F=Q.serverSelector;K=F?F(Z.description,$):$}catch(F){if(Q.timer)sJ.clearTimeout(Q.timer);Q.callback(F);continue}let G;if(K.length===0){Z[j6].push(Q);continue}else if(K.length===1)G=Z.s.servers.get(K[0].address);else{const F=M6.shuffle(K,2),W=Z.s.servers.get(F[0].address),H=Z.s.servers.get(F[1].address);G=W&&H&&W.s.operationCount<H.s.operationCount?W:H}if(!G){Q.callback(new A6.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",Z.description));return}const q=Q.transaction;if(J&&q&&q.isActive&&G)q.pinServer(G);if(Q.timer)sJ.clearTimeout(Q.timer);Q.callback(void 0,G)}if(Z[j6].length>0)for(let[,Y]of Z.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},ti=function(Z,J){const X=Z.servers.get(J.address)?.topologyVersion;return GK.compareTopologyVersion(X,J.topologyVersion)>0};Object.defineProperty(ME,"__esModule",{value:!0});ME.ServerCapabilities=ME.Topology=void 0;var sJ=import.meta.require("timers"),KE=import.meta.require("util"),GE=KQ(),D0=f1(),A6=h(),ii=C0(),w9=y1(),M6=_(),p=p0(),Z4=wJ(),qE=oQ(),GK=C5(),KK=A5(),iJ=QK(),FE=NY(),si=0,R9=M6.makeStateMachine({[p.STATE_CLOSED]:[p.STATE_CLOSED,p.STATE_CONNECTING],[p.STATE_CONNECTING]:[p.STATE_CONNECTING,p.STATE_CLOSING,p.STATE_CONNECTED,p.STATE_CLOSED],[p.STATE_CONNECTED]:[p.STATE_CONNECTED,p.STATE_CLOSING,p.STATE_CLOSED],[p.STATE_CLOSING]:[p.STATE_CLOSING,p.STATE_CLOSED]}),qK=Symbol("cancelled"),j6=Symbol("waitQueue");class K1 extends ii.TypedEventEmitter{constructor(Z,J,$){super();if(this.client=Z,this.selectServerAsync=KE.promisify((q,F,W)=>this.selectServer(q,F,W)),$=$??{hosts:[M6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(GE.DEFAULT_OPTIONS.entries()),...Object.fromEntries(GE.FEATURE_FLAGS.entries())},typeof J==="string")J=[M6.HostAddress.fromString(J)];else if(!Array.isArray(J))J=[J];const X=[];for(let q of J)if(typeof q==="string")X.push(M6.HostAddress.fromString(q));else if(q instanceof M6.HostAddress)X.push(q);else throw new A6.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(q)}`);const Y=ni($),Q=si++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:M6.shuffle(X,$.srvMaxHosts),G=new Map;for(let q of K)G.set(q.toString(),new GK.ServerDescription(q));if(this[j6]=new M6.List,this.s={id:Q,options:$,seedlist:X,state:p.STATE_CLOSED,description:new FE.TopologyDescription(Y,G,$.replicaSet,void 0,void 0,void 0,$),serverSelectionTimeoutMS:$.serverSelectionTimeoutMS,heartbeatFrequencyMS:$.heartbeatFrequencyMS,minHeartbeatFrequencyMS:$.minHeartbeatFrequencyMS,servers:new Map,credentials:$?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:(q)=>this.detectShardedTopology(q),detectSrvRecords:(q)=>this.detectSrvRecords(q)},$.srvHost&&!$.loadBalanced)this.s.srvPoller=$.srvPoller??new iJ.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(Z){const J=Z.previousDescription.type,$=Z.newDescription.type,X=J!==p.TopologyType.Sharded&&$===p.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(iJ.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(iJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(Z){const J=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(Z,this.s.options.srvMaxHosts),this.s.description===J)return;WE(this),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new FK(this.lastHello())}connect(Z,J){if(typeof Z==="function")J=Z,Z={};if(Z=Z??{},this.s.state===p.STATE_CONNECTED){if(typeof J==="function")J();return}R9(this,p.STATE_CONNECTING),this.emit(K1.TOPOLOGY_OPENING,new Z4.TopologyOpeningEvent(this.s.id)),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,new FE.TopologyDescription(p.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,VE(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new GK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>J?J(Q):this.emit(K1.ERROR,Q),Y=Z.readPreference??w9.ReadPreference.primary;this.selectServer(KK.readPreferenceServerSelector(Y),Z,(Q,K)=>{if(Q)return this.close({force:!1},()=>X(Q));if(this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]!==!0&&K&&this.s.credentials){K.command(M6.ns("admin.$cmd"),{ping:1},{},(q)=>{if(q)return X(q);R9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)});return}R9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)})}close(Z,J){if(Z=Z??{force:!1},this.s.state===p.STATE_CLOSED||this.s.state===p.STATE_CLOSING)return J?.();const $=Array.from(this.s.servers.values(),(X)=>{return KE.promisify(zE)(X,this,{force:!!Z?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),R9(this,p.STATE_CLOSING),UE(this[j6],new A6.MongoTopologyClosedError),p.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(iJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),R9(this,p.STATE_CLOSED),this.emit(K1.TOPOLOGY_CLOSED,new Z4.TopologyClosedEvent(this.s.id))}).finally(()=>J?.())}selectServer(Z,J,$){let X;if(typeof Z!=="function")if(typeof Z==="string")X=KK.readPreferenceServerSelector(w9.ReadPreference.fromString(Z));else{let F;if(Z instanceof w9.ReadPreference)F=Z;else w9.ReadPreference.translate(J),F=J.readPreference||w9.ReadPreference.primary;X=KK.readPreferenceServerSelector(F)}else X=Z;J=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},J);const Y=this.description.type===p.TopologyType.Sharded,Q=J.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$},q=J.serverSelectionTimeoutMS;if(q)G.timer=sJ.setTimeout(()=>{G[qK]=!0,G.timer=void 0;const F=new A6.MongoServerSelectionError(`Server selection timed out after ${q} ms`,this.description);G.callback(F)},q);this[j6].push(G),HE(this)}serverUpdateHandler(Z){if(!this.s.description.hasServer(Z.address))return;if(ti(this.s.description,Z))return;const J=this.s.description,$=this.s.description.servers.get(Z.address);if(!$)return;const X=Z.$clusterTime;if(X)p._advanceClusterTime(this,X);const Y=$&&$.equals(Z);if(this.s.description=this.s.description.update(Z),this.s.description.compatibilityError){this.emit(K1.ERROR,new A6.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(Z.address);if(Q)this.emit(K1.SERVER_DESCRIPTION_CHANGED,new Z4.ServerDescriptionChangedEvent(this.s.id,Z.address,$,Q))}if(WE(this,Z),this[j6].length>0)HE(this);if(!Y)this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}auth(Z,J){if(typeof Z==="function")J=Z,Z=void 0;if(typeof J==="function")J(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===p.STATE_CONNECTED}isDestroyed(){return this.s.state===p.STATE_CLOSED}lastHello(){const Z=Array.from(this.description.servers.values());if(Z.length===0)return{};return Z.filter((X)=>X.type!==p.ServerType.Unknown)[0]||{maxWireVersion:this.description.commonWireVersion}}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(Z){this.s.clusterTime=Z}}K1.SERVER_OPENING=D0.SERVER_OPENING;K1.SERVER_CLOSED=D0.SERVER_CLOSED;K1.SERVER_DESCRIPTION_CHANGED=D0.SERVER_DESCRIPTION_CHANGED;K1.TOPOLOGY_OPENING=D0.TOPOLOGY_OPENING;K1.TOPOLOGY_CLOSED=D0.TOPOLOGY_CLOSED;K1.TOPOLOGY_DESCRIPTION_CHANGED=D0.TOPOLOGY_DESCRIPTION_CHANGED;K1.ERROR=D0.ERROR;K1.OPEN=D0.OPEN;K1.CONNECT=D0.CONNECT;K1.CLOSE=D0.CLOSE;K1.TIMEOUT=D0.TIMEOUT;ME.Topology=K1;class FK{constructor(Z){this.minWireVersion=Z.minWireVersion||0,this.maxWireVersion=Z.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}ME.ServerCapabilities=FK});var I7=z((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.MongoClient=EE.ServerApiVersion=void 0;var LE=import.meta.require("util"),oi=D1(),ei=H7(),Zs=JJ(),Js=k8(),wE=KQ(),$s=f1(),Xs=sZ(),RE=h(),Ys=e3(),Qs=C0(),PE=y1(),Ks=A5(),DE=AE(),TE=S5(),WK=_();EE.ServerApiVersion=Object.freeze({v1:"1"});var o1=Symbol("options");class IE extends Qs.TypedEventEmitter{constructor(Z,J){super();this[o1]=wE.parseOptions(Z,this,J),this.mongoLogger=new Ys.MongoLogger(this[o1].mongoLoggerOptions);const $=this;this.s={url:Z,bsonOptions:oi.resolveBSONOptions(this[o1]),namespace:WK.ns("admin"),hasBeenClosed:!1,sessionPool:new TE.ServerSessionPool(this),activeSessions:new Set,get options(){return $[o1]},get readConcern(){return $[o1].readConcern},get writeConcern(){return $[o1].writeConcern},get readPreference(){return $[o1].readPreference},get isMongoClient(){return!0}}}get options(){return Object.freeze({...this[o1]})}get serverApi(){return this[o1].serverApi&&Object.freeze({...this[o1].serverApi})}get monitorCommands(){return this[o1].monitorCommands}set monitorCommands(Z){this[o1].monitorCommands=Z}get autoEncrypter(){return this[o1].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const Z=this[o1];if(typeof Z.srvHost==="string"){const $=await wE.resolveSRVRecord(Z);for(let[X,Y]of $.entries())Z.hosts[X]=Y}if(Z.credentials?.mechanism===Js.AuthMechanism.MONGODB_OIDC){const $=Z.credentials?.mechanismProperties?.ALLOWED_HOSTS||Zs.DEFAULT_ALLOWED_HOSTS;if(!Z.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of Z.hosts)if(!WK.hostMatchesWildcards(Y.toHostPort().host,$))throw new RE.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new DE.Topology(this,Z.hosts,Z),this.topology.once(DE.Topology.OPEN,()=>this.emit("open",this));for(let $ of $s.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const J=async()=>{try{await LE.promisify(($)=>this.topology?.connect(Z,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await LE.promisify((X)=>this.autoEncrypter?.init(X))(),await J(),await Z.encrypter.connectInternalClient();else await J();return this}async close(Z=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const J=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(J),this.topology==null)return;const $=Ks.readPreferenceServerSelector(PE.ReadPreference.primaryPreferred),X=this.topology.description,Y=Array.from(X.servers.values());if($(X,Y).length!==0){const G=Array.from(this.s.sessionPool.sessions,({id:q})=>q);if(G.length!==0)await this.db("admin").command({endSessions:G},{readPreference:PE.ReadPreference.primaryPreferred,noResponse:!0}).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,q)=>{K.close({force:Z},(F)=>{if(F)return q(F);const{encrypter:W}=this[o1];if(W)return W.close(this,Z,(H)=>{if(H)return q(H);G()});G()})})}db(Z,J){if(J=J??{},!Z)Z=this.options.dbName;const $=Object.assign({},this[o1],J);return new Xs.Db(this,Z,$)}static async connect(Z,J){return new this(Z,J).connect()}startSession(Z){const J=new TE.ClientSession(this,this.s.sessionPool,{explicit:!0,...Z},this[o1]);return this.s.activeSessions.add(J),J.once("ended",()=>{this.s.activeSessions.delete(J)}),J}async withSession(Z,J){const $={owner:Symbol(),...typeof Z==="object"?Z:{}},X=typeof Z==="function"?Z:J;if(X==null)throw new RE.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new ei.ChangeStream(this,Z,WK.resolveOptions(this,J))}}EE.MongoClient=IE});var H7=z((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.ChangeStream=void 0;var qs=T4(),P8=f1(),Fs=w3(),Ws=sZ(),R8=h(),Hs=I7(),zs=C0(),HK=_(),v7=Symbol("cursorStream"),f7=Symbol("closed"),P9=Symbol("mode"),Vs=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],_4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},Us=[P8.RESUME_TOKEN_CHANGED,P8.END,P8.CLOSE],Ms="A change stream document has been received that lacks a resume token (_id).",nJ="ChangeStream is closed";class T0 extends zs.TypedEventEmitter{constructor(Z,J=[],$={}){super();if(this.pipeline=J,this.options={...$},delete this.options.writeConcern,Z instanceof qs.Collection)this.type=_4.COLLECTION;else if(Z instanceof Ws.Db)this.type=_4.DATABASE;else if(Z instanceof Hs.MongoClient)this.type=_4.CLUSTER;else throw new R8.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=Z,this.namespace=Z.s.namespace,!this.options.readPreference&&Z.readPreference)this.options.readPreference=Z.readPreference;this.cursor=this._createChangeStreamCursor($),this[f7]=!1,this[P9]=!1,this.on("newListener",(X)=>{if(X==="change"&&this.cursor&&this.listenerCount("change")===0)this._streamEvents(this.cursor)}),this.on("removeListener",(X)=>{if(X==="change"&&this.listenerCount("change")===0&&this.cursor)this[v7]?.removeAllListeners("data")})}get cursorStream(){return this[v7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async next(){this._setIsIterator();while(!0)try{const Z=await this.cursor.next();return this._processChange(Z??null)}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[f7]||this.cursor.closed}async close(){this[f7]=!0;const Z=this.cursor;try{await Z.close()}finally{this._endStream()}}stream(Z){if(this.closed)throw new R8.MongoChangeStreamError(nJ);return this.streamOptions=Z,this.cursor.stream(Z)}_setIsEmitter(){if(this[P9]==="iterator")throw new R8.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[P9]="emitter"}_setIsIterator(){if(this[P9]==="emitter")throw new R8.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[P9]="iterator"}_createChangeStreamCursor(Z){const J=HK.filterOptions(Z,Vs);if(this.type===_4.CLUSTER)J.allChangesForCluster=!0;const $=[{$changeStream:J},...this.pipeline],X=this.type===_4.CLUSTER?this.parent:this.type===_4.DATABASE?this.parent.client:this.type===_4.COLLECTION?this.parent.client:null;if(X==null)throw new R8.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new Fs.ChangeStreamCursor(X,this.namespace,$,Z);for(let Q of Us)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(T0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(Z){this.emit(T0.ERROR,Z),this.close().catch(()=>null)}_streamEvents(Z){this._setIsEmitter();const J=this[v7]??Z.stream();this[v7]=J,J.on("data",($)=>{try{const X=this._processChange($);this.emit(T0.CHANGE,X)}catch(X){this.emit(T0.ERROR,X)}}),J.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const Z=this[v7];if(Z)["data","close","end","error"].forEach((J)=>Z.removeAllListeners(J)),Z.destroy();this[v7]=void 0}_processChange(Z){if(this[f7])throw new R8.MongoAPIError(nJ);if(Z==null)throw new R8.MongoRuntimeError(nJ);if(Z&&!Z._id)throw new R8.MongoChangeStreamError(Ms);return this.cursor.cacheResumeToken(Z._id),this.options.startAtOperationTime=void 0,Z}_processErrorStreamMode(Z){if(this[f7])return;if(R8.isResumableError(Z,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),HK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(Z);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(Z)}async _processErrorIteratorMode(Z){if(this[f7])throw new R8.MongoAPIError(nJ);if(!R8.isResumableError(Z,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw Z}await this.cursor.close().catch(()=>null);const J=HK.getTopology(this.parent);try{await J.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),Z}}}T0.RESPONSE=P8.RESPONSE;T0.MORE=P8.MORE;T0.INIT=P8.INIT;T0.CLOSE=P8.CLOSE;T0.CHANGE=P8.CHANGE;T0.END=P8.END;T0.ERROR=P8.ERROR;T0.RESUME_TOKEN_CHANGED=P8.RESUME_TOKEN_CHANGED;BE.ChangeStream=T0});var zK=z((OE)=>{var hE=function(Z){if(Z.s.init)throw new v0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},As=function(Z){if(Z.destroyed)return;if(!Z.s.cursor)return;if(!Z.s.file)return;const J=({error:$,doc:X})=>{if(Z.destroyed)return;if($){Z.emit(E1.ERROR,$);return}if(!X){Z.push(null),Z.s.cursor?.close().then(()=>{Z.emit(E1.CLOSE)},(V)=>{Z.emit(E1.ERROR,V)});return}if(!Z.s.file)return;const Y=Z.s.file.length-Z.s.bytesRead,Q=Z.s.expected++,K=Math.min(Z.s.file.chunkSize,Y);if(X.n>Q)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected: ${Q}`));let G=Buffer.isBuffer(X.data)?X.data:X.data.buffer;if(G.byteLength!==K){if(Y<=0)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${Z.s.file.length} bytes but already read ${Z.s.bytesRead} bytes`));return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(Z.s.bytesRead+=G.byteLength,G.byteLength===0)return Z.push(null);let q=null,F=null;if(Z.s.bytesToSkip!=null)q=Z.s.bytesToSkip,Z.s.bytesToSkip=0;const W=Q===Z.s.expectedEnd-1,H=Z.s.options.end-Z.s.bytesToSkip;if(W&&Z.s.bytesToTrim!=null)F=Z.s.file.chunkSize-Z.s.bytesToTrim;else if(Z.s.options.end&&H<X.data.byteLength)F=H;if(q!=null||F!=null)G=G.slice(q||0,F||G.byteLength);Z.push(G);return};Z.s.cursor.next().then(($)=>J({error:null,doc:$}),($)=>J({error:$,doc:null}))},Ls=function(Z){const J={};if(Z.s.readPreference)J.readPreference=Z.s.readPreference;if(Z.s.options&&Z.s.options.sort)J.sort=Z.s.options.sort;if(Z.s.options&&Z.s.options.skip)J.skip=Z.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return Z.emit(E1.ERROR,X);if(!Y){const G=`FileNotFound: file ${Z.s.filter._id?Z.s.filter._id.toString():Z.s.filter.filename} was not found`,q=new v0.MongoRuntimeError(G);return q.code="ENOENT",Z.emit(E1.ERROR,q)}if(Y.length<=0){Z.push(null);return}if(Z.destroyed){Z.emit(E1.CLOSE);return}try{Z.s.bytesToSkip=Rs(Z,Y,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}const Q={files_id:Y._id};if(Z.s.options&&Z.s.options.start!=null){const K=Math.floor(Z.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(Z.s.cursor=Z.s.chunks.find(Q).sort({n:1}),Z.s.readPreference)Z.s.cursor.withReadPreference(Z.s.readPreference);Z.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),Z.s.file=Y;try{Z.s.bytesToTrim=Ps(Z,Y,Z.s.cursor,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}Z.emit(E1.FILE,Y);return};Z.s.files.findOne(Z.s.filter,J).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},ws=function(Z,J){if(Z.s.file)return J();if(!Z.s.init)Ls(Z),Z.s.init=!0;Z.once("file",()=>{J()})},Rs=function(Z,J,$){if($&&$.start!=null){if($.start>J.length)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${J.length})`);if($.start<0)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be negative`);if($.end!=null&&$.end<$.start)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be greater than stream end (${$.end})`);return Z.s.bytesRead=Math.floor($.start/J.chunkSize)*J.chunkSize,Z.s.expected=Math.floor($.start/J.chunkSize),$.start-Z.s.bytesRead}throw new v0.MongoInvalidArgumentError("Start option must be defined")},Ps=function(Z,J,$,X){if(X&&X.end!=null){if(X.end>J.length)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${J.length})`);if(X.start==null||X.start<0)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be negative`);const Y=X.start!=null?Math.floor(X.start/J.chunkSize):0;return $.limit(Math.ceil(X.end/J.chunkSize)-Y),Z.s.expectedEnd=Math.ceil(X.end/J.chunkSize),Math.ceil(X.end/J.chunkSize)*J.chunkSize-X.end}throw new v0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(OE,"__esModule",{value:!0});OE.GridFSBucketReadStream=void 0;var js=import.meta.require("stream"),v0=h();class E1 extends js.Readable{constructor(Z,J,$,X,Y){super();this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:Z,expected:0,files:J,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;ws(this,()=>As(this))}start(Z=0){return hE(this),this.s.options.start=Z,this}end(Z=0){return hE(this),this.s.options.end=Z,this}async abort(){if(this.push(null),this.destroyed=!0,this.s.cursor)try{await this.s.cursor.close()}finally{this.emit(E1.CLOSE)}else if(!this.s.init)this.emit(E1.CLOSE)}}E1.ERROR="error";E1.FILE="file";E1.DATA="data";E1.END="end";E1.CLOSE="close";OE.GridFSBucketReadStream=E1});var MK=z((vE)=>{var UK=function(Z,J,$){if(Z.state.errored)return;if(Z.state.errored=!0,$)return $(J);Z.emit(L6.ERROR,J)},xE=function(Z,J,$){return{_id:new _E.ObjectId,files_id:Z,n:J,data:$}};async function Is(Z){const J={files_id:1,n:1};let $;try{$=await Z.chunks.listIndexes().toArray()}catch(Y){if(Y instanceof x4.MongoError&&Y.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)$=[];else throw Y}if(!$.find((Y)=>{if(Object.keys(Y.key).length===2&&Y.key.files_id===1&&Y.key.n===1)return!0;return!1}))await Z.chunks.createIndex(J,{...Z.writeConcern,background:!0,unique:!0})}var VK=function(Z,J){if(Z.done)return!0;if(Z.state.streamEnd&&Z.state.outstandingRequests===0&&!Z.state.errored){Z.done=!0;const $=Ns(Z.id,Z.length,Z.chunkSizeBytes,Z.filename,Z.options.contentType,Z.options.aliases,Z.options.metadata);if(D9(Z,J))return!1;return Z.files.insertOne($,{writeConcern:Z.writeConcern}).then(()=>{Z.emit(L6.FINISH,$),Z.emit(L6.CLOSE)},(X)=>{return UK(Z,X,J)}),!0}return!1};async function Es(Z){if(await Z.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await Z.files.listIndexes().toArray()}catch(Q){if(Q instanceof x4.MongoError&&Q.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)X=[];else throw Q}if(!X.find((Q)=>{if(Object.keys(Q.key).length===2&&Q.key.filename===1&&Q.key.uploadDate===1)return!0;return!1}))await Z.files.createIndex($,{background:!1});await Is(Z)}var Ns=function(Z,J,$,X,Y,Q,K){const G={_id:Z,length:J,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},Bs=function(Z,J,$,X){if(D9(Z,X))return!1;const Y=Buffer.isBuffer(J)?J:Buffer.from(J,$);if(Z.length+=Y.length,Z.pos+Y.length<Z.chunkSizeBytes)return Y.copy(Z.bufToStore,Z.pos),Z.pos+=Y.length,X&&X(),!0;let Q=Y.length,K=Z.chunkSizeBytes-Z.pos,G=Math.min(K,Y.length),q=0;while(Q>0){const F=Y.length-Q;Y.copy(Z.bufToStore,Z.pos,F,F+G),Z.pos+=G,K-=G;let W;if(K===0){if(W=xE(Z.id,Z.n,Buffer.from(Z.bufToStore)),++Z.state.outstandingRequests,++q,D9(Z,X))return!1;Z.chunks.insertOne(W,{writeConcern:Z.writeConcern}).then(()=>{if(--Z.state.outstandingRequests,--q,!q)Z.emit("drain",W),X&&X(),VK(Z)},(H)=>{return UK(Z,H)}),K=Z.chunkSizeBytes,Z.pos=0,++Z.n}Q-=G,G=Math.min(K,Q)}return!1},yE=function(Z,J){if(Z.bucket.s.checkedIndexes)return J(!1);return Z.bucket.once("index",()=>{J(!0)}),!0},kE=function(Z,J){if(Z.pos===0)return VK(Z,J);++Z.state.outstandingRequests;const $=Buffer.alloc(Z.pos);Z.bufToStore.copy($,0,0,Z.pos);const X=xE(Z.id,Z.n,$);if(D9(Z,J))return!1;return Z.chunks.insertOne(X,{writeConcern:Z.writeConcern}).then(()=>{--Z.state.outstandingRequests,VK(Z)},(Y)=>{return UK(Z,Y)}),!0},D9=function(Z,J){if(Z.state.aborted){if(typeof J==="function")J(new x4.MongoAPIError("Stream has been aborted"));return!0}return!1};Object.defineProperty(vE,"__esModule",{value:!0});vE.GridFSBucketWriteStream=void 0;var Ds=import.meta.require("stream"),_E=D1(),x4=h(),Ts=A0();class L6 extends Ds.Writable{constructor(Z,J,$){super();if($=$??{},this.bucket=Z,this.chunks=Z.s._chunksCollection,this.filename=J,this.files=Z.s._filesCollection,this.options=$,this.writeConcern=Ts.WriteConcern.fromOptions($)||Z.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new _E.ObjectId,this.chunkSizeBytes=$.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},!this.bucket.s.calledOpenUploadStream)this.bucket.s.calledOpenUploadStream=!0,Es(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}write(Z,J,$){const X=typeof J==="function"?void 0:J;return $=typeof J==="function"?J:$,yE(this,()=>Bs(this,Z,X,$))}async abort(){if(this.state.streamEnd)throw new x4.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new x4.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}end(Z,J,$){const X=typeof Z==="function"?void 0:Z,Y=typeof J==="function"?void 0:J;if($=typeof Z==="function"?Z:typeof J==="function"?J:$,this.state.streamEnd||D9(this,$))return this;if(this.state.streamEnd=!0,$)this.once(L6.FINISH,(Q)=>{if($)$(void 0,Q)});if(!X)return yE(this,()=>!!kE(this)),this;return this.write(X,Y,()=>{kE(this)}),this}}L6.CLOSE="close";L6.ERROR="error";L6.FINISH="finish";vE.GridFSBucketWriteStream=L6});var pE=z((uE)=>{Object.defineProperty(uE,"__esModule",{value:!0});uE.GridFSBucket=void 0;var gE=h(),Cs=C0(),hs=A0(),bE=zK(),mE=MK(),Os={bucketName:"fs",chunkSizeBytes:261120};class jK extends Cs.TypedEventEmitter{constructor(Z,J){super();this.setMaxListeners(0);const $={...Os,...J,writeConcern:hs.WriteConcern.fromOptions(J)};this.s={db:Z,options:$,_chunksCollection:Z.collection($.bucketName+".chunks"),_filesCollection:Z.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(Z,J){return new mE.GridFSBucketWriteStream(this,Z,J)}openUploadStreamWithId(Z,J,$){return new mE.GridFSBucketWriteStream(this,J,{...$,id:Z})}openDownloadStream(Z,J){return new bE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:Z},J)}async delete(Z){const{deletedCount:J}=await this.s._filesCollection.deleteOne({_id:Z});if(await this.s._chunksCollection.deleteMany({files_id:Z}),J===0)throw new gE.MongoRuntimeError(`File not found for id ${Z}`)}find(Z={},J={}){return this.s._filesCollection.find(Z,J)}openDownloadStreamByName(Z,J){let $={uploadDate:-1},X=void 0;if(J&&J.revision!=null)if(J.revision>=0)$={uploadDate:1},X=J.revision;else X=-J.revision-1;return new bE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:Z},{...J,sort:$,skip:X})}async rename(Z,J){const $={_id:Z},X={$set:{filename:J}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new gE.MongoRuntimeError(`File with id ${Z} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}jK.INDEX="index";uE.GridFSBucket=jK});var o5=z((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.AbstractCursor=P.MongoWriteConcernError=P.MongoUnexpectedServerResponseError=P.MongoTransactionError=P.MongoTopologyClosedError=P.MongoTailableCursorError=P.MongoSystemError=P.MongoServerSelectionError=P.MongoServerError=P.MongoServerClosedError=P.MongoRuntimeError=P.MongoParseError=P.MongoNotConnectedError=P.MongoNetworkTimeoutError=P.MongoNetworkError=P.MongoMissingDependencyError=P.MongoMissingCredentialsError=P.MongoKerberosError=P.MongoInvalidArgumentError=P.MongoGridFSStreamError=P.MongoGridFSChunkError=P.MongoExpiredSessionError=P.MongoError=P.MongoDriverError=P.MongoDecompressionError=P.MongoCursorInUseError=P.MongoCursorExhaustedError=P.MongoCompatibilityError=P.MongoChangeStreamError=P.MongoBatchReExecutionError=P.MongoAzureError=P.MongoAWSError=P.MongoAPIError=P.ChangeStreamCursor=P.MongoBulkWriteError=P.Timestamp=P.ObjectId=P.MinKey=P.MaxKey=P.Long=P.Int32=P.Double=P.Decimal128=P.DBRef=P.Code=P.BSONType=P.BSONSymbol=P.BSONRegExp=P.Binary=P.BSON=void 0;P.ServerClosedEvent=P.ConnectionReadyEvent=P.ConnectionPoolReadyEvent=P.ConnectionPoolMonitoringEvent=P.ConnectionPoolCreatedEvent=P.ConnectionPoolClosedEvent=P.ConnectionPoolClearedEvent=P.ConnectionCreatedEvent=P.ConnectionClosedEvent=P.ConnectionCheckOutStartedEvent=P.ConnectionCheckOutFailedEvent=P.ConnectionCheckedOutEvent=P.ConnectionCheckedInEvent=P.CommandSucceededEvent=P.CommandStartedEvent=P.CommandFailedEvent=P.WriteConcern=P.ReadPreference=P.ReadConcern=P.TopologyType=P.ServerType=P.ReadPreferenceMode=P.ReadConcernLevel=P.ProfilingLevel=P.ReturnDocument=P.ServerApiVersion=P.ExplainVerbosity=P.MongoErrorLabel=P.AutoEncryptionLoggerLevel=P.CURSOR_FLAGS=P.Compressor=P.AuthMechanism=P.GSSAPICanonicalizationValue=P.BatchType=P.UnorderedBulkOperation=P.OrderedBulkOperation=P.MongoClient=P.ListIndexesCursor=P.ListCollectionsCursor=P.GridFSBucketWriteStream=P.GridFSBucketReadStream=P.GridFSBucket=P.FindCursor=P.Db=P.Collection=P.ClientSession=P.ChangeStream=P.CancellationToken=P.AggregationCursor=P.Admin=void 0;P.SrvPollingEvent=P.TopologyOpeningEvent=P.TopologyDescriptionChangedEvent=P.TopologyClosedEvent=P.ServerOpeningEvent=P.ServerHeartbeatSucceededEvent=P.ServerHeartbeatStartedEvent=P.ServerHeartbeatFailedEvent=P.ServerDescriptionChangedEvent=void 0;var Ss=sX();Object.defineProperty(P,"Admin",{enumerable:!0,get:function(){return Ss.Admin}});var ys=MY();Object.defineProperty(P,"OrderedBulkOperation",{enumerable:!0,get:function(){return ys.OrderedBulkOperation}});var ks=jY();Object.defineProperty(P,"UnorderedBulkOperation",{enumerable:!0,get:function(){return ks.UnorderedBulkOperation}});var _s=H7();Object.defineProperty(P,"ChangeStream",{enumerable:!0,get:function(){return _s.ChangeStream}});var xs=T4();Object.defineProperty(P,"Collection",{enumerable:!0,get:function(){return xs.Collection}});var vs=Q6();Object.defineProperty(P,"AbstractCursor",{enumerable:!0,get:function(){return vs.AbstractCursor}});var fs=v5();Object.defineProperty(P,"AggregationCursor",{enumerable:!0,get:function(){return fs.AggregationCursor}});var gs=iY();Object.defineProperty(P,"FindCursor",{enumerable:!0,get:function(){return gs.FindCursor}});var bs=D3();Object.defineProperty(P,"ListCollectionsCursor",{enumerable:!0,get:function(){return bs.ListCollectionsCursor}});var ms=$3();Object.defineProperty(P,"ListIndexesCursor",{enumerable:!0,get:function(){return ms.ListIndexesCursor}});var us=sZ();Object.defineProperty(P,"Db",{enumerable:!0,get:function(){return us.Db}});var ds=pE();Object.defineProperty(P,"GridFSBucket",{enumerable:!0,get:function(){return ds.GridFSBucket}});var ps=zK();Object.defineProperty(P,"GridFSBucketReadStream",{enumerable:!0,get:function(){return ps.GridFSBucketReadStream}});var cs=MK();Object.defineProperty(P,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return cs.GridFSBucketWriteStream}});var ls=I7();Object.defineProperty(P,"MongoClient",{enumerable:!0,get:function(){return ls.MongoClient}});var as=C0();Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return as.CancellationToken}});var is=S5();Object.defineProperty(P,"ClientSession",{enumerable:!0,get:function(){return is.ClientSession}});var ss=D1();Object.defineProperty(P,"BSON",{enumerable:!0,get:function(){return ss.BSON}});var I0=D1();Object.defineProperty(P,"Binary",{enumerable:!0,get:function(){return I0.Binary}});Object.defineProperty(P,"BSONRegExp",{enumerable:!0,get:function(){return I0.BSONRegExp}});Object.defineProperty(P,"BSONSymbol",{enumerable:!0,get:function(){return I0.BSONSymbol}});Object.defineProperty(P,"BSONType",{enumerable:!0,get:function(){return I0.BSONType}});Object.defineProperty(P,"Code",{enumerable:!0,get:function(){return I0.Code}});Object.defineProperty(P,"DBRef",{enumerable:!0,get:function(){return I0.DBRef}});Object.defineProperty(P,"Decimal128",{enumerable:!0,get:function(){return I0.Decimal128}});Object.defineProperty(P,"Double",{enumerable:!0,get:function(){return I0.Double}});Object.defineProperty(P,"Int32",{enumerable:!0,get:function(){return I0.Int32}});Object.defineProperty(P,"Long",{enumerable:!0,get:function(){return I0.Long}});Object.defineProperty(P,"MaxKey",{enumerable:!0,get:function(){return I0.MaxKey}});Object.defineProperty(P,"MinKey",{enumerable:!0,get:function(){return I0.MinKey}});Object.defineProperty(P,"ObjectId",{enumerable:!0,get:function(){return I0.ObjectId}});Object.defineProperty(P,"Timestamp",{enumerable:!0,get:function(){return I0.Timestamp}});var ns=N5();Object.defineProperty(P,"MongoBulkWriteError",{enumerable:!0,get:function(){return ns.MongoBulkWriteError}});var ts=w3();Object.defineProperty(P,"ChangeStreamCursor",{enumerable:!0,get:function(){return ts.ChangeStreamCursor}});var Z1=h();Object.defineProperty(P,"MongoAPIError",{enumerable:!0,get:function(){return Z1.MongoAPIError}});Object.defineProperty(P,"MongoAWSError",{enumerable:!0,get:function(){return Z1.MongoAWSError}});Object.defineProperty(P,"MongoAzureError",{enumerable:!0,get:function(){return Z1.MongoAzureError}});Object.defineProperty(P,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return Z1.MongoBatchReExecutionError}});Object.defineProperty(P,"MongoChangeStreamError",{enumerable:!0,get:function(){return Z1.MongoChangeStreamError}});Object.defineProperty(P,"MongoCompatibilityError",{enumerable:!0,get:function(){return Z1.MongoCompatibilityError}});Object.defineProperty(P,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return Z1.MongoCursorExhaustedError}});Object.defineProperty(P,"MongoCursorInUseError",{enumerable:!0,get:function(){return Z1.MongoCursorInUseError}});Object.defineProperty(P,"MongoDecompressionError",{enumerable:!0,get:function(){return Z1.MongoDecompressionError}});Object.defineProperty(P,"MongoDriverError",{enumerable:!0,get:function(){return Z1.MongoDriverError}});Object.defineProperty(P,"MongoError",{enumerable:!0,get:function(){return Z1.MongoError}});Object.defineProperty(P,"MongoExpiredSessionError",{enumerable:!0,get:function(){return Z1.MongoExpiredSessionError}});Object.defineProperty(P,"MongoGridFSChunkError",{enumerable:!0,get:function(){return Z1.MongoGridFSChunkError}});Object.defineProperty(P,"MongoGridFSStreamError",{enumerable:!0,get:function(){return Z1.MongoGridFSStreamError}});Object.defineProperty(P,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return Z1.MongoInvalidArgumentError}});Object.defineProperty(P,"MongoKerberosError",{enumerable:!0,get:function(){return Z1.MongoKerberosError}});Object.defineProperty(P,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return Z1.MongoMissingCredentialsError}});Object.defineProperty(P,"MongoMissingDependencyError",{enumerable:!0,get:function(){return Z1.MongoMissingDependencyError}});Object.defineProperty(P,"MongoNetworkError",{enumerable:!0,get:function(){return Z1.MongoNetworkError}});Object.defineProperty(P,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return Z1.MongoNetworkTimeoutError}});Object.defineProperty(P,"MongoNotConnectedError",{enumerable:!0,get:function(){return Z1.MongoNotConnectedError}});Object.defineProperty(P,"MongoParseError",{enumerable:!0,get:function(){return Z1.MongoParseError}});Object.defineProperty(P,"MongoRuntimeError",{enumerable:!0,get:function(){return Z1.MongoRuntimeError}});Object.defineProperty(P,"MongoServerClosedError",{enumerable:!0,get:function(){return Z1.MongoServerClosedError}});Object.defineProperty(P,"MongoServerError",{enumerable:!0,get:function(){return Z1.MongoServerError}});Object.defineProperty(P,"MongoServerSelectionError",{enumerable:!0,get:function(){return Z1.MongoServerSelectionError}});Object.defineProperty(P,"MongoSystemError",{enumerable:!0,get:function(){return Z1.MongoSystemError}});Object.defineProperty(P,"MongoTailableCursorError",{enumerable:!0,get:function(){return Z1.MongoTailableCursorError}});Object.defineProperty(P,"MongoTopologyClosedError",{enumerable:!0,get:function(){return Z1.MongoTopologyClosedError}});Object.defineProperty(P,"MongoTransactionError",{enumerable:!0,get:function(){return Z1.MongoTransactionError}});Object.defineProperty(P,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return Z1.MongoUnexpectedServerResponseError}});Object.defineProperty(P,"MongoWriteConcernError",{enumerable:!0,get:function(){return Z1.MongoWriteConcernError}});var rs=N5();Object.defineProperty(P,"BatchType",{enumerable:!0,get:function(){return rs.BatchType}});var os=eZ();Object.defineProperty(P,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return os.GSSAPICanonicalizationValue}});var es=k8();Object.defineProperty(P,"AuthMechanism",{enumerable:!0,get:function(){return es.AuthMechanism}});var Zn=jJ();Object.defineProperty(P,"Compressor",{enumerable:!0,get:function(){return Zn.Compressor}});var Jn=Q6();Object.defineProperty(P,"CURSOR_FLAGS",{enumerable:!0,get:function(){return Jn.CURSOR_FLAGS}});var $n=j7();Object.defineProperty(P,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return $n.AutoEncryptionLoggerLevel}});var Xn=h();Object.defineProperty(P,"MongoErrorLabel",{enumerable:!0,get:function(){return Xn.MongoErrorLabel}});var Yn=kX();Object.defineProperty(P,"ExplainVerbosity",{enumerable:!0,get:function(){return Yn.ExplainVerbosity}});var Qn=I7();Object.defineProperty(P,"ServerApiVersion",{enumerable:!0,get:function(){return Qn.ServerApiVersion}});var Kn=G3();Object.defineProperty(P,"ReturnDocument",{enumerable:!0,get:function(){return Kn.ReturnDocument}});var Gn=T3();Object.defineProperty(P,"ProfilingLevel",{enumerable:!0,get:function(){return Gn.ProfilingLevel}});var qn=d0();Object.defineProperty(P,"ReadConcernLevel",{enumerable:!0,get:function(){return qn.ReadConcernLevel}});var Fn=y1();Object.defineProperty(P,"ReadPreferenceMode",{enumerable:!0,get:function(){return Fn.ReadPreferenceMode}});var cE=p0();Object.defineProperty(P,"ServerType",{enumerable:!0,get:function(){return cE.ServerType}});Object.defineProperty(P,"TopologyType",{enumerable:!0,get:function(){return cE.TopologyType}});var Wn=d0();Object.defineProperty(P,"ReadConcern",{enumerable:!0,get:function(){return Wn.ReadConcern}});var Hn=y1();Object.defineProperty(P,"ReadPreference",{enumerable:!0,get:function(){return Hn.ReadPreference}});var zn=A0();Object.defineProperty(P,"WriteConcern",{enumerable:!0,get:function(){return zn.WriteConcern}});var AK=VQ();Object.defineProperty(P,"CommandFailedEvent",{enumerable:!0,get:function(){return AK.CommandFailedEvent}});Object.defineProperty(P,"CommandStartedEvent",{enumerable:!0,get:function(){return AK.CommandStartedEvent}});Object.defineProperty(P,"CommandSucceededEvent",{enumerable:!0,get:function(){return AK.CommandSucceededEvent}});var J8=iQ();Object.defineProperty(P,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckedInEvent}});Object.defineProperty(P,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckedOutEvent}});Object.defineProperty(P,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckOutFailedEvent}});Object.defineProperty(P,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckOutStartedEvent}});Object.defineProperty(P,"ConnectionClosedEvent",{enumerable:!0,get:function(){return J8.ConnectionClosedEvent}});Object.defineProperty(P,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return J8.ConnectionCreatedEvent}});Object.defineProperty(P,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolClearedEvent}});Object.defineProperty(P,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolClosedEvent}});Object.defineProperty(P,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolCreatedEvent}});Object.defineProperty(P,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolMonitoringEvent}});Object.defineProperty(P,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolReadyEvent}});Object.defineProperty(P,"ConnectionReadyEvent",{enumerable:!0,get:function(){return J8.ConnectionReadyEvent}});var w6=wJ();Object.defineProperty(P,"ServerClosedEvent",{enumerable:!0,get:function(){return w6.ServerClosedEvent}});Object.defineProperty(P,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return w6.ServerDescriptionChangedEvent}});Object.defineProperty(P,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatFailedEvent}});Object.defineProperty(P,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatStartedEvent}});Object.defineProperty(P,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatSucceededEvent}});Object.defineProperty(P,"ServerOpeningEvent",{enumerable:!0,get:function(){return w6.ServerOpeningEvent}});Object.defineProperty(P,"TopologyClosedEvent",{enumerable:!0,get:function(){return w6.TopologyClosedEvent}});Object.defineProperty(P,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return w6.TopologyDescriptionChangedEvent}});Object.defineProperty(P,"TopologyOpeningEvent",{enumerable:!0,get:function(){return w6.TopologyOpeningEvent}});var Vn=QK();Object.defineProperty(P,"SrvPollingEvent",{enumerable:!0,get:function(){return Vn.SrvPollingEvent}})});import{createRequire as qh} from"module";var CK=X4($$(),1);class f4{static list(Z){return CK.default({},{argv:Z.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(Z,J){if(Z.length>J.length)throw new Error("Too many arguments");const $={};for(let X=0;X<J.length;X++){const Y=J[X];$[Y.name]=Z[X]}try{return $}catch(X){throw X}}static requireArguments(Z){let J="";if(Object.keys(Z).forEach((X,Y,Q)=>{if(Z[X]===void 0){if(J+=X,Y<Q.length-1)J+=", "}}),J!=="")throw new Error(`Argument ${J} is required`)}}class R6{constructor(Z){var J;this.opts={},this.args={},this.name=Z.name,this.alias=(J=Z.alias)!==null&&J!==void 0?J:[],this.description=Z.description,this.summary=Z.summary,this.arguments=Z.arguments,this.options=Z.options}}import*as I9 from"tty";var{env:P6={},argv:OK=[],platform:HN=""}=typeof process==="undefined"?{}:process,zN="NO_COLOR"in P6||OK.includes("--no-color"),VN="FORCE_COLOR"in P6||OK.includes("--color"),UN=HN==="win32",SK=P6.TERM==="dumb",MN=I9&&I9.isatty&&I9.isatty(1)&&P6.TERM&&!SK,jN="CI"in P6&&(("GITHUB_ACTIONS"in P6)||("GITLAB_CI"in P6)||("CIRCLECI"in P6)),AN=!zN&&(VN||UN&&!SK||MN||jN),yK=(Z,J,$,X,Y=J.substring(0,Z)+X,Q=J.substring(Z+$.length),K=Q.indexOf($))=>Y+(K<0?Q:yK(K,Q,$,X)),LN=(Z,J,$,X,Y)=>Z<0?$+J+X:$+yK(Z,J,X,Y)+X,wN=(Z,J,$=Z,X=Z.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?LN((""+Y).indexOf(J,X),Y,Z,J,$):"",d=(Z,J,$)=>wN(`\x1B[${Z}m`,`\x1B[${J}m`,$),hK={reset:d(0,0),bold:d(1,22,"\x1B[22m\x1B[1m"),dim:d(2,22,"\x1B[22m\x1B[2m"),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49),blackBright:d(90,39),redBright:d(91,39),greenBright:d(92,39),yellowBright:d(93,39),blueBright:d(94,39),magentaBright:d(95,39),cyanBright:d(96,39),whiteBright:d(97,39),bgBlackBright:d(100,49),bgRedBright:d(101,49),bgGreenBright:d(102,49),bgYellowBright:d(103,49),bgBlueBright:d(104,49),bgMagentaBright:d(105,49),bgCyanBright:d(106,49),bgWhiteBright:d(107,49)},RN=({useColor:Z=AN}={})=>Z?hK:Object.keys(hK).reduce((J,$)=>({...J,[$]:String}),{}),{reset:Sn,bold:yn,dim:kn,italic:_n,underline:xn,inverse:vn,hidden:fn,strikethrough:gn,black:bn,red:kK,green:_K,yellow:xK,blue:vK,magenta:mn,cyan:un,white:dn,gray:fK,bgBlack:pn,bgRed:gK,bgGreen:bK,bgYellow:mK,bgBlue:uK,bgMagenta:cn,bgCyan:ln,bgWhite:an,blackBright:sn,redBright:nn,greenBright:tn,yellowBright:rn,blueBright:on,magentaBright:en,cyanBright:Zt,whiteBright:Jt,bgBlackBright:$t,bgRedBright:Xt,bgGreenBright:Yt,bgYellowBright:Qt,bgBlueBright:Kt,bgMagentaBright:Gt,bgCyanBright:qt,bgWhiteBright:Ft}=RN();class $1{static red(Z){return kK(Z)}static green(Z){return _K(Z)}static blue(Z){return vK(Z)}static gray(Z){return fK(Z)}static yellow(Z){return xK(Z)}static bgRed(Z){return gK(Z)}static bgGreen(Z){return bK(Z)}static bgBlue(Z){return uK(Z)}static bgYellow(Z){return mK(Z)}}class X${constructor(Z){this.commands=[],this.name=Z}getCommands(){return this.commands.filter((Z)=>Z.name!=="")}getCommand(Z){var J;return(J=this.commands.find(($)=>$.name===Z))!==null&&J!==void 0?J:this.commands.find(($)=>$.alias.includes(Z))}createCommand(Z){this.addHelpFlag(Z),this.commands.push(Z)}findDuplicate(){const Z=new Set,J=[],$=[],X=[];return this.commands.forEach((Y)=>{if(Z.size===Z.add(Y.name).size)J.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((F)=>{if(K.size===K.add(F.name).size)Q.push(F.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],q=new Set;if(Y.options.forEach((F)=>{if(q.size===q.add(F.flag).size)G.push(F.flag);if(F.type==="boolean"&&F.shorthand&&q.size===q.add(F.shorthand).size)G.push(F.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:J.length>0||$.length>0||X.length>0,commands:J,arguments:$,options:X}}addHelpFlag(Z){Z.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var uG=X4(mG(),1);class U$ extends uG.default{constructor(Z){super(Z)}static termsWidth(...Z){return Math.max(...Z)}}class l8 extends U${constructor(Z=30){super({colWidths:[Z,process.stdout.columns-Z],wordWrap:!0,chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}})}}class Y8{static rootHelp(Z,J){this.outputRoot+=$1.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${Z.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("COMMANDS"),this.outputRoot+=this.br();const $=l8.termsWidth(Y8.commandTermLength(Z.getCommands()),Y8.optionTermLength(J)),X=new l8($+this.separatorLength+Math.round($/2));Z.getCommands().forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new l8($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("OPTIONS"),this.outputRoot+=this.br(),J.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(Z,J){if(this.output+=$1.yellow("USAGE"),this.output+=this.br(),this.output+=` ${Z.name} ${J.name}`,J.options.length)this.output+=" [options]";J.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("ARGUMENTS"),this.output+=this.br();const $=l8.termsWidth(Y8.argumentTermLength(J.arguments),Y8.optionTermLength(J.options)),X=new l8($+this.separatorLength+Math.round($/2));J.arguments.forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("OPTIONS"),this.output+=this.br();const Y=new l8($+this.separatorLength+Math.round($/2));if(J.options.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),J.alias.length)this.output+=this.br(),this.output+=$1.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${$1.green(J.alias.join(","))}`;console.log(this.output)}static br(Z=1){let J="";for(let $=0;$<Z;$++)J+="\n";return J}static commandTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}static optionTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.flag.length)},0)}static argumentTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}}Y8.separatorLength=10;Y8.outputRoot="";Y8.output="";var M$=X4($$(),1);class O9{static convert(Z){const J={};for(let $=0;$<Z.length;$++){const X=Z[$];if(J[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)J[X.shorthand]=X.flag}return J}static parseRoot(Z,J){try{const $=this.convert(J);return M$.default($,{argv:Z.slice(2)})}catch($){throw $}}static parse(Z,J,$){try{const X=this.convert($),Y=M$.default(X,{argv:Z.slice(3)});return{args:f4.parse(Y._,J),opts:Y}}catch(X){throw X}}}var Gh=X4(eH(),1);class Zz{constructor(Z,J){if(J)this.version=J;else this.version=this.packageVersion();this.command=new X$(Z)}packageVersion(){const Z=qh(import.meta.url),{version:J}=Z("../package.json");return J}register(Z){this.command.createCommand(Z)}run(Z){try{const J=this.command.findDuplicate();if(J.isDuplicate){if(J.commands.length)console.error($1.red("[ERROR] Duplicate commands")),console.error(J.commands);if(J.arguments.length)console.error($1.red("[ERROR] Duplicate arguments")),console.error(J.arguments);if(J.options.length)console.error($1.red("[ERROR] Duplicate options")),console.error(J.options);return}if(f4.list(Z).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(O9.parseRoot(Z,Q)["--version"])return console.log(this.version);return Y8.rootHelp(this.command,Q)}let X=this.command.getCommand(Z[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=O9.parse(Z,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return Y8.commandHelp(this.command,X);f4.requireArguments(X.args),X.handle()}catch(J){if(J instanceof Error)return console.error($1.red(`[ERROR] ${J.message}`));return console.error(J)}}}function n9(Z,J,$){$(new G4(404))}class g0 extends Error{constructor(Z){super(Z.message);Object.setPrototypeOf(this,new.target.prototype),this.code=Z.code,this.status=Z.status,this.message=Z.message,this.errors=Z.errors,Error.captureStackTrace(this)}}var $5=(Z)=>{if(Z instanceof g0)return Z.isOperational;return!1};function t9(Z,J,$,X){if(Z instanceof g0&&$5(Z)){const Q={name:Z.name,code:Z.code,status:Z.status,message:Z.message};if(Z.errors)Q.errors=Z.errors;return $.status(Z.code).json(Q),X(Z)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(Z)}function q4(Z){if(typeof Z==="number")return Jz.find((J)=>{return J.code===Z});else return Jz.find((J)=>{return J.status===Z})}var Jz=[{name:"ClientError",code:400,status:"Bad Request",message:"The server cannot process the request."},{name:"ClientError",code:401,status:"Unauthorized",message:"Authentication credentials is invalid."},{name:"ClientError",code:403,status:"Forbidden",message:"Don't have necessary permissions for this resource."},{name:"ClientError",code:404,status:"Not Found",message:"The URL is not recognized or endpoint is valid but the resource itself does not exist."},{name:"ClientError",code:422,status:"Unprocessable Entity",message:"The request was well-formed but was unable to be followed due to semantic errors."},{name:"ClientError",code:429,status:"Too Many Requests",message:"Sent too many requests in a given amount of time."},{name:"ServerError",code:500,status:"Internal Server Error",message:"An unexpected condition was encountered."}];class G4 extends g0{constructor(Z,J){const $=q4(Z);if(!$)throw new Error(`Error codeStatus "${Z}" not found`);const X=$;if(J)X.errors=J;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var QN=X4(o5(),1);import k61 from"fs";import x61 from"path";import g61 from"fs";import m61 from"path";import p61 from"fs";var LK=(Z)=>Z[0].toUpperCase()+Z.slice(1);var T9=(Z)=>{return Z.replace(/(?:^\w|[A-Z]|\b\w)/g,function(J,$){return $===0?J.toLowerCase():J.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var v4=(Z)=>LK(T9(Z));var O1=(Z)=>Z.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import g7 from"fs";import aE from"path";class tJ extends R6{constructor(){super({name:"make:command",description:"Make a new console command",summary:"Make a new console command",arguments:[{name:"name",description:"Name of console command"}],options:[]})}async handle(){if(g7.existsSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`)){console.error($1.red("Command directory is exists"));return}g7.mkdirSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`,{recursive:!0});const Z=g7.readFileSync(aE.resolve($4,"./command/index.command.ts")).toString().replace("[name]",O1(this.args.name)).replace("NewCommand",`${v4(this.args.name)}Command`);g7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.command.ts`,Z);const J=g7.readFileSync(aE.resolve($4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${v4(this.args.name)}Command`).replace(/newCommand/g,`${T9(this.args.name)}Command`);g7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/console/commands/${O1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${O1(this.args.name)}/index.spec.ts`,"has been created")}}import d8 from"fs";import rJ from"path";class oJ extends R6{constructor(){super({name:"make:middleware",description:"Make a new middleware",summary:"Make a new middleware",arguments:[{name:"name",description:"Name of middleware"}],options:[{type:"boolean",flag:"--configurable",shorthand:"-c",description:"Export a function which accepts an options"}]})}async handle(){if(d8.existsSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`)){console.error($1.red("Middleware directory is exists"));return}if(d8.mkdirSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const Z=d8.readFileSync(rJ.resolve($4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${v4(this.args.name)}Middleware`);d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=d8.readFileSync(rJ.resolve($4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const Z=d8.readFileSync(rJ.resolve($4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${v4(this.args.name)}Middleware`);d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=d8.readFileSync(rJ.resolve($4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}}class wK{command;constructor(Z){this.command=Z}async register(){this.command.register(new tJ),this.command.register(new oJ)}}class RK{Z;session;constructor(Z){this.adapter=Z}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(Z){return this.adapter.database(Z),this}collection(Z){return this.adapter.collection(Z),this}async listCollections(){return this.adapter.listCollections()}startSession(){return this.adapter.startSession()}async endSession(){await this.adapter.endSession()}startTransaction(){this.adapter.startTransaction()}async commitTransaction(){await this.adapter.commitTransaction()}async abortTransaction(){await this.adapter.abortTransaction()}async createIndex(Z,J,$){await this.adapter.createIndex(Z,J,$)}async createCollection(Z,J){await this.adapter.createCollection(Z,J)}async dropCollection(Z,J){await this.adapter.dropCollection(Z,J)}async updateSchema(Z,J){await this.adapter.updateSchema(Z,J)}async create(Z,J){return await this.adapter.create(Z,J)}async createMany(Z,J){return await this.adapter.createMany(Z,J)}async retrieveAll(Z,J){return await this.adapter.retrieveAll(Z,J)}async retrieve(Z,J){return await this.adapter.retrieve(Z,J)}async update(Z,J,$){return await this.adapter.update(Z,J,$)}async updateMany(Z,J,$){return await this.adapter.updateMany(Z,J,$)}async delete(Z,J){return await this.adapter.delete(Z,J)}async deleteMany(Z,J){return await this.adapter.deleteMany(Z,J)}async deleteAll(Z){return await this.adapter.deleteAll(Z)}async aggregate(Z,J,$){return await this.adapter.aggregate(Z,J,$)}}var m7=X4(o5(),1);function iE(Z){const J=Object.prototype.toString.call(Z);if(Z instanceof Date||typeof Z==="object"&&J==="[object Date]")return new Z.constructor(+Z);else if(typeof Z==="number"||J==="[object Number]"||typeof Z==="string"||J==="[object String]")return new Date(Z);else return new Date(NaN)}function sE(Z){return Z instanceof Date||typeof Z==="object"&&Object.prototype.toString.call(Z)==="[object Date]"}function eJ(Z){if(!sE(Z)&&typeof Z!=="number")return!1;const J=iE(Z);return!isNaN(Number(J))}var b7=X4(o5(),1);class V0{db;constructor(Z){this.db=Z}async createUnique(Z,J){await this.db.createIndex(Z,J,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(Z,J){await this.db.createIndex(Z,J,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(Z){return(await this.db.listCollections()).some(function($){return $.name===Z})}static stringToObjectId(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.stringToObjectId(J)});else if(typeof Z==="object"&&!eJ(Z))return Object.keys(Z).reduce((J,$)=>{const X=V0.stringToObjectId(Z[$]);return J[$]=X,J},{});else if(typeof Z==="string"&&b7.ObjectId.isValid(Z)&&Z===new b7.ObjectId(Z).toString())return new b7.ObjectId(Z);return Z}static objectIdToString(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.objectIdToString(J)});else if(typeof Z==="object"&&b7.ObjectId.isValid(Z))return Z.toString();else if(typeof Z==="object"&&!eJ(Z))return Object.keys(Z).reduce((J,$)=>{if(b7.ObjectId.isValid(Z)||eJ(Z))return Z.toString();else{const X=V0.objectIdToString(Z[$]);return J[$]=X,J}},{});return Z}}function nE(Z=1){if(typeof Z==="string")return parseInt(Z);return Z}function tE(Z=10){if(typeof Z==="string")return parseInt(Z);return Z}function Pn(Z,J){return(nE(Z)-1)*tE(J)}function Dn(Z){return Z}function Tn(Z="",J=[]){const $=oE(rE(Z));return eE($,J)}function rE(Z){return Z.split(" ").join().split(",").filter((J)=>J)}function oE(Z,J=1){const $={};for(let X=0;X<Z.length;X++)$[`${Z[X].trim()}`]=J;return $}function eE(Z,J){for(let $=0;$<J.length;$++)Z[`${J[$]}`]=0;return Z}function In(Z){const J={};if(Z)Z.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),J[$.trim()]=-1;else J[$.trim()]=1});return J}var L1={page:nE,limit:tE,skip:Pn,sort:In,fields:Tn,filter:Dn,filterExludeFields:eE,convertStringToArray:rE,convertArrayToObject:oE};class PK{J;client;_database;_collection;session;constructor(Z,J){this.databaseName=J;const $={};this.client=new m7.MongoClient(Z,$),this.database(J)}async open(){await this.client.connect()}async close(){await this.client.close()}database(Z,J){return this._database=this.client.db(Z,J),this}collection(Z,J){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(Z,J),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(Z,J,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(Z,J,$)}async updateSchema(Z,J){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:Z,validator:{$jsonSchema:J}})}async createCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.createCollection(Z,J)}async dropCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(Z,J)}startSession(){return this.session=this.client.startSession(),this.session}async endSession(){await this.session?.endSession()}startTransaction(){this.session?.startTransaction()}async commitTransaction(){await this.session?.commitTransaction()}async abortTransaction(){await this.session?.abortTransaction()}async create(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{insertedId:(await this._collection.insertOne(Z,$)).insertedId.toString()}}async createMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.insertMany(Z,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=this._collection.find(V0.stringToObjectId(Z.filter??{}),$).limit(L1.limit(Z.pageSize)).skip(L1.skip(L1.page(Z.page),L1.limit(Z.pageSize)));if(Z.sort&&L1.sort(Z.sort))X.sort(L1.sort(Z.sort));if(L1.fields(Z.fields,Z.excludeFields))X.project(L1.fields(Z.fields,Z.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(Z.filter??{},$);return{data:V0.objectIdToString(Y),pagination:{page:L1.page(Z.page),pageCount:Math.ceil(Q/L1.limit(Z.pageSize)),pageSize:L1.limit(Z.pageSize),totalDocument:Q}}}async retrieve(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.findOne({_id:new m7.ObjectId(Z)},$);return V0.objectIdToString(X)}async update(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new m7.ObjectId(Z)},{$set:V0.stringToObjectId(J)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(Z,{$set:V0.stringToObjectId(J)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteOne({_id:new m7.ObjectId(Z)},$)).deletedCount}}async deleteMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteMany({_id:{$in:V0.stringToObjectId(Z)}},$)).deletedCount}}async deleteAll(Z){if(!this._collection)throw new Error("Collection not found");const J=Z;return{deletedCount:(await this._collection.deleteMany({},J)).deletedCount}}async aggregate(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...Z,{$skip:(L1.page(J.page)-1)*L1.limit(J.pageSize)},{$limit:L1.limit(J.pageSize)}],X);if(J.sort&&L1.sort(J.sort))Y.sort(L1.sort(J.sort));if(L1.fields(J.fields,J.excludeFields))Y.project(L1.fields(J.fields,J.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...Z,{$count:"totalDocument"}],X).toArray(),q=G.length?G[0].totalDocument:0;return{data:V0.objectIdToString(Q),pagination:{page:L1.page(J.page),pageCount:Math.ceil(q/L1.limit(J.pageSize)),pageSize:L1.limit(J.pageSize),totalDocument:q}}}}function En(Z,J){J.errors={},(Z.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],J.errors=Y})}function Nn(Z,J){if(Object.keys(Z.keyPattern).length===1)J.errors={[Object.keys(Z.keyPattern)[0]]:[`The ${Object.keys(Z.keyPattern)[0]} is exists.`]};else{const $=Object.keys(Z.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(Z.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(Z.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});J.errors=X}}class DK extends g0{constructor(Z){const J=q4(400);if(Z.code===121)En(Z,J);else if(Z.code===11000)Nn(Z,J);super(J);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}function TK(){return(Z,J,$,X)=>{if(Z instanceof ZN)throw new JN(Z);X(Z)}}class $8{static dbConnection;static async open(Z,J="api_test"){$8.dbConnection=new $N(Z,J),await $8.dbConnection.open()}static async close(){await $8.dbConnection.close()}static async createCollections(Z){const J=new XN($8.dbConnection);for(let $=0;$<Z.length;$++)for(let X=0;X<Z[$].length;X++){if(!await J.isExists(Z[$][X].collection))console.info(`[schema] ${Z[$][X].collection} - create collection`),await $8.dbConnection.createCollection(Z[$][X].collection);console.info(`[schema] ${Z[$][X].collection} - update schema`),await $8.dbConnection.updateSchema(Z[$][X].collection,Z[$][X].schema);for(let Y of Z[$][X].unique)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUnique(Z[$][X].collection,IK.convertArrayToObject(Y,-1));for(let Y of Z[$][X].uniqueIfExists)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUniqueIfNotNull(Z[$][X].collection,IK.convertArrayToObject(Y,-1))}}static async reset(){const Z=await $8.dbConnection.listCollections();for(let J of Z)await $8.dbConnection.collection(J.name).deleteAll()}static async retrieve(Z,J){return await $8.dbConnection.collection(Z).retrieve(J)}static async retrieveAll(Z,J={}){return await $8.dbConnection.collection(Z).retrieveAll(J)}}class EK{constructor(){this.modelCount=1,this.modelSequence=[],this.modelState={}}count(Z){return this.modelCount=Z,this}sequence(Z){return this.modelSequence=Z,this}state(Z){return this.modelState=Z,this}useSequence(){const Z=[];for(let J=0;J<this.modelCount;J++){const $=this.definition();let X={};if(this.modelSequence.length)X=this.modelSequence[J%this.modelSequence.length];Z.push(Object.assign({},this.useState(Object.assign(Object.assign({},$),X))))}return Z}useState(Z){return Object.assign(Object.assign({},Z),this.modelState)}make(Z=1){if(this.count(Z),this.modelCount===1)return this.makeOne();return this.makeMany(Z)}makeOne(){return this.useState(this.definition())}makeMany(Z){return this.count(Z),this.useSequence()}}class YN{app;server=null;constructor(Z){this.app=Z}listen(Z,J){return new Promise(($,X)=>{if(J)this.server=this.app.listen(Z,J).once("listening",$).once("error",X);else this.server=this.app.listen(Z).once("listening",$).once("error",X)})}async start(Z,J){await this.listen(Z,J)}stop(){this.server?.close(),this.server=null}get host(){const Z=this.server?.address();if(Z?.address==="0.0.0.0"||Z?.address==="::")return"localhost";else return Z?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var $4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),U51=R6,M51=wK,j51=RK,$N=PK,XN=V0,IK=L1,ZN=QN.MongoServerError,JN=DK,A51={ApiError:G4,BaseError:g0,isTrustedError:$5,getHttpError:q4,mongodbErrorHandlerMiddleware:TK,errorHandlerMiddleware:t9,invalidPathMiddleware:n9};export{$4 as stubDir,$8 as DatabaseTestUtil,YN as BaseServer,ZN as BaseMongoServerError,JN as BaseMongoErrorHandler,IK as BaseMongoDBQuerystring,XN as BaseMongoDBHelper,$N as BaseMongoDBConnection,EK as BaseFactory,A51 as BaseErrorHandler,j51 as BaseDatabaseConnection,M51 as BaseConsoleKernel,U51 as BaseConsoleCommand,Zz as BaseConsoleCli};