@point-hub/papi 0.1.12 → 0.1.14

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 sB=Object.create;var{defineProperty:_K,getPrototypeOf:nB,getOwnPropertyNames:tB}=Object;var rB=Object.prototype.hasOwnProperty;var $4=(J,Z,$)=>{$=J!=null?sB(nB(J)):{};const X=Z||!J||!J.__esModule?_K($,"default",{value:J,enumerable:!0}):$;for(let Y of tB(J))if(!rB.call(X,Y))_K(X,Y,{get:()=>J[Y],enumerable:!0});return X};var V=(J,Z)=>()=>(Z||J((Z={exports:{}}).exports,Z),Z.exports);var h=(J)=>{return import.meta.require(J)};var U$=V((lt,fK)=>{var r7=function(J,{argv:Z=process.argv.slice(2),permissive:$=!1,stopAtPositional:X=!1}={}){if(!J)throw new x0("argument specification object is required","ARG_CONFIG_NO_SPEC");const Y={_:[]},Q={},K={};for(let G of Object.keys(J)){if(!G)throw new x0("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(G[0]!=="-")throw new x0(`argument key must start with '-' but found: '${G}'`,"ARG_CONFIG_NONOPT_KEY");if(G.length===1)throw new x0(`argument key must have a name; singular '-' keys are not allowed: ${G}`,"ARG_CONFIG_NONAME_KEY");if(typeof J[G]==="string"){Q[G]=J[G];continue}let F=J[G],q=!1;if(Array.isArray(F)&&F.length===1&&typeof F[0]==="function"){const[W]=F;F=(H,U,j=[])=>{return j.push(W(H,U,j[j.length-1])),j},q=W===Boolean||W[z$]===!0}else if(typeof F==="function")q=F===Boolean||F[z$]===!0;else throw new x0(`type missing or not a function or valid array type: ${G}`,"ARG_CONFIG_VAD_TYPE");if(G[1]!=="-"&&G.length>2)throw new x0(`short argument keys (with a single hyphen) must have only one character: ${G}`,"ARG_CONFIG_SHORTOPT_TOOLONG");K[G]=[F,q]}for(let G=0,F=Z.length;G<F;G++){const q=Z[G];if(X&&Y._.length>0){Y._=Y._.concat(Z.slice(G));break}if(q==="--"){Y._=Y._.concat(Z.slice(G+1));break}if(q.length>1&&q[0]==="-"){const W=q[1]==="-"||q.length===2?[q]:q.slice(1).split("").map((H)=>`-${H}`);for(let H=0;H<W.length;H++){const U=W[H],[j,z]=U[1]==="-"?U.split(/=(.*)/,2):[U,void 0];let A=j;while(A in Q)A=Q[A];if(!(A in K))if($){Y._.push(U);continue}else throw new x0(`unknown or unexpected option: ${j}`,"ARG_UNKNOWN_OPTION");const[T,w]=K[A];if(!w&&H+1<W.length)throw new x0(`option requires argument (but was followed by another short argument): ${j}`,"ARG_MISSING_REQUIRED_SHORTARG");if(w)Y[A]=T(!0,A,Y[A]);else if(z===void 0){if(Z.length<G+2||Z[G+1].length>1&&Z[G+1][0]==="-"&&!(Z[G+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(T===Number||typeof BigInt!=="undefined"&&T===BigInt))){const N=j===A?"":` (alias for ${A})`;throw new x0(`option requires argument: ${j}${N}`,"ARG_MISSING_REQUIRED_LONGARG")}Y[A]=T(Z[G+1],A,Y[A]),++G}else Y[A]=T(z,A,Y[A])}}else Y._.push(q)}return Y},z$=Symbol("arg flag");class x0 extends Error{constructor(J,Z){super(J);this.name="ArgError",this.code=Z,Object.setPrototypeOf(this,x0.prototype)}}r7.flag=(J)=>{return J[z$]=!0,J};r7.COUNT=r7.flag((J,Z,$)=>($||0)+1);r7.ArgError=x0;fK.exports=r7});var y9=V((Sr,rK)=>{var j$=[],tK=0,s1=(J,Z)=>{if(tK>=Z)j$.push(J)};s1.WARN=1;s1.INFO=2;s1.DEBUG=3;s1.reset=()=>{j$=[]};s1.setDebugLevel=(J)=>{tK=J};s1.warn=(J)=>s1(J,s1.WARN);s1.info=(J)=>s1(J,s1.INFO);s1.debug=(J)=>s1(J,s1.DEBUG);s1.debugMessages=()=>j$;rK.exports=s1});var eK=V((Or,oK)=>{oK.exports=({onlyFirst:J=!1}={})=>{const Z=["[\\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(Z,J?void 0:"g")}});var ZG=V((kr,JG)=>{var FE=eK();JG.exports=(J)=>typeof J==="string"?J.replace(FE(),""):J});var XG=V((yr,A$)=>{var $G=(J)=>{if(Number.isNaN(J))return!1;if(J>=4352&&(J<=4447||J===9001||J===9002||11904<=J&&J<=12871&&J!==12351||12880<=J&&J<=19903||19968<=J&&J<=42182||43360<=J&&J<=43388||44032<=J&&J<=55203||63744<=J&&J<=64255||65040<=J&&J<=65049||65072<=J&&J<=65131||65281<=J&&J<=65376||65504<=J&&J<=65510||110592<=J&&J<=110593||127488<=J&&J<=127569||131072<=J&&J<=262141))return!0;return!1};A$.exports=$G;A$.exports.default=$G});var QG=V((_r,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=V((fr,L$)=>{var qE=ZG(),WE=XG(),HE=QG(),KG=(J)=>{if(typeof J!=="string"||J.length===0)return 0;if(J=qE(J),J.length===0)return 0;J=J.replace(HE()," ");let Z=0;for(let $=0;$<J.length;$++){const X=J.codePointAt($);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)$++;Z+=WE(X)?2:1}return Z};L$.exports=KG;L$.exports.default=KG});var w$=V((vr,HG)=>{var _9=function(J){return J?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g},D6=function(J){let Z=_9();return(""+J).replace(Z,"").split("\n").reduce(function(Y,Q){return FG(Q)>Y?FG(Q):Y},0)},o7=function(J,Z){return Array(Z+1).join(J)},VE=function(J,Z,$,X){let Y=D6(J);if(Z+1>=Y){let Q=Z-Y;switch(X){case"right":{J=o7($,Q)+J;break}case"center":{let K=Math.ceil(Q/2),G=Q-K;J=o7($,G)+J+o7($,K);break}default:{J=J+o7($,Q);break}}}return J},e7=function(J,Z,$){Z="\x1B["+Z+"m",$="\x1B["+$+"m",u4[Z]={set:J,to:!0},u4[$]={set:J,to:!1},u4[J]={on:Z,off:$}},qG=function(J,Z){let $=Z[1]?parseInt(Z[1].split(";")[0]):0;if($>=30&&$<=39||$>=90&&$<=97){J.lastForegroundAdded=Z[0];return}if($>=40&&$<=49||$>=100&&$<=107){J.lastBackgroundAdded=Z[0];return}if($===0){for(let Y in J)if(Object.prototype.hasOwnProperty.call(J,Y))delete J[Y];return}let X=u4[Z[0]];if(X)J[X.set]=X.to},zE=function(J){let Z=_9(!0),$=Z.exec(J),X={};while($!==null)qG(X,$),$=Z.exec(J);return X},WG=function(J,Z){let{lastBackgroundAdded:$,lastForegroundAdded:X}=J;if(delete J.lastBackgroundAdded,delete J.lastForegroundAdded,Object.keys(J).forEach(function(Y){if(J[Y])Z+=u4[Y].off}),$&&$!="\x1B[49m")Z+="\x1B[49m";if(X&&X!="\x1B[39m")Z+="\x1B[39m";return Z},UE=function(J,Z){let{lastBackgroundAdded:$,lastForegroundAdded:X}=J;if(delete J.lastBackgroundAdded,delete J.lastForegroundAdded,Object.keys(J).forEach(function(Y){if(J[Y])Z=u4[Y].on+Z}),$&&$!="\x1B[49m")Z=$+Z;if(X&&X!="\x1B[39m")Z=X+Z;return Z},ME=function(J,Z){if(J.length===D6(J))return J.substr(0,Z);while(D6(J)>Z)J=J.slice(0,-1);return J},jE=function(J,Z){let $=_9(!0),X=J.split(_9()),Y=0,Q=0,K="",G,F={};while(Q<Z){G=$.exec(J);let q=X[Y];if(Y++,Q+D6(q)>Z)q=ME(q,Z-Q);if(K+=q,Q+=D6(q),Q<Z){if(!G)break;K+=G[0],qG(F,G)}}return WG(F,K)},AE=function(J,Z,$){if($=$||"\u2026",D6(J)<=Z)return J;return Z-=D6($),jE(J,Z)+$},LE=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:[]}},wE=function(J,Z){J=J||{},Z=Z||LE();let $=Object.assign({},Z,J);return $.chars=Object.assign({},Z.chars,J.chars),$.style=Object.assign({},Z.style,J.style),$},RE=function(J,Z){let $=[],X=Z.split(/(\s+)/g),Y=[],Q=0,K;for(let G=0;G<X.length;G+=2){let F=X[G],q=Q+D6(F);if(Q>0&&K)q+=K.length;if(q>J){if(Q!==0)$.push(Y.join(""));Y=[F],Q=D6(F)}else Y.push(K||"",F),Q=q;K=X[G+1]}if(Q)$.push(Y.join(""));return $},DE=function(J,Z){let $=[],X="";function Y(K,G){if(X.length&&G)X+=G;X+=K;while(X.length>J)$.push(X.slice(0,J)),X=X.slice(J)}let Q=Z.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 $},PE=function(J,Z,$=!0){let X=[];Z=Z.split("\n");const Y=$?RE:DE;for(let Q=0;Q<Z.length;Q++)X.push.apply(X,Y(J,Z[Q]));return X},TE=function(J){let Z={},$=[];for(let X=0;X<J.length;X++){let Y=UE(Z,J[X]);Z=zE(Y);let Q=Object.assign({},Z);$.push(WG(Q,Y))}return $},IE=function(J,Z){return["\x1B]","8",";",";",J||Z,"\x07",Z,"\x1B]","8",";",";","\x07"].join("")},FG=GG(),u4={};e7("bold",1,22);e7("italics",3,23);e7("underline",4,24);e7("inverse",7,27);e7("strikethrough",9,29);HG.exports={strlen:D6,repeat:o7,pad:VE,truncate:AE,mergeOptions:wE,wordWrap:PE,colorizeLines:TE,hyperlink:IE}});var MG=V((xr,UG)=>{var zG={};UG.exports=zG;var VG={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(VG).forEach(function(J){var Z=VG[J],$=zG[J]=[];$.open="\x1B["+Z[0]+"m",$.close="\x1B["+Z[1]+"m"})});var AG=V((br,jG)=>{jG.exports=function(J,Z){Z=Z||process.argv;var $=Z.indexOf("--"),X=/^-{1,2}/.test(J)?"":"--",Y=Z.indexOf(X+J);return Y!==-1&&($===-1?!0:Y<$)}});var wG=V((gr,LG)=>{var BE=function(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}},EE=function(J){if(d4===!1)return 0;if(Z6("color=16m")||Z6("color=full")||Z6("color=truecolor"))return 3;if(Z6("color=256"))return 2;if(J&&!J.isTTY&&d4!==!0)return 0;var Z=d4?1:0;if(process.platform==="win32"){var $=NE.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 X0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in X0})||X0.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in X0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in X0){var X=parseInt((X0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(X0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(X0.TERM))return 1;if("COLORTERM"in X0)return 1;if(X0.TERM==="dumb")return Z;return Z},R$=function(J){var Z=EE(J);return BE(Z)},NE=import.meta.require("os"),Z6=AG(),X0=process.env,d4=void 0;if(Z6("no-color")||Z6("no-colors")||Z6("color=false"))d4=!1;else if(Z6("color")||Z6("colors")||Z6("color=true")||Z6("color=always"))d4=!0;if("FORCE_COLOR"in X0)d4=X0.FORCE_COLOR.length===0||parseInt(X0.FORCE_COLOR,10)!==0;LG.exports={supportsColor:R$,stdout:R$(process.stdout),stderr:R$(process.stderr)}});var DG=V((mr,RG)=>{RG.exports=function J(Z,$){var X="";Z=Z||"Run the trap, drop the bass",Z=Z.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 Z.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=V((ur,PG)=>{PG.exports=function J(Z,$){Z=Z||" 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 q=Math.floor(Math.random()*F);return q}function K(F){var q=!1;return Y.filter(function(W){q=W===F}),q}function G(F,q){var W="",H,U;q=q||{},q.up=typeof q.up!=="undefined"?q.up:!0,q.mid=typeof q.mid!=="undefined"?q.mid:!0,q.down=typeof q.down!=="undefined"?q.down:!0,q.size=typeof q.size!=="undefined"?q.size:"maxi",F=F.split("");for(U in F){if(K(U))continue;switch(W=W+F[U],H={up:0,down:0,mid:0},q.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 z in j){var A=j[z];for(var T=0;T<=H[A];T++)if(q[A])W=W+X[A][Q(X[A].length)]}}return W}return G(Z,$)}});var NG=V((dr,IG)=>{IG.exports=function(J){return function(Z,$,X){if(Z===" ")return Z;switch($%3){case 0:return J.red(Z);case 1:return J.white(Z);case 2:return J.blue(Z)}}}});var EG=V((cr,BG)=>{BG.exports=function(J){return function(Z,$,X){return $%2===0?Z:J.inverse(Z)}}});var hG=V((pr,CG)=>{CG.exports=function(J){var Z=["red","yellow","green","blue","magenta"];return function($,X,Y){if($===" ")return $;else return J[Z[X++%Z.length]]($)}}});var OG=V((lr,SG)=>{SG.exports=function(J){var Z=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function($,X,Y){return $===" "?$:J[Z[Math.round(Math.random()*(Z.length-2))]]($)}}});var xG=V((ir,vG)=>{var _G=function(J){var Z=function $(){return yE.apply($,arguments)};return Z._styles=J,Z.__proto__=kE,Z},yE=function(){var J=Array.prototype.slice.call(arguments),Z=J.map(function(K){if(K!=null&&K.constructor===String)return K;else return CE.inspect(K)}).join(" ");if(!d.enabled||!Z)return Z;var $=Z.indexOf("\n")!=-1,X=this._styles,Y=X.length;while(Y--){var Q=X4[X[Y]];if(Z=Q.open+Z.replace(Q.closeRe,Q.open)+Q.close,$)Z=Z.replace(hE,function(K){return Q.close+K+Q.open})}return Z},_E=function(){var J={};return Object.keys(fG).forEach(function(Z){J[Z]={get:function(){return _G([Z])}}}),J},d={};vG.exports=d;d.themes={};var CE=import.meta.require("util"),X4=d.styles=MG(),yG=Object.defineProperties,hE=new RegExp(/[\r\n]+/g);d.supportsColor=wG().supportsColor;if(typeof d.enabled==="undefined")d.enabled=d.supportsColor()!==!1;d.enable=function(){d.enabled=!0};d.disable=function(){d.enabled=!1};d.stripColors=d.strip=function(J){return(""+J).replace(/\x1B\[\d+m/g,"")};var ar=d.stylize=function J(Z,$){if(!d.enabled)return Z+"";var X=X4[$];if(!X&&$ in d)return d[$](Z);return X.open+Z+X.close},SE=/[|\\{}()[\]^$+*?.]/g,OE=function(J){if(typeof J!=="string")throw new TypeError("Expected a string");return J.replace(SE,"\\$&")},fG=function(){var J={};return X4.grey=X4.gray,Object.keys(X4).forEach(function(Z){X4[Z].closeRe=new RegExp(OE(X4[Z].close),"g"),J[Z]={get:function(){return _G(this._styles.concat(Z))}}}),J}(),kE=yG(function J(){},fG);d.setTheme=function(J){if(typeof J==="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 Z in J)(function($){d[$]=function(X){if(typeof J[$]==="object"){var Y=X;for(var Q in J[$])Y=d[J[$][Q]](Y);return Y}return d[J[$]](X)}})(Z)};var fE=function J(Z,$){var X=$.split("");return X=X.map(Z),X.join("")};d.trap=DG();d.zalgo=TG();d.maps={};d.maps.america=NG()(d);d.maps.zebra=EG()(d);d.maps.rainbow=hG()(d);d.maps.random=OG()(d);for(kG in d.maps)(function(J){d[J]=function(Z){return fE(d.maps[J],Z)}})(kG);var kG;yG(d,_E())});var gG=V((sr,bG)=>{var vE=xG();bG.exports=vE});var cG=V((nr,x9)=>{var mG=function(...J){return J.filter((Z)=>Z!==void 0&&Z!==null).shift()},D$=function(J,Z,$,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(J[Y],J[$],Z[Y],Z[$]);else X[$]=mG(J[$],Z[$])},bE=function(J,Z,$){let X=J[Z];for(let Y=1;Y<$;Y++)X+=1+J[Z+Y];return X},uG=function(J,Z){return J+Z+1},{info:xE,debug:dG}=y9(),N0=w$();class J5{constructor(J){this.setOptions(J),this.x=null,this.y=null}setOptions(J){if(["boolean","number","string"].indexOf(typeof J)!==-1)J={content:""+J};J=J||{},this.options=J;let Z=J.content;if(["boolean","number","string"].indexOf(typeof Z)!==-1)this.content=String(Z);else if(!Z)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof Z);if(this.colSpan=J.colSpan||1,this.rowSpan=J.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(J,Z){this.cells=Z;let $=this.options.chars||{},X=J.chars,Y=this.chars={};gE.forEach(function(G){D$($,X,G,Y)}),this.truncate=this.options.truncate||J.truncate;let Q=this.options.style=this.options.style||{},K=J.style;D$(Q,K,"padding-left",this),D$(Q,K,"padding-right",this),this.head=Q.head||K.head,this.border=Q.border||K.border,this.fixedWidth=J.colWidths[this.x],this.lines=this.computeLines(J),this.desiredWidth=N0.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(J){const Z=J.wordWrap||J.textWrap,{wordWrap:$=Z}=this.options;if(this.fixedWidth&&$){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let Q=1;while(Q<this.colSpan)this.fixedWidth+=J.colWidths[this.x+Q],Q++}const{wrapOnWordBoundary:X=!0}=J,{wrapOnWordBoundary:Y=X}=this.options;return this.wrapLines(N0.wordWrap(this.fixedWidth,this.content,Y))}return this.wrapLines(this.content.split("\n"))}wrapLines(J){const Z=N0.colorizeLines(J);if(this.href)return Z.map(($)=>N0.hyperlink(this.href,$));return Z}init(J){let Z=this.x,$=this.y;this.widths=J.colWidths.slice(Z,Z+this.colSpan),this.heights=J.rowHeights.slice($,$+this.rowSpan),this.width=this.widths.reduce(uG,-1),this.height=this.heights.reduce(uG,-1),this.hAlign=this.options.hAlign||J.colAligns[Z],this.vAlign=this.options.vAlign||J.rowAligns[$],this.drawRight=Z+this.colSpan==J.colWidths.length}draw(J,Z){if(J=="top")return this.drawTop(this.drawRight);if(J=="bottom")return this.drawBottom(this.drawRight);let $=N0.truncate(this.content,10,this.truncate);if(!J)xE(`${this.y}-${this.x}: ${this.rowSpan-J}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(J<Y||J>=Y+this.lines.length)return this.drawEmpty(this.drawRight,Z);let Q=this.lines.length>this.height&&J+1>=this.height;return this.drawLine(J-Y,this.drawRight,Q,Z)}drawTop(J){let Z=[];if(this.cells)this.widths.forEach(function($,X){Z.push(this._topLeftChar(X)),Z.push(N0.repeat(this.chars[this.y==0?"top":"mid"],$))},this);else Z.push(this._topLeftChar(0)),Z.push(N0.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(J)Z.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",Z.join(""))}_topLeftChar(J){let Z=this.x+J,$;if(this.y==0)$=Z==0?"topLeft":J==0?"topMid":"top";else if(Z==0)$="leftMid";else if($=J==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][Z]instanceof J5.ColSpanCell)$=J==0?"topMid":"mid";if(J==0){let Y=1;while(this.cells[this.y][Z-Y]instanceof J5.ColSpanCell)Y++;if(this.cells[this.y][Z-Y]instanceof J5.RowSpanCell)$="leftMid"}}return this.chars[$]}wrapWithStyleColors(J,Z){if(this[J]&&this[J].length)try{let $=gG();for(let X=this[J].length-1;X>=0;X--)$=$[this[J][X]];return $(Z)}catch($){return Z}else return Z}drawLine(J,Z,$,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 f9)H=this.cells[H.y][H.x-1];if(!(H instanceof v9))Y=this.chars.rightMid}let Q=N0.repeat(" ",this.paddingLeft),K=Z?this.chars.right:"",G=N0.repeat(" ",this.paddingRight),F=this.lines[J],q=this.width-(this.paddingLeft+this.paddingRight);if($)F+=this.truncate||"\u2026";let W=N0.truncate(F,q,this.truncate);return W=N0.pad(W,q," ",this.hAlign),W=Q+W+G,this.stylizeLine(Y,W,K)}stylizeLine(J,Z,$){if(J=this.wrapWithStyleColors("border",J),$=this.wrapWithStyleColors("border",$),this.y===0)Z=this.wrapWithStyleColors("head",Z);return J+Z+$}drawBottom(J){let Z=this.chars[this.x==0?"bottomLeft":"bottomMid"],$=N0.repeat(this.chars.bottom,this.width),X=J?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",Z+$+X)}drawEmpty(J,Z){let $=this.chars[this.x==0?"left":"middle"];if(this.x&&Z&&this.cells){let Q=this.cells[this.y+Z][this.x-1];while(Q instanceof f9)Q=this.cells[Q.y][Q.x-1];if(!(Q instanceof v9))$=this.chars.rightMid}let X=J?this.chars.right:"",Y=N0.repeat(" ",this.width);return this.stylizeLine($,Y,X)}}class f9{constructor(){}draw(J){if(typeof J==="number")dG(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class v9{constructor(J){this.originalCell=J}init(J){let Z=this.y,$=this.originalCell.y;this.cellOffset=Z-$,this.offset=bE(J.rowHeights,$,this.cellOffset)}draw(J){if(J=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(J=="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+J)}mergeTableOptions(){}}var gE=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];x9.exports=J5;x9.exports.ColSpanCell=f9;x9.exports.RowSpanCell=v9});var aG=V((tr,lG)=>{var pG=function(J,Z,$,X){return function(Y,Q){let K=[],G=[],F={};Q.forEach(function(q){q.forEach(function(W){if((W[J]||1)>1)G.push(W);else K[W[$]]=Math.max(K[W[$]]||0,W[Z]||0,X)})}),Y.forEach(function(q,W){if(typeof q==="number")K[W]=q});for(let q=G.length-1;q>=0;q--){let W=G[q],H=W[J],U=W[$],j=K[U],z=typeof Y[U]==="number"?0:1;if(typeof j==="number"){for(let A=1;A<H;A++)if(j+=1+K[U+A],typeof Y[U+A]!=="number")z++}else if(j=Z==="desiredWidth"?W.desiredWidth-1:1,!F[U]||F[U]<j)F[U]=j;if(W[Z]>j){let A=0;while(z>0&&W[Z]>j){if(typeof Y[U+A]!=="number"){let T=Math.round((W[Z]-j)/z);j+=T,K[U+A]+=T,z--}A++}}}Object.assign(Y,K,F);for(let q=0;q<Y.length;q++)Y[q]=Math.max(X,Y[q]||0)}},{warn:mE,debug:uE}=y9(),P$=cG(),{ColSpanCell:dE,RowSpanCell:cE}=P$;(function(){function J(j,z){if(j[z]>0)return J(j,z+1);return z}function Z(j){let z={};j.forEach(function(A,T){let w=0;A.forEach(function(N){N.y=T,N.x=T?J(z,w):w;const P=N.rowSpan||1,f=N.colSpan||1;if(P>1)for(let $0=0;$0<f;$0++)z[N.x+$0]=P;w=N.x+f}),Object.keys(z).forEach((N)=>{if(z[N]--,z[N]<1)delete z[N]})})}function $(j){let z=0;return j.forEach(function(A){A.forEach(function(T){z=Math.max(z,T.x+(T.colSpan||1))})}),z}function X(j){return j.length}function Y(j,z){let A=j.y,T=j.y-1+(j.rowSpan||1),w=z.y,N=z.y-1+(z.rowSpan||1),P=!(A>N||w>T),f=j.x,$0=j.x-1+(j.colSpan||1),A8=z.x,k=z.x-1+(z.colSpan||1),B=!(f>k||A8>$0);return P&&B}function Q(j,z,A){let T=Math.min(j.length-1,A),w={x:z,y:A};for(let N=0;N<=T;N++){let P=j[N];for(let f=0;f<P.length;f++)if(Y(w,P[f]))return!0}return!1}function K(j,z,A,T){for(let w=A;w<T;w++)if(Q(j,w,z))return!1;return!0}function G(j){j.forEach(function(z,A){z.forEach(function(T){for(let w=1;w<T.rowSpan;w++){let N=new cE(T);N.x=T.x,N.y=T.y+w,N.colSpan=T.colSpan,q(N,j[A+w])}})})}function F(j){for(let z=j.length-1;z>=0;z--){let A=j[z];for(let T=0;T<A.length;T++){let w=A[T];for(let N=1;N<w.colSpan;N++){let P=new dE;P.x=w.x+N,P.y=w.y,A.splice(T+1,0,P)}}}}function q(j,z){let A=0;while(A<z.length&&z[A].x<j.x)A++;z.splice(A,0,j)}function W(j){let z=X(j),A=$(j);uE(`Max rows: ${z}; Max cols: ${A}`);for(let T=0;T<z;T++)for(let w=0;w<A;w++)if(!Q(j,w,T)){let N={x:w,y:T,colSpan:1,rowSpan:1};w++;while(w<A&&!Q(j,w,T))N.colSpan++,w++;let P=T+1;while(P<z&&K(j,P,N.x,N.x+N.colSpan))N.rowSpan++,P++;let f=new P$(N);f.x=N.x,f.y=N.y,mE(`Missing cell at ${f.y}-${f.x}.`),q(f,j[T])}}function H(j){return j.map(function(z){if(!Array.isArray(z)){let A=Object.keys(z)[0];if(z=z[A],Array.isArray(z))z=z.slice(),z.unshift(A);else z=[A,z]}return z.map(function(A){return new P$(A)})})}function U(j){let z=H(j);return Z(z),W(z),G(z),F(z),z}lG.exports={makeTableLayout:U,layoutTable:Z,addRowSpanCells:G,maxWidth:$,fillInTable:W,computeWidths:pG("colSpan","desiredWidth","x",1),computeHeights:pG("rowSpan","desiredHeight","y",1)}})()});var sG=V((rr,iG)=>{var I$=function(J,Z,$){let X=[];J.forEach(function(Q){X.push(Q.draw(Z))});let Y=X.join("");if(Y.length)$.push(Y)},u6=y9(),pE=w$(),T$=aG();class N$ extends Array{constructor(J){super();const Z=pE.mergeOptions(J);if(Object.defineProperty(this,"options",{value:Z,enumerable:Z.debug}),Z.debug){switch(typeof Z.debug){case"boolean":u6.setDebugLevel(u6.WARN);break;case"number":u6.setDebugLevel(Z.debug);break;case"string":u6.setDebugLevel(parseInt(Z.debug,10));break;default:u6.setDebugLevel(u6.WARN),u6.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof Z.debug}`)}Object.defineProperty(this,"messages",{get(){return u6.debugMessages()}})}}toString(){let J=this,Z=this.options.head&&this.options.head.length;if(Z){if(J=[this.options.head],this.length)J.push.apply(J,this)}else this.options.style.head=[];let $=T$.makeTableLayout(J);$.forEach(function(Y){Y.forEach(function(Q){Q.mergeTableOptions(this.options,$)},this)},this),T$.computeWidths(this.options.colWidths,$),T$.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&&Z)I$(Q,"top",X);for(let G=0;G<K;G++)I$(Q,G,X);if(Y+1==$.length)I$(Q,"bottom",X)}return X.join("\n")}get width(){return this.toString().split("\n")[0].length}}N$.reset=()=>u6.reset();iG.exports=N$});var j1=V((Yo,rG)=>{var tG=function(J,Z){let $=0,X,Y="",Q="";for(;$<J.length;$++)if(X=J[$],Y+=X.open,Q+=X.close,Z.includes(X.close))Z=Z.replace(X.rgx,X.close+X.open);return Y+Z+Q},sE=function(J,Z){let $={has:J,keys:Z};return $.reset=Z1.reset.bind($),$.bold=Z1.bold.bind($),$.dim=Z1.dim.bind($),$.italic=Z1.italic.bind($),$.underline=Z1.underline.bind($),$.inverse=Z1.inverse.bind($),$.hidden=Z1.hidden.bind($),$.strikethrough=Z1.strikethrough.bind($),$.black=Z1.black.bind($),$.red=Z1.red.bind($),$.green=Z1.green.bind($),$.yellow=Z1.yellow.bind($),$.blue=Z1.blue.bind($),$.magenta=Z1.magenta.bind($),$.cyan=Z1.cyan.bind($),$.white=Z1.white.bind($),$.gray=Z1.gray.bind($),$.grey=Z1.grey.bind($),$.bgBlack=Z1.bgBlack.bind($),$.bgRed=Z1.bgRed.bind($),$.bgGreen=Z1.bgGreen.bind($),$.bgYellow=Z1.bgYellow.bind($),$.bgBlue=Z1.bgBlue.bind($),$.bgMagenta=Z1.bgMagenta.bind($),$.bgCyan=Z1.bgCyan.bind($),$.bgWhite=Z1.bgWhite.bind($),$},W1=function(J,Z){let $={open:`\x1B[${J}m`,close:`\x1B[${Z}m`,rgx:new RegExp(`\\x1b\\[${Z}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return this.has.includes(J)||(this.has.push(J),this.keys.push($)),X===void 0?this:Z1.enabled?tG(this.keys,X+""):X+"";return X===void 0?sE([J],[$]):Z1.enabled?tG([$],X+""):X+""}},{FORCE_COLOR:lE,NODE_DISABLE_COLORS:aE,TERM:iE}=process.env,Z1={enabled:!aE&&iE!=="dumb"&&lE!=="0",reset:W1(0,0),bold:W1(1,22),dim:W1(2,22),italic:W1(3,23),underline:W1(4,24),inverse:W1(7,27),hidden:W1(8,28),strikethrough:W1(9,29),black:W1(30,39),red:W1(31,39),green:W1(32,39),yellow:W1(33,39),blue:W1(34,39),magenta:W1(35,39),cyan:W1(36,39),white:W1(37,39),gray:W1(90,39),grey:W1(90,39),bgBlack:W1(40,49),bgRed:W1(41,49),bgGreen:W1(42,49),bgYellow:W1(43,49),bgBlue:W1(44,49),bgMagenta:W1(45,49),bgCyan:W1(46,49),bgWhite:W1(47,49)};rG.exports=Z1});var eG=V((Qo,oG)=>{oG.exports=(J,Z)=>{if(J.meta&&J.name!=="escape")return;if(J.ctrl){if(J.name==="a")return"first";if(J.name==="c")return"abort";if(J.name==="d")return"abort";if(J.name==="e")return"last";if(J.name==="g")return"reset"}if(Z){if(J.name==="j")return"down";if(J.name==="k")return"up"}if(J.name==="return")return"submit";if(J.name==="enter")return"submit";if(J.name==="backspace")return"delete";if(J.name==="delete")return"deleteForward";if(J.name==="abort")return"abort";if(J.name==="escape")return"exit";if(J.name==="tab")return"next";if(J.name==="pagedown")return"nextPage";if(J.name==="pageup")return"prevPage";if(J.name==="home")return"home";if(J.name==="end")return"end";if(J.name==="up")return"up";if(J.name==="down")return"down";if(J.name==="right")return"right";if(J.name==="left")return"left";return!1}});var g9=V((Ko,JF)=>{JF.exports=(J)=>{const Z=["[\\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(Z,"g");return typeof J==="string"?J.replace($,""):J}});var L1=V((Go,ZF)=>{var A1=`${"\x1B"}[`,C$={to(J,Z){if(!Z)return`${A1}${J+1}G`;return`${A1}${Z+1};${J+1}H`},move(J,Z){let $="";if(J<0)$+=`${A1}${-J}D`;else if(J>0)$+=`${A1}${J}C`;if(Z<0)$+=`${A1}${-Z}A`;else if(Z>0)$+=`${A1}${Z}B`;return $},up:(J=1)=>`${A1}${J}A`,down:(J=1)=>`${A1}${J}B`,forward:(J=1)=>`${A1}${J}C`,backward:(J=1)=>`${A1}${J}D`,nextLine:(J=1)=>`${A1}E`.repeat(J),prevLine:(J=1)=>`${A1}F`.repeat(J),left:`${A1}G`,hide:`${A1}?25l`,show:`${A1}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},nE={up:(J=1)=>`${A1}S`.repeat(J),down:(J=1)=>`${A1}T`.repeat(J)},tE={screen:`${A1}2J`,up:(J=1)=>`${A1}1J`.repeat(J),down:(J=1)=>`${A1}J`.repeat(J),line:`${A1}2K`,lineEnd:`${A1}K`,lineStart:`${A1}1K`,lines(J){let Z="";for(let $=0;$<J;$++)Z+=this.line+($<J-1?C$.up():"");if(J)Z+=C$.left;return Z}};ZF.exports={cursor:C$,scroll:nE,erase:tE,beep:"\x07"}});var KF=V((Fo,QF)=>{var rE=function(J,Z){var $=typeof Symbol!=="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(!$){if(Array.isArray(J)||($=oE(J))||Z&&J&&typeof J.length==="number"){if($)J=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=J.length)return{done:!0};return{done:!1,value:J[X++]}},e:function F(q){throw q},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(J)},n:function F(){var q=$.next();return Q=q.done,q},e:function F(q){K=!0,G=q},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},oE=function(J,Z){if(!J)return;if(typeof J==="string")return $F(J,Z);var $=Object.prototype.toString.call(J).slice(8,-1);if($==="Object"&&J.constructor)$=J.constructor.name;if($==="Map"||$==="Set")return Array.from(J);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return $F(J,Z)},$F=function(J,Z){if(Z==null||Z>J.length)Z=J.length;for(var $=0,X=new Array(Z);$<Z;$++)X[$]=J[$];return X},eE=g9(),YF=L1(),XF=YF.erase,JC=YF.cursor,ZC=(J)=>[...eE(J)].length;QF.exports=function(J,Z){if(!Z)return XF.line+JC.to(0);let $=0;const X=J.split(/\r?\n/);var Y=rE(X),Q;try{for(Y.s();!(Q=Y.n()).done;){let K=Q.value;$+=1+Math.floor(Math.max(ZC(K)-1,0)/Z)}}catch(K){Y.e(K)}finally{Y.f()}return XF.lines($)}});var h$=V((qo,GF)=>{var Z5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},$C={arrowUp:Z5.arrowUp,arrowDown:Z5.arrowDown,arrowLeft:Z5.arrowLeft,arrowRight:Z5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},XC=process.platform==="win32"?$C:Z5;GF.exports=XC});var qF=V((Wo,FF)=>{var c4=j1(),Y4=h$(),S$=Object.freeze({password:{scale:1,render:(J)=>"*".repeat(J.length)},emoji:{scale:2,render:(J)=>"\uD83D\uDE03".repeat(J.length)},invisible:{scale:0,render:(J)=>""},default:{scale:1,render:(J)=>`${J}`}}),YC=(J)=>S$[J]||S$.default,$5=Object.freeze({aborted:c4.red(Y4.cross),done:c4.green(Y4.tick),exited:c4.yellow(Y4.cross),default:c4.cyan("?")}),QC=(J,Z,$)=>Z?$5.aborted:$?$5.exited:J?$5.done:$5.default,KC=(J)=>c4.gray(J?Y4.ellipsis:Y4.pointerSmall),GC=(J,Z)=>c4.gray(J?Z?Y4.pointerSmall:"+":Y4.line);FF.exports={styles:S$,render:YC,symbols:$5,symbol:QC,delimiter:KC,item:GC}});var HF=V((Ho,WF)=>{var FC=g9();WF.exports=function(J,Z){let $=String(FC(J)||"").split(/\r?\n/);if(!Z)return $.length;return $.map((X)=>Math.ceil(X.length/Z)).reduce((X,Y)=>X+Y)}});var zF=V((Vo,VF)=>{VF.exports=(J,Z={})=>{const $=Number.isSafeInteger(parseInt(Z.margin))?new Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",X=Z.width;return(J||"").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=V((zo,UF)=>{UF.exports=(J,Z,$)=>{$=$||Z;let X=Math.min(Z-$,J-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,Z);return{startIndex:X,endIndex:Y}}});var X6=V((Uo,jF)=>{jF.exports={action:eG(),clear:KF(),style:qF(),strip:g9(),figures:h$(),lines:HF(),wrap:zF(),entriesToDisplay:MF()}});var c6=V((Mo,RF)=>{var AF=import.meta.require("readline"),qC=X6(),WC=qC.action,HC=import.meta.require("events"),LF=L1(),VC=LF.beep,zC=LF.cursor,UC=j1();class wF extends HC{constructor(J={}){super();this.firstRender=!0,this.in=J.stdin||process.stdin,this.out=J.stdout||process.stdout,this.onRender=(J.onRender||(()=>{return})).bind(this);const Z=AF.createInterface({input:this.in,escapeCodeTimeout:50});if(AF.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=WC(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(zC.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);Z.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(VC)}render(){if(this.onRender(UC),this.firstRender)this.firstRender=!1}}RF.exports=wF});var BF=V((jo,NF)=>{var DF=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},PF=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){DF(Q,X,Y,K,G,"next",F)}function G(F){DF(Q,X,Y,K,G,"throw",F)}K(void 0)})}},m9=j1(),MC=c6(),TF=L1(),jC=TF.erase,X5=TF.cursor,u9=X6(),O$=u9.style,k$=u9.clear,AC=u9.lines,LC=u9.figures;class IF extends MC{constructor(J={}){super(J);this.transform=O$.render(J.style),this.scale=this.transform.scale,this.msg=J.message,this.initial=J.initial||"",this.validator=J.validate||(()=>!0),this.value="",this.errorMsg=J.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=k$("",this.out.columns),this.render()}set value(J){if(!J&&this.initial)this.placeholder=!0,this.rendered=m9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(J);this._value=J,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 J=this;return PF(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return PF(function*(){if(J.value=J.value||J.initial,J.cursorOffset=0,J.cursor=J.rendered.length,yield J.validate(),J.error){J.red=!0,J.fire(),J.render();return}J.done=!0,J.aborted=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(J){if(this.placeholder)return;this.cursor=this.cursor+J,this.cursorOffset+=J}_(J,Z){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${J}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let J=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${J}${Z}`,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 J=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${J}${Z}`,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(X5.down(AC(this.outputError,this.out.columns)-1)+k$(this.outputError,this.out.columns));this.out.write(k$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[O$.symbol(this.done,this.aborted),m9.bold(this.msg),O$.delimiter(this.done),this.red?m9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":LC.pointerSmall} ${m9.red().italic(Z)}`,"");this.out.write(jC.line+X5.to(0)+this.outputText+X5.save+this.outputError+X5.restore+X5.move(this.cursorOffset,0))}}NF.exports=IF});var OF=V((Ao,SF)=>{var p6=j1(),wC=c6(),Y5=X6(),EF=Y5.style,CF=Y5.clear,d9=Y5.figures,RC=Y5.wrap,DC=Y5.entriesToDisplay,PC=L1(),TC=PC.cursor;class hF extends wC{constructor(J={}){super(J);this.msg=J.message,this.hint=J.hint||"- Use arrow-keys. Return to submit.",this.warn=J.warn||"- This option is disabled",this.cursor=J.initial||0,this.choices=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?$:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=J.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=CF("",this.out.columns),this.render()}moveCursor(J){this.cursor=J,this.value=this.choices[J].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()}_(J,Z){if(J===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(TC.hide);else this.out.write(CF(this.outputText,this.out.columns));super.render();let J=DC(this.cursor,this.choices.length,this.optionsPerPage),Z=J.startIndex,$=J.endIndex;if(this.outputText=[EF.symbol(this.done,this.aborted),p6.bold(this.msg),EF.delimiter(!1),this.done?this.selection.title:this.selection.disabled?p6.yellow(this.warn):p6.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let X=Z;X<$;X++){let Y,Q,K="",G=this.choices[X];if(X===Z&&Z>0)Q=d9.arrowUp;else if(X===$-1&&$<this.choices.length)Q=d9.arrowDown;else Q=" ";if(G.disabled)Y=this.cursor===X?p6.gray().underline(G.title):p6.strikethrough().gray(G.title),Q=(this.cursor===X?p6.bold().gray(d9.pointer)+" ":" ")+Q;else if(Y=this.cursor===X?p6.cyan().underline(G.title):G.title,Q=(this.cursor===X?p6.cyan(d9.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"+RC(G.description,{margin:3,width:this.out.columns})}this.outputText+=`${Q} ${Y}${p6.gray(K)}\n`}}this.out.write(this.outputText)}}SF.exports=hF});var bF=V((Lo,xF)=>{var c9=j1(),IC=c6(),_F=X6(),kF=_F.style,NC=_F.clear,fF=L1(),yF=fF.cursor,BC=fF.erase;class vF extends IC{constructor(J={}){super(J);this.msg=J.message,this.value=!!J.initial,this.active=J.active||"on",this.inactive=J.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()}_(J,Z){if(J===" ")this.value=!this.value;else if(J==="1")this.value=!0;else if(J==="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(NC(this.outputText,this.out.columns));super.render(),this.outputText=[kF.symbol(this.done,this.aborted),c9.bold(this.msg),kF.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(BC.line+yF.to(0)+this.outputText)}}xF.exports=vF});var P6=V((wo,gF)=>{class p9{constructor({token:J,date:Z,parts:$,locales:X}){this.token=J,this.date=Z||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const J=this.parts.indexOf(this);return this.parts.find((Z,$)=>$>J&&Z instanceof p9)}setTo(J){}prev(){let J=[].concat(this.parts).reverse();const Z=J.indexOf(this);return J.find(($,X)=>X>Z&&$ instanceof p9)}toString(){return String(this.date)}}gF.exports=p9});var dF=V((Ro,uF)=>{var EC=P6();class mF extends EC{constructor(J={}){super(J)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let J=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?J.toUpperCase():J}}uF.exports=mF});var lF=V((Do,pF)=>{var CC=P6(),hC=(J)=>{return J=J%10,J===1?"st":J===2?"nd":J===3?"rd":"th"};class cF extends CC{constructor(J={}){super(J)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(J){this.date.setDate(parseInt(J.substr(-2)))}toString(){let J=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String(J).padStart(2,"0"):this.token==="Do"?J+hC(J):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:J}}pF.exports=cF});var sF=V((Po,iF)=>{var SC=P6();class aF extends SC{constructor(J={}){super(J)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(J){this.date.setHours(parseInt(J.substr(-2)))}toString(){let J=this.date.getHours();if(/h/.test(this.token))J=J%12||12;return this.token.length>1?String(J).padStart(2,"0"):J}}iF.exports=aF});var rF=V((To,tF)=>{var OC=P6();class nF extends OC{constructor(J={}){super(J)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(J){this.date.setMilliseconds(parseInt(J.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}tF.exports=nF});var Jq=V((Io,eF)=>{var kC=P6();class oF extends kC{constructor(J={}){super(J)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(J){this.date.setMinutes(parseInt(J.substr(-2)))}toString(){let J=this.date.getMinutes();return this.token.length>1?String(J).padStart(2,"0"):J}}eF.exports=oF});var Xq=V((No,$q)=>{var yC=P6();class Zq extends yC{constructor(J={}){super(J)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(J){J=parseInt(J.substr(-2))-1,this.date.setMonth(J<0?0:J)}toString(){let J=this.date.getMonth(),Z=this.token.length;return Z===2?String(J+1).padStart(2,"0"):Z===3?this.locales.monthsShort[J]:Z===4?this.locales.months[J]:String(J+1)}}$q.exports=Zq});var Kq=V((Bo,Qq)=>{var _C=P6();class Yq extends _C{constructor(J={}){super(J)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(J){this.date.setSeconds(parseInt(J.substr(-2)))}toString(){let J=this.date.getSeconds();return this.token.length>1?String(J).padStart(2,"0"):J}}Qq.exports=Yq});var qq=V((Eo,Fq)=>{var fC=P6();class Gq extends fC{constructor(J={}){super(J)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(J){this.date.setFullYear(J.substr(-4))}toString(){let J=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?J.substr(-2):J}}Fq.exports=Gq});var Hq=V((Co,Wq)=>{Wq.exports={DatePart:P6(),Meridiem:dF(),Day:lF(),Hours:sF(),Milliseconds:rF(),Minutes:Jq(),Month:Xq(),Seconds:Kq(),Year:qq()}});var Pq=V((ho,Dq)=>{var Vq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},zq=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){Vq(Q,X,Y,K,G,"next",F)}function G(F){Vq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},y$=j1(),vC=c6(),_$=X6(),Uq=_$.style,Mq=_$.clear,xC=_$.figures,wq=L1(),bC=wq.erase,jq=wq.cursor,l6=Hq(),Aq=l6.DatePart,gC=l6.Meridiem,mC=l6.Day,uC=l6.Hours,dC=l6.Milliseconds,cC=l6.Minutes,pC=l6.Month,lC=l6.Seconds,aC=l6.Year,iC=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,Lq={1:({token:J})=>J.replace(/\\(.)/g,"$1"),2:(J)=>new mC(J),3:(J)=>new pC(J),4:(J)=>new aC(J),5:(J)=>new gC(J),6:(J)=>new uC(J),7:(J)=>new cC(J),8:(J)=>new lC(J),9:(J)=>new dC(J)},sC={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 Rq extends vC{constructor(J={}){super(J);this.msg=J.message,this.cursor=0,this.typed="",this.locales=Object.assign(sC,J.locales),this._date=J.initial||new Date,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.mask=J.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Mq("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(J){if(J)this._date.setTime(J.getTime())}set mask(J){let Z;this.parts=[];while(Z=iC.exec(J)){let X=Z.shift(),Y=Z.findIndex((Q)=>Q!=null);this.parts.push(Y in Lq?Lq[Y]({token:Z[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):Z[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(J){this.typed="",this.cursor=J,this.fire()}reset(){this.moveCursor(this.parts.findIndex((J)=>J instanceof Aq)),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 J=this;return zq(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return zq(function*(){if(yield J.validate(),J.error){J.color="red",J.fire(),J.render();return}J.done=!0,J.aborted=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let J=this.parts[this.cursor].prev();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}right(){let J=this.parts[this.cursor].next();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}next(){let J=this.parts[this.cursor].next();this.moveCursor(J?this.parts.indexOf(J):this.parts.findIndex((Z)=>Z instanceof Aq)),this.render()}_(J){if(/\d/.test(J))this.typed+=J,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(jq.hide);else this.out.write(Mq(this.outputText,this.out.columns));if(super.render(),this.outputText=[Uq.symbol(this.done,this.aborted),y$.bold(this.msg),Uq.delimiter(!1),this.parts.reduce((J,Z,$)=>J.concat($===this.cursor&&!this.done?y$.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":xC.pointerSmall} ${y$.red().italic(Z)}`,"");this.out.write(bC.line+jq.to(0)+this.outputText)}}Dq.exports=Rq});var Sq=V((So,hq)=>{var Tq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Iq=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){Tq(Q,X,Y,K,G,"next",F)}function G(F){Tq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},l9=j1(),nC=c6(),Eq=L1(),a9=Eq.cursor,tC=Eq.erase,i9=X6(),f$=i9.style,rC=i9.figures,Nq=i9.clear,oC=i9.lines,eC=/[0-9]/,v$=(J)=>J!==void 0,Bq=(J,Z)=>{let $=Math.pow(10,Z);return Math.round(J*$)/$};class Cq extends nC{constructor(J={}){super(J);this.transform=f$.render(J.style),this.msg=J.message,this.initial=v$(J.initial)?J.initial:"",this.float=!!J.float,this.round=J.round||2,this.inc=J.increment||1,this.min=v$(J.min)?J.min:(-Infinity),this.max=v$(J.max)?J.max:Infinity,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(J){if(!J&&J!==0)this.placeholder=!0,this.rendered=l9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${Bq(J,this.round)}`),this._value=Bq(J,this.round);this.fire()}get value(){return this._value}parse(J){return this.float?parseFloat(J):parseInt(J)}valid(J){return J==="-"||J==="."&&this.float||eC.test(J)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let J=this.value;this.value=J!==""?J:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return Iq(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return Iq(function*(){if(yield J.validate(),J.error){J.color="red",J.fire(),J.render();return}let Z=J.value;J.value=Z!==""?Z:J.initial,J.done=!0,J.aborted=!1,J.error=!1,J.fire(),J.render(),J.out.write("\n"),J.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 J=this.value.toString();if(J.length===0)return this.bell();if(this.value=this.parse(J=J.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()}_(J,Z){if(!this.valid(J))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=J,this.lastHit=$,this.color="cyan",J===".")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(a9.down(oC(this.outputError,this.out.columns)-1)+Nq(this.outputError,this.out.columns));this.out.write(Nq(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[f$.symbol(this.done,this.aborted),l9.bold(this.msg),f$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?l9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":rC.pointerSmall} ${l9.red().italic(Z)}`,"");this.out.write(tC.line+a9.to(0)+this.outputText+a9.save+this.outputError+a9.restore)}}hq.exports=Cq});var x$=V((Oo,_q)=>{var T6=j1(),J2=L1(),Z2=J2.cursor,$2=c6(),Q5=X6(),Oq=Q5.clear,R8=Q5.figures,kq=Q5.style,X2=Q5.wrap,Y2=Q5.entriesToDisplay;class yq extends $2{constructor(J={}){super(J);if(this.msg=J.message,this.cursor=J.cursor||0,this.scrollIndex=J.cursor||0,this.hint=J.hint||"",this.warn=J.warn||"- This option is disabled -",this.minSelected=J.min,this.showMinError=!1,this.maxChoices=J.max,this.instructions=J.instructions,this.optionsPerPage=J.optionsPerPage||10,this.value=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?$:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=Oq("",this.out.columns),!J.overrideRender)this.render()}reset(){this.value.map((J)=>!J.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((J)=>J.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const J=this.value.filter((Z)=>Z.selected);if(this.minSelected&&J.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((J)=>J.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const J=this.value[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const J=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=J),this.render()}_(J,Z){if(J===" ")this.handleSpaceToggle();else if(J==="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"+` ${R8.arrowUp}/${R8.arrowDown}: Highlight option\n`+` ${R8.arrowLeft}/${R8.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(J,Z,$,X){const Y=(Z.selected?T6.green(R8.radioOn):R8.radioOff)+" "+X+" ";let Q,K;if(Z.disabled)Q=J===$?T6.gray().underline(Z.title):T6.strikethrough().gray(Z.title);else if(Q=J===$?T6.cyan().underline(Z.title):Z.title,J===$&&Z.description){if(K=` - ${Z.description}`,Y.length+Q.length+K.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)K="\n"+X2(Z.description,{margin:Y.length,width:this.out.columns})}return Y+Q+T6.gray(K||"")}paginateOptions(J){if(J.length===0)return T6.red("No matches for this query.");let Z=Y2(this.cursor,J.length,this.optionsPerPage),$=Z.startIndex,X=Z.endIndex,Y,Q=[];for(let K=$;K<X;K++){if(K===$&&$>0)Y=R8.arrowUp;else if(K===X-1&&X<J.length)Y=R8.arrowDown;else Y=" ";Q.push(this.renderOption(this.cursor,J[K],K,Y))}return"\n"+Q.join("\n")}renderOptions(J){if(!this.done)return this.paginateOptions(J);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[T6.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)J.push(T6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(Z2.hide);super.render();let J=[kq.symbol(this.done,this.aborted),T6.bold(this.msg),kq.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=T6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.value),this.out.write(this.clear+J),this.clear=Oq(J,this.out.columns)}}_q.exports=yq});var dq=V((ko,uq)=>{var fq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Q2=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){fq(Q,X,Y,K,G,"next",F)}function G(F){fq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},K5=j1(),K2=c6(),gq=L1(),G2=gq.erase,vq=gq.cursor,G5=X6(),b$=G5.style,xq=G5.clear,g$=G5.figures,F2=G5.wrap,q2=G5.entriesToDisplay,bq=(J,Z)=>J[Z]&&(J[Z].value||J[Z].title||J[Z]),W2=(J,Z)=>J[Z]&&(J[Z].title||J[Z].value||J[Z]),H2=(J,Z)=>{const $=J.findIndex((X)=>X.value===Z||X.title===Z);return $>-1?$:void 0};class mq extends K2{constructor(J={}){super(J);this.msg=J.message,this.suggest=J.suggest,this.choices=J.choices,this.initial=typeof J.initial==="number"?J.initial:H2(J.choices,J.initial),this.select=this.initial||J.cursor||0,this.i18n={noMatches:J.noMatches||"no matches found"},this.fallback=J.fallback||this.initial,this.clearFirst=J.clearFirst||!1,this.suggestions=[],this.input="",this.limit=J.limit||10,this.cursor=0,this.transform=b$.render(J.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=xq("",this.out.columns),this.complete(this.render),this.render()}set fallback(J){this._fb=Number.isSafeInteger(parseInt(J))?parseInt(J):J}get fallback(){let J;if(typeof this._fb==="number")J=this.choices[this._fb];else if(typeof this._fb==="string")J={title:this._fb};return J||this._fb||{title:this.i18n.noMatches}}moveSelect(J){if(this.select=J,this.suggestions.length>0)this.value=bq(this.suggestions,J);else this.value=this.fallback.value;this.fire()}complete(J){var Z=this;return Q2(function*(){const $=Z.completing=Z.suggest(Z.input,Z.choices),X=yield $;if(Z.completing!==$)return;Z.suggestions=X.map((Q,K,G)=>({title:W2(G,K),value:bq(G,K),description:Q.description})),Z.completing=!1;const Y=Math.max(X.length-1,0);Z.moveSelect(Math.min(Y,Z.select)),J&&J()})()}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()}_(J,Z){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${J}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let J=this.input.slice(0,this.cursor-1),Z=this.input.slice(this.cursor);this.input=`${J}${Z}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let J=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${J}${Z}`,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(J,Z,$,X){let Y,Q=$?g$.arrowUp:X?g$.arrowDown:" ",K=Z?K5.cyan().underline(J.title):J.title;if(Q=(Z?K5.cyan(g$.pointer)+" ":" ")+Q,J.description){if(Y=` - ${J.description}`,Q.length+K.length+Y.length>=this.out.columns||J.description.split(/\r?\n/).length>1)Y="\n"+F2(J.description,{margin:3,width:this.out.columns})}return Q+" "+K+K5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(vq.hide);else this.out.write(xq(this.outputText,this.out.columns));super.render();let J=q2(this.select,this.choices.length,this.limit),Z=J.startIndex,$=J.endIndex;if(this.outputText=[b$.symbol(this.done,this.aborted,this.exited),K5.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 X=this.suggestions.slice(Z,$).map((Y,Q)=>this.renderOption(Y,this.select===Q+Z,Q===0&&Z>0,Q+Z===$-1&&$<this.choices.length)).join("\n");this.outputText+="\n"+(X||K5.gray(this.fallback.title))}this.out.write(G2.line+vq.to(0)+this.outputText)}}uq.exports=mq});var iq=V((yo,aq)=>{var a6=j1(),V2=L1(),z2=V2.cursor,U2=x$(),m$=X6(),cq=m$.clear,pq=m$.style,p4=m$.figures;class lq extends U2{constructor(J={}){J.overrideRender=!0;super(J);this.inputValue="",this.clear=cq("",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((J)=>J.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 J=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 Z=this.filteredOptions.findIndex(($)=>$===J);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){const J=this.filteredOptions[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}handleInputChange(J){this.inputValue=this.inputValue+J,this.updateFilteredOptions()}_(J,Z){if(J===" ")this.handleSpaceToggle();else this.handleInputChange(J)}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
- ${p4.arrowUp}/${p4.arrowDown}: Highlight option
5
- ${p4.arrowLeft}/${p4.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:a6.gray("Enter something to filter")}\n`}renderOption(J,Z,$){let X;if(Z.disabled)X=J===$?a6.gray().underline(Z.title):a6.strikethrough().gray(Z.title);else X=J===$?a6.cyan().underline(Z.title):Z.title;return(Z.selected?a6.green(p4.radioOn):p4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[a6.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)J.push(a6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(z2.hide);super.render();let J=[pq.symbol(this.done,this.aborted),a6.bold(this.msg),pq.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=a6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+J),this.clear=cq(J,this.out.columns)}}aq.exports=lq});var ZW=V((_o,JW)=>{var sq=j1(),M2=c6(),rq=X6(),nq=rq.style,j2=rq.clear,oq=L1(),A2=oq.erase,tq=oq.cursor;class eq extends M2{constructor(J={}){super(J);this.msg=J.message,this.value=J.initial,this.initialValue=!!J.initial,this.yesMsg=J.yes||"yes",this.yesOption=J.yesOption||"(Y/n)",this.noMsg=J.no||"no",this.noOption=J.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()}_(J,Z){if(J.toLowerCase()==="y")return this.value=!0,this.submit();if(J.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(tq.hide);else this.out.write(j2(this.outputText,this.out.columns));super.render(),this.outputText=[nq.symbol(this.done,this.aborted),sq.bold(this.msg),nq.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:sq.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(A2.line+tq.to(0)+this.outputText)}}JW.exports=eq});var XW=V((fo,$W)=>{$W.exports={TextPrompt:BF(),SelectPrompt:OF(),TogglePrompt:bF(),DatePrompt:Pq(),NumberPrompt:Sq(),MultiselectPrompt:x$(),AutocompletePrompt:dq(),AutocompleteMultiselectPrompt:iq(),ConfirmPrompt:ZW()}});var QW=V((YW)=>{var I6=function(J,Z,$={}){return new Promise((X,Y)=>{const Q=new L2[J](Z),K=$.onAbort||s9,G=$.onSubmit||s9,F=$.onExit||s9;Q.on("state",Z.onState||s9),Q.on("submit",(q)=>X(G(q))),Q.on("exit",(q)=>X(F(q))),Q.on("abort",(q)=>Y(K(q)))})},M0=YW,L2=XW(),s9=(J)=>J;M0.text=(J)=>I6("TextPrompt",J);M0.password=(J)=>{return J.style="password",M0.text(J)};M0.invisible=(J)=>{return J.style="invisible",M0.text(J)};M0.number=(J)=>I6("NumberPrompt",J);M0.date=(J)=>I6("DatePrompt",J);M0.confirm=(J)=>I6("ConfirmPrompt",J);M0.list=(J)=>{const Z=J.separator||",";return I6("TextPrompt",J,{onSubmit:($)=>$.split(Z).map((X)=>X.trim())})};M0.toggle=(J)=>I6("TogglePrompt",J);M0.select=(J)=>I6("SelectPrompt",J);M0.multiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return I6("MultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};M0.autocompleteMultiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return I6("AutocompleteMultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};var w2=(J,Z)=>Promise.resolve(Z.filter(($)=>$.title.slice(0,J.length).toLowerCase()===J.toLowerCase()));M0.autocomplete=(J)=>{return J.suggest=J.suggest||w2,J.choices=[].concat(J.choices||[]),I6("AutocompletePrompt",J)}});var zW=V((xo,VW)=>{var KW=function(J,Z){var $=Object.keys(J);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(J);if(Z)X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(J,Y).enumerable});$.push.apply($,X)}return $},GW=function(J){for(var Z=1;Z<arguments.length;Z++){var $=arguments[Z]!=null?arguments[Z]:{};if(Z%2)KW(Object($),!0).forEach(function(X){R2(J,X,$[X])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(J,Object.getOwnPropertyDescriptors($));else KW(Object($)).forEach(function(X){Object.defineProperty(J,X,Object.getOwnPropertyDescriptor($,X))})}return J},R2=function(J,Z,$){if(Z in J)Object.defineProperty(J,Z,{value:$,enumerable:!0,configurable:!0,writable:!0});else J[Z]=$;return J},D2=function(J,Z){var $=typeof Symbol!=="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(!$){if(Array.isArray(J)||($=P2(J))||Z&&J&&typeof J.length==="number"){if($)J=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=J.length)return{done:!0};return{done:!1,value:J[X++]}},e:function F(q){throw q},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(J)},n:function F(){var q=$.next();return Q=q.done,q},e:function F(q){K=!0,G=q},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},P2=function(J,Z){if(!J)return;if(typeof J==="string")return FW(J,Z);var $=Object.prototype.toString.call(J).slice(8,-1);if($==="Object"&&J.constructor)$=J.constructor.name;if($==="Map"||$==="Set")return Array.from(J);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return FW(J,Z)},FW=function(J,Z){if(Z==null||Z>J.length)Z=J.length;for(var $=0,X=new Array(Z);$<Z;$++)X[$]=J[$];return X},qW=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},WW=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){qW(Q,X,Y,K,G,"next",F)}function G(F){qW(Q,X,Y,K,G,"throw",F)}K(void 0)})}},D8=function(){return d$.apply(this,arguments)},d$=function(){return d$=WW(function*(J=[],{onSubmit:Z=HW,onCancel:$=HW}={}){const X={},Y=D8._override||{};J=[].concat(J);let Q,K,G,F,q,W;const H=function(){var T=WW(function*(w,N,P=!1){if(!P&&w.validate&&w.validate(N)!==!0)return;return w.format?yield w.format(N,X):N});return function w(N,P){return T.apply(this,arguments)}}();var U=D2(J),j;try{for(U.s();!(j=U.n()).done;){K=j.value;var z=K;if(F=z.name,q=z.type,typeof q==="function")q=yield q(Q,GW({},X),K),K.type=q;if(!q)continue;for(let T in K){if(T2.includes(T))continue;let w=K[T];K[T]=typeof w==="function"?yield w(Q,GW({},X),W):w}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");var A=K;if(F=A.name,q=A.type,u$[q]===void 0)throw new Error(`prompt type (${q}) 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=D8._injected?I2(D8._injected,K.initial):yield u$[q](K),X[F]=Q=yield H(K,Q,!0),G=yield Z(K,Q,X)}catch(T){G=!(yield $(K,X))}if(G)return X}}catch(T){U.e(T)}finally{U.f()}return X}),d$.apply(this,arguments)},I2=function(J,Z){const $=J.shift();if($ instanceof Error)throw $;return $===void 0?Z:$},N2=function(J){D8._injected=(D8._injected||[]).concat(J)},B2=function(J){D8._override=Object.assign({},J)},u$=QW(),T2=["suggest","format","onState","validate","onRender","type"],HW=()=>{};VW.exports=Object.assign(D8,{prompt:D8,prompts:u$,inject:N2,override:B2})});var MW=V((bo,UW)=>{UW.exports=(J,Z)=>{if(J.meta&&J.name!=="escape")return;if(J.ctrl){if(J.name==="a")return"first";if(J.name==="c")return"abort";if(J.name==="d")return"abort";if(J.name==="e")return"last";if(J.name==="g")return"reset"}if(Z){if(J.name==="j")return"down";if(J.name==="k")return"up"}if(J.name==="return")return"submit";if(J.name==="enter")return"submit";if(J.name==="backspace")return"delete";if(J.name==="delete")return"deleteForward";if(J.name==="abort")return"abort";if(J.name==="escape")return"exit";if(J.name==="tab")return"next";if(J.name==="pagedown")return"nextPage";if(J.name==="pageup")return"prevPage";if(J.name==="home")return"home";if(J.name==="end")return"end";if(J.name==="up")return"up";if(J.name==="down")return"down";if(J.name==="right")return"right";if(J.name==="left")return"left";return!1}});var n9=V((go,jW)=>{jW.exports=(J)=>{const Z=["[\\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(Z,"g");return typeof J==="string"?J.replace($,""):J}});var wW=V((mo,LW)=>{var E2=n9(),{erase:AW,cursor:C2}=L1(),h2=(J)=>[...E2(J)].length;LW.exports=function(J,Z){if(!Z)return AW.line+C2.to(0);let $=0;const X=J.split(/\r?\n/);for(let Y of X)$+=1+Math.floor(Math.max(h2(Y)-1,0)/Z);return AW.lines($)}});var c$=V((uo,RW)=>{var F5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},S2={arrowUp:F5.arrowUp,arrowDown:F5.arrowDown,arrowLeft:F5.arrowLeft,arrowRight:F5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},O2=process.platform==="win32"?S2:F5;RW.exports=O2});var PW=V((co,DW)=>{var l4=j1(),Q4=c$(),p$=Object.freeze({password:{scale:1,render:(J)=>"*".repeat(J.length)},emoji:{scale:2,render:(J)=>"\uD83D\uDE03".repeat(J.length)},invisible:{scale:0,render:(J)=>""},default:{scale:1,render:(J)=>`${J}`}}),k2=(J)=>p$[J]||p$.default,q5=Object.freeze({aborted:l4.red(Q4.cross),done:l4.green(Q4.tick),exited:l4.yellow(Q4.cross),default:l4.cyan("?")}),y2=(J,Z,$)=>Z?q5.aborted:$?q5.exited:J?q5.done:q5.default,_2=(J)=>l4.gray(J?Q4.ellipsis:Q4.pointerSmall),f2=(J,Z)=>l4.gray(J?Z?Q4.pointerSmall:"+":Q4.line);DW.exports={styles:p$,render:k2,symbols:q5,symbol:y2,delimiter:_2,item:f2}});var IW=V((po,TW)=>{var v2=n9();TW.exports=function(J,Z){let $=String(v2(J)||"").split(/\r?\n/);if(!Z)return $.length;return $.map((X)=>Math.ceil(X.length/Z)).reduce((X,Y)=>X+Y)}});var BW=V((lo,NW)=>{NW.exports=(J,Z={})=>{const $=Number.isSafeInteger(parseInt(Z.margin))?new Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",X=Z.width;return(J||"").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 CW=V((ao,EW)=>{EW.exports=(J,Z,$)=>{$=$||Z;let X=Math.min(Z-$,J-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,Z);return{startIndex:X,endIndex:Y}}});var Y6=V((io,hW)=>{hW.exports={action:MW(),clear:wW(),style:PW(),strip:n9(),figures:c$(),lines:IW(),wrap:BW(),entriesToDisplay:CW()}});var i6=V((so,kW)=>{var SW=import.meta.require("readline"),{action:x2}=Y6(),b2=import.meta.require("events"),{beep:g2,cursor:m2}=L1(),u2=j1();class OW extends b2{constructor(J={}){super();this.firstRender=!0,this.in=J.stdin||process.stdin,this.out=J.stdout||process.stdout,this.onRender=(J.onRender||(()=>{return})).bind(this);const Z=SW.createInterface({input:this.in,escapeCodeTimeout:50});if(SW.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=x2(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(m2.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);Z.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(g2)}render(){if(this.onRender(u2),this.firstRender)this.firstRender=!1}}kW.exports=OW});var fW=V((no,_W)=>{var t9=j1(),d2=i6(),{erase:c2,cursor:W5}=L1(),{style:l$,clear:a$,lines:p2,figures:l2}=Y6();class yW extends d2{constructor(J={}){super(J);this.transform=l$.render(J.style),this.scale=this.transform.scale,this.msg=J.message,this.initial=J.initial||"",this.validator=J.validate||(()=>!0),this.value="",this.errorMsg=J.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=a$("",this.out.columns),this.render()}set value(J){if(!J&&this.initial)this.placeholder=!0,this.rendered=t9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(J);this._value=J,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 J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}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(J){if(this.placeholder)return;this.cursor=this.cursor+J,this.cursorOffset+=J}_(J,Z){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${J}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let J=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${J}${Z}`,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 J=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${J}${Z}`,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(W5.down(p2(this.outputError,this.out.columns)-1)+a$(this.outputError,this.out.columns));this.out.write(a$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[l$.symbol(this.done,this.aborted),t9.bold(this.msg),l$.delimiter(this.done),this.red?t9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":l2.pointerSmall} ${t9.red().italic(Z)}`,"");this.out.write(c2.line+W5.to(0)+this.outputText+W5.save+this.outputError+W5.restore+W5.move(this.cursorOffset,0))}}_W.exports=yW});var mW=V((to,gW)=>{var s6=j1(),a2=i6(),{style:vW,clear:xW,figures:r9,wrap:i2,entriesToDisplay:s2}=Y6(),{cursor:n2}=L1();class bW extends a2{constructor(J={}){super(J);this.msg=J.message,this.hint=J.hint||"- Use arrow-keys. Return to submit.",this.warn=J.warn||"- This option is disabled",this.cursor=J.initial||0,this.choices=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?$:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=J.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=xW("",this.out.columns),this.render()}moveCursor(J){this.cursor=J,this.value=this.choices[J].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()}_(J,Z){if(J===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(n2.hide);else this.out.write(xW(this.outputText,this.out.columns));super.render();let{startIndex:J,endIndex:Z}=s2(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[vW.symbol(this.done,this.aborted),s6.bold(this.msg),vW.delimiter(!1),this.done?this.selection.title:this.selection.disabled?s6.yellow(this.warn):s6.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let $=J;$<Z;$++){let X,Y,Q="",K=this.choices[$];if($===J&&J>0)Y=r9.arrowUp;else if($===Z-1&&Z<this.choices.length)Y=r9.arrowDown;else Y=" ";if(K.disabled)X=this.cursor===$?s6.gray().underline(K.title):s6.strikethrough().gray(K.title),Y=(this.cursor===$?s6.bold().gray(r9.pointer)+" ":" ")+Y;else if(X=this.cursor===$?s6.cyan().underline(K.title):K.title,Y=(this.cursor===$?s6.cyan(r9.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"+i2(K.description,{margin:3,width:this.out.columns})}this.outputText+=`${Y} ${X}${s6.gray(Q)}\n`}}this.out.write(this.outputText)}}gW.exports=bW});var lW=V((ro,pW)=>{var o9=j1(),t2=i6(),{style:uW,clear:r2}=Y6(),{cursor:dW,erase:o2}=L1();class cW extends t2{constructor(J={}){super(J);this.msg=J.message,this.value=!!J.initial,this.active=J.active||"on",this.inactive=J.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()}_(J,Z){if(J===" ")this.value=!this.value;else if(J==="1")this.value=!0;else if(J==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(dW.hide);else this.out.write(r2(this.outputText,this.out.columns));super.render(),this.outputText=[uW.symbol(this.done,this.aborted),o9.bold(this.msg),uW.delimiter(this.done),this.value?this.inactive:o9.cyan().underline(this.inactive),o9.gray("/"),this.value?o9.cyan().underline(this.active):this.active].join(" "),this.out.write(o2.line+dW.to(0)+this.outputText)}}pW.exports=cW});var N6=V((oo,aW)=>{class e9{constructor({token:J,date:Z,parts:$,locales:X}){this.token=J,this.date=Z||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const J=this.parts.indexOf(this);return this.parts.find((Z,$)=>$>J&&Z instanceof e9)}setTo(J){}prev(){let J=[].concat(this.parts).reverse();const Z=J.indexOf(this);return J.find(($,X)=>X>Z&&$ instanceof e9)}toString(){return String(this.date)}}aW.exports=e9});var nW=V((eo,sW)=>{var e2=N6();class iW extends e2{constructor(J={}){super(J)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let J=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?J.toUpperCase():J}}sW.exports=iW});var oW=V((Je,rW)=>{var Jh=N6(),Zh=(J)=>{return J=J%10,J===1?"st":J===2?"nd":J===3?"rd":"th"};class tW extends Jh{constructor(J={}){super(J)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(J){this.date.setDate(parseInt(J.substr(-2)))}toString(){let J=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String(J).padStart(2,"0"):this.token==="Do"?J+Zh(J):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:J}}rW.exports=tW});var ZH=V((Ze,JH)=>{var $h=N6();class eW extends $h{constructor(J={}){super(J)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(J){this.date.setHours(parseInt(J.substr(-2)))}toString(){let J=this.date.getHours();if(/h/.test(this.token))J=J%12||12;return this.token.length>1?String(J).padStart(2,"0"):J}}JH.exports=eW});var YH=V(($e,XH)=>{var Xh=N6();class $H extends Xh{constructor(J={}){super(J)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(J){this.date.setMilliseconds(parseInt(J.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}XH.exports=$H});var GH=V((Xe,KH)=>{var Yh=N6();class QH extends Yh{constructor(J={}){super(J)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(J){this.date.setMinutes(parseInt(J.substr(-2)))}toString(){let J=this.date.getMinutes();return this.token.length>1?String(J).padStart(2,"0"):J}}KH.exports=QH});var WH=V((Ye,qH)=>{var Qh=N6();class FH extends Qh{constructor(J={}){super(J)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(J){J=parseInt(J.substr(-2))-1,this.date.setMonth(J<0?0:J)}toString(){let J=this.date.getMonth(),Z=this.token.length;return Z===2?String(J+1).padStart(2,"0"):Z===3?this.locales.monthsShort[J]:Z===4?this.locales.months[J]:String(J+1)}}qH.exports=FH});var zH=V((Qe,VH)=>{var Kh=N6();class HH extends Kh{constructor(J={}){super(J)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(J){this.date.setSeconds(parseInt(J.substr(-2)))}toString(){let J=this.date.getSeconds();return this.token.length>1?String(J).padStart(2,"0"):J}}VH.exports=HH});var jH=V((Ke,MH)=>{var Gh=N6();class UH extends Gh{constructor(J={}){super(J)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(J){this.date.setFullYear(J.substr(-4))}toString(){let J=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?J.substr(-2):J}}MH.exports=UH});var LH=V((Ge,AH)=>{AH.exports={DatePart:N6(),Meridiem:nW(),Day:oW(),Hours:ZH(),Milliseconds:YH(),Minutes:GH(),Month:WH(),Seconds:zH(),Year:jH()}});var BH=V((Fe,NH)=>{var i$=j1(),Fh=i6(),{style:wH,clear:RH,figures:qh}=Y6(),{erase:Wh,cursor:DH}=L1(),{DatePart:PH,Meridiem:Hh,Day:Vh,Hours:zh,Milliseconds:Uh,Minutes:Mh,Month:jh,Seconds:Ah,Year:Lh}=LH(),wh=/\\(.)|"((?:\\["\\]|[^"])+)"|(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:J})=>J.replace(/\\(.)/g,"$1"),2:(J)=>new Vh(J),3:(J)=>new jh(J),4:(J)=>new Lh(J),5:(J)=>new Hh(J),6:(J)=>new zh(J),7:(J)=>new Mh(J),8:(J)=>new Ah(J),9:(J)=>new Uh(J)},Rh={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 Fh{constructor(J={}){super(J);this.msg=J.message,this.cursor=0,this.typed="",this.locales=Object.assign(Rh,J.locales),this._date=J.initial||new Date,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.mask=J.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(J){if(J)this._date.setTime(J.getTime())}set mask(J){let Z;this.parts=[];while(Z=wh.exec(J)){let X=Z.shift(),Y=Z.findIndex((Q)=>Q!=null);this.parts.push(Y in TH?TH[Y]({token:Z[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):Z[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(J){this.typed="",this.cursor=J,this.fire()}reset(){this.moveCursor(this.parts.findIndex((J)=>J instanceof PH)),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 J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}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 J=this.parts[this.cursor].prev();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}right(){let J=this.parts[this.cursor].next();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}next(){let J=this.parts[this.cursor].next();this.moveCursor(J?this.parts.indexOf(J):this.parts.findIndex((Z)=>Z instanceof PH)),this.render()}_(J){if(/\d/.test(J))this.typed+=J,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(DH.hide);else this.out.write(RH(this.outputText,this.out.columns));if(super.render(),this.outputText=[wH.symbol(this.done,this.aborted),i$.bold(this.msg),wH.delimiter(!1),this.parts.reduce((J,Z,$)=>J.concat($===this.cursor&&!this.done?i$.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":qh.pointerSmall} ${i$.red().italic(Z)}`,"");this.out.write(Wh.line+DH.to(0)+this.outputText)}}NH.exports=IH});var OH=V((qe,SH)=>{var JJ=j1(),Dh=i6(),{cursor:ZJ,erase:Ph}=L1(),{style:s$,figures:Th,clear:EH,lines:Ih}=Y6(),Nh=/[0-9]/,n$=(J)=>J!==void 0,CH=(J,Z)=>{let $=Math.pow(10,Z);return Math.round(J*$)/$};class hH extends Dh{constructor(J={}){super(J);this.transform=s$.render(J.style),this.msg=J.message,this.initial=n$(J.initial)?J.initial:"",this.float=!!J.float,this.round=J.round||2,this.inc=J.increment||1,this.min=n$(J.min)?J.min:(-Infinity),this.max=n$(J.max)?J.max:Infinity,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(J){if(!J&&J!==0)this.placeholder=!0,this.rendered=JJ.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${CH(J,this.round)}`),this._value=CH(J,this.round);this.fire()}get value(){return this._value}parse(J){return this.float?parseFloat(J):parseInt(J)}valid(J){return J==="-"||J==="."&&this.float||Nh.test(J)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let J=this.value;this.value=J!==""?J:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let J=this.value;this.value=J!==""?J: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 J=this.value.toString();if(J.length===0)return this.bell();if(this.value=this.parse(J=J.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()}_(J,Z){if(!this.valid(J))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=J,this.lastHit=$,this.color="cyan",J===".")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(ZJ.down(Ih(this.outputError,this.out.columns)-1)+EH(this.outputError,this.out.columns));this.out.write(EH(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[s$.symbol(this.done,this.aborted),JJ.bold(this.msg),s$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?JJ[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":Th.pointerSmall} ${JJ.red().italic(Z)}`,"");this.out.write(Ph.line+ZJ.to(0)+this.outputText+ZJ.save+this.outputError+ZJ.restore)}}SH.exports=hH});var t$=V((We,fH)=>{var B6=j1(),{cursor:Bh}=L1(),Eh=i6(),{clear:kH,figures:P8,style:yH,wrap:Ch,entriesToDisplay:hh}=Y6();class _H extends Eh{constructor(J={}){super(J);if(this.msg=J.message,this.cursor=J.cursor||0,this.scrollIndex=J.cursor||0,this.hint=J.hint||"",this.warn=J.warn||"- This option is disabled -",this.minSelected=J.min,this.showMinError=!1,this.maxChoices=J.max,this.instructions=J.instructions,this.optionsPerPage=J.optionsPerPage||10,this.value=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?$:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=kH("",this.out.columns),!J.overrideRender)this.render()}reset(){this.value.map((J)=>!J.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((J)=>J.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const J=this.value.filter((Z)=>Z.selected);if(this.minSelected&&J.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((J)=>J.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const J=this.value[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const J=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=J),this.render()}_(J,Z){if(J===" ")this.handleSpaceToggle();else if(J==="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"+` ${P8.arrowUp}/${P8.arrowDown}: Highlight option\n`+` ${P8.arrowLeft}/${P8.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(J,Z,$,X){const Y=(Z.selected?B6.green(P8.radioOn):P8.radioOff)+" "+X+" ";let Q,K;if(Z.disabled)Q=J===$?B6.gray().underline(Z.title):B6.strikethrough().gray(Z.title);else if(Q=J===$?B6.cyan().underline(Z.title):Z.title,J===$&&Z.description){if(K=` - ${Z.description}`,Y.length+Q.length+K.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)K="\n"+Ch(Z.description,{margin:Y.length,width:this.out.columns})}return Y+Q+B6.gray(K||"")}paginateOptions(J){if(J.length===0)return B6.red("No matches for this query.");let{startIndex:Z,endIndex:$}=hh(this.cursor,J.length,this.optionsPerPage),X,Y=[];for(let Q=Z;Q<$;Q++){if(Q===Z&&Z>0)X=P8.arrowUp;else if(Q===$-1&&$<J.length)X=P8.arrowDown;else X=" ";Y.push(this.renderOption(this.cursor,J[Q],Q,X))}return"\n"+Y.join("\n")}renderOptions(J){if(!this.done)return this.paginateOptions(J);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[B6.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)J.push(B6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(Bh.hide);super.render();let J=[yH.symbol(this.done,this.aborted),B6.bold(this.msg),yH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=B6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.value),this.out.write(this.clear+J),this.clear=kH(J,this.out.columns)}}fH.exports=_H});var uH=V((He,mH)=>{var H5=j1(),Sh=i6(),{erase:Oh,cursor:vH}=L1(),{style:r$,clear:xH,figures:o$,wrap:kh,entriesToDisplay:yh}=Y6(),bH=(J,Z)=>J[Z]&&(J[Z].value||J[Z].title||J[Z]),_h=(J,Z)=>J[Z]&&(J[Z].title||J[Z].value||J[Z]),fh=(J,Z)=>{const $=J.findIndex((X)=>X.value===Z||X.title===Z);return $>-1?$:void 0};class gH extends Sh{constructor(J={}){super(J);this.msg=J.message,this.suggest=J.suggest,this.choices=J.choices,this.initial=typeof J.initial==="number"?J.initial:fh(J.choices,J.initial),this.select=this.initial||J.cursor||0,this.i18n={noMatches:J.noMatches||"no matches found"},this.fallback=J.fallback||this.initial,this.clearFirst=J.clearFirst||!1,this.suggestions=[],this.input="",this.limit=J.limit||10,this.cursor=0,this.transform=r$.render(J.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=xH("",this.out.columns),this.complete(this.render),this.render()}set fallback(J){this._fb=Number.isSafeInteger(parseInt(J))?parseInt(J):J}get fallback(){let J;if(typeof this._fb==="number")J=this.choices[this._fb];else if(typeof this._fb==="string")J={title:this._fb};return J||this._fb||{title:this.i18n.noMatches}}moveSelect(J){if(this.select=J,this.suggestions.length>0)this.value=bH(this.suggestions,J);else this.value=this.fallback.value;this.fire()}async complete(J){const Z=this.completing=this.suggest(this.input,this.choices),$=await Z;if(this.completing!==Z)return;this.suggestions=$.map((Y,Q,K)=>({title:_h(K,Q),value:bH(K,Q),description:Y.description})),this.completing=!1;const X=Math.max($.length-1,0);this.moveSelect(Math.min(X,this.select)),J&&J()}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()}_(J,Z){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${J}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let J=this.input.slice(0,this.cursor-1),Z=this.input.slice(this.cursor);this.input=`${J}${Z}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let J=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${J}${Z}`,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(J,Z,$,X){let Y,Q=$?o$.arrowUp:X?o$.arrowDown:" ",K=Z?H5.cyan().underline(J.title):J.title;if(Q=(Z?H5.cyan(o$.pointer)+" ":" ")+Q,J.description){if(Y=` - ${J.description}`,Q.length+K.length+Y.length>=this.out.columns||J.description.split(/\r?\n/).length>1)Y="\n"+kh(J.description,{margin:3,width:this.out.columns})}return Q+" "+K+H5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(vH.hide);else this.out.write(xH(this.outputText,this.out.columns));super.render();let{startIndex:J,endIndex:Z}=yh(this.select,this.choices.length,this.limit);if(this.outputText=[r$.symbol(this.done,this.aborted,this.exited),H5.bold(this.msg),r$.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(J,Z).map((X,Y)=>this.renderOption(X,this.select===Y+J,Y===0&&J>0,Y+J===Z-1&&Z<this.choices.length)).join("\n");this.outputText+="\n"+($||H5.gray(this.fallback.title))}this.out.write(Oh.line+vH.to(0)+this.outputText)}}mH.exports=gH});var aH=V((Ve,lH)=>{var n6=j1(),{cursor:vh}=L1(),xh=t$(),{clear:dH,style:cH,figures:a4}=Y6();class pH extends xh{constructor(J={}){J.overrideRender=!0;super(J);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((J)=>J.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 J=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 Z=this.filteredOptions.findIndex(($)=>$===J);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){const J=this.filteredOptions[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}handleInputChange(J){this.inputValue=this.inputValue+J,this.updateFilteredOptions()}_(J,Z){if(J===" ")this.handleSpaceToggle();else this.handleInputChange(J)}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
- ${a4.arrowUp}/${a4.arrowDown}: Highlight option
12
- ${a4.arrowLeft}/${a4.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:n6.gray("Enter something to filter")}\n`}renderOption(J,Z,$){let X;if(Z.disabled)X=J===$?n6.gray().underline(Z.title):n6.strikethrough().gray(Z.title);else X=J===$?n6.cyan().underline(Z.title):Z.title;return(Z.selected?n6.green(a4.radioOn):a4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[n6.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)J.push(n6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(vh.hide);super.render();let J=[cH.symbol(this.done,this.aborted),n6.bold(this.msg),cH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=n6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+J),this.clear=dH(J,this.out.columns)}}lH.exports=pH});var oH=V((ze,rH)=>{var iH=j1(),bh=i6(),{style:sH,clear:gh}=Y6(),{erase:mh,cursor:nH}=L1();class tH extends bh{constructor(J={}){super(J);this.msg=J.message,this.value=J.initial,this.initialValue=!!J.initial,this.yesMsg=J.yes||"yes",this.yesOption=J.yesOption||"(Y/n)",this.noMsg=J.no||"no",this.noOption=J.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()}_(J,Z){if(J.toLowerCase()==="y")return this.value=!0,this.submit();if(J.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(gh(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(mh.line+nH.to(0)+this.outputText)}}rH.exports=tH});var JV=V((Ue,eH)=>{eH.exports={TextPrompt:fW(),SelectPrompt:mW(),TogglePrompt:lW(),DatePrompt:BH(),NumberPrompt:OH(),MultiselectPrompt:t$(),AutocompletePrompt:uH(),AutocompleteMultiselectPrompt:aH(),ConfirmPrompt:oH()}});var $V=V((ZV)=>{var E6=function(J,Z,$={}){return new Promise((X,Y)=>{const Q=new uh[J](Z),K=$.onAbort||$J,G=$.onSubmit||$J,F=$.onExit||$J;Q.on("state",Z.onState||$J),Q.on("submit",(q)=>X(G(q))),Q.on("exit",(q)=>X(F(q))),Q.on("abort",(q)=>Y(K(q)))})},j0=ZV,uh=JV(),$J=(J)=>J;j0.text=(J)=>E6("TextPrompt",J);j0.password=(J)=>{return J.style="password",j0.text(J)};j0.invisible=(J)=>{return J.style="invisible",j0.text(J)};j0.number=(J)=>E6("NumberPrompt",J);j0.date=(J)=>E6("DatePrompt",J);j0.confirm=(J)=>E6("ConfirmPrompt",J);j0.list=(J)=>{const Z=J.separator||",";return E6("TextPrompt",J,{onSubmit:($)=>$.split(Z).map((X)=>X.trim())})};j0.toggle=(J)=>E6("TogglePrompt",J);j0.select=(J)=>E6("SelectPrompt",J);j0.multiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E6("MultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};j0.autocompleteMultiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E6("AutocompleteMultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};var dh=(J,Z)=>Promise.resolve(Z.filter(($)=>$.title.slice(0,J.length).toLowerCase()===J.toLowerCase()));j0.autocomplete=(J)=>{return J.suggest=J.suggest||dh,J.choices=[].concat(J.choices||[]),E6("AutocompletePrompt",J)}});var QV=V((je,YV)=>{async function T8(J=[],{onSubmit:Z=XV,onCancel:$=XV}={}){const X={},Y=T8._override||{};J=[].concat(J);let Q,K,G,F,q,W;const H=async(U,j,z=!1)=>{if(!z&&U.validate&&U.validate(j)!==!0)return;return U.format?await U.format(j,X):j};for(K of J){if({name:F,type:q}=K,typeof q==="function")q=await q(Q,{...X},K),K.type=q;if(!q)continue;for(let U in K){if(ch.includes(U))continue;let j=K[U];K[U]=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:F,type:q}=K,e$[q]===void 0)throw new Error(`prompt type (${q}) 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=T8._injected?ph(T8._injected,K.initial):await e$[q](K),X[F]=Q=await H(K,Q,!0),G=await Z(K,Q,X)}catch(U){G=!await $(K,X)}if(G)return X}return X}var ph=function(J,Z){const $=J.shift();if($ instanceof Error)throw $;return $===void 0?Z:$},lh=function(J){T8._injected=(T8._injected||[]).concat(J)},ah=function(J){T8._override=Object.assign({},J)},e$=$V(),ch=["suggest","format","onState","validate","onRender","type"],XV=()=>{};YV.exports=Object.assign(T8,{prompt:T8,prompts:e$,inject:lh,override:ah})});var GV=V((Ae,KV)=>{var ih=function(J){J=(Array.isArray(J)?J:J.split(".")).map(Number);let Z=0,$=process.versions.node.split(".").map(Number);for(;Z<J.length;Z++){if($[Z]>J[Z])return!1;if(J[Z]>$[Z])return!0}return!1};KV.exports=ih("8.6.0")?zW():QV()});var L5=V((lS)=>{var PX=function(J){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(J))},q4=function(J){return Object.prototype.toString.call(J)==="[object Uint8Array]"},s4=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},TX=function(J){return Object.prototype.toString.call(J)==="[object Map]"},n4=function(J){return Object.prototype.toString.call(J)==="[object Date]"},B0=function(J,Z){return JSON.stringify(J,($,X)=>{if(typeof X==="bigint")return{$numberLong:`${X}`};else if(TX(X))return Object.fromEntries(X);return X})},th=function(J){if(J!=null&&typeof J==="object"&&"stylize"in J&&typeof J.stylize==="function")return J.stylize},JS=function(J){return I8.fromNumberArray(Array.from({length:J},()=>Math.floor(Math.random()*256)))},$S=function(){const{navigator:J}=globalThis;return typeof J==="object"&&J.product==="ReactNative"},XS=function(J){if(J<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${J}`);return o4.fromNumberArray(Array.from({length:J},()=>Math.floor(Math.random()*256)))},mV=function(J){return J!=null&&typeof J==="object"&&"$id"in J&&J.$id!=null&&"$ref"in J&&typeof J.$ref==="string"&&(!("$db"in J)||("$db"in J)&&typeof J.$db==="string")},RV=function(J){return!isNaN(parseInt(J,10))},LS=function(J){const Z=M.fromNumber(1e9);let $=M.fromNumber(0);if(!J.parts[0]&&!J.parts[1]&&!J.parts[2]&&!J.parts[3])return{quotient:J,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(J.parts[X],0)),J.parts[X]=$.div(Z).low,$=$.modulo(Z);return{quotient:J,rem:$}},wS=function(J,Z){if(!J&&!Z)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=J.shiftRightUnsigned(32),X=new M(J.getLowBits(),0),Y=Z.shiftRightUnsigned(32),Q=new M(Z.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const F=X.multiply(Y);let q=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(F).add(q.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),q=G.shiftLeft(32).add(new M(q.getLowBits(),0)),{high:K,low:q}},RS=function(J,Z){const $=J.high>>>0,X=Z.high>>>0;if($<X)return!0;else if($===X){const Y=J.low>>>0,Q=Z.low>>>0;if(Y<Q)return!0}return!1},Q6=function(J,Z){throw new D(`"${J}" is not a valid Decimal128 string - ${Z}`)},KJ=function(J,Z,$){let X=5;if(Array.isArray(J))for(let Y=0;Y<J.length;Y++)X+=DV(Y.toString(),J[Y],Z,!0,$);else{if(typeof J?.toBSON==="function")J=J.toBSON();for(let Y of Object.keys(J))X+=DV(Y,J[Y],Z,!1,$)}return X},DV=function(J,Z,$=!1,X=!1,Y=!1){if(typeof Z?.toBSON==="function")Z=Z.toBSON();switch(typeof Z){case"string":return 1+L.utf8ByteLength(J)+1+4+L.utf8ByteLength(Z)+1;case"number":if(Math.floor(Z)===Z&&Z>=EV&&Z<=BV)if(Z>=UJ&&Z<=zJ)return(J!=null?L.utf8ByteLength(J)+1:0)+5;else return(J!=null?L.utf8ByteLength(J)+1:0)+9;else return(J!=null?L.utf8ByteLength(J)+1:0)+9;case"undefined":if(X||!Y)return(J!=null?L.utf8ByteLength(J)+1:0)+1;return 0;case"boolean":return(J!=null?L.utf8ByteLength(J)+1:0)+2;case"object":if(Z!=null&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(Z==null||Z._bsontype==="MinKey"||Z._bsontype==="MaxKey")return(J!=null?L.utf8ByteLength(J)+1:0)+1;else if(Z._bsontype==="ObjectId")return(J!=null?L.utf8ByteLength(J)+1:0)+13;else if(Z instanceof Date||n4(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+9;else if(ArrayBuffer.isView(Z)||Z instanceof ArrayBuffer||PX(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+6+Z.byteLength;else if(Z._bsontype==="Long"||Z._bsontype==="Double"||Z._bsontype==="Timestamp")return(J!=null?L.utf8ByteLength(J)+1:0)+9;else if(Z._bsontype==="Decimal128")return(J!=null?L.utf8ByteLength(J)+1:0)+17;else if(Z._bsontype==="Code")if(Z.scope!=null&&Object.keys(Z.scope).length>0)return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+4+L.utf8ByteLength(Z.code.toString())+1+KJ(Z.scope,$,Y);else return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+L.utf8ByteLength(Z.code.toString())+1;else if(Z._bsontype==="Binary"){const Q=Z;if(Q.sub_type===l.SUBTYPE_BYTE_ARRAY)return(J!=null?L.utf8ByteLength(J)+1:0)+(Q.position+1+4+1+4);else return(J!=null?L.utf8ByteLength(J)+1:0)+(Q.position+1+4+1)}else if(Z._bsontype==="Symbol")return(J!=null?L.utf8ByteLength(J)+1:0)+L.utf8ByteLength(Z.value)+4+1+1;else if(Z._bsontype==="DBRef"){const Q=Object.assign({$ref:Z.collection,$id:Z.oid},Z.fields);if(Z.db!=null)Q.$db=Z.db;return(J!=null?L.utf8ByteLength(J)+1:0)+1+KJ(Q,$,Y)}else if(Z instanceof RegExp||s4(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+1+L.utf8ByteLength(Z.source)+1+(Z.global?1:0)+(Z.ignoreCase?1:0)+(Z.multiline?1:0)+1;else if(Z._bsontype==="BSONRegExp")return(J!=null?L.utf8ByteLength(J)+1:0)+1+L.utf8ByteLength(Z.pattern)+1+L.utf8ByteLength(Z.options)+1;else return(J!=null?L.utf8ByteLength(J)+1:0)+KJ(Z,$,Y)+1;case"function":if($)return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+L.utf8ByteLength(Z.toString())+1}return 0},PS=function(J){return J.split("").sort().join("")},dV=function(J,Z,$){let X=0;for(let Y=Z;Y<$;Y+=1){const Q=J[Y];if(X){if((Q&NS)!==kS)return!1;X-=1}else if(Q&IS)if((Q&BS)===hS)X=1;else if((Q&ES)===SS)X=2;else if((Q&CS)===OS)X=3;else return!1}return!X},cV=function(J,Z,$){Z=Z==null?{}:Z;const X=Z&&Z.index?Z.index:0,Y=J[X]|J[X+1]<<8|J[X+2]<<16|J[X+3]<<24;if(Y<5)throw new D(`bson size must be >= 5, is ${Y}`);if(Z.allowObjectSmallerThanBufferSize&&J.length<Y)throw new D(`buffer length ${J.length} must be >= bson size ${Y}`);if(!Z.allowObjectSmallerThanBufferSize&&J.length!==Y)throw new D(`buffer length ${J.length} must === bson size ${Y}`);if(Y+X>J.byteLength)throw new D(`(bson size ${Y} + options.index ${X} must be <= buffer length ${J.byteLength})`);if(J[X+Y-1]!==0)throw new D("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return GJ(J,X,Z,$)},GJ=function(J,Z,$,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,q=$.promoteValues??!0,W=$.useBigInt64??!1;if(W&&!q)throw new D("Must either request bigint or Long for int64 deserialization");if(W&&!F)throw new D("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let U=!0,j;const z=new Set,A=H.utf8;if(typeof A==="boolean")j=A;else{U=!1;const k=Object.keys(A).map(function(B){return A[B]});if(k.length===0)throw new D("UTF-8 validation setting cannot be empty");if(typeof k[0]!=="boolean")throw new D("Invalid UTF-8 validation option, must specify boolean values");if(j=k[0],!k.every((B)=>B===j))throw new D("Invalid UTF-8 validation option - keys must be all true or all false")}if(!U)for(let k of Object.keys(A))z.add(k);const T=Z;if(J.length<5)throw new D("corrupt bson message < 5 bytes long");const w=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(w<5||w>J.length)throw new D("corrupt bson message");const N=X?[]:{};let P=0;const f=!1;let $0=X?!1:null;const A8=new DataView(J.buffer,J.byteOffset,J.byteLength);while(!f){const k=J[Z++];if(k===0)break;let B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.byteLength)throw new D("Bad BSON Document: illegal CString");const Q1=X?P++:L.toUTF8(J,Z,B);let g=!0;if(U||z.has(Q1))g=j;else g=!j;if($0!==!1&&Q1[0]==="$")$0=fS.test(Q1);let _;if(Z=B+1,k===CV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");_=QJ(J,Z,Z+C-1,g),Z=Z+C}else if(k===SV){const C=L.allocate(12);C.set(J.subarray(Z,Z+12)),_=new w1(C),Z=Z+12}else if(k===r4&&q===!1)_=new C8(J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24);else if(k===r4)_=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;else if(k===FJ&&q===!1)_=new E8(A8.getFloat64(Z,!0)),Z=Z+8;else if(k===FJ)_=A8.getFloat64(Z,!0),Z=Z+8;else if(k===kV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;_=new Date(new M(C,O).toNumber())}else if(k===OV){if(J[Z]!==0&&J[Z]!==1)throw new D("illegal boolean type value");_=J[Z++]===1}else if(k===IX){const C=Z,O=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24;if(O<=0||O>J.length-Z)throw new D("bad embedded document length in bson");if(Q)_=J.slice(Z,Z+O);else{let q1=$;if(!U)q1={...$,validation:{utf8:g}};_=GJ(J,C,q1,!1)}Z=Z+O}else if(k===hV){const C=Z,O=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24;let q1=$;const U0=Z+O;if(Y&&Y[Q1])q1={...$,raw:!0};if(!U)q1={...q1,validation:{utf8:g}};if(_=GJ(J,C,q1,!0),Z=Z+O,J[Z-1]!==0)throw new D("invalid array terminator byte");if(Z!==U0)throw new D("corrupted array bson")}else if(k===rh)_=void 0;else if(k===BX)_=null;else if(k===CX){const C=M5.fromUint8Array(J.subarray(Z,Z+8)),O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,q1=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,U0=new M(O,q1);if(W)_=C.getBigInt64(0,!0);else if(F&&q===!0)_=U0.lessThanOrEqual(yS)&&U0.greaterThanOrEqual(_S)?U0.toNumber():U0;else _=U0}else if(k===vV){const C=L.allocate(16);C.set(J.subarray(Z,Z+16),0),Z=Z+16,_=new n1(C)}else if(k===NX){let C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;const O=C,q1=J[Z++];if(C<0)throw new D("Negative binary type element size found");if(C>J.byteLength)throw new D("Binary type size larger than document size");if(J.slice!=null){if(q1===l.SUBTYPE_BYTE_ARRAY){if(C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,C<0)throw new D("Negative binary type element size found for subtype 0x02");if(C>O-4)throw new D("Binary type with subtype 0x02 contains too long binary size");if(C<O-4)throw new D("Binary type with subtype 0x02 contains too short binary size")}if(G&&q)_=L.toLocalBufferType(J.slice(Z,Z+C));else if(_=new l(J.slice(Z,Z+C),q1),q1===WJ&&f1.isValid(_))_=_.toUUID()}else{const U0=L.allocate(C);if(q1===l.SUBTYPE_BYTE_ARRAY){if(C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,C<0)throw new D("Negative binary type element size found for subtype 0x02");if(C>O-4)throw new D("Binary type with subtype 0x02 contains too long binary size");if(C<O-4)throw new D("Binary type with subtype 0x02 contains too short binary size")}for(B=0;B<C;B++)U0[B]=J[Z+B];if(G&&q)_=U0;else if(_=new l(J.slice(Z,Z+C),q1),q1===WJ&&f1.isValid(_))_=_.toUUID()}Z=Z+C}else if(k===qJ&&K===!1){B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const C=L.toUTF8(J,Z,B);Z=B+1,B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const O=L.toUTF8(J,Z,B);Z=B+1;const q1=new Array(O.length);for(B=0;B<O.length;B++)switch(O[B]){case"m":q1[B]="m";break;case"s":q1[B]="g";break;case"i":q1[B]="i";break}_=new RegExp(C,q1.join(""))}else if(k===qJ&&K===!0){B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const C=L.toUTF8(J,Z,B);Z=B+1,B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const O=L.toUTF8(J,Z,B);Z=B+1,_=new u0(C,O)}else if(k===yV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");const O=QJ(J,Z,Z+C-1,g);_=q?O:new z4(O),Z=Z+C}else if(k===fV){const C=J[Z++]+J[Z++]*(1<<8)+J[Z++]*(1<<16)+J[Z++]*(1<<24),O=J[Z++]+J[Z++]*(1<<8)+J[Z++]*(1<<16)+J[Z++]*(1<<24);_=new m0({i:C,t:O})}else if(k===xV)_=new V4;else if(k===bV)_=new H4;else if(k===EX){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");const O=QJ(J,Z,Z+C-1,g);_=new o6(O),Z=Z+C}else if(k===_V){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<13)throw new D("code_w_scope total size shorter minimum expected length");const O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(O<=0||O>J.length-Z||J[Z+O-1]!==0)throw new D("bad string length in bson");const q1=QJ(J,Z,Z+O-1,g);Z=Z+O;const U0=Z,V$=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24,iB=GJ(J,U0,$,!1);if(Z=Z+V$,C<8+V$+O)throw new D("code_w_scope total size is too short, truncating scope");if(C>8+V$+O)throw new D("code_w_scope total size is too long, clips outer document");_=new o6(q1,iB)}else if(k===oh){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");if(H!=null&&H.utf8){if(!dV(J,Z,Z+C-1))throw new D("Invalid UTF-8 string in BSON document")}const O=L.toUTF8(J,Z,Z+C-1);Z=Z+C;const q1=L.allocate(12);q1.set(J.subarray(Z,Z+12),0);const U0=new w1(q1);Z=Z+12,_=new C6(O,U0)}else throw new D(`Detected unknown BSON type ${k.toString(16)} for fieldname "${Q1}"`);if(Q1==="__proto__")Object.defineProperty(N,Q1,{value:_,writable:!0,enumerable:!0,configurable:!0});else N[Q1]=_}if(w!==Z-T){if(X)throw new D("corrupt array bson");throw new D("corrupt object bson")}if(!$0)return N;if(mV(N)){const k=Object.assign({},N);return delete k.$ref,delete k.$id,delete k.$db,new C6(N.$ref,N.$id,N.$db,k)}return N},QJ=function(J,Z,$,X){const Y=L.toUTF8(J,Z,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!dV(J,Z,$))throw new D("Invalid UTF-8 string in BSON document");break}}return Y},$X=function(J,Z,$,X){J[X++]=CV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y+1,J[X-1]=0;const Q=L.encodeUTF8Into(J,$,X+4);return J[X+3]=Q+1>>24&255,J[X+2]=Q+1>>16&255,J[X+1]=Q+1>>8&255,J[X]=Q+1&255,X=X+4+Q,J[X++]=0,X},XX=function(J,Z,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=zJ&&$>=UJ?r4:FJ;if(Q===r4)e4.setInt32(0,$,!0);else e4.setFloat64(0,$,!0);const K=Q===r4?vS:VJ;J[X++]=Q;const G=L.encodeUTF8Into(J,Z,X);return X=X+G,J[X++]=0,J.set(K,X),X+=K.byteLength,X},YX=function(J,Z,$,X){J[X++]=CX;const Y=L.encodeUTF8Into(J,Z,X);return X+=Y,J[X++]=0,e4.setBigInt64(0,$,!0),J.set(VJ,X),X+=VJ.byteLength,X},U5=function(J,Z,$,X){J[X++]=BX;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,X},QX=function(J,Z,$,X){J[X++]=OV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J[X++]=$?1:0,X},KX=function(J,Z,$,X){J[X++]=kV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,J[X++]=G&255,J[X++]=G>>8&255,J[X++]=G>>16&255,J[X++]=G>>24&255,X},GX=function(J,Z,$,X){J[X++]=qJ;const Y=L.encodeUTF8Into(J,Z,X);if(X=X+Y,J[X++]=0,$.source&&$.source.match(HJ)!=null)throw new D("value "+$.source+" must not contain null bytes");if(X=X+L.encodeUTF8Into(J,$.source,X),J[X++]=0,$.ignoreCase)J[X++]=105;if($.global)J[X++]=115;if($.multiline)J[X++]=109;return J[X++]=0,X},FX=function(J,Z,$,X){J[X++]=qJ;const Y=L.encodeUTF8Into(J,Z,X);if(X=X+Y,J[X++]=0,$.pattern.match(HJ)!=null)throw new D("pattern "+$.pattern+" must not contain null bytes");X=X+L.encodeUTF8Into(J,$.pattern,X),J[X++]=0;const Q=$.options.split("").sort().join("");return X=X+L.encodeUTF8Into(J,Q,X),J[X++]=0,X},qX=function(J,Z,$,X){if($===null)J[X++]=BX;else if($._bsontype==="MinKey")J[X++]=xV;else J[X++]=bV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,X},WX=function(J,Z,$,X){J[X++]=SV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.id;if(q4(Q))for(let K=0;K<12;K++)J[X++]=Q[K];else throw new D("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X},HX=function(J,Z,$,X){J[X++]=NX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.length;return J[X++]=Q&255,J[X++]=Q>>8&255,J[X++]=Q>>16&255,J[X++]=Q>>24&255,J[X++]=eh,J.set($,X),X=X+Q,X},VX=function(J,Z,$,X,Y,Q,K,G,F){if(F.has($))throw new D("Cannot convert circular structure to BSON");F.add($),J[X++]=Array.isArray($)?hV:IX;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;const W=A5(J,$,Y,X,Q+1,K,G,F);return F.delete($),W},zX=function(J,Z,$,X){J[X++]=vV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J.set($.bytes.subarray(0,16),X),X+16},UX=function(J,Z,$,X){J[X++]=$._bsontype==="Long"?CX:fV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return J[X++]=Q&255,J[X++]=Q>>8&255,J[X++]=Q>>16&255,J[X++]=Q>>24&255,J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,X},MX=function(J,Z,$,X){$=$.valueOf(),J[X++]=r4;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J[X++]=$&255,J[X++]=$>>8&255,J[X++]=$>>16&255,J[X++]=$>>24&255,X},jX=function(J,Z,$,X){J[X++]=FJ;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,e4.setFloat64(0,$.value,!0),J.set(VJ,X),X=X+8,X},AX=function(J,Z,$,X){J[X++]=EX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.toString(),K=L.encodeUTF8Into(J,Q,X+4)+1;return J[X]=K&255,J[X+1]=K>>8&255,J[X+2]=K>>16&255,J[X+3]=K>>24&255,X=X+4+K-1,J[X++]=0,X},LX=function(J,Z,$,X,Y=!1,Q=0,K=!1,G=!0,F){if($.scope&&typeof $.scope==="object"){J[X++]=_V;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;let W=X;const H=$.code;X=X+4;const U=L.encodeUTF8Into(J,H,X+4)+1;J[X]=U&255,J[X+1]=U>>8&255,J[X+2]=U>>16&255,J[X+3]=U>>24&255,J[X+4+U-1]=0,X=X+U+4;const j=A5(J,$.scope,Y,X,Q+1,K,G,F);X=j-1;const z=j-W;J[W++]=z&255,J[W++]=z>>8&255,J[W++]=z>>16&255,J[W++]=z>>24&255,J[X++]=0}else{J[X++]=EX;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;const W=$.code.toString(),H=L.encodeUTF8Into(J,W,X+4)+1;J[X]=H&255,J[X+1]=H>>8&255,J[X+2]=H>>16&255,J[X+3]=H>>24&255,X=X+4+H-1,J[X++]=0}return X},wX=function(J,Z,$,X){J[X++]=NX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===l.SUBTYPE_BYTE_ARRAY)K=K+4;if(J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,J[X++]=$.sub_type,$.sub_type===l.SUBTYPE_BYTE_ARRAY)K=K-4,J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255;return J.set(Q,X),X=X+$.position,X},RX=function(J,Z,$,X){J[X++]=yV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=L.encodeUTF8Into(J,$.value,X+4)+1;return J[X]=Q&255,J[X+1]=Q>>8&255,J[X+2]=Q>>16&255,J[X+3]=Q>>24&255,X=X+4+Q-1,J[X++]=0,X},DX=function(J,Z,$,X,Y,Q,K){J[X++]=IX;const G=L.encodeUTF8Into(J,Z,X);X=X+G,J[X++]=0;let F=X,q={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)q.$db=$.db;q=Object.assign(q,$.fields);const W=A5(J,q,!1,X,Y+1,Q,!0,K),H=W-F;return J[F++]=H&255,J[F++]=H>>8&255,J[F++]=H>>16&255,J[F++]=H>>24&255,W},A5=function(J,Z,$,X,Y,Q,K,G){if(G==null){if(Z==null)return J[0]=5,J[1]=0,J[2]=0,J[3]=0,J[4]=0,5;if(Array.isArray(Z))throw new D("serialize does not support an array as the root input");if(typeof Z!=="object")throw new D("serialize does not support non-object as the root input");else if("_bsontype"in Z&&typeof Z._bsontype==="string")throw new D("BSON types cannot be serialized as a document");else if(n4(Z)||s4(Z)||q4(Z)||PX(Z))throw new D("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(Z);let F=X+4;if(Array.isArray(Z))for(let W=0;W<Z.length;W++){const H=`${W}`;let U=Z[W];if(typeof U?.toBSON==="function")U=U.toBSON();if(typeof U==="string")F=$X(J,H,U,F);else if(typeof U==="number")F=XX(J,H,U,F);else if(typeof U==="bigint")F=YX(J,H,U,F);else if(typeof U==="boolean")F=QX(J,H,U,F);else if(U instanceof Date||n4(U))F=KX(J,H,U,F);else if(U===void 0)F=U5(J,H,U,F);else if(U===null)F=U5(J,H,U,F);else if(q4(U))F=HX(J,H,U,F);else if(U instanceof RegExp||s4(U))F=GX(J,H,U,F);else if(typeof U==="object"&&U._bsontype==null)F=VX(J,H,U,F,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(U._bsontype==="ObjectId")F=WX(J,H,U,F);else if(U._bsontype==="Decimal128")F=zX(J,H,U,F);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")F=UX(J,H,U,F);else if(U._bsontype==="Double")F=jX(J,H,U,F);else if(typeof U==="function"&&Q)F=AX(J,H,U,F);else if(U._bsontype==="Code")F=LX(J,H,U,F,$,Y,Q,K,G);else if(U._bsontype==="Binary")F=wX(J,H,U,F);else if(U._bsontype==="BSONSymbol")F=RX(J,H,U,F);else if(U._bsontype==="DBRef")F=DX(J,H,U,F,Y,Q,G);else if(U._bsontype==="BSONRegExp")F=FX(J,H,U,F);else if(U._bsontype==="Int32")F=MX(J,H,U,F);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")F=qX(J,H,U,F);else if(typeof U._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}else if(Z instanceof Map||TX(Z)){const W=Z.entries();let H=!1;while(!H){const U=W.next();if(H=!!U.done,H)continue;const j=U.value[0];let z=U.value[1];if(typeof z?.toBSON==="function")z=z.toBSON();const A=typeof z;if(typeof j==="string"&&!PV.has(j)){if(j.match(HJ)!=null)throw new D("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new D("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new D("key "+j+" must not contain '.'")}}if(A==="string")F=$X(J,j,z,F);else if(A==="number")F=XX(J,j,z,F);else if(A==="bigint")F=YX(J,j,z,F);else if(A==="boolean")F=QX(J,j,z,F);else if(z instanceof Date||n4(z))F=KX(J,j,z,F);else if(z===null||z===void 0&&K===!1)F=U5(J,j,z,F);else if(q4(z))F=HX(J,j,z,F);else if(z instanceof RegExp||s4(z))F=GX(J,j,z,F);else if(A==="object"&&z._bsontype==null)F=VX(J,j,z,F,$,Y,Q,K,G);else if(typeof z==="object"&&z[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(z._bsontype==="ObjectId")F=WX(J,j,z,F);else if(A==="object"&&z._bsontype==="Decimal128")F=zX(J,j,z,F);else if(z._bsontype==="Long"||z._bsontype==="Timestamp")F=UX(J,j,z,F);else if(z._bsontype==="Double")F=jX(J,j,z,F);else if(z._bsontype==="Code")F=LX(J,j,z,F,$,Y,Q,K,G);else if(typeof z==="function"&&Q)F=AX(J,j,z,F);else if(z._bsontype==="Binary")F=wX(J,j,z,F);else if(z._bsontype==="BSONSymbol")F=RX(J,j,z,F);else if(z._bsontype==="DBRef")F=DX(J,j,z,F,Y,Q,G);else if(z._bsontype==="BSONRegExp")F=FX(J,j,z,F);else if(z._bsontype==="Int32")F=MX(J,j,z,F);else if(z._bsontype==="MinKey"||z._bsontype==="MaxKey")F=qX(J,j,z,F);else if(typeof z._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(z._bsontype)}`)}}else{if(typeof Z?.toBSON==="function"){if(Z=Z.toBSON(),Z!=null&&typeof Z!=="object")throw new D("toBSON function did not return an object")}for(let W of Object.keys(Z)){let H=Z[W];if(typeof H?.toBSON==="function")H=H.toBSON();const U=typeof H;if(typeof W==="string"&&!PV.has(W)){if(W.match(HJ)!=null)throw new D("key "+W+" must not contain null bytes");if($){if(W[0]==="$")throw new D("key "+W+" must not start with '$'");else if(~W.indexOf("."))throw new D("key "+W+" must not contain '.'")}}if(U==="string")F=$X(J,W,H,F);else if(U==="number")F=XX(J,W,H,F);else if(U==="bigint")F=YX(J,W,H,F);else if(U==="boolean")F=QX(J,W,H,F);else if(H instanceof Date||n4(H))F=KX(J,W,H,F);else if(H===void 0){if(K===!1)F=U5(J,W,H,F)}else if(H===null)F=U5(J,W,H,F);else if(q4(H))F=HX(J,W,H,F);else if(H instanceof RegExp||s4(H))F=GX(J,W,H,F);else if(U==="object"&&H._bsontype==null)F=VX(J,W,H,F,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(H._bsontype==="ObjectId")F=WX(J,W,H,F);else if(U==="object"&&H._bsontype==="Decimal128")F=zX(J,W,H,F);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")F=UX(J,W,H,F);else if(H._bsontype==="Double")F=jX(J,W,H,F);else if(H._bsontype==="Code")F=LX(J,W,H,F,$,Y,Q,K,G);else if(typeof H==="function"&&Q)F=AX(J,W,H,F);else if(H._bsontype==="Binary")F=wX(J,W,H,F);else if(H._bsontype==="BSONSymbol")F=RX(J,W,H,F);else if(H._bsontype==="DBRef")F=DX(J,W,H,F,Y,Q,G);else if(H._bsontype==="BSONRegExp")F=FX(J,W,H,F);else if(H._bsontype==="Int32")F=MX(J,W,H,F);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")F=qX(J,W,H,F);else if(typeof H._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(Z),J[F++]=0;const q=F-X;return J[X++]=q&255,J[X++]=q>>8&255,J[X++]=q>>16&255,J[X++]=q>>24&255,F},xS=function(J){return J!=null&&typeof J==="object"&&"_bsontype"in J&&typeof J._bsontype==="string"},pV=function(J,Z={}){if(typeof J==="number"){const X=J<=zJ&&J>=UJ,Y=J<=IV&&J>=NV;if(Z.relaxed||Z.legacy)return J;if(Number.isInteger(J)&&!Object.is(J,-0)){if(X)return new C8(J);if(Y){if(Z.useBigInt64)return BigInt(J);return M.fromNumber(J)}}return new E8(J)}if(J==null||typeof J!=="object")return J;if(J.$undefined)return null;const $=Object.keys(J).filter((X)=>X.startsWith("$")&&J[X]!=null);for(let X=0;X<$.length;X++){const Y=bS[$[X]];if(Y)return Y.fromExtendedJSON(J,Z)}if(J.$date!=null){const X=J.$date,Y=new Date;if(Z.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 j5(`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"&&Z.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new j5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(J.$code!=null){const X=Object.assign({},J);if(J.$scope)X.$scope=pV(J.$scope);return o6.fromExtendedJSON(J)}if(mV(J)||J.$dbPointer){const X=J.$ref?J:J.$dbPointer;if(X instanceof C6)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 C6.fromExtendedJSON(X)}return J},gS=function(J,Z){return J.map(($,X)=>{Z.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return r6($,Z)}finally{Z.seenObjects.pop()}})},TV=function(J){const Z=J.toISOString();return J.getUTCMilliseconds()!==0?Z:Z.slice(0,-5)+"Z"},r6=function(J,Z){if(J instanceof Map||TX(J)){const $=Object.create(null);for(let[X,Y]of J){if(typeof X!=="string")throw new D("Can only serialize maps with string keys");$[X]=Y}return r6($,Z)}if((typeof J==="object"||typeof J==="function")&&J!==null){const $=Z.seenObjects.findIndex((X)=>X.obj===J);if($!==-1){const X=Z.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],F=" ".repeat(Y.length+Q.length/2),q="-".repeat(K.length+(Q.length+G.length)/2-1);throw new D("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${F}\\${q}/`)}Z.seenObjects[Z.seenObjects.length-1].obj=J}if(Array.isArray(J))return gS(J,Z);if(J===void 0)return null;if(J instanceof Date||n4(J)){const $=J.getTime(),X=$>-1&&$<253402318800000;if(Z.legacy)return Z.relaxed&&X?{$date:J.getTime()}:{$date:TV(J)};return Z.relaxed&&X?{$date:TV(J)}:{$date:{$numberLong:J.getTime().toString()}}}if(typeof J==="number"&&(!Z.relaxed||!isFinite(J))){if(Number.isInteger(J)&&!Object.is(J,-0)){if(J>=UJ&&J<=zJ)return{$numberInt:J.toString()};if(J>=NV&&J<=IV)return{$numberLong:J.toString()}}return{$numberDouble:Object.is(J,-0)?"-0.0":J.toString()}}if(typeof J==="bigint"){if(!Z.relaxed)return{$numberLong:BigInt.asIntN(64,J).toString()};return Number(BigInt.asIntN(64,J))}if(J instanceof RegExp||s4(J)){let $=J.flags;if($===void 0){const Y=J.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new u0(J.source,$).toExtendedJSON(Z)}if(J!=null&&typeof J==="object")return uS(J,Z);return J},uS=function(J,Z){if(J==null||typeof J!=="object")throw new D("not an object instance");const $=J._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(J)){Z.seenObjects.push({propertyName:Y,obj:null});try{const Q=r6(J[Y],Z);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{Z.seenObjects.pop()}}return X}else if(J!=null&&typeof J==="object"&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(xS(J)){let X=J;if(typeof X.toExtendedJSON!=="function"){const Y=mS[J._bsontype];if(!Y)throw new D("Unrecognized or invalid _bsontype: "+J._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new o6(X.code,r6(X.scope,Z));else if($==="DBRef"&&X.oid)X=new C6(r6(X.collection,Z),r6(X.oid,Z),r6(X.db,Z),r6(X.fields,Z));return X.toExtendedJSON(Z)}else throw new D("_bsontype must be a string, but was: "+typeof $)},lV=function(J,Z){const $={useBigInt64:Z?.useBigInt64??!1,relaxed:Z?.relaxed??!0,legacy:Z?.legacy??!1};return JSON.parse(J,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new D(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return pV(Y,$)})},aV=function(J,Z,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(Z!=null&&typeof Z==="object"&&!Array.isArray(Z))X=Z,Z=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=r6(J,Y);return JSON.stringify(Q,Z,$)},dS=function(J,Z){return Z=Z||{},JSON.parse(aV(J,Z))},cS=function(J,Z){return Z=Z||{},lV(JSON.stringify(J),Z)},sV=function(J){if(N8.length<J)N8=L.allocate(J)},nV=function(J,Z={}){const $=typeof Z.checkKeys==="boolean"?Z.checkKeys:!1,X=typeof Z.serializeFunctions==="boolean"?Z.serializeFunctions:!1,Y=typeof Z.ignoreUndefined==="boolean"?Z.ignoreUndefined:!0,Q=typeof Z.minInternalBufferSize==="number"?Z.minInternalBufferSize:iV;if(N8.length<Q)N8=L.allocate(Q);const K=A5(N8,J,$,0,0,X,Y,null),G=L.allocate(K);return G.set(N8.subarray(0,K),0),G},tV=function(J,Z,$={}){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=A5(N8,J,X,0,0,Y,Q,null);return Z.set(N8.subarray(0,G),K),K+G-1},rV=function(J,Z={}){return cV(L.toLocalBufferType(J),Z)},oV=function(J,Z={}){Z=Z||{};const $=typeof Z.serializeFunctions==="boolean"?Z.serializeFunctions:!1,X=typeof Z.ignoreUndefined==="boolean"?Z.ignoreUndefined:!0;return KJ(J,$,X)},eV=function(J,Z,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=L.toLocalBufferType(J);let F=Z;for(let q=0;q<$;q++){const W=G[F]|G[F+1]<<8|G[F+2]<<16|G[F+3]<<24;K.index=F,X[Y+q]=cV(G,K),F=F+W}return F},W4=6,zJ=2147483647,UJ=-2147483648,IV=Math.pow(2,63)-1,NV=-Math.pow(2,63),BV=Math.pow(2,53),EV=-Math.pow(2,53),FJ=1,CV=2,IX=3,hV=4,NX=5,rh=6,SV=7,OV=8,kV=9,BX=10,qJ=11,oh=12,EX=13,yV=14,_V=15,r4=16,fV=17,CX=18,vV=19,xV=255,bV=127,eh=0,WJ=4,gV=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 D extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(J){super(J)}static isBSONError(J){return J!=null&&typeof J==="object"&&"bsonError"in J&&J.bsonError===!0&&"name"in J&&"message"in J&&"stack"in J}}class B8 extends D{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${W4}.x.x`)}}class j5 extends D{get name(){return"BSONRuntimeError"}constructor(J){super(J)}}var ZS=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return JS}})(),I8={toLocalBufferType(J){if(Buffer.isBuffer(J))return J;if(ArrayBuffer.isView(J))return Buffer.from(J.buffer,J.byteOffset,J.byteLength);const Z=J?.[Symbol.toStringTag]??Object.prototype.toString.call(J);if(Z==="ArrayBuffer"||Z==="SharedArrayBuffer"||Z==="[object ArrayBuffer]"||Z==="[object SharedArrayBuffer]")return Buffer.from(J);throw new D(`Cannot create Buffer from ${String(J)}`)},allocate(J){return Buffer.alloc(J)},equals(J,Z){return I8.toLocalBufferType(J).equals(Z)},fromNumberArray(J){return Buffer.from(J)},fromBase64(J){return Buffer.from(J,"base64")},toBase64(J){return I8.toLocalBufferType(J).toString("base64")},fromISO88591(J){return Buffer.from(J,"binary")},toISO88591(J){return I8.toLocalBufferType(J).toString("binary")},fromHex(J){return Buffer.from(J,"hex")},toHex(J){return I8.toLocalBufferType(J).toString("hex")},fromUTF8(J){return Buffer.from(J,"utf8")},toUTF8(J,Z,$){return I8.toLocalBufferType(J).toString("utf8",Z,$)},utf8ByteLength(J){return Buffer.byteLength(J,"utf8")},encodeUTF8Into(J,Z,$){return I8.toLocalBufferType(J).write(Z,$,void 0,"utf8")},randomBytes:ZS},YS=(()=>{const{crypto:J}=globalThis;if(J!=null&&typeof J.getRandomValues==="function")return(Z)=>{return J.getRandomValues(o4.allocate(Z))};else{if($S()){const{console:Z}=globalThis;Z?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return XS}})(),WV=/(\d|[a-f])/i,o4={toLocalBufferType(J){const Z=J?.[Symbol.toStringTag]??Object.prototype.toString.call(J);if(Z==="Uint8Array")return J;if(ArrayBuffer.isView(J))return new Uint8Array(J.buffer.slice(J.byteOffset,J.byteOffset+J.byteLength));if(Z==="ArrayBuffer"||Z==="SharedArrayBuffer"||Z==="[object ArrayBuffer]"||Z==="[object SharedArrayBuffer]")return new Uint8Array(J);throw new D(`Cannot make a Uint8Array from ${String(J)}`)},allocate(J){if(typeof J!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(J)}`);return new Uint8Array(J)},equals(J,Z){if(J.byteLength!==Z.byteLength)return!1;for(let $=0;$<J.byteLength;$++)if(J[$]!==Z[$])return!1;return!0},fromNumberArray(J){return Uint8Array.from(J)},fromBase64(J){return Uint8Array.from(atob(J),(Z)=>Z.charCodeAt(0))},toBase64(J){return btoa(o4.toISO88591(J))},fromISO88591(J){return Uint8Array.from(J,(Z)=>Z.charCodeAt(0)&255)},toISO88591(J){return Array.from(Uint16Array.from(J),(Z)=>String.fromCharCode(Z)).join("")},fromHex(J){const Z=J.length%2===0?J:J.slice(0,J.length-1),$=[];for(let X=0;X<Z.length;X+=2){const Y=Z[X],Q=Z[X+1];if(!WV.test(Y))break;if(!WV.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(J){return Array.from(J,(Z)=>Z.toString(16).padStart(2,"0")).join("")},fromUTF8(J){return(new TextEncoder()).encode(J)},toUTF8(J,Z,$){return new TextDecoder("utf8",{fatal:!1}).decode(J.slice(Z,$))},utf8ByteLength(J){return o4.fromUTF8(J).byteLength},encodeUTF8Into(J,Z,$){const X=o4.fromUTF8(Z);return J.set(X,$),X.byteLength},randomBytes:YS},QS=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,L=QS?I8:o4;class M5 extends DataView{static fromUint8Array(J){return new DataView(J.buffer,J.byteOffset,J.byteLength)}}class Y0{get[Symbol.for("@@mdb.bson.version")](){return W4}[Symbol.for("nodejs.util.inspect.custom")](J,Z,$){return this.inspect(J,Z,$)}}class l extends Y0{get _bsontype(){return"Binary"}constructor(J,Z){super();if(J!=null&&typeof J==="string"&&!ArrayBuffer.isView(J)&&!PX(J)&&!Array.isArray(J))throw new D("Binary can only be constructed from Uint8Array or number[]");if(this.sub_type=Z??l.BSON_BINARY_SUBTYPE_DEFAULT,J==null)this.buffer=L.allocate(l.BUFFER_SIZE),this.position=0;else this.buffer=Array.isArray(J)?L.fromNumberArray(J):L.toLocalBufferType(J),this.position=this.buffer.byteLength}put(J){if(typeof J==="string"&&J.length!==1)throw new D("only accepts single character String");else if(typeof J!=="number"&&J.length!==1)throw new D("only accepts single character Uint8Array or Array");let Z;if(typeof J==="string")Z=J.charCodeAt(0);else if(typeof J==="number")Z=J;else Z=J[0];if(Z<0||Z>255)throw new D("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=Z;else{const $=L.allocate(l.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=Z}}write(J,Z){if(Z=typeof Z==="number"?Z:this.position,this.buffer.byteLength<Z+J.length){const $=L.allocate(this.buffer.byteLength+J.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(J))this.buffer.set(L.toLocalBufferType(J),Z),this.position=Z+J.byteLength>this.position?Z+J.length:this.position;else if(typeof J==="string")throw new D("input cannot be string")}read(J,Z){return Z=Z&&Z>0?Z:this.position,this.buffer.slice(J,J+Z)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return L.toBase64(this.buffer)}toString(J){if(J==="hex")return L.toHex(this.buffer);if(J==="base64")return L.toBase64(this.buffer);if(J==="utf8"||J==="utf-8")return L.toUTF8(this.buffer,0,this.buffer.byteLength);return L.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(J){J=J||{};const Z=L.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(J.legacy)return{$binary:Z,$type:$.length===1?"0"+$:$};return{$binary:{base64:Z,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===l.SUBTYPE_UUID)return new f1(this.buffer.slice(0,this.position));throw new D(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${l.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(J,Z){return new l(L.fromHex(J),Z)}static createFromBase64(J,Z){return new l(L.fromBase64(J),Z)}static fromExtendedJSON(J,Z){Z=Z||{};let $,X;if("$binary"in J){if(Z.legacy&&typeof J.$binary==="string"&&"$type"in J)X=J.$type?parseInt(J.$type,16):0,$=L.fromBase64(J.$binary);else if(typeof J.$binary!=="string")X=J.$binary.subType?parseInt(J.$binary.subType,16):0,$=L.fromBase64(J.$binary.base64)}else if("$uuid"in J)X=4,$=f1.bytesFromString(J.$uuid);if(!$)throw new D(`Unexpected Binary Extended JSON format ${JSON.stringify(J)}`);return X===WJ?new f1($):new l($,X)}inspect(J,Z,$){$??=B0;const X=L.toBase64(this.buffer.subarray(0,this.position)),Y=$(X,Z),Q=$(this.sub_type,Z);return`Binary.createFromBase64(${Y}, ${Q})`}}l.BSON_BINARY_SUBTYPE_DEFAULT=0;l.BUFFER_SIZE=256;l.SUBTYPE_DEFAULT=0;l.SUBTYPE_FUNCTION=1;l.SUBTYPE_BYTE_ARRAY=2;l.SUBTYPE_UUID_OLD=3;l.SUBTYPE_UUID=4;l.SUBTYPE_MD5=5;l.SUBTYPE_ENCRYPTED=6;l.SUBTYPE_COLUMN=7;l.SUBTYPE_USER_DEFINED=128;var JX=16,KS=/^[0-9A-F]{32}$/i,GS=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class f1 extends l{constructor(J){let Z;if(J==null)Z=f1.generate();else if(J instanceof f1)Z=L.toLocalBufferType(new Uint8Array(J.buffer));else if(ArrayBuffer.isView(J)&&J.byteLength===JX)Z=L.toLocalBufferType(J);else if(typeof J==="string")Z=f1.bytesFromString(J);else throw new D("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(Z,WJ)}get id(){return this.buffer}set id(J){this.buffer=J}toHexString(J=!0){if(J)return[L.toHex(this.buffer.subarray(0,4)),L.toHex(this.buffer.subarray(4,6)),L.toHex(this.buffer.subarray(6,8)),L.toHex(this.buffer.subarray(8,10)),L.toHex(this.buffer.subarray(10,16))].join("-");return L.toHex(this.buffer)}toString(J){if(J==="hex")return L.toHex(this.id);if(J==="base64")return L.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(J){if(!J)return!1;if(J instanceof f1)return L.equals(J.id,this.id);try{return L.equals(new f1(J).id,this.id)}catch{return!1}}toBinary(){return new l(this.id,l.SUBTYPE_UUID)}static generate(){const J=L.randomBytes(JX);return J[6]=J[6]&15|64,J[8]=J[8]&63|128,J}static isValid(J){if(!J)return!1;if(typeof J==="string")return f1.isValidUUIDString(J);if(q4(J))return J.byteLength===JX;return J._bsontype==="Binary"&&J.sub_type===this.SUBTYPE_UUID&&J.buffer.byteLength===16}static createFromHexString(J){const Z=f1.bytesFromString(J);return new f1(Z)}static createFromBase64(J){return new f1(L.fromBase64(J))}static bytesFromString(J){if(!f1.isValidUUIDString(J))throw new D("UUID string representation must be 32 hex digits or canonical hyphenated representation");return L.fromHex(J.replace(/-/g,""))}static isValidUUIDString(J){return KS.test(J)||GS.test(J)}inspect(J,Z,$){return $??=B0,`new UUID(${$(this.toHexString(),Z)})`}}class o6 extends Y0{get _bsontype(){return"Code"}constructor(J,Z){super();this.code=J.toString(),this.scope=Z??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(J){return new o6(J.$code,J.$scope)}inspect(J,Z,$){$??=B0;let X=$(this.code,Z);const Y=X.includes("\n");if(this.scope!=null)X+=`,${Y?"\n":" "}${$(this.scope,Z)}`;const Q=Y&&this.scope===null;return`new Code(${Y?"\n":""}${X}${Q?"\n":""})`}}class C6 extends Y0{get _bsontype(){return"DBRef"}constructor(J,Z,$,X){super();const Y=J.split(".");if(Y.length===2)$=Y.shift(),J=Y.shift();this.collection=J,this.oid=Z,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(J){this.collection=J}toJSON(){const J=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)J.$db=this.db;return J}toExtendedJSON(J){J=J||{};let Z={$ref:this.collection,$id:this.oid};if(J.legacy)return Z;if(this.db)Z.$db=this.db;return Z=Object.assign(Z,this.fields),Z}static fromExtendedJSON(J){const Z=Object.assign({},J);return delete Z.$ref,delete Z.$id,delete Z.$db,new C6(J.$ref,J.$id,J.$db,Z)}inspect(J,Z,$){$??=B0;const X=[$(this.namespace,Z),$(this.oid,Z),...this.db?[$(this.db,Z)]:[],...Object.keys(this.fields).length>0?[$(this.fields,Z)]:[]];return X[1]=$===B0?`new ObjectId(${X[1]})`:X[1],`new DBRef(${X.join(", ")})`}}var g0=void 0;try{g0=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 HV=1<<16,FS=1<<24,t4=HV*HV,uV=t4*t4,VV=uV/2,zV={},UV={},qS=20,WS=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends Y0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(J=0,Z,$){super();if(typeof J==="bigint")Object.assign(this,M.fromBigInt(J,!!Z));else if(typeof J==="string")Object.assign(this,M.fromString(J,!!Z));else this.low=J|0,this.high=Z|0,this.unsigned=!!$}static fromBits(J,Z,$){return new M(J,Z,$)}static fromInt(J,Z){let $,X,Y;if(Z){if(J>>>=0,Y=0<=J&&J<256){if(X=UV[J],X)return X}if($=M.fromBits(J,(J|0)<0?-1:0,!0),Y)UV[J]=$;return $}else{if(J|=0,Y=-128<=J&&J<128){if(X=zV[J],X)return X}if($=M.fromBits(J,J<0?-1:0,!1),Y)zV[J]=$;return $}}static fromNumber(J,Z){if(isNaN(J))return Z?M.UZERO:M.ZERO;if(Z){if(J<0)return M.UZERO;if(J>=uV)return M.MAX_UNSIGNED_VALUE}else{if(J<=-VV)return M.MIN_VALUE;if(J+1>=VV)return M.MAX_VALUE}if(J<0)return M.fromNumber(-J,Z).neg();return M.fromBits(J%t4|0,J/t4|0,Z)}static fromBigInt(J,Z){return M.fromString(J.toString(),Z)}static fromString(J,Z,$){if(J.length===0)throw new D("empty string");if(J==="NaN"||J==="Infinity"||J==="+Infinity"||J==="-Infinity")return M.ZERO;if(typeof Z==="number")$=Z,Z=!1;else Z=!!Z;if($=$||10,$<2||36<$)throw new D("radix");let X;if((X=J.indexOf("-"))>0)throw new D("interior hyphen");else if(X===0)return M.fromString(J.substring(1),Z,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<J.length;K+=8){const G=Math.min(8,J.length-K),F=parseInt(J.substring(K,K+G),$);if(G<8){const q=M.fromNumber(Math.pow($,G));Q=Q.mul(q).add(M.fromNumber(F))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(F))}return Q.unsigned=Z,Q}static fromBytes(J,Z,$){return $?M.fromBytesLE(J,Z):M.fromBytesBE(J,Z)}static fromBytesLE(J,Z){return new M(J[0]|J[1]<<8|J[2]<<16|J[3]<<24,J[4]|J[5]<<8|J[6]<<16|J[7]<<24,Z)}static fromBytesBE(J,Z){return new M(J[4]<<24|J[5]<<16|J[6]<<8|J[7],J[0]<<24|J[1]<<16|J[2]<<8|J[3],Z)}static isLong(J){return J!=null&&typeof J==="object"&&"__isLong__"in J&&J.__isLong__===!0}static fromValue(J,Z){if(typeof J==="number")return M.fromNumber(J,Z);if(typeof J==="string")return M.fromString(J,Z);return M.fromBits(J.low,J.high,typeof Z==="boolean"?Z:J.unsigned)}add(J){if(!M.isLong(J))J=M.fromValue(J);const Z=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=J.high>>>16,K=J.high&65535,G=J.low>>>16,F=J.low&65535;let q=0,W=0,H=0,U=0;return U+=Y+F,H+=U>>>16,U&=65535,H+=X+G,W+=H>>>16,H&=65535,W+=$+K,q+=W>>>16,W&=65535,q+=Z+Q,q&=65535,M.fromBits(H<<16|U,q<<16|W,this.unsigned)}and(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low&J.low,this.high&J.high,this.unsigned)}compare(J){if(!M.isLong(J))J=M.fromValue(J);if(this.eq(J))return 0;const Z=this.isNegative(),$=J.isNegative();if(Z&&!$)return-1;if(!Z&&$)return 1;if(!this.unsigned)return this.sub(J).isNegative()?-1:1;return J.high>>>0>this.high>>>0||J.high===this.high&&J.low>>>0>this.low>>>0?-1:1}comp(J){return this.compare(J)}divide(J){if(!M.isLong(J))J=M.fromValue(J);if(J.isZero())throw new D("division by zero");if(g0){if(!this.unsigned&&this.high===-2147483648&&J.low===-1&&J.high===-1)return this;const Y=(this.unsigned?g0.div_u:g0.div_s)(this.low,this.high,J.low,J.high);return M.fromBits(Y,g0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let Z,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(J.eq(M.ONE)||J.eq(M.NEG_ONE))return M.MIN_VALUE;else if(J.eq(M.MIN_VALUE))return M.ONE;else if(Z=this.shr(1).div(J).shl(1),Z.eq(M.ZERO))return J.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(J.mul(Z)),X=Z.add($.div(J)),X;else if(J.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(J.isNegative())return this.neg().div(J.neg());return this.neg().div(J).neg()}else if(J.isNegative())return this.div(J.neg()).neg();X=M.ZERO}else{if(!J.unsigned)J=J.toUnsigned();if(J.gt(this))return M.UZERO;if(J.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(J)){Z=Math.max(1,Math.floor($.toNumber()/J.toNumber()));const Y=Math.ceil(Math.log(Z)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(Z),G=K.mul(J);while(G.isNegative()||G.gt($))Z-=Q,K=M.fromNumber(Z,this.unsigned),G=K.mul(J);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(J){return this.divide(J)}equals(J){if(!M.isLong(J))J=M.fromValue(J);if(this.unsigned!==J.unsigned&&this.high>>>31===1&&J.high>>>31===1)return!1;return this.high===J.high&&this.low===J.low}eq(J){return this.equals(J)}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 J=this.high!==0?this.high:this.low;let Z;for(Z=31;Z>0;Z--)if((J&1<<Z)!==0)break;return this.high!==0?Z+33:Z+1}greaterThan(J){return this.comp(J)>0}gt(J){return this.greaterThan(J)}greaterThanOrEqual(J){return this.comp(J)>=0}gte(J){return this.greaterThanOrEqual(J)}ge(J){return this.greaterThanOrEqual(J)}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(J){return this.comp(J)<0}lt(J){return this.lessThan(J)}lessThanOrEqual(J){return this.comp(J)<=0}lte(J){return this.lessThanOrEqual(J)}modulo(J){if(!M.isLong(J))J=M.fromValue(J);if(g0){const Z=(this.unsigned?g0.rem_u:g0.rem_s)(this.low,this.high,J.low,J.high);return M.fromBits(Z,g0.get_high(),this.unsigned)}return this.sub(this.div(J).mul(J))}mod(J){return this.modulo(J)}rem(J){return this.modulo(J)}multiply(J){if(this.isZero())return M.ZERO;if(!M.isLong(J))J=M.fromValue(J);if(g0){const j=g0.mul(this.low,this.high,J.low,J.high);return M.fromBits(j,g0.get_high(),this.unsigned)}if(J.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return J.isOdd()?M.MIN_VALUE:M.ZERO;if(J.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(J.isNegative())return this.neg().mul(J.neg());else return this.neg().mul(J).neg();else if(J.isNegative())return this.mul(J.neg()).neg();if(this.lt(M.TWO_PWR_24)&&J.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*J.toNumber(),this.unsigned);const Z=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=J.high>>>16,K=J.high&65535,G=J.low>>>16,F=J.low&65535;let q=0,W=0,H=0,U=0;return U+=Y*F,H+=U>>>16,U&=65535,H+=X*F,W+=H>>>16,H&=65535,H+=Y*G,W+=H>>>16,H&=65535,W+=$*F,q+=W>>>16,W&=65535,W+=X*G,q+=W>>>16,W&=65535,W+=Y*K,q+=W>>>16,W&=65535,q+=Z*F+$*G+X*K+Y*Q,q&=65535,M.fromBits(H<<16|U,q<<16|W,this.unsigned)}mul(J){return this.multiply(J)}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(J){return!this.equals(J)}neq(J){return this.notEquals(J)}ne(J){return this.notEquals(J)}or(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low|J.low,this.high|J.high,this.unsigned)}shiftLeft(J){if(M.isLong(J))J=J.toInt();if((J&=63)===0)return this;else if(J<32)return M.fromBits(this.low<<J,this.high<<J|this.low>>>32-J,this.unsigned);else return M.fromBits(0,this.low<<J-32,this.unsigned)}shl(J){return this.shiftLeft(J)}shiftRight(J){if(M.isLong(J))J=J.toInt();if((J&=63)===0)return this;else if(J<32)return M.fromBits(this.low>>>J|this.high<<32-J,this.high>>J,this.unsigned);else return M.fromBits(this.high>>J-32,this.high>=0?0:-1,this.unsigned)}shr(J){return this.shiftRight(J)}shiftRightUnsigned(J){if(M.isLong(J))J=J.toInt();if(J&=63,J===0)return this;else{const Z=this.high;if(J<32){const $=this.low;return M.fromBits($>>>J|Z<<32-J,Z>>>J,this.unsigned)}else if(J===32)return M.fromBits(Z,0,this.unsigned);else return M.fromBits(Z>>>J-32,0,this.unsigned)}}shr_u(J){return this.shiftRightUnsigned(J)}shru(J){return this.shiftRightUnsigned(J)}subtract(J){if(!M.isLong(J))J=M.fromValue(J);return this.add(J.neg())}sub(J){return this.subtract(J)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*t4+(this.low>>>0);return this.high*t4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(J){return J?this.toBytesLE():this.toBytesBE()}toBytesLE(){const J=this.high,Z=this.low;return[Z&255,Z>>>8&255,Z>>>16&255,Z>>>24,J&255,J>>>8&255,J>>>16&255,J>>>24]}toBytesBE(){const J=this.high,Z=this.low;return[J>>>24,J>>>16&255,J>>>8&255,J&255,Z>>>24,Z>>>16&255,Z>>>8&255,Z&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(J){if(J=J||10,J<2||36<J)throw new D("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(J),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(J)+K.toInt().toString(J)}else return"-"+this.neg().toString(J);const Z=M.fromNumber(Math.pow(J,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(Z);let K=($.sub(Y.mul(Z)).toInt()>>>0).toString(J);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(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low^J.low,this.high^J.high,this.unsigned)}eqz(){return this.isZero()}le(J){return this.lessThanOrEqual(J)}toExtendedJSON(J){if(J&&J.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(J,Z){const{useBigInt64:$=!1,relaxed:X=!0}={...Z};if(J.$numberLong.length>qS)throw new D("$numberLong string is too long");if(!WS.test(J.$numberLong))throw new D(`\$numberLong string "${J.$numberLong}" is in an invalid format`);if($){const Q=BigInt(J.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(J.$numberLong);if(X)return Y.toNumber();return Y}inspect(J,Z,$){$??=B0;const X=$(this.toString(),Z),Y=this.unsigned?`, ${$(this.unsigned,Z)}`:"";return`new Long(${X}${Y})`}}M.TWO_PWR_24=M.fromInt(FS);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 HS=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,VS=/^(\+|-)?(Infinity|inf)$/i,zS=/^(\+|-)?NaN$/i,i4=6111,z5=-6176,MV=6176,jV=34,ZX=L.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),AV=L.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),LV=L.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),US=/^([-+])?(\d+)?$/,MS=31,wV=16383,jS=30,AS=31;class n1 extends Y0{get _bsontype(){return"Decimal128"}constructor(J){super();if(typeof J==="string")this.bytes=n1.fromString(J).bytes;else if(q4(J)){if(J.byteLength!==16)throw new D("Decimal128 must take a Buffer of 16 bytes");this.bytes=J}else throw new D("Decimal128 must take a Buffer or string")}static fromString(J){return n1._fromString(J,{allowRounding:!1})}static fromStringWithRounding(J){return n1._fromString(J,{allowRounding:!0})}static _fromString(J,Z){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,F=0,q=0,W=0;const H=[0];let U=0,j=0,z=0,A=0,T=new M(0,0),w=new M(0,0),N=0,P=0;if(J.length>=7000)throw new D(""+J+" not a valid Decimal128 string");const f=J.match(HS),$0=J.match(VS),A8=J.match(zS);if(!f&&!$0&&!A8||J.length===0)throw new D(""+J+" not a valid Decimal128 string");if(f){const g=f[2],_=f[4],C=f[5],O=f[6];if(_&&O===void 0)Q6(J,"missing exponent power");if(_&&g===void 0)Q6(J,"missing exponent base");if(_===void 0&&(C||O))Q6(J,"missing e before exponent")}if(J[P]==="+"||J[P]==="-")X=!0,$=J[P++]==="-";if(!RV(J[P])&&J[P]!=="."){if(J[P]==="i"||J[P]==="I")return new n1($?AV:LV);else if(J[P]==="N")return new n1(ZX)}while(RV(J[P])||J[P]==="."){if(J[P]==="."){if(Y)Q6(J,"contains multiple periods");Y=!0,P=P+1;continue}if(U<jV){if(J[P]!=="0"||Q){if(!Q)W=G;Q=!0,H[j++]=parseInt(J[P],10),U=U+1}}if(Q)F=F+1;if(Y)q=q+1;G=G+1,P=P+1}if(Y&&!G)throw new D(""+J+" not a valid Decimal128 string");if(J[P]==="e"||J[P]==="E"){const g=J.substr(++P).match(US);if(!g||!g[2])return new n1(ZX);A=parseInt(g[0],10),P=P+g[0].length}if(J[P])return new n1(ZX);if(!U)H[0]=0,F=1,U=1,K=0;else if(z=U-1,K=F,K!==1)while(J[W+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(A<=q&&q>A+(1<<14))A=z5;else A=A-q;while(A>i4){if(z=z+1,z>=jV){if(K===0){A=i4;break}Q6(J,"overflow")}A=A-1}if(Z.allowRounding){while(A<z5||U<F){if(z===0&&K<U){A=z5,K=0;break}if(U<F)F=F-1;else z=z-1;if(A<i4)A=A+1;else{if(H.join("").match(/^0+$/)){A=i4;break}Q6(J,"overflow")}}if(z+1<K){let g=G;if(Y)W=W+1,g=g+1;if(X)W=W+1,g=g+1;const _=parseInt(J[W+z+1],10);let C=0;if(_>=5){if(C=1,_===5){C=H[z]%2===1?1:0;for(let O=W+z+2;O<g;O++)if(parseInt(J[O],10)){C=1;break}}}if(C){let O=z;for(;O>=0;O--)if(++H[O]>9){if(H[O]=0,O===0)if(A<i4)A=A+1,H[O]=1;else return new n1($?AV:LV)}else break}}}else{while(A<z5||U<F){if(z===0){if(K===0){A=z5;break}Q6(J,"exponent underflow")}if(U<F){if(J[F-1+Number(X)+Number(Y)]!=="0"&&K!==0)Q6(J,"inexact rounding");F=F-1}else{if(H[z]!==0)Q6(J,"inexact rounding");z=z-1}if(A<i4)A=A+1;else Q6(J,"overflow")}if(z+1<K){if(Y)W=W+1;if(X)W=W+1;if(parseInt(J[W+z+1],10)!==0)Q6(J,"inexact rounding")}}if(T=M.fromNumber(0),w=M.fromNumber(0),K===0)T=M.fromNumber(0),w=M.fromNumber(0);else if(z<17){let g=0;w=M.fromNumber(H[g++]),T=new M(0,0);for(;g<=z;g++)w=w.multiply(M.fromNumber(10)),w=w.add(M.fromNumber(H[g]))}else{let g=0;T=M.fromNumber(H[g++]);for(;g<=z-17;g++)T=T.multiply(M.fromNumber(10)),T=T.add(M.fromNumber(H[g]));w=M.fromNumber(H[g++]);for(;g<=z;g++)w=w.multiply(M.fromNumber(10)),w=w.add(M.fromNumber(H[g]))}const k=wS(T,M.fromString("100000000000000000"));if(k.low=k.low.add(w),RS(k.low,w))k.high=k.high.add(M.fromNumber(1));N=A+MV;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(N).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(N&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 Q1=L.allocate(16);return P=0,Q1[P++]=B.low.low&255,Q1[P++]=B.low.low>>8&255,Q1[P++]=B.low.low>>16&255,Q1[P++]=B.low.low>>24&255,Q1[P++]=B.low.high&255,Q1[P++]=B.low.high>>8&255,Q1[P++]=B.low.high>>16&255,Q1[P++]=B.low.high>>24&255,Q1[P++]=B.high.low&255,Q1[P++]=B.high.low>>8&255,Q1[P++]=B.high.low>>16&255,Q1[P++]=B.high.low>>24&255,Q1[P++]=B.high.high&255,Q1[P++]=B.high.high>>8&255,Q1[P++]=B.high.high>>16&255,Q1[P++]=B.high.high>>24&255,new n1(Q1)}toString(){let J,Z=0;const $=new Array(36);for(let P=0;P<$.length;P++)$[P]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,F;const q=[];X=0;const W=this.bytes,H=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,U=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,j=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,z=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24;if(X=0,{low:new M(H,U),high:new M(j,z)}.high.lessThan(M.ZERO))q.push("-");const T=z>>26&MS;if(T>>3===3)if(T===jS)return q.join("")+"Infinity";else if(T===AS)return"NaN";else J=z>>15&wV,Q=8+(z>>14&1);else Q=z>>14&7,J=z>>17&wV;const w=J-MV;if(K.parts[0]=(z&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 P=0;const f=LS(K);if(K=f.quotient,P=f.rem.low,!P)continue;for(G=8;G>=0;G--)$[F*9+G]=P%10,P=Math.floor(P/10)}if(Y)Z=1,$[X]=0;else{Z=36;while(!$[X])Z=Z-1,X=X+1}const N=Z-1+w;if(N>=34||N<=-7||w>0){if(Z>34){if(q.push("0"),w>0)q.push(`E+${w}`);else if(w<0)q.push(`E${w}`);return q.join("")}if(q.push(`${$[X++]}`),Z=Z-1,Z)q.push(".");for(let P=0;P<Z;P++)q.push(`${$[X++]}`);if(q.push("E"),N>0)q.push(`+${N}`);else q.push(`${N}`)}else if(w>=0)for(let P=0;P<Z;P++)q.push(`${$[X++]}`);else{let P=Z+w;if(P>0)for(let f=0;f<P;f++)q.push(`${$[X++]}`);else q.push("0");q.push(".");while(P++<0)q.push("0");for(let f=0;f<Z-Math.max(P-1,0);f++)q.push(`${$[X++]}`)}return q.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(J){return n1.fromString(J.$numberDecimal)}inspect(J,Z,$){return $??=B0,`new Decimal128(${$(this.toString(),Z)})`}}class E8 extends Y0{get _bsontype(){return"Double"}constructor(J){super();if(J instanceof Number)J=J.valueOf();this.value=+J}valueOf(){return this.value}toJSON(){return this.value}toString(J){return this.value.toString(J)}toExtendedJSON(J){if(J&&(J.legacy||J.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(J,Z){const $=parseFloat(J.$numberDouble);return Z&&Z.relaxed?$:new E8($)}inspect(J,Z,$){return $??=B0,`new Double(${$(this.value,Z)})`}}class C8 extends Y0{get _bsontype(){return"Int32"}constructor(J){super();if(J instanceof Number)J=J.valueOf();this.value=+J|0}valueOf(){return this.value}toString(J){return this.value.toString(J)}toJSON(){return this.value}toExtendedJSON(J){if(J&&(J.relaxed||J.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(J,Z){return Z&&Z.relaxed?parseInt(J.$numberInt,10):new C8(J.$numberInt)}inspect(J,Z,$){return $??=B0,`new Int32(${$(this.value,Z)})`}}class H4 extends Y0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new H4}inspect(){return"new MaxKey()"}}class V4 extends Y0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new V4}inspect(){return"new MinKey()"}}var DS=new RegExp("^[0-9a-fA-F]{24}$"),F4=null,t6=Symbol("id");class w1 extends Y0{get _bsontype(){return"ObjectId"}constructor(J){super();let Z;if(typeof J==="object"&&J&&"id"in J){if(typeof J.id!=="string"&&!ArrayBuffer.isView(J.id))throw new D("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in J&&typeof J.toHexString==="function")Z=L.fromHex(J.toHexString());else Z=J.id}else Z=J;if(Z==null||typeof Z==="number")this[t6]=w1.generate(typeof Z==="number"?Z:void 0);else if(ArrayBuffer.isView(Z)&&Z.byteLength===12)this[t6]=L.toLocalBufferType(Z);else if(typeof Z==="string")if(Z.length===24&&DS.test(Z))this[t6]=L.fromHex(Z);else throw new D("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");else throw new D("Argument passed in does not match the accepted types");if(w1.cacheHexString)this.__id=L.toHex(this.id)}get id(){return this[t6]}set id(J){if(this[t6]=J,w1.cacheHexString)this.__id=L.toHex(J)}toHexString(){if(w1.cacheHexString&&this.__id)return this.__id;const J=L.toHex(this.id);if(w1.cacheHexString&&!this.__id)this.__id=J;return J}static getInc(){return w1.index=(w1.index+1)%16777215}static generate(J){if(typeof J!=="number")J=Math.floor(Date.now()/1000);const Z=w1.getInc(),$=L.allocate(12);if(M5.fromUint8Array($).setUint32(0,J,!1),F4===null)F4=L.randomBytes(5);return $[4]=F4[0],$[5]=F4[1],$[6]=F4[2],$[7]=F4[3],$[8]=F4[4],$[11]=Z&255,$[10]=Z>>8&255,$[9]=Z>>16&255,$}toString(J){if(J==="base64")return L.toBase64(this.id);if(J==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}static is(J){return J!=null&&typeof J==="object"&&"_bsontype"in J&&J._bsontype==="ObjectId"}equals(J){if(J===void 0||J===null)return!1;if(w1.is(J))return this[t6][11]===J[t6][11]&&L.equals(this[t6],J[t6]);if(typeof J==="string")return J.toLowerCase()===this.toHexString();if(typeof J==="object"&&typeof J.toHexString==="function"){const Z=J.toHexString(),$=this.toHexString();return typeof Z==="string"&&Z.toLowerCase()===$}return!1}getTimestamp(){const J=new Date,Z=M5.fromUint8Array(this.id).getUint32(0,!1);return J.setTime(Math.floor(Z)*1000),J}static createPk(){return new w1}static createFromTime(J){const Z=L.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return M5.fromUint8Array(Z).setUint32(0,J,!1),new w1(Z)}static createFromHexString(J){if(J?.length!==24)throw new D("hex string must be 24 characters");return new w1(L.fromHex(J))}static createFromBase64(J){if(J?.length!==16)throw new D("base64 string must be 16 characters");return new w1(L.fromBase64(J))}static isValid(J){if(J==null)return!1;try{return new w1(J),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(J){return new w1(J.$oid)}inspect(J,Z,$){return $??=B0,`new ObjectId(${$(this.toHexString(),Z)})`}}w1.index=Math.floor(Math.random()*16777215);class u0 extends Y0{get _bsontype(){return"BSONRegExp"}constructor(J,Z){super();if(this.pattern=J,this.options=PS(Z??""),this.pattern.indexOf("\0")!==-1)throw new D(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new D(`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 D(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(J){return J?J.split("").sort().join(""):""}toExtendedJSON(J){if(J=J||{},J.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(J){if("$regex"in J)if(typeof J.$regex!=="string"){if(J.$regex._bsontype==="BSONRegExp")return J}else return new u0(J.$regex,u0.parseOptions(J.$options));if("$regularExpression"in J)return new u0(J.$regularExpression.pattern,u0.parseOptions(J.$regularExpression.options));throw new D(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(J)}`)}inspect(J,Z,$){const X=th(Z)??((K)=>K);$??=B0;const Y=X($(this.pattern),"regexp"),Q=X($(this.options),"regexp");return`new BSONRegExp(${Y}, ${Q})`}}class z4 extends Y0{get _bsontype(){return"BSONSymbol"}constructor(J){super();this.value=J}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(J){return new z4(J.$symbol)}inspect(J,Z,$){return $??=B0,`new BSONSymbol(${$(this.value,Z)})`}}var TS=M;class m0 extends TS{get _bsontype(){return"Timestamp"}constructor(J){if(J==null)super(0,0,!0);else if(typeof J==="bigint")super(J,!0);else if(M.isLong(J))super(J.low,J.high,!0);else if(typeof J==="object"&&"t"in J&&"i"in J){if(typeof J.t!=="number"&&(typeof J.t!=="object"||J.t._bsontype!=="Int32"))throw new D("Timestamp constructed from { t, i } must provide t as a number");if(typeof J.i!=="number"&&(typeof J.i!=="object"||J.i._bsontype!=="Int32"))throw new D("Timestamp constructed from { t, i } must provide i as a number");const Z=Number(J.t),$=Number(J.i);if(Z<0||Number.isNaN(Z))throw new D("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new D("Timestamp constructed from { t, i } must provide a positive i");if(Z>4294967295)throw new D("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new D("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,Z,!0)}else throw new D("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(J){return new m0(M.fromInt(J,!0))}static fromNumber(J){return new m0(M.fromNumber(J,!0))}static fromBits(J,Z){return new m0({i:J,t:Z})}static fromString(J,Z){return new m0(M.fromString(J,!0,Z))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(J){const Z=M.isLong(J.$timestamp.i)?J.$timestamp.i.getLowBitsUnsigned():J.$timestamp.i,$=M.isLong(J.$timestamp.t)?J.$timestamp.t.getLowBitsUnsigned():J.$timestamp.t;return new m0({t:$,i:Z})}inspect(J,Z,$){$??=B0;const X=$(this.high>>>0,Z),Y=$(this.low>>>0,Z);return`new Timestamp({ t: ${X}, i: ${Y} })`}}m0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var IS=128,NS=192,BS=224,ES=240,CS=248,hS=192,SS=224,OS=240,kS=128,yS=M.fromNumber(BV),_S=M.fromNumber(EV),fS=/^\$ref$|^\$id$|^\$db$/,HJ=/\x00/,PV=new Set(["$db","$ref","$id","$clusterTime"]),e4=new DataView(new ArrayBuffer(8),0,8),vS=new Uint8Array(e4.buffer,0,4),VJ=new Uint8Array(e4.buffer,0,8),bS={$oid:w1,$binary:l,$uuid:l,$symbol:z4,$numberInt:C8,$numberDecimal:n1,$numberDouble:E8,$numberLong:M,$minKey:V4,$maxKey:H4,$regex:u0,$regularExpression:u0,$timestamp:m0},mS={Binary:(J)=>new l(J.value(),J.sub_type),Code:(J)=>new o6(J.code,J.scope),DBRef:(J)=>new C6(J.collection||J.namespace,J.oid,J.db,J.fields),Decimal128:(J)=>new n1(J.bytes),Double:(J)=>new E8(J.value),Int32:(J)=>new C8(J.value),Long:(J)=>M.fromBits(J.low!=null?J.low:J.low_,J.low!=null?J.high:J.high_,J.low!=null?J.unsigned:J.unsigned_),MaxKey:()=>new H4,MinKey:()=>new V4,ObjectId:(J)=>new w1(J),BSONRegExp:(J)=>new u0(J.pattern,J.options),BSONSymbol:(J)=>new z4(J.value),Timestamp:(J)=>m0.fromBits(J.low,J.high)},U4=Object.create(null);U4.parse=lV;U4.stringify=aV;U4.serialize=dS;U4.deserialize=cS;Object.freeze(U4);var iV=17825792,N8=L.allocate(iV),pS=Object.freeze({__proto__:null,BSONError:D,BSONRegExp:u0,BSONRuntimeError:j5,BSONSymbol:z4,BSONType:gV,BSONValue:Y0,BSONVersionError:B8,Binary:l,Code:o6,DBRef:C6,Decimal128:n1,Double:E8,EJSON:U4,Int32:C8,Long:M,MaxKey:H4,MinKey:V4,ObjectId:w1,Timestamp:m0,UUID:f1,calculateObjectSize:oV,deserialize:rV,deserializeStream:eV,serialize:nV,serializeWithBufferAndIndex:tV,setInternalBufferSize:sV});lS.BSON=pS;lS.BSONError=D;lS.BSONRegExp=u0;lS.BSONRuntimeError=j5;lS.BSONSymbol=z4;lS.BSONType=gV;lS.BSONValue=Y0;lS.BSONVersionError=B8;lS.Binary=l;lS.Code=o6;lS.DBRef=C6;lS.Decimal128=n1;lS.Double=E8;lS.EJSON=U4;lS.Int32=C8;lS.Long=M;lS.MaxKey=H4;lS.MinKey=V4;lS.ObjectId=w1;lS.Timestamp=m0;lS.UUID=f1;lS.calculateObjectSize=oV;lS.deserialize=rV;lS.deserializeStream=eV;lS.serialize=nV;lS.serializeWithBufferAndIndex=tV;lS.setInternalBufferSize=sV});var H1=V((P1)=>{var wO=function(J){const{fieldsAsRaw:Z,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:q,enableUtf8Validation:W}=J;return{fieldsAsRaw:Z,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:q,enableUtf8Validation:W}},RO=function(J,Z){const $=Z?.bsonOptions;return{raw:J?.raw??$?.raw??!1,useBigInt64:J?.useBigInt64??$?.useBigInt64??!1,promoteLongs:J?.promoteLongs??$?.promoteLongs??!0,promoteValues:J?.promoteValues??$?.promoteValues??!0,promoteBuffers:J?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:J?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:J?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:J?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:J?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:J?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(P1,"__esModule",{value:!0});P1.resolveBSONOptions=P1.pluckBSONSerializeOptions=P1.UUID=P1.Timestamp=P1.serialize=P1.ObjectId=P1.MinKey=P1.MaxKey=P1.Long=P1.Int32=P1.Double=P1.deserialize=P1.Decimal128=P1.DBRef=P1.Code=P1.calculateObjectSize=P1.BSONType=P1.BSONSymbol=P1.BSONRegExp=P1.BSON=P1.Binary=void 0;var O1=L5();Object.defineProperty(P1,"Binary",{enumerable:!0,get:function(){return O1.Binary}});Object.defineProperty(P1,"BSON",{enumerable:!0,get:function(){return O1.BSON}});Object.defineProperty(P1,"BSONRegExp",{enumerable:!0,get:function(){return O1.BSONRegExp}});Object.defineProperty(P1,"BSONSymbol",{enumerable:!0,get:function(){return O1.BSONSymbol}});Object.defineProperty(P1,"BSONType",{enumerable:!0,get:function(){return O1.BSONType}});Object.defineProperty(P1,"calculateObjectSize",{enumerable:!0,get:function(){return O1.calculateObjectSize}});Object.defineProperty(P1,"Code",{enumerable:!0,get:function(){return O1.Code}});Object.defineProperty(P1,"DBRef",{enumerable:!0,get:function(){return O1.DBRef}});Object.defineProperty(P1,"Decimal128",{enumerable:!0,get:function(){return O1.Decimal128}});Object.defineProperty(P1,"deserialize",{enumerable:!0,get:function(){return O1.deserialize}});Object.defineProperty(P1,"Double",{enumerable:!0,get:function(){return O1.Double}});Object.defineProperty(P1,"Int32",{enumerable:!0,get:function(){return O1.Int32}});Object.defineProperty(P1,"Long",{enumerable:!0,get:function(){return O1.Long}});Object.defineProperty(P1,"MaxKey",{enumerable:!0,get:function(){return O1.MaxKey}});Object.defineProperty(P1,"MinKey",{enumerable:!0,get:function(){return O1.MinKey}});Object.defineProperty(P1,"ObjectId",{enumerable:!0,get:function(){return O1.ObjectId}});Object.defineProperty(P1,"serialize",{enumerable:!0,get:function(){return O1.serialize}});Object.defineProperty(P1,"Timestamp",{enumerable:!0,get:function(){return O1.Timestamp}});Object.defineProperty(P1,"UUID",{enumerable:!0,get:function(){return O1.UUID}});P1.pluckBSONSerializeOptions=wO;P1.resolveBSONOptions=RO});var E=V((hz)=>{var PO=function(J){return"errors"in J&&Array.isArray(J.errors)},TO=function(J){return J[wz]===!0},IO=function(J){const Z=Object.assign({},J);if(Z.ok===0)Z.ok=1,delete Z.errmsg,delete Z.code,delete Z.codeName;return Z},NO=function(J,Z){if(J instanceof M4)return!0;if(J instanceof h6){if((Z>=9||Ez(J))&&!J.hasErrorLabel(hz.MongoErrorLabel.HandshakeError))return!1}if(J instanceof kX)return Zz.has(J.result?.code??J.code??0);if(J instanceof h6&&typeof J.code==="number")return Zz.has(J.code);if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message))return!0;return!1},Ez=function(J){return J.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError)||J.hasErrorLabel(hz.MongoErrorLabel.PoolRequstedRetry)},BO=function(J){if(typeof J.code==="number"?Bz.has(J.code):!1)return!0;if(J instanceof M4)return!0;if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message))return!0;return!1},Cz=function(J){if(typeof J.code==="number")return EO.has(J.code);return hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(J.message)||hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message)},SO=function(J){if(typeof J.code==="number")return CO.has(J.code);if(Cz(J))return!1;return hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message)},OO=function(J){return!!(typeof J.code==="number"&&hO.has(J.code))},kO=function(J){if(J instanceof SX||J==null)return!0;return Cz(J)||SO(J)},yO=function(J){return!!(J instanceof M4&&J.message.match(/timed out/))},_O=function(J,Z){if(J==null||!(J instanceof h6))return!1;if(J instanceof M4)return!0;if(Z!=null&&Z>=9){if(J.code===hz.MONGODB_ERROR_CODES.CursorNotFound)return!0;return J.hasErrorLabel(hz.MongoErrorLabel.ResumableChangeStreamError)}if(typeof J.code==="number")return hz.GET_MORE_RESUMABLE_CODES.has(J.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 w5=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",PoolRequstedRetry:"PoolRequstedRetry",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class h6 extends Error{constructor(J,Z){super(J,Z);this[w5]=new Set}static buildErrorMessage(J){if(typeof J==="string")return J;if(PO(J)&&J.message.length===0)return J.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":J.errors.map(({message:Z})=>Z).join(", ");return J.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(J){return this[w5].has(J)}addErrorLabel(J){this[w5].add(J)}get errorLabels(){return Array.from(this[w5])}}hz.MongoError=h6;class hX extends h6{constructor(J){super(J.message||J.errmsg||J.$err||"n/a");if(J.errorLabels)this[w5]=new Set(J.errorLabels);for(let Z in J)if(Z!=="errorLabels"&&Z!=="errmsg"&&Z!=="message")this[Z]=J[Z]}get name(){return"MongoServerError"}}hz.MongoServerError=hX;class D5 extends h6{constructor(J,Z){super(J,Z)}get name(){return"MongoDriverError"}}hz.MongoDriverError=D5;class Q0 extends D5{constructor(J,Z){super(J,Z)}get name(){return"MongoAPIError"}}hz.MongoAPIError=Q0;class S6 extends D5{constructor(J,Z){super(J,Z)}get name(){return"MongoRuntimeError"}}hz.MongoRuntimeError=S6;class $z extends Q0{constructor(J="This batch has already been executed, create new batch to execute"){super(J)}get name(){return"MongoBatchReExecutionError"}}hz.MongoBatchReExecutionError=$z;class Xz extends S6{constructor(J){super(J)}get name(){return"MongoDecompressionError"}}hz.MongoDecompressionError=Xz;class Yz extends Q0{constructor(J){super(J)}get name(){return"MongoNotConnectedError"}}hz.MongoNotConnectedError=Yz;class Qz extends Q0{constructor(J){super(J)}get name(){return"MongoTransactionError"}}hz.MongoTransactionError=Qz;class Kz extends Q0{constructor(J="Cannot use a session that has ended"){super(J)}get name(){return"MongoExpiredSessionError"}}hz.MongoExpiredSessionError=Kz;class Gz extends S6{constructor(J){super(J)}get name(){return"MongoKerberosError"}}hz.MongoKerberosError=Gz;class Fz extends S6{constructor(J){super(J)}get name(){return"MongoAWSError"}}hz.MongoAWSError=Fz;class qz extends S6{constructor(J){super(J)}get name(){return"MongoAzureError"}}hz.MongoAzureError=qz;class Wz extends S6{constructor(J){super(J)}get name(){return"MongoChangeStreamError"}}hz.MongoChangeStreamError=Wz;class Hz extends Q0{constructor(J="Tailable cursor does not support this operation"){super(J)}get name(){return"MongoTailableCursorError"}}hz.MongoTailableCursorError=Hz;class Vz extends S6{constructor(J){super(J)}get name(){return"MongoGridFSStreamError"}}hz.MongoGridFSStreamError=Vz;class zz extends S6{constructor(J){super(J)}get name(){return"MongoGridFSChunkError"}}hz.MongoGridFSChunkError=zz;class Uz extends S6{constructor(J){super(J)}get name(){return"MongoUnexpectedServerResponseError"}}hz.MongoUnexpectedServerResponseError=Uz;class Mz extends Q0{constructor(J="Cursor is already initialized"){super(J)}get name(){return"MongoCursorInUseError"}}hz.MongoCursorInUseError=Mz;class jz extends Q0{constructor(J="Server is closed"){super(J)}get name(){return"MongoServerClosedError"}}hz.MongoServerClosedError=jz;class Az extends Q0{constructor(J){super(J||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}hz.MongoCursorExhaustedError=Az;class Lz extends Q0{constructor(J="Topology is closed"){super(J)}get name(){return"MongoTopologyClosedError"}}hz.MongoTopologyClosedError=Lz;var wz=Symbol("beforeHandshake");hz.isNetworkErrorBeforeHandshake=TO;class M4 extends h6{constructor(J,Z){super(J,{cause:Z?.cause});if(Z&&typeof Z.beforeHandshake==="boolean")this[wz]=Z.beforeHandshake}get name(){return"MongoNetworkError"}}hz.MongoNetworkError=M4;class Rz extends M4{constructor(J,Z){super(J,Z)}get name(){return"MongoNetworkTimeoutError"}}hz.MongoNetworkTimeoutError=Rz;class SX extends D5{constructor(J){super(J)}get name(){return"MongoParseError"}}hz.MongoParseError=SX;class Dz extends Q0{constructor(J){super(J)}get name(){return"MongoInvalidArgumentError"}}hz.MongoInvalidArgumentError=Dz;class Pz extends Q0{constructor(J){super(J)}get name(){return"MongoCompatibilityError"}}hz.MongoCompatibilityError=Pz;class Tz extends Q0{constructor(J){super(J)}get name(){return"MongoMissingCredentialsError"}}hz.MongoMissingCredentialsError=Tz;class Iz extends Q0{constructor(J,Z={}){super(J,Z)}get name(){return"MongoMissingDependencyError"}}hz.MongoMissingDependencyError=Iz;class OX extends h6{constructor(J,Z){if(Z&&Z.error)super(h6.buildErrorMessage(Z.error.message||Z.error),{cause:Z.error});else super(J);if(Z)this.reason=Z;this.code=Z.error?.code}get name(){return"MongoSystemError"}}hz.MongoSystemError=OX;class Nz extends OX{constructor(J,Z){super(J,Z)}get name(){return"MongoServerSelectionError"}}hz.MongoServerSelectionError=Nz;class kX extends hX{constructor(J,Z){if(Z&&Array.isArray(Z.errorLabels))J.errorLabels=Z.errorLabels;super(J);if(this.errInfo=J.errInfo,Z!=null)this.result=IO(Z)}get name(){return"MongoWriteConcernError"}}hz.MongoWriteConcernError=kX;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]),Zz=new Set([...Bz,hz.MONGODB_ERROR_CODES.ExceededTimeLimit]);hz.needsRetryableWriteLabel=NO;hz.isRetryableWriteError=Ez;hz.isRetryableReadError=BO;var EO=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]),CO=new Set([hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.LegacyNotPrimary]),hO=new Set([hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.ShutdownInProgress]);hz.isNodeShuttingDownError=OO;hz.isSDAMUnrecoverableError=kO;hz.isNetworkTimeoutError=yO;hz.isResumableError=_O});var k1=V((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.ReadPreference=yz.ReadPreferenceMode=void 0;var j4=E();yz.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class c{constructor(J,Z,$){if(!c.isValid(J))throw new j4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(J)}`);if($==null&&typeof Z==="object"&&!Array.isArray(Z))$=Z,Z=void 0;else if(Z&&!Array.isArray(Z))throw new j4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=J,this.tags=Z,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new j4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===c.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(J){return new c(J)}static fromOptions(J){if(!J)return;const Z=J.readPreference??J.session?.transaction.options.readPreference,$=J.readPreferenceTags;if(Z==null)return;if(typeof Z==="string")return new c(Z,$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:J.hedge});else if(!(Z instanceof c)&&typeof Z==="object"){const X=Z.mode||Z.preference;if(X&&typeof X==="string")return new c(X,Z.tags??$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:J.hedge})}if($)Z.tags=$;return Z}static translate(J){if(J.readPreference==null)return J;const Z=J.readPreference;if(typeof Z==="string")J.readPreference=new c(Z);else if(Z&&!(Z instanceof c)&&typeof Z==="object"){const $=Z.mode||Z.preference;if($&&typeof $==="string")J.readPreference=new c($,Z.tags,{maxStalenessSeconds:Z.maxStalenessSeconds})}else if(!(Z instanceof c))throw new j4.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return J}static isValid(J){return(new Set([c.PRIMARY,c.PRIMARY_PREFERRED,c.SECONDARY,c.SECONDARY_PREFERRED,c.NEAREST,null])).has(J)}isValid(J){return c.isValid(typeof J==="string"?J:this.mode)}secondaryOk(){return(new Set([c.PRIMARY_PREFERRED,c.SECONDARY,c.SECONDARY_PREFERRED,c.NEAREST])).has(this.mode)}equals(J){return J.mode===this.mode}toJSON(){const J={mode:this.mode};if(Array.isArray(this.tags))J.tags=this.tags;if(this.maxStalenessSeconds)J.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)J.hedge=this.hedge;return J}}c.PRIMARY=yz.ReadPreferenceMode.primary;c.PRIMARY_PREFERRED=yz.ReadPreferenceMode.primaryPreferred;c.SECONDARY=yz.ReadPreferenceMode.secondary;c.SECONDARY_PREFERRED=yz.ReadPreferenceMode.secondaryPreferred;c.NEAREST=yz.ReadPreferenceMode.nearest;c.primary=new c(yz.ReadPreferenceMode.primary);c.primaryPreferred=new c(yz.ReadPreferenceMode.primaryPreferred);c.secondary=new c(yz.ReadPreferenceMode.secondary);c.secondaryPreferred=new c(yz.ReadPreferenceMode.secondaryPreferred);c.nearest=new c(yz.ReadPreferenceMode.nearest);yz.ReadPreference=c});var d0=V((fz)=>{var Dk=function(J){J.forEach(Rk.clearTimeout),J.clear()},Pk=function(J,Z){if(J.clusterTime==null)J.clusterTime=Z;else if(Z.clusterTime.greaterThan(J.clusterTime.clusterTime))J.clusterTime=Z};Object.defineProperty(fz,"__esModule",{value:!0});fz._advanceClusterTime=fz.drainTimerQueue=fz.ServerType=fz.TopologyType=fz.STATE_CONNECTED=fz.STATE_CONNECTING=fz.STATE_CLOSED=fz.STATE_CLOSING=void 0;var Rk=import.meta.require("timers");fz.STATE_CLOSING="closing";fz.STATE_CLOSED="closed";fz.STATE_CONNECTING="connecting";fz.STATE_CONNECTED="connected";fz.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});fz.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});fz.drainTimerQueue=Dk;fz._advanceClusterTime=Pk});var T5=V((bz)=>{var Ok=function(){return(J,Z)=>yX(J,Z.filter(($)=>$.isWritable))},kk=function(J){return(Z,$)=>{if(!J)return[];return $.filter((X)=>{return X.address===J.address&&X.type!==E0.ServerType.Unknown})}},yk=function(J,Z){if(!Z||!J||J&&J<bz.MIN_SECONDARY_WRITE_WIRE_VERSION)return _X(P5.ReadPreference.primary);return _X(Z)},_k=function(J,Z,$){if(J.maxStalenessSeconds==null||J.maxStalenessSeconds<0)return $;const X=J.maxStalenessSeconds,Y=(Z.heartbeatFrequencyMS+Sk)/1000;if(X<Y)throw new LJ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<xz)throw new LJ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${xz} seconds`);if(Z.type===E0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(Z.servers.values()).filter(AJ)[0];return $.reduce((K,G)=>{const q=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+Z.heartbeatFrequencyMS)/1000,W=J.maxStalenessSeconds??0;if(q<=W)K.push(G);return K},[])}if(Z.type===E0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const q=(Q.lastWriteDate-G.lastWriteDate+Z.heartbeatFrequencyMS)/1000,W=J.maxStalenessSeconds??0;if(q<=W)K.push(G);return K},[])}return $},fk=function(J,Z){const $=Object.keys(J),X=Object.keys(Z);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||Z[Q]!==J[Q])return!1}return!0},vk=function(J,Z){if(J.tags==null||Array.isArray(J.tags)&&J.tags.length===0)return Z;for(let $=0;$<J.tags.length;++$){const X=J.tags[$],Y=Z.reduce((Q,K)=>{if(fk(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},yX=function(J,Z){const $=Z.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+J.localThresholdMS;return Z.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},AJ=function(J){return J.type===E0.ServerType.RSPrimary},xk=function(J){return J.type===E0.ServerType.RSSecondary},bk=function(J){return J.type===E0.ServerType.RSSecondary||J.type===E0.ServerType.RSPrimary},gk=function(J){return J.type!==E0.ServerType.Unknown},mk=function(J){return J.type===E0.ServerType.LoadBalancer},_X=function(J){if(!J.isValid())throw new LJ.MongoInvalidArgumentError("Invalid read preference specified");return(Z,$)=>{const X=Z.commonWireVersion;if(X&&J.minWireVersion&&J.minWireVersion>X)throw new LJ.MongoCompatibilityError(`Minimum wire version '${J.minWireVersion}' required, but found '${X}'`);if(Z.type===E0.TopologyType.LoadBalanced)return $.filter(mk);if(Z.type===E0.TopologyType.Unknown)return[];if(Z.type===E0.TopologyType.Single||Z.type===E0.TopologyType.Sharded)return yX(Z,$.filter(gk));const Y=J.mode;if(Y===P5.ReadPreference.PRIMARY)return $.filter(AJ);if(Y===P5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(AJ);if(G.length)return G}const Q=Y===P5.ReadPreference.NEAREST?bk:xk,K=yX(Z,vk(J,_k(J,Z,$.filter(Q))));if(Y===P5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(AJ);return K}};Object.defineProperty(bz,"__esModule",{value:!0});bz.readPreferenceServerSelector=bz.secondaryWritableServerSelector=bz.sameServerSelector=bz.writableServerSelector=bz.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var LJ=E(),P5=k1(),E0=d0(),Sk=1e4,xz=90;bz.MIN_SECONDARY_WRITE_WIRE_VERSION=13;bz.writableServerSelector=Ok;bz.sameServerSelector=kk;bz.secondaryWritableServerSelector=yk;bz.readPreferenceServerSelector=_X});var h8=V((uz)=>{Object.defineProperty(uz,"__esModule",{value:!0});uz.OP_MSG=uz.OP_COMPRESSED=uz.OP_DELETE=uz.OP_QUERY=uz.OP_INSERT=uz.OP_UPDATE=uz.OP_REPLY=uz.MIN_SUPPORTED_QE_SERVER_VERSION=uz.MIN_SUPPORTED_QE_WIRE_VERSION=uz.MAX_SUPPORTED_WIRE_VERSION=uz.MIN_SUPPORTED_WIRE_VERSION=uz.MAX_SUPPORTED_SERVER_VERSION=uz.MIN_SUPPORTED_SERVER_VERSION=void 0;uz.MIN_SUPPORTED_SERVER_VERSION="3.6";uz.MAX_SUPPORTED_SERVER_VERSION="7.0";uz.MIN_SUPPORTED_WIRE_VERSION=6;uz.MAX_SUPPORTED_WIRE_VERSION=21;uz.MIN_SUPPORTED_QE_WIRE_VERSION=21;uz.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";uz.OP_REPLY=1;uz.OP_UPDATE=2001;uz.OP_INSERT=2002;uz.OP_QUERY=2004;uz.OP_DELETE=2006;uz.OP_COMPRESSED=2012;uz.OP_MSG=2013});var v1=V((cz)=>{Object.defineProperty(cz,"__esModule",{value:!0});cz.TOPOLOGY_EVENTS=cz.CMAP_EVENTS=cz.HEARTBEAT_EVENTS=cz.RESUME_TOKEN_CHANGED=cz.END=cz.CHANGE=cz.INIT=cz.MORE=cz.RESPONSE=cz.SERVER_HEARTBEAT_FAILED=cz.SERVER_HEARTBEAT_SUCCEEDED=cz.SERVER_HEARTBEAT_STARTED=cz.COMMAND_FAILED=cz.COMMAND_SUCCEEDED=cz.COMMAND_STARTED=cz.CLUSTER_TIME_RECEIVED=cz.CONNECTION_CHECKED_IN=cz.CONNECTION_CHECKED_OUT=cz.CONNECTION_CHECK_OUT_FAILED=cz.CONNECTION_CHECK_OUT_STARTED=cz.CONNECTION_CLOSED=cz.CONNECTION_READY=cz.CONNECTION_CREATED=cz.CONNECTION_POOL_READY=cz.CONNECTION_POOL_CLEARED=cz.CONNECTION_POOL_CLOSED=cz.CONNECTION_POOL_CREATED=cz.TOPOLOGY_DESCRIPTION_CHANGED=cz.TOPOLOGY_CLOSED=cz.TOPOLOGY_OPENING=cz.SERVER_DESCRIPTION_CHANGED=cz.SERVER_CLOSED=cz.SERVER_OPENING=cz.DESCRIPTION_RECEIVED=cz.UNPINNED=cz.PINNED=cz.MESSAGE=cz.ENDED=cz.CLOSED=cz.CONNECT=cz.OPEN=cz.CLOSE=cz.TIMEOUT=cz.ERROR=cz.SYSTEM_JS_COLLECTION=cz.SYSTEM_COMMAND_COLLECTION=cz.SYSTEM_USER_COLLECTION=cz.SYSTEM_PROFILE_COLLECTION=cz.SYSTEM_INDEX_COLLECTION=cz.SYSTEM_NAMESPACE_COLLECTION=void 0;cz.LEGACY_HELLO_COMMAND_CAMEL_CASE=cz.LEGACY_HELLO_COMMAND=cz.MONGO_CLIENT_EVENTS=cz.LOCAL_SERVER_EVENTS=cz.SERVER_RELAY_EVENTS=cz.APM_EVENTS=void 0;cz.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";cz.SYSTEM_INDEX_COLLECTION="system.indexes";cz.SYSTEM_PROFILE_COLLECTION="system.profile";cz.SYSTEM_USER_COLLECTION="system.users";cz.SYSTEM_COMMAND_COLLECTION="$cmd";cz.SYSTEM_JS_COLLECTION="system.js";cz.ERROR="error";cz.TIMEOUT="timeout";cz.CLOSE="close";cz.OPEN="open";cz.CONNECT="connect";cz.CLOSED="closed";cz.ENDED="ended";cz.MESSAGE="message";cz.PINNED="pinned";cz.UNPINNED="unpinned";cz.DESCRIPTION_RECEIVED="descriptionReceived";cz.SERVER_OPENING="serverOpening";cz.SERVER_CLOSED="serverClosed";cz.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";cz.TOPOLOGY_OPENING="topologyOpening";cz.TOPOLOGY_CLOSED="topologyClosed";cz.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";cz.CONNECTION_POOL_CREATED="connectionPoolCreated";cz.CONNECTION_POOL_CLOSED="connectionPoolClosed";cz.CONNECTION_POOL_CLEARED="connectionPoolCleared";cz.CONNECTION_POOL_READY="connectionPoolReady";cz.CONNECTION_CREATED="connectionCreated";cz.CONNECTION_READY="connectionReady";cz.CONNECTION_CLOSED="connectionClosed";cz.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";cz.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";cz.CONNECTION_CHECKED_OUT="connectionCheckedOut";cz.CONNECTION_CHECKED_IN="connectionCheckedIn";cz.CLUSTER_TIME_RECEIVED="clusterTimeReceived";cz.COMMAND_STARTED="commandStarted";cz.COMMAND_SUCCEEDED="commandSucceeded";cz.COMMAND_FAILED="commandFailed";cz.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";cz.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";cz.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";cz.RESPONSE="response";cz.MORE="more";cz.INIT="init";cz.CHANGE="change";cz.END="end";cz.RESUME_TOKEN_CHANGED="resumeTokenChanged";cz.HEARTBEAT_EVENTS=Object.freeze([cz.SERVER_HEARTBEAT_STARTED,cz.SERVER_HEARTBEAT_SUCCEEDED,cz.SERVER_HEARTBEAT_FAILED]);cz.CMAP_EVENTS=Object.freeze([cz.CONNECTION_POOL_CREATED,cz.CONNECTION_POOL_READY,cz.CONNECTION_POOL_CLEARED,cz.CONNECTION_POOL_CLOSED,cz.CONNECTION_CREATED,cz.CONNECTION_READY,cz.CONNECTION_CLOSED,cz.CONNECTION_CHECK_OUT_STARTED,cz.CONNECTION_CHECK_OUT_FAILED,cz.CONNECTION_CHECKED_OUT,cz.CONNECTION_CHECKED_IN]);cz.TOPOLOGY_EVENTS=Object.freeze([cz.SERVER_OPENING,cz.SERVER_CLOSED,cz.SERVER_DESCRIPTION_CHANGED,cz.TOPOLOGY_OPENING,cz.TOPOLOGY_CLOSED,cz.TOPOLOGY_DESCRIPTION_CHANGED,cz.ERROR,cz.TIMEOUT,cz.CLOSE]);cz.APM_EVENTS=Object.freeze([cz.COMMAND_STARTED,cz.COMMAND_SUCCEEDED,cz.COMMAND_FAILED]);cz.SERVER_RELAY_EVENTS=Object.freeze([cz.SERVER_HEARTBEAT_STARTED,cz.SERVER_HEARTBEAT_SUCCEEDED,cz.SERVER_HEARTBEAT_FAILED,cz.COMMAND_STARTED,cz.COMMAND_SUCCEEDED,cz.COMMAND_FAILED,...cz.CMAP_EVENTS]);cz.LOCAL_SERVER_EVENTS=Object.freeze([cz.CONNECT,cz.DESCRIPTION_RECEIVED,cz.CLOSED,cz.ENDED]);cz.MONGO_CLIENT_EVENTS=Object.freeze([...cz.CMAP_EVENTS,...cz.APM_EVENTS,...cz.TOPOLOGY_EVENTS,...cz.HEARTBEAT_EVENTS]);cz.LEGACY_HELLO_COMMAND="ismaster";cz.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var c0=V((AU)=>{Object.defineProperty(AU,"__esModule",{value:!0});AU.ReadConcern=AU.ReadConcernLevel=void 0;AU.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class Z7{constructor(J){this.level=AU.ReadConcernLevel[J]??J}static fromOptions(J){if(J==null)return;if(J.readConcern){const{readConcern:Z}=J;if(Z instanceof Z7)return Z;else if(typeof Z==="string")return new Z7(Z);else if("level"in Z&&Z.level)return new Z7(Z.level)}if(J.level)return new Z7(J.level);return}static get MAJORITY(){return AU.ReadConcernLevel.majority}static get AVAILABLE(){return AU.ReadConcernLevel.available}static get LINEARIZABLE(){return AU.ReadConcernLevel.linearizable}static get SNAPSHOT(){return AU.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}AU.ReadConcern=Z7});var A0=V((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.WriteConcern=wU.WRITE_CONCERN_KEYS=void 0;wU.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class I5{constructor(J,Z,$,X){if(J!=null)if(!Number.isNaN(Number(J)))this.w=Number(J);else this.w=J;if(Z!=null)this.wtimeoutMS=this.wtimeout=Z;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(J,Z){const $={};if(Z.w!=null)$.w=Z.w;if(Z.wtimeoutMS!=null)$.wtimeout=Z.wtimeoutMS;if(Z.journal!=null)$.j=Z.j;return J.writeConcern=$,J}static fromOptions(J,Z){if(J==null)return;Z=Z??{};let $;if(typeof J==="string"||typeof J==="number")$={w:J};else if(J instanceof I5)$=J;else $=J.writeConcern;const X=Z instanceof I5?Z:Z.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:F=void 0,wtimeoutMS:q=void 0}={...X,...$};if(Y!=null||Q!=null||q!=null||K!=null||F!=null||G!=null)return new I5(Y,Q??q,K??F,G);return}}wU.WriteConcern=I5});var y=V((yU)=>{var _y=function(J,Z){for(let $ of Z)if(J===$||$.startsWith("*.")&&J?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&J?.endsWith($.substring(2,$.length)))return!0;return!1},fy=function(J){let Z=void 0;if(typeof J==="string")Z=J;else if(Array.isArray(J))Z={},J.forEach(($)=>{Z[$]=1});else if(J!=null&&typeof J==="object"){Z={};for(let $ in J)Z[$]=J[$]}return Z},cX=function(J){return vy(J)==="[object Object]"},xy=function(J,Z){return{...J,...Z}},by=function(J,Z){const $={};for(let X in J)if(Z.includes(X))$[X]=J[X];return $},gy=function(J,Z){if(Z&&Z.s.options?.retryWrites)J.retryWrites=!0;return J},my=function(J){return!!J&&typeof J.then==="function"},uy=function(J,Z,$){const X=IU(Z).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)J.collation=$.collation;else throw new G6.MongoCompatibilityError("Current topology does not support collation")},dy=function(J,Z,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},J.readConcern||{});if(Z.s.readConcern)Object.assign(X,Z.s.readConcern);if(Object.keys(X).length>0)Object.assign(J,{readConcern:X})},cy=function(J,Z){if(J.explain)return J;return{explain:J,verbosity:Z.verbosity}},IU=function(J){if("topology"in J&&J.topology)return J.topology;else if("client"in J&&J.client.topology)return J.client.topology;throw new G6.MongoNotConnectedError("MongoClient must be connected to perform this operation")},py=function(J){return E5.fromString(J)};function*ly(J=0){let Z=J;while(!0){const $=Z;Z+=1,yield $}}var ay=function(J,Z){const $=J();if(Z==null)return $;$.then((X)=>Z(void 0,X),(X)=>Z(X));return},iy=function(){const J=Iy.randomBytes(16);return J[6]=J[6]&15|64,J[8]=J[8]&63|128,J},sy=function(J){if(J){if(J.loadBalanced)return Cy.MAX_SUPPORTED_WIRE_VERSION;if(J.hello)return J.hello.maxWireVersion;if("lastHello"in J&&typeof J.lastHello==="function"){const Z=J.lastHello();if(Z)return Z.maxWireVersion}if(J.description&&"maxWireVersion"in J.description&&J.description.maxWireVersion!=null)return J.description.maxWireVersion}return 0},ny=function(J,Z,$){J=J||[];let X=0,Y=0;for(X=0;X<J.length;++X)Y++,Z(J[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===J.length&&Y<=0)$()}},ty=function(J,Z){if(!Array.isArray(J)||!Array.isArray(Z))return!1;return J.length===Z.length&&J.every(($,X)=>$===Z[X])},ry=function(J,Z){if(J===Z)return!0;if(!J||!Z)return J===Z;if(J==null&&Z!=null||J!=null&&Z==null)return!1;if(J.constructor.name!==Z.constructor.name)return!1;if(J.message!==Z.message)return!1;return!0},oy=function(J){return function Z($,X){const Y=J[$.s.state];if(Y&&Y.indexOf(X)<0)throw new G6.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},NU=function(){const J=process.hrtime();return Math.floor(J[0]*1000+J[1]/1e6)},ey=function(J){if(typeof J!=="number")throw new G6.MongoInvalidArgumentError("Numeric value required to calculate duration");const Z=NU()-J;return Z<0?0:Z},BU=function(J){if(Array.isArray(J)){for(let $ of J)if(BU($))return!0;return!1}const Z=Object.keys(J);return Z.length>0&&Z[0][0]==="$"},J_=function(J,Z){const $=Object.assign({},Z,TU.resolveBSONOptions(Z,J));if(!Z?.session?.inTransaction()){const Q=Sy.ReadConcern.fromOptions(Z)??J?.readConcern;if(Q)$.readConcern=Q;const K=yy.WriteConcern.fromOptions(Z)??J?.writeConcern;if(K)$.writeConcern=K}const Y=Oy.ReadPreference.fromOptions(Z)??J?.readPreference;if(Y)$.readPreference=Y;return $},EU=function(J,Z){J=Array.isArray(J)?new Set(J):J,Z=Array.isArray(Z)?new Set(Z):Z;for(let $ of Z)if(!J.has($))return!1;return!0},Z_=function(J){return J[hy.LEGACY_HELLO_COMMAND]||J.hello?!0:!1},$_=function(J,Z){const $=new Set(J);for(let X of Z)$.delete(X);return $},CU=function(J,Z=void 0){if(!cX(J))return!1;const $=J.constructor;if($&&$.prototype){if(!cX($.prototype))return!1;if(!X_($.prototype,"isPrototypeOf"))return!1}if(Z){const X=Object.keys(J);return EU(X,Z)}return!0},pX=function(J){if(J==null)return J;else if(Array.isArray(J))return J.map(($)=>pX($));else if(CU(J)){const $={};for(let X in J)$[X]=pX(J[X]);return $}const Z=J.constructor;if(Z)switch(Z.name.toLowerCase()){case"date":return new Z(Number(J));case"map":return new Map(J);case"set":return new Set(J);case"buffer":return Buffer.from(J)}return J},SU=function(J){return process.emitWarning(J,{code:yU.MONGODB_WARNING_CODE})},Y_=function(J){if(!PU.has(J))return PU.add(J),SU(J)},Q_=function(J){return Object.values(J).join(", ")},K_=function(J){if(!J)return!1;if(J.loadBalanced)return!0;if(J.description.logicalSessionTimeoutMinutes!=null){if(J.description.type!==ky.ServerType.Standalone)return!0}return!1},G_=function(J,Z=0){const $=Array.from(J);if(Z>$.length)throw new G6.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=Z%$.length===0?1:$.length-Z;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return Z%$.length===0?$:$.slice(Y)},F_=function(J){if(J.aggregate||J.count||J.distinct||J.find||J.geoNear)return!0;return!1},q_=function(J,Z){if(J==null&&Z==null)return 0;if(J==null)return-1;if(Z==null)return 1;return yU.ByteUtils.compare(J.id,Z.id)},OU=function(J){if(typeof J==="number")return Math.trunc(J);const Z=Number.parseInt(String(J),10);return Number.isNaN(Z)?null:Z},W_=function(J){const Z=OU(J);return Z!=null&&Z>=0?Z:null},H_=function(J,Z){const $=J.endsWith(".")?J.slice(0,J.length-1):J,X=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function V_(J,Z={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...By.parse(J),...Z},Q=Ny.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>{G+=F}),K.once("end",()=>{if(Z.json===!1){$(G);return}try{const F=JSON.parse(G);$(F)}catch{X(new G6.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new G6.MongoNetworkTimeoutError(`Network request to ${J} timed out after ${Z.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}var z_=function(J,Z){return Z&&J.test(Z.toLowerCase())?!0:!1};Object.defineProperty(yU,"__esModule",{value:!0});yU.DOCUMENT_DB_CHECK=yU.TimeoutController=yU.request=yU.matchesParentDomain=yU.parseUnsignedInteger=yU.parseInteger=yU.compareObjectId=yU.commandSupportsReadConcern=yU.shuffle=yU.supportsRetryableWrites=yU.enumToString=yU.emitWarningOnce=yU.emitWarning=yU.MONGODB_WARNING_CODE=yU.DEFAULT_PK_FACTORY=yU.HostAddress=yU.BufferPool=yU.List=yU.deepCopy=yU.isRecord=yU.setDifference=yU.isHello=yU.isSuperset=yU.resolveOptions=yU.hasAtomicOperators=yU.calculateDurationInMs=yU.now=yU.makeStateMachine=yU.errorStrictEqual=yU.arrayStrictEqual=yU.eachAsync=yU.maxWireVersion=yU.uuidV4=yU.maybeCallback=yU.makeCounter=yU.MongoDBCollectionNamespace=yU.MongoDBNamespace=yU.ns=yU.getTopology=yU.decorateWithExplain=yU.decorateWithReadConcern=yU.decorateWithCollation=yU.isPromiseLike=yU.applyRetryableWrites=yU.filterOptions=yU.mergeOptions=yU.isObject=yU.normalizeHintField=yU.hostMatchesWildcards=yU.ByteUtils=void 0;yU.isHostMatch=yU.COSMOS_DB_MSG=yU.DOCUMENT_DB_MSG=yU.COSMOS_DB_CHECK=void 0;var Iy=import.meta.require("crypto"),Ny=import.meta.require("http"),DU=import.meta.require("timers"),By=import.meta.require("url"),Ey=import.meta.require("url"),TU=H1(),Cy=h8(),hy=v1(),G6=E(),Sy=c0(),Oy=k1(),ky=d0(),yy=A0();yU.ByteUtils={toLocalBufferType(J){return Buffer.isBuffer(J)?J:Buffer.from(J.buffer,J.byteOffset,J.byteLength)},equals(J,Z){return yU.ByteUtils.toLocalBufferType(J).equals(Z)},compare(J,Z){return yU.ByteUtils.toLocalBufferType(J).compare(Z)},toBase64(J){return yU.ByteUtils.toLocalBufferType(J).toString("base64")}};yU.hostMatchesWildcards=_y;yU.normalizeHintField=fy;var vy=(J)=>Object.prototype.toString.call(J);yU.isObject=cX;yU.mergeOptions=xy;yU.filterOptions=by;yU.applyRetryableWrites=gy;yU.isPromiseLike=my;yU.decorateWithCollation=uy;yU.decorateWithReadConcern=dy;yU.decorateWithExplain=cy;yU.getTopology=IU;yU.ns=py;class E5{constructor(J,Z){this.db=J,this.collection=Z,this.collection=Z===""?void 0:Z}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(J){return new lX(this.db,J)}static fromString(J){if(typeof J!=="string"||J==="")throw new G6.MongoRuntimeError(`Cannot parse namespace from "${J}"`);const[Z,...$]=J.split("."),X=$.join(".");return new E5(Z,X===""?void 0:X)}}yU.MongoDBNamespace=E5;class lX extends E5{constructor(J,Z){super(J,Z);this.collection=Z}static fromString(J){return super.fromString(J)}}yU.MongoDBCollectionNamespace=lX;yU.makeCounter=ly;yU.maybeCallback=ay;yU.uuidV4=iy;yU.maxWireVersion=sy;yU.eachAsync=ny;yU.arrayStrictEqual=ty;yU.errorStrictEqual=ry;yU.makeStateMachine=oy;yU.now=NU;yU.calculateDurationInMs=ey;yU.hasAtomicOperators=BU;yU.resolveOptions=J_;yU.isSuperset=EU;yU.isHello=Z_;yU.setDifference=$_;var X_=(J,Z)=>Object.prototype.hasOwnProperty.call(J,Z);yU.isRecord=CU;yU.deepCopy=pX;class aX{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 J of this.nodes())yield J.value}*nodes(){let J=this.head.next;while(J!==this.head){const{next:Z}=J;yield J,J=Z}}push(J){this.count+=1;const Z={next:this.head,prev:this.head.prev,value:J};this.head.prev.next=Z,this.head.prev=Z}pushMany(J){for(let Z of J)this.push(Z)}unshift(J){this.count+=1;const Z={next:this.head.next,prev:this.head,value:J};this.head.next.prev=Z,this.head.next=Z}remove(J){if(J===this.head||this.length===0)return null;this.count-=1;const{prev:Z,next:$}=J;return Z.next=$,$.prev=Z,J.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(J){for(let Z of this.nodes())if(J(Z.value))this.remove(Z)}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}}yU.List=aX;class hU{constructor(){this.buffers=new aX,this.totalByteLength=0}get length(){return this.totalByteLength}append(J){this.buffers.push(J),this.totalByteLength+=J.length}getInt32(){if(this.totalByteLength<4)return null;const J=this.buffers.first();if(J!=null&&J.byteLength>=4)return J.readInt32LE(0);const Z=this.read(4),$=Z.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(Z),$}read(J){if(typeof J!=="number"||J<0)throw new G6.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(J>this.totalByteLength)return Buffer.alloc(0);const Z=Buffer.allocUnsafe(J);for(let $=0;$<J;){const X=this.buffers.shift();if(X==null)break;const Y=J-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(Z.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return Z}}yU.BufferPool=hU;class B5{constructor(J){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const Z=J.split(" ").join("%20");if(Z.endsWith(".sock")){this.socketPath=decodeURIComponent(Z);return}const $=`iLoveJS://${Z}`;let X;try{X=new Ey.URL($)}catch(G){const F=new G6.MongoRuntimeError(`Unable to parse ${Z} 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 G6.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(J){return new B5(J)}static fromHostPort(J,Z){if(J.includes(":"))J=`[${J}]`;return B5.fromString(`${J}:${Z}`)}static fromSrvRecord({name:J,port:Z}){return B5.fromHostPort(J,Z)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const J=this.host??"",Z=this.port??0;return{host:J,port:Z}}}yU.HostAddress=B5;yU.DEFAULT_PK_FACTORY={createPk(){return new TU.ObjectId}};yU.MONGODB_WARNING_CODE="MONGODB DRIVER";yU.emitWarning=SU;var PU=new Set;yU.emitWarningOnce=Y_;yU.enumToString=Q_;yU.supportsRetryableWrites=K_;yU.shuffle=G_;yU.commandSupportsReadConcern=F_;yU.compareObjectId=q_;yU.parseInteger=OU;yU.parseUnsignedInteger=W_;yU.matchesParentDomain=H_;yU.request=V_;class kU extends AbortController{constructor(J=0,Z=J>0?DU.setTimeout(()=>this.abort(),J):null){super();this.timeoutId=Z}clear(){if(this.timeoutId!=null)DU.clearTimeout(this.timeoutId);this.timeoutId=null}}yU.TimeoutController=kU;yU.DOCUMENT_DB_CHECK=/(\.docdb\.amazonaws\.com$)|(\.docdb-elastic\.amazonaws\.com$)/;yU.COSMOS_DB_CHECK=/\.cosmos\.azure\.com$/;yU.DOCUMENT_DB_MSG="You appear to be connected to a DocumentDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/documentdb";yU.COSMOS_DB_MSG="You appear to be connected to a CosmosDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/cosmosdb";yU.isHostMatch=z_});var o=V((bU)=>{var Hf=function(J,Z){if(!Array.isArray(Z)&&!(Z instanceof Set))Z=[Z];return Z=new Set(Z),Object.defineProperty(J,"aspects",{value:Z,writable:!1}),Z};Object.defineProperty(bU,"__esModule",{value:!0});bU.defineAspects=bU.AbstractOperation=bU.Aspect=void 0;var Wf=H1(),iX=k1();bU.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 sX=Symbol("session");class xU{constructor(J={}){this.readPreference=this.hasAspect(bU.Aspect.WRITE_OPERATION)?iX.ReadPreference.primary:iX.ReadPreference.fromOptions(J)??iX.ReadPreference.primary,this.bsonOptions=Wf.resolveBSONOptions(J),this[sX]=J.session!=null?J.session:void 0,this.options=J,this.bypassPinningCheck=!!J.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(J){const Z=this.constructor;if(Z.aspects==null)return!1;return Z.aspects.has(J)}get session(){return this[sX]}clearSession(){this[sX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}bU.AbstractOperation=xU;bU.defineAspects=Hf});var L0=V((pU)=>{var Uf=function(J,Z,$){return nX.maybeCallback(()=>Mf(J,Z),$)};async function Mf(J,Z){if(!(Z instanceof S8.AbstractOperation))throw new t1.MongoRuntimeError("This method requires a valid operation instance");if(J.topology==null){if(J.s.hasBeenClosed)throw new t1.MongoNotConnectedError("Client must be connected before running operations");J.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await J.connect()}finally{delete J.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=J;if($==null)throw new t1.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=Z.session,Y;if(X==null)Y=Symbol(),X=J.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new t1.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new t1.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");else if(X.client!==J)throw new t1.MongoInvalidArgumentError("ClientSession must be from the same MongoClient");const Q=Z.readPreference??uU.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(uU.ReadPreference.primary))throw new t1.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!Z.bypassPinningCheck)X.unpin();let G;if(Z.hasAspect(S8.Aspect.MUST_SELECT_SAME_SERVER))G=dU.sameServerSelector(Z.server?.description);else if(Z.trySecondaryWrite)G=dU.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const F=await $.selectServerAsync(G,{session:X});if(X==null)return Z.execute(F,void 0);if(!Z.hasAspect(S8.Aspect.RETRYABLE))try{return await Z.execute(F,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const q=$.s.options.retryReads&&!K&&Z.canRetryRead,W=$.s.options.retryWrites&&!K&&nX.supportsRetryableWrites(F)&&Z.canRetryWrite,H=Z.hasAspect(S8.Aspect.READ_OPERATION),U=Z.hasAspect(S8.Aspect.WRITE_OPERATION),j=H&&q||U&&W;if(U&&W)Z.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await Z.execute(F,X)}catch(z){if(j&&z instanceof t1.MongoError)return await jf(Z,z,{session:X,topology:$,selector:G});throw z}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function jf(J,Z,{session:$,topology:X,selector:Y}){const Q=J.hasAspect(S8.Aspect.WRITE_OPERATION),K=J.hasAspect(S8.Aspect.READ_OPERATION);if(Q&&Z.code===zf)throw new t1.MongoServerError({message:cU,errmsg:cU,originalError:Z});if(Q&&!t1.isRetryableWriteError(Z))throw Z;if(K&&!t1.isRetryableReadError(Z))throw Z;if(Z instanceof t1.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&J.hasAspect(S8.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!nX.supportsRetryableWrites(G))throw new t1.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await J.execute(G,$)}catch(F){if(F instanceof t1.MongoError&&F.hasErrorLabel(t1.MongoErrorLabel.NoWritesPerformed))throw Z;throw F}}Object.defineProperty(pU,"__esModule",{value:!0});pU.executeOperation=void 0;var t1=E(),uU=k1(),dU=T5(),nX=y(),S8=o(),zf=t1.MONGODB_ERROR_CODES.IllegalOperation,cU="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";pU.executeOperation=Uf});var oX=V((aU)=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.Explain=aU.ExplainVerbosity=void 0;var Af=E();aU.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class rX{constructor(J){if(typeof J==="boolean")this.verbosity=J?aU.ExplainVerbosity.allPlansExecution:aU.ExplainVerbosity.queryPlanner;else this.verbosity=J}static fromOptions(J){if(J?.explain==null)return;const Z=J.explain;if(typeof Z==="boolean"||typeof Z==="string")return new rX(Z);throw new Af.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}aU.Explain=rX});var T1=V((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.CommandOperation=void 0;var Lf=E(),wf=oX(),Rf=c0(),Df=T5(),C5=y(),sU=A0(),$7=o();class nU extends $7.AbstractOperation{constructor(J,Z){super(Z);this.options=Z??{};const $=Z?.dbName||Z?.authdb;if($)this.ns=new C5.MongoDBNamespace($,"$cmd");else this.ns=J?J.s.namespace.withCollection("$cmd"):new C5.MongoDBNamespace("admin","$cmd");if(this.readConcern=Rf.ReadConcern.fromOptions(Z),this.writeConcern=sU.WriteConcern.fromOptions(Z),this.hasAspect($7.Aspect.EXPLAINABLE))this.explain=wf.Explain.fromOptions(Z);else if(Z?.explain!=null)throw new Lf.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect($7.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(J,Z,$){this.server=J;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:Z},Y=C5.maxWireVersion(J),Q=this.session&&this.session.inTransaction();if(this.readConcern&&C5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<Df.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect($7.Aspect.WRITE_OPERATION)&&!Q)sU.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect($7.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect($7.Aspect.EXPLAINABLE)&&this.explain)$=C5.decorateWithExplain($,this.explain);return J.commandAsync(this.ns,$,X)}}tU.CommandOperation=nU});var ZM=V((eU)=>{Object.defineProperty(eU,"__esModule",{value:!0});eU.ListDatabasesOperation=void 0;var oU=y(),Pf=T1(),eX=o();class J3 extends Pf.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z??{},this.ns=new oU.MongoDBNamespace("admin","$cmd")}async execute(J,Z){const $={listDatabases:1};if(typeof this.options.nameOnly==="boolean")$.nameOnly=this.options.nameOnly;if(this.options.filter)$.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")$.authorizedDatabases=this.options.authorizedDatabases;if(oU.maxWireVersion(J)>=9&&this.options.comment!==void 0)$.comment=this.options.comment;return super.executeCommand(J,Z,$)}}eU.ListDatabasesOperation=J3;eX.defineAspects(J3,[eX.Aspect.READ_OPERATION,eX.Aspect.RETRYABLE])});var $3=V((XM)=>{Object.defineProperty(XM,"__esModule",{value:!0});XM.RemoveUserOperation=void 0;var Tf=T1(),$M=o();class Z3 extends Tf.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$,this.username=Z}async execute(J,Z){return await super.executeCommand(J,Z,{dropUser:this.username}),!0}}XM.RemoveUserOperation=Z3;$M.defineAspects(Z3,[$M.Aspect.WRITE_OPERATION])});var X7=V((FM)=>{Object.defineProperty(FM,"__esModule",{value:!0});FM.RunAdminCommandOperation=FM.RunCommandOperation=void 0;var If=y(),QM=o();class KM extends QM.AbstractOperation{constructor(J,Z,$){super($);this.command=Z,this.options=$,this.ns=J.s.namespace.withCollection("$cmd")}async execute(J,Z){return this.server=J,J.commandAsync(this.ns,this.command,{...this.options,readPreference:this.readPreference,session:Z})}}FM.RunCommandOperation=KM;class GM extends QM.AbstractOperation{constructor(J,Z){super(Z);this.command=J,this.options=Z,this.ns=new If.MongoDBNamespace("admin","$cmd")}async execute(J,Z){return this.server=J,J.commandAsync(this.ns,this.command,{...this.options,readPreference:this.readPreference,session:Z})}}FM.RunAdminCommandOperation=GM});var zM=V((HM)=>{Object.defineProperty(HM,"__esModule",{value:!0});HM.ValidateCollectionOperation=void 0;var X3=E(),Bf=T1();class WM extends Bf.CommandOperation{constructor(J,Z,$){const X={validate:Z},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(J.s.db,$);this.options=$,this.command=X,this.collectionName=Z}async execute(J,Z){const $=this.collectionName,X=await super.executeCommand(J,Z,this.command);if(X.result!=null&&typeof X.result!=="string")throw new X3.MongoUnexpectedServerResponseError("Error with validation data");if(X.result!=null&&X.result.match(/exception|corrupt/)!=null)throw new X3.MongoUnexpectedServerResponseError(`Invalid collection ${$}`);if(X.valid!=null&&!X.valid)throw new X3.MongoUnexpectedServerResponseError(`Invalid collection ${$}`);return X}}HM.ValidateCollectionOperation=WM});var Y3=V((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});MM.Admin=void 0;var Ef=H1(),wJ=L0(),Cf=ZM(),hf=$3(),Sf=X7(),Of=zM();class UM{constructor(J){this.s={db:J}}async command(J,Z){return wJ.executeOperation(this.s.db.client,new Sf.RunAdminCommandOperation(J,{...Ef.resolveBSONOptions(Z),session:Z?.session,readPreference:Z?.readPreference}))}async buildInfo(J){return this.command({buildinfo:1},J)}async serverInfo(J){return this.command({buildinfo:1},J)}async serverStatus(J){return this.command({serverStatus:1},J)}async ping(J){return this.command({ping:1},J)}async removeUser(J,Z){return wJ.executeOperation(this.s.db.client,new hf.RemoveUserOperation(this.s.db,J,{dbName:"admin",...Z}))}async validateCollection(J,Z={}){return wJ.executeOperation(this.s.db.client,new Of.ValidateCollectionOperation(this,J,Z))}async listDatabases(J){return wJ.executeOperation(this.s.db.client,new Cf.ListDatabasesOperation(this.s.db,J))}async replSetGetStatus(J){return this.command({replSetGetStatus:1},J)}}MM.Admin=UM});var F3=V((AM)=>{var G3=function(J,Z){const $={q:J,limit:typeof Z.limit==="number"?Z.limit:0};if(Z.collation)$.collation=Z.collation;if(Z.hint)$.hint=Z.hint;return $};Object.defineProperty(AM,"__esModule",{value:!0});AM.makeDeleteStatement=AM.DeleteManyOperation=AM.DeleteOneOperation=AM.DeleteOperation=void 0;var h5=E(),kf=T1(),p0=o();class S5 extends kf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options=$,this.ns=J,this.statements=Z}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((J)=>J.limit!=null?J.limit>0:!0)}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={delete:this.ns.collection,deletes:this.statements,ordered:X};if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((K)=>K.hint))throw new h5.MongoCompatibilityError("hint is not supported with unacknowledged writes")}return super.executeCommand(J,Z,Y)}}AM.DeleteOperation=S5;class Q3 extends S5{constructor(J,Z,$){super(J.s.namespace,[G3(Z,{...$,limit:1})],$)}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain)return $;if($.code)throw new h5.MongoServerError($);if($.writeErrors)throw new h5.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,deletedCount:$.n}}}AM.DeleteOneOperation=Q3;class K3 extends S5{constructor(J,Z,$){super(J.s.namespace,[G3(Z,$)],$)}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain)return $;if($.code)throw new h5.MongoServerError($);if($.writeErrors)throw new h5.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,deletedCount:$.n}}}AM.DeleteManyOperation=K3;AM.makeDeleteStatement=G3;p0.defineAspects(S5,[p0.Aspect.RETRYABLE,p0.Aspect.WRITE_OPERATION]);p0.defineAspects(Q3,[p0.Aspect.RETRYABLE,p0.Aspect.WRITE_OPERATION,p0.Aspect.EXPLAINABLE,p0.Aspect.SKIP_COLLATION]);p0.defineAspects(K3,[p0.Aspect.WRITE_OPERATION,p0.Aspect.EXPLAINABLE,p0.Aspect.SKIP_COLLATION])});var H3=V((wM)=>{Object.defineProperty(wM,"__esModule",{value:!0});wM.BulkWriteOperation=void 0;var q3=o();class W3 extends q3.AbstractOperation{constructor(J,Z,$){super($);this.options=$,this.collection=J,this.operations=Z}async execute(J,Z){const $=this.collection,X=this.operations,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=Y.ordered===!1?$.initializeUnorderedBulkOp(Y):$.initializeOrderedBulkOp(Y);for(let G=0;G<X.length;G++)Q.raw(X[G]);return await Q.execute({...Y,session:Z})}}wM.BulkWriteOperation=W3;q3.defineAspects(W3,[q3.Aspect.WRITE_OPERATION])});var V3=V((DM)=>{async function vf(J,Z,$){if($==null)$={};const X=$.full==null?!1:$.full,Y=await J.collection(Z).listIndexes($).toArray();if(X)return Y;const Q={};for(let K of Y)Q[K.name]=Object.entries(K.key);return Q}var xf=function(J,Z,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:J.s.db.options?.forceServerObjectId)===!0)return Z;return Z.map((Y)=>{if(Y._id==null)Y._id=J.s.pkFactory.createPk();return Y})};Object.defineProperty(DM,"__esModule",{value:!0});DM.prepareDocs=DM.indexInformation=void 0;DM.indexInformation=vf;DM.prepareDocs=xf});var M3=V((IM)=>{Object.defineProperty(IM,"__esModule",{value:!0});IM.InsertManyOperation=IM.InsertOneOperation=IM.InsertOperation=void 0;var RJ=E(),gf=A0(),mf=H3(),uf=T1(),TM=V3(),e6=o();class DJ extends uf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=J,this.documents=Z}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={insert:this.ns.collection,documents:this.documents,ordered:X};if(typeof $.bypassDocumentValidation==="boolean")Y.bypassDocumentValidation=$.bypassDocumentValidation;if($.comment!==void 0)Y.comment=$.comment;return super.executeCommand(J,Z,Y)}}IM.InsertOperation=DJ;class z3 extends DJ{constructor(J,Z,$){super(J.s.namespace,TM.prepareDocs(J,[Z],$),$)}async execute(J,Z){const $=await super.execute(J,Z);if($.code)throw new RJ.MongoServerError($);if($.writeErrors)throw new RJ.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id}}}IM.InsertOneOperation=z3;class U3 extends e6.AbstractOperation{constructor(J,Z,$){super($);if(!Array.isArray(Z))throw new RJ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=J,this.docs=Z}async execute(J,Z){const $=this.collection,X={...this.options,...this.bsonOptions,readPreference:this.readPreference},Y=gf.WriteConcern.fromOptions(X),Q=new mf.BulkWriteOperation($,TM.prepareDocs($,this.docs,X).map((K)=>({insertOne:{document:K}})),X);try{const K=await Q.execute(J,Z);return{acknowledged:Y?.w!==0,insertedCount:K.insertedCount,insertedIds:K.insertedIds}}catch(K){if(K&&K.message==="Operation must be an object with an operation key")throw new RJ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");throw K}}}IM.InsertManyOperation=U3;e6.defineAspects(DJ,[e6.Aspect.RETRYABLE,e6.Aspect.WRITE_OPERATION]);e6.defineAspects(z3,[e6.Aspect.RETRYABLE,e6.Aspect.WRITE_OPERATION]);e6.defineAspects(U3,[e6.Aspect.WRITE_OPERATION])});var R3=V((BM)=>{var PJ=function(J,Z,$){if(J==null||typeof J!=="object")throw new l0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(Z==null||typeof Z!=="object")throw new l0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:J,u:Z};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 l0=E(),j3=y(),pf=T1(),b1=o();class Y7 extends pf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options=$,this.ns=J,this.statements=Z}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((J)=>J.multi==null||J.multi===!1)}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={update:this.ns.collection,updates:this.statements,ordered:X};if(typeof $.bypassDocumentValidation==="boolean")Y.bypassDocumentValidation=$.bypassDocumentValidation;if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((K)=>K.hint))throw new l0.MongoCompatibilityError("hint is not supported with unacknowledged writes")}return super.executeCommand(J,Z,Y)}}BM.UpdateOperation=Y7;class A3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!1})],X);if(!j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}BM.UpdateOneOperation=A3;class L3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!0})],X);if(!j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}BM.UpdateManyOperation=L3;class w3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!1})],X);if(j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}BM.ReplaceOneOperation=w3;BM.makeUpdateStatement=PJ;b1.defineAspects(Y7,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(A3,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.EXPLAINABLE,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(L3,[b1.Aspect.WRITE_OPERATION,b1.Aspect.EXPLAINABLE,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(w3,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.SKIP_COLLATION])});var f5=V((_M)=>{var BJ=function(J,Z,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&Z.ok===1){Z.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:J.operations[0]};Z.writeErrors.push(new NJ(Q));return}else if(X.ok===0&&Z.ok===0)return;if(yM(J)&&X.n)Z.nInserted=Z.nInserted+X.n;if(P3(J)&&X.n)Z.nRemoved=Z.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)Z.upserted.push({index:X.upserted[Q].index+J.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,Z.upserted.push({index:J.originalZeroIndex,_id:X.upserted});if(D3(J)&&X.n){const Q=X.nModified;if(Z.nUpserted=Z.nUpserted+Y,Z.nMatched=Z.nMatched+(X.n-Y),typeof Q==="number")Z.nModified=Z.nModified+Q;else Z.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:J.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:J.operations[X.writeErrors[Q].index]};Z.writeErrors.push(new NJ(K))}if(X.writeConcernError)Z.writeConcernErrors.push(new _5(X.writeConcernError))},OM=function(J,Z,$){if(J.s.batches.length===0)return $(void 0,new k8(J.s.bulkResult,J.isOrdered));const X=J.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof y1.MongoWriteConcernError))return $(new Q7(K,new k8(J.s.bulkResult,J.isOrdered)));if(K instanceof y1.MongoWriteConcernError)return ef(X,J.s.bulkResult,J.isOrdered,K,$);BJ(X,J.s.bulkResult,K,G);const F=new k8(J.s.bulkResult,J.isOrdered);if(J.handleWriteError($,F))return;OM(J,Z,$)}const Q=O8.resolveOptions(J,{...Z,ordered:J.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(J.operationId)Y.operationId=J.operationId;if(J.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(J.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(D3(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(P3(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(yM(X))IJ.executeOperation(J.s.collection.client,new rf.InsertOperation(J.s.namespace,X.operations,Q),Y);else if(D3(X))IJ.executeOperation(J.s.collection.client,new A4.UpdateOperation(J.s.namespace,X.operations,Q),Y);else if(P3(X))IJ.executeOperation(J.s.collection.client,new y5.DeleteOperation(J.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,BJ(X,J.s.bulkResult,K,void 0),$()}},ef=function(J,Z,$,X,Y){BJ(J,Z,void 0,X.result),Y(new Q7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new k8(Z,$)))},hM=function(J){if(typeof J.s.options.forceServerObjectId==="boolean")return J.s.options.forceServerObjectId;if(typeof J.s.collection.s.db.options?.forceServerObjectId==="boolean")return J.s.collection.s.db.options?.forceServerObjectId;return!1},yM=function(J){return J.batchType===_M.BatchType.INSERT},D3=function(J){return J.batchType===_M.BatchType.UPDATE},P3=function(J){return J.batchType===_M.BatchType.DELETE},k5=function(J){let{currentOp:Z}=J.s;if(J.s.currentOp=void 0,!Z)Z={};return Z};Object.defineProperty(_M,"__esModule",{value:!0});_M.BulkOperationBase=_M.FindOperators=_M.MongoBulkWriteError=_M.mergeBatchResults=_M.WriteError=_M.WriteConcernError=_M.BulkWriteResult=_M.Batch=_M.BatchType=void 0;var tf=import.meta.require("util"),TJ=H1(),y1=E(),y5=F3(),IJ=L0(),rf=M3(),of=o(),A4=R3(),O8=y(),CM=A0(),O5=Symbol("serverError");_M.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class SM{constructor(J,Z){this.originalZeroIndex=Z,this.currentIndex=0,this.originalIndexes=[],this.batchType=J,this.operations=[],this.size=0,this.sizeBytes=0}}_M.Batch=SM;class k8{static generateIdMap(J){const Z={};for(let $ of J)Z[$.index]=$._id;return Z}constructor(J,Z){this.result=J,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=k8.generateIdMap(this.result.upserted),this.insertedIds=k8.generateIdMap(this.getSuccessfullyInsertedIds(J,Z)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}get ok(){return this.result.ok}getSuccessfullyInsertedIds(J,Z){if(J.writeErrors.length===0)return J.insertedIds;if(Z)return J.insertedIds.slice(0,J.writeErrors[0].index);return J.insertedIds.filter(({index:$})=>!J.writeErrors.some((X)=>$===X.index))}getUpsertedIdAt(J){return this.result.upserted[J]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(J){return J<this.result.writeErrors.length?this.result.writeErrors[J]: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 J="";for(let Z=0;Z<this.result.writeConcernErrors.length;Z++){const $=this.result.writeConcernErrors[Z];if(J=J+$.errmsg,Z===0)J=J+" and "}return new _5({errmsg:J,code:y1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}_M.BulkWriteResult=k8;class _5{constructor(J){this[O5]=J}get code(){return this[O5].code}get errmsg(){return this[O5].errmsg}get errInfo(){return this[O5].errInfo}toJSON(){return this[O5]}toString(){return`WriteConcernError(${this.errmsg})`}}_M.WriteConcernError=_5;class NJ{constructor(J){this.err=J}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())})`}}_M.WriteError=NJ;_M.mergeBatchResults=BJ;class Q7 extends y1.MongoServerError{constructor(J,Z){super(J);if(this.writeErrors=[],J instanceof _5)this.err=J;else if(!(J instanceof Error))this.message=J.message,this.code=J.code,this.writeErrors=J.writeErrors??[];this.result=Z,Object.assign(this,J)}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}}_M.MongoBulkWriteError=Q7;class T3{constructor(J){this.bulkOperation=J}update(J){const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(_M.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!0}))}updateOne(J){if(!O8.hasAtomicOperators(J))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(_M.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!1}))}replaceOne(J){if(O8.hasAtomicOperators(J))throw new y1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(_M.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!1}))}deleteOne(){const J=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(_M.BatchType.DELETE,y5.makeDeleteStatement(J.selector,{...J,limit:1}))}delete(){const J=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(_M.BatchType.DELETE,y5.makeDeleteStatement(J.selector,{...J,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=J,this}arrayFilters(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=J,this}hint(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=J,this}}_M.FindOperators=T3;var Jv=tf.promisify(OM);class kM extends of.AbstractOperation{constructor(J,Z){super(Z);this.bulkOperation=J}execute(J,Z){if(this.options.session==null)this.options.session=Z;return Jv(this.bulkOperation,this.options)}}class I3{constructor(J,Z,$){this.isOrdered=$;const X=O8.getTopology(J);Z=Z==null?{}:Z;const Y=J.s.namespace,Q=!1,K=void 0,G=X.lastHello(),F=!!(X.s.options&&X.s.options.autoEncrypter),q=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,W=F?2097152:q,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,U=(H-1).toString(10).length+2;let j=Object.assign({},Z);j=O8.applyRetryableWrites(j,J.s.db);const z={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:z,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:CM.WriteConcern.fromOptions(Z),maxBsonObjectSize:q,maxBatchSizeBytes:W,maxWriteBatchSize:H,maxKeySize:U,namespace:Y,topology:X,options:j,bsonOptions:TJ.resolveBSONOptions(Z),currentOp:K,executed:Q,collection:J,err:void 0,checkKeys:typeof Z.checkKeys==="boolean"?Z.checkKeys:!1},Z.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(J){if(J._id==null&&!hM(this))J._id=new TJ.ObjectId;return this.addToOperationsList(_M.BatchType.INSERT,J)}find(J){if(!J)throw new y1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:J},new T3(this)}raw(J){if(J==null||typeof J!=="object")throw new y1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in J){const Z=hM(this);if(J.insertOne&&J.insertOne.document==null){if(Z!==!0&&J.insertOne._id==null)J.insertOne._id=new TJ.ObjectId;return this.addToOperationsList(_M.BatchType.INSERT,J.insertOne)}if(Z!==!0&&J.insertOne.document._id==null)J.insertOne.document._id=new TJ.ObjectId;return this.addToOperationsList(_M.BatchType.INSERT,J.insertOne.document)}if("replaceOne"in J||"updateOne"in J||"updateMany"in J){if("replaceOne"in J){if("q"in J.replaceOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.replaceOne.filter,J.replaceOne.replacement,{...J.replaceOne,multi:!1});if(O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(_M.BatchType.UPDATE,Z)}if("updateOne"in J){if("q"in J.updateOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.updateOne.filter,J.updateOne.update,{...J.updateOne,multi:!1});if(!O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(_M.BatchType.UPDATE,Z)}if("updateMany"in J){if("q"in J.updateMany)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.updateMany.filter,J.updateMany.update,{...J.updateMany,multi:!0});if(!O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(_M.BatchType.UPDATE,Z)}}if("deleteOne"in J){if("q"in J.deleteOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(_M.BatchType.DELETE,y5.makeDeleteStatement(J.deleteOne.filter,{...J.deleteOne,limit:1}))}if("deleteMany"in J){if("q"in J.deleteMany)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(_M.BatchType.DELETE,y5.makeDeleteStatement(J.deleteMany.filter,{...J.deleteMany,limit:0}))}throw new y1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const J=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)J.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)J.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)J.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)J.push(this.s.currentRemoveBatch)}return J}async execute(J={}){if(this.s.executed)throw new y1.MongoBatchReExecutionError;const Z=CM.WriteConcern.fromOptions(J);if(Z)this.s.writeConcern=Z;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 y1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...J},X=new kM(this,$);return IJ.executeOperation(this.s.collection.client,X)}handleWriteError(J,Z){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 J(new Q7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},Z)),!0}const $=Z.getWriteConcernError();if($)return J(new Q7($,Z)),!0;return!1}}_M.BulkOperationBase=I3;Object.defineProperty(I3.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var N3=V((bM)=>{Object.defineProperty(bM,"__esModule",{value:!0});bM.OrderedBulkOperation=void 0;var Fv=H1(),vM=E(),EJ=f5();class xM extends EJ.BulkOperationBase{constructor(J,Z){super(J,Z,!0)}addToOperationsList(J,Z){const $=Fv.calculateObjectSize(Z,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new vM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new EJ.Batch(J,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!==J)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new EJ.Batch(J,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(J===EJ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:Z._id});if(Array.isArray(Z))throw new vM.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(Z),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}bM.OrderedBulkOperation=xM});var B3=V((dM)=>{Object.defineProperty(dM,"__esModule",{value:!0});dM.UnorderedBulkOperation=void 0;var qv=H1(),mM=E(),J8=f5();class uM extends J8.BulkOperationBase{constructor(J,Z){super(J,Z,!1)}handleWriteError(J,Z){if(this.s.batches.length)return!1;return super.handleWriteError(J,Z)}addToOperationsList(J,Z){const $=qv.calculateObjectSize(Z,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new mM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,J===J8.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(J===J8.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(J===J8.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new J8.Batch(J,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!==J)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new J8.Batch(J,this.s.currentIndex);if(Array.isArray(Z))throw new mM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(Z),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,J===J8.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:Z._id});else if(J===J8.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(J===J8.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}dM.UnorderedBulkOperation=uM});var CJ=V((lM)=>{Object.defineProperty(lM,"__esModule",{value:!0});lM.AggregateOperation=lM.DB_AGGREGATE_COLLECTION=void 0;var pM=E(),Wv=y(),Hv=A0(),Vv=T1(),v5=o();lM.DB_AGGREGATE_COLLECTION=1;var zv=8;class E3 extends Vv.CommandOperation{constructor(J,Z,$){super(void 0,{...$,dbName:J.db});if(this.options={...$},this.target=J.collection||lM.DB_AGGREGATE_COLLECTION,this.pipeline=Z,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(Z.length>0){const X=Z[Z.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 pM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new pM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(J){this.pipeline.push(J)}async execute(J,Z){const $=this.options,X=Wv.maxWireVersion(J),Y={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&X<zv)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)Hv.WriteConcern.apply(Y,this.writeConcern);if($.bypassDocumentValidation===!0)Y.bypassDocumentValidation=$.bypassDocumentValidation;if(typeof $.allowDiskUse==="boolean")Y.allowDiskUse=$.allowDiskUse;if($.hint)Y.hint=$.hint;if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(Y.cursor=$.cursor||{},$.batchSize&&!this.hasWriteStage)Y.cursor.batchSize=$.batchSize;return super.executeCommand(J,Z,Y)}}lM.AggregateOperation=E3;v5.defineAspects(E3,[v5.Aspect.READ_OPERATION,v5.Aspect.RETRYABLE,v5.Aspect.EXPLAINABLE,v5.Aspect.CURSOR_CREATING])});var C0=V((nM)=>{Object.defineProperty(nM,"__esModule",{value:!0});nM.CancellationToken=nM.TypedEventEmitter=void 0;var Uv=import.meta.require("events");class C3 extends Uv.EventEmitter{emitAndLog(J,...Z){if(this.emit(J,...Z),this.component)this.mongoLogger?.debug(this.component,Z[0])}}nM.TypedEventEmitter=C3;class sM extends C3{}nM.CancellationToken=sM});var O3=V((rM)=>{Object.defineProperty(rM,"__esModule",{value:!0});rM.GetMoreOperation=void 0;var h3=E(),jv=y(),hJ=o();class S3 extends hJ.AbstractOperation{constructor(J,Z,$,X){super(X);this.options=X,this.ns=J,this.cursorId=Z,this.server=$}async execute(J,Z){if(J!==this.server)throw new h3.MongoRuntimeError("Getmore must run on the same server operation began on");if(this.cursorId==null||this.cursorId.isZero())throw new h3.MongoRuntimeError("Unable to iterate cursor with no id");const $=this.ns.collection;if($==null)throw new h3.MongoRuntimeError("A collection name must be determined before getMore");const X={getMore:this.cursorId,collection:$};if(typeof this.options.batchSize==="number")X.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")X.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&jv.maxWireVersion(J)>=9)X.comment=this.options.comment;const Y={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};return J.commandAsync(this.ns,X,Y)}}rM.GetMoreOperation=S3;hJ.defineAspects(S3,[hJ.Aspect.READ_OPERATION,hJ.Aspect.MUST_SELECT_SAME_SERVER])});var $j=V((Jj)=>{Object.defineProperty(Jj,"__esModule",{value:!0});Jj.KillCursorsOperation=void 0;var eM=E(),k3=o();class y3 extends k3.AbstractOperation{constructor(J,Z,$,X){super(X);this.ns=Z,this.cursorId=J,this.server=$}async execute(J,Z){if(J!==this.server)throw new eM.MongoRuntimeError("Killcursor must run on the same server operation began on");const $=this.ns.collection;if($==null)throw new eM.MongoRuntimeError("A collection name must be determined before killCursors");const X={killCursors:$,cursors:[this.cursorId]};try{await J.commandAsync(this.ns,X,{session:Z})}catch{}}}Jj.KillCursorsOperation=y3;k3.defineAspects(y3,[k3.Aspect.MUST_SELECT_SAME_SERVER])});var _3=V((Xj)=>{Object.defineProperty(Xj,"__esModule",{value:!0});Xj.ConnectionPoolMetrics=void 0;class Z8{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(J){if(J===Z8.TXN)this.txnConnections+=1;else if(J===Z8.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(J){if(J===Z8.TXN)this.txnConnections-=1;else if(J===Z8.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(J){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${J}, `+`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}}Z8.TXN="txn";Z8.CURSOR="cursor";Z8.OTHER="other";Xj.ConnectionPoolMetrics=Z8});var x5=V((Fj)=>{var Kj=function(J,Z){if(Z?.loadBalanced)return B1.ServerType.LoadBalancer;if(!J||!J.ok)return B1.ServerType.Unknown;if(J.isreplicaset)return B1.ServerType.RSGhost;if(J.msg&&J.msg==="isdbgrid")return B1.ServerType.Mongos;if(J.setName)if(J.hidden)return B1.ServerType.RSOther;else if(J.isWritablePrimary)return B1.ServerType.RSPrimary;else if(J.secondary)return B1.ServerType.RSSecondary;else if(J.arbiterOnly)return B1.ServerType.RSArbiter;else return B1.ServerType.RSOther;return B1.ServerType.Standalone},Rv=function(J,Z){const $=Object.keys(J),X=Object.keys(Z);return $.length===X.length&&$.every((Y)=>Z[Y]===J[Y])},Gj=function(J,Z){if(J==null||Z==null)return-1;if(!J.processId.equals(Z.processId))return-1;const $=SJ.Long.isLong(J.counter)?J.counter:SJ.Long.fromNumber(J.counter),X=SJ.Long.isLong(Z.counter)?Z.counter:SJ.Long.fromNumber(Z.counter);return $.compare(X)};Object.defineProperty(Fj,"__esModule",{value:!0});Fj.compareTopologyVersion=Fj.parseServerType=Fj.ServerDescription=void 0;var SJ=H1(),Av=E(),K7=y(),B1=d0(),Lv=new Set([B1.ServerType.RSPrimary,B1.ServerType.Standalone,B1.ServerType.Mongos,B1.ServerType.LoadBalancer]),wv=new Set([B1.ServerType.RSPrimary,B1.ServerType.RSSecondary,B1.ServerType.Mongos,B1.ServerType.Standalone,B1.ServerType.LoadBalancer]);class Qj{constructor(J,Z,$={}){if(J==null||J==="")throw new Av.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof J==="string"?K7.HostAddress.fromString(J).toString():J.toString(),this.type=Kj(Z,$),this.hosts=Z?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=Z?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=Z?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=Z?.tags??{},this.minWireVersion=Z?.minWireVersion??0,this.maxWireVersion=Z?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=K7.now(),this.lastWriteDate=Z?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??Z?.topologyVersion??null,this.setName=Z?.setName??null,this.setVersion=Z?.setVersion??null,this.electionId=Z?.electionId??null,this.logicalSessionTimeoutMinutes=Z?.logicalSessionTimeoutMinutes??null,this.primary=Z?.primary??null,this.me=Z?.me?.toLowerCase()??null,this.$clusterTime=Z?.$clusterTime??null}get hostAddress(){return K7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===B1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return wv.has(this.type)}get isWritable(){return Lv.has(this.type)}get host(){const J=`:${this.port}`.length;return this.address.slice(0,-J)}get port(){const J=this.address.split(":").pop();return J?Number.parseInt(J,10):27017}equals(J){const Z=this.topologyVersion===J?.topologyVersion||Gj(this.topologyVersion,J?.topologyVersion)===0,$=this.electionId!=null&&J?.electionId!=null?K7.compareObjectId(this.electionId,J.electionId)===0:this.electionId===J?.electionId;return J!=null&&K7.errorStrictEqual(this.error,J.error)&&this.type===J.type&&this.minWireVersion===J.minWireVersion&&K7.arrayStrictEqual(this.hosts,J.hosts)&&Rv(this.tags,J.tags)&&this.setName===J.setName&&this.setVersion===J.setVersion&&$&&this.primary===J.primary&&this.logicalSessionTimeoutMinutes===J.logicalSessionTimeoutMinutes&&Z}}Fj.ServerDescription=Qj;Fj.parseServerType=Kj;Fj.compareTopologyVersion=Gj});var v3=V((Mj)=>{var Ev=function(J){switch(J){case p.ServerType.Standalone:return p.TopologyType.Single;case p.ServerType.Mongos:return p.TopologyType.Sharded;case p.ServerType.RSPrimary:return p.TopologyType.ReplicaSetWithPrimary;case p.ServerType.RSOther:case p.ServerType.RSSecondary:return p.TopologyType.ReplicaSetNoPrimary;default:return p.TopologyType.Unknown}},Uj=function(J,Z,$=null,X=null,Y=null){if($=$||Z.setName,$!==Z.setName)return J.delete(Z.address),[L4(J),$,X,Y];if(Z.maxWireVersion>=17){const G=f3.compareObjectId(Y,Z.electionId),F=G===0,q=G===-1,W=(X??-1)<=(Z.setVersion??-1);if(q||F&&W)Y=Z.electionId,X=Z.setVersion;else return J.set(Z.address,new y8.ServerDescription(Z.address)),[L4(J),$,X,Y]}else{const G=Z.electionId?Z.electionId:null;if(Z.setVersion&&G){if(X&&Y){if(X>Z.setVersion||f3.compareObjectId(Y,G)>0)return J.set(Z.address,new y8.ServerDescription(Z.address)),[L4(J),$,X,Y]}Y=Z.electionId}if(Z.setVersion!=null&&(X==null||Z.setVersion>X))X=Z.setVersion}for(let[G,F]of J)if(F.type===p.ServerType.RSPrimary&&F.address!==Z.address){J.set(G,new y8.ServerDescription(F.address));break}Z.allHosts.forEach((G)=>{if(!J.has(G))J.set(G,new y8.ServerDescription(G))});const Q=Array.from(J.keys()),K=Z.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{J.delete(G)}),[L4(J),$,X,Y]},Cv=function(J,Z,$=null){if($==null)throw new Tv.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==Z.setName||Z.me&&Z.address!==Z.me)J.delete(Z.address);return L4(J)},hv=function(J,Z,$=null){const X=p.TopologyType.ReplicaSetNoPrimary;if($=$??Z.setName,$!==Z.setName)return J.delete(Z.address),[X,$];if(Z.allHosts.forEach((Y)=>{if(!J.has(Y))J.set(Y,new y8.ServerDescription(Y))}),Z.me&&Z.address!==Z.me)J.delete(Z.address);return[X,$]},L4=function(J){for(let Z of J.values())if(Z.type===p.ServerType.RSPrimary)return p.TopologyType.ReplicaSetWithPrimary;return p.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(Mj,"__esModule",{value:!0});Mj.TopologyDescription=void 0;var OJ=h8(),Tv=E(),f3=y(),p=d0(),y8=x5(),Iv=OJ.MIN_SUPPORTED_SERVER_VERSION,Nv=OJ.MAX_SUPPORTED_SERVER_VERSION,Wj=OJ.MIN_SUPPORTED_WIRE_VERSION,Hj=OJ.MAX_SUPPORTED_WIRE_VERSION,Bv=new Set([p.ServerType.Mongos,p.ServerType.Unknown]),Vj=new Set([p.ServerType.Mongos,p.ServerType.Standalone]),zj=new Set([p.ServerType.RSSecondary,p.ServerType.RSArbiter,p.ServerType.RSOther]);class b5{constructor(J,Z=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=J??p.TopologyType.Unknown,this.servers=Z??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===p.ServerType.Unknown||G.type===p.ServerType.LoadBalancer)continue;if(G.minWireVersion>Hj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${Hj} (MongoDB ${Nv})`;if(G.maxWireVersion<Wj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${Wj} (MongoDB ${Iv}).`;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(J,Z=0){const $=J.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(Z===0)for(let G of Y)K.set(G,new y8.ServerDescription(G));else if(K.size<Z){const G=f3.shuffle(Y,Z-K.size);for(let F of G)K.set(F,new y8.ServerDescription(F))}}return new b5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(J){const Z=J.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=J.type,F=new Map(this.servers);if(J.maxWireVersion!==0)if(K==null)K=J.maxWireVersion;else K=Math.min(K,J.maxWireVersion);if(typeof J.setName==="string"&&typeof X==="string"&&J.setName!==X)if($===p.TopologyType.Single)J=new y8.ServerDescription(Z);else F.delete(Z);if(F.set(Z,J),$===p.TopologyType.Single)return new b5(p.TopologyType.Single,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===p.TopologyType.Unknown)if(G===p.ServerType.Standalone&&this.servers.size!==1)F.delete(Z);else $=Ev(G);if($===p.TopologyType.Sharded){if(!Bv.has(G))F.delete(Z)}if($===p.TopologyType.ReplicaSetNoPrimary){if(Vj.has(G))F.delete(Z);if(G===p.ServerType.RSPrimary){const q=Uj(F,J,X,Y,Q);$=q[0],X=q[1],Y=q[2],Q=q[3]}else if(zj.has(G)){const q=hv(F,J,X);$=q[0],X=q[1]}}if($===p.TopologyType.ReplicaSetWithPrimary)if(Vj.has(G))F.delete(Z),$=L4(F);else if(G===p.ServerType.RSPrimary){const q=Uj(F,J,X,Y,Q);$=q[0],X=q[1],Y=q[2],Q=q[3]}else if(zj.has(G))$=Cv(F,J,X);else $=L4(F);return new b5($,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const J=Array.from(this.servers.values()).filter((Z)=>Z.error);if(J.length>0)return J[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((J)=>J.type!==p.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((J)=>J.isDataBearing)}hasServer(J){return this.servers.has(J)}}Mj.TopologyDescription=b5});var b3=V((Lj)=>{var kv=function(J){let Z=J?.readPreference??x3.ReadPreference.primary;if(J?.readPreference)Z=J.readPreference;if(typeof Z==="string")Z=x3.ReadPreference.fromString(Z);if(!(Z instanceof x3.ReadPreference))throw new Sv.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return Z},yv=function(J){if(J==null)return!1;if(J.description&&J.description.type===Aj.ServerType.Mongos)return!0;if(J.description&&J.description instanceof Ov.TopologyDescription)return Array.from(J.description.servers.values()).some(($)=>$.type===Aj.ServerType.Mongos);return!1};Object.defineProperty(Lj,"__esModule",{value:!0});Lj.isSharded=Lj.getReadPreference=void 0;var Sv=E(),x3=k1(),Aj=d0(),Ov=v3();Lj.getReadPreference=kv;Lj.isSharded=yv});var g3=V((Pj)=>{var uv=function(J){return!!(J.commitTransaction||J.abortTransaction)};Object.defineProperty(Pj,"__esModule",{value:!0});Pj.isTransactionCommand=Pj.Transaction=Pj.TxnState=void 0;var Rj=E(),fv=c0(),vv=k1(),xv=A0();Pj.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 bv={[Pj.TxnState.NO_TRANSACTION]:[Pj.TxnState.NO_TRANSACTION,Pj.TxnState.STARTING_TRANSACTION],[Pj.TxnState.STARTING_TRANSACTION]:[Pj.TxnState.TRANSACTION_IN_PROGRESS,Pj.TxnState.TRANSACTION_COMMITTED,Pj.TxnState.TRANSACTION_COMMITTED_EMPTY,Pj.TxnState.TRANSACTION_ABORTED],[Pj.TxnState.TRANSACTION_IN_PROGRESS]:[Pj.TxnState.TRANSACTION_IN_PROGRESS,Pj.TxnState.TRANSACTION_COMMITTED,Pj.TxnState.TRANSACTION_ABORTED],[Pj.TxnState.TRANSACTION_COMMITTED]:[Pj.TxnState.TRANSACTION_COMMITTED,Pj.TxnState.TRANSACTION_COMMITTED_EMPTY,Pj.TxnState.STARTING_TRANSACTION,Pj.TxnState.NO_TRANSACTION],[Pj.TxnState.TRANSACTION_ABORTED]:[Pj.TxnState.STARTING_TRANSACTION,Pj.TxnState.NO_TRANSACTION],[Pj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Pj.TxnState.TRANSACTION_COMMITTED_EMPTY,Pj.TxnState.NO_TRANSACTION]},gv=new Set([Pj.TxnState.STARTING_TRANSACTION,Pj.TxnState.TRANSACTION_IN_PROGRESS]),mv=new Set([Pj.TxnState.TRANSACTION_COMMITTED,Pj.TxnState.TRANSACTION_COMMITTED_EMPTY,Pj.TxnState.TRANSACTION_ABORTED]);class Dj{constructor(J){J=J??{},this.state=Pj.TxnState.NO_TRANSACTION,this.options={};const Z=xv.WriteConcern.fromOptions(J);if(Z){if(Z.w===0)throw new Rj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=Z}if(J.readConcern)this.options.readConcern=fv.ReadConcern.fromOptions(J);if(J.readPreference)this.options.readPreference=vv.ReadPreference.fromOptions(J);if(J.maxCommitTimeMS)this.options.maxTimeMS=J.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===Pj.TxnState.STARTING_TRANSACTION}get isActive(){return gv.has(this.state)}get isCommitted(){return mv.has(this.state)}transition(J){const Z=bv[this.state];if(Z&&Z.includes(J)){if(this.state=J,this.state===Pj.TxnState.NO_TRANSACTION||this.state===Pj.TxnState.STARTING_TRANSACTION||this.state===Pj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new Rj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${J}]`)}pinServer(J){if(this.isActive)this._pinnedServer=J}unpinServer(){this._pinnedServer=void 0}}Pj.Transaction=Dj;Pj.isTransactionCommand=uv});var m5=V((yj)=>{var Oj=function(J,Z){return F6.calculateDurationInMs(J)<Z},tv=function(J){const Z=J instanceof x.MongoServerError&&J.codeName&&nv.has(J.codeName);return xJ(J)||!Z&&J.code!==x.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&J.code!==x.MONGODB_ERROR_CODES.UnknownReplWriteConcern},vJ=function(J,Z){const $=J[F7],X=Z?.error;if(J.inTransaction()&&X&&X instanceof x.MongoError&&X.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))return;const Y=J.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(Z?.error==null||Z?.force){if(K.pool.checkIn($),$.emit(hj.UNPINNED,J.transaction.state!==z1.TxnState.NO_TRANSACTION?yJ.ConnectionPoolMetrics.TXN:yJ.ConnectionPoolMetrics.CURSOR),Z?.forceClear)K.pool.clear({serviceId:$.serviceId})}J[F7]=void 0}},xJ=function(J){if(J==null||!(J instanceof x.MongoServerError))return!1;return J.code===x.MONGODB_ERROR_CODES.MaxTimeMSExpired||J.writeConcernError&&J.writeConcernError.code===x.MONGODB_ERROR_CODES.MaxTimeMSExpired},kj=function(J,Z,$,X,Y){return J.commitTransaction().then(()=>X,(Q)=>{if(Q instanceof x.MongoError&&Oj(Z,Sj)&&!xJ(Q)){if(Q.hasErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult))return kj(J,Z,$,X,Y);if(Q.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))return d3(J,Z,$,Y)}throw Q})},ov=function(J){return rv.has(J.transaction.state)},d3=function(J,Z,$,X={}){J.startTransaction(X);let Y;try{Y=$(J)}catch(Q){Y=Promise.reject(Q)}if(!F6.isPromiseLike(Y))return J.abortTransaction().catch(()=>null),Promise.reject(new x.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise"));return Y.then((Q)=>{if(ov(J))return Q;return kj(J,Z,$,Q,X)},(Q)=>{function K(G){if(G instanceof x.MongoError&&G.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError)&&Oj(Z,Sj))return d3(J,Z,$,X);if(xJ(G))G.addErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(J.inTransaction())return J.abortTransaction().then(()=>K(Q));return K(Q)})},ev=function(J,Z,$){const X=J.transaction.state;if(X===z1.TxnState.NO_TRANSACTION){$(new x.MongoTransactionError("No transaction started"));return}if(Z==="commitTransaction"){if(X===z1.TxnState.STARTING_TRANSACTION||X===z1.TxnState.TRANSACTION_COMMITTED_EMPTY){J.transaction.transition(z1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===z1.TxnState.TRANSACTION_ABORTED){$(new x.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===z1.TxnState.STARTING_TRANSACTION){J.transaction.transition(z1.TxnState.TRANSACTION_ABORTED),$();return}if(X===z1.TxnState.TRANSACTION_ABORTED){$(new x.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===z1.TxnState.TRANSACTION_COMMITTED||X===z1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new x.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[Z]:1};let Q;if(J.transaction.options.writeConcern)Q=Object.assign({},J.transaction.options.writeConcern);else if(J.clientOptions&&J.clientOptions.writeConcern)Q={w:J.clientOptions.writeConcern.w};if(X===z1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)iv.WriteConcern.apply(Y,Q);if(Z==="commitTransaction"&&J.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:J.transaction.options.maxTimeMS});function K(G){if(Z!=="commitTransaction"){if(J.transaction.transition(z1.TxnState.TRANSACTION_ABORTED),J.loadBalanced)vJ(J,{force:!1});return $()}if(J.transaction.transition(z1.TxnState.TRANSACTION_COMMITTED),G instanceof x.MongoError){if(x.isRetryableWriteError(G)||G instanceof x.MongoWriteConcernError||xJ(G)){if(tv(G))G.addErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult),J.unpin({error:G})}else if(G.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))J.unpin({error:G})}$(G)}if(J.transaction.recoveryToken)Y.recoveryToken=J.transaction.recoveryToken;Ij.executeOperation(J.client,new Nj.RunAdminCommandOperation(Y,{session:J,readPreference:Bj.ReadPreference.primary,bypassPinningCheck:!0}),(G)=>{if(Y.abortTransaction)J.unpin();if(G instanceof x.MongoError&&x.isRetryableWriteError(G)){if(Y.commitTransaction)J.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Ij.executeOperation(J.client,new Nj.RunAdminCommandOperation(Y,{session:J,readPreference:Bj.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G)})},Jx=function(J,Z,$){if(J.hasEnded)return new x.MongoExpiredSessionError;const X=J.serverSession;if(X==null)return new x.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(J&&J.explicit)return new x.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=F6.now(),Z.lsid=X.id;const Y=J.inTransaction()||z1.isTransactionCommand(Z);if(!!$.willRetryWrite||Y)X.txnNumber+=J[fJ],J[fJ]=0,Z.txnNumber=kJ.Long.fromNumber(X.txnNumber);if(!Y){if(J.transaction.state!==z1.TxnState.NO_TRANSACTION)J.transaction.transition(z1.TxnState.NO_TRANSACTION);if(J.supports.causalConsistency&&J.operationTime&&F6.commandSupportsReadConcern(Z))Z.readConcern=Z.readConcern||{},Object.assign(Z.readConcern,{afterClusterTime:J.operationTime});else if(J[q7]){if(Z.readConcern=Z.readConcern||{level:av.ReadConcernLevel.snapshot},J[_J]!=null)Object.assign(Z.readConcern,{atClusterTime:J[_J]})}return}if(Z.autocommit=!1,J.transaction.state===z1.TxnState.STARTING_TRANSACTION){J.transaction.transition(z1.TxnState.TRANSACTION_IN_PROGRESS),Z.startTransaction=!0;const K=J.transaction.options.readConcern||J?.clientOptions?.readConcern;if(K)Z.readConcern=K;if(J.supports.causalConsistency&&J.operationTime)Z.readConcern=Z.readConcern||{},Object.assign(Z.readConcern,{afterClusterTime:J.operationTime})}return},Zx=function(J,Z){if(Z.$clusterTime)m3._advanceClusterTime(J,Z.$clusterTime);if(Z.operationTime&&J&&J.supports.causalConsistency)J.advanceOperationTime(Z.operationTime);if(Z.recoveryToken&&J&&J.inTransaction())J.transaction._recoveryToken=Z.recoveryToken;if(J?.[q7]&&J[_J]==null){const $=Z.cursor?.atClusterTime||Z.atClusterTime;if($)J[_J]=$}},Cj;Object.defineProperty(yj,"__esModule",{value:!0});yj.updateSessionFromResponse=yj.applySession=yj.ServerSessionPool=yj.ServerSession=yj.maybeClearPinnedConnection=yj.ClientSession=void 0;var cv=import.meta.require("util"),kJ=H1(),yJ=_3(),pv=b3(),hj=v1(),x=E(),lv=C0(),Ij=L0(),Nj=X7(),av=c0(),Bj=k1(),m3=d0(),z1=g3(),F6=y(),iv=A0(),sv=8,G7=Symbol("serverSession"),_J=Symbol("snapshotTime"),q7=Symbol("snapshotEnabled"),F7=Symbol("pinnedConnection"),fJ=Symbol("txnNumberIncrement");class u3 extends lv.TypedEventEmitter{constructor(J,Z,$,X){super();if(this[Cj]=!1,J==null)throw new x.MongoRuntimeError("ClientSession requires a MongoClient");if(Z==null||!(Z instanceof c3))throw new x.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[q7]=!0,$.causalConsistency===!0)throw new x.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=J,this.sessionPool=Z,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[G7]=this.explicit?this.sessionPool.acquire():null,this[fJ]=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 z1.Transaction}get id(){return this[G7]?.id}get serverSession(){let J=this[G7];if(J==null){if(this.explicit)throw new x.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new x.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");J=this.sessionPool.acquire(),this[G7]=J}return J}get snapshotEnabled(){return this[q7]}get loadBalanced(){return this.client.topology?.description.type===m3.TopologyType.LoadBalanced}get pinnedConnection(){return this[F7]}pin(J){if(this[F7])throw TypeError("Cannot pin multiple connections to the same session");this[F7]=J,J.emit(hj.PINNED,this.inTransaction()?yJ.ConnectionPoolMetrics.TXN:yJ.ConnectionPoolMetrics.CURSOR)}unpin(J){if(this.loadBalanced)return vJ(this,J);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[F7]:this.transaction.isPinned}async endSession(J){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const Z=this[G7];if(Z!=null)this.sessionPool.release(Z),Object.defineProperty(this,G7,{value:g5.clone(Z),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{vJ(this,{force:!0,...J})}}advanceOperationTime(J){if(this.operationTime==null){this.operationTime=J;return}if(J.greaterThan(this.operationTime))this.operationTime=J}advanceClusterTime(J){if(!J||typeof J!=="object")throw new x.MongoInvalidArgumentError("input cluster time must be an object");if(!J.clusterTime||J.clusterTime._bsontype!=="Timestamp")throw new x.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!J.signature||J.signature.hash?._bsontype!=="Binary"||typeof J.signature.keyId!=="bigint"&&typeof J.signature.keyId!=="number"&&J.signature.keyId?._bsontype!=="Long")throw new x.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');m3._advanceClusterTime(this,J)}equals(J){if(!(J instanceof u3))return!1;if(this.id==null||J.id==null)return!1;return F6.ByteUtils.equals(this.id.id.buffer,J.id.id.buffer)}incrementTransactionNumber(){this[fJ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(J){if(this[q7])throw new x.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new x.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const Z=F6.maxWireVersion(this.client.topology);if(pv.isSharded(this.client.topology)&&Z!=null&&Z<sv)throw new x.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new z1.Transaction({readConcern:J?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:J?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:J?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:J?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(z1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Ej(this,"commitTransaction")}async abortTransaction(){return Ej(this,"abortTransaction")}toBSON(){throw new x.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(J,Z){const $=F6.now();return d3(this,$,J,Z)}}yj.ClientSession=u3;Cj=q7;var Sj=120000,nv=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);yj.maybeClearPinnedConnection=vJ;var rv=new Set([z1.TxnState.NO_TRANSACTION,z1.TxnState.TRANSACTION_COMMITTED,z1.TxnState.TRANSACTION_ABORTED]),Ej=cv.promisify(ev);class g5{constructor(){this.id={id:new kJ.Binary(F6.uuidV4(),kJ.Binary.SUBTYPE_UUID)},this.lastUse=F6.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(J){return Math.round(F6.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>J-1}static clone(J){const Z=new ArrayBuffer(16),$=Buffer.from(Z);$.set(J.id.id.buffer);const X=new kJ.Binary($,J.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:J.lastUse,txnNumber:J.txnNumber,isDirty:J.isDirty},g5.prototype)}}yj.ServerSession=g5;class c3{constructor(J){if(J==null)throw new x.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=J,this.sessions=new F6.List}acquire(){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;let Z=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(J))){Z=$;break}}if(Z==null)Z=new g5;return Z}release(J){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!Z)this.sessions.unshift(J);if(!Z)return;if(this.sessions.prune(($)=>$.hasTimedOut(Z)),!J.hasTimedOut(Z)){if(J.isDirty)return;this.sessions.unshift(J)}}}yj.ServerSessionPool=c3;yj.applySession=Jx;yj.updateSessionFromResponse=Zx});var X8=V((mj)=>{async function mJ(J,{blocking:Z,transform:$}){if(J.closed)return null;do{if(J[r1]==null)await J[gj]();if(J[o1].length!==0){const Y=J[o1].shift();if(Y!=null&&$&&J[c5])try{return J[c5](Y)}catch(Q){throw await _8(J,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(J.isDead)return await _8(J,{}),null;const X=J[x1].batchSize||1000;try{const Y=await J.getMore(X);if(Y){const Q=typeof Y.cursor.id==="number"?q6.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?q6.Long.fromBigInt(Y.cursor.id):Y.cursor.id;J[o1].pushMany(Y.cursor.nextBatch),J[r1]=Q}}catch(Y){throw await _8(J,{error:Y}).catch(()=>null),Y}if(J.isDead)await _8(J,{});if(J[o1].length===0&&Z===!1)return null}while(!J.isDead||J[o1].length!==0);return null}async function _8(J,Z){const $=J[r1],X=J[u5],Y=J[gJ],Q=J[$8],K=Z?.error,G=Z?.needsToEmitClosed??J[o1].length===0;if(K){if(J.loadBalanced&&K instanceof h0.MongoNetworkError)return F()}if($==null||Y==null||$.isZero()||X==null){if(G)J[w4]=!0,J[r1]=q6.Long.ZERO,J.emit(V7.CLOSE);if(Q){if(Q.owner===J){await Q.endSession({error:K});return}if(!Q.inTransaction())p3.maybeClearPinnedConnection(Q,{error:K})}return}async function F(){if(Q){if(Q.owner===J){try{await Q.endSession({error:K})}finally{J.emit(V7.CLOSE)}return}if(!Q.inTransaction())p3.maybeClearPinnedConnection(Q,{error:K})}J.emit(V7.CLOSE);return}if(J[d5]=!0,Q.hasEnded)return F();try{await bj.executeOperation(J[W7],new qx.KillCursorsOperation($,X,Y,{session:Q})).catch(()=>null)}finally{await F()}}var R4=function(J){if(J[H7])throw new h0.MongoCursorInUseError};Object.defineProperty(mj,"__esModule",{value:!0});mj.assertUninitialized=mj.AbstractCursor=mj.CURSOR_FLAGS=void 0;var xj=import.meta.require("stream"),q6=H1(),h0=E(),Gx=C0(),bj=L0(),Fx=O3(),qx=$j(),fj=c0(),bJ=k1(),p3=m5(),vj=y(),r1=Symbol("id"),o1=Symbol("documents"),gJ=Symbol("server"),u5=Symbol("namespace"),W7=Symbol("client"),$8=Symbol("session"),x1=Symbol("options"),c5=Symbol("transform"),H7=Symbol("initialized"),w4=Symbol("closed"),d5=Symbol("killed"),gj=Symbol("kInit");mj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class V7 extends Gx.TypedEventEmitter{constructor(J,Z,$={}){super();if(!J.s.isMongoClient)throw new h0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[W7]=J,this[u5]=Z,this[r1]=null,this[o1]=new vj.List,this[H7]=!1,this[w4]=!1,this[d5]=!1,this[x1]={readPreference:$.readPreference&&$.readPreference instanceof bJ.ReadPreference?$.readPreference:bJ.ReadPreference.primary,...q6.pluckBSONSerializeOptions($)};const X=fj.ReadConcern.fromOptions($);if(X)this[x1].readConcern=X;if(typeof $.batchSize==="number")this[x1].batchSize=$.batchSize;if($.comment!==void 0)this[x1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[x1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[x1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof p3.ClientSession)this[$8]=$.session;else this[$8]=this[W7].startSession({owner:this,explicit:!1})}get id(){return this[r1]??void 0}get isDead(){return(this[r1]?.isZero()??!1)||this[w4]||this[d5]}get client(){return this[W7]}get server(){return this[gJ]}get namespace(){return this[u5]}get readPreference(){return this[x1].readPreference}get readConcern(){return this[x1].readConcern}get session(){return this[$8]}set session(J){this[$8]=J}get cursorOptions(){return this[x1]}get closed(){return this[w4]}get killed(){return this[d5]}get loadBalanced(){return!!this[W7].topology?.loadBalanced}bufferedCount(){return this[o1].length}readBufferedDocuments(J){const Z=[],$=Math.min(J??this[o1].length,this[o1].length);for(let X=0;X<$;X++){const Y=this[o1].shift();if(Y!=null)Z.push(Y)}return Z}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const J=await this.next();if(J===null){if(!this.closed)throw await _8(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 J,this[r1]===q6.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(J){if(J?.transform){const Z=J.transform;return new l3(this).pipe(new xj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=Z(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new l3(this)}async hasNext(){if(this[r1]===q6.Long.ZERO)return!1;if(this[o1].length!==0)return!0;const J=await mJ(this,{blocking:!0,transform:!1});if(J)return this[o1].unshift(J),!0;return!1}async next(){if(this[r1]===q6.Long.ZERO)throw new h0.MongoCursorExhaustedError;return mJ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[r1]===q6.Long.ZERO)throw new h0.MongoCursorExhaustedError;return mJ(this,{blocking:!1,transform:!0})}async forEach(J){if(typeof J!=="function")throw new h0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let Z of this)if(J(Z)===!1)break}async close(){const J=!this[w4];this[w4]=!0,await _8(this,{needsToEmitClosed:J})}async toArray(){const J=[];for await(let Z of this)J.push(Z);return J}addCursorFlag(J,Z){if(R4(this),!mj.CURSOR_FLAGS.includes(J))throw new h0.MongoInvalidArgumentError(`Flag ${J} is not one of ${mj.CURSOR_FLAGS}`);if(typeof Z!=="boolean")throw new h0.MongoInvalidArgumentError(`Flag ${J} must be a boolean value`);return this[x1][J]=Z,this}map(J){R4(this);const Z=this[c5];if(Z)this[c5]=($)=>{return J(Z($))};else this[c5]=J;return this}withReadPreference(J){if(R4(this),J instanceof bJ.ReadPreference)this[x1].readPreference=J;else if(typeof J==="string")this[x1].readPreference=bJ.ReadPreference.fromString(J);else throw new h0.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return this}withReadConcern(J){R4(this);const Z=fj.ReadConcern.fromOptions({readConcern:J});if(Z)this[x1].readConcern=Z;return this}maxTimeMS(J){if(R4(this),typeof J!=="number")throw new h0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[x1].maxTimeMS=J,this}batchSize(J){if(R4(this),this[x1].tailable)throw new h0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof J!=="number")throw new h0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[x1].batchSize=J,this}rewind(){if(!this[H7])return;this[r1]=null,this[o1].clear(),this[w4]=!1,this[d5]=!1,this[H7]=!1;const J=this[$8];if(J){if(J.explicit===!1){if(!J.hasEnded)J.endSession().catch(()=>null);this[$8]=this.client.startSession({owner:this,explicit:!1})}}}async getMore(J){const Z=new Fx.GetMoreOperation(this[u5],this[r1],this[gJ],{...this[x1],session:this[$8],batchSize:J});return bj.executeOperation(this[W7],Z)}async[gj](){try{const J=await this._initialize(this[$8]),Z=J.response;if(this[gJ]=J.server,Z.cursor){if(this[r1]=typeof Z.cursor.id==="number"?q6.Long.fromNumber(Z.cursor.id):typeof Z.cursor.id==="bigint"?q6.Long.fromBigInt(Z.cursor.id):Z.cursor.id,Z.cursor.ns)this[u5]=vj.ns(Z.cursor.ns);this[o1].pushMany(Z.cursor.firstBatch)}if(this[r1]==null)this[r1]=q6.Long.ZERO,this[o1].push(J.response);this[H7]=!0}catch(J){throw this[H7]=!0,await _8(this,{error:J}),J}if(this.isDead)await _8(this,void 0);return}}V7.CLOSE="close";mj.AbstractCursor=V7;mj.assertUninitialized=R4;class l3 extends xj.Readable{constructor(J){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=J}_read(J){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(J,Z){this._cursor.close().then(()=>Z(J),($)=>Z($))}_readNext(){mJ(this._cursor,{blocking:!0,transform:!0}).then((J)=>{if(J==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(J))return this._readNext();this._readInProgress=!1}},(J)=>{if(J.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(J.message.match(/operation was interrupted/))return this.push(null);return this.destroy(J)})}}});var p5=V((pj)=>{Object.defineProperty(pj,"__esModule",{value:!0});pj.AggregationCursor=void 0;var dj=CJ(),cj=L0(),Hx=y(),a0=X8(),e1=Symbol("pipeline"),uJ=Symbol("options");class i3 extends a0.AbstractCursor{constructor(J,Z,$=[],X={}){super(J,Z,X);this[e1]=$,this[uJ]=X}get pipeline(){return this[e1]}clone(){const J=Hx.mergeOptions({},this[uJ]);return delete J.session,new i3(this.client,this.namespace,this[e1],{...J})}map(J){return super.map(J)}async _initialize(J){const Z=new dj.AggregateOperation(this.namespace,this[e1],{...this[uJ],...this.cursorOptions,session:J}),$=await cj.executeOperation(this.client,Z);return{server:Z.server,session:J,response:$}}async explain(J){return cj.executeOperation(this.client,new dj.AggregateOperation(this.namespace,this[e1],{...this[uJ],...this.cursorOptions,explain:J??!0}))}group(J){return a0.assertUninitialized(this),this[e1].push({$group:J}),this}limit(J){return a0.assertUninitialized(this),this[e1].push({$limit:J}),this}match(J){return a0.assertUninitialized(this),this[e1].push({$match:J}),this}out(J){return a0.assertUninitialized(this),this[e1].push({$out:J}),this}project(J){return a0.assertUninitialized(this),this[e1].push({$project:J}),this}lookup(J){return a0.assertUninitialized(this),this[e1].push({$lookup:J}),this}redact(J){return a0.assertUninitialized(this),this[e1].push({$redact:J}),this}skip(J){return a0.assertUninitialized(this),this[e1].push({$skip:J}),this}sort(J){return a0.assertUninitialized(this),this[e1].push({$sort:J}),this}unwind(J){return a0.assertUninitialized(this),this[e1].push({$unwind:J}),this}geoNear(J){return a0.assertUninitialized(this),this[e1].push({$geoNear:J}),this}}pj.AggregationCursor=i3});var t3=V((aj)=>{Object.defineProperty(aj,"__esModule",{value:!0});aj.CountOperation=void 0;var Vx=T1(),s3=o();class n3 extends Vx.CommandOperation{constructor(J,Z,$){super({s:{namespace:J}},$);this.options=$,this.collectionName=J.collection,this.query=Z}async execute(J,Z){const $=this.options,X={count:this.collectionName,query:this.query};if(typeof $.limit==="number")X.limit=$.limit;if(typeof $.skip==="number")X.skip=$.skip;if($.hint!=null)X.hint=$.hint;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=await super.executeCommand(J,Z,X);return Y?Y.n:0}}aj.CountOperation=n3;s3.defineAspects(n3,[s3.Aspect.READ_OPERATION,s3.Aspect.RETRYABLE])});var dJ=V((nj)=>{var z7=function(J=1){const Z=`${J}`.toLowerCase();if(zx(J))return J;switch(Z){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new sj.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(J)}`)}},zx=function(J){return typeof J==="object"&&J!=null&&"$meta"in J&&typeof J.$meta==="string"},Ux=function(J){if(Array.isArray(J)&&J.length===2)try{return z7(J[1]),!0}catch(Z){return!1}return!1},Mx=function(J){return Array.isArray(J)&&Array.isArray(J[0])},jx=function(J){return J instanceof Map&&J.size>0},Ax=function(J){return new Map([[`${J[0]}`,z7([J[1]])]])},Lx=function(J){const Z=J.map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},wx=function(J){const Z=J.map(($)=>[`${$}`,1]);return new Map(Z)},Rx=function(J){const Z=Object.entries(J).map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},Dx=function(J){const Z=Array.from(J).map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},Px=function(J,Z){if(J==null)return;if(typeof J==="string")return new Map([[J,z7(Z)]]);if(typeof J!=="object")throw new sj.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(J)} Sort must be a valid object`);if(!Array.isArray(J))return jx(J)?Dx(J):Object.keys(J).length?Rx(J):void 0;if(!J.length)return;if(Mx(J))return Lx(J);if(Ux(J))return Ax(J);return wx(J)};Object.defineProperty(nj,"__esModule",{value:!0});nj.formatSort=void 0;var sj=E();nj.formatSort=Px});var JA=V((oj)=>{var Ex=function(J,Z,$){const X={find:J.collection,filter:Z};if($.sort)X.sort=Nx.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=rj.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=Ix.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(oj,"__esModule",{value:!0});oj.FindOperation=void 0;var Tx=E(),Ix=c0(),Nx=dJ(),rj=y(),Bx=T1(),l5=o();class r3 extends Bx.CommandOperation{constructor(J,Z,$={},X={}){super(J,X);if(this.options={...X},delete this.options.writeConcern,this.ns=Z,typeof $!=="object"||Array.isArray($))throw new Tx.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}async execute(J,Z){this.server=J;const $=this.options;let X=Ex(this.ns,this.filter,$);if(this.explain)X=rj.decorateWithExplain(X,this.explain);return J.commandAsync(this.ns,X,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:Z})}}oj.FindOperation=r3;l5.defineAspects(r3,[l5.Aspect.READ_OPERATION,l5.Aspect.RETRYABLE,l5.Aspect.EXPLAINABLE,l5.Aspect.CURSOR_CREATING])});var ZY=V((XA)=>{Object.defineProperty(XA,"__esModule",{value:!0});XA.FindCursor=XA.FLAGS=void 0;var Cx=H1(),W6=E(),hx=t3(),o3=L0(),ZA=JA(),e3=dJ(),$A=y(),m1=X8(),D4=Symbol("filter"),cJ=Symbol("numReturned"),a=Symbol("builtOptions");XA.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class JY extends m1.AbstractCursor{constructor(J,Z,$={},X={}){super(J,Z,X);if(this[D4]=$,this[a]=X,X.sort!=null)this[a].sort=e3.formatSort(X.sort)}clone(){const J=$A.mergeOptions({},this[a]);return delete J.session,new JY(this.client,this.namespace,this[D4],{...J})}map(J){return super.map(J)}async _initialize(J){const Z=new ZA.FindOperation(void 0,this.namespace,this[D4],{...this[a],...this.cursorOptions,session:J}),$=await o3.executeOperation(this.client,Z);return this[cJ]=$.cursor?.firstBatch?.length,{server:Z.server,session:J,response:$}}async getMore(J){const Z=this[cJ];if(Z){const X=this[a].limit;if(J=X&&X>0&&Z+J>X?X-Z:J,J<=0)return await this.close().catch(()=>null),{cursor:{id:Cx.Long.ZERO,nextBatch:[]}}}const $=await super.getMore(J);if($)this[cJ]=this[cJ]+$.cursor.nextBatch.length;return $}async count(J){if($A.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof J==="boolean")throw new W6.MongoInvalidArgumentError("Invalid first parameter to count");return o3.executeOperation(this.client,new hx.CountOperation(this.namespace,this[D4],{...this[a],...this.cursorOptions,...J}))}async explain(J){return o3.executeOperation(this.client,new ZA.FindOperation(void 0,this.namespace,this[D4],{...this[a],...this.cursorOptions,explain:J??!0}))}filter(J){return m1.assertUninitialized(this),this[D4]=J,this}hint(J){return m1.assertUninitialized(this),this[a].hint=J,this}min(J){return m1.assertUninitialized(this),this[a].min=J,this}max(J){return m1.assertUninitialized(this),this[a].max=J,this}returnKey(J){return m1.assertUninitialized(this),this[a].returnKey=J,this}showRecordId(J){return m1.assertUninitialized(this),this[a].showRecordId=J,this}addQueryModifier(J,Z){if(m1.assertUninitialized(this),J[0]!=="$")throw new W6.MongoInvalidArgumentError(`${J} is not a valid query modifier`);switch(J.substr(1)){case"comment":this[a].comment=Z;break;case"explain":this[a].explain=Z;break;case"hint":this[a].hint=Z;break;case"max":this[a].max=Z;break;case"maxTimeMS":this[a].maxTimeMS=Z;break;case"min":this[a].min=Z;break;case"orderby":this[a].sort=e3.formatSort(Z);break;case"query":this[D4]=Z;break;case"returnKey":this[a].returnKey=Z;break;case"showDiskLoc":this[a].showRecordId=Z;break;default:throw new W6.MongoInvalidArgumentError(`Invalid query modifier: ${J}`)}return this}comment(J){return m1.assertUninitialized(this),this[a].comment=J,this}maxAwaitTimeMS(J){if(m1.assertUninitialized(this),typeof J!=="number")throw new W6.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[a].maxAwaitTimeMS=J,this}maxTimeMS(J){if(m1.assertUninitialized(this),typeof J!=="number")throw new W6.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[a].maxTimeMS=J,this}project(J){return m1.assertUninitialized(this),this[a].projection=J,this}sort(J,Z){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support sorting");return this[a].sort=e3.formatSort(J,Z),this}allowDiskUse(J=!0){if(m1.assertUninitialized(this),!this[a].sort)throw new W6.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!J)return this[a].allowDiskUse=!1,this;return this[a].allowDiskUse=!0,this}collation(J){return m1.assertUninitialized(this),this[a].collation=J,this}limit(J){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof J!=="number")throw new W6.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[a].limit=J,this}skip(J){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof J!=="number")throw new W6.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[a].skip=J,this}}XA.FindCursor=JY});var a5=V((FA)=>{var yx=function(J){return typeof J==="number"||J==="2d"||J==="2dsphere"||J==="text"||J==="geoHaystack"},_x=function(J){return Array.isArray(J)&&J.length===2&&yx(J[1])},fx=function(J,Z){const $=new Map,X=!Array.isArray(J)||_x(J)?[J]:J;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(XY.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...Z,key:$}};Object.defineProperty(FA,"__esModule",{value:!0});FA.IndexInformationOperation=FA.IndexExistsOperation=FA.ListIndexesOperation=FA.DropIndexOperation=FA.EnsureIndexOperation=FA.CreateIndexOperation=FA.CreateIndexesOperation=FA.IndexesOperation=void 0;var $Y=E(),Ox=k1(),XY=y(),YY=T1(),QY=V3(),K0=o(),kx=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 QA extends K0.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,X=this.options;return QY.indexInformation($.s.db,$.collectionName,{full:!0,...X,readPreference:this.readPreference,session:Z})}}FA.IndexesOperation=QA;class pJ extends YY.CommandOperation{constructor(J,Z,$,X){super(J,X);this.options=X??{},this.collectionName=Z,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])=>kx.has(F))),name:K,key:Q}})}async execute(J,Z){const $=this.options,X=this.indexes,Y=XY.maxWireVersion(J),Q={createIndexes:this.collectionName,indexes:X};if($.commitQuorum!=null){if(Y<9)throw new $Y.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4");Q.commitQuorum=$.commitQuorum}return this.options.collation=void 0,await super.executeCommand(J,Z,Q),X.map((G)=>G.name||"")}}FA.CreateIndexesOperation=pJ;class lJ extends pJ{constructor(J,Z,$,X){super(J,Z,[fx($,X)],X)}async execute(J,Z){return(await super.execute(J,Z))[0]}}FA.CreateIndexOperation=lJ;class KY extends lJ{constructor(J,Z,$,X){super(J,Z,$,X);this.readPreference=Ox.ReadPreference.primary,this.db=J,this.collectionName=Z}async execute(J,Z){const $=this.indexes[0].name,X=await this.db.collection(this.collectionName).listIndexes({session:Z}).toArray().catch((Y)=>{if(Y instanceof $Y.MongoError&&Y.code===$Y.MONGODB_ERROR_CODES.NamespaceNotFound)return[];throw Y});if($&&X.some((Y)=>Y.name===$))return $;return super.execute(J,Z)}}FA.EnsureIndexOperation=KY;class GY extends YY.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$??{},this.collection=J,this.indexName=Z}async execute(J,Z){const $={dropIndexes:this.collection.collectionName,index:this.indexName};return super.executeCommand(J,Z,$)}}FA.DropIndexOperation=GY;class FY extends YY.CommandOperation{constructor(J,Z){super(J,Z);this.options={...Z},delete this.options.writeConcern,this.collectionNamespace=J.s.namespace}async execute(J,Z){const $=XY.maxWireVersion(J),X=this.options.batchSize?{batchSize:this.options.batchSize}:{},Y={listIndexes:this.collectionNamespace.collection,cursor:X};if($>=9&&this.options.comment!==void 0)Y.comment=this.options.comment;return super.executeCommand(J,Z,Y)}}FA.ListIndexesOperation=FY;class KA extends K0.AbstractOperation{constructor(J,Z,$){super($);this.options=$,this.collection=J,this.indexes=Z}async execute(J,Z){const $=this.collection,X=this.indexes,Y=await QY.indexInformation($.s.db,$.collectionName,{...this.options,readPreference:this.readPreference,session:Z});if(!Array.isArray(X))return Y[X]!=null;return X.every((Q)=>Y[Q]!=null)}}FA.IndexExistsOperation=KA;class GA extends K0.AbstractOperation{constructor(J,Z,$){super($);this.options=$??{},this.db=J,this.name=Z}async execute(J,Z){const $=this.db,X=this.name;return QY.indexInformation($,X,{...this.options,readPreference:this.readPreference,session:Z})}}FA.IndexInformationOperation=GA;K0.defineAspects(FY,[K0.Aspect.READ_OPERATION,K0.Aspect.RETRYABLE,K0.Aspect.CURSOR_CREATING]);K0.defineAspects(pJ,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(lJ,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(KY,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(GY,[K0.Aspect.WRITE_OPERATION])});var WY=V((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.ListIndexesCursor=void 0;var cx=L0(),px=a5(),lx=X8();class qY extends lx.AbstractCursor{constructor(J,Z){super(J.client,J.s.namespace,Z);this.parent=J,this.options=Z}clone(){return new qY(this.parent,{...this.options,...this.cursorOptions})}async _initialize(J){const Z=new px.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:J}),$=await cx.executeOperation(this.parent.client,Z);return{server:Z.server,session:J,response:$}}}WA.ListIndexesCursor=qY});var MA=V((zA)=>{Object.defineProperty(zA,"__esModule",{value:!0});zA.ListSearchIndexesCursor=void 0;var ax=p5();class VA extends ax.AggregationCursor{constructor({fullNamespace:J,client:Z},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(Z,J,Y,X)}}zA.ListSearchIndexesCursor=VA});var wA=V((AA)=>{Object.defineProperty(AA,"__esModule",{value:!0});AA.CountDocumentsOperation=void 0;var ix=CJ();class jA extends ix.AggregateOperation{constructor(J,Z,$){const X=[];if(X.push({$match:Z}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(J.s.namespace,X,$)}async execute(J,Z){const X=await super.execute(J,Z);if(X.cursor==null||X.cursor.firstBatch==null)return 0;const Y=X.cursor.firstBatch;return Y.length?Y[0].n:0}}AA.CountDocumentsOperation=jA});var TA=V((DA)=>{Object.defineProperty(DA,"__esModule",{value:!0});DA.DistinctOperation=void 0;var RA=y(),sx=T1(),aJ=o();class HY extends sx.CommandOperation{constructor(J,Z,$,X){super(J,X);this.options=X??{},this.collection=J,this.key=Z,this.query=$}async execute(J,Z){const $=this.collection,X=this.key,Y=this.query,Q=this.options,K={distinct:$.collectionName,key:X,query:Y};if(typeof Q.maxTimeMS==="number")K.maxTimeMS=Q.maxTimeMS;if(typeof Q.comment!=="undefined")K.comment=Q.comment;RA.decorateWithReadConcern(K,$,Q),RA.decorateWithCollation(K,$,Q);const G=await super.executeCommand(J,Z,K);return this.explain?G:G.values}}DA.DistinctOperation=HY;aJ.defineAspects(HY,[aJ.Aspect.READ_OPERATION,aJ.Aspect.RETRYABLE,aJ.Aspect.EXPLAINABLE])});var zY=V((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.DropDatabaseOperation=BA.DropCollectionOperation=void 0;var IA=E(),NA=T1(),iJ=o();class sJ extends NA.CommandOperation{constructor(J,Z,$={}){super(J,$);this.db=J,this.options=$,this.name=Z}async execute(J,Z){const $=this.db,X=this.options,Y=this.name,Q=$.client.options.autoEncryption?.encryptedFieldsMap;let K=X.encryptedFields??Q?.[`${$.databaseName}.${Y}`];if(!K&&Q)K=(await $.listCollections({name:Y},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(K){const G=K.escCollection||`enxcol_.${Y}.esc`,F=K.ecocCollection||`enxcol_.${Y}.ecoc`;for(let q of[G,F]){const W=new sJ($,q);try{await W.executeWithoutEncryptedFieldsCheck(J,Z)}catch(H){if(!(H instanceof IA.MongoServerError)||H.code!==IA.MONGODB_ERROR_CODES.NamespaceNotFound)throw H}}}return this.executeWithoutEncryptedFieldsCheck(J,Z)}async executeWithoutEncryptedFieldsCheck(J,Z){return await super.executeCommand(J,Z,{drop:this.name}),!0}}BA.DropCollectionOperation=sJ;class VY extends NA.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){return await super.executeCommand(J,Z,{dropDatabase:1}),!0}}BA.DropDatabaseOperation=VY;iJ.defineAspects(sJ,[iJ.Aspect.WRITE_OPERATION]);iJ.defineAspects(VY,[iJ.Aspect.WRITE_OPERATION])});var SA=V((CA)=>{Object.defineProperty(CA,"__esModule",{value:!0});CA.EstimatedDocumentCountOperation=void 0;var tx=T1(),nJ=o();class UY extends tx.CommandOperation{constructor(J,Z={}){super(J,Z);this.options=Z,this.collectionName=J.collectionName}async execute(J,Z){const $={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")$.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)$.comment=this.options.comment;return(await super.executeCommand(J,Z,$))?.n||0}}CA.EstimatedDocumentCountOperation=UY;nJ.defineAspects(UY,[nJ.Aspect.READ_OPERATION,nJ.Aspect.RETRYABLE,nJ.Aspect.CURSOR_CREATING])});var MY=V((fA)=>{var OA=function(J,Z){if(J.new=Z.returnDocument===fA.ReturnDocument.AFTER,J.upsert=Z.upsert===!0,Z.bypassDocumentValidation===!0)J.bypassDocumentValidation=Z.bypassDocumentValidation;return J};Object.defineProperty(fA,"__esModule",{value:!0});fA.FindOneAndUpdateOperation=fA.FindOneAndReplaceOperation=fA.FindOneAndDeleteOperation=fA.ReturnDocument=void 0;var f8=E(),rx=k1(),ox=dJ(),rJ=y(),ex=T1(),tJ=o();fA.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class i5 extends ex.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??=!1;const X=ox.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=rx.ReadPreference.primary,this.collection=J,this.query=Z}async execute(J,Z){const $=this.collection,X=this.query,Y={...this.options,...this.bsonOptions},Q={findAndModify:$.collectionName,query:X,...this.cmdBase};try{rJ.decorateWithCollation(Q,$,Y)}catch(G){return G}if(Y.hint){if(this.writeConcern?.w===0||rJ.maxWireVersion(J)<8)throw new f8.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands");Q.hint=Y.hint}const K=await super.executeCommand(J,Z,Q);return Y.includeResultMetadata?K:K.value??null}}class kA extends i5{constructor(J,Z,$){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');super(J,Z,$);this.cmdBase.remove=!0}}fA.FindOneAndDeleteOperation=kA;class yA extends i5{constructor(J,Z,$,X){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new f8.MongoInvalidArgumentError('Argument "replacement" must be an object');if(rJ.hasAtomicOperators($))throw new f8.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(J,Z,X);this.cmdBase.update=$,OA(this.cmdBase,X)}}fA.FindOneAndReplaceOperation=yA;class _A extends i5{constructor(J,Z,$,X){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new f8.MongoInvalidArgumentError('Argument "update" must be an object');if(!rJ.hasAtomicOperators($))throw new f8.MongoInvalidArgumentError("Update document requires atomic operators");super(J,Z,X);if(this.cmdBase.update=$,OA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}fA.FindOneAndUpdateOperation=_A;tJ.defineAspects(i5,[tJ.Aspect.WRITE_OPERATION,tJ.Aspect.RETRYABLE,tJ.Aspect.EXPLAINABLE])});var uA=V((gA)=>{Object.defineProperty(gA,"__esModule",{value:!0});gA.IsCappedOperation=void 0;var $b=E(),Xb=o();class bA extends Xb.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,[X]=await $.s.db.listCollections({name:$.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:Z}).toArray();if(X==null||X.options==null)throw new $b.MongoAPIError(`collection ${$.namespace} not found`);return!!X.options?.capped}}gA.IsCappedOperation=bA});var lA=V((cA)=>{Object.defineProperty(cA,"__esModule",{value:!0});cA.OptionsOperation=void 0;var Yb=E(),Qb=o();class dA extends Qb.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,[X]=await $.s.db.listCollections({name:$.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:Z}).toArray();if(X==null||X.options==null)throw new Yb.MongoAPIError(`collection ${$.namespace} not found`);return X.options}}cA.OptionsOperation=dA});var AY=V((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.RenameOperation=void 0;var Kb=P4(),Gb=y(),Fb=T1(),aA=o();class jY extends Fb.CommandOperation{constructor(J,Z,$){super(J,$);this.collection=J,this.newName=Z,this.options=$,this.ns=new Gb.MongoDBNamespace("admin","$cmd")}async execute(J,Z){const $=this.collection.namespace,X=this.collection.s.namespace.withCollection(this.newName).toString(),Y=typeof this.options.dropTarget==="boolean"?this.options.dropTarget:!1,Q={renameCollection:$,to:X,dropTarget:Y};return await super.executeCommand(J,Z,Q),new Kb.Collection(this.collection.s.db,this.newName,this.collection.s.options)}}iA.RenameOperation=jY;aA.defineAspects(jY,[aA.Aspect.WRITE_OPERATION])});var oA=V((tA)=>{Object.defineProperty(tA,"__esModule",{value:!0});tA.CreateSearchIndexesOperation=void 0;var qb=o();class nA extends qb.AbstractOperation{constructor(J,Z){super();this.collection=J,this.descriptions=Z}async execute(J,Z){const $=this.collection.fullNamespace,X={createSearchIndexes:$.collection,indexes:this.descriptions};return((await J.commandAsync($,X,{session:Z}))?.indexesCreated??[]).map(({name:K})=>K)}}tA.CreateSearchIndexesOperation=nA});var XL=V((ZL)=>{Object.defineProperty(ZL,"__esModule",{value:!0});ZL.DropSearchIndexOperation=void 0;var eA=E(),Wb=o();class JL extends Wb.AbstractOperation{constructor(J,Z){super();this.collection=J,this.name=Z}async execute(J,Z){const $=this.collection.fullNamespace,X={dropSearchIndex:$.collection};if(typeof this.name==="string")X.name=this.name;try{await J.commandAsync($,X,{session:Z})}catch(Y){if(!(Y instanceof eA.MongoServerError&&Y.code===eA.MONGODB_ERROR_CODES.NamespaceNotFound))throw Y}}}ZL.DropSearchIndexOperation=JL});var GL=V((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.UpdateSearchIndexOperation=void 0;var Hb=o();class YL extends Hb.AbstractOperation{constructor(J,Z,$){super();this.collection=J,this.name=Z,this.definition=$}async execute(J,Z){const $=this.collection.fullNamespace,X={updateSearchIndex:$.collection,name:this.name,definition:this.definition};await J.commandAsync($,X,{session:Z});return}}QL.UpdateSearchIndexOperation=YL});var P4=V((VL)=>{Object.defineProperty(VL,"__esModule",{value:!0});VL.Collection=void 0;var Vb=H1(),zb=N3(),Ub=B3(),Mb=U7(),jb=p5(),Ab=ZY(),Lb=WY(),wb=MA(),FL=E(),Rb=H3(),Db=t3(),Pb=wA(),qL=F3(),Tb=TA(),Ib=zY(),Nb=SA(),$1=L0(),LY=MY(),T4=a5(),WL=M3(),Bb=uA(),Eb=lA(),Cb=AY(),hb=oA(),Sb=XL(),Ob=GL(),wY=R3(),kb=c0(),RY=k1(),n=y(),yb=A0();class HL{constructor(J,Z,$){this.s={db:J,options:$,namespace:new n.MongoDBCollectionNamespace(J.databaseName,Z),pkFactory:J.options?.pkFactory??n.DEFAULT_PK_FACTORY,readPreference:RY.ReadPreference.fromOptions($),bsonOptions:Vb.resolveBSONOptions($,J),readConcern:kb.ReadConcern.fromOptions($),writeConcern:yb.WriteConcern.fromOptions($)},this.client=J.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(J){this.s.collectionHint=n.normalizeHintField(J)}async insertOne(J,Z){return $1.executeOperation(this.client,new WL.InsertOneOperation(this,J,n.resolveOptions(this,Z)))}async insertMany(J,Z){return $1.executeOperation(this.client,new WL.InsertManyOperation(this,J,n.resolveOptions(this,Z??{ordered:!0})))}async bulkWrite(J,Z){if(!Array.isArray(J))throw new FL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return $1.executeOperation(this.client,new Rb.BulkWriteOperation(this,J,n.resolveOptions(this,Z??{ordered:!0})))}async updateOne(J,Z,$){return $1.executeOperation(this.client,new wY.UpdateOneOperation(this,J,Z,n.resolveOptions(this,$)))}async replaceOne(J,Z,$){return $1.executeOperation(this.client,new wY.ReplaceOneOperation(this,J,Z,n.resolveOptions(this,$)))}async updateMany(J,Z,$){return $1.executeOperation(this.client,new wY.UpdateManyOperation(this,J,Z,n.resolveOptions(this,$)))}async deleteOne(J={},Z={}){return $1.executeOperation(this.client,new qL.DeleteOneOperation(this,J,n.resolveOptions(this,Z)))}async deleteMany(J={},Z={}){return $1.executeOperation(this.client,new qL.DeleteManyOperation(this,J,n.resolveOptions(this,Z)))}async rename(J,Z){return $1.executeOperation(this.client,new Cb.RenameOperation(this,J,{...Z,readPreference:RY.ReadPreference.PRIMARY}))}async drop(J){return $1.executeOperation(this.client,new Ib.DropCollectionOperation(this.s.db,this.collectionName,J))}async findOne(J={},Z={}){const $=this.find(J,Z).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(J={},Z={}){return new Ab.FindCursor(this.client,this.s.namespace,J,n.resolveOptions(this,Z))}async options(J){return $1.executeOperation(this.client,new Eb.OptionsOperation(this,n.resolveOptions(this,J)))}async isCapped(J){return $1.executeOperation(this.client,new Bb.IsCappedOperation(this,n.resolveOptions(this,J)))}async createIndex(J,Z){return $1.executeOperation(this.client,new T4.CreateIndexOperation(this,this.collectionName,J,n.resolveOptions(this,Z)))}async createIndexes(J,Z){return $1.executeOperation(this.client,new T4.CreateIndexesOperation(this,this.collectionName,J,n.resolveOptions(this,{...Z,maxTimeMS:void 0})))}async dropIndex(J,Z){return $1.executeOperation(this.client,new T4.DropIndexOperation(this,J,{...n.resolveOptions(this,Z),readPreference:RY.ReadPreference.primary}))}async dropIndexes(J){try{return await $1.executeOperation(this.client,new T4.DropIndexOperation(this,"*",n.resolveOptions(this,J))),!0}catch{return!1}}listIndexes(J){return new Lb.ListIndexesCursor(this,n.resolveOptions(this,J))}async indexExists(J,Z){return $1.executeOperation(this.client,new T4.IndexExistsOperation(this,J,n.resolveOptions(this,Z)))}async indexInformation(J){return $1.executeOperation(this.client,new T4.IndexInformationOperation(this.s.db,this.collectionName,n.resolveOptions(this,J)))}async estimatedDocumentCount(J){return $1.executeOperation(this.client,new Nb.EstimatedDocumentCountOperation(this,n.resolveOptions(this,J)))}async countDocuments(J={},Z={}){return $1.executeOperation(this.client,new Pb.CountDocumentsOperation(this,J,n.resolveOptions(this,Z)))}async distinct(J,Z={},$={}){return $1.executeOperation(this.client,new Tb.DistinctOperation(this,J,Z,n.resolveOptions(this,$)))}async indexes(J){return $1.executeOperation(this.client,new T4.IndexesOperation(this,n.resolveOptions(this,J)))}async findOneAndDelete(J,Z){return $1.executeOperation(this.client,new LY.FindOneAndDeleteOperation(this,J,n.resolveOptions(this,Z)))}async findOneAndReplace(J,Z,$){return $1.executeOperation(this.client,new LY.FindOneAndReplaceOperation(this,J,Z,n.resolveOptions(this,$)))}async findOneAndUpdate(J,Z,$){return $1.executeOperation(this.client,new LY.FindOneAndUpdateOperation(this,J,Z,n.resolveOptions(this,$)))}aggregate(J=[],Z){if(!Array.isArray(J))throw new FL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new jb.AggregationCursor(this.client,this.s.namespace,J,n.resolveOptions(this,Z))}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Mb.ChangeStream(this,J,n.resolveOptions(this,Z))}initializeUnorderedBulkOp(J){return new Ub.UnorderedBulkOperation(this,n.resolveOptions(this,J))}initializeOrderedBulkOp(J){return new zb.OrderedBulkOperation(this,n.resolveOptions(this,J))}async count(J={},Z={}){return $1.executeOperation(this.client,new Db.CountOperation(this.fullNamespace,J,n.resolveOptions(this,Z)))}listSearchIndexes(J,Z){Z=typeof J==="object"?J:Z==null?{}:Z;const $=J==null?null:typeof J==="object"?null:J;return new wb.ListSearchIndexesCursor(this,$,Z)}async createSearchIndex(J){const[Z]=await this.createSearchIndexes([J]);return Z}async createSearchIndexes(J){return $1.executeOperation(this.client,new hb.CreateSearchIndexesOperation(this,J))}async dropSearchIndex(J){return $1.executeOperation(this.client,new Sb.DropSearchIndexOperation(this,J))}async updateSearchIndex(J,Z){return $1.executeOperation(this.client,new Ob.UpdateSearchIndexOperation(this,J,Z))}}VL.Collection=HL});var IY=V((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.ChangeStreamCursor=void 0;var DY=U7(),UL=v1(),_b=CJ(),fb=L0(),PY=y(),vb=X8();class TY extends vb.AbstractCursor{constructor(J,Z,$=[],X={}){super(J,Z,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(J){this._resumeToken=J,this.emit(DY.ChangeStream.RESUME_TOKEN_CHANGED,J)}get resumeToken(){return this._resumeToken}get resumeOptions(){const J={...this.options};for(let Z of["resumeAfter","startAfter","startAtOperationTime"])delete J[Z];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)J.startAfter=this.resumeToken;else J.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&PY.maxWireVersion(this.server)>=7)J.startAtOperationTime=this.startAtOperationTime;return J}cacheResumeToken(J){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=J;this.hasReceived=!0}_processBatch(J){const Z=J.cursor;if(Z.postBatchResumeToken){if(this.postBatchResumeToken=J.cursor.postBatchResumeToken,("firstBatch"in J.cursor?J.cursor.firstBatch:J.cursor.nextBatch).length===0)this.resumeToken=Z.postBatchResumeToken}}clone(){return new TY(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}async _initialize(J){const Z=new _b.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:J}),$=await fb.executeOperation(J.client,Z),X=Z.server;if(this.maxWireVersion=PY.maxWireVersion(X),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=$.operationTime;return this._processBatch($),this.emit(UL.INIT,$),this.emit(UL.RESPONSE),{server:X,session:J,response:$}}async getMore(J){const Z=await super.getMore(J);return this.maxWireVersion=PY.maxWireVersion(this.server),this._processBatch(Z),this.emit(DY.ChangeStream.MORE,Z),this.emit(DY.ChangeStream.RESPONSE),Z}}ML.ChangeStreamCursor=TY});var wL=V((AL)=>{Object.defineProperty(AL,"__esModule",{value:!0});AL.ListCollectionsOperation=void 0;var xb=y(),bb=T1(),oJ=o();class NY extends bb.CommandOperation{constructor(J,Z,$){super(J,$);if(this.options={...$},delete this.options.writeConcern,this.db=J,this.filter=Z,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}async execute(J,Z){return super.executeCommand(J,Z,this.generateCommand(xb.maxWireVersion(J)))}generateCommand(J){const Z={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(J>=9&&this.options.comment!==void 0)Z.comment=this.options.comment;return Z}}AL.ListCollectionsOperation=NY;oJ.defineAspects(NY,[oJ.Aspect.READ_OPERATION,oJ.Aspect.RETRYABLE,oJ.Aspect.CURSOR_CREATING])});var EY=V((RL)=>{Object.defineProperty(RL,"__esModule",{value:!0});RL.ListCollectionsCursor=void 0;var gb=L0(),mb=wL(),ub=X8();class BY extends ub.AbstractCursor{constructor(J,Z,$){super(J.client,J.s.namespace,$);this.parent=J,this.filter=Z,this.options=$}clone(){return new BY(this.parent,this.filter,{...this.options,...this.cursorOptions})}async _initialize(J){const Z=new mb.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:J}),$=await gb.executeOperation(this.parent.client,Z);return{server:Z.server,session:J,response:$}}}RL.ListCollectionsCursor=BY});var BL=V((IL)=>{Object.defineProperty(IL,"__esModule",{value:!0});IL.RunCommandCursor=void 0;var M7=E(),PL=L0(),db=O3(),cb=X7(),pb=y(),lb=X8();class TL extends lb.AbstractCursor{setComment(J){return this.getMoreOptions.comment=J,this}setMaxTimeMS(J){return this.getMoreOptions.maxAwaitTimeMS=J,this}setBatchSize(J){return this.getMoreOptions.batchSize=J,this}clone(){throw new M7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(J){throw new M7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(J,Z){throw new M7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(J){throw new M7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(J){throw new M7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(J,Z,$={}){super(J.client,pb.ns(J.namespace),$);this.getMoreOptions={},this.db=J,this.command=Object.freeze({...Z})}async _initialize(J){const Z=new cb.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:J,readPreference:this.cursorOptions.readPreference}),$=await PL.executeOperation(this.client,Z);if($.cursor==null)throw new M7.MongoUnexpectedServerResponseError("Expected server to respond with cursor");return{server:Z.server,session:J,response:$}}async getMore(J){const Z=new db.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});return PL.executeOperation(this.client,Z)}}IL.RunCommandCursor=TL});var SL=V((CL)=>{Object.defineProperty(CL,"__esModule",{value:!0});CL.CollectionsOperation=void 0;var ab=P4(),ib=o();class EL extends ib.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.db=J}async execute(J,Z){const $=await this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:Z}).toArray(),X=[];for(let{name:Y}of $)if(!Y.includes("$"))X.push(new ab.Collection(this.db,Y,this.db.s.options));return X}}CL.CollectionsOperation=EL});var fL=V((yL)=>{Object.defineProperty(yL,"__esModule",{value:!0});yL.CreateCollectionOperation=void 0;var OL=h8(),sb=P4(),nb=E(),tb=T1(),rb=a5(),kL=o(),ob=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),eb="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class eJ extends tb.CommandOperation{constructor(J,Z,$={}){super(J,$);this.options=$,this.db=J,this.name=Z}async execute(J,Z){const $=this.db,X=this.name,Y=this.options,Q=Y.encryptedFields??$.client.options.autoEncryption?.encryptedFieldsMap?.[`${$.databaseName}.${X}`];if(Q){if(!J.loadBalanced&&J.description.maxWireVersion<OL.MIN_SUPPORTED_QE_WIRE_VERSION)throw new nb.MongoCompatibilityError(`${eb} The minimum server version required is ${OL.MIN_SUPPORTED_QE_SERVER_VERSION}`);const G=Q.escCollection??`enxcol_.${X}.esc`,F=Q.ecocCollection??`enxcol_.${X}.ecoc`;for(let q of[G,F])await new eJ($,q,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(J,Z);if(!Y.encryptedFields)this.options={...this.options,encryptedFields:Q}}const K=await this.executeWithoutEncryptedFieldsCheck(J,Z);if(Q)await new rb.CreateIndexOperation($,X,{__safeContent__:1},{}).execute(J,Z);return K}async executeWithoutEncryptedFieldsCheck(J,Z){const $=this.db,X=this.name,Y=this.options,Q={create:X};for(let K in Y)if(Y[K]!=null&&typeof Y[K]!=="function"&&!ob.has(K))Q[K]=Y[K];return await super.executeCommand(J,Z,Q),new sb.Collection($,X,Y)}}yL.CreateCollectionOperation=eJ;kL.defineAspects(eJ,[kL.Aspect.WRITE_OPERATION])});var mL=V((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.ProfilingLevelOperation=void 0;var vL=E(),Jg=T1();class xL extends Jg.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){const $=await super.executeCommand(J,Z,{profile:-1});if($.ok===1){const X=$.was;if(X===0)return"off";if(X===1)return"slow_only";if(X===2)return"all";throw new vL.MongoUnexpectedServerResponseError(`Illegal profiling level value ${X}`)}else throw new vL.MongoUnexpectedServerResponseError("Error with profile command")}}bL.ProfilingLevelOperation=xL});var CY=V((dL)=>{Object.defineProperty(dL,"__esModule",{value:!0});dL.SetProfilingLevelOperation=dL.ProfilingLevel=void 0;var Zg=E(),$g=y(),Xg=T1(),Yg=new Set(["off","slow_only","all"]);dL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class uL extends Xg.CommandOperation{constructor(J,Z,$){super(J,$);switch(this.options=$,Z){case dL.ProfilingLevel.off:this.profile=0;break;case dL.ProfilingLevel.slowOnly:this.profile=1;break;case dL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=Z}async execute(J,Z){const $=this.level;if(!Yg.has($))throw new Zg.MongoInvalidArgumentError(`Profiling level must be one of "${$g.enumToString(dL.ProfilingLevel)}"`);return await super.executeCommand(J,Z,{profile:this.profile}),$}}dL.SetProfilingLevelOperation=uL});var iL=V((lL)=>{Object.defineProperty(lL,"__esModule",{value:!0});lL.DbStatsOperation=void 0;var Qg=T1(),pL=o();class hY extends Qg.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){const $={dbStats:!0};if(this.options.scale!=null)$.scale=this.options.scale;return super.executeCommand(J,Z,$)}}lL.DbStatsOperation=hY;pL.defineAspects(hY,[pL.Aspect.READ_OPERATION])});var JZ=V((eL)=>{Object.defineProperty(eL,"__esModule",{value:!0});eL.Db=void 0;var Kg=Y3(),sL=H1(),Gg=U7(),Fg=P4(),j7=v1(),qg=p5(),Wg=EY(),Hg=BL(),nL=E(),Vg=SL(),zg=fL(),tL=zY(),i0=L0(),rL=a5(),Ug=mL(),Mg=$3(),jg=AY(),Ag=X7(),Lg=CY(),wg=iL(),Rg=c0(),oL=k1(),u1=y(),Dg=A0(),Pg=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class v8{constructor(J,Z,$){if($=$??{},$=u1.filterOptions($,Pg),typeof Z==="string"&&Z.includes("."))throw new nL.MongoInvalidArgumentError("Database names cannot contain the character '.'");this.s={options:$,readPreference:oL.ReadPreference.fromOptions($),bsonOptions:sL.resolveBSONOptions($,J),pkFactory:$?.pkFactory??u1.DEFAULT_PK_FACTORY,readConcern:Rg.ReadConcern.fromOptions($),writeConcern:Dg.WriteConcern.fromOptions($),namespace:new u1.MongoDBNamespace(Z)},this.client=J}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(J,Z){return i0.executeOperation(this.client,new zg.CreateCollectionOperation(this,J,u1.resolveOptions(this,Z)))}async command(J,Z){return i0.executeOperation(this.client,new Ag.RunCommandOperation(this,J,{...sL.resolveBSONOptions(Z),session:Z?.session,readPreference:Z?.readPreference}))}aggregate(J=[],Z){return new qg.AggregationCursor(this.client,this.s.namespace,J,u1.resolveOptions(this,Z))}admin(){return new Kg.Admin(this)}collection(J,Z={}){if(typeof Z==="function")throw new nL.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Fg.Collection(this,J,u1.resolveOptions(this,Z))}async stats(J){return i0.executeOperation(this.client,new wg.DbStatsOperation(this,u1.resolveOptions(this,J)))}listCollections(J={},Z={}){return new Wg.ListCollectionsCursor(this,J,u1.resolveOptions(this,Z))}async renameCollection(J,Z,$){return i0.executeOperation(this.client,new jg.RenameOperation(this.collection(J),Z,{...$,new_collection:!0,readPreference:oL.ReadPreference.primary}))}async dropCollection(J,Z){return i0.executeOperation(this.client,new tL.DropCollectionOperation(this,J,u1.resolveOptions(this,Z)))}async dropDatabase(J){return i0.executeOperation(this.client,new tL.DropDatabaseOperation(this,u1.resolveOptions(this,J)))}async collections(J){return i0.executeOperation(this.client,new Vg.CollectionsOperation(this,u1.resolveOptions(this,J)))}async createIndex(J,Z,$){return i0.executeOperation(this.client,new rL.CreateIndexOperation(this,J,Z,u1.resolveOptions(this,$)))}async removeUser(J,Z){return i0.executeOperation(this.client,new Mg.RemoveUserOperation(this,J,u1.resolveOptions(this,Z)))}async setProfilingLevel(J,Z){return i0.executeOperation(this.client,new Lg.SetProfilingLevelOperation(this,J,u1.resolveOptions(this,Z)))}async profilingLevel(J){return i0.executeOperation(this.client,new Ug.ProfilingLevelOperation(this,u1.resolveOptions(this,J)))}async indexInformation(J,Z){return i0.executeOperation(this.client,new rL.IndexInformationOperation(this,J,u1.resolveOptions(this,Z)))}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Gg.ChangeStream(this,J,u1.resolveOptions(this,Z))}runCursorCommand(J,Z){return new Hg.RunCommandCursor(this,J,Z)}}v8.SYSTEM_NAMESPACE_COLLECTION=j7.SYSTEM_NAMESPACE_COLLECTION;v8.SYSTEM_INDEX_COLLECTION=j7.SYSTEM_INDEX_COLLECTION;v8.SYSTEM_PROFILE_COLLECTION=j7.SYSTEM_PROFILE_COLLECTION;v8.SYSTEM_USER_COLLECTION=j7.SYSTEM_USER_COLLECTION;v8.SYSTEM_COMMAND_COLLECTION=j7.SYSTEM_COMMAND_COLLECTION;v8.SYSTEM_JS_COLLECTION=j7.SYSTEM_JS_COLLECTION;eL.Db=v8});var H6=V((Zw)=>{var n5=function(J){return new Proxy(J?{kModuleError:J}:{},{get:($,X)=>{if(X==="kModuleError")return J;throw J},set:()=>{throw J}})},Tg=function(){try{return Zw.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),Zw.Kerberos}catch{return Zw.Kerberos}},Ig=function(){try{return Zw.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),Zw.ZStandard}catch{return Zw.ZStandard}},Ng=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return n5(new x8.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},Bg=function(){try{return (()=>{ throw new Error(`Cannot require module "gcp-metadata"`);})()}catch{return n5(new x8.MongoMissingDependencyError("Optional module `gcp-metadata` not found. Please install it to enable getting gcp credentials via the official sdk."))}},Eg=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(J){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:J})}}},Cg=function(){try{return (()=>{ throw new Error(`Cannot require module "socks"`);})()}catch(J){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `socks` not found. Please install it to connections over a SOCKS5 proxy",{cause:J})}}},hg=function(){let J=null;try{J=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch(Z){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `mongodb-client-encryption` not found. Please install it to use auto encryption or ClientEncryption.",{cause:Z})}}return J};Object.defineProperty(Zw,"__esModule",{value:!0});Zw.getMongoDBClientEncryption=Zw.aws4=Zw.getSocks=Zw.getSnappy=Zw.getGcpMetadata=Zw.getAwsCredentialProvider=Zw.getZstdLibrary=Zw.ZStandard=Zw.getKerberos=Zw.Kerberos=void 0;var x8=E();Zw.Kerberos=n5(new x8.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));Zw.getKerberos=Tg;Zw.ZStandard=n5(new x8.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));Zw.getZstdLibrary=Ig;Zw.getAwsCredentialProvider=Ng;Zw.getGcpMetadata=Bg;Zw.getSnappy=Eg;Zw.getSocks=Cg;Zw.aws4=n5(new x8.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{Zw.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}Zw.getMongoDBClientEncryption=hg});var Y8=V((Kw)=>{Object.defineProperty(Kw,"__esModule",{value:!0});Kw.AuthProvider=Kw.AuthContext=void 0;var vg=E();class Yw{constructor(J,Z,$){this.reauthenticating=!1,this.connection=J,this.credentials=Z,this.options=$}}Kw.AuthContext=Yw;class Qw{async prepare(J,Z){return J}async reauth(J){if(J.reauthenticating)throw new vg.MongoRuntimeError("Reauthentication already in progress.");try{J.reauthenticating=!0,await this.auth(J)}finally{J.reauthenticating=!1}}}Kw.AuthProvider=Qw});var YZ=V((Vw)=>{async function SY(J,Z){return J.commandAsync(gg.ns("$external.$cmd"),Z,void 0)}async function ug(J){const{hostAddress:Z}=J.options,{credentials:$}=J;if(!Z||typeof Z.host!=="string"||!$)throw new Fw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(lg(),"kModuleError"in t5)throw t5.kModuleError;const{initializeClient:X}=t5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",F=await Hw(Z.host,K),q={};if(Q!=null)Object.assign(q,{user:Y,password:Q});const W=K.SERVICE_HOST??F;let H=`${G}${process.platform==="win32"?"/":"@"}${W}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,q)}var dg=function(J){return{saslStart:1,mechanism:"GSSAPI",payload:J,autoAuthorize:1}},cg=function(J,Z){return{saslContinue:1,conversationId:Z,payload:J}};async function Ww(J,Z,$){try{return await J.step($)||""}catch(X){if(Z===0)throw X;return Ww(J,Z-1,$)}}async function pg(J,Z,$){const X=await J.unwrap($);return J.wrap(X||"",{user:Z})}async function Hw(J,Z){const $=Z.CANONICALIZE_HOST_NAME;if(!$||$===Vw.GSSAPICanonicalizationValue.none)return J;if($===Vw.GSSAPICanonicalizationValue.on||$===Vw.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await OY.promises.lookup(J);try{const Y=await OY.promises.resolvePtr(X);return Y.length>0?Y[0]:J}catch(Y){return kY(J)}}else return kY(J)}async function kY(J){try{const Z=await OY.promises.resolveCname(J);return Z.length>0?Z[0]:J}catch{return J}}var lg=function(){if(!t5)t5=bg.getKerberos()};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.resolveCname=Vw.performGSSAPICanonicalizeHostName=Vw.GSSAPI=Vw.GSSAPICanonicalizationValue=void 0;var OY=import.meta.require("dns"),bg=H6(),Fw=E(),gg=y(),mg=Y8();Vw.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var t5;class qw extends mg.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if($==null)throw new Fw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await ug(J),Q=await Y.step(""),K=await SY(Z,dg(Q)),G=await Ww(Y,10,K.payload),F=await SY(Z,cg(G,K.conversationId)),q=await pg(Y,X,F.payload);await SY(Z,{saslContinue:1,conversationId:F.conversationId,payload:q})}}Vw.GSSAPI=qw;Vw.performGSSAPICanonicalizeHostName=Hw;Vw.resolveCname=kY});var O6=V((Uw)=>{Object.defineProperty(Uw,"__esModule",{value:!0});Uw.AUTH_MECHS_AUTH_SRC_EXTERNAL=Uw.AuthMechanism=void 0;Uw.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"});Uw.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([Uw.AuthMechanism.MONGODB_GSSAPI,Uw.AuthMechanism.MONGODB_AWS,Uw.AuthMechanism.MONGODB_OIDC,Uw.AuthMechanism.MONGODB_X509])});var KZ=V((Lw)=>{var ng=function(J){if(J){if(Array.isArray(J.saslSupportedMechs))return J.saslSupportedMechs.includes(d1.AuthMechanism.MONGODB_SCRAM_SHA256)?d1.AuthMechanism.MONGODB_SCRAM_SHA256:d1.AuthMechanism.MONGODB_SCRAM_SHA1;if(J.maxWireVersion>=3)return d1.AuthMechanism.MONGODB_SCRAM_SHA1}return d1.AuthMechanism.MONGODB_CR};Object.defineProperty(Lw,"__esModule",{value:!0});Lw.MongoCredentials=Lw.DEFAULT_ALLOWED_HOSTS=void 0;var s0=E(),sg=YZ(),d1=O6(),jw=["aws","azure"],Aw="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";Lw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var tg="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class QZ{constructor(J){if(this.username=J.username??"",this.password=J.password,this.source=J.source,!this.source&&J.db)this.source=J.db;if(this.mechanism=J.mechanism||d1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=J.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===d1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:Lw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(J){return this.mechanism===J.mechanism&&this.username===J.username&&this.password===J.password&&this.source===J.source}resolveAuthMechanism(J){if(this.mechanism.match(/DEFAULT/i))return new QZ({username:this.username,password:this.password,source:this.source,mechanism:ng(J),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===d1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===d1.AuthMechanism.MONGODB_CR||this.mechanism===d1.AuthMechanism.MONGODB_PLAIN||this.mechanism===d1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===d1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new s0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===d1.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(tg);if(this.mechanismProperties.PROVIDER_NAME&&!jw.includes(this.mechanismProperties.PROVIDER_NAME))throw new s0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${jw.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 Z=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(Z))throw new s0.MongoInvalidArgumentError(Aw);for(let $ of Z)if(typeof $!=="string")throw new s0.MongoInvalidArgumentError(Aw)}}if(d1.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===d1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new s0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===d1.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 J=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(sg.GSSAPICanonicalizationValue).includes(J))throw new s0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${J}`)}static merge(J,Z){return new QZ({username:Z.username??J?.username??"",password:Z.password??J?.password??"",mechanism:Z.mechanism??J?.mechanism??d1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:Z.mechanismProperties??J?.mechanismProperties??{},source:Z.source??Z.db??J?.source??"admin"})}}Lw.MongoCredentials=QZ});var FZ=V((Iw)=>{var K1=function(J,Z,$){if($.globals)J=$.globals[J.name];return new J(`${$.context?$.context:"Value"} ${Z}.`)},w7=function(J,Z){if(typeof J==="bigint")throw K1(TypeError,"is a BigInt which cannot be converted to a number",Z);if(!Z.globals)return Number(J);return Z.globals.Number(J)},Pw=function(J){if(J>0&&J%1===0.5&&(J&1)===0||J<0&&J%1===-0.5&&(J&1)===1)return o5(Math.floor(J));return o5(Math.round(J))},GZ=function(J){return o5(Math.trunc(J))},Dw=function(J){return J<0?-1:1},rg=function(J,Z){const $=J%Z;if(Dw(Z)!==Dw($))return $+Z;return $},o5=function(J){return J===0?0:J},R7=function(J,{unsigned:Z}){let $,X;if(Z)$=0,X=2**J-1;else $=-(2**(J-1)),X=2**(J-1)-1;const Y=2**J,Q=2**(J-1);return(K,G={})=>{let F=w7(K,G);if(F=o5(F),G.enforceRange){if(!Number.isFinite(F))throw K1(TypeError,"is not a finite number",G);if(F=GZ(F),F<$||F>X)throw K1(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=Pw(F),F;if(!Number.isFinite(F)||F===0)return 0;if(F=GZ(F),F>=$&&F<=X)return F;if(F=rg(F,Y),!Z&&F>=Q)return F-Y;return F}},Tw=function(J,{unsigned:Z}){const $=Number.MAX_SAFE_INTEGER,X=Z?0:Number.MIN_SAFE_INTEGER,Y=Z?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=w7(Q,K);if(G=o5(G),K.enforceRange){if(!Number.isFinite(G))throw K1(TypeError,"is not a finite number",K);if(G=GZ(G),G<X||G>$)throw K1(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=Pw(G),G;if(!Number.isFinite(G)||G===0)return 0;let F=BigInt(GZ(G));return F=Y(J,F),Number(F)}},yY=function(J){try{return og.call(J),!0}catch{return!1}},A7=function(J){try{return eg.call(J),!0}catch{return!1}},L7=function(J){try{return new Uint8Array(J),!1}catch{return!0}};Iw.any=(J)=>{return J};Iw.undefined=()=>{return};Iw.boolean=(J)=>{return Boolean(J)};Iw.byte=R7(8,{unsigned:!1});Iw.octet=R7(8,{unsigned:!0});Iw.short=R7(16,{unsigned:!1});Iw["unsigned short"]=R7(16,{unsigned:!0});Iw.long=R7(32,{unsigned:!1});Iw["unsigned long"]=R7(32,{unsigned:!0});Iw["long long"]=Tw(64,{unsigned:!1});Iw["unsigned long long"]=Tw(64,{unsigned:!0});Iw.double=(J,Z={})=>{const $=w7(J,Z);if(!Number.isFinite($))throw K1(TypeError,"is not a finite floating-point value",Z);return $};Iw["unrestricted double"]=(J,Z={})=>{return w7(J,Z)};Iw.float=(J,Z={})=>{const $=w7(J,Z);if(!Number.isFinite($))throw K1(TypeError,"is not a finite floating-point value",Z);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw K1(TypeError,"is outside the range of a single-precision floating-point value",Z);return X};Iw["unrestricted float"]=(J,Z={})=>{const $=w7(J,Z);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};Iw.DOMString=(J,Z={})=>{if(Z.treatNullAsEmptyString&&J===null)return"";if(typeof J==="symbol")throw K1(TypeError,"is a symbol, which cannot be converted to a string",Z);return(Z.globals?Z.globals.String:String)(J)};Iw.ByteString=(J,Z={})=>{const $=Iw.DOMString(J,Z);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw K1(TypeError,"is not a valid ByteString",Z);return $};Iw.USVString=(J,Z={})=>{const $=Iw.DOMString(J,Z),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,q=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*F+q)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};Iw.object=(J,Z={})=>{if(J===null||typeof J!=="object"&&typeof J!=="function")throw K1(TypeError,"is not an object",Z);return J};var og=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,eg=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;Iw.ArrayBuffer=(J,Z={})=>{if(!yY(J)){if(Z.allowShared&&!A7(J))throw K1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",Z);throw K1(TypeError,"is not an ArrayBuffer",Z)}if(L7(J))throw K1(TypeError,"is a detached ArrayBuffer",Z);return J};var Jm=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;Iw.DataView=(J,Z={})=>{try{Jm.call(J)}catch($){throw K1(TypeError,"is not a DataView",Z)}if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is backed by a detached ArrayBuffer",Z);return J};var Zm=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((J)=>{const{name:Z}=J,$=/^[AEIOU]/u.test(Z)?"an":"a";Iw[Z]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||Zm.call(X)!==Z)throw K1(TypeError,`is not ${$} ${Z} object`,Y);if(!Y.allowShared&&A7(X.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(L7(X.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});Iw.ArrayBufferView=(J,Z={})=>{if(!ArrayBuffer.isView(J))throw K1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",Z);if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Z);return J};Iw.BufferSource=(J,Z={})=>{if(ArrayBuffer.isView(J)){if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Z);return J}if(!Z.allowShared&&!yY(J))throw K1(TypeError,"is not an ArrayBuffer or a view on one",Z);if(Z.allowShared&&!A7(J)&&!yY(J))throw K1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",Z);if(L7(J))throw K1(TypeError,"is a detached ArrayBuffer",Z);return J};Iw.DOMTimeStamp=Iw["unsigned long long"]});var WZ=V((kw,yw)=>{var Im=function(J){return typeof J==="object"&&J!==null||typeof J==="function"},Nm=function(J,Z){for(let $ of Reflect.ownKeys(Z)){const X=Reflect.getOwnPropertyDescriptor(Z,$);if(X&&!Reflect.defineProperty(J,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},Bm=function(J,Z){const $=hw(J);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(Z))},hw=function(J){if(Bw(J,qZ))return J[qZ];const Z=Object.create(null);Z["%Object.prototype%"]=J.Object.prototype,Z["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new J.Array()[Symbol.iterator]()));try{Z["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(J.eval("(async function* () {})").prototype))}catch{Z["%AsyncIteratorPrototype%"]=Em}return J[qZ]=Z,Z},Cm=function(J,Z,$){if(!J[D7])J[D7]=Object.create(null);if(Z in J[D7])return J[D7][Z];return J[D7][Z]=$(),J[D7][Z]},Sw=function(J){return J?J[Ew]:null},Ow=function(J){return J?J[Cw]:null},hm=function(J){const Z=Sw(J);return Z?Z:J},Sm=function(J){const Z=Ow(J);return Z?Z:J},km=function(J){if(typeof J!=="string")return!1;const Z=J>>>0;if(Z===4294967295)return!1;const $=`${Z}`;if(J!==$)return!1;return!0},_m=function(J){try{return ym.call(J),!0}catch(Z){return!1}},fm=function([J,Z],$){let X;switch($){case"key":X=J;break;case"value":X=Z;break;case"key+value":X=[J,Z];break}return{value:X,done:!1}},Bw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),Ew=Symbol("wrapper"),Cw=Symbol("impl"),D7=Symbol("SameObject caches"),qZ=Symbol.for("[webidl2js] constructor registry"),Em=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Om=Symbol("internal"),ym=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,vm=Symbol("supports property index"),xm=Symbol("supported property indices"),bm=Symbol("supports property name"),gm=Symbol("supported property names"),mm=Symbol("indexed property get"),um=Symbol("indexed property set new"),dm=Symbol("indexed property set existing"),cm=Symbol("named property get"),pm=Symbol("named property set new"),lm=Symbol("named property set existing"),am=Symbol("named property delete"),im=Symbol("async iterator get the next iteration result"),sm=Symbol("async iterator return steps"),nm=Symbol("async iterator initialization steps"),tm=Symbol("async iterator end of iteration");yw.exports=kw={isObject:Im,hasOwn:Bw,define:Nm,newObjectInRealm:Bm,wrapperSymbol:Ew,implSymbol:Cw,getSameObject:Cm,ctorRegistrySymbol:qZ,initCtorRegistry:hw,wrapperForImpl:Sw,implForWrapper:Ow,tryWrapperForImpl:hm,tryImplForWrapper:Sm,iterInternalSymbol:Om,isArrayBuffer:_m,isArrayIndexPropName:km,supportsPropertyIndex:vm,supportedPropertyIndices:xm,supportsPropertyName:bm,supportedPropertyNames:gm,indexedGet:mm,indexedSetNew:um,indexedSetExisting:dm,namedGet:cm,namedSetNew:pm,namedSetExisting:lm,namedDelete:am,asyncIteratorNext:im,asyncIteratorReturn:sm,asyncIteratorInit:nm,asyncIteratorEOI:tm,iteratorResult:fm}});var uw=V((y01,mw)=>{var b8=function(J){throw new RangeError(Ju[J])},Zu=function(J,Z){const $=[];let X=J.length;while(X--)$[X]=Z(J[X]);return $},fw=function(J,Z){const $=J.split("@");let X="";if($.length>1)X=$[0]+"@",J=$[1];J=J.replace(em,".");const Y=J.split("."),Q=Zu(Y,Z).join(".");return X+Q},vw=function(J){const Z=[];let $=0;const X=J.length;while($<X){const Y=J.charCodeAt($++);if(Y>=55296&&Y<=56319&&$<X){const Q=J.charCodeAt($++);if((Q&64512)==56320)Z.push(((Y&1023)<<10)+(Q&1023)+65536);else Z.push(Y),$--}else Z.push(Y)}return Z},rm=/^xn--/,om=/[^\0-\x7F]/,em=/[\x2E\u3002\uFF0E\uFF61]/g,Ju={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k6=Math.floor,fY=String.fromCharCode,$u=(J)=>String.fromCodePoint(...J),Xu=function(J){if(J>=48&&J<58)return 26+(J-48);if(J>=65&&J<91)return J-65;if(J>=97&&J<123)return J-97;return 36},_w=function(J,Z){return J+22+75*(J<26)-((Z!=0)<<5)},xw=function(J,Z,$){let X=0;J=$?k6(J/700):J>>1,J+=k6(J/Z);for(;J>910>>1;X+=36)J=k6(J/35);return k6(X+36*J/(J+38))},bw=function(J){const Z=[],$=J.length;let X=0,Y=128,Q=72,K=J.lastIndexOf("-");if(K<0)K=0;for(let G=0;G<K;++G){if(J.charCodeAt(G)>=128)b8("not-basic");Z.push(J.charCodeAt(G))}for(let G=K>0?K+1:0;G<$;){const F=X;for(let W=1,H=36;;H+=36){if(G>=$)b8("invalid-input");const U=Xu(J.charCodeAt(G++));if(U>=36)b8("invalid-input");if(U>k6((2147483647-X)/W))b8("overflow");X+=U*W;const j=H<=Q?1:H>=Q+26?26:H-Q;if(U<j)break;const z=36-j;if(W>k6(2147483647/z))b8("overflow");W*=z}const q=Z.length+1;if(Q=xw(X-F,q,F==0),k6(X/q)>2147483647-Y)b8("overflow");Y+=k6(X/q),X%=q,Z.splice(X++,0,Y)}return String.fromCodePoint(...Z)},gw=function(J){const Z=[];J=vw(J);const $=J.length;let X=128,Y=0,Q=72;for(let F of J)if(F<128)Z.push(fY(F));const K=Z.length;let G=K;if(K)Z.push("-");while(G<$){let F=2147483647;for(let W of J)if(W>=X&&W<F)F=W;const q=G+1;if(F-X>k6((2147483647-Y)/q))b8("overflow");Y+=(F-X)*q,X=F;for(let W of J){if(W<X&&++Y>2147483647)b8("overflow");if(W===X){let H=Y;for(let U=36;;U+=36){const j=U<=Q?1:U>=Q+26?26:U-Q;if(H<j)break;const z=H-j,A=36-j;Z.push(fY(_w(j+z%A,0))),H=k6(z/A)}Z.push(fY(_w(H,0))),Q=xw(Y,q,G===K),Y=0,++G}}++Y,++X}return Z.join("")},Yu=function(J){return fw(J,function(Z){return rm.test(Z)?bw(Z.slice(4).toLowerCase()):Z})},Qu=function(J){return fw(J,function(Z){return om.test(Z)?"xn--"+gw(Z):Z})},Ku={version:"2.3.1",ucs2:{decode:vw,encode:$u},decode:bw,encode:gw,toASCII:Qu,toUnicode:Yu};mw.exports=Ku});var cw=V((_01,dw)=>{var Gu=/[\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\u0CF3\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-\u0ECE\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{10EFD}-\u{10EFF}\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{11241}\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{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{13440}\u{13447}-\u{13455}\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{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,Fu=/[\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,qu=/[\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,Hu=/[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-\u0CF3\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{1123F}\u{11240}\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{11B00}-\u{11B09}\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{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\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{1343F}\u{13441}-\u{13446}\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{1B132}\u{1B150}-\u{1B152}\u{1B155}\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{1D2C0}-\u{1D2D3}\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{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\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{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\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{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,Vu=/[\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-\u0ECE\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{10EFD}-\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{11241}\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{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\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{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\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{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\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{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\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-\u0ECE\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{10EFD}-\u{10EFF}\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{11241}\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{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\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{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,Mu=/[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,ju=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,Au=/^[\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-\u0CF3\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-\u0ECE\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{10EFD}-\u{10EFF}\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{11241}\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{11B00}-\u{11B09}\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{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F59}\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{13455}\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{1B132}\u{1B150}-\u{1B152}\u{1B155}\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{1D2C0}-\u{1D2D3}\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{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\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{1E4D0}-\u{1E4F9}\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{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\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{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,Lu=/[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-\u0CF3\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{1123F}\u{11240}\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{11B00}-\u{11B09}\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{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\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{1343F}\u{13441}-\u{13446}\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{1B132}\u{1B150}-\u{1B152}\u{1B155}\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{1D2C0}-\u{1D2D3}\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{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\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{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\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{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\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-\u0ECE\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{10EFD}-\u{10EFF}\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{11241}\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{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\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{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;dw.exports={combiningMarks:Gu,combiningClassVirama:Fu,validZWNJ:qu,bidiDomain:Wu,bidiS1LTR:Hu,bidiS1RTL:Vu,bidiS2:zu,bidiS3:Uu,bidiS4EN:Mu,bidiS4AN:ju,bidiS5:Au,bidiS6:Lu}});var pw=V((f01,wu)=>{wu.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,2],[[3316,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,2],[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,69372],3],[[69373,69375],2],[[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,70209],2],[[70210,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,72447],3],[[72448,72457],2],[[72458,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,73471],3],[[73472,73488],2],[73489,3],[[73490,73530],2],[[73531,73533],3],[[73534,73538],2],[[73539,73551],2],[[73552,73561],2],[[73562,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,2],[[78896,78904],3],[[78905,78911],3],[[78912,78933],2],[[78934,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,110897],3],[110898,2],[[110899,110927],3],[[110928,110930],2],[[110931,110932],3],[110933,2],[[110934,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,119487],3],[[119488,119507],2],[[119508,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,122660],3],[[122661,122666],2],[[122667,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,122927],3],[122928,1,"\u0430"],[122929,1,"\u0431"],[122930,1,"\u0432"],[122931,1,"\u0433"],[122932,1,"\u0434"],[122933,1,"\u0435"],[122934,1,"\u0436"],[122935,1,"\u0437"],[122936,1,"\u0438"],[122937,1,"\u043A"],[122938,1,"\u043B"],[122939,1,"\u043C"],[122940,1,"\u043E"],[122941,1,"\u043F"],[122942,1,"\u0440"],[122943,1,"\u0441"],[122944,1,"\u0442"],[122945,1,"\u0443"],[122946,1,"\u0444"],[122947,1,"\u0445"],[122948,1,"\u0446"],[122949,1,"\u0447"],[122950,1,"\u0448"],[122951,1,"\u044B"],[122952,1,"\u044D"],[122953,1,"\u044E"],[122954,1,"\uA689"],[122955,1,"\u04D9"],[122956,1,"\u0456"],[122957,1,"\u0458"],[122958,1,"\u04E9"],[122959,1,"\u04AF"],[122960,1,"\u04CF"],[122961,1,"\u0430"],[122962,1,"\u0431"],[122963,1,"\u0432"],[122964,1,"\u0433"],[122965,1,"\u0434"],[122966,1,"\u0435"],[122967,1,"\u0436"],[122968,1,"\u0437"],[122969,1,"\u0438"],[122970,1,"\u043A"],[122971,1,"\u043B"],[122972,1,"\u043E"],[122973,1,"\u043F"],[122974,1,"\u0441"],[122975,1,"\u0443"],[122976,1,"\u0444"],[122977,1,"\u0445"],[122978,1,"\u0446"],[122979,1,"\u0447"],[122980,1,"\u0448"],[122981,1,"\u044A"],[122982,1,"\u044B"],[122983,1,"\u0491"],[122984,1,"\u0456"],[122985,1,"\u0455"],[122986,1,"\u045F"],[122987,1,"\u04AB"],[122988,1,"\uA651"],[122989,1,"\u04B1"],[[122990,123022],3],[123023,2],[[123024,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,124111],3],[[124112,124153],2],[[124154,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,128731],3],[128732,2],[[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,128886],2],[[128887,128890],3],[[128891,128895],2],[[128896,128980],2],[[128981,128984],2],[128985,2],[[128986,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],2],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129672],2],[[129673,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,3],[129727,2],[[129728,129730],2],[[129731,129733],2],[[129734,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[[129756,129759],3],[[129760,129767],2],[129768,2],[[129769,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,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,2],[[177978,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,201551],3],[[201552,205743],2],[[205744,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 aw=V((Ru,lw)=>{Ru.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var rw=V((v01,tw)=>{var Pu=function(J){return/[^\x00-\x7F]/u.test(J)},sw=function(J,{useSTD3ASCIIRules:Z}){let $=0,X=iw.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=iw[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=J&&G>=J){if(Z&&(Q[1]===G0.disallowed_STD3_valid||Q[1]===G0.disallowed_STD3_mapped))return[G0.disallowed,...Q.slice(2)];else if(Q[1]===G0.disallowed_STD3_valid)return[G0.valid,...Q.slice(2)];else if(Q[1]===G0.disallowed_STD3_mapped)return[G0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>J)X=Y-1;else $=Y+1}return null},Tu=function(J,{useSTD3ASCIIRules:Z,processingOption:$}){let X=!1,Y="";for(let Q of J){const[K,G]=sw(Q.codePointAt(0),{useSTD3ASCIIRules:Z});switch(K){case G0.disallowed:X=!0,Y+=Q;break;case G0.ignored:break;case G0.mapped:Y+=G;break;case G0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case G0.valid:Y+=Q;break}}return{string:Y,error:X}},Iu=function(J,{checkHyphens:Z,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(J.normalize("NFC")!==J)return!1;const K=Array.from(J);if(Z){if(K[2]==="-"&&K[3]==="-"||(J.startsWith("-")||J.endsWith("-")))return!1}if(J.includes(".")||K.length>0&&n0.combiningMarks.test(K[0]))return!1;for(let G of K){const[F]=sw(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&F!==G0.valid||Y==="nontransitional"&&F!==G0.valid&&F!==G0.deviation)return!1}if(X){let G=0;for(let[F,q]of K.entries())if(q==="\u200C"||q==="\u200D"){if(F>0){if(n0.combiningClassVirama.test(K[F-1]))continue;if(q==="\u200C"){const W=K.indexOf("\u200C",F+1),H=W<0?K.slice(G):K.slice(G,W);if(n0.validZWNJ.test(H.join(""))){G=F+1;continue}}}return!1}}if($&&K.length>0){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(J)||!n0.bidiS3.test(J)||n0.bidiS4EN.test(J)&&n0.bidiS4AN.test(J))return!1}else if(!n0.bidiS5.test(J)||!n0.bidiS6.test(J))return!1}return!0},Nu=function(J){const Z=J.map(($)=>{if($.startsWith("xn--"))try{return vY.decode($.substring(4))}catch(X){return""}return $}).join(".");return n0.bidiDomain.test(Z)},nw=function(J,Z){const{processingOption:$}=Z;let{string:X,error:Y}=Tu(J,Z);X=X.normalize("NFC");const Q=X.split("."),K=Nu(Q);for(let[G,F]of Q.entries()){let q=F,W=$;if(q.startsWith("xn--")){try{q=vY.decode(q.substring(4)),Q[G]=q}catch(U){Y=!0;continue}W="nontransitional"}if(Y)continue;if(!Iu(q,{...Z,processingOption:W,checkBidi:Z.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},Bu=function(J,{checkHyphens:Z=!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=nw(J,{processingOption:Q,checkHyphens:Z,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let F=G.string.split(".");if(F=F.map((q)=>{if(Pu(q))try{return`xn--${vY.encode(q)}`}catch(W){G.error=!0}return q}),K){const q=F.join(".").length;if(q>253||q===0)G.error=!0;for(let W=0;W<F.length;++W)if(F[W].length>63||F[W].length===0){G.error=!0;break}}if(G.error)return null;return F.join(".")},Eu=function(J,{checkHyphens:Z=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=nw(J,{processingOption:Q,checkHyphens:Z,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},vY=uw(),n0=cw(),iw=pw(),{STATUS_MAPPING:G0}=aw();tw.exports={toASCII:Bu,toUnicode:Eu}});var bY=V((x01,ew)=>{var xY=function(J){return J>=48&&J<=57},ow=function(J){return J>=65&&J<=90||J>=97&&J<=122},Cu=function(J){return ow(J)||xY(J)},hu=function(J){return xY(J)||J>=65&&J<=70||J>=97&&J<=102};ew.exports={isASCIIDigit:xY,isASCIIAlpha:ow,isASCIIAlphanumeric:Cu,isASCIIHex:hu}});var HZ=V((b01,JR)=>{var ku=function(J){return Su.encode(J)},yu=function(J){return Ou.decode(J)},Su=new TextEncoder,Ou=new TextDecoder("utf-8",{ignoreBOM:!0});JR.exports={utf8Encode:ku,utf8DecodeWithoutBOM:yu}});var VZ=V((g01,GR)=>{var i=function(J){return J.codePointAt(0)},_u=function(J){let Z=J.toString(16).toUpperCase();if(Z.length===1)Z=`0${Z}`;return`%${Z}`},XR=function(J){const Z=new Uint8Array(J.byteLength);let $=0;for(let X=0;X<J.byteLength;++X){const Y=J[X];if(Y!==37)Z[$++]=Y;else if(Y===37&&(!ZR(J[X+1])||!ZR(J[X+2])))Z[$++]=Y;else{const Q=parseInt(String.fromCodePoint(J[X+1],J[X+2]),16);Z[$++]=Q,X+=2}}return Z.slice(0,$)},fu=function(J){const Z=$R(J);return XR(Z)},gY=function(J){return J<=31||J>126},xu=function(J){return gY(J)||vu.has(J)},mY=function(J){return gY(J)||bu.has(J)},gu=function(J){return mY(J)||J===i("'")},YR=function(J){return mY(J)||mu.has(J)},QR=function(J){return YR(J)||uu.has(J)},cu=function(J){return QR(J)||du.has(J)},lu=function(J){return cu(J)||pu.has(J)},KR=function(J,Z){const $=$R(J);let X="";for(let Y of $)if(!Z(Y))X+=String.fromCharCode(Y);else X+=_u(Y);return X},au=function(J,Z){return KR(String.fromCodePoint(J),Z)},iu=function(J,Z,$=!1){let X="";for(let Y of J)if($&&Y===" ")X+="+";else X+=KR(Y,Z);return X},{isASCIIHex:ZR}=bY(),{utf8Encode:$R}=HZ(),vu=new Set([i(" "),i("\""),i("<"),i(">"),i("`")]),bu=new Set([i(" "),i("\""),i("#"),i("<"),i(">")]),mu=new Set([i("?"),i("`"),i("{"),i("}")]),uu=new Set([i("/"),i(":"),i(";"),i("="),i("@"),i("["),i("\\"),i("]"),i("^"),i("|")]),du=new Set([i("$"),i("%"),i("&"),i("+"),i(",")]),pu=new Set([i("!"),i("'"),i("("),i(")"),i("~")]);GR.exports={isC0ControlPercentEncode:gY,isFragmentPercentEncode:xu,isQueryPercentEncode:mY,isSpecialQueryPercentEncode:gu,isPathPercentEncode:YR,isUserinfoPercentEncode:QR,isURLEncodedPercentEncode:lu,percentDecodeString:fu,percentDecodeBytes:XR,utf8PercentEncodeString:iu,utf8PercentEncodeCodePoint:au}});var aY=V((Rd,F0)=>{var I=function(J){return J.codePointAt(0)},FR=function(J){return[...J].length},qR=function(J,Z){const $=J[Z];return isNaN($)?void 0:String.fromCodePoint($)},WR=function(J){return J==="."||J.toLowerCase()==="%2e"},Zd=function(J){return J=J.toLowerCase(),J===".."||J==="%2e."||J===".%2e"||J==="%2e%2e"},$d=function(J,Z){return p1.isASCIIAlpha(J)&&(Z===I(":")||Z===I("|"))},UR=function(J){return J.length===2&&p1.isASCIIAlpha(J.codePointAt(0))&&(J[1]===":"||J[1]==="|")},Xd=function(J){return J.length===2&&p1.isASCIIAlpha(J.codePointAt(0))&&J[1]===":"},MR=function(J){return J.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Yd=function(J){return MR(J)||J.search(/[\u0000-\u001F]|%|\u007F/u)!==-1},zZ=function(J){return zR[J]!==void 0},c1=function(J){return zZ(J.scheme)},uY=function(J){return!zZ(J.scheme)},jR=function(J){return zR[J]},AR=function(J){if(J==="")return b;let Z=10;if(J.length>=2&&J.charAt(0)==="0"&&J.charAt(1).toLowerCase()==="x")J=J.substring(2),Z=16;else if(J.length>=2&&J.charAt(0)==="0")J=J.substring(1),Z=8;if(J==="")return 0;let $=/[^0-7]/u;if(Z===10)$=/[^0-9]/u;if(Z===16)$=/[^0-9A-Fa-f]/u;if($.test(J))return b;return parseInt(J,Z)},Qd=function(J){const Z=J.split(".");if(Z[Z.length-1]===""){if(Z.length>1)Z.pop()}if(Z.length>4)return b;const $=[];for(let Q of Z){const K=AR(Q);if(K===b)return b;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return b;if($[$.length-1]>=256**(5-$.length))return b;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},Kd=function(J){let Z="",$=J;for(let X=1;X<=4;++X){if(Z=String($%256)+Z,X!==4)Z=`.${Z}`;$=Math.floor($/256)}return Z},Gd=function(J){const Z=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(J=Array.from(J,(Q)=>Q.codePointAt(0)),J[Y]===I(":")){if(J[Y+1]!==I(":"))return b;Y+=2,++$,X=$}while(Y<J.length){if($===8)return b;if(J[Y]===I(":")){if(X!==null)return b;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&p1.isASCIIHex(J[Y]))Q=Q*16+parseInt(qR(J,Y),16),++Y,++K;if(J[Y]===I(".")){if(K===0)return b;if(Y-=K,$>6)return b;let G=0;while(J[Y]!==void 0){let F=null;if(G>0)if(J[Y]===I(".")&&G<4)++Y;else return b;if(!p1.isASCIIDigit(J[Y]))return b;while(p1.isASCIIDigit(J[Y])){const q=parseInt(qR(J,Y));if(F===null)F=q;else if(F===0)return b;else F=F*10+q;if(F>255)return b;++Y}if(Z[$]=Z[$]*256+F,++G,G===2||G===4)++$}if(G!==4)return b;break}else if(J[Y]===I(":")){if(++Y,J[Y]===void 0)return b}else if(J[Y]!==void 0)return b;Z[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=Z[X+Q-1];Z[X+Q-1]=Z[$],Z[$]=K,--$,--Q}}else if(X===null&&$!==8)return b;return Z},Fd=function(J){let Z="";const $=Hd(J);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&J[Y]===0)continue;else if(X)X=!1;if($===Y){Z+=Y===0?"::":":",X=!0;continue}if(Z+=J[Y].toString(16),Y!==7)Z+=":"}return Z},dY=function(J,Z=!1){if(J[0]==="["){if(J[J.length-1]!=="]")return b;return Gd(J.substring(1,J.length-1))}if(Z)return Wd(J);const $=nu(tu(J)),X=Vd($);if(X===b)return b;if(Yd(X))return b;if(qd(X))return Qd(X);return X},qd=function(J){const Z=J.split(".");if(Z[Z.length-1]===""){if(Z.length===1)return!1;Z.pop()}const $=Z[Z.length-1];if(AR($)!==b)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},Wd=function(J){if(MR(J))return b;return MZ(J,VR)},Hd=function(J){let Z=null,$=1,X=null,Y=0;for(let Q=0;Q<J.length;++Q)if(J[Q]!==0){if(Y>$)Z=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return Z},pY=function(J){if(typeof J==="number")return Kd(J);if(J instanceof Array)return`[${Fd(J)}]`;return J},Vd=function(J,Z=!1){const $=su.toASCII(J,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:Z,verifyDNSLength:Z});if($===null||$==="")return b;return $},zd=function(J){return J.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},Ud=function(J){return J.replace(/\u0009|\u000A|\u000D/ug,"")},LR=function(J){const{path:Z}=J;if(Z.length===0)return;if(J.scheme==="file"&&Z.length===1&&jd(Z[0]))return;Z.pop()},wR=function(J){return J.username!==""||J.password!==""},Md=function(J){return J.host===null||J.host===""||J.scheme==="file"},e5=function(J){return typeof J.path==="string"},jd=function(J){return/^[A-Za-z]:$/u.test(J)},D1=function(J,Z,$,X,Y){if(this.pointer=0,this.input=J,this.base=Z||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=zd(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=Ud(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===b){this.failure=!0;break}}},RR=function(J,Z){const $=J.length-Z;return $>=2&&$d(J[Z],J[Z+1])&&($===2||Ad.has(J[Z+2]))},Ld=function(J,Z){let $=`${J.scheme}:`;if(J.host!==null){if($+="//",J.username!==""||J.password!==""){if($+=J.username,J.password!=="")$+=`:${J.password}`;$+="@"}if($+=pY(J.host),J.port!==null)$+=`:${J.port}`}if(J.host===null&&!e5(J)&&J.path.length>1&&J.path[0]==="")$+="/.";if($+=lY(J),J.query!==null)$+=`?${J.query}`;if(!Z&&J.fragment!==null)$+=`#${J.fragment}`;return $},wd=function(J){let Z=`${J.scheme}://`;if(Z+=pY(J.host),J.port!==null)Z+=`:${J.port}`;return Z},lY=function(J){if(e5(J))return J.path;let Z="";for(let $ of J.path)Z+=`/${$}`;return Z},su=rw(),p1=bY(),{utf8DecodeWithoutBOM:nu}=HZ(),{percentDecodeString:tu,utf8PercentEncodeCodePoint:UZ,utf8PercentEncodeString:MZ,isC0ControlPercentEncode:VR,isFragmentPercentEncode:ru,isQueryPercentEncode:ou,isSpecialQueryPercentEncode:eu,isPathPercentEncode:Jd,isUserinfoPercentEncode:cY}=VZ(),zR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},b=Symbol("failure");D1.prototype["parse scheme start"]=function J(Z,$){if(p1.isASCIIAlpha(Z))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,b;return!0};D1.prototype["parse scheme"]=function J(Z,$){if(p1.isASCIIAlphanumeric(Z)||Z===I("+")||Z===I("-")||Z===I("."))this.buffer+=$.toLowerCase();else if(Z===I(":")){if(this.stateOverride){if(c1(this.url)&&!zZ(this.buffer))return!1;if(!c1(this.url)&&zZ(this.buffer))return!1;if((wR(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===jR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==I("/")||this.input[this.pointer+2]!==I("/"))this.parseError=!0;this.state="file"}else if(c1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(c1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===I("/"))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,b;return!0};D1.prototype["parse no scheme"]=function J(Z){if(this.base===null||e5(this.base)&&Z!==I("#"))return b;else if(e5(this.base)&&Z===I("#"))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};D1.prototype["parse special relative or authority"]=function J(Z){if(Z===I("/")&&this.input[this.pointer+1]===I("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};D1.prototype["parse path or authority"]=function J(Z){if(Z===I("/"))this.state="authority";else this.state="path",--this.pointer;return!0};D1.prototype["parse relative"]=function J(Z){if(this.url.scheme=this.base.scheme,Z===I("/"))this.state="relative slash";else if(c1(this.url)&&Z===I("\\"))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,Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(Z))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};D1.prototype["parse relative slash"]=function J(Z){if(c1(this.url)&&(Z===I("/")||Z===I("\\"))){if(Z===I("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(Z===I("/"))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};D1.prototype["parse special authority slashes"]=function J(Z){if(Z===I("/")&&this.input[this.pointer+1]===I("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};D1.prototype["parse special authority ignore slashes"]=function J(Z){if(Z!==I("/")&&Z!==I("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};D1.prototype["parse authority"]=function J(Z,$){if(Z===I("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=FR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===I(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=UZ(Q,cY);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,b;this.pointer-=FR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};D1.prototype["parse hostname"]=D1.prototype["parse host"]=function J(Z,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(Z===I(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,b;if(this.stateOverride==="hostname")return!1;const X=dY(this.buffer,uY(this.url));if(X===b)return b;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")){if(--this.pointer,c1(this.url)&&this.buffer==="")return this.parseError=!0,b;else if(this.stateOverride&&this.buffer===""&&(wR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=dY(this.buffer,uY(this.url));if(X===b)return b;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(Z===I("["))this.arrFlag=!0;else if(Z===I("]"))this.arrFlag=!1;this.buffer+=$}return!0};D1.prototype["parse port"]=function J(Z,$){if(p1.isASCIIDigit(Z))this.buffer+=$;else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,b;this.url.port=X===jR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,b;return!0};var Ad=new Set([I("/"),I("\\"),I("?"),I("#")]);D1.prototype["parse file"]=function J(Z){if(this.url.scheme="file",this.url.host="",Z===I("/")||Z===I("\\")){if(Z===I("\\"))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,Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(Z)){if(this.url.query=null,!RR(this.input,this.pointer))LR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};D1.prototype["parse file slash"]=function J(Z){if(Z===I("/")||Z===I("\\")){if(Z===I("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!RR(this.input,this.pointer)&&Xd(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};D1.prototype["parse file host"]=function J(Z,$){if(isNaN(Z)||Z===I("/")||Z===I("\\")||Z===I("?")||Z===I("#"))if(--this.pointer,!this.stateOverride&&UR(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=dY(this.buffer,uY(this.url));if(X===b)return b;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};D1.prototype["parse path start"]=function J(Z){if(c1(this.url)){if(Z===I("\\"))this.parseError=!0;if(this.state="path",Z!==I("/")&&Z!==I("\\"))--this.pointer}else if(!this.stateOverride&&Z===I("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&Z===I("#"))this.url.fragment="",this.state="fragment";else if(Z!==void 0){if(this.state="path",Z!==I("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};D1.prototype["parse path"]=function J(Z){if(isNaN(Z)||Z===I("/")||c1(this.url)&&Z===I("\\")||!this.stateOverride&&(Z===I("?")||Z===I("#"))){if(c1(this.url)&&Z===I("\\"))this.parseError=!0;if(Zd(this.buffer)){if(LR(this.url),Z!==I("/")&&!(c1(this.url)&&Z===I("\\")))this.url.path.push("")}else if(WR(this.buffer)&&Z!==I("/")&&!(c1(this.url)&&Z===I("\\")))this.url.path.push("");else if(!WR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&UR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",Z===I("?"))this.url.query="",this.state="query";if(Z===I("#"))this.url.fragment="",this.state="fragment"}else{if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=UZ(Z,Jd)}return!0};D1.prototype["parse opaque path"]=function J(Z){if(Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(Z)&&Z!==I("%"))this.parseError=!0;if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(Z))this.url.path+=UZ(Z,VR)}return!0};D1.prototype["parse query"]=function J(Z,$){if(!c1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&Z===I("#")||isNaN(Z)){const X=c1(this.url)?eu:ou;if(this.url.query+=MZ(this.buffer,X),this.buffer="",Z===I("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(Z)){if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};D1.prototype["parse fragment"]=function J(Z){if(!isNaN(Z)){if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=UZ(Z,ru)}return!0};Rd.serializeURL=Ld;Rd.serializePath=lY;Rd.serializeURLOrigin=function(J){switch(J.scheme){case"blob":{const Z=Rd.parseURL(lY(J));if(Z===null)return"null";if(Z.scheme!=="http"&&Z.scheme!=="https")return"null";return Rd.serializeURLOrigin(Z)}case"ftp":case"http":case"https":case"ws":case"wss":return wd({scheme:J.scheme,host:J.host,port:J.port});case"file":return"null";default:return"null"}};Rd.basicURLParse=function(J,Z){if(Z===void 0)Z={};const $=new D1(J,Z.baseURL,Z.encodingOverride,Z.url,Z.stateOverride);if($.failure)return null;return $.url};Rd.setTheUsername=function(J,Z){J.username=MZ(Z,cY)};Rd.setThePassword=function(J,Z){J.password=MZ(Z,cY)};Rd.serializeHost=pY;Rd.cannotHaveAUsernamePasswordPort=Md;Rd.hasAnOpaquePath=e5;Rd.serializeInteger=function(J){return String(J)};Rd.parseURL=function(J,Z){if(Z===void 0)Z={};return Rd.basicURLParse(J,{baseURL:Z.baseURL,encodingOverride:Z.encodingOverride})}});var iY=V((m01,CR)=>{var BR=function(J){return J.codePointAt(0)},Od=function(J){const Z=_d(J,BR("&")),$=[];for(let X of Z){if(X.length===0)continue;let Y,Q;const K=X.indexOf(BR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=ER(Y,43,32),Q=ER(Q,43,32);const G=PR(TR(Y)),F=PR(TR(Q));$.push([G,F])}return $},kd=function(J){return Od(Sd(J))},yd=function(J,Z=void 0){let $="utf-8";if(Z!==void 0)$=Z;let X="";for(let[Y,Q]of J.entries()){const K=IR(Q[0],NR,!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=IR(G,NR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},_d=function(J,Z){const $=[];let X=0,Y=J.indexOf(Z);while(Y>=0)$.push(J.slice(X,Y)),X=Y+1,Y=J.indexOf(Z,X);if(X!==J.length)$.push(J.slice(X));return $},ER=function(J,Z,$){let X=J.indexOf(Z);while(X>=0)J[X]=$,X=J.indexOf(Z,X+1);return J},{utf8Encode:Sd,utf8DecodeWithoutBOM:PR}=HZ(),{percentDecodeBytes:TR,utf8PercentEncodeString:IR,isURLEncodedPercentEncode:NR}=VZ();CR.exports={parseUrlencodedString:kd,serializeUrlencoded:yd}});var SR=V((fd)=>{var hR=FZ(),jZ=WZ();fd.convert=(J,Z,{context:$="The provided value"}={})=>{if(typeof Z!=="function")throw new J.TypeError($+" is not a function");function X(...Y){const Q=jZ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=jZ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(Z,Q,Y),K=hR.any(K,{context:$,globals:J}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=jZ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(Z,Y);return Q=hR.any(Q,{context:$,globals:J}),Q},X[jZ.wrapperSymbol]=Z,X.objectReference=Z,X}});var OR=V((xd)=>{var sY=iY();xd.implementation=class J{constructor(Z,$,{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=sY.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let Z=sY.serializeUrlencoded(this._list);if(Z==="")Z=null;if(this._url._url.query=Z,Z===null)this._url._potentiallyStripTrailingSpacesFromAnOpaquePath()}}get size(){return this._list.length}append(Z,$){this._list.push([Z,$]),this._updateSteps()}delete(Z,$){let X=0;while(X<this._list.length)if(this._list[X][0]===Z&&($===void 0||this._list[X][1]===$))this._list.splice(X,1);else X++;this._updateSteps()}get(Z){for(let $ of this._list)if($[0]===Z)return $[1];return null}getAll(Z){const $=[];for(let X of this._list)if(X[0]===Z)$.push(X[1]);return $}has(Z,$){for(let X of this._list)if(X[0]===Z&&($===void 0||X[1]===$))return!0;return!1}set(Z,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===Z)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([Z,$]);this._updateSteps()}sort(){this._list.sort((Z,$)=>{if(Z[0]<$[0])return-1;if(Z[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return sY.serializeUrlencoded(this._list)}}});var tY=V((ud)=>{var _R=function(J,Z){let $;if(Z!==void 0)$=Z.prototype;if(!G1.isObject($))$=J[yR].URLSearchParams.prototype;return Object.create($)},w0=FZ(),G1=WZ(),gd=SR(),kR=G1.newObjectInRealm,I1=G1.implSymbol,yR=G1.ctorRegistrySymbol;ud.is=(J)=>{return G1.isObject(J)&&G1.hasOwn(J,I1)&&J[I1]instanceof g8.implementation};ud.isImpl=(J)=>{return G1.isObject(J)&&J instanceof g8.implementation};ud.convert=(J,Z,{context:$="The provided value"}={})=>{if(ud.is(Z))return G1.implForWrapper(Z);throw new J.TypeError(`${$} is not of type 'URLSearchParams'.`)};ud.createDefaultIterator=(J,Z,$)=>{const Y=J[yR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,G1.iterInternalSymbol,{value:{target:Z,kind:$,index:0},configurable:!0}),Q};ud.create=(J,Z,$)=>{const X=_R(J);return ud.setup(X,J,Z,$)};ud.createImpl=(J,Z,$)=>{const X=ud.create(J,Z,$);return G1.implForWrapper(X)};ud._internalSetup=(J,Z)=>{};ud.setup=(J,Z,$=[],X={})=>{if(X.wrapper=J,ud._internalSetup(J,Z),Object.defineProperty(J,I1,{value:new g8.implementation(Z,$,X),configurable:!0}),J[I1][G1.wrapperSymbol]=J,g8.init)g8.init(J[I1]);return J};ud.new=(J,Z)=>{const $=_R(J,Z);if(ud._internalSetup($,J),Object.defineProperty($,I1,{value:Object.create(g8.implementation.prototype),configurable:!0}),$[I1][G1.wrapperSymbol]=$,g8.init)g8.init($[I1]);return $[I1]};var md=new Set(["Window","Worker"]);ud.install=(J,Z)=>{if(!Z.some((Y)=>md.has(Y)))return;const $=G1.initCtorRegistry(J);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(G1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!G1.isObject(Q))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let F of G){if(!G1.isObject(F))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const q=[],W=F;for(let H of W)H=w0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:J}),q.push(H);F=q}K.push(F)}Q=K}else if(!G1.isObject(Q))throw new J.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 q=G;q=w0.USVString(q,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:J});let W=Q[G];W=w0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:J}),K[q]=W}}Q=K}else Q=w0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:J});else Q="";Y.push(Q)}return ud.setup(Object.create(new.target.prototype),J,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:J;if(!ud.is(K))throw new J.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new J.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=w0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:J}),G.push(F)}{let F=arguments[1];F=w0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:J}),G.push(F)}return G1.tryWrapperForImpl(K[I1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:J;if(!ud.is(Q))throw new J.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}{let G=arguments[1];if(G!==void 0)G=w0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:J});K.push(G)}return G1.tryWrapperForImpl(Q[I1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:J;if(!ud.is(Q))throw new J.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}return Q[I1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:J;if(!ud.is(Q))throw new J.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}return G1.tryWrapperForImpl(Q[I1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:J;if(!ud.is(Q))throw new J.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}{let G=arguments[1];if(G!==void 0)G=w0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:J});K.push(G)}return Q[I1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:J;if(!ud.is(K))throw new J.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new J.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=w0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:J}),G.push(F)}{let F=arguments[1];F=w0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:J}),G.push(F)}return G1.tryWrapperForImpl(K[I1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:J;if(!ud.is(Y))throw new J.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return G1.tryWrapperForImpl(Y[I1].sort())}toString(){const Y=this!==null&&this!==void 0?this:J;if(!ud.is(Y))throw new J.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[I1].toString()}keys(){if(!ud.is(this))throw new J.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return ud.createDefaultIterator(J,this,"key")}values(){if(!ud.is(this))throw new J.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return ud.createDefaultIterator(J,this,"value")}entries(){if(!ud.is(this))throw new J.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return ud.createDefaultIterator(J,this,"key+value")}forEach(Y){if(!ud.is(this))throw new J.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=gd.convert(J,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[I1]),G=0;while(G<K.length){const[F,q]=K[G].map(G1.tryWrapperForImpl);Y.call(Q,q,F,this),K=Array.from(this[I1]),G++}}get size(){const Y=this!==null&&this!==void 0?this:J;if(!ud.is(Y))throw new J.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return Y[I1].size}}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},size:{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"}}),G1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[G1.iterInternalSymbol];if(!Y)throw new J.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[I1]),q=F.length;if(G>=q)return kR(J,{value:void 0,done:!0});const W=F[G];return Y.index=G+1,kR(J,G1.iteratorResult(W.map(G1.tryWrapperForImpl),K))}}),Object.defineProperty(J,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var g8=OR()});var bR=V((sd)=>{var X1=aY(),xR=iY(),id=tY();sd.implementation=class J{constructor(Z,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=X1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=X1.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(Z,[G],{doNotStripQMark:!0}),this._query._url=this}static canParse(Z,$){let X=null;if($!==void 0){if(X=X1.basicURLParse($),X===null)return!1}if(X1.basicURLParse(Z,{baseURL:X})===null)return!1;return!0}get href(){return X1.serializeURL(this._url)}set href(Z){const $=X1.basicURLParse(Z);if($===null)throw new TypeError(`Invalid URL: ${Z}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=xR.parseUrlencodedString(X)}get origin(){return X1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(Z){X1.basicURLParse(`${Z}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;X1.setTheUsername(this._url,Z)}get password(){return this._url.password}set password(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;X1.setThePassword(this._url,Z)}get host(){const Z=this._url;if(Z.host===null)return"";if(Z.port===null)return X1.serializeHost(Z.host);return`${X1.serializeHost(Z.host)}:${X1.serializeInteger(Z.port)}`}set host(Z){if(X1.hasAnOpaquePath(this._url))return;X1.basicURLParse(Z,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return X1.serializeHost(this._url.host)}set hostname(Z){if(X1.hasAnOpaquePath(this._url))return;X1.basicURLParse(Z,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return X1.serializeInteger(this._url.port)}set port(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;if(Z==="")this._url.port=null;else X1.basicURLParse(Z,{url:this._url,stateOverride:"port"})}get pathname(){return X1.serializePath(this._url)}set pathname(Z){if(X1.hasAnOpaquePath(this._url))return;this._url.path=[],X1.basicURLParse(Z,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(Z){const $=this._url;if(Z===""){$.query=null,this._query._list=[],this._potentiallyStripTrailingSpacesFromAnOpaquePath();return}const X=Z[0]==="?"?Z.substring(1):Z;$.query="",X1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=xR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(Z){if(Z===""){this._url.fragment=null,this._potentiallyStripTrailingSpacesFromAnOpaquePath();return}const $=Z[0]==="#"?Z.substring(1):Z;this._url.fragment="",X1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}_potentiallyStripTrailingSpacesFromAnOpaquePath(){if(!X1.hasAnOpaquePath(this._url))return;if(this._url.fragment!==null)return;if(this._url.query!==null)return;this._url.path=this._url.path.replace(/\u0020+$/u,"")}}});var dR=V((od)=>{var gR=function(J,Z){let $;if(Z!==void 0)$=Z.prototype;if(!S0.isObject($))$=J[td].URL.prototype;return Object.create($)},R0=FZ(),S0=WZ(),t=S0.implSymbol,td=S0.ctorRegistrySymbol;od.is=(J)=>{return S0.isObject(J)&&S0.hasOwn(J,t)&&J[t]instanceof Q8.implementation};od.isImpl=(J)=>{return S0.isObject(J)&&J instanceof Q8.implementation};od.convert=(J,Z,{context:$="The provided value"}={})=>{if(od.is(Z))return S0.implForWrapper(Z);throw new J.TypeError(`${$} is not of type 'URL'.`)};od.create=(J,Z,$)=>{const X=gR(J);return od.setup(X,J,Z,$)};od.createImpl=(J,Z,$)=>{const X=od.create(J,Z,$);return S0.implForWrapper(X)};od._internalSetup=(J,Z)=>{};od.setup=(J,Z,$=[],X={})=>{if(X.wrapper=J,od._internalSetup(J,Z),Object.defineProperty(J,t,{value:new Q8.implementation(Z,$,X),configurable:!0}),J[t][S0.wrapperSymbol]=J,Q8.init)Q8.init(J[t]);return J};od.new=(J,Z)=>{const $=gR(J,Z);if(od._internalSetup($,J),Object.defineProperty($,t,{value:Object.create(Q8.implementation.prototype),configurable:!0}),$[t][S0.wrapperSymbol]=$,Q8.init)Q8.init($[t]);return $[t]};var rd=new Set(["Window","Worker"]);od.install=(J,Z)=>{if(!Z.some((Y)=>rd.has(Y)))return;const $=S0.initCtorRegistry(J);class X{constructor(Y){if(arguments.length<1)throw new J.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:J}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=R0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:J});Q.push(K)}return od.setup(Object.create(new.target.prototype),J,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[t].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[t].href}set href(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].href=Y}toString(){const Y=this;if(!od.is(Y))throw new J.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[t].href}get origin(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[t].origin}get protocol(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[t].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[t].username}set username(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].username=Y}get password(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[t].password}set password(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].password=Y}get host(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[t].host}set host(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[t].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[t].port}set port(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[t].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[t].search}set search(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return S0.getSameObject(this,"searchParams",()=>{return S0.tryWrapperForImpl(Y[t].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:J;if(!od.is(Y))throw new J.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[t].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:J;if(!od.is(Q))throw new J.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:J}),Q[t].hash=Y}static canParse(Y){if(arguments.length<1)throw new J.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=R0.USVString(K,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:J}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=R0.USVString(K,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:J});Q.push(K)}return Q8.implementation.canParse(...Q)}}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}}),Object.defineProperties(X,{canParse:{enumerable:!0}}),$["URL"]=X,Object.defineProperty(J,"URL",{configurable:!0,writable:!0,value:X}),Z.includes("Window"))Object.defineProperty(J,"webkitURL",{configurable:!0,writable:!0,value:X})};var Q8=bR()});var cR=V((Kc)=>{var Yc=dR(),Qc=tY();Kc.URL=Yc;Kc.URLSearchParams=Qc});var lR=V((Hc)=>{var{URL:qc,URLSearchParams:Wc}=cR(),V6=aY(),pR=VZ(),LZ={Array,Object,Promise,String,TypeError};qc.install(LZ,["Window"]);Wc.install(LZ,["Window"]);Hc.URL=LZ.URL;Hc.URLSearchParams=LZ.URLSearchParams;Hc.parseURL=V6.parseURL;Hc.basicURLParse=V6.basicURLParse;Hc.serializeURL=V6.serializeURL;Hc.serializePath=V6.serializePath;Hc.serializeHost=V6.serializeHost;Hc.serializeInteger=V6.serializeInteger;Hc.serializeURLOrigin=V6.serializeURLOrigin;Hc.setTheUsername=V6.setTheUsername;Hc.setThePassword=V6.setThePassword;Hc.cannotHaveAUsernamePasswordPort=V6.cannotHaveAUsernamePasswordPort;Hc.hasAnOpaquePath=V6.hasAnOpaquePath;Hc.percentDecodeString=pR.percentDecodeString;Hc.percentDecodeBytes=pR.percentDecodeBytes});var iR=V((t0)=>{var Sc=function(J,Z){var $,X;const Y=J.clone(),Q=($=Z===null||Z===void 0?void 0:Z.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=Z===null||Z===void 0?void 0:Z.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 aR.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},Oc=function(J,Z){var $,X;const Y=($=Z===null||Z===void 0?void 0:Z.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=Z===null||Z===void 0?void 0:Z.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new aR.default(J)}catch(q){}if(K)return Z={...Z,replacementString:"___credentials___"},K.redact(Z).toString().replace(/___credentials___/g,Y);const G=Y,F=[(q)=>q.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(q)=>q.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(q)=>q.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(q)=>Q?q.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):q,(q)=>q.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let q of F)J=q(J);return J},Ec=t0&&t0.__createBinding||(Object.create?function(J,Z,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(Z,$);if(!Y||("get"in Y?!Z.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return Z[$]}};Object.defineProperty(J,X,Y)}:function(J,Z,$,X){if(X===void 0)X=$;J[X]=Z[$]}),Cc=t0&&t0.__setModuleDefault||(Object.create?function(J,Z){Object.defineProperty(J,"default",{enumerable:!0,value:Z})}:function(J,Z){J.default=Z}),hc=t0&&t0.__importStar||function(J){if(J&&J.__esModule)return J;var Z={};if(J!=null){for(var $ in J)if($!=="default"&&Object.prototype.hasOwnProperty.call(J,$))Ec(Z,J,$)}return Cc(Z,J),Z};Object.defineProperty(t0,"__esModule",{value:!0});t0.redactConnectionString=t0.redactValidConnectionString=void 0;var aR=hc(oY());t0.redactValidConnectionString=Sc;t0.redactConnectionString=Oc});var oY=V((JQ)=>{var yc=function(J){return J.startsWith("mongodb://")||J.startsWith("mongodb+srv://")},fc=function(J){return class Z extends J{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 eY.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(JQ,"__esModule",{value:!0});JQ.CommaAndColonSeparatedRecord=JQ.ConnectionString=JQ.redactConnectionString=void 0;var kc=lR(),sR=iR();Object.defineProperty(JQ,"redactConnectionString",{enumerable:!0,get:function(){return sR.redactConnectionString}});var J9="__this_is_a_placeholder__",_c=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class eY extends Map{delete(J){return super.delete(this._normalizeKey(J))}get(J){return super.get(this._normalizeKey(J))}has(J){return super.has(this._normalizeKey(J))}set(J,Z){return super.set(this._normalizeKey(J),Z)}_normalizeKey(J){J=`${J}`;for(let Z of this.keys())if(Z.toLowerCase()===J.toLowerCase()){J=Z;break}return J}}class nR extends kc.URL{}class y6 extends Error{get name(){return"MongoParseError"}}class Z9 extends nR{constructor(J,Z={}){var $;const{looseValidation:X}=Z;if(!X&&!yc(J))throw new y6('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=J.match(_c);if(!Y)throw new y6(`Invalid connection string "${J}"`);const{protocol:Q,username:K,password:G,hosts:F,rest:q}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!F)throw new y6(`Protocol and host list are required in "${J}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(U){throw new y6(U.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new y6(`Username contains unescaped characters ${K}`);if(!K||!G){const U=J.replace(`${Q}://`,"");if(U.startsWith("@")||U.startsWith(":"))throw new y6("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new y6("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}${J9}${q}`)}catch(H){if(X)new Z9(J,{...Z,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(J9,F);throw H}if(this._hosts=F.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new y6("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new y6("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,fc(this.searchParams.constructor).prototype)}get host(){return J9}set host(J){throw new Error("No single host for connection string")}get hostname(){return J9}set hostname(J){throw new Error("No single host for connection string")}get port(){return""}set port(J){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(J){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(J){this._hosts=J}toString(){return super.toString().replace(J9,this.hosts.join(","))}clone(){return new Z9(this.toString(),{looseValidation:!0})}redact(J){return sR.redactValidConnectionString(this,J)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:J,origin:Z,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:q}=this;return{href:J,origin:Z,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:q}}}JQ.ConnectionString=Z9;class tR extends eY{constructor(J){super();for(let Z of(J!==null&&J!==void 0?J:"").split(",")){if(!Z)continue;const $=Z.indexOf(":");if($===-1)this.set(Z,"");else this.set(Z.slice(0,$),Z.slice($+1))}}toString(){return[...this].map((J)=>J.join(":")).join(",")}}JQ.CommaAndColonSeparatedRecord=tR;JQ.default=Z9});var oR=V((r01,bc)=>{bc.exports={name:"mongodb",version:"6.3.0",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:{"@mongodb-js/saslprep":"^1.1.0",bson:"^6.2.0","mongodb-connection-string-url":"^3.0.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.1.0","gcp-metadata":"^5.2.0",kerberos:"^2.0.1","mongodb-client-encryption":">=6.0.0 <7",snappy:"^7.2.2",socks:"^2.7.1"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0},"gcp-metadata":{optional:!0},socks:{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.36.4","@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.5.9","@types/saslprep":"^1.0.1","@types/semver":"^7.5.0","@types/sinon":"^10.0.16","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.48.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.28.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17","eslint-plugin-unused-imports":"^2.0.0",express:"^4.18.2","gcp-metadata":"^5.2.0","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-client-encryption":"^6.0.0","mongodb-legacy":"^6.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.4",sinon:"^15.2.0","sinon-chai":"^3.7.0",snappy:"^7.2.2",socks:"^2.7.1","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.3.1",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=16.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 && eslint mongodb.d.ts --fix","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.prose.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:drivers-atlas-testing":"mocha --config test/mocha_mongodb.json test/atlas/drivers_atlas_testing.test.ts","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.ts","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 $Q=V(($D)=>{var gc=function(J){const Z=new ZQ(512),{appName:$=""}=J;if($.length>0){const W=Buffer.byteLength($,"utf8")<=128?J.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");Z.ifItFitsItSits("application",{name:W})}const{name:X="",version:Y="",platform:Q=""}=J.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${JD}|${Y}`:JD};if(!Z.ifItFitsItSits("driver",K))throw new eR.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=mc();if(Q.length>0)G=`${G}|${Q}`;if(!Z.ifItFitsItSits("platform",G))throw new eR.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const F=(new Map()).set("name",wZ.platform).set("architecture",wZ.arch).set("version",$9.release()).set("type",$9.type());if(!Z.ifItFitsItSits("os",F))for(let W of F.keys()){if(F.delete(W),F.size===0)break;if(Z.ifItFitsItSits("os",F))break}const q=ZD();if(q!=null){if(!Z.ifItFitsItSits("env",q))for(let W of q.keys()){if(q.delete(W),q.size===0)break;if(Z.ifItFitsItSits("env",q))break}}return Z.toObject()},ZD=function(){const{AWS_EXECUTION_ENV:J="",AWS_LAMBDA_RUNTIME_API:Z="",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:q="",FUNCTION_TIMEOUT_SEC:W="",VERCEL_REGION:H=""}=wZ.env,U=J.startsWith("AWS_Lambda_")||Z.length>0,j=$.length>0,z=X.length>0||Y.length>0,A=Q.length>0,T=new Map;if(A&&!(j||z)){if(H.length>0)T.set("region",H);return T.set("name","vercel"),T}if(U&&!(j||z||A)){if(G.length>0)T.set("region",G);if(K.length>0&&Number.isInteger(+K))T.set("memory_mb",new P7.Int32(K));return T.set("name","aws.lambda"),T}if(j&&!(z||U||A))return T.set("name","azure.func"),T;if(z&&!(j||U||A)){if(q.length>0)T.set("region",q);if(F.length>0&&Number.isInteger(+F))T.set("memory_mb",new P7.Int32(F));if(W.length>0&&Number.isInteger(+W))T.set("timeout_sec",new P7.Int32(W));return T.set("name","gcp.func"),T}return null},mc=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${$9.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${$9.endianness()}`;return`Node.js ${wZ.version}, ${$9.endianness()}`};Object.defineProperty($D,"__esModule",{value:!0});$D.getFAASEnv=$D.makeClientMetadata=$D.LimitedSizeDocument=void 0;var $9=import.meta.require("os"),wZ=import.meta.require("process"),P7=H1(),eR=E(),JD=oR().version;class ZQ{constructor(J){this.maxSize=J,this.document=new Map,this.documentSize=5}ifItFitsItSits(J,Z){const $=P7.BSON.serialize((new Map()).set(J,Z)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(J,Z),!0}toObject(){return P7.BSON.deserialize(P7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}$D.LimitedSizeDocument=ZQ;$D.makeClientMetadata=gc;$D.getFAASEnv=ZD});var Y9=V((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.OpCompressedRequest=HD.OpMsgResponse=HD.OpMsgRequest=HD.OpQueryResponse=HD.OpQueryRequest=void 0;var m8=H1(),X9=E(),cc=k1(),XQ=N7(),T7=h8(),I7=0,pc=2,lc=4,ac=8,ic=16,sc=32,nc=64,tc=128,rc=1,oc=2,ec=4,Jp=8;class QQ{constructor(J,Z,$){this.databaseName=J,this.query=Z;const X=`${J}.\$cmd`;if(typeof J!=="string")throw new X9.MongoRuntimeError("Database name must be a string for a query");if(Z==null)throw new X9.MongoRuntimeError("A query document must be specified for query");if(X.indexOf("\0")!==-1)throw new X9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=X,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=$.requestId??QQ.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=I7++}nextRequestId(){return I7+1}static getRequestId(){return++I7}toBin(){const J=[];let Z=null,$=0;if(this.tailable)$|=pc;if(this.secondaryOk)$|=lc;if(this.oplogReplay)$|=ac;if(this.noCursorTimeout)$|=ic;if(this.awaitData)$|=sc;if(this.exhaust)$|=nc;if(this.partial)$|=tc;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);J.push(X);const Y=m8.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(J.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)Z=m8.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),J.push(Z);const Q=X.length+Y.length+(Z?Z.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]=T7.OP_QUERY>>24&255,X[K+2]=T7.OP_QUERY>>16&255,X[K+1]=T7.OP_QUERY>>8&255,X[K]=T7.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,J}}HD.OpQueryRequest=QQ;class QD{constructor(J,Z,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=J,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=Z.length,this.requestId=Z.requestId,this.responseTo=Z.responseTo,this.opCode=Z.opCode,this.fromCompressed=Z.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(J){if(this.parsed)return;J=J??{};const Z=J.raw||!1,$=J.documentsReturnedIn||null,X=J.useBigInt64??this.opts.useBigInt64,Y=J.promoteLongs??this.opts.promoteLongs,Q=J.promoteValues??this.opts.promoteValues,K=J.promoteBuffers??this.opts.promoteBuffers,G=J.bsonRegExp??this.opts.bsonRegExp;let F;const q={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new m8.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&rc)!==0,this.queryFailure=(this.responseFlags&oc)!==0,this.shardConfigStale=(this.responseFlags&ec)!==0,this.awaitCapable=(this.responseFlags&Jp)!==0;for(let W=0;W<this.numberReturned;W++){if(F=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,Z)this.documents[W]=this.data.slice(this.index,this.index+F);else this.documents[W]=m8.deserialize(this.data.slice(this.index,this.index+F),q);this.index=this.index+F}if(this.documents.length===1&&$!=null&&Z){const W={};W[$]=!0,q.fieldsAsRaw=W;const H=m8.deserialize(this.documents[0],q);this.documents=[H]}this.parsed=!0}}HD.OpQueryResponse=QD;var KD=1,GD=2,FD=1<<16;class RZ{constructor(J,Z,$){if(this.databaseName=J,this.command=Z,this.options=$,Z==null)throw new X9.MongoInvalidArgumentError("Query document must be specified for query");if(this.command.$db=J,$.readPreference&&$.readPreference.mode!==cc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:RZ.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 J=[];let Z=0;if(this.checksumPresent)Z|=KD;if(this.moreToCome)Z|=GD;if(this.exhaustAllowed)Z|=FD;const $=Buffer.alloc(20);J.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(J,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE(T7.OP_MSG,12),$.writeUInt32LE(Z,16),J}makeDocumentSegment(J,Z){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(Z);return J.push($),J.push(X),$.length+X.length}serializeBson(J){return m8.serialize(J,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return I7=I7+1&2147483647,I7}}HD.OpMsgRequest=RZ;class qD{constructor(J,Z,$,X){this.parsed=!1,this.raw=J,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=Z.length,this.requestId=Z.requestId,this.responseTo=Z.responseTo,this.opCode=Z.opCode,this.fromCompressed=Z.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&KD)!==0,this.moreToCome=(this.responseFlags&GD)!==0,this.exhaustAllowed=(this.responseFlags&FD)!==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(J){if(this.parsed)return;J=J??{},this.index=4;const Z=J.raw||!1,$=J.documentsReturnedIn||null,X=J.useBigInt64??this.opts.useBigInt64,Y=J.promoteLongs??this.opts.promoteLongs,Q=J.promoteValues??this.opts.promoteValues,K=J.promoteBuffers??this.opts.promoteBuffers,G=J.bsonRegExp??this.opts.bsonRegExp,F=this.parseBsonSerializationOptions(J),q={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:F};while(this.index<this.data.length){const W=this.data.readUInt8(this.index++);if(W===0){const H=this.data.readUInt32LE(this.index),U=this.data.slice(this.index,this.index+H);this.documents.push(Z?U:m8.deserialize(U,q)),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&&Z){const W={};W[$]=!0,q.fieldsAsRaw=W;const H=m8.deserialize(this.documents[0],q);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:J}){if(J===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}HD.OpMsgResponse=qD;var YQ=16,YD=9;class WD{constructor(J,Z){this.command=J,this.options=Z}static canCompress(J){const Z=J instanceof RZ?J.command:J.query,$=Object.keys(Z)[0];return!XQ.uncompressibleCommands.has($)}async toBin(){const J=Buffer.concat(this.command.toBin()),Z=J.slice(YQ),$=J.readInt32LE(12),X=await XQ.compress(this.options,Z),Y=Buffer.alloc(YQ);Y.writeInt32LE(YQ+YD+X.length,0),Y.writeInt32LE(this.command.requestId,4),Y.writeInt32LE(0,8),Y.writeInt32LE(T7.OP_COMPRESSED,12);const Q=Buffer.alloc(YD);return Q.writeInt32LE($,0),Q.writeInt32LE(Z.length,4),Q.writeUInt8(XQ.Compressor[this.options.agreedCompressor],8),[Y,Q,X]}}HD.OpCompressedRequest=WD});var N7=V((LD)=>{var MD=function(){if(I4==null){const J=UD.getSnappy();if("kModuleError"in J)throw J.kModuleError;I4=J}return I4};async function qp(J,Z){const $={};switch(J.agreedCompressor){case"snappy":return I4??=MD(),I4.compress(Z);case"zstd":{if(AD(),"kModuleError"in d8)throw d8.kModuleError;return d8.compress(Z,Kp)}case"zlib":{if(J.zlibCompressionLevel)$.level=J.zlibCompressionLevel;return Fp(Z,$)}default:throw new GQ.MongoInvalidArgumentError(`Unknown compressor ${J.agreedCompressor} failed to compress`)}}async function jD(J,Z){if(J!==LD.Compressor.snappy&&J!==LD.Compressor.zstd&&J!==LD.Compressor.zlib&&J!==LD.Compressor.none)throw new GQ.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${J})`);switch(J){case LD.Compressor.snappy:return I4??=MD(),I4.uncompress(Z,{asBuffer:!0});case LD.Compressor.zstd:{if(AD(),"kModuleError"in d8)throw d8.kModuleError;return d8.decompress(Z)}case LD.Compressor.zlib:return Gp(Z);default:return Z}}var AD=function(){if(!d8)d8=UD.getZstdLibrary()};async function Wp(J,Z){const X=await(Z.agreedCompressor==="none"||!B7.OpCompressedRequest.canCompress(J)?J:new B7.OpCompressedRequest(J,{agreedCompressor:Z.agreedCompressor??"none",zlibCompressionLevel:Z.zlibCompressionLevel??0})).toBin();return Buffer.concat(X)}async function Hp(J){const Z={length:J.readInt32LE(0),requestId:J.readInt32LE(4),responseTo:J.readInt32LE(8),opCode:J.readInt32LE(12)};if(Z.opCode!==KQ.OP_COMPRESSED){const G=Z.opCode===KQ.OP_MSG?B7.OpMsgResponse:B7.OpQueryResponse,F=J.subarray(Q9);return new G(J,Z,F)}const $={...Z,fromCompressed:!0,opCode:J.readInt32LE(Q9),length:J.readInt32LE(Q9+4)},X=J[Q9+8],Y=J.slice(Q9+9),Q=$.opCode===KQ.OP_MSG?B7.OpMsgResponse:B7.OpQueryResponse,K=await jD(X,Y);if(K.length!==$.length)throw new GQ.MongoDecompressionError("Message body and message header must be the same length");return new Q(J,$,K)}Object.defineProperty(LD,"__esModule",{value:!0});LD.decompressResponse=LD.compressCommand=LD.decompress=LD.compress=LD.uncompressibleCommands=LD.Compressor=void 0;var zD=import.meta.require("util"),DZ=import.meta.require("zlib"),Qp=v1(),UD=H6(),GQ=E(),B7=Y9(),KQ=h8();LD.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});LD.uncompressibleCommands=new Set([Qp.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var Kp=3,Gp=zD.promisify(DZ.inflate.bind(DZ)),Fp=zD.promisify(DZ.deflate.bind(DZ)),d8,I4=null;LD.compress=qp;LD.decompress=jD;var Q9=16;LD.compressCommand=Wp;LD.decompressResponse=Hp});var qQ=V((RD)=>{var G9=function(J,Z){return function($,X,Y,Q){let K;try{const G=K9[J](Z,$,X);G.setAutoPadding(!1),K=G.update(Y);const F=G.final();if(F.length>0)K=Buffer.concat([K,F])}catch(G){return G}return K.copy(Q),K.length}},jp=function(J,Z){try{K9.randomFillSync(J,0,Z)}catch($){return $}return Z},Ap=function(J,Z){let $;try{$=K9.createHash("sha256").update(J).digest()}catch(X){return X}return $.copy(Z),$.length},FQ=function(J){return(Z,$,X)=>{let Y;try{Y=K9.createHmac(J,Z).update($).digest()}catch(Q){return Q}return Y.copy(X),Y.length}},Lp=function(J,Z,$){let X;try{const Y=K9.createSign("sha256WithRSAEncryption"),Q=Buffer.from(`-----BEGIN PRIVATE KEY-----\n${J.toString("base64")}\n-----END PRIVATE KEY-----\n`);X=Y.update(Z).end().sign(Q)}catch(Y){return Y}return X.copy($),X.length};Object.defineProperty(RD,"__esModule",{value:!0});RD.hmacSha256Hook=RD.hmacSha512Hook=RD.aes256CtrDecryptHook=RD.aes256CtrEncryptHook=RD.aes256CbcDecryptHook=RD.aes256CbcEncryptHook=RD.signRsaSha256Hook=RD.makeHmacHook=RD.sha256Hook=RD.randomHook=RD.makeAES256Hook=void 0;var K9=import.meta.require("crypto");RD.makeAES256Hook=G9;RD.randomHook=jp;RD.sha256Hook=Ap;RD.makeHmacHook=FQ;RD.signRsaSha256Hook=Lp;RD.aes256CbcEncryptHook=G9("createCipheriv","aes-256-cbc");RD.aes256CbcDecryptHook=G9("createDecipheriv","aes-256-cbc");RD.aes256CtrEncryptHook=G9("createCipheriv","aes-256-ctr");RD.aes256CtrDecryptHook=G9("createDecipheriv","aes-256-ctr");RD.hmacSha512Hook=FQ("sha512");RD.hmacSha256Hook=FQ("sha256")});var B4=V((ED)=>{Object.defineProperty(ED,"__esModule",{value:!0});ED.MongoCryptKMSRequestNetworkTimeoutError=ED.MongoCryptAzureKMSRequestError=ED.MongoCryptCreateEncryptedCollectionError=ED.MongoCryptCreateDataKeyError=ED.MongoCryptInvalidArgumentError=ED.MongoCryptError=void 0;var hp=E();class N4 extends hp.MongoError{constructor(J,Z={}){super(J,Z)}get name(){return"MongoCryptError"}}ED.MongoCryptError=N4;class PD extends N4{constructor(J){super(J)}get name(){return"MongoCryptInvalidArgumentError"}}ED.MongoCryptInvalidArgumentError=PD;class TD extends N4{constructor(J,{cause:Z}){super(`Unable to complete creating data keys: ${Z.message}`,{cause:Z});this.encryptedFields=J}get name(){return"MongoCryptCreateDataKeyError"}}ED.MongoCryptCreateDataKeyError=TD;class ID extends N4{constructor(J,{cause:Z}){super(`Unable to create collection: ${Z.message}`,{cause:Z});this.encryptedFields=J}get name(){return"MongoCryptCreateEncryptedCollectionError"}}ED.MongoCryptCreateEncryptedCollectionError=ID;class ND extends N4{constructor(J,Z){super(J);this.body=Z}get name(){return"MongoCryptAzureKMSRequestError"}}ED.MongoCryptAzureKMSRequestError=ND;class BD extends N4{get name(){return"MongoCryptKMSRequestNetworkTimeoutError"}}ED.MongoCryptKMSRequestNetworkTimeoutError=BD});var OD=V((hD)=>{Object.defineProperty(hD,"__esModule",{value:!0});hD.MongocryptdManager=void 0;var fp=E();class PZ{constructor(J={}){if(this.uri=typeof J.mongocryptdURI==="string"&&J.mongocryptdURI.length>0?J.mongocryptdURI:PZ.DEFAULT_MONGOCRYPTD_URI,this.bypassSpawn=!!J.mongocryptdBypassSpawn,this.spawnPath=J.mongocryptdSpawnPath||"",this.spawnArgs=[],Array.isArray(J.mongocryptdSpawnArgs))this.spawnArgs=this.spawnArgs.concat(J.mongocryptdSpawnArgs);if(this.spawnArgs.filter((Z)=>typeof Z==="string").every((Z)=>Z.indexOf("--idleShutdownTimeoutSecs")<0))this.spawnArgs.push("--idleShutdownTimeoutSecs","60")}async spawn(){const J=this.spawnPath||"mongocryptd",{spawn:Z}=import.meta.require("child_process");this._child=Z(J,this.spawnArgs,{stdio:"ignore",detached:!0}),this._child.on("error",()=>{}),this._child.unref()}async withRespawn(J){try{return await J()}catch($){if(!($ instanceof fp.MongoNetworkTimeoutError&&!this.bypassSpawn))throw $}return await this.spawn(),await J()}}PZ.DEFAULT_MONGOCRYPTD_URI="mongodb://localhost:27020";hD.MongocryptdManager=PZ});var _D=V((kD)=>{async function xp(J){const Z=vp.getAwsCredentialProvider();if("kModuleError"in Z)return J;const{fromNodeProviderChain:$}=Z,Y=await $()();return{...J,aws:Y}}Object.defineProperty(kD,"__esModule",{value:!0});kD.loadAWSCredentials=void 0;var vp=H6();kD.loadAWSCredentials=xp});var xD=V((fD)=>{var mp=function(J,Z={}){return new Promise(($,X)=>{let Y;const Q=bp.get(J,Z,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>G+=F),K.on("end",()=>{WQ.clearTimeout(Y),$({status:K.statusCode,body:G})})}).on("error",(K)=>{WQ.clearTimeout(Y),X(K)}).end();Y=WQ.setTimeout(()=>{Q.destroy(new gp.MongoCryptKMSRequestNetworkTimeoutError("request timed out after 10 seconds"))},1e4)})};Object.defineProperty(fD,"__esModule",{value:!0});fD.get=void 0;var bp=import.meta.require("http"),WQ=import.meta.require("timers"),gp=B4();fD.get=mp});var cD=V((mD)=>{async function cp(J){const{status:Z,body:$}=J,X=(()=>{try{return JSON.parse($)}catch{throw new E4.MongoCryptAzureKMSRequestError("Malformed JSON body in GET request.")}})();if(Z!==200)throw new E4.MongoCryptAzureKMSRequestError("Unable to complete request.",X);if(!X.access_token)throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - missing field `access_token`.");if(!X.expires_in)throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - missing field `expires_in`.");const Y=Number(X.expires_in)*1000;if(Number.isNaN(Y))throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - unable to parse int from `expires_in` field.");return{accessToken:X.access_token,expiresOnTimestamp:Date.now()+Y}}var bD=function(J){const Z=new URL(J.url?.toString()??"http://169.254.169.254/metadata/identity/oauth2/token");return Z.searchParams.append("api-version","2018-02-01"),Z.searchParams.append("resource","https://vault.azure.net"),{headers:{...J.headers,"Content-Type":"application/json",Metadata:!0},url:Z}};async function gD(J={}){const{headers:Z,url:$}=bD(J),X=await up.get($,{headers:Z}).catch((Y)=>{if(Y instanceof E4.MongoCryptKMSRequestNetworkTimeoutError)throw new E4.MongoCryptAzureKMSRequestError(`[Azure KMS] ${Y.message}`);throw Y});return cp(X)}async function pp(J){const Z=await mD.tokenCache.getToken();return{...J,azure:Z}}Object.defineProperty(mD,"__esModule",{value:!0});mD.loadAzureCredentials=mD.fetchAzureKMSToken=mD.prepareRequest=mD.tokenCache=mD.AzureCredentialCache=void 0;var E4=B4(),up=xD(),dp=6000;class HQ{constructor(){this.cachedToken=null}async getToken(){if(this.cachedToken==null||this.needsRefresh(this.cachedToken))this.cachedToken=await this._getToken();return{accessToken:this.cachedToken.accessToken}}needsRefresh(J){return J.expiresOnTimestamp-Date.now()<=dp}resetCache(){this.cachedToken=null}_getToken(){return gD()}}mD.AzureCredentialCache=HQ;mD.tokenCache=new HQ;mD.prepareRequest=bD;mD.fetchAzureKMSToken=gD;mD.loadAzureCredentials=pp});var aD=V((pD)=>{async function np(J){const Z=sp.getGcpMetadata();if("kModuleError"in Z)return J;const{access_token:$}=await Z.instance({property:"service-accounts/default/token"});return{...J,gcp:{accessToken:$}}}Object.defineProperty(pD,"__esModule",{value:!0});pD.loadGCPCredentials=void 0;var sp=H6();pD.loadGCPCredentials=np});var VQ=V((iD)=>{var TZ=function(J,Z){const $=Z[J];if($==null)return!1;return typeof $==="object"&&Object.keys($).length===0};async function ep(J){let Z=J;if(TZ("aws",J))Z=await tp.loadAWSCredentials(Z);if(TZ("gcp",J))Z=await op.loadGCPCredentials(Z);if(TZ("azure",J))Z=await rp.loadAzureCredentials(Z);return Z}Object.defineProperty(iD,"__esModule",{value:!0});iD.refreshKMSCredentials=iD.isEmptyCredentials=void 0;var tp=_D(),rp=cD(),op=aD();iD.isEmptyCredentials=TZ;iD.refreshKMSCredentials=ep});var zQ=V((QP)=>{var Yl=function(){if(F9==null){const J=Xl.getSocks();if("kModuleError"in J)throw J.kModuleError;F9=J}return F9},tD=function(J){if(process.env.MONGODB_CRYPT_DEBUG)console.error(J)};Object.defineProperty(QP,"__esModule",{value:!0});QP.StateMachine=void 0;var nD=import.meta.require("fs/promises"),Zl=import.meta.require("net"),$l=import.meta.require("tls"),K8=H1(),Xl=H6(),IZ=y(),c8=B4(),F9=null,NZ=0,rD=1,oD=2,eD=3,JP=7,ZP=4,$P=5,XP=6,Ql=443,Kl=new Map([[NZ,"MONGOCRYPT_CTX_ERROR"],[rD,"MONGOCRYPT_CTX_NEED_MONGO_COLLINFO"],[oD,"MONGOCRYPT_CTX_NEED_MONGO_MARKINGS"],[eD,"MONGOCRYPT_CTX_NEED_MONGO_KEYS"],[JP,"MONGOCRYPT_CTX_NEED_KMS_CREDENTIALS"],[ZP,"MONGOCRYPT_CTX_NEED_KMS"],[$P,"MONGOCRYPT_CTX_READY"],[XP,"MONGOCRYPT_CTX_DONE"]]),Gl=["tlsInsecure","tlsAllowInvalidCertificates","tlsAllowInvalidHostnames","tlsDisableOCSPEndpointCheck","tlsDisableCertificateRevocationCheck"];class YP{constructor(J,Z=K8.pluckBSONSerializeOptions(J)){this.options=J,this.bsonOptions=Z}async execute(J,Z){const{_keyVaultNamespace:$,_keyVaultClient:X,_metaDataClient:Y,_mongocryptdClient:Q,_mongocryptdManager:K}=J;let G=null;while(Z.state!==XP&&Z.state!==NZ)switch(tD(`[context#${Z.id}] ${Kl.get(Z.state)||Z.state}`),Z.state){case rD:{const F=K8.deserialize(Z.nextMongoOperation());if(!Y)throw new c8.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_COLLINFO but metadata client is undefined");const q=await this.fetchCollectionInfo(Y,Z.ns,F);if(q)Z.addMongoOperationResponse(q);Z.finishMongoOperation();break}case oD:{const F=Z.nextMongoOperation();if(!Q)throw new c8.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_MARKINGS but mongocryptdClient is undefined");const q=K?await K.withRespawn(this.markCommand.bind(this,Q,Z.ns,F)):await this.markCommand(Q,Z.ns,F);Z.addMongoOperationResponse(q),Z.finishMongoOperation();break}case eD:{const F=Z.nextMongoOperation(),q=await this.fetchKeys(X,$,F);if(q.length===0)G={v:[]};for await(let W of q)Z.addMongoOperationResponse(K8.serialize(W));Z.finishMongoOperation();break}case JP:{const F=await J.askForKMSCredentials();Z.provideKMSProviders(K8.serialize(F));break}case ZP:{const F=Array.from(this.requests(Z));await Promise.all(F),Z.finishKMSRequests();break}case $P:{const F=Z.finalize();if(Z.state===NZ){const q=Z.status.message||"Finalization error";throw new c8.MongoCryptError(q)}G=K8.deserialize(F,this.options);break}default:throw new c8.MongoCryptError(`Unknown state: ${Z.state}`)}if(Z.state===NZ||G==null){const F=Z.status.message;if(!F)tD("unidentifiable error in MongoCrypt - received an error status from \`libmongocrypt\` but received no error message.");throw new c8.MongoCryptError(F??"unidentifiable error in MongoCrypt - received an error status from `libmongocrypt` but received no error message.")}return G}kmsRequest(J){const Z=J.endpoint.split(":"),$=Z[1]!=null?Number.parseInt(Z[1],10):Ql,X={host:Z[0],servername:Z[0],port:$},Y=J.message;return new Promise(async(Q,K)=>{const G=new IZ.BufferPool;let F,q;function W(){for(let z of[F,q])if(z)z.removeAllListeners(),z.destroy()}function H(){W(),K(new c8.MongoCryptError("KMS request timed out"))}function U(z){W();const A=new c8.MongoCryptError("KMS request failed",{cause:z});K(A)}if(this.options.proxyOptions&&this.options.proxyOptions.proxyHost){q=Zl.connect({host:this.options.proxyOptions.proxyHost,port:this.options.proxyOptions.proxyPort||1080}),q.on("timeout",H),q.on("error",U);try{await import.meta.require("events").once(q,"connect"),F9??=Yl(),X.socket=(await F9.SocksClient.createConnection({existing_socket:q,command:"connect",destination:{host:X.host,port:X.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:this.options.proxyOptions.proxyUsername,password:this.options.proxyOptions.proxyPassword}})).socket}catch(z){return U(z)}}const j=this.options.tlsOptions;if(j){const z=J.kmsProvider,A=j[z];if(A){const T=this.validateTlsOptions(z,A);if(T)K(T);try{await this.setTlsOptions(A,X)}catch(w){return U(w)}}}F=$l.connect(X,()=>{F.write(Y)}),F.once("timeout",H),F.once("error",U),F.on("data",(z)=>{G.append(z);while(J.bytesNeeded>0&&G.length){const A=Math.min(J.bytesNeeded,G.length);J.addResponse(G.read(A))}if(J.bytesNeeded<=0)W(),Q()})})}*requests(J){for(let Z=J.nextKMSRequest();Z!=null;Z=J.nextKMSRequest())yield this.kmsRequest(Z)}validateTlsOptions(J,Z){const $=Object.keys(Z);for(let X of Gl)if($.includes(X))return new c8.MongoCryptError(`Insecure TLS options prohibited for ${J}: ${X}`)}async setTlsOptions(J,Z){if(J.tlsCertificateKeyFile){const $=await nD.readFile(J.tlsCertificateKeyFile);Z.cert=Z.key=$}if(J.tlsCAFile)Z.ca=await nD.readFile(J.tlsCAFile);if(J.tlsCertificateKeyFilePassword)Z.passphrase=J.tlsCertificateKeyFilePassword}async fetchCollectionInfo(J,Z,$){const{db:X}=IZ.MongoDBCollectionNamespace.fromString(Z),Y=await J.db(X).listCollections($,{promoteLongs:!1,promoteValues:!1}).toArray();return Y.length>0?K8.serialize(Y[0]):null}async markCommand(J,Z,$){const X={promoteLongs:!1,promoteValues:!1},{db:Y}=IZ.MongoDBCollectionNamespace.fromString(Z),Q=K8.deserialize($,X),K=await J.db(Y).command(Q,X);return K8.serialize(K,this.bsonOptions)}fetchKeys(J,Z,$){const{db:X,collection:Y}=IZ.MongoDBCollectionNamespace.fromString(Z);return J.db(X).collection(Y,{readConcern:{level:"majority"}}).find(K8.deserialize($)).toArray()}}QP.StateMachine=YP});var MQ=V((HP)=>{var WP=function(J,Z,$=!0){if($){if(Buffer.isBuffer(Z))Z=E7.deserialize(Z);if(Buffer.isBuffer(J))throw new BZ.MongoRuntimeError("Expected result of decryption to be deserialized BSON object")}if(!J||typeof J!=="object")return;for(let X of Object.keys(J)){const Y=Z[X];if(Y&&Y._bsontype==="Binary"&&Y.sub_type===6){if(!J[UQ])Object.defineProperty(J,UQ,{value:[],configurable:!0,enumerable:!1,writable:!1});J[UQ].push(X);continue}WP(J[X],Y,!1)}},FP;Object.defineProperty(HP,"__esModule",{value:!0});HP.AutoEncrypter=HP.AutoEncryptionLoggerLevel=void 0;var E7=H1(),Fl=H6(),BZ=E(),ql=C4(),Wl=y(),Hl=qQ(),Vl=B4(),zl=OD(),Ul=VQ(),GP=zQ();HP.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4});var qP=Symbol.for("@@mdb.decorateDecryptionResult"),UQ=Symbol.for("@@mdb.decryptedKeys");class EZ{static getMongoCrypt(){const J=Fl.getMongoDBClientEncryption();if("kModuleError"in J)throw J.kModuleError;return J.MongoCrypt}constructor(J,Z){this[FP]=!1,this._client=J,this._bypassEncryption=Z.bypassAutoEncryption===!0,this._keyVaultNamespace=Z.keyVaultNamespace||"admin.datakeys",this._keyVaultClient=Z.keyVaultClient||J,this._metaDataClient=Z.metadataClient||J,this._proxyOptions=Z.proxyOptions||{},this._tlsOptions=Z.tlsOptions||{},this._kmsProviders=Z.kmsProviders||{};const $={cryptoCallbacks:Hl};if(Z.schemaMap)$.schemaMap=Buffer.isBuffer(Z.schemaMap)?Z.schemaMap:E7.serialize(Z.schemaMap);if(Z.encryptedFieldsMap)$.encryptedFieldsMap=Buffer.isBuffer(Z.encryptedFieldsMap)?Z.encryptedFieldsMap:E7.serialize(Z.encryptedFieldsMap);if($.kmsProviders=!Buffer.isBuffer(this._kmsProviders)?E7.serialize(this._kmsProviders):this._kmsProviders,Z.options?.logger)$.logger=Z.options.logger;if(Z.extraOptions&&Z.extraOptions.cryptSharedLibPath)$.cryptSharedLibPath=Z.extraOptions.cryptSharedLibPath;if(Z.bypassQueryAnalysis)$.bypassQueryAnalysis=Z.bypassQueryAnalysis;if(this._bypassMongocryptdAndCryptShared=this._bypassEncryption||!!Z.bypassQueryAnalysis,Z.extraOptions&&Z.extraOptions.cryptSharedLibSearchPaths)$.cryptSharedLibSearchPaths=Z.extraOptions.cryptSharedLibSearchPaths;else if(!this._bypassMongocryptdAndCryptShared)$.cryptSharedLibSearchPaths=["$SYSTEM"];const X=EZ.getMongoCrypt();if(this._mongocrypt=new X($),this._contextCounter=0,Z.extraOptions&&Z.extraOptions.cryptSharedLibRequired&&!this.cryptSharedLibVersionInfo)throw new Vl.MongoCryptInvalidArgumentError("`cryptSharedLibRequired` set but no crypt_shared library loaded");if(!this._bypassMongocryptdAndCryptShared&&!this.cryptSharedLibVersionInfo){this._mongocryptdManager=new zl.MongocryptdManager(Z.extraOptions);const Y={serverSelectionTimeoutMS:1e4};if(Z.extraOptions==null||typeof Z.extraOptions.mongocryptdURI!=="string")Y.family=4;this._mongocryptdClient=new ql.MongoClient(this._mongocryptdManager.uri,Y)}}async init(){if(this._bypassMongocryptdAndCryptShared||this.cryptSharedLibVersionInfo)return;if(!this._mongocryptdManager)throw new BZ.MongoRuntimeError("Reached impossible state: mongocryptdManager is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdClient)throw new BZ.MongoRuntimeError("Reached impossible state: mongocryptdClient is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdManager.bypassSpawn)await this._mongocryptdManager.spawn();try{return await this._mongocryptdClient.connect()}catch(J){const{message:Z}=J;if(Z&&(Z.match(/timed out after/)||Z.match(/ENOTFOUND/)))throw new BZ.MongoRuntimeError("Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn",{cause:J});throw J}}async teardown(J){await this._mongocryptdClient?.close(J)}async encrypt(J,Z,$={}){if(this._bypassEncryption)return Z;const X=Buffer.isBuffer(Z)?Z:E7.serialize(Z,$),Y=this._mongocrypt.makeEncryptionContext(Wl.MongoDBCollectionNamespace.fromString(J).db,X);return Y.id=this._contextCounter++,Y.ns=J,Y.document=Z,new GP.StateMachine({promoteValues:!1,promoteLongs:!1,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}).execute(this,Y)}async decrypt(J,Z={}){const $=Buffer.isBuffer(J)?J:E7.serialize(J,Z),X=this._mongocrypt.makeDecryptionContext($);X.id=this._contextCounter++;const Y=new GP.StateMachine({...Z,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),Q=this[qP],K=await Y.execute(this,X);if(Q)WP(K,J);return K}async askForKMSCredentials(){return Ul.refreshKMSCredentials(this._kmsProviders)}get cryptSharedLibVersionInfo(){return this._mongocrypt.cryptSharedLibVersionInfo}static get libmongocryptVersion(){return EZ.getMongoCrypt().libmongocryptVersion}}HP.AutoEncrypter=EZ;FP=qP});var AP=V((MP)=>{Object.defineProperty(MP,"__esModule",{value:!0});MP.Encrypter=void 0;var jl=import.meta.require("util"),Al=MQ(),Ll=v1(),wl=H6(),zP=E(),Rl=C4(),q9=Symbol("internalClient");class UP{constructor(J,Z,$){if(typeof $.autoEncryption!=="object")throw new zP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[q9]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=J;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(J,Z,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=J;else $.autoEncryption.metadataClient=this.getInternalClient(J,Z,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new Al.AutoEncrypter(J,$.autoEncryption)}getInternalClient(J,Z,$){let X=this[q9];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 Rl.MongoClient(Z,Y),this[q9]=X;for(let Q of Ll.MONGO_CLIENT_EVENTS)for(let K of J.listeners(Q))X.on(Q,K);J.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const J=this[q9];if(this.needsConnecting&&J!=null)this.needsConnecting=!1,await J.connect()}closeCallback(J,Z,$){jl.callbackify(this.close.bind(this))(J,Z,$)}async close(J,Z){const $=await this.autoEncrypter.teardown(!!Z).catch((Y)=>Y),X=this[q9];if(X!=null&&J!==X)return X.close(Z);if($)throw $}static checkForMongoCrypt(){if("kModuleError"in wl.getMongoDBClientEncryption())throw new zP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project")}}MP.Encrypter=UP});var RQ=V((DP)=>{var LP=function(J){const Z=Object.values(DP.SeverityLevel),$=J?.toLowerCase();if($!=null&&Z.includes($))return $;return null},h7=function(J){return{write:(Z)=>{J.write(Pl.inspect(Z,{compact:!0,breakLength:Infinity}),"utf-8");return}}},Tl=function({MONGODB_LOG_PATH:J},{mongodbLogPath:Z}){if(typeof Z==="string"&&/^stderr$/i.test(Z))return h7(process.stderr);if(typeof Z==="string"&&/^stdout$/i.test(Z))return h7(process.stdout);if(typeof Z==="object"&&typeof Z?.write==="function")return Z;if(J&&/^stderr$/i.test(J))return h7(process.stderr);if(J&&/^stdout$/i.test(J))return h7(process.stdout);return h7(process.stderr)},C7=function(J,Z,$){return LP(J)??LP(Z)??$},Il=function(J,Z){const $=DP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J),X=DP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z);return $<X?-1:$>X?1:0},AQ=function(J,Z){const $=Dl.EJSON.stringify(J);return Z!==0&&$.length>Z?`${$.slice(0,Z)}...`:$},Nl=function(J){const Z=J;return Z.toLog!==void 0&&typeof Z.toLog==="function"},jQ=function(J,Z){J.commandName=Z.commandName,J.requestId=Z.requestId,J.driverConnectionId=Z?.connectionId;const{host:$,port:X}=wQ.HostAddress.fromString(Z.address).toHostPort();if(J.serverHost=$,J.serverPort=X,Z?.serviceId)J.serviceId=Z.serviceId.toHexString();return J},z6=function(J,Z){const{host:$,port:X}=wQ.HostAddress.fromString(Z.address).toHostPort();return J.serverHost=$,J.serverPort=X,J},Bl=function(J,Z=DP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(J.name){case D0.COMMAND_STARTED:return $=jQ($,J),$.message="Command started",$.command=AQ(J.command,Z),$.databaseName=J.databaseName,$;case D0.COMMAND_SUCCEEDED:return $=jQ($,J),$.message="Command succeeded",$.durationMS=J.duration,$.reply=AQ(J.reply,Z),$;case D0.COMMAND_FAILED:return $=jQ($,J),$.message="Command failed",$.durationMS=J.duration,$.failure=J.failure,$;case D0.CONNECTION_POOL_CREATED:if($=z6($,J),$.message="Connection pool created",J.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=J.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case D0.CONNECTION_POOL_READY:return $=z6($,J),$.message="Connection pool ready",$;case D0.CONNECTION_POOL_CLEARED:if($=z6($,J),$.message="Connection pool cleared",J.serviceId?._bsontype==="ObjectId")$.serviceId=J.serviceId.toHexString();return $;case D0.CONNECTION_POOL_CLOSED:return $=z6($,J),$.message="Connection pool closed",$;case D0.CONNECTION_CREATED:return $=z6($,J),$.message="Connection created",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_READY:return $=z6($,J),$.message="Connection ready",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_CLOSED:switch($=z6($,J),$.message="Connection closed",$.driverConnectionId=J.connectionId,J.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",J.error)$.error=J.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${J.reason}`}return $;case D0.CONNECTION_CHECK_OUT_STARTED:return $=z6($,J),$.message="Connection checkout started",$;case D0.CONNECTION_CHECK_OUT_FAILED:switch($=z6($,J),$.message="Connection checkout failed",J.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",J.error)$.error=J.error;break;default:$.reason=`Unknown close reason: ${J.reason}`}return $;case D0.CONNECTION_CHECKED_OUT:return $=z6($,J),$.message="Connection checked out",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_CHECKED_IN:return $=z6($,J),$.message="Connection checked in",$.driverConnectionId=J.connectionId,$;default:for(let[X,Y]of Object.entries(J))if(Y!=null)$[X]=Y}return $};Object.defineProperty(DP,"__esModule",{value:!0});DP.MongoLogger=DP.stringifyWithMaxLen=DP.createStdioLogger=DP.MongoLoggableComponent=DP.SEVERITY_LEVEL_MAP=DP.DEFAULT_MAX_DOCUMENT_LENGTH=DP.SeverityLevel=void 0;var Dl=L5(),Pl=import.meta.require("util"),D0=v1(),wQ=y();DP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});DP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class wP extends Map{constructor(J){const Z=[];for(let[$,X]of J)Z.push([X,$]);Z.push(...J);super(Z)}getNumericSeverityLevel(J){return this.get(J)}getSeverityLevelName(J){return this.get(J)}}DP.SEVERITY_LEVEL_MAP=new wP([[DP.SeverityLevel.OFF,(-Infinity)],[DP.SeverityLevel.EMERGENCY,0],[DP.SeverityLevel.ALERT,1],[DP.SeverityLevel.CRITICAL,2],[DP.SeverityLevel.ERROR,3],[DP.SeverityLevel.WARNING,4],[DP.SeverityLevel.NOTICE,5],[DP.SeverityLevel.INFORMATIONAL,6],[DP.SeverityLevel.DEBUG,7],[DP.SeverityLevel.TRACE,8]]);DP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection",CLIENT:"client"});DP.createStdioLogger=h7;DP.stringifyWithMaxLen=AQ;class RP{constructor(J){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=J.componentSeverities,this.maxDocumentLength=J.maxDocumentLength,this.logDestination=J.logDestination}log(J,Z,$){if(Il(J,this.componentSeverities[Z])>0)return;let X={t:new Date,c:Z,s:J};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Nl($))X={...X,...$.toLog()};else X={...X,...Bl($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(J,Z){const $={...J,...Z,mongodbLogPath:Tl(J,Z)},X=C7($.mongodbLogComponentSeverities?.default,$.MONGODB_LOG_ALL,DP.SeverityLevel.OFF);return{componentSeverities:{command:C7($.mongodbLogComponentSeverities?.command,$.MONGODB_LOG_COMMAND,X),topology:C7($.mongodbLogComponentSeverities?.topology,$.MONGODB_LOG_TOPOLOGY,X),serverSelection:C7($.mongodbLogComponentSeverities?.serverSelection,$.MONGODB_LOG_SERVER_SELECTION,X),connection:C7($.mongodbLogComponentSeverities?.connection,$.MONGODB_LOG_CONNECTION,X),client:C7($.mongodbLogComponentSeverities?.client,$.MONGODB_LOG_CLIENT,X),default:X},maxDocumentLength:$.mongodbLogMaxDocumentLength??wQ.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}DP.MongoLogger=RP});var hP=V((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.MongoCR=void 0;var IP=import.meta.require("crypto"),Sl=E(),NP=y(),Ol=Y8();class BP extends Ol.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new Sl.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await Z.commandAsync(NP.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=IP.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),F=IP.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),q={authenticate:1,user:X,nonce:K,key:F};await Z.commandAsync(NP.ns(`${Q}.\$cmd`),q,void 0)}}EP.MongoCR=BP});var yP=V((OP)=>{async function ml(J){function Z($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new h4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new fl.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:J.source,mechanism:vl.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(S4.credentialProvider??=CZ.getAwsCredentialProvider(),"kModuleError"in S4.credentialProvider){if(DQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return Z(await G8.request(`${gl}${DQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await G8.request(`${TQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await G8.request(`${TQ}/${SP}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await G8.request(`${TQ}/${SP}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return Z(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=DQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!xl.has(X),K=Y&&Q?S4.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):S4.credentialProvider.fromNodeProviderChain();try{const G=await K();return Z({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new h4.MongoAWSError(G.message)}}}var ul=function(J){const Z=J.split(".");if(Z.length===1||Z[1]==="amazonaws")return"us-east-1";return Z[1]};Object.defineProperty(OP,"__esModule",{value:!0});OP.MongoDBAWS=void 0;var kl=import.meta.require("crypto"),DQ=import.meta.require("process"),yl=import.meta.require("util"),PQ=H1(),CZ=H6(),h4=E(),G8=y(),_l=Y8(),fl=KZ(),vl=O6(),xl=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"]),bl=110,gl="http://169.254.170.2",TQ="http://169.254.169.254",SP="/latest/meta-data/iam/security-credentials",IQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class S4 extends _l.AuthProvider{constructor(){super();this.randomBytesAsync=yl.promisify(kl.randomBytes)}async auth(J){const{connection:Z}=J;if(!J.credentials)throw new h4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in CZ.aws4)throw CZ.aws4.kModuleError;const{sign:$}=CZ.aws4;if(G8.maxWireVersion(Z)<9)throw new h4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!J.credentials.username)J.credentials=await ml(J.credentials);const{credentials:X}=J,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,q=await this.randomBytesAsync(32),W={saslStart:1,mechanism:"MONGODB-AWS",payload:PQ.serialize({r:q,p:bl},IQ)},H=await Z.commandAsync(G8.ns(`${F}.\$cmd`),W,void 0),U=PQ.deserialize(H.payload.buffer,IQ),j=U.h,z=U.s.buffer;if(z.length!==64)throw new h4.MongoRuntimeError(`Invalid server nonce length ${z.length}, expected 64`);if(!G8.ByteUtils.equals(z.subarray(0,q.byteLength),q))throw new h4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new h4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const A="Action=GetCallerIdentity&Version=2011-06-15",T=$({method:"POST",host:j,region:ul(U.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":A.length,"X-MongoDB-Server-Nonce":G8.ByteUtils.toBase64(z),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:A},G),w={a:T.headers.Authorization,d:T.headers["X-Amz-Date"]};if(K)w.t=K;const N={saslContinue:1,conversationId:1,payload:PQ.serialize(w,IQ)};await Z.commandAsync(G8.ns(`${F}.\$cmd`),N,void 0)}}S4.credentialProvider=null;OP.MongoDBAWS=S4});var BQ=V((fP)=>{var NQ=function(J){return{saslStart:1,mechanism:pl.AuthMechanism.MONGODB_OIDC,payload:dl.BSON.serialize({jwt:J})}};Object.defineProperty(fP,"__esModule",{value:!0});fP.commandDocument=fP.ServiceWorkflow=void 0;var dl=L5(),cl=y(),pl=O6();class _P{async execute(J,Z){const $=await this.getToken(Z),X=NQ($);return J.commandAsync(cl.ns(Z.source),X,void 0)}async speculativeAuth(J){const Z=await this.getToken(J),$=NQ(Z);return $.db=J.source,{speculativeAuthenticate:$}}}fP.ServiceWorkflow=_P;fP.commandDocument=NQ});var mP=V((bP)=>{Object.defineProperty(bP,"__esModule",{value:!0});bP.AwsServiceWorkflow=void 0;var al=import.meta.require("fs"),il=E(),sl=BQ(),nl="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class xP extends sl.ServiceWorkflow{constructor(){super()}async getToken(){const J=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!J)throw new il.MongoAWSError(nl);return al.promises.readFile(J,"utf8")}}bP.AwsServiceWorkflow=xP});var hZ=V((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.Cache=cP.ExpiringCacheEntry=void 0;var tl=300000;class uP{constructor(J){this.expiration=this.expirationTime(J)}isValid(){return this.expiration-Date.now()>tl}expirationTime(J){return Date.now()+J*1000}}cP.ExpiringCacheEntry=uP;class dP{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(J,Z,$){return JSON.stringify([J,Z,$])}}cP.Cache=dP});var nP=V((iP)=>{Object.defineProperty(iP,"__esModule",{value:!0});iP.AzureTokenCache=iP.AzureTokenEntry=void 0;var lP=hZ();class EQ extends lP.ExpiringCacheEntry{constructor(J,Z){super(Z);this.token=J}}iP.AzureTokenEntry=EQ;class aP extends lP.Cache{addEntry(J,Z){const $=new EQ(Z.access_token,Z.expires_in);return this.entries.set(J,$),$}cacheKey(J){return J}deleteEntry(J){this.entries.delete(J)}getEntry(J){return this.entries.get(J)}}iP.AzureTokenCache=aP});var JT=V((oP)=>{async function Ka(J){const Z=`${$a}&resource=${J}`;return await el.request(Z,{json:!0,headers:Xa})}var Ga=function(J){if(J==null||typeof J!=="object")return!1;return"access_token"in J&&"expires_in"in J};Object.defineProperty(oP,"__esModule",{value:!0});oP.AzureServiceWorkflow=void 0;var tP=E(),el=y(),Ja=nP(),Za=BQ(),$a="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",Xa=Object.freeze({Metadata:"true",Accept:"application/json"}),Ya="Azure endpoint did not return a value with only access_token and expires_in properties",Qa="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class rP extends Za.ServiceWorkflow{constructor(){super(...arguments);this.cache=new Ja.AzureTokenCache}async getToken(J){const Z=J?.mechanismProperties.TOKEN_AUDIENCE;if(!Z)throw new tP.MongoAzureError(Qa);let $;const X=this.cache.getEntry(Z);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(Z);const Y=await Ka(Z);if(!Ga(Y))throw new tP.MongoAzureError(Ya);this.cache.addEntry(Z,Y),$=Y.access_token}return $}}oP.AzureServiceWorkflow=rP});var KT=V((YT)=>{var ZT=function(J){let Z=Promise.resolve();return async($,X)=>{return await Z,Z=Z.then(()=>J($,X)),Z}},Ha=function(J,Z){let $=W9.get(J),X=W9.get(Z??$T);if($==null)O4++,$=O4,W9.set(J,O4);if(X==null&&Z)O4++,X=O4,W9.set(Z,O4);return`${$}-${X}`};Object.defineProperty(YT,"__esModule",{value:!0});YT.CallbackLockCache=void 0;var Fa=E(),qa=hZ(),Wa="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",O4=0,$T=async()=>({accessToken:"test"}),W9=new WeakMap;W9.set($T,O4);class XT extends qa.Cache{getEntry(J,Z){const $=Z.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=Z.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new Fa.MongoInvalidArgumentError(Wa);const Y=Ha($,X),Q=this.cacheKey(J.address,Z.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(J,Z,$,X){const Y={requestCallback:ZT($),refreshCallback:X?ZT(X):void 0,callbackHash:Z};return this.entries.set(J,Y),Y}cacheKey(J,Z,$){return this.hashedCacheKey(J,Z,$)}}YT.CallbackLockCache=XT});var HT=V((qT)=>{Object.defineProperty(qT,"__esModule",{value:!0});qT.TokenEntryCache=qT.TokenEntry=void 0;var GT=hZ(),Va=0;class CQ extends GT.ExpiringCacheEntry{constructor(J,Z,$){super($);this.tokenResult=J,this.serverInfo=Z}}qT.TokenEntry=CQ;class FT extends GT.Cache{addEntry(J,Z,$,X,Y){const Q=new CQ(X,Y,X.expiresInSeconds??Va);return this.entries.set(this.cacheKey(J,Z,$),Q),Q}deleteEntry(J,Z,$){this.entries.delete(this.cacheKey(J,Z,$))}getEntry(J,Z,$){return this.entries.get(this.cacheKey(J,Z,$))}deleteExpiredEntries(){for(let[J,Z]of this.entries)if(!Z.isValid())this.entries.delete(J)}cacheKey(J,Z,$){return this.hashedCacheKey(J,Z,$)}}qT.TokenEntryCache=FT});var LT=V((jT)=>{var Ra=function(J,Z){if(Z!=null&&typeof Z==="number")return{saslContinue:1,conversationId:Z,payload:new k4.Binary(k4.BSON.serialize({jwt:J}))};return{saslStart:1,mechanism:UT.AuthMechanism.MONGODB_OIDC,payload:new k4.Binary(k4.BSON.serialize({jwt:J}))}},Da=function(J){if(J==null||typeof J!=="object")return!0;if(!("accessToken"in J))return!0;return!Object.getOwnPropertyNames(J).every((Z)=>La.includes(Z))},zT=function(J){const Z={};if(J.username)Z.n=J.username;return{saslStart:1,autoAuthorize:1,mechanism:UT.AuthMechanism.MONGODB_OIDC,payload:new k4.Binary(k4.BSON.serialize(Z))}};Object.defineProperty(jT,"__esModule",{value:!0});jT.CallbackWorkflow=void 0;var k4=L5(),hQ=E(),VT=y(),UT=O6(),Ua=KT(),Ma=HT(),ja=0,Aa=300,La=["accessToken","expiresInSeconds","refreshToken"],wa="User provided OIDC callbacks must return a valid object with an accessToken.";class MT{constructor(){this.cache=new Ma.TokenEntryCache,this.callbackCache=new Ua.CallbackLockCache}async speculativeAuth(J){const Z=zT(J);return Z.db=J.source,{speculativeAuthenticate:Z}}async execute(J,Z,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(J,Z),G=this.cache.getEntry(J.address,Z.username,K);let F;if(G)if(G.isValid()&&!$)F=await this.finishAuthentication(J,Z,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const q=await this.fetchAccessToken(J,Z,G.serverInfo,$,K,Y,Q);try{F=await this.finishAuthentication(J,Z,q,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(W){if($&&W instanceof hQ.MongoError&&W.code===hQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(J.address,Z.username,K),F=await this.execute(J,Z,$);else throw W}}else{const q=await this.startAuthentication(J,Z,$,X),W=q.conversationId,H=k4.BSON.deserialize(q.payload.buffer),U=await this.fetchAccessToken(J,Z,H,$,K,Y,Q);F=await this.finishAuthentication(J,Z,U,W)}return F}async startAuthentication(J,Z,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await J.commandAsync(VT.ns(Z.source),zT(Z),void 0);return Y}async finishAuthentication(J,Z,$,X){return await J.commandAsync(VT.ns(Z.source),Ra($.accessToken,X),void 0)}async fetchAccessToken(J,Z,$,X,Y,Q,K){const G=this.cache.getEntry(J.address,Z.username,Y);let F;const q={timeoutSeconds:Aa,version:ja};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)q.refreshToken=G.tokenResult.refreshToken,F=await K($,q);else F=await Q($,q)}else F=await Q($,q);if(Da(F))throw this.cache.deleteEntry(J.address,Z.username,Y),new hQ.MongoMissingCredentialsError(wa);return this.cache.deleteExpiredEntries(),this.cache.addEntry(J.address,Z.username||"",Y,F,$),F}}jT.CallbackWorkflow=MT});var NT=V((TT)=>{var wT=function(J){const{credentials:Z}=J;if(!Z)throw new DT.MongoMissingCredentialsError(Ba);return Z},RT=function(J){const Z=J.mechanismProperties.PROVIDER_NAME,$=TT.OIDC_WORKFLOWS.get(Z||"callback");if(!$)throw new DT.MongoInvalidArgumentError(`Could not load workflow for provider ${J.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(TT,"__esModule",{value:!0});TT.MongoDBOIDC=TT.OIDC_WORKFLOWS=void 0;var DT=E(),Pa=Y8(),Ta=mP(),Ia=JT(),Na=LT(),Ba="AuthContext must provide credentials.";TT.OIDC_WORKFLOWS=new Map;TT.OIDC_WORKFLOWS.set("callback",new Na.CallbackWorkflow);TT.OIDC_WORKFLOWS.set("aws",new Ta.AwsServiceWorkflow);TT.OIDC_WORKFLOWS.set("azure",new Ia.AzureServiceWorkflow);class PT extends Pa.AuthProvider{constructor(){super()}async auth(J){const{connection:Z,reauthenticating:$,response:X}=J,Y=wT(J);await RT(Y).execute(Z,Y,$,X)}async prepare(J,Z){const $=wT(Z),Y=await RT($).speculativeAuth($);return{...J,...Y}}}TT.MongoDBOIDC=PT});var hT=V((ET)=>{Object.defineProperty(ET,"__esModule",{value:!0});ET.Plain=void 0;var Ea=H1(),Ca=E(),ha=y(),Sa=Y8();class BT extends Sa.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new Ca.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Ea.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await Z.commandAsync(ha.ns("$external.$cmd"),K,void 0)}}ET.Plain=BT});var kT=V((N61,OT)=>{var F8=function(J,Z){if(!(this instanceof F8))return new F8(J,Z);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=J||1024,this.deduplicate=Z?Z.deduplicate:null,this.zeros=this.deduplicate?SZ(this.deduplicate.length):null},Oa=function(J,Z){while(J.maxPages<Z){var $=J.pages;J.pages=new Array(32768),J.pages[0]=$,J.level++,J.maxPages*=32768}},ka=function(J,Z){if(J.length===Z)return J;if(J.length>Z)return J.slice(0,Z);var $=SZ(Z);return J.copy($),$},SZ=function(J){if(Buffer.alloc)return Buffer.alloc(J);var Z=new Buffer(J);return Z.fill(0),Z},ya=function(J){var Z=Buffer.allocUnsafe?Buffer.allocUnsafe(J.length):new Buffer(J.length);return J.copy(Z),Z},ST=function(J,Z){this.offset=J*Z.length,this.buffer=Z,this.updated=!1,this.deduplicate=0},_a=function(J,Z){J=(J-(Z[0]=J&32767))/32768,J=(J-(Z[1]=J&32767))/32768,Z[3]=(J-(Z[2]=J&32767))/32768&32767};OT.exports=F8;F8.prototype.updated=function(J){while(this.deduplicate&&J.buffer[J.deduplicate]===this.deduplicate[J.deduplicate])if(J.deduplicate++,J.deduplicate===this.deduplicate.length){if(J.deduplicate=0,J.buffer.equals&&J.buffer.equals(this.deduplicate))J.buffer=this.deduplicate;break}if(J.updated||!this.updates)return;J.updated=!0,this.updates.push(J)};F8.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var J=this.updates.pop();return J.updated=!1,J};F8.prototype._array=function(J,Z){if(J>=this.maxPages){if(Z)return;Oa(this,J)}_a(J,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(Z)return;Q=$[Y]=new Array(32768)}$=Q}return $};F8.prototype.get=function(J,Z){var $=this._array(J,Z),X=this.path[0],Y=$&&$[X];if(!Y&&!Z){if(Y=$[X]=new ST(J,SZ(this.pageSize)),J>=this.length)this.length=J+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!Z)Y.buffer=ya(Y.buffer),Y.deduplicate=0;return Y};F8.prototype.set=function(J,Z){var $=this._array(J,!1),X=this.path[0];if(J>=this.length)this.length=J+1;if(!Z||this.zeros&&Z.equals&&Z.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&Z.equals&&Z.equals(this.deduplicate))Z=this.deduplicate;var Y=$[X],Q=ka(Z,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new ST(J,Q)};F8.prototype.toBuffer=function(){var J=new Array(this.length),Z=SZ(this.pageSize),$=0;while($<J.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<J.length;Y++)J[$++]=X&&X[Y]?X[Y].buffer:Z}return Buffer.concat(J)}});var _T=V((B61,yT)=>{var p8=function(J){if(!(this instanceof p8))return new p8(J);if(!J)J={};if(Buffer.isBuffer(J))J={buffer:J};if(this.pageOffset=J.pageOffset||0,this.pageSize=J.pageSize||1024,this.pages=J.pages||fa(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!xa(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!J.trackUpdates,this._pageMask=this.pageSize-1,J.buffer){for(var Z=0;Z<J.buffer.length;Z+=this.pageSize)this.pages.set(Z/this.pageSize,J.buffer.slice(Z,Z+this.pageSize));this.byteLength=J.buffer.length,this.length=8*this.byteLength}},va=function(J){if(Buffer.alloc)return Buffer.alloc(J);var Z=new Buffer(J);return Z.fill(0),Z},xa=function(J){return!(J&J-1)},fa=kT();yT.exports=p8;p8.prototype.get=function(J){var Z=J&7,$=(J-Z)/8;return!!(this.getByte($)&128>>Z)};p8.prototype.getByte=function(J){var Z=J&this._pageMask,$=(J-Z)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[Z+this.pageOffset]:0};p8.prototype.set=function(J,Z){var $=J&7,X=(J-$)/8,Y=this.getByte(X);return this.setByte(X,Z?Y|128>>$:Y&(255^128>>$))};p8.prototype.toBuffer=function(){var J=va(this.pages.length*this.pageSize);for(var Z=0;Z<this.pages.length;Z++){var $=this.pages.get(Z,!0),X=Z*this.pageSize;if($)$.buffer.copy(J,X,this.pageOffset,this.pageOffset+this.pageSize)}return J};p8.prototype.setByte=function(J,Z){var $=J&this._pageMask,X=(J-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===Z)return!1;if(Y.buffer[$]=Z,J>=this.byteLength)this.byteLength=J+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var vT=V((fT)=>{Object.defineProperty(fT,"__esModule",{value:!0});var ba=import.meta.require("zlib");fT.default=ba.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 gT=V((J0)=>{var S7=function(){const J=xT.default.readUInt32BE(V9);V9+=4;const Z=xT.default.slice(V9,V9+J);return V9+=J,ma.default({buffer:Z})},bT=J0&&J0.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(J0,"__esModule",{value:!0});J0.bidirectional_l=J0.bidirectional_r_al=J0.prohibited_characters=J0.non_ASCII_space_characters=J0.commonly_mapped_to_nothing=J0.unassigned_code_points=void 0;var ma=bT(_T()),xT=bT(vT()),V9=0;J0.unassigned_code_points=S7();J0.commonly_mapped_to_nothing=S7();J0.non_ASCII_space_characters=S7();J0.prohibited_characters=S7();J0.bidirectional_r_al=S7();J0.bidirectional_l=S7()});var cT=V((h61,dT)=>{var uT=function(J){const Z=[],$=J.length;for(let X=0;X<$;X+=1){const Y=J.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=J.charCodeAt(X+1);if(Q>=56320&&Q<=57343){Z.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}Z.push(Y)}return Z},z9=function(J,Z={}){if(typeof J!=="string")throw new TypeError("Expected string.");if(J.length===0)return"";const $=uT(J).map((W)=>ua.get(W)?32:W).filter((W)=>!da.get(W)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=uT(X);if(Y.some((W)=>l8.prohibited_characters.get(W)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(Z.allowUnassigned!==!0){if(Y.some((H)=>l8.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)=>l8.bidirectional_r_al.get(W)),G=Y.some((W)=>l8.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 F=l8.bidirectional_r_al.get(mT(ca(X))),q=l8.bidirectional_r_al.get(mT(pa(X)));if(K&&!(F&&q))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},l8=gT(),ua=l8.non_ASCII_space_characters,da=l8.commonly_mapped_to_nothing,mT=(J)=>J.codePointAt(0),ca=(J)=>J[0],pa=(J)=>J[J.length-1];z9.saslprep=z9;z9.default=z9;dT.exports=z9});var JI=V((oT)=>{var aT=function(J){return J.replace("=","=3D").replace(",","=2C")},iT=function(J,Z){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(J,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(Z.toString("base64"),"utf8")])},sT=function(J,Z,$){const X=aT(Z.username);return{saslStart:1,mechanism:J==="sha1"?pT.AuthMechanism.MONGODB_SCRAM_SHA1:pT.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new SQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),iT(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function sa(J,Z){const{connection:$,credentials:X}=Z;if(!X)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!Z.nonce)throw new U6.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=Z.nonce,Q=X.source,K=sT(J,X,Y),G=await $.commandAsync(OQ.ns(`${Q}.\$cmd`),K,void 0);await nT(J,G,Z)}async function nT(J,Z,$){const{connection:X,credentials:Y}=$;if(!Y)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new U6.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=aT(Y.username),F=Y.password,q=J==="sha256"?la.saslprep(F):na(G,F),W=Buffer.isBuffer(Z.payload)?new SQ.Binary(Z.payload):Z.payload,H=lT(W),U=parseInt(H.i,10);if(U&&U<4096)throw new U6.MongoRuntimeError(`Server returned an invalid iteration count ${U}`);const{s:j,r:z}=H;if(z.startsWith("nonce"))throw new U6.MongoRuntimeError(`Server returned an invalid nonce: ${z}`);const A=`c=biws,r=${z}`,T=Ji(q,Buffer.from(j,"base64"),U,J),w=OZ(J,T,"Client Key"),N=OZ(J,T,"Server Key"),P=ra(J,w),f=[iT(G,Q),W.toString("utf8"),A].join(","),$0=OZ(J,P,f),A8=`p=${ta(w,$0)}`,k=[A,A8].join(","),B=OZ(J,N,f),Q1={saslContinue:1,conversationId:Z.conversationId,payload:new SQ.Binary(Buffer.from(k))},g=await X.commandAsync(OQ.ns(`${K}.\$cmd`),Q1,void 0),_=lT(g.payload);if(!Zi(Buffer.from(_.v,"base64"),B))throw new U6.MongoRuntimeError("Server returned an invalid signature");if(g.done!==!1)return;const C={saslContinue:1,conversationId:g.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(OQ.ns(`${K}.\$cmd`),C,void 0)}var lT=function(J){const Z=J.toString("utf8"),$={},X=Z.split(",");for(let Y=0;Y<X.length;Y++){const Q=X[Y].split("=");$[Q[0]]=Q[1]}return $},na=function(J,Z){if(typeof J!=="string")throw new U6.MongoInvalidArgumentError("Username must be a string");if(typeof Z!=="string")throw new U6.MongoInvalidArgumentError("Password must be a string");if(Z.length===0)throw new U6.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=a8.createHash("md5")}catch(X){if(a8.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${J}:mongo:${Z}`,"utf8"),$.digest("hex")},ta=function(J,Z){if(!Buffer.isBuffer(J))J=Buffer.from(J);if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);const $=Math.max(J.length,Z.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(J[Y]^Z[Y]);return Buffer.from(X).toString("base64")},ra=function(J,Z){return a8.createHash(J).update(Z).digest()},OZ=function(J,Z,$){return a8.createHmac(J,Z).update($).digest()},oa=function(){kZ={},kQ=0},Ji=function(J,Z,$,X){const Y=[J,Z.toString("base64"),$].join("_");if(kZ[Y]!=null)return kZ[Y];const Q=a8.pbkdf2Sync(J,Z,$,ea[X],X);if(kQ>=200)oa();return kZ[Y]=Q,kQ+=1,Q},Zi=function(J,Z){if(J.length!==Z.length)return!1;if(typeof a8.timingSafeEqual==="function")return a8.timingSafeEqual(J,Z);let $=0;for(let X=0;X<J.length;X++)$|=J[X]^Z[X];return $===0};Object.defineProperty(oT,"__esModule",{value:!0});oT.ScramSHA256=oT.ScramSHA1=void 0;var la=cT(),a8=import.meta.require("crypto"),aa=import.meta.require("util"),SQ=H1(),U6=E(),OQ=y(),ia=Y8(),pT=O6();class yQ extends ia.AuthProvider{constructor(J){super();this.cryptoMethod=J||"sha1",this.randomBytesAsync=aa.promisify(a8.randomBytes)}async prepare(J,Z){const $=this.cryptoMethod,X=Z.credentials;if(!X)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");const Y=await this.randomBytesAsync(24);return Z.nonce=Y,{...J,speculativeAuthenticate:{...sT($,X,Y),db:X.source}}}async auth(J){const{reauthenticating:Z,response:$}=J;if($?.speculativeAuthenticate&&!Z)return nT(this.cryptoMethod,$.speculativeAuthenticate,J);return sa(this.cryptoMethod,J)}}var kZ={},kQ=0,ea={sha256:32,sha1:20};class tT extends yQ{constructor(){super("sha1")}}oT.ScramSHA1=tT;class rT extends yQ{constructor(){super("sha256")}}oT.ScramSHA256=rT});var KI=V((YI)=>{var $I=function(J){const Z={authenticate:1,mechanism:"MONGODB-X509"};if(J.username)Z.user=J.username;return Z};Object.defineProperty(YI,"__esModule",{value:!0});YI.X509=void 0;var ZI=E(),Xi=y(),Yi=Y8();class XI extends Yi.AuthProvider{async prepare(J,Z){const{credentials:$}=Z;if(!$)throw new ZI.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...J,speculativeAuthenticate:$I($)}}async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new ZI.MongoMissingCredentialsError("AuthContext must provide credentials.");if(J.response?.speculativeAuthenticate)return;await Z.commandAsync(Xi.ns("$external.$cmd"),$I($),void 0)}}YI.X509=XI});var bQ=V((zI)=>{var vQ=function(J){if(J instanceof qI.OpMsgRequest)return M6.deepCopy(J.command);if(J.query?.$query){let X;if(J.ns==="admin.$cmd")X=Object.assign({},J.query.$query);else X={find:Gi(J)},Object.keys(GI).forEach((Y)=>{if(J.query[Y]!=null)X[GI[Y]]=M6.deepCopy(J.query[Y])});if(Object.keys(FI).forEach((Y)=>{const Q=Y;if(J[Q]!=null)X[FI[Q]]=M6.deepCopy(J[Q])}),Fi.forEach((Y)=>{if(J[Y])X[Y]=J[Y]}),J.pre32Limit!=null)X.limit=J.pre32Limit;if(J.query.$explain)return{explain:X};return X}const Z={},$={};if(J.query){for(let X in J.query)Z[X]=M6.deepCopy(J.query[X]);$.query=Z}for(let X in J){if(X==="query")continue;$[X]=M6.deepCopy(J[X])}return J.query?Z:$},qi=function(J,Z){if(!Z)return Z;if(J instanceof qI.OpMsgRequest)return M6.deepCopy(Z.result?Z.result:Z);if(J.query&&J.query.$query!=null)return{ok:1,cursor:{id:M6.deepCopy(Z.cursorId),ns:Ki(J),firstBatch:M6.deepCopy(Z.documents)}};return M6.deepCopy(Z.result?Z.result:Z)},xQ=function(J){let Z;if("id"in J)Z=J.id;return{address:J.address,serviceId:J.serviceId,connectionId:Z}};Object.defineProperty(zI,"__esModule",{value:!0});zI.SENSITIVE_COMMANDS=zI.CommandFailedEvent=zI.CommandSucceededEvent=zI.CommandStartedEvent=void 0;var U9=v1(),M6=y(),qI=Y9();class WI{constructor(J,Z){this.name=U9.COMMAND_STARTED;const $=vQ(Z),X=_Q($),{address:Y,connectionId:Q,serviceId:K}=xQ(J);if(zI.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=Z.requestId,this.databaseName=Z.databaseName,this.commandName=X,this.command=fQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}zI.CommandStartedEvent=WI;class HI{constructor(J,Z,$,X){this.name=U9.COMMAND_SUCCEEDED;const Y=vQ(Z),Q=_Q(Y),{address:K,connectionId:G,serviceId:F}=xQ(J);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=Z.requestId,this.commandName=Q,this.duration=M6.calculateDurationInMs(X),this.reply=fQ(Q,Y,qi(Z,$))}get hasServiceId(){return!!this.serviceId}}zI.CommandSucceededEvent=HI;class VI{constructor(J,Z,$,X){this.name=U9.COMMAND_FAILED;const Y=vQ(Z),Q=_Q(Y),{address:K,connectionId:G,serviceId:F}=xQ(J);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=Z.requestId,this.commandName=Q,this.duration=M6.calculateDurationInMs(X),this.failure=fQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}zI.CommandFailedEvent=VI;zI.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var Qi=new Set(["hello",U9.LEGACY_HELLO_COMMAND,U9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),_Q=(J)=>Object.keys(J)[0],Ki=(J)=>J.ns,Gi=(J)=>J.ns.split(".")[1],fQ=(J,Z,$)=>zI.SENSITIVE_COMMANDS.has(J)||Qi.has(J)&&Z.speculativeAuthenticate?{}:$,GI={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},FI={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},Fi=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var LI=V((jI)=>{var j9=function(J,Z){const $=J[fZ],X=$.getInt32();if(X==null)return Z();if(X<0)return Z(new gQ.MongoParseError(`Invalid message size: ${X}`));if(X>J.maxBsonMessageSize)return Z(new gQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${J.maxBsonMessageSize}`));if(X>$.length)return Z();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(J.isMonitoringConnection){const W=$.getInt32();if(W!=null&&W<=$.length)return!0}return!1};let G=Q.opCode===_Z.OP_MSG?M9.OpMsgResponse:M9.OpQueryResponse;if(Q.opCode!==_Z.OP_COMPRESSED){const W=Y.subarray(i8);if(K())return j9(J,Z);if(J.emit("message",new G(Y,Q,W)),$.length>=4)return j9(J,Z);return Z()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(i8),Q.length=Y.readInt32LE(i8+4);const F=Y[i8+8],q=Y.slice(i8+9);G=Q.opCode===_Z.OP_MSG?M9.OpMsgResponse:M9.OpQueryResponse,mQ.decompress(F,q).then((W)=>{if(W.length!==Q.length)return Z(new gQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return j9(J,Z);if(J.emit("message",new G(Y,Q,W)),$.length>=4)return j9(J,Z);return Z()},(W)=>{return Z(W)})};Object.defineProperty(jI,"__esModule",{value:!0});jI.MessageStream=void 0;var zi=import.meta.require("stream"),gQ=E(),Ui=y(),M9=Y9(),mQ=N7(),_Z=h8(),i8=16,UI=9,Mi=67108864,fZ=Symbol("buffer");class MI extends zi.Duplex{constructor(J={}){super(J);this.isMonitoringConnection=!1,this.maxBsonMessageSize=J.maxBsonMessageSize||Mi,this[fZ]=new Ui.BufferPool}get buffer(){return this[fZ]}_write(J,Z,$){this[fZ].append(J),j9(this,$)}_read(){return}writeCommand(J,Z){const $=Z.agreedCompressor??"none";if($==="none"||!M9.OpCompressedRequest.canCompress(J)){const G=J.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(J.toBin()),Y=X.slice(i8),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:Z.zlibCompressionLevel??0};mQ.compress(K,Y).then((G)=>{const F=Buffer.alloc(i8);F.writeInt32LE(i8+UI+G.length,0),F.writeInt32LE(J.requestId,4),F.writeInt32LE(0,8),F.writeInt32LE(_Z.OP_COMPRESSED,12);const q=Buffer.alloc(UI);q.writeInt32LE(Q,0),q.writeInt32LE(Y.length,4),q.writeUInt8(mQ.Compressor[$],8),this.push(Buffer.concat([F,q,G]))},(G)=>{Z.cb(G)})}}jI.MessageStream=MI});var PI=V((RI)=>{Object.defineProperty(RI,"__esModule",{value:!0});RI.StreamDescription=void 0;var ji=d0(),Ai=x5(),Li=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class wI{constructor(J,Z){this.address=J,this.type=ji.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=Z?.logicalSessionTimeoutMinutes,this.loadBalanced=!!Z?.loadBalanced,this.compressors=Z&&Z.compressors&&Array.isArray(Z.compressors)?Z.compressors:[]}receiveResponse(J){if(J==null)return;this.type=Ai.parseServerType(J);for(let Z of Li){if(J[Z]!=null)this[Z]=J[Z];if("__nodejs_mock_server__"in J)this.__nodejs_mock_server__=J.__nodejs_mock_server__}if(J.compression)this.compressor=this.compressors.filter((Z)=>J.compression?.includes(Z))[0]}}RI.StreamDescription=wI});var A9=V((fI)=>{var SI=function(J){return J.description.logicalSessionTimeoutMinutes!=null},Pi=function(J){const Z=J.description;if(Z==null)return!1;return k0.maxWireVersion(J)>=6&&!Z.__nodejs_mock_server__},OI=function(J,Z){if(Z.proxyHost)return Z.hostAddress.toString();const{remoteAddress:$,remotePort:X}=J;if(typeof $==="string"&&typeof X==="number")return k0.HostAddress.fromHostPort($,X).toString();return k0.uuidV4().toString("hex")},kI=function(J,Z,$,X){$=$??{};const Y={requestId:Z.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(J[W0]&&J[W0].compressor){if(Y.agreedCompressor=J[W0].compressor,J[W0].zlibCompressionLevel)Y.zlibCompressionLevel=J[W0].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")J[l1].setTimeout($.socketTimeoutMS);else if(J.socketTimeoutMS!==0)J[l1].setTimeout(J.socketTimeoutMS);if(J.monitorCommands)J.emit(R1.COMMAND_STARTED,new vZ.CommandStartedEvent(J,Z)),Y.started=k0.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)J.emit(R1.COMMAND_FAILED,new vZ.CommandFailedEvent(J,Z,Q,Y.started));else if(K&&(K.ok===0||K.$err))J.emit(R1.COMMAND_FAILED,new vZ.CommandFailedEvent(J,Z,K,Y.started));else J.emit(R1.COMMAND_SUCCEEDED,new vZ.CommandSucceededEvent(J,Z,K,Y.started));if(typeof X==="function")X(Q,Q instanceof C1.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)J[E1].set(Y.requestId,Y);try{J[_1].writeCommand(Z,Y)}catch(Q){if(!Y.noResponse){J[E1].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};async function*yI(J){const Z=new k0.BufferPool,$=J.hello?.maxBsonMessageSize??Ti;for await(let[X]of Ri.on(J.socket,"data")){Z.append(X);const Y=Z.getInt32();if(Y==null)continue;if(Y<0)throw new C1.MongoParseError(`Invalid message size: ${Y}`);if(Y>$)throw new C1.MongoParseError(`Invalid message size: ${Y}, max allowed: ${$}`);if(Y>Z.length)continue;yield Z.read(Y)}}async function Ii(J,Z,$){const X=wi.once(J.socket,"drain"),Y=$.agreedCompressor==="none"||!f7.OpCompressedRequest.canCompress(Z)?Z:new f7.OpCompressedRequest(Z,{agreedCompressor:$.agreedCompressor??"none",zlibCompressionLevel:$.zlibCompressionLevel??0}),Q=Buffer.concat(await Y.toBin());J.socket.push(Q),await X}async function*_I(J){for await(let Z of yI(J)){const $=await Di.decompressResponse(Z);if(yield $,!("moreToCome"in $)||!$.moreToCome)return}}async function Ni(J){for await(let Z of _I(J))return Z;throw new C1.MongoRuntimeError("unable to read message off of connection")}Object.defineProperty(fI,"__esModule",{value:!0});fI.read=fI.readMany=fI.writeCommand=fI.readWireProtocolMessages=fI.ModernConnection=fI.hasSessionSupport=fI.CryptoConnection=fI.Connection=void 0;var wi=import.meta.require("events"),Ri=import.meta.require("stream"),xZ=import.meta.require("timers"),II=import.meta.require("util"),Z0=v1(),C1=E(),NI=C0(),bZ=m5(),k0=y(),vZ=bQ(),f7=Y9(),BI=LI(),EI=PI(),Di=N7(),gZ=b3(),l1=Symbol("stream"),E1=Symbol("queue"),_1=Symbol("messageStream"),O7=Symbol("generation"),k7=Symbol("lastUseTime"),y7=Symbol("clusterTime"),W0=Symbol("description"),_7=Symbol("hello"),TI=Symbol("autoEncrypter"),s8=Symbol("delayedTimeoutId"),CI="Connection internal queue contains more than 1 operation description";class R1 extends NI.TypedEventEmitter{constructor(J,Z){super();this.commandAsync=II.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=Z.id,this.address=OI(J,Z),this.socketTimeoutMS=Z.socketTimeoutMS??0,this.monitorCommands=Z.monitorCommands,this.serverApi=Z.serverApi,this.closed=!1,this[_7]=null,this[y7]=null,this[W0]=new EI.StreamDescription(this.address,Z),this[O7]=Z.generation,this[k7]=k0.now(),this[E1]=new Map,this[_1]=new BI.MessageStream({...Z,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[l1]=J,this[s8]=null,this[_1].on("message",($)=>this.onMessage($)),this[_1].on("error",($)=>this.onError($)),this[l1].on("close",()=>this.onClose()),this[l1].on("timeout",()=>this.onTimeout()),this[l1].on("error",()=>{}),this[l1].pipe(this[_1]),this[_1].pipe(this[l1])}get description(){return this[W0]}get hello(){return this[_7]}set hello(J){this[W0].receiveResponse(J),this[W0]=Object.freeze(this[W0]),this[_7]=J}set isMonitoringConnection(J){this[_1].isMonitoringConnection=J}get isMonitoringConnection(){return this[_1].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[O7]||0}set generation(J){this[O7]=J}get idleTime(){return k0.calculateDurationInMs(this[k7])}get clusterTime(){return this[y7]}get stream(){return this[l1]}markAvailable(){this[k7]=k0.now()}onError(J){this.cleanup(!0,J)}onClose(){const J=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new C1.MongoNetworkError(J))}onTimeout(){this[s8]=xZ.setTimeout(()=>{const J=`connection ${this.id} to ${this.address} timed out`,Z=this.hello==null;this.cleanup(!0,new C1.MongoNetworkTimeoutError(J,{beforeHandshake:Z}))},1).unref()}onMessage(J){const Z=this[s8];if(Z!=null)xZ.clearTimeout(Z),this[s8]=null;const $=this[l1].timeout??0;this[l1].setTimeout(0),this.emit("message",J);let X=this[E1].get(J.responseTo);if(!X&&this.isMonitoringConnection)if(this[E1].size>1)this.cleanup(!0,new C1.MongoRuntimeError(CI));else{const Q=this[E1].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[E1].delete(K)}}if(!X)return;const Y=X.cb;if(this[E1].delete(J.responseTo),"moreToCome"in J&&J.moreToCome)this[E1].set(J.requestId,X),this[l1].setTimeout($);try{J.parse(X)}catch(Q){Y(Q);return}if(J.documents[0]){const Q=J.documents[0],K=X.session;if(K)bZ.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[y7]=Q.$clusterTime,this.emit(R1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new C1.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new C1.MongoServerError(Q));return}}Y(void 0,J.documents[0])}destroy(J,Z){if(this.closed){process.nextTick(()=>Z?.());return}if(typeof Z==="function")this.once("close",()=>process.nextTick(()=>Z()));this.removeAllListeners(R1.PINNED),this.removeAllListeners(R1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(J.force,new C1.MongoNetworkError($))}cleanup(J,Z){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[E1].values())X.cb(Z);this[E1].clear(),this.emit(R1.CLOSE)};if(this[l1].removeAllListeners(),this[_1].removeAllListeners(),this[_1].destroy(),J){this[l1].destroy(),$();return}if(!this[l1].writableEnded)this[l1].end(()=>{this[l1].destroy(),$()});else $()}command(J,Z,$,X){let Y={...Z};const Q=gZ.getReadPreference($),K=Pi(this),G=$?.session;let F=this.clusterTime;if(this.serverApi){const{version:H,strict:U,deprecationErrors:j}=this.serverApi;if(Y.apiVersion=H,U!=null)Y.apiStrict=U;if(j!=null)Y.apiDeprecationErrors=j}if(SI(this)&&G){if(G.clusterTime&&F&&G.clusterTime.clusterTime.greaterThan(F.clusterTime))F=G.clusterTime;const H=bZ.applySession(G,Y,$);if(H)return X(H)}else if(G?.explicit)return X(new C1.MongoCompatibilityError("Current topology does not support sessions"));if(F)Y.$clusterTime=F;if(gZ.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const q=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),W=K?new f7.OpMsgRequest(J.db,Y,q):new f7.OpQueryRequest(J.db,Y,q);try{kI(this,W,q,X)}catch(H){X(H)}}}R1.COMMAND_STARTED=Z0.COMMAND_STARTED;R1.COMMAND_SUCCEEDED=Z0.COMMAND_SUCCEEDED;R1.COMMAND_FAILED=Z0.COMMAND_FAILED;R1.CLUSTER_TIME_RECEIVED=Z0.CLUSTER_TIME_RECEIVED;R1.CLOSE=Z0.CLOSE;R1.MESSAGE=Z0.MESSAGE;R1.PINNED=Z0.PINNED;R1.UNPINNED=Z0.UNPINNED;fI.Connection=R1;class hI extends R1{constructor(J,Z){super(J,Z);this[TI]=Z.autoEncrypter}command(J,Z,$,X){const Y=this[TI];if(!Y)return X(new C1.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=k0.maxWireVersion(this);if(Q===0)return super.command(J,Z,$,X);if(Q<8){X(new C1.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=Z.find||Z.findAndModify?Z.sort:null,G=Z.createIndexes?Z.indexes.map((F)=>F.key):null;Y.encrypt(J.toString(),Z,$).then((F)=>{if(K!=null&&(Z.find||Z.findAndModify))F.sort=K;if(G!=null&&Z.createIndexes)for(let[q,W]of G.entries())F.indexes[q].key=W;super.command(J,F,$,(q,W)=>{if(q||W==null){X(q,W);return}Y.decrypt(W,$).then((H)=>X(void 0,H),(H)=>X(H))})},(F)=>{if(F)X(F,null)})}}fI.CryptoConnection=hI;fI.hasSessionSupport=SI;class _6 extends NI.TypedEventEmitter{constructor(J,Z){super();this.commandAsync=II.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=Z.id,this.address=OI(J,Z),this.socketTimeoutMS=Z.socketTimeoutMS??0,this.monitorCommands=Z.monitorCommands,this.serverApi=Z.serverApi,this.closed=!1,this[_7]=null,this[y7]=null,this[W0]=new EI.StreamDescription(this.address,Z),this[O7]=Z.generation,this[k7]=k0.now(),this[E1]=new Map,this[_1]=new BI.MessageStream({...Z,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this.socket=J,this[s8]=null,this[_1].on("message",($)=>this.onMessage($)),this[_1].on("error",($)=>this.onError($)),this.socket.on("close",()=>this.onClose()),this.socket.on("timeout",()=>this.onTimeout()),this.socket.on("error",()=>{}),this.socket.pipe(this[_1]),this[_1].pipe(this.socket)}get description(){return this[W0]}get hello(){return this[_7]}set hello(J){this[W0].receiveResponse(J),this[W0]=Object.freeze(this[W0]),this[_7]=J}set isMonitoringConnection(J){this[_1].isMonitoringConnection=J}get isMonitoringConnection(){return this[_1].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[O7]||0}set generation(J){this[O7]=J}get idleTime(){return k0.calculateDurationInMs(this[k7])}get clusterTime(){return this[y7]}get stream(){return this.socket}get hasSessionSupport(){return this.description.logicalSessionTimeoutMinutes!=null}get supportsOpMsg(){return this.description!=null&&k0.maxWireVersion(this)>=6&&!this.description.__nodejs_mock_server__}markAvailable(){this[k7]=k0.now()}onError(J){this.cleanup(!0,J)}onClose(){const J=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new C1.MongoNetworkError(J))}onTimeout(){this[s8]=xZ.setTimeout(()=>{const J=`connection ${this.id} to ${this.address} timed out`,Z=this.hello==null;this.cleanup(!0,new C1.MongoNetworkTimeoutError(J,{beforeHandshake:Z}))},1).unref()}onMessage(J){const Z=this[s8];if(Z!=null)xZ.clearTimeout(Z),this[s8]=null;const $=this.socket.timeout??0;this.socket.setTimeout(0),this.emit("message",J);let X=this[E1].get(J.responseTo);if(!X&&this.isMonitoringConnection)if(this[E1].size>1)this.cleanup(!0,new C1.MongoRuntimeError(CI));else{const Q=this[E1].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[E1].delete(K)}}if(!X)return;const Y=X.cb;if(this[E1].delete(J.responseTo),"moreToCome"in J&&J.moreToCome)this[E1].set(J.requestId,X),this.socket.setTimeout($);try{J.parse(X)}catch(Q){Y(Q);return}if(J.documents[0]){const Q=J.documents[0],K=X.session;if(K)bZ.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[y7]=Q.$clusterTime,this.emit(R1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new C1.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new C1.MongoServerError(Q));return}}Y(void 0,J.documents[0])}destroy(J,Z){if(this.closed){process.nextTick(()=>Z?.());return}if(typeof Z==="function")this.once("close",()=>process.nextTick(()=>Z()));this.removeAllListeners(R1.PINNED),this.removeAllListeners(R1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(J.force,new C1.MongoNetworkError($))}cleanup(J,Z){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[E1].values())X.cb(Z);this[E1].clear(),this.emit(R1.CLOSE)};if(this.socket.removeAllListeners(),this[_1].removeAllListeners(),this[_1].destroy(),J){this.socket.destroy(),$();return}if(!this.socket.writableEnded)this.socket.end(()=>{this.socket.destroy(),$()});else $()}command(J,Z,$,X){let Y={...Z};const Q=gZ.getReadPreference($),K=$?.session;let G=this.clusterTime;if(this.serverApi){const{version:W,strict:H,deprecationErrors:U}=this.serverApi;if(Y.apiVersion=W,H!=null)Y.apiStrict=H;if(U!=null)Y.apiDeprecationErrors=U}if(this.hasSessionSupport&&K){if(K.clusterTime&&G&&K.clusterTime.clusterTime.greaterThan(G.clusterTime))G=K.clusterTime;const W=bZ.applySession(K,Y,$);if(W)return X(W)}else if(K?.explicit)return X(new C1.MongoCompatibilityError("Current topology does not support sessions"));if(G)Y.$clusterTime=G;if(gZ.isSharded(this)&&!this.supportsOpMsg&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const F=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),q=this.supportsOpMsg?new f7.OpMsgRequest(J.db,Y,F):new f7.OpQueryRequest(J.db,Y,F);try{kI(this,q,F,X)}catch(W){X(W)}}}_6.COMMAND_STARTED=Z0.COMMAND_STARTED;_6.COMMAND_SUCCEEDED=Z0.COMMAND_SUCCEEDED;_6.COMMAND_FAILED=Z0.COMMAND_FAILED;_6.CLUSTER_TIME_RECEIVED=Z0.CLUSTER_TIME_RECEIVED;_6.CLOSE=Z0.CLOSE;_6.MESSAGE=Z0.MESSAGE;_6.PINNED=Z0.PINNED;_6.UNPINNED=Z0.UNPINNED;fI.ModernConnection=_6;var Ti=67108864;fI.readWireProtocolMessages=yI;fI.writeCommand=Ii;fI.readMany=_I;fI.read=Ni});var lQ=V((pI)=>{var di=function(J,Z){dQ({...J,existingSocket:void 0},($,X)=>{if($||!X)return Z($);let Y=J.connectionType??bI.Connection;if(J.autoEncrypter)Y=bI.CryptoConnection;const Q=new Y(X,J);pi(Q,J).then(()=>Z(void 0,Q),(K)=>{Q.destroy({force:!1}),Z(K)})})},ci=function(J,Z){const $=Number(J.maxWireVersion),X=Number(J.minWireVersion),Y=!Number.isNaN($)&&$>=v7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=v7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${Z.hostAddress} reports minimum wire version ${JSON.stringify(J.minWireVersion)}, but this version of the Node.js Driver requires at most ${v7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${v7.MAX_SUPPORTED_SERVER_VERSION})`;return new h1.MongoCompatibilityError(G)}const K=`Server at ${Z.hostAddress} reports maximum wire version ${JSON.stringify(J.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${v7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${v7.MIN_SUPPORTED_SERVER_VERSION})`;return new h1.MongoCompatibilityError(K)};async function pi(J,Z){const $=Z.credentials;if($){if($.mechanism!==r0.AuthMechanism.MONGODB_DEFAULT&&!pI.AUTH_PROVIDERS.get($.mechanism))throw new h1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new fi.AuthContext(J,$,Z);J.authContext=X;const Y=await dI(X),Q={...Z};if(typeof Z.connectTimeoutMS==="number")Q.socketTimeoutMS=Z.connectTimeoutMS;const K=(new Date()).getTime(),G=await J.commandAsync(uI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[mI.LEGACY_HELLO_COMMAND];if(G.helloOk)J.helloOk=!0;const F=ci(G,Z);if(F)throw F;if(Z.loadBalanced){if(!G.serviceId)throw new h1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(J.hello=G,J.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const q=$.resolveAuthMechanism(G),W=pI.AUTH_PROVIDERS.get(q.mechanism);if(!W)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${q.mechanism} defined.`);try{await W.auth(X)}catch(H){if(H instanceof h1.MongoError){if(H.addErrorLabel(h1.MongoErrorLabel.HandshakeError),h1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(h1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function dI(J){const Z=J.options,$=Z.compressors?Z.compressors:[],{serverApi:X}=J.connection,Y={[X?.version||Z.loadBalanced===!0?"hello":mI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:Z.metadata,compression:$};if(Z.loadBalanced===!0)Y.loadBalanced=!0;const Q=J.credentials;if(Q){if(Q.mechanism===r0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=pI.AUTH_PROVIDERS.get(r0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${r0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,J)}const K=pI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,J)}return Y}var cQ=function(J){const Z=J.hostAddress;if(!Z)throw new h1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of pI.LEGAL_TCP_SOCKET_OPTIONS)if(J[X]!=null)$[X]=J[X];if(typeof Z.socketPath==="string")return $.path=Z.socketPath,$;else if(typeof Z.host==="string")return $.host=Z.host,$.port=Z.port,$;else throw new h1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(Z)}`)},li=function(J){const Z=cQ(J);for(let $ of pI.LEGAL_TLS_SOCKET_OPTIONS)if(J[$]!=null)Z[$]=J[$];if(J.existingSocket)Z.socket=J.existingSocket;if(Z.servername==null&&Z.host&&!gI.isIP(Z.host))Z.servername=Z.host;return Z},dQ=function(J,Z){const $=J.tls??!1,X=J.noDelay??!0,Y=J.connectTimeoutMS??30000,Q=J.rejectUnauthorized??!0,K=J.existingSocket;let G;const F=function(j,z){if(j&&G)G.destroy();Z(j,z)};if(J.proxyHost!=null)return si({...J,connectTimeoutMS:Y},F);if($){const j=yi.connect(li(J));if(typeof j.disableRenegotiation==="function")j.disableRenegotiation();G=j}else if(K)G=K;else G=gI.createConnection(cQ(J));G.setKeepAlive(!0,300000),G.setTimeout(Y),G.setNoDelay(X);const q=$?"secureConnect":"connect";let W;function H(j){return(z)=>{if(uQ.forEach((A)=>G.removeAllListeners(A)),W&&J.cancellationToken)J.cancellationToken.removeListener("cancel",W);G.removeListener(q,U),F(cI(j,z))}}function U(){if(uQ.forEach((j)=>G.removeAllListeners(j)),W&&J.cancellationToken)J.cancellationToken.removeListener("cancel",W);if("authorizationError"in G){if(G.authorizationError&&Q)return F(G.authorizationError)}G.setTimeout(0),F(void 0,G)}if(uQ.forEach((j)=>G.once(j,H(j))),J.cancellationToken)W=H("cancel"),J.cancellationToken.once("cancel",W);if(K)process.nextTick(U);else G.once(q,U)},ii=function(){if(L9==null){const J=_i.getSocks();if("kModuleError"in J)throw J.kModuleError;L9=J}return L9},si=function(J,Z){const $=uI.HostAddress.fromHostPort(J.proxyHost??"",J.proxyPort??1080);dQ({...J,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X||!Y)return Z(X);const Q=cQ(J);if(typeof Q.host!=="string"||typeof Q.port!=="number")return Z(new h1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));try{L9??=ii()}catch(K){return Z(K)}L9.SocksClient.createConnection({existing_socket:Y,timeout:J.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:J.proxyUsername||void 0,password:J.proxyPassword||void 0}}).then(({socket:K})=>{dQ({...J,existingSocket:K,proxyHost:void 0},Z)},(K)=>Z(cI("error",K)))})},cI=function(J,Z){switch(J){case"error":return new h1.MongoNetworkError(h1.MongoError.buildErrorMessage(Z),{cause:Z});case"timeout":return new h1.MongoNetworkTimeoutError("connection timed out");case"close":return new h1.MongoNetworkError("connection closed");case"cancel":return new h1.MongoNetworkError("connection establishment was cancelled");default:return new h1.MongoNetworkError("unknown network error")}};Object.defineProperty(pI,"__esModule",{value:!0});pI.LEGAL_TCP_SOCKET_OPTIONS=pI.LEGAL_TLS_SOCKET_OPTIONS=pI.prepareHandshakeDocument=pI.connect=pI.AUTH_PROVIDERS=void 0;var gI=import.meta.require("net"),yi=import.meta.require("tls"),mI=v1(),_i=H6(),h1=E(),uI=y(),fi=Y8(),vi=YZ(),xi=hP(),bi=yP(),gi=NT(),mi=hT(),r0=O6(),xI=JI(),ui=KI(),bI=A9(),v7=h8();pI.AUTH_PROVIDERS=new Map([[r0.AuthMechanism.MONGODB_AWS,new bi.MongoDBAWS],[r0.AuthMechanism.MONGODB_CR,new xi.MongoCR],[r0.AuthMechanism.MONGODB_GSSAPI,new vi.GSSAPI],[r0.AuthMechanism.MONGODB_OIDC,new gi.MongoDBOIDC],[r0.AuthMechanism.MONGODB_PLAIN,new mi.Plain],[r0.AuthMechanism.MONGODB_SCRAM_SHA1,new xI.ScramSHA1],[r0.AuthMechanism.MONGODB_SCRAM_SHA256,new xI.ScramSHA256],[r0.AuthMechanism.MONGODB_X509,new ui.X509]]);pI.connect=di;pI.prepareHandshakeDocument=dI;pI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];pI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var ai=["error","close","timeout","parseError"],uQ=new Set(ai),L9=null});var mZ=V((ZN)=>{Object.defineProperty(ZN,"__esModule",{value:!0});ZN.ServerHeartbeatFailedEvent=ZN.ServerHeartbeatSucceededEvent=ZN.ServerHeartbeatStartedEvent=ZN.TopologyClosedEvent=ZN.TopologyOpeningEvent=ZN.TopologyDescriptionChangedEvent=ZN.ServerClosedEvent=ZN.ServerOpeningEvent=ZN.ServerDescriptionChangedEvent=void 0;class aI{constructor(J,Z,$,X){this.topologyId=J,this.address=Z,this.previousDescription=$,this.newDescription=X}}ZN.ServerDescriptionChangedEvent=aI;class iI{constructor(J,Z){this.topologyId=J,this.address=Z}}ZN.ServerOpeningEvent=iI;class sI{constructor(J,Z){this.topologyId=J,this.address=Z}}ZN.ServerClosedEvent=sI;class nI{constructor(J,Z,$){this.topologyId=J,this.previousDescription=Z,this.newDescription=$}}ZN.TopologyDescriptionChangedEvent=nI;class tI{constructor(J){this.topologyId=J}}ZN.TopologyOpeningEvent=tI;class rI{constructor(J){this.topologyId=J}}ZN.TopologyClosedEvent=rI;class oI{constructor(J,Z){this.connectionId=J,this.awaited=Z}}ZN.ServerHeartbeatStartedEvent=oI;class eI{constructor(J,Z,$,X){this.connectionId=J,this.duration=Z,this.reply=$??{},this.awaited=X}}ZN.ServerHeartbeatSucceededEvent=eI;class JN{constructor(J,Z,$,X){this.connectionId=J,this.duration=Z,this.failure=$,this.awaited=X}}ZN.ServerHeartbeatFailedEvent=JN});var aQ=V((UN)=>{Object.defineProperty(UN,"__esModule",{value:!0});UN.ConnectionPoolClearedEvent=UN.ConnectionCheckedInEvent=UN.ConnectionCheckedOutEvent=UN.ConnectionCheckOutFailedEvent=UN.ConnectionCheckOutStartedEvent=UN.ConnectionClosedEvent=UN.ConnectionReadyEvent=UN.ConnectionCreatedEvent=UN.ConnectionPoolClosedEvent=UN.ConnectionPoolReadyEvent=UN.ConnectionPoolCreatedEvent=UN.ConnectionPoolMonitoringEvent=void 0;var j6=v1();class y0{constructor(J){this.time=new Date,this.address=J.address}}UN.ConnectionPoolMonitoringEvent=y0;class XN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_CREATED;const{maxConnecting:Z,maxPoolSize:$,minPoolSize:X,maxIdleTimeMS:Y,waitQueueTimeoutMS:Q}=J.options;this.options={maxConnecting:Z,maxPoolSize:$,minPoolSize:X,maxIdleTimeMS:Y,waitQueueTimeoutMS:Q}}}UN.ConnectionPoolCreatedEvent=XN;class YN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_READY}}UN.ConnectionPoolReadyEvent=YN;class QN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_CLOSED}}UN.ConnectionPoolClosedEvent=QN;class KN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CREATED,this.connectionId=Z.id}}UN.ConnectionCreatedEvent=KN;class GN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_READY,this.connectionId=Z.id}}UN.ConnectionReadyEvent=GN;class FN extends y0{constructor(J,Z,$,X){super(J);this.name=j6.CONNECTION_CLOSED,this.connectionId=Z.id,this.reason=$,this.serviceId=Z.serviceId,this.error=X??null}}UN.ConnectionClosedEvent=FN;class qN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_CHECK_OUT_STARTED}}UN.ConnectionCheckOutStartedEvent=qN;class WN extends y0{constructor(J,Z,$){super(J);this.name=j6.CONNECTION_CHECK_OUT_FAILED,this.reason=Z,this.error=$}}UN.ConnectionCheckOutFailedEvent=WN;class HN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CHECKED_OUT,this.connectionId=Z.id}}UN.ConnectionCheckedOutEvent=HN;class VN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CHECKED_IN,this.connectionId=Z.id}}UN.ConnectionCheckedInEvent=VN;class zN extends y0{constructor(J,Z={}){super(J);this.name=j6.CONNECTION_POOL_CLEARED,this.serviceId=Z.serviceId,this.interruptInUseConnections=Z.interruptInUseConnections}}UN.ConnectionPoolClearedEvent=zN});var sQ=V((wN)=>{Object.defineProperty(wN,"__esModule",{value:!0});wN.WaitQueueTimeoutError=wN.PoolClearedOnNetworkError=wN.PoolClearedError=wN.PoolClosedError=void 0;var uZ=E();class jN extends uZ.MongoDriverError{constructor(J){super("Attempted to check out a connection from closed connection pool");this.address=J.address}get name(){return"MongoPoolClosedError"}}wN.PoolClosedError=jN;class iQ extends uZ.MongoNetworkError{constructor(J,Z){const $=Z?Z:`Connection pool for ${J.address} was cleared because another operation failed with: "${J.serverError?.message}"`;super($,J.serverError?{cause:J.serverError}:void 0);this.address=J.address,this.addErrorLabel(uZ.MongoErrorLabel.PoolRequstedRetry)}get name(){return"MongoPoolClearedError"}}wN.PoolClearedError=iQ;class AN extends iQ{constructor(J){super(J,`Connection to ${J.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}wN.PoolClearedOnNetworkError=AN;class LN extends uZ.MongoDriverError{constructor(J,Z){super(J);this.address=Z}get name(){return"MongoWaitQueueTimeoutError"}}wN.WaitQueueTimeoutError=LN});var BN=V((IN)=>{Object.defineProperty(IN,"__esModule",{value:!0});IN.ConnectionPool=IN.PoolState=void 0;var x7=import.meta.require("timers"),e0=v1(),A6=E(),DN=C0(),R9=y(),PN=lQ(),dZ=A9(),a1=aQ(),b7=sQ(),ws=_3(),cZ=Symbol("server"),q8=Symbol("connections"),g7=Symbol("pending"),n8=Symbol("checkedOut"),y4=Symbol("minPoolSizeTimer"),m7=Symbol("generation"),TN=Symbol("serviceGenerations"),pZ=Symbol("connectionCounter"),lZ=Symbol("cancellationToken"),W8=Symbol("waitQueue"),aZ=Symbol("cancelled"),iZ=Symbol("metrics"),sZ=Symbol("processingWaitQueue"),L6=Symbol("poolState");IN.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class J1 extends DN.TypedEventEmitter{constructor(J,Z){super();if(this.options=Object.freeze({...Z,connectionType:dZ.Connection,maxPoolSize:Z.maxPoolSize??100,minPoolSize:Z.minPoolSize??0,maxConnecting:Z.maxConnecting??2,maxIdleTimeMS:Z.maxIdleTimeMS??0,waitQueueTimeoutMS:Z.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:Z.minPoolSizeCheckFrequencyMS??100,autoEncrypter:Z.autoEncrypter,metadata:Z.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new A6.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[L6]=IN.PoolState.paused,this[cZ]=J,this[q8]=new R9.List,this[g7]=0,this[n8]=new Set,this[y4]=void 0,this[m7]=0,this[TN]=new Map,this[pZ]=R9.makeCounter(1),this[lZ]=new DN.CancellationToken,this[lZ].setMaxListeners(Infinity),this[W8]=new R9.List,this[iZ]=new ws.ConnectionPoolMetrics,this[sZ]=!1,this.mongoLogger=this[cZ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(J1.CONNECTION_POOL_CREATED,new a1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[L6]===IN.PoolState.closed}get generation(){return this[m7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[q8].length}get pendingConnectionCount(){return this[g7]}get currentCheckedOutCount(){return this[n8].size}get waitQueueSize(){return this[W8].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[TN]}get serverError(){return this[cZ].description.error}get checkedOutConnections(){return this[n8]}waitQueueErrorMetrics(){return this[iZ].info(this.options.maxPoolSize)}ready(){if(this[L6]!==IN.PoolState.paused)return;this[L6]=IN.PoolState.ready,this.emitAndLog(J1.CONNECTION_POOL_READY,new a1.ConnectionPoolReadyEvent(this)),x7.clearTimeout(this[y4]),this.ensureMinPoolSize()}checkOut(J){this.emitAndLog(J1.CONNECTION_CHECK_OUT_STARTED,new a1.ConnectionCheckOutStartedEvent(this));const Z=this.options.waitQueueTimeoutMS,$={callback:J,timeoutController:new R9.TimeoutController(Z)};$.timeoutController.signal.addEventListener("abort",()=>{$[aZ]=!0,$.timeoutController.clear(),this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,"timeout")),$.callback(new b7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),this[W8].push($),process.nextTick(()=>this.processWaitQueue())}checkIn(J){if(!this[n8].has(J))return;const Z=this.closed,$=this.connectionIsStale(J),X=!!(Z||$||J.closed);if(!X)J.markAvailable(),this[q8].unshift(J);if(this[n8].delete(J),this.emitAndLog(J1.CONNECTION_CHECKED_IN,new a1.ConnectionCheckedInEvent(this,J)),X){const Y=J.closed?"error":Z?"poolClosed":"stale";this.destroyConnection(J,Y)}process.nextTick(()=>this.processWaitQueue())}clear(J={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=J;if(!Y)throw new A6.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 A6.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(J1.CONNECTION_POOL_CLEARED,new a1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const Z=J.interruptInUseConnections??!1,$=this[m7];this[m7]+=1;const X=this[L6]===IN.PoolState.paused;if(this[L6]=IN.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(J1.CONNECTION_POOL_CLEARED,new a1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:Z}));if(Z)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(J){for(let Z of this[n8])if(Z.generation<=J)this.checkIn(Z),Z.onError(new b7.PoolClearedOnNetworkError(this))}close(J,Z){let $=J;const X=Z??J;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[lZ].emit("cancel"),typeof this[pZ].return==="function")this[pZ].return(void 0);this[L6]=IN.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),R9.eachAsync(this[q8].toArray(),(Y,Q)=>{this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[q8].clear(),this.emitAndLog(J1.CONNECTION_POOL_CLOSED,new a1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(J,Z,$){if(J){Z(void 0,J,(X,Y)=>{if(X)return this.withReauthentication(X,J,Z,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{Z(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,Z,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(J,Z,$,X){if(J instanceof A6.MongoError&&J.code===A6.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(Z,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(J)}reauthenticate(J,Z,$){const X=J.authContext;if(!X)return $(new A6.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new A6.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(J.hello||void 0),K=PN.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new A6.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{Z(void 0,J,(G,F)=>{if(G)return $(G);$(void 0,F)})},(G)=>$(G))}clearMinPoolSizeTimer(){const J=this[y4];if(J)x7.clearTimeout(J)}destroyConnection(J,Z){this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,J,Z)),process.nextTick(()=>J.destroy({force:!1}))}connectionIsStale(J){const Z=J.serviceId;if(this.loadBalanced&&Z){const $=Z.toHexString(),X=this.serviceGenerations.get($);return J.generation!==X}return J.generation!==this[m7]}connectionIsIdle(J){return!!(this.options.maxIdleTimeMS&&J.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(J){const Z=this.connectionIsStale(J),$=this.connectionIsIdle(J);if(!Z&&!$&&!J.closed)return!1;const X=J.closed?"error":Z?"stale":"idle";return this.destroyConnection(J,X),!0}createConnection(J){const Z={...this.options,id:this[pZ].next().value,generation:this[m7],cancellationToken:this[lZ]};this[g7]++,this.emitAndLog(J1.CONNECTION_CREATED,new a1.ConnectionCreatedEvent(this,{id:Z.id})),PN.connect(Z,($,X)=>{if($||!X){if(this[g7]--,this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,{id:Z.id,serviceId:void 0},"error",$)),$ instanceof A6.MongoNetworkError||$ instanceof A6.MongoServerError)$.connectionGeneration=Z.generation;J($??new A6.MongoRuntimeError("Connection creation failed without error"));return}if(this[L6]!==IN.PoolState.ready){this[g7]--,X.destroy({force:!0}),J(this.closed?new b7.PoolClosedError(this):new b7.PoolClearedError(this));return}for(let Y of[...e0.APM_EVENTS,dZ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(dZ.Connection.PINNED,(Q)=>this[iZ].markPinned(Q)),X.on(dZ.Connection.UNPINNED,(Q)=>this[iZ].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(J1.CONNECTION_READY,new a1.ConnectionReadyEvent(this,X)),this[g7]--,J(void 0,X);return})}ensureMinPoolSize(){const J=this.options.minPoolSize;if(this[L6]!==IN.PoolState.ready||J===0)return;if(this[q8].prune((Z)=>this.destroyConnectionIfPerished(Z)),this.totalConnectionCount<J&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((Z,$)=>{if(Z)this[cZ].handleError(Z);if(!Z&&$)this[q8].push($),process.nextTick(()=>this.processWaitQueue());if(this[L6]===IN.PoolState.ready)x7.clearTimeout(this[y4]),this[y4]=x7.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else x7.clearTimeout(this[y4]),this[y4]=x7.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[sZ])return;this[sZ]=!0;while(this.waitQueueSize){const $=this[W8].first();if(!$){this[W8].shift();continue}if($[aZ]){this[W8].shift();continue}if(this[L6]!==IN.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new b7.PoolClosedError(this):new b7.PoolClearedError(this);this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timeoutController.clear(),this[W8].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[q8].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X))this[n8].add(X),this.emitAndLog(J1.CONNECTION_CHECKED_OUT,new a1.ConnectionCheckedOutEvent(this,X)),$.timeoutController.clear(),this[W8].shift(),$.callback(void 0,X)}const{maxPoolSize:J,maxConnecting:Z}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<Z&&(J===0||this.totalConnectionCount<J)){const $=this[W8].shift();if(!$||$[aZ])continue;this.createConnection((X,Y)=>{if($[aZ]){if(!X&&Y)this[q8].push(Y)}else{if(X)this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[n8].add(Y),this.emitAndLog(J1.CONNECTION_CHECKED_OUT,new a1.ConnectionCheckedOutEvent(this,Y));$.timeoutController.clear(),$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[sZ]=!1}}J1.CONNECTION_POOL_CREATED=e0.CONNECTION_POOL_CREATED;J1.CONNECTION_POOL_CLOSED=e0.CONNECTION_POOL_CLOSED;J1.CONNECTION_POOL_CLEARED=e0.CONNECTION_POOL_CLEARED;J1.CONNECTION_POOL_READY=e0.CONNECTION_POOL_READY;J1.CONNECTION_CREATED=e0.CONNECTION_CREATED;J1.CONNECTION_READY=e0.CONNECTION_READY;J1.CONNECTION_CLOSED=e0.CONNECTION_CLOSED;J1.CONNECTION_CHECK_OUT_STARTED=e0.CONNECTION_CHECK_OUT_STARTED;J1.CONNECTION_CHECK_OUT_FAILED=e0.CONNECTION_CHECK_OUT_FAILED;J1.CONNECTION_CHECKED_OUT=e0.CONNECTION_CHECKED_OUT;J1.CONNECTION_CHECKED_IN=e0.CONNECTION_CHECKED_IN;IN.ConnectionPool=J1});var eQ=V((CN)=>{var Bs=function(J,Z){if(J===-1)return Z;const $=0.2;return $*Z+(1-$)*J},nQ=function(J,Z){if(J.loadBalanced)return;if(Z instanceof U1.MongoNetworkError&&!(Z instanceof U1.MongoNetworkTimeoutError))J.monitor?.reset();J.emit(P0.DESCRIPTION_RECEIVED,new oQ.ServerDescription(J.description.hostAddress,void 0,{error:Z}))},Es=function(J,Z){if(Z)return Z.inTransaction()||"aggregate"in J||"find"in J||"getMore"in J||"listCollections"in J||"listIndexes"in J;return!1},Cs=function(J,Z){if(Z.serviceId)return Z.generation!==J.serviceGenerations.get(Z.serviceId.toHexString());return Z.generation!==J.generation},hs=function(J,Z){const $=Z.topologyVersion,X=J.description.topologyVersion;return oQ.compareTopologyVersion(X,$)<0},tQ=function(J,Z){return J&&J.inTransaction()&&!rQ.isTransactionCommand(Z)},EN=function(J){return J.s.options.retryWrites!==!1},Ss=function(J,Z,$,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 U1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof U1.MongoError))return Y(G);if(Cs(J.pool,Z))return Y(G);if(G instanceof U1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(tQ(Q,$)&&!G.hasErrorLabel(U1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(U1.MongoErrorLabel.TransientTransactionError);if((EN(J.topology)||rQ.isTransactionCommand($))&&nZ.supportsRetryableWrites(J)&&!tQ(Q,$))G.addErrorLabel(U1.MongoErrorLabel.RetryableWriteError)}else if((EN(J.topology)||rQ.isTransactionCommand($))&&U1.needsRetryableWriteLabel(G,nZ.maxWireVersion(J))&&!tQ(Q,$))G.addErrorLabel(U1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(U1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return J.handleError(G,Z),Y(G)}};Object.defineProperty(CN,"__esModule",{value:!0});CN.Server=void 0;var Rs=import.meta.require("util"),Ds=A9(),Ps=BN(),Ts=sQ(),f6=v1(),U1=E(),Is=C0(),rQ=g3(),nZ=y(),F1=d0(),Ns=JK(),oQ=x5(),D9=nZ.makeStateMachine({[F1.STATE_CLOSED]:[F1.STATE_CLOSED,F1.STATE_CONNECTING],[F1.STATE_CONNECTING]:[F1.STATE_CONNECTING,F1.STATE_CLOSING,F1.STATE_CONNECTED,F1.STATE_CLOSED],[F1.STATE_CONNECTED]:[F1.STATE_CONNECTED,F1.STATE_CLOSING,F1.STATE_CLOSED],[F1.STATE_CLOSING]:[F1.STATE_CLOSING,F1.STATE_CLOSED]});class P0 extends Is.TypedEventEmitter{constructor(J,Z,$){super();this.commandAsync=Rs.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:Z.hostAddress,...$};this.topology=J,this.pool=new Ps.ConnectionPool(this,X),this.s={description:Z,options:$,state:F1.STATE_CLOSED,operationCount:0};for(let Y of[...f6.CMAP_EVENTS,...f6.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(Ds.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new Ns.Monitor(this,this.s.options);for(let Y of f6.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>nQ(this,Y)),this.monitor.on(P0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(P0.DESCRIPTION_RECEIVED,new oQ.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:Bs(this.description.roundTripTime,Y.duration)})),this.s.state===F1.STATE_CONNECTING)D9(this,F1.STATE_CONNECTED),this.emit(P0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(J){this.topology.clusterTime=J}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===F1.TopologyType.LoadBalanced}connect(){if(this.s.state!==F1.STATE_CLOSED)return;if(D9(this,F1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else D9(this,F1.STATE_CONNECTED),this.emit(P0.CONNECT,this)}destroy(J,Z){if(typeof J==="function")Z=J,J={force:!1};if(J=Object.assign({},{force:!1},J),this.s.state===F1.STATE_CLOSED){if(typeof Z==="function")Z();return}if(D9(this,F1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(J,($)=>{if(D9(this,F1.STATE_CLOSED),this.emit("closed"),typeof Z==="function")Z($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(J,Z,$,X){if(X==null)throw new U1.MongoInvalidArgumentError("Callback must be provided");if(J.db==null||typeof J==="string")throw new U1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===F1.STATE_CLOSING||this.s.state===F1.STATE_CLOSED){X(new U1.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&&Es(Z,Q)){this.pool.checkOut((G,F)=>{if(G||F==null){if(X)return X(G);return}Q.pin(F),this.command(J,Z,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,F,q)=>{if(G||!F){if(this.decrementOperationCount(),!G)return q(new U1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof Ts.PoolClearedError))this.handleError(G);return q(G)}F.command(J,Z,Y,Ss(this,F,Z,Y,(W,H)=>{this.decrementOperationCount(),q(W,H)}))},X)}handleError(J,Z){if(!(J instanceof U1.MongoError))return;if(J.connectionGeneration&&J.connectionGeneration<this.pool.generation)return;const X=J instanceof U1.MongoNetworkError&&!(J instanceof U1.MongoNetworkTimeoutError),Y=U1.isNetworkErrorBeforeHandshake(J),Q=J.hasErrorLabel(U1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)J.addErrorLabel(U1.MongoErrorLabel.ResetPool),nQ(this,J);else if(Z)this.pool.clear({serviceId:Z.serviceId})}else if(U1.isSDAMUnrecoverableError(J)){if(hs(this,J)){const K=nZ.maxWireVersion(this)<=7||U1.isNodeShuttingDownError(J);if(this.loadBalanced&&Z&&K)this.pool.clear({serviceId:Z.serviceId});if(!this.loadBalanced){if(K)J.addErrorLabel(U1.MongoErrorLabel.ResetPool);nQ(this,J),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}P0.SERVER_HEARTBEAT_STARTED=f6.SERVER_HEARTBEAT_STARTED;P0.SERVER_HEARTBEAT_SUCCEEDED=f6.SERVER_HEARTBEAT_SUCCEEDED;P0.SERVER_HEARTBEAT_FAILED=f6.SERVER_HEARTBEAT_FAILED;P0.CONNECT=f6.CONNECT;P0.DESCRIPTION_RECEIVED=f6.DESCRIPTION_RECEIVED;P0.CLOSED=f6.CLOSED;P0.ENDED=f6.ENDED;CN.Server=P0});var JK=V((xN)=>{var N9=function(J){return J.s.state===i1.STATE_CLOSED||J.s.state===i1.STATE_CLOSING},kN=function(J){J[v6]?.stop(),J[v6]=void 0,J.rttPinger?.close(),J.rttPinger=void 0,J[f4].emit("cancel"),J[H8]?.destroy({force:!0}),J[H8]=void 0},$K=function(J,Z){if(Z==null)return!1;const $=J.options.serverMonitoringMode;if($===xN.ServerMonitoringMode.poll)return!1;if($===xN.ServerMonitoringMode.stream)return!0;if(J.isRunningInFaasEnv)return!1;return!0},_s=function(J,Z){let $=_0.now();const X=J[tZ].description.topologyVersion,Y=$K(J,X);J.emit(T9.Server.SERVER_HEARTBEAT_STARTED,new P9.ServerHeartbeatStartedEvent(J.address,Y));function Q(G,F){J[H8]?.destroy({force:!0}),J[H8]=void 0,J.emit(T9.Server.SERVER_HEARTBEAT_FAILED,new P9.ServerHeartbeatFailedEvent(J.address,_0.calculateDurationInMs($),G,F));const q=!(G instanceof u7.MongoError)?new u7.MongoError(u7.MongoError.buildErrorMessage(G),{cause:G}):G;if(q.addErrorLabel(u7.MongoErrorLabel.ResetPool),q instanceof u7.MongoNetworkTimeoutError)q.addErrorLabel(u7.MongoErrorLabel.InterruptInUseConnections);J.emit("resetServer",q),Z(G)}const K=J[H8];if(K&&!K.closed){const{serverApi:G,helloOk:F}=K,q=J.options.connectTimeoutMS,W=J.options.heartbeatFrequencyMS,H={[G?.version||F?"hello":ZK.LEGACY_HELLO_COMMAND]:1,...Y&&X?{maxAwaitTimeMS:W,topologyVersion:fs(X)}:{}},U=Y?{socketTimeoutMS:q?q+W:0,exhaustAllowed:!0}:{socketTimeoutMS:q};if(Y&&J.rttPinger==null)J.rttPinger=new YK(J[f4],Object.assign({heartbeatFrequencyMS:J.options.heartbeatFrequencyMS},J.connectOptions));K.command(_0.ns("admin.$cmd"),H,U,(j,z)=>{if(j)return Q(j,Y);if(!("isWritablePrimary"in z))z.isWritablePrimary=z[ZK.LEGACY_HELLO_COMMAND];const A=Y&&J.rttPinger?J.rttPinger.roundTripTime:_0.calculateDurationInMs($);if(J.emit(T9.Server.SERVER_HEARTBEAT_SUCCEEDED,new P9.ServerHeartbeatSucceededEvent(J.address,A,z,Y)),Y)J.emit(T9.Server.SERVER_HEARTBEAT_STARTED,new P9.ServerHeartbeatStartedEvent(J.address,!0)),$=_0.now();else J.rttPinger?.close(),J.rttPinger=void 0,Z(void 0,z)});return}_N.connect(J.connectOptions,(G,F)=>{if(G){J[H8]=void 0,Q(G,!1);return}if(F){if(F.isMonitoringConnection=!0,N9(J)){F.destroy({force:!0});return}J[H8]=F,J.emit(T9.Server.SERVER_HEARTBEAT_SUCCEEDED,new P9.ServerHeartbeatSucceededEvent(J.address,_0.calculateDurationInMs($),F.hello,$K(J,F.hello?.topologyVersion))),Z(void 0,F.hello)}})},yN=function(J){return(Z)=>{if(J.s.state===_4){process.nextTick(Z);return}c7(J,_4);function $(){if(!N9(J))c7(J,d7);Z()}_s(J,(X,Y)=>{if(X){if(J[tZ].description.type===i1.ServerType.Unknown)return $()}if($K(J,Y?.topologyVersion))t8.setTimeout(()=>{if(!N9(J))J[v6]?.wake()},0);$()})}},fs=function(J){return{processId:J.processId,counter:SN.Long.isLong(J.counter)?J.counter:SN.Long.fromNumber(J.counter)}},vN=function(J,Z){const $=_0.now();Z.cancellationToken=J[f4];const X=Z.heartbeatFrequencyMS;if(J.closed)return;function Y(G){if(J.closed){G?.destroy({force:!0});return}if(J.connection==null)J.connection=G;J[I9]=_0.calculateDurationInMs($),J[v6]=t8.setTimeout(()=>vN(J,Z),X)}const Q=J.connection;if(Q==null){_N.connect(Z,(G,F)=>{if(G){J.connection=void 0,J[I9]=0;return}Y(F)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":ZK.LEGACY_HELLO_COMMAND;Q.commandAsync(_0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{J.connection?.destroy({force:!0}),J.connection=void 0,J[I9]=0;return})};Object.defineProperty(xN,"__esModule",{value:!0});xN.MonitorInterval=xN.RTTPinger=xN.Monitor=xN.ServerMonitoringMode=void 0;var t8=import.meta.require("timers"),SN=H1(),_N=lQ(),Os=A9(),ks=$Q(),ZK=v1(),u7=E(),ON=C0(),_0=y(),i1=d0(),P9=mZ(),T9=eQ(),tZ=Symbol("server"),v6=Symbol("monitorId"),H8=Symbol("connection"),f4=Symbol("cancellationToken"),I9=Symbol("roundTripTime"),d7="idle",_4="monitoring",c7=_0.makeStateMachine({[i1.STATE_CLOSING]:[i1.STATE_CLOSING,d7,i1.STATE_CLOSED],[i1.STATE_CLOSED]:[i1.STATE_CLOSED,_4],[d7]:[d7,_4,i1.STATE_CLOSING],[_4]:[_4,d7,i1.STATE_CLOSING]}),ys=new Set([i1.STATE_CLOSING,i1.STATE_CLOSED,_4]);xN.ServerMonitoringMode=Object.freeze({auto:"auto",poll:"poll",stream:"stream"});class fN extends ON.TypedEventEmitter{get connection(){return this[H8]}constructor(J,Z){super();this[tZ]=J,this[H8]=void 0,this[f4]=new ON.CancellationToken,this[f4].setMaxListeners(Infinity),this[v6]=void 0,this.s={state:i1.STATE_CLOSED},this.address=J.description.address,this.options=Object.freeze({connectTimeoutMS:Z.connectTimeoutMS??1e4,heartbeatFrequencyMS:Z.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:Z.minHeartbeatFrequencyMS??500,serverMonitoringMode:Z.serverMonitoringMode}),this.isRunningInFaasEnv=ks.getFAASEnv()!=null;const $=this[f4],X=Object.assign({id:"<monitor>",generation:J.pool.generation,connectionType:Os.Connection,cancellationToken:$,hostAddress:J.description.hostAddress},Z,{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!==i1.STATE_CLOSED)return;const J=this.options.heartbeatFrequencyMS,Z=this.options.minHeartbeatFrequencyMS;this[v6]=new rZ(yN(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:Z,immediate:!0})}requestCheck(){if(ys.has(this.s.state))return;this[v6]?.wake()}reset(){const J=this[tZ].description.topologyVersion;if(N9(this)||J==null)return;c7(this,i1.STATE_CLOSING),kN(this),c7(this,d7);const Z=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[v6]=new rZ(yN(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:$})}close(){if(N9(this))return;c7(this,i1.STATE_CLOSING),kN(this),this.emit("close"),c7(this,i1.STATE_CLOSED)}}xN.Monitor=fN;class YK{constructor(J,Z){this.connection=void 0,this[f4]=J,this[I9]=0,this.closed=!1;const $=Z.heartbeatFrequencyMS;this[v6]=t8.setTimeout(()=>vN(this,Z),$)}get roundTripTime(){return this[I9]}close(){this.closed=!0,t8.clearTimeout(this[v6]),this.connection?.destroy({force:!0}),this.connection=void 0}}xN.RTTPinger=YK;class rZ{constructor(J,Z={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)t8.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=_0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=J,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=Z.minHeartbeatFrequencyMS??500,Z.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const Z=_0.now()-this.lastExecutionEnded;if(Z<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(Z<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-Z);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)t8.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const J=_0.now(),Z=J-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:J,timeSinceLastCall:Z}}_reschedule(J){if(this.stopped)return;if(this.timerId)t8.clearTimeout(this.timerId);this.timerId=t8.setTimeout(this._executeAndReschedule,J||this.heartbeatFrequencyMS)}}xN.MonitorInterval=rZ});var HK=V((pN)=>{async function as(J){if(typeof J.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(J.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const Z=J.srvHost,$=await gN.promises.resolveSrv(`_${J.srvServiceName}._tcp.${Z}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:W}of $)if(!H0.matchesParentDomain(W,Z))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((W)=>H0.HostAddress.fromString(`${W.name}:${W.port??27017}`));GK(X,J,!0);let Y;try{Y=await gN.promises.resolveTxt(Z)}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 gs.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((W)=>!KK.includes(W)))throw new S.MongoParseError(`Text record may only set any of: ${KK.join(", ")}`);if(KK.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,F=Q.get("replicaSet")??void 0,q=Q.get("loadBalanced")??void 0;if(!J.userSpecifiedAuthSource&&G&&J.credentials&&!x6.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(J.credentials.mechanism))J.credentials=p7.MongoCredentials.merge(J.credentials,{source:G});if(!J.userSpecifiedReplicaSet&&F)J.replicaSet=F;if(q==="true")J.loadBalanced=!0;if(J.replicaSet&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return GK(X,J,!0),X}var is=function(J){if(!J)return;const Z=($,X)=>{if(J.has($)&&J.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};Z("tlsInsecure","tlsAllowInvalidCertificates"),Z("tlsInsecure","tlsAllowInvalidHostnames"),Z("tlsInsecure","tlsDisableCertificateRevocationCheck"),Z("tlsInsecure","tlsDisableOCSPEndpointCheck"),Z("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),Z("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),Z("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},z8=function(J,Z){if(typeof Z==="boolean")return Z;switch(Z){case"true":return!0;case"false":return!1;default:throw new S.MongoParseError(`${J} must be either "true" or "false"`)}},qK=function(J,Z){const $=H0.parseInteger(Z);if($!=null)return $;throw new S.MongoParseError(`Expected ${J} to be stringified int value, got: ${Z}`)},B9=function(J,Z){const $=qK(J,Z);if($<0)throw new S.MongoParseError(`${J} can only be a positive int value, got: ${Z}`);return $};function*dN(J){if(J==="")return;const Z=J.split(",");for(let $ of Z){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var ss=function(J,Z=void 0,$={}){if(Z!=null&&!(Z instanceof oZ.MongoClient))$=Z,Z=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 bs.default(J),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(pN.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(H0.HostAddress.fromString);const G=new E9;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 N=X.searchParams.getAll(w),P=/readPreferenceTags/i.test(w);if(!P&&N.length>1)throw new S.MongoInvalidArgumentError(`URI option "${w}" cannot appear more than once in the connection string`);if(!P&&N.includes(""))throw new S.MongoAPIError(`URI option "${w}" cannot be specified with no value`);if(!G.has(w))G.set(w,N)}const F=new E9(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 q=G.get("authMechanismProperties");if(q){for(let w of q)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 W=new E9,H=new Set([...G.keys(),...F.keys()]);for(let w of H){const N=[],P=F.get(w);if(P!=null)N.push(P);const f=G.get(w)??[];N.push(...f),W.set(w,N)}if(W.has("tls")||W.has("ssl")){const w=(W.get("tls")||[]).concat(W.get("ssl")||[]).map(z8.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}is(W);const U=H0.setDifference(H,Array.from(Object.keys(pN.OPTIONS)).map((w)=>w.toLowerCase()));if(U.size!==0){const w=U.size>1?"options":"option",N=U.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(U).join(", ")} ${N} not supported`)}for(let[w,N]of Object.entries(pN.OPTIONS)){const P=W.get(w);if(!P||P.length===0){if(pN.DEFAULT_OPTIONS.has(w))cN(K,w,N,[pN.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:f}=N;if(f){const $0=typeof f==="string"?`: ${f}`:"";H0.emitWarning(`${w} is a deprecated option${$0}`)}cN(K,w,N,P)}}if(K.credentials){const w=K.credentials.mechanism===x6.AuthMechanism.MONGODB_GSSAPI,N=K.credentials.mechanism===x6.AuthMechanism.MONGODB_X509,P=K.credentials.mechanism===x6.AuthMechanism.MONGODB_AWS,f=K.credentials.mechanism===x6.AuthMechanism.MONGODB_OIDC;if((w||N)&&W.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||N||P||f)&&K.dbName&&!W.has("authSource"))K.credentials=p7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(P&&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===x6.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if(GK(Y,K,Q),Z&&K.autoEncryption)uN.Encrypter.checkForMongoCrypt(),K.encrypter=new uN.Encrypter(Z,J,$),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"),N=!F.has("ssl")&&!G.has("ssl");if(w&&N)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 z=Symbol.for("@@mdb.enableMongoLogger");K[z]=K[z]??!1;let A={},T={};if(K[z])A={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_CLIENT:process.env.MONGODB_LOG_CLIENT,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")]},T={mongodbLogPath:K.mongodbLogPath,mongodbLogComponentSeverities:K.mongodbLogComponentSeverities,mongodbLogMaxDocumentLength:K.mongodbLogMaxDocumentLength};return K.mongoLoggerOptions=us.MongoLogger.resolveOptions(A,T),K.metadata=ms.makeClientMetadata(K),K},GK=function(J,Z,$){if(Z.loadBalanced){if(J.length>1)throw new S.MongoParseError(cs);if(Z.replicaSet)throw new S.MongoParseError(ps);if(Z.directConnection)throw new S.MongoParseError(ls);if($&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},cN=function(J,Z,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??Z;switch(Q){case"boolean":J[G]=z8(G,X[0]);break;case"int":J[G]=qK(G,X[0]);break;case"uint":J[G]=B9(G,X[0]);break;case"string":if(X[0]==null)break;J[G]=String(X[0]);break;case"record":if(!H0.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);J[G]=X[0];break;case"any":J[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:J,values:X});J[G]=F;break}}};Object.defineProperty(pN,"__esModule",{value:!0});pN.FEATURE_FLAGS=pN.DEFAULT_OPTIONS=pN.OPTIONS=pN.parseOptions=pN.resolveSRVRecord=void 0;var gN=import.meta.require("dns"),bs=oY(),gs=import.meta.require("url"),p7=KZ(),x6=O6(),ms=$Q(),mN=N7(),uN=AP(),S=E(),oZ=C4(),us=RQ(),QK=c0(),r8=k1(),ds=JK(),H0=y(),V8=A0(),KK=["authSource","replicaSet","loadBalanced"],cs="loadBalanced option only supported with a single host in the URI",ps="loadBalanced option not supported with a replicaSet option",ls="loadBalanced option not supported when directConnection is provided";pN.resolveSRVRecord=as;class E9 extends Map{constructor(J=[]){super(J.map(([Z,$])=>[Z.toLowerCase(),$]))}has(J){return super.has(J.toLowerCase())}get(J){return super.get(J.toLowerCase())}set(J,Z){return super.set(J.toLowerCase(),Z)}delete(J){return super.delete(J.toLowerCase())}}pN.parseOptions=ss;pN.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:J,options:Z,values:[$]}){if(!H0.isRecord($,["username","password"]))throw new S.MongoParseError(`${J} must be an object with 'username' and 'password' properties`);return p7.MongoCredentials.merge(Z.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:J,values:[Z]}){const $=Object.values(x6.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${Z}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${Z}`);let Y=J.credentials?.source;if(X===x6.AuthMechanism.MONGODB_PLAIN||x6.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=J.credentials?.password;if(X===x6.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return p7.MongoCredentials.merge(J.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:J,values:Z}){let $=Object.create(null);for(let X of Z)if(typeof X==="string")for(let[Y,Q]of dN(X))try{$[Y]=z8(Y,Q)}catch{$[Y]=Q}else{if(!H0.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return p7.MongoCredentials.merge(J.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:J,values:[Z]}){const $=String(Z);return p7.MongoCredentials.merge(J.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[J]}){const Z=typeof J==="string"?{version:J}:J,$=Z&&Z.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(oZ.ServerApiVersion).join('", "')}"]`);if(!Object.values(oZ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(oZ.ServerApiVersion).join('", "')}"]`);return Z}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:J}){const Z=new Set;for(let $ of J){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(mN.Compressor).includes(String(Y)))Z.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(mN.Compressor)}.`)}return[...Z]}},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:J,values:[Z]}){const $=qK(J,Z);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:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,fsync:z8(J,$)}});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:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,journal:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,journal:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:J,values:[Z]}){const $=B9(J,Z);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:J,options:Z,values:[$]}){const X=B9(J,$);if(Z.readPreference)return r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,maxStalenessSeconds:X}});else return new r8.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:[J],options:Z}){return{...Z.driverInfo,name:String(J)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:H0.DEFAULT_PK_FACTORY,transform({values:[J]}){if(H0.isRecord(J,["createPk"])&&typeof J.createPk==="function")return J;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${J}`)}},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:[J],options:Z}){if(J instanceof QK.ReadConcern||H0.isRecord(J,["level"]))return QK.ReadConcern.fromOptions({...Z.readConcern,...J});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(J)}`)}},readConcernLevel:{target:"readConcern",transform({values:[J],options:Z}){return QK.ReadConcern.fromOptions({...Z.readConcern,level:J})}},readPreference:{default:r8.ReadPreference.primary,transform({values:[J],options:Z}){if(J instanceof r8.ReadPreference)return r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,...J},...J});if(H0.isRecord(J,["mode"])){const $=r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,...J},...J});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(J)}`)}if(typeof J==="string"){const $={hedge:Z.readPreference?.hedge,maxStalenessSeconds:Z.readPreference?.maxStalenessSeconds};return new r8.ReadPreference(J,Z.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${J}`)}},readPreferenceTags:{target:"readPreference",transform({values:J,options:Z}){const $=Array.isArray(J[0])?J[0]:J,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of dN(Y))Q[K]=G;if(H0.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return r8.ReadPreference.fromOptions({readPreference:Z.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverMonitoringMode:{default:"auto",transform({values:[J]}){if(!Object.values(ds.ServerMonitoringMode).includes(J))throw new S.MongoParseError("serverMonitoringMode must be one of `auto`, `poll`, or `stream`");return J}},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"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:J,values:[Z]}){return!z8(J,Z)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:J,values:[Z]}){return z8(J,Z)?()=>{return}:void 0}},tlsCAFile:{type:"string"},tlsCRLFile:{type:"string"},tlsCertificateKeyFile:{type:"string"},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:J,options:Z,values:[$]}){const X=z8(J,$);if(X)Z.checkServerIdentity=()=>{return},Z.rejectUnauthorized=!1;else Z.checkServerIdentity=Z.tlsAllowInvalidHostnames?()=>{return}:void 0,Z.rejectUnauthorized=Z.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[J],options:Z}){return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,w:J}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[J],options:Z}){if(H0.isRecord(J)||J instanceof V8.WriteConcern)return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,...J}});else if(J==="majority"||typeof J==="number")return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,w:J}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(J)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[J],options:Z}){const $=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,wtimeout:B9("wtimeout",J)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[J],options:Z}){const $=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,wtimeoutMS:B9("wtimeoutMS",J)}});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",deprecated:"useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version"},useUnifiedTopology:{type:"boolean",deprecated:"useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version"},mongodbLogPath:{type:"any"},mongodbLogComponentSeverities:{type:"any"},mongodbLogMaxDocumentLength:{type:"uint"}};pN.DEFAULT_OPTIONS=new E9(Object.entries(pN.OPTIONS).filter(([,J])=>J.default!=null).map(([J,Z])=>[J,Z.default]));pN.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var UK=V((aN)=>{Object.defineProperty(aN,"__esModule",{value:!0});aN.SrvPoller=aN.SrvPollingEvent=void 0;var rs=import.meta.require("dns"),VK=import.meta.require("timers"),os=E(),es=C0(),lN=y();class zK{constructor(J){this.srvRecords=J}hostnames(){return new Set(this.srvRecords.map((J)=>lN.HostAddress.fromSrvRecord(J).toString()))}}aN.SrvPollingEvent=zK;class J$ extends es.TypedEventEmitter{constructor(J){super();if(!J||!J.srvHost)throw new os.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=J.srvHost,this.srvMaxHosts=J.srvMaxHosts??0,this.srvServiceName=J.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=J.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)VK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)VK.clearTimeout(this._timeout);this._timeout=VK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(J){this.haMode=!1,this.schedule(),this.emit(J$.SRV_RECORD_DISCOVERY,new zK(J))}failure(){this.haMode=!0,this.schedule()}async _poll(){const J=this.generation;let Z;try{Z=await rs.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(J!==this.generation)return;const $=[];for(let X of Z)if(lN.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}J$.SRV_RECORD_DISCOVERY="srvRecordDiscovery";aN.SrvPoller=J$});var QB=V((XB)=>{var JB=function(J,Z,$,X){$=$??{force:!1};for(let Y of T0.LOCAL_SERVER_EVENTS)J.removeAllListeners(Y);J.destroy($,()=>{Z.emit(Y1.SERVER_CLOSED,new o8.ServerClosedEvent(Z.s.id,J.description.address));for(let Y of T0.SERVER_RELAY_EVENTS)J.removeAllListeners(Y);if(typeof X==="function")X()})},Xn=function(J){if(J?.directConnection)return u.TopologyType.Single;if(J?.replicaSet)return u.TopologyType.ReplicaSetNoPrimary;if(J?.loadBalanced)return u.TopologyType.LoadBalanced;return u.TopologyType.Unknown},ZB=function(J,Z){J.emit(Y1.SERVER_OPENING,new o8.ServerOpeningEvent(J.s.id,Z.address));const $=new tN.Server(J,Z,J.s.options);for(let X of T0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>J.emit(X,Y));return $.on(tN.Server.DESCRIPTION_RECEIVED,(X)=>J.serverUpdateHandler(X)),$.connect(),$},oN=function(J,Z){if(Z&&J.s.servers.has(Z.address)){const $=J.s.servers.get(Z.address);if($){if($.s.description=Z,Z.error instanceof M8.MongoError&&Z.error.hasErrorLabel(M8.MongoErrorLabel.ResetPool)){const X=Z.error.hasErrorLabel(M8.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(Z.error==null){const X=J.s.description.type;if(Z.isDataBearing||Z.type!==u.ServerType.Unknown&&X===u.TopologyType.Single)$.pool.ready()}}}for(let $ of J.description.servers.values())if(!J.s.servers.has($.address)){const X=ZB(J,$);J.s.servers.set($.address,X)}for(let $ of J.s.servers){const X=$[0];if(J.description.hasServer(X))continue;if(!J.s.servers.has(X))continue;const Y=J.s.servers.get(X);if(J.s.servers.delete(X),Y)JB(Y,J)}},$B=function(J,Z){while(J.length){const $=J.shift();if(!$)continue;if($.timeoutController.clear(),!$[AK])$.callback(Z)}},eN=function(J){if(J.s.state===u.STATE_CLOSED){$B(J[U8],new M8.MongoTopologyClosedError);return}const Z=J.description.type===u.TopologyType.Sharded,$=Array.from(J.description.servers.values()),X=J[U8].length;for(let Y=0;Y<X;++Y){const Q=J[U8].shift();if(!Q)continue;if(Q[AK])continue;let K;try{const q=Q.serverSelector;K=q?q(J.description,$):$}catch(q){Q.timeoutController.clear(),Q.callback(q);continue}let G;if(K.length===0){J[U8].push(Q);continue}else if(K.length===1)G=J.s.servers.get(K[0].address);else{const q=b6.shuffle(K,2),W=J.s.servers.get(q[0].address),H=J.s.servers.get(q[1].address);G=W&&H&&W.s.operationCount<H.s.operationCount?W:H}if(!G){Q.callback(new M8.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",J.description));return}const F=Q.transaction;if(Z&&F&&F.isActive&&G)F.pinServer(G);Q.timeoutController.clear(),Q.callback(void 0,G)}if(J[U8].length>0)for(let[,Y]of J.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},Yn=function(J,Z){const X=J.servers.get(Z.address)?.topologyVersion;return jK.compareTopologyVersion(X,Z.topologyVersion)>0};Object.defineProperty(XB,"__esModule",{value:!0});XB.ServerCapabilities=XB.Topology=void 0;var sN=import.meta.require("util"),nN=HK(),T0=v1(),M8=E(),Zn=C0(),C9=k1(),b6=y(),u=d0(),o8=mZ(),tN=eQ(),jK=x5(),MK=T5(),Z$=UK(),rN=v3(),$n=0,h9=b6.makeStateMachine({[u.STATE_CLOSED]:[u.STATE_CLOSED,u.STATE_CONNECTING],[u.STATE_CONNECTING]:[u.STATE_CONNECTING,u.STATE_CLOSING,u.STATE_CONNECTED,u.STATE_CLOSED],[u.STATE_CONNECTED]:[u.STATE_CONNECTED,u.STATE_CLOSING,u.STATE_CLOSED],[u.STATE_CLOSING]:[u.STATE_CLOSING,u.STATE_CLOSED]}),AK=Symbol("cancelled"),U8=Symbol("waitQueue");class Y1 extends Zn.TypedEventEmitter{constructor(J,Z,$){super();if(this.client=J,this.selectServerAsync=sN.promisify((F,q,W)=>this.selectServer(F,q,W)),$=$??{hosts:[b6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(nN.DEFAULT_OPTIONS.entries()),...Object.fromEntries(nN.FEATURE_FLAGS.entries())},typeof Z==="string")Z=[b6.HostAddress.fromString(Z)];else if(!Array.isArray(Z))Z=[Z];const X=[];for(let F of Z)if(typeof F==="string")X.push(b6.HostAddress.fromString(F));else if(F instanceof b6.HostAddress)X.push(F);else throw new M8.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(F)}`);const Y=Xn($),Q=$n++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:b6.shuffle(X,$.srvMaxHosts),G=new Map;for(let F of K)G.set(F.toString(),new jK.ServerDescription(F));if(this[U8]=new b6.List,this.s={id:Q,options:$,seedlist:X,state:u.STATE_CLOSED,description:new rN.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 Z$.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(Y1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(J){const Z=J.previousDescription.type,$=J.newDescription.type,X=Z!==u.TopologyType.Sharded&&$===u.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(Z$.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(Z$.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(J){const Z=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(J,this.s.options.srvMaxHosts),this.s.description===Z)return;oN(this),this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,Z,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new LK(this.lastHello())}connect(J,Z){if(typeof J==="function")Z=J,J={};if(J=J??{},this.s.state===u.STATE_CONNECTED){if(typeof Z==="function")Z();return}h9(this,u.STATE_CONNECTING),this.emit(Y1.TOPOLOGY_OPENING,new o8.TopologyOpeningEvent(this.s.id)),this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,new rN.TopologyDescription(u.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,ZB(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new jK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>Z?Z(Q):this.emit(Y1.ERROR,Q),Y=J.readPreference??C9.ReadPreference.primary;this.selectServer(MK.readPreferenceServerSelector(Y),J,(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(b6.ns("admin.$cmd"),{ping:1},{},(F)=>{if(F)return X(F);h9(this,u.STATE_CONNECTED),this.emit(Y1.OPEN,this),this.emit(Y1.CONNECT,this),Z?.(void 0,this)});return}h9(this,u.STATE_CONNECTED),this.emit(Y1.OPEN,this),this.emit(Y1.CONNECT,this),Z?.(void 0,this)})}close(J,Z){if(J=J??{force:!1},this.s.state===u.STATE_CLOSED||this.s.state===u.STATE_CLOSING)return Z?.();const $=Array.from(this.s.servers.values(),(X)=>{return sN.promisify(JB)(X,this,{force:!!J?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),h9(this,u.STATE_CLOSING),$B(this[U8],new M8.MongoTopologyClosedError),u.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(Z$.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(Y1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),h9(this,u.STATE_CLOSED),this.emit(Y1.TOPOLOGY_CLOSED,new o8.TopologyClosedEvent(this.s.id))}).finally(()=>Z?.())}selectServer(J,Z,$){let X;if(typeof J!=="function")if(typeof J==="string")X=MK.readPreferenceServerSelector(C9.ReadPreference.fromString(J));else{let F;if(J instanceof C9.ReadPreference)F=J;else C9.ReadPreference.translate(Z),F=Z.readPreference||C9.ReadPreference.primary;X=MK.readPreferenceServerSelector(F)}else X=J;Z=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},Z);const Y=this.description.type===u.TopologyType.Sharded,Q=Z.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$,timeoutController:new b6.TimeoutController(Z.serverSelectionTimeoutMS)};G.timeoutController.signal.addEventListener("abort",()=>{G[AK]=!0,G.timeoutController.clear();const F=new M8.MongoServerSelectionError(`Server selection timed out after ${Z.serverSelectionTimeoutMS} ms`,this.description);G.callback(F)}),this[U8].push(G),eN(this)}serverUpdateHandler(J){if(!this.s.description.hasServer(J.address))return;if(Yn(this.s.description,J))return;const Z=this.s.description,$=this.s.description.servers.get(J.address);if(!$)return;const X=J.$clusterTime;if(X)u._advanceClusterTime(this,X);const Y=$&&$.equals(J);if(this.s.description=this.s.description.update(J),this.s.description.compatibilityError){this.emit(Y1.ERROR,new M8.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(J.address);if(Q)this.emit(Y1.SERVER_DESCRIPTION_CHANGED,new o8.ServerDescriptionChangedEvent(this.s.id,J.address,$,Q))}if(oN(this,J),this[U8].length>0)eN(this);if(!Y)this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,Z,this.s.description))}auth(J,Z){if(typeof J==="function")Z=J,J=void 0;if(typeof Z==="function")Z(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===u.STATE_CONNECTED}isDestroyed(){return this.s.state===u.STATE_CLOSED}lastHello(){const J=Array.from(this.description.servers.values());if(J.length===0)return{};return J.filter((X)=>X.type!==u.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(J){this.s.clusterTime=J}}Y1.SERVER_OPENING=T0.SERVER_OPENING;Y1.SERVER_CLOSED=T0.SERVER_CLOSED;Y1.SERVER_DESCRIPTION_CHANGED=T0.SERVER_DESCRIPTION_CHANGED;Y1.TOPOLOGY_OPENING=T0.TOPOLOGY_OPENING;Y1.TOPOLOGY_CLOSED=T0.TOPOLOGY_CLOSED;Y1.TOPOLOGY_DESCRIPTION_CHANGED=T0.TOPOLOGY_DESCRIPTION_CHANGED;Y1.ERROR=T0.ERROR;Y1.OPEN=T0.OPEN;Y1.CONNECT=T0.CONNECT;Y1.CLOSE=T0.CLOSE;Y1.TIMEOUT=T0.TIMEOUT;XB.Topology=Y1;class LK{constructor(J){this.minWireVersion=J.minWireVersion||0,this.maxWireVersion=J.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}}XB.ServerCapabilities=LK});var C4=V((VB)=>{Object.defineProperty(VB,"__esModule",{value:!0});VB.MongoClient=VB.ServerApiVersion=void 0;var wK=import.meta.require("fs"),Kn=import.meta.require("util"),Gn=H1(),Fn=U7(),qn=KZ(),Wn=O6(),KB=HK(),Hn=v1(),Vn=JZ(),GB=E(),zn=RQ(),Un=C0(),Mn=L0(),jn=X7(),FB=k1(),An=T5(),qB=QB(),WB=m5(),f0=y();VB.ServerApiVersion=Object.freeze({v1:"1"});var N1=Symbol("options");class HB extends Un.TypedEventEmitter{constructor(J,Z){super();this[N1]=KB.parseOptions(J,this,Z),this.mongoLogger=new zn.MongoLogger(this[N1].mongoLoggerOptions);const $=this;this.s={url:J,bsonOptions:Gn.resolveBSONOptions(this[N1]),namespace:f0.ns("admin"),hasBeenClosed:!1,sessionPool:new WB.ServerSessionPool(this),activeSessions:new Set,get options(){return $[N1]},get readConcern(){return $[N1].readConcern},get writeConcern(){return $[N1].writeConcern},get readPreference(){return $[N1].readPreference},get isMongoClient(){return!0}},this.checkForNonGenuineHosts()}checkForNonGenuineHosts(){const J=this[N1].hosts.filter((Y)=>f0.isHostMatch(f0.DOCUMENT_DB_CHECK,Y.host)),Z=f0.isHostMatch(f0.DOCUMENT_DB_CHECK,this[N1].srvHost),$=this[N1].hosts.filter((Y)=>f0.isHostMatch(f0.COSMOS_DB_CHECK,Y.host)),X=f0.isHostMatch(f0.COSMOS_DB_CHECK,this[N1].srvHost);if(J.length!==0||Z)this.mongoLogger.info("client",f0.DOCUMENT_DB_MSG);else if($.length!==0||X)this.mongoLogger.info("client",f0.COSMOS_DB_MSG)}get options(){return Object.freeze({...this[N1]})}get serverApi(){return this[N1].serverApi&&Object.freeze({...this[N1].serverApi})}get monitorCommands(){return this[N1].monitorCommands}set monitorCommands(J){this[N1].monitorCommands=J}get autoEncrypter(){return this[N1].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 J=this[N1];if(J.tls){if(typeof J.tlsCAFile==="string")J.ca??=await wK.promises.readFile(J.tlsCAFile);if(typeof J.tlsCRLFile==="string")J.crl??=await wK.promises.readFile(J.tlsCRLFile);if(typeof J.tlsCertificateKeyFile==="string"){if(!J.key||!J.cert){const $=await wK.promises.readFile(J.tlsCertificateKeyFile);J.key??=$,J.cert??=$}}}if(typeof J.srvHost==="string"){const $=await KB.resolveSRVRecord(J);for(let[X,Y]of $.entries())J.hosts[X]=Y}if(J.credentials?.mechanism===Wn.AuthMechanism.MONGODB_OIDC){const $=J.credentials?.mechanismProperties?.ALLOWED_HOSTS||qn.DEFAULT_ALLOWED_HOSTS;if(!J.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of J.hosts)if(!f0.hostMatchesWildcards(Y.toHostPort().host,$))throw new GB.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new qB.Topology(this,J.hosts,J),this.topology.once(qB.Topology.OPEN,()=>this.emit("open",this));for(let $ of Hn.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const Z=async()=>{try{await Kn.promisify(($)=>this.topology?.connect(J,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await this.autoEncrypter?.init(),await Z(),await J.encrypter.connectInternalClient();else await Z();return this}async close(J=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const Z=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(Z),this.topology==null)return;const $=An.readPreferenceServerSelector(FB.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 Mn.executeOperation(this,new jn.RunAdminCommandOperation({endSessions:G},{readPreference:FB.ReadPreference.primaryPreferred,noResponse:!0})).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,F)=>{K.close({force:J},(q)=>{if(q)return F(q);const{encrypter:W}=this[N1];if(W)return W.closeCallback(this,J,(H)=>{if(H)return F(H);G()});G()})})}db(J,Z){if(Z=Z??{},!J)J=this.options.dbName;const $=Object.assign({},this[N1],Z);return new Vn.Db(this,J,$)}static async connect(J,Z){return new this(J,Z).connect()}startSession(J){const Z=new WB.ClientSession(this,this.s.sessionPool,{explicit:!0,...J},this[N1]);return this.s.activeSessions.add(Z),Z.once("ended",()=>{this.s.activeSessions.delete(Z)}),Z}async withSession(J,Z){const $={owner:Symbol(),...typeof J==="object"?J:{}},X=typeof J==="function"?J:Z;if(X==null)throw new GB.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{return await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Fn.ChangeStream(this,J,f0.resolveOptions(this,Z))}}VB.MongoClient=HB});var U7=V((UB)=>{Object.defineProperty(UB,"__esModule",{value:!0});UB.ChangeStream=void 0;var wn=P4(),R6=v1(),Rn=IY(),Dn=JZ(),w6=E(),Pn=C4(),Tn=C0(),RK=y(),l7=Symbol("cursorStream"),a7=Symbol("closed"),S9=Symbol("mode"),In=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],v4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},Nn=[R6.RESUME_TOKEN_CHANGED,R6.END,R6.CLOSE],Bn="A change stream document has been received that lacks a resume token (_id).",$$="ChangeStream is closed";class I0 extends Tn.TypedEventEmitter{constructor(J,Z=[],$={}){super();if(this.pipeline=Z,this.options={...$},delete this.options.writeConcern,J instanceof wn.Collection)this.type=v4.COLLECTION;else if(J instanceof Dn.Db)this.type=v4.DATABASE;else if(J instanceof Pn.MongoClient)this.type=v4.CLUSTER;else throw new w6.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=J,this.namespace=J.s.namespace,!this.options.readPreference&&J.readPreference)this.options.readPreference=J.readPreference;this.cursor=this._createChangeStreamCursor($),this[a7]=!1,this[S9]=!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[l7]?.removeAllListeners("data")})}get cursorStream(){return this[l7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async next(){this._setIsIterator();while(!0)try{const J=await this.cursor.next();return this._processChange(J??null)}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[a7]||this.cursor.closed}async close(){this[a7]=!0;const J=this.cursor;try{await J.close()}finally{this._endStream()}}stream(J){if(this.closed)throw new w6.MongoChangeStreamError($$);return this.streamOptions=J,this.cursor.stream(J)}_setIsEmitter(){if(this[S9]==="iterator")throw new w6.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[S9]="emitter"}_setIsIterator(){if(this[S9]==="emitter")throw new w6.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[S9]="iterator"}_createChangeStreamCursor(J){const Z=RK.filterOptions(J,In);if(this.type===v4.CLUSTER)Z.allChangesForCluster=!0;const $=[{$changeStream:Z},...this.pipeline],X=this.type===v4.CLUSTER?this.parent:this.type===v4.DATABASE?this.parent.client:this.type===v4.COLLECTION?this.parent.client:null;if(X==null)throw new w6.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new Rn.ChangeStreamCursor(X,this.namespace,$,J);for(let Q of Nn)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(I0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(J){this.emit(I0.ERROR,J),this.close().catch(()=>null)}_streamEvents(J){this._setIsEmitter();const Z=this[l7]??J.stream();this[l7]=Z,Z.on("data",($)=>{try{const X=this._processChange($);this.emit(I0.CHANGE,X)}catch(X){this.emit(I0.ERROR,X)}}),Z.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const J=this[l7];if(J)["data","close","end","error"].forEach((Z)=>J.removeAllListeners(Z)),J.destroy();this[l7]=void 0}_processChange(J){if(this[a7])throw new w6.MongoAPIError($$);if(J==null)throw new w6.MongoRuntimeError($$);if(J&&!J._id)throw new w6.MongoChangeStreamError(Bn);return this.cursor.cacheResumeToken(J._id),this.options.startAtOperationTime=void 0,J}_processErrorStreamMode(J){if(this[a7])return;if(w6.isResumableError(J,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),RK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(J);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(J)}async _processErrorIteratorMode(J){if(this[a7])throw new w6.MongoAPIError($$);if(!w6.isResumableError(J,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw J}await this.cursor.close().catch(()=>null);const Z=RK.getTopology(this.parent);try{await Z.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),J}}}I0.RESPONSE=R6.RESPONSE;I0.MORE=R6.MORE;I0.INIT=R6.INIT;I0.CLOSE=R6.CLOSE;I0.CHANGE=R6.CHANGE;I0.END=R6.END;I0.ERROR=R6.ERROR;I0.RESUME_TOKEN_CHANGED=R6.RESUME_TOKEN_CHANGED;UB.ChangeStream=I0});var DK=V((AB)=>{var jB=function(J){if(J.s.init)throw new v0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},Cn=function(J){if(J.destroyed)return;if(!J.s.cursor)return;if(!J.s.file)return;const Z=({error:$,doc:X})=>{if(J.destroyed)return;if($){J.destroy($);return}if(!X){J.push(null),J.s.cursor?.close().then(()=>null,(U)=>J.destroy(U));return}if(!J.s.file)return;const Y=J.s.file.length-J.s.bytesRead,Q=J.s.expected++,K=Math.min(J.s.file.chunkSize,Y);if(X.n>Q)return J.destroy(new v0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return J.destroy(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 J.destroy(new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${J.s.file.length} bytes but already read ${J.s.bytesRead} bytes`));return J.destroy(new v0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(J.s.bytesRead+=G.byteLength,G.byteLength===0)return J.push(null);let F=null,q=null;if(J.s.bytesToSkip!=null)F=J.s.bytesToSkip,J.s.bytesToSkip=0;const W=Q===J.s.expectedEnd-1,H=J.s.options.end-J.s.bytesToSkip;if(W&&J.s.bytesToTrim!=null)q=J.s.file.chunkSize-J.s.bytesToTrim;else if(J.s.options.end&&H<X.data.byteLength)q=H;if(F!=null||q!=null)G=G.slice(F||0,q||G.byteLength);J.push(G);return};J.s.cursor.next().then(($)=>Z({error:null,doc:$}),($)=>Z({error:$,doc:null}))},hn=function(J){const Z={};if(J.s.readPreference)Z.readPreference=J.s.readPreference;if(J.s.options&&J.s.options.sort)Z.sort=J.s.options.sort;if(J.s.options&&J.s.options.skip)Z.skip=J.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return J.destroy(X);if(!Y){const G=`FileNotFound: file ${J.s.filter._id?J.s.filter._id.toString():J.s.filter.filename} was not found`,F=new v0.MongoRuntimeError(G);return F.code="ENOENT",J.destroy(F)}if(Y.length<=0){J.push(null);return}if(J.destroyed){J.destroy();return}try{J.s.bytesToSkip=On(J,Y,J.s.options)}catch(K){return J.destroy(K)}const Q={files_id:Y._id};if(J.s.options&&J.s.options.start!=null){const K=Math.floor(J.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(J.s.cursor=J.s.chunks.find(Q).sort({n:1}),J.s.readPreference)J.s.cursor.withReadPreference(J.s.readPreference);J.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),J.s.file=Y;try{J.s.bytesToTrim=kn(J,Y,J.s.cursor,J.s.options)}catch(K){return J.destroy(K)}J.emit(X$.FILE,Y);return};J.s.files.findOne(J.s.filter,Z).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},Sn=function(J,Z){if(J.s.file)return Z();if(!J.s.init)hn(J),J.s.init=!0;J.once("file",()=>{Z()})},On=function(J,Z,$){if($&&$.start!=null){if($.start>Z.length)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${Z.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 J.s.bytesRead=Math.floor($.start/Z.chunkSize)*Z.chunkSize,J.s.expected=Math.floor($.start/Z.chunkSize),$.start-J.s.bytesRead}throw new v0.MongoInvalidArgumentError("Start option must be defined")},kn=function(J,Z,$,X){if(X&&X.end!=null){if(X.end>Z.length)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${Z.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/Z.chunkSize):0;return $.limit(Math.ceil(X.end/Z.chunkSize)-Y),J.s.expectedEnd=Math.ceil(X.end/Z.chunkSize),Math.ceil(X.end/Z.chunkSize)*Z.chunkSize-X.end}throw new v0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(AB,"__esModule",{value:!0});AB.GridFSBucketReadStream=void 0;var En=import.meta.require("stream"),v0=E();class X$ extends En.Readable{constructor(J,Z,$,X,Y){super({emitClose:!0});this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:J,expected:0,files:Z,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;Sn(this,()=>Cn(this))}start(J=0){return jB(this),this.s.options.start=J,this}end(J=0){return jB(this),this.s.options.end=J,this}async abort(){this.push(null),this.destroy(),await this.s.cursor?.close()}}X$.FILE="file";AB.GridFSBucketReadStream=X$});var IK=V((PB)=>{var TK=function(J,Z,$){if(J.state.errored){process.nextTick($);return}J.state.errored=!0,process.nextTick($,Z)},DB=function(J,Z,$){return{_id:new wB.ObjectId,files_id:J,n:Z,data:$}};async function fn(J){const Z={files_id:1,n:1};let $;try{$=await J.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 J.chunks.createIndex(Z,{...J.writeConcern,background:!0,unique:!0})}var PK=function(J,Z){if(J.done)return process.nextTick(Z);if(J.state.streamEnd&&J.state.outstandingRequests===0&&!J.state.errored){J.done=!0;const $=xn(J.id,J.length,J.chunkSizeBytes,J.filename,J.options.contentType,J.options.aliases,J.options.metadata);if(Y$(J,Z))return;J.files.insertOne($,{writeConcern:J.writeConcern}).then(()=>{J.gridFSFile=$,Z()},(X)=>TK(J,X,Z));return}process.nextTick(Z)};async function vn(J){if(await J.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await J.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 J.files.createIndex($,{background:!1});await fn(J)}var xn=function(J,Z,$,X,Y,Q,K){const G={_id:J,length:Z,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},bn=function(J,Z,$,X){if(Y$(J,X))return;const Y=Buffer.isBuffer(Z)?Z:Buffer.from(Z,$);if(J.length+=Y.length,J.pos+Y.length<J.chunkSizeBytes){Y.copy(J.bufToStore,J.pos),J.pos+=Y.length,process.nextTick(X);return}let Q=Y.length,K=J.chunkSizeBytes-J.pos,G=Math.min(K,Y.length),F=0;while(Q>0){const q=Y.length-Q;Y.copy(J.bufToStore,J.pos,q,q+G),J.pos+=G,K-=G;let W;if(K===0){if(W=DB(J.id,J.n,Buffer.from(J.bufToStore)),++J.state.outstandingRequests,++F,Y$(J,X))return;J.chunks.insertOne(W,{writeConcern:J.writeConcern}).then(()=>{if(--J.state.outstandingRequests,--F,!F)PK(J,X)},(H)=>TK(J,H,X)),K=J.chunkSizeBytes,J.pos=0,++J.n}Q-=G,G=Math.min(K,Q)}},gn=function(J,Z){if(J.pos===0)return PK(J,Z);++J.state.outstandingRequests;const $=Buffer.alloc(J.pos);J.bufToStore.copy($,0,0,J.pos);const X=DB(J.id,J.n,$);if(Y$(J,Z))return;J.chunks.insertOne(X,{writeConcern:J.writeConcern}).then(()=>{--J.state.outstandingRequests,PK(J,Z)},(Y)=>TK(J,Y,Z))},Y$=function(J,Z){if(J.state.aborted)return process.nextTick(Z,new x4.MongoAPIError("Stream has been aborted")),!0;return!1};Object.defineProperty(PB,"__esModule",{value:!0});PB.GridFSBucketWriteStream=void 0;var yn=import.meta.require("stream"),wB=H1(),x4=E(),_n=A0();class RB extends yn.Writable{constructor(J,Z,$){super();if(this.gridFSFile=null,$=$??{},this.bucket=J,this.chunks=J.s._chunksCollection,this.filename=Z,this.files=J.s._filesCollection,this.options=$,this.writeConcern=_n.WriteConcern.fromOptions($)||J.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new wB.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,vn(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}_construct(J){if(this.bucket.s.checkedIndexes)return process.nextTick(J);this.bucket.once("index",J)}_write(J,Z,$){bn(this,J,Z,$)}_final(J){if(this.state.streamEnd)return process.nextTick(J);this.state.streamEnd=!0,gn(this,J)}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})}}PB.GridFSBucketWriteStream=RB});var hB=V((EB)=>{Object.defineProperty(EB,"__esModule",{value:!0});EB.GridFSBucket=void 0;var IB=E(),mn=C0(),un=A0(),NB=DK(),BB=IK(),dn={bucketName:"fs",chunkSizeBytes:261120};class NK extends mn.TypedEventEmitter{constructor(J,Z){super();this.setMaxListeners(0);const $={...dn,...Z,writeConcern:un.WriteConcern.fromOptions(Z)};this.s={db:J,options:$,_chunksCollection:J.collection($.bucketName+".chunks"),_filesCollection:J.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(J,Z){return new BB.GridFSBucketWriteStream(this,J,Z)}openUploadStreamWithId(J,Z,$){return new BB.GridFSBucketWriteStream(this,Z,{...$,id:J})}openDownloadStream(J,Z){return new NB.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:J},Z)}async delete(J){const{deletedCount:Z}=await this.s._filesCollection.deleteOne({_id:J});if(await this.s._chunksCollection.deleteMany({files_id:J}),Z===0)throw new IB.MongoRuntimeError(`File not found for id ${J}`)}find(J={},Z={}){return this.s._filesCollection.find(J,Z)}openDownloadStreamByName(J,Z){let $={uploadDate:-1},X=void 0;if(Z&&Z.revision!=null)if(Z.revision>=0)$={uploadDate:1},X=Z.revision;else X=-Z.revision-1;return new NB.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:J},{...Z,sort:$,skip:X})}async rename(J,Z){const $={_id:J},X={$set:{filename:Z}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new IB.MongoRuntimeError(`File with id ${J} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}NK.INDEX="index";EB.GridFSBucket=NK});var kB=V((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.ClientEncryption=void 0;var g6=H1(),cn=H6(),e8=y(),pn=qQ(),b4=B4(),ln=VQ(),Q$=zQ();class K${static getMongoCrypt(){const J=cn.getMongoDBClientEncryption();if("kModuleError"in J)throw J.kModuleError;return J.MongoCrypt}constructor(J,Z){if(this._client=J,this._proxyOptions=Z.proxyOptions??{},this._tlsOptions=Z.tlsOptions??{},this._kmsProviders=Z.kmsProviders||{},Z.keyVaultNamespace==null)throw new b4.MongoCryptInvalidArgumentError("Missing required option `keyVaultNamespace`");const $={...Z,cryptoCallbacks:pn,kmsProviders:!Buffer.isBuffer(this._kmsProviders)?g6.serialize(this._kmsProviders):this._kmsProviders};this._keyVaultNamespace=Z.keyVaultNamespace,this._keyVaultClient=Z.keyVaultClient||J;const X=K$.getMongoCrypt();this._mongoCrypt=new X($)}async createDataKey(J,Z={}){if(Z.keyAltNames&&!Array.isArray(Z.keyAltNames))throw new b4.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but was of type ${typeof Z.keyAltNames}.`);let $=void 0;if(Z.keyAltNames&&Z.keyAltNames.length>0)$=Z.keyAltNames.map((H,U)=>{if(typeof H!=="string")throw new b4.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but item at index ${U} was of type ${typeof H}`);return g6.serialize({keyAltName:H})});let X=void 0;if(Z.keyMaterial)X=g6.serialize({keyMaterial:Z.keyMaterial});const Y=g6.serialize({provider:J,...Z.masterKey}),Q=this._mongoCrypt.makeDataKeyContext(Y,{keyAltNames:$,keyMaterial:X}),G=await new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}).execute(this,Q),{db:F,collection:q}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),{insertedId:W}=await this._keyVaultClient.db(F).collection(q).insertOne(G,{writeConcern:{w:"majority"}});return W}async rewrapManyDataKey(J,Z){let $=void 0;if(Z){const H=Object.assign({provider:Z.provider},Z.masterKey);$=g6.serialize(H)}const X=g6.serialize(J),Y=this._mongoCrypt.makeRewrapManyDataKeyContext(X,$),Q=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),{v:K}=await Q.execute(this,Y);if(K.length===0)return{};const{db:G,collection:F}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),q=K.map((H)=>({updateOne:{filter:{_id:H._id},update:{$set:{masterKey:H.masterKey,keyMaterial:H.keyMaterial},$currentDate:{updateDate:!0}}}}));return{bulkWriteResult:await this._keyVaultClient.db(G).collection(F).bulkWrite(q,{writeConcern:{w:"majority"}})}}async deleteKey(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).deleteOne({_id:J},{writeConcern:{w:"majority"}})}getKeys(){const{db:J,collection:Z}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(J).collection(Z).find({},{readConcern:{level:"majority"}})}async getKey(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).findOne({_id:J},{readConcern:{level:"majority"}})}async getKeyByAltName(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).findOne({keyAltNames:J},{readConcern:{level:"majority"}})}async addKeyAltName(J,Z){const{db:$,collection:X}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db($).collection(X).findOneAndUpdate({_id:J},{$addToSet:{keyAltNames:Z}},{writeConcern:{w:"majority"},returnDocument:"before"})}async removeKeyAltName(J,Z){const{db:$,collection:X}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),Y=[{$set:{keyAltNames:{$cond:[{$eq:["$keyAltNames",[Z]]},"$$REMOVE",{$filter:{input:"$keyAltNames",cond:{$ne:["$$this",Z]}}}]}}}];return await this._keyVaultClient.db($).collection(X).findOneAndUpdate({_id:J},Y,{writeConcern:{w:"majority"},returnDocument:"before"})}async createEncryptedCollection(J,Z,$){const{provider:X,masterKey:Y,createCollectionOptions:{encryptedFields:{...Q},...K}}=$;if(Array.isArray(Q.fields)){const G=Q.fields.map(async(W)=>W==null||typeof W!=="object"||W.keyId!=null?W:{...W,keyId:await this.createDataKey(X,{masterKey:Y})}),F=await Promise.allSettled(G);Q.fields=F.map((W,H)=>W.status==="fulfilled"?W.value:Q.fields[H]);const q=F.find((W)=>W.status==="rejected");if(q!=null)throw new b4.MongoCryptCreateDataKeyError(Q,{cause:q.reason})}try{return{collection:await J.createCollection(Z,{...K,encryptedFields:Q}),encryptedFields:Q}}catch(G){throw new b4.MongoCryptCreateEncryptedCollectionError(Q,{cause:G})}}async encrypt(J,Z){return this._encrypt(J,!1,Z)}async encryptExpression(J,Z){return this._encrypt(J,!0,Z)}async decrypt(J){const Z=g6.serialize({v:J}),$=this._mongoCrypt.makeExplicitDecryptionContext(Z),X=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),{v:Y}=await X.execute(this,$);return Y}async askForKMSCredentials(){return ln.refreshKMSCredentials(this._kmsProviders)}static get libmongocryptVersion(){return K$.getMongoCrypt().libmongocryptVersion}async _encrypt(J,Z,$){const{algorithm:X,keyId:Y,keyAltName:Q,contentionFactor:K,queryType:G,rangeOptions:F}=$,q={expressionMode:Z,algorithm:X};if(Y)q.keyId=Y.buffer;if(Q){if(Y)throw new b4.MongoCryptInvalidArgumentError('"options" cannot contain both "keyId" and "keyAltName"');if(typeof Q!=="string")throw new b4.MongoCryptInvalidArgumentError(`"options.keyAltName" must be of type string, but was of type ${typeof Q}`);q.keyAltName=g6.serialize({keyAltName:Q})}if(typeof K==="number"||typeof K==="bigint")q.contentionFactor=K;if(typeof G==="string")q.queryType=G;if(typeof F==="object")q.rangeOptions=g6.serialize(F);const W=g6.serialize({v:J}),H=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),U=this._mongoCrypt.makeExplicitEncryptionContext(W,q);return(await H.execute(this,U)).v}}SB.ClientEncryption=K$});var G$=V((R)=>{Object.defineProperty(R,"__esModule",{value:!0});R.MongoUnexpectedServerResponseError=R.MongoTransactionError=R.MongoTopologyClosedError=R.MongoTailableCursorError=R.MongoSystemError=R.MongoServerSelectionError=R.MongoServerError=R.MongoServerClosedError=R.MongoRuntimeError=R.MongoParseError=R.MongoNotConnectedError=R.MongoNetworkTimeoutError=R.MongoNetworkError=R.MongoMissingDependencyError=R.MongoMissingCredentialsError=R.MongoKerberosError=R.MongoInvalidArgumentError=R.MongoGridFSStreamError=R.MongoGridFSChunkError=R.MongoExpiredSessionError=R.MongoError=R.MongoDriverError=R.MongoDecompressionError=R.MongoCursorInUseError=R.MongoCursorExhaustedError=R.MongoCompatibilityError=R.MongoChangeStreamError=R.MongoBatchReExecutionError=R.MongoAzureError=R.MongoAWSError=R.MongoAPIError=R.ChangeStreamCursor=R.ClientEncryption=R.MongoBulkWriteError=R.UUID=R.Timestamp=R.ObjectId=R.MinKey=R.MaxKey=R.Long=R.Int32=R.Double=R.Decimal128=R.DBRef=R.Code=R.BSONType=R.BSONSymbol=R.BSONRegExp=R.Binary=R.BSON=void 0;R.ConnectionPoolReadyEvent=R.ConnectionPoolMonitoringEvent=R.ConnectionPoolCreatedEvent=R.ConnectionPoolClosedEvent=R.ConnectionPoolClearedEvent=R.ConnectionCreatedEvent=R.ConnectionClosedEvent=R.ConnectionCheckOutStartedEvent=R.ConnectionCheckOutFailedEvent=R.ConnectionCheckedOutEvent=R.ConnectionCheckedInEvent=R.CommandSucceededEvent=R.CommandStartedEvent=R.CommandFailedEvent=R.WriteConcern=R.ReadPreference=R.ReadConcern=R.TopologyType=R.ServerType=R.ReadPreferenceMode=R.ReadConcernLevel=R.ProfilingLevel=R.ReturnDocument=R.ServerApiVersion=R.ExplainVerbosity=R.MongoErrorLabel=R.CURSOR_FLAGS=R.Compressor=R.AuthMechanism=R.GSSAPICanonicalizationValue=R.AutoEncryptionLoggerLevel=R.BatchType=R.UnorderedBulkOperation=R.OrderedBulkOperation=R.MongoClient=R.ListIndexesCursor=R.ListCollectionsCursor=R.GridFSBucketWriteStream=R.GridFSBucketReadStream=R.GridFSBucket=R.FindCursor=R.Db=R.Collection=R.ClientSession=R.ChangeStream=R.CancellationToken=R.AggregationCursor=R.Admin=R.AbstractCursor=R.MongoWriteConcernError=void 0;R.MongoCryptKMSRequestNetworkTimeoutError=R.MongoCryptInvalidArgumentError=R.MongoCryptError=R.MongoCryptCreateEncryptedCollectionError=R.MongoCryptCreateDataKeyError=R.MongoCryptAzureKMSRequestError=R.SrvPollingEvent=R.TopologyOpeningEvent=R.TopologyDescriptionChangedEvent=R.TopologyClosedEvent=R.ServerOpeningEvent=R.ServerHeartbeatSucceededEvent=R.ServerHeartbeatStartedEvent=R.ServerHeartbeatFailedEvent=R.ServerDescriptionChangedEvent=R.ServerClosedEvent=R.ConnectionReadyEvent=void 0;var an=Y3();Object.defineProperty(R,"Admin",{enumerable:!0,get:function(){return an.Admin}});var sn=N3();Object.defineProperty(R,"OrderedBulkOperation",{enumerable:!0,get:function(){return sn.OrderedBulkOperation}});var nn=B3();Object.defineProperty(R,"UnorderedBulkOperation",{enumerable:!0,get:function(){return nn.UnorderedBulkOperation}});var tn=U7();Object.defineProperty(R,"ChangeStream",{enumerable:!0,get:function(){return tn.ChangeStream}});var rn=P4();Object.defineProperty(R,"Collection",{enumerable:!0,get:function(){return rn.Collection}});var on=X8();Object.defineProperty(R,"AbstractCursor",{enumerable:!0,get:function(){return on.AbstractCursor}});var en=p5();Object.defineProperty(R,"AggregationCursor",{enumerable:!0,get:function(){return en.AggregationCursor}});var Jt=ZY();Object.defineProperty(R,"FindCursor",{enumerable:!0,get:function(){return Jt.FindCursor}});var Zt=EY();Object.defineProperty(R,"ListCollectionsCursor",{enumerable:!0,get:function(){return Zt.ListCollectionsCursor}});var $t=WY();Object.defineProperty(R,"ListIndexesCursor",{enumerable:!0,get:function(){return $t.ListIndexesCursor}});var Xt=JZ();Object.defineProperty(R,"Db",{enumerable:!0,get:function(){return Xt.Db}});var Yt=hB();Object.defineProperty(R,"GridFSBucket",{enumerable:!0,get:function(){return Yt.GridFSBucket}});var Qt=DK();Object.defineProperty(R,"GridFSBucketReadStream",{enumerable:!0,get:function(){return Qt.GridFSBucketReadStream}});var Kt=IK();Object.defineProperty(R,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return Kt.GridFSBucketWriteStream}});var Gt=C4();Object.defineProperty(R,"MongoClient",{enumerable:!0,get:function(){return Gt.MongoClient}});var Ft=C0();Object.defineProperty(R,"CancellationToken",{enumerable:!0,get:function(){return Ft.CancellationToken}});var qt=m5();Object.defineProperty(R,"ClientSession",{enumerable:!0,get:function(){return qt.ClientSession}});var Wt=H1();Object.defineProperty(R,"BSON",{enumerable:!0,get:function(){return Wt.BSON}});var V0=H1();Object.defineProperty(R,"Binary",{enumerable:!0,get:function(){return V0.Binary}});Object.defineProperty(R,"BSONRegExp",{enumerable:!0,get:function(){return V0.BSONRegExp}});Object.defineProperty(R,"BSONSymbol",{enumerable:!0,get:function(){return V0.BSONSymbol}});Object.defineProperty(R,"BSONType",{enumerable:!0,get:function(){return V0.BSONType}});Object.defineProperty(R,"Code",{enumerable:!0,get:function(){return V0.Code}});Object.defineProperty(R,"DBRef",{enumerable:!0,get:function(){return V0.DBRef}});Object.defineProperty(R,"Decimal128",{enumerable:!0,get:function(){return V0.Decimal128}});Object.defineProperty(R,"Double",{enumerable:!0,get:function(){return V0.Double}});Object.defineProperty(R,"Int32",{enumerable:!0,get:function(){return V0.Int32}});Object.defineProperty(R,"Long",{enumerable:!0,get:function(){return V0.Long}});Object.defineProperty(R,"MaxKey",{enumerable:!0,get:function(){return V0.MaxKey}});Object.defineProperty(R,"MinKey",{enumerable:!0,get:function(){return V0.MinKey}});Object.defineProperty(R,"ObjectId",{enumerable:!0,get:function(){return V0.ObjectId}});Object.defineProperty(R,"Timestamp",{enumerable:!0,get:function(){return V0.Timestamp}});Object.defineProperty(R,"UUID",{enumerable:!0,get:function(){return V0.UUID}});var Ht=f5();Object.defineProperty(R,"MongoBulkWriteError",{enumerable:!0,get:function(){return Ht.MongoBulkWriteError}});var Vt=kB();Object.defineProperty(R,"ClientEncryption",{enumerable:!0,get:function(){return Vt.ClientEncryption}});var zt=IY();Object.defineProperty(R,"ChangeStreamCursor",{enumerable:!0,get:function(){return zt.ChangeStreamCursor}});var r=E();Object.defineProperty(R,"MongoAPIError",{enumerable:!0,get:function(){return r.MongoAPIError}});Object.defineProperty(R,"MongoAWSError",{enumerable:!0,get:function(){return r.MongoAWSError}});Object.defineProperty(R,"MongoAzureError",{enumerable:!0,get:function(){return r.MongoAzureError}});Object.defineProperty(R,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return r.MongoBatchReExecutionError}});Object.defineProperty(R,"MongoChangeStreamError",{enumerable:!0,get:function(){return r.MongoChangeStreamError}});Object.defineProperty(R,"MongoCompatibilityError",{enumerable:!0,get:function(){return r.MongoCompatibilityError}});Object.defineProperty(R,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return r.MongoCursorExhaustedError}});Object.defineProperty(R,"MongoCursorInUseError",{enumerable:!0,get:function(){return r.MongoCursorInUseError}});Object.defineProperty(R,"MongoDecompressionError",{enumerable:!0,get:function(){return r.MongoDecompressionError}});Object.defineProperty(R,"MongoDriverError",{enumerable:!0,get:function(){return r.MongoDriverError}});Object.defineProperty(R,"MongoError",{enumerable:!0,get:function(){return r.MongoError}});Object.defineProperty(R,"MongoExpiredSessionError",{enumerable:!0,get:function(){return r.MongoExpiredSessionError}});Object.defineProperty(R,"MongoGridFSChunkError",{enumerable:!0,get:function(){return r.MongoGridFSChunkError}});Object.defineProperty(R,"MongoGridFSStreamError",{enumerable:!0,get:function(){return r.MongoGridFSStreamError}});Object.defineProperty(R,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return r.MongoInvalidArgumentError}});Object.defineProperty(R,"MongoKerberosError",{enumerable:!0,get:function(){return r.MongoKerberosError}});Object.defineProperty(R,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return r.MongoMissingCredentialsError}});Object.defineProperty(R,"MongoMissingDependencyError",{enumerable:!0,get:function(){return r.MongoMissingDependencyError}});Object.defineProperty(R,"MongoNetworkError",{enumerable:!0,get:function(){return r.MongoNetworkError}});Object.defineProperty(R,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return r.MongoNetworkTimeoutError}});Object.defineProperty(R,"MongoNotConnectedError",{enumerable:!0,get:function(){return r.MongoNotConnectedError}});Object.defineProperty(R,"MongoParseError",{enumerable:!0,get:function(){return r.MongoParseError}});Object.defineProperty(R,"MongoRuntimeError",{enumerable:!0,get:function(){return r.MongoRuntimeError}});Object.defineProperty(R,"MongoServerClosedError",{enumerable:!0,get:function(){return r.MongoServerClosedError}});Object.defineProperty(R,"MongoServerError",{enumerable:!0,get:function(){return r.MongoServerError}});Object.defineProperty(R,"MongoServerSelectionError",{enumerable:!0,get:function(){return r.MongoServerSelectionError}});Object.defineProperty(R,"MongoSystemError",{enumerable:!0,get:function(){return r.MongoSystemError}});Object.defineProperty(R,"MongoTailableCursorError",{enumerable:!0,get:function(){return r.MongoTailableCursorError}});Object.defineProperty(R,"MongoTopologyClosedError",{enumerable:!0,get:function(){return r.MongoTopologyClosedError}});Object.defineProperty(R,"MongoTransactionError",{enumerable:!0,get:function(){return r.MongoTransactionError}});Object.defineProperty(R,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return r.MongoUnexpectedServerResponseError}});Object.defineProperty(R,"MongoWriteConcernError",{enumerable:!0,get:function(){return r.MongoWriteConcernError}});var Ut=f5();Object.defineProperty(R,"BatchType",{enumerable:!0,get:function(){return Ut.BatchType}});var Mt=MQ();Object.defineProperty(R,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return Mt.AutoEncryptionLoggerLevel}});var jt=YZ();Object.defineProperty(R,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return jt.GSSAPICanonicalizationValue}});var At=O6();Object.defineProperty(R,"AuthMechanism",{enumerable:!0,get:function(){return At.AuthMechanism}});var Lt=N7();Object.defineProperty(R,"Compressor",{enumerable:!0,get:function(){return Lt.Compressor}});var wt=X8();Object.defineProperty(R,"CURSOR_FLAGS",{enumerable:!0,get:function(){return wt.CURSOR_FLAGS}});var Rt=E();Object.defineProperty(R,"MongoErrorLabel",{enumerable:!0,get:function(){return Rt.MongoErrorLabel}});var Dt=oX();Object.defineProperty(R,"ExplainVerbosity",{enumerable:!0,get:function(){return Dt.ExplainVerbosity}});var Pt=C4();Object.defineProperty(R,"ServerApiVersion",{enumerable:!0,get:function(){return Pt.ServerApiVersion}});var Tt=MY();Object.defineProperty(R,"ReturnDocument",{enumerable:!0,get:function(){return Tt.ReturnDocument}});var It=CY();Object.defineProperty(R,"ProfilingLevel",{enumerable:!0,get:function(){return It.ProfilingLevel}});var Nt=c0();Object.defineProperty(R,"ReadConcernLevel",{enumerable:!0,get:function(){return Nt.ReadConcernLevel}});var Bt=k1();Object.defineProperty(R,"ReadPreferenceMode",{enumerable:!0,get:function(){return Bt.ReadPreferenceMode}});var yB=d0();Object.defineProperty(R,"ServerType",{enumerable:!0,get:function(){return yB.ServerType}});Object.defineProperty(R,"TopologyType",{enumerable:!0,get:function(){return yB.TopologyType}});var Et=c0();Object.defineProperty(R,"ReadConcern",{enumerable:!0,get:function(){return Et.ReadConcern}});var Ct=k1();Object.defineProperty(R,"ReadPreference",{enumerable:!0,get:function(){return Ct.ReadPreference}});var ht=A0();Object.defineProperty(R,"WriteConcern",{enumerable:!0,get:function(){return ht.WriteConcern}});var BK=bQ();Object.defineProperty(R,"CommandFailedEvent",{enumerable:!0,get:function(){return BK.CommandFailedEvent}});Object.defineProperty(R,"CommandStartedEvent",{enumerable:!0,get:function(){return BK.CommandStartedEvent}});Object.defineProperty(R,"CommandSucceededEvent",{enumerable:!0,get:function(){return BK.CommandSucceededEvent}});var J6=aQ();Object.defineProperty(R,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckedInEvent}});Object.defineProperty(R,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckedOutEvent}});Object.defineProperty(R,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckOutFailedEvent}});Object.defineProperty(R,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckOutStartedEvent}});Object.defineProperty(R,"ConnectionClosedEvent",{enumerable:!0,get:function(){return J6.ConnectionClosedEvent}});Object.defineProperty(R,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return J6.ConnectionCreatedEvent}});Object.defineProperty(R,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolClearedEvent}});Object.defineProperty(R,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolClosedEvent}});Object.defineProperty(R,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolCreatedEvent}});Object.defineProperty(R,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolMonitoringEvent}});Object.defineProperty(R,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolReadyEvent}});Object.defineProperty(R,"ConnectionReadyEvent",{enumerable:!0,get:function(){return J6.ConnectionReadyEvent}});var j8=mZ();Object.defineProperty(R,"ServerClosedEvent",{enumerable:!0,get:function(){return j8.ServerClosedEvent}});Object.defineProperty(R,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return j8.ServerDescriptionChangedEvent}});Object.defineProperty(R,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatFailedEvent}});Object.defineProperty(R,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatStartedEvent}});Object.defineProperty(R,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatSucceededEvent}});Object.defineProperty(R,"ServerOpeningEvent",{enumerable:!0,get:function(){return j8.ServerOpeningEvent}});Object.defineProperty(R,"TopologyClosedEvent",{enumerable:!0,get:function(){return j8.TopologyClosedEvent}});Object.defineProperty(R,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return j8.TopologyDescriptionChangedEvent}});Object.defineProperty(R,"TopologyOpeningEvent",{enumerable:!0,get:function(){return j8.TopologyOpeningEvent}});var St=UK();Object.defineProperty(R,"SrvPollingEvent",{enumerable:!0,get:function(){return St.SrvPollingEvent}});var i7=B4();Object.defineProperty(R,"MongoCryptAzureKMSRequestError",{enumerable:!0,get:function(){return i7.MongoCryptAzureKMSRequestError}});Object.defineProperty(R,"MongoCryptCreateDataKeyError",{enumerable:!0,get:function(){return i7.MongoCryptCreateDataKeyError}});Object.defineProperty(R,"MongoCryptCreateEncryptedCollectionError",{enumerable:!0,get:function(){return i7.MongoCryptCreateEncryptedCollectionError}});Object.defineProperty(R,"MongoCryptError",{enumerable:!0,get:function(){return i7.MongoCryptError}});Object.defineProperty(R,"MongoCryptInvalidArgumentError",{enumerable:!0,get:function(){return i7.MongoCryptInvalidArgumentError}});Object.defineProperty(R,"MongoCryptKMSRequestNetworkTimeoutError",{enumerable:!0,get:function(){return i7.MongoCryptKMSRequestNetworkTimeoutError}})});import{createRequire as nh} from"module";var vK=$4(U$(),1);class m4{static list(J){return vK.default({},{argv:J.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(J,Z){if(J.length>Z.length)throw new Error("Too many arguments");const $={};for(let X=0;X<Z.length;X++){const Y=Z[X];$[Y.name]=J[X]}try{return $}catch(X){throw X}}static requireArguments(J){let Z="";if(Object.keys(J).forEach((X,Y,Q)=>{if(J[X]===void 0){if(Z+=X,Y<Q.length-1)Z+=", "}}),Z!=="")throw new Error(`Argument ${Z} is required`)}}class L8{constructor(J){var Z;this.opts={},this.args={},this.name=J.name,this.alias=(Z=J.alias)!==null&&Z!==void 0?Z:[],this.description=J.description,this.summary=J.summary,this.arguments=J.arguments,this.options=J.options}}import*as k9 from"tty";var{env:w8={},argv:bK=[],platform:oB=""}=typeof process==="undefined"?{}:process,eB="NO_COLOR"in w8||bK.includes("--no-color"),JE="FORCE_COLOR"in w8||bK.includes("--color"),ZE=oB==="win32",gK=w8.TERM==="dumb",$E=k9&&k9.isatty&&k9.isatty(1)&&w8.TERM&&!gK,XE="CI"in w8&&(("GITHUB_ACTIONS"in w8)||("GITLAB_CI"in w8)||("CIRCLECI"in w8)),YE=!eB&&(JE||ZE&&!gK||$E||XE),mK=(J,Z,$,X,Y=Z.substring(0,J)+X,Q=Z.substring(J+$.length),K=Q.indexOf($))=>Y+(K<0?Q:mK(K,Q,$,X)),QE=(J,Z,$,X,Y)=>J<0?$+Z+X:$+mK(J,Z,X,Y)+X,KE=(J,Z,$=J,X=J.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?QE((""+Y).indexOf(Z,X),Y,J,Z,$):"",m=(J,Z,$)=>KE(`\x1B[${J}m`,`\x1B[${Z}m`,$),xK={reset:m(0,0),bold:m(1,22,"\x1B[22m\x1B[1m"),dim:m(2,22,"\x1B[22m\x1B[2m"),italic:m(3,23),underline:m(4,24),inverse:m(7,27),hidden:m(8,28),strikethrough:m(9,29),black:m(30,39),red:m(31,39),green:m(32,39),yellow:m(33,39),blue:m(34,39),magenta:m(35,39),cyan:m(36,39),white:m(37,39),gray:m(90,39),bgBlack:m(40,49),bgRed:m(41,49),bgGreen:m(42,49),bgYellow:m(43,49),bgBlue:m(44,49),bgMagenta:m(45,49),bgCyan:m(46,49),bgWhite:m(47,49),blackBright:m(90,39),redBright:m(91,39),greenBright:m(92,39),yellowBright:m(93,39),blueBright:m(94,39),magentaBright:m(95,39),cyanBright:m(96,39),whiteBright:m(97,39),bgBlackBright:m(100,49),bgRedBright:m(101,49),bgGreenBright:m(102,49),bgYellowBright:m(103,49),bgBlueBright:m(104,49),bgMagentaBright:m(105,49),bgCyanBright:m(106,49),bgWhiteBright:m(107,49)},GE=({useColor:J=YE}={})=>J?xK:Object.keys(xK).reduce((Z,$)=>({...Z,[$]:String}),{}),{reset:st,bold:nt,dim:tt,italic:rt,underline:ot,inverse:et,hidden:Jr,strikethrough:Zr,black:$r,red:uK,green:dK,yellow:cK,blue:pK,magenta:Xr,cyan:Yr,white:Qr,gray:lK,bgBlack:Kr,bgRed:aK,bgGreen:iK,bgYellow:sK,bgBlue:nK,bgMagenta:Gr,bgCyan:Fr,bgWhite:qr,blackBright:Wr,redBright:Hr,greenBright:Vr,yellowBright:zr,blueBright:Ur,magentaBright:Mr,cyanBright:jr,whiteBright:Ar,bgBlackBright:Lr,bgRedBright:wr,bgGreenBright:Rr,bgYellowBright:Dr,bgBlueBright:Pr,bgMagentaBright:Tr,bgCyanBright:Ir,bgWhiteBright:Nr}=GE();class e{static red(J){return uK(J)}static green(J){return dK(J)}static blue(J){return pK(J)}static gray(J){return lK(J)}static yellow(J){return cK(J)}static bgRed(J){return aK(J)}static bgGreen(J){return iK(J)}static bgBlue(J){return nK(J)}static bgYellow(J){return sK(J)}}class M${constructor(J){this.commands=[],this.name=J}getCommands(){return this.commands.filter((J)=>J.name!=="")}getCommand(J){var Z;return(Z=this.commands.find(($)=>$.name===J))!==null&&Z!==void 0?Z:this.commands.find(($)=>$.alias.includes(J))}createCommand(J){this.addHelpFlag(J),this.commands.push(J)}findDuplicate(){const J=new Set,Z=[],$=[],X=[];return this.commands.forEach((Y)=>{if(J.size===J.add(Y.name).size)Z.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((q)=>{if(K.size===K.add(q.name).size)Q.push(q.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],F=new Set;if(Y.options.forEach((q)=>{if(F.size===F.add(q.flag).size)G.push(q.flag);if(q.type==="boolean"&&q.shorthand&&F.size===F.add(q.shorthand).size)G.push(q.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:Z.length>0||$.length>0||X.length>0,commands:Z,arguments:$,options:X}}addHelpFlag(J){J.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var nG=$4(sG(),1);class B$ extends nG.default{constructor(J){super(J)}static termsWidth(...J){return Math.max(...J)}}class d6 extends B${constructor(J=30){super({colWidths:[J,process.stdout.columns-J],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 $6{static rootHelp(J,Z){this.outputRoot+=e.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${J.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=e.yellow("COMMANDS"),this.outputRoot+=this.br();const $=d6.termsWidth($6.commandTermLength(J.getCommands()),$6.optionTermLength(Z)),X=new d6($+this.separatorLength+Math.round($/2));J.getCommands().forEach((Q)=>{X.push([e.green(Q.name),e.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new d6($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=e.yellow("OPTIONS"),this.outputRoot+=this.br(),Z.forEach((Q)=>{let K=e.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${e.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,e.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(J,Z){if(this.output+=e.yellow("USAGE"),this.output+=this.br(),this.output+=` ${J.name} ${Z.name}`,Z.options.length)this.output+=" [options]";Z.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=e.yellow("ARGUMENTS"),this.output+=this.br();const $=d6.termsWidth($6.argumentTermLength(Z.arguments),$6.optionTermLength(Z.options)),X=new d6($+this.separatorLength+Math.round($/2));Z.arguments.forEach((Q)=>{X.push([e.green(Q.name),e.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=e.yellow("OPTIONS"),this.output+=this.br();const Y=new d6($+this.separatorLength+Math.round($/2));if(Z.options.forEach((Q)=>{let K=e.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${e.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,e.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),Z.alias.length)this.output+=this.br(),this.output+=e.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${e.green(Z.alias.join(","))}`;console.log(this.output)}static br(J=1){let Z="";for(let $=0;$<J;$++)Z+="\n";return Z}static commandTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.name.length)},0)}static optionTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.flag.length)},0)}static argumentTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.name.length)},0)}}$6.separatorLength=10;$6.outputRoot="";$6.output="";var E$=$4(U$(),1);class b9{static convert(J){const Z={};for(let $=0;$<J.length;$++){const X=J[$];if(Z[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)Z[X.shorthand]=X.flag}return Z}static parseRoot(J,Z){try{const $=this.convert(Z);return E$.default($,{argv:J.slice(2)})}catch($){throw $}}static parse(J,Z,$){try{const X=this.convert($),Y=E$.default(X,{argv:J.slice(3)});return{args:m4.parse(Y._,Z),opts:Y}}catch(X){throw X}}}var sh=$4(GV(),1);class FV{constructor(J,Z){if(Z)this.version=Z;else this.version=this.packageVersion();this.command=new M$(J)}packageVersion(){const J=nh(import.meta.url),{version:Z}=J("../package.json");return Z}register(J){this.command.createCommand(J)}run(J){try{const Z=this.command.findDuplicate();if(Z.isDuplicate){if(Z.commands.length)console.error(e.red("[ERROR] Duplicate commands")),console.error(Z.commands);if(Z.arguments.length)console.error(e.red("[ERROR] Duplicate arguments")),console.error(Z.arguments);if(Z.options.length)console.error(e.red("[ERROR] Duplicate options")),console.error(Z.options);return}if(m4.list(J).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(b9.parseRoot(J,Q)["--version"])return console.log(this.version);return $6.rootHelp(this.command,Q)}let X=this.command.getCommand(J[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=b9.parse(J,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return $6.commandHelp(this.command,X);m4.requireArguments(X.args),X.handle()}catch(Z){if(Z instanceof Error)return console.error(e.red(`[ERROR] ${Z.message}`));return console.error(Z)}}}function XJ(J,Z,$){$(new K4(404))}class b0 extends Error{constructor(J){super(J.message);Object.setPrototypeOf(this,new.target.prototype),this.code=J.code,this.status=J.status,this.message=J.message,this.errors=J.errors,Error.captureStackTrace(this)}}var V5=(J)=>{if(J instanceof b0)return J.isOperational;return!1};function YJ(J,Z,$,X){if(J instanceof b0&&V5(J)){const Q={name:J.name,code:J.code,status:J.status,message:J.message};if(J.errors)Q.errors=J.errors;return $.status(J.code).json(Q),X(J)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(J)}function G4(J){if(typeof J==="number")return qV.find((Z)=>{return Z.code===J});else return qV.find((Z)=>{return Z.status===J})}var qV=[{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 K4 extends b0{constructor(J,Z){const $=G4(J);if(!$)throw new Error(`Error codeStatus "${J}" not found`);const X=$;if(Z)X.errors=Z;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var aB=$4(G$(),1);import K71 from"fs";import F71 from"path";import H71 from"fs";import z71 from"path";import j71 from"fs";var EK=(J)=>J[0].toUpperCase()+J.slice(1);var O9=(J)=>{return J.replace(/(?:^\w|[A-Z]|\b\w)/g,function(Z,$){return $===0?Z.toLowerCase():Z.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var g4=(J)=>EK(O9(J));var S1=(J)=>J.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import s7 from"fs";import fB from"path";class F$ extends L8{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(s7.existsSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}`)){console.error(e.red("Command directory is exists"));return}s7.mkdirSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}`,{recursive:!0});const J=s7.readFileSync(fB.resolve(Z4,"./command/index.command.ts")).toString().replace("[name]",S1(this.args.name)).replace("NewCommand",`${g4(this.args.name)}Command`);s7.writeFileSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}/index.command.ts`,J);const Z=s7.readFileSync(fB.resolve(Z4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${g4(this.args.name)}Command`).replace(/newCommand/g,`${O9(this.args.name)}Command`);s7.writeFileSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/console/commands/${S1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${S1(this.args.name)}/index.spec.ts`,"has been created")}}import m6 from"fs";import q$ from"path";class W$ extends L8{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(m6.existsSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}`)){console.error(e.red("Middleware directory is exists"));return}if(m6.mkdirSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const J=m6.readFileSync(q$.resolve(Z4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${g4(this.args.name)}Middleware`);m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.middleware.ts`,J);const Z=m6.readFileSync(q$.resolve(Z4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/middleware/${S1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${S1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const J=m6.readFileSync(q$.resolve(Z4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${g4(this.args.name)}Middleware`);m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.middleware.ts`,J);const Z=m6.readFileSync(q$.resolve(Z4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/middleware/${S1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${S1(this.args.name)}/index.spec.ts`,"has been created")}}class CK{command;constructor(J){this.command=J}async register(){this.command.register(new F$),this.command.register(new W$)}}class hK{J;session;constructor(J){this.adapter=J}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(J){return this.adapter.database(J),this}collection(J){return this.adapter.collection(J),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(J,Z,$){await this.adapter.createIndex(J,Z,$)}async createCollection(J,Z){await this.adapter.createCollection(J,Z)}async dropCollection(J,Z){await this.adapter.dropCollection(J,Z)}async updateSchema(J,Z){await this.adapter.updateSchema(J,Z)}async create(J,Z){return await this.adapter.create(J,Z)}async createMany(J,Z){return await this.adapter.createMany(J,Z)}async retrieveAll(J,Z){return await this.adapter.retrieveAll(J,Z)}async retrieve(J,Z){return await this.adapter.retrieve(J,Z)}async update(J,Z,$){return await this.adapter.update(J,Z,$)}async updateMany(J,Z,$){return await this.adapter.updateMany(J,Z,$)}async delete(J,Z){return await this.adapter.delete(J,Z)}async deleteMany(J,Z){return await this.adapter.deleteMany(J,Z)}async deleteAll(J){return await this.adapter.deleteAll(J)}async aggregate(J,Z,$){return await this.adapter.aggregate(J,Z,$)}}var t7=$4(G$(),1);function vB(J){const Z=Object.prototype.toString.call(J);if(J instanceof Date||typeof J==="object"&&Z==="[object Date]")return new J.constructor(+J);else if(typeof J==="number"||Z==="[object Number]"||typeof J==="string"||Z==="[object String]")return new Date(J);else return new Date(NaN)}function xB(J){return J instanceof Date||typeof J==="object"&&Object.prototype.toString.call(J)==="[object Date]"}function H$(J){if(!xB(J)&&typeof J!=="number")return!1;const Z=vB(J);return!isNaN(Number(Z))}var n7=$4(G$(),1);class z0{db;constructor(J){this.db=J}async createUnique(J,Z){await this.db.createIndex(J,Z,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(J,Z){await this.db.createIndex(J,Z,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(J){return(await this.db.listCollections()).some(function($){return $.name===J})}static stringToObjectId(J){if(J==null)return null;if(Array.isArray(J))return J.map((Z)=>{return z0.stringToObjectId(Z)});else if(typeof J==="object"&&!H$(J))return Object.keys(J).reduce((Z,$)=>{const X=z0.stringToObjectId(J[$]);return Z[$]=X,Z},{});else if(typeof J==="string"&&n7.ObjectId.isValid(J)&&J===new n7.ObjectId(J).toString())return new n7.ObjectId(J);return J}static objectIdToString(J){if(J==null)return null;if(Array.isArray(J))return J.map((Z)=>{return z0.objectIdToString(Z)});else if(typeof J==="object"&&n7.ObjectId.isValid(J))return J.toString();else if(typeof J==="object"&&!H$(J))return Object.keys(J).reduce((Z,$)=>{if(n7.ObjectId.isValid(J)||H$(J))return J.toString();else{const X=z0.objectIdToString(J[$]);return Z[$]=X,Z}},{});return J}}function bB(J=1){if(typeof J==="string")return parseInt(J);return J}function gB(J=10){if(typeof J==="string")return parseInt(J);return J}function bt(J,Z){return(bB(J)-1)*gB(Z)}function gt(J){return J}function mt(J="",Z=[]){const $=uB(mB(J));return dB($,Z)}function mB(J){return J.split(" ").join().split(",").filter((Z)=>Z)}function uB(J,Z=1){const $={};for(let X=0;X<J.length;X++)$[`${J[X].trim()}`]=Z;return $}function dB(J,Z){for(let $=0;$<Z.length;$++)J[`${Z[$]}`]=0;return J}function ut(J){const Z={};if(J)J.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),Z[$.trim()]=-1;else Z[$.trim()]=1});return Z}var M1={page:bB,limit:gB,skip:bt,sort:ut,fields:mt,filter:gt,filterExludeFields:dB,convertStringToArray:mB,convertArrayToObject:uB};class SK{Z;client;_database;_collection;session;constructor(J,Z){this.databaseName=Z;const $={};this.client=new t7.MongoClient(J,$),this.database(Z)}async open(){await this.client.connect()}async close(){await this.client.close()}database(J,Z){return this._database=this.client.db(J,Z),this}collection(J,Z){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(J,Z),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(J,Z,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(J,Z,$)}async updateSchema(J,Z){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:J,validator:{$jsonSchema:Z}})}async createCollection(J,Z){if(!this._database)throw new Error("Database not found");await this._database.createCollection(J,Z)}async dropCollection(J,Z){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(J,Z)}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(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{insertedId:(await this._collection.insertOne(J,$)).insertedId.toString()}}async createMany(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=await this._collection.insertMany(J,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=this._collection.find(z0.stringToObjectId(J.filter??{}),$).limit(M1.limit(J.pageSize)).skip(M1.skip(M1.page(J.page),M1.limit(J.pageSize)));if(J.sort&&M1.sort(J.sort))X.sort(M1.sort(J.sort));if(M1.fields(J.fields,J.excludeFields))X.project(M1.fields(J.fields,J.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(J.filter??{},$);return{data:z0.objectIdToString(Y),pagination:{page:M1.page(J.page),pageCount:Math.ceil(Q/M1.limit(J.pageSize)),pageSize:M1.limit(J.pageSize),totalDocument:Q}}}async retrieve(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=await this._collection.findOne({_id:new t7.ObjectId(J)},$);return z0.objectIdToString(X)}async update(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new t7.ObjectId(J)},{$set:z0.stringToObjectId(Z)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(J,{$set:z0.stringToObjectId(Z)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{deletedCount:(await this._collection.deleteOne({_id:new t7.ObjectId(J)},$)).deletedCount}}async deleteMany(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{deletedCount:(await this._collection.deleteMany({_id:{$in:z0.stringToObjectId(J)}},$)).deletedCount}}async deleteAll(J){if(!this._collection)throw new Error("Collection not found");const Z=J;return{deletedCount:(await this._collection.deleteMany({},Z)).deletedCount}}async aggregate(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...J,{$skip:(M1.page(Z.page)-1)*M1.limit(Z.pageSize)},{$limit:M1.limit(Z.pageSize)}],X);if(Z.sort&&M1.sort(Z.sort))Y.sort(M1.sort(Z.sort));if(M1.fields(Z.fields,Z.excludeFields))Y.project(M1.fields(Z.fields,Z.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...J,{$count:"totalDocument"}],X).toArray(),F=G.length?G[0].totalDocument:0;return{data:z0.objectIdToString(Q),pagination:{page:M1.page(Z.page),pageCount:Math.ceil(F/M1.limit(Z.pageSize)),pageSize:M1.limit(Z.pageSize),totalDocument:F}}}}function dt(J,Z){Z.errors={},(J.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],Z.errors=Y})}function ct(J,Z){if(Object.keys(J.keyPattern).length===1)Z.errors={[Object.keys(J.keyPattern)[0]]:[`The ${Object.keys(J.keyPattern)[0]} is exists.`]};else{const $=Object.keys(J.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(J.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(J.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});Z.errors=X}}class OK extends b0{constructor(J){const Z=G4(400);if(J.code===121)dt(J,Z);else if(J.code===11000)ct(J,Z);super(Z);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}function kK(){return(J,Z,$,X)=>{if(J instanceof cB)throw new pB(J);X(J)}}class yK{constructor(){this.modelCount=1,this.modelSequence=[],this.modelState={}}count(J){return this.modelCount=J,this}sequence(J){return this.modelSequence=J,this}state(J){return this.modelState=J,this}useSequence(){const J=[];for(let Z=0;Z<this.modelCount;Z++){const $=this.definition();let X={};if(this.modelSequence.length)X=this.modelSequence[Z%this.modelSequence.length];J.push(Object.assign({},this.useState(Object.assign(Object.assign({},$),X))))}return J}useState(J){return Object.assign(Object.assign({},J),this.modelState)}make(J=1){if(this.count(J),this.modelCount===1)return this.makeOne();return this.makeMany(J)}makeOne(){return this.useState(this.definition())}makeMany(J){return this.count(J),this.useSequence()}}class lB{app;server=null;constructor(J){this.app=J}listen(J,Z){return new Promise(($,X)=>{if(Z)this.server=this.app.listen(J,Z).once("listening",$).once("error",X);else this.server=this.app.listen(J).once("listening",$).once("error",X)})}async start(J,Z){await this.listen(J,Z)}stop(){this.server?.close(),this.server=null}get host(){const J=this.server?.address();if(J?.address==="0.0.0.0"||J?.address==="::")return"localhost";else return J?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var Z4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),g91=L8,m91=CK,u91=hK,d91=SK,c91=z0,p91=M1,cB=aB.MongoServerError,pB=OK,l91={ApiError:K4,BaseError:b0,isTrustedError:V5,getHttpError:G4,mongodbErrorHandlerMiddleware:kK,errorHandlerMiddleware:YJ,invalidPathMiddleware:XJ};export{Z4 as stubDir,lB as BaseServer,cB as BaseMongoServerError,pB as BaseMongoErrorHandler,p91 as BaseMongoDBQuerystring,c91 as BaseMongoDBHelper,d91 as BaseMongoDBConnection,yK as BaseFactory,l91 as BaseErrorHandler,u91 as BaseDatabaseConnection,m91 as BaseConsoleKernel,g91 as BaseConsoleCommand,FV 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};