@kyro-cms/core 0.12.71 → 0.13.0

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.
Files changed (200) hide show
  1. package/README.md +6 -0
  2. package/dist/{WebhookService-DQyM9fVo.d.ts → WebhookService-BLi5Rz2m.d.ts} +1 -1
  3. package/dist/{WebhookService-bo1NrgBW.d.cts → WebhookService-BcuD8tnn.d.cts} +1 -1
  4. package/dist/WebhookService-D5PSI5t6.d.cts +143 -0
  5. package/dist/WebhookService-DPCCn_12.d.ts +143 -0
  6. package/dist/WebhookService-Dncnbgm9.d.cts +143 -0
  7. package/dist/WebhookService-UY5p89Bj.d.ts +143 -0
  8. package/dist/WebhookService-YZXBCRXA.d.ts +143 -0
  9. package/dist/WebhookService-zrDmAx7L.d.cts +143 -0
  10. package/dist/api-handler-graphql.cjs +1 -1
  11. package/dist/api-handler-graphql.js +1 -1
  12. package/dist/api-handler-trpc.cjs +1 -1
  13. package/dist/api-handler-trpc.js +1 -1
  14. package/dist/api-handler.cjs +1 -1
  15. package/dist/api-handler.js +1 -1
  16. package/dist/{base-urWvrsX8.d.cts → base-B--L0lCn.d.cts} +1 -1
  17. package/dist/base-BVoDPNjJ.d.cts +218 -0
  18. package/dist/base-CAb9EYQs.d.ts +218 -0
  19. package/dist/base-CyG7aF1e.d.cts +218 -0
  20. package/dist/{base-BcfNgOqZ.d.ts → base-DOImeJ-F.d.ts} +1 -1
  21. package/dist/base-DbnwE42-.d.cts +218 -0
  22. package/dist/base-NyiSsD-n.d.ts +218 -0
  23. package/dist/base-xflndGDO.d.ts +218 -0
  24. package/dist/bootstrap-QQ6D3OYG.js +1 -0
  25. package/dist/bootstrap-QVKSKXJF.cjs +1 -0
  26. package/dist/bootstrap-RILR44UM.cjs +1 -0
  27. package/dist/bootstrap-ZRRUPRUR.js +1 -0
  28. package/dist/chunk-262YP5XA.cjs +1 -0
  29. package/dist/chunk-2FSOHXOU.cjs +56 -0
  30. package/dist/chunk-2OS5Y4LE.cjs +1 -0
  31. package/dist/chunk-2PXXQKN3.cjs +3 -0
  32. package/dist/{chunk-K6ZW5M6S.cjs → chunk-355R4LS5.cjs} +3 -3
  33. package/dist/chunk-35IVNLMA.js +122 -0
  34. package/dist/{chunk-FSWDDVLA.js → chunk-3GXLOYM3.js} +1 -1
  35. package/dist/chunk-3KZXF4US.js +2 -0
  36. package/dist/{chunk-H7PC2ENZ.cjs → chunk-3LAWUINR.cjs} +1 -1
  37. package/dist/chunk-3O3AVMWM.cjs +1 -0
  38. package/dist/chunk-3U6MKWET.cjs +120 -0
  39. package/dist/chunk-4BMWWGJN.js +384 -0
  40. package/dist/chunk-5A7E7N4B.cjs +431 -0
  41. package/dist/chunk-6DD4J7LI.js +2 -0
  42. package/dist/chunk-6GGPY7U2.js +4 -0
  43. package/dist/chunk-6MNLRAKM.cjs +121 -0
  44. package/dist/chunk-6NBZDW53.js +133 -0
  45. package/dist/{chunk-2HATK4C5.js → chunk-73Y63IPP.js} +4 -4
  46. package/dist/chunk-7K6ZUNJM.js +4 -0
  47. package/dist/chunk-7NKNSRCB.cjs +448 -0
  48. package/dist/chunk-A3IOQOV6.js +2 -0
  49. package/dist/chunk-A3XVL6ED.cjs +3 -0
  50. package/dist/{chunk-LKQHIOPW.cjs → chunk-APDQ6ZTG.cjs} +1 -1
  51. package/dist/chunk-ATI2UZ7U.js +2 -0
  52. package/dist/chunk-B4AC23SG.js +122 -0
  53. package/dist/chunk-BD6XHMMM.cjs +2 -0
  54. package/dist/chunk-CH4TZZI5.js +449 -0
  55. package/dist/{chunk-26KFM3P6.js → chunk-CNHUCCQJ.js} +1 -1
  56. package/dist/chunk-CRP6PSCE.js +2 -0
  57. package/dist/chunk-DI6TCZSE.js +122 -0
  58. package/dist/chunk-DORUYZQV.cjs +1 -0
  59. package/dist/chunk-EFKEVWAD.js +4 -0
  60. package/dist/chunk-EI7FRSNY.js +57 -0
  61. package/dist/chunk-EON4XLKQ.cjs +1 -0
  62. package/dist/chunk-EUQAOYEO.cjs +121 -0
  63. package/dist/chunk-EVAUBT7H.js +57 -0
  64. package/dist/chunk-EYHD7HZE.cjs +1 -0
  65. package/dist/chunk-EYYIPA5N.js +432 -0
  66. package/dist/chunk-F2O4QO5N.cjs +383 -0
  67. package/dist/chunk-FBWLSWZ4.js +122 -0
  68. package/dist/chunk-FGN6IMPY.cjs +3 -0
  69. package/dist/chunk-FK2BG4HU.js +3 -0
  70. package/dist/chunk-GWIZT2P5.js +57 -0
  71. package/dist/chunk-H3FJ54KB.cjs +121 -0
  72. package/dist/chunk-HY3EAWB2.js +4 -0
  73. package/dist/chunk-I6UJVO2P.js +57 -0
  74. package/dist/chunk-IQSF6XRV.js +57 -0
  75. package/dist/chunk-IXGDTAES.js +4 -0
  76. package/dist/chunk-JA44K75G.js +2 -0
  77. package/dist/chunk-K5XGP57D.cjs +19 -0
  78. package/dist/chunk-KEITOXIP.js +2 -0
  79. package/dist/chunk-LPFRMQFQ.js +121 -0
  80. package/dist/chunk-LYU44UNN.cjs +56 -0
  81. package/dist/chunk-MDLJTZLV.cjs +1 -0
  82. package/dist/chunk-MJAODEFC.cjs +121 -0
  83. package/dist/chunk-MYHNTJLR.cjs +56 -0
  84. package/dist/chunk-N2YHO2WI.cjs +3 -0
  85. package/dist/chunk-N4FXLQE3.cjs +132 -0
  86. package/dist/chunk-NPBXLPOP.js +3 -0
  87. package/dist/chunk-ON5XJEPO.cjs +3 -0
  88. package/dist/chunk-OT2Z4XBD.cjs +1 -0
  89. package/dist/chunk-PFTBTWSC.cjs +1 -0
  90. package/dist/chunk-PTPVFLET.js +20 -0
  91. package/dist/chunk-PZDLPRJF.js +4 -0
  92. package/dist/chunk-Q5TFO66G.cjs +1 -0
  93. package/dist/chunk-QUTYCUST.js +4 -0
  94. package/dist/chunk-REKKBAQX.cjs +56 -0
  95. package/dist/chunk-REQ622YC.js +3 -0
  96. package/dist/chunk-RTNQP6BV.js +2 -0
  97. package/dist/chunk-RUJW47ZJ.js +2 -0
  98. package/dist/chunk-RXYCFZJC.cjs +121 -0
  99. package/dist/chunk-RYHOWZLK.js +2 -0
  100. package/dist/chunk-S2MZNEBQ.cjs +1 -0
  101. package/dist/chunk-S73YERS2.js +57 -0
  102. package/dist/chunk-SBNMXQNO.cjs +2 -0
  103. package/dist/chunk-T3DJ3UTP.cjs +121 -0
  104. package/dist/chunk-TJZO7ZSX.cjs +3 -0
  105. package/dist/chunk-TKUNRCRH.js +4 -0
  106. package/dist/chunk-TQLCOMKC.js +4 -0
  107. package/dist/chunk-TRXYDWGE.cjs +1 -0
  108. package/dist/chunk-TS55CUNJ.js +57 -0
  109. package/dist/chunk-UFBJ3WOZ.js +2 -0
  110. package/dist/chunk-UQRVQUVR.js +2 -0
  111. package/dist/chunk-UW5W35NP.js +122 -0
  112. package/dist/chunk-VI7WCO2J.cjs +3 -0
  113. package/dist/chunk-W2GPP6RB.js +122 -0
  114. package/dist/chunk-WHOA7YJU.cjs +1 -0
  115. package/dist/chunk-WNRUPL26.js +2 -0
  116. package/dist/chunk-WXT2XW7T.js +13 -0
  117. package/dist/chunk-XFYSADHV.cjs +2 -0
  118. package/dist/chunk-XIAJQLGS.js +2 -0
  119. package/dist/chunk-XK6UB77Q.js +4 -0
  120. package/dist/chunk-Y2VHO66Q.cjs +3 -0
  121. package/dist/chunk-Y5O2OD7J.cjs +3 -0
  122. package/dist/chunk-YARB43JG.cjs +56 -0
  123. package/dist/chunk-YLCEMVYY.cjs +56 -0
  124. package/dist/chunk-YSOM57GK.cjs +3 -0
  125. package/dist/chunk-Z3UVDGYS.cjs +56 -0
  126. package/dist/chunk-ZTLGK6R4.cjs +12 -0
  127. package/dist/chunk-ZUBJ6RLQ.cjs +1 -0
  128. package/dist/cli/index.cjs +1 -1
  129. package/dist/cli/index.js +1 -1
  130. package/dist/client.cjs +8 -8
  131. package/dist/client.d.cts +1248 -0
  132. package/dist/client.d.ts +1248 -0
  133. package/dist/client.js +8 -8
  134. package/dist/drizzle/index.cjs +1 -1
  135. package/dist/drizzle/index.d.cts +3 -3
  136. package/dist/drizzle/index.d.ts +3 -3
  137. package/dist/drizzle/index.js +1 -1
  138. package/dist/fields/index.cjs +1 -1
  139. package/dist/fields/index.d.cts +2 -2
  140. package/dist/fields/index.d.ts +2 -2
  141. package/dist/fields/index.js +1 -1
  142. package/dist/graphql/index.d.cts +3 -3
  143. package/dist/graphql/index.d.ts +3 -3
  144. package/dist/{index-d1m_oup7.d.cts → index-B9BFNOHd.d.cts} +1 -1
  145. package/dist/index-BMcYFpTv.d.cts +105 -0
  146. package/dist/index-BttsFZDa.d.ts +105 -0
  147. package/dist/index-CxA9uOv0.d.ts +105 -0
  148. package/dist/{index-4cH-BjtP.d.ts → index-D6AXbuPI.d.ts} +1 -1
  149. package/dist/index-DF0KDBaM.d.cts +105 -0
  150. package/dist/index-DG4Xu7gA.d.cts +105 -0
  151. package/dist/index-eHex8Iwj.d.ts +105 -0
  152. package/dist/index.cjs +32 -32
  153. package/dist/index.d.cts +73 -11
  154. package/dist/index.d.ts +73 -11
  155. package/dist/index.js +32 -32
  156. package/dist/lib-A2D63VXD.cjs +1 -0
  157. package/dist/lib-JQD2JAOO.js +2 -0
  158. package/dist/local-KR3AIGVA.cjs +1 -0
  159. package/dist/local-T7GISZBL.js +1 -0
  160. package/dist/mongo-auth-adapter-GR2CFFEA.js +1 -0
  161. package/dist/mongo-auth-adapter-UOO2LZUJ.cjs +1 -0
  162. package/dist/mongodb/index.cjs +1 -1
  163. package/dist/mongodb/index.d.cts +4 -3
  164. package/dist/mongodb/index.d.ts +4 -3
  165. package/dist/mongodb/index.js +1 -1
  166. package/dist/nodemailer-transport-3VWVUBM5.cjs +1 -0
  167. package/dist/nodemailer-transport-7RHATUKL.js +1 -0
  168. package/dist/nodemailer-transport-CHO2WKIY.js +1 -0
  169. package/dist/nodemailer-transport-ED2IXNGW.cjs +1 -0
  170. package/dist/rest/index.cjs +1 -1
  171. package/dist/rest/index.d.cts +4 -4
  172. package/dist/rest/index.d.ts +4 -4
  173. package/dist/rest/index.js +1 -1
  174. package/dist/templates/index.cjs +1 -1
  175. package/dist/templates/index.d.cts +2 -2
  176. package/dist/templates/index.d.ts +2 -2
  177. package/dist/templates/index.js +1 -1
  178. package/dist/trpc/index.cjs +1 -1
  179. package/dist/trpc/index.d.cts +3 -3
  180. package/dist/trpc/index.d.ts +3 -3
  181. package/dist/trpc/index.js +1 -1
  182. package/dist/types-B5Qz1svz.d.cts +822 -0
  183. package/dist/types-Bii0bhUV.d.cts +329 -0
  184. package/dist/types-Bii0bhUV.d.ts +329 -0
  185. package/dist/{types-BADIMVGF.d.ts → types-Bt2_ycUO.d.ts} +36 -1
  186. package/dist/types-C4wXHImf.d.ts +822 -0
  187. package/dist/types-DCWgPFmi.d.cts +822 -0
  188. package/dist/types-DROqAsr0.d.cts +330 -0
  189. package/dist/types-DROqAsr0.d.ts +330 -0
  190. package/dist/{types-YAVR0H9Z.d.cts → types-DsF64Wrc.d.cts} +36 -1
  191. package/dist/types-ZrjEVWfi.d.ts +811 -0
  192. package/dist/types-dEy5JxvN.d.ts +822 -0
  193. package/dist/types-tVJc9YbX.d.cts +811 -0
  194. package/dist/ws/index.cjs +1 -1
  195. package/dist/ws/index.d.cts +121 -1
  196. package/dist/ws/index.d.ts +121 -1
  197. package/dist/ws/index.js +1 -1
  198. package/package.json +2 -2
  199. package/dist/chunk-5M3FKE2V.js +0 -2
  200. package/dist/chunk-WCFHS7EZ.cjs +0 -1
@@ -0,0 +1,13 @@
1
+ import {d,b,g,c,f,a,e}from'./chunk-Y2YAKDEQ.js';import {randomBytes}from'crypto';if (typeof window === "undefined") { const { createRequire } = await import(/* @vite-ignore */ 'module'); createRequire(import.meta.url); }
2
+ var c0={};d(c0,{BSON:()=>n8,BSONError:()=>w,BSONOffsetError:()=>$t,BSONRegExp:()=>Wr,BSONRuntimeError:()=>Is,BSONSymbol:()=>Xn,BSONType:()=>L3,BSONValue:()=>st,BSONVersionError:()=>jr,Binary:()=>Q,Code:()=>zr,DBRef:()=>Br,Decimal128:()=>Hn,Double:()=>ln,EJSON:()=>Jn,Int32:()=>hn,Long:()=>M,MaxKey:()=>Kn,MinKey:()=>Yn,ObjectId:()=>Vr,Timestamp:()=>dn,UUID:()=>cn,calculateObjectSize:()=>Q3,deserialize:()=>J3,deserializeStream:()=>Z3,onDemand:()=>vs,serialize:()=>Y3,serializeWithBufferAndIndex:()=>X3,setInternalBufferSize:()=>K3});function Bs(t){return g7(t)==="Uint8Array"}function e0(t){return typeof t=="object"&&t!=null&&Symbol.toStringTag in t&&(t[Symbol.toStringTag]==="ArrayBuffer"||t[Symbol.toStringTag]==="SharedArrayBuffer")}function bs(t){return t instanceof RegExp||Object.prototype.toString.call(t)==="[object RegExp]"}function t0(t){return typeof t=="object"&&t!=null&&Symbol.toStringTag in t&&t[Symbol.toStringTag]==="Map"}function Ms(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Rt(t,e){return JSON.stringify(t,(r,n)=>typeof n=="bigint"?{$numberLong:`${n}`}:t0(n)?Object.fromEntries(n):n)}function A7(t){if(t!=null&&typeof t=="object"&&"stylize"in t&&typeof t.stylize=="function")return t.stylize}function k3(t,e,r,n){if(n){u3??=new TextDecoder("utf8",{fatal:true});try{return u3.decode(t.subarray(e,r))}catch(s){throw new w("Invalid UTF-8 string in BSON document",{cause:s})}}return a3??=new TextDecoder("utf8",{fatal:false}),a3.decode(t.subarray(e,r))}function q3(t,e,r){if(t.length===0)return "";let n=r-e;if(n===0)return "";if(n>20)return null;if(n===1&&t[e]<128)return String.fromCharCode(t[e]);if(n===2&&t[e]<128&&t[e+1]<128)return String.fromCharCode(t[e])+String.fromCharCode(t[e+1]);if(n===3&&t[e]<128&&t[e+1]<128&&t[e+2]<128)return String.fromCharCode(t[e])+String.fromCharCode(t[e+1])+String.fromCharCode(t[e+2]);let s=[];for(let o=e;o<r;o++){let i=t[o];if(i>127)return null;s.push(i);}return String.fromCharCode(...s)}function O7(t,e,r){if(e.length===0)return 0;if(e.length>25||t.length-r<e.length)return null;for(let n=0,s=r;n<e.length;n++,s++){let o=e.charCodeAt(n);if(o>127)return null;t[s]=o;}return e.length}function w7(){let{navigator:t}=globalThis;return typeof t=="object"&&t.product==="ReactNative"}function _7(t){if(t<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${t}`);return jo.fromNumberArray(Array.from({length:t},()=>Math.floor(Math.random()*256)))}function qr(t){if(t.sub_type!==Q.SUBTYPE_VECTOR)return;let e=t.position,r=t.buffer[0],n=t.buffer[1];if((r===Q.VECTOR_TYPE.Float32||r===Q.VECTOR_TYPE.Int8)&&n!==0)throw new w("Invalid Vector: padding must be zero for int8 and float32 vectors");if(r===Q.VECTOR_TYPE.Float32&&e!==0&&e-2!==0&&(e-2)%4!==0)throw new w("Invalid Vector: Float32 vector must contain a multiple of 4 bytes");if(r===Q.VECTOR_TYPE.PackedBit&&n!==0&&e===2)throw new w("Invalid Vector: padding must be zero for packed bit vectors that are empty");if(r===Q.VECTOR_TYPE.PackedBit&&n>7)throw new w(`Invalid Vector: padding must be a value between 0 and 7. found: ${n}`)}function U3(t){return t!=null&&typeof t=="object"&&"$id"in t&&t.$id!=null&&"$ref"in t&&typeof t.$ref=="string"&&(!("$db"in t)||"$db"in t&&typeof t.$db=="string")}function j3(t){if(t==="")return t;let e=0,r=t[e]==="-",n=t[e]==="+";(n||r)&&(e+=1);let s=false;for(;e<t.length&&t[e]==="0";++e)s=true;return s?`${r?"-":""}${t.length===e?"0":t.slice(e)}`:n?t.slice(1):t}function M7(t,e){e=e??10;let r="0123456789abcdefghijklmnopqrstuvwxyz".slice(0,e);return new RegExp(`[^-+${r}]`,"i").test(t)?false:t}function A3(t){return !isNaN(parseInt(t,10))}function j7(t){let e=M.fromNumber(1e9),r=M.fromNumber(0);if(!t.parts[0]&&!t.parts[1]&&!t.parts[2]&&!t.parts[3])return {quotient:t,rem:r};for(let n=0;n<=3;n++)r=r.shiftLeft(32),r=r.add(new M(t.parts[n],0)),t.parts[n]=r.div(e).low,r=r.modulo(e);return {quotient:t,rem:r}}function z7(t,e){if(!t&&!e)return {high:M.fromNumber(0),low:M.fromNumber(0)};let r=t.shiftRightUnsigned(32),n=new M(t.getLowBits(),0),s=e.shiftRightUnsigned(32),o=new M(e.getLowBits(),0),i=r.multiply(s),u=r.multiply(o),a=n.multiply(s),c=n.multiply(o);return i=i.add(u.shiftRightUnsigned(32)),u=new M(u.getLowBits(),0).add(a).add(c.shiftRightUnsigned(32)),i=i.add(u.shiftRightUnsigned(32)),c=u.shiftLeft(32).add(new M(c.getLowBits(),0)),{high:i,low:c}}function V7(t,e){let r=t.high>>>0,n=e.high>>>0;if(r<n)return true;if(r===n){let s=t.low>>>0,o=e.low>>>0;if(s<o)return true}return false}function or(t,e){throw new w(`"${t}" is not a valid Decimal128 string - ${e}`)}function c1(t,e,r){let n=5;if(Array.isArray(t))for(let s=0;s<t.length;s++)n+=C3(s.toString(),t[s],e,true,r);else {typeof t?.toBSON=="function"&&(t=t.toBSON());for(let s of Object.keys(t))n+=C3(s,t[s],e,false,r);}return n}function C3(t,e,r=false,n=false,s=false){switch(typeof e?.toBSON=="function"&&(e=e.toBSON()),typeof e){case "string":return 1+O.utf8ByteLength(t)+1+4+O.utf8ByteLength(e)+1;case "number":return Math.floor(e)===e&&e>=D3&&e<=_3&&e>=Vo&&e<=zo?(t!=null?O.utf8ByteLength(t)+1:0)+5:(t!=null?O.utf8ByteLength(t)+1:0)+9;case "undefined":return n||!s?(t!=null?O.utf8ByteLength(t)+1:0)+1:0;case "boolean":return (t!=null?O.utf8ByteLength(t)+1:0)+2;case "object":if(e!=null&&typeof e._bsontype=="string"&&e[Ns]!==Gn)throw new jr;if(e==null||e._bsontype==="MinKey"||e._bsontype==="MaxKey")return (t!=null?O.utf8ByteLength(t)+1:0)+1;if(e._bsontype==="ObjectId")return (t!=null?O.utf8ByteLength(t)+1:0)+13;if(e instanceof Date||Ms(e))return (t!=null?O.utf8ByteLength(t)+1:0)+9;if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e0(e))return (t!=null?O.utf8ByteLength(t)+1:0)+6+e.byteLength;if(e._bsontype==="Long"||e._bsontype==="Double"||e._bsontype==="Timestamp")return (t!=null?O.utf8ByteLength(t)+1:0)+9;if(e._bsontype==="Decimal128")return (t!=null?O.utf8ByteLength(t)+1:0)+17;if(e._bsontype==="Code")return e.scope!=null&&Object.keys(e.scope).length>0?(t!=null?O.utf8ByteLength(t)+1:0)+1+4+4+O.utf8ByteLength(e.code.toString())+1+c1(e.scope,r,s):(t!=null?O.utf8ByteLength(t)+1:0)+1+4+O.utf8ByteLength(e.code.toString())+1;if(e._bsontype==="Binary"){let o=e;return o.sub_type===Q.SUBTYPE_BYTE_ARRAY?(t!=null?O.utf8ByteLength(t)+1:0)+(o.position+1+4+1+4):(t!=null?O.utf8ByteLength(t)+1:0)+(o.position+1+4+1)}else {if(e._bsontype==="Symbol")return (t!=null?O.utf8ByteLength(t)+1:0)+O.utf8ByteLength(e.value)+4+1+1;if(e._bsontype==="DBRef"){let o=Object.assign({$ref:e.collection,$id:e.oid},e.fields);return e.db!=null&&(o.$db=e.db),(t!=null?O.utf8ByteLength(t)+1:0)+1+c1(o,r,s)}else return e instanceof RegExp||bs(e)?(t!=null?O.utf8ByteLength(t)+1:0)+1+O.utf8ByteLength(e.source)+1+(e.global?1:0)+(e.ignoreCase?1:0)+(e.multiline?1:0)+1:e._bsontype==="BSONRegExp"?(t!=null?O.utf8ByteLength(t)+1:0)+1+O.utf8ByteLength(e.pattern)+1+O.utf8ByteLength(e.options)+1:(t!=null?O.utf8ByteLength(t)+1:0)+c1(e,r,s)+1}case "function":return r?(t!=null?O.utf8ByteLength(t)+1:0)+1+4+O.utf8ByteLength(e.toString())+1:0;case "bigint":return (t!=null?O.utf8ByteLength(t)+1:0)+9;case "symbol":return 0;default:throw new w(`Unrecognized JS type: ${typeof e}`)}}function W7(t){return t.split("").sort().join("")}function V3(t,e,r){e=e??{};let n=e&&e.index?e.index:0,s=U.getInt32LE(t,n);if(s<5)throw new w(`bson size must be >= 5, is ${s}`);if(e.allowObjectSmallerThanBufferSize&&t.length<s)throw new w(`buffer length ${t.length} must be >= bson size ${s}`);if(!e.allowObjectSmallerThanBufferSize&&t.length!==s)throw new w(`buffer length ${t.length} must === bson size ${s}`);if(s+n>t.byteLength)throw new w(`(bson size ${s} + options.index ${n} must be <= buffer length ${t.byteLength})`);if(t[n+s-1]!==0)throw new w("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return l1(t,n,e,r)}function l1(t,e,r,n=false){let s=r.fieldsAsRaw==null?null:r.fieldsAsRaw,o=r.raw==null?false:r.raw,i=typeof r.bsonRegExp=="boolean"?r.bsonRegExp:false,u=r.promoteBuffers??false,a=r.promoteLongs??true,c=r.promoteValues??true,h=r.useBigInt64??false;if(h&&!c)throw new w("Must either request bigint or Long for int64 deserialization");if(h&&!a)throw new w("Must either request bigint or Long for int64 deserialization");let d=r.validation==null?{utf8:true}:r.validation,m=true,E,p,_=d.utf8;if(typeof _=="boolean")E=_;else {m=false;let L=Object.keys(_).map(function(q){return _[q]});if(L.length===0)throw new w("UTF-8 validation setting cannot be empty");if(typeof L[0]!="boolean")throw new w("Invalid UTF-8 validation option, must specify boolean values");if(E=L[0],!L.every(q=>q===E))throw new w("Invalid UTF-8 validation option - keys must be all true or all false")}if(!m){p=new Set;for(let L of Object.keys(_))p.add(L);}let b=e;if(t.length<5)throw new w("corrupt bson message < 5 bytes long");let j=U.getInt32LE(t,e);if(e+=4,j<5||j>t.length)throw new w("corrupt bson message");let P=n?[]:{},De=0,N=n?false:null;for(;;){let L=t[e++];if(L===0)break;let q=e;for(;t[q]!==0&&q<t.length;)q++;if(q>=t.byteLength)throw new w("Bad BSON Document: illegal CString");let zt=n?De++:O.toUTF8(t,e,q,false),Fe=true;m||p?.has(zt)?Fe=E:Fe=!E,N!==false&&zt[0]==="$"&&(N=K7.test(zt));let I;if(e=q+1,L===T3){let F=U.getInt32LE(t,e);if(e+=4,F<=0||F>t.length-e||t[e+F-1]!==0)throw new w("bad string length in bson");I=O.toUTF8(t,e,e+F-1,Fe),e=e+F;}else if(L===b3){let F=O.allocateUnsafe(12);for(let R=0;R<12;R++)F[R]=t[e+R];I=new Vr(F),e=e+12;}else if(L===Uo&&c===false)I=new hn(U.getInt32LE(t,e)),e+=4;else if(L===Uo)I=U.getInt32LE(t,e),e+=4;else if(L===r0)I=U.getFloat64LE(t,e),e+=8,c===false&&(I=new ln(I));else if(L===F3){let F=U.getInt32LE(t,e),R=U.getInt32LE(t,e+4);e+=8,I=new Date(new M(F,R).toNumber());}else if(L===M3){if(t[e]!==0&&t[e]!==1)throw new w("illegal boolean type value");I=t[e++]===1;}else if(L===n0){let F=e,R=U.getInt32LE(t,e);if(R<=0||R>t.length-e)throw new w("bad embedded document length in bson");if(o)I=t.subarray(e,e+R);else {let J=r;m||(J={...r,validation:{utf8:Fe}}),I=l1(t,F,J,false);}e=e+R;}else if(L===B3){let F=e,R=U.getInt32LE(t,e),J=r,Vt=e+R;if(s&&s[zt]&&(J={...r,raw:true}),m||(J={...J,validation:{utf8:Fe}}),I=l1(t,F,J,true),e=e+R,t[e-1]!==0)throw new w("invalid array terminator byte");if(e!==Vt)throw new w("corrupted array bson")}else if(L===C7)I=void 0;else if(L===o0)I=null;else if(L===u0)if(h)I=U.getBigInt64LE(t,e),e+=8;else {let F=U.getInt32LE(t,e),R=U.getInt32LE(t,e+4);e+=8;let J=new M(F,R);a&&c===true?I=J.lessThanOrEqual(G7)&&J.greaterThanOrEqual(H7)?J.toNumber():J:I=J;}else if(L===v3){let F=O.allocateUnsafe(16);for(let R=0;R<16;R++)F[R]=t[e+R];e=e+16,I=new Hn(F);}else if(L===s0){let F=U.getInt32LE(t,e);e+=4;let R=F,J=t[e++];if(F<0)throw new w("Negative binary type element size found");if(F>t.byteLength)throw new w("Binary type size larger than document size");if(J===Q.SUBTYPE_BYTE_ARRAY){if(F=U.getInt32LE(t,e),e+=4,F<0)throw new w("Negative binary type element size found for subtype 0x02");if(F>R-4)throw new w("Binary type with subtype 0x02 contains too long binary size");if(F<R-4)throw new w("Binary type with subtype 0x02 contains too short binary size")}u&&c?I=O.toLocalBufferType(t.subarray(e,e+F)):(I=new Q(t.subarray(e,e+F),J),J===a0&&cn.isValid(I)&&(I=I.toUUID())),e=e+F;}else if(L===h1&&i===false){for(q=e;t[q]!==0&&q<t.length;)q++;if(q>=t.length)throw new w("Bad BSON Document: illegal CString");let F=O.toUTF8(t,e,q,false);for(e=q+1,q=e;t[q]!==0&&q<t.length;)q++;if(q>=t.length)throw new w("Bad BSON Document: illegal CString");let R=O.toUTF8(t,e,q,false);e=q+1;let J=new Array(R.length);for(q=0;q<R.length;q++)switch(R[q]){case "m":J[q]="m";break;case "s":J[q]="g";break;case "i":J[q]="i";break}I=new RegExp(F,J.join(""));}else if(L===h1&&i===true){for(q=e;t[q]!==0&&q<t.length;)q++;if(q>=t.length)throw new w("Bad BSON Document: illegal CString");let F=O.toUTF8(t,e,q,false);for(e=q+1,q=e;t[q]!==0&&q<t.length;)q++;if(q>=t.length)throw new w("Bad BSON Document: illegal CString");let R=O.toUTF8(t,e,q,false);e=q+1,I=new Wr(F,R);}else if(L===R3){let F=U.getInt32LE(t,e);if(e+=4,F<=0||F>t.length-e||t[e+F-1]!==0)throw new w("bad string length in bson");let R=O.toUTF8(t,e,e+F-1,Fe);I=c?R:new Xn(R),e=e+F;}else if(L===I3)I=new dn({i:U.getUint32LE(t,e),t:U.getUint32LE(t,e+4)}),e+=8;else if(L===P3)I=new Yn;else if(L===x3)I=new Kn;else if(L===i0){let F=U.getInt32LE(t,e);if(e+=4,F<=0||F>t.length-e||t[e+F-1]!==0)throw new w("bad string length in bson");let R=O.toUTF8(t,e,e+F-1,Fe);I=new zr(R),e=e+F;}else if(L===N3){let F=U.getInt32LE(t,e);if(e+=4,F<13)throw new w("code_w_scope total size shorter minimum expected length");let R=U.getInt32LE(t,e);if(e+=4,R<=0||R>t.length-e||t[e+R-1]!==0)throw new w("bad string length in bson");let J=O.toUTF8(t,e,e+R-1,Fe);e=e+R;let Vt=e,Te=U.getInt32LE(t,e),m7=l1(t,Vt,r,false);if(e=e+Te,F<8+Te+R)throw new w("code_w_scope total size is too short, truncating scope");if(F>8+Te+R)throw new w("code_w_scope total size is too long, clips outer document");I=new zr(J,m7);}else if(L===S7){let F=U.getInt32LE(t,e);if(e+=4,F<=0||F>t.length-e||t[e+F-1]!==0)throw new w("bad string length in bson");let R=O.toUTF8(t,e,e+F-1,Fe);e=e+F;let J=O.allocateUnsafe(12);for(let Te=0;Te<12;Te++)J[Te]=t[e+Te];let Vt=new Vr(J);e=e+12,I=new Br(R,Vt);}else throw new w(`Detected unknown BSON type ${L.toString(16)} for fieldname "${zt}"`);zt==="__proto__"?Object.defineProperty(P,zt,{value:I,writable:true,enumerable:true,configurable:true}):P[zt]=I;}if(j!==e-b)throw n?new w("corrupt array bson"):new w("corrupt object bson");if(!N)return P;if(U3(P)){let L=Object.assign({},P);return delete L.$ref,delete L.$id,delete L.$db,new Br(P.$ref,P.$id,P.$db,L)}return P}function Nc(t,e,r,n){t[n++]=T3;let s=O.encodeUTF8Into(t,e,n);n=n+s+1,t[n-1]=0;let o=O.encodeUTF8Into(t,r,n+4);return U.setInt32LE(t,n,o+1),n=n+4+o,t[n++]=0,n}function Ic(t,e,r,n){let o=!Object.is(r,-0)&&Number.isSafeInteger(r)&&r<=zo&&r>=Vo?Uo:r0;t[n++]=o;let i=O.encodeUTF8Into(t,e,n);return n=n+i,t[n++]=0,o===Uo?n+=U.setInt32LE(t,n,r):n+=U.setFloat64LE(t,n,r),n}function vc(t,e,r,n){t[n++]=u0;let s=O.encodeUTF8Into(t,e,n);return n+=s,t[n++]=0,n+=U.setBigInt64LE(t,n,r),n}function Ts(t,e,r,n){t[n++]=o0;let s=O.encodeUTF8Into(t,e,n);return n=n+s,t[n++]=0,n}function Pc(t,e,r,n){t[n++]=M3;let s=O.encodeUTF8Into(t,e,n);return n=n+s,t[n++]=0,t[n++]=r?1:0,n}function xc(t,e,r,n){t[n++]=F3;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;let o=M.fromNumber(r.getTime()),i=o.getLowBits(),u=o.getHighBits();return n+=U.setInt32LE(t,n,i),n+=U.setInt32LE(t,n,u),n}function Lc(t,e,r,n){t[n++]=h1;let s=O.encodeUTF8Into(t,e,n);if(n=n+s,t[n++]=0,r.source&&r.source.match(d1)!=null)throw new w("value "+r.source+" must not contain null bytes");return n=n+O.encodeUTF8Into(t,r.source,n),t[n++]=0,r.ignoreCase&&(t[n++]=105),r.global&&(t[n++]=115),r.multiline&&(t[n++]=109),t[n++]=0,n}function kc(t,e,r,n){t[n++]=h1;let s=O.encodeUTF8Into(t,e,n);if(n=n+s,t[n++]=0,r.pattern.match(d1)!=null)throw new w("pattern "+r.pattern+" must not contain null bytes");n=n+O.encodeUTF8Into(t,r.pattern,n),t[n++]=0;let o=r.options.split("").sort().join("");return n=n+O.encodeUTF8Into(t,o,n),t[n++]=0,n}function qc(t,e,r,n){r===null?t[n++]=o0:r._bsontype==="MinKey"?t[n++]=P3:t[n++]=x3;let s=O.encodeUTF8Into(t,e,n);return n=n+s,t[n++]=0,n}function Uc(t,e,r,n){t[n++]=b3;let s=O.encodeUTF8Into(t,e,n);return n=n+s,t[n++]=0,n+=r.serializeInto(t,n),n}function jc(t,e,r,n){t[n++]=s0;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;let o=r.length;if(n+=U.setInt32LE(t,n,o),t[n++]=y7,o<=16)for(let i=0;i<o;i++)t[n+i]=r[i];else t.set(r,n);return n=n+o,n}function zc(t,e,r,n,s,o,i,u,a){if(a.has(r))throw new w("Cannot convert circular structure to BSON");a.add(r),t[n++]=Array.isArray(r)?B3:n0;let c=O.encodeUTF8Into(t,e,n);n=n+c,t[n++]=0;let h=Wo(t,r,s,n,o+1,i,u,a);return a.delete(r),h}function Vc(t,e,r,n){t[n++]=v3;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;for(let o=0;o<16;o++)t[n+o]=r.bytes[o];return n+16}function Wc(t,e,r,n){t[n++]=r._bsontype==="Long"?u0:I3;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;let o=r.getLowBits(),i=r.getHighBits();return n+=U.setInt32LE(t,n,o),n+=U.setInt32LE(t,n,i),n}function $c(t,e,r,n){r=r.valueOf(),t[n++]=Uo;let s=O.encodeUTF8Into(t,e,n);return n=n+s,t[n++]=0,n+=U.setInt32LE(t,n,r),n}function Gc(t,e,r,n){t[n++]=r0;let s=O.encodeUTF8Into(t,e,n);return n=n+s,t[n++]=0,n+=U.setFloat64LE(t,n,r.value),n}function Hc(t,e,r,n){t[n++]=i0;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;let o=r.toString(),i=O.encodeUTF8Into(t,o,n+4)+1;return U.setInt32LE(t,n,i),n=n+4+i-1,t[n++]=0,n}function Kc(t,e,r,n,s=false,o=0,i=false,u=true,a){if(r.scope&&typeof r.scope=="object"){t[n++]=N3;let c=O.encodeUTF8Into(t,e,n);n=n+c,t[n++]=0;let h=n,d=r.code;n=n+4;let m=O.encodeUTF8Into(t,d,n+4)+1;U.setInt32LE(t,n,m),t[n+4+m-1]=0,n=n+m+4;let E=Wo(t,r.scope,s,n,o+1,i,u,a);n=E-1;let p=E-h;h+=U.setInt32LE(t,h,p),t[n++]=0;}else {t[n++]=i0;let c=O.encodeUTF8Into(t,e,n);n=n+c,t[n++]=0;let h=r.code.toString(),d=O.encodeUTF8Into(t,h,n+4)+1;U.setInt32LE(t,n,d),n=n+4+d-1,t[n++]=0;}return n}function Yc(t,e,r,n){t[n++]=s0;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;let o=r.buffer,i=r.position;if(r.sub_type===Q.SUBTYPE_BYTE_ARRAY&&(i=i+4),n+=U.setInt32LE(t,n,i),t[n++]=r.sub_type,r.sub_type===Q.SUBTYPE_BYTE_ARRAY&&(i=i-4,n+=U.setInt32LE(t,n,i)),r.sub_type===Q.SUBTYPE_VECTOR&&qr(r),i<=16)for(let u=0;u<i;u++)t[n+u]=o[u];else t.set(o,n);return n=n+r.position,n}function Xc(t,e,r,n){t[n++]=R3;let s=O.encodeUTF8Into(t,e,n);n=n+s,t[n++]=0;let o=O.encodeUTF8Into(t,r.value,n+4)+1;return U.setInt32LE(t,n,o),n=n+4+o-1,t[n++]=0,n}function Jc(t,e,r,n,s,o,i){t[n++]=n0;let u=O.encodeUTF8Into(t,e,n);n=n+u,t[n++]=0;let a=n,c={$ref:r.collection||r.namespace,$id:r.oid};r.db!=null&&(c.$db=r.db),c=Object.assign(c,r.fields);let h=Wo(t,c,false,n,s+1,o,true,i),d=h-a;return a+=U.setInt32LE(t,n,d),h}function Wo(t,e,r,n,s,o,i,u){if(u==null){if(e==null)return t[0]=5,t[1]=0,t[2]=0,t[3]=0,t[4]=0,5;if(Array.isArray(e))throw new w("serialize does not support an array as the root input");if(typeof e!="object")throw new w("serialize does not support non-object as the root input");if("_bsontype"in e&&typeof e._bsontype=="string")throw new w("BSON types cannot be serialized as a document");if(Ms(e)||bs(e)||Bs(e)||e0(e))throw new w("date, regexp, typedarray, and arraybuffer cannot be BSON documents");u=new Set;}u.add(e);let a=n+4;if(Array.isArray(e))for(let h=0;h<e.length;h++){let d=`${h}`,m=e[h];typeof m?.toBSON=="function"&&(m=m.toBSON());let E=typeof m;if(m===void 0)a=Ts(t,d,m,a);else if(m===null)a=Ts(t,d,m,a);else if(E==="string")a=Nc(t,d,m,a);else if(E==="number")a=Ic(t,d,m,a);else if(E==="bigint")a=vc(t,d,m,a);else if(E==="boolean")a=Pc(t,d,m,a);else if(E==="object"&&m._bsontype==null)m instanceof Date||Ms(m)?a=xc(t,d,m,a):m instanceof Uint8Array||Bs(m)?a=jc(t,d,m,a):m instanceof RegExp||bs(m)?a=Lc(t,d,m,a):a=zc(t,d,m,a,r,s,o,i,u);else if(E==="object"){if(m[Ns]!==Gn)throw new jr;if(m._bsontype==="ObjectId")a=Uc(t,d,m,a);else if(m._bsontype==="Decimal128")a=Vc(t,d,m,a);else if(m._bsontype==="Long"||m._bsontype==="Timestamp")a=Wc(t,d,m,a);else if(m._bsontype==="Double")a=Gc(t,d,m,a);else if(m._bsontype==="Code")a=Kc(t,d,m,a,r,s,o,i,u);else if(m._bsontype==="Binary")a=Yc(t,d,m,a);else if(m._bsontype==="BSONSymbol")a=Xc(t,d,m,a);else if(m._bsontype==="DBRef")a=Jc(t,d,m,a,s,o,u);else if(m._bsontype==="BSONRegExp")a=kc(t,d,m,a);else if(m._bsontype==="Int32")a=$c(t,d,m,a);else if(m._bsontype==="MinKey"||m._bsontype==="MaxKey")a=qc(t,d,m,a);else if(typeof m._bsontype<"u")throw new w(`Unrecognized or invalid _bsontype: ${String(m._bsontype)}`)}else E==="function"&&o&&(a=Hc(t,d,m,a));}else if(e instanceof Map||t0(e)){let h=e.entries(),d=false;for(;!d;){let m=h.next();if(d=!!m.done,d)continue;let E=m.value?m.value[0]:void 0,p=m.value?m.value[1]:void 0;typeof p?.toBSON=="function"&&(p=p.toBSON());let _=typeof p;if(typeof E=="string"&&!S3.has(E)){if(E.match(d1)!=null)throw new w("key "+E+" must not contain null bytes");if(r){if(E[0]==="$")throw new w("key "+E+" must not start with '$'");if(E.includes("."))throw new w("key "+E+" must not contain '.'")}}if(p===void 0)i===false&&(a=Ts(t,E,p,a));else if(p===null)a=Ts(t,E,p,a);else if(_==="string")a=Nc(t,E,p,a);else if(_==="number")a=Ic(t,E,p,a);else if(_==="bigint")a=vc(t,E,p,a);else if(_==="boolean")a=Pc(t,E,p,a);else if(_==="object"&&p._bsontype==null)p instanceof Date||Ms(p)?a=xc(t,E,p,a):p instanceof Uint8Array||Bs(p)?a=jc(t,E,p,a):p instanceof RegExp||bs(p)?a=Lc(t,E,p,a):a=zc(t,E,p,a,r,s,o,i,u);else if(_==="object"){if(p[Ns]!==Gn)throw new jr;if(p._bsontype==="ObjectId")a=Uc(t,E,p,a);else if(p._bsontype==="Decimal128")a=Vc(t,E,p,a);else if(p._bsontype==="Long"||p._bsontype==="Timestamp")a=Wc(t,E,p,a);else if(p._bsontype==="Double")a=Gc(t,E,p,a);else if(p._bsontype==="Code")a=Kc(t,E,p,a,r,s,o,i,u);else if(p._bsontype==="Binary")a=Yc(t,E,p,a);else if(p._bsontype==="BSONSymbol")a=Xc(t,E,p,a);else if(p._bsontype==="DBRef")a=Jc(t,E,p,a,s,o,u);else if(p._bsontype==="BSONRegExp")a=kc(t,E,p,a);else if(p._bsontype==="Int32")a=$c(t,E,p,a);else if(p._bsontype==="MinKey"||p._bsontype==="MaxKey")a=qc(t,E,p,a);else if(typeof p._bsontype<"u")throw new w(`Unrecognized or invalid _bsontype: ${String(p._bsontype)}`)}else _==="function"&&o&&(a=Hc(t,E,p,a));}}else {if(typeof e?.toBSON=="function"&&(e=e.toBSON(),e!=null&&typeof e!="object"))throw new w("toBSON function did not return an object");for(let h of Object.keys(e)){let d=e[h];typeof d?.toBSON=="function"&&(d=d.toBSON());let m=typeof d;if(typeof h=="string"&&!S3.has(h)){if(h.match(d1)!=null)throw new w("key "+h+" must not contain null bytes");if(r){if(h[0]==="$")throw new w("key "+h+" must not start with '$'");if(h.includes("."))throw new w("key "+h+" must not contain '.'")}}if(d===void 0)i===false&&(a=Ts(t,h,d,a));else if(d===null)a=Ts(t,h,d,a);else if(m==="string")a=Nc(t,h,d,a);else if(m==="number")a=Ic(t,h,d,a);else if(m==="bigint")a=vc(t,h,d,a);else if(m==="boolean")a=Pc(t,h,d,a);else if(m==="object"&&d._bsontype==null)d instanceof Date||Ms(d)?a=xc(t,h,d,a):d instanceof Uint8Array||Bs(d)?a=jc(t,h,d,a):d instanceof RegExp||bs(d)?a=Lc(t,h,d,a):a=zc(t,h,d,a,r,s,o,i,u);else if(m==="object"){if(d[Ns]!==Gn)throw new jr;if(d._bsontype==="ObjectId")a=Uc(t,h,d,a);else if(d._bsontype==="Decimal128")a=Vc(t,h,d,a);else if(d._bsontype==="Long"||d._bsontype==="Timestamp")a=Wc(t,h,d,a);else if(d._bsontype==="Double")a=Gc(t,h,d,a);else if(d._bsontype==="Code")a=Kc(t,h,d,a,r,s,o,i,u);else if(d._bsontype==="Binary")a=Yc(t,h,d,a);else if(d._bsontype==="BSONSymbol")a=Xc(t,h,d,a);else if(d._bsontype==="DBRef")a=Jc(t,h,d,a,s,o,u);else if(d._bsontype==="BSONRegExp")a=kc(t,h,d,a);else if(d._bsontype==="Int32")a=$c(t,h,d,a);else if(d._bsontype==="MinKey"||d._bsontype==="MaxKey")a=qc(t,h,d,a);else if(typeof d._bsontype<"u")throw new w(`Unrecognized or invalid _bsontype: ${String(d._bsontype)}`)}else m==="function"&&o&&(a=Hc(t,h,d,a));}}u.delete(e),t[a++]=0;let c=a-n;return n+=U.setInt32LE(t,n,c),a}function Y7(t){return t!=null&&typeof t=="object"&&"_bsontype"in t&&typeof t._bsontype=="string"}function W3(t,e={}){if(typeof t=="number"){let n=t<=zo&&t>=Vo,s=t<=O3&&t>=w3;if(e.relaxed||e.legacy)return t;if(Number.isInteger(t)&&!Object.is(t,-0)){if(n)return new hn(t);if(s)return e.useBigInt64?BigInt(t):M.fromNumber(t)}return new ln(t)}if(t==null||typeof t!="object")return t;if(t.$undefined)return null;let r=Object.keys(t).filter(n=>n.startsWith("$")&&t[n]!=null);for(let n=0;n<r.length;n++){let s=X7[r[n]];if(s)return s.fromExtendedJSON(t,e)}if(t.$date!=null){let n=t.$date,s=new Date;if(e.legacy)if(typeof n=="number")s.setTime(n);else if(typeof n=="string")s.setTime(Date.parse(n));else if(typeof n=="bigint")s.setTime(Number(n));else throw new Is(`Unrecognized type for EJSON date: ${typeof n}`);else if(typeof n=="string")s.setTime(Date.parse(n));else if(M.isLong(n))s.setTime(n.toNumber());else if(typeof n=="number"&&e.relaxed)s.setTime(n);else if(typeof n=="bigint")s.setTime(Number(n));else throw new Is(`Unrecognized type for EJSON date: ${typeof n}`);return s}if(t.$code!=null){let n=Object.assign({},t);return t.$scope&&(n.$scope=W3(t.$scope)),zr.fromExtendedJSON(t)}if(U3(t)||t.$dbPointer){let n=t.$ref?t:t.$dbPointer;if(n instanceof Br)return n;let s=Object.keys(n).filter(i=>i.startsWith("$")),o=true;if(s.forEach(i=>{["$ref","$id","$db"].indexOf(i)===-1&&(o=false);}),o)return Br.fromExtendedJSON(n)}return t}function J7(t,e){return t.map((r,n)=>{e.seenObjects.push({propertyName:`index ${n}`,obj:null});try{return Ur(r,e)}finally{e.seenObjects.pop();}})}function y3(t){let e=t.toISOString();return t.getUTCMilliseconds()!==0?e:e.slice(0,-5)+"Z"}function Ur(t,e){if(t instanceof Map||t0(t)){let r=Object.create(null);for(let[n,s]of t){if(typeof n!="string")throw new w("Can only serialize maps with string keys");r[n]=s;}return Ur(r,e)}if((typeof t=="object"||typeof t=="function")&&t!==null){let r=e.seenObjects.findIndex(n=>n.obj===t);if(r!==-1){let n=e.seenObjects.map(h=>h.propertyName),s=n.slice(0,r).map(h=>`${h} -> `).join(""),o=n[r],i=" -> "+n.slice(r+1,n.length-1).map(h=>`${h} -> `).join(""),u=n[n.length-1],a=" ".repeat(s.length+o.length/2),c="-".repeat(i.length+(o.length+u.length)/2-1);throw new w(`Converting circular structure to EJSON:
3
+ ${s}${o}${i}${u}
4
+ ${a}\\${c}/`)}e.seenObjects[e.seenObjects.length-1].obj=t;}if(Array.isArray(t))return J7(t,e);if(t===void 0)return null;if(t instanceof Date||Ms(t)){let r=t.getTime(),n=r>-1&&r<2534023188e5;return e.legacy?e.relaxed&&n?{$date:t.getTime()}:{$date:y3(t)}:e.relaxed&&n?{$date:y3(t)}:{$date:{$numberLong:t.getTime().toString()}}}if(typeof t=="number"&&(!e.relaxed||!isFinite(t))){if(Number.isInteger(t)&&!Object.is(t,-0)){if(t>=Vo&&t<=zo)return {$numberInt:t.toString()};if(t>=w3&&t<=O3)return {$numberLong:t.toString()}}return {$numberDouble:Object.is(t,-0)?"-0.0":t.toString()}}if(typeof t=="bigint")return e.relaxed?Number(BigInt.asIntN(64,t)):{$numberLong:BigInt.asIntN(64,t).toString()};if(t instanceof RegExp||bs(t)){let r=t.flags;if(r===void 0){let s=t.toString().match(/[gimuy]*$/);s&&(r=s[0]);}return new Wr(t.source,r).toExtendedJSON(e)}return t!=null&&typeof t=="object"?Z7(t,e):t}function Z7(t,e){if(t==null||typeof t!="object")throw new w("not an object instance");let r=t._bsontype;if(typeof r>"u"){let n={};for(let s of Object.keys(t)){e.seenObjects.push({propertyName:s,obj:null});try{let o=Ur(t[s],e);s==="__proto__"?Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):n[s]=o;}finally{e.seenObjects.pop();}}return n}else {if(t!=null&&typeof t=="object"&&typeof t._bsontype=="string"&&t[Ns]!==Gn)throw new jr;if(Y7(t)){let n=t;if(typeof n.toExtendedJSON!="function"){let s=Q7[t._bsontype];if(!s)throw new w("Unrecognized or invalid _bsontype: "+t._bsontype);n=s(n);}return r==="Code"&&n.scope?n=new zr(n.code,Ur(n.scope,e)):r==="DBRef"&&n.oid&&(n=new Br(Ur(n.collection,e),Ur(n.oid,e),Ur(n.db,e),Ur(n.fields,e))),n.toExtendedJSON(e)}else throw new w("_bsontype must be a string, but was: "+typeof r)}}function $3(t,e){let r={useBigInt64:e?.useBigInt64??false,relaxed:e?.relaxed??true,legacy:e?.legacy??false};return JSON.parse(t,(n,s)=>{if(n.indexOf("\0")!==-1)throw new w(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(n)}`);return W3(s,r)})}function G3(t,e,r,n){r!=null&&typeof r=="object"&&(n=r,r=0),e!=null&&typeof e=="object"&&!Array.isArray(e)&&(n=e,e=void 0,r=0);let s=Object.assign({relaxed:true,legacy:false},n,{seenObjects:[{propertyName:"(root)",obj:null}]}),o=Ur(t,s);return JSON.stringify(o,e,r)}function e8(t,e){return e=e||{},JSON.parse(G3(t,e))}function t8(t,e){return e=e||{},$3(JSON.stringify(t),e)}function Qc(t,e){try{return U.getNonnegativeInt32LE(t,e)}catch(r){throw new $t("BSON size cannot be negative",e,{cause:r})}}function Zc(t,e){let r=e;for(;t[r]!==0;r++);if(r===t.length-1)throw new $t("Null terminator not found",e);return r}function r8(t,e=0){if(e??=0,t.length<5)throw new $t(`Input must be at least 5 bytes, got ${t.length} bytes`,e);let r=Qc(t,e);if(r>t.length-e)throw new $t(`Parsed documentSize (${r} bytes) does not match input length (${t.length} bytes)`,e);if(t[e+r-1]!==0)throw new $t("BSON documents must end in 0x00",e+r);let n=[],s=e+4;for(;s<=r+e;){let o=t[s];if(s+=1,o===0){if(s-e!==r)throw new $t("Invalid 0x00 type byte",s);break}let i=s,u=Zc(t,s)-i;s+=u+1;let a;if(o===ye.double||o===ye.long||o===ye.date||o===ye.timestamp)a=8;else if(o===ye.int)a=4;else if(o===ye.objectId)a=12;else if(o===ye.decimal)a=16;else if(o===ye.bool)a=1;else if(o===ye.null||o===ye.undefined||o===ye.maxKey||o===ye.minKey)a=0;else if(o===ye.regex)a=Zc(t,Zc(t,s)+1)+1-s;else if(o===ye.object||o===ye.array||o===ye.javascriptWithScope)a=Qc(t,s);else if(o===ye.string||o===ye.binData||o===ye.dbPointer||o===ye.javascript||o===ye.symbol)a=Qc(t,s)+4,o===ye.binData&&(a+=1),o===ye.dbPointer&&(a+=12);else throw new $t(`Invalid 0x${o.toString(16).padStart(2,"0")} type byte`,s);if(a>r)throw new $t("value reports length larger than document",s);n.push([o,i,u,s,a]),s+=a;}return n}function K3(t){an.length<t&&(an=O.allocate(t));}function Y3(t,e={}){let r=typeof e.checkKeys=="boolean"?e.checkKeys:false,n=typeof e.serializeFunctions=="boolean"?e.serializeFunctions:false,s=typeof e.ignoreUndefined=="boolean"?e.ignoreUndefined:true,o=typeof e.minInternalBufferSize=="number"?e.minInternalBufferSize:H3;an.length<o&&(an=O.allocate(o));let i=Wo(an,t,r,0,0,n,s,null),u=O.allocateUnsafe(i);return u.set(an.subarray(0,i),0),u}function X3(t,e,r={}){let n=typeof r.checkKeys=="boolean"?r.checkKeys:false,s=typeof r.serializeFunctions=="boolean"?r.serializeFunctions:false,o=typeof r.ignoreUndefined=="boolean"?r.ignoreUndefined:true,i=typeof r.index=="number"?r.index:0,u=Wo(an,t,n,0,0,s,o,null);return e.set(an.subarray(0,u),i),i+u-1}function J3(t,e={}){return V3(O.toLocalBufferType(t),e)}function Q3(t,e={}){e=e||{};let r=typeof e.serializeFunctions=="boolean"?e.serializeFunctions:false,n=typeof e.ignoreUndefined=="boolean"?e.ignoreUndefined:true;return c1(t,r,n)}function Z3(t,e,r,n,s,o){let i=Object.assign({allowObjectSmallerThanBufferSize:true,index:0},o),u=O.toLocalBufferType(t),a=e;for(let c=0;c<r;c++){let h=U.getInt32LE(u,a);i.index=a,n[s+c]=V3(u,i),a=a+h;}return a}var g7,Gn,Ns,zo,Vo,O3,w3,_3,D3,r0,T3,n0,B3,s0,C7,b3,M3,F3,o0,h1,S7,i0,R3,N3,Uo,I3,u0,v3,P3,x3,y7,a0,L3,w,jr,Is,$t,u3,a3,un,D7,c3,jo,T7,O,st,Fs,se,Mc,U,Q,Fc,B7,b7,cn,zr,Br,Wt,l3,F7,Rs,z3,R7,h3,d3,N7,I7,M,v7,P7,x7,Ds,ko,f3,m3,Rc,p3,E3,L7,k7,g3,q7,U7,Hn,ln,hn,Kn,Yn,$n,qo,Vr,Wr,Xn,$7,dn,G7,H7,K7,d1,S3,X7,Q7,Jn,ye,vs,H3,an,n8,l0=b(()=>{g();g7=(()=>{let t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),Symbol.toStringTag).get;return e=>t.call(e)})();Gn=6,Ns=Symbol.for("@@mdb.bson.version"),zo=2147483647,Vo=-2147483648,O3=Math.pow(2,63)-1,w3=-Math.pow(2,63),_3=Math.pow(2,53),D3=-Math.pow(2,53),r0=1,T3=2,n0=3,B3=4,s0=5,C7=6,b3=7,M3=8,F3=9,o0=10,h1=11,S7=12,i0=13,R3=14,N3=15,Uo=16,I3=17,u0=18,v3=19,P3=255,x3=127,y7=0,a0=4,L3=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}),w=class extends Error{get bsonError(){return true}get name(){return "BSONError"}constructor(e,r){super(e,r);}static isBSONError(e){return e!=null&&typeof e=="object"&&"bsonError"in e&&e.bsonError===true&&"name"in e&&"message"in e&&"stack"in e}},jr=class extends w{get name(){return "BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${Gn}.x.x`);}},Is=class extends w{get name(){return "BSONRuntimeError"}constructor(e){super(e);}},$t=class extends w{get name(){return "BSONOffsetError"}constructor(e,r,n){super(`${e}. offset: ${r}`,n),this.offset=r;}};un={toLocalBufferType(t){if(Buffer.isBuffer(t))return t;if(ArrayBuffer.isView(t))return Buffer.from(t.buffer,t.byteOffset,t.byteLength);let e=t?.[Symbol.toStringTag]??Object.prototype.toString.call(t);if(e==="ArrayBuffer"||e==="SharedArrayBuffer"||e==="[object ArrayBuffer]"||e==="[object SharedArrayBuffer]")return Buffer.from(t);throw new w("Cannot create Buffer from the passed potentialBuffer.")},allocate(t){return Buffer.alloc(t)},allocateUnsafe(t){return Buffer.allocUnsafe(t)},equals(t,e){return un.toLocalBufferType(t).equals(e)},fromNumberArray(t){return Buffer.from(t)},fromBase64(t){return Buffer.from(t,"base64")},toBase64(t){return un.toLocalBufferType(t).toString("base64")},fromISO88591(t){return Buffer.from(t,"binary")},toISO88591(t){return un.toLocalBufferType(t).toString("binary")},fromHex(t){return Buffer.from(t,"hex")},toHex(t){return un.toLocalBufferType(t).toString("hex")},toUTF8(t,e,r,n){let s=r-e<=20?q3(t,e,r):null;if(s!=null)return s;let o=un.toLocalBufferType(t).toString("utf8",e,r);if(n){for(let i=0;i<o.length;i++)if(o.charCodeAt(i)===65533){k3(t,e,r,true);break}}return o},utf8ByteLength(t){return Buffer.byteLength(t,"utf8")},encodeUTF8Into(t,e,r){let n=O7(t,e,r);return n??un.toLocalBufferType(t).write(e,r,void 0,"utf8")},randomBytes:randomBytes,swap32(t){return un.toLocalBufferType(t).swap32()}};D7=(()=>{let{crypto:t}=globalThis;if(t!=null&&typeof t.getRandomValues=="function")return e=>t.getRandomValues(jo.allocate(e));if(w7()){let{console:e}=globalThis;e?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.");}return _7})(),c3=/(\d|[a-f])/i,jo={toLocalBufferType(t){let e=t?.[Symbol.toStringTag]??Object.prototype.toString.call(t);if(e==="Uint8Array")return t;if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));if(e==="ArrayBuffer"||e==="SharedArrayBuffer"||e==="[object ArrayBuffer]"||e==="[object SharedArrayBuffer]")return new Uint8Array(t);throw new w("Cannot make a Uint8Array from passed potentialBuffer.")},allocate(t){if(typeof t!="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(t)}`);return new Uint8Array(t)},allocateUnsafe(t){return jo.allocate(t)},equals(t,e){if(t.byteLength!==e.byteLength)return false;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return false;return true},fromNumberArray(t){return Uint8Array.from(t)},fromBase64(t){return Uint8Array.from(atob(t),e=>e.charCodeAt(0))},toBase64(t){return btoa(jo.toISO88591(t))},fromISO88591(t){return Uint8Array.from(t,e=>e.charCodeAt(0)&255)},toISO88591(t){return Array.from(Uint16Array.from(t),e=>String.fromCharCode(e)).join("")},fromHex(t){let e=t.length%2===0?t:t.slice(0,t.length-1),r=[];for(let n=0;n<e.length;n+=2){let s=e[n],o=e[n+1];if(!c3.test(s)||!c3.test(o))break;let i=Number.parseInt(`${s}${o}`,16);r.push(i);}return Uint8Array.from(r)},toHex(t){return Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")},toUTF8(t,e,r,n){let s=r-e<=20?q3(t,e,r):null;return s??k3(t,e,r,n)},utf8ByteLength(t){return new TextEncoder().encode(t).byteLength},encodeUTF8Into(t,e,r){let n=new TextEncoder().encode(e);return t.set(n,r),n.byteLength},randomBytes:D7,swap32(t){if(t.length%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t.length;e+=4){let r=t[e],n=t[e+1],s=t[e+2],o=t[e+3];t[e]=o,t[e+1]=s,t[e+2]=n,t[e+3]=r;}return t}},T7=typeof Buffer=="function"&&Buffer.prototype?._isBuffer!==true,O=T7?un:jo,st=class{get[Ns](){return Gn}[Symbol.for("nodejs.util.inspect.custom")](e,r,n){return this.inspect(e,r,n)}},Fs=new Float64Array(1),se=new Uint8Array(Fs.buffer,0,8);Fs[0]=-1;Mc=se[7]===0,U={isBigEndian:Mc,getNonnegativeInt32LE(t,e){if(t[e+3]>127)throw new RangeError(`Size cannot be negative at offset: ${e}`);return t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24},getInt32LE(t,e){return t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24},getUint32LE(t,e){return t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216},getUint32BE(t,e){return t[e+3]+t[e+2]*256+t[e+1]*65536+t[e]*16777216},getBigInt64LE(t,e){let r=BigInt(t[e+4]+t[e+5]*256+t[e+6]*65536+(t[e+7]<<24)),n=BigInt(t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216);return (r<<BigInt(32))+n},getFloat64LE:Mc?(t,e)=>(se[7]=t[e],se[6]=t[e+1],se[5]=t[e+2],se[4]=t[e+3],se[3]=t[e+4],se[2]=t[e+5],se[1]=t[e+6],se[0]=t[e+7],Fs[0]):(t,e)=>(se[0]=t[e],se[1]=t[e+1],se[2]=t[e+2],se[3]=t[e+3],se[4]=t[e+4],se[5]=t[e+5],se[6]=t[e+6],se[7]=t[e+7],Fs[0]),setInt32BE(t,e,r){return t[e+3]=r,r>>>=8,t[e+2]=r,r>>>=8,t[e+1]=r,r>>>=8,t[e]=r,4},setInt32LE(t,e,r){return t[e]=r,r>>>=8,t[e+1]=r,r>>>=8,t[e+2]=r,r>>>=8,t[e+3]=r,4},setBigInt64LE(t,e,r){let n=BigInt(4294967295),s=Number(r&n);t[e]=s,s>>=8,t[e+1]=s,s>>=8,t[e+2]=s,s>>=8,t[e+3]=s;let o=Number(r>>BigInt(32)&n);return t[e+4]=o,o>>=8,t[e+5]=o,o>>=8,t[e+6]=o,o>>=8,t[e+7]=o,8},setFloat64LE:Mc?(t,e,r)=>(Fs[0]=r,t[e]=se[7],t[e+1]=se[6],t[e+2]=se[5],t[e+3]=se[4],t[e+4]=se[3],t[e+5]=se[2],t[e+6]=se[1],t[e+7]=se[0],8):(t,e,r)=>(Fs[0]=r,t[e]=se[0],t[e+1]=se[1],t[e+2]=se[2],t[e+3]=se[3],t[e+4]=se[4],t[e+5]=se[5],t[e+6]=se[6],t[e+7]=se[7],8)},Q=class t extends st{get _bsontype(){return "Binary"}constructor(e,r){if(super(),e!=null&&typeof e=="string"&&!ArrayBuffer.isView(e)&&!e0(e)&&!Array.isArray(e))throw new w("Binary can only be constructed from Uint8Array or number[]");this.sub_type=r??t.BSON_BINARY_SUBTYPE_DEFAULT,e==null?(this.buffer=O.allocate(t.BUFFER_SIZE),this.position=0):(this.buffer=Array.isArray(e)?O.fromNumberArray(e):O.toLocalBufferType(e),this.position=this.buffer.byteLength);}put(e){if(typeof e=="string"&&e.length!==1)throw new w("only accepts single character String");if(typeof e!="number"&&e.length!==1)throw new w("only accepts single character Uint8Array or Array");let r;if(typeof e=="string"?r=e.charCodeAt(0):typeof e=="number"?r=e:r=e[0],r<0||r>255)throw new w("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=r;else {let n=O.allocate(t.BUFFER_SIZE+this.buffer.length);n.set(this.buffer,0),this.buffer=n,this.buffer[this.position++]=r;}}write(e,r){if(r=typeof r=="number"?r:this.position,this.buffer.byteLength<r+e.length){let n=O.allocate(this.buffer.byteLength+e.length);n.set(this.buffer,0),this.buffer=n;}if(ArrayBuffer.isView(e))this.buffer.set(O.toLocalBufferType(e),r),this.position=r+e.byteLength>this.position?r+e.length:this.position;else if(typeof e=="string")throw new w("input cannot be string")}read(e,r){r=r&&r>0?r:this.position;let n=e+r;return this.buffer.subarray(e,n>this.position?this.position:n)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return O.toBase64(this.buffer.subarray(0,this.position))}toString(e){return e==="hex"?O.toHex(this.buffer.subarray(0,this.position)):e==="base64"?O.toBase64(this.buffer.subarray(0,this.position)):e==="utf8"||e==="utf-8"?O.toUTF8(this.buffer,0,this.position,false):O.toUTF8(this.buffer,0,this.position,false)}toExtendedJSON(e){e=e||{},this.sub_type===t.SUBTYPE_VECTOR&&qr(this);let r=O.toBase64(this.buffer),n=Number(this.sub_type).toString(16);return e.legacy?{$binary:r,$type:n.length===1?"0"+n:n}:{$binary:{base64:r,subType:n.length===1?"0"+n:n}}}toUUID(){if(this.sub_type===t.SUBTYPE_UUID)return new cn(this.buffer.subarray(0,this.position));throw new w(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${t.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(e,r){return new t(O.fromHex(e),r)}static createFromBase64(e,r){return new t(O.fromBase64(e),r)}static fromExtendedJSON(e,r){r=r||{};let n,s;if("$binary"in e?r.legacy&&typeof e.$binary=="string"&&"$type"in e?(s=e.$type?parseInt(e.$type,16):0,n=O.fromBase64(e.$binary)):typeof e.$binary!="string"&&(s=e.$binary.subType?parseInt(e.$binary.subType,16):0,n=O.fromBase64(e.$binary.base64)):"$uuid"in e&&(s=4,n=cn.bytesFromString(e.$uuid)),!n)throw new w(`Unexpected Binary Extended JSON format ${JSON.stringify(e)}`);return s===a0?new cn(n):new t(n,s)}inspect(e,r,n){n??=Rt;let s=O.toBase64(this.buffer.subarray(0,this.position)),o=n(s,r),i=n(this.sub_type,r);return `Binary.createFromBase64(${o}, ${i})`}toInt8Array(){if(this.sub_type!==t.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==t.VECTOR_TYPE.Int8)throw new w("Binary datatype field is not Int8");return qr(this),new Int8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toFloat32Array(){if(this.sub_type!==t.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==t.VECTOR_TYPE.Float32)throw new w("Binary datatype field is not Float32");qr(this);let e=new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position));return U.isBigEndian&&O.swap32(e),new Float32Array(e.buffer)}toPackedBits(){if(this.sub_type!==t.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==t.VECTOR_TYPE.PackedBit)throw new w("Binary datatype field is not packed bit");return qr(this),new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toBits(){if(this.sub_type!==t.SUBTYPE_VECTOR)throw new w("Binary sub_type is not Vector");if(this.buffer[0]!==t.VECTOR_TYPE.PackedBit)throw new w("Binary datatype field is not packed bit");qr(this);let r=(this.length()-2)*8-this.buffer[1],n=new Int8Array(r);for(let s=0;s<n.length;s++){let o=s/8|0,i=this.buffer[o+2],u=7-s%8,a=i>>u&1;n[s]=a;}return n}static fromInt8Array(e){let r=O.allocate(e.byteLength+2);r[0]=t.VECTOR_TYPE.Int8,r[1]=0;let n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);r.set(n,2);let s=new this(r,this.SUBTYPE_VECTOR);return qr(s),s}static fromFloat32Array(e){let r=O.allocate(e.byteLength+2);r[0]=t.VECTOR_TYPE.Float32,r[1]=0;let n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);r.set(n,2),U.isBigEndian&&O.swap32(new Uint8Array(r.buffer,2));let s=new this(r,this.SUBTYPE_VECTOR);return qr(s),s}static fromPackedBits(e,r=0){let n=O.allocate(e.byteLength+2);n[0]=t.VECTOR_TYPE.PackedBit,n[1]=r,n.set(e,2);let s=new this(n,this.SUBTYPE_VECTOR);return qr(s),s}static fromBits(e){let r=e.length+7>>>3,n=new Uint8Array(r+2);n[0]=t.VECTOR_TYPE.PackedBit;let s=e.length%8;n[1]=s===0?0:8-s;for(let o=0;o<e.length;o++){let i=o>>>3,u=e[o];if(u!==0&&u!==1)throw new w(`Invalid bit value at ${o}: must be 0 or 1, found ${e[o]}`);if(u===0)continue;let a=7-o%8;n[i+2]|=u<<a;}return new this(n,t.SUBTYPE_VECTOR)}};Q.BSON_BINARY_SUBTYPE_DEFAULT=0;Q.BUFFER_SIZE=256;Q.SUBTYPE_DEFAULT=0;Q.SUBTYPE_FUNCTION=1;Q.SUBTYPE_BYTE_ARRAY=2;Q.SUBTYPE_UUID_OLD=3;Q.SUBTYPE_UUID=4;Q.SUBTYPE_MD5=5;Q.SUBTYPE_ENCRYPTED=6;Q.SUBTYPE_COLUMN=7;Q.SUBTYPE_SENSITIVE=8;Q.SUBTYPE_VECTOR=9;Q.SUBTYPE_USER_DEFINED=128;Q.VECTOR_TYPE=Object.freeze({Int8:3,Float32:39,PackedBit:16});Fc=16,B7=/^[0-9A-F]{32}$/i,b7=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,cn=class t extends Q{constructor(e){let r;if(e==null)r=t.generate();else if(e instanceof t)r=O.toLocalBufferType(new Uint8Array(e.buffer));else if(ArrayBuffer.isView(e)&&e.byteLength===Fc)r=O.toLocalBufferType(e);else if(typeof e=="string")r=t.bytesFromString(e);else throw new w("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(r,a0);}get id(){return this.buffer}set id(e){this.buffer=e;}toHexString(e=true){return e?[O.toHex(this.buffer.subarray(0,4)),O.toHex(this.buffer.subarray(4,6)),O.toHex(this.buffer.subarray(6,8)),O.toHex(this.buffer.subarray(8,10)),O.toHex(this.buffer.subarray(10,16))].join("-"):O.toHex(this.buffer)}toString(e){return e==="hex"?O.toHex(this.id):e==="base64"?O.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}equals(e){if(!e)return false;if(e instanceof t)return O.equals(e.id,this.id);try{return O.equals(new t(e).id,this.id)}catch{return false}}toBinary(){return new Q(this.id,Q.SUBTYPE_UUID)}static generate(){let e=O.randomBytes(Fc);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,e}static isValid(e){return e?typeof e=="string"?t.isValidUUIDString(e):Bs(e)?e.byteLength===Fc:e._bsontype==="Binary"&&e.sub_type===this.SUBTYPE_UUID&&e.buffer.byteLength===16:false}static createFromHexString(e){let r=t.bytesFromString(e);return new t(r)}static createFromBase64(e){return new t(O.fromBase64(e))}static bytesFromString(e){if(!t.isValidUUIDString(e))throw new w("UUID string representation must be 32 hex digits or canonical hyphenated representation");return O.fromHex(e.replace(/-/g,""))}static isValidUUIDString(e){return B7.test(e)||b7.test(e)}inspect(e,r,n){return n??=Rt,`new UUID(${n(this.toHexString(),r)})`}},zr=class t extends st{get _bsontype(){return "Code"}constructor(e,r){super(),this.code=e.toString(),this.scope=r??null;}toJSON(){return this.scope!=null?{code:this.code,scope:this.scope}:{code:this.code}}toExtendedJSON(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}}static fromExtendedJSON(e){return new t(e.$code,e.$scope)}inspect(e,r,n){n??=Rt;let s=n(this.code,r),o=s.includes(`
5
+ `);this.scope!=null&&(s+=`,${o?`
6
+ `:" "}${n(this.scope,r)}`);let i=o&&this.scope===null;return `new Code(${o?`
7
+ `:""}${s}${i?`
8
+ `:""})`}};Br=class t extends st{get _bsontype(){return "DBRef"}constructor(e,r,n,s){super();let o=e.split(".");o.length===2&&(n=o.shift(),e=o.shift()),this.collection=e,this.oid=r,this.db=n,this.fields=s||{};}get namespace(){return this.collection}set namespace(e){this.collection=e;}toJSON(){let e=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(e.$db=this.db),e}toExtendedJSON(e){e=e||{};let r={$ref:this.collection,$id:this.oid};return e.legacy||(this.db&&(r.$db=this.db),r=Object.assign(r,this.fields)),r}static fromExtendedJSON(e){let r=Object.assign({},e);return delete r.$ref,delete r.$id,delete r.$db,new t(e.$ref,e.$id,e.$db,r)}inspect(e,r,n){n??=Rt;let s=[n(this.namespace,r),n(this.oid,r),...this.db?[n(this.db,r)]:[],...Object.keys(this.fields).length>0?[n(this.fields,r)]:[]];return s[1]=n===Rt?`new ObjectId(${s[1]})`:s[1],`new DBRef(${s.join(", ")})`}};try{Wt=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{}l3=65536,F7=1<<24,Rs=l3*l3,z3=Rs*Rs,R7=z3/2,h3={},d3={},N7=20,I7=/^(\+?0|(\+|-)?[1-9][0-9]*)$/,M=class t extends st{get _bsontype(){return "Long"}get __isLong__(){return true}constructor(e=0,r,n){super();let s=typeof r=="boolean"?r:!!n,o=typeof r=="number"?r:0,i=typeof e=="string"?t.fromString(e,s):typeof e=="bigint"?t.fromBigInt(e,s):{low:e|0,high:o|0,unsigned:s};this.low=i.low,this.high=i.high,this.unsigned=i.unsigned;}static fromBits(e,r,n){return new t(e,r,n)}static fromInt(e,r){let n,s,o;return r?(e>>>=0,(o=0<=e&&e<256)&&(s=d3[e],s)?s:(n=t.fromBits(e,(e|0)<0?-1:0,true),o&&(d3[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(s=h3[e],s)?s:(n=t.fromBits(e,e<0?-1:0,false),o&&(h3[e]=n),n))}static fromNumber(e,r){if(isNaN(e))return r?t.UZERO:t.ZERO;if(r){if(e<0)return t.UZERO;if(e>=z3)return t.MAX_UNSIGNED_VALUE}else {if(e<=-9223372036854776e3)return t.MIN_VALUE;if(e+1>=R7)return t.MAX_VALUE}return e<0?t.fromNumber(-e,r).neg():t.fromBits(e%Rs|0,e/Rs|0,r)}static fromBigInt(e,r){let n=BigInt(4294967295),s=BigInt(32);return new t(Number(e&n),Number(e>>s&n),r)}static _fromString(e,r,n){if(e.length===0)throw new w("empty string");if(n<2||36<n)throw new w("radix");let s;if((s=e.indexOf("-"))>0)throw new w("interior hyphen");if(s===0)return t._fromString(e.substring(1),r,n).neg();let o=t.fromNumber(Math.pow(n,8)),i=t.ZERO;for(let u=0;u<e.length;u+=8){let a=Math.min(8,e.length-u),c=parseInt(e.substring(u,u+a),n);if(a<8){let h=t.fromNumber(Math.pow(n,a));i=i.mul(h).add(t.fromNumber(c));}else i=i.mul(o),i=i.add(t.fromNumber(c));}return i.unsigned=r,i}static fromStringStrict(e,r,n){let s=false;if(typeof r=="number"?(n=r,r=false):s=!!r,n??=10,e.trim()!==e)throw new w(`Input: '${e}' contains leading and/or trailing whitespace`);if(!M7(e,n))throw new w(`Input: '${e}' contains invalid characters for radix: ${n}`);let o=j3(e),i=t._fromString(o,s,n);if(i.toString(n).toLowerCase()!==o.toLowerCase())throw new w(`Input: ${e} is not representable as ${i.unsigned?"an unsigned":"a signed"} 64-bit Long ${n!=null?`with radix: ${n}`:""}`);return i}static fromString(e,r,n){let s=false;return typeof r=="number"?(n=r,r=false):s=!!r,n??=10,e==="NaN"&&n<24||(e==="Infinity"||e==="+Infinity"||e==="-Infinity")&&n<35?t.ZERO:t._fromString(e,s,n)}static fromBytes(e,r,n){return n?t.fromBytesLE(e,r):t.fromBytesBE(e,r)}static fromBytesLE(e,r){return new t(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,r)}static fromBytesBE(e,r){return new t(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],r)}static isLong(e){return e!=null&&typeof e=="object"&&"__isLong__"in e&&e.__isLong__===true}static fromValue(e,r){return typeof e=="number"?t.fromNumber(e,r):typeof e=="string"?t.fromString(e,r):t.fromBits(e.low,e.high,typeof r=="boolean"?r:e.unsigned)}add(e){t.isLong(e)||(e=t.fromValue(e));let r=this.high>>>16,n=this.high&65535,s=this.low>>>16,o=this.low&65535,i=e.high>>>16,u=e.high&65535,a=e.low>>>16,c=e.low&65535,h=0,d=0,m=0,E=0;return E+=o+c,m+=E>>>16,E&=65535,m+=s+a,d+=m>>>16,m&=65535,d+=n+u,h+=d>>>16,d&=65535,h+=r+i,h&=65535,t.fromBits(m<<16|E,h<<16|d,this.unsigned)}and(e){return t.isLong(e)||(e=t.fromValue(e)),t.fromBits(this.low&e.low,this.high&e.high,this.unsigned)}compare(e){if(t.isLong(e)||(e=t.fromValue(e)),this.eq(e))return 0;let r=this.isNegative(),n=e.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1}comp(e){return this.compare(e)}divide(e){if(t.isLong(e)||(e=t.fromValue(e)),e.isZero())throw new w("division by zero");if(Wt){if(!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1)return this;let o=(this.unsigned?Wt.div_u:Wt.div_s)(this.low,this.high,e.low,e.high);return t.fromBits(o,Wt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?t.UZERO:t.ZERO;let r,n,s;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return t.UZERO;if(e.gt(this.shru(1)))return t.UONE;s=t.UZERO;}else {if(this.eq(t.MIN_VALUE))return e.eq(t.ONE)||e.eq(t.NEG_ONE)?t.MIN_VALUE:e.eq(t.MIN_VALUE)?t.ONE:(r=this.shr(1).div(e).shl(1),r.eq(t.ZERO)?e.isNegative()?t.ONE:t.NEG_ONE:(n=this.sub(e.mul(r)),s=r.add(n.div(e)),s));if(e.eq(t.MIN_VALUE))return this.unsigned?t.UZERO:t.ZERO;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();s=t.ZERO;}for(n=this;n.gte(e);){r=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));let o=Math.ceil(Math.log(r)/Math.LN2),i=o<=48?1:Math.pow(2,o-48),u=t.fromNumber(r),a=u.mul(e);for(;a.isNegative()||a.gt(n);)r-=i,u=t.fromNumber(r,this.unsigned),a=u.mul(e);u.isZero()&&(u=t.ONE),s=s.add(u),n=n.sub(a);}return s}div(e){return this.divide(e)}equals(e){return t.isLong(e)||(e=t.fromValue(e)),this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1?false:this.high===e.high&&this.low===e.low}eq(e){return this.equals(e)}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(t.MIN_VALUE)?64:this.neg().getNumBitsAbs();let e=this.high!==0?this.high:this.low,r;for(r=31;r>0&&(e&1<<r)===0;r--);return this.high!==0?r+33:r+1}greaterThan(e){return this.comp(e)>0}gt(e){return this.greaterThan(e)}greaterThanOrEqual(e){return this.comp(e)>=0}gte(e){return this.greaterThanOrEqual(e)}ge(e){return this.greaterThanOrEqual(e)}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(e){return this.comp(e)<0}lt(e){return this.lessThan(e)}lessThanOrEqual(e){return this.comp(e)<=0}lte(e){return this.lessThanOrEqual(e)}modulo(e){if(t.isLong(e)||(e=t.fromValue(e)),Wt){let r=(this.unsigned?Wt.rem_u:Wt.rem_s)(this.low,this.high,e.low,e.high);return t.fromBits(r,Wt.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))}mod(e){return this.modulo(e)}rem(e){return this.modulo(e)}multiply(e){if(this.isZero())return t.ZERO;if(t.isLong(e)||(e=t.fromValue(e)),Wt){let p=Wt.mul(this.low,this.high,e.low,e.high);return t.fromBits(p,Wt.get_high(),this.unsigned)}if(e.isZero())return t.ZERO;if(this.eq(t.MIN_VALUE))return e.isOdd()?t.MIN_VALUE:t.ZERO;if(e.eq(t.MIN_VALUE))return this.isOdd()?t.MIN_VALUE:t.ZERO;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(t.TWO_PWR_24)&&e.lt(t.TWO_PWR_24))return t.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);let r=this.high>>>16,n=this.high&65535,s=this.low>>>16,o=this.low&65535,i=e.high>>>16,u=e.high&65535,a=e.low>>>16,c=e.low&65535,h=0,d=0,m=0,E=0;return E+=o*c,m+=E>>>16,E&=65535,m+=s*c,d+=m>>>16,m&=65535,m+=o*a,d+=m>>>16,m&=65535,d+=n*c,h+=d>>>16,d&=65535,d+=s*a,h+=d>>>16,d&=65535,d+=o*u,h+=d>>>16,d&=65535,h+=r*c+n*a+s*u+o*i,h&=65535,t.fromBits(m<<16|E,h<<16|d,this.unsigned)}mul(e){return this.multiply(e)}negate(){return !this.unsigned&&this.eq(t.MIN_VALUE)?t.MIN_VALUE:this.not().add(t.ONE)}neg(){return this.negate()}not(){return t.fromBits(~this.low,~this.high,this.unsigned)}notEquals(e){return !this.equals(e)}neq(e){return this.notEquals(e)}ne(e){return this.notEquals(e)}or(e){return t.isLong(e)||(e=t.fromValue(e)),t.fromBits(this.low|e.low,this.high|e.high,this.unsigned)}shiftLeft(e){return t.isLong(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?t.fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):t.fromBits(0,this.low<<e-32,this.unsigned)}shl(e){return this.shiftLeft(e)}shiftRight(e){return t.isLong(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?t.fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):t.fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)}shr(e){return this.shiftRight(e)}shiftRightUnsigned(e){if(t.isLong(e)&&(e=e.toInt()),e&=63,e===0)return this;{let r=this.high;if(e<32){let n=this.low;return t.fromBits(n>>>e|r<<32-e,r>>>e,this.unsigned)}else return e===32?t.fromBits(r,0,this.unsigned):t.fromBits(r>>>e-32,0,this.unsigned)}}shr_u(e){return this.shiftRightUnsigned(e)}shru(e){return this.shiftRightUnsigned(e)}subtract(e){return t.isLong(e)||(e=t.fromValue(e)),this.add(e.neg())}sub(e){return this.subtract(e)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){return this.unsigned?(this.high>>>0)*Rs+(this.low>>>0):this.high*Rs+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(e){return e?this.toBytesLE():this.toBytesBE()}toBytesLE(){let e=this.high,r=this.low;return [r&255,r>>>8&255,r>>>16&255,r>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]}toBytesBE(){let e=this.high,r=this.low;return [e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255]}toSigned(){return this.unsigned?t.fromBits(this.low,this.high,false):this}toString(e){if(e=e||10,e<2||36<e)throw new w("radix");if(this.isZero())return "0";if(this.isNegative())if(this.eq(t.MIN_VALUE)){let o=t.fromNumber(e),i=this.div(o),u=i.mul(o).sub(this);return i.toString(e)+u.toInt().toString(e)}else return "-"+this.neg().toString(e);let r=t.fromNumber(Math.pow(e,6),this.unsigned),n=this,s="";for(;;){let o=n.div(r),u=(n.sub(o.mul(r)).toInt()>>>0).toString(e);if(n=o,n.isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s;}}toUnsigned(){return this.unsigned?this:t.fromBits(this.low,this.high,true)}xor(e){return t.isLong(e)||(e=t.fromValue(e)),t.fromBits(this.low^e.low,this.high^e.high,this.unsigned)}eqz(){return this.isZero()}le(e){return this.lessThanOrEqual(e)}toExtendedJSON(e){return e&&e.relaxed?this.toNumber():{$numberLong:this.toString()}}static fromExtendedJSON(e,r){let{useBigInt64:n=false,relaxed:s=true}={...r};if(e.$numberLong.length>N7)throw new w("$numberLong string is too long");if(!I7.test(e.$numberLong))throw new w(`$numberLong string "${e.$numberLong}" is in an invalid format`);if(n){let i=BigInt(e.$numberLong);return BigInt.asIntN(64,i)}let o=t.fromString(e.$numberLong);return s?o.toNumber():o}inspect(e,r,n){n??=Rt;let s=n(this.toString(),r),o=this.unsigned?`, ${n(this.unsigned,r)}`:"";return `new Long(${s}${o})`}};M.TWO_PWR_24=M.fromInt(F7);M.MAX_UNSIGNED_VALUE=M.fromBits(-1,-1,true);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,true);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,true);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(-1,2147483647,false);M.MIN_VALUE=M.fromBits(0,-2147483648,false);v7=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,P7=/^(\+|-)?(Infinity|inf)$/i,x7=/^(\+|-)?NaN$/i,Ds=6111,ko=-6176,f3=6176,m3=34,Rc=O.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),p3=O.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),E3=O.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),L7=/^([-+])?(\d+)?$/,k7=31,g3=16383,q7=30,U7=31;Hn=class t extends st{get _bsontype(){return "Decimal128"}constructor(e){if(super(),typeof e=="string")this.bytes=t.fromString(e).bytes;else if(e instanceof Uint8Array||Bs(e)){if(e.byteLength!==16)throw new w("Decimal128 must take a Buffer of 16 bytes");this.bytes=e;}else throw new w("Decimal128 must take a Buffer or string")}static fromString(e){return t._fromString(e,{allowRounding:false})}static fromStringWithRounding(e){return t._fromString(e,{allowRounding:true})}static _fromString(e,r){let n=false,s=false,o=false,i=false,u=0,a=0,c=0,h=0,d=0,m=[0],E=0,p=0,_=0,b=0,j=new M(0,0),P=new M(0,0),De=0,N=0;if(e.length>=7e3)throw new w(""+e+" not a valid Decimal128 string");let L=e.match(v7),q=e.match(P7),zt=e.match(x7);if(!L&&!q&&!zt||e.length===0)throw new w(""+e+" not a valid Decimal128 string");if(L){let R=L[2],J=L[4],Vt=L[5],Te=L[6];J&&Te===void 0&&or(e,"missing exponent power"),J&&R===void 0&&or(e,"missing exponent base"),J===void 0&&(Vt||Te)&&or(e,"missing e before exponent");}if((e[N]==="+"||e[N]==="-")&&(s=true,n=e[N++]==="-"),!A3(e[N])&&e[N]!=="."){if(e[N]==="i"||e[N]==="I")return new t(n?p3:E3);if(e[N]==="N")return new t(Rc)}for(;A3(e[N])||e[N]===".";){if(e[N]==="."){o&&or(e,"contains multiple periods"),o=true,N=N+1;continue}E<m3&&(e[N]!=="0"||i)&&(i||(d=a),i=true,m[p++]=parseInt(e[N],10),E=E+1),i&&(c=c+1),o&&(h=h+1),a=a+1,N=N+1;}if(o&&!a)throw new w(""+e+" not a valid Decimal128 string");if(e[N]==="e"||e[N]==="E"){let R=e.substr(++N).match(L7);if(!R||!R[2])return new t(Rc);b=parseInt(R[0],10),N=N+R[0].length;}if(e[N])return new t(Rc);if(!E)m[0]=0,c=1,E=1,u=0;else if(_=E-1,u=c,u!==1)for(;e[d+u-1+Number(s)+Number(o)]==="0";)u=u-1;for(b<=h&&h>b+16384?b=ko:b=b-h;b>Ds;){if(_=_+1,_>=m3){if(u===0){b=Ds;break}or(e,"overflow");}b=b-1;}if(r.allowRounding){for(;b<ko||E<c;){if(_===0&&u<E){b=ko,u=0;break}if(E<c?c=c-1:_=_-1,b<Ds)b=b+1;else {if(m.join("").match(/^0+$/)){b=Ds;break}or(e,"overflow");}}if(_+1<u){let R=a;o&&(d=d+1,R=R+1),s&&(d=d+1,R=R+1);let J=parseInt(e[d+_+1],10),Vt=0;if(J>=5&&(Vt=1,J===5)){Vt=m[_]%2===1?1:0;for(let Te=d+_+2;Te<R;Te++)if(parseInt(e[Te],10)){Vt=1;break}}if(Vt){let Te=_;for(;Te>=0&&++m[Te]>9;Te--)if(m[Te]=0,Te===0)if(b<Ds)b=b+1,m[Te]=1;else return new t(n?p3:E3)}}}else {for(;b<ko||E<c;){if(_===0){if(u===0){b=ko;break}or(e,"exponent underflow");}E<c?(e[c-1+Number(s)+Number(o)]!=="0"&&u!==0&&or(e,"inexact rounding"),c=c-1):(m[_]!==0&&or(e,"inexact rounding"),_=_-1),b<Ds?b=b+1:or(e,"overflow");}_+1<u&&(o&&(d=d+1),s&&(d=d+1),parseInt(e[d+_+1],10)!==0&&or(e,"inexact rounding"));}if(j=M.fromNumber(0),P=M.fromNumber(0),u===0)j=M.fromNumber(0),P=M.fromNumber(0);else if(_<17){let R=0;for(P=M.fromNumber(m[R++]),j=new M(0,0);R<=_;R++)P=P.multiply(M.fromNumber(10)),P=P.add(M.fromNumber(m[R]));}else {let R=0;for(j=M.fromNumber(m[R++]);R<=_-17;R++)j=j.multiply(M.fromNumber(10)),j=j.add(M.fromNumber(m[R]));for(P=M.fromNumber(m[R++]);R<=_;R++)P=P.multiply(M.fromNumber(10)),P=P.add(M.fromNumber(m[R]));}let Fe=z7(j,M.fromString("100000000000000000"));Fe.low=Fe.low.add(P),V7(Fe.low,P)&&(Fe.high=Fe.high.add(M.fromNumber(1))),De=b+f3;let I={low:M.fromNumber(0),high:M.fromNumber(0)};Fe.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1))?(I.high=I.high.or(M.fromNumber(3).shiftLeft(61)),I.high=I.high.or(M.fromNumber(De).and(M.fromNumber(16383).shiftLeft(47))),I.high=I.high.or(Fe.high.and(M.fromNumber(0x7fffffffffff)))):(I.high=I.high.or(M.fromNumber(De&16383).shiftLeft(49)),I.high=I.high.or(Fe.high.and(M.fromNumber(562949953421311)))),I.low=Fe.low,n&&(I.high=I.high.or(M.fromString("9223372036854775808")));let F=O.allocateUnsafe(16);return N=0,F[N++]=I.low.low&255,F[N++]=I.low.low>>8&255,F[N++]=I.low.low>>16&255,F[N++]=I.low.low>>24&255,F[N++]=I.low.high&255,F[N++]=I.low.high>>8&255,F[N++]=I.low.high>>16&255,F[N++]=I.low.high>>24&255,F[N++]=I.high.low&255,F[N++]=I.high.low>>8&255,F[N++]=I.high.low>>16&255,F[N++]=I.high.low>>24&255,F[N++]=I.high.high&255,F[N++]=I.high.high>>8&255,F[N++]=I.high.high>>16&255,F[N++]=I.high.high>>24&255,new t(F)}toString(){let e,r=0,n=new Array(36);for(let N=0;N<n.length;N++)n[N]=0;let s=0,o=false,i,u={parts:[0,0,0,0]},a,c,h=[];s=0;let d=this.bytes,m=d[s++]|d[s++]<<8|d[s++]<<16|d[s++]<<24,E=d[s++]|d[s++]<<8|d[s++]<<16|d[s++]<<24,p=d[s++]|d[s++]<<8|d[s++]<<16|d[s++]<<24,_=d[s++]|d[s++]<<8|d[s++]<<16|d[s++]<<24;s=0,{low:new M(m,E),high:new M(p,_)}.high.lessThan(M.ZERO)&&h.push("-");let j=_>>26&k7;if(j>>3===3){if(j===q7)return h.join("")+"Infinity";if(j===U7)return "NaN";e=_>>15&g3,i=8+(_>>14&1);}else i=_>>14&7,e=_>>17&g3;let P=e-f3;if(u.parts[0]=(_&16383)+((i&15)<<14),u.parts[1]=p,u.parts[2]=E,u.parts[3]=m,u.parts[0]===0&&u.parts[1]===0&&u.parts[2]===0&&u.parts[3]===0)o=true;else for(c=3;c>=0;c--){let N=0,L=j7(u);if(u=L.quotient,N=L.rem.low,!!N)for(a=8;a>=0;a--)n[c*9+a]=N%10,N=Math.floor(N/10);}if(o)r=1,n[s]=0;else for(r=36;!n[s];)r=r-1,s=s+1;let De=r-1+P;if(De>=34||De<=-7||P>0){if(r>34)return h.push("0"),P>0?h.push(`E+${P}`):P<0&&h.push(`E${P}`),h.join("");h.push(`${n[s++]}`),r=r-1,r&&h.push(".");for(let N=0;N<r;N++)h.push(`${n[s++]}`);h.push("E"),De>0?h.push(`+${De}`):h.push(`${De}`);}else if(P>=0)for(let N=0;N<r;N++)h.push(`${n[s++]}`);else {let N=r+P;if(N>0)for(let L=0;L<N;L++)h.push(`${n[s++]}`);else h.push("0");for(h.push(".");N++<0;)h.push("0");for(let L=0;L<r-Math.max(N-1,0);L++)h.push(`${n[s++]}`);}return h.join("")}toJSON(){return {$numberDecimal:this.toString()}}toExtendedJSON(){return {$numberDecimal:this.toString()}}static fromExtendedJSON(e){return t.fromString(e.$numberDecimal)}inspect(e,r,n){return n??=Rt,`new Decimal128(${n(this.toString(),r)})`}},ln=class t extends st{get _bsontype(){return "Double"}constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=+e;}static fromString(e){let r=Number(e);if(e==="NaN")return new t(NaN);if(e==="Infinity")return new t(1/0);if(e==="-Infinity")return new t(-1/0);if(!Number.isFinite(r))throw new w(`Input: ${e} is not representable as a Double`);if(e.trim()!==e)throw new w(`Input: '${e}' contains whitespace`);if(e==="")throw new w("Input is an empty string");if(/[^-0-9.+eE]/.test(e))throw new w(`Input: '${e}' is not in decimal or exponential notation`);return new t(r)}valueOf(){return this.value}toJSON(){return this.value}toString(e){return this.value.toString(e)}toExtendedJSON(e){return e&&(e.legacy||e.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-0.0"}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(e,r){let n=parseFloat(e.$numberDouble);return r&&r.relaxed?n:new t(n)}inspect(e,r,n){return n??=Rt,`new Double(${n(this.value,r)})`}},hn=class t extends st{get _bsontype(){return "Int32"}constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=+e|0;}static fromString(e){let r=j3(e),n=Number(e);if(zo<n)throw new w(`Input: '${e}' is larger than the maximum value for Int32`);if(Vo>n)throw new w(`Input: '${e}' is smaller than the minimum value for Int32`);if(Number.isSafeInteger(n)){if(n.toString()!==r)throw new w(`Input: '${e}' is not a valid Int32 string`)}else throw new w(`Input: '${e}' is not a safe integer`);return new t(n)}valueOf(){return this.value}toString(e){return this.value.toString(e)}toJSON(){return this.value}toExtendedJSON(e){return e&&(e.relaxed||e.legacy)?this.value:{$numberInt:this.value.toString()}}static fromExtendedJSON(e,r){return r&&r.relaxed?parseInt(e.$numberInt,10):new t(e.$numberInt)}inspect(e,r,n){return n??=Rt,`new Int32(${n(this.value,r)})`}},Kn=class t extends st{get _bsontype(){return "MaxKey"}toExtendedJSON(){return {$maxKey:1}}static fromExtendedJSON(){return new t}inspect(){return "new MaxKey()"}},Yn=class t extends st{get _bsontype(){return "MinKey"}toExtendedJSON(){return {$minKey:1}}static fromExtendedJSON(){return new t}inspect(){return "new MinKey()"}},$n=null,qo=new WeakMap,Vr=class t extends st{get _bsontype(){return "ObjectId"}constructor(e){super();let r;if(typeof e=="object"&&e&&"id"in e){if(typeof e.id!="string"&&!ArrayBuffer.isView(e.id))throw new w("Argument passed in must have an id that is of type string or Buffer");"toHexString"in e&&typeof e.toHexString=="function"?r=O.fromHex(e.toHexString()):r=e.id;}else r=e;if(r==null||typeof r=="number")this.buffer=t.generate(typeof r=="number"?r:void 0);else if(ArrayBuffer.isView(r)&&r.byteLength===12)this.buffer=O.toLocalBufferType(r);else if(typeof r=="string")if(t.validateHexString(r))this.buffer=O.fromHex(r),t.cacheHexString&&qo.set(this,r);else throw new w("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");else throw new w("Argument passed in does not match the accepted types")}get id(){return this.buffer}set id(e){this.buffer=e,t.cacheHexString&&qo.set(this,O.toHex(e));}static validateHexString(e){if(e?.length!==24)return false;for(let r=0;r<24;r++){let n=e.charCodeAt(r);if(!(n>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70))return false}return true}toHexString(){if(t.cacheHexString){let r=qo.get(this);if(r)return r}let e=O.toHex(this.id);return t.cacheHexString&&qo.set(this,e),e}static getInc(){return t.index=(t.index+1)%16777215}static generate(e){typeof e!="number"&&(e=Math.floor(Date.now()/1e3));let r=t.getInc(),n=O.allocateUnsafe(12);return U.setInt32BE(n,0,e),$n===null&&($n=O.randomBytes(5)),n[4]=$n[0],n[5]=$n[1],n[6]=$n[2],n[7]=$n[3],n[8]=$n[4],n[11]=r&255,n[10]=r>>8&255,n[9]=r>>16&255,n}toString(e){return e==="base64"?O.toBase64(this.id):e==="hex"?this.toHexString():this.toHexString()}toJSON(){return this.toHexString()}static is(e){return e!=null&&typeof e=="object"&&"_bsontype"in e&&e._bsontype==="ObjectId"}equals(e){if(e==null)return false;if(t.is(e))return this.buffer[11]===e.buffer[11]&&O.equals(this.buffer,e.buffer);if(typeof e=="string")return e.toLowerCase()===this.toHexString();if(typeof e=="object"&&typeof e.toHexString=="function"){let r=e.toHexString(),n=this.toHexString();return typeof r=="string"&&r.toLowerCase()===n}return false}getTimestamp(){let e=new Date,r=U.getUint32BE(this.buffer,0);return e.setTime(Math.floor(r)*1e3),e}static createPk(){return new t}serializeInto(e,r){return e[r]=this.buffer[0],e[r+1]=this.buffer[1],e[r+2]=this.buffer[2],e[r+3]=this.buffer[3],e[r+4]=this.buffer[4],e[r+5]=this.buffer[5],e[r+6]=this.buffer[6],e[r+7]=this.buffer[7],e[r+8]=this.buffer[8],e[r+9]=this.buffer[9],e[r+10]=this.buffer[10],e[r+11]=this.buffer[11],12}static createFromTime(e){let r=O.allocate(12);for(let n=11;n>=4;n--)r[n]=0;return U.setInt32BE(r,0,e),new t(r)}static createFromHexString(e){if(e?.length!==24)throw new w("hex string must be 24 characters");return new t(O.fromHex(e))}static createFromBase64(e){if(e?.length!==16)throw new w("base64 string must be 16 characters");return new t(O.fromBase64(e))}static isValid(e){if(e==null)return false;if(typeof e=="string")return t.validateHexString(e);try{return new t(e),!0}catch{return false}}toExtendedJSON(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}}static fromExtendedJSON(e){return new t(e.$oid)}isCached(){return t.cacheHexString&&qo.has(this)}inspect(e,r,n){return n??=Rt,`new ObjectId(${n(this.toHexString(),r)})`}};Vr.index=Math.floor(Math.random()*16777215);Wr=class t extends st{get _bsontype(){return "BSONRegExp"}constructor(e,r){if(super(),this.pattern=e,this.options=W7(r??""),this.pattern.indexOf("\0")!==-1)throw new w(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new w(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let n=0;n<this.options.length;n++)if(!(this.options[n]==="i"||this.options[n]==="m"||this.options[n]==="x"||this.options[n]==="l"||this.options[n]==="s"||this.options[n]==="u"))throw new w(`The regular expression option [${this.options[n]}] is not supported`)}static parseOptions(e){return e?e.split("").sort().join(""):""}toExtendedJSON(e){return e=e||{},e.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(e){if("$regex"in e)if(typeof e.$regex!="string"){if(e.$regex._bsontype==="BSONRegExp")return e}else return new t(e.$regex,t.parseOptions(e.$options));if("$regularExpression"in e)return new t(e.$regularExpression.pattern,t.parseOptions(e.$regularExpression.options));throw new w(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(e)}`)}inspect(e,r,n){let s=A7(r)??(u=>u);n??=Rt;let o=s(n(this.pattern),"regexp"),i=s(n(this.options),"regexp");return `new BSONRegExp(${o}, ${i})`}},Xn=class t extends st{get _bsontype(){return "BSONSymbol"}constructor(e){super(),this.value=e;}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return {$symbol:this.value}}static fromExtendedJSON(e){return new t(e.$symbol)}inspect(e,r,n){return n??=Rt,`new BSONSymbol(${n(this.value,r)})`}},$7=M,dn=class t extends $7{get _bsontype(){return "Timestamp"}get i(){return this.low>>>0}get t(){return this.high>>>0}constructor(e){if(e==null)super(0,0,true);else if(typeof e=="bigint")super(e,true);else if(M.isLong(e))super(e.low,e.high,true);else if(typeof e=="object"&&"t"in e&&"i"in e){if(typeof e.t!="number"&&(typeof e.t!="object"||e.t._bsontype!=="Int32"))throw new w("Timestamp constructed from { t, i } must provide t as a number");if(typeof e.i!="number"&&(typeof e.i!="object"||e.i._bsontype!=="Int32"))throw new w("Timestamp constructed from { t, i } must provide i as a number");let r=Number(e.t),n=Number(e.i);if(r<0||Number.isNaN(r))throw new w("Timestamp constructed from { t, i } must provide a positive t");if(n<0||Number.isNaN(n))throw new w("Timestamp constructed from { t, i } must provide a positive i");if(r>4294967295)throw new w("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if(n>4294967295)throw new w("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super(n,r,true);}else throw new w("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return {$timestamp:this.toString()}}static fromInt(e){return new t(M.fromInt(e,true))}static fromNumber(e){return new t(M.fromNumber(e,true))}static fromBits(e,r){return new t({i:e,t:r})}static fromString(e,r){return new t(M.fromString(e,true,r))}toExtendedJSON(){return {$timestamp:{t:this.t,i:this.i}}}static fromExtendedJSON(e){let r=M.isLong(e.$timestamp.i)?e.$timestamp.i.getLowBitsUnsigned():e.$timestamp.i,n=M.isLong(e.$timestamp.t)?e.$timestamp.t.getLowBitsUnsigned():e.$timestamp.t;return new t({t:n,i:r})}inspect(e,r,n){n??=Rt;let s=n(this.t,r),o=n(this.i,r);return `new Timestamp({ t: ${s}, i: ${o} })`}};dn.MAX_VALUE=M.MAX_UNSIGNED_VALUE;G7=M.fromNumber(_3),H7=M.fromNumber(D3);K7=/^\$ref$|^\$id$|^\$db$/;d1=/\x00/,S3=new Set(["$db","$ref","$id","$clusterTime"]);X7={$oid:Vr,$binary:Q,$uuid:Q,$symbol:Xn,$numberInt:hn,$numberDecimal:Hn,$numberDouble:ln,$numberLong:M,$minKey:Yn,$maxKey:Kn,$regex:Wr,$regularExpression:Wr,$timestamp:dn};Q7={Binary:t=>new Q(t.value(),t.sub_type),Code:t=>new zr(t.code,t.scope),DBRef:t=>new Br(t.collection||t.namespace,t.oid,t.db,t.fields),Decimal128:t=>new Hn(t.bytes),Double:t=>new ln(t.value),Int32:t=>new hn(t.value),Long:t=>M.fromBits(t.low!=null?t.low:t.low_,t.low!=null?t.high:t.high_,t.low!=null?t.unsigned:t.unsigned_),MaxKey:()=>new Kn,MinKey:()=>new Yn,ObjectId:t=>new Vr(t),BSONRegExp:t=>new Wr(t.pattern,t.options),BSONSymbol:t=>new Xn(t.value),Timestamp:t=>dn.fromBits(t.low,t.high)};Jn=Object.create(null);Jn.parse=$3;Jn.stringify=G3;Jn.serialize=e8;Jn.deserialize=t8;Object.freeze(Jn);ye={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:255,maxKey:127};vs=Object.create(null);vs.parseToElements=r8;vs.ByteUtils=O;vs.NumberUtils=U;Object.freeze(vs);H3=1024*1024*17,an=O.allocate(H3);n8=Object.freeze({__proto__:null,BSONError:w,BSONOffsetError:$t,BSONRegExp:Wr,BSONRuntimeError:Is,BSONSymbol:Xn,BSONType:L3,BSONValue:st,BSONVersionError:jr,Binary:Q,Code:zr,DBRef:Br,Decimal128:Hn,Double:ln,EJSON:Jn,Int32:hn,Long:M,MaxKey:Kn,MinKey:Yn,ObjectId:Vr,Timestamp:dn,UUID:cn,calculateObjectSize:Q3,deserialize:J3,deserializeStream:Z3,onDemand:vs,serialize:Y3,serializeWithBufferAndIndex:X3,setInternalBufferSize:K3});});var te=c(k=>{g();Object.defineProperty(k,"__esModule",{value:true});k.toUTF8=k.getBigInt64LE=k.getFloat64LE=k.getInt32LE=k.UUID=k.Timestamp=k.serialize=k.ObjectId=k.MinKey=k.MaxKey=k.Long=k.Int32=k.EJSON=k.Double=k.deserialize=k.Decimal128=k.DBRef=k.Code=k.calculateObjectSize=k.BSONType=k.BSONSymbol=k.BSONRegExp=k.BSONError=k.BSON=k.Binary=void 0;k.parseToElementsToArray=s8;k.pluckBSONSerializeOptions=o8;k.resolveBSONOptions=i8;k.parseUtf8ValidationOption=u8;var $o=(l0(),f(c0)),Re=(l0(),f(c0));Object.defineProperty(k,"Binary",{enumerable:true,get:function(){return Re.Binary}});Object.defineProperty(k,"BSON",{enumerable:true,get:function(){return Re.BSON}});Object.defineProperty(k,"BSONError",{enumerable:true,get:function(){return Re.BSONError}});Object.defineProperty(k,"BSONRegExp",{enumerable:true,get:function(){return Re.BSONRegExp}});Object.defineProperty(k,"BSONSymbol",{enumerable:true,get:function(){return Re.BSONSymbol}});Object.defineProperty(k,"BSONType",{enumerable:true,get:function(){return Re.BSONType}});Object.defineProperty(k,"calculateObjectSize",{enumerable:true,get:function(){return Re.calculateObjectSize}});Object.defineProperty(k,"Code",{enumerable:true,get:function(){return Re.Code}});Object.defineProperty(k,"DBRef",{enumerable:true,get:function(){return Re.DBRef}});Object.defineProperty(k,"Decimal128",{enumerable:true,get:function(){return Re.Decimal128}});Object.defineProperty(k,"deserialize",{enumerable:true,get:function(){return Re.deserialize}});Object.defineProperty(k,"Double",{enumerable:true,get:function(){return Re.Double}});Object.defineProperty(k,"EJSON",{enumerable:true,get:function(){return Re.EJSON}});Object.defineProperty(k,"Int32",{enumerable:true,get:function(){return Re.Int32}});Object.defineProperty(k,"Long",{enumerable:true,get:function(){return Re.Long}});Object.defineProperty(k,"MaxKey",{enumerable:true,get:function(){return Re.MaxKey}});Object.defineProperty(k,"MinKey",{enumerable:true,get:function(){return Re.MinKey}});Object.defineProperty(k,"ObjectId",{enumerable:true,get:function(){return Re.ObjectId}});Object.defineProperty(k,"serialize",{enumerable:true,get:function(){return Re.serialize}});Object.defineProperty(k,"Timestamp",{enumerable:true,get:function(){return Re.Timestamp}});Object.defineProperty(k,"UUID",{enumerable:true,get:function(){return Re.UUID}});function s8(t,e){let r=$o.BSON.onDemand.parseToElements(t,e);return Array.isArray(r)?r:[...r]}k.getInt32LE=$o.BSON.onDemand.NumberUtils.getInt32LE;k.getFloat64LE=$o.BSON.onDemand.NumberUtils.getFloat64LE;k.getBigInt64LE=$o.BSON.onDemand.NumberUtils.getBigInt64LE;k.toUTF8=$o.BSON.onDemand.ByteUtils.toUTF8;function o8(t){let{fieldsAsRaw:e,useBigInt64:r,promoteValues:n,promoteBuffers:s,promoteLongs:o,serializeFunctions:i,ignoreUndefined:u,bsonRegExp:a,raw:c,enableUtf8Validation:h}=t;return {fieldsAsRaw:e,useBigInt64:r,promoteValues:n,promoteBuffers:s,promoteLongs:o,serializeFunctions:i,ignoreUndefined:u,bsonRegExp:a,raw:c,enableUtf8Validation:h}}function i8(t,e){let r=e?.bsonOptions;return {raw:t?.raw??r?.raw??false,useBigInt64:t?.useBigInt64??r?.useBigInt64??false,promoteLongs:t?.promoteLongs??r?.promoteLongs??true,promoteValues:t?.promoteValues??r?.promoteValues??true,promoteBuffers:t?.promoteBuffers??r?.promoteBuffers??false,ignoreUndefined:t?.ignoreUndefined??r?.ignoreUndefined??false,bsonRegExp:t?.bsonRegExp??r?.bsonRegExp??false,serializeFunctions:t?.serializeFunctions??r?.serializeFunctions??false,fieldsAsRaw:t?.fieldsAsRaw??r?.fieldsAsRaw??{},enableUtf8Validation:t?.enableUtf8Validation??r?.enableUtf8Validation??true}}function u8(t){return t?.enableUtf8Validation===false?{utf8:false}:{utf8:{writeErrors:false}}}});var B=c(y=>{g();Object.defineProperty(y,"__esModule",{value:true});y.MongoWriteConcernError=y.MongoServerSelectionError=y.MongoSystemError=y.MongoMissingDependencyError=y.MongoMissingCredentialsError=y.MongoCompatibilityError=y.MongoInvalidArgumentError=y.MongoParseError=y.MongoNetworkTimeoutError=y.MongoNetworkError=y.MongoClientClosedError=y.MongoTopologyClosedError=y.MongoCursorExhaustedError=y.MongoServerClosedError=y.MongoCursorInUseError=y.MongoOperationTimeoutError=y.MongoUnexpectedServerResponseError=y.MongoGridFSChunkError=y.MongoGridFSStreamError=y.MongoTailableCursorError=y.MongoChangeStreamError=y.MongoClientBulkWriteExecutionError=y.MongoClientBulkWriteCursorError=y.MongoClientBulkWriteError=y.MongoGCPError=y.MongoAzureError=y.MongoOIDCError=y.MongoAWSError=y.MongoKerberosError=y.MongoExpiredSessionError=y.MongoTransactionError=y.MongoNotConnectedError=y.MongoDecompressionError=y.MongoBatchReExecutionError=y.MongoStalePrimaryError=y.MongoRuntimeError=y.MongoAPIError=y.MongoDriverError=y.MongoServerError=y.MongoError=y.MongoErrorLabel=y.GET_MORE_RESUMABLE_CODES=y.MONGODB_ERROR_CODES=y.NODE_IS_RECOVERING_ERROR_MESSAGE=y.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=y.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;y.needsRetryableWriteLabel=c8;y.isRetryableWriteError=t6;y.isRetryableReadError=l8;y.isNodeShuttingDownError=p8;y.isSDAMUnrecoverableError=E8;y.isNetworkTimeoutError=g8;y.isResumableError=A8;y.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");y.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");y.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");y.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,AuthenticationFailed:18,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,WriteConcernTimeout:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391,ReadConcernMajorityNotAvailableYet:134});y.GET_MORE_RESUMABLE_CODES=new Set([y.MONGODB_ERROR_CODES.HostUnreachable,y.MONGODB_ERROR_CODES.HostNotFound,y.MONGODB_ERROR_CODES.NetworkTimeout,y.MONGODB_ERROR_CODES.ShutdownInProgress,y.MONGODB_ERROR_CODES.PrimarySteppedDown,y.MONGODB_ERROR_CODES.ExceededTimeLimit,y.MONGODB_ERROR_CODES.SocketException,y.MONGODB_ERROR_CODES.NotWritablePrimary,y.MONGODB_ERROR_CODES.InterruptedAtShutdown,y.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,y.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,y.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,y.MONGODB_ERROR_CODES.StaleShardVersion,y.MONGODB_ERROR_CODES.StaleEpoch,y.MONGODB_ERROR_CODES.StaleConfig,y.MONGODB_ERROR_CODES.RetryChangeStream,y.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,y.MONGODB_ERROR_CODES.CursorNotFound]);y.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",PoolRequstedRetry:"PoolRequstedRetry",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});function a8(t){return t!=null&&typeof t=="object"&&"errors"in t&&Array.isArray(t.errors)}var ir=class extends Error{get errorLabels(){return Array.from(this.errorLabelSet)}constructor(e,r){super(e,r),this.errorLabelSet=new Set;}static buildErrorMessage(e){return typeof e=="string"?e:a8(e)&&e.message.length===0?e.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":e.errors.map(({message:r})=>r).join(", "):e!=null&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:"empty error message"}get name(){return "MongoError"}get errmsg(){return this.message}hasErrorLabel(e){return this.errorLabelSet.has(e)}addErrorLabel(e){this.errorLabelSet.add(e);}};y.MongoError=ir;var Go=class extends ir{constructor(e){if(super(e.message||e.errmsg||e.$err||"n/a"),e.errorLabels)for(let r of e.errorLabels)this.addErrorLabel(r);this.errorResponse=e;for(let r in e)r!=="errorLabels"&&r!=="errmsg"&&r!=="message"&&r!=="errorResponse"&&(this[r]=e[r]);}get name(){return "MongoServerError"}};y.MongoServerError=Go;var Qn=class extends ir{constructor(e,r){super(e,r);}get name(){return "MongoDriverError"}};y.MongoDriverError=Qn;var Ke=class extends Qn{constructor(e,r){super(e,r);}get name(){return "MongoAPIError"}};y.MongoAPIError=Ke;var Ct=class extends Qn{constructor(e,r){super(e,r);}get name(){return "MongoRuntimeError"}};y.MongoRuntimeError=Ct;var d0=class extends Ct{constructor(e,r){super(e,r);}get name(){return "MongoStalePrimaryError"}};y.MongoStalePrimaryError=d0;var f0=class extends Ke{constructor(e="This batch has already been executed, create new batch to execute"){super(e);}get name(){return "MongoBatchReExecutionError"}};y.MongoBatchReExecutionError=f0;var m0=class extends Ct{constructor(e){super(e);}get name(){return "MongoDecompressionError"}};y.MongoDecompressionError=m0;var p0=class extends Ke{constructor(e){super(e);}get name(){return "MongoNotConnectedError"}};y.MongoNotConnectedError=p0;var E0=class extends Ke{constructor(e){super(e);}get name(){return "MongoTransactionError"}};y.MongoTransactionError=E0;var g0=class extends Ke{constructor(e="Cannot use a session that has ended"){super(e);}get name(){return "MongoExpiredSessionError"}};y.MongoExpiredSessionError=g0;var A0=class extends Ct{constructor(e){super(e);}get name(){return "MongoKerberosError"}};y.MongoKerberosError=A0;var C0=class extends Ct{constructor(e,r){super(e,r);}get name(){return "MongoAWSError"}};y.MongoAWSError=C0;var Ho=class extends Ct{constructor(e){super(e);}get name(){return "MongoOIDCError"}};y.MongoOIDCError=Ho;var S0=class extends Ho{constructor(e){super(e);}get name(){return "MongoAzureError"}};y.MongoAzureError=S0;var y0=class extends Ho{constructor(e){super(e);}get name(){return "MongoGCPError"}};y.MongoGCPError=y0;var O0=class extends Go{constructor(e){super(e),this.writeConcernErrors=[],this.writeErrors=new Map;}get name(){return "MongoClientBulkWriteError"}};y.MongoClientBulkWriteError=O0;var w0=class extends Ct{constructor(e){super(e);}get name(){return "MongoClientBulkWriteCursorError"}};y.MongoClientBulkWriteCursorError=w0;var _0=class extends Ct{constructor(e){super(e);}get name(){return "MongoClientBulkWriteExecutionError"}};y.MongoClientBulkWriteExecutionError=_0;var D0=class extends Ct{constructor(e){super(e);}get name(){return "MongoChangeStreamError"}};y.MongoChangeStreamError=D0;var T0=class extends Ke{constructor(e="Tailable cursor does not support this operation"){super(e);}get name(){return "MongoTailableCursorError"}};y.MongoTailableCursorError=T0;var B0=class extends Ct{constructor(e){super(e);}get name(){return "MongoGridFSStreamError"}};y.MongoGridFSStreamError=B0;var b0=class extends Ct{constructor(e){super(e);}get name(){return "MongoGridFSChunkError"}};y.MongoGridFSChunkError=b0;var M0=class extends Ct{constructor(e,r){super(e,r);}get name(){return "MongoUnexpectedServerResponseError"}};y.MongoUnexpectedServerResponseError=M0;var F0=class extends Qn{get name(){return "MongoOperationTimeoutError"}};y.MongoOperationTimeoutError=F0;var R0=class extends Ke{constructor(e="Cursor is already initialized"){super(e);}get name(){return "MongoCursorInUseError"}};y.MongoCursorInUseError=R0;var N0=class extends Ke{constructor(e="Server is closed"){super(e);}get name(){return "MongoServerClosedError"}};y.MongoServerClosedError=N0;var I0=class extends Ke{constructor(e){super(e||"Cursor is exhausted");}get name(){return "MongoCursorExhaustedError"}};y.MongoCursorExhaustedError=I0;var v0=class extends Ke{constructor(e="Topology is closed"){super(e);}get name(){return "MongoTopologyClosedError"}};y.MongoTopologyClosedError=v0;var P0=class extends Ke{constructor(){super("Operation interrupted because client was closed");}get name(){return "MongoClientClosedError"}};y.MongoClientClosedError=P0;var fn=class extends ir{constructor(e,r){super(e,{cause:r?.cause}),this.beforeHandshake=!!r?.beforeHandshake;}get name(){return "MongoNetworkError"}};y.MongoNetworkError=fn;var x0=class extends fn{constructor(e,r){super(e,r);}get name(){return "MongoNetworkTimeoutError"}};y.MongoNetworkTimeoutError=x0;var f1=class extends Qn{constructor(e){super(e);}get name(){return "MongoParseError"}};y.MongoParseError=f1;var L0=class extends Ke{constructor(e,r){super(e,r);}get name(){return "MongoInvalidArgumentError"}};y.MongoInvalidArgumentError=L0;var k0=class extends Ke{constructor(e){super(e);}get name(){return "MongoCompatibilityError"}};y.MongoCompatibilityError=k0;var q0=class extends Ke{constructor(e){super(e);}get name(){return "MongoMissingCredentialsError"}};y.MongoMissingCredentialsError=q0;var U0=class extends Ke{constructor(e,r){super(e,r),this.dependencyName=r.dependencyName;}get name(){return "MongoMissingDependencyError"}};y.MongoMissingDependencyError=U0;var m1=class extends ir{constructor(e,r){r&&r.error?super(ir.buildErrorMessage(r.error.message||r.error),{cause:r.error}):super(e),r&&(this.reason=r),this.code=r.error?.code;}get name(){return "MongoSystemError"}};y.MongoSystemError=m1;var p1=class extends m1{constructor(e,r){super(e,r);}get name(){return "MongoServerSelectionError"}};y.MongoServerSelectionError=p1;var E1=class extends Go{constructor(e){super({...e.writeConcernError,...e}),this.errInfo=e.writeConcernError.errInfo,this.result=e;}get name(){return "MongoWriteConcernError"}};y.MongoWriteConcernError=E1;var e6=new Set([y.MONGODB_ERROR_CODES.HostUnreachable,y.MONGODB_ERROR_CODES.HostNotFound,y.MONGODB_ERROR_CODES.NetworkTimeout,y.MONGODB_ERROR_CODES.ShutdownInProgress,y.MONGODB_ERROR_CODES.PrimarySteppedDown,y.MONGODB_ERROR_CODES.SocketException,y.MONGODB_ERROR_CODES.NotWritablePrimary,y.MONGODB_ERROR_CODES.InterruptedAtShutdown,y.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,y.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,y.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,y.MONGODB_ERROR_CODES.ExceededTimeLimit,y.MONGODB_ERROR_CODES.ReadConcernMajorityNotAvailableYet]),h0=e6;function c8(t,e,r){if(t instanceof fn)return true;if(t instanceof ir&&(e>=9||t6(t))&&!t.hasErrorLabel(y.MongoErrorLabel.HandshakeError))return false;if(t instanceof E1){if(r==="Mongos"&&e<9)return h0.has(t.result.code??0);let o=t.result.writeConcernError.code??Number(t.code);return h0.has(Number.isNaN(o)?0:o)}return t instanceof ir?h0.has(Number(t.code)):!!(y.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(t.message)||y.NODE_IS_RECOVERING_ERROR_MESSAGE.test(t.message))}function t6(t){return t.hasErrorLabel(y.MongoErrorLabel.RetryableWriteError)||t.hasErrorLabel(y.MongoErrorLabel.PoolRequstedRetry)}function l8(t){return !!((typeof t.code=="number"?e6.has(t.code):false)||t instanceof fn||y.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(t.message)||y.NODE_IS_RECOVERING_ERROR_MESSAGE.test(t.message))}var h8=new Set([y.MONGODB_ERROR_CODES.ShutdownInProgress,y.MONGODB_ERROR_CODES.PrimarySteppedDown,y.MONGODB_ERROR_CODES.InterruptedAtShutdown,y.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,y.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),d8=new Set([y.MONGODB_ERROR_CODES.NotWritablePrimary,y.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,y.MONGODB_ERROR_CODES.LegacyNotPrimary]),f8=new Set([y.MONGODB_ERROR_CODES.InterruptedAtShutdown,y.MONGODB_ERROR_CODES.ShutdownInProgress]);function r6(t){return typeof t.code=="number"?h8.has(t.code):y.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(t.message)||y.NODE_IS_RECOVERING_ERROR_MESSAGE.test(t.message)}function m8(t){return typeof t.code=="number"?d8.has(t.code):r6(t)?false:y.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(t.message)}function p8(t){return !!(typeof t.code=="number"&&f8.has(t.code))}function E8(t){return t instanceof f1||t==null?true:r6(t)||m8(t)}function g8(t){return !!(t instanceof fn&&t.message.match(/timed out/))}function A8(t,e){return t==null||!(t instanceof ir)?false:t instanceof fn||t instanceof p1?true:e!=null&&e>=9?t.code===y.MONGODB_ERROR_CODES.CursorNotFound?true:t.hasErrorLabel(y.MongoErrorLabel.ResumableChangeStreamError):typeof t.code=="number"?y.GET_MORE_RESUMABLE_CODES.has(t.code):false}});var We=c(ot=>{g();Object.defineProperty(ot,"__esModule",{value:true});ot.ReadPreference=ot.ReadPreferenceMode=void 0;var Zn=B();ot.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});var Ve=class t{constructor(e,r,n){if(!t.isValid(e))throw new Zn.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(e)}`);if(n==null&&typeof r=="object"&&!Array.isArray(r))n=r,r=void 0;else if(r&&!Array.isArray(r))throw new Zn.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=e,this.tags=r,this.hedge=n?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,n=n??{},n.maxStalenessSeconds!=null){if(n.maxStalenessSeconds<=0)throw new Zn.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=n.maxStalenessSeconds,this.minWireVersion=5;}if(this.mode===t.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new Zn.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new Zn.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new Zn.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(e){return new t(e)}static fromOptions(e){if(!e)return;let r=e.readPreference??e.session?.transaction.options.readPreference,n=e.readPreferenceTags;if(r!=null){if(typeof r=="string")return new t(r,n,{maxStalenessSeconds:e.maxStalenessSeconds,hedge:e.hedge});if(!(r instanceof t)&&typeof r=="object"){let s=r.mode||r.preference;if(s&&typeof s=="string")return new t(s,r.tags??n,{maxStalenessSeconds:r.maxStalenessSeconds,hedge:e.hedge})}return n&&(r.tags=n),r}}static translate(e){if(e.readPreference==null)return e;let r=e.readPreference;if(typeof r=="string")e.readPreference=new t(r);else if(r&&!(r instanceof t)&&typeof r=="object"){let n=r.mode||r.preference;n&&typeof n=="string"&&(e.readPreference=new t(n,r.tags,{maxStalenessSeconds:r.maxStalenessSeconds}));}else if(!(r instanceof t))throw new Zn.MongoInvalidArgumentError(`Invalid read preference: ${r}`);return e}static isValid(e){return new Set([t.PRIMARY,t.PRIMARY_PREFERRED,t.SECONDARY,t.SECONDARY_PREFERRED,t.NEAREST,null]).has(e)}isValid(e){return t.isValid(typeof e=="string"?e:this.mode)}secondaryOk(){return new Set([t.PRIMARY_PREFERRED,t.SECONDARY,t.SECONDARY_PREFERRED,t.NEAREST]).has(this.mode)}equals(e){return e.mode===this.mode}toJSON(){let e={mode:this.mode};return Array.isArray(this.tags)&&(e.tags=this.tags),this.maxStalenessSeconds&&(e.maxStalenessSeconds=this.maxStalenessSeconds),this.hedge&&(e.hedge=this.hedge),e}};ot.ReadPreference=Ve;Ve.PRIMARY=ot.ReadPreferenceMode.primary;Ve.PRIMARY_PREFERRED=ot.ReadPreferenceMode.primaryPreferred;Ve.SECONDARY=ot.ReadPreferenceMode.secondary;Ve.SECONDARY_PREFERRED=ot.ReadPreferenceMode.secondaryPreferred;Ve.NEAREST=ot.ReadPreferenceMode.nearest;Ve.primary=new Ve(ot.ReadPreferenceMode.primary);Ve.primaryPreferred=new Ve(ot.ReadPreferenceMode.primaryPreferred);Ve.secondary=new Ve(ot.ReadPreferenceMode.secondary);Ve.secondaryPreferred=new Ve(ot.ReadPreferenceMode.secondaryPreferred);Ve.nearest=new Ve(ot.ReadPreferenceMode.nearest);});var Nt=c(ht=>{g();Object.defineProperty(ht,"__esModule",{value:true});ht.ServerType=ht.TopologyType=ht.STATE_CONNECTED=ht.STATE_CONNECTING=ht.STATE_CLOSED=ht.STATE_CLOSING=void 0;ht._advanceClusterTime=C8;ht.STATE_CLOSING="closing";ht.STATE_CLOSED="closed";ht.STATE_CONNECTING="connecting";ht.STATE_CONNECTED="connected";ht.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});ht.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});function C8(t,e){(t.clusterTime==null||e.clusterTime.greaterThan(t.clusterTime.clusterTime))&&(t.clusterTime=e);}});var Yo=c($r=>{g();Object.defineProperty($r,"__esModule",{value:true});$r.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;$r.writableServerSelector=y8;$r.sameServerSelector=O8;$r.secondaryWritableServerSelector=w8;$r.readPreferenceServerSelector=z0;var j0=B(),Ko=We(),It=Nt(),S8=1e4,n6=90;$r.MIN_SECONDARY_WRITE_WIRE_VERSION=13;function y8(){return function(e,r){return g1(e,r.filter(n=>n.isWritable))}}function O8(t){return function(r,n){return t?n.filter(s=>s.address===t.address&&s.type!==It.ServerType.Unknown):[]}}function w8(t,e){return !e||!t||t&&t<$r.MIN_SECONDARY_WRITE_WIRE_VERSION?z0(Ko.ReadPreference.primary):z0(e)}function _8(t,e,r){if(t.maxStalenessSeconds==null||t.maxStalenessSeconds<0)return r;let n=t.maxStalenessSeconds,s=(e.heartbeatFrequencyMS+S8)/1e3;if(n<s)throw new j0.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${s} seconds`);if(n<n6)throw new j0.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${n6} seconds`);if(e.type===It.TopologyType.ReplicaSetWithPrimary){let o=Array.from(e.servers.values()).filter(A1)[0];return r.reduce((i,u)=>{let c=(u.lastUpdateTime-u.lastWriteDate-(o.lastUpdateTime-o.lastWriteDate)+e.heartbeatFrequencyMS)/1e3,h=t.maxStalenessSeconds??0;return c<=h&&i.push(u),i},[])}if(e.type===It.TopologyType.ReplicaSetNoPrimary){if(r.length===0)return r;let o=r.reduce((i,u)=>u.lastWriteDate>i.lastWriteDate?u:i);return r.reduce((i,u)=>{let c=(o.lastWriteDate-u.lastWriteDate+e.heartbeatFrequencyMS)/1e3,h=t.maxStalenessSeconds??0;return c<=h&&i.push(u),i},[])}return r}function D8(t,e){let r=Object.keys(t),n=Object.keys(e);for(let s=0;s<r.length;++s){let o=r[s];if(n.indexOf(o)===-1||e[o]!==t[o])return false}return true}function T8(t,e){if(t.tags==null||Array.isArray(t.tags)&&t.tags.length===0)return e;for(let r=0;r<t.tags.length;++r){let n=t.tags[r],s=e.reduce((o,i)=>(D8(n,i.tags)&&o.push(i),o),[]);if(s.length)return s}return []}function g1(t,e){let r=e.reduce((s,o)=>Math.min(o.roundTripTime,s),1/0),n=r+t.localThresholdMS;return e.reduce((s,o)=>(o.roundTripTime<=n&&o.roundTripTime>=r&&s.push(o),s),[])}function A1(t){return t.type===It.ServerType.RSPrimary}function B8(t){return t.type===It.ServerType.RSSecondary}function b8(t){return t.type===It.ServerType.RSSecondary||t.type===It.ServerType.RSPrimary}function s6(t){return t.type!==It.ServerType.Unknown}function M8(t){return t.type===It.ServerType.LoadBalancer}function z0(t){if(!t.isValid())throw new j0.MongoInvalidArgumentError("Invalid read preference specified");return function(r,n,s=[]){if(r.type===It.TopologyType.LoadBalanced)return n.filter(M8);if(r.type===It.TopologyType.Unknown)return [];if(r.type===It.TopologyType.Single)return g1(r,n.filter(s6));if(r.type===It.TopologyType.Sharded){let a=n.filter(h=>!s.includes(h)),c=a.length>0?a:s;return g1(r,c.filter(s6))}let o=t.mode;if(o===Ko.ReadPreference.PRIMARY)return n.filter(A1);if(o===Ko.ReadPreference.PRIMARY_PREFERRED){let a=n.filter(A1);if(a.length)return a}let i=o===Ko.ReadPreference.NEAREST?b8:B8,u=g1(r,T8(t,_8(t,r,n.filter(i))));return o===Ko.ReadPreference.SECONDARY_PREFERRED&&u.length===0?n.filter(A1):u}}});var mn=c(ue=>{g();Object.defineProperty(ue,"__esModule",{value:true});ue.OP_MSG=ue.OP_COMPRESSED=ue.OP_DELETE=ue.OP_QUERY=ue.OP_INSERT=ue.OP_UPDATE=ue.OP_REPLY=ue.MIN_SUPPORTED_RAW_DATA_SERVER_VERSION=ue.MIN_SUPPORTED_RAW_DATA_WIRE_VERSION=ue.MIN_SUPPORTED_QE_SERVER_VERSION=ue.MIN_SUPPORTED_QE_WIRE_VERSION=ue.MAX_SUPPORTED_WIRE_VERSION=ue.MIN_SUPPORTED_WIRE_VERSION=ue.MAX_SUPPORTED_SERVER_VERSION=ue.MIN_SUPPORTED_SERVER_VERSION=void 0;ue.MIN_SUPPORTED_SERVER_VERSION="4.2";ue.MAX_SUPPORTED_SERVER_VERSION="8.2";ue.MIN_SUPPORTED_WIRE_VERSION=8;ue.MAX_SUPPORTED_WIRE_VERSION=27;ue.MIN_SUPPORTED_QE_WIRE_VERSION=21;ue.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";ue.MIN_SUPPORTED_RAW_DATA_WIRE_VERSION=27;ue.MIN_SUPPORTED_RAW_DATA_SERVER_VERSION="8.2";ue.OP_REPLY=1;ue.OP_UPDATE=2001;ue.OP_INSERT=2002;ue.OP_QUERY=2004;ue.OP_DELETE=2006;ue.OP_COMPRESSED=2012;ue.OP_MSG=2013;});var Ne=c(g$1=>{g();Object.defineProperty(g$1,"__esModule",{value:true});g$1.END=g$1.CHANGE=g$1.INIT=g$1.MORE=g$1.RESPONSE=g$1.SERVER_HEARTBEAT_FAILED=g$1.SERVER_HEARTBEAT_SUCCEEDED=g$1.SERVER_HEARTBEAT_STARTED=g$1.COMMAND_FAILED=g$1.COMMAND_SUCCEEDED=g$1.COMMAND_STARTED=g$1.CLUSTER_TIME_RECEIVED=g$1.CONNECTION_CHECKED_IN=g$1.CONNECTION_CHECKED_OUT=g$1.CONNECTION_CHECK_OUT_FAILED=g$1.CONNECTION_CHECK_OUT_STARTED=g$1.CONNECTION_CLOSED=g$1.CONNECTION_READY=g$1.CONNECTION_CREATED=g$1.CONNECTION_POOL_READY=g$1.CONNECTION_POOL_CLEARED=g$1.CONNECTION_POOL_CLOSED=g$1.CONNECTION_POOL_CREATED=g$1.WAITING_FOR_SUITABLE_SERVER=g$1.SERVER_SELECTION_SUCCEEDED=g$1.SERVER_SELECTION_FAILED=g$1.SERVER_SELECTION_STARTED=g$1.TOPOLOGY_DESCRIPTION_CHANGED=g$1.TOPOLOGY_CLOSED=g$1.TOPOLOGY_OPENING=g$1.SERVER_DESCRIPTION_CHANGED=g$1.SERVER_CLOSED=g$1.SERVER_OPENING=g$1.DESCRIPTION_RECEIVED=g$1.UNPINNED=g$1.PINNED=g$1.MESSAGE=g$1.ENDED=g$1.CLOSED=g$1.CONNECT=g$1.OPEN=g$1.CLOSE=g$1.TIMEOUT=g$1.ERROR=g$1.SYSTEM_JS_COLLECTION=g$1.SYSTEM_COMMAND_COLLECTION=g$1.SYSTEM_USER_COLLECTION=g$1.SYSTEM_PROFILE_COLLECTION=g$1.SYSTEM_INDEX_COLLECTION=g$1.SYSTEM_NAMESPACE_COLLECTION=void 0;g$1.kDecoratedKeys=g$1.kDecorateResult=g$1.LEGACY_HELLO_COMMAND_CAMEL_CASE=g$1.LEGACY_HELLO_COMMAND=g$1.MONGO_CLIENT_EVENTS=g$1.LOCAL_SERVER_EVENTS=g$1.SERVER_RELAY_EVENTS=g$1.APM_EVENTS=g$1.TOPOLOGY_EVENTS=g$1.CMAP_EVENTS=g$1.HEARTBEAT_EVENTS=g$1.RESUME_TOKEN_CHANGED=void 0;g$1.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";g$1.SYSTEM_INDEX_COLLECTION="system.indexes";g$1.SYSTEM_PROFILE_COLLECTION="system.profile";g$1.SYSTEM_USER_COLLECTION="system.users";g$1.SYSTEM_COMMAND_COLLECTION="$cmd";g$1.SYSTEM_JS_COLLECTION="system.js";g$1.ERROR="error";g$1.TIMEOUT="timeout";g$1.CLOSE="close";g$1.OPEN="open";g$1.CONNECT="connect";g$1.CLOSED="closed";g$1.ENDED="ended";g$1.MESSAGE="message";g$1.PINNED="pinned";g$1.UNPINNED="unpinned";g$1.DESCRIPTION_RECEIVED="descriptionReceived";g$1.SERVER_OPENING="serverOpening";g$1.SERVER_CLOSED="serverClosed";g$1.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";g$1.TOPOLOGY_OPENING="topologyOpening";g$1.TOPOLOGY_CLOSED="topologyClosed";g$1.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";g$1.SERVER_SELECTION_STARTED="serverSelectionStarted";g$1.SERVER_SELECTION_FAILED="serverSelectionFailed";g$1.SERVER_SELECTION_SUCCEEDED="serverSelectionSucceeded";g$1.WAITING_FOR_SUITABLE_SERVER="waitingForSuitableServer";g$1.CONNECTION_POOL_CREATED="connectionPoolCreated";g$1.CONNECTION_POOL_CLOSED="connectionPoolClosed";g$1.CONNECTION_POOL_CLEARED="connectionPoolCleared";g$1.CONNECTION_POOL_READY="connectionPoolReady";g$1.CONNECTION_CREATED="connectionCreated";g$1.CONNECTION_READY="connectionReady";g$1.CONNECTION_CLOSED="connectionClosed";g$1.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";g$1.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";g$1.CONNECTION_CHECKED_OUT="connectionCheckedOut";g$1.CONNECTION_CHECKED_IN="connectionCheckedIn";g$1.CLUSTER_TIME_RECEIVED="clusterTimeReceived";g$1.COMMAND_STARTED="commandStarted";g$1.COMMAND_SUCCEEDED="commandSucceeded";g$1.COMMAND_FAILED="commandFailed";g$1.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";g$1.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";g$1.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";g$1.RESPONSE="response";g$1.MORE="more";g$1.INIT="init";g$1.CHANGE="change";g$1.END="end";g$1.RESUME_TOKEN_CHANGED="resumeTokenChanged";g$1.HEARTBEAT_EVENTS=Object.freeze([g$1.SERVER_HEARTBEAT_STARTED,g$1.SERVER_HEARTBEAT_SUCCEEDED,g$1.SERVER_HEARTBEAT_FAILED]);g$1.CMAP_EVENTS=Object.freeze([g$1.CONNECTION_POOL_CREATED,g$1.CONNECTION_POOL_READY,g$1.CONNECTION_POOL_CLEARED,g$1.CONNECTION_POOL_CLOSED,g$1.CONNECTION_CREATED,g$1.CONNECTION_READY,g$1.CONNECTION_CLOSED,g$1.CONNECTION_CHECK_OUT_STARTED,g$1.CONNECTION_CHECK_OUT_FAILED,g$1.CONNECTION_CHECKED_OUT,g$1.CONNECTION_CHECKED_IN]);g$1.TOPOLOGY_EVENTS=Object.freeze([g$1.SERVER_OPENING,g$1.SERVER_CLOSED,g$1.SERVER_DESCRIPTION_CHANGED,g$1.TOPOLOGY_OPENING,g$1.TOPOLOGY_CLOSED,g$1.TOPOLOGY_DESCRIPTION_CHANGED,g$1.ERROR,g$1.TIMEOUT,g$1.CLOSE]);g$1.APM_EVENTS=Object.freeze([g$1.COMMAND_STARTED,g$1.COMMAND_SUCCEEDED,g$1.COMMAND_FAILED]);g$1.SERVER_RELAY_EVENTS=Object.freeze([g$1.SERVER_HEARTBEAT_STARTED,g$1.SERVER_HEARTBEAT_SUCCEEDED,g$1.SERVER_HEARTBEAT_FAILED,g$1.COMMAND_STARTED,g$1.COMMAND_SUCCEEDED,g$1.COMMAND_FAILED,...g$1.CMAP_EVENTS]);g$1.LOCAL_SERVER_EVENTS=Object.freeze([g$1.CONNECT,g$1.DESCRIPTION_RECEIVED,g$1.CLOSED,g$1.ENDED]);g$1.MONGO_CLIENT_EVENTS=Object.freeze([...g$1.CMAP_EVENTS,...g$1.APM_EVENTS,...g$1.TOPOLOGY_EVENTS,...g$1.HEARTBEAT_EVENTS]);g$1.LEGACY_HELLO_COMMAND="ismaster";g$1.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster";g$1.kDecorateResult=Symbol.for("@@mdb.decorateDecryptionResult");g$1.kDecoratedKeys=Symbol.for("@@mdb.decryptedKeys");});var ar=c(ur=>{g();Object.defineProperty(ur,"__esModule",{value:true});ur.ReadConcern=ur.ReadConcernLevel=void 0;ur.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});var V0=class t{constructor(e){this.level=ur.ReadConcernLevel[e]??e;}static fromOptions(e){if(e!=null){if(e.readConcern){let{readConcern:r}=e;if(r instanceof t)return r;if(typeof r=="string")return new t(r);if("level"in r&&r.level)return new t(r.level)}if(e.level)return new t(e.level)}}static get MAJORITY(){return ur.ReadConcernLevel.majority}static get AVAILABLE(){return ur.ReadConcernLevel.available}static get LINEARIZABLE(){return ur.ReadConcernLevel.linearizable}static get SNAPSHOT(){return ur.ReadConcernLevel.snapshot}toJSON(){return {level:this.level}}};ur.ReadConcern=V0;});var o6=c(C1=>{g();Object.defineProperty(C1,"__esModule",{value:true});C1.OnDemandDocument=void 0;var Y=te(),Xo={type:0,nameOffset:1,nameLength:2,offset:3,length:4},W0=class t{constructor(e,r=0,n=false,s){this.cache=Object.create(null),this.indexFound=Object.create(null),this.bson=e,this.offset=r,this.isArray=n,this.elements=s??(0, Y.parseToElementsToArray)(this.bson,r);}isElementName(e,r){let n=r[Xo.nameLength],s=r[Xo.nameOffset];if(e.length!==n)return false;let o=s+n;for(let i=s,u=0;u<e.length&&i<o;u++,i++)if(this.bson[i]!==e.charCodeAt(u))return false;return true}getElement(e){let r=this.cache[e];if(r===false)return null;if(r!=null)return r;if(typeof e=="number")if(this.isArray)if(e<this.elements.length){let s={element:this.elements[e],value:void 0};return this.cache[e]=s,this.indexFound[e]=true,s}else return null;else return null;for(let n=0;n<this.elements.length;n++){let s=this.elements[n];if(!(n in this.indexFound)&&this.isElementName(e,s)){let o={element:s,value:void 0};return this.cache[e]=o,this.indexFound[n]=true,o}}return this.cache[e]=false,null}toJSValue(e,r){let n=e[Xo.type],s=e[Xo.offset],o=e[Xo.length];if(r!==n)return null;switch(r){case Y.BSONType.null:case Y.BSONType.undefined:return null;case Y.BSONType.double:return (0, Y.getFloat64LE)(this.bson,s);case Y.BSONType.int:return (0, Y.getInt32LE)(this.bson,s);case Y.BSONType.long:return (0, Y.getBigInt64LE)(this.bson,s);case Y.BSONType.bool:return !!this.bson[s];case Y.BSONType.objectId:return new Y.ObjectId(this.bson.subarray(s,s+12));case Y.BSONType.timestamp:return new Y.Timestamp((0, Y.getBigInt64LE)(this.bson,s));case Y.BSONType.string:return (0, Y.toUTF8)(this.bson,s+4,s+o-1,false);case Y.BSONType.binData:{let i=(0, Y.getInt32LE)(this.bson,s),u=this.bson[s+4];if(u===2){let a=(0, Y.getInt32LE)(this.bson,s+1+4);if(a<0)throw new Y.BSONError("Negative binary type element size found for subtype 0x02");if(a>i-4)throw new Y.BSONError("Binary type with subtype 0x02 contains too long binary size");if(a<i-4)throw new Y.BSONError("Binary type with subtype 0x02 contains too short binary size");return new Y.Binary(this.bson.subarray(s+1+4+4,s+1+4+4+a),2)}return new Y.Binary(this.bson.subarray(s+1+4,s+1+4+i),u)}case Y.BSONType.date:return new Date(Number((0, Y.getBigInt64LE)(this.bson,s)));case Y.BSONType.object:return new t(this.bson,s);case Y.BSONType.array:return new t(this.bson,s,true);default:throw new Y.BSONError(`Unsupported BSON type: ${r}`)}}size(){return this.elements.length}has(e){let r=this.cache[e];return r===false?false:r!=null?true:this.getElement(e)!=null}get(e,r,n){let s=this.getElement(e);if(s==null){if(n===true)throw new Y.BSONError(`BSON element "${e}" is missing`);return null}if(s.value==null){let o=this.toJSValue(s.element,r);if(o==null){if(n===true)throw new Y.BSONError(`BSON element "${e}" is missing`);return null}s.value=o;}return s.value}getNumber(e,r){let n=this.get(e,Y.BSONType.bool),s=n==null?null:n?1:0,o=this.get(e,Y.BSONType.long),i=o==null?null:Number(o),u=s??i??this.get(e,Y.BSONType.int)??this.get(e,Y.BSONType.double);if(r===true&&u==null)throw new Y.BSONError(`BSON element "${e}" is missing`);return u}toObject(e){return (0, Y.deserialize)(this.bson,{...e,index:this.offset,allowObjectSmallerThanBufferSize:true})}toBytes(){let e=(0, Y.getInt32LE)(this.bson,this.offset);return this.bson.subarray(this.offset,this.offset+e)}};C1.OnDemandDocument=W0;});var ae=c(cr=>{g();Object.defineProperty(cr,"__esModule",{value:true});cr.ClientBulkWriteCursorResponse=cr.ExplainedCursorResponse=cr.CursorResponse=cr.MongoDBResponse=void 0;cr.isErrorResponse=u6;var Z=te(),es=B(),i6=v(),F8=o6(),S1={nameOffset:1,nameLength:2,offset:3,length:4};function u6(t,e){for(let r=0;r<e.length;r++){let n=e[r];if(n[S1.nameLength]===2){let s=n[S1.nameOffset];if(t[s]===111&&t[s+1]===107){let o=n[S1.offset],i=n[S1.length];for(let u=o;u<o+i;u++)if(t[u]!==0)return false;return true}}}return true}var Ps=class t extends F8.OnDemandDocument{get(e,r,n){try{return super.get(e,r,n)}catch(s){throw new es.MongoUnexpectedServerResponseError(s.message,{cause:s})}}static is(e){return e instanceof t}static make(e){let r=(0, Z.parseToElementsToArray)(e,0);return u6(e,r)?new t(e,0,false,r):new this(e,0,false,r)}get isMaxTimeExpiredError(){if(this.ok===0&&this.code===es.MONGODB_ERROR_CODES.MaxTimeMSExpired)return true;if(this.ok===0)return false;if(this.get("writeConcernError",Z.BSONType.object)?.getNumber("code")===es.MONGODB_ERROR_CODES.MaxTimeMSExpired)return true;let n=this.get("writeErrors",Z.BSONType.array);if(n?.size()){for(let s=0;s<n.size();s++)if(n.get(s,Z.BSONType.object)?.getNumber("code")===es.MONGODB_ERROR_CODES.MaxTimeMSExpired)return true}return false}get recoveryToken(){return this.get("recoveryToken",Z.BSONType.object)?.toObject({promoteValues:false,promoteLongs:false,promoteBuffers:false,validation:{utf8:true}})??null}get atClusterTime(){return this.get("cursor",Z.BSONType.object)?.get("atClusterTime",Z.BSONType.timestamp)??this.get("atClusterTime",Z.BSONType.timestamp)}get operationTime(){return this.get("operationTime",Z.BSONType.timestamp)}get ok(){return this.getNumber("ok")?1:0}get $err(){return this.get("$err",Z.BSONType.string)}get errmsg(){return this.get("errmsg",Z.BSONType.string)}get code(){return this.getNumber("code")}get $clusterTime(){if(!("clusterTime"in this)){let e=this.get("$clusterTime",Z.BSONType.object);if(e==null)return this.clusterTime=null,null;let r=e.get("clusterTime",Z.BSONType.timestamp,true),n=e.get("signature",Z.BSONType.object)?.toObject();this.clusterTime={clusterTime:r,signature:n};}return this.clusterTime??null}toObject(e){let r={...(0, Z.pluckBSONSerializeOptions)(e??{}),validation:(0, Z.parseUtf8ValidationOption)(e)};return super.toObject(r)}};cr.MongoDBResponse=Ps;Ps.empty=new Ps(new Uint8Array([13,0,0,0,16,111,107,0,1,0,0,0,0]));var Jo=class t extends Ps{constructor(){super(...arguments),this._batch=null,this.iterated=0,this._encryptedBatch=null;}static get emptyGetMore(){return new t((0, Z.serialize)({ok:1,cursor:{id:0n,nextBatch:[]}}))}static is(e){return e instanceof t||e===t.emptyGetMore}get cursor(){return this.get("cursor",Z.BSONType.object,true)}get id(){try{return Z.Long.fromBigInt(this.cursor.get("id",Z.BSONType.long,!0))}catch(e){throw new es.MongoUnexpectedServerResponseError(e.message,{cause:e})}}get ns(){let e=this.cursor.get("ns",Z.BSONType.string);return e!=null?(0, i6.ns)(e):null}get length(){return Math.max(this.batchSize-this.iterated,0)}get encryptedBatch(){if(this.encryptedResponse==null)return null;if(this._encryptedBatch!=null)return this._encryptedBatch;let e=this.encryptedResponse?.get("cursor",Z.BSONType.object);if(e?.has("firstBatch"))this._encryptedBatch=e.get("firstBatch",Z.BSONType.array,true);else if(e?.has("nextBatch"))this._encryptedBatch=e.get("nextBatch",Z.BSONType.array,true);else throw new es.MongoUnexpectedServerResponseError("Cursor document did not contain a batch");return this._encryptedBatch}get batch(){if(this._batch!=null)return this._batch;let e=this.cursor;if(e.has("firstBatch"))this._batch=e.get("firstBatch",Z.BSONType.array,true);else if(e.has("nextBatch"))this._batch=e.get("nextBatch",Z.BSONType.array,true);else throw new es.MongoUnexpectedServerResponseError("Cursor document did not contain a batch");return this._batch}get batchSize(){return this.batch?.size()}get postBatchResumeToken(){return this.cursor.get("postBatchResumeToken",Z.BSONType.object)?.toObject({promoteValues:false,promoteLongs:false,promoteBuffers:false,validation:{utf8:true}})??null}shift(e){if(this.iterated>=this.batchSize)return null;let r=this.batch.get(this.iterated,Z.BSONType.object,true)??null,n=this.encryptedBatch?.get(this.iterated,Z.BSONType.object,true)??null;if(this.iterated+=1,e?.raw)return r.toBytes();{let s=r.toObject(e);return n&&(0, i6.decorateDecryptionResult)(s,n.toObject(e),true),s}}clear(){this.iterated=this.batchSize;}};cr.CursorResponse=Jo;var $0=class extends Jo{constructor(){super(...arguments),this.isExplain=true,this._length=1;}get id(){return Z.Long.fromBigInt(0n)}get batchSize(){return 0}get ns(){return null}get length(){return this._length}shift(e){return this._length===0?null:(this._length-=1,this.toObject(e))}};cr.ExplainedCursorResponse=$0;var G0=class extends Jo{get insertedCount(){return this.get("nInserted",Z.BSONType.int,true)}get upsertedCount(){return this.get("nUpserted",Z.BSONType.int,true)}get matchedCount(){return this.get("nMatched",Z.BSONType.int,true)}get modifiedCount(){return this.get("nModified",Z.BSONType.int,true)}get deletedCount(){return this.get("nDeleted",Z.BSONType.int,true)}get writeConcernError(){return this.get("writeConcernError",Z.BSONType.object,false)}};cr.ClientBulkWriteCursorResponse=G0;});var dt=c(ts=>{g();Object.defineProperty(ts,"__esModule",{value:true});ts.WriteConcern=ts.WRITE_CONCERN_KEYS=void 0;ts.throwIfWriteConcernError=N8;var a6=ae(),R8=B();ts.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];var H0=class t{constructor(e,r,n,s){e!=null&&(Number.isNaN(Number(e))?this.w=e:this.w=Number(e)),r!=null&&(this.wtimeoutMS=this.wtimeout=r),n!=null&&(this.journal=this.j=n),s!=null&&(this.journal=this.j=!!s);}static apply(e,r){let n={};return r.w!=null&&(n.w=r.w),r.wtimeoutMS!=null&&(n.wtimeout=r.wtimeoutMS),r.journal!=null&&(n.j=r.j),e.writeConcern=n,e}static fromOptions(e,r){if(e==null)return;r=r??{};let n;typeof e=="string"||typeof e=="number"?n={w:e}:e instanceof t?n=e:n=e.writeConcern;let o={...r instanceof t?r:r.writeConcern,...n},{w:i=void 0,wtimeout:u=void 0,j:a=void 0,fsync:c=void 0,journal:h=void 0,wtimeoutMS:d=void 0}=o;if(i!=null||u!=null||d!=null||a!=null||h!=null||c!=null)return new t(i,u??d,a??h,c)}};ts.WriteConcern=H0;function N8(t){if(typeof t=="object"&&t!=null){let e=a6.MongoDBResponse.is(t)&&t.has("writeConcernError")?t.toObject():!a6.MongoDBResponse.is(t)&&"writeConcernError"in t?t:null;if(e!=null)throw new R8.MongoWriteConcernError(e)}}});var v=c(T=>{g();Object.defineProperty(T,"__esModule",{value:true});T.kDispose=T.randomBytes=T.COSMOS_DB_MSG=T.DOCUMENT_DB_MSG=T.COSMOS_DB_CHECK=T.DOCUMENT_DB_CHECK=T.MONGODB_WARNING_CODE=T.DEFAULT_PK_FACTORY=T.HostAddress=T.BufferPool=T.List=T.MongoDBCollectionNamespace=T.MongoDBNamespace=T.ByteUtils=void 0;T.isUint8Array=U8;T.hostMatchesWildcards=j8;T.normalizeHintField=z8;T.isObject=Y0;T.mergeOptions=W8;T.filterOptions=$8;T.applyRetryableWrites=G8;T.isPromiseLike=H8;T.decorateWithCollation=K8;T.decorateWithReadConcern=Y8;T.getTopology=X8;T.ns=J8;T.makeCounter=Q8;T.uuidV4=Z8;T.maxWireVersion=eg;T.arrayStrictEqual=tg;T.errorStrictEqual=rg;T.makeStateMachine=ng;T.now=m6;T.calculateDurationInMs=sg;T.hasAtomicOperators=p6;T.resolveTimeoutOptions=og;T.resolveOptions=ig;T.isSuperset=E6;T.isHello=ug;T.setDifference=ag;T.isRecord=lg;T.emitWarning=g6;T.emitWarningOnce=hg;T.enumToString=dg;T.supportsRetryableWrites=fg;T.shuffle=mg;T.commandSupportsReadConcern=pg;T.compareObjectId=Eg;T.parseInteger=A6;T.parseUnsignedInteger=gg;T.checkParentDomainMatch=Ag;T.get=Cg;T.request=Sg;T.isHostMatch=yg;T.promiseWithResolvers=Z0;T.squashError=Og;T.once=wg;T.maybeAddIdToDocuments=_g;T.fileIsAccessible=Dg;T.csotMin=Tg;T.noop=Bg;T.decorateDecryptionResult=C6;T.addAbortListener=el;T.abortable=bg;var d6=a("crypto"),I8=a("fs"),f6=a("http"),K0=a("timers"),v8=a("url"),P8=a("url"),x8=a("util"),Q0=te(),c6=mn(),y1=Ne(),ft=B(),L8=ar(),k8=We(),q8=Nt(),l6=dt();T.ByteUtils={toLocalBufferType(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)},equals(t,e){return T.ByteUtils.toLocalBufferType(t).equals(e)},compare(t,e){return T.ByteUtils.toLocalBufferType(t).compare(e)},toBase64(t){return T.ByteUtils.toLocalBufferType(t).toString("base64")}};function U8(t){return t!=null&&typeof t=="object"&&Symbol.toStringTag in t&&t[Symbol.toStringTag]==="Uint8Array"}function j8(t,e){for(let r of e)if(t===r||r.startsWith("*.")&&t?.endsWith(r.substring(2,r.length))||r.startsWith("*/")&&t?.endsWith(r.substring(2,r.length)))return true;return false}function z8(t){let e;if(typeof t=="string")e=t;else if(Array.isArray(t))e={},t.forEach(r=>{e[r]=1;});else if(t!=null&&typeof t=="object"){e={};for(let r in t)e[r]=t[r];}return e}var V8=t=>Object.prototype.toString.call(t);function Y0(t){return V8(t)==="[object Object]"}function W8(t,e){return {...t,...e}}function $8(t,e){let r={};for(let n in t)e.includes(n)&&(r[n]=t[n]);return r}function G8(t,e){return e&&e.s.options?.retryWrites&&(t.retryWrites=true),t}function H8(t){return t!=null&&typeof t=="object"&&"then"in t&&typeof t.then=="function"}function K8(t,e){e.collation&&typeof e.collation=="object"&&(t.collation=e.collation);}function Y8(t,e,r){if(r&&r.session&&r.session.inTransaction())return;let n=Object.assign({},t.readConcern||{});e.s.readConcern&&Object.assign(n,e.s.readConcern),Object.keys(n).length>0&&Object.assign(t,{readConcern:n});}function X8(t){if("topology"in t&&t.topology)return t.topology;if("client"in t&&t.client.topology)return t.client.topology;throw new ft.MongoNotConnectedError("MongoClient must be connected to perform this operation")}function J8(t){return Qo.fromString(t)}var Qo=class t{constructor(e,r){this.db=e,this.collection=r===""?void 0:r;}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(e){return new O1(this.db,e)}static fromString(e){if(typeof e!="string"||e==="")throw new ft.MongoRuntimeError(`Cannot parse namespace from "${e}"`);let[r,...n]=e.split("."),s=n.join(".");return new t(r,s===""?void 0:s)}};T.MongoDBNamespace=Qo;var O1=class extends Qo{constructor(e,r){super(e,r),this.collection=r;}static fromString(e){return super.fromString(e)}};T.MongoDBCollectionNamespace=O1;function*Q8(t=0){let e=t;for(;;){let r=e;e+=1,yield r;}}function Z8(){let t=d6.randomBytes(16);return t[6]=t[6]&15|64,t[8]=t[8]&63|128,t}function eg(t){if(t){if(t.hello)return t.hello.maxWireVersion;if(t.serverApi?.version||t.loadBalanced)return c6.MAX_SUPPORTED_WIRE_VERSION;if("lastHello"in t&&typeof t.lastHello=="function"){let e=t.lastHello();if(e)return e.maxWireVersion}if(t.description&&"maxWireVersion"in t.description&&t.description.maxWireVersion!=null)return t.description.maxWireVersion}return 0}function tg(t,e){return !Array.isArray(t)||!Array.isArray(e)?false:t.length===e.length&&t.every((r,n)=>r===e[n])}function rg(t,e){return t===e?true:!t||!e?t===e:!(t==null&&e!=null||t!=null&&e==null||t.constructor.name!==e.constructor.name||t.message!==e.message)}function ng(t){return function(r,n){let s=t[r.s.state];if(s&&s.indexOf(n)<0)throw new ft.MongoRuntimeError(`illegal state transition from [${r.s.state}] => [${n}], allowed: [${s}]`);r.emit("stateChanged",r.s.state,n),r.s.state=n;}}function m6(){let t=process.hrtime();return Math.floor(t[0]*1e3+t[1]/1e6)}function sg(t){if(typeof t!="number")return -1;let e=m6()-t;return e<0?0:e}function p6(t,e){if(Array.isArray(t)){for(let n of t)if(p6(n))return true;return false}let r=Object.keys(t);if(e?.ignoreUndefined){let n=true;for(let s of r)if(t[s]!==void 0){n=false;break}if(n)throw new ft.MongoInvalidArgumentError("Update operations require that all atomic operators have defined values, but none were provided.")}return r.length>0&&r[0][0]==="$"}function og(t,e){let{socketTimeoutMS:r,serverSelectionTimeoutMS:n,waitQueueTimeoutMS:s,timeoutMS:o}=t.s.options;return {socketTimeoutMS:r,serverSelectionTimeoutMS:n,waitQueueTimeoutMS:s,timeoutMS:o,...e}}function ig(t,e){let r=Object.assign({},e,(0, Q0.resolveBSONOptions)(e,t)),n=e?.timeoutMS??t?.timeoutMS,s=e?.session;if(!s?.inTransaction()){let u=L8.ReadConcern.fromOptions(e)??t?.readConcern;u&&(r.readConcern=u);let a=l6.WriteConcern.fromOptions(e)??t?.writeConcern;a&&(n!=null&&(a=l6.WriteConcern.fromOptions({writeConcern:{...a,wtimeout:void 0,wtimeoutMS:void 0}})),r.writeConcern=a);}r.timeoutMS=n;let o=k8.ReadPreference.fromOptions(e)??t?.readPreference;if(o&&(r.readPreference=o),s?.explicit&&s?.timeoutContext!=null&&e?.timeoutMS!=null)throw new ft.MongoInvalidArgumentError("An operation cannot be given a timeoutMS setting when inside a withTransaction call that has a timeoutMS setting");return r}function E6(t,e){t=Array.isArray(t)?new Set(t):t,e=Array.isArray(e)?new Set(e):e;for(let r of e)if(!t.has(r))return false;return true}function ug(t){return !!(t[y1.LEGACY_HELLO_COMMAND]||t.hello)}function ag(t,e){let r=new Set(t);for(let n of e)r.delete(n);return r}var cg=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function lg(t,e=void 0){if(!Y0(t))return false;let r=t.constructor;if(r&&r.prototype&&(!Y0(r.prototype)||!cg(r.prototype,"isPrototypeOf")))return false;if(e){let n=Object.keys(t);return E6(n,e)}return true}var w1=class{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 e of this.nodes())yield e.value;}*nodes(){let e=this.head.next;for(;e!==this.head;){let{next:r}=e;yield e,e=r;}}push(e){this.count+=1;let r={next:this.head,prev:this.head.prev,value:e};this.head.prev.next=r,this.head.prev=r;}pushMany(e){for(let r of e)this.push(r);}unshift(e){this.count+=1;let r={next:this.head.next,prev:this.head,value:e};this.head.next.prev=r,this.head.next=r;}remove(e){if(e===this.head||this.length===0)return null;this.count-=1;let r=e.prev,n=e.next;return r.next=n,n.prev=r,e.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(e){for(let r of this.nodes())e(r.value)&&this.remove(r);}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}};T.List=w1;var X0=class{constructor(){this.buffers=new w1,this.totalByteLength=0;}get length(){return this.totalByteLength}append(e){this.buffers.push(e),this.totalByteLength+=e.length;}getInt32(){if(this.totalByteLength<4)return null;let e=this.buffers.first();if(e!=null&&e.byteLength>=4)return e.readInt32LE(0);let r=this.read(4),n=r.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(r),n}read(e){if(typeof e!="number"||e<0)throw new ft.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(e>this.totalByteLength)return Buffer.alloc(0);let r=Buffer.allocUnsafe(e);for(let n=0;n<e;){let s=this.buffers.shift();if(s==null)break;let o=e-n,i=Math.min(o,s.byteLength),u=s.subarray(0,i);r.set(u,n),n+=i,this.totalByteLength-=i,i<s.byteLength&&this.buffers.unshift(s.subarray(i));}return r}};T.BufferPool=X0;var J0=class t{constructor(e){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=false;let r=e.split(" ").join("%20");if(r.endsWith(".sock")){this.socketPath=decodeURIComponent(r);return}let n=`iLoveJS://${r}`,s;try{s=new P8.URL(n);}catch(a){let c=new ft.MongoRuntimeError(`Unable to parse ${r} with URL`);throw c.cause=a,c}let o=s.hostname,i=s.port,u=decodeURIComponent(o).toLowerCase();if(u.startsWith("[")&&u.endsWith("]")&&(this.isIPv6=true,u=u.substring(1,o.length-1)),this.host=u.toLowerCase(),typeof i=="number"?this.port=i:typeof i=="string"&&i!==""?this.port=Number.parseInt(i,10):this.port=27017,this.port===0)throw new ft.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(){return typeof this.host=="string"?this.isIPv6?`[${this.host}]:${this.port}`:`${this.host}:${this.port}`:`${this.socketPath}`}static fromString(e){return new t(e)}static fromHostPort(e,r){return e.includes(":")&&(e=`[${e}]`),t.fromString(`${e}:${r}`)}static fromSrvRecord({name:e,port:r}){return t.fromHostPort(e,r)}toHostPort(){if(this.socketPath)return {host:this.socketPath,port:0};let e=this.host??"",r=this.port??0;return {host:e,port:r}}};T.HostAddress=J0;T.DEFAULT_PK_FACTORY={createPk(){return new Q0.ObjectId}};T.MONGODB_WARNING_CODE="MONGODB DRIVER";function g6(t){return process.emitWarning(t,{code:T.MONGODB_WARNING_CODE})}var h6=new Set;function hg(t){if(!h6.has(t))return h6.add(t),g6(t)}function dg(t){return Object.values(t).join(", ")}function fg(t){return t?!!(t.loadBalanced||t.description.logicalSessionTimeoutMinutes!=null&&t.description.type!==q8.ServerType.Standalone):false}function mg(t,e=0){let r=Array.from(t);if(e>r.length)throw new ft.MongoRuntimeError("Limit must be less than the number of items");let n=r.length,s=e%r.length===0?1:r.length-e;for(;n>s;){let o=Math.floor(Math.random()*n);n-=1;let i=r[n];r[n]=r[o],r[o]=i;}return e%r.length===0?r:r.slice(s)}function pg(t){return !!(t.aggregate||t.count||t.distinct||t.find||t.geoNear)}function Eg(t,e){return t==null&&e==null?0:t==null?-1:e==null?1:T.ByteUtils.compare(t.id,e.id)}function A6(t){if(typeof t=="number")return Math.trunc(t);let e=Number.parseInt(String(t),10);return Number.isNaN(e)?null:e}function gg(t){let e=A6(t);return e!=null&&e>=0?e:null}function Ag(t,e){let r=t.endsWith(".")?t.slice(0,t.length-1):t,n=e.endsWith(".")?e.slice(0,e.length-1):e,s=/^.*?\./,o=n.split(".").length<3,i=`.${r.replace(s,"")}`,u=o?n:`.${n.replace(s,"")}`;if(u.startsWith(".")||(u="."+u),o&&r.split(".").length<=n.split(".").length)throw new ft.MongoAPIError("Server record does not have at least one more domain level than parent URI");if(!i.endsWith(u))throw new ft.MongoAPIError("Server record does not share hostname with parent URI")}function Cg(t,e={}){return new Promise((r,n)=>{let s,o=f6.get(t,e,i=>{i.setEncoding("utf8");let u="";i.on("data",a=>u+=a),i.on("end",()=>{(0, K0.clearTimeout)(s),r({status:i.statusCode,body:u});});}).on("error",i=>{(0, K0.clearTimeout)(s),n(i);}).end();s=(0, K0.setTimeout)(()=>{o.destroy(new ft.MongoNetworkTimeoutError("request timed out after 10 seconds"));},1e4);})}async function Sg(t,e={}){return await new Promise((r,n)=>{let s={method:"GET",timeout:1e4,json:true,...v8.parse(t),...e},o=f6.request(s,i=>{i.setEncoding("utf8");let u="";i.on("data",a=>{u+=a;}),i.once("end",()=>{if(e.json===false){r(u);return}try{let a=JSON.parse(u);r(a);}catch{n(new ft.MongoRuntimeError(`Invalid JSON response: "${u}"`));}});});o.once("timeout",()=>o.destroy(new ft.MongoNetworkTimeoutError(`Network request to ${t} timed out after ${e.timeout} ms`))),o.once("error",i=>n(i)),o.end();})}T.DOCUMENT_DB_CHECK=/(\.docdb\.amazonaws\.com$)|(\.docdb-elastic\.amazonaws\.com$)/;T.COSMOS_DB_CHECK=/\.cosmos\.azure\.com$/;T.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";T.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";function yg(t,e){return !!(e&&t.test(e.toLowerCase()))}function Z0(){let t,e;return {promise:new Promise(function(s,o){t=s,e=o;}),resolve:t,reject:e}}function Og(t){}T.randomBytes=(0, x8.promisify)(d6.randomBytes);async function wg(t,e,r){r?.signal?.throwIfAborted();let{promise:n,resolve:s,reject:o}=Z0(),i=c=>s(c),u=c=>o(c),a=el(r?.signal,function(){o(this.reason);});t.once(e,i).once("error",u);try{return await n}finally{t.off(e,i),t.off("error",u),a?.[T.kDispose]();}}function _g(t,e,r){return (r.forceServerObjectId??t.db.options?.forceServerObjectId??false)||e._id==null&&(e._id=t.s.pkFactory.createPk()),e}async function Dg(t,e){try{return await I8.promises.access(t,e),!0}catch{return false}}function Tg(t,e){return t===0?e:e===0?t:Math.min(t,e)}function Bg(){}function C6(t,e,r=true){if(r&&(Buffer.isBuffer(e)&&(e=(0, Q0.deserialize)(e)),Buffer.isBuffer(t)))throw new ft.MongoRuntimeError("Expected result of decryption to be deserialized BSON object");if(!(!t||typeof t!="object"))for(let n of Object.keys(t)){let s=e[n];if(s&&s._bsontype==="Binary"&&s.sub_type===6){t[y1.kDecoratedKeys]||Object.defineProperty(t,y1.kDecoratedKeys,{value:[],configurable:true,enumerable:false,writable:false}),t[y1.kDecoratedKeys].push(n);continue}C6(t[n],s,false);}}T.kDispose=Symbol.dispose??Symbol("dispose");function el(t,e){if(t!=null)return t.addEventListener("abort",e,{once:true}),{[T.kDispose]:()=>t.removeEventListener("abort",e)}}async function bg(t,{signal:e}){if(e==null)return await t;let{promise:r,reject:n}=Z0(),s=e.aborted?n(e.reason):el(e,function(){n(this.reason);});try{return await Promise.race([t,r])}finally{s?.[T.kDispose]();}}});var ke=c(Ht=>{g();Object.defineProperty(Ht,"__esModule",{value:true});Ht.LegacyTimeoutContext=Ht.CSOTTimeoutContext=Ht.TimeoutContext=Ht.Timeout=Ht.TimeoutError=void 0;var S6=a("timers"),rs=B(),tl=v(),Zo=class extends Error{get name(){return "TimeoutError"}constructor(e,r){super(e,r),this.duration=r.duration;}static is(e){return e!=null&&typeof e=="object"&&"name"in e&&e.name==="TimeoutError"}};Ht.TimeoutError=Zo;var Gt=class t extends Promise{get remainingTime(){return this.timedOut?0:this.duration===0?1/0:this.start+this.duration-Math.trunc(performance.now())}get timeElapsed(){return Math.trunc(performance.now())-this.start}constructor(e=()=>null,r){let n=r?.duration??0,s=!!r?.unref,o=r?.rejection;if(n<0)throw new rs.MongoInvalidArgumentError("Cannot create a Timeout with a negative duration");let i;super((u,a)=>{i=a,e(tl.noop,a);}),this.ended=null,this.timedOut=false,this.cleared=false,this.duration=n,this.start=Math.trunc(performance.now()),o==null&&this.duration>0?(this.id=(0, S6.setTimeout)(()=>{this.ended=Math.trunc(performance.now()),this.timedOut=true,i(new Zo(`Expired after ${n}ms`,{duration:n}));},this.duration),typeof this.id.unref=="function"&&s&&this.id.unref()):o!=null&&(this.ended=Math.trunc(performance.now()),this.timedOut=true,i(o));}clear(){(0, S6.clearTimeout)(this.id),this.id=void 0,this.timedOut=false,this.cleared=true;}throwIfExpired(){if(this.timedOut)throw this.then(void 0,tl.squashError),new Zo("Timed out",{duration:this.duration})}static expires(e,r){return new t(void 0,{duration:e,unref:r})}static reject(e){return new t(void 0,{duration:0,unref:true,rejection:e})}};Ht.Timeout=Gt;function Mg(t){return t!=null&&typeof t=="object"&&"serverSelectionTimeoutMS"in t&&typeof t.serverSelectionTimeoutMS=="number"&&"waitQueueTimeoutMS"in t&&typeof t.waitQueueTimeoutMS=="number"}function Fg(t){return t!=null&&typeof t=="object"&&"serverSelectionTimeoutMS"in t&&typeof t.serverSelectionTimeoutMS=="number"&&"timeoutMS"in t&&typeof t.timeoutMS=="number"}var ei=class{static create(e){if(e.session?.timeoutContext!=null)return e.session?.timeoutContext;if(Fg(e))return new _1(e);if(Mg(e))return new D1(e);throw new rs.MongoRuntimeError("Unrecognized options")}};Ht.TimeoutContext=ei;var _1=class t extends ei{constructor(e){super(),this.minRoundTripTime=0,this.start=Math.trunc(performance.now()),this.timeoutMS=e.timeoutMS,this.serverSelectionTimeoutMS=e.serverSelectionTimeoutMS,this.socketTimeoutMS=e.socketTimeoutMS,this.clearServerSelectionTimeout=false;}get maxTimeMS(){return this.remainingTimeMS-this.minRoundTripTime}get remainingTimeMS(){let e=Math.trunc(performance.now())-this.start;return this.timeoutMS<=0?1/0:this.timeoutMS-e}csotEnabled(){return true}get serverSelectionTimeout(){if(typeof this._serverSelectionTimeout!="object"||this._serverSelectionTimeout?.cleared){let{remainingTimeMS:e,serverSelectionTimeoutMS:r}=this;if(e<=0)return Gt.reject(new rs.MongoOperationTimeoutError(`Timed out in server selection after ${this.timeoutMS}ms`));r!==0&&(0, tl.csotMin)(e,r)===r?this._serverSelectionTimeout=Gt.expires(r):e>0&&Number.isFinite(e)?this._serverSelectionTimeout=Gt.expires(e):this._serverSelectionTimeout=null;}return this._serverSelectionTimeout}get connectionCheckoutTimeout(){if(typeof this._connectionCheckoutTimeout!="object"||this._connectionCheckoutTimeout?.cleared)if(typeof this._serverSelectionTimeout=="object")this._connectionCheckoutTimeout=this._serverSelectionTimeout;else throw new rs.MongoRuntimeError("Unreachable. If you are seeing this error, please file a ticket on the NODE driver project on Jira");return this._connectionCheckoutTimeout}get timeoutForSocketWrite(){let{remainingTimeMS:e}=this;return Number.isFinite(e)?e>0?Gt.expires(e):Gt.reject(new rs.MongoOperationTimeoutError("Timed out before socket write")):null}get timeoutForSocketRead(){let{remainingTimeMS:e}=this;return Number.isFinite(e)?e>0?Gt.expires(e):Gt.reject(new rs.MongoOperationTimeoutError("Timed out before socket read")):null}refresh(){this.start=Math.trunc(performance.now()),this.minRoundTripTime=0,this._serverSelectionTimeout?.clear(),this._connectionCheckoutTimeout?.clear();}clear(){this._serverSelectionTimeout?.clear(),this._connectionCheckoutTimeout?.clear();}getRemainingTimeMSOrThrow(e){let{remainingTimeMS:r}=this;if(r<=0)throw new rs.MongoOperationTimeoutError(e??`Expired after ${this.timeoutMS}ms`);return r}clone(){let e=new t({timeoutMS:this.timeoutMS,serverSelectionTimeoutMS:this.serverSelectionTimeoutMS});return e.start=this.start,e}refreshed(){return new t(this)}addMaxTimeMSToCommand(e,r){if(r.omitMaxTimeMS)return;let n=this.remainingTimeMS-this.minRoundTripTime;n>0&&Number.isFinite(n)&&(e.maxTimeMS=n);}getSocketTimeoutMS(){return 0}};Ht.CSOTTimeoutContext=_1;var D1=class t extends ei{constructor(e){super(),this.options=e,this.clearServerSelectionTimeout=true;}csotEnabled(){return false}get serverSelectionTimeout(){return this.options.serverSelectionTimeoutMS!=null&&this.options.serverSelectionTimeoutMS>0?Gt.expires(this.options.serverSelectionTimeoutMS):null}get connectionCheckoutTimeout(){return this.options.waitQueueTimeoutMS!=null&&this.options.waitQueueTimeoutMS>0?Gt.expires(this.options.waitQueueTimeoutMS):null}get timeoutForSocketWrite(){return null}get timeoutForSocketRead(){return null}refresh(){}clear(){}get maxTimeMS(){return null}refreshed(){return new t(this.options)}addMaxTimeMSToCommand(e,r){}getSocketTimeoutMS(){return this.options.socketTimeoutMS}};Ht.LegacyTimeoutContext=D1;});var ti=c(br=>{g();Object.defineProperty(br,"__esModule",{value:true});br.Explain=br.ExplainVerbosity=void 0;br.validateExplainTimeoutOptions=Ng;br.decorateWithExplain=Ig;var Rg=B();br.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});var rl=class t{constructor(e,r){typeof e=="boolean"?this.verbosity=e?br.ExplainVerbosity.allPlansExecution:br.ExplainVerbosity.queryPlanner:this.verbosity=e,this.maxTimeMS=r;}static fromOptions({explain:e}={}){if(e==null)return;if(typeof e=="boolean"||typeof e=="string")return new t(e);let{verbosity:r,maxTimeMS:n}=e;return new t(r,n)}};br.Explain=rl;function Ng(t,e){let{maxTimeMS:r,timeoutMS:n}=t;if(n!=null&&(r!=null||e?.maxTimeMS!=null))throw new Rg.MongoAPIError("Cannot use maxTimeMS with timeoutMS for explain commands.")}function Ig(t,e){let{verbosity:r,maxTimeMS:n}=e,s={explain:t,verbosity:r};return typeof n=="number"&&(s.maxTimeMS=n),s}});var he=c(Kt=>{g();Object.defineProperty(Kt,"__esModule",{value:true});Kt.AbstractOperation=Kt.Aspect=void 0;Kt.defineAspects=Pg;var vg=te(),nl=We();Kt.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"),COMMAND_BATCHING:Symbol("COMMAND_BATCHING"),SUPPORTS_RAW_DATA:Symbol("SUPPORTS_RAW_DATA")};var sl=class{constructor(e={}){this.readPreference=this.hasAspect(Kt.Aspect.WRITE_OPERATION)?nl.ReadPreference.primary:nl.ReadPreference.fromOptions(e)??nl.ReadPreference.primary,this.bsonOptions=(0, vg.resolveBSONOptions)(e),this._session=e.session!=null?e.session:void 0,this.options=e,this.bypassPinningCheck=!!e.bypassPinningCheck;}hasAspect(e){let r=this.constructor;return r.aspects==null?false:r.aspects.has(e)}get session(){return this._session}set session(e){this._session=e;}clearSession(){this._session=void 0;}resetBatch(){return true}get canRetryRead(){return this.hasAspect(Kt.Aspect.RETRYABLE)&&this.hasAspect(Kt.Aspect.READ_OPERATION)}get canRetryWrite(){return this.hasAspect(Kt.Aspect.RETRYABLE)&&this.hasAspect(Kt.Aspect.WRITE_OPERATION)}handleOk(e){return e.toObject(this.bsonOptions)}handleError(e){throw e}};Kt.AbstractOperation=sl;function Pg(t,e){return !Array.isArray(e)&&!(e instanceof Set)&&(e=[e]),e=new Set(e),Object.defineProperty(t,"aspects",{value:e,writable:false}),e}});var Be=c(B1=>{g();Object.defineProperty(B1,"__esModule",{value:true});B1.CommandOperation=void 0;var xg=mn(),Lg=B(),ol=ti(),kg=ar(),T1=v(),y6=dt(),ns=he(),il=class extends ns.AbstractOperation{constructor(e,r){super(r),this.options=r??{};let n=r?.dbName||r?.authdb;if(n?this.ns=new T1.MongoDBNamespace(n,"$cmd"):this.ns=e?e.s.namespace.withCollection("$cmd"):new T1.MongoDBNamespace("admin","$cmd"),this.readConcern=kg.ReadConcern.fromOptions(r),this.writeConcern=y6.WriteConcern.fromOptions(r),this.hasAspect(ns.Aspect.EXPLAINABLE))this.explain=ol.Explain.fromOptions(r),this.explain&&(0, ol.validateExplainTimeoutOptions)(this.options,this.explain);else if(r?.explain!=null)throw new Lg.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){return this.hasAspect(ns.Aspect.EXPLAINABLE)?this.explain==null:super.canRetryWrite}buildOptions(e){return {...this.options,...this.bsonOptions,timeoutContext:e,readPreference:this.readPreference,session:this.session}}buildCommand(e,r){let n=this.buildCommandDocument(e,r),s=this.session&&this.session.inTransaction();return this.readConcern&&(0, T1.commandSupportsReadConcern)(n)&&!s&&Object.assign(n,{readConcern:this.readConcern}),this.writeConcern&&this.hasAspect(ns.Aspect.WRITE_OPERATION)&&!s&&y6.WriteConcern.apply(n,this.writeConcern),this.options.collation&&typeof this.options.collation=="object"&&!this.hasAspect(ns.Aspect.SKIP_COLLATION)&&Object.assign(n,{collation:this.options.collation}),typeof this.options.maxTimeMS=="number"&&(n.maxTimeMS=this.options.maxTimeMS),this.options.rawData!=null&&this.hasAspect(ns.Aspect.SUPPORTS_RAW_DATA)&&(0, T1.maxWireVersion)(e)>=xg.MIN_SUPPORTED_RAW_DATA_WIRE_VERSION&&(n.rawData=this.options.rawData),this.hasAspect(ns.Aspect.EXPLAINABLE)&&this.explain?(0, ol.decorateWithExplain)(n,this.explain):n}};B1.CommandOperation=il;});var ri=c(ss=>{g();Object.defineProperty(ss,"__esModule",{value:true});ss.AggregateOperation=ss.DB_AGGREGATE_COLLECTION=void 0;var ul=ae(),O6=B(),qg=dt(),Ug=Be(),xs=he();ss.DB_AGGREGATE_COLLECTION=1;var b1=class extends Ug.CommandOperation{constructor(e,r,n){if(super(void 0,{...n,dbName:e.db}),this.SERVER_COMMAND_RESPONSE_TYPE=ul.CursorResponse,this.options={...n},this.target=e.collection||ss.DB_AGGREGATE_COLLECTION,this.pipeline=r,this.hasWriteStage=false,typeof n?.out=="string")this.pipeline=this.pipeline.concat({$out:n.out}),this.hasWriteStage=true;else if(r.length>0){let s=r[r.length-1];(s.$out||s.$merge)&&(this.hasWriteStage=true);}if(this.hasWriteStage||delete this.options.writeConcern,this.explain&&this.writeConcern)throw new O6.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if(n?.cursor!=null&&typeof n.cursor!="object")throw new O6.MongoInvalidArgumentError("Cursor options must be an object");this.SERVER_COMMAND_RESPONSE_TYPE=this.explain?ul.ExplainedCursorResponse:ul.CursorResponse;}get commandName(){return "aggregate"}get canRetryRead(){return !this.hasWriteStage}addToPipeline(e){this.pipeline.push(e);}buildCommandDocument(){let e=this.options,r={aggregate:this.target,pipeline:this.pipeline};return this.hasWriteStage&&this.writeConcern&&qg.WriteConcern.apply(r,this.writeConcern),e.bypassDocumentValidation===true&&(r.bypassDocumentValidation=e.bypassDocumentValidation),typeof e.allowDiskUse=="boolean"&&(r.allowDiskUse=e.allowDiskUse),e.hint&&(r.hint=e.hint),e.let&&(r.let=e.let),e.comment!==void 0&&(r.comment=e.comment),r.cursor=e.cursor||{},e.batchSize&&!this.hasWriteStage&&(r.cursor.batchSize=e.batchSize),r}handleOk(e){return e}};ss.AggregateOperation=b1;(0, xs.defineAspects)(b1,[xs.Aspect.READ_OPERATION,xs.Aspect.RETRYABLE,xs.Aspect.EXPLAINABLE,xs.Aspect.CURSOR_CREATING,xs.Aspect.SUPPORTS_RAW_DATA]);});var $e=c(M1=>{g();Object.defineProperty(M1,"__esModule",{value:true});M1.executeOperation=Wg;M1.autoConnect=T6;var it=B(),w6=We(),_6=Yo(),jg=ke(),al=v(),zg=ri(),Gr=he(),Vg=it.MONGODB_ERROR_CODES.IllegalOperation,D6="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";async function Wg(t,e,r){if(!(e instanceof Gr.AbstractOperation))throw new it.MongoRuntimeError("This method requires a valid operation instance");let n=t.topology==null?await(0, al.abortable)(T6(t),e.options):t.topology,s=e.session,o;if(s==null)o=Symbol(),s=t.startSession({owner:o,explicit:false});else {if(s.hasEnded)throw new it.MongoExpiredSessionError("Use of expired sessions is not permitted");if(s.snapshotEnabled&&!n.capabilities.supportsSnapshotReads)throw new it.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");if(s.client!==t)throw new it.MongoInvalidArgumentError("ClientSession must be from the same MongoClient")}e.session??=s;let i=e.readPreference??w6.ReadPreference.primary,u=!!s?.inTransaction(),a=e.hasAspect(Gr.Aspect.READ_OPERATION);if(u&&!i.equals(w6.ReadPreference.primary)&&(a||e.commandName==="runCommand"))throw new it.MongoTransactionError(`Read preference in a transaction must be primary, not: ${i.mode}`);s?.isPinned&&s.transaction.isCommitted&&!e.bypassPinningCheck&&s.unpin(),r??=jg.TimeoutContext.create({session:s,serverSelectionTimeoutMS:t.s.options.serverSelectionTimeoutMS,waitQueueTimeoutMS:t.s.options.waitQueueTimeoutMS,timeoutMS:e.options.timeoutMS});try{return await $g(e,{topology:n,timeoutContext:r,session:s,readPreference:i})}finally{s?.owner!=null&&s.owner===o&&await s.endSession();}}async function T6(t){if(t.topology==null){if(t.s.hasBeenClosed)throw new it.MongoNotConnectedError("Client must be connected before running operations");t.s.options.__skipPingOnConnect=true;try{if(await t.connect(),t.topology==null)throw new it.MongoRuntimeError("client.connect did not create a topology but also did not throw");return t.topology}finally{delete t.s.options.__skipPingOnConnect;}}return t.topology}async function $g(t,{topology:e,timeoutContext:r,session:n,readPreference:s}){let o;t.hasAspect(Gr.Aspect.MUST_SELECT_SAME_SERVER)?o=(0, _6.sameServerSelector)(t.server?.description):t instanceof zg.AggregateOperation&&t.hasWriteStage?o=(0, _6.secondaryWritableServerSelector)(e.commonWireVersion,s):o=s;let i=await e.selectServer(o,{session:n,operationName:t.commandName,timeoutContext:r,signal:t.options.signal}),u=t.hasAspect(Gr.Aspect.READ_OPERATION),a=t.hasAspect(Gr.Aspect.WRITE_OPERATION),c=n?.inTransaction()??false,h=e.s.options.retryReads&&!c&&t.canRetryRead,d=e.s.options.retryWrites&&!c&&(0, al.supportsRetryableWrites)(i)&&t.canRetryWrite,m=t.hasAspect(Gr.Aspect.RETRYABLE)&&n!=null&&(u&&h||a&&d);a&&d&&n!=null&&(t.options.willRetryWrite=true,n.incrementTransactionNumber());let E=m?r.csotEnabled()?1/0:2:1,p,_;for(let b=0;b<E;b++){if(p){if(a&&p.code===Vg)throw new it.MongoServerError({message:D6,errmsg:D6,originalError:p});if(t.hasAspect(Gr.Aspect.COMMAND_BATCHING)&&!t.canRetryWrite||a&&!(0, it.isRetryableWriteError)(p)||u&&!(0, it.isRetryableReadError)(p))throw p;if(p instanceof it.MongoNetworkError&&t.hasAspect(Gr.Aspect.CURSOR_CREATING)&&n!=null&&n.isPinned&&!n.inTransaction()&&n.unpin({force:true,forceClear:true}),i=await e.selectServer(o,{session:n,operationName:t.commandName,previousServer:_,signal:t.options.signal}),a&&!(0, al.supportsRetryableWrites)(i))throw new it.MongoUnexpectedServerResponseError("Selected server does not support retryable writes")}t.server=i;try{b>0&&t.hasAspect(Gr.Aspect.COMMAND_BATCHING)&&t.resetBatch();try{let j=await i.command(t,r);return t.handleOk(j)}catch(j){return t.handleError(j)}}catch(j){if(!(j instanceof it.MongoError))throw j;if(p!=null&&j.hasErrorLabel(it.MongoErrorLabel.NoWritesPerformed))throw p;_=i.description,p=j,r.clear();}}throw p??new it.MongoRuntimeError("Tried to propagate retryability error, but no error was found.")}});var b6=c(R1=>{g();Object.defineProperty(R1,"__esModule",{value:true});R1.ListDatabasesOperation=void 0;var Gg=ae(),B6=v(),Hg=Be(),cl=he(),F1=class extends Hg.CommandOperation{constructor(e,r){super(e,r),this.SERVER_COMMAND_RESPONSE_TYPE=Gg.MongoDBResponse,this.options=r??{},this.ns=new B6.MongoDBNamespace("admin","$cmd");}get commandName(){return "listDatabases"}buildCommandDocument(e,r){let n={listDatabases:1};return typeof this.options.nameOnly=="boolean"&&(n.nameOnly=this.options.nameOnly),this.options.filter&&(n.filter=this.options.filter),typeof this.options.authorizedDatabases=="boolean"&&(n.authorizedDatabases=this.options.authorizedDatabases),(0, B6.maxWireVersion)(e)>=9&&this.options.comment!==void 0&&(n.comment=this.options.comment),n}};R1.ListDatabasesOperation=F1;(0, cl.defineAspects)(F1,[cl.Aspect.READ_OPERATION,cl.Aspect.RETRYABLE]);});var ll=c(I1=>{g();Object.defineProperty(I1,"__esModule",{value:true});I1.RemoveUserOperation=void 0;var Kg=ae(),Yg=Be(),M6=he(),N1=class extends Yg.CommandOperation{constructor(e,r,n){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=Kg.MongoDBResponse,this.options=n,this.username=r;}get commandName(){return "dropUser"}buildCommandDocument(e){return {dropUser:this.username}}handleOk(e){return true}};I1.RemoveUserOperation=N1;(0, M6.defineAspects)(N1,[M6.Aspect.WRITE_OPERATION]);});var ni=c(Ls=>{g();Object.defineProperty(Ls,"__esModule",{value:true});Ls.RunCursorCommandOperation=Ls.RunCommandOperation=void 0;var F6=ae(),Xg=he(),v1=class extends Xg.AbstractOperation{constructor(e,r,n){super(n),this.SERVER_COMMAND_RESPONSE_TYPE=F6.MongoDBResponse,this.command=r,this.options=n,this.ns=e.withCollection("$cmd");}get commandName(){return "runCommand"}buildCommand(e,r){return this.command}buildOptions(e){return {...this.options,session:this.session,timeoutContext:e,signal:this.options.signal,readPreference:this.options.readPreference}}};Ls.RunCommandOperation=v1;var hl=class extends v1{constructor(){super(...arguments),this.SERVER_COMMAND_RESPONSE_TYPE=F6.CursorResponse;}handleOk(e){return e}};Ls.RunCursorCommandOperation=hl;});var R6=c(P1=>{g();Object.defineProperty(P1,"__esModule",{value:true});P1.ValidateCollectionOperation=void 0;var Jg=ae(),dl=B(),Qg=Be(),fl=class extends Qg.CommandOperation{constructor(e,r,n){super(e.s.db,n),this.SERVER_COMMAND_RESPONSE_TYPE=Jg.MongoDBResponse,this.options=n,this.collectionName=r;}get commandName(){return "validate"}buildCommandDocument(e,r){return {validate:this.collectionName,...Object.fromEntries(Object.entries(this.options).filter(n=>n[0]!=="session"))}}handleOk(e){let r=super.handleOk(e);if(r.result!=null&&typeof r.result!="string")throw new dl.MongoUnexpectedServerResponseError("Error with validation data");if(r.result!=null&&r.result.match(/exception|corrupt/)!=null)throw new dl.MongoUnexpectedServerResponseError(`Invalid collection ${this.collectionName}`);if(r.valid!=null&&!r.valid)throw new dl.MongoUnexpectedServerResponseError(`Invalid collection ${this.collectionName}`);return e}};P1.ValidateCollectionOperation=fl;});var pl=c(L1=>{g();Object.defineProperty(L1,"__esModule",{value:true});L1.Admin=void 0;var Zg=te(),x1=$e(),eA=b6(),tA=ll(),rA=ni(),nA=R6(),sA=v(),ml=class{constructor(e){this.s={db:e};}async command(e,r){return await(0, x1.executeOperation)(this.s.db.client,new rA.RunCommandOperation(new sA.MongoDBNamespace("admin"),e,{...(0, Zg.resolveBSONOptions)(r),session:r?.session,readPreference:r?.readPreference,timeoutMS:r?.timeoutMS??this.s.db.timeoutMS}))}async buildInfo(e){return await this.command({buildinfo:1},e)}async serverInfo(e){return await this.command({buildinfo:1},e)}async serverStatus(e){return await this.command({serverStatus:1},e)}async ping(e){return await this.command({ping:1},e)}async removeUser(e,r){return await(0, x1.executeOperation)(this.s.db.client,new tA.RemoveUserOperation(this.s.db,e,{dbName:"admin",...r}))}async validateCollection(e,r={}){return await(0, x1.executeOperation)(this.s.db.client,new nA.ValidateCollectionOperation(this,e,r))}async listDatabases(e){return await(0, x1.executeOperation)(this.s.db.client,new eA.ListDatabasesOperation(this.s.db,{timeoutMS:this.s.db.timeoutMS,...e}))}async replSetGetStatus(e){return await this.command({replSetGetStatus:1},e)}};L1.Admin=ml;});var gl=c(Hr=>{g();Object.defineProperty(Hr,"__esModule",{value:true});Hr.DeleteManyOperation=Hr.DeleteOneOperation=Hr.DeleteOperation=void 0;Hr.makeDeleteStatement=El;var oA=ae(),si=B(),iA=v(),uA=Be(),mt=he(),ks=class extends uA.CommandOperation{constructor(e,r,n){super(void 0,n),this.SERVER_COMMAND_RESPONSE_TYPE=oA.MongoDBResponse,this.options=n,this.ns=e,this.statements=r;}get commandName(){return "delete"}get canRetryWrite(){return super.canRetryWrite===false?false:this.statements.every(e=>e.limit!=null?e.limit>0:true)}buildCommandDocument(e,r){let n=this.options,s=typeof n.ordered=="boolean"?n.ordered:true,o={delete:this.ns.collection,deletes:this.statements,ordered:s};if(n.let&&(o.let=n.let),n.comment!==void 0&&(o.comment=n.comment),this.writeConcern&&this.writeConcern.w===0&&(0, iA.maxWireVersion)(e)<9&&this.statements.find(u=>u.hint))throw new si.MongoCompatibilityError("hint for the delete command is only supported on MongoDB 4.4+");return o}};Hr.DeleteOperation=ks;var k1=class extends ks{constructor(e,r,n){super(e,[El(r,{...n,limit:1})],n);}handleOk(e){let r=super.handleOk(e);if(this.explain)return r;if(r.code)throw new si.MongoServerError(r);if(r.writeErrors)throw new si.MongoServerError(r.writeErrors[0]);return {acknowledged:this.writeConcern?.w!==0,deletedCount:r.n}}};Hr.DeleteOneOperation=k1;var q1=class extends ks{constructor(e,r,n){super(e,[El(r,n)],n);}handleOk(e){let r=super.handleOk(e);if(this.explain)return r;if(r.code)throw new si.MongoServerError(r);if(r.writeErrors)throw new si.MongoServerError(r.writeErrors[0]);return {acknowledged:this.writeConcern?.w!==0,deletedCount:r.n}}};Hr.DeleteManyOperation=q1;function El(t,e){let r={q:t,limit:typeof e.limit=="number"?e.limit:0};return e.collation&&(r.collation=e.collation),e.hint&&(r.hint=e.hint),r}(0, mt.defineAspects)(ks,[mt.Aspect.RETRYABLE,mt.Aspect.WRITE_OPERATION,mt.Aspect.SUPPORTS_RAW_DATA]);(0, mt.defineAspects)(k1,[mt.Aspect.RETRYABLE,mt.Aspect.WRITE_OPERATION,mt.Aspect.EXPLAINABLE,mt.Aspect.SKIP_COLLATION,mt.Aspect.SUPPORTS_RAW_DATA]);(0, mt.defineAspects)(q1,[mt.Aspect.WRITE_OPERATION,mt.Aspect.EXPLAINABLE,mt.Aspect.SKIP_COLLATION,mt.Aspect.SUPPORTS_RAW_DATA]);});var Al=c(qs=>{g();Object.defineProperty(qs,"__esModule",{value:true});qs.InsertOneOperation=qs.InsertOperation=void 0;var aA=ae(),N6=B(),cA=v(),lA=Be(),pn=he(),oi=class extends lA.CommandOperation{constructor(e,r,n){super(void 0,n),this.SERVER_COMMAND_RESPONSE_TYPE=aA.MongoDBResponse,this.options={...n,checkKeys:n.checkKeys??false},this.ns=e,this.documents=r;}get commandName(){return "insert"}buildCommandDocument(e,r){let n=this.options??{},s=typeof n.ordered=="boolean"?n.ordered:true,o={insert:this.ns.collection,documents:this.documents,ordered:s};return typeof n.bypassDocumentValidation=="boolean"&&(o.bypassDocumentValidation=n.bypassDocumentValidation),n.comment!==void 0&&(o.comment=n.comment),o}};qs.InsertOperation=oi;var U1=class extends oi{constructor(e,r,n){super(e.s.namespace,[(0, cA.maybeAddIdToDocuments)(e,r,n)],n);}handleOk(e){let r=super.handleOk(e);if(r.code)throw new N6.MongoServerError(r);if(r.writeErrors)throw new N6.MongoServerError(r.writeErrors[0]);return {acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id}}};qs.InsertOneOperation=U1;(0, pn.defineAspects)(oi,[pn.Aspect.RETRYABLE,pn.Aspect.WRITE_OPERATION,pn.Aspect.SUPPORTS_RAW_DATA]);(0, pn.defineAspects)(U1,[pn.Aspect.RETRYABLE,pn.Aspect.WRITE_OPERATION,pn.Aspect.SUPPORTS_RAW_DATA]);});var js=c(Cl=>{g();Object.defineProperty(Cl,"__esModule",{value:true});Cl.formatSort=yA;var I6=B();function Us(t=1){let e=`${t}`.toLowerCase();if(hA(t))return t;switch(e){case "ascending":case "asc":case "1":return 1;case "descending":case "desc":case "-1":return -1;default:throw new I6.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(t)}`)}}function hA(t){return typeof t=="object"&&t!=null&&"$meta"in t&&typeof t.$meta=="string"}function dA(t){if(Array.isArray(t)&&t.length===2)try{return Us(t[1]),!0}catch{return false}return false}function fA(t){return Array.isArray(t)&&Array.isArray(t[0])}function mA(t){return t instanceof Map&&t.size>0}function pA(t){return Array.isArray(t)}function EA(t){return new Map([[`${t[0]}`,Us([t[1]])]])}function gA(t){let e=t.map(([r,n])=>[`${r}`,Us(n)]);return new Map(e)}function AA(t){let e=t.map(r=>[`${r}`,1]);return new Map(e)}function CA(t){let e=Object.entries(t).map(([r,n])=>[`${r}`,Us(n)]);return new Map(e)}function SA(t){let e=Array.from(t).map(([r,n])=>[`${r}`,Us(n)]);return new Map(e)}function yA(t,e){if(t!=null){if(typeof t=="string")return new Map([[t,Us(e)]]);if(typeof t!="object")throw new I6.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(t)} Sort must be a valid object`);if(!pA(t))return mA(t)?SA(t):Object.keys(t).length?CA(t):void 0;if(t.length)return fA(t)?gA(t):dA(t)?EA(t):AA(t)}}});var yl=c(lr=>{g();Object.defineProperty(lr,"__esModule",{value:true});lr.ReplaceOneOperation=lr.UpdateManyOperation=lr.UpdateOneOperation=lr.UpdateOperation=void 0;lr.makeUpdateStatement=W1;var OA=ae(),hr=B(),wA=js(),Sl=v(),_A=Be(),Ie=he(),os=class extends _A.CommandOperation{constructor(e,r,n){super(void 0,n),this.SERVER_COMMAND_RESPONSE_TYPE=OA.MongoDBResponse,this.options=n,this.ns=e,this.statements=r;}get commandName(){return "update"}get canRetryWrite(){return super.canRetryWrite===false?false:this.statements.every(e=>e.multi==null||e.multi===false)}buildCommandDocument(e,r){let n=this.options,s={update:this.ns.collection,updates:this.statements,ordered:n.ordered??true};return typeof n.bypassDocumentValidation=="boolean"&&(s.bypassDocumentValidation=n.bypassDocumentValidation),n.let&&(s.let=n.let),n.comment!==void 0&&(s.comment=n.comment),s}};lr.UpdateOperation=os;var j1=class extends os{constructor(e,r,n,s){if(super(e,[W1(r,n,{...s,multi:false})],s),!(0, Sl.hasAtomicOperators)(n,s))throw new hr.MongoInvalidArgumentError("Update document requires atomic operators")}handleOk(e){let r=super.handleOk(e);if(this.explain!=null)return r;if(r.code)throw new hr.MongoServerError(r);if(r.writeErrors)throw new hr.MongoServerError(r.writeErrors[0]);return {acknowledged:this.writeConcern?.w!==0,modifiedCount:r.nModified??r.n,upsertedId:Array.isArray(r.upserted)&&r.upserted.length>0?r.upserted[0]._id:null,upsertedCount:Array.isArray(r.upserted)&&r.upserted.length?r.upserted.length:0,matchedCount:Array.isArray(r.upserted)&&r.upserted.length>0?0:r.n}}};lr.UpdateOneOperation=j1;var z1=class extends os{constructor(e,r,n,s){if(super(e,[W1(r,n,{...s,multi:true})],s),!(0, Sl.hasAtomicOperators)(n,s))throw new hr.MongoInvalidArgumentError("Update document requires atomic operators")}handleOk(e){let r=super.handleOk(e);if(this.explain!=null)return r;if(r.code)throw new hr.MongoServerError(r);if(r.writeErrors)throw new hr.MongoServerError(r.writeErrors[0]);return {acknowledged:this.writeConcern?.w!==0,modifiedCount:r.nModified??r.n,upsertedId:Array.isArray(r.upserted)&&r.upserted.length>0?r.upserted[0]._id:null,upsertedCount:Array.isArray(r.upserted)&&r.upserted.length?r.upserted.length:0,matchedCount:Array.isArray(r.upserted)&&r.upserted.length>0?0:r.n}}};lr.UpdateManyOperation=z1;var V1=class extends os{constructor(e,r,n,s){if(super(e,[W1(r,n,{...s,multi:false})],s),(0, Sl.hasAtomicOperators)(n))throw new hr.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}handleOk(e){let r=super.handleOk(e);if(this.explain!=null)return r;if(r.code)throw new hr.MongoServerError(r);if(r.writeErrors)throw new hr.MongoServerError(r.writeErrors[0]);return {acknowledged:this.writeConcern?.w!==0,modifiedCount:r.nModified??r.n,upsertedId:Array.isArray(r.upserted)&&r.upserted.length>0?r.upserted[0]._id:null,upsertedCount:Array.isArray(r.upserted)&&r.upserted.length?r.upserted.length:0,matchedCount:Array.isArray(r.upserted)&&r.upserted.length>0?0:r.n}}};lr.ReplaceOneOperation=V1;function W1(t,e,r){if(t==null||typeof t!="object")throw new hr.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(e==null||typeof e!="object")throw new hr.MongoInvalidArgumentError("Document must be a valid JavaScript object");let n={q:t,u:e};return typeof r.upsert=="boolean"&&(n.upsert=r.upsert),r.multi&&(n.multi=r.multi),r.hint&&(n.hint=r.hint),r.arrayFilters&&(n.arrayFilters=r.arrayFilters),r.collation&&(n.collation=r.collation),!r.multi&&r.sort!=null&&(n.sort=(0, wA.formatSort)(r.sort)),n}(0, Ie.defineAspects)(os,[Ie.Aspect.RETRYABLE,Ie.Aspect.WRITE_OPERATION,Ie.Aspect.SKIP_COLLATION,Ie.Aspect.SUPPORTS_RAW_DATA]);(0, Ie.defineAspects)(j1,[Ie.Aspect.RETRYABLE,Ie.Aspect.WRITE_OPERATION,Ie.Aspect.EXPLAINABLE,Ie.Aspect.SKIP_COLLATION,Ie.Aspect.SUPPORTS_RAW_DATA]);(0, Ie.defineAspects)(z1,[Ie.Aspect.WRITE_OPERATION,Ie.Aspect.EXPLAINABLE,Ie.Aspect.SKIP_COLLATION,Ie.Aspect.SUPPORTS_RAW_DATA]);(0, Ie.defineAspects)(V1,[Ie.Aspect.RETRYABLE,Ie.Aspect.WRITE_OPERATION,Ie.Aspect.SKIP_COLLATION,Ie.Aspect.SUPPORTS_RAW_DATA]);});var ci=c(ne=>{g();Object.defineProperty(ne,"__esModule",{value:true});ne.BulkOperationBase=ne.FindOperators=ne.MongoBulkWriteError=ne.WriteError=ne.WriteConcernError=ne.BulkWriteResult=ne.Batch=ne.BatchType=void 0;ne.mergeBatchResults=wl;var x6=te(),qe=B(),ui=gl(),DA=$e(),TA=Al(),is=yl(),BA=ke(),dr=v(),v6=dt();ne.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});var Ol=class{constructor(e,r){this.originalZeroIndex=r,this.currentIndex=0,this.originalIndexes=[],this.batchType=e,this.operations=[],this.size=0,this.sizeBytes=0;}};ne.Batch=Ol;var En=class t{static generateIdMap(e){let r={};for(let n of e)r[n.index]=n._id;return r}constructor(e,r){this.result=e,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=t.generateIdMap(this.result.upserted),this.insertedIds=t.generateIdMap(this.getSuccessfullyInsertedIds(e,r)),Object.defineProperty(this,"result",{value:this.result,enumerable:false});}get ok(){return this.result.ok}getSuccessfullyInsertedIds(e,r){return e.writeErrors.length===0?e.insertedIds:r?e.insertedIds.slice(0,e.writeErrors[0].index):e.insertedIds.filter(({index:n})=>!e.writeErrors.some(s=>n===s.index))}getUpsertedIdAt(e){return this.result.upserted[e]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(e){return e<this.result.writeErrors.length?this.result.writeErrors[e]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length!==0){if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];{let e="";for(let r=0;r<this.result.writeConcernErrors.length;r++){let n=this.result.writeConcernErrors[r];e=e+n.errmsg,r===0&&(e=e+" and ");}return new zs({errmsg:e,code:qe.MONGODB_ERROR_CODES.WriteConcernTimeout})}}}toString(){return `BulkWriteResult(${x6.EJSON.stringify(this.result)})`}isOk(){return this.result.ok===1}};ne.BulkWriteResult=En;var zs=class{constructor(e){this.serverError=e;}get code(){return this.serverError.code}get errmsg(){return this.serverError.errmsg}get errInfo(){return this.serverError.errInfo}toJSON(){return this.serverError}toString(){return `WriteConcernError(${this.errmsg})`}};ne.WriteConcernError=zs;var ai=class{constructor(e){this.err=e;}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())})`}};ne.WriteError=ai;function wl(t,e,r,n){if(r?n=r:n&&n.result&&(n=n.result),n==null)return;if(n.ok===0&&e.ok===1){e.ok=0;let o={index:0,code:n.code||0,errmsg:n.message,errInfo:n.errInfo,op:t.operations[0]};e.writeErrors.push(new ai(o));return}else if(n.ok===0&&e.ok===0)return;L6(t)&&n.n&&(e.nInserted=e.nInserted+n.n),Tl(t)&&n.n&&(e.nRemoved=e.nRemoved+n.n);let s=0;if(Array.isArray(n.upserted)){s=n.upserted.length;for(let o=0;o<n.upserted.length;o++)e.upserted.push({index:n.upserted[o].index+t.originalZeroIndex,_id:n.upserted[o]._id});}else n.upserted&&(s=1,e.upserted.push({index:t.originalZeroIndex,_id:n.upserted}));if(Dl(t)&&n.n){let o=n.nModified;e.nUpserted=e.nUpserted+s,e.nMatched=e.nMatched+(n.n-s),typeof o=="number"?e.nModified=e.nModified+o:e.nModified=0;}if(Array.isArray(n.writeErrors))for(let o=0;o<n.writeErrors.length;o++){let i={index:t.originalIndexes[n.writeErrors[o].index],code:n.writeErrors[o].code,errmsg:n.writeErrors[o].errmsg,errInfo:n.writeErrors[o].errInfo,op:t.operations[n.writeErrors[o].index]};e.writeErrors.push(new ai(i));}n.writeConcernError&&e.writeConcernErrors.push(new zs(n.writeConcernError));}async function P6(t,e){if(t.s.batches.length===0)return new En(t.s.bulkResult,t.isOrdered);for(let n of t.s.batches){let s=(0, dr.resolveOptions)(t,{...e,ordered:t.isOrdered});s.bypassDocumentValidation!==true&&delete s.bypassDocumentValidation,t.s.bypassDocumentValidation===true&&(s.bypassDocumentValidation=true),t.s.checkKeys===false&&(s.checkKeys=false),s.retryWrites&&(Dl(n)&&(s.retryWrites=s.retryWrites&&!n.operations.some(c=>c.multi)),Tl(n)&&(s.retryWrites=s.retryWrites&&!n.operations.some(c=>c.limit===0)));let o=L6(n)?new TA.InsertOperation(t.s.namespace,n.operations,s):Dl(n)?new is.UpdateOperation(t.s.namespace,n.operations,s):Tl(n)?new ui.DeleteOperation(t.s.namespace,n.operations,s):null;if(o==null)throw new qe.MongoRuntimeError(`Unknown batchType: ${n.batchType}`);let i=null,u;try{u=await(0,DA.executeOperation)(t.s.collection.client,o,s.timeoutContext);}catch(c){i=c;}if(i!=null)if(i instanceof qe.MongoWriteConcernError){wl(n,t.s.bulkResult,i,u);let c=new En(t.s.bulkResult,t.isOrdered);throw new us({message:i.result.writeConcernError.errmsg,code:i.result.writeConcernError.code},c)}else throw new us(i,new En(t.s.bulkResult,t.isOrdered));wl(n,t.s.bulkResult,i,u);let a=new En(t.s.bulkResult,t.isOrdered);t.handleWriteError(a);}t.s.batches.length=0;let r=new En(t.s.bulkResult,t.isOrdered);return t.handleWriteError(r),r}var us=class extends qe.MongoServerError{constructor(e,r){super(e),this.writeErrors=[],e instanceof zs?this.err=e:e instanceof Error||(this.message=e.message,this.code=e.code,this.writeErrors=e.writeErrors??[]),this.result=r,Object.assign(this,e);}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}};ne.MongoBulkWriteError=us;var $1=class{constructor(e){this.bulkOperation=e;}update(e){let r=ii(this.bulkOperation);return this.bulkOperation.addToOperationsList(ne.BatchType.UPDATE,(0, is.makeUpdateStatement)(r.selector,e,{...r,multi:true}))}updateOne(e){if(!(0, dr.hasAtomicOperators)(e,this.bulkOperation.bsonOptions))throw new qe.MongoInvalidArgumentError("Update document requires atomic operators");let r=ii(this.bulkOperation);return this.bulkOperation.addToOperationsList(ne.BatchType.UPDATE,(0, is.makeUpdateStatement)(r.selector,e,{...r,multi:false}))}replaceOne(e){if((0, dr.hasAtomicOperators)(e))throw new qe.MongoInvalidArgumentError("Replacement document must not use atomic operators");let r=ii(this.bulkOperation);return this.bulkOperation.addToOperationsList(ne.BatchType.UPDATE,(0, is.makeUpdateStatement)(r.selector,e,{...r,multi:false}))}deleteOne(){let e=ii(this.bulkOperation);return this.bulkOperation.addToOperationsList(ne.BatchType.DELETE,(0, ui.makeDeleteStatement)(e.selector,{...e,limit:1}))}delete(){let e=ii(this.bulkOperation);return this.bulkOperation.addToOperationsList(ne.BatchType.DELETE,(0, ui.makeDeleteStatement)(e.selector,{...e,limit:0}))}upsert(){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.upsert=true,this}collation(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.collation=e,this}arrayFilters(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.arrayFilters=e,this}hint(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.hint=e,this}};ne.FindOperators=$1;var _l=class{constructor(e,r,n){this.collection=e,this.isOrdered=n;let s=(0, dr.getTopology)(e);r=r??{};let o=e.s.namespace,i=false,u=void 0,a=s.lastHello(),c=!!(s.s.options&&s.s.options.autoEncrypter),h=a&&a.maxBsonObjectSize?a.maxBsonObjectSize:1024*1024*16,d=c?1024*1024*2:h,m=a&&a.maxWriteBatchSize?a.maxWriteBatchSize:1e3,E=(m-1).toString(10).length+2,p=Object.assign({},r);p=(0, dr.applyRetryableWrites)(p,e.db);let _={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};this.s={bulkResult:_,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:v6.WriteConcern.fromOptions(r),maxBsonObjectSize:h,maxBatchSizeBytes:d,maxWriteBatchSize:m,maxKeySize:E,namespace:o,topology:s,options:p,bsonOptions:(0, x6.resolveBSONOptions)(r),currentOp:u,executed:i,collection:e,err:void 0,checkKeys:typeof r.checkKeys=="boolean"?r.checkKeys:false},r.bypassDocumentValidation===true&&(this.s.bypassDocumentValidation=true);}insert(e){return (0, dr.maybeAddIdToDocuments)(this.collection,e,{forceServerObjectId:this.shouldForceServerObjectId()}),this.addToOperationsList(ne.BatchType.INSERT,e)}find(e){if(!e)throw new qe.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:e},new $1(this)}raw(e){if(e==null||typeof e!="object")throw new qe.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in e){let r=this.shouldForceServerObjectId(),n=e.insertOne&&e.insertOne.document==null?e.insertOne:e.insertOne.document;return (0, dr.maybeAddIdToDocuments)(this.collection,n,{forceServerObjectId:r}),this.addToOperationsList(ne.BatchType.INSERT,n)}if("replaceOne"in e||"updateOne"in e||"updateMany"in e){if("replaceOne"in e){if("q"in e.replaceOne)throw new qe.MongoInvalidArgumentError("Raw operations are not allowed");let r=(0, is.makeUpdateStatement)(e.replaceOne.filter,e.replaceOne.replacement,{...e.replaceOne,multi:false});if((0, dr.hasAtomicOperators)(r.u))throw new qe.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(ne.BatchType.UPDATE,r)}if("updateOne"in e){if("q"in e.updateOne)throw new qe.MongoInvalidArgumentError("Raw operations are not allowed");let r=(0, is.makeUpdateStatement)(e.updateOne.filter,e.updateOne.update,{...e.updateOne,multi:false});if(!(0, dr.hasAtomicOperators)(r.u,this.bsonOptions))throw new qe.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(ne.BatchType.UPDATE,r)}if("updateMany"in e){if("q"in e.updateMany)throw new qe.MongoInvalidArgumentError("Raw operations are not allowed");let r=(0, is.makeUpdateStatement)(e.updateMany.filter,e.updateMany.update,{...e.updateMany,multi:true});if(!(0, dr.hasAtomicOperators)(r.u,this.bsonOptions))throw new qe.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(ne.BatchType.UPDATE,r)}}if("deleteOne"in e){if("q"in e.deleteOne)throw new qe.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(ne.BatchType.DELETE,(0, ui.makeDeleteStatement)(e.deleteOne.filter,{...e.deleteOne,limit:1}))}if("deleteMany"in e){if("q"in e.deleteMany)throw new qe.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(ne.BatchType.DELETE,(0, ui.makeDeleteStatement)(e.deleteMany.filter,{...e.deleteMany,limit:0}))}throw new qe.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get length(){return this.s.currentIndex}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){let e=[...this.s.batches];return this.isOrdered?this.s.currentBatch&&e.push(this.s.currentBatch):(this.s.currentInsertBatch&&e.push(this.s.currentInsertBatch),this.s.currentUpdateBatch&&e.push(this.s.currentUpdateBatch),this.s.currentRemoveBatch&&e.push(this.s.currentRemoveBatch)),e}async execute(e={}){if(this.s.executed)throw new qe.MongoBatchReExecutionError;let r=v6.WriteConcern.fromOptions(e);if(r&&(this.s.writeConcern=r),this.isOrdered?this.s.currentBatch&&this.s.batches.push(this.s.currentBatch):(this.s.currentInsertBatch&&this.s.batches.push(this.s.currentInsertBatch),this.s.currentUpdateBatch&&this.s.batches.push(this.s.currentUpdateBatch),this.s.currentRemoveBatch&&this.s.batches.push(this.s.currentRemoveBatch)),this.s.batches.length===0)throw new qe.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=true;let n=(0, dr.resolveOptions)(this.collection,{...this.s.options,...e});return n.timeoutContext??=BA.TimeoutContext.create({session:n.session,timeoutMS:n.timeoutMS,serverSelectionTimeoutMS:this.collection.client.s.options.serverSelectionTimeoutMS,waitQueueTimeoutMS:this.collection.client.s.options.waitQueueTimeoutMS}),n.session==null?await this.collection.client.withSession({explicit:false},async s=>await P6(this,{...n,session:s})):await P6(this,{...n})}handleWriteError(e){if(this.s.bulkResult.writeErrors.length>0){let n=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";throw new us({message:n,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},e)}let r=e.getWriteConcernError();if(r)throw new us(r,e)}shouldForceServerObjectId(){return this.s.options.forceServerObjectId===true||this.s.collection.db.options?.forceServerObjectId===true}};ne.BulkOperationBase=_l;function L6(t){return t.batchType===ne.BatchType.INSERT}function Dl(t){return t.batchType===ne.BatchType.UPDATE}function Tl(t){return t.batchType===ne.BatchType.DELETE}function ii(t){let{currentOp:e}=t.s;return t.s.currentOp=void 0,e||(e={}),e}});var bl=c(H1=>{g();Object.defineProperty(H1,"__esModule",{value:true});H1.OrderedBulkOperation=void 0;var bA=te(),k6=B(),G1=ci(),Bl=class extends G1.BulkOperationBase{constructor(e,r){super(e,r,true);}addToOperationsList(e,r){let n=bA.calculateObjectSize(r,{checkKeys:false,ignoreUndefined:false});if(n>=this.s.maxBsonObjectSize)throw new k6.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);this.s.currentBatch==null&&(this.s.currentBatch=new G1.Batch(e,this.s.currentIndex));let s=this.s.maxKeySize;if((this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+s+n>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new G1.Batch(e,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0),e===G1.BatchType.INSERT&&this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:r._id}),Array.isArray(r))throw new k6.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(r),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=s+n,this.s.currentIndex+=1,this}};H1.OrderedBulkOperation=Bl;});var Fl=c(K1=>{g();Object.defineProperty(K1,"__esModule",{value:true});K1.UnorderedBulkOperation=void 0;var MA=te(),q6=B(),Kr=ci(),Ml=class extends Kr.BulkOperationBase{constructor(e,r){super(e,r,false);}handleWriteError(e){if(!this.s.batches.length)return super.handleWriteError(e)}addToOperationsList(e,r){let n=MA.calculateObjectSize(r,{checkKeys:false,ignoreUndefined:false});if(n>=this.s.maxBsonObjectSize)throw new q6.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);this.s.currentBatch=void 0,e===Kr.BatchType.INSERT?this.s.currentBatch=this.s.currentInsertBatch:e===Kr.BatchType.UPDATE?this.s.currentBatch=this.s.currentUpdateBatch:e===Kr.BatchType.DELETE&&(this.s.currentBatch=this.s.currentRemoveBatch);let s=this.s.maxKeySize;if(this.s.currentBatch==null&&(this.s.currentBatch=new Kr.Batch(e,this.s.currentIndex)),(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+s+n>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new Kr.Batch(e,this.s.currentIndex)),Array.isArray(r))throw new q6.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.operations.push(r),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,e===Kr.BatchType.INSERT?(this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:r._id})):e===Kr.BatchType.UPDATE?this.s.currentUpdateBatch=this.s.currentBatch:e===Kr.BatchType.DELETE&&(this.s.currentRemoveBatch=this.s.currentBatch),this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=s+n,this}};K1.UnorderedBulkOperation=Ml;});var Cn=c(X=>{g();Object.defineProperty(X,"__esModule",{value:true});X.MongoLogger=X.MongoLoggableComponent=X.SEVERITY_LEVEL_MAP=X.DEFAULT_MAX_DOCUMENT_LENGTH=X.SeverityLevel=void 0;X.parseSeverityFromString=vl;X.createStdioLogger=as;X.stringifyWithMaxLen=An;X.defaultLogTransform=z6;var U6=a("util"),j6=te(),ge=Ne(),cs=v();X.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});X.DEFAULT_MAX_DOCUMENT_LENGTH=1e3;var Il=class extends Map{constructor(e){let r=[];for(let[n,s]of e)r.push([s,n]);r.push(...e),super(r);}getNumericSeverityLevel(e){return this.get(e)}getSeverityLevelName(e){return this.get(e)}};X.SEVERITY_LEVEL_MAP=new Il([[X.SeverityLevel.OFF,-1/0],[X.SeverityLevel.EMERGENCY,0],[X.SeverityLevel.ALERT,1],[X.SeverityLevel.CRITICAL,2],[X.SeverityLevel.ERROR,3],[X.SeverityLevel.WARNING,4],[X.SeverityLevel.NOTICE,5],[X.SeverityLevel.INFORMATIONAL,6],[X.SeverityLevel.DEBUG,7],[X.SeverityLevel.TRACE,8]]);X.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection",CLIENT:"client"});function vl(t){let e=Object.values(X.SeverityLevel),r=t?.toLowerCase();return r!=null&&e.includes(r)?r:null}function as(t){return {write:(0, U6.promisify)((e,r)=>{let n=(0, U6.inspect)(e,{compact:true,breakLength:1/0});t.write(`${n}
9
+ `,"utf-8",r);})}}function FA({MONGODB_LOG_PATH:t},{mongodbLogPath:e}){return typeof e=="string"&&/^stderr$/i.test(e)?{mongodbLogPath:as(process.stderr),mongodbLogPathIsStdErr:true}:typeof e=="string"&&/^stdout$/i.test(e)?{mongodbLogPath:as(process.stdout),mongodbLogPathIsStdErr:false}:typeof e=="object"&&typeof e?.write=="function"?{mongodbLogPath:e,mongodbLogPathIsStdErr:false}:t&&/^stderr$/i.test(t)?{mongodbLogPath:as(process.stderr),mongodbLogPathIsStdErr:true}:t&&/^stdout$/i.test(t)?{mongodbLogPath:as(process.stdout),mongodbLogPathIsStdErr:false}:{mongodbLogPath:as(process.stderr),mongodbLogPathIsStdErr:true}}function Vs(t,e,r){return vl(t)??vl(e)??r}function RA(t,e){let r=X.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(t),n=X.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(e);return r<n?-1:r>n?1:0}function An(t,e,r={}){let n="",s=0,o=function(u,a){if(!(s>=e)){if(u==="")return s+=1,a;if(s+=u.length+4,a==null)return a;switch(typeof a){case "string":s+=a.length+2;break;case "number":case "bigint":s+=String(a).length;break;case "boolean":s+=a?4:5;break;case "object":if((0, cs.isUint8Array)(a))s+=22+a.byteLength+a.byteLength*.33+18|0;else if("_bsontype"in a){let c=a;switch(c._bsontype){case "Int32":s+=String(c.value).length;break;case "Double":s+=(c.value|0)===c.value?String(c.value).length+2:String(c.value).length;break;case "Long":s+=c.toString().length;break;case "ObjectId":s+=35;break;case "MaxKey":case "MinKey":s+=13;break;case "Binary":s+=22+a.position+a.position*.33+18|0;break;case "Timestamp":s+=19+String(c.t).length+5+String(c.i).length+2;break;case "Code":c.scope==null?s+=c.code.length+10+2:s+=c.code.length+10+11;break;case "BSONRegExp":s+=34+c.pattern.length+13+c.options.length+3;break}}}return a}};if(typeof t=="string")n=t;else if(typeof t=="function")n=t.name;else try{e!==0?n=j6.EJSON.stringify(t,o,0,r):n=j6.EJSON.stringify(t,r);}catch(i){n=`Extended JSON serialization failed with: ${i.message}`;}return e!==0&&n.length>e&&n.charCodeAt(e-1)!==n.codePointAt(e-1)&&(e--,e===0)?"":e!==0&&n.length>e?`${n.slice(0,e)}...`:n}function NA(t){let e=t;return e.toLog!==void 0&&typeof e.toLog=="function"}function Y1(t,e,r=X.DEFAULT_MAX_DOCUMENT_LENGTH){let{selector:n,operation:s,topologyDescription:o,message:i}=e;return t.selector=An(n,r),t.operation=s,t.topologyDescription=An(o,r),t.message=i,t}function Rl(t,e){t.commandName=e.commandName,t.requestId=e.requestId,t.driverConnectionId=e.connectionId;let{host:r,port:n}=cs.HostAddress.fromString(e.address).toHostPort();return t.serverHost=r,t.serverPort=n,e?.serviceId&&(t.serviceId=e.serviceId.toHexString()),t.databaseName=e.databaseName,t.serverConnectionId=e.serverConnectionId,t}function vt(t,e){let{host:r,port:n}=cs.HostAddress.fromString(e.address).toHostPort();return t.serverHost=r,t.serverPort=n,t}function gn(t,e){return t.topologyId=e.topologyId,t}function Nl(t,e){let{awaited:r,connectionId:n}=e;t.awaited=r,t.driverConnectionId=e.connectionId;let{host:s,port:o}=cs.HostAddress.fromString(n).toHostPort();return t.serverHost=s,t.serverPort=o,t}function z6(t,e=X.DEFAULT_MAX_DOCUMENT_LENGTH){let r=Object.create(null);switch(t.name){case ge.SERVER_SELECTION_STARTED:return r=Y1(r,t,e),r;case ge.SERVER_SELECTION_FAILED:return r=Y1(r,t,e),r.failure=t.failure?.message,r;case ge.SERVER_SELECTION_SUCCEEDED:return r=Y1(r,t,e),r.serverHost=t.serverHost,r.serverPort=t.serverPort,r;case ge.WAITING_FOR_SUITABLE_SERVER:return r=Y1(r,t,e),r.remainingTimeMS=t.remainingTimeMS,r;case ge.COMMAND_STARTED:return r=Rl(r,t),r.message="Command started",r.command=An(t.command,e,{relaxed:true}),r.databaseName=t.databaseName,r;case ge.COMMAND_SUCCEEDED:return r=Rl(r,t),r.message="Command succeeded",r.durationMS=t.duration,r.reply=An(t.reply,e,{relaxed:true}),r;case ge.COMMAND_FAILED:return r=Rl(r,t),r.message="Command failed",r.durationMS=t.duration,r.failure=t.failure?.message??"(redacted)",r;case ge.CONNECTION_POOL_CREATED:if(r=vt(r,t),r.message="Connection pool created",t.options){let{maxIdleTimeMS:n,minPoolSize:s,maxPoolSize:o,maxConnecting:i,waitQueueTimeoutMS:u}=t.options;r={...r,maxIdleTimeMS:n,minPoolSize:s,maxPoolSize:o,maxConnecting:i,waitQueueTimeoutMS:u};}return r;case ge.CONNECTION_POOL_READY:return r=vt(r,t),r.message="Connection pool ready",r;case ge.CONNECTION_POOL_CLEARED:return r=vt(r,t),r.message="Connection pool cleared",t.serviceId?._bsontype==="ObjectId"&&(r.serviceId=t.serviceId?.toHexString()),r;case ge.CONNECTION_POOL_CLOSED:return r=vt(r,t),r.message="Connection pool closed",r;case ge.CONNECTION_CREATED:return r=vt(r,t),r.message="Connection created",r.driverConnectionId=t.connectionId,r;case ge.CONNECTION_READY:return r=vt(r,t),r.message="Connection ready",r.driverConnectionId=t.connectionId,r.durationMS=t.durationMS,r;case ge.CONNECTION_CLOSED:switch(r=vt(r,t),r.message="Connection closed",r.driverConnectionId=t.connectionId,t.reason){case "stale":r.reason="Connection became stale because the pool was cleared";break;case "idle":r.reason="Connection has been available but unused for longer than the configured max idle time";break;case "error":r.reason="An error occurred while using the connection",t.error&&(r.error=t.error);break;case "poolClosed":r.reason="Connection pool was closed";break;default:r.reason=`Unknown close reason: ${t.reason}`;}return r;case ge.CONNECTION_CHECK_OUT_STARTED:return r=vt(r,t),r.message="Connection checkout started",r;case ge.CONNECTION_CHECK_OUT_FAILED:switch(r=vt(r,t),r.message="Connection checkout failed",t.reason){case "poolClosed":r.reason="Connection pool was closed";break;case "timeout":r.reason="Wait queue timeout elapsed without a connection becoming available";break;case "connectionError":r.reason="An error occurred while trying to establish a new connection",t.error&&(r.error=t.error);break;default:r.reason=`Unknown close reason: ${t.reason}`;}return r.durationMS=t.durationMS,r;case ge.CONNECTION_CHECKED_OUT:return r=vt(r,t),r.message="Connection checked out",r.driverConnectionId=t.connectionId,r.durationMS=t.durationMS,r;case ge.CONNECTION_CHECKED_IN:return r=vt(r,t),r.message="Connection checked in",r.driverConnectionId=t.connectionId,r;case ge.SERVER_OPENING:return r=gn(r,t),r=vt(r,t),r.message="Starting server monitoring",r;case ge.SERVER_CLOSED:return r=gn(r,t),r=vt(r,t),r.message="Stopped server monitoring",r;case ge.SERVER_HEARTBEAT_STARTED:return r=gn(r,t),r=Nl(r,t),r.message="Server heartbeat started",r;case ge.SERVER_HEARTBEAT_SUCCEEDED:return r=gn(r,t),r=Nl(r,t),r.message="Server heartbeat succeeded",r.durationMS=t.duration,r.serverConnectionId=t.serverConnectionId,r.reply=An(t.reply,e,{relaxed:true}),r;case ge.SERVER_HEARTBEAT_FAILED:return r=gn(r,t),r=Nl(r,t),r.message="Server heartbeat failed",r.durationMS=t.duration,r.failure=t.failure?.message,r;case ge.TOPOLOGY_OPENING:return r=gn(r,t),r.message="Starting topology monitoring",r;case ge.TOPOLOGY_CLOSED:return r=gn(r,t),r.message="Stopped topology monitoring",r;case ge.TOPOLOGY_DESCRIPTION_CHANGED:return r=gn(r,t),r.message="Topology description changed",r.previousDescription=r.reply=An(t.previousDescription,e),r.newDescription=r.reply=An(t.newDescription,e),r;default:for(let[n,s]of Object.entries(t))s!=null&&(r[n]=s);}return r}var Pl=class{constructor(e){this.pendingLog=null,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=e.componentSeverities,this.maxDocumentLength=e.maxDocumentLength,this.logDestination=e.logDestination,this.logDestinationIsStdErr=e.logDestinationIsStdErr,this.severities=this.createLoggingSeverities();}createLoggingSeverities(){let e=Object();for(let r of Object.values(X.MongoLoggableComponent)){e[r]={};for(let n of Object.values(X.SeverityLevel))e[r][n]=RA(n,this.componentSeverities[r])<=0;}return e}turnOffSeverities(){for(let e of Object.values(X.MongoLoggableComponent)){this.componentSeverities[e]=X.SeverityLevel.OFF;for(let r of Object.values(X.SeverityLevel))this.severities[e][r]=false;}}logWriteFailureHandler(e){if(this.logDestinationIsStdErr){this.turnOffSeverities(),this.clearPendingLog();return}this.logDestination=as(process.stderr),this.logDestinationIsStdErr=true,this.clearPendingLog(),this.error(X.MongoLoggableComponent.CLIENT,{toLog:function(){return {message:"User input for mongodbLogPath is now invalid. Logging is halted.",error:e.message}}}),this.turnOffSeverities(),this.clearPendingLog();}clearPendingLog(){this.pendingLog=null;}willLog(e,r){return r===X.SeverityLevel.OFF?false:this.severities[e][r]}log(e,r,n){if(!this.willLog(r,e))return;let s={t:new Date,c:r,s:e};if(typeof n=="string"?s.message=n:typeof n=="object"&&(NA(n)?s={...s,...n.toLog()}:s={...s,...z6(n,this.maxDocumentLength)}),(0, cs.isPromiseLike)(this.pendingLog)){this.pendingLog=this.pendingLog.then(()=>this.logDestination.write(s)).then(this.clearPendingLog.bind(this),this.logWriteFailureHandler.bind(this));return}try{let o=this.logDestination.write(s);(0,cs.isPromiseLike)(o)&&(this.pendingLog=o.then(this.clearPendingLog.bind(this),this.logWriteFailureHandler.bind(this)));}catch(o){this.logWriteFailureHandler(o);}}static resolveOptions(e,r){let n=FA(e,r),s={...e,...r,mongodbLogPath:n.mongodbLogPath,mongodbLogPathIsStdErr:n.mongodbLogPathIsStdErr},o=Vs(s.mongodbLogComponentSeverities?.default,s.MONGODB_LOG_ALL,X.SeverityLevel.OFF);return {componentSeverities:{command:Vs(s.mongodbLogComponentSeverities?.command,s.MONGODB_LOG_COMMAND,o),topology:Vs(s.mongodbLogComponentSeverities?.topology,s.MONGODB_LOG_TOPOLOGY,o),serverSelection:Vs(s.mongodbLogComponentSeverities?.serverSelection,s.MONGODB_LOG_SERVER_SELECTION,o),connection:Vs(s.mongodbLogComponentSeverities?.connection,s.MONGODB_LOG_CONNECTION,o),client:Vs(s.mongodbLogComponentSeverities?.client,s.MONGODB_LOG_CLIENT,o),default:o},maxDocumentLength:s.mongodbLogMaxDocumentLength??(0, cs.parseUnsignedInteger)(s.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1e3,logDestination:s.mongodbLogPath,logDestinationIsStdErr:s.mongodbLogPathIsStdErr}}};X.MongoLogger=Pl;});var Pt=c(Ws=>{g();Object.defineProperty(Ws,"__esModule",{value:true});Ws.CancellationToken=Ws.TypedEventEmitter=void 0;var IA=a("events"),vA=Cn(),PA=v(),X1=class extends IA.EventEmitter{emitAndLog(e,...r){this.emit(e,...r),this.component&&this.mongoLogger?.debug(this.component,r[0]);}emitAndLogHeartbeat(e,r,n,...s){if(this.emit(e,...s),this.component){let o={topologyId:r,serverConnectionId:n??null,...s[0]};this.mongoLogger?.debug(this.component,o);}}emitAndLogCommand(e,r,n,s,...o){if(e&&this.emit(r,...o),s){let i={databaseName:n,...o[0]};this.mongoLogger?.debug(vA.MongoLoggableComponent.COMMAND,i);}}};Ws.TypedEventEmitter=X1;var xl=class extends X1{constructor(...e){super(...e),this.on("error",PA.noop);}};Ws.CancellationToken=xl;});var Ll=c(Z1=>{g();Object.defineProperty(Z1,"__esModule",{value:true});Z1.GetMoreOperation=void 0;var xA=ae(),V6=B(),LA=v(),J1=he(),Q1=class extends J1.AbstractOperation{constructor(e,r,n,s){super(s),this.SERVER_COMMAND_RESPONSE_TYPE=xA.CursorResponse,this.options=s,this.ns=e,this.cursorId=r,this.server=n;}get commandName(){return "getMore"}buildCommand(e){if(this.cursorId==null||this.cursorId.isZero())throw new V6.MongoRuntimeError("Unable to iterate cursor with no id");let r=this.ns.collection;if(r==null)throw new V6.MongoRuntimeError("A collection name must be determined before getMore");let n={getMore:this.cursorId,collection:r};return typeof this.options.batchSize=="number"&&(n.batchSize=Math.abs(this.options.batchSize)),typeof this.options.maxAwaitTimeMS=="number"&&(n.maxTimeMS=this.options.maxAwaitTimeMS),this.options.comment!==void 0&&(0, LA.maxWireVersion)(e)>=9&&(n.comment=this.options.comment),n}buildOptions(e){return {returnFieldSelector:null,documentsReturnedIn:"nextBatch",timeoutContext:e,...this.options}}handleOk(e){return e}};Z1.GetMoreOperation=Q1;(0, J1.defineAspects)(Q1,[J1.Aspect.READ_OPERATION,J1.Aspect.MUST_SELECT_SAME_SERVER]);});var W6=c(tu=>{g();Object.defineProperty(tu,"__esModule",{value:true});tu.KillCursorsOperation=void 0;var kA=ae(),qA=B(),kl=he(),eu=class extends kl.AbstractOperation{constructor(e,r,n,s){super(s),this.SERVER_COMMAND_RESPONSE_TYPE=kA.MongoDBResponse,this.ns=r,this.cursorId=e,this.server=n;}get commandName(){return "killCursors"}buildCommand(e,r){let n=this.ns.collection;if(n==null)throw new qA.MongoRuntimeError("A collection name must be determined before killCursors");return {killCursors:n,cursors:[this.cursorId]}}buildOptions(e){return {session:this.session,timeoutContext:e}}handleError(e){}};tu.KillCursorsOperation=eu;(0, kl.defineAspects)(eu,[kl.Aspect.MUST_SELECT_SAME_SERVER]);});var mr=c(fr=>{g();Object.defineProperty(fr,"__esModule",{value:true});fr.aws4=void 0;fr.getKerberos=UA;fr.getZstdLibrary=jA;fr.getAwsCredentialProvider=zA;fr.getGcpMetadata=VA;fr.getSnappy=WA;fr.getSocks=$A;fr.getMongoDBClientEncryption=HA;var Sn=B();function li(t){let e=t?{kModuleError:t}:{};return new Proxy(e,{get:(r,n)=>{if(n==="kModuleError")return t;throw t},set:()=>{throw t}})}function UA(){let t;try{t=a("kerberos");}catch(e){t=li(new Sn.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication",{cause:e,dependencyName:"kerberos"}));}return t}function jA(){let t;try{t=a("@mongodb-js/zstd");}catch(e){t=li(new Sn.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression",{cause:e,dependencyName:"zstd"}));}return t}function zA(){try{return a("@aws-sdk/credential-providers")}catch(t){return li(new Sn.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk.",{cause:t,dependencyName:"@aws-sdk/credential-providers"}))}}function VA(){try{return a("gcp-metadata")}catch(t){return li(new Sn.MongoMissingDependencyError("Optional module `gcp-metadata` not found. Please install it to enable getting gcp credentials via the official sdk.",{cause:t,dependencyName:"gcp-metadata"}))}}function WA(){try{return a("snappy")}catch(t){return {kModuleError:new Sn.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:t,dependencyName:"snappy"})}}}function $A(){try{return a("socks")}catch(t){return {kModuleError:new Sn.MongoMissingDependencyError("Optional module `socks` not found. Please install it to connections over a SOCKS5 proxy",{cause:t,dependencyName:"socks"})}}}fr.aws4=GA();function GA(){let t;try{t=a("aws4");}catch(e){t=li(new Sn.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication",{cause:e,dependencyName:"aws4"}));}return t}function HA(){let t=null;try{t=a("mongodb-client-encryption");}catch(e){return {kModuleError:new Sn.MongoMissingDependencyError("Optional module `mongodb-client-encryption` not found. Please install it to use auto encryption or ClientEncryption.",{cause:e,dependencyName:"mongodb-client-encryption"})}}return t}});var yn=c($s=>{g();Object.defineProperty($s,"__esModule",{value:true});$s.AuthProvider=$s.AuthContext=void 0;var KA=B(),ql=class{constructor(e,r,n){this.reauthenticating=false,this.connection=e,this.credentials=r,this.options=n;}};$s.AuthContext=ql;var Ul=class{async prepare(e,r){return e}async reauth(e){if(e.reauthenticating)throw new KA.MongoRuntimeError("Reauthentication already in progress.");try{e.reauthenticating=!0,await this.auth(e);}finally{e.reauthenticating=false;}}};$s.AuthProvider=Ul;});var ru=c(pr=>{g();Object.defineProperty(pr,"__esModule",{value:true});pr.GSSAPI=pr.GSSAPICanonicalizationValue=void 0;pr.performGSSAPICanonicalizeHostName=H6;pr.resolveCname=Wl;var zl=a("dns"),YA=mr(),$6=B(),XA=v(),JA=yn();pr.GSSAPICanonicalizationValue=Object.freeze({on:true,off:false,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});async function jl(t,e){return await t.command((0, XA.ns)("$external.$cmd"),e)}var hi,Vl=class extends JA.AuthProvider{async auth(e){let{connection:r,credentials:n}=e;if(n==null)throw new $6.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");let{username:s}=n,o=await QA(e),i=await o.step(""),u=await jl(r,ZA(i)),a=await G6(o,10,u.payload),c=await jl(r,eC(a,u.conversationId)),h=await tC(o,s,c.payload);await jl(r,{saslContinue:1,conversationId:c.conversationId,payload:h});}};pr.GSSAPI=Vl;async function QA(t){let{hostAddress:e}=t.options,{credentials:r}=t;if(!e||typeof e.host!="string"||!r)throw new $6.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(rC(),"kModuleError"in hi)throw hi.kModuleError;let{initializeClient:n}=hi,{username:s,password:o}=r,i=r.mechanismProperties,u=i.SERVICE_NAME??"mongodb",a=await H6(e.host,i),c={};o!=null&&Object.assign(c,{user:s,password:o});let h=i.SERVICE_HOST??a,d=`${u}${process.platform==="win32"?"/":"@"}${h}`;return "SERVICE_REALM"in i&&(d=`${d}@${i.SERVICE_REALM}`),await n(d,c)}function ZA(t){return {saslStart:1,mechanism:"GSSAPI",payload:t,autoAuthorize:1}}function eC(t,e){return {saslContinue:1,conversationId:e,payload:t}}async function G6(t,e,r){try{return await t.step(r)||""}catch(n){if(e===0)throw n;return await G6(t,e-1,r)}}async function tC(t,e,r){let n=await t.unwrap(r);return await t.wrap(n||"",{user:e})}async function H6(t,e){let r=e.CANONICALIZE_HOST_NAME;if(!r||r===pr.GSSAPICanonicalizationValue.none)return t;if(r===pr.GSSAPICanonicalizationValue.on||r===pr.GSSAPICanonicalizationValue.forwardAndReverse){let{address:n}=await zl.promises.lookup(t);try{let s=await zl.promises.resolvePtr(n);return s.length>0?s[0]:t}catch{return await Wl(t)}}else return await Wl(t)}async function Wl(t){try{let e=await zl.promises.resolveCname(t);return e.length>0?e[0]:t}catch{return t}}function rC(){hi||(hi=(0, YA.getKerberos)());}});var Fr=c(Mr=>{g();Object.defineProperty(Mr,"__esModule",{value:true});Mr.AUTH_MECHS_AUTH_SRC_EXTERNAL=Mr.AuthMechanism=void 0;Mr.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"});Mr.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([Mr.AuthMechanism.MONGODB_GSSAPI,Mr.AuthMechanism.MONGODB_AWS,Mr.AuthMechanism.MONGODB_OIDC,Mr.AuthMechanism.MONGODB_X509]);});var nu=c(ls=>{g();Object.defineProperty(ls,"__esModule",{value:true});ls.MongoCredentials=ls.DEFAULT_ALLOWED_HOSTS=void 0;var Yt=B(),nC=ru(),pt=Fr();function sC(t){return t&&Array.isArray(t.saslSupportedMechs)?t.saslSupportedMechs.includes(pt.AuthMechanism.MONGODB_SCRAM_SHA256)?pt.AuthMechanism.MONGODB_SCRAM_SHA256:pt.AuthMechanism.MONGODB_SCRAM_SHA1:pt.AuthMechanism.MONGODB_SCRAM_SHA256}var K6=["test","azure","gcp","k8s"],Y6="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";ls.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-qa.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var oC="TOKEN_RESOURCE must be set in the auth mechanism properties when ENVIRONMENT is azure or gcp.",$l=class t{constructor(e){this.username=e.username??"",this.password=e.password,this.source=e.source,!this.source&&e.db&&(this.source=e.db),this.mechanism=e.mechanism||pt.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=e.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)&&(!this.username&&process.env.AWS_ACCESS_KEY_ID&&(this.username=process.env.AWS_ACCESS_KEY_ID),!this.password&&process.env.AWS_SECRET_ACCESS_KEY&&(this.password=process.env.AWS_SECRET_ACCESS_KEY),this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null&&(this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN})),this.mechanism===pt.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS&&(this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:ls.DEFAULT_ALLOWED_HOSTS}),Object.freeze(this.mechanismProperties),Object.freeze(this);}equals(e){return this.mechanism===e.mechanism&&this.username===e.username&&this.password===e.password&&this.source===e.source}resolveAuthMechanism(e){return this.mechanism.match(/DEFAULT/i)?new t({username:this.username,password:this.password,source:this.source,mechanism:sC(e),mechanismProperties:this.mechanismProperties}):this}validate(){if((this.mechanism===pt.AuthMechanism.MONGODB_GSSAPI||this.mechanism===pt.AuthMechanism.MONGODB_PLAIN||this.mechanism===pt.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===pt.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new Yt.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===pt.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.ENVIRONMENT&&this.mechanismProperties.ENVIRONMENT!=="azure")throw new Yt.MongoInvalidArgumentError(`username and ENVIRONMENT '${this.mechanismProperties.ENVIRONMENT}' may not be used together for mechanism '${this.mechanism}'.`);if(this.username&&this.password)throw new Yt.MongoInvalidArgumentError(`No password is allowed in ENVIRONMENT '${this.mechanismProperties.ENVIRONMENT}' for '${this.mechanism}'.`);if((this.mechanismProperties.ENVIRONMENT==="azure"||this.mechanismProperties.ENVIRONMENT==="gcp")&&!this.mechanismProperties.TOKEN_RESOURCE)throw new Yt.MongoInvalidArgumentError(oC);if(this.mechanismProperties.ENVIRONMENT&&!K6.includes(this.mechanismProperties.ENVIRONMENT))throw new Yt.MongoInvalidArgumentError(`Currently only a ENVIRONMENT in ${K6.join(",")} is supported for mechanism '${this.mechanism}'.`);if(!this.mechanismProperties.ENVIRONMENT&&!this.mechanismProperties.OIDC_CALLBACK&&!this.mechanismProperties.OIDC_HUMAN_CALLBACK)throw new Yt.MongoInvalidArgumentError(`Either a ENVIRONMENT, OIDC_CALLBACK, or OIDC_HUMAN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){let r=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(r))throw new Yt.MongoInvalidArgumentError(Y6);for(let n of r)if(typeof n!="string")throw new Yt.MongoInvalidArgumentError(Y6)}}if(pt.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)&&this.source!=null&&this.source!=="$external")throw new Yt.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`);if(this.mechanism===pt.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new Yt.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===pt.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new Yt.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}let e=this.mechanismProperties.CANONICALIZE_HOST_NAME??false;if(!Object.values(nC.GSSAPICanonicalizationValue).includes(e))throw new Yt.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${e}`)}static merge(e,r){return new t({username:r.username??e?.username??"",password:r.password??e?.password??"",mechanism:r.mechanism??e?.mechanism??pt.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:r.mechanismProperties??e?.mechanismProperties??{},source:r.source??r.db??e?.source??"admin"})}};ls.MongoCredentials=$l;});var X6=c((LF,iC)=>{iC.exports={name:"mongodb",version:"6.21.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.3.0",bson:"^6.10.4","mongodb-connection-string-url":"^3.0.2"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.1.0 || ^2.0.0","gcp-metadata":"^5.2.0",kerberos:"^2.0.1","mongodb-client-encryption":">=6.0.0 <7",snappy:"^7.3.2",socks:"^2.7.1"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:true},"@mongodb-js/zstd":{optional:true},kerberos:{optional:true},snappy:{optional:true},"mongodb-client-encryption":{optional:true},"gcp-metadata":{optional:true},socks:{optional:true}},devDependencies:{"@aws-sdk/credential-providers":"^3.876.0","@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.52.11","@microsoft/tsdoc-config":"^0.17.1","@mongodb-js/zstd":"^2.0.1","@types/chai":"^4.3.17","@types/chai-subset":"^1.3.5","@types/express":"^5.0.3","@types/kerberos":"^1.1.5","@types/mocha":"^10.0.9","@types/node":"^22.15.3","@types/saslprep":"^1.0.3","@types/semver":"^7.7.0","@types/sinon":"^17.0.4","@types/sinon-chai":"^4.0.0","@types/whatwg-url":"^13.0.0","@typescript-eslint/eslint-plugin":"^8.41.0","@typescript-eslint/parser":"^8.31.1",chai:"^4.4.1","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^9.34.0","eslint-config-prettier":"^10.1.8","eslint-plugin-mocha":"^10.4.1","eslint-plugin-prettier":"^5.5.4","eslint-plugin-simple-import-sort":"^12.1.1","eslint-plugin-tsdoc":"^0.4.0","eslint-plugin-unused-imports":"^4.2.0",express:"^5.1.0","gcp-metadata":"^5.3.0","js-yaml":"^4.1.0",mocha:"^11.7.1","mocha-sinon":"^2.1.2","mongodb-client-encryption":"^6.5.0","mongodb-legacy":"^6.1.3",nyc:"^15.1.0",prettier:"^3.6.2",semver:"^7.7.2",sinon:"^18.0.1","sinon-chai":"^3.7.0",snappy:"^7.3.2",socks:"^2.8.7","source-map-support":"^0.5.21","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"5.8.3","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.3.1",yargs:"^18.0.0"},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_USE_FLAT_CONFIG=false eslint --no-ignore --fix mongodb.d.ts lib/beta.d.ts","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"npm --prefix test/benchmarks/driver_bench start","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"nyc mocha --config test/mocha_lambda.js test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"nyc mocha --config test/mocha_lambda.js 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":"npm run build:dts && ESLINT_USE_FLAT_CONFIG=false eslint -v && ESLINT_USE_FLAT_CONFIG=false 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.js test/manual/search-index-management.prose.test.ts","check:test":"mocha --config test/mocha_mongodb.js test/integration","check:unit":"nyc mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"nyc mocha --config test/manual/mocharc.js test/manual/atlas_connectivity.test.ts","check:resource-management":"nyc mocha --config test/manual/mocharc.js test/manual/resource_management.test.ts","check:drivers-atlas-testing":"nyc mocha --config test/mocha_mongodb.js test/atlas/drivers_atlas_testing.test.ts","check:adl":"nyc mocha --config test/mocha_mongodb.js test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_aws.test.ts","check:oidc-auth":"nyc mocha --config test/mocha_mongodb.js test/integration/auth/auth.spec.test.ts","check:oidc-test":"nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc.prose.test.ts","check:oidc-azure":"nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc_azure.prose.05.test.ts","check:oidc-gcp":"nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc_gcp.prose.06.test.ts","check:oidc-k8s":"nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc_k8s.prose.07.test.ts","check:kerberos":"nyc mocha --config test/manual/mocharc.js test/manual/kerberos.test.ts","check:tls":"nyc mocha --config test/manual/mocharc.js test/manual/tls_support.test.ts","check:ldap":"nyc mocha --config test/manual/mocharc.js test/manual/ldap.test.ts","check:socks5":"nyc mocha --config test/manual/mocharc.js test/manual/socks5.test.ts","check:csfle":"nyc mocha --config test/mocha_mongodb.js test/integration/client-side-encryption","check:snappy":"nyc mocha test/unit/assorted/snappy.test.js","check:x509":"nyc mocha test/manual/x509_auth.test.ts","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:true,target:"esnext",module:"commonjs",moduleResolution:"node"}}};});var Gl=c(On=>{g();Object.defineProperty(On,"__esModule",{value:true});On.LimitedSizeDocument=void 0;On.isDriverInfoEqual=cC;On.makeClientMetadata=lC;On.addContainerMetadata=dC;On.getFAASEnv=Z6;var di=a("os"),fi=a("process"),Gs=te(),J6=B(),uC=v(),aC=X6().version;function cC(t,e){let r=(n,s)=>(n||=void 0,s||=void 0,n===s);return r(t.name,e.name)&&r(t.platform,e.platform)&&r(t.version,e.version)}var mi=class{constructor(e){this.document=new Map,this.documentSize=5,this.maxSize=e;}ifItFitsItSits(e,r){let n=Gs.BSON.serialize(new Map().set(e,r)).byteLength-5;return n+this.documentSize>this.maxSize?false:(this.documentSize+=n,this.document.set(e,r),true)}toObject(){return Gs.BSON.deserialize(Gs.BSON.serialize(this.document),{promoteLongs:false,promoteBuffers:false,promoteValues:false,useBigInt64:false})}};On.LimitedSizeDocument=mi;function lC(t,{appName:e=""}){let r=new mi(512);if(e.length>0){let u=Buffer.byteLength(e,"utf8")<=128?e:Buffer.from(e,"utf8").subarray(0,128).toString("utf8");r.ifItFitsItSits("application",{name:u});}let n={name:"nodejs",version:aC};for(let{name:u="",version:a=""}of t)u.length>0&&(n.name=`${n.name}|${u}`),a.length>0&&(n.version=`${n.version}|${a}`);if(!r.ifItFitsItSits("driver",n))throw new J6.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let s=fC();for(let{platform:u=""}of t)u.length>0&&(s=`${s}|${u}`);if(!r.ifItFitsItSits("platform",s))throw new J6.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");let o=new Map().set("name",fi.platform).set("architecture",fi.arch).set("version",di.release()).set("type",di.type());if(!r.ifItFitsItSits("os",o)){for(let u of o.keys())if(o.delete(u),o.size===0||r.ifItFitsItSits("os",o))break}let i=Z6();if(i!=null&&!r.ifItFitsItSits("env",i)){for(let u of i.keys())if(i.delete(u),i.size===0||r.ifItFitsItSits("env",i))break}return r.toObject()}var Q6;async function hC(){let t={};Q6??=(0, uC.fileIsAccessible)("/.dockerenv");let e=await Q6,{KUBERNETES_SERVICE_HOST:r=""}=fi.env,n=r.length>0;return e&&(t.runtime="docker"),n&&(t.orchestrator="kubernetes"),t}async function dC(t){let e=await hC();if(Object.keys(e).length===0)return t;let r=new mi(512),n={...t?.env,container:e};for(let[s,o]of Object.entries(t))s!=="env"?r.ifItFitsItSits(s,o):r.ifItFitsItSits("env",n)||r.ifItFitsItSits("env",o);return "env"in t||r.ifItFitsItSits("env",n),r.toObject()}function Z6(){let{AWS_EXECUTION_ENV:t="",AWS_LAMBDA_RUNTIME_API:e="",FUNCTIONS_WORKER_RUNTIME:r="",K_SERVICE:n="",FUNCTION_NAME:s="",VERCEL:o="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:i="",AWS_REGION:u="",FUNCTION_MEMORY_MB:a="",FUNCTION_REGION:c="",FUNCTION_TIMEOUT_SEC:h="",VERCEL_REGION:d=""}=fi.env,m=t.startsWith("AWS_Lambda_")||e.length>0,E=r.length>0,p=n.length>0||s.length>0,_=o.length>0,b=new Map;return _&&!(E||p)?(d.length>0&&b.set("region",d),b.set("name","vercel"),b):m&&!(E||p||_)?(u.length>0&&b.set("region",u),i.length>0&&Number.isInteger(+i)&&b.set("memory_mb",new Gs.Int32(i)),b.set("name","aws.lambda"),b):E&&!(p||m||_)?(b.set("name","azure.func"),b):p&&!(E||m||_)?(c.length>0&&b.set("region",c),a.length>0&&Number.isInteger(+a)&&b.set("memory_mb",new Gs.Int32(a)),h.length>0&&Number.isInteger(+h)&&b.set("timeout_sec",new Gs.Int32(h)),b.set("name","gcp.func"),b):null}function fC(){return "Deno"in globalThis?`Deno v${typeof Deno?.version?.deno=="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${di.endianness()}`:"Bun"in globalThis?`Bun v${typeof Bun?.version=="string"?Bun?.version:"0.0.0-unknown"}, ${di.endianness()}`:`Node.js ${fi.version}, ${di.endianness()}`}});var ou=c(ce=>{g();function de(t,e,r){return r.globals&&(t=r.globals[t.name]),new t(`${r.context?r.context:"Value"} ${e}.`)}function Ys(t,e){if(typeof t=="bigint")throw de(TypeError,"is a BigInt which cannot be converted to a number",e);return e.globals?e.globals.Number(t):Number(t)}function tm(t){return t>0&&t%1===.5&&(t&1)===0||t<0&&t%1===-0.5&&(t&1)===1?pi(Math.floor(t)):pi(Math.round(t))}function su(t){return pi(Math.trunc(t))}function em(t){return t<0?-1:1}function mC(t,e){let r=t%e;return em(e)!==em(r)?r+e:r}function pi(t){return t===0?0:t}function Xs(t,{unsigned:e}){let r,n;e?(r=0,n=2**t-1):(r=-(2**(t-1)),n=2**(t-1)-1);let s=2**t,o=2**(t-1);return (i,u={})=>{let a=Ys(i,u);if(a=pi(a),u.enforceRange){if(!Number.isFinite(a))throw de(TypeError,"is not a finite number",u);if(a=su(a),a<r||a>n)throw de(TypeError,`is outside the accepted range of ${r} to ${n}, inclusive`,u);return a}return !Number.isNaN(a)&&u.clamp?(a=Math.min(Math.max(a,r),n),a=tm(a),a):!Number.isFinite(a)||a===0?0:(a=su(a),a>=r&&a<=n?a:(a=mC(a,s),!e&&a>=o?a-s:a))}}function rm(t,{unsigned:e}){let r=Number.MAX_SAFE_INTEGER,n=e?0:Number.MIN_SAFE_INTEGER,s=e?BigInt.asUintN:BigInt.asIntN;return (o,i={})=>{let u=Ys(o,i);if(u=pi(u),i.enforceRange){if(!Number.isFinite(u))throw de(TypeError,"is not a finite number",i);if(u=su(u),u<n||u>r)throw de(TypeError,`is outside the accepted range of ${n} to ${r}, inclusive`,i);return u}if(!Number.isNaN(u)&&i.clamp)return u=Math.min(Math.max(u,n),r),u=tm(u),u;if(!Number.isFinite(u)||u===0)return 0;let a=BigInt(su(u));return a=s(t,a),Number(a)}}ce.any=t=>t;ce.undefined=()=>{};ce.boolean=t=>!!t;ce.byte=Xs(8,{unsigned:false});ce.octet=Xs(8,{unsigned:true});ce.short=Xs(16,{unsigned:false});ce["unsigned short"]=Xs(16,{unsigned:true});ce.long=Xs(32,{unsigned:false});ce["unsigned long"]=Xs(32,{unsigned:true});ce["long long"]=rm(64,{unsigned:false});ce["unsigned long long"]=rm(64,{unsigned:true});ce.double=(t,e={})=>{let r=Ys(t,e);if(!Number.isFinite(r))throw de(TypeError,"is not a finite floating-point value",e);return r};ce["unrestricted double"]=(t,e={})=>Ys(t,e);ce.float=(t,e={})=>{let r=Ys(t,e);if(!Number.isFinite(r))throw de(TypeError,"is not a finite floating-point value",e);if(Object.is(r,-0))return r;let n=Math.fround(r);if(!Number.isFinite(n))throw de(TypeError,"is outside the range of a single-precision floating-point value",e);return n};ce["unrestricted float"]=(t,e={})=>{let r=Ys(t,e);return isNaN(r)||Object.is(r,-0)?r:Math.fround(r)};ce.DOMString=(t,e={})=>{if(e.treatNullAsEmptyString&&t===null)return "";if(typeof t=="symbol")throw de(TypeError,"is a symbol, which cannot be converted to a string",e);return (e.globals?e.globals.String:String)(t)};ce.ByteString=(t,e={})=>{let r=ce.DOMString(t,e),n;for(let s=0;(n=r.codePointAt(s))!==void 0;++s)if(n>255)throw de(TypeError,"is not a valid ByteString",e);return r};ce.USVString=(t,e={})=>{let r=ce.DOMString(t,e),n=r.length,s=[];for(let o=0;o<n;++o){let i=r.charCodeAt(o);if(i<55296||i>57343)s.push(String.fromCodePoint(i));else if(56320<=i&&i<=57343)s.push(String.fromCodePoint(65533));else if(o===n-1)s.push(String.fromCodePoint(65533));else {let u=r.charCodeAt(o+1);if(56320<=u&&u<=57343){let a=i&1023,c=u&1023;s.push(String.fromCodePoint(65536+1024*a+c)),++o;}else s.push(String.fromCodePoint(65533));}}return s.join("")};ce.object=(t,e={})=>{if(t===null||typeof t!="object"&&typeof t!="function")throw de(TypeError,"is not an object",e);return t};var pC=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,EC=typeof SharedArrayBuffer=="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function Hl(t){try{return pC.call(t),!0}catch{return false}}function Hs(t){try{return EC.call(t),!0}catch{return false}}function Ks(t){try{return new Uint8Array(t),!1}catch{return true}}ce.ArrayBuffer=(t,e={})=>{if(!Hl(t))throw e.allowShared&&!Hs(t)?de(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",e):de(TypeError,"is not an ArrayBuffer",e);if(Ks(t))throw de(TypeError,"is a detached ArrayBuffer",e);return t};var gC=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;ce.DataView=(t,e={})=>{try{gC.call(t);}catch{throw de(TypeError,"is not a DataView",e)}if(!e.allowShared&&Hs(t.buffer))throw de(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",e);if(Ks(t.buffer))throw de(TypeError,"is backed by a detached ArrayBuffer",e);return t};var AC=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach(t=>{let{name:e}=t,r=/^[AEIOU]/u.test(e)?"an":"a";ce[e]=(n,s={})=>{if(!ArrayBuffer.isView(n)||AC.call(n)!==e)throw de(TypeError,`is not ${r} ${e} object`,s);if(!s.allowShared&&Hs(n.buffer))throw de(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",s);if(Ks(n.buffer))throw de(TypeError,"is a view on a detached ArrayBuffer",s);return n};});ce.ArrayBufferView=(t,e={})=>{if(!ArrayBuffer.isView(t))throw de(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",e);if(!e.allowShared&&Hs(t.buffer))throw de(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(Ks(t.buffer))throw de(TypeError,"is a view on a detached ArrayBuffer",e);return t};ce.BufferSource=(t,e={})=>{if(ArrayBuffer.isView(t)){if(!e.allowShared&&Hs(t.buffer))throw de(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",e);if(Ks(t.buffer))throw de(TypeError,"is a view on a detached ArrayBuffer",e);return t}if(!e.allowShared&&!Hl(t))throw de(TypeError,"is not an ArrayBuffer or a view on one",e);if(e.allowShared&&!Hs(t)&&!Hl(t))throw de(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",e);if(Ks(t))throw de(TypeError,"is a detached ArrayBuffer",e);return t};ce.DOMTimeStamp=ce["unsigned long long"];});var uu=c((cm,lm)=>{g();function CC(t){return typeof t=="object"&&t!==null||typeof t=="function"}var nm=Function.prototype.call.bind(Object.prototype.hasOwnProperty);function SC(t,e){for(let r of Reflect.ownKeys(e)){let n=Reflect.getOwnPropertyDescriptor(e,r);if(n&&!Reflect.defineProperty(t,r,n))throw new TypeError(`Cannot redefine property: ${String(r)}`)}}function yC(t,e){let r=im(t);return Object.defineProperties(Object.create(r["%Object.prototype%"]),Object.getOwnPropertyDescriptors(e))}var sm=Symbol("wrapper"),om=Symbol("impl"),Js=Symbol("SameObject caches"),iu=Symbol.for("[webidl2js] constructor registry"),OC=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);function im(t){if(nm(t,iu))return t[iu];let e=Object.create(null);e["%Object.prototype%"]=t.Object.prototype,e["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new t.Array()[Symbol.iterator]()));try{e["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(t.eval("(async function* () {})").prototype));}catch{e["%AsyncIteratorPrototype%"]=OC;}return t[iu]=e,e}function wC(t,e,r){return t[Js]||(t[Js]=Object.create(null)),e in t[Js]||(t[Js][e]=r()),t[Js][e]}function um(t){return t?t[sm]:null}function am(t){return t?t[om]:null}function _C(t){let e=um(t);return e||t}function DC(t){let e=am(t);return e||t}var TC=Symbol("internal");function BC(t){if(typeof t!="string")return false;let e=t>>>0;if(e===2**32-1)return false;let r=`${e}`;return t===r}var bC=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;function MC(t){try{return bC.call(t),!0}catch{return false}}function FC([t,e],r){let n;switch(r){case "key":n=t;break;case "value":n=e;break;case "key+value":n=[t,e];break}return {value:n,done:false}}var RC=Symbol("supports property index"),NC=Symbol("supported property indices"),IC=Symbol("supports property name"),vC=Symbol("supported property names"),PC=Symbol("indexed property get"),xC=Symbol("indexed property set new"),LC=Symbol("indexed property set existing"),kC=Symbol("named property get"),qC=Symbol("named property set new"),UC=Symbol("named property set existing"),jC=Symbol("named property delete"),zC=Symbol("async iterator get the next iteration result"),VC=Symbol("async iterator return steps"),WC=Symbol("async iterator initialization steps"),$C=Symbol("async iterator end of iteration");lm.exports={isObject:CC,hasOwn:nm,define:SC,newObjectInRealm:yC,wrapperSymbol:sm,implSymbol:om,getSameObject:wC,ctorRegistrySymbol:iu,initCtorRegistry:im,wrapperForImpl:um,implForWrapper:am,tryWrapperForImpl:_C,tryImplForWrapper:DC,iterInternalSymbol:TC,isArrayBuffer:MC,isArrayIndexPropName:BC,supportsPropertyIndex:RC,supportedPropertyIndices:NC,supportsPropertyName:IC,supportedPropertyNames:vC,indexedGet:PC,indexedSetNew:xC,indexedSetExisting:LC,namedGet:kC,namedSetNew:qC,namedSetExisting:UC,namedDelete:jC,asyncIteratorNext:zC,asyncIteratorReturn:VC,asyncIteratorInit:WC,asyncIteratorEOI:$C,iteratorResult:FC};});var gm={};d(gm,{decode:()=>Jl,default:()=>ZC,encode:()=>Ql,toASCII:()=>Em,toUnicode:()=>pm,ucs2decode:()=>Xl,ucs2encode:()=>fm});function wn(t){throw new RangeError(YC[t])}function XC(t,e){let r=[],n=t.length;for(;n--;)r[n]=e(t[n]);return r}function dm(t,e){let r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(KC,".");let s=t.split("."),o=XC(s,e).join(".");return n+o}function Xl(t){let e=[],r=0,n=t.length;for(;r<n;){let s=t.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){let o=t.charCodeAt(r++);(o&64512)==56320?e.push(((s&1023)<<10)+(o&1023)+65536):(e.push(s),r--);}else e.push(s);}return e}var GC,HC,KC,YC,Kl,Rr,Yl,fm,JC,hm,mm,Jl,Ql,pm,Em,QC,ZC,Am=b(()=>{g();GC=/^xn--/,HC=/[^\0-\x7F]/,KC=/[\x2E\u3002\uFF0E\uFF61]/g,YC={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Kl=35,Rr=Math.floor,Yl=String.fromCharCode;fm=t=>String.fromCodePoint(...t),JC=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},hm=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},mm=function(t,e,r){let n=0;for(t=r?Rr(t/700):t>>1,t+=Rr(t/e);t>Kl*26>>1;n+=36)t=Rr(t/Kl);return Rr(n+(Kl+1)*t/(t+38))},Jl=function(t){let e=[],r=t.length,n=0,s=128,o=72,i=t.lastIndexOf("-");i<0&&(i=0);for(let u=0;u<i;++u)t.charCodeAt(u)>=128&&wn("not-basic"),e.push(t.charCodeAt(u));for(let u=i>0?i+1:0;u<r;){let a=n;for(let h=1,d=36;;d+=36){u>=r&&wn("invalid-input");let m=JC(t.charCodeAt(u++));m>=36&&wn("invalid-input"),m>Rr((2147483647-n)/h)&&wn("overflow"),n+=m*h;let E=d<=o?1:d>=o+26?26:d-o;if(m<E)break;let p=36-E;h>Rr(2147483647/p)&&wn("overflow"),h*=p;}let c=e.length+1;o=mm(n-a,c,a==0),Rr(n/c)>2147483647-s&&wn("overflow"),s+=Rr(n/c),n%=c,e.splice(n++,0,s);}return String.fromCodePoint(...e)},Ql=function(t){let e=[];t=Xl(t);let r=t.length,n=128,s=0,o=72;for(let a of t)a<128&&e.push(Yl(a));let i=e.length,u=i;for(i&&e.push("-");u<r;){let a=2147483647;for(let h of t)h>=n&&h<a&&(a=h);let c=u+1;a-n>Rr((2147483647-s)/c)&&wn("overflow"),s+=(a-n)*c,n=a;for(let h of t)if(h<n&&++s>2147483647&&wn("overflow"),h===n){let d=s;for(let m=36;;m+=36){let E=m<=o?1:m>=o+26?26:m-o;if(d<E)break;let p=d-E,_=36-E;e.push(Yl(hm(E+p%_,0))),d=Rr(p/_);}e.push(Yl(hm(d,0))),o=mm(s,c,u===i),s=0,++u;}++s,++n;}return e.join("")},pm=function(t){return dm(t,function(e){return GC.test(e)?Jl(e.slice(4).toLowerCase()):e})},Em=function(t){return dm(t,function(e){return HC.test(e)?"xn--"+Ql(e):e})},QC={version:"2.3.1",ucs2:{decode:Xl,encode:fm},decode:Jl,encode:Ql,toASCII:Em,toUnicode:pm},ZC=QC;});var Sm=c((WF,Cm)=>{g();var e5=/[\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\u0897-\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{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\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{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}\u{113E2}\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{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\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{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,t5=/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1715\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA82C\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{11070}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{113CE}-\u{113D0}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{1193D}\u{1193E}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}\u{11F41}\u{11F42}\u{1612F}]/u,r5=/[\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\u0886\u0889-\u088D\u08A0-\u08A9\u08AF\u08B0\u08B3-\u08B8\u08BA-\u08C8\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{10EC3}\u{10EC4}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{10F70}-\u{10F73}\u{10F76}-\u{10F81}\u{10FB0}\u{10FB2}\u{10FB3}\u{10FB8}\u{10FBB}\u{10FBC}\u{10FBE}\u{10FBF}\u{10FC1}\u{10FC4}\u{10FCA}\u{10FCB}\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\u0897-\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\u0CBF\u0CC6\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\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\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\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{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\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{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\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{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{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\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{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{1E5EE}\u{1E5EF}\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\u0897-\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\u0CBF\u0CC6\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\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\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\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{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\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{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\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{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{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13430}-\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\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{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{1E5EE}\u{1E5EF}\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-\u0858\u0860\u0862-\u0865\u0867-\u086A\u0870-\u0882\u0886\u0889-\u088E\u08A0-\u08AC\u08AE-\u08C8\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{10EC2}-\u{10EC4}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}\u{10FB2}-\u{10FB6}\u{10FB8}-\u{10FBF}\u{10FC1}-\u{10FC4}\u{10FC9}\u{10FCA}\u{1E900}-\u{1E943}]/u,n5=/[\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{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\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,s5=/[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\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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{105C0}-\u{105F3}\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{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\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{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\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{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\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{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\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{16D40}-\u{16D79}\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{18CFF}-\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{1CCD6}-\u{1CCEF}\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{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\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{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\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{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,o5=/[\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{10D4A}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\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,i5=/^[\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\u0897-\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-\u2429\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-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E5\u31EF\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{10D40}-\u{10D65}\u{10D69}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\u{10EFC}-\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{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\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{11F5A}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\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{1CC00}-\u{1CCD5}\u{1CCF0}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\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{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\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{1E5EE}\u{1E5EF}\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{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,u5=/[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{10D40}-\u{10D65}\u{10D6F}-\u{10D85}\u{10D8E}\u{10D8F}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10EC2}-\u{10EC4}\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{1CCF0}-\u{1CCF9}\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\u0897-\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{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\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{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\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{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\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{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,a5=/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1CCF0}-\u{1CCF9}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,c5=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10D40}-\u{10D49}\u{10E60}-\u{10E7E}]/u,l5=/^[\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\u0897-\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\u1B4E-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C8A\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-\u2429\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-\u2FFF\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E5\u31EF-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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{105C0}-\u{105F3}\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{10D69}-\u{10D6E}\u{10EAB}\u{10EAC}\u{10EFC}-\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{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D5}\u{113D7}\u{113D8}\u{113E1}\u{113E2}\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{116D0}-\u{116E3}\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{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\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{11F5A}\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{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{16139}\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{16D40}-\u{16D79}\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{18CFF}-\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{1CC00}-\u{1CCF9}\u{1CD00}-\u{1CEB3}\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{1E5D0}-\u{1E5FA}\u{1E5FF}\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{1F8BB}\u{1F8C0}\u{1F8C1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA89}\u{1FA8F}-\u{1FAC6}\u{1FACE}-\u{1FADC}\u{1FADF}-\u{1FAE9}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\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,h5=/[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\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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{105C0}-\u{105F3}\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{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\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{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\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{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\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{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\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{16D40}-\u{16D79}\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{18CFF}-\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{1CCD6}-\u{1CCF9}\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{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\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{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\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{2EBF0}-\u{2EE5D}\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\u0897-\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{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFC}-\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{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\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{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\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{1E5EE}\u{1E5EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;Cm.exports={combiningMarks:e5,combiningClassVirama:t5,validZWNJ:r5,bidiDomain:n5,bidiS1LTR:s5,bidiS1RTL:o5,bidiS2:i5,bidiS3:u5,bidiS4EN:a5,bidiS4AN:c5,bidiS5:l5,bidiS6:h5};});var ym=c((GF,d5)=>{d5.exports=[[[0,44],2],[[45,46],2],[47,2],[[48,57],2],[[58,64],2],[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],2],[[97,122],2],[[123,127],2],[[128,159],3],[160,1," "],[[161,167],2],[168,1," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,1," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,1," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,1," \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,1," \u0306"],[729,1," \u0307"],[730,1," \u030A"],[731,1," \u0328"],[732,1," \u0303"],[733,1," \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,1," \u03B9"],[[891,893],2],[894,1,";"],[895,1,"\u03F3"],[[896,899],3],[900,1," \u0301"],[901,1," \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],[1e3,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,1,"\u04CF"],[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,2198],3],[2199,2],[[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,1,"\u2D00"],[4257,1,"\u2D01"],[4258,1,"\u2D02"],[4259,1,"\u2D03"],[4260,1,"\u2D04"],[4261,1,"\u2D05"],[4262,1,"\u2D06"],[4263,1,"\u2D07"],[4264,1,"\u2D08"],[4265,1,"\u2D09"],[4266,1,"\u2D0A"],[4267,1,"\u2D0B"],[4268,1,"\u2D0C"],[4269,1,"\u2D0D"],[4270,1,"\u2D0E"],[4271,1,"\u2D0F"],[4272,1,"\u2D10"],[4273,1,"\u2D11"],[4274,1,"\u2D12"],[4275,1,"\u2D13"],[4276,1,"\u2D14"],[4277,1,"\u2D15"],[4278,1,"\u2D16"],[4279,1,"\u2D17"],[4280,1,"\u2D18"],[4281,1,"\u2D19"],[4282,1,"\u2D1A"],[4283,1,"\u2D1B"],[4284,1,"\u2D1C"],[4285,1,"\u2D1D"],[4286,1,"\u2D1E"],[4287,1,"\u2D1F"],[4288,1,"\u2D20"],[4289,1,"\u2D21"],[4290,1,"\u2D22"],[4291,1,"\u2D23"],[4292,1,"\u2D24"],[4293,1,"\u2D25"],[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],7],[[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,6e3],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],7],[[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,6154],2],[[6155,6158],7],[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,3],[[6990,6991],2],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,2],[[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,1,"\u1C8A"],[7306,2],[[7307,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,"\xDF"],[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"],[[8e3,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,1," \u0313"],[8126,1,"\u03B9"],[8127,1," \u0313"],[8128,1," \u0342"],[8129,1," \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,1," \u0313\u0300"],[8142,1," \u0313\u0301"],[8143,1," \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,1," \u0314\u0300"],[8158,1," \u0314\u0301"],[8159,1," \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,1," \u0308\u0300"],[8174,1," \u0308\u0301"],[8175,1,"`"],[[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,1," \u0301"],[8190,1," \u0314"],[8191,3],[[8192,8202],1," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,1," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,1," "],[[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,1,"!!"],[8253,2],[8254,1," \u0305"],[[8255,8262],2],[8263,1,"??"],[8264,1,"?!"],[8265,1,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[8280,8286],2],[8287,1," "],[[8288,8291],7],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],7],[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,1,"+"],[8315,1,"\u2212"],[8316,1,"="],[8317,1,"("],[8318,1,")"],[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,1,"+"],[8331,1,"\u2212"],[8332,1,"="],[8333,1,"("],[8334,1,")"],[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,1,"a/c"],[8449,1,"a/s"],[8450,1,"c"],[8451,1,"\xB0c"],[8452,2],[8453,1,"c/o"],[8454,1,"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,1,"\u214E"],[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,1,"\u2184"],[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,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9e3],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,9257],2],[[9258,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,1,"(1)"],[9333,1,"(2)"],[9334,1,"(3)"],[9335,1,"(4)"],[9336,1,"(5)"],[9337,1,"(6)"],[9338,1,"(7)"],[9339,1,"(8)"],[9340,1,"(9)"],[9341,1,"(10)"],[9342,1,"(11)"],[9343,1,"(12)"],[9344,1,"(13)"],[9345,1,"(14)"],[9346,1,"(15)"],[9347,1,"(16)"],[9348,1,"(17)"],[9349,1,"(18)"],[9350,1,"(19)"],[9351,1,"(20)"],[[9352,9371],3],[9372,1,"(a)"],[9373,1,"(b)"],[9374,1,"(c)"],[9375,1,"(d)"],[9376,1,"(e)"],[9377,1,"(f)"],[9378,1,"(g)"],[9379,1,"(h)"],[9380,1,"(i)"],[9381,1,"(j)"],[9382,1,"(k)"],[9383,1,"(l)"],[9384,1,"(m)"],[9385,1,"(n)"],[9386,1,"(o)"],[9387,1,"(p)"],[9388,1,"(q)"],[9389,1,"(r)"],[9390,1,"(s)"],[9391,1,"(t)"],[9392,1,"(u)"],[9393,1,"(v)"],[9394,1,"(w)"],[9395,1,"(x)"],[9396,1,"(y)"],[9397,1,"(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,1,"::="],[10869,1,"=="],[10870,1,"==="],[[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,1," "],[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,1," \u3099"],[12444,1," \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,7],[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,12773],2],[[12774,12782],3],[12783,3],[[12784,12799],2],[12800,1,"(\u1100)"],[12801,1,"(\u1102)"],[12802,1,"(\u1103)"],[12803,1,"(\u1105)"],[12804,1,"(\u1106)"],[12805,1,"(\u1107)"],[12806,1,"(\u1109)"],[12807,1,"(\u110B)"],[12808,1,"(\u110C)"],[12809,1,"(\u110E)"],[12810,1,"(\u110F)"],[12811,1,"(\u1110)"],[12812,1,"(\u1111)"],[12813,1,"(\u1112)"],[12814,1,"(\uAC00)"],[12815,1,"(\uB098)"],[12816,1,"(\uB2E4)"],[12817,1,"(\uB77C)"],[12818,1,"(\uB9C8)"],[12819,1,"(\uBC14)"],[12820,1,"(\uC0AC)"],[12821,1,"(\uC544)"],[12822,1,"(\uC790)"],[12823,1,"(\uCC28)"],[12824,1,"(\uCE74)"],[12825,1,"(\uD0C0)"],[12826,1,"(\uD30C)"],[12827,1,"(\uD558)"],[12828,1,"(\uC8FC)"],[12829,1,"(\uC624\uC804)"],[12830,1,"(\uC624\uD6C4)"],[12831,3],[12832,1,"(\u4E00)"],[12833,1,"(\u4E8C)"],[12834,1,"(\u4E09)"],[12835,1,"(\u56DB)"],[12836,1,"(\u4E94)"],[12837,1,"(\u516D)"],[12838,1,"(\u4E03)"],[12839,1,"(\u516B)"],[12840,1,"(\u4E5D)"],[12841,1,"(\u5341)"],[12842,1,"(\u6708)"],[12843,1,"(\u706B)"],[12844,1,"(\u6C34)"],[12845,1,"(\u6728)"],[12846,1,"(\u91D1)"],[12847,1,"(\u571F)"],[12848,1,"(\u65E5)"],[12849,1,"(\u682A)"],[12850,1,"(\u6709)"],[12851,1,"(\u793E)"],[12852,1,"(\u540D)"],[12853,1,"(\u7279)"],[12854,1,"(\u8CA1)"],[12855,1,"(\u795D)"],[12856,1,"(\u52B4)"],[12857,1,"(\u4EE3)"],[12858,1,"(\u547C)"],[12859,1,"(\u5B66)"],[12860,1,"(\u76E3)"],[12861,1,"(\u4F01)"],[12862,1,"(\u8CC7)"],[12863,1,"(\u5354)"],[12864,1,"(\u796D)"],[12865,1,"(\u4F11)"],[12866,1,"(\u81EA)"],[12867,1,"(\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"],[13e3,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,1,"\u0264"],[42956,1,"\uA7CD"],[42957,2],[[42958,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,1,"\uA7DB"],[42971,2],[42972,1,"\u019B"],[[42973,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43e3,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"],[64e3,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,"\u{242EE}"],[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,"\u{2284A}"],[64208,1,"\u{22844}"],[64209,1,"\u{233D5}"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\u{25249}"],[64214,1,"\u{25CD0}"],[64215,1,"\u{27ED3}"],[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,1,"+"],[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,1," \u064C\u0651"],[64607,1," \u064D\u0651"],[64608,1," \u064E\u0651"],[64609,1," \u064F\u0651"],[64610,1," \u0650\u0651"],[64611,1," \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,1,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,1,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,1,","],[65041,1,"\u3001"],[65042,3],[65043,1,":"],[65044,1,";"],[65045,1,"!"],[65046,1,"?"],[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],1,"_"],[65077,1,"("],[65078,1,")"],[65079,1,"{"],[65080,1,"}"],[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,1,"["],[65096,1,"]"],[[65097,65100],1," \u0305"],[[65101,65103],1,"_"],[65104,1,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,1,";"],[65109,1,":"],[65110,1,"?"],[65111,1,"!"],[65112,1,"\u2014"],[65113,1,"("],[65114,1,")"],[65115,1,"{"],[65116,1,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[65119,1,"#"],[65120,1,"&"],[65121,1,"*"],[65122,1,"+"],[65123,1,"-"],[65124,1,"<"],[65125,1,">"],[65126,1,"="],[65127,3],[65128,1,"\\"],[65129,1,"$"],[65130,1,"%"],[65131,1,"@"],[[65132,65135],3],[65136,1," \u064B"],[65137,1,"\u0640\u064B"],[65138,1," \u064C"],[65139,2],[65140,1," \u064D"],[65141,3],[65142,1," \u064E"],[65143,1,"\u0640\u064E"],[65144,1," \u064F"],[65145,1,"\u0640\u064F"],[65146,1," \u0650"],[65147,1,"\u0640\u0650"],[65148,1," \u0651"],[65149,1,"\u0640\u0651"],[65150,1," \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,1,"!"],[65282,1,'"'],[65283,1,"#"],[65284,1,"$"],[65285,1,"%"],[65286,1,"&"],[65287,1,"'"],[65288,1,"("],[65289,1,")"],[65290,1,"*"],[65291,1,"+"],[65292,1,","],[65293,1,"-"],[65294,1,"."],[65295,1,"/"],[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,1,":"],[65307,1,";"],[65308,1,"<"],[65309,1,"="],[65310,1,">"],[65311,1,"?"],[65312,1,"@"],[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,1,"["],[65340,1,"\\"],[65341,1,"]"],[65342,1,"^"],[65343,1,"_"],[65344,1,"`"],[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,1,"{"],[65372,1,"|"],[65373,1,"}"],[65374,1,"~"],[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,7],[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,1," \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],[[66e3,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,"\u{10428}"],[66561,1,"\u{10429}"],[66562,1,"\u{1042A}"],[66563,1,"\u{1042B}"],[66564,1,"\u{1042C}"],[66565,1,"\u{1042D}"],[66566,1,"\u{1042E}"],[66567,1,"\u{1042F}"],[66568,1,"\u{10430}"],[66569,1,"\u{10431}"],[66570,1,"\u{10432}"],[66571,1,"\u{10433}"],[66572,1,"\u{10434}"],[66573,1,"\u{10435}"],[66574,1,"\u{10436}"],[66575,1,"\u{10437}"],[66576,1,"\u{10438}"],[66577,1,"\u{10439}"],[66578,1,"\u{1043A}"],[66579,1,"\u{1043B}"],[66580,1,"\u{1043C}"],[66581,1,"\u{1043D}"],[66582,1,"\u{1043E}"],[66583,1,"\u{1043F}"],[66584,1,"\u{10440}"],[66585,1,"\u{10441}"],[66586,1,"\u{10442}"],[66587,1,"\u{10443}"],[66588,1,"\u{10444}"],[66589,1,"\u{10445}"],[66590,1,"\u{10446}"],[66591,1,"\u{10447}"],[66592,1,"\u{10448}"],[66593,1,"\u{10449}"],[66594,1,"\u{1044A}"],[66595,1,"\u{1044B}"],[66596,1,"\u{1044C}"],[66597,1,"\u{1044D}"],[66598,1,"\u{1044E}"],[66599,1,"\u{1044F}"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\u{104D8}"],[66737,1,"\u{104D9}"],[66738,1,"\u{104DA}"],[66739,1,"\u{104DB}"],[66740,1,"\u{104DC}"],[66741,1,"\u{104DD}"],[66742,1,"\u{104DE}"],[66743,1,"\u{104DF}"],[66744,1,"\u{104E0}"],[66745,1,"\u{104E1}"],[66746,1,"\u{104E2}"],[66747,1,"\u{104E3}"],[66748,1,"\u{104E4}"],[66749,1,"\u{104E5}"],[66750,1,"\u{104E6}"],[66751,1,"\u{104E7}"],[66752,1,"\u{104E8}"],[66753,1,"\u{104E9}"],[66754,1,"\u{104EA}"],[66755,1,"\u{104EB}"],[66756,1,"\u{104EC}"],[66757,1,"\u{104ED}"],[66758,1,"\u{104EE}"],[66759,1,"\u{104EF}"],[66760,1,"\u{104F0}"],[66761,1,"\u{104F1}"],[66762,1,"\u{104F2}"],[66763,1,"\u{104F3}"],[66764,1,"\u{104F4}"],[66765,1,"\u{104F5}"],[66766,1,"\u{104F6}"],[66767,1,"\u{104F7}"],[66768,1,"\u{104F8}"],[66769,1,"\u{104F9}"],[66770,1,"\u{104FA}"],[66771,1,"\u{104FB}"],[[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,"\u{10597}"],[66929,1,"\u{10598}"],[66930,1,"\u{10599}"],[66931,1,"\u{1059A}"],[66932,1,"\u{1059B}"],[66933,1,"\u{1059C}"],[66934,1,"\u{1059D}"],[66935,1,"\u{1059E}"],[66936,1,"\u{1059F}"],[66937,1,"\u{105A0}"],[66938,1,"\u{105A1}"],[66939,3],[66940,1,"\u{105A3}"],[66941,1,"\u{105A4}"],[66942,1,"\u{105A5}"],[66943,1,"\u{105A6}"],[66944,1,"\u{105A7}"],[66945,1,"\u{105A8}"],[66946,1,"\u{105A9}"],[66947,1,"\u{105AA}"],[66948,1,"\u{105AB}"],[66949,1,"\u{105AC}"],[66950,1,"\u{105AD}"],[66951,1,"\u{105AE}"],[66952,1,"\u{105AF}"],[66953,1,"\u{105B0}"],[66954,1,"\u{105B1}"],[66955,3],[66956,1,"\u{105B3}"],[66957,1,"\u{105B4}"],[66958,1,"\u{105B5}"],[66959,1,"\u{105B6}"],[66960,1,"\u{105B7}"],[66961,1,"\u{105B8}"],[66962,1,"\u{105B9}"],[66963,3],[66964,1,"\u{105BB}"],[66965,1,"\u{105BC}"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67007],3],[[67008,67059],2],[[67060,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,"\u{1DF04}"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\u{1DF05}"],[67488,1,"\u028E"],[67489,1,"\u{1DF06}"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\u{1DF08}"],[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,"\u{1DF0A}"],[67514,1,"\u{1DF1E}"],[[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,"\u{10CC0}"],[68737,1,"\u{10CC1}"],[68738,1,"\u{10CC2}"],[68739,1,"\u{10CC3}"],[68740,1,"\u{10CC4}"],[68741,1,"\u{10CC5}"],[68742,1,"\u{10CC6}"],[68743,1,"\u{10CC7}"],[68744,1,"\u{10CC8}"],[68745,1,"\u{10CC9}"],[68746,1,"\u{10CCA}"],[68747,1,"\u{10CCB}"],[68748,1,"\u{10CCC}"],[68749,1,"\u{10CCD}"],[68750,1,"\u{10CCE}"],[68751,1,"\u{10CCF}"],[68752,1,"\u{10CD0}"],[68753,1,"\u{10CD1}"],[68754,1,"\u{10CD2}"],[68755,1,"\u{10CD3}"],[68756,1,"\u{10CD4}"],[68757,1,"\u{10CD5}"],[68758,1,"\u{10CD6}"],[68759,1,"\u{10CD7}"],[68760,1,"\u{10CD8}"],[68761,1,"\u{10CD9}"],[68762,1,"\u{10CDA}"],[68763,1,"\u{10CDB}"],[68764,1,"\u{10CDC}"],[68765,1,"\u{10CDD}"],[68766,1,"\u{10CDE}"],[68767,1,"\u{10CDF}"],[68768,1,"\u{10CE0}"],[68769,1,"\u{10CE1}"],[68770,1,"\u{10CE2}"],[68771,1,"\u{10CE3}"],[68772,1,"\u{10CE4}"],[68773,1,"\u{10CE5}"],[68774,1,"\u{10CE6}"],[68775,1,"\u{10CE7}"],[68776,1,"\u{10CE8}"],[68777,1,"\u{10CE9}"],[68778,1,"\u{10CEA}"],[68779,1,"\u{10CEB}"],[68780,1,"\u{10CEC}"],[68781,1,"\u{10CED}"],[68782,1,"\u{10CEE}"],[68783,1,"\u{10CEF}"],[68784,1,"\u{10CF0}"],[68785,1,"\u{10CF1}"],[68786,1,"\u{10CF2}"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,68927],3],[[68928,68943],2],[68944,1,"\u{10D70}"],[68945,1,"\u{10D71}"],[68946,1,"\u{10D72}"],[68947,1,"\u{10D73}"],[68948,1,"\u{10D74}"],[68949,1,"\u{10D75}"],[68950,1,"\u{10D76}"],[68951,1,"\u{10D77}"],[68952,1,"\u{10D78}"],[68953,1,"\u{10D79}"],[68954,1,"\u{10D7A}"],[68955,1,"\u{10D7B}"],[68956,1,"\u{10D7C}"],[68957,1,"\u{10D7D}"],[68958,1,"\u{10D7E}"],[68959,1,"\u{10D7F}"],[68960,1,"\u{10D80}"],[68961,1,"\u{10D81}"],[68962,1,"\u{10D82}"],[68963,1,"\u{10D83}"],[68964,1,"\u{10D84}"],[68965,1,"\u{10D85}"],[[68966,68968],3],[[68969,68973],2],[68974,2],[[68975,68997],2],[[68998,69005],3],[[69006,69007],2],[[69008,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69313],3],[[69314,69316],2],[[69317,69371],3],[69372,2],[[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,70527],3],[[70528,70537],2],[70538,3],[70539,2],[[70540,70541],3],[70542,2],[70543,3],[[70544,70581],2],[70582,3],[[70583,70592],2],[70593,3],[70594,2],[[70595,70596],3],[70597,2],[70598,3],[[70599,70602],2],[70603,3],[[70604,70611],2],[[70612,70613],2],[70614,3],[[70615,70616],2],[[70617,70624],3],[[70625,70626],2],[[70627,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,71375],3],[[71376,71395],2],[[71396,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,"\u{118C0}"],[71841,1,"\u{118C1}"],[71842,1,"\u{118C2}"],[71843,1,"\u{118C3}"],[71844,1,"\u{118C4}"],[71845,1,"\u{118C5}"],[71846,1,"\u{118C6}"],[71847,1,"\u{118C7}"],[71848,1,"\u{118C8}"],[71849,1,"\u{118C9}"],[71850,1,"\u{118CA}"],[71851,1,"\u{118CB}"],[71852,1,"\u{118CC}"],[71853,1,"\u{118CD}"],[71854,1,"\u{118CE}"],[71855,1,"\u{118CF}"],[71856,1,"\u{118D0}"],[71857,1,"\u{118D1}"],[71858,1,"\u{118D2}"],[71859,1,"\u{118D3}"],[71860,1,"\u{118D4}"],[71861,1,"\u{118D5}"],[71862,1,"\u{118D6}"],[71863,1,"\u{118D7}"],[71864,1,"\u{118D8}"],[71865,1,"\u{118D9}"],[71866,1,"\u{118DA}"],[71867,1,"\u{118DB}"],[71868,1,"\u{118DC}"],[71869,1,"\u{118DD}"],[71870,1,"\u{118DE}"],[71871,1,"\u{118DF}"],[[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,72639],3],[[72640,72672],2],[72673,2],[[72674,72687],3],[[72688,72697],2],[[72698,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,2],[[73563,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,78943],3],[[78944,82938],2],[[82939,82943],3],[[82944,83526],2],[[83527,90367],3],[[90368,90425],2],[[90426,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,93503],3],[[93504,93548],2],[[93549,93551],2],[[93552,93561],2],[[93562,93759],3],[93760,1,"\u{16E60}"],[93761,1,"\u{16E61}"],[93762,1,"\u{16E62}"],[93763,1,"\u{16E63}"],[93764,1,"\u{16E64}"],[93765,1,"\u{16E65}"],[93766,1,"\u{16E66}"],[93767,1,"\u{16E67}"],[93768,1,"\u{16E68}"],[93769,1,"\u{16E69}"],[93770,1,"\u{16E6A}"],[93771,1,"\u{16E6B}"],[93772,1,"\u{16E6C}"],[93773,1,"\u{16E6D}"],[93774,1,"\u{16E6E}"],[93775,1,"\u{16E6F}"],[93776,1,"\u{16E70}"],[93777,1,"\u{16E71}"],[93778,1,"\u{16E72}"],[93779,1,"\u{16E73}"],[93780,1,"\u{16E74}"],[93781,1,"\u{16E75}"],[93782,1,"\u{16E76}"],[93783,1,"\u{16E77}"],[93784,1,"\u{16E78}"],[93785,1,"\u{16E79}"],[93786,1,"\u{16E7A}"],[93787,1,"\u{16E7B}"],[93788,1,"\u{16E7C}"],[93789,1,"\u{16E7D}"],[93790,1,"\u{16E7E}"],[93791,1,"\u{16E7F}"],[[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,101630],3],[101631,2],[[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,117759],3],[[117760,117973],2],[117974,1,"a"],[117975,1,"b"],[117976,1,"c"],[117977,1,"d"],[117978,1,"e"],[117979,1,"f"],[117980,1,"g"],[117981,1,"h"],[117982,1,"i"],[117983,1,"j"],[117984,1,"k"],[117985,1,"l"],[117986,1,"m"],[117987,1,"n"],[117988,1,"o"],[117989,1,"p"],[117990,1,"q"],[117991,1,"r"],[117992,1,"s"],[117993,1,"t"],[117994,1,"u"],[117995,1,"v"],[117996,1,"w"],[117997,1,"x"],[117998,1,"y"],[117999,1,"z"],[118e3,1,"0"],[118001,1,"1"],[118002,1,"2"],[118003,1,"3"],[118004,1,"4"],[118005,1,"5"],[118006,1,"6"],[118007,1,"7"],[118008,1,"8"],[118009,1,"9"],[[118010,118015],3],[[118016,118451],2],[[118452,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,"\u{1D157}\u{1D165}"],[119135,1,"\u{1D158}\u{1D165}"],[119136,1,"\u{1D158}\u{1D165}\u{1D16E}"],[119137,1,"\u{1D158}\u{1D165}\u{1D16F}"],[119138,1,"\u{1D158}\u{1D165}\u{1D170}"],[119139,1,"\u{1D158}\u{1D165}\u{1D171}"],[119140,1,"\u{1D158}\u{1D165}\u{1D172}"],[[119141,119154],2],[[119155,119162],7],[[119163,119226],2],[119227,1,"\u{1D1B9}\u{1D165}"],[119228,1,"\u{1D1BA}\u{1D165}"],[119229,1,"\u{1D1B9}\u{1D165}\u{1D16E}"],[119230,1,"\u{1D1BA}\u{1D165}\u{1D16E}"],[119231,1,"\u{1D1B9}\u{1D165}\u{1D16F}"],[119232,1,"\u{1D1BA}\u{1D165}\u{1D16F}"],[[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"],[12e4,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,124367],3],[[124368,124410],2],[[124411,124414],3],[124415,2],[[124416,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,"\u{1E922}"],[125185,1,"\u{1E923}"],[125186,1,"\u{1E924}"],[125187,1,"\u{1E925}"],[125188,1,"\u{1E926}"],[125189,1,"\u{1E927}"],[125190,1,"\u{1E928}"],[125191,1,"\u{1E929}"],[125192,1,"\u{1E92A}"],[125193,1,"\u{1E92B}"],[125194,1,"\u{1E92C}"],[125195,1,"\u{1E92D}"],[125196,1,"\u{1E92E}"],[125197,1,"\u{1E92F}"],[125198,1,"\u{1E930}"],[125199,1,"\u{1E931}"],[125200,1,"\u{1E932}"],[125201,1,"\u{1E933}"],[125202,1,"\u{1E934}"],[125203,1,"\u{1E935}"],[125204,1,"\u{1E936}"],[125205,1,"\u{1E937}"],[125206,1,"\u{1E938}"],[125207,1,"\u{1E939}"],[125208,1,"\u{1E93A}"],[125209,1,"\u{1E93B}"],[125210,1,"\u{1E93C}"],[125211,1,"\u{1E93D}"],[125212,1,"\u{1E93E}"],[125213,1,"\u{1E93F}"],[125214,1,"\u{1E940}"],[125215,1,"\u{1E941}"],[125216,1,"\u{1E942}"],[125217,1,"\u{1E943}"],[[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,1,"0,"],[127234,1,"1,"],[127235,1,"2,"],[127236,1,"3,"],[127237,1,"4,"],[127238,1,"5,"],[127239,1,"6,"],[127240,1,"7,"],[127241,1,"8,"],[127242,1,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,1,"(a)"],[127249,1,"(b)"],[127250,1,"(c)"],[127251,1,"(d)"],[127252,1,"(e)"],[127253,1,"(f)"],[127254,1,"(g)"],[127255,1,"(h)"],[127256,1,"(i)"],[127257,1,"(j)"],[127258,1,"(k)"],[127259,1,"(l)"],[127260,1,"(m)"],[127261,1,"(n)"],[127262,1,"(o)"],[127263,1,"(p)"],[127264,1,"(q)"],[127265,1,"(r)"],[127266,1,"(s)"],[127267,1,"(t)"],[127268,1,"(u)"],[127269,1,"(v)"],[127270,1,"(w)"],[127271,1,"(x)"],[127272,1,"(y)"],[127273,1,"(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],[[128e3,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,129211],2],[[129212,129215],3],[[129216,129217],2],[[129218,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,2],[[129674,129678],3],[129679,2],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,2],[129727,2],[[129728,129730],2],[[129731,129733],2],[129734,2],[[129735,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[129756,2],[[129757,129758],3],[129759,2],[[129760,129767],2],[129768,2],[129769,2],[[129770,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],2],[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,191471],3],[[191472,192093],2],[[192094,194559],3],[194560,1,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\u{20122}"],[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,"\u{2063A}"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\u{2051C}"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\u{2054B}"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\u{291DF}"],[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,"\u{20A2C}"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\u{20B63}"],[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,"\u{214E4}"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\u{216A8}"],[194657,1,"\u{216EA}"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,1,"\u36FC"],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\u{219C8}"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\u{21B18}"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,1,"\u5F53"],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\u{21DE4}"],[194684,1,"\u5D43"],[194685,1,"\u{21DE6}"],[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,"\u{22183}"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\u{2A392}"],[194704,1,"\u5EFE"],[[194705,194706],1,"\u{22331}"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\u{232B8}"],[194712,1,"\u{261DA}"],[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,"\u{226D4}"],[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,"\u{22B0C}"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\u{22BF1}"],[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,"\u{2300A}"],[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,"\u{233C3}"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\u{2346D}"],[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,"\u{236A3}"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\u{238A7}"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\u{23A8D}"],[194808,1,"\u{21D0B}"],[194809,1,"\u{23AFA}"],[194810,1,"\u6C4E"],[194811,1,"\u{23CBC}"],[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,"\u{23D1E}"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\u{23ED1}"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\u{23F5E}"],[194833,1,"\u{23F8E}"],[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,"\u{20525}"],[194844,1,"\u7145"],[194845,1,"\u{24263}"],[194846,1,"\u719C"],[194847,1,"\u{243AB}"],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\u{24608}"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\u{24735}"],[194855,1,"\u{24814}"],[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,"\u{24C36}"],[194870,1,"\u753E"],[194871,1,"\u{24C92}"],[194872,1,"\u7570"],[194873,1,"\u{2219F}"],[194874,1,"\u7610"],[194875,1,"\u{24FA1}"],[194876,1,"\u{24FB8}"],[194877,1,"\u{25044}"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\u{250F3}"],[194882,1,"\u{250F2}"],[194883,1,"\u{25119}"],[194884,1,"\u{25133}"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\u{2541D}"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\u{25626}"],[194899,1,"\u7956"],[194900,1,"\u{2569A}"],[194901,1,"\u{256C5}"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\u{2597C}"],[[194909,194910],1,"\u{25AA7}"],[194911,1,"\u7AEE"],[194912,1,"\u4202"],[194913,1,"\u{25BAB}"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\u{25C80}"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\u{25F86}"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\u{26228}"],[194931,1,"\u{26247}"],[194932,1,"\u4359"],[194933,1,"\u{262D9}"],[194934,1,"\u7F7A"],[194935,1,"\u{2633E}"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\u{264DA}"],[194940,1,"\u{26523}"],[194941,1,"\u8060"],[194942,1,"\u{265A8}"],[194943,1,"\u8070"],[194944,1,"\u{2335F}"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\u{267A7}"],[194952,1,"\u{267B5}"],[194953,1,"\u{23393}"],[194954,1,"\u{2339C}"],[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,"\u{26B3C}"],[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,"\u{26C36}"],[194981,1,"\u{26D6B}"],[194982,1,"\u{26CD5}"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\u{273CA}"],[194988,1,"\u8564"],[194989,1,"\u{26F2C}"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\u{26FB1}"],[194993,1,"\u{270D2}"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195e3,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,1,"\u45D7"],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\u{27667}"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\u{278AE}"],[195020,1,"\u{27966}"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\u{27CA8}"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\u{27F2F}"],[195033,1,"\u{20804}"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\u{208DE}"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\u{285D2}"],[195041,1,"\u{285ED}"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\u{2872E}"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\u{28BFA}"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\u{28D77}"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\u{29145}"],[195063,1,"\u{2921A}"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\u{2940A}"],[195068,1,"\u4AB2"],[195069,1,"\u{29496}"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\u{295B6}"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\u{29B30}"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\u{2A0CE}"],[195089,1,"\u4CF8"],[195090,1,"\u{2A105}"],[195091,1,"\u{2A20E}"],[195092,1,"\u{2A291}"],[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,"\u{2A600}"],[[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],[[918e3,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]];});var wm=c((HF,Om)=>{g();Om.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,deviation:6,ignored:7};});var bm=c((YF,Bm)=>{g();var e2=(Am(),f(gm)),Xt=Sm(),_m=ym(),{STATUS_MAPPING:_n}=wm();function Zl(t){return /[^\x00-\x7F]/u.test(t)}function Dm(t){let e=0,r=_m.length-1;for(;e<=r;){let n=Math.floor((e+r)/2),s=_m[n],o=Array.isArray(s[0])?s[0][0]:s[0],i=Array.isArray(s[0])?s[0][1]:s[0];if(o<=t&&i>=t)return s.slice(1);o>t?r=n-1:e=n+1;}return null}function f5(t,{transitionalProcessing:e}){let r="";for(let n of t){let[s,o]=Dm(n.codePointAt(0));switch(s){case _n.disallowed:r+=n;break;case _n.ignored:break;case _n.mapped:e&&n==="\u1E9E"?r+="ss":r+=o;break;case _n.deviation:e?r+=o:r+=n;break;case _n.valid:r+=n;break}}return r}function m5(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,transitionalProcessing:s,useSTD3ASCIIRules:o,isBidi:i}){if(t.length===0)return true;if(t.normalize("NFC")!==t)return false;let u=Array.from(t);if(e&&(u[2]==="-"&&u[3]==="-"||t.startsWith("-")||t.endsWith("-"))||!e&&t.startsWith("xn--")||t.includes(".")||Xt.combiningMarks.test(u[0]))return false;for(let a of u){let c=a.codePointAt(0),[h]=Dm(c);if(s){if(h!==_n.valid)return false}else if(h!==_n.valid&&h!==_n.deviation)return false;if(o&&c<=127&&!/^(?:[a-z]|[0-9]|-)$/u.test(a))return false}if(n){let a=0;for(let[c,h]of u.entries())if(h==="\u200C"||h==="\u200D"){if(c>0){if(Xt.combiningClassVirama.test(u[c-1]))continue;if(h==="\u200C"){let d=u.indexOf("\u200C",c+1),m=d<0?u.slice(a):u.slice(a,d);if(Xt.validZWNJ.test(m.join(""))){a=c+1;continue}}}return false}}if(r&&i){let a;if(Xt.bidiS1LTR.test(u[0]))a=false;else if(Xt.bidiS1RTL.test(u[0]))a=true;else return false;if(a){if(!Xt.bidiS2.test(t)||!Xt.bidiS3.test(t)||Xt.bidiS4EN.test(t)&&Xt.bidiS4AN.test(t))return false}else if(!Xt.bidiS5.test(t)||!Xt.bidiS6.test(t))return false}return true}function p5(t){let e=t.map(r=>{if(r.startsWith("xn--"))try{return e2.decode(r.substring(4))}catch{return ""}return r}).join(".");return Xt.bidiDomain.test(e)}function Tm(t,e){let r=f5(t,e);r=r.normalize("NFC");let n=r.split("."),s=p5(n),o=false;for(let[i,u]of n.entries()){let a=u,c=e.transitionalProcessing;if(a.startsWith("xn--")){if(Zl(a)){o=true;continue}try{a=e2.decode(a.substring(4));}catch{if(!e.ignoreInvalidPunycode){o=true;continue}}n[i]=a,(a===""||!Zl(a))&&(o=true),c=false;}if(o)continue;m5(a,{...e,transitionalProcessing:c,isBidi:s})||(o=true);}return {string:n.join("."),error:o}}function E5(t,{checkHyphens:e=false,checkBidi:r=false,checkJoiners:n=false,useSTD3ASCIIRules:s=false,verifyDNSLength:o=false,transitionalProcessing:i=false,ignoreInvalidPunycode:u=false}={}){let a=Tm(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:s,transitionalProcessing:i,ignoreInvalidPunycode:u}),c=a.string.split(".");if(c=c.map(h=>{if(Zl(h))try{return `xn--${e2.encode(h)}`}catch{a.error=true;}return h}),o){let h=c.join(".").length;(h>253||h===0)&&(a.error=true);for(let d=0;d<c.length;++d)if(c[d].length>63||c[d].length===0){a.error=true;break}}return a.error?null:c.join(".")}function g5(t,{checkHyphens:e=false,checkBidi:r=false,checkJoiners:n=false,useSTD3ASCIIRules:s=false,transitionalProcessing:o=false,ignoreInvalidPunycode:i=false}={}){let u=Tm(t,{checkHyphens:e,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:s,transitionalProcessing:o,ignoreInvalidPunycode:i});return {domain:u.string,error:u.error}}Bm.exports={toASCII:E5,toUnicode:g5};});var r2=c((JF,Fm)=>{g();function t2(t){return t>=48&&t<=57}function Mm(t){return t>=65&&t<=90||t>=97&&t<=122}function A5(t){return Mm(t)||t2(t)}function C5(t){return t2(t)||t>=65&&t<=70||t>=97&&t<=102}Fm.exports={isASCIIDigit:t2,isASCIIAlpha:Mm,isASCIIAlphanumeric:A5,isASCIIHex:C5};});var au=c((ZF,Rm)=>{g();var S5=new TextEncoder,y5=new TextDecoder("utf-8",{ignoreBOM:true});function O5(t){return S5.encode(t)}function w5(t){return y5.decode(t)}Rm.exports={utf8Encode:O5,utf8DecodeWithoutBOM:w5};});var cu=c((tR,km)=>{g();var{isASCIIHex:Nm}=r2(),{utf8Encode:Im}=au();function re(t){return t.codePointAt(0)}function _5(t){let e=t.toString(16).toUpperCase();return e.length===1&&(e=`0${e}`),`%${e}`}function vm(t){let e=new Uint8Array(t.byteLength),r=0;for(let n=0;n<t.byteLength;++n){let s=t[n];if(s!==37)e[r++]=s;else if(s===37&&(!Nm(t[n+1])||!Nm(t[n+2])))e[r++]=s;else {let o=parseInt(String.fromCodePoint(t[n+1],t[n+2]),16);e[r++]=o,n+=2;}}return e.slice(0,r)}function D5(t){let e=Im(t);return vm(e)}function n2(t){return t<=31||t>126}var T5=new Set([re(" "),re('"'),re("<"),re(">"),re("`")]);function B5(t){return n2(t)||T5.has(t)}var b5=new Set([re(" "),re('"'),re("#"),re("<"),re(">")]);function s2(t){return n2(t)||b5.has(t)}function M5(t){return s2(t)||t===re("'")}var F5=new Set([re("?"),re("`"),re("{"),re("}"),re("^")]);function Pm(t){return s2(t)||F5.has(t)}var R5=new Set([re("/"),re(":"),re(";"),re("="),re("@"),re("["),re("\\"),re("]"),re("|")]);function xm(t){return Pm(t)||R5.has(t)}var N5=new Set([re("$"),re("%"),re("&"),re("+"),re(",")]);function I5(t){return xm(t)||N5.has(t)}var v5=new Set([re("!"),re("'"),re("("),re(")"),re("~")]);function P5(t){return I5(t)||v5.has(t)}function Lm(t,e){let r=Im(t),n="";for(let s of r)e(s)?n+=_5(s):n+=String.fromCharCode(s);return n}function x5(t,e){return Lm(String.fromCodePoint(t),e)}function L5(t,e,r=false){let n="";for(let s of t)r&&s===" "?n+="+":n+=Lm(s,e);return n}km.exports={isC0ControlPercentEncode:n2,isFragmentPercentEncode:B5,isQueryPercentEncode:s2,isSpecialQueryPercentEncode:M5,isPathPercentEncode:Pm,isUserinfoPercentEncode:xm,isURLEncodedPercentEncode:P5,percentDecodeString:D5,percentDecodeBytes:vm,utf8PercentEncodeString:L5,utf8PercentEncodeCodePoint:x5};});var l2=c((nR,Et)=>{g();var k5=bm(),Xe=r2(),{utf8DecodeWithoutBOM:q5}=au(),{percentDecodeString:U5,utf8PercentEncodeCodePoint:hu,utf8PercentEncodeString:du,isC0ControlPercentEncode:zm,isFragmentPercentEncode:j5,isQueryPercentEncode:z5,isSpecialQueryPercentEncode:V5,isPathPercentEncode:W5,isUserinfoPercentEncode:u2}=cu();function D(t){return t.codePointAt(0)}var Vm={ftp:21,file:null,http:80,https:443,ws:80,wss:443},W=Symbol("failure");function qm(t){return [...t].length}function Um(t,e){let r=t[e];return isNaN(r)?void 0:String.fromCodePoint(r)}function jm(t){return t==="."||t.toLowerCase()==="%2e"}function $5(t){return t=t.toLowerCase(),t===".."||t==="%2e."||t===".%2e"||t==="%2e%2e"}function G5(t,e){return Xe.isASCIIAlpha(t)&&(e===D(":")||e===D("|"))}function Wm(t){return t.length===2&&Xe.isASCIIAlpha(t.codePointAt(0))&&(t[1]===":"||t[1]==="|")}function H5(t){return t.length===2&&Xe.isASCIIAlpha(t.codePointAt(0))&&t[1]===":"}function $m(t){return t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1}function K5(t){return $m(t)||t.search(/[\u0000-\u001F]|%|\u007F/u)!==-1}function lu(t){return Vm[t]!==void 0}function Ye(t){return lu(t.scheme)}function o2(t){return !lu(t.scheme)}function Gm(t){return Vm[t]}function Hm(t){if(t==="")return W;let e=10;if(t.length>=2&&t.charAt(0)==="0"&&t.charAt(1).toLowerCase()==="x"?(t=t.substring(2),e=16):t.length>=2&&t.charAt(0)==="0"&&(t=t.substring(1),e=8),t==="")return 0;let r=/[^0-7]/u;return e===10&&(r=/[^0-9]/u),e===16&&(r=/[^0-9A-Fa-f]/u),r.test(t)?W:parseInt(t,e)}function Y5(t){let e=t.split(".");if(e[e.length-1]===""&&e.length>1&&e.pop(),e.length>4)return W;let r=[];for(let o of e){let i=Hm(o);if(i===W)return W;r.push(i);}for(let o=0;o<r.length-1;++o)if(r[o]>255)return W;if(r[r.length-1]>=256**(5-r.length))return W;let n=r.pop(),s=0;for(let o of r)n+=o*256**(3-s),++s;return n}function X5(t){let e="",r=t;for(let n=1;n<=4;++n)e=String(r%256)+e,n!==4&&(e=`.${e}`),r=Math.floor(r/256);return e}function J5(t){let e=[0,0,0,0,0,0,0,0],r=0,n=null,s=0;if(t=Array.from(t,o=>o.codePointAt(0)),t[s]===D(":")){if(t[s+1]!==D(":"))return W;s+=2,++r,n=r;}for(;s<t.length;){if(r===8)return W;if(t[s]===D(":")){if(n!==null)return W;++s,++r,n=r;continue}let o=0,i=0;for(;i<4&&Xe.isASCIIHex(t[s]);)o=o*16+parseInt(Um(t,s),16),++s,++i;if(t[s]===D(".")){if(i===0||(s-=i,r>6))return W;let u=0;for(;t[s]!==void 0;){let a=null;if(u>0)if(t[s]===D(".")&&u<4)++s;else return W;if(!Xe.isASCIIDigit(t[s]))return W;for(;Xe.isASCIIDigit(t[s]);){let c=parseInt(Um(t,s));if(a===null)a=c;else {if(a===0)return W;a=a*10+c;}if(a>255)return W;++s;}e[r]=e[r]*256+a,++u,(u===2||u===4)&&++r;}if(u!==4)return W;break}else if(t[s]===D(":")){if(++s,t[s]===void 0)return W}else if(t[s]!==void 0)return W;e[r]=o,++r;}if(n!==null){let o=r-n;for(r=7;r!==0&&o>0;){let i=e[n+o-1];e[n+o-1]=e[r],e[r]=i,--r,--o;}}else if(n===null&&r!==8)return W;return e}function Q5(t){let e="",r=tS(t),n=false;for(let s=0;s<=7;++s)if(!(n&&t[s]===0)){if(n&&(n=false),r===s){e+=s===0?"::":":",n=true;continue}e+=t[s].toString(16),s!==7&&(e+=":");}return e}function i2(t,e=false){if(t[0]==="[")return t[t.length-1]!=="]"?W:J5(t.substring(1,t.length-1));if(e)return eS(t);let r=q5(U5(t)),n=rS(r);return n===W?W:Z5(n)?Y5(n):n}function Z5(t){let e=t.split(".");if(e[e.length-1]===""){if(e.length===1)return false;e.pop();}let r=e[e.length-1];return !!(Hm(r)!==W||/^[0-9]+$/u.test(r))}function eS(t){return $m(t)?W:du(t,zm)}function tS(t){let e=null,r=1,n=null,s=0;for(let o=0;o<t.length;++o)t[o]!==0?(s>r&&(e=n,r=s),n=null,s=0):(n===null&&(n=o),++s);return s>r?n:e}function a2(t){return typeof t=="number"?X5(t):t instanceof Array?`[${Q5(t)}]`:t}function rS(t,e=false){let r=k5.toASCII(t,{checkHyphens:e,checkBidi:true,checkJoiners:true,useSTD3ASCIIRules:e,transitionalProcessing:false,verifyDNSLength:e,ignoreInvalidPunycode:false});return r===null||!e&&(r===""||K5(r))?W:r}function nS(t){let e=0,r=t.length;for(;e<r&&!(t.charCodeAt(e)>32);++e);for(;r>e&&!(t.charCodeAt(r-1)>32);--r);return t.substring(e,r)}function sS(t){return t.replace(/\u0009|\u000A|\u000D/ug,"")}function Km(t){let{path:e}=t;e.length!==0&&(t.scheme==="file"&&e.length===1&&iS(e[0])||e.pop());}function Ym(t){return t.username!==""||t.password!==""}function oS(t){return t.host===null||t.host===""||t.scheme==="file"}function Ei(t){return typeof t.path=="string"}function iS(t){return /^[A-Za-z]:$/u.test(t)}function be(t,e,r,n,s){if(this.pointer=0,this.input=t,this.base=e||null,this.encodingOverride=r||"utf-8",this.stateOverride=s,this.url=n,this.failure=false,this.parseError=false,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};let i=nS(this.input);i!==this.input&&(this.parseError=true),this.input=i;}let o=sS(this.input);for(o!==this.input&&(this.parseError=true),this.input=o,this.state=s||"scheme start",this.buffer="",this.atFlag=false,this.arrFlag=false,this.passwordTokenSeenFlag=false,this.input=Array.from(this.input,i=>i.codePointAt(0));this.pointer<=this.input.length;++this.pointer){let i=this.input[this.pointer],u=isNaN(i)?void 0:String.fromCodePoint(i),a=this[`parse ${this.state}`](i,u);if(a){if(a===W){this.failure=true;break}}else break}}be.prototype["parse scheme start"]=function(e,r){if(Xe.isASCIIAlpha(e))this.buffer+=r.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=true,W;return true};be.prototype["parse scheme"]=function(e,r){if(Xe.isASCIIAlphanumeric(e)||e===D("+")||e===D("-")||e===D("."))this.buffer+=r.toLowerCase();else if(e===D(":")){if(this.stateOverride&&(Ye(this.url)&&!lu(this.buffer)||!Ye(this.url)&&lu(this.buffer)||(Ym(this.url)||this.url.port!==null)&&this.buffer==="file"||this.url.scheme==="file"&&this.url.host===""))return false;if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===Gm(this.url.scheme)&&(this.url.port=null),false;this.buffer="",this.url.scheme==="file"?((this.input[this.pointer+1]!==D("/")||this.input[this.pointer+2]!==D("/"))&&(this.parseError=true),this.state="file"):Ye(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme?this.state="special relative or authority":Ye(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===D("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path");}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=true,W;return true};be.prototype["parse no scheme"]=function(e){return this.base===null||Ei(this.base)&&e!==D("#")?W:(Ei(this.base)&&e===D("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):this.base.scheme==="file"?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),true)};be.prototype["parse special relative or authority"]=function(e){return e===D("/")&&this.input[this.pointer+1]===D("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=true,this.state="relative",--this.pointer),true};be.prototype["parse path or authority"]=function(e){return e===D("/")?this.state="authority":(this.state="path",--this.pointer),true};be.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===D("/")?this.state="relative slash":Ye(this.url)&&e===D("\\")?(this.parseError=true,this.state="relative slash"):(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,e===D("?")?(this.url.query="",this.state="query"):e===D("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),true};be.prototype["parse relative slash"]=function(e){return Ye(this.url)&&(e===D("/")||e===D("\\"))?(e===D("\\")&&(this.parseError=true),this.state="special authority ignore slashes"):e===D("/")?this.state="authority":(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),true};be.prototype["parse special authority slashes"]=function(e){return e===D("/")&&this.input[this.pointer+1]===D("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=true,this.state="special authority ignore slashes",--this.pointer),true};be.prototype["parse special authority ignore slashes"]=function(e){return e!==D("/")&&e!==D("\\")?(this.state="authority",--this.pointer):this.parseError=true,true};be.prototype["parse authority"]=function(e,r){if(e===D("@")){this.parseError=true,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=true;let n=qm(this.buffer);for(let s=0;s<n;++s){let o=this.buffer.codePointAt(s);if(o===D(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=true;continue}let i=hu(o,u2);this.passwordTokenSeenFlag?this.url.password+=i:this.url.username+=i;}this.buffer="";}else if(isNaN(e)||e===D("/")||e===D("?")||e===D("#")||Ye(this.url)&&e===D("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=true,W;this.pointer-=qm(this.buffer)+1,this.buffer="",this.state="host";}else this.buffer+=r;return true};be.prototype["parse hostname"]=be.prototype["parse host"]=function(e,r){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(e===D(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=true,W;if(this.stateOverride==="hostname")return false;let n=i2(this.buffer,o2(this.url));if(n===W)return W;this.url.host=n,this.buffer="",this.state="port";}else if(isNaN(e)||e===D("/")||e===D("?")||e===D("#")||Ye(this.url)&&e===D("\\")){if(--this.pointer,Ye(this.url)&&this.buffer==="")return this.parseError=true,W;if(this.stateOverride&&this.buffer===""&&(Ym(this.url)||this.url.port!==null))return this.parseError=true,false;let n=i2(this.buffer,o2(this.url));if(n===W)return W;if(this.url.host=n,this.buffer="",this.state="path start",this.stateOverride)return false}else e===D("[")?this.arrFlag=true:e===D("]")&&(this.arrFlag=false),this.buffer+=r;return true};be.prototype["parse port"]=function(e,r){if(Xe.isASCIIDigit(e))this.buffer+=r;else if(isNaN(e)||e===D("/")||e===D("?")||e===D("#")||Ye(this.url)&&e===D("\\")||this.stateOverride){if(this.buffer!==""){let n=parseInt(this.buffer);if(n>2**16-1)return this.parseError=true,W;this.url.port=n===Gm(this.url.scheme)?null:n,this.buffer="";}if(this.stateOverride)return false;this.state="path start",--this.pointer;}else return this.parseError=true,W;return true};var uS=new Set([D("/"),D("\\"),D("?"),D("#")]);function Xm(t,e){let r=t.length-e;return r>=2&&G5(t[e],t[e+1])&&(r===2||uS.has(t[e+2]))}be.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===D("/")||e===D("\\")?(e===D("\\")&&(this.parseError=true),this.state="file slash"):this.base!==null&&this.base.scheme==="file"?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===D("?")?(this.url.query="",this.state="query"):e===D("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,Xm(this.input,this.pointer)?(this.parseError=true,this.url.path=[]):Km(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),true};be.prototype["parse file slash"]=function(e){return e===D("/")||e===D("\\")?(e===D("\\")&&(this.parseError=true),this.state="file host"):(this.base!==null&&this.base.scheme==="file"&&(!Xm(this.input,this.pointer)&&H5(this.base.path[0])&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),true};be.prototype["parse file host"]=function(e,r){if(isNaN(e)||e===D("/")||e===D("\\")||e===D("?")||e===D("#"))if(--this.pointer,!this.stateOverride&&Wm(this.buffer))this.parseError=true,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return false;this.state="path start";}else {let n=i2(this.buffer,o2(this.url));if(n===W)return W;if(n==="localhost"&&(n=""),this.url.host=n,this.stateOverride)return false;this.buffer="",this.state="path start";}else this.buffer+=r;return true};be.prototype["parse path start"]=function(e){return Ye(this.url)?(e===D("\\")&&(this.parseError=true),this.state="path",e!==D("/")&&e!==D("\\")&&--this.pointer):!this.stateOverride&&e===D("?")?(this.url.query="",this.state="query"):!this.stateOverride&&e===D("#")?(this.url.fragment="",this.state="fragment"):e!==void 0?(this.state="path",e!==D("/")&&--this.pointer):this.stateOverride&&this.url.host===null&&this.url.path.push(""),true};be.prototype["parse path"]=function(e){return isNaN(e)||e===D("/")||Ye(this.url)&&e===D("\\")||!this.stateOverride&&(e===D("?")||e===D("#"))?(Ye(this.url)&&e===D("\\")&&(this.parseError=true),$5(this.buffer)?(Km(this.url),e!==D("/")&&!(Ye(this.url)&&e===D("\\"))&&this.url.path.push("")):jm(this.buffer)&&e!==D("/")&&!(Ye(this.url)&&e===D("\\"))?this.url.path.push(""):jm(this.buffer)||(this.url.scheme==="file"&&this.url.path.length===0&&Wm(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)),this.buffer="",e===D("?")&&(this.url.query="",this.state="query"),e===D("#")&&(this.url.fragment="",this.state="fragment")):(e===D("%")&&(!Xe.isASCIIHex(this.input[this.pointer+1])||!Xe.isASCIIHex(this.input[this.pointer+2]))&&(this.parseError=true),this.buffer+=hu(e,W5)),true};be.prototype["parse opaque path"]=function(e){if(e===D("?"))this.url.query="",this.state="query";else if(e===D("#"))this.url.fragment="",this.state="fragment";else if(e===D(" ")){let r=this.input[this.pointer+1];r===D("?")||r===D("#")?this.url.path+="%20":this.url.path+=" ";}else !isNaN(e)&&e!==D("%")&&(this.parseError=true),e===D("%")&&(!Xe.isASCIIHex(this.input[this.pointer+1])||!Xe.isASCIIHex(this.input[this.pointer+2]))&&(this.parseError=true),isNaN(e)||(this.url.path+=hu(e,zm));return true};be.prototype["parse query"]=function(e,r){if((!Ye(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")&&(this.encodingOverride="utf-8"),!this.stateOverride&&e===D("#")||isNaN(e)){let n=Ye(this.url)?V5:z5;this.url.query+=du(this.buffer,n),this.buffer="",e===D("#")&&(this.url.fragment="",this.state="fragment");}else isNaN(e)||(e===D("%")&&(!Xe.isASCIIHex(this.input[this.pointer+1])||!Xe.isASCIIHex(this.input[this.pointer+2]))&&(this.parseError=true),this.buffer+=r);return true};be.prototype["parse fragment"]=function(e){return isNaN(e)||(e===D("%")&&(!Xe.isASCIIHex(this.input[this.pointer+1])||!Xe.isASCIIHex(this.input[this.pointer+2]))&&(this.parseError=true),this.url.fragment+=hu(e,j5)),true};function aS(t,e){let r=`${t.scheme}:`;return t.host!==null&&(r+="//",(t.username!==""||t.password!=="")&&(r+=t.username,t.password!==""&&(r+=`:${t.password}`),r+="@"),r+=a2(t.host),t.port!==null&&(r+=`:${t.port}`)),t.host===null&&!Ei(t)&&t.path.length>1&&t.path[0]===""&&(r+="/."),r+=c2(t),t.query!==null&&(r+=`?${t.query}`),!e&&t.fragment!==null&&(r+=`#${t.fragment}`),r}function cS(t){let e=`${t.scheme}://`;return e+=a2(t.host),t.port!==null&&(e+=`:${t.port}`),e}function c2(t){if(Ei(t))return t.path;let e="";for(let r of t.path)e+=`/${r}`;return e}Et.exports.serializeURL=aS;Et.exports.serializePath=c2;Et.exports.serializeURLOrigin=function(t){switch(t.scheme){case "blob":{let e=Et.exports.parseURL(c2(t));return e===null||e.scheme!=="http"&&e.scheme!=="https"?"null":Et.exports.serializeURLOrigin(e)}case "ftp":case "http":case "https":case "ws":case "wss":return cS({scheme:t.scheme,host:t.host,port:t.port});case "file":return "null";default:return "null"}};Et.exports.basicURLParse=function(t,e){e===void 0&&(e={});let r=new be(t,e.baseURL,e.encodingOverride,e.url,e.stateOverride);return r.failure?null:r.url};Et.exports.setTheUsername=function(t,e){t.username=du(e,u2);};Et.exports.setThePassword=function(t,e){t.password=du(e,u2);};Et.exports.serializeHost=a2;Et.exports.cannotHaveAUsernamePasswordPort=oS;Et.exports.hasAnOpaquePath=Ei;Et.exports.serializeInteger=function(t){return String(t)};Et.exports.parseURL=function(t,e){return e===void 0&&(e={}),Et.exports.basicURLParse(t,{baseURL:e.baseURL,encodingOverride:e.encodingOverride})};});var h2=c((oR,np)=>{g();var{utf8Encode:lS,utf8DecodeWithoutBOM:Jm}=au(),{percentDecodeBytes:Qm,utf8PercentEncodeString:Zm,isURLEncodedPercentEncode:ep}=cu();function tp(t){return t.codePointAt(0)}function hS(t){let e=mS(t,tp("&")),r=[];for(let n of e){if(n.length===0)continue;let s,o,i=n.indexOf(tp("="));i>=0?(s=n.slice(0,i),o=n.slice(i+1)):(s=n,o=new Uint8Array(0)),s=rp(s,43,32),o=rp(o,43,32);let u=Jm(Qm(s)),a=Jm(Qm(o));r.push([u,a]);}return r}function dS(t){return hS(lS(t))}function fS(t){let e="";for(let[r,n]of t.entries()){let s=Zm(n[0],ep,true),o=Zm(n[1],ep,true);r!==0&&(e+="&"),e+=`${s}=${o}`;}return e}function mS(t,e){let r=[],n=0,s=t.indexOf(e);for(;s>=0;)r.push(t.slice(n,s)),n=s+1,s=t.indexOf(e,n);return n!==t.length&&r.push(t.slice(n)),r}function rp(t,e,r){let n=t.indexOf(e);for(;n>=0;)t[n]=r,n=t.indexOf(e,n+1);return t}np.exports={parseUrlencodedString:dS,serializeUrlencoded:fS};});var ip=c(op=>{g();var sp=ou(),fu=uu();op.convert=(t,e,{context:r="The provided value"}={})=>{if(typeof e!="function")throw new t.TypeError(r+" is not a function");function n(...s){let o=fu.tryWrapperForImpl(this),i;for(let u=0;u<s.length;u++)s[u]=fu.tryWrapperForImpl(s[u]);return i=Reflect.apply(e,o,s),i=sp.any(i,{context:r,globals:t}),i}return n.construct=(...s)=>{for(let i=0;i<s.length;i++)s[i]=fu.tryWrapperForImpl(s[i]);let o=Reflect.construct(e,s);return o=sp.any(o,{context:r,globals:t}),o},n[fu.wrapperSymbol]=e,n.objectReference=e,n};});var ap=c(up=>{g();var d2=h2();up.implementation=class{constructor(e,r,{doNotStripQMark:n=false}){let s=r[0];if(this._list=[],this._url=null,!n&&typeof s=="string"&&s[0]==="?"&&(s=s.slice(1)),Array.isArray(s))for(let o of s){if(o.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([o[0],o[1]]);}else if(typeof s=="object"&&Object.getPrototypeOf(s)===null)for(let o of Object.keys(s)){let i=s[o];this._list.push([o,i]);}else this._list=d2.parseUrlencodedString(s);}_updateSteps(){if(this._url!==null){let e=d2.serializeUrlencoded(this._list);e===""&&(e=null),this._url._url.query=e;}}get size(){return this._list.length}append(e,r){this._list.push([e,r]),this._updateSteps();}delete(e,r){let n=0;for(;n<this._list.length;)this._list[n][0]===e&&(r===void 0||this._list[n][1]===r)?this._list.splice(n,1):n++;this._updateSteps();}get(e){for(let r of this._list)if(r[0]===e)return r[1];return null}getAll(e){let r=[];for(let n of this._list)n[0]===e&&r.push(n[1]);return r}has(e,r){for(let n of this._list)if(n[0]===e&&(r===void 0||n[1]===r))return true;return false}set(e,r){let n=false,s=0;for(;s<this._list.length;)this._list[s][0]===e?n?this._list.splice(s,1):(n=true,this._list[s][1]=r,s++):s++;n||this._list.push([e,r]),this._updateSteps();}sort(){this._list.sort((e,r)=>e[0]<r[0]?-1:e[0]>r[0]?1:0),this._updateSteps();}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return d2.serializeUrlencoded(this._list)}};});var f2=c(oe=>{g();var St=ou(),pe=uu(),pS=ip(),cp=pe.newObjectInRealm,ve=pe.implSymbol,hp=pe.ctorRegistrySymbol,lp="URLSearchParams";oe.is=t=>pe.isObject(t)&&pe.hasOwn(t,ve)&&t[ve]instanceof Dn.implementation;oe.isImpl=t=>pe.isObject(t)&&t instanceof Dn.implementation;oe.convert=(t,e,{context:r="The provided value"}={})=>{if(oe.is(e))return pe.implForWrapper(e);throw new t.TypeError(`${r} is not of type 'URLSearchParams'.`)};oe.createDefaultIterator=(t,e,r)=>{let s=t[hp]["URLSearchParams Iterator"],o=Object.create(s);return Object.defineProperty(o,pe.iterInternalSymbol,{value:{target:e,kind:r,index:0},configurable:true}),o};function dp(t,e){let r;return e!==void 0&&(r=e.prototype),pe.isObject(r)||(r=t[hp].URLSearchParams.prototype),Object.create(r)}oe.create=(t,e,r)=>{let n=dp(t);return oe.setup(n,t,e,r)};oe.createImpl=(t,e,r)=>{let n=oe.create(t,e,r);return pe.implForWrapper(n)};oe._internalSetup=(t,e)=>{};oe.setup=(t,e,r=[],n={})=>(n.wrapper=t,oe._internalSetup(t,e),Object.defineProperty(t,ve,{value:new Dn.implementation(e,r,n),configurable:true}),t[ve][pe.wrapperSymbol]=t,Dn.init&&Dn.init(t[ve]),t);oe.new=(t,e)=>{let r=dp(t,e);return oe._internalSetup(r,t),Object.defineProperty(r,ve,{value:Object.create(Dn.implementation.prototype),configurable:true}),r[ve][pe.wrapperSymbol]=r,Dn.init&&Dn.init(r[ve]),r[ve]};var ES=new Set(["Window","Worker"]);oe.install=(t,e)=>{if(!e.some(s=>ES.has(s)))return;let r=pe.initCtorRegistry(t);class n{constructor(){let o=[];{let i=arguments[0];if(i!==void 0)if(pe.isObject(i))if(i[Symbol.iterator]!==void 0)if(pe.isObject(i)){let u=[],a=i;for(let c of a){if(pe.isObject(c)){let h=[],d=c;for(let m of d)m=St.USVString(m,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:t}),h.push(m);c=h;}else throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");u.push(c);}i=u;}else throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else if(pe.isObject(i)){let u=Object.create(null);for(let a of Reflect.ownKeys(i)){let c=Object.getOwnPropertyDescriptor(i,a);if(c&&c.enumerable){let h=a;h=St.USVString(h,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:t});let d=i[a];d=St.USVString(d,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:t}),u[h]=d;}}i=u;}else throw new t.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else i=St.USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:t});else i="";o.push(i);}return oe.setup(Object.create(new.target.prototype),t,o)}append(o,i){let u=this!==null&&this!==void 0?this:t;if(!oe.is(u))throw new t.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new t.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);let a=[];{let c=arguments[0];c=St.USVString(c,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:t}),a.push(c);}{let c=arguments[1];c=St.USVString(c,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:t}),a.push(c);}return pe.tryWrapperForImpl(u[ve].append(...a))}delete(o){let i=this!==null&&this!==void 0?this:t;if(!oe.is(i))throw new t.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);let u=[];{let a=arguments[0];a=St.USVString(a,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:t}),u.push(a);}{let a=arguments[1];a!==void 0&&(a=St.USVString(a,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:t})),u.push(a);}return pe.tryWrapperForImpl(i[ve].delete(...u))}get(o){let i=this!==null&&this!==void 0?this:t;if(!oe.is(i))throw new t.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);let u=[];{let a=arguments[0];a=St.USVString(a,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:t}),u.push(a);}return i[ve].get(...u)}getAll(o){let i=this!==null&&this!==void 0?this:t;if(!oe.is(i))throw new t.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);let u=[];{let a=arguments[0];a=St.USVString(a,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:t}),u.push(a);}return pe.tryWrapperForImpl(i[ve].getAll(...u))}has(o){let i=this!==null&&this!==void 0?this:t;if(!oe.is(i))throw new t.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);let u=[];{let a=arguments[0];a=St.USVString(a,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:t}),u.push(a);}{let a=arguments[1];a!==void 0&&(a=St.USVString(a,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:t})),u.push(a);}return i[ve].has(...u)}set(o,i){let u=this!==null&&this!==void 0?this:t;if(!oe.is(u))throw new t.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new t.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);let a=[];{let c=arguments[0];c=St.USVString(c,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:t}),a.push(c);}{let c=arguments[1];c=St.USVString(c,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:t}),a.push(c);}return pe.tryWrapperForImpl(u[ve].set(...a))}sort(){let o=this!==null&&this!==void 0?this:t;if(!oe.is(o))throw new t.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return pe.tryWrapperForImpl(o[ve].sort())}toString(){let o=this!==null&&this!==void 0?this:t;if(!oe.is(o))throw new t.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return o[ve].toString()}keys(){if(!oe.is(this))throw new t.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return oe.createDefaultIterator(t,this,"key")}values(){if(!oe.is(this))throw new t.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return oe.createDefaultIterator(t,this,"value")}entries(){if(!oe.is(this))throw new t.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return oe.createDefaultIterator(t,this,"key+value")}forEach(o){if(!oe.is(this))throw new t.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new t.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");o=pS.convert(t,o,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});let i=arguments[1],u=Array.from(this[ve]),a=0;for(;a<u.length;){let[c,h]=u[a].map(pe.tryWrapperForImpl);o.call(i,h,c,this),u=Array.from(this[ve]),a++;}}get size(){let o=this!==null&&this!==void 0?this:t;if(!oe.is(o))throw new t.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return o[ve].size}}Object.defineProperties(n.prototype,{append:{enumerable:true},delete:{enumerable:true},get:{enumerable:true},getAll:{enumerable:true},has:{enumerable:true},set:{enumerable:true},sort:{enumerable:true},toString:{enumerable:true},keys:{enumerable:true},values:{enumerable:true},entries:{enumerable:true},forEach:{enumerable:true},size:{enumerable:true},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:true},[Symbol.iterator]:{value:n.prototype.entries,configurable:true,writable:true}}),r[lp]=n,r["URLSearchParams Iterator"]=Object.create(r["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:true,value:"URLSearchParams Iterator"}}),pe.define(r["URLSearchParams Iterator"],{next(){let s=this&&this[pe.iterInternalSymbol];if(!s)throw new t.TypeError("next() called on a value that is not a URLSearchParams iterator object");let{target:o,kind:i,index:u}=s,a=Array.from(o[ve]),c=a.length;if(u>=c)return cp(t,{value:void 0,done:true});let h=a[u];return s.index=u+1,cp(t,pe.iteratorResult(h.map(pe.tryWrapperForImpl),i))}}),Object.defineProperty(t,lp,{configurable:true,writable:true,value:n});};var Dn=ap();});var Ep=c(pp=>{g();var fe=l2(),fp=h2(),gS=f2();pp.implementation=class mp{constructor(e,[r,n]){let s=null;if(n!==void 0&&(s=fe.basicURLParse(n),s===null))throw new TypeError(`Invalid base URL: ${n}`);let o=fe.basicURLParse(r,{baseURL:s});if(o===null)throw new TypeError(`Invalid URL: ${r}`);let i=o.query!==null?o.query:"";this._url=o,this._query=gS.createImpl(e,[i],{doNotStripQMark:true}),this._query._url=this;}static parse(e,r,n){try{return new mp(e,[r,n])}catch{return null}}static canParse(e,r){let n=null;return !(r!==void 0&&(n=fe.basicURLParse(r),n===null)||fe.basicURLParse(e,{baseURL:n})===null)}get href(){return fe.serializeURL(this._url)}set href(e){let r=fe.basicURLParse(e);if(r===null)throw new TypeError(`Invalid URL: ${e}`);this._url=r,this._query._list.splice(0);let{query:n}=r;n!==null&&(this._query._list=fp.parseUrlencodedString(n));}get origin(){return fe.serializeURLOrigin(this._url)}get protocol(){return `${this._url.scheme}:`}set protocol(e){fe.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"});}get username(){return this._url.username}set username(e){fe.cannotHaveAUsernamePasswordPort(this._url)||fe.setTheUsername(this._url,e);}get password(){return this._url.password}set password(e){fe.cannotHaveAUsernamePasswordPort(this._url)||fe.setThePassword(this._url,e);}get host(){let e=this._url;return e.host===null?"":e.port===null?fe.serializeHost(e.host):`${fe.serializeHost(e.host)}:${fe.serializeInteger(e.port)}`}set host(e){fe.hasAnOpaquePath(this._url)||fe.basicURLParse(e,{url:this._url,stateOverride:"host"});}get hostname(){return this._url.host===null?"":fe.serializeHost(this._url.host)}set hostname(e){fe.hasAnOpaquePath(this._url)||fe.basicURLParse(e,{url:this._url,stateOverride:"hostname"});}get port(){return this._url.port===null?"":fe.serializeInteger(this._url.port)}set port(e){fe.cannotHaveAUsernamePasswordPort(this._url)||(e===""?this._url.port=null:fe.basicURLParse(e,{url:this._url,stateOverride:"port"}));}get pathname(){return fe.serializePath(this._url)}set pathname(e){fe.hasAnOpaquePath(this._url)||(this._url.path=[],fe.basicURLParse(e,{url:this._url,stateOverride:"path start"}));}get search(){return this._url.query===null||this._url.query===""?"":`?${this._url.query}`}set search(e){let r=this._url;if(e===""){r.query=null,this._query._list=[];return}let n=e[0]==="?"?e.substring(1):e;r.query="",fe.basicURLParse(n,{url:r,stateOverride:"query"}),this._query._list=fp.parseUrlencodedString(n);}get searchParams(){return this._query}get hash(){return this._url.fragment===null||this._url.fragment===""?"":`#${this._url.fragment}`}set hash(e){if(e===""){this._url.fragment=null;return}let r=e[0]==="#"?e.substring(1):e;this._url.fragment="",fe.basicURLParse(r,{url:this._url,stateOverride:"fragment"});}toJSON(){return this.href}};});var Cp=c($=>{g();var ut=ou(),yt=uu(),ie=yt.implSymbol,AS=yt.ctorRegistrySymbol,gp="URL";$.is=t=>yt.isObject(t)&&yt.hasOwn(t,ie)&&t[ie]instanceof Nr.implementation;$.isImpl=t=>yt.isObject(t)&&t instanceof Nr.implementation;$.convert=(t,e,{context:r="The provided value"}={})=>{if($.is(e))return yt.implForWrapper(e);throw new t.TypeError(`${r} is not of type 'URL'.`)};function Ap(t,e){let r;return e!==void 0&&(r=e.prototype),yt.isObject(r)||(r=t[AS].URL.prototype),Object.create(r)}$.create=(t,e,r)=>{let n=Ap(t);return $.setup(n,t,e,r)};$.createImpl=(t,e,r)=>{let n=$.create(t,e,r);return yt.implForWrapper(n)};$._internalSetup=(t,e)=>{};$.setup=(t,e,r=[],n={})=>(n.wrapper=t,$._internalSetup(t,e),Object.defineProperty(t,ie,{value:new Nr.implementation(e,r,n),configurable:true}),t[ie][yt.wrapperSymbol]=t,Nr.init&&Nr.init(t[ie]),t);$.new=(t,e)=>{let r=Ap(t,e);return $._internalSetup(r,t),Object.defineProperty(r,ie,{value:Object.create(Nr.implementation.prototype),configurable:true}),r[ie][yt.wrapperSymbol]=r,Nr.init&&Nr.init(r[ie]),r[ie]};var CS=new Set(["Window","Worker"]);$.install=(t,e)=>{if(!e.some(s=>CS.has(s)))return;let r=yt.initCtorRegistry(t);class n{constructor(o){if(arguments.length<1)throw new t.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);let i=[];{let u=arguments[0];u=ut.USVString(u,{context:"Failed to construct 'URL': parameter 1",globals:t}),i.push(u);}{let u=arguments[1];u!==void 0&&(u=ut.USVString(u,{context:"Failed to construct 'URL': parameter 2",globals:t})),i.push(u);}return $.setup(Object.create(new.target.prototype),t,i)}toJSON(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return o[ie].toJSON()}get href(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get href' called on an object that is not a valid instance of URL.");return o[ie].href}set href(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set href' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:t}),i[ie].href=o;}toString(){let o=this;if(!$.is(o))throw new t.TypeError("'toString' called on an object that is not a valid instance of URL.");return o[ie].href}get origin(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get origin' called on an object that is not a valid instance of URL.");return o[ie].origin}get protocol(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return o[ie].protocol}set protocol(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set protocol' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:t}),i[ie].protocol=o;}get username(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get username' called on an object that is not a valid instance of URL.");return o[ie].username}set username(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set username' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:t}),i[ie].username=o;}get password(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get password' called on an object that is not a valid instance of URL.");return o[ie].password}set password(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set password' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:t}),i[ie].password=o;}get host(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get host' called on an object that is not a valid instance of URL.");return o[ie].host}set host(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set host' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:t}),i[ie].host=o;}get hostname(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return o[ie].hostname}set hostname(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set hostname' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:t}),i[ie].hostname=o;}get port(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get port' called on an object that is not a valid instance of URL.");return o[ie].port}set port(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set port' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:t}),i[ie].port=o;}get pathname(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return o[ie].pathname}set pathname(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set pathname' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:t}),i[ie].pathname=o;}get search(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get search' called on an object that is not a valid instance of URL.");return o[ie].search}set search(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set search' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:t}),i[ie].search=o;}get searchParams(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return yt.getSameObject(this,"searchParams",()=>yt.tryWrapperForImpl(o[ie].searchParams))}get hash(){let o=this!==null&&this!==void 0?this:t;if(!$.is(o))throw new t.TypeError("'get hash' called on an object that is not a valid instance of URL.");return o[ie].hash}set hash(o){let i=this!==null&&this!==void 0?this:t;if(!$.is(i))throw new t.TypeError("'set hash' called on an object that is not a valid instance of URL.");o=ut.USVString(o,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:t}),i[ie].hash=o;}static parse(o){if(arguments.length<1)throw new t.TypeError(`Failed to execute 'parse' on 'URL': 1 argument required, but only ${arguments.length} present.`);let i=[];{let u=arguments[0];u=ut.USVString(u,{context:"Failed to execute 'parse' on 'URL': parameter 1",globals:t}),i.push(u);}{let u=arguments[1];u!==void 0&&(u=ut.USVString(u,{context:"Failed to execute 'parse' on 'URL': parameter 2",globals:t})),i.push(u);}return yt.tryWrapperForImpl(Nr.implementation.parse(t,...i))}static canParse(o){if(arguments.length<1)throw new t.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);let i=[];{let u=arguments[0];u=ut.USVString(u,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:t}),i.push(u);}{let u=arguments[1];u!==void 0&&(u=ut.USVString(u,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:t})),i.push(u);}return Nr.implementation.canParse(...i)}}Object.defineProperties(n.prototype,{toJSON:{enumerable:true},href:{enumerable:true},toString:{enumerable:true},origin:{enumerable:true},protocol:{enumerable:true},username:{enumerable:true},password:{enumerable:true},host:{enumerable:true},hostname:{enumerable:true},port:{enumerable:true},pathname:{enumerable:true},search:{enumerable:true},searchParams:{enumerable:true},hash:{enumerable:true},[Symbol.toStringTag]:{value:"URL",configurable:true}}),Object.defineProperties(n,{parse:{enumerable:true},canParse:{enumerable:true}}),r[gp]=n,Object.defineProperty(t,gp,{configurable:true,writable:true,value:n}),e.includes("Window")&&Object.defineProperty(t,"webkitURL",{configurable:true,writable:true,value:n});};var Nr=Ep();});var Sp=c(m2=>{g();var SS=Cp(),yS=f2();m2.URL=SS;m2.URLSearchParams=yS;});var Op=c(at=>{g();var{URL:OS,URLSearchParams:wS}=Sp(),Er=l2(),yp=cu(),mu={Array,Object,Promise,String,TypeError};OS.install(mu,["Window"]);wS.install(mu,["Window"]);at.URL=mu.URL;at.URLSearchParams=mu.URLSearchParams;at.parseURL=Er.parseURL;at.basicURLParse=Er.basicURLParse;at.serializeURL=Er.serializeURL;at.serializePath=Er.serializePath;at.serializeHost=Er.serializeHost;at.serializeInteger=Er.serializeInteger;at.serializeURLOrigin=Er.serializeURLOrigin;at.setTheUsername=Er.setTheUsername;at.setThePassword=Er.setThePassword;at.cannotHaveAUsernamePasswordPort=Er.cannotHaveAUsernamePasswordPort;at.hasAnOpaquePath=Er.hasAnOpaquePath;at.percentDecodeString=yp.percentDecodeString;at.percentDecodeBytes=yp.percentDecodeBytes;});var _p=c(Jt=>{g();var _S=Jt&&Jt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:true,get:function(){return e[r]}}),Object.defineProperty(t,n,s);}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r];})),DS=Jt&&Jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e});}):function(t,e){t.default=e;}),TS=Jt&&Jt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&_S(e,t,r);return DS(e,t),e};Object.defineProperty(Jt,"__esModule",{value:true});Jt.redactConnectionString=Jt.redactValidConnectionString=void 0;var wp=TS(p2());function BS(t,e){var r,n;let s=t.clone(),o=(r=e?.replacementString)!==null&&r!==void 0?r:"_credentials_",i=(n=e?.redactUsernames)!==null&&n!==void 0?n:true;if((s.username||s.password)&&i?(s.username=o,s.password=""):s.password&&(s.password=o),s.searchParams.has("authMechanismProperties")){let u=new wp.CommaAndColonSeparatedRecord(s.searchParams.get("authMechanismProperties"));u.get("AWS_SESSION_TOKEN")&&(u.set("AWS_SESSION_TOKEN",o),s.searchParams.set("authMechanismProperties",u.toString()));}return s.searchParams.has("tlsCertificateKeyFilePassword")&&s.searchParams.set("tlsCertificateKeyFilePassword",o),s.searchParams.has("proxyUsername")&&i&&s.searchParams.set("proxyUsername",o),s.searchParams.has("proxyPassword")&&s.searchParams.set("proxyPassword",o),s}Jt.redactValidConnectionString=BS;function bS(t,e){var r,n;let s=(r=e?.replacementString)!==null&&r!==void 0?r:"<credentials>",o=(n=e?.redactUsernames)!==null&&n!==void 0?n:true,i;try{i=new wp.default(t);}catch{}if(i)return e={...e,replacementString:"___credentials___"},i.redact(e).toString().replace(/___credentials___/g,s);let u=s,a=[c=>c.replace(o?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${u}$3`),c=>c.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${u}`),c=>c.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${u}`),c=>o?c.replace(/(proxyUsername=)([^&]+)/gi,`$1${u}`):c,c=>c.replace(/(proxyPassword=)([^&]+)/gi,`$1${u}`)];for(let c of a)t=c(t);return t}Jt.redactConnectionString=bS;});var p2=c(Yr=>{g();Object.defineProperty(Yr,"__esModule",{value:true});Yr.CommaAndColonSeparatedRecord=Yr.ConnectionString=Yr.redactConnectionString=void 0;var MS=Op(),Dp=_p();Object.defineProperty(Yr,"redactConnectionString",{enumerable:true,get:function(){return Dp.redactConnectionString}});var gi="__this_is_a_placeholder__";function FS(t){return t.startsWith("mongodb://")||t.startsWith("mongodb+srv://")}var RS=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/,pu=class extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,r){return super.set(this._normalizeKey(e),r)}_normalizeKey(e){e=`${e}`;for(let r of this.keys())if(r.toLowerCase()===e.toLowerCase()){e=r;break}return e}};function NS(t){return class extends t{append(r,n){return super.append(this._normalizeKey(r),n)}delete(r){return super.delete(this._normalizeKey(r))}get(r){return super.get(this._normalizeKey(r))}getAll(r){return super.getAll(this._normalizeKey(r))}has(r){return super.has(this._normalizeKey(r))}set(r,n){return super.set(this._normalizeKey(r),n)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(r){return pu.prototype._normalizeKey.call(this,r)}}}var E2=class extends MS.URL{},gr=class extends Error{get name(){return "MongoParseError"}},Eu=class t extends E2{constructor(e,r={}){var n;let{looseValidation:s}=r;if(!s&&!FS(e))throw new gr('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');let o=e.match(RS);if(!o)throw new gr(`Invalid connection string "${e}"`);let{protocol:i,username:u,password:a,hosts:c,rest:h}=(n=o.groups)!==null&&n!==void 0?n:{};if(!s){if(!i||!c)throw new gr(`Protocol and host list are required in "${e}"`);try{decodeURIComponent(u??""),decodeURIComponent(a??"");}catch(E){throw new gr(E.message)}let m=/[:/?#[\]@]/gi;if(u?.match(m))throw new gr(`Username contains unescaped characters ${u}`);if(!u||!a){let E=e.replace(`${i}://`,"");if(E.startsWith("@")||E.startsWith(":"))throw new gr("URI contained empty userinfo section")}if(a?.match(m))throw new gr("Password contains unescaped characters")}let d="";typeof u=="string"&&(d+=u),typeof a=="string"&&(d+=`:${a}`),d&&(d+="@");try{super(`${i.toLowerCase()}://${d}${gi}${h}`);}catch(m){throw s&&new t(e,{...r,looseValidation:false}),typeof m.message=="string"&&(m.message=m.message.replace(gi,c)),m}if(this._hosts=c.split(","),!s){if(this.isSRV&&this.hosts.length!==1)throw new gr("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some(m=>m.includes(":")))throw new gr("mongodb+srv URI cannot have port number")}this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,NS(this.searchParams.constructor).prototype);}get host(){return gi}set host(e){throw new Error("No single host for connection string")}get hostname(){return gi}set hostname(e){throw new Error("No single host for connection string")}get port(){return ""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e;}toString(){return super.toString().replace(gi,this.hosts.join(","))}clone(){return new t(this.toString(),{looseValidation:true})}redact(e){return (0, Dp.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){let{href:e,origin:r,protocol:n,username:s,password:o,hosts:i,pathname:u,search:a,searchParams:c,hash:h}=this;return {href:e,origin:r,protocol:n,username:s,password:o,hosts:i,pathname:u,search:a,searchParams:c,hash:h}}};Yr.ConnectionString=Eu;var g2=class extends pu{constructor(e){super();for(let r of (e??"").split(",")){if(!r)continue;let n=r.indexOf(":");n===-1?this.set(r,""):this.set(r.slice(0,n),r.slice(n+1));}}toString(){return [...this].map(e=>e.join(":")).join(",")}};Yr.CommaAndColonSeparatedRecord=g2;Yr.default=Eu;});var Ci=c(Ot=>{g();Object.defineProperty(Ot,"__esModule",{value:true});Ot.OpCompressedRequest=Ot.OpMsgResponse=Ot.OpMsgRequest=Ot.DocumentSequence=Ot.OpReply=Ot.OpQueryRequest=void 0;var eo=te(),Ai=B(),A2=Si(),Qs=mn(),Zs=0,IS=2,vS=4,PS=8,xS=16,LS=32,kS=64,qS=128,US=1,jS=2,zS=4,VS=8,WS=eo.BSON.onDemand.ByteUtils.encodeUTF8Into,S2=class t{constructor(e,r,n){this.moreToCome=false;let s=`${e}.$cmd`;if(typeof e!="string")throw new Ai.MongoRuntimeError("Database name must be a string for a query");if(r==null)throw new Ai.MongoRuntimeError("A query document must be specified for query");if(s.indexOf("\0")!==-1)throw new Ai.MongoRuntimeError("Namespace cannot contain a null character");this.databaseName=e,this.query=r,this.ns=s,this.numberToSkip=n.numberToSkip||0,this.numberToReturn=n.numberToReturn||0,this.returnFieldSelector=n.returnFieldSelector||void 0,this.requestId=n.requestId??t.getRequestId(),this.pre32Limit=n.pre32Limit,this.serializeFunctions=typeof n.serializeFunctions=="boolean"?n.serializeFunctions:false,this.ignoreUndefined=typeof n.ignoreUndefined=="boolean"?n.ignoreUndefined:false,this.maxBsonSize=n.maxBsonSize||1024*1024*16,this.checkKeys=typeof n.checkKeys=="boolean"?n.checkKeys:false,this.batchSize=this.numberToReturn,this.tailable=false,this.secondaryOk=typeof n.secondaryOk=="boolean"?n.secondaryOk:false,this.oplogReplay=false,this.noCursorTimeout=false,this.awaitData=false,this.exhaust=false,this.partial=false;}incRequestId(){this.requestId=Zs++;}nextRequestId(){return Zs+1}static getRequestId(){return ++Zs}toBin(){let e=[],r=null,n=0;this.tailable&&(n|=IS),this.secondaryOk&&(n|=vS),this.oplogReplay&&(n|=PS),this.noCursorTimeout&&(n|=xS),this.awaitData&&(n|=LS),this.exhaust&&(n|=kS),this.partial&&(n|=qS),this.batchSize!==this.numberToReturn&&(this.numberToReturn=this.batchSize);let s=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);e.push(s);let o=eo.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});e.push(o),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0&&(r=eo.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),e.push(r));let i=s.length+o.length+(r?r.length:0),u=4;return s[3]=i>>24&255,s[2]=i>>16&255,s[1]=i>>8&255,s[0]=i&255,s[u+3]=this.requestId>>24&255,s[u+2]=this.requestId>>16&255,s[u+1]=this.requestId>>8&255,s[u]=this.requestId&255,u=u+4,s[u+3]=0,s[u+2]=0,s[u+1]=0,s[u]=0,u=u+4,s[u+3]=Qs.OP_QUERY>>24&255,s[u+2]=Qs.OP_QUERY>>16&255,s[u+1]=Qs.OP_QUERY>>8&255,s[u]=Qs.OP_QUERY&255,u=u+4,s[u+3]=n>>24&255,s[u+2]=n>>16&255,s[u+1]=n>>8&255,s[u]=n&255,u=u+4,u=u+s.write(this.ns,u,"utf8")+1,s[u-1]=0,s[u+3]=this.numberToSkip>>24&255,s[u+2]=this.numberToSkip>>16&255,s[u+1]=this.numberToSkip>>8&255,s[u]=this.numberToSkip&255,u=u+4,s[u+3]=this.numberToReturn>>24&255,s[u+2]=this.numberToReturn>>16&255,s[u+1]=this.numberToReturn>>8&255,s[u]=this.numberToReturn&255,u=u+4,e}};Ot.OpQueryRequest=S2;var y2=class{constructor(e,r,n,s){this.index=0,this.sections=[],this.moreToCome=false,this.parsed=false,this.raw=e,this.data=n,this.opts=s??{useBigInt64:false,promoteLongs:true,promoteValues:true,promoteBuffers:false,bsonRegExp:false},this.length=r.length,this.requestId=r.requestId,this.responseTo=r.responseTo,this.opCode=r.opCode,this.fromCompressed=r.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64=="boolean"?this.opts.useBigInt64:false,this.promoteLongs=typeof this.opts.promoteLongs=="boolean"?this.opts.promoteLongs:true,this.promoteValues=typeof this.opts.promoteValues=="boolean"?this.opts.promoteValues:true,this.promoteBuffers=typeof this.opts.promoteBuffers=="boolean"?this.opts.promoteBuffers:false,this.bsonRegExp=typeof this.opts.bsonRegExp=="boolean"?this.opts.bsonRegExp:false;}isParsed(){return this.parsed}parse(){if(this.parsed)return this.sections[0];if(this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new eo.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.numberReturned<0||this.numberReturned>2**32-1)throw new RangeError(`OP_REPLY numberReturned is an invalid array length ${this.numberReturned}`);this.cursorNotFound=(this.responseFlags&US)!==0,this.queryFailure=(this.responseFlags&jS)!==0,this.shardConfigStale=(this.responseFlags&zS)!==0,this.awaitCapable=(this.responseFlags&VS)!==0;for(let e=0;e<this.numberReturned;e++){let r=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,n=this.data.subarray(this.index,this.index+r);this.sections.push(n),this.index=this.index+r;}return this.parsed=true,this.sections[0]}};Ot.OpReply=y2;var Bp=1,bp=2,Mp=65536,gu=class{constructor(e,r){this.field=e,this.documents=[],this.chunks=[],this.serializedDocumentsLength=0;let n=Buffer.allocUnsafe(5+this.field.length+1);if(n[0]=1,WS(n,`${this.field}\0`,5),this.chunks.push(n),this.header=n,r)for(let s of r)this.push(s,eo.serialize(s));}push(e,r){return this.serializedDocumentsLength+=r.length,this.documents.push(e),this.chunks.push(r),this.header?.writeInt32LE(4+this.field.length+1+this.serializedDocumentsLength,1),this.serializedDocumentsLength+this.header.length}toBin(){return Buffer.concat(this.chunks)}};Ot.DocumentSequence=gu;var Au=class t{constructor(e,r,n){if(r==null)throw new Ai.MongoInvalidArgumentError("Query document must be specified for query");this.databaseName=e,this.command=r,this.command.$db=e,this.options=n??{},this.requestId=n.requestId?n.requestId:t.getRequestId(),this.serializeFunctions=typeof n.serializeFunctions=="boolean"?n.serializeFunctions:false,this.ignoreUndefined=typeof n.ignoreUndefined=="boolean"?n.ignoreUndefined:false,this.checkKeys=typeof n.checkKeys=="boolean"?n.checkKeys:false,this.maxBsonSize=n.maxBsonSize||1024*1024*16,this.checksumPresent=false,this.moreToCome=n.moreToCome??r.writeConcern?.w===0,this.exhaustAllowed=typeof n.exhaustAllowed=="boolean"?n.exhaustAllowed:false;}toBin(){let e=[],r=0;this.checksumPresent&&(r|=Bp),this.moreToCome&&(r|=bp),this.exhaustAllowed&&(r|=Mp);let n=Buffer.alloc(20);e.push(n);let s=n.length,o=this.command;return s+=this.makeSections(e,o),n.writeInt32LE(s,0),n.writeInt32LE(this.requestId,4),n.writeInt32LE(0,8),n.writeInt32LE(Qs.OP_MSG,12),n.writeUInt32LE(r,16),e}makeSections(e,r){let n=this.extractDocumentSequences(r),s=Buffer.allocUnsafe(1);s[0]=0;let o=this.serializeBson(r);return e.push(s),e.push(o),e.push(n),s.length+o.length+n.length}extractDocumentSequences(e){let r=[];for(let[n,s]of Object.entries(e))s instanceof gu&&(r.push(s.toBin()),delete e[n]);return r.length>0?Buffer.concat(r):Buffer.alloc(0)}serializeBson(e){return eo.serialize(e,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return Zs=Zs+1&2147483647,Zs}};Ot.OpMsgRequest=Au;var O2=class{constructor(e,r,n,s){this.index=0,this.sections=[],this.parsed=false,this.raw=e,this.data=n,this.opts=s??{useBigInt64:false,promoteLongs:true,promoteValues:true,promoteBuffers:false,bsonRegExp:false},this.length=r.length,this.requestId=r.requestId,this.responseTo=r.responseTo,this.opCode=r.opCode,this.fromCompressed=r.fromCompressed,this.responseFlags=n.readInt32LE(0),this.checksumPresent=(this.responseFlags&Bp)!==0,this.moreToCome=(this.responseFlags&bp)!==0,this.exhaustAllowed=(this.responseFlags&Mp)!==0,this.useBigInt64=typeof this.opts.useBigInt64=="boolean"?this.opts.useBigInt64:false,this.promoteLongs=typeof this.opts.promoteLongs=="boolean"?this.opts.promoteLongs:true,this.promoteValues=typeof this.opts.promoteValues=="boolean"?this.opts.promoteValues:true,this.promoteBuffers=typeof this.opts.promoteBuffers=="boolean"?this.opts.promoteBuffers:false,this.bsonRegExp=typeof this.opts.bsonRegExp=="boolean"?this.opts.bsonRegExp:false;}isParsed(){return this.parsed}parse(){if(this.parsed)return this.sections[0];for(this.index=4;this.index<this.data.length;){let e=this.data.readUInt8(this.index++);if(e===0){let r=this.data.readUInt32LE(this.index),n=this.data.subarray(this.index,this.index+r);this.sections.push(n),this.index+=r;}else if(e===1)throw new Ai.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}return this.parsed=true,this.sections[0]}};Ot.OpMsgResponse=O2;var C2=16,Tp=9,w2=class{constructor(e,r){this.command=e,this.options={zlibCompressionLevel:r.zlibCompressionLevel,agreedCompressor:r.agreedCompressor};}static canCompress(e){let r=e instanceof Au?e.command:e.query,n=Object.keys(r)[0];return !A2.uncompressibleCommands.has(n)}async toBin(){let e=Buffer.concat(this.command.toBin()),r=e.slice(C2),n=e.readInt32LE(12),s=await(0, A2.compress)(this.options,r),o=Buffer.alloc(C2);o.writeInt32LE(C2+Tp+s.length,0),o.writeInt32LE(this.command.requestId,4),o.writeInt32LE(0,8),o.writeInt32LE(Qs.OP_COMPRESSED,12);let i=Buffer.alloc(Tp);return i.writeInt32LE(n,0),i.writeInt32LE(r.length,4),i.writeUInt8(A2.Compressor[this.options.agreedCompressor],8),[o,i,s]}};Ot.OpCompressedRequest=w2;});var Si=c(Je=>{g();Object.defineProperty(Je,"__esModule",{value:true});Je.uncompressibleCommands=Je.Compressor=void 0;Je.compress=YS;Je.decompress=Ip;Je.compressCommand=XS;Je.decompressResponse=JS;var Fp=a("util"),Cu=a("zlib"),$S=Ne(),Rp=mr(),D2=B(),to=Ci(),_2=mn();Je.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});Je.uncompressibleCommands=new Set([$S.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var GS=3,HS=(0, Fp.promisify)(Cu.inflate.bind(Cu)),KS=(0, Fp.promisify)(Cu.deflate.bind(Cu)),Tn,hs=null;function Np(){if(hs==null){let t=(0, Rp.getSnappy)();if("kModuleError"in t)throw t.kModuleError;hs=t;}return hs}async function YS(t,e){let r={};switch(t.agreedCompressor){case "snappy":return hs??=Np(),await hs.compress(e);case "zstd":{if(vp(),"kModuleError"in Tn)throw Tn.kModuleError;return await Tn.compress(e,GS)}case "zlib":return t.zlibCompressionLevel&&(r.level=t.zlibCompressionLevel),await KS(e,r);default:throw new D2.MongoInvalidArgumentError(`Unknown compressor ${t.agreedCompressor} failed to compress`)}}async function Ip(t,e){if(t!==Je.Compressor.snappy&&t!==Je.Compressor.zstd&&t!==Je.Compressor.zlib&&t!==Je.Compressor.none)throw new D2.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${t})`);switch(t){case Je.Compressor.snappy:return hs??=Np(),await hs.uncompress(e,{asBuffer:true});case Je.Compressor.zstd:{if(vp(),"kModuleError"in Tn)throw Tn.kModuleError;return await Tn.decompress(e)}case Je.Compressor.zlib:return await HS(e);default:return e}}function vp(){Tn||(Tn=(0, Rp.getZstdLibrary)());}var yi=16;async function XS(t,e){let n=await(e.agreedCompressor==="none"||!to.OpCompressedRequest.canCompress(t)?t:new to.OpCompressedRequest(t,{agreedCompressor:e.agreedCompressor??"none",zlibCompressionLevel:e.zlibCompressionLevel??0})).toBin();return Buffer.concat(n)}async function JS(t){let e={length:t.readInt32LE(0),requestId:t.readInt32LE(4),responseTo:t.readInt32LE(8),opCode:t.readInt32LE(12)};if(e.opCode!==_2.OP_COMPRESSED){let u=e.opCode===_2.OP_MSG?to.OpMsgResponse:to.OpReply,a=t.subarray(yi);return new u(t,e,a)}let r={...e,fromCompressed:true,opCode:t.readInt32LE(yi),length:t.readInt32LE(yi+4)},n=t[yi+8],s=t.slice(yi+9),o=r.opCode===_2.OP_MSG?to.OpMsgResponse:to.OpReply,i=await Ip(n,s);if(i.length!==r.length)throw new D2.MongoDecompressionError("Message body and message header must be the same length");return new o(t,r,i)}});var B2=c(Ue=>{g();Object.defineProperty(Ue,"__esModule",{value:true});Ue.hmacSha256Hook=Ue.hmacSha512Hook=Ue.aes256CtrDecryptHook=Ue.aes256CtrEncryptHook=Ue.aes256CbcDecryptHook=Ue.aes256CbcEncryptHook=void 0;Ue.makeAES256Hook=wi;Ue.randomHook=QS;Ue.sha256Hook=ZS;Ue.makeHmacHook=T2;Ue.signRsaSha256Hook=ey;var Oi=a("crypto");function wi(t,e){return function(r,n,s,o){let i;try{let u=Oi[t](e,r,n);u.setAutoPadding(!1),i=u.update(s);let a=u.final();a.length>0&&(i=Buffer.concat([i,a]));}catch(u){return u}return i.copy(o),i.length}}function QS(t,e){try{Oi.randomFillSync(t,0,e);}catch(r){return r}return e}function ZS(t,e){let r;try{r=Oi.createHash("sha256").update(t).digest();}catch(n){return n}return r.copy(e),r.length}function T2(t){return (e,r,n)=>{let s;try{s=Oi.createHmac(t,e).update(r).digest();}catch(o){return o}return s.copy(n),s.length}}function ey(t,e,r){let n;try{let s=Oi.createSign("sha256WithRSAEncryption"),o=Buffer.from(`-----BEGIN PRIVATE KEY-----
10
+ ${t.toString("base64")}
11
+ -----END PRIVATE KEY-----
12
+ `);n=s.update(e).end().sign(o);}catch(s){return s}return n.copy(r),n.length}Ue.aes256CbcEncryptHook=wi("createCipheriv","aes-256-cbc");Ue.aes256CbcDecryptHook=wi("createDecipheriv","aes-256-cbc");Ue.aes256CtrEncryptHook=wi("createCipheriv","aes-256-ctr");Ue.aes256CtrDecryptHook=wi("createDecipheriv","aes-256-ctr");Ue.hmacSha512Hook=T2("sha512");Ue.hmacSha256Hook=T2("sha256");});var ro=c(wt=>{g();Object.defineProperty(wt,"__esModule",{value:true});wt.MongoCryptKMSRequestNetworkTimeoutError=wt.MongoCryptAzureKMSRequestError=wt.MongoCryptCreateEncryptedCollectionError=wt.MongoCryptCreateDataKeyError=wt.MongoCryptInvalidArgumentError=wt.MongoCryptError=void 0;var ty=B(),Bn=class extends ty.MongoError{constructor(e,r={}){super(e,r);}get name(){return "MongoCryptError"}};wt.MongoCryptError=Bn;var b2=class extends Bn{constructor(e){super(e);}get name(){return "MongoCryptInvalidArgumentError"}};wt.MongoCryptInvalidArgumentError=b2;var M2=class extends Bn{constructor(e,{cause:r}){super(`Unable to complete creating data keys: ${r.message}`,{cause:r}),this.encryptedFields=e;}get name(){return "MongoCryptCreateDataKeyError"}};wt.MongoCryptCreateDataKeyError=M2;var F2=class extends Bn{constructor(e,{cause:r}){super(`Unable to create collection: ${r.message}`,{cause:r}),this.encryptedFields=e;}get name(){return "MongoCryptCreateEncryptedCollectionError"}};wt.MongoCryptCreateEncryptedCollectionError=F2;var R2=class extends Bn{constructor(e,r){super(e),this.body=r;}get name(){return "MongoCryptAzureKMSRequestError"}};wt.MongoCryptAzureKMSRequestError=R2;var N2=class extends Bn{get name(){return "MongoCryptKMSRequestNetworkTimeoutError"}};wt.MongoCryptKMSRequestNetworkTimeoutError=N2;});var x2=c(bn=>{g();Object.defineProperty(bn,"__esModule",{value:true});bn.LegacyAWSTemporaryCredentialProvider=bn.AWSSDKCredentialProvider=bn.AWSTemporaryCredentialProvider=void 0;var ry=mr(),ny=B(),Su=v(),sy="http://169.254.170.2",I2="http://169.254.169.254",Pp="/latest/meta-data/iam/security-credentials",Xr=class t{static get awsSDK(){return t._awsSDK??=(0, ry.getAwsCredentialProvider)(),t._awsSDK}static get isAWSSDKInstalled(){return !("kModuleError"in t.awsSDK)}};bn.AWSTemporaryCredentialProvider=Xr;var v2=class extends Xr{constructor(e){super(),e&&(this._provider=e);}get provider(){if("kModuleError"in Xr.awsSDK)throw Xr.awsSDK.kModuleError;if(this._provider)return this._provider;let{AWS_STS_REGIONAL_ENDPOINTS:e="",AWS_REGION:r=""}=process.env;e=e.toLowerCase(),r=r.toLowerCase();let n=r.length!==0&&e.length!==0,o=e==="regional"||e==="legacy"&&!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"]).has(r);return this._provider=n&&o?Xr.awsSDK.fromNodeProviderChain({clientConfig:{region:r}}):Xr.awsSDK.fromNodeProviderChain(),this._provider}async getCredentials(){try{let e=await this.provider();return {AccessKeyId:e.accessKeyId,SecretAccessKey:e.secretAccessKey,Token:e.sessionToken,Expiration:e.expiration}}catch(e){throw new ny.MongoAWSError(e.message,{cause:e})}}};bn.AWSSDKCredentialProvider=v2;var P2=class extends Xr{async getCredentials(){if(process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return await(0, Su.request)(`${sy}${process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`);let e=await(0, Su.request)(`${I2}/latest/api/token`,{method:"PUT",json:false,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),r=await(0, Su.request)(`${I2}/${Pp}`,{json:false,headers:{"X-aws-ec2-metadata-token":e}});return await(0, Su.request)(`${I2}/${Pp}/${r}`,{headers:{"X-aws-ec2-metadata-token":e}})}};bn.LegacyAWSTemporaryCredentialProvider=P2;});var xp=c(L2=>{g();Object.defineProperty(L2,"__esModule",{value:true});L2.loadAWSCredentials=iy;var oy=x2();async function iy(t,e){let r=new oy.AWSSDKCredentialProvider(e),{SecretAccessKey:n="",AccessKeyId:s="",Token:o}=await r.getCredentials(),i={secretAccessKey:n,accessKeyId:s};return o!=null&&(i.sessionToken=o),{...t,aws:i}}});var k2=c(_t=>{g();Object.defineProperty(_t,"__esModule",{value:true});_t.tokenCache=_t.AzureCredentialCache=_t.AZURE_BASE_URL=void 0;_t.addAzureParams=Lp;_t.prepareRequest=kp;_t.fetchAzureKMSToken=qp;_t.loadAzureCredentials=hy;var uy=B(),ay=v(),no=ro(),cy=6e3;_t.AZURE_BASE_URL="http://169.254.169.254/metadata/identity/oauth2/token?";var yu=class{constructor(){this.cachedToken=null;}async getToken(){return (this.cachedToken==null||this.needsRefresh(this.cachedToken))&&(this.cachedToken=await this._getToken()),{accessToken:this.cachedToken.accessToken}}needsRefresh(e){return e.expiresOnTimestamp-Date.now()<=cy}resetCache(){this.cachedToken=null;}_getToken(){return qp()}};_t.AzureCredentialCache=yu;_t.tokenCache=new yu;async function ly(t){let{status:e,body:r}=t,n=(()=>{try{return JSON.parse(r)}catch{throw new no.MongoCryptAzureKMSRequestError("Malformed JSON body in GET request.")}})();if(e!==200)throw new no.MongoCryptAzureKMSRequestError("Unable to complete request.",n);if(!n.access_token)throw new no.MongoCryptAzureKMSRequestError("Malformed response body - missing field `access_token`.");if(!n.expires_in)throw new no.MongoCryptAzureKMSRequestError("Malformed response body - missing field `expires_in`.");let s=Number(n.expires_in)*1e3;if(Number.isNaN(s))throw new no.MongoCryptAzureKMSRequestError("Malformed response body - unable to parse int from `expires_in` field.");return {accessToken:n.access_token,expiresOnTimestamp:Date.now()+s}}function Lp(t,e,r){return t.searchParams.append("api-version","2018-02-01"),t.searchParams.append("resource",e),r&&t.searchParams.append("client_id",r),t}function kp(t){let e=new URL(t.url?.toString()??_t.AZURE_BASE_URL);return Lp(e,"https://vault.azure.net"),{headers:{...t.headers,"Content-Type":"application/json",Metadata:true},url:e}}async function qp(t={}){let{headers:e,url:r}=kp(t);try{let n=await(0,ay.get)(r,{headers:e});return await ly(n)}catch(n){throw n instanceof uy.MongoNetworkTimeoutError?new no.MongoCryptAzureKMSRequestError(`[Azure KMS] ${n.message}`):n}}async function hy(t){let e=await _t.tokenCache.getToken();return {...t,azure:e}}});var Up=c(q2=>{g();Object.defineProperty(q2,"__esModule",{value:true});q2.loadGCPCredentials=fy;var dy=mr();async function fy(t){let e=(0, dy.getGcpMetadata)();if("kModuleError"in e)return t;let{access_token:r}=await e.instance({property:"service-accounts/default/token"});return {...t,gcp:{accessToken:r}}}});var U2=c(wu=>{g();Object.defineProperty(wu,"__esModule",{value:true});wu.isEmptyCredentials=Ou;wu.refreshKMSCredentials=gy;var my=xp(),py=k2(),Ey=Up();function Ou(t,e){let r=e[t];return r==null?false:typeof r=="object"&&Object.keys(r).length===0}async function gy(t,e){let r=t;return Ou("aws",t)&&(r=await(0, my.loadAWSCredentials)(r,e?.aws)),Ou("gcp",t)&&(r=await(0, Ey.loadGCPCredentials)(r)),Ou("azure",t)&&(r=await(0, py.loadAzureCredentials)(r)),r}});var z2=c(_u=>{g();Object.defineProperty(_u,"__esModule",{value:true});_u.StateMachine=void 0;var jp=a("fs/promises"),Ay=a("net"),Cy=a("tls"),Jr=te(),zp=Qe(),Sy=mr(),yy=B(),Vp=ke(),Mn=v(),Oy=Du(),Fn=ro(),_i=null;function wy(){if(_i==null){let t=(0, Sy.getSocks)();if("kModuleError"in t)throw t.kModuleError;_i=t;}return _i}var ds=0,$p=1,Gp=2,Hp=3,Kp=7,Yp=4,Xp=5,Jp=6,_y=443,Dy=new Map([[ds,"MONGOCRYPT_CTX_ERROR"],[$p,"MONGOCRYPT_CTX_NEED_MONGO_COLLINFO"],[Gp,"MONGOCRYPT_CTX_NEED_MONGO_MARKINGS"],[Hp,"MONGOCRYPT_CTX_NEED_MONGO_KEYS"],[Kp,"MONGOCRYPT_CTX_NEED_KMS_CREDENTIALS"],[Yp,"MONGOCRYPT_CTX_NEED_KMS"],[Xp,"MONGOCRYPT_CTX_READY"],[Jp,"MONGOCRYPT_CTX_DONE"]]),Ty=["tlsInsecure","tlsAllowInvalidCertificates","tlsAllowInvalidHostnames"];function Wp(t){process.env.MONGODB_CRYPT_DEBUG&&console.error(t);}var By,j2=class{constructor(e,r=(0, Jr.pluckBSONSerializeOptions)(e)){this.options=e,this.bsonOptions=r;}async execute(e,r,n){let s=e._keyVaultNamespace,o=e._keyVaultClient,i=e._metaDataClient,u=e._mongocryptdClient,a=e._mongocryptdManager,c=null,h=()=>r.status,d=()=>r.state;for(;d()!==Jp&&d()!==ds;)switch(n.signal?.throwIfAborted(),Wp(`[context#${r.id}] ${Dy.get(d())||d()}`),d()){case $p:{let m=(0, Jr.deserialize)(r.nextMongoOperation());if(!i)throw new Fn.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_COLLINFO but metadata client is undefined");let E=this.fetchCollectionInfo(i,r.ns,m,n);for await(let p of E)if(r.addMongoOperationResponse((0, Jr.serialize)(p)),d()===ds)break;if(d()===ds)break;r.finishMongoOperation();break}case Gp:{let m=r.nextMongoOperation();if(d()===ds)break;if(!u)throw new Fn.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_MARKINGS but mongocryptdClient is undefined");let E=a?await a.withRespawn(this.markCommand.bind(this,u,r.ns,m,n)):await this.markCommand(u,r.ns,m,n);r.addMongoOperationResponse(E),r.finishMongoOperation();break}case Hp:{let m=r.nextMongoOperation(),E=await this.fetchKeys(o,s,m,n);E.length===0&&(c=By??=(0, Jr.serialize)({v:[]}));for(let p of E)r.addMongoOperationResponse((0, Jr.serialize)(p));r.finishMongoOperation();break}case Kp:{let m=await e.askForKMSCredentials();r.provideKMSProviders((0, Jr.serialize)(m));break}case Yp:{await Promise.all(this.requests(r,n)),r.finishKMSRequests();break}case Xp:{let m=r.finalize();if(d()===ds){let E=h().message||"Finalization error";throw new Fn.MongoCryptError(E)}c=m;break}default:throw new Fn.MongoCryptError(`Unknown state: ${d()}`)}if(d()===ds||c==null){let m=h().message;throw m||Wp("unidentifiable error in MongoCrypt - received an error status from `libmongocrypt` but received no error message."),new Fn.MongoCryptError(m??"unidentifiable error in MongoCrypt - received an error status from `libmongocrypt` but received no error message.")}return c}async kmsRequest(e,r){let n=e.endpoint.split(":"),s=n[1]!=null?Number.parseInt(n[1],10):_y,o={host:n[0],servername:n[0],port:s,...(0, Oy.autoSelectSocketOptions)(this.options.socketOptions||{})},i=e.message,u=new Mn.BufferPool,a,c;function h(){for(let _ of [c,a])_&&_.destroy();}function d(_){return new Fn.MongoCryptError("KMS request failed",{cause:_})}function m(){return new Fn.MongoCryptError("KMS request closed")}let E=this.options.tlsOptions;if(E){let _=e.kmsProvider,b=E[_];if(b){let j=this.validateTlsOptions(_,b);if(j)throw j;try{await this.setTlsOptions(b,o);}catch(P){throw d(P)}}}let p;try{if(this.options.proxyOptions&&this.options.proxyOptions.proxyHost){a=new Ay.Socket;let{promise:P,reject:De,resolve:N}=(0,Mn.promiseWithResolvers)();a.once("error",q=>De(d(q))).once("close",()=>De(m())).once("connect",()=>N());let L={...o,host:this.options.proxyOptions.proxyHost,port:this.options.proxyOptions.proxyPort||1080};a.connect(L),await P;try{_i??=wy(),o.socket=(await _i.SocksClient.createConnection({existing_socket:a,command:"connect",destination:{host:o.host,port:o.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:this.options.proxyOptions.proxyUsername,password:this.options.proxyOptions.proxyPassword}})).socket;}catch(q){throw d(q)}}c=Cy.connect(o,()=>{c.write(i);});let{promise:_,reject:b,resolve:j}=(0,Mn.promiseWithResolvers)();p=(0,Mn.addAbortListener)(r?.signal,function(){h(),b(this.reason);}),c.once("error",P=>b(d(P))).once("close",()=>b(m())).on("data",P=>{for(u.append(P);e.bytesNeeded>0&&u.length;){let De=Math.min(e.bytesNeeded,u.length);e.addResponse(u.read(De));}e.bytesNeeded<=0&&j();}),await(r?.timeoutContext?.csotEnabled()?Promise.all([_,Vp.Timeout.expires(r.timeoutContext?.remainingTimeMS)]):_);}catch(_){throw _ instanceof Vp.TimeoutError?new yy.MongoOperationTimeoutError("KMS request timed out"):_}finally{h(),p?.[Mn.kDispose]();}}*requests(e,r){for(let n=e.nextKMSRequest();n!=null;n=e.nextKMSRequest())yield this.kmsRequest(n,r);}validateTlsOptions(e,r){let n=Object.keys(r);for(let s of Ty)if(n.includes(s))return new Fn.MongoCryptError(`Insecure TLS options prohibited for ${e}: ${s}`)}async setTlsOptions(e,r){if(e.secureContext&&(r.secureContext=e.secureContext),e.tlsCertificateKeyFile){let n=await jp.readFile(e.tlsCertificateKeyFile);r.cert=r.key=n;}e.tlsCAFile&&(r.ca=await jp.readFile(e.tlsCAFile)),e.tlsCertificateKeyFilePassword&&(r.passphrase=e.tlsCertificateKeyFilePassword);}fetchCollectionInfo(e,r,n,s){let{db:o}=Mn.MongoDBCollectionNamespace.fromString(r);return e.db(o).listCollections(n,{promoteLongs:false,promoteValues:false,timeoutContext:s?.timeoutContext&&new zp.CursorTimeoutContext(s?.timeoutContext,Symbol()),signal:s?.signal,nameOnly:false})}async markCommand(e,r,n,s){let{db:o}=Mn.MongoDBCollectionNamespace.fromString(r),i={promoteLongs:false,promoteValues:false},u=(0, Jr.deserialize)(n,i),a={timeoutMS:void 0,signal:void 0};s?.timeoutContext?.csotEnabled()&&(a.timeoutMS=s.timeoutContext.remainingTimeMS),s?.signal&&(a.signal=s.signal);let c=await e.db(o).command(u,{...i,...a});return (0, Jr.serialize)(c,this.bsonOptions)}fetchKeys(e,r,n,s){let{db:o,collection:i}=Mn.MongoDBCollectionNamespace.fromString(r),u={timeoutContext:void 0,signal:void 0};return s?.timeoutContext!=null&&(u.timeoutContext=new zp.CursorTimeoutContext(s.timeoutContext,Symbol())),s?.signal!=null&&(u.signal=s.signal),e.db(o).collection(i,{readConcern:{level:"majority"}}).find((0, Jr.deserialize)(n),u).toArray()}};_u.StateMachine=j2;});var Du=c(Bi=>{g();Object.defineProperty(Bi,"__esModule",{value:true});Bi.ClientEncryption=void 0;Bi.autoSelectSocketOptions=Ti;var gt=te(),by=mr(),Di=ke(),Dt=v(),My=B2(),Rn=ro(),Qp=U2(),Tu=z2(),V2=class t{static getMongoCrypt(){let e=(0, by.getMongoDBClientEncryption)();if("kModuleError"in e)throw e.kModuleError;return e.MongoCrypt}constructor(e,r){this._client=e,this._proxyOptions=r.proxyOptions??{},this._tlsOptions=r.tlsOptions??{},this._kmsProviders=r.kmsProviders||{};let{timeoutMS:n}=(0, Dt.resolveTimeoutOptions)(e,r);if(this._timeoutMS=n,this._credentialProviders=r.credentialProviders,r.credentialProviders?.aws&&!(0, Qp.isEmptyCredentials)("aws",this._kmsProviders))throw new Rn.MongoCryptInvalidArgumentError("Can only provide a custom AWS credential provider when the state machine is configured for automatic AWS credential fetching");if(r.keyVaultNamespace==null)throw new Rn.MongoCryptInvalidArgumentError("Missing required option `keyVaultNamespace`");let s={...r,cryptoCallbacks:My,kmsProviders:Buffer.isBuffer(this._kmsProviders)?this._kmsProviders:(0, gt.serialize)(this._kmsProviders)};this._keyVaultNamespace=r.keyVaultNamespace,this._keyVaultClient=r.keyVaultClient||e;let o=t.getMongoCrypt();this._mongoCrypt=new o(s);}async createDataKey(e,r={}){if(r.keyAltNames&&!Array.isArray(r.keyAltNames))throw new Rn.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but was of type ${typeof r.keyAltNames}.`);let n;r.keyAltNames&&r.keyAltNames.length>0&&(n=r.keyAltNames.map((E,p)=>{if(typeof E!="string")throw new Rn.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but item at index ${p} was of type ${typeof E}`);return (0, gt.serialize)({keyAltName:E})}));let s;r.keyMaterial&&(s=(0, gt.serialize)({keyMaterial:r.keyMaterial}));let o=(0, gt.serialize)({provider:e,...r.masterKey}),i=this._mongoCrypt.makeDataKeyContext(o,{keyAltNames:n,keyMaterial:s}),u=new Tu.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions,socketOptions:Ti(this._client.s.options)}),a=r?.timeoutContext??Di.TimeoutContext.create((0, Dt.resolveTimeoutOptions)(this._client,{timeoutMS:this._timeoutMS})),c=(0, gt.deserialize)(await u.execute(this,i,{timeoutContext:a})),{db:h,collection:d}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),{insertedId:m}=await this._keyVaultClient.db(h).collection(d).insertOne(c,{writeConcern:{w:"majority"},timeoutMS:a?.csotEnabled()?a?.getRemainingTimeMSOrThrow():void 0});return m}async rewrapManyDataKey(e,r){let n;if(r){let E=Object.assign({provider:r.provider},r.masterKey);n=(0, gt.serialize)(E);}let s=(0, gt.serialize)(e),o=this._mongoCrypt.makeRewrapManyDataKeyContext(s,n),i=new Tu.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions,socketOptions:Ti(this._client.s.options)}),u=Di.TimeoutContext.create((0, Dt.resolveTimeoutOptions)(this._client,{timeoutMS:this._timeoutMS})),{v:a}=(0, gt.deserialize)(await i.execute(this,o,{timeoutContext:u}));if(a.length===0)return {};let{db:c,collection:h}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),d=a.map(E=>({updateOne:{filter:{_id:E._id},update:{$set:{masterKey:E.masterKey,keyMaterial:E.keyMaterial},$currentDate:{updateDate:true}}}}));return {bulkWriteResult:await this._keyVaultClient.db(c).collection(h).bulkWrite(d,{writeConcern:{w:"majority"},timeoutMS:u.csotEnabled()?u?.remainingTimeMS:void 0})}}async deleteKey(e){let{db:r,collection:n}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db(r).collection(n).deleteOne({_id:e},{writeConcern:{w:"majority"},timeoutMS:this._timeoutMS})}getKeys(){let{db:e,collection:r}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(e).collection(r).find({},{readConcern:{level:"majority"},timeoutMS:this._timeoutMS})}async getKey(e){let{db:r,collection:n}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db(r).collection(n).findOne({_id:e},{readConcern:{level:"majority"},timeoutMS:this._timeoutMS})}async getKeyByAltName(e){let{db:r,collection:n}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db(r).collection(n).findOne({keyAltNames:e},{readConcern:{level:"majority"},timeoutMS:this._timeoutMS})}async addKeyAltName(e,r){let{db:n,collection:s}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db(n).collection(s).findOneAndUpdate({_id:e},{$addToSet:{keyAltNames:r}},{writeConcern:{w:"majority"},returnDocument:"before",timeoutMS:this._timeoutMS})}async removeKeyAltName(e,r){let{db:n,collection:s}=Dt.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),o=[{$set:{keyAltNames:{$cond:[{$eq:["$keyAltNames",[r]]},"$$REMOVE",{$filter:{input:"$keyAltNames",cond:{$ne:["$$this",r]}}}]}}}];return await this._keyVaultClient.db(n).collection(s).findOneAndUpdate({_id:e},o,{writeConcern:{w:"majority"},returnDocument:"before",timeoutMS:this._timeoutMS})}async createEncryptedCollection(e,r,n){let{provider:s,masterKey:o,createCollectionOptions:{encryptedFields:{...i},...u}}=n,a=this._timeoutMS!=null?Di.TimeoutContext.create((0, Dt.resolveTimeoutOptions)(this._client,{timeoutMS:this._timeoutMS})):void 0;if(Array.isArray(i.fields)){let c=i.fields.map(async m=>m==null||typeof m!="object"||m.keyId!=null?m:{...m,keyId:await this.createDataKey(s,{masterKey:o,timeoutContext:a?.csotEnabled()?a?.clone():void 0})}),h=await Promise.allSettled(c);i.fields=h.map((m,E)=>m.status==="fulfilled"?m.value:i.fields[E]);let d=h.find(m=>m.status==="rejected");if(d!=null)throw new Rn.MongoCryptCreateDataKeyError(i,{cause:d.reason})}try{return {collection:await e.createCollection(r,{...u,encryptedFields:i,timeoutMS:a?.csotEnabled()?a?.getRemainingTimeMSOrThrow():void 0}),encryptedFields:i}}catch(c){throw new Rn.MongoCryptCreateEncryptedCollectionError(i,{cause:c})}}async encrypt(e,r){return await this._encrypt(e,false,r)}async encryptExpression(e,r){return await this._encrypt(e,true,r)}async decrypt(e){let r=(0, gt.serialize)({v:e}),n=this._mongoCrypt.makeExplicitDecryptionContext(r),s=new Tu.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions,socketOptions:Ti(this._client.s.options)}),o=this._timeoutMS!=null?Di.TimeoutContext.create((0, Dt.resolveTimeoutOptions)(this._client,{timeoutMS:this._timeoutMS})):void 0,{v:i}=(0, gt.deserialize)(await s.execute(this,n,{timeoutContext:o}));return i}async askForKMSCredentials(){return await(0, Qp.refreshKMSCredentials)(this._kmsProviders,this._credentialProviders)}static get libmongocryptVersion(){return t.getMongoCrypt().libmongocryptVersion}async _encrypt(e,r,n){let{algorithm:s,keyId:o,keyAltName:i,contentionFactor:u,queryType:a,rangeOptions:c,textOptions:h}=n,d={expressionMode:r,algorithm:s};if(o&&(d.keyId=o.buffer),i){if(o)throw new Rn.MongoCryptInvalidArgumentError('"options" cannot contain both "keyId" and "keyAltName"');if(typeof i!="string")throw new Rn.MongoCryptInvalidArgumentError(`"options.keyAltName" must be of type string, but was of type ${typeof i}`);d.keyAltName=(0, gt.serialize)({keyAltName:i});}(typeof u=="number"||typeof u=="bigint")&&(d.contentionFactor=u),typeof a=="string"&&(d.queryType=a),typeof c=="object"&&(d.rangeOptions=(0, gt.serialize)(c)),typeof h=="object"&&(d.textOptions=(0, gt.serialize)(h));let m=(0, gt.serialize)({v:e}),E=new Tu.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions,socketOptions:Ti(this._client.s.options)}),p=this._mongoCrypt.makeExplicitEncryptionContext(m,d),_=this._timeoutMS!=null?Di.TimeoutContext.create((0, Dt.resolveTimeoutOptions)(this._client,{timeoutMS:this._timeoutMS})):void 0,{v:b}=(0, gt.deserialize)(await E.execute(this,p,{timeoutContext:_}));return b}};Bi.ClientEncryption=V2;function Ti(t){let e={autoSelectFamily:true};return "autoSelectFamily"in t&&(e.autoSelectFamily=t.autoSelectFamily),"autoSelectFamilyAttemptTimeout"in t&&(e.autoSelectFamilyAttemptTimeout=t.autoSelectFamilyAttemptTimeout),e}});var Zp=c(bu=>{g();Object.defineProperty(bu,"__esModule",{value:true});bu.MongocryptdManager=void 0;var Fy=B(),Bu=class t{constructor(e={}){this.spawnPath="",this.spawnArgs=[],this.uri=typeof e.mongocryptdURI=="string"&&e.mongocryptdURI.length>0?e.mongocryptdURI:t.DEFAULT_MONGOCRYPTD_URI,this.bypassSpawn=!!e.mongocryptdBypassSpawn,Object.hasOwn(e,"mongocryptdSpawnPath")&&e.mongocryptdSpawnPath&&(this.spawnPath=e.mongocryptdSpawnPath),Object.hasOwn(e,"mongocryptdSpawnArgs")&&Array.isArray(e.mongocryptdSpawnArgs)&&(this.spawnArgs=this.spawnArgs.concat(e.mongocryptdSpawnArgs)),this.spawnArgs.filter(r=>typeof r=="string").every(r=>r.indexOf("--idleShutdownTimeoutSecs")<0)&&this.spawnArgs.push("--idleShutdownTimeoutSecs","60");}async spawn(){let e=this.spawnPath||"mongocryptd",{spawn:r}=a("child_process");this._child=r(e,this.spawnArgs,{stdio:"ignore",detached:true}),this._child.on("error",()=>{}),this._child.unref();}async withRespawn(e){try{return await e()}catch(n){if(!(n instanceof Fy.MongoNetworkTimeoutError&&!this.bypassSpawn))throw n}return await this.spawn(),await e()}};bu.MongocryptdManager=Bu;Bu.DEFAULT_MONGOCRYPTD_URI="mongodb://localhost:27020";});var H2=c(so=>{g();var s4;Object.defineProperty(so,"__esModule",{value:true});so.AutoEncrypter=so.AutoEncryptionLoggerLevel=void 0;var e4=a("net"),bi=te(),Ry=Ne(),Ny=mr(),W2=B(),Iy=Nn(),vy=v(),$2=Du(),Py=B2(),t4=ro(),xy=Zp(),r4=U2(),n4=z2();so.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4});var G2=class t{static getMongoCrypt(){let e=(0, Ny.getMongoDBClientEncryption)();if("kModuleError"in e)throw e.kModuleError;return e.MongoCrypt}constructor(e,r){if(this[s4]=false,this._client=e,this._bypassEncryption=r.bypassAutoEncryption===true,this._keyVaultNamespace=r.keyVaultNamespace||"admin.datakeys",this._keyVaultClient=r.keyVaultClient||e,this._metaDataClient=r.metadataClient||e,this._proxyOptions=r.proxyOptions||{},this._tlsOptions=r.tlsOptions||{},this._kmsProviders=r.kmsProviders||{},this._credentialProviders=r.credentialProviders,r.credentialProviders?.aws&&!(0, r4.isEmptyCredentials)("aws",this._kmsProviders))throw new t4.MongoCryptInvalidArgumentError("Can only provide a custom AWS credential provider when the state machine is configured for automatic AWS credential fetching");let n={enableMultipleCollinfo:true,cryptoCallbacks:Py};r.schemaMap&&(n.schemaMap=Buffer.isBuffer(r.schemaMap)?r.schemaMap:(0, bi.serialize)(r.schemaMap)),r.encryptedFieldsMap&&(n.encryptedFieldsMap=Buffer.isBuffer(r.encryptedFieldsMap)?r.encryptedFieldsMap:(0, bi.serialize)(r.encryptedFieldsMap)),n.kmsProviders=Buffer.isBuffer(this._kmsProviders)?this._kmsProviders:(0, bi.serialize)(this._kmsProviders),r.options?.logger&&(n.logger=r.options.logger),r.extraOptions&&r.extraOptions.cryptSharedLibPath&&(n.cryptSharedLibPath=r.extraOptions.cryptSharedLibPath),r.bypassQueryAnalysis&&(n.bypassQueryAnalysis=r.bypassQueryAnalysis),r.keyExpirationMS!=null&&(n.keyExpirationMS=r.keyExpirationMS),this._bypassMongocryptdAndCryptShared=this._bypassEncryption||!!r.bypassQueryAnalysis,r.extraOptions&&r.extraOptions.cryptSharedLibSearchPaths?n.cryptSharedLibSearchPaths=r.extraOptions.cryptSharedLibSearchPaths:this._bypassMongocryptdAndCryptShared||(n.cryptSharedLibSearchPaths=["$SYSTEM"]);let s=t.getMongoCrypt();if(this._mongocrypt=new s(n),this._contextCounter=0,r.extraOptions&&r.extraOptions.cryptSharedLibRequired&&!this.cryptSharedLibVersionInfo)throw new t4.MongoCryptInvalidArgumentError("`cryptSharedLibRequired` set but no crypt_shared library loaded");if(!this._bypassMongocryptdAndCryptShared&&!this.cryptSharedLibVersionInfo){this._mongocryptdManager=new xy.MongocryptdManager(r.extraOptions);let o={serverSelectionTimeoutMS:1e4};(r.extraOptions==null||typeof r.extraOptions.mongocryptdURI!="string")&&!e4.getDefaultAutoSelectFamily&&(o.family=4),e4.getDefaultAutoSelectFamily&&Object.assign(o,(0, $2.autoSelectSocketOptions)(this._client.s?.options??{})),this._mongocryptdClient=new Iy.MongoClient(this._mongocryptdManager.uri,o);}}async init(){if(!(this._bypassMongocryptdAndCryptShared||this.cryptSharedLibVersionInfo)){if(!this._mongocryptdManager)throw new W2.MongoRuntimeError("Reached impossible state: mongocryptdManager is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdClient)throw new W2.MongoRuntimeError("Reached impossible state: mongocryptdClient is undefined when neither bypassSpawn nor the shared lib are specified.");this._mongocryptdManager.bypassSpawn||await this._mongocryptdManager.spawn();try{return await this._mongocryptdClient.connect()}catch(e){throw new W2.MongoRuntimeError("Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn",{cause:e})}}}async close(){await this._mongocryptdClient?.close();}async encrypt(e,r,n={}){if(n.signal?.throwIfAborted(),this._bypassEncryption)return r;let s=Buffer.isBuffer(r)?r:(0, bi.serialize)(r,n),o=this._mongocrypt.makeEncryptionContext(vy.MongoDBCollectionNamespace.fromString(e).db,s);o.id=this._contextCounter++,o.ns=e,o.document=r;let i=new n4.StateMachine({promoteValues:false,promoteLongs:false,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions,socketOptions:(0, $2.autoSelectSocketOptions)(this._client.s.options)});return (0, bi.deserialize)(await i.execute(this,o,n),{promoteValues:false,promoteLongs:false})}async decrypt(e,r={}){r.signal?.throwIfAborted();let n=this._mongocrypt.makeDecryptionContext(e);return n.id=this._contextCounter++,await new n4.StateMachine({...r,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions,socketOptions:(0, $2.autoSelectSocketOptions)(this._client.s.options)}).execute(this,n,r)}async askForKMSCredentials(){return await(0, r4.refreshKMSCredentials)(this._kmsProviders,this._credentialProviders)}get cryptSharedLibVersionInfo(){return this._mongocrypt.cryptSharedLibVersionInfo}static get libmongocryptVersion(){return t.getMongoCrypt().libmongocryptVersion}};so.AutoEncrypter=G2;s4=Ry.kDecorateResult;});var i4=c(Mu=>{g();Object.defineProperty(Mu,"__esModule",{value:true});Mu.Encrypter=void 0;var Ly=H2(),ky=Ne(),qy=mr(),o4=B(),Uy=Nn(),K2=class{constructor(e,r,n){if(typeof n.autoEncryption!="object")throw new o4.MongoInvalidArgumentError('Option "autoEncryption" must be specified');this.internalClient=null,this.bypassAutoEncryption=!!n.autoEncryption.bypassAutoEncryption,this.needsConnecting=false,n.maxPoolSize===0&&n.autoEncryption.keyVaultClient==null?n.autoEncryption.keyVaultClient=e:n.autoEncryption.keyVaultClient==null&&(n.autoEncryption.keyVaultClient=this.getInternalClient(e,r,n)),this.bypassAutoEncryption?n.autoEncryption.metadataClient=void 0:n.maxPoolSize===0?n.autoEncryption.metadataClient=e:n.autoEncryption.metadataClient=this.getInternalClient(e,r,n),n.proxyHost&&(n.autoEncryption.proxyOptions={proxyHost:n.proxyHost,proxyPort:n.proxyPort,proxyUsername:n.proxyUsername,proxyPassword:n.proxyPassword}),this.autoEncrypter=new Ly.AutoEncrypter(e,n.autoEncryption);}getInternalClient(e,r,n){let s=this.internalClient;if(s==null){let o={};for(let i of [...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)])["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(i)||Reflect.set(o,i,Reflect.get(n,i));o.minPoolSize=0,s=new Uy.MongoClient(r,o),this.internalClient=s;for(let i of ky.MONGO_CLIENT_EVENTS)for(let u of e.listeners(i))s.on(i,u);e.on("newListener",(i,u)=>{s?.on(i,u);}),this.needsConnecting=true;}return s}async connectInternalClient(){let e=this.internalClient;this.needsConnecting&&e!=null&&(this.needsConnecting=false,await e.connect());}async close(e){let r;try{await this.autoEncrypter.close();}catch(s){r=s;}let n=this.internalClient;if(n!=null&&e!==n)return await n.close();if(r!=null)throw r}static checkForMongoCrypt(){let e=(0, qy.getMongoDBClientEncryption)();if("kModuleError"in e)throw new o4.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project",{cause:e.kModuleError,dependencyName:"mongodb-client-encryption"})}};Mu.Encrypter=K2;});var Y2=c(Fu=>{g();Object.defineProperty(Fu,"__esModule",{value:true});Fu.ConnectionPoolMetrics=void 0;var oo=class t{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0;}markPinned(e){e===t.TXN?this.txnConnections+=1:e===t.CURSOR?this.cursorConnections+=1:this.otherConnections+=1;}markUnpinned(e){e===t.TXN?this.txnConnections-=1:e===t.CURSOR?this.cursorConnections-=1:this.otherConnections-=1;}info(e){return `Timed out while checking out a connection from connection pool: maxPoolSize: ${e}, 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;}};Fu.ConnectionPoolMetrics=oo;oo.TXN="txn";oo.CURSOR="cursor";oo.OTHER="other";});var J2=c(G=>{g();Object.defineProperty(G,"__esModule",{value:true});G.Transaction=G.TxnState=void 0;G.isTransactionCommand=Hy;var u4=B(),jy=ar(),zy=We(),Vy=dt();G.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 Wy={[G.TxnState.NO_TRANSACTION]:[G.TxnState.NO_TRANSACTION,G.TxnState.STARTING_TRANSACTION],[G.TxnState.STARTING_TRANSACTION]:[G.TxnState.TRANSACTION_IN_PROGRESS,G.TxnState.TRANSACTION_COMMITTED,G.TxnState.TRANSACTION_COMMITTED_EMPTY,G.TxnState.TRANSACTION_ABORTED],[G.TxnState.TRANSACTION_IN_PROGRESS]:[G.TxnState.TRANSACTION_IN_PROGRESS,G.TxnState.TRANSACTION_COMMITTED,G.TxnState.TRANSACTION_ABORTED],[G.TxnState.TRANSACTION_COMMITTED]:[G.TxnState.TRANSACTION_COMMITTED,G.TxnState.TRANSACTION_COMMITTED_EMPTY,G.TxnState.STARTING_TRANSACTION,G.TxnState.NO_TRANSACTION],[G.TxnState.TRANSACTION_ABORTED]:[G.TxnState.STARTING_TRANSACTION,G.TxnState.NO_TRANSACTION],[G.TxnState.TRANSACTION_COMMITTED_EMPTY]:[G.TxnState.TRANSACTION_COMMITTED_EMPTY,G.TxnState.NO_TRANSACTION]},$y=new Set([G.TxnState.STARTING_TRANSACTION,G.TxnState.TRANSACTION_IN_PROGRESS]),Gy=new Set([G.TxnState.TRANSACTION_COMMITTED,G.TxnState.TRANSACTION_COMMITTED_EMPTY,G.TxnState.TRANSACTION_ABORTED]),X2=class{constructor(e){e=e??{},this.state=G.TxnState.NO_TRANSACTION,this.options={};let r=Vy.WriteConcern.fromOptions(e);if(r){if(r.w===0)throw new u4.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=r;}e.readConcern&&(this.options.readConcern=jy.ReadConcern.fromOptions(e)),e.readPreference&&(this.options.readPreference=zy.ReadPreference.fromOptions(e)),e.maxCommitTimeMS&&(this.options.maxTimeMS=e.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===G.TxnState.STARTING_TRANSACTION}get isActive(){return $y.has(this.state)}get isCommitted(){return Gy.has(this.state)}transition(e){let r=Wy[this.state];if(r&&r.includes(e)){this.state=e,(this.state===G.TxnState.NO_TRANSACTION||this.state===G.TxnState.STARTING_TRANSACTION||this.state===G.TxnState.TRANSACTION_ABORTED)&&this.unpinServer();return}throw new u4.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${e}]`)}pinServer(e){this.isActive&&(this._pinnedServer=e);}unpinServer(){this._pinnedServer=void 0;}};G.Transaction=X2;function Hy(t){return !!(t.commitTransaction||t.abortTransaction)}});var uo=c(Ar=>{g();Object.defineProperty(Ar,"__esModule",{value:true});Ar.ServerSessionPool=Ar.ServerSession=Ar.ClientSession=void 0;Ar.maybeClearPinnedConnection=Iu;Ar.applySession=Qy;Ar.updateSessionFromResponse=Zy;var Nu=te(),vu=Y2(),l4=Ne(),V=B(),Ky=Pt(),Ru=$e(),Q2=ni(),Yy=ar(),Z2=We(),Xy=ao(),th=Nt(),eh=ke(),me=J2(),Ze=v(),io=dt(),Pu=class t extends Ky.TypedEventEmitter{constructor(e,r,n,s){if(super(),this.timeoutContext=null,this.on("error",Ze.noop),e==null)throw new V.MongoRuntimeError("ClientSession requires a MongoClient");if(r==null||!(r instanceof xu))throw new V.MongoRuntimeError("ClientSession requires a ServerSessionPool");if(n=n??{},this.snapshotEnabled=n.snapshot===true,n.causalConsistency===true&&this.snapshotEnabled)throw new V.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive');this.client=e,this.sessionPool=r,this.hasEnded=false,this.clientOptions=s,this.timeoutMS=n.defaultTimeoutMS??e.s.options?.timeoutMS,this.explicit=!!n.explicit,this._serverSession=this.explicit?this.sessionPool.acquire():null,this.txnNumberIncrement=0;let o=this.explicit&&n.snapshot!==true;this.supports={causalConsistency:n.causalConsistency??o},this.clusterTime=n.initialClusterTime,this.operationTime=void 0,this.owner=n.owner,this.defaultTransactionOptions={...n.defaultTransactionOptions},this.transaction=new me.Transaction;}get id(){return this.serverSession?.id}get serverSession(){let e=this._serverSession;if(e==null){if(this.explicit)throw new V.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new V.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");e=this.sessionPool.acquire(),this._serverSession=e;}return e}get loadBalanced(){return this.client.topology?.description.type===th.TopologyType.LoadBalanced}pin(e){if(this.pinnedConnection)throw TypeError("Cannot pin multiple connections to the same session");this.pinnedConnection=e,e.emit(l4.PINNED,this.inTransaction()?vu.ConnectionPoolMetrics.TXN:vu.ConnectionPoolMetrics.CURSOR);}unpin(e){if(this.loadBalanced)return Iu(this,e);this.transaction.unpinServer();}get isPinned(){return this.loadBalanced?!!this.pinnedConnection:this.transaction.isPinned}async endSession(e){try{this.inTransaction()&&await this.abortTransaction({...e,throwTimeout:!0});}catch(r){if(r.name==="MongoOperationTimeoutError")throw r;(0, Ze.squashError)(r);}finally{if(!this.hasEnded){let r=this.serverSession;r!=null&&(this.sessionPool.release(r),this._serverSession=new Mi(r)),this.hasEnded=true,this.emit("ended",this);}Iu(this,{force:true,...e});}}async asyncDispose(){await this.endSession({force:true});}advanceOperationTime(e){if(this.operationTime==null){this.operationTime=e;return}e.greaterThan(this.operationTime)&&(this.operationTime=e);}advanceClusterTime(e){if(!e||typeof e!="object")throw new V.MongoInvalidArgumentError("input cluster time must be an object");if(!e.clusterTime||e.clusterTime._bsontype!=="Timestamp")throw new V.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!e.signature||e.signature.hash?._bsontype!=="Binary"||typeof e.signature.keyId!="bigint"&&typeof e.signature.keyId!="number"&&e.signature.keyId?._bsontype!=="Long")throw new V.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');(0, th._advanceClusterTime)(this,e);}equals(e){return !(e instanceof t)||this.id==null||e.id==null?false:Ze.ByteUtils.equals(this.id.id.buffer,e.id.id.buffer)}incrementTransactionNumber(){this.txnNumberIncrement+=1;}inTransaction(){return this.transaction.isActive}startTransaction(e){if(this.snapshotEnabled)throw new V.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new V.MongoTransactionError("Transaction already in progress");this.isPinned&&this.transaction.isCommitted&&this.unpin(),this.commitAttempted=false,this.incrementTransactionNumber(),this.transaction=new me.Transaction({readConcern:e?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:e?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:e?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:e?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(me.TxnState.STARTING_TRANSACTION);}async commitTransaction(e){if(this.transaction.state===me.TxnState.NO_TRANSACTION)throw new V.MongoTransactionError("No transaction started");if(this.transaction.state===me.TxnState.STARTING_TRANSACTION||this.transaction.state===me.TxnState.TRANSACTION_COMMITTED_EMPTY){this.transaction.transition(me.TxnState.TRANSACTION_COMMITTED_EMPTY);return}if(this.transaction.state===me.TxnState.TRANSACTION_ABORTED)throw new V.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction");let r={commitTransaction:1},n=typeof e?.timeoutMS=="number"?e.timeoutMS:typeof this.timeoutMS=="number"?this.timeoutMS:null,s=this.transaction.options.writeConcern??this.clientOptions?.writeConcern;if(s!=null)if(n==null&&this.timeoutContext==null)io.WriteConcern.apply(r,{wtimeoutMS:1e4,w:"majority",...s});else {let u=Object.keys(s);(u.length>2||!u.includes("wtimeoutMS")&&!u.includes("wTimeoutMS"))&&io.WriteConcern.apply(r,{...s,wtimeoutMS:void 0});}(this.transaction.state===me.TxnState.TRANSACTION_COMMITTED||this.commitAttempted)&&(n==null&&this.timeoutContext==null?io.WriteConcern.apply(r,{wtimeoutMS:1e4,...s,w:"majority"}):io.WriteConcern.apply(r,{w:"majority",...s,wtimeoutMS:void 0})),typeof this.transaction.options.maxTimeMS=="number"&&(r.maxTimeMS=this.transaction.options.maxTimeMS),this.transaction.recoveryToken&&(r.recoveryToken=this.transaction.recoveryToken);let o=new Q2.RunCommandOperation(new Ze.MongoDBNamespace("admin"),r,{session:this,readPreference:Z2.ReadPreference.primary,bypassPinningCheck:true}),i=this.timeoutContext??(typeof n=="number"?eh.TimeoutContext.create({serverSelectionTimeoutMS:this.clientOptions.serverSelectionTimeoutMS,socketTimeoutMS:this.clientOptions.socketTimeoutMS,timeoutMS:n}):null);try{await(0,Ru.executeOperation)(this.client,o,i),this.commitAttempted=void 0;return}catch(u){if(this.commitAttempted=true,u instanceof V.MongoError&&(0, V.isRetryableWriteError)(u)){io.WriteConcern.apply(r,{wtimeoutMS:1e4,...s,w:"majority"}),this.unpin({force:true});try{await(0,Ru.executeOperation)(this.client,new Q2.RunCommandOperation(new Ze.MongoDBNamespace("admin"),r,{session:this,readPreference:Z2.ReadPreference.primary,bypassPinningCheck:!0}),i);return}catch(a){throw c4(a)&&a.addErrorLabel(V.MongoErrorLabel.UnknownTransactionCommitResult),a4(a)&&this.unpin({error:a}),a}}throw c4(u)&&u.addErrorLabel(V.MongoErrorLabel.UnknownTransactionCommitResult),a4(u)&&this.unpin({error:u}),u}finally{this.transaction.transition(me.TxnState.TRANSACTION_COMMITTED);}}async abortTransaction(e){if(this.transaction.state===me.TxnState.NO_TRANSACTION)throw new V.MongoTransactionError("No transaction started");if(this.transaction.state===me.TxnState.STARTING_TRANSACTION){this.transaction.transition(me.TxnState.TRANSACTION_ABORTED);return}if(this.transaction.state===me.TxnState.TRANSACTION_ABORTED)throw new V.MongoTransactionError("Cannot call abortTransaction twice");if(this.transaction.state===me.TxnState.TRANSACTION_COMMITTED||this.transaction.state===me.TxnState.TRANSACTION_COMMITTED_EMPTY)throw new V.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction");let r={abortTransaction:1},n=typeof e?.timeoutMS=="number"?e.timeoutMS:this.timeoutContext?.csotEnabled()?this.timeoutContext.timeoutMS:typeof this.timeoutMS=="number"?this.timeoutMS:null,s=n!=null?eh.TimeoutContext.create({timeoutMS:n,serverSelectionTimeoutMS:this.clientOptions.serverSelectionTimeoutMS,socketTimeoutMS:this.clientOptions.socketTimeoutMS}):null,o=this.transaction.options.writeConcern??this.clientOptions?.writeConcern;o!=null&&n==null&&io.WriteConcern.apply(r,{wtimeoutMS:1e4,w:"majority",...o}),this.transaction.recoveryToken&&(r.recoveryToken=this.transaction.recoveryToken);let i=new Q2.RunCommandOperation(new Ze.MongoDBNamespace("admin"),r,{session:this,readPreference:Z2.ReadPreference.primary,bypassPinningCheck:true});try{await(0,Ru.executeOperation)(this.client,i,s),this.unpin();return}catch(u){if(this.unpin(),u.name==="MongoRuntimeError"||e?.throwTimeout&&u.name==="MongoOperationTimeoutError")throw u;if(u instanceof V.MongoError&&(0, V.isRetryableWriteError)(u))try{await(0,Ru.executeOperation)(this.client,i,s);return}catch(a){if(a.name==="MongoRuntimeError"||e?.throwTimeout&&a.name==="MongoOperationTimeoutError")throw a}}finally{this.transaction.transition(me.TxnState.TRANSACTION_ABORTED),this.loadBalanced&&Iu(this,{force:false});}}toBSON(){throw new V.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(e,r){let s=r?.timeoutMS??this.timeoutMS??null;this.timeoutContext=s!=null?eh.TimeoutContext.create({timeoutMS:s,serverSelectionTimeoutMS:this.clientOptions.serverSelectionTimeoutMS,socketTimeoutMS:this.clientOptions.socketTimeoutMS}):null;let o=this.timeoutContext?.csotEnabled()?this.timeoutContext.start:(0, Ze.now)(),i=false,u;try{for(;!i;){this.startTransaction(r);try{let a=e(this);if(!(0,Ze.isPromiseLike)(a))throw new V.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");if(u=await a,this.transaction.state===me.TxnState.NO_TRANSACTION||this.transaction.state===me.TxnState.TRANSACTION_COMMITTED||this.transaction.state===me.TxnState.TRANSACTION_ABORTED)return u}catch(a){if(!(a instanceof V.MongoError)||a instanceof V.MongoInvalidArgumentError)throw await this.abortTransaction(),a;if((this.transaction.state===me.TxnState.STARTING_TRANSACTION||this.transaction.state===me.TxnState.TRANSACTION_IN_PROGRESS)&&await this.abortTransaction(),a.hasErrorLabel(V.MongoErrorLabel.TransientTransactionError)&&(this.timeoutContext!=null||(0,Ze.now)()-o<12e4))continue;throw a}for(;!i;)try{await this.commitTransaction(),i=!0;}catch(a){if(!Lu(a)&&a.hasErrorLabel(V.MongoErrorLabel.UnknownTransactionCommitResult)&&(this.timeoutContext!=null||(0,Ze.now)()-o<12e4))continue;if(a.hasErrorLabel(V.MongoErrorLabel.TransientTransactionError)&&(this.timeoutContext!=null||(0,Ze.now)()-o<12e4))break;throw a}}return u}finally{this.timeoutContext=null;}}};Ar.ClientSession=Pu;(0, Xy.configureResourceManagement)(Pu.prototype);var Jy=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);function a4(t){if(t instanceof V.MongoError){if((0, V.isRetryableWriteError)(t)||t instanceof V.MongoWriteConcernError||Lu(t)){if(h4(t))return true}else if(t.hasErrorLabel(V.MongoErrorLabel.TransientTransactionError))return true}return false}function c4(t){let e=(0, V.isRetryableWriteError)(t);return e||=t instanceof V.MongoWriteConcernError,e||=Lu(t),e&&=h4(t),e}function h4(t){let e=t instanceof V.MongoServerError&&t.codeName&&Jy.has(t.codeName);return Lu(t)||!e&&t.code!==V.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&t.code!==V.MONGODB_ERROR_CODES.UnknownReplWriteConcern}function Iu(t,e){let r=t.pinnedConnection,n=e?.error;if(t.inTransaction()&&n&&n instanceof V.MongoError&&n.hasErrorLabel(V.MongoErrorLabel.TransientTransactionError))return;let s=t.client.topology;if(r&&s!=null){let i=Array.from(s.s.servers.values())[0];(e?.error==null||e?.force)&&(i.pool.checkIn(r),t.pinnedConnection=void 0,r.emit(l4.UNPINNED,t.transaction.state!==me.TxnState.NO_TRANSACTION?vu.ConnectionPoolMetrics.TXN:vu.ConnectionPoolMetrics.CURSOR),e?.forceClear&&i.pool.clear({serviceId:r.serviceId}));}}function Lu(t){return t==null||!(t instanceof V.MongoServerError)?false:t.code===V.MONGODB_ERROR_CODES.MaxTimeMSExpired||t.writeConcernError?.code===V.MONGODB_ERROR_CODES.MaxTimeMSExpired}var Mi=class{constructor(e){if(e!=null){let r=Buffer.allocUnsafe(16);r.set(e.id.id.buffer),this.id={id:new Nu.Binary(r,e.id.id.sub_type)},this.lastUse=e.lastUse,this.txnNumber=e.txnNumber,this.isDirty=e.isDirty;return}this.id={id:new Nu.Binary((0, Ze.uuidV4)(),Nu.Binary.SUBTYPE_UUID)},this.lastUse=(0, Ze.now)(),this.txnNumber=0,this.isDirty=false;}hasTimedOut(e){return Math.round((0, Ze.calculateDurationInMs)(this.lastUse)%864e5%36e5/6e4)>e-1}};Ar.ServerSession=Mi;var xu=class{constructor(e){if(e==null)throw new V.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=e,this.sessions=new Ze.List;}acquire(){let e=this.client.topology?.logicalSessionTimeoutMinutes??10,r=null;for(;this.sessions.length>0;){let n=this.sessions.shift();if(n!=null&&(this.client.topology?.loadBalanced||!n.hasTimedOut(e))){r=n;break}}return r==null&&(r=new Mi),r}release(e){let r=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!r&&this.sessions.unshift(e),!!r&&(this.sessions.prune(n=>n.hasTimedOut(r)),!e.hasTimedOut(r))){if(e.isDirty)return;this.sessions.unshift(e);}}};Ar.ServerSessionPool=xu;function Qy(t,e,r){if(t.hasEnded)return new V.MongoExpiredSessionError;let n=t.serverSession;if(n==null)return new V.MongoRuntimeError("Unable to acquire server session");if(r.writeConcern?.w===0)return t&&t.explicit?new V.MongoAPIError("Cannot have explicit session with unacknowledged writes"):void 0;n.lastUse=(0, Ze.now)(),e.lsid=n.id;let s=t.inTransaction()||(0, me.isTransactionCommand)(e);if((r.willRetryWrite||s)&&(n.txnNumber+=t.txnNumberIncrement,t.txnNumberIncrement=0,e.txnNumber=Nu.Long.fromNumber(n.txnNumber)),!s){t.transaction.state!==me.TxnState.NO_TRANSACTION&&t.transaction.transition(me.TxnState.NO_TRANSACTION),t.supports.causalConsistency&&t.operationTime&&(0, Ze.commandSupportsReadConcern)(e)?(e.readConcern=e.readConcern||{},Object.assign(e.readConcern,{afterClusterTime:t.operationTime})):t.snapshotEnabled&&(e.readConcern=e.readConcern||{level:Yy.ReadConcernLevel.snapshot},t.snapshotTime!=null&&Object.assign(e.readConcern,{atClusterTime:t.snapshotTime}));return}if(e.autocommit=false,t.transaction.state===me.TxnState.STARTING_TRANSACTION){t.transaction.transition(me.TxnState.TRANSACTION_IN_PROGRESS),e.startTransaction=true;let i=t.transaction.options.readConcern||t?.clientOptions?.readConcern;i&&(e.readConcern=i),t.supports.causalConsistency&&t.operationTime&&(e.readConcern=e.readConcern||{},Object.assign(e.readConcern,{afterClusterTime:t.operationTime}));}}function Zy(t,e){if(e.$clusterTime&&(0, th._advanceClusterTime)(t,e.$clusterTime),e.operationTime&&t&&t.supports.causalConsistency&&t.advanceOperationTime(e.operationTime),e.recoveryToken&&t&&t.inTransaction()&&(t.transaction._recoveryToken=e.recoveryToken),t?.snapshotEnabled&&t.snapshotTime==null){let r=e.atClusterTime;r&&(t.snapshotTime=r);}}});var lh=c(Qt=>{g();Object.defineProperty(Qt,"__esModule",{value:true});Qt.SENSITIVE_COMMANDS=Qt.CommandFailedEvent=Qt.CommandSucceededEvent=Qt.CommandStartedEvent=void 0;var Fi=Ne(),m4=v(),rh=Ci(),nh=class{constructor(e,r,n){this.name=Fi.COMMAND_STARTED;let s=ah(r),o=ih(s),{address:i,connectionId:u,serviceId:a}=ch(e);Qt.SENSITIVE_COMMANDS.has(o)&&(this.commandObj={},this.commandObj[o]=true),this.address=i,this.connectionId=u,this.serviceId=a,this.requestId=r.requestId,this.databaseName=r.databaseName,this.commandName=o,this.command=uh(o,s,s),this.serverConnectionId=n;}get hasServiceId(){return !!this.serviceId}};Qt.CommandStartedEvent=nh;var sh=class{constructor(e,r,n,s,o){this.name=Fi.COMMAND_SUCCEEDED;let i=ah(r),u=ih(i),{address:a,connectionId:c,serviceId:h}=ch(e);this.address=a,this.connectionId=c,this.serviceId=h,this.requestId=r.requestId,this.commandName=u,this.duration=(0, m4.calculateDurationInMs)(s),this.reply=uh(u,i,rO(n)),this.serverConnectionId=o,this.databaseName=r.databaseName;}get hasServiceId(){return !!this.serviceId}};Qt.CommandSucceededEvent=sh;var oh=class{constructor(e,r,n,s,o){this.name=Fi.COMMAND_FAILED;let i=ah(r),u=ih(i),{address:a,connectionId:c,serviceId:h}=ch(e);this.address=a,this.connectionId=c,this.serviceId=h,this.requestId=r.requestId,this.commandName=u,this.duration=(0, m4.calculateDurationInMs)(s),this.failure=uh(u,i,n),this.serverConnectionId=o,this.databaseName=r.databaseName;}get hasServiceId(){return !!this.serviceId}};Qt.CommandFailedEvent=oh;Qt.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var eO=new Set(["hello",Fi.LEGACY_HELLO_COMMAND,Fi.LEGACY_HELLO_COMMAND_CAMEL_CASE]),ih=t=>Object.keys(t)[0],tO=t=>t.ns.split(".")[1],uh=(t,e,r)=>Qt.SENSITIVE_COMMANDS.has(t)||eO.has(t)&&e.speculativeAuthenticate?{}:r,d4={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},f4={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"};function ah(t){if(t instanceof rh.OpMsgRequest){let n={...t.command};return n.ops instanceof rh.DocumentSequence&&(n.ops=n.ops.documents),n.nsInfo instanceof rh.DocumentSequence&&(n.nsInfo=n.nsInfo.documents),n}if(t.query?.$query){let n;return t.ns==="admin.$cmd"?n=Object.assign({},t.query.$query):(n={find:tO(t)},Object.keys(d4).forEach(s=>{t.query[s]!=null&&(n[d4[s]]={...t.query[s]});})),Object.keys(f4).forEach(s=>{let o=s;t[o]!=null&&(n[f4[o]]=t[o]);}),n}let e={},r={...t};return t.query&&(e={...t.query},r.query=e),t.query?e:r}function rO(t){return t&&(t.result?t.result:t)}function ch(t){let e;return "id"in t&&(e=t.id),{address:t.address,serviceId:t.serviceId,connectionId:e}}});var Ri=c(ho=>{g();Object.defineProperty(ho,"__esModule",{value:true});ho.ServerDescription=void 0;ho.parseServerType=p4;ho.compareTopologyVersion=E4;var co=te(),nO=B(),lo=v(),xe=Nt(),sO=new Set([xe.ServerType.RSPrimary,xe.ServerType.Standalone,xe.ServerType.Mongos,xe.ServerType.LoadBalancer]),oO=new Set([xe.ServerType.RSPrimary,xe.ServerType.RSSecondary,xe.ServerType.Mongos,xe.ServerType.Standalone,xe.ServerType.LoadBalancer]),hh=class{constructor(e,r,n={}){if(e==null||e==="")throw new nO.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof e=="string"?lo.HostAddress.fromString(e).toString():e.toString(),this.type=p4(r,n),this.hosts=r?.hosts?.map(s=>s.toLowerCase())??[],this.passives=r?.passives?.map(s=>s.toLowerCase())??[],this.arbiters=r?.arbiters?.map(s=>s.toLowerCase())??[],this.tags=r?.tags??{},this.minWireVersion=r?.minWireVersion??0,this.maxWireVersion=r?.maxWireVersion??0,this.roundTripTime=n?.roundTripTime??-1,this.minRoundTripTime=n?.minRoundTripTime??0,this.lastUpdateTime=(0, lo.now)(),this.lastWriteDate=r?.lastWrite?.lastWriteDate??0,this.error=n.error??null,this.error?.stack,this.topologyVersion=this.error?.topologyVersion??r?.topologyVersion??null,this.setName=r?.setName??null,this.setVersion=r?.setVersion??null,this.electionId=r?.electionId??null,this.logicalSessionTimeoutMinutes=r?.logicalSessionTimeoutMinutes??null,this.maxMessageSizeBytes=r?.maxMessageSizeBytes??null,this.maxWriteBatchSize=r?.maxWriteBatchSize??null,this.maxBsonObjectSize=r?.maxBsonObjectSize??null,this.primary=r?.primary??null,this.me=r?.me?.toLowerCase()??null,this.$clusterTime=r?.$clusterTime??null,this.iscryptd=!!r?.iscryptd;}get hostAddress(){return lo.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===xe.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return oO.has(this.type)}get isWritable(){return sO.has(this.type)}get host(){let e=`:${this.port}`.length;return this.address.slice(0,-e)}get port(){let e=this.address.split(":").pop();return e?Number.parseInt(e,10):27017}equals(e){let r=this.topologyVersion===e?.topologyVersion||E4(this.topologyVersion,e?.topologyVersion)===0,n=this.electionId!=null&&e?.electionId!=null?(0, lo.compareObjectId)(this.electionId,e.electionId)===0:this.electionId===e?.electionId;return e!=null&&e.iscryptd===this.iscryptd&&(0, lo.errorStrictEqual)(this.error,e.error)&&this.type===e.type&&this.minWireVersion===e.minWireVersion&&(0, lo.arrayStrictEqual)(this.hosts,e.hosts)&&iO(this.tags,e.tags)&&this.setName===e.setName&&this.setVersion===e.setVersion&&n&&this.primary===e.primary&&this.logicalSessionTimeoutMinutes===e.logicalSessionTimeoutMinutes&&r}};ho.ServerDescription=hh;function p4(t,e){return e?.loadBalanced?xe.ServerType.LoadBalancer:!t||!t.ok?xe.ServerType.Unknown:t.isreplicaset?xe.ServerType.RSGhost:t.msg&&t.msg==="isdbgrid"?xe.ServerType.Mongos:t.setName?t.hidden?xe.ServerType.RSOther:t.isWritablePrimary?xe.ServerType.RSPrimary:t.secondary?xe.ServerType.RSSecondary:t.arbiterOnly?xe.ServerType.RSArbiter:xe.ServerType.RSOther:xe.ServerType.Standalone}function iO(t,e){let r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&r.every(s=>e[s]===t[s])}function E4(t,e){if(t==null||e==null||!t.processId.equals(e.processId))return -1;let r=typeof t.counter=="bigint"?co.Long.fromBigInt(t.counter):co.Long.isLong(t.counter)?t.counter:co.Long.fromNumber(t.counter),n=typeof e.counter=="bigint"?co.Long.fromBigInt(e.counter):co.Long.isLong(e.counter)?e.counter:co.Long.fromNumber(e.counter);return r.compare(n)}});var g4=c(ku=>{g();Object.defineProperty(ku,"__esModule",{value:true});ku.StreamDescription=void 0;var uO=te(),aO=Nt(),cO=Ri(),lO=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"],dh=class{constructor(e,r){this.hello=null,this.address=e,this.type=aO.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48e6,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=r?.logicalSessionTimeoutMinutes,this.loadBalanced=!!r?.loadBalanced,this.compressors=r&&r.compressors&&Array.isArray(r.compressors)?r.compressors:[],this.serverConnectionId=null;}receiveResponse(e){if(e!=null){this.hello=e,this.type=(0, cO.parseServerType)(e),"connectionId"in e?this.serverConnectionId=this.parseServerConnectionID(e.connectionId):this.serverConnectionId=null;for(let r of lO)e[r]!=null&&(this[r]=e[r]),"__nodejs_mock_server__"in e&&(this.__nodejs_mock_server__=e.__nodejs_mock_server__);e.compression&&(this.compressor=this.compressors.filter(r=>e.compression?.includes(r))[0]);}}parseServerConnectionID(e){return uO.Long.isLong(e)?e.toBigInt():BigInt(e)}};ku.StreamDescription=dh;});var A4=c(fh=>{g();Object.defineProperty(fh,"__esModule",{value:true});fh.onData=hO;var Ni=v();function hO(t,{timeoutContext:e,signal:r}){r?.throwIfAborted();let n=new Ni.List,s=new Ni.List,o=null,i=false,u={next(){let E=n.shift();if(E!=null)return Promise.resolve({value:E,done:false});if(o!=null){let j=Promise.reject(o);return o=null,j}if(i)return m();let{promise:p,resolve:_,reject:b}=(0, Ni.promiseWithResolvers)();return s.push({resolve:_,reject:b}),p},return(){return m()},throw(E){return d(E),Promise.resolve({value:void 0,done:true})},[Symbol.asyncIterator](){return this},async[Symbol.asyncDispose](){await m();}};t.on("data",h),t.on("error",d);let a=(0, Ni.addAbortListener)(r,function(){d(this.reason);}),c=e?.timeoutForSocketRead;return c?.throwIfExpired(),c?.then(void 0,d),u;function h(E){let p=s.shift();p!=null?p.resolve({value:E,done:false}):n.push(E);}function d(E){let p=s.shift();p!=null?p.reject(E):o=E,m();}function m(){t.off("data",h),t.off("error",d),a?.[Ni.kDispose](),i=true,c?.clear();let E={value:void 0,done:i};for(let p of s)p.resolve(E);return Promise.resolve(E)}}});var Eh=c(ju=>{g();Object.defineProperty(ju,"__esModule",{value:true});ju.TopologyDescription=void 0;var dO=te(),Uu=mn(),qu=B(),mh=v(),ee=Nt(),In=Ri(),fO=Uu.MIN_SUPPORTED_SERVER_VERSION,mO=Uu.MAX_SUPPORTED_SERVER_VERSION,C4=Uu.MIN_SUPPORTED_WIRE_VERSION,S4=Uu.MAX_SUPPORTED_WIRE_VERSION,pO=new Set([ee.ServerType.Mongos,ee.ServerType.Unknown]),y4=new Set([ee.ServerType.Mongos,ee.ServerType.Standalone]),O4=new Set([ee.ServerType.RSSecondary,ee.ServerType.RSArbiter,ee.ServerType.RSOther]),ph=class t{constructor(e,r=null,n=null,s=null,o=null,i=null,u=null){u=u??{},this.type=e??ee.TopologyType.Unknown,this.servers=r??new Map,this.stale=false,this.compatible=true,this.heartbeatFrequencyMS=u.heartbeatFrequencyMS??0,this.localThresholdMS=u.localThresholdMS??15,this.setName=n??null,this.maxElectionId=o??null,this.maxSetVersion=s??null,this.commonWireVersion=i??0;for(let a of this.servers.values())if(!(a.type===ee.ServerType.Unknown||a.type===ee.ServerType.LoadBalancer)&&(a.minWireVersion>S4&&(this.compatible=false,this.compatibilityError=`Server at ${a.address} requires wire version ${a.minWireVersion}, but this version of the driver only supports up to ${S4} (MongoDB ${mO})`),a.maxWireVersion<C4)){this.compatible=false,this.compatibilityError=`Server at ${a.address} reports wire version ${a.maxWireVersion}, but this version of the driver requires at least ${C4} (MongoDB ${fO}).`;break}this.logicalSessionTimeoutMinutes=null;for(let[,a]of this.servers)if(a.isReadable){if(a.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=a.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,a.logicalSessionTimeoutMinutes);}}updateFromSrvPollingEvent(e,r=0){let n=e.hostnames(),s=new Set(this.servers.keys()),o=new Set(n),i=new Set;for(let a of s)o.delete(a),n.has(a)||i.add(a);if(o.size===0&&i.size===0)return this;let u=new Map(this.servers);for(let a of i)u.delete(a);if(o.size>0){if(r===0)for(let a of o)u.set(a,new In.ServerDescription(a));else if(u.size<r){let a=(0, mh.shuffle)(o,r-u.size);for(let c of a)u.set(c,new In.ServerDescription(c));}}return new t(this.type,u,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(e){let r=e.address,{type:n,setName:s,maxSetVersion:o,maxElectionId:i,commonWireVersion:u}=this,a=e.type,c=new Map(this.servers);if(e.maxWireVersion!==0&&(u==null?u=e.maxWireVersion:u=Math.min(u,e.maxWireVersion)),typeof e.setName=="string"&&typeof s=="string"&&e.setName!==s&&(n===ee.TopologyType.Single?e=new In.ServerDescription(r):c.delete(r)),c.set(r,e),n===ee.TopologyType.Single)return new t(ee.TopologyType.Single,c,s,o,i,u,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if(n===ee.TopologyType.Unknown&&(a===ee.ServerType.Standalone&&this.servers.size!==1?c.delete(r):n=EO(a)),n===ee.TopologyType.Sharded&&(pO.has(a)||c.delete(r)),n===ee.TopologyType.ReplicaSetNoPrimary){if(y4.has(a)&&c.delete(r),a===ee.ServerType.RSPrimary){let h=w4(c,e,s,o,i);n=h[0],s=h[1],o=h[2],i=h[3];}else if(O4.has(a)){let h=AO(c,e,s);n=h[0],s=h[1];}}if(n===ee.TopologyType.ReplicaSetWithPrimary)if(y4.has(a))c.delete(r),n=fs(c);else if(a===ee.ServerType.RSPrimary){let h=w4(c,e,s,o,i);n=h[0],s=h[1],o=h[2],i=h[3];}else O4.has(a)?n=gO(c,e,s):n=fs(c);return new t(n,c,s,o,i,u,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){let e=Array.from(this.servers.values()).filter(r=>r.error);return e.length>0?e[0].error:null}get hasKnownServers(){return Array.from(this.servers.values()).some(e=>e.type!==ee.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some(e=>e.isDataBearing)}hasServer(e){return this.servers.has(e)}toJSON(){return dO.EJSON.serialize(this)}};ju.TopologyDescription=ph;function EO(t){switch(t){case ee.ServerType.Standalone:return ee.TopologyType.Single;case ee.ServerType.Mongos:return ee.TopologyType.Sharded;case ee.ServerType.RSPrimary:return ee.TopologyType.ReplicaSetWithPrimary;case ee.ServerType.RSOther:case ee.ServerType.RSSecondary:return ee.TopologyType.ReplicaSetNoPrimary;default:return ee.TopologyType.Unknown}}function w4(t,e,r=null,n=null,s=null){let o=(a,c,h)=>`primary marked stale due to electionId/setVersion mismatch: server setVersion: ${a.setVersion}, server electionId: ${a.electionId}, topology setVersion: ${c}, topology electionId: ${h}`;if(r=r||e.setName,r!==e.setName)return t.delete(e.address),[fs(t),r,n,s];if(e.maxWireVersion>=17){let a=(0, mh.compareObjectId)(s,e.electionId),c=a===0,h=a===-1,d=(n??-1)<=(e.setVersion??-1);if(h||c&&d)s=e.electionId,n=e.setVersion;else return t.set(e.address,new In.ServerDescription(e.address,void 0,{error:new qu.MongoStalePrimaryError(o(e,n,s))})),[fs(t),r,n,s]}else {let a=e.electionId?e.electionId:null;if(e.setVersion&&a){if(n&&s&&(n>e.setVersion||(0, mh.compareObjectId)(s,a)>0))return t.set(e.address,new In.ServerDescription(e.address,void 0,{error:new qu.MongoStalePrimaryError(o(e,n,s))})),[fs(t),r,n,s];s=e.electionId;}e.setVersion!=null&&(n==null||e.setVersion>n)&&(n=e.setVersion);}for(let[a,c]of t)if(c.type===ee.ServerType.RSPrimary&&c.address!==e.address){t.set(a,new In.ServerDescription(c.address,void 0,{error:new qu.MongoStalePrimaryError("primary marked stale due to discovery of newer primary")}));break}e.allHosts.forEach(a=>{t.has(a)||t.set(a,new In.ServerDescription(a));});let i=Array.from(t.keys()),u=e.allHosts;return i.filter(a=>u.indexOf(a)===-1).forEach(a=>{t.delete(a);}),[fs(t),r,n,s]}function gO(t,e,r=null){if(r==null)throw new qu.MongoRuntimeError('Argument "setName" is required if connected to a replica set');return (r!==e.setName||e.me&&e.address!==e.me)&&t.delete(e.address),fs(t)}function AO(t,e,r=null){let n=ee.TopologyType.ReplicaSetNoPrimary;return r=r??e.setName,r!==e.setName?(t.delete(e.address),[n,r]):(e.allHosts.forEach(s=>{t.has(s)||t.set(s,new In.ServerDescription(s));}),e.me&&e.address!==e.me&&t.delete(e.address),[n,r])}function fs(t){for(let e of t.values())if(e.type===ee.ServerType.RSPrimary)return ee.TopologyType.ReplicaSetWithPrimary;return ee.TopologyType.ReplicaSetNoPrimary}});var D4=c(zu=>{g();Object.defineProperty(zu,"__esModule",{value:true});zu.getReadPreference=yO;zu.isSharded=OO;var CO=B(),gh=We(),_4=Nt(),SO=Eh();function yO(t){let e=t?.readPreference??gh.ReadPreference.primary;if(typeof e=="string"&&(e=gh.ReadPreference.fromString(e)),!(e instanceof gh.ReadPreference))throw new CO.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return e}function OO(t){return t==null?false:t.description&&t.description.type===_4.ServerType.Mongos?true:t.description&&t.description instanceof SO.TopologyDescription?Array.from(t.description.servers.values()).some(r=>r.type===_4.ServerType.Mongos):false}});var $u=c(Qr=>{g();Object.defineProperty(Qr,"__esModule",{value:true});Qr.CryptoConnection=Qr.SizedMessageTransform=Qr.Connection=void 0;Qr.hasSessionSupport=RO;var wO=a("stream"),M4=a("timers"),_O=te(),vn=Ne(),Oe=B(),T4=Cn(),DO=Pt(),TO=We(),BO=Nt(),B4=uo(),b4=ke(),xt=v(),Ah=lh(),Vu=Ci(),bO=g4(),MO=Si(),FO=A4(),Ii=ae(),Ch=D4();function RO(t){return t.description.logicalSessionTimeoutMinutes!=null}function NO(t,e){if(e.proxyHost)return e.hostAddress.toString();let{remoteAddress:r,remotePort:n}=t;return typeof r=="string"&&typeof n=="number"?xt.HostAddress.fromHostPort(r,n).toString():(0, xt.uuidV4)().toString("hex")}var Cr=class t extends DO.TypedEventEmitter{constructor(e,r){super(),this.lastHelloMS=-1,this.helloOk=false,this.delayedTimeoutId=null,this.closed=false,this.clusterTime=null,this.error=null,this.dataEvents=null,this.on("error",xt.noop),this.socket=e,this.id=r.id,this.address=NO(e,r),this.socketTimeoutMS=r.socketTimeoutMS??0,this.monitorCommands=r.monitorCommands,this.serverApi=r.serverApi,this.mongoLogger=r.mongoLogger,this.established=false,this.description=new bO.StreamDescription(this.address,r),this.generation=r.generation,this.lastUseTime=(0, xt.now)(),this.messageStream=this.socket.on("error",this.onSocketError.bind(this)).pipe(new Wu({connection:this})).on("error",this.onTransformError.bind(this)),this.socket.on("close",this.onClose.bind(this)),this.socket.on("timeout",this.onTimeout.bind(this)),this.messageStream.pause();}get hello(){return this.description.hello}set hello(e){this.description.receiveResponse(e),Object.freeze(this.description);}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get idleTime(){return (0, xt.calculateDurationInMs)(this.lastUseTime)}get hasSessionSupport(){return this.description.logicalSessionTimeoutMinutes!=null}get supportsOpMsg(){return this.description!=null&&(0, xt.maxWireVersion)(this)>=6&&!this.description.__nodejs_mock_server__}get shouldEmitAndLogCommand(){return (this.monitorCommands||this.established&&!this.authContext?.reauthenticating&&this.mongoLogger?.willLog(T4.MongoLoggableComponent.COMMAND,T4.SeverityLevel.DEBUG))??false}markAvailable(){this.lastUseTime=(0, xt.now)();}onSocketError(e){this.onError(new Oe.MongoNetworkError(e.message,{cause:e}));}onTransformError(e){this.onError(e);}onError(e){this.cleanup(e);}onClose(){let e=`connection ${this.id} to ${this.address} closed`;this.cleanup(new Oe.MongoNetworkError(e));}onTimeout(){this.delayedTimeoutId=(0, M4.setTimeout)(()=>{let e=`connection ${this.id} to ${this.address} timed out`,r=this.hello==null;this.cleanup(new Oe.MongoNetworkTimeoutError(e,{beforeHandshake:r}));},1).unref();}destroy(){if(this.closed)return;this.removeAllListeners(t.PINNED),this.removeAllListeners(t.UNPINNED);let e=`connection ${this.id} to ${this.address} closed`;this.cleanup(new Oe.MongoNetworkError(e));}cleanup(e){this.closed||(this.socket.destroy(),this.error=e,this.dataEvents?.throw(e).then(void 0,xt.squashError),this.closed=true,this.emit(t.CLOSE));}prepareCommand(e,r,n){let s={...r},o=(0, Ch.getReadPreference)(n),i=n?.session,u=this.clusterTime;if(this.serverApi){let{version:h,strict:d,deprecationErrors:m}=this.serverApi;s.apiVersion=h,d!=null&&(s.apiStrict=d),m!=null&&(s.apiDeprecationErrors=m);}if(this.hasSessionSupport&&i){i.clusterTime&&u&&i.clusterTime.clusterTime.greaterThan(u.clusterTime)&&(u=i.clusterTime);let h=(0, B4.applySession)(i,s,n);if(h)throw h}else if(i?.explicit)throw new Oe.MongoCompatibilityError("Current topology does not support sessions");u&&(s.$clusterTime=u),this.description.type!==BO.ServerType.Standalone&&(!(0, Ch.isSharded)(this)&&!this.description.loadBalanced&&this.supportsOpMsg&&n.directConnection===true&&o?.mode==="primary"?s.$readPreference=TO.ReadPreference.primaryPreferred.toJSON():(0, Ch.isSharded)(this)&&!this.supportsOpMsg&&o?.mode!=="primary"?s={$query:s,$readPreference:o.toJSON()}:o?.mode!=="primary"&&(s.$readPreference=o.toJSON()));let a={numberToSkip:0,numberToReturn:-1,checkKeys:false,secondaryOk:o.secondaryOk(),...n};return n.timeoutContext?.addMaxTimeMSToCommand(s,n),this.supportsOpMsg?new Vu.OpMsgRequest(e,s,a):new Vu.OpQueryRequest(e,s,a)}async*sendWire(e,r,n){this.throwIfAborted();let s=r.socketTimeoutMS??r?.timeoutContext?.getSocketTimeoutMS()??this.socketTimeoutMS;this.socket.setTimeout(s);try{if(await this.writeCommand(e,{agreedCompressor:this.description.compressor??"none",zlibCompressionLevel:this.description.zlibCompressionLevel,timeoutContext:r.timeoutContext,signal:r.signal}),r.noResponse||e.moreToCome){yield Ii.MongoDBResponse.empty;return}if(this.throwIfAborted(),r.timeoutContext?.csotEnabled()&&r.timeoutContext.minRoundTripTime!=null&&r.timeoutContext.remainingTimeMS<r.timeoutContext.minRoundTripTime)throw new Oe.MongoOperationTimeoutError("Server roundtrip time is greater than the time remaining");for await(let o of this.readMany(r)){this.socket.setTimeout(0);let i=o.parse();yield (n??Ii.MongoDBResponse).make(i),this.throwIfAborted(),this.socket.setTimeout(s);}}finally{this.socket.setTimeout(0);}}async*sendCommand(e,r,n,s){n?.signal?.throwIfAborted();let o=this.prepareCommand(e.db,r,n),i=0;this.shouldEmitAndLogCommand&&(i=(0, xt.now)(),this.emitAndLogCommand(this.monitorCommands,t.COMMAND_STARTED,o.databaseName,this.established,new Ah.CommandStartedEvent(this,o,this.description.serverConnectionId)));let u=n.documentsReturnedIn==null||!n.raw?n:{...n,raw:false,fieldsAsRaw:{[n.documentsReturnedIn]:true}},a,c;try{this.throwIfAborted();for await(a of this.sendWire(o,n,s)){if(c=void 0,n.session!=null&&(0,B4.updateSessionFromResponse)(n.session,a),a.$clusterTime&&(this.clusterTime=a.$clusterTime,this.emit(t.CLUSTER_TIME_RECEIVED,a.$clusterTime)),a.ok===0)throw n.timeoutContext?.csotEnabled()&&a.isMaxTimeExpiredError?new Oe.MongoOperationTimeoutError("Server reported a timeout error",{cause:new Oe.MongoServerError(c??=a.toObject(u))}):new Oe.MongoServerError(c??=a.toObject(u));this.shouldEmitAndLogCommand&&this.emitAndLogCommand(this.monitorCommands,t.COMMAND_SUCCEEDED,o.databaseName,this.established,new Ah.CommandSucceededEvent(this,o,n.noResponse?void 0:o.moreToCome?{ok:1}:c??=a.toObject(u),i,this.description.serverConnectionId)),s==null?yield c??=a.toObject(u):yield a,this.throwIfAborted();}}catch(h){throw this.shouldEmitAndLogCommand&&this.emitAndLogCommand(this.monitorCommands,t.COMMAND_FAILED,o.databaseName,this.established,new Ah.CommandFailedEvent(this,o,h,i,this.description.serverConnectionId)),h}}async command(e,r,n={},s){this.throwIfAborted(),n.signal?.throwIfAborted();for await(let o of this.sendCommand(e,r,n,s)){if(n.timeoutContext?.csotEnabled()){if(Ii.MongoDBResponse.is(o)){if(o.isMaxTimeExpiredError)throw new Oe.MongoOperationTimeoutError("Server reported a timeout error",{cause:new Oe.MongoServerError(o.toObject())})}else if(Array.isArray(o?.writeErrors)&&o.writeErrors.some(i=>i?.code===Oe.MONGODB_ERROR_CODES.MaxTimeMSExpired)||o?.writeConcernError?.code===Oe.MONGODB_ERROR_CODES.MaxTimeMSExpired)throw new Oe.MongoOperationTimeoutError("Server reported a timeout error",{cause:new Oe.MongoServerError(o)})}return o}throw new Oe.MongoUnexpectedServerResponseError("Unable to get response from server")}exhaustCommand(e,r,n,s){(async()=>{this.throwIfAborted();for await(let i of this.sendCommand(e,r,n))s(void 0,i),this.throwIfAborted();throw new Oe.MongoUnexpectedServerResponseError("Server ended moreToCome unexpectedly")})().then(void 0,s);}throwIfAborted(){if(this.error)throw this.error}async writeCommand(e,r){let n=r.agreedCompressor==="none"||!Vu.OpCompressedRequest.canCompress(e)?e:new Vu.OpCompressedRequest(e,{agreedCompressor:r.agreedCompressor??"none",zlibCompressionLevel:r.zlibCompressionLevel??0}),s=Buffer.concat(await n.toBin());if(r.timeoutContext?.csotEnabled()&&r.timeoutContext.minRoundTripTime!=null&&r.timeoutContext.remainingTimeMS<r.timeoutContext.minRoundTripTime)throw new Oe.MongoOperationTimeoutError("Server roundtrip time is greater than the time remaining");if(this.socket.write(s))return;let o=(0, xt.once)(this.socket,"drain",r),i=r?.timeoutContext?.timeoutForSocketWrite,u=i?Promise.race([o,i]):o;try{return await u}catch(a){if(b4.TimeoutError.is(a)){let c=new Oe.MongoOperationTimeoutError("Timed out at socket write");throw this.onError(c),c}else a===r.signal?.reason&&this.onError(a);throw a}finally{i?.clear();}}async*readMany(e){try{this.dataEvents=(0,FO.onData)(this.messageStream,e),this.messageStream.resume();for await(let r of this.dataEvents){let n=await(0,MO.decompressResponse)(r);if(yield n,!n.moreToCome)return}}catch(r){if(b4.TimeoutError.is(r)){let n=new Oe.MongoOperationTimeoutError(`Timed out during socket read (${r.duration}ms)`);throw this.dataEvents=null,this.onError(n),n}else r===e.signal?.reason&&this.onError(r);throw r}finally{this.dataEvents=null,this.messageStream.pause();}}};Qr.Connection=Cr;Cr.COMMAND_STARTED=vn.COMMAND_STARTED;Cr.COMMAND_SUCCEEDED=vn.COMMAND_SUCCEEDED;Cr.COMMAND_FAILED=vn.COMMAND_FAILED;Cr.CLUSTER_TIME_RECEIVED=vn.CLUSTER_TIME_RECEIVED;Cr.CLOSE=vn.CLOSE;Cr.PINNED=vn.PINNED;Cr.UNPINNED=vn.UNPINNED;var Wu=class extends wO.Transform{constructor({connection:e}){super({writableObjectMode:false,readableObjectMode:true}),this.bufferPool=new xt.BufferPool,this.connection=e;}_transform(e,r,n){for(this.connection.delayedTimeoutId!=null&&((0, M4.clearTimeout)(this.connection.delayedTimeoutId),this.connection.delayedTimeoutId=null),this.bufferPool.append(e);this.bufferPool.length;){let s=this.bufferPool.getInt32();if(s==null)break;if(s<0)return n(new Oe.MongoParseError(`Message size cannot be negative: ${s}`));if(s>this.bufferPool.length)break;let o=this.bufferPool.read(s);if(!this.push(o))return n(new Oe.MongoRuntimeError("SizedMessageTransform does not support backpressure"))}n();}};Qr.SizedMessageTransform=Wu;var Sh=class extends Cr{constructor(e,r){super(e,r),this.autoEncrypter=r.autoEncrypter;}async command(e,r,n,s){let{autoEncrypter:o}=this;if(!o)throw new Oe.MongoMissingDependencyError("No AutoEncrypter available for encryption",{dependencyName:"n/a"});if((0, xt.maxWireVersion)(this)===0)return await super.command(e,r,n,s);let u=r.find||r.findAndModify?r.sort:null,a=r.createIndexes?r.indexes.map(E=>E.key):null,c=await o.encrypt(e.toString(),r,n);if(u!=null&&(r.find||r.findAndModify)&&(c.sort=u),a!=null&&r.createIndexes)for(let[E,p]of a.entries())c.indexes[E].key=p;let h=await super.command(e,c,n,s??Ii.MongoDBResponse),d=await o.decrypt(h.toBytes(),n),m=s?.make(d)??(0, _O.deserialize)(d,n);return o[vn.kDecorateResult]&&(s==null?(0, xt.decorateDecryptionResult)(m,h.toObject(),true):m instanceof Ii.CursorResponse&&(m.encryptedResponse=h)),m}};Qr.CryptoConnection=Sh;});var wh=c(Lt=>{g();Object.defineProperty(Lt,"__esModule",{value:true});Lt.LEGAL_TCP_SOCKET_OPTIONS=Lt.LEGAL_TLS_SOCKET_OPTIONS=void 0;Lt.connect=xO;Lt.makeConnection=I4;Lt.performInitialHandshake=v4;Lt.prepareHandshakeDocument=P4;Lt.makeSocket=Hu;var R4=a("net"),IO=a("tls"),N4=Ne(),vO=mr(),we=B(),yh=v(),PO=yn(),Gu=Fr(),F4=$u(),fo=mn();async function xO(t){let e=null;try{let r=await Hu(t);return e=I4(t,r),await v4(e,t),e}catch(r){throw e?.destroy(),r}}function I4(t,e){let r=t.connectionType??F4.Connection;return t.autoEncrypter&&(r=F4.CryptoConnection),new r(e,t)}function LO(t,e){let r=Number(t.maxWireVersion),n=Number(t.minWireVersion),s=!Number.isNaN(r)&&r>=fo.MIN_SUPPORTED_WIRE_VERSION,o=!Number.isNaN(n)&&n<=fo.MAX_SUPPORTED_WIRE_VERSION;if(s){if(o)return null;let u=`Server at ${e.hostAddress} reports minimum wire version ${JSON.stringify(t.minWireVersion)}, but this version of the Node.js Driver requires at most ${fo.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${fo.MAX_SUPPORTED_SERVER_VERSION})`;return new we.MongoCompatibilityError(u)}let i=`Server at ${e.hostAddress} reports maximum wire version ${JSON.stringify(t.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${fo.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${fo.MIN_SUPPORTED_SERVER_VERSION})`;return new we.MongoCompatibilityError(i)}async function v4(t,e){let r=e.credentials;if(r&&r.mechanism!==Gu.AuthMechanism.MONGODB_DEFAULT&&!e.authProviders.getOrCreateProvider(r.mechanism,r.mechanismProperties))throw new we.MongoInvalidArgumentError(`AuthMechanism '${r.mechanism}' not supported`);let n=new PO.AuthContext(t,r,e);t.authContext=n;let s=await P4(n),o={...e,raw:false};typeof e.connectTimeoutMS=="number"&&(o.socketTimeoutMS=e.connectTimeoutMS);let i=new Date().getTime(),u=await c(s,o);"isWritablePrimary"in u||(u.isWritablePrimary=u[N4.LEGACY_HELLO_COMMAND]),u.helloOk&&(t.helloOk=true);let a=LO(u,e);if(a)throw a;if(e.loadBalanced&&!u.serviceId)throw new we.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.");if(t.hello=u,t.lastHelloMS=new Date().getTime()-i,!u.arbiterOnly&&r){n.response=u;let h=r.resolveAuthMechanism(u),d=e.authProviders.getOrCreateProvider(h.mechanism,h.mechanismProperties);if(!d)throw new we.MongoInvalidArgumentError(`No AuthProvider for ${h.mechanism} defined.`);try{await d.auth(n);}catch(m){throw m instanceof we.MongoError&&(m.addErrorLabel(we.MongoErrorLabel.HandshakeError),(0, we.needsRetryableWriteLabel)(m,u.maxWireVersion,t.description.type)&&m.addErrorLabel(we.MongoErrorLabel.RetryableWriteError)),m}}t.established=true;async function c(h,d){try{return await t.command((0,yh.ns)("admin.$cmd"),h,d)}catch(m){throw m instanceof we.MongoError&&m.addErrorLabel(we.MongoErrorLabel.HandshakeError),m}}}async function P4(t){let e=t.options,r=e.compressors?e.compressors:[],{serverApi:n}=t.connection,s=await e.extendedMetadata,o={[n?.version||e.loadBalanced===true?"hello":N4.LEGACY_HELLO_COMMAND]:1,helloOk:true,client:s,compression:r};e.loadBalanced===true&&(o.loadBalanced=true);let i=t.credentials;if(i){if(i.mechanism===Gu.AuthMechanism.MONGODB_DEFAULT&&i.username){o.saslSupportedMechs=`${i.source}.${i.username}`;let a=t.options.authProviders.getOrCreateProvider(Gu.AuthMechanism.MONGODB_SCRAM_SHA256,i.mechanismProperties);if(!a)throw new we.MongoInvalidArgumentError(`No AuthProvider for ${Gu.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return await a.prepare(o,t)}let u=t.options.authProviders.getOrCreateProvider(i.mechanism,i.mechanismProperties);if(!u)throw new we.MongoInvalidArgumentError(`No AuthProvider for ${i.mechanism} defined.`);return await u.prepare(o,t)}return o}Lt.LEGAL_TLS_SOCKET_OPTIONS=["allowPartialTrustChain","ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];Lt.LEGAL_TCP_SOCKET_OPTIONS=["autoSelectFamily","autoSelectFamilyAttemptTimeout","keepAliveInitialDelay","family","hints","localAddress","localPort","lookup"];function Oh(t){let e=t.hostAddress;if(!e)throw new we.MongoInvalidArgumentError('Option "hostAddress" is required');let r={};for(let n of Lt.LEGAL_TCP_SOCKET_OPTIONS)t[n]!=null&&(r[n]=t[n]);if(r.keepAliveInitialDelay??=12e4,r.keepAlive=true,r.noDelay=t.noDelay??true,typeof e.socketPath=="string")return r.path=e.socketPath,r;if(typeof e.host=="string")return r.host=e.host,r.port=e.port,r;throw new we.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(e)}`)}function kO(t){let e=Oh(t);for(let r of Lt.LEGAL_TLS_SOCKET_OPTIONS)t[r]!=null&&(e[r]=t[r]);return t.existingSocket&&(e.socket=t.existingSocket),e.servername==null&&e.host&&!R4.isIP(e.host)&&(e.servername=e.host),e}async function Hu(t){let e=t.tls??false,r=t.connectTimeoutMS??3e4,n=t.existingSocket,s;if(t.proxyHost!=null)return await UO({...t,connectTimeoutMS:r});if(e){let c=IO.connect(kO(t));typeof c.disableRenegotiation=="function"&&c.disableRenegotiation(),s=c;}else n?s=n:s=R4.createConnection(Oh(t));s.setTimeout(r);let o=null,{promise:i,resolve:u,reject:a}=(0, yh.promiseWithResolvers)();if(n)u(s);else {let c=performance.now(),h=e?"secureConnect":"connect";s.once(h,()=>u(s)).once("error",d=>a(new we.MongoNetworkError(we.MongoError.buildErrorMessage(d),{cause:d}))).once("timeout",()=>{a(new we.MongoNetworkTimeoutError(`Socket '${h}' timed out after ${performance.now()-c|0}ms (connectTimeoutMS: ${r})`));}).once("close",()=>a(new we.MongoNetworkError(`Socket closed after ${performance.now()-c|0} during connection establishment`))),t.cancellationToken!=null&&(o=()=>a(new we.MongoNetworkError(`Socket connection establishment was cancelled after ${performance.now()-c|0}`)),t.cancellationToken.once("cancel",o));}try{return s=await i,s}catch(c){throw s.destroy(),c}finally{s.setTimeout(0),o!=null&&t.cancellationToken?.removeListener("cancel",o);}}var vi=null;function qO(){if(vi==null){let t=(0, vO.getSocks)();if("kModuleError"in t)throw t.kModuleError;vi=t;}return vi}async function UO(t){let e=yh.HostAddress.fromHostPort(t.proxyHost??"",t.proxyPort??1080),r=await Hu({...t,hostAddress:e,tls:false,proxyHost:void 0}),n=Oh(t);if(typeof n.host!="string"||typeof n.port!="number")throw new we.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts");vi??=qO();let s;try{s=(await vi.SocksClient.createConnection({existing_socket:r,timeout:t.connectTimeoutMS,command:"connect",destination:{host:n.host,port:n.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:t.proxyUsername||void 0,password:t.proxyPassword||void 0}})).socket;}catch(o){throw new we.MongoNetworkError(we.MongoError.buildErrorMessage(o),{cause:o})}return await Hu({...t,existingSocket:s,proxyHost:void 0})}});var Ku=c(Le=>{g();Object.defineProperty(Le,"__esModule",{value:true});Le.ServerHeartbeatFailedEvent=Le.ServerHeartbeatSucceededEvent=Le.ServerHeartbeatStartedEvent=Le.TopologyClosedEvent=Le.TopologyOpeningEvent=Le.TopologyDescriptionChangedEvent=Le.ServerClosedEvent=Le.ServerOpeningEvent=Le.ServerDescriptionChangedEvent=void 0;var Zr=Ne(),_h=class{constructor(e,r,n,s){this.name=Zr.SERVER_DESCRIPTION_CHANGED,this.topologyId=e,this.address=r,this.previousDescription=n,this.newDescription=s;}};Le.ServerDescriptionChangedEvent=_h;var Dh=class{constructor(e,r){this.name=Zr.SERVER_OPENING,this.topologyId=e,this.address=r;}};Le.ServerOpeningEvent=Dh;var Th=class{constructor(e,r){this.name=Zr.SERVER_CLOSED,this.topologyId=e,this.address=r;}};Le.ServerClosedEvent=Th;var Bh=class{constructor(e,r,n){this.name=Zr.TOPOLOGY_DESCRIPTION_CHANGED,this.topologyId=e,this.previousDescription=r,this.newDescription=n;}};Le.TopologyDescriptionChangedEvent=Bh;var bh=class{constructor(e){this.name=Zr.TOPOLOGY_OPENING,this.topologyId=e;}};Le.TopologyOpeningEvent=bh;var Mh=class{constructor(e){this.name=Zr.TOPOLOGY_CLOSED,this.topologyId=e;}};Le.TopologyClosedEvent=Mh;var Fh=class{constructor(e,r){this.name=Zr.SERVER_HEARTBEAT_STARTED,this.connectionId=e,this.awaited=r;}};Le.ServerHeartbeatStartedEvent=Fh;var Rh=class{constructor(e,r,n,s){this.name=Zr.SERVER_HEARTBEAT_SUCCEEDED,this.connectionId=e,this.duration=r,this.reply=n??{},this.awaited=s;}};Le.ServerHeartbeatSucceededEvent=Rh;var Nh=class{constructor(e,r,n,s){this.name=Zr.SERVER_HEARTBEAT_FAILED,this.connectionId=e,this.duration=r,this.failure=n,this.awaited=s;}};Le.ServerHeartbeatFailedEvent=Nh;});var $h=c(Ae=>{g();Object.defineProperty(Ae,"__esModule",{value:true});Ae.ConnectionPoolClearedEvent=Ae.ConnectionCheckedInEvent=Ae.ConnectionCheckedOutEvent=Ae.ConnectionCheckOutFailedEvent=Ae.ConnectionCheckOutStartedEvent=Ae.ConnectionClosedEvent=Ae.ConnectionReadyEvent=Ae.ConnectionCreatedEvent=Ae.ConnectionPoolClosedEvent=Ae.ConnectionPoolReadyEvent=Ae.ConnectionPoolCreatedEvent=Ae.ConnectionPoolMonitoringEvent=void 0;var Sr=Ne(),Wh=v(),Tt=class{constructor(e){this.time=new Date,this.address=e.address;}};Ae.ConnectionPoolMonitoringEvent=Tt;var Ih=class extends Tt{constructor(e){super(e),this.name=Sr.CONNECTION_POOL_CREATED;let{maxConnecting:r,maxPoolSize:n,minPoolSize:s,maxIdleTimeMS:o,waitQueueTimeoutMS:i}=e.options;this.options={maxConnecting:r,maxPoolSize:n,minPoolSize:s,maxIdleTimeMS:o,waitQueueTimeoutMS:i};}};Ae.ConnectionPoolCreatedEvent=Ih;var vh=class extends Tt{constructor(e){super(e),this.name=Sr.CONNECTION_POOL_READY;}};Ae.ConnectionPoolReadyEvent=vh;var Ph=class extends Tt{constructor(e){super(e),this.name=Sr.CONNECTION_POOL_CLOSED;}};Ae.ConnectionPoolClosedEvent=Ph;var xh=class extends Tt{constructor(e,r){super(e),this.name=Sr.CONNECTION_CREATED,this.connectionId=r.id;}};Ae.ConnectionCreatedEvent=xh;var Lh=class extends Tt{constructor(e,r,n){super(e),this.name=Sr.CONNECTION_READY,this.durationMS=(0, Wh.now)()-n,this.connectionId=r.id;}};Ae.ConnectionReadyEvent=Lh;var kh=class extends Tt{constructor(e,r,n,s){super(e),this.name=Sr.CONNECTION_CLOSED,this.connectionId=r.id,this.reason=n,this.serviceId=r.serviceId,this.error=s??null;}};Ae.ConnectionClosedEvent=kh;var qh=class extends Tt{constructor(e){super(e),this.name=Sr.CONNECTION_CHECK_OUT_STARTED;}};Ae.ConnectionCheckOutStartedEvent=qh;var Uh=class extends Tt{constructor(e,r,n,s){super(e),this.name=Sr.CONNECTION_CHECK_OUT_FAILED,this.durationMS=(0, Wh.now)()-n,this.reason=r,this.error=s;}};Ae.ConnectionCheckOutFailedEvent=Uh;var jh=class extends Tt{constructor(e,r,n){super(e),this.name=Sr.CONNECTION_CHECKED_OUT,this.durationMS=(0, Wh.now)()-n,this.connectionId=r.id;}};Ae.ConnectionCheckedOutEvent=jh;var zh=class extends Tt{constructor(e,r){super(e),this.name=Sr.CONNECTION_CHECKED_IN,this.connectionId=r.id;}};Ae.ConnectionCheckedInEvent=zh;var Vh=class extends Tt{constructor(e,r={}){super(e),this.name=Sr.CONNECTION_POOL_CLEARED,this.serviceId=r.serviceId,this.interruptInUseConnections=r.interruptInUseConnections;}};Ae.ConnectionPoolClearedEvent=Vh;});var Yh=c(Ir=>{g();Object.defineProperty(Ir,"__esModule",{value:true});Ir.WaitQueueTimeoutError=Ir.PoolClearedOnNetworkError=Ir.PoolClearedError=Ir.PoolClosedError=void 0;var Yu=B(),Gh=class extends Yu.MongoDriverError{constructor(e){super("Attempted to check out a connection from closed connection pool"),this.address=e.address;}get name(){return "MongoPoolClosedError"}};Ir.PoolClosedError=Gh;var Xu=class extends Yu.MongoNetworkError{constructor(e,r){let n=r||`Connection pool for ${e.address} was cleared because another operation failed with: "${e.serverError?.message}"`;super(n,e.serverError?{cause:e.serverError}:void 0),this.address=e.address,this.addErrorLabel(Yu.MongoErrorLabel.PoolRequstedRetry);}get name(){return "MongoPoolClearedError"}};Ir.PoolClearedError=Xu;var Hh=class extends Xu{constructor(e){super(e,`Connection to ${e.address} interrupted due to server monitor timeout`);}get name(){return "PoolClearedOnNetworkError"}};Ir.PoolClearedOnNetworkError=Hh;var Kh=class extends Yu.MongoDriverError{constructor(e,r){super(e),this.address=r;}get name(){return "MongoWaitQueueTimeoutError"}};Ir.WaitQueueTimeoutError=Kh;});var L4=c(tt=>{g();Object.defineProperty(tt,"__esModule",{value:true});tt.ConnectionPool=tt.PoolState=void 0;var mo=a("timers"),Zt=Ne(),yr=B(),x4=Pt(),jO=ke(),en=v(),zO=wh(),Ju=$u(),et=$h(),po=Yh(),VO=Y2();tt.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});var Bt=class t extends x4.TypedEventEmitter{constructor(e,r){if(super(),this.on("error",en.noop),this.options=Object.freeze({connectionType:Ju.Connection,...r,maxPoolSize:r.maxPoolSize??100,minPoolSize:r.minPoolSize??0,maxConnecting:r.maxConnecting??2,maxIdleTimeMS:r.maxIdleTimeMS??0,waitQueueTimeoutMS:r.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:r.minPoolSizeCheckFrequencyMS??100,autoEncrypter:r.autoEncrypter}),this.options.minPoolSize>this.options.maxPoolSize)throw new yr.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this.poolState=tt.PoolState.paused,this.server=e,this.connections=new en.List,this.pending=0,this.checkedOut=new Set,this.minPoolSizeTimer=void 0,this.generation=0,this.serviceGenerations=new Map,this.connectionCounter=(0, en.makeCounter)(1),this.cancellationToken=new x4.CancellationToken,this.cancellationToken.setMaxListeners(1/0),this.waitQueue=new en.List,this.metrics=new VO.ConnectionPoolMetrics,this.processingWaitQueue=false,this.mongoLogger=this.server.topology.client?.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(t.CONNECTION_POOL_CREATED,new et.ConnectionPoolCreatedEvent(this));});}get address(){return this.options.hostAddress.toString()}get closed(){return this.poolState===tt.PoolState.closed}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this.connections.length}get pendingConnectionCount(){return this.pending}get currentCheckedOutCount(){return this.checkedOut.size}get waitQueueSize(){return this.waitQueue.length}get loadBalanced(){return this.options.loadBalanced}get serverError(){return this.server.description.error}get checkedOutConnections(){return this.checkedOut}waitQueueErrorMetrics(){return this.metrics.info(this.options.maxPoolSize)}ready(){this.poolState===tt.PoolState.paused&&(this.poolState=tt.PoolState.ready,this.emitAndLog(t.CONNECTION_POOL_READY,new et.ConnectionPoolReadyEvent(this)),(0, mo.clearTimeout)(this.minPoolSizeTimer),this.ensureMinPoolSize());}async checkOut(e){let r=(0, en.now)();this.emitAndLog(t.CONNECTION_CHECK_OUT_STARTED,new et.ConnectionCheckOutStartedEvent(this));let{promise:n,resolve:s,reject:o}=(0, en.promiseWithResolvers)(),i=e.timeoutContext.connectionCheckoutTimeout,u={resolve:s,reject:o,cancelled:false,checkoutTime:r},a=(0, en.addAbortListener)(e.signal,function(){u.cancelled=true,o(this.reason);});this.waitQueue.push(u),process.nextTick(()=>this.processWaitQueue());try{return i?.throwIfExpired(),await(i?Promise.race([n,i]):n)}catch(c){if(jO.TimeoutError.is(c)){i?.clear(),u.cancelled=true,this.emitAndLog(t.CONNECTION_CHECK_OUT_FAILED,new et.ConnectionCheckOutFailedEvent(this,"timeout",u.checkoutTime));let h=new po.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address);throw e.timeoutContext.csotEnabled()?new yr.MongoOperationTimeoutError("Timed out during connection checkout",{cause:h}):h}throw c}finally{a?.[en.kDispose](),i?.clear();}}checkIn(e){if(!this.checkedOut.has(e))return;let r=this.closed,n=this.connectionIsStale(e),s=!!(r||n||e.closed);if(s||(e.markAvailable(),this.connections.unshift(e)),this.checkedOut.delete(e),this.emitAndLog(t.CONNECTION_CHECKED_IN,new et.ConnectionCheckedInEvent(this,e)),s){let o=e.closed?"error":r?"poolClosed":"stale";this.destroyConnection(e,o);}process.nextTick(()=>this.processWaitQueue());}clear(e={}){if(this.closed)return;if(this.loadBalanced){let{serviceId:o}=e;if(!o)throw new yr.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");let i=o.toHexString(),u=this.serviceGenerations.get(i);if(u==null)throw new yr.MongoRuntimeError("Service generations are required in load balancer mode.");this.serviceGenerations.set(i,u+1),this.emitAndLog(t.CONNECTION_POOL_CLEARED,new et.ConnectionPoolClearedEvent(this,{serviceId:o}));return}let r=e.interruptInUseConnections??false,n=this.generation;this.generation+=1;let s=this.poolState===tt.PoolState.paused;this.poolState=tt.PoolState.paused,this.clearMinPoolSizeTimer(),s||this.emitAndLog(t.CONNECTION_POOL_CLEARED,new et.ConnectionPoolClearedEvent(this,{interruptInUseConnections:r})),r&&process.nextTick(()=>this.interruptInUseConnections(n)),this.processWaitQueue();}interruptInUseConnections(e){for(let r of this.checkedOut)r.generation<=e&&r.onError(new po.PoolClearedOnNetworkError(this));}closeCheckedOutConnections(){for(let e of this.checkedOut)e.onError(new yr.MongoClientClosedError);}close(){if(!this.closed){this.cancellationToken.emit("cancel"),typeof this.connectionCounter.return=="function"&&this.connectionCounter.return(void 0),this.poolState=tt.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue();for(let e of this.connections)this.emitAndLog(t.CONNECTION_CLOSED,new et.ConnectionClosedEvent(this,e,"poolClosed")),e.destroy();this.connections.clear(),this.emitAndLog(t.CONNECTION_POOL_CLOSED,new et.ConnectionPoolClosedEvent(this));}}async reauthenticate(e){let r=e.authContext;if(!r)throw new yr.MongoRuntimeError("No auth context found on connection.");let n=r.credentials;if(!n)throw new yr.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate");let s=n.resolveAuthMechanism(e.hello),o=this.server.topology.client.s.authProviders.getOrCreateProvider(s.mechanism,s.mechanismProperties);if(!o)throw new yr.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${n.mechanism}`);await o.reauth(r);}clearMinPoolSizeTimer(){let e=this.minPoolSizeTimer;e&&(0, mo.clearTimeout)(e);}destroyConnection(e,r){this.emitAndLog(t.CONNECTION_CLOSED,new et.ConnectionClosedEvent(this,e,r)),e.destroy();}connectionIsStale(e){let r=e.serviceId;if(this.loadBalanced&&r){let n=r.toHexString(),s=this.serviceGenerations.get(n);return e.generation!==s}return e.generation!==this.generation}connectionIsIdle(e){return !!(this.options.maxIdleTimeMS&&e.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(e){let r=this.connectionIsStale(e),n=this.connectionIsIdle(e);if(!r&&!n&&!e.closed)return false;let s=e.closed?"error":r?"stale":"idle";return this.destroyConnection(e,s),true}createConnection(e){let r={...this.options,id:this.connectionCounter.next().value,generation:this.generation,cancellationToken:this.cancellationToken,mongoLogger:this.mongoLogger,authProviders:this.server.topology.client.s.authProviders,extendedMetadata:this.server.topology.client.options.extendedMetadata};this.pending++;let n=(0, en.now)();this.emitAndLog(t.CONNECTION_CREATED,new et.ConnectionCreatedEvent(this,{id:r.id})),(0, zO.connect)(r).then(s=>{if(this.poolState!==tt.PoolState.ready){this.pending--,s.destroy(),e(this.closed?new po.PoolClosedError(this):new po.PoolClearedError(this));return}for(let o of [...Zt.APM_EVENTS,Ju.Connection.CLUSTER_TIME_RECEIVED])s.on(o,i=>this.emit(o,i));if(this.loadBalanced){s.on(Ju.Connection.PINNED,i=>this.metrics.markPinned(i)),s.on(Ju.Connection.UNPINNED,i=>this.metrics.markUnpinned(i));let o=s.serviceId;if(o){let i,u=o.toHexString();(i=this.serviceGenerations.get(u))?s.generation=i:(this.serviceGenerations.set(u,0),s.generation=0);}}s.markAvailable(),this.emitAndLog(t.CONNECTION_READY,new et.ConnectionReadyEvent(this,s,n)),this.pending--,e(void 0,s);},s=>{this.pending--,this.server.handleError(s),this.emitAndLog(t.CONNECTION_CLOSED,new et.ConnectionClosedEvent(this,{id:r.id,serviceId:void 0},"error",s)),(s instanceof yr.MongoNetworkError||s instanceof yr.MongoServerError)&&(s.connectionGeneration=r.generation),e(s??new yr.MongoRuntimeError("Connection creation failed without error"));});}ensureMinPoolSize(){let e=this.options.minPoolSize;this.poolState===tt.PoolState.ready&&(this.connections.prune(r=>this.destroyConnectionIfPerished(r)),this.totalConnectionCount<e&&this.pendingConnectionCount<this.options.maxConnecting?this.createConnection((r,n)=>{!r&&n&&(this.connections.push(n),process.nextTick(()=>this.processWaitQueue())),this.poolState===tt.PoolState.ready&&((0, mo.clearTimeout)(this.minPoolSizeTimer),this.minPoolSizeTimer=(0, mo.setTimeout)(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS));}):((0, mo.clearTimeout)(this.minPoolSizeTimer),this.minPoolSizeTimer=(0, mo.setTimeout)(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)));}processWaitQueue(){if(this.processingWaitQueue)return;for(this.processingWaitQueue=true;this.waitQueueSize;){let n=this.waitQueue.first();if(!n){this.waitQueue.shift();continue}if(n.cancelled){this.waitQueue.shift();continue}if(this.poolState!==tt.PoolState.ready){let o=this.closed?"poolClosed":"connectionError",i=this.closed?new po.PoolClosedError(this):new po.PoolClearedError(this);this.emitAndLog(t.CONNECTION_CHECK_OUT_FAILED,new et.ConnectionCheckOutFailedEvent(this,o,n.checkoutTime,i)),this.waitQueue.shift(),n.reject(i);continue}if(!this.availableConnectionCount)break;let s=this.connections.shift();if(!s)break;this.destroyConnectionIfPerished(s)||(this.checkedOut.add(s),this.emitAndLog(t.CONNECTION_CHECKED_OUT,new et.ConnectionCheckedOutEvent(this,s,n.checkoutTime)),this.waitQueue.shift(),n.resolve(s));}let{maxPoolSize:e,maxConnecting:r}=this.options;for(;this.waitQueueSize>0&&this.pendingConnectionCount<r&&(e===0||this.totalConnectionCount<e);){let n=this.waitQueue.shift();!n||n.cancelled||this.createConnection((s,o)=>{n.cancelled?!s&&o&&this.connections.push(o):s?(this.emitAndLog(t.CONNECTION_CHECK_OUT_FAILED,new et.ConnectionCheckOutFailedEvent(this,"connectionError",n.checkoutTime,s)),n.reject(s)):o&&(this.checkedOut.add(o),this.emitAndLog(t.CONNECTION_CHECKED_OUT,new et.ConnectionCheckedOutEvent(this,o,n.checkoutTime)),n.resolve(o)),process.nextTick(()=>this.processWaitQueue());});}this.processingWaitQueue=false;}};tt.ConnectionPool=Bt;Bt.CONNECTION_POOL_CREATED=Zt.CONNECTION_POOL_CREATED;Bt.CONNECTION_POOL_CLOSED=Zt.CONNECTION_POOL_CLOSED;Bt.CONNECTION_POOL_CLEARED=Zt.CONNECTION_POOL_CLEARED;Bt.CONNECTION_POOL_READY=Zt.CONNECTION_POOL_READY;Bt.CONNECTION_CREATED=Zt.CONNECTION_CREATED;Bt.CONNECTION_READY=Zt.CONNECTION_READY;Bt.CONNECTION_CLOSED=Zt.CONNECTION_CLOSED;Bt.CONNECTION_CHECK_OUT_STARTED=Zt.CONNECTION_CHECK_OUT_STARTED;Bt.CONNECTION_CHECK_OUT_FAILED=Zt.CONNECTION_CHECK_OUT_FAILED;Bt.CONNECTION_CHECKED_OUT=Zt.CONNECTION_CHECKED_OUT;Bt.CONNECTION_CHECKED_IN=Zt.CONNECTION_CHECKED_IN;});var ed=c(Qu=>{g();Object.defineProperty(Qu,"__esModule",{value:true});Qu.Server=void 0;var WO=$u(),$O=L4(),GO=Yh(),vr=Ne(),Ce=B(),HO=Pt(),KO=ri(),Qh=J2(),ms=v(),k4=dt(),Ee=Nt(),YO=td(),Zh=Ri(),XO=Yo(),Pi=(0, ms.makeStateMachine)({[Ee.STATE_CLOSED]:[Ee.STATE_CLOSED,Ee.STATE_CONNECTING],[Ee.STATE_CONNECTING]:[Ee.STATE_CONNECTING,Ee.STATE_CLOSING,Ee.STATE_CONNECTED,Ee.STATE_CLOSED],[Ee.STATE_CONNECTED]:[Ee.STATE_CONNECTED,Ee.STATE_CLOSING,Ee.STATE_CLOSED],[Ee.STATE_CLOSING]:[Ee.STATE_CLOSING,Ee.STATE_CLOSED]}),Or=class t extends HO.TypedEventEmitter{constructor(e,r,n){super(),this.on("error",ms.noop),this.serverApi=n.serverApi;let s={hostAddress:r.hostAddress,...n};this.topology=e,this.pool=new $O.ConnectionPool(this,s),this.s={description:r,options:n,state:Ee.STATE_CLOSED,operationCount:0};for(let o of [...vr.CMAP_EVENTS,...vr.APM_EVENTS])this.pool.on(o,i=>this.emit(o,i));if(this.pool.on(WO.Connection.CLUSTER_TIME_RECEIVED,o=>{this.clusterTime=o;}),this.loadBalanced){this.monitor=null;return}this.monitor=new YO.Monitor(this,this.s.options);for(let o of vr.HEARTBEAT_EVENTS)this.monitor.on(o,i=>this.emit(o,i));this.monitor.on("resetServer",o=>Xh(this,o)),this.monitor.on(t.SERVER_HEARTBEAT_SUCCEEDED,o=>{this.emit(t.DESCRIPTION_RECEIVED,new Zh.ServerDescription(this.description.hostAddress,o.reply,{roundTripTime:this.monitor?.roundTripTime,minRoundTripTime:this.monitor?.minRoundTripTime})),this.s.state===Ee.STATE_CONNECTING&&(Pi(this,Ee.STATE_CONNECTED),this.emit(t.CONNECT,this));});}get clusterTime(){return this.topology.clusterTime}set clusterTime(e){this.topology.clusterTime=e;}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}get loadBalanced(){return this.topology.description.type===Ee.TopologyType.LoadBalanced}connect(){this.s.state===Ee.STATE_CLOSED&&(Pi(this,Ee.STATE_CONNECTING),this.loadBalanced?(Pi(this,Ee.STATE_CONNECTED),this.emit(t.CONNECT,this)):this.monitor?.connect());}closeCheckedOutConnections(){return this.pool.closeCheckedOutConnections()}close(){this.s.state!==Ee.STATE_CLOSED&&(Pi(this,Ee.STATE_CLOSING),this.loadBalanced||this.monitor?.close(),this.pool.close(),Pi(this,Ee.STATE_CLOSED),this.emit("closed"));}requestCheck(){this.loadBalanced||this.monitor?.requestCheck();}async command(e,r){if(this.s.state===Ee.STATE_CLOSING||this.s.state===Ee.STATE_CLOSED)throw new Ce.MongoServerClosedError;let n=e.session,s=n?.pinnedConnection;if(this.incrementOperationCount(),s==null)try{s=await this.pool.checkOut({timeoutContext:r,signal:e.options.signal});}catch(d){throw this.decrementOperationCount(),d instanceof GO.PoolClearedError||this.handleError(d),d}let o=null,i=()=>{if(this.decrementOperationCount(),n?.pinnedConnection!==s)if(o!=null){let d=()=>{this.pool.checkIn(s);};o.then(d,d);}else this.pool.checkIn(s);},u;try{u=e.buildCommand(s,n);}catch(d){throw i(),d}let a=e.buildOptions(r),c=e.ns;this.loadBalanced&&JO(u,n)&&!n?.pinnedConnection&&n?.pin(s),a.directConnection=this.topology.s.options.directConnection,e instanceof KO.AggregateOperation&&e.hasWriteStage&&(0, ms.maxWireVersion)(s)<XO.MIN_SECONDARY_WRITE_WIRE_VERSION&&delete a.readPreference,this.description.iscryptd&&(a.omitMaxTimeMS=true);try{try{let d=await s.command(c,u,a,e.SERVER_COMMAND_RESPONSE_TYPE);return (0,k4.throwIfWriteConcernError)(d),d}catch(d){throw this.decorateCommandError(s,u,a,d)}}catch(d){if(d instanceof Ce.MongoError&&d.code===Ce.MONGODB_ERROR_CODES.Reauthenticate){o=this.pool.reauthenticate(s),o.then(void 0,m=>{o=null,(0, ms.squashError)(m);}),await(0, ms.abortable)(o,a),o=null;try{let m=await s.command(c,u,a,e.SERVER_COMMAND_RESPONSE_TYPE);return (0,k4.throwIfWriteConcernError)(m),m}catch(m){throw this.decorateCommandError(s,u,a,m)}}else throw d}finally{i();}}handleError(e,r){if(!(e instanceof Ce.MongoError)||e.connectionGeneration&&e.connectionGeneration<this.pool.generation)return;let s=e instanceof Ce.MongoNetworkError&&!(e instanceof Ce.MongoNetworkTimeoutError),o=e instanceof Ce.MongoNetworkError&&e.beforeHandshake,i=e.hasErrorLabel(Ce.MongoErrorLabel.HandshakeError);if(s||o||i)this.loadBalanced?r&&this.pool.clear({serviceId:r.serviceId}):(e.addErrorLabel(Ce.MongoErrorLabel.ResetPool),Xh(this,e));else if((0, Ce.isSDAMUnrecoverableError)(e)&&ZO(this,e)){let u=(0, Ce.isNodeShuttingDownError)(e);this.loadBalanced&&r&&u&&this.pool.clear({serviceId:r.serviceId}),this.loadBalanced||(u&&e.addErrorLabel(Ce.MongoErrorLabel.ResetPool),Xh(this,e),process.nextTick(()=>this.requestCheck()));}}decorateCommandError(e,r,n,s){if(typeof s!="object"||s==null||!("name"in s))throw new Ce.MongoRuntimeError("An unexpected error type: "+typeof s);if(s.name==="AbortError"&&"cause"in s&&s.cause instanceof Ce.MongoError&&(s=s.cause),!(s instanceof Ce.MongoError)||QO(this.pool,e))return s;let o=n?.session;return s instanceof Ce.MongoNetworkError?(o&&!o.hasEnded&&o.serverSession&&(o.serverSession.isDirty=true),Jh(o,r)&&!s.hasErrorLabel(Ce.MongoErrorLabel.TransientTransactionError)&&s.addErrorLabel(Ce.MongoErrorLabel.TransientTransactionError),(q4(this.topology)||(0, Qh.isTransactionCommand)(r))&&(0, ms.supportsRetryableWrites)(this)&&!Jh(o,r)&&s.addErrorLabel(Ce.MongoErrorLabel.RetryableWriteError)):(q4(this.topology)||(0, Qh.isTransactionCommand)(r))&&(0, Ce.needsRetryableWriteLabel)(s,(0, ms.maxWireVersion)(this),this.description.type)&&!Jh(o,r)&&s.addErrorLabel(Ce.MongoErrorLabel.RetryableWriteError),o&&o.isPinned&&s.hasErrorLabel(Ce.MongoErrorLabel.TransientTransactionError)&&o.unpin({force:true}),this.handleError(s,e),s}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}};Qu.Server=Or;Or.SERVER_HEARTBEAT_STARTED=vr.SERVER_HEARTBEAT_STARTED;Or.SERVER_HEARTBEAT_SUCCEEDED=vr.SERVER_HEARTBEAT_SUCCEEDED;Or.SERVER_HEARTBEAT_FAILED=vr.SERVER_HEARTBEAT_FAILED;Or.CONNECT=vr.CONNECT;Or.DESCRIPTION_RECEIVED=vr.DESCRIPTION_RECEIVED;Or.CLOSED=vr.CLOSED;Or.ENDED=vr.ENDED;function Xh(t,e){t.loadBalanced||(e instanceof Ce.MongoNetworkError&&!(e instanceof Ce.MongoNetworkTimeoutError)&&t.monitor?.reset(),t.emit(Or.DESCRIPTION_RECEIVED,new Zh.ServerDescription(t.description.hostAddress,void 0,{error:e})));}function JO(t,e){return e?e.inTransaction()||e.transaction.isCommitted&&"commitTransaction"in t||"aggregate"in t||"find"in t||"getMore"in t||"listCollections"in t||"listIndexes"in t||"bulkWrite"in t:false}function QO(t,e){return e.serviceId?e.generation!==t.serviceGenerations.get(e.serviceId.toHexString()):e.generation!==t.generation}function ZO(t,e){let r=e.topologyVersion,n=t.description.topologyVersion;return (0, Zh.compareTopologyVersion)(n,r)<0}function Jh(t,e){return t&&t.inTransaction()&&!(0, Qh.isTransactionCommand)(e)}function q4(t){return t.s.options.retryWrites!==false}});var td=c(bt=>{g();Object.defineProperty(bt,"__esModule",{value:true});bt.RTTSampler=bt.MonitorInterval=bt.RTTPinger=bt.Monitor=bt.ServerMonitoringMode=void 0;var Pn=a("timers"),U4=te(),Zu=wh(),ew=Gl(),rd=Ne(),Eo=B(),tw=Cn(),j4=Pt(),rt=v(),nt=Nt(),xi=Ku(),Li=ed(),go="idle",ps="monitoring",Ao=(0, rt.makeStateMachine)({[nt.STATE_CLOSING]:[nt.STATE_CLOSING,go,nt.STATE_CLOSED],[nt.STATE_CLOSED]:[nt.STATE_CLOSED,ps],[go]:[go,ps,nt.STATE_CLOSING],[ps]:[ps,go,nt.STATE_CLOSING]}),rw=new Set([nt.STATE_CLOSING,nt.STATE_CLOSED,ps]);function ki(t){return t.s.state===nt.STATE_CLOSED||t.s.state===nt.STATE_CLOSING}bt.ServerMonitoringMode=Object.freeze({auto:"auto",poll:"poll",stream:"stream"});var nd=class extends j4.TypedEventEmitter{constructor(e,r){super(),this.component=tw.MongoLoggableComponent.TOPOLOGY,this.on("error",rt.noop),this.server=e,this.connection=null,this.cancellationToken=new j4.CancellationToken,this.cancellationToken.setMaxListeners(1/0),this.monitorId=void 0,this.s={state:nt.STATE_CLOSED},this.address=e.description.address,this.options=Object.freeze({connectTimeoutMS:r.connectTimeoutMS??1e4,heartbeatFrequencyMS:r.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:r.minHeartbeatFrequencyMS??500,serverMonitoringMode:r.serverMonitoringMode}),this.isRunningInFaasEnv=(0, ew.getFAASEnv)()!=null,this.mongoLogger=this.server.topology.client?.mongoLogger,this.rttSampler=new ta(10);let n=this.cancellationToken,s={id:"<monitor>",generation:e.pool.generation,cancellationToken:n,hostAddress:e.description.hostAddress,...r,raw:false,useBigInt64:false,promoteLongs:true,promoteValues:true,promoteBuffers:true};delete s.credentials,s.autoEncrypter&&delete s.autoEncrypter,this.connectOptions=Object.freeze(s);}connect(){if(this.s.state!==nt.STATE_CLOSED)return;let e=this.options.heartbeatFrequencyMS,r=this.options.minHeartbeatFrequencyMS;this.monitorId=new qi(V4(this),{heartbeatFrequencyMS:e,minHeartbeatFrequencyMS:r,immediate:true});}requestCheck(){rw.has(this.s.state)||this.monitorId?.wake();}reset(){let e=this.server.description.topologyVersion;if(ki(this)||e==null)return;Ao(this,nt.STATE_CLOSING),z4(this),Ao(this,go);let r=this.options.heartbeatFrequencyMS,n=this.options.minHeartbeatFrequencyMS;this.monitorId=new qi(V4(this),{heartbeatFrequencyMS:r,minHeartbeatFrequencyMS:n});}close(){ki(this)||(Ao(this,nt.STATE_CLOSING),z4(this),this.emit("close"),Ao(this,nt.STATE_CLOSED));}get roundTripTime(){return this.rttSampler.average()}get minRoundTripTime(){return this.rttSampler.min()}get latestRtt(){return this.rttSampler.last}addRttSample(e){this.rttSampler.addSample(e);}clearRttSamples(){this.rttSampler.clear();}};bt.Monitor=nd;function z4(t){t.monitorId?.stop(),t.monitorId=void 0,t.rttPinger?.close(),t.rttPinger=void 0,t.cancellationToken.emit("cancel"),t.connection?.destroy(),t.connection=null,t.clearRttSamples();}function sd(t,e){if(e==null)return false;let r=t.options.serverMonitoringMode;return r===bt.ServerMonitoringMode.poll?false:r===bt.ServerMonitoringMode.stream?true:!t.isRunningInFaasEnv}function nw(t,e){let r,n,s=t.server.description.topologyVersion,o=sd(t,s);t.emitAndLogHeartbeat(Li.Server.SERVER_HEARTBEAT_STARTED,t.server.topology.s.id,void 0,new xi.ServerHeartbeatStartedEvent(t.address,o));function i(c){t.connection?.destroy(),t.connection=null,t.emitAndLogHeartbeat(Li.Server.SERVER_HEARTBEAT_FAILED,t.server.topology.s.id,void 0,new xi.ServerHeartbeatFailedEvent(t.address,(0, rt.calculateDurationInMs)(r),c,n));let h=c instanceof Eo.MongoError?c:new Eo.MongoError(Eo.MongoError.buildErrorMessage(c),{cause:c});h.addErrorLabel(Eo.MongoErrorLabel.ResetPool),h instanceof Eo.MongoNetworkTimeoutError&&h.addErrorLabel(Eo.MongoErrorLabel.InterruptInUseConnections),t.emit("resetServer",h),e(c);}function u(c){"isWritablePrimary"in c||(c.isWritablePrimary=c[rd.LEGACY_HELLO_COMMAND]);let h=o&&t.rttPinger?t.rttPinger.latestRtt??(0, rt.calculateDurationInMs)(r):(0, rt.calculateDurationInMs)(r);t.addRttSample(h),t.emitAndLogHeartbeat(Li.Server.SERVER_HEARTBEAT_SUCCEEDED,t.server.topology.s.id,c.connectionId,new xi.ServerHeartbeatSucceededEvent(t.address,h,c,o)),o?(t.emitAndLogHeartbeat(Li.Server.SERVER_HEARTBEAT_STARTED,t.server.topology.s.id,void 0,new xi.ServerHeartbeatStartedEvent(t.address,true)),r=(0, rt.now)()):(t.rttPinger?.close(),t.rttPinger=void 0,e(void 0,c));}let{connection:a}=t;if(a&&!a.closed){let{serverApi:c,helloOk:h}=a,d=t.options.connectTimeoutMS,m=t.options.heartbeatFrequencyMS,E={[c?.version||h?"hello":rd.LEGACY_HELLO_COMMAND]:1,...o&&s?{maxAwaitTimeMS:m,topologyVersion:sw(s)}:{}},p=o?{socketTimeoutMS:d?d+m:0,exhaustAllowed:true}:{socketTimeoutMS:d};if(o&&t.rttPinger==null&&(t.rttPinger=new ea(t)),r=(0, rt.now)(),o)return n=true,a.exhaustCommand((0, rt.ns)("admin.$cmd"),E,p,(_,b)=>_?i(_):u(b));n=false,a.command((0, rt.ns)("admin.$cmd"),E,p).then(u,i);return}(async()=>{let c=await(0, Zu.makeSocket)(t.connectOptions),h=(0, Zu.makeConnection)(t.connectOptions,c);r=(0, rt.now)();try{return await(0,Zu.performInitialHandshake)(h,t.connectOptions),h}catch(d){throw h.destroy(),d}})().then(c=>{if(ki(t)){c.destroy();return}let h=(0, rt.calculateDurationInMs)(r);t.addRttSample(h),t.connection=c,t.emitAndLogHeartbeat(Li.Server.SERVER_HEARTBEAT_SUCCEEDED,t.server.topology.s.id,c.hello?.connectionId,new xi.ServerHeartbeatSucceededEvent(t.address,h,c.hello,sd(t,c.hello?.topologyVersion))),e(void 0,c.hello);},c=>{t.connection=null,n=false,i(c);});}function V4(t){return e=>{if(t.s.state===ps){process.nextTick(e);return}Ao(t,ps);function r(){ki(t)||Ao(t,go),e();}nw(t,(n,s)=>{if(n&&t.server.description.type===nt.ServerType.Unknown)return r();sd(t,s?.topologyVersion)&&(0, Pn.setTimeout)(()=>{ki(t)||t.monitorId?.wake();},0),r();});}}function sw(t){return {processId:t.processId,counter:U4.Long.isLong(t.counter)?t.counter:U4.Long.fromNumber(t.counter)}}var ea=class{constructor(e){this.connection=void 0,this.cancellationToken=e.cancellationToken,this.closed=false,this.monitor=e,this.latestRtt=e.latestRtt??void 0;let r=e.options.heartbeatFrequencyMS;this.monitorId=(0, Pn.setTimeout)(()=>this.measureRoundTripTime(),r);}get roundTripTime(){return this.monitor.roundTripTime}get minRoundTripTime(){return this.monitor.minRoundTripTime}close(){this.closed=true,(0, Pn.clearTimeout)(this.monitorId),this.connection?.destroy(),this.connection=void 0;}measureAndReschedule(e,r){if(this.closed){r?.destroy();return}this.connection==null&&(this.connection=r),this.latestRtt=(0, rt.calculateDurationInMs)(e),this.monitorId=(0, Pn.setTimeout)(()=>this.measureRoundTripTime(),this.monitor.options.heartbeatFrequencyMS);}measureRoundTripTime(){let e=(0, rt.now)();if(this.closed)return;let r=this.connection;if(r==null){(0, Zu.connect)(this.monitor.connectOptions).then(s=>{this.measureAndReschedule(e,s);},()=>{this.connection=void 0;});return}let n=r.serverApi?.version||r.helloOk?"hello":rd.LEGACY_HELLO_COMMAND;r.command((0, rt.ns)("admin.$cmd"),{[n]:1},void 0).then(()=>this.measureAndReschedule(e),()=>{this.connection?.destroy(),this.connection=void 0;});}};bt.RTTPinger=ea;var qi=class{constructor(e,r={}){this.isExpeditedCallToFnScheduled=false,this.stopped=false,this.isExecutionInProgress=false,this.hasExecutedOnce=false,this._executeAndReschedule=()=>{this.stopped||(this.timerId&&(0, Pn.clearTimeout)(this.timerId),this.isExpeditedCallToFnScheduled=false,this.isExecutionInProgress=true,this.fn(()=>{this.lastExecutionEnded=(0, rt.now)(),this.isExecutionInProgress=false,this._reschedule(this.heartbeatFrequencyMS);}));},this.fn=e,this.lastExecutionEnded=-1/0,this.heartbeatFrequencyMS=r.heartbeatFrequencyMS??1e3,this.minHeartbeatFrequencyMS=r.minHeartbeatFrequencyMS??500,r.immediate?this._executeAndReschedule():this._reschedule(void 0);}wake(){let r=(0, rt.now)()-this.lastExecutionEnded;if(r<0)return this._executeAndReschedule();if(!this.isExecutionInProgress&&!this.isExpeditedCallToFnScheduled){if(r<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=true,this._reschedule(this.minHeartbeatFrequencyMS-r);return}this._executeAndReschedule();}}stop(){this.stopped=true,this.timerId&&((0, Pn.clearTimeout)(this.timerId),this.timerId=void 0),this.lastExecutionEnded=-1/0,this.isExpeditedCallToFnScheduled=false;}toString(){return JSON.stringify(this)}toJSON(){let e=(0, rt.now)(),r=e-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:e,timeSinceLastCall:r}}_reschedule(e){this.stopped||(this.timerId&&(0, Pn.clearTimeout)(this.timerId),this.timerId=(0, Pn.setTimeout)(this._executeAndReschedule,e||this.heartbeatFrequencyMS));}};bt.MonitorInterval=qi;var ta=class{constructor(e=10){this.rttSamples=new Float64Array(e),this.length=0,this.writeIndex=0;}addSample(e){this.rttSamples[this.writeIndex++]=e,this.length<this.rttSamples.length&&this.length++,this.writeIndex%=this.rttSamples.length;}min(){if(this.length<2)return 0;let e=this.rttSamples[0];for(let r=1;r<this.length;r++)this.rttSamples[r]<e&&(e=this.rttSamples[r]);return e}average(){if(this.length===0)return 0;let e=0;for(let r=0;r<this.length;r++)e+=this.rttSamples[r];return e/this.length}get last(){return this.length===0?null:this.rttSamples[this.writeIndex===0?this.length-1:this.writeIndex-1]}clear(){this.length=0,this.writeIndex=0;}};bt.RTTSampler=ta;});var hd=c(kt=>{g();Object.defineProperty(kt,"__esModule",{value:true});kt.DEFAULT_OPTIONS=kt.OPTIONS=void 0;kt.resolveSRVRecord=fw;kt.parseOptions=pw;var od=a("dns"),ow=p2(),iw=a("url"),Co=nu(),Pr=Fr(),W4=Si(),$4=i4(),x=B(),ra=Nn(),ad=Cn(),id=ar(),xn=We(),uw=td(),ct=v(),tn=dt(),ud=["authSource","replicaSet","loadBalanced"],aw="loadBalanced option only supported with a single host in the URI",cw="loadBalanced option not supported with a replicaSet option",lw="loadBalanced option not supported when directConnection is provided";function K4(t){return async function(r){try{return await od.promises[t](r)}catch(n){if(n.code===od.TIMEOUT)return await od.promises[t](r);throw n}}}var hw=K4("resolveSrv"),dw=K4("resolveTxt");async function fw(t){if(typeof t.srvHost!="string")throw new x.MongoAPIError('Option "srvHost" must not be empty');let e=t.srvHost,r=dw(e);r.then(void 0,ct.squashError);let n=`_${t.srvServiceName}._tcp.${e}`,s=await hw(n);if(s.length===0)throw new x.MongoAPIError("No addresses found at host");for(let{name:m}of s)(0, ct.checkParentDomainMatch)(m,e);let o=s.map(m=>ct.HostAddress.fromString(`${m.name}:${m.port??27017}`));cd(o,t,true);let i;try{i=await r;}catch(m){if(m.code!=="ENODATA"&&m.code!=="ENOTFOUND")throw m;return o}if(i.length>1)throw new x.MongoParseError("Multiple text records not allowed");let u=new iw.URLSearchParams(i[0].join(""));if([...u.keys()].some(m=>!ud.includes(m)))throw new x.MongoParseError(`Text record may only set any of: ${ud.join(", ")}`);if(ud.some(m=>u.get(m)===""))throw new x.MongoParseError("Cannot have empty URI params in DNS TXT Record");let c=u.get("authSource")??void 0,h=u.get("replicaSet")??void 0,d=u.get("loadBalanced")??void 0;if(!t.userSpecifiedAuthSource&&c&&t.credentials&&!Pr.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(t.credentials.mechanism)&&(t.credentials=Co.MongoCredentials.merge(t.credentials,{source:c})),!t.userSpecifiedReplicaSet&&h&&(t.replicaSet=h),d==="true"&&(t.loadBalanced=true),t.replicaSet&&t.srvMaxHosts>0)throw new x.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return cd(o,t,true),o}function mw(t){if(!t)return;let e=(r,n)=>{if(t.has(r)&&t.has(n))throw new x.MongoAPIError(`The '${r}' option cannot be used with the '${n}' option`)};e("tlsInsecure","tlsAllowInvalidCertificates"),e("tlsInsecure","tlsAllowInvalidHostnames");}function rn(t,e){if(typeof e=="boolean")return e;switch(e){case "true":return true;case "false":return false;default:throw new x.MongoParseError(`${t} must be either "true" or "false"`)}}function ld(t,e){let r=(0, ct.parseInteger)(e);if(r!=null)return r;throw new x.MongoParseError(`Expected ${t} to be stringified int value, got: ${e}`)}function Ui(t,e){let r=ld(t,e);if(r<0)throw new x.MongoParseError(`${t} can only be a positive int value, got: ${e}`);return r}function*G4(t){if(t==="")return;let e=t.split(",");for(let r of e){let[n,s]=r.split(/:(.*)/);if(s==null)throw new x.MongoParseError("Cannot have undefined values in key value pairs");yield [n,s];}}var So=class extends Map{constructor(e=[]){super(e.map(([r,n])=>[r.toLowerCase(),n]));}has(e){return super.has(e.toLowerCase())}get(e){return super.get(e.toLowerCase())}set(e,r){return super.set(e.toLowerCase(),r)}delete(e){return super.delete(e.toLowerCase())}};function pw(t,e=void 0,r={}){if(e!=null&&!(e instanceof ra.MongoClient)&&(r=e,e=void 0),r.useBigInt64&&typeof r.promoteLongs=="boolean"&&!r.promoteLongs)throw new x.MongoAPIError("Must request either bigint or Long for int64 deserialization");if(r.useBigInt64&&typeof r.promoteValues=="boolean"&&!r.promoteValues)throw new x.MongoAPIError("Must request either bigint or Long for int64 deserialization");let n=new ow.default(t),{hosts:s,isSRV:o}=n,i=Object.create(null);i.hosts=o?[]:s.map(ct.HostAddress.fromString);let u=new So;if(n.pathname!=="/"&&n.pathname!==""){let p=decodeURIComponent(n.pathname[0]==="/"?n.pathname.slice(1):n.pathname);p&&u.set("dbName",[p]);}if(n.username!==""){let p={username:decodeURIComponent(n.username)};typeof n.password=="string"&&(p.password=decodeURIComponent(n.password)),u.set("auth",[p]);}for(let p of n.searchParams.keys()){let _=n.searchParams.getAll(p),b=/readPreferenceTags/i.test(p);if(!b&&_.length>1)throw new x.MongoInvalidArgumentError(`URI option "${p}" cannot appear more than once in the connection string`);if(!b&&_.includes(""))throw new x.MongoAPIError(`URI option "${p}" cannot be specified with no value`);u.has(p)||u.set(p,_);}let a=new So(Object.entries(r).filter(([,p])=>p!=null));if(u.has("serverApi"))throw new x.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");let c=u.get("authMechanismProperties");if(c){for(let p of c)if(/(^|,)ALLOWED_HOSTS:/.test(p))throw new x.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(a.has("loadBalanced"))throw new x.MongoParseError("loadBalanced is only a valid option in the URI");let h=new So,d=new Set([...u.keys(),...a.keys()]);for(let p of d){let _=[],b=a.get(p);b!=null&&_.push(b);let j=u.get(p)??[];_.push(...j),h.set(p,_);}if(h.has("tls")||h.has("ssl")){let p=(h.get("tls")||[]).concat(h.get("ssl")||[]).map(rn.bind(null,"tls/ssl"));if(new Set(p).size!==1)throw new x.MongoParseError("All values of tls/ssl must be the same.")}mw(h);let m=(0, ct.setDifference)(d,Array.from(Object.keys(kt.OPTIONS)).map(p=>p.toLowerCase()));if(m.size!==0){let p=m.size>1?"options":"option",_=m.size>1?"are":"is";throw new x.MongoParseError(`${p} ${Array.from(m).join(", ")} ${_} not supported`)}for(let[p,_]of Object.entries(kt.OPTIONS)){let b=h.get(p);if(!b||b.length===0)kt.DEFAULT_OPTIONS.has(p)&&H4(i,p,_,[kt.DEFAULT_OPTIONS.get(p)]);else {let{deprecated:j}=_;if(j){let P=typeof j=="string"?`: ${j}`:"";(0, ct.emitWarning)(`${p} is a deprecated option${P}`);}H4(i,p,_,b);}}if(i.credentials){let p=i.credentials.mechanism===Pr.AuthMechanism.MONGODB_GSSAPI,_=i.credentials.mechanism===Pr.AuthMechanism.MONGODB_X509,b=i.credentials.mechanism===Pr.AuthMechanism.MONGODB_AWS,j=i.credentials.mechanism===Pr.AuthMechanism.MONGODB_OIDC;if((p||_)&&h.has("authSource")&&i.credentials.source!=="$external")throw new x.MongoParseError(`authMechanism ${i.credentials.mechanism} requires an authSource of '$external'`);if(!(p||_||b||j)&&i.dbName&&!h.has("authSource")&&(i.credentials=Co.MongoCredentials.merge(i.credentials,{source:i.dbName})),b&&i.credentials.username&&!i.credentials.password)throw new x.MongoMissingCredentialsError(`When using ${i.credentials.mechanism} password must be set when a username is specified`);i.credentials.validate(),i.credentials.password===""&&i.credentials.username===""&&i.credentials.mechanism===Pr.AuthMechanism.MONGODB_DEFAULT&&Object.keys(i.credentials.mechanismProperties).length===0&&delete i.credentials;}if(i.dbName||(i.dbName="test"),cd(s,i,o),e&&i.autoEncryption&&($4.Encrypter.checkForMongoCrypt(),i.encrypter=new $4.Encrypter(e,t,r),i.autoEncrypter=i.encrypter.autoEncrypter),i.userSpecifiedAuthSource=a.has("authSource")||u.has("authSource"),i.userSpecifiedReplicaSet=a.has("replicaSet")||u.has("replicaSet"),o){if(i.srvHost=s[0],i.directConnection)throw new x.MongoAPIError("SRV URI does not support directConnection");if(i.srvMaxHosts>0&&typeof i.replicaSet=="string")throw new x.MongoParseError("Cannot use srvMaxHosts option with replicaSet");let p=!a.has("tls")&&!u.has("tls"),_=!a.has("ssl")&&!u.has("ssl");p&&_&&(i.tls=true);}else if(u.has("srvMaxHosts")||a.has("srvMaxHosts")||u.has("srvServiceName")||a.has("srvServiceName"))throw new x.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(i.directConnection&&i.hosts.length!==1)throw new x.MongoParseError("directConnection option requires exactly one host");if(!i.proxyHost&&(i.proxyPort||i.proxyUsername||i.proxyPassword))throw new x.MongoParseError("Must specify proxyHost if other proxy options are passed");if(i.proxyUsername&&!i.proxyPassword||!i.proxyUsername&&i.proxyPassword)throw new x.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map(p=>u.get(p)??[]).some(p=>p.length>1))throw new x.MongoParseError("Proxy options cannot be specified multiple times in the connection string");return i.mongoLoggerOptions=ad.MongoLogger.resolveOptions({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},{mongodbLogPath:i.mongodbLogPath,mongodbLogComponentSeverities:i.mongodbLogComponentSeverities,mongodbLogMaxDocumentLength:i.mongodbLogMaxDocumentLength}),i}function cd(t,e,r){if(e.loadBalanced){if(t.length>1)throw new x.MongoParseError(aw);if(e.replicaSet)throw new x.MongoParseError(cw);if(e.directConnection)throw new x.MongoParseError(lw);if(r&&e.srvMaxHosts>0)throw new x.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}}function H4(t,e,r,n){let{target:s,type:o,transform:i}=r,u=s??e;switch(o){case "boolean":t[u]=rn(u,n[0]);break;case "int":t[u]=ld(u,n[0]);break;case "uint":t[u]=Ui(u,n[0]);break;case "string":if(n[0]==null)break;t[u]=String(n[0]);break;case "record":if(!(0, ct.isRecord)(n[0]))throw new x.MongoParseError(`${u} must be an object`);t[u]=n[0];break;case "any":t[u]=n[0];break;default:{if(!i)throw new x.MongoParseError("Descriptors missing a type must define a transform");let a=i({name:u,options:t,values:n});t[u]=a;break}}}kt.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:t,options:e,values:[r]}){if(!(0, ct.isRecord)(r,["username","password"]))throw new x.MongoParseError(`${t} must be an object with 'username' and 'password' properties`);return Co.MongoCredentials.merge(e.credentials,{username:r.username,password:r.password})}},authMechanism:{target:"credentials",transform({options:t,values:[e]}){let r=Object.values(Pr.AuthMechanism),[n]=r.filter(i=>i.match(RegExp(String.raw`\b${e}\b`,"i")));if(!n)throw new x.MongoParseError(`authMechanism one of ${r}, got ${e}`);let s=t.credentials?.source;(n===Pr.AuthMechanism.MONGODB_PLAIN||Pr.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(n))&&(s="$external");let o=t.credentials?.password;return n===Pr.AuthMechanism.MONGODB_X509&&o===""&&(o=void 0),Co.MongoCredentials.merge(t.credentials,{mechanism:n,source:s,password:o})}},authMechanismProperties:{target:"credentials",transform({options:t,values:e}){let r=Object.create(null);for(let n of e)if(typeof n=="string")for(let[s,o]of G4(n))try{r[s]=rn(s,o);}catch{r[s]=o;}else {if(!(0, ct.isRecord)(n))throw new x.MongoParseError("AuthMechanismProperties must be an object");r={...n};}return Co.MongoCredentials.merge(t.credentials,{mechanismProperties:r})}},authSource:{target:"credentials",transform({options:t,values:[e]}){let r=String(e);return Co.MongoCredentials.merge(t.credentials,{source:r})}},autoEncryption:{type:"record"},autoSelectFamily:{type:"boolean",default:true},autoSelectFamilyAttemptTimeout:{type:"uint"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[t]}){let e=typeof t=="string"?{version:t}:t,r=e&&e.version;if(!r)throw new x.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(ra.ServerApiVersion).join('", "')}"]`);if(!Object.values(ra.ServerApiVersion).some(n=>n===r))throw new x.MongoParseError(`Invalid server API version=${r}; must be in the following enum: ["${Object.values(ra.ServerApiVersion).join('", "')}"]`);return e}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:t}){let e=new Set;for(let r of t){let n=typeof r=="string"?r.split(","):r;if(!Array.isArray(n))throw new x.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let s of n)if(Object.keys(W4.Compressor).includes(String(s)))e.add(String(s));else throw new x.MongoInvalidArgumentError(`${s} is not a valid compression mechanism. Must be one of: ${Object.keys(W4.Compressor)}.`)}return [...e]}},connectTimeoutMS:{default:3e4,type:"uint"},dbName:{type:"string"},directConnection:{default:false,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:true},family:{transform({name:t,values:[e]}){let r=ld(t,e);if(r===4||r===6)return r;throw new x.MongoParseError(`Option 'family' must be 4 or 6 got ${r}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:false,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:t,options:e,values:[r]}){let n=tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,fsync:rn(t,r)}});if(!n)throw new x.MongoParseError(`Unable to make a writeConcern from fsync=${r}`);return n}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:t,options:e,values:[r]}){let n=tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,journal:rn(t,r)}});if(!n)throw new x.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},journal:{target:"writeConcern",transform({name:t,options:e,values:[r]}){let n=tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,journal:rn(t,r)}});if(!n)throw new x.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},loadBalanced:{default:false,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:t,values:[e]}){let r=Ui(t,e);if(r===0)throw new x.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return r}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:t,options:e,values:[r]}){let n=Ui(t,r);return e.readPreference?xn.ReadPreference.fromOptions({readPreference:{...e.readPreference,maxStalenessSeconds:n}}):new xn.ReadPreference("secondary",void 0,{maxStalenessSeconds:n})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:false,type:"boolean"},name:{target:"driverInfo",transform({values:[t],options:e}){return {...e.driverInfo,name:String(t)}}},noDelay:{default:true,type:"boolean"},pkFactory:{default:ct.DEFAULT_PK_FACTORY,transform({values:[t]}){if((0, ct.isRecord)(t,["createPk"])&&typeof t.createPk=="function")return t;throw new x.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${t}`)}},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:false,type:"boolean"},readConcern:{transform({values:[t],options:e}){if(t instanceof id.ReadConcern||(0, ct.isRecord)(t,["level"]))return id.ReadConcern.fromOptions({...e.readConcern,...t});throw new x.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(t)}`)}},readConcernLevel:{target:"readConcern",transform({values:[t],options:e}){return id.ReadConcern.fromOptions({...e.readConcern,level:t})}},readPreference:{default:xn.ReadPreference.primary,transform({values:[t],options:e}){if(t instanceof xn.ReadPreference)return xn.ReadPreference.fromOptions({readPreference:{...e.readPreference,...t},...t});if((0, ct.isRecord)(t,["mode"])){let r=xn.ReadPreference.fromOptions({readPreference:{...e.readPreference,...t},...t});if(r)return r;throw new x.MongoParseError(`Cannot make read preference from ${JSON.stringify(t)}`)}if(typeof t=="string"){let r={hedge:e.readPreference?.hedge,maxStalenessSeconds:e.readPreference?.maxStalenessSeconds};return new xn.ReadPreference(t,e.readPreference?.tags,r)}throw new x.MongoParseError(`Unknown ReadPreference value: ${t}`)}},readPreferenceTags:{target:"readPreference",transform({values:t,options:e}){let r=Array.isArray(t[0])?t[0]:t,n=[];for(let s of r){let o=Object.create(null);if(typeof s=="string")for(let[i,u]of G4(s))o[i]=u;if((0, ct.isRecord)(s))for(let[i,u]of Object.entries(s))o[i]=u;n.push(o);}return xn.ReadPreference.fromOptions({readPreference:e.readPreference,readPreferenceTags:n})}},replicaSet:{type:"string"},retryReads:{default:true,type:"boolean"},retryWrites:{default:true,type:"boolean"},serializeFunctions:{type:"boolean"},serverMonitoringMode:{default:"auto",transform({values:[t]}){if(!Object.values(uw.ServerMonitoringMode).includes(t))throw new x.MongoParseError("serverMonitoringMode must be one of `auto`, `poll`, or `stream`");return t}},serverSelectionTimeoutMS:{default:3e4,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"},timeoutMS:{type:"uint"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:t,values:[e]}){return !rn(t,e)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:t,values:[e]}){return rn(t,e)?()=>{}:void 0}},tlsCAFile:{type:"string"},tlsCRLFile:{type:"string"},tlsCertificateKeyFile:{type:"string"},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:t,options:e,values:[r]}){let n=rn(t,r);return n?(e.checkServerIdentity=()=>{},e.rejectUnauthorized=false):(e.checkServerIdentity=e.tlsAllowInvalidHostnames?()=>{}:void 0,e.rejectUnauthorized=!e.tlsAllowInvalidCertificates),n}},w:{target:"writeConcern",transform({values:[t],options:e}){return tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,w:t}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[t],options:e}){if((0, ct.isRecord)(t)||t instanceof tn.WriteConcern)return tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,...t}});if(t==="majority"||typeof t=="number")return tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,w:t}});throw new x.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(t)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[t],options:e}){let r=tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,wtimeout:Ui("wtimeout",t)}});if(r)return r;throw new x.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[t],options:e}){let r=tn.WriteConcern.fromOptions({writeConcern:{...e.writeConcern,wtimeoutMS:Ui("wtimeoutMS",t)}});if(r)return r;throw new x.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},mongodbLogPath:{transform({values:[t]}){if(!(typeof t=="string"&&["stderr","stdout"].includes(t)||t&&typeof t=="object"&&"write"in t&&typeof t.write=="function"))throw new x.MongoAPIError("Option 'mongodbLogPath' must be of type 'stderr' | 'stdout' | MongoDBLogWritable");return t}},mongodbLogComponentSeverities:{transform({values:[t]}){if(typeof t!="object"||!t)throw new x.MongoAPIError("Option 'mongodbLogComponentSeverities' must be a non-null object");for(let[e,r]of Object.entries(t)){if(typeof r!="string"||typeof e!="string")throw new x.MongoAPIError("User input for option 'mongodbLogComponentSeverities' object cannot include a non-string key or value");if(!Object.values(ad.MongoLoggableComponent).some(n=>n===e)&&e!=="default")throw new x.MongoAPIError(`User input for option 'mongodbLogComponentSeverities' contains invalid key: ${e}`);if(!Object.values(ad.SeverityLevel).some(n=>n===r))throw new x.MongoAPIError(`Option 'mongodbLogComponentSeverities' does not support ${r} as a value for ${e}`)}return t}},mongodbLogMaxDocumentLength:{type:"uint"},connectionType:{type:"any"},srvPoller:{type:"any"},allowPartialTrustChain:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},keepAliveInitialDelay:{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"},__skipPingOnConnect:{type:"boolean"}};kt.DEFAULT_OPTIONS=new So(Object.entries(kt.OPTIONS).filter(([,t])=>t.default!=null).map(([t,e])=>[t,e.default]));});var Y4=c(sa=>{g();Object.defineProperty(sa,"__esModule",{value:true});sa.ListCollectionsOperation=void 0;var dd=ae(),Ew=v(),gw=Be(),ji=he(),na=class extends gw.CommandOperation{constructor(e,r,n){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=dd.CursorResponse,this.options={...n},delete this.options.writeConcern,this.db=e,this.filter=r,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize=="number"&&(this.batchSize=this.options.batchSize),this.SERVER_COMMAND_RESPONSE_TYPE=this.explain?dd.ExplainedCursorResponse:dd.CursorResponse;}get commandName(){return "listCollections"}buildCommandDocument(e){let r={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};return (0, Ew.maxWireVersion)(e)>=9&&this.options.comment!==void 0&&(r.comment=this.options.comment),r}handleOk(e){return e}};sa.ListCollectionsOperation=na;(0, ji.defineAspects)(na,[ji.Aspect.READ_OPERATION,ji.Aspect.RETRYABLE,ji.Aspect.CURSOR_CREATING,ji.Aspect.SUPPORTS_RAW_DATA]);});var md=c(oa=>{g();Object.defineProperty(oa,"__esModule",{value:true});oa.ListCollectionsCursor=void 0;var Aw=$e(),Cw=Y4(),Sw=Qe(),fd=class t extends Sw.AbstractCursor{constructor(e,r,n){super(e.client,e.s.namespace,n),this.parent=e,this.filter=r,this.options=n;}clone(){return new t(this.parent,this.filter,{...this.options,...this.cursorOptions})}async _initialize(e){let r=new Cw.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:e,signal:this.signal}),n=await(0, Aw.executeOperation)(this.parent.client,r,this.timeoutContext);return {server:r.server,session:e,response:n}}};oa.ListCollectionsCursor=fd;});var J4=c(ia=>{g();Object.defineProperty(ia,"__esModule",{value:true});ia.RunCommandCursor=void 0;var yo=B(),X4=$e(),yw=Ll(),Ow=ni(),ww=v(),_w=Qe(),pd=class extends _w.AbstractCursor{setComment(e){return this.getMoreOptions.comment=e,this}setMaxTimeMS(e){return this.getMoreOptions.maxAwaitTimeMS=e,this}setBatchSize(e){return this.getMoreOptions.batchSize=e,this}clone(){throw new yo.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(e){throw new yo.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(e,r){throw new yo.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(e){throw new yo.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(e){throw new yo.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(e,r,n={}){super(e.client,(0, ww.ns)(e.namespace),n),this.getMoreOptions={},this.db=e,this.command=Object.freeze({...r});}async _initialize(e){let r=new Ow.RunCursorCommandOperation(this.db.s.namespace,this.command,{...this.cursorOptions,session:e,readPreference:this.cursorOptions.readPreference}),n=await(0, X4.executeOperation)(this.client,r,this.timeoutContext);return {server:r.server,session:e,response:n}}async getMore(e){if(!this.session)throw new yo.MongoRuntimeError("Unexpected null session. A cursor creating command should have set this");let r=new yw.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});return await(0, X4.executeOperation)(this.client,r,this.timeoutContext)}};ia.RunCommandCursor=pd;});var zi=c(Ln=>{g();Object.defineProperty(Ln,"__esModule",{value:true});Ln.ListIndexesOperation=Ln.DropIndexOperation=Ln.CreateIndexesOperation=void 0;var Ed=ae(),Dw=B(),gd=v(),Ad=Be(),wr=he(),Tw=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);function Bw(t){return typeof t=="number"||t==="2d"||t==="2dsphere"||t==="text"||t==="geoHaystack"}function bw(t){return Array.isArray(t)&&t.length===2&&Bw(t[1])}function Mw(t){let e=new Map,r=!Array.isArray(t)||bw(t)?[t]:t;for(let n of r)if(typeof n=="string")e.set(n,1);else if(Array.isArray(n))e.set(n[0],n[1]??1);else if(n instanceof Map)for(let[s,o]of n)e.set(s,o);else if((0, gd.isObject)(n))for(let[s,o]of Object.entries(n))e.set(s,o);return e}function Fw(t){let e=Object.entries(t).filter(([r])=>Tw.has(r));return Object.fromEntries(e.map(([r,n])=>r==="version"?["v",n]:[r,n]))}var ua=class t extends Ad.CommandOperation{constructor(e,r,n,s){super(e,s),this.SERVER_COMMAND_RESPONSE_TYPE=Ed.MongoDBResponse,this.options=s??{},this.options.collation=void 0,this.collectionName=r,this.indexes=n.map(o=>{let i=o.key instanceof Map?o.key:new Map(Object.entries(o.key)),u=o.name??Array.from(i).flat().join("_");return {...Fw(o),name:u,key:i}}),this.ns=e.s.namespace;}static fromIndexDescriptionArray(e,r,n,s){return new t(e,r,n,s)}static fromIndexSpecification(e,r,n,s={}){let o=Mw(n),i={...s,key:o};return new t(e,r,[i],s)}get commandName(){return "createIndexes"}buildCommandDocument(e){let r=this.options,n=this.indexes,s=(0, gd.maxWireVersion)(e),o={createIndexes:this.collectionName,indexes:n};if(r.commitQuorum!=null){if(s<9)throw new Dw.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4");o.commitQuorum=r.commitQuorum;}return o}handleOk(e){return this.indexes.map(n=>n.name||"")}};Ln.CreateIndexesOperation=ua;var aa=class extends Ad.CommandOperation{constructor(e,r,n){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=Ed.MongoDBResponse,this.options=n??{},this.collection=e,this.indexName=r,this.ns=e.fullNamespace;}get commandName(){return "dropIndexes"}buildCommandDocument(e){return {dropIndexes:this.collection.collectionName,index:this.indexName}}};Ln.DropIndexOperation=aa;var ca=class extends Ad.CommandOperation{constructor(e,r){super(e,r),this.SERVER_COMMAND_RESPONSE_TYPE=Ed.CursorResponse,this.options={...r},delete this.options.writeConcern,this.collectionNamespace=e.s.namespace;}get commandName(){return "listIndexes"}buildCommandDocument(e){let r=(0, gd.maxWireVersion)(e),n=this.options.batchSize?{batchSize:this.options.batchSize}:{},s={listIndexes:this.collectionNamespace.collection,cursor:n};return r>=9&&this.options.comment!==void 0&&(s.comment=this.options.comment),s}handleOk(e){return e}};Ln.ListIndexesOperation=ca;(0, wr.defineAspects)(ca,[wr.Aspect.READ_OPERATION,wr.Aspect.RETRYABLE,wr.Aspect.CURSOR_CREATING,wr.Aspect.SUPPORTS_RAW_DATA]);(0, wr.defineAspects)(ua,[wr.Aspect.WRITE_OPERATION,wr.Aspect.SUPPORTS_RAW_DATA]);(0, wr.defineAspects)(aa,[wr.Aspect.WRITE_OPERATION,wr.Aspect.SUPPORTS_RAW_DATA]);});var eE=c(Vi=>{g();Object.defineProperty(Vi,"__esModule",{value:true});Vi.CreateCollectionOperation=void 0;Vi.createCollections=Uw;var Q4=mn(),Rw=ae(),Nw=wo(),Iw=B(),vw=ke(),Pw=v(),xw=Be(),Cd=$e(),Lw=zi(),Z4=he(),kw=new Set(["w","wtimeout","timeoutMS","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),qw="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.",Oo=class extends xw.CommandOperation{constructor(e,r,n={}){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=Rw.MongoDBResponse,this.options=n,this.db=e,this.name=r;}get commandName(){return "create"}buildCommandDocument(e,r){let n=([s,o])=>o!=null&&typeof o!="function"&&!kw.has(s);return {create:this.name,...Object.fromEntries(Object.entries(this.options).filter(n))}}handleOk(e){return new Nw.Collection(this.db,this.name,this.options)}};Vi.CreateCollectionOperation=Oo;async function Uw(t,e,r){let n=vw.TimeoutContext.create({session:r.session,serverSelectionTimeoutMS:t.client.s.options.serverSelectionTimeoutMS,waitQueueTimeoutMS:t.client.s.options.waitQueueTimeoutMS,timeoutMS:r.timeoutMS}),s=r.encryptedFields??t.client.s.options.autoEncryption?.encryptedFieldsMap?.[`${t.databaseName}.${e}`];if(s){class i extends Oo{buildCommandDocument(h,d){if(!h.description.loadBalanced&&(0, Pw.maxWireVersion)(h)<Q4.MIN_SUPPORTED_QE_WIRE_VERSION)throw new Iw.MongoCompatibilityError(`${qw} The minimum server version required is ${Q4.MIN_SUPPORTED_QE_SERVER_VERSION}`);return super.buildCommandDocument(h,d)}}let u=s.escCollection??`enxcol_.${e}.esc`,a=s.ecocCollection??`enxcol_.${e}.ecoc`;for(let c of [u,a]){let h=new i(t,c,{clusteredIndex:{key:{_id:1},unique:true},session:r.session});await(0, Cd.executeOperation)(t.client,h,n);}r.encryptedFields||(r={...r,encryptedFields:s});}let o=await(0, Cd.executeOperation)(t.client,new Oo(t,e,r),n);if(s){let i=Lw.CreateIndexesOperation.fromIndexSpecification(t,e,{__safeContent__:1},{session:r.session});await(0, Cd.executeOperation)(t.client,i,n);}return o}(0, Z4.defineAspects)(Oo,[Z4.Aspect.WRITE_OPERATION]);});var sE=c(Es=>{g();Object.defineProperty(Es,"__esModule",{value:true});Es.DropDatabaseOperation=Es.DropCollectionOperation=void 0;Es.dropCollections=$w;var jw=Sd(),rE=ae(),zw=Qe(),Vw=B(),Ww=ke(),nE=Be(),tE=$e(),la=he(),_o=class extends nE.CommandOperation{constructor(e,r,n={}){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=rE.MongoDBResponse,this.options=n,this.name=r;}get commandName(){return "drop"}buildCommandDocument(e,r){return {drop:this.name}}handleOk(e){return true}};Es.DropCollectionOperation=_o;async function $w(t,e,r){let n=Ww.TimeoutContext.create({session:r.session,serverSelectionTimeoutMS:t.client.s.options.serverSelectionTimeoutMS,waitQueueTimeoutMS:t.client.s.options.waitQueueTimeoutMS,timeoutMS:r.timeoutMS}),s=t.client.s.options.autoEncryption?.encryptedFieldsMap,o=r.encryptedFields??s?.[`${t.databaseName}.${e}`];if(!o&&s&&(o=(await t.listCollections({name:e},{nameOnly:false,session:r.session,timeoutContext:new zw.CursorTimeoutContext(n,Symbol())}).toArray())?.[0]?.options?.encryptedFields),o){let i=o.escCollection||`enxcol_.${e}.esc`,u=o.ecocCollection||`enxcol_.${e}.ecoc`;for(let a of [i,u]){let c=new _o(t,a,r);try{await(0,tE.executeOperation)(t.client,c,n);}catch(h){if(!(h instanceof jw.MongoServerError)||h.code!==Vw.MONGODB_ERROR_CODES.NamespaceNotFound)throw h}}}return await(0, tE.executeOperation)(t.client,new _o(t,e,r),n)}var ha=class extends nE.CommandOperation{constructor(e,r){super(e,r),this.SERVER_COMMAND_RESPONSE_TYPE=rE.MongoDBResponse,this.options=r;}get commandName(){return "dropDatabase"}buildCommandDocument(e,r){return {dropDatabase:1}}handleOk(e){return true}};Es.DropDatabaseOperation=ha;(0, la.defineAspects)(_o,[la.Aspect.WRITE_OPERATION]);(0, la.defineAspects)(ha,[la.Aspect.WRITE_OPERATION]);});var iE=c(da=>{g();Object.defineProperty(da,"__esModule",{value:true});da.ProfilingLevelOperation=void 0;var Gw=te(),Hw=ae(),oE=B(),Kw=Be(),yd=class extends Hw.MongoDBResponse{get was(){return this.get("was",Gw.BSONType.int,true)}},Od=class extends Kw.CommandOperation{constructor(e,r){super(e,r),this.SERVER_COMMAND_RESPONSE_TYPE=yd,this.options=r;}get commandName(){return "profile"}buildCommandDocument(e){return {profile:-1}}handleOk(e){if(e.ok===1){let r=e.was;if(r===0)return "off";if(r===1)return "slow_only";if(r===2)return "all";throw new oE.MongoUnexpectedServerResponseError(`Illegal profiling level value ${r}`)}else throw new oE.MongoUnexpectedServerResponseError("Error with profile command")}};da.ProfilingLevelOperation=Od;});var wd=c(ma=>{g();Object.defineProperty(ma,"__esModule",{value:true});ma.RenameOperation=void 0;var Yw=ae(),Xw=wo(),Jw=v(),Qw=Be(),uE=he(),fa=class extends Qw.CommandOperation{constructor(e,r,n){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=Yw.MongoDBResponse,this.collection=e,this.newName=r,this.options=n,this.ns=new Jw.MongoDBNamespace("admin","$cmd");}get commandName(){return "renameCollection"}buildCommandDocument(e,r){let n=this.collection.namespace,s=this.collection.s.namespace.withCollection(this.newName).toString(),o=typeof this.options.dropTarget=="boolean"?this.options.dropTarget:false;return {renameCollection:n,to:s,dropTarget:o}}handleOk(e){return new Xw.Collection(this.collection.db,this.newName,this.collection.s.options)}};ma.RenameOperation=fa;(0, uE.defineAspects)(fa,[uE.Aspect.WRITE_OPERATION]);});var Dd=c(xr=>{g();Object.defineProperty(xr,"__esModule",{value:true});xr.SetProfilingLevelOperation=xr.ProfilingLevel=void 0;var Zw=ae(),e_=B(),t_=v(),r_=Be(),n_=new Set(["off","slow_only","all"]);xr.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});var _d=class extends r_.CommandOperation{constructor(e,r,n){switch(super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=Zw.MongoDBResponse,this.options=n,r){case xr.ProfilingLevel.off:this.profile=0;break;case xr.ProfilingLevel.slowOnly:this.profile=1;break;case xr.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=r;}get commandName(){return "profile"}buildCommandDocument(e){let r=this.level;if(!n_.has(r))throw new e_.MongoInvalidArgumentError(`Profiling level must be one of "${(0, t_.enumToString)(xr.ProfilingLevel)}"`);return {profile:this.profile}}handleOk(e){return this.level}};xr.SetProfilingLevelOperation=_d;});var cE=c(Ea=>{g();Object.defineProperty(Ea,"__esModule",{value:true});Ea.DbStatsOperation=void 0;var s_=ae(),o_=Be(),aE=he(),pa=class extends o_.CommandOperation{constructor(e,r){super(e,r),this.SERVER_COMMAND_RESPONSE_TYPE=s_.MongoDBResponse,this.options=r;}get commandName(){return "dbStats"}buildCommandDocument(e){let r={dbStats:true};return this.options.scale!=null&&(r.scale=this.options.scale),r}};Ea.DbStatsOperation=pa;(0, aE.defineAspects)(pa,[aE.Aspect.READ_OPERATION]);});var Aa=c(ga=>{g();Object.defineProperty(ga,"__esModule",{value:true});ga.Db=void 0;var i_=pl(),lE=te(),u_=gs(),hE=wo(),Do=Ne(),a_=Wi(),c_=md(),l_=J4(),dE=B(),h_=eE(),fE=sE(),kn=$e(),d_=zi(),f_=iE(),m_=ll(),p_=wd(),E_=ni(),g_=Dd(),A_=cE(),C_=ar(),mE=We(),Ge=v(),S_=dt(),y_=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites","timeoutMS"],nn=class{constructor(e,r,n){if(n=n??{},n=(0, Ge.filterOptions)(n,y_),typeof r=="string"&&r.includes("."))throw new dE.MongoInvalidArgumentError("Database names cannot contain the character '.'");this.s={options:n,readPreference:mE.ReadPreference.fromOptions(n),bsonOptions:(0, lE.resolveBSONOptions)(n,e),pkFactory:n?.pkFactory??Ge.DEFAULT_PK_FACTORY,readConcern:C_.ReadConcern.fromOptions(n),writeConcern:S_.WriteConcern.fromOptions(n),namespace:new Ge.MongoDBNamespace(r)},this.client=e;}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||false}get readConcern(){return this.s.readConcern}get readPreference(){return this.s.readPreference==null?this.client.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}get timeoutMS(){return this.s.options?.timeoutMS}async createCollection(e,r){return r=(0, Ge.resolveOptions)(this,r),await(0, h_.createCollections)(this,e,r)}async command(e,r){return await(0, kn.executeOperation)(this.client,new E_.RunCommandOperation(this.s.namespace,e,(0, Ge.resolveOptions)(void 0,{...(0, lE.resolveBSONOptions)(r),timeoutMS:r?.timeoutMS??this.timeoutMS,session:r?.session,readPreference:r?.readPreference,signal:r?.signal})))}aggregate(e=[],r){return new a_.AggregationCursor(this.client,this.s.namespace,e,(0, Ge.resolveOptions)(this,r))}admin(){return new i_.Admin(this)}collection(e,r={}){if(typeof r=="function")throw new dE.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new hE.Collection(this,e,(0, Ge.resolveOptions)(this,r))}async stats(e){return await(0, kn.executeOperation)(this.client,new A_.DbStatsOperation(this,(0, Ge.resolveOptions)(this,e)))}listCollections(e={},r={}){return new c_.ListCollectionsCursor(this,e,(0, Ge.resolveOptions)(this,r))}async renameCollection(e,r,n){return await(0, kn.executeOperation)(this.client,new p_.RenameOperation(this.collection(e),r,(0, Ge.resolveOptions)(void 0,{...n,new_collection:true,readPreference:mE.ReadPreference.primary})))}async dropCollection(e,r){return r=(0, Ge.resolveOptions)(this,r),await(0, fE.dropCollections)(this,e,r)}async dropDatabase(e){return await(0, kn.executeOperation)(this.client,new fE.DropDatabaseOperation(this,(0, Ge.resolveOptions)(this,e)))}async collections(e){return e=(0, Ge.resolveOptions)(this,e),(await this.listCollections({},{...e,nameOnly:true}).toArray()).filter(({name:n})=>!n.includes("$")).map(({name:n})=>new hE.Collection(this,n,this.s.options))}async createIndex(e,r,n){return (await(0, kn.executeOperation)(this.client,d_.CreateIndexesOperation.fromIndexSpecification(this,e,r,n)))[0]}async removeUser(e,r){return await(0, kn.executeOperation)(this.client,new m_.RemoveUserOperation(this,e,(0, Ge.resolveOptions)(this,r)))}async setProfilingLevel(e,r){return await(0, kn.executeOperation)(this.client,new g_.SetProfilingLevelOperation(this,e,(0, Ge.resolveOptions)(this,r)))}async profilingLevel(e){return await(0, kn.executeOperation)(this.client,new f_.ProfilingLevelOperation(this,(0, Ge.resolveOptions)(this,e)))}async indexInformation(e,r){return await this.collection(e).indexInformation((0, Ge.resolveOptions)(this,r))}watch(e=[],r={}){return Array.isArray(e)||(r=e,e=[]),new u_.ChangeStream(this,e,(0, Ge.resolveOptions)(this,r))}runCursorCommand(e,r){return new l_.RunCommandCursor(this,e,r)}};ga.Db=nn;nn.SYSTEM_NAMESPACE_COLLECTION=Do.SYSTEM_NAMESPACE_COLLECTION;nn.SYSTEM_INDEX_COLLECTION=Do.SYSTEM_INDEX_COLLECTION;nn.SYSTEM_PROFILE_COLLECTION=Do.SYSTEM_PROFILE_COLLECTION;nn.SYSTEM_USER_COLLECTION=Do.SYSTEM_USER_COLLECTION;nn.SYSTEM_COMMAND_COLLECTION=Do.SYSTEM_COMMAND_COLLECTION;nn.SYSTEM_JS_COLLECTION=Do.SYSTEM_JS_COLLECTION;});var pE=c(Ca=>{g();Object.defineProperty(Ca,"__esModule",{value:true});Ca.MongoDBAWS=void 0;var Td=te(),Bd=mr(),Bo=B(),To=v(),O_=yn(),bd=x2(),w_=nu(),__=Fr(),D_=110,Md={useBigInt64:false,promoteLongs:true,promoteValues:true,promoteBuffers:false,bsonRegExp:false},Fd=class extends O_.AuthProvider{constructor(e){super(),this.credentialProvider=e,this.credentialFetcher=bd.AWSTemporaryCredentialProvider.isAWSSDKInstalled?new bd.AWSSDKCredentialProvider(e):new bd.LegacyAWSTemporaryCredentialProvider;}async auth(e){let{connection:r}=e;if(!e.credentials)throw new Bo.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in Bd.aws4)throw Bd.aws4.kModuleError;let{sign:n}=Bd.aws4;if((0, To.maxWireVersion)(r)<9)throw new Bo.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");e.credentials.username||(e.credentials=await T_(e.credentials,this.credentialFetcher));let{credentials:s}=e,o=s.username,i=s.password,u=s.mechanismProperties.AWS_SESSION_TOKEN,a=o&&i&&u?{accessKeyId:o,secretAccessKey:i,sessionToken:u}:o&&i?{accessKeyId:o,secretAccessKey:i}:void 0,c=s.source,h=await(0, To.randomBytes)(32),d={saslStart:1,mechanism:"MONGODB-AWS",payload:Td.serialize({r:h,p:D_},Md)},m=await r.command((0, To.ns)(`${c}.$cmd`),d,void 0),E=Td.deserialize(m.payload.buffer,Md),p=E.h,_=E.s.buffer;if(_.length!==64)throw new Bo.MongoRuntimeError(`Invalid server nonce length ${_.length}, expected 64`);if(!To.ByteUtils.equals(_.subarray(0,h.byteLength),h))throw new Bo.MongoRuntimeError("Server nonce does not begin with client nonce");if(p.length<1||p.length>255||p.indexOf("..")!==-1)throw new Bo.MongoRuntimeError(`Server returned an invalid host: "${p}"`);let b="Action=GetCallerIdentity&Version=2011-06-15",j=n({method:"POST",host:p,region:B_(E.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":b.length,"X-MongoDB-Server-Nonce":To.ByteUtils.toBase64(_),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:b},a),P={a:j.headers.Authorization,d:j.headers["X-Amz-Date"]};u&&(P.t=u);let De={saslContinue:1,conversationId:m.conversationId,payload:Td.serialize(P,Md)};await r.command((0, To.ns)(`${c}.$cmd`),De,void 0);}};Ca.MongoDBAWS=Fd;async function T_(t,e){function r(s){if(!s.AccessKeyId||!s.SecretAccessKey)throw new Bo.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new w_.MongoCredentials({username:s.AccessKeyId,password:s.SecretAccessKey,source:t.source,mechanism:__.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:s.Token}})}let n=await e.getCredentials();return r(n)}function B_(t){let e=t.split(".");return e.length===1||e[1]==="amazonaws"?"us-east-1":e[1]}});var gE=c(Sa=>{g();Object.defineProperty(Sa,"__esModule",{value:true});Sa.finishCommandDocument=b_;Sa.startCommandDocument=M_;var bo=te(),EE=Fr();function b_(t,e){return e!=null?{saslContinue:1,conversationId:e,payload:new bo.Binary(bo.BSON.serialize({jwt:t}))}:{saslStart:1,mechanism:EE.AuthMechanism.MONGODB_OIDC,payload:new bo.Binary(bo.BSON.serialize({jwt:t}))}}function M_(t){let e={};return t.username&&(e.n=t.username),{saslStart:1,autoAuthorize:1,mechanism:EE.AuthMechanism.MONGODB_OIDC,payload:new bo.Binary(bo.BSON.serialize(e))}}});var vd=c(qn=>{g();Object.defineProperty(qn,"__esModule",{value:true});qn.CallbackWorkflow=qn.AUTOMATED_TIMEOUT_MS=qn.HUMAN_TIMEOUT_MS=void 0;var F_=a("timers/promises"),R_=B(),AE=v(),Rd=gE();qn.HUMAN_TIMEOUT_MS=3e5;qn.AUTOMATED_TIMEOUT_MS=6e4;var N_=["accessToken","expiresInSeconds","refreshToken"],I_="User provided OIDC callbacks must return a valid object with an accessToken.",Nd=100,Id=class{constructor(e,r){this.cache=e,this.callback=this.withLock(r),this.lastExecutionTime=Date.now()-Nd;}async speculativeAuth(e,r){if(this.cache.hasAccessToken){let n=this.cache.getAccessToken();e.accessToken=n;let s=(0, Rd.finishCommandDocument)(n);return s.db=r.source,{speculativeAuthenticate:s}}return {}}async reauthenticate(e,r){this.cache.hasAccessToken&&(e.accessToken===this.cache.getAccessToken()?(this.cache.removeAccessToken(),delete e.accessToken):e.accessToken=this.cache.getAccessToken()),await this.execute(e,r);}async startAuthentication(e,r,n){let s;return n?.speculativeAuthenticate?s=n.speculativeAuthenticate:s=await e.command((0, AE.ns)(r.source),(0, Rd.startCommandDocument)(r),void 0),s}async finishAuthentication(e,r,n,s){await e.command((0, AE.ns)(r.source),(0, Rd.finishCommandDocument)(n,s),void 0);}async executeAndValidateCallback(e){let r=await this.callback(e);if(v_(r))throw new R_.MongoMissingCredentialsError(I_);return r}withLock(e){let r=Promise.resolve();return async n=>(await r,r=r.catch(()=>null).then(async()=>{let s=Date.now()-this.lastExecutionTime;return s<=Nd&&await(0, F_.setTimeout)(Nd-s,{signal:n.timeoutContext}),this.lastExecutionTime=Date.now(),await e(n)}),await r)}};qn.CallbackWorkflow=Id;function v_(t){return t==null||typeof t!="object"||!("accessToken"in t)?true:!Object.getOwnPropertyNames(t).every(e=>N_.includes(e))}});var kd=c(ya=>{g();Object.defineProperty(ya,"__esModule",{value:true});ya.AutomatedCallbackWorkflow=void 0;var Pd=B(),CE=ke(),P_=Oa(),xd=vd(),Ld=class extends xd.CallbackWorkflow{constructor(e,r){super(e,r);}async execute(e,r){if(this.cache.hasAccessToken){let s=this.cache.getAccessToken();e.accessToken||(e.accessToken=s);try{return await this.finishAuthentication(e,r,s)}catch(o){if(o instanceof Pd.MongoError&&o.code===Pd.MONGODB_ERROR_CODES.AuthenticationFailed)return this.cache.removeAccessToken(),await this.execute(e,r);throw o}}let n=await this.fetchAccessToken(r);this.cache.put(n),e.accessToken=n.accessToken,await this.finishAuthentication(e,r,n.accessToken);}async fetchAccessToken(e){let r=new AbortController,n={timeoutContext:r.signal,version:P_.OIDC_VERSION};e.username&&(n.username=e.username),e.mechanismProperties.TOKEN_RESOURCE&&(n.tokenAudience=e.mechanismProperties.TOKEN_RESOURCE);let s=CE.Timeout.expires(xd.AUTOMATED_TIMEOUT_MS);try{return await Promise.race([this.executeAndValidateCallback(n),s])}catch(o){throw CE.TimeoutError.is(o)?(r.abort(),new Pd.MongoOIDCError(`OIDC callback timed out after ${xd.AUTOMATED_TIMEOUT_MS}ms.`)):o}finally{s.clear();}}};ya.AutomatedCallbackWorkflow=Ld;});var yE=c(wa=>{g();Object.defineProperty(wa,"__esModule",{value:true});wa.callback=void 0;var SE=k2(),qd=B(),x_=v(),L_=Object.freeze({Metadata:"true",Accept:"application/json"}),k_="Azure endpoint did not return a value with only access_token and expires_in properties",q_="TOKEN_RESOURCE must be set in the auth mechanism properties when ENVIRONMENT is azure.",U_=async t=>{let e=t.tokenAudience,r=t.username;if(!e)throw new qd.MongoAzureError(q_);let n=await j_(e,r);if(!z_(n))throw new qd.MongoAzureError(k_);return n};wa.callback=U_;async function j_(t,e){let r=new URL(SE.AZURE_BASE_URL);(0, SE.addAzureParams)(r,t,e);let n=await(0, x_.get)(r,{headers:L_});if(n.status!==200)throw new qd.MongoAzureError(`Status code ${n.status} returned from the Azure endpoint. Response body: ${n.body}`);let s=JSON.parse(n.body);return {accessToken:s.access_token,expiresInSeconds:Number(s.expires_in)}}function z_(t){return t==null||typeof t!="object"?false:"accessToken"in t&&typeof t.accessToken=="string"&&"expiresInSeconds"in t&&typeof t.expiresInSeconds=="number"}});var wE=c(_a=>{g();Object.defineProperty(_a,"__esModule",{value:true});_a.callback=void 0;var OE=B(),V_=v(),W_="http://metadata/computeMetadata/v1/instance/service-accounts/default/identity",$_=Object.freeze({"Metadata-Flavor":"Google"}),G_="TOKEN_RESOURCE must be set in the auth mechanism properties when ENVIRONMENT is gcp.",H_=async t=>{let e=t.tokenAudience;if(!e)throw new OE.MongoGCPError(G_);return await K_(e)};_a.callback=H_;async function K_(t){let e=new URL(W_);e.searchParams.append("audience",t);let r=await(0, V_.get)(e,{headers:$_});if(r.status!==200)throw new OE.MongoGCPError(`Status code ${r.status} returned from the GCP endpoint. Response body: ${r.body}`);return {accessToken:r.body}}});var TE=c(Da=>{g();Object.defineProperty(Da,"__esModule",{value:true});Da.callback=void 0;var Y_=a("fs/promises"),X_="/var/run/secrets/kubernetes.io/serviceaccount/token",_E="AZURE_FEDERATED_TOKEN_FILE",DE="AWS_WEB_IDENTITY_TOKEN_FILE",J_=async()=>{let t;return process.env[_E]?t=process.env[_E]:process.env[DE]?t=process.env[DE]:t=X_,{accessToken:await(0, Y_.readFile)(t,"utf8")}};Da.callback=J_;});var jd=c(Ta=>{g();Object.defineProperty(Ta,"__esModule",{value:true});Ta.TokenCache=void 0;var Q_=B(),$i=class extends Q_.MongoDriverError{},Ud=class{get hasAccessToken(){return !!this.accessToken}get hasRefreshToken(){return !!this.refreshToken}get hasIdpInfo(){return !!this.idpInfo}getAccessToken(){if(!this.accessToken)throw new $i("Attempted to get an access token when none exists.");return this.accessToken}getRefreshToken(){if(!this.refreshToken)throw new $i("Attempted to get a refresh token when none exists.");return this.refreshToken}getIdpInfo(){if(!this.idpInfo)throw new $i("Attempted to get IDP information when none exists.");return this.idpInfo}put(e,r){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expiresInSeconds=e.expiresInSeconds,r&&(this.idpInfo=r);}removeAccessToken(){this.accessToken=void 0;}removeRefreshToken(){this.refreshToken=void 0;}};Ta.TokenCache=Ud;});var BE=c(Ba=>{g();Object.defineProperty(Ba,"__esModule",{value:true});Ba.callback=void 0;var Z_=a("fs"),eD=B(),tD="OIDC_TOKEN_FILE must be set in the environment.",rD=async()=>{let t=process.env.OIDC_TOKEN_FILE;if(!t)throw new eD.MongoAWSError(tD);return {accessToken:await Z_.promises.readFile(t,"utf8")}};Ba.callback=rD;});var Oa=c(er=>{g();Object.defineProperty(er,"__esModule",{value:true});er.MongoDBOIDC=er.OIDC_WORKFLOWS=er.OIDC_VERSION=void 0;var ME=B(),nD=yn(),ba=kd(),sD=yE(),oD=wE(),iD=TE(),Ma=jd(),uD=BE(),aD="AuthContext must provide credentials.";er.OIDC_VERSION=1;er.OIDC_WORKFLOWS=new Map;er.OIDC_WORKFLOWS.set("test",()=>new ba.AutomatedCallbackWorkflow(new Ma.TokenCache,uD.callback));er.OIDC_WORKFLOWS.set("azure",()=>new ba.AutomatedCallbackWorkflow(new Ma.TokenCache,sD.callback));er.OIDC_WORKFLOWS.set("gcp",()=>new ba.AutomatedCallbackWorkflow(new Ma.TokenCache,oD.callback));er.OIDC_WORKFLOWS.set("k8s",()=>new ba.AutomatedCallbackWorkflow(new Ma.TokenCache,iD.callback));var zd=class extends nD.AuthProvider{constructor(e){if(super(),!e)throw new ME.MongoInvalidArgumentError("No workflow provided to the OIDC auth provider.");this.workflow=e;}async auth(e){let{connection:r,reauthenticating:n,response:s}=e;if(s?.speculativeAuthenticate?.done&&!n)return;let o=bE(e);n?await this.workflow.reauthenticate(r,o):await this.workflow.execute(r,o,s);}async prepare(e,r){let{connection:n}=r,s=bE(r),o=await this.workflow.speculativeAuth(n,s);return {...e,...o}}};er.MongoDBOIDC=zd;function bE(t){let{credentials:e}=t;if(!e)throw new ME.MongoMissingCredentialsError(aD);return e}});var RE=c(Fa=>{g();Object.defineProperty(Fa,"__esModule",{value:true});Fa.HumanCallbackWorkflow=void 0;var cD=te(),Gi=B(),FE=ke(),lD=Oa(),Vd=vd(),Wd=class extends Vd.CallbackWorkflow{constructor(e,r){super(e,r);}async execute(e,r){if(this.cache.hasAccessToken){let u=this.cache.getAccessToken();e.accessToken=u;try{return await this.finishAuthentication(e,r,u)}catch(a){if(a instanceof Gi.MongoError&&a.code===Gi.MONGODB_ERROR_CODES.AuthenticationFailed)return this.cache.removeAccessToken(),delete e.accessToken,await this.execute(e,r);throw a}}if(this.cache.hasRefreshToken){let u=this.cache.getRefreshToken(),a=await this.fetchAccessToken(this.cache.getIdpInfo(),r,u);this.cache.put(a),e.accessToken=a.accessToken;try{return await this.finishAuthentication(e,r,a.accessToken)}catch(c){if(c instanceof Gi.MongoError&&c.code===Gi.MONGODB_ERROR_CODES.AuthenticationFailed)return this.cache.removeRefreshToken(),delete e.accessToken,await this.execute(e,r);throw c}}let n=await this.startAuthentication(e,r),s=n.conversationId,o=cD.BSON.deserialize(n.payload.buffer),i=await this.fetchAccessToken(o,r);return this.cache.put(i,o),e.accessToken=i.accessToken,await this.finishAuthentication(e,r,i.accessToken,s)}async fetchAccessToken(e,r,n){let s=new AbortController,o={timeoutContext:s.signal,version:lD.OIDC_VERSION,idpInfo:e};r.username&&(o.username=r.username),n&&(o.refreshToken=n);let i=FE.Timeout.expires(Vd.HUMAN_TIMEOUT_MS);try{return await Promise.race([this.executeAndValidateCallback(o),i])}catch(u){throw FE.TimeoutError.is(u)?(s.abort(),new Gi.MongoOIDCError(`OIDC callback timed out after ${Vd.HUMAN_TIMEOUT_MS}ms.`)):u}finally{i.clear();}}};Fa.HumanCallbackWorkflow=Wd;});var NE=c(Ra=>{g();Object.defineProperty(Ra,"__esModule",{value:true});Ra.Plain=void 0;var hD=te(),dD=B(),fD=v(),mD=yn(),$d=class extends mD.AuthProvider{async auth(e){let{connection:r,credentials:n}=e;if(!n)throw new dD.MongoMissingCredentialsError("AuthContext must provide credentials.");let{username:s,password:o}=n,u={saslStart:1,mechanism:"PLAIN",payload:new hD.Binary(Buffer.from(`\0${s}\0${o}`)),autoAuthorize:1};await r.command((0, fD.ns)("$external.$cmd"),u,void 0);}};Ra.Plain=$d;});var xE=c((MI,PE)=>{g();var IE=t=>t.codePointAt(0),pD=t=>t[0],ED=t=>t[t.length-1];function vE(t){let e=[],r=t.length;for(let n=0;n<r;n+=1){let s=t.charCodeAt(n);if(s>=55296&&s<=56319&&r>n+1){let o=t.charCodeAt(n+1);if(o>=56320&&o<=57343){e.push((s-55296)*1024+o-56320+65536),n+=1;continue}}e.push(s);}return e}function Hi({unassigned_code_points:t,commonly_mapped_to_nothing:e,non_ASCII_space_characters:r,prohibited_characters:n,bidirectional_r_al:s,bidirectional_l:o},i,u={}){let a=r,c=e;if(typeof i!="string")throw new TypeError("Expected string.");if(i.length===0)return "";let h=vE(i).map(P=>a.get(P)?32:P).filter(P=>!c.get(P)),d=String.fromCodePoint.apply(null,h).normalize("NFKC"),m=vE(d);if(m.some(P=>n.get(P)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(u.allowUnassigned!==true&&m.some(De=>t.get(De)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");let p=m.some(P=>s.get(P)),_=m.some(P=>o.get(P));if(p&&_)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");let b=s.get(IE(pD(d))),j=s.get(IE(ED(d)));if(p&&!(b&&j))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 d}Hi.saslprep=Hi;Hi.default=Hi;PE.exports=Hi;});var qE=c((RI,kE)=>{g();kE.exports=sn;function sn(t,e){if(!(this instanceof sn))return new sn(t,e);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=t||1024,this.deduplicate=e?e.deduplicate:null,this.zeros=this.deduplicate?Na(this.deduplicate.length):null;}sn.prototype.updated=function(t){for(;this.deduplicate&&t.buffer[t.deduplicate]===this.deduplicate[t.deduplicate];)if(t.deduplicate++,t.deduplicate===this.deduplicate.length){t.deduplicate=0,t.buffer.equals&&t.buffer.equals(this.deduplicate)&&(t.buffer=this.deduplicate);break}t.updated||!this.updates||(t.updated=true,this.updates.push(t));};sn.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var t=this.updates.pop();return t.updated=false,t};sn.prototype._array=function(t,e){if(t>=this.maxPages){if(e)return;gD(this,t);}SD(t,this.path);for(var r=this.pages,n=this.level;n>0;n--){var s=this.path[n],o=r[s];if(!o){if(e)return;o=r[s]=new Array(32768);}r=o;}return r};sn.prototype.get=function(t,e){var r=this._array(t,e),n=this.path[0],s=r&&r[n];return !s&&!e&&(s=r[n]=new LE(t,Na(this.pageSize)),t>=this.length&&(this.length=t+1)),s&&s.buffer===this.deduplicate&&this.deduplicate&&!e&&(s.buffer=CD(s.buffer),s.deduplicate=0),s};sn.prototype.set=function(t,e){var r=this._array(t,false),n=this.path[0];if(t>=this.length&&(this.length=t+1),!e||this.zeros&&e.equals&&e.equals(this.zeros)){r[n]=void 0;return}this.deduplicate&&e.equals&&e.equals(this.deduplicate)&&(e=this.deduplicate);var s=r[n],o=AD(e,this.pageSize);s?s.buffer=o:r[n]=new LE(t,o);};sn.prototype.toBuffer=function(){for(var t=new Array(this.length),e=Na(this.pageSize),r=0;r<t.length;)for(var n=this._array(r,true),s=0;s<32768&&r<t.length;s++)t[r++]=n&&n[s]?n[s].buffer:e;return Buffer.concat(t)};function gD(t,e){for(;t.maxPages<e;){var r=t.pages;t.pages=new Array(32768),t.pages[0]=r,t.level++,t.maxPages*=32768;}}function AD(t,e){if(t.length===e)return t;if(t.length>e)return t.slice(0,e);var r=Na(e);return t.copy(r),r}function Na(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e}function CD(t){var e=Buffer.allocUnsafe?Buffer.allocUnsafe(t.length):new Buffer(t.length);return t.copy(e),e}function LE(t,e){this.offset=t*e.length,this.buffer=e,this.updated=false,this.deduplicate=0;}function SD(t,e){t=(t-(e[0]=t&32767))/32768,t=(t-(e[1]=t&32767))/32768,e[3]=(t-(e[2]=t&32767))/32768&32767;}});var jE=c((II,UE)=>{g();var yD=qE();UE.exports=Un;function Un(t){if(!(this instanceof Un))return new Un(t);if(t||(t={}),Buffer.isBuffer(t)&&(t={buffer:t}),this.pageOffset=t.pageOffset||0,this.pageSize=t.pageSize||1024,this.pages=t.pages||yD(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!wD(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!t.trackUpdates,this._pageMask=this.pageSize-1,t.buffer){for(var e=0;e<t.buffer.length;e+=this.pageSize)this.pages.set(e/this.pageSize,t.buffer.slice(e,e+this.pageSize));this.byteLength=t.buffer.length,this.length=8*this.byteLength;}}Un.prototype.get=function(t){var e=t&7,r=(t-e)/8;return !!(this.getByte(r)&128>>e)};Un.prototype.getByte=function(t){var e=t&this._pageMask,r=(t-e)/this.pageSize,n=this.pages.get(r,true);return n?n.buffer[e+this.pageOffset]:0};Un.prototype.set=function(t,e){var r=t&7,n=(t-r)/8,s=this.getByte(n);return this.setByte(n,e?s|128>>r:s&(255^128>>r))};Un.prototype.toBuffer=function(){for(var t=OD(this.pages.length*this.pageSize),e=0;e<this.pages.length;e++){var r=this.pages.get(e,true),n=e*this.pageSize;r&&r.buffer.copy(t,n,this.pageOffset,this.pageOffset+this.pageSize);}return t};Un.prototype.setByte=function(t,e){var r=t&this._pageMask,n=(t-r)/this.pageSize,s=this.pages.get(n,false);return r+=this.pageOffset,s.buffer[r]===e?false:(s.buffer[r]=e,t>=this.byteLength&&(this.byteLength=t+1,this.length=this.byteLength*8),this._trackUpdates&&this.pages.updated(s),true)};function OD(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e}function wD(t){return !(t&t-1)}});var zE=c(Ki=>{g();var _D=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ki,"__esModule",{value:true});Ki.createMemoryCodePoints=TD;var DD=_D(jE());function TD(t){let e=0;function r(){let c=t.readUInt32BE(e);e+=4;let h=t.slice(e,e+c);return e+=c,(0, DD.default)({buffer:h})}let n=r(),s=r(),o=r(),i=r(),u=r(),a=r();return {unassigned_code_points:n,commonly_mapped_to_nothing:s,non_ASCII_space_characters:o,prohibited_characters:i,bidirectional_r_al:u,bidirectional_l:a}}});var VE=c(Gd=>{g();Object.defineProperty(Gd,"__esModule",{value:true});var BD=a("zlib");Gd.default=(0, BD.gunzipSync)(Buffer.from("H4sIAAAAAAACA+3dTYgcaRkA4LemO9Mhxm0FITnE9Cwr4jHgwgZ22B6YywqCJ0HQg5CL4sGTuOjCtGSF4CkHEW856MlTQHD3EJnWkU0Owh5VxE3LHlYQdNxd2U6mU59UV/d09fw4M2EySSXPAzNdP1/9fX/99bzVNZEN4jisRDulVFnQmLxm1aXF9Id/2/xMxNJ4XZlg576yuYlGt9gupV6xoFf8jhu9YvulVrFlp5XSx+lfvYhORGPXvqIRWSxERKtIm8bKFd10WNfKDS5Fo9jJWrq2+M2IlW+8uHgl/+BsROfPF4v5L7148Ur68Sha6dqZpYiVVy8tvLCWXo80Sf/lS89dGX2wHGvpzoXVn75/YWH5wmqe8uika82ViJXTy83Ve2k5Urozm38wm4/ls6t5uT6yfsTSJ7J3T0VKt8c5ExEXI8aFkH729c3eT+7EC6ca8cVULZUiYacX0R5PNWNxlh9L1y90q5kyzrpyy+9WcvOV6URntqw7La9sNVstXyczWVaWYbaaTYqzOHpr7pyiNT3/YzKuT63Z/FqKZlFTiuXtFM2vVOtIq7jiyKJbWZaOWD0euz0yoV2Z7kY0xq2x0YhfzVpmM5px9nTEH7JZ0ot5u39p0ma75Z472/s/H+2yr2inYyuq7fMvJivH2rM72N/Z3lyL31F2b1ya1P0zn816k2KP6JU9UzseucdQH5YqVeH/lFajSN2udg+TLJ9rksNxlvV2lki19rXKI43TPLejFu4ov7k3nMbhyhfY3Xb37f8BAGCf0eMTOH5szf154KmnNgKcnLb+Fzi2AfXktbN7fJelwTAiO/W5uQ2KINXRYu+znqo/WTAdLadURHmy3qciazd3bra4T3w16/f7t7Ms9U5gfJu10955sx1r3vmhBAAAAAAAgId20J1iZbDowNvIjuH427Gr5l/eiC+8OplZON8sVjx/qr9y+Pj+YRItT+NqAM+kkZs3AAAAAID6yfx1FwCAI97/dCh1/ub6SA0AAAAAAAAAgNoT/wcAAAAAAACA+hP/BwAAAAAAAID6E/8HAAAAAAAAgPoT/wcAAAAAAACA+hP/BwAAAAAAAID6E/8HAAAAAAAAgPoT/wcAAAAAAACA+hP/BwAAAAAAAID6E/8HAAAAAAAAgPoT/wcAAAAAAACA+hutp5SiQpYAAAAAAAAAQO2MIpZiT804flnAE2fhwjOeAZXr76kOAAAAAAAA8FjNf4N/l0NE3U/vuVQskLpSd4/Yh2xu9xTu0tFeeNYsLI2f/VMdNxTzj6Je9E/+6pp6Nn3awW3A54goe4Bss6v+PGsjQGMAAAAAAOBp5XEgwH6e7J7rwEQHRb/XvAMAAAAAAAA8yzoDeQDwVGjIAgAAAAAAAACoPfF/AAAAAAAAAKg/8X8AAAAAAAAAqD/xfwAAAAAAAACoP/F/AAAAAAAAAKg/8X8AAAAAAAAAqD/xfwAAAAAAAACoP/F/AAAAAAAAAKg/8X8AAAAAAAAAqD/xfwAAAAAAAACoP/F/AAAAAAAAAKg/8X8AAAAAAAAAqL/GSkSkClkCAAAAAAAAALXTSAAAAAAAAABA3Y1kAQAAAAAAAADUX8RSXZ9dsHC9+M8Fg2Ex/em1lAZpEBGttcrVjZqLEa+k0XpKw9mG4zWx4ukPUMhkAQAAAAAAABzBqbSe3//rXOS9HxGdo4TqR2XkutCdBu+LaPZw/lBbO7cbHnh2C7N7AIo4evEznllqLqWUp/LnYOtpM2bnOH66wI1+9GO4sOuISwv/TOlumu56FDv3NZhc4mR9v7zYIrafr40j/Cccvj9Xns3t3mu99E7qxUv3bqS0/ouNH/08++RGemfQ+nsx/5uNXsQPGulynPvv3ZTW37zd+1ovrqaYpP/122X6Xpx779Z3zr/3YOPKW1lkaRDf31pPaf3j/msRsVGkL+d/f+/m4sJsPm1cfSsr16e8m9Ldj/KsnyIuR3nXw83Is3EhxLd/2V773ks3m/cj/THKUummdP9qKhIOImuOU0Xjwb3y+oqt735rpTetVbF9n8R4x9crRfO77TKqVOZpDclv5bfK18lMnk+q0K18UpxF/RrGXE0Zxtqx3tWSj+vxbL4XaasfKb0dRbtLW73JsfPGg177H+OmGKlfvS1msllt7JEJm9XOJqXR+Fkfo1H66uy5H1v3Xx5+uJmGLw9jro2u7Loj4PnuR6+f+e3d261+eazNhzrL7X83MohoHpS4PddV8ki1it61//pw1g7z6p1U/26Nm2llST57B5rUvuG0XqSU/rPd7jYrqWcbd+beJQ77BgPMDwn37/8BAGCf0eMTOH4cPlufv9VGgJOzqf8Fjm1APXkd7B7f5dF57GPMaWy/MTvjvNvtXj6h8W2+GXvnzXaseeeHEgAAAAAAAB7aQXeKlcGiadBoEOeLb2dtpGOL2MyOtf391a3P/zD96c3JzIP3t4oV797vrh8+vn+YRL5bBuj/AQAAAABqJvfHXQAAHkX82zfXAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACeAgkAAAAAAAAAqLuRLAAAAAAAAACA2hv9D1iu/VAYaAYA","base64"));});var GE=c((Hd,$E)=>{g();var WE=Hd&&Hd.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},bD=WE(xE()),MD=zE(),FD=WE(VE()),RD=(0, MD.createMemoryCodePoints)(FD.default);function Yi(t,e){return (0, bD.default)(RD,t,e)}Yi.saslprep=Yi;Yi.default=Yi;$E.exports=Yi;});var HE={};d(HE,{default:()=>ND,saslprep:()=>ID});var Kd,ND,ID,KE=b(()=>{g();Kd=e(GE(),1),ND=Kd.default,ID=Kd.default.saslprep;});var t9=c(Mo=>{g();Object.defineProperty(Mo,"__esModule",{value:true});Mo.ScramSHA256=Mo.ScramSHA1=void 0;var vD=(KE(),f(HE)),As=a("crypto"),Yd=te(),_r=B(),Pa=v(),PD=yn(),YE=Fr(),xa=class extends PD.AuthProvider{constructor(e){super(),this.cryptoMethod=e||"sha1";}async prepare(e,r){let n=this.cryptoMethod,s=r.credentials;if(!s)throw new _r.MongoMissingCredentialsError("AuthContext must provide credentials.");let o=await(0, Pa.randomBytes)(24);return r.nonce=o,{...e,speculativeAuthenticate:{...ZE(n,s,o),db:s.source}}}async auth(e){let{reauthenticating:r,response:n}=e;return n?.speculativeAuthenticate&&!r?await e9(this.cryptoMethod,n.speculativeAuthenticate,e):await xD(this.cryptoMethod,e)}};function JE(t){return t.replace("=","=3D").replace(",","=2C")}function QE(t,e){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(t,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(e.toString("base64"),"utf8")])}function ZE(t,e,r){let n=JE(e.username);return {saslStart:1,mechanism:t==="sha1"?YE.AuthMechanism.MONGODB_SCRAM_SHA1:YE.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new Yd.Binary(Buffer.concat([Buffer.from("n,,","utf8"),QE(n,r)])),autoAuthorize:1,options:{skipEmptyExchange:true}}}async function xD(t,e){let{connection:r,credentials:n}=e;if(!n)throw new _r.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!e.nonce)throw new _r.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");let s=e.nonce,o=n.source,i=ZE(t,n,s),u=await r.command((0, Pa.ns)(`${o}.$cmd`),i,void 0);await e9(t,u,e);}async function e9(t,e,r){let n=r.connection,s=r.credentials;if(!s)throw new _r.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!r.nonce)throw new _r.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");let o=r.nonce,i=s.source,u=JE(s.username),a=s.password,c=t==="sha256"?(0, vD.saslprep)(a):LD(u,a),h=Buffer.isBuffer(e.payload)?new Yd.Binary(e.payload):e.payload,d=XE(h),m=parseInt(d.i,10);if(m&&m<4096)throw new _r.MongoRuntimeError(`Server returned an invalid iteration count ${m}`);let E=d.s,p=d.r;if(p.startsWith("nonce"))throw new _r.MongoRuntimeError(`Server returned an invalid nonce: ${p}`);let _=`c=biws,r=${p}`,b=zD(c,Buffer.from(E,"base64"),m,t),j=Ia(t,b,"Client Key"),P=Ia(t,b,"Server Key"),De=qD(t,j),N=[QE(u,o),h.toString("utf8"),_].join(","),L=Ia(t,De,N),q=`p=${kD(j,L)}`,zt=[_,q].join(","),Fe=Ia(t,P,N),I={saslContinue:1,conversationId:e.conversationId,payload:new Yd.Binary(Buffer.from(zt))},F=await n.command((0, Pa.ns)(`${i}.$cmd`),I,void 0),R=XE(F.payload);if(!VD(Buffer.from(R.v,"base64"),Fe))throw new _r.MongoRuntimeError("Server returned an invalid signature");if(F.done!==false)return;let J={saslContinue:1,conversationId:F.conversationId,payload:Buffer.alloc(0)};await n.command((0, Pa.ns)(`${i}.$cmd`),J,void 0);}function XE(t){let e=t.toString("utf8"),r={},n=e.split(",");for(let s=0;s<n.length;s++){let o=(n[s].match(/^([^=]*)=(.*)$/)??[]).slice(1);r[o[0]]=o[1];}return r}function LD(t,e){if(typeof t!="string")throw new _r.MongoInvalidArgumentError("Username must be a string");if(typeof e!="string")throw new _r.MongoInvalidArgumentError("Password must be a string");if(e.length===0)throw new _r.MongoInvalidArgumentError("Password cannot be empty");let r;try{r=As.createHash("md5");}catch(n){throw As.getFips()?new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode"):n}return r.update(`${t}:mongo:${e}`,"utf8"),r.digest("hex")}function kD(t,e){Buffer.isBuffer(t)||(t=Buffer.from(t)),Buffer.isBuffer(e)||(e=Buffer.from(e));let r=Math.max(t.length,e.length),n=[];for(let s=0;s<r;s+=1)n.push(t[s]^e[s]);return Buffer.from(n).toString("base64")}function qD(t,e){return As.createHash(t).update(e).digest()}function Ia(t,e,r){return As.createHmac(t,e).update(r).digest()}var va={},Xd=0;function UD(){va={},Xd=0;}var jD={sha256:32,sha1:20};function zD(t,e,r,n){let s=[t,e.toString("base64"),r].join("_");if(va[s]!=null)return va[s];let o=As.pbkdf2Sync(t,e,r,jD[n],n);return Xd>=200&&UD(),va[s]=o,Xd+=1,o}function VD(t,e){if(t.length!==e.length)return false;if(typeof As.timingSafeEqual=="function")return As.timingSafeEqual(t,e);let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return r===0}var Jd=class extends xa{constructor(){super("sha1");}};Mo.ScramSHA1=Jd;var Qd=class extends xa{constructor(){super("sha256");}};Mo.ScramSHA256=Qd;});var s9=c(La=>{g();Object.defineProperty(La,"__esModule",{value:true});La.X509=void 0;var r9=B(),WD=v(),$D=yn(),Zd=class extends $D.AuthProvider{async prepare(e,r){let{credentials:n}=r;if(!n)throw new r9.MongoMissingCredentialsError("AuthContext must provide credentials.");return {...e,speculativeAuthenticate:n9(n)}}async auth(e){let r=e.connection,n=e.credentials;if(!n)throw new r9.MongoMissingCredentialsError("AuthContext must provide credentials.");e.response?.speculativeAuthenticate||await r.command((0, WD.ns)("$external.$cmd"),n9(n),void 0);}};La.X509=Zd;function n9(t){let e={authenticate:1,mechanism:"MONGODB-X509"};return t.username&&(e.user=t.username),e}});var rf=c(ka=>{g();Object.defineProperty(ka,"__esModule",{value:true});ka.MongoClientAuthProviders=void 0;var GD=ru(),HD=pE(),u9=Oa(),KD=kd(),YD=RE(),o9=jd(),XD=NE(),jn=Fr(),i9=t9(),JD=s9(),tf=B(),QD=new Map([[jn.AuthMechanism.MONGODB_AWS,({AWS_CREDENTIAL_PROVIDER:t})=>new HD.MongoDBAWS(t)],[jn.AuthMechanism.MONGODB_CR,()=>{throw new tf.MongoInvalidArgumentError("MONGODB-CR is no longer a supported auth mechanism in MongoDB 4.0+")}],[jn.AuthMechanism.MONGODB_GSSAPI,()=>new GD.GSSAPI],[jn.AuthMechanism.MONGODB_OIDC,t=>new u9.MongoDBOIDC(ZD(t))],[jn.AuthMechanism.MONGODB_PLAIN,()=>new XD.Plain],[jn.AuthMechanism.MONGODB_SCRAM_SHA1,()=>new i9.ScramSHA1],[jn.AuthMechanism.MONGODB_SCRAM_SHA256,()=>new i9.ScramSHA256],[jn.AuthMechanism.MONGODB_X509,()=>new JD.X509]]),ef=class{constructor(){this.existingProviders=new Map;}getOrCreateProvider(e,r){let n=this.existingProviders.get(e);if(n)return n;let s=QD.get(e);if(!s)throw new tf.MongoInvalidArgumentError(`authMechanism ${e} not supported`);let o=s(r);return this.existingProviders.set(e,o),o}};ka.MongoClientAuthProviders=ef;function ZD(t){if(t.OIDC_HUMAN_CALLBACK)return new YD.HumanCallbackWorkflow(new o9.TokenCache,t.OIDC_HUMAN_CALLBACK);if(t.OIDC_CALLBACK)return new KD.AutomatedCallbackWorkflow(new o9.TokenCache,t.OIDC_CALLBACK);{let e=t.ENVIRONMENT,r=u9.OIDC_WORKFLOWS.get(e)?.();if(!r)throw new tf.MongoInvalidArgumentError(`Could not load workflow for environment ${t.ENVIRONMENT}`);return r}}});var nf=c(Ua=>{g();Object.defineProperty(Ua,"__esModule",{value:true});Ua.ClientBulkWriteOperation=void 0;var eT=ae(),tT=v(),rT=Be(),Cs=he(),qa=class extends rT.CommandOperation{get commandName(){return "bulkWrite"}constructor(e,r){super(void 0,r),this.SERVER_COMMAND_RESPONSE_TYPE=eT.ClientBulkWriteCursorResponse,this.commandBuilder=e,this.options=r,this.ns=new tT.MongoDBNamespace("admin","$cmd");}resetBatch(){return this.commandBuilder.resetBatch()}get canRetryWrite(){return this.commandBuilder.isBatchRetryable}handleOk(e){return e}buildCommandDocument(e,r){let n=this.commandBuilder.buildBatch(e.description.maxMessageSizeBytes,e.description.maxWriteBatchSize,e.description.maxBsonObjectSize);return this.canRetryWrite||(this.options.willRetryWrite=false),n}};Ua.ClientBulkWriteOperation=qa;(0, Cs.defineAspects)(qa,[Cs.Aspect.WRITE_OPERATION,Cs.Aspect.SKIP_COLLATION,Cs.Aspect.CURSOR_CREATING,Cs.Aspect.RETRYABLE,Cs.Aspect.COMMAND_BATCHING,Cs.Aspect.SUPPORTS_RAW_DATA]);});var c9=c(ja=>{g();Object.defineProperty(ja,"__esModule",{value:true});ja.ClientBulkWriteCursor=void 0;var nT=nf(),sT=$e(),a9=v(),oT=Qe(),sf=class t extends oT.AbstractCursor{constructor(e,r,n={}){super(e,new a9.MongoDBNamespace("admin","$cmd"),n),this.commandBuilder=r,this.clientBulkWriteOptions=n;}get response(){return this.cursorResponse?this.cursorResponse:null}get operations(){return this.commandBuilder.lastOperations}clone(){let e=(0, a9.mergeOptions)({},this.clientBulkWriteOptions);return delete e.session,new t(this.client,this.commandBuilder,{...e})}async _initialize(e){let r=new nT.ClientBulkWriteOperation(this.commandBuilder,{...this.clientBulkWriteOptions,...this.cursorOptions,session:e}),n=await(0, sT.executeOperation)(this.client,r,this.timeoutContext);return this.cursorResponse=n,{server:r.server,session:e,response:n}}};ja.ClientBulkWriteCursor=sf;});var p9=c(_e=>{g();Object.defineProperty(_e,"__esModule",{value:true});_e.buildReplaceOneOperation=_e.buildUpdateManyOperation=_e.buildUpdateOneOperation=_e.buildDeleteManyOperation=_e.buildDeleteOneOperation=_e.buildInsertOneOperation=_e.ClientBulkWriteCommandBuilder=void 0;_e.buildOperation=cf;var of=te(),l9=Ci(),Xi=B(),d9=js(),lf=v(),h9=1e3,af=class{constructor(e,r,n){this.models=e,this.options=r,this.pkFactory=n??lf.DEFAULT_PK_FACTORY,this.currentModelIndex=0,this.previousModelIndex=0,this.lastOperations=[],this.isBatchRetryable=true;}get errorsOnly(){return "verboseResults"in this.options?!this.options.verboseResults:true}hasNextBatch(){return this.currentModelIndex<this.models.length}resetBatch(){return this.currentModelIndex=this.previousModelIndex,true}buildBatch(e,r,n){this.isBatchRetryable=true;let s=0,o=0,i=this.baseCommand(),u=new Map;for(this.previousModelIndex=this.currentModelIndex;this.currentModelIndex<this.models.length;){let a=this.models[this.currentModelIndex],c=a.namespace,h=u.get(c);if((a.name==="deleteMany"||a.name==="updateMany")&&(this.isBatchRetryable=false),h!=null){let d=cf(a,h,this.pkFactory,this.options),m;try{m=of.BSON.serialize(d);}catch(E){throw new Xi.MongoInvalidArgumentError("Could not serialize operation to BSON",{cause:E})}if(uf("ops",m,n),s+m.length<e&&i.ops.documents.length<r)s=h9+i.ops.push(d,m),this.currentModelIndex++;else break}else {u.set(c,o);let d={ns:c},m=cf(a,o,this.pkFactory,this.options),E,p;try{E=of.BSON.serialize(d),p=of.BSON.serialize(m);}catch(_){throw new Xi.MongoInvalidArgumentError("Could not serialize ns info to BSON",{cause:_})}if(uf("nsInfo",E,n),uf("ops",p,n),s+E.length+p.length<e&&i.ops.documents.length<r)s=h9+i.nsInfo.push(d,E)+i.ops.push(m,p),o++,this.currentModelIndex++;else break}}return this.lastOperations=i.ops.documents,i}baseCommand(){let e={bulkWrite:1,errorsOnly:this.errorsOnly,ordered:this.options.ordered??true,ops:new l9.DocumentSequence("ops"),nsInfo:new l9.DocumentSequence("nsInfo")};return this.options.bypassDocumentValidation!=null&&(e.bypassDocumentValidation=this.options.bypassDocumentValidation),this.options.let&&(e.let=this.options.let),this.options.comment!==void 0&&(e.comment=this.options.comment),e}};_e.ClientBulkWriteCommandBuilder=af;function uf(t,e,r){if(e.length>r)throw new Xi.MongoInvalidArgumentError(`Client bulk write operation ${t} of length ${e.length} exceeds the max bson object size of ${r}`)}var iT=(t,e,r)=>{let n={insert:e,document:t.document};return n.document._id=t.document._id??r.createPk(),n};_e.buildInsertOneOperation=iT;var uT=(t,e)=>f9(t,e,false);_e.buildDeleteOneOperation=uT;var aT=(t,e)=>f9(t,e,true);_e.buildDeleteManyOperation=aT;function f9(t,e,r){let n={delete:e,multi:r,filter:t.filter};return t.hint&&(n.hint=t.hint),t.collation&&(n.collation=t.collation),n}var cT=(t,e,r)=>m9(t,e,false,r);_e.buildUpdateOneOperation=cT;var lT=(t,e,r)=>m9(t,e,true,r);_e.buildUpdateManyOperation=lT;function hT(t,e){if(!(0, lf.hasAtomicOperators)(t,e))throw new Xi.MongoAPIError("Client bulk write update models must only contain atomic modifiers (start with $) and must not be empty.")}function m9(t,e,r,n){hT(t.update,n);let s={update:e,multi:r,filter:t.filter,updateMods:t.update};return t.hint&&(s.hint=t.hint),t.upsert&&(s.upsert=t.upsert),t.arrayFilters&&(s.arrayFilters=t.arrayFilters),t.collation&&(s.collation=t.collation),!r&&"sort"in t&&t.sort!=null&&(s.sort=(0, d9.formatSort)(t.sort)),s}var dT=(t,e)=>{if((0, lf.hasAtomicOperators)(t.replacement))throw new Xi.MongoAPIError("Client bulk write replace models must not contain atomic modifiers (start with $) and must not be empty.");let r={update:e,multi:false,filter:t.filter,updateMods:t.replacement};return t.hint&&(r.hint=t.hint),t.upsert&&(r.upsert=t.upsert),t.collation&&(r.collation=t.collation),t.sort!=null&&(r.sort=(0, d9.formatSort)(t.sort)),r};_e.buildReplaceOneOperation=dT;function cf(t,e,r,n){switch(t.name){case "insertOne":return (0, _e.buildInsertOneOperation)(t,e,r);case "deleteOne":return (0, _e.buildDeleteOneOperation)(t,e);case "deleteMany":return (0, _e.buildDeleteManyOperation)(t,e);case "updateOne":return (0, _e.buildUpdateOneOperation)(t,e,n);case "updateMany":return (0, _e.buildUpdateManyOperation)(t,e,n);case "replaceOne":return (0, _e.buildReplaceOneOperation)(t,e)}}});var E9=c(za=>{g();Object.defineProperty(za,"__esModule",{value:true});za.ClientBulkWriteResultsMerger=void 0;var fT=Sd(),mT=B(),pT={acknowledged:false,insertedCount:0,upsertedCount:0,matchedCount:0,modifiedCount:0,deletedCount:0,insertResults:void 0,updateResults:void 0,deleteResults:void 0},hf=class{static unacknowledged(){return pT}constructor(e){this.options=e,this.currentBatchOffset=0,this.writeConcernErrors=[],this.writeErrors=new Map,this.result={acknowledged:true,insertedCount:0,upsertedCount:0,matchedCount:0,modifiedCount:0,deletedCount:0,insertResults:void 0,updateResults:void 0,deleteResults:void 0},e.verboseResults&&(this.result.insertResults=new Map,this.result.updateResults=new Map,this.result.deleteResults=new Map);}get bulkWriteResult(){return {acknowledged:this.result.acknowledged,insertedCount:this.result.insertedCount,upsertedCount:this.result.upsertedCount,matchedCount:this.result.matchedCount,modifiedCount:this.result.modifiedCount,deletedCount:this.result.deletedCount,insertResults:this.result.insertResults,updateResults:this.result.updateResults,deleteResults:this.result.deleteResults}}async merge(e){let r;try{for await(let n of e)if(n.ok===1)this.options.verboseResults&&this.processDocument(e,n);else if(this.options.ordered){let s=new mT.MongoClientBulkWriteError({message:"Mongo client ordered bulk write encountered a write error."});throw s.writeErrors.set(n.idx+this.currentBatchOffset,{code:n.code,message:n.errmsg}),s.partialResult=this.result,s}else this.writeErrors.set(n.idx+this.currentBatchOffset,{code:n.code,message:n.errmsg});}catch(n){if(n instanceof fT.MongoWriteConcernError){let s=n.result;if(r={insertedCount:s.nInserted,upsertedCount:s.nUpserted,matchedCount:s.nMatched,modifiedCount:s.nModified,deletedCount:s.nDeleted,writeConcernError:s.writeConcernError},this.options.verboseResults&&s.cursor.firstBatch)for(let o of s.cursor.firstBatch)o.ok===1&&this.processDocument(e,o);}else throw n}finally{if(e.response){let n=e.response;this.incrementCounts(n);}this.currentBatchOffset+=e.operations.length;}if(r){let n=r.writeConcernError;this.incrementCounts(r),this.writeConcernErrors.push({code:n.code,message:n.errmsg});}return this.result}processDocument(e,r){let n=e.operations[r.idx];if("insert"in n&&this.result.insertResults?.set(r.idx+this.currentBatchOffset,{insertedId:n.document._id}),"update"in n){let s={matchedCount:r.n,modifiedCount:r.nModified??0,didUpsert:r.upserted!=null};r.upserted&&(s.upsertedId=r.upserted._id),this.result.updateResults?.set(r.idx+this.currentBatchOffset,s);}"delete"in n&&this.result.deleteResults?.set(r.idx+this.currentBatchOffset,{deletedCount:r.n});}incrementCounts(e){this.result.insertedCount+=e.insertedCount,this.result.upsertedCount+=e.upsertedCount,this.result.matchedCount+=e.matchedCount,this.result.modifiedCount+=e.modifiedCount,this.result.deletedCount+=e.deletedCount;}};za.ClientBulkWriteResultsMerger=hf;});var C9=c(Va=>{g();Object.defineProperty(Va,"__esModule",{value:true});Va.ClientBulkWriteExecutor=void 0;var g9=Qe(),ET=c9(),Ss=B(),gT=ke(),AT=v(),CT=dt(),ST=$e(),yT=nf(),OT=p9(),A9=E9(),df=class{constructor(e,r,n){if(r.length===0)throw new Ss.MongoClientBulkWriteExecutionError("No client bulk write models were provided.");if(this.client=e,this.operations=r,this.options={ordered:true,bypassDocumentValidation:false,verboseResults:false,...n},this.options.writeConcern||(this.options.writeConcern=CT.WriteConcern.fromOptions(this.client.s.options)),this.options.writeConcern?.w===0){if(this.options.verboseResults)throw new Ss.MongoInvalidArgumentError("Cannot request unacknowledged write concern and verbose results");if(this.options.ordered)throw new Ss.MongoInvalidArgumentError("Cannot request unacknowledged write concern and ordered writes")}}async execute(){let e=this.client.s.options.pkFactory,r=new OT.ClientBulkWriteCommandBuilder(this.operations,this.options,e),n=(0, AT.resolveTimeoutOptions)(this.client,this.options),s=gT.TimeoutContext.create(n);if(this.options.writeConcern?.w===0){for(;r.hasNextBatch();){let o=new yT.ClientBulkWriteOperation(r,this.options);await(0, ST.executeOperation)(this.client,o,s);}return A9.ClientBulkWriteResultsMerger.unacknowledged()}else {let o=new A9.ClientBulkWriteResultsMerger(this.options);for(;r.hasNextBatch();){let i=new g9.CursorTimeoutContext(s,Symbol()),u={...this.options,timeoutContext:i,...n.timeoutMS!=null&&{timeoutMode:g9.CursorTimeoutMode.LIFETIME}},a=new ET.ClientBulkWriteCursor(this.client,r,u);try{await o.merge(a);}catch(c){if(c instanceof Ss.MongoServerError&&!(c instanceof Ss.MongoClientBulkWriteError)){let h=new Ss.MongoClientBulkWriteError({message:"Mongo client bulk write encountered an error during execution"});throw h.cause=c,h.partialResult=o.bulkWriteResult,h}else throw c}}if(o.writeConcernErrors.length>0||o.writeErrors.size>0){let i=new Ss.MongoClientBulkWriteError({message:"Mongo client bulk write encountered errors during execution."});throw i.writeConcernErrors=o.writeConcernErrors,i.writeErrors=o.writeErrors,i.partialResult=o.bulkWriteResult,i}return o.bulkWriteResult}}};Va.ClientBulkWriteExecutor=df;});var gf=c(tr=>{g();Object.defineProperty(tr,"__esModule",{value:true});tr.WaitingForSuitableServerEvent=tr.ServerSelectionSucceededEvent=tr.ServerSelectionFailedEvent=tr.ServerSelectionStartedEvent=tr.ServerSelectionEvent=void 0;var wT=v(),Wa=Ne(),ys=class{constructor(e,r,n){this.selector=e,this.operation=n,this.topologyDescription=r;}};tr.ServerSelectionEvent=ys;var ff=class extends ys{constructor(e,r,n){super(e,r,n),this.name=Wa.SERVER_SELECTION_STARTED,this.message="Server selection started";}};tr.ServerSelectionStartedEvent=ff;var mf=class extends ys{constructor(e,r,n,s){super(e,r,s),this.name=Wa.SERVER_SELECTION_FAILED,this.message="Server selection failed",this.failure=n;}};tr.ServerSelectionFailedEvent=mf;var pf=class extends ys{constructor(e,r,n,s){super(e,r,s),this.name=Wa.SERVER_SELECTION_SUCCEEDED,this.message="Server selection succeeded";let{host:o,port:i}=wT.HostAddress.fromString(n).toHostPort();this.serverHost=o,this.serverPort=i;}};tr.ServerSelectionSucceededEvent=pf;var Ef=class extends ys{constructor(e,r,n,s){super(e,r,s),this.name=Wa.WAITING_FOR_SUITABLE_SERVER,this.message="Waiting for suitable server to become available",this.remainingTimeMS=n;}};tr.WaitingForSuitableServerEvent=Ef;});var Cf=c(Fo=>{g();Object.defineProperty(Fo,"__esModule",{value:true});Fo.SrvPoller=Fo.SrvPollingEvent=void 0;var _T=a("dns"),Af=a("timers"),DT=B(),TT=Pt(),Ji=v(),$a=class{constructor(e){this.srvRecords=e;}hostnames(){return new Set(this.srvRecords.map(e=>Ji.HostAddress.fromSrvRecord(e).toString()))}};Fo.SrvPollingEvent=$a;var Ga=class t extends TT.TypedEventEmitter{constructor(e){if(super(),this.on("error",Ji.noop),!e||!e.srvHost)throw new DT.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=e.srvHost,this.srvMaxHosts=e.srvMaxHosts??0,this.srvServiceName=e.srvServiceName??"mongodb",this.rescanSrvIntervalMS=6e4,this.heartbeatFrequencyMS=e.heartbeatFrequencyMS??1e4,this.haMode=false,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(){this._timeout||this.schedule();}stop(){this._timeout&&((0, Af.clearTimeout)(this._timeout),this.generation+=1,this._timeout=void 0);}schedule(){this._timeout&&(0, Af.clearTimeout)(this._timeout),this._timeout=(0, Af.setTimeout)(()=>{this._poll().then(void 0,Ji.squashError);},this.intervalMS);}success(e){this.haMode=false,this.schedule(),this.emit(t.SRV_RECORD_DISCOVERY,new $a(e));}failure(){this.haMode=true,this.schedule();}async _poll(){let e=this.generation,r;try{r=await _T.promises.resolveSrv(this.srvAddress);}catch{this.failure();return}if(e!==this.generation)return;let n=[];for(let s of r)try{(0,Ji.checkParentDomainMatch)(s.name,this.srvHost),n.push(s);}catch(o){(0, Ji.squashError)(o);}if(!n.length){this.failure();return}this.success(n);}};Fo.SrvPoller=Ga;Ga.SRV_RECORD_DISCOVERY="srvRecordDiscovery";});var B9=c(Ro=>{g();Object.defineProperty(Ro,"__esModule",{value:true});Ro.ServerCapabilities=Ro.Topology=void 0;var BT=hd(),Ft=Ne(),Lr=B(),Se=Cn(),bT=Pt(),Qi=We(),Sf=ke(),Mt=v(),H=Nt(),zn=Ku(),S9=ed(),Of=Ri(),yf=Yo(),Vn=gf(),Ha=Cf(),y9=Eh(),MT=0,Zi=(0, Mt.makeStateMachine)({[H.STATE_CLOSED]:[H.STATE_CLOSED,H.STATE_CONNECTING],[H.STATE_CONNECTING]:[H.STATE_CONNECTING,H.STATE_CLOSING,H.STATE_CONNECTED,H.STATE_CLOSED],[H.STATE_CONNECTED]:[H.STATE_CONNECTED,H.STATE_CLOSING,H.STATE_CLOSED],[H.STATE_CLOSING]:[H.STATE_CLOSING,H.STATE_CLOSED]}),lt=class t extends bT.TypedEventEmitter{constructor(e,r,n){super(),this.on("error",Mt.noop),this.client=e,n=n??{hosts:[Mt.HostAddress.fromString("localhost:27017")],...Object.fromEntries(BT.DEFAULT_OPTIONS.entries())},typeof r=="string"?r=[Mt.HostAddress.fromString(r)]:Array.isArray(r)||(r=[r]);let s=[];for(let c of r)if(typeof c=="string")s.push(Mt.HostAddress.fromString(c));else if(c instanceof Mt.HostAddress)s.push(c);else throw new Lr.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(c)}`);let o=FT(n),i=MT++,u=n.srvMaxHosts==null||n.srvMaxHosts===0||n.srvMaxHosts>=s.length?s:(0, Mt.shuffle)(s,n.srvMaxHosts),a=new Map;for(let c of u)a.set(c.toString(),new Of.ServerDescription(c));this.waitQueue=new Mt.List,this.s={id:i,options:n,seedlist:s,state:H.STATE_CLOSED,description:new y9.TopologyDescription(o,a,n.replicaSet,void 0,void 0,void 0,n),serverSelectionTimeoutMS:n.serverSelectionTimeoutMS,heartbeatFrequencyMS:n.heartbeatFrequencyMS,minHeartbeatFrequencyMS:n.minHeartbeatFrequencyMS,servers:new Map,credentials:n?.credentials,clusterTime:void 0,detectShardedTopology:c=>this.detectShardedTopology(c),detectSrvRecords:c=>this.detectSrvRecords(c)},this.mongoLogger=e.mongoLogger,this.component="topology",n.srvHost&&!n.loadBalanced&&(this.s.srvPoller=n.srvPoller??new Ha.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:n.srvHost,srvMaxHosts:n.srvMaxHosts,srvServiceName:n.srvServiceName}),this.on(t.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)),this.connectionLock=void 0;}detectShardedTopology(e){let r=e.previousDescription.type,n=e.newDescription.type,s=r!==H.TopologyType.Sharded&&n===H.TopologyType.Sharded,i=!!this.s.srvPoller?.listeners(Ha.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);s&&!i&&(this.s.srvPoller?.on(Ha.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start());}detectSrvRecords(e){let r=this.s.description;this.s.description=this.s.description.updateFromSrvPollingEvent(e,this.s.options.srvMaxHosts),this.s.description!==r&&(O9(this),this.emitAndLog(t.TOPOLOGY_DESCRIPTION_CHANGED,new zn.TopologyDescriptionChangedEvent(this.s.id,r,this.s.description)));}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get serverApi(){return this.s.options.serverApi}get capabilities(){return new Ka(this.lastHello())}async connect(e){this.connectionLock??=this._connect(e);try{return await this.connectionLock,this}finally{this.connectionLock=void 0;}}async _connect(e){if(e=e??{},this.s.state===H.STATE_CONNECTED)return this;Zi(this,H.STATE_CONNECTING),this.emitAndLog(t.TOPOLOGY_OPENING,new zn.TopologyOpeningEvent(this.s.id)),this.emitAndLog(t.TOPOLOGY_DESCRIPTION_CHANGED,new zn.TopologyDescriptionChangedEvent(this.s.id,new y9.TopologyDescription(H.TopologyType.Unknown),this.s.description));let r=Array.from(this.s.description.servers.values());if(this.s.servers=new Map(r.map(u=>[u.address,D9(this,u)])),this.s.options.loadBalanced)for(let u of r){let a=new Of.ServerDescription(u.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(a);}let n=this.client.s.options.serverSelectionTimeoutMS,s=e.readPreference??Qi.ReadPreference.primary,o=Sf.TimeoutContext.create({timeoutMS:void 0,serverSelectionTimeoutMS:n,waitQueueTimeoutMS:this.client.s.options.waitQueueTimeoutMS}),i={operationName:"handshake",...e,timeoutContext:o};try{let u=await this.selectServer((0,yf.readPreferenceServerSelector)(s),i);if(!(this.s.options.__skipPingOnConnect===!0)&&this.s.credentials){let c=await u.pool.checkOut({timeoutContext:o});return u.pool.checkIn(c),Zi(this,H.STATE_CONNECTED),this.emit(t.OPEN,this),this.emit(t.CONNECT,this),this}return Zi(this,H.STATE_CONNECTED),this.emit(t.OPEN,this),this.emit(t.CONNECT,this),this}catch(u){throw this.close(),u}}closeCheckedOutConnections(){for(let e of this.s.servers.values())return e.closeCheckedOutConnections()}close(){if(!(this.s.state===H.STATE_CLOSED||this.s.state===H.STATE_CLOSING)){for(let e of this.s.servers.values())_9(e,this);this.s.servers.clear(),Zi(this,H.STATE_CLOSING),T9(this.waitQueue,new Lr.MongoTopologyClosedError),this.s.srvPoller&&(this.s.srvPoller.stop(),this.s.srvPoller.removeListener(Ha.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords)),this.removeListener(t.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),Zi(this,H.STATE_CLOSED),this.emitAndLog(t.TOPOLOGY_CLOSED,new zn.TopologyClosedEvent(this.s.id));}}async selectServer(e,r){let n;if(typeof e!="function")if(typeof e=="string")n=(0, yf.readPreferenceServerSelector)(Qi.ReadPreference.fromString(e));else {let E;e instanceof Qi.ReadPreference?E=e:(Qi.ReadPreference.translate(r),E=r.readPreference||Qi.ReadPreference.primary),n=(0, yf.readPreferenceServerSelector)(E);}else n=e;r={serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS,...r},this.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&this.client.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionStartedEvent(e,this.description,r.operationName));let s;r.timeoutContext?s=r.timeoutContext.serverSelectionTimeout:s=Sf.Timeout.expires(r.serverSelectionTimeoutMS??0);let o=this.description.type===H.TopologyType.Sharded,i=r.session,u=i&&i.transaction;if(o&&u&&u.server)return this.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&this.client.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionSucceededEvent(e,this.description,u.server.pool.address,r.operationName)),r.timeoutContext?.clearServerSelectionTimeout&&s?.clear(),u.server;let{promise:a,resolve:c,reject:h}=(0, Mt.promiseWithResolvers)(),d={serverSelector:n,topologyDescription:this.description,mongoLogger:this.client.mongoLogger,transaction:u,resolve:c,reject:h,cancelled:false,startTime:(0, Mt.now)(),operationName:r.operationName,waitingLogged:false,previousServer:r.previousServer},m=(0, Mt.addAbortListener)(r.signal,function(){d.cancelled=true,h(this.reason);});this.waitQueue.push(d),w9(this);try{s?.throwIfExpired();let E=await(s?Promise.race([a,s]):a);return r.timeoutContext?.csotEnabled()&&E.description.minRoundTripTime!==0&&(r.timeoutContext.minRoundTripTime=E.description.minRoundTripTime),E}catch(E){if(Sf.TimeoutError.is(E)){d.cancelled=true;let p=new Lr.MongoServerSelectionError(`Server selection timed out after ${s?.duration} ms`,this.description);throw this.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&this.client.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionFailedEvent(e,this.description,p,r.operationName)),r.timeoutContext?.csotEnabled()?new Lr.MongoOperationTimeoutError("Timed out during server selection",{cause:p}):p}throw E}finally{m?.[Mt.kDispose](),r.timeoutContext?.clearServerSelectionTimeout&&s?.clear();}}serverUpdateHandler(e){if(!this.s.description.hasServer(e.address)||RT(this.s.description,e))return;let r=this.s.description,n=this.s.description.servers.get(e.address);if(!n)return;let s=e.$clusterTime;s&&(0, H._advanceClusterTime)(this,s);let o=n&&n.equals(e);if(this.s.description=this.s.description.update(e),this.s.description.compatibilityError){this.emit(t.ERROR,new Lr.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!o){let i=this.s.description.servers.get(e.address);i&&this.emit(t.SERVER_DESCRIPTION_CHANGED,new zn.ServerDescriptionChangedEvent(this.s.id,e.address,n,i));}O9(this,e),this.waitQueue.length>0&&w9(this),o||this.emitAndLog(t.TOPOLOGY_DESCRIPTION_CHANGED,new zn.TopologyDescriptionChangedEvent(this.s.id,r,this.s.description));}auth(e,r){typeof e=="function"&&(r=e,e=void 0),typeof r=="function"&&r(void 0,true);}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===H.STATE_CONNECTED}isDestroyed(){return this.s.state===H.STATE_CLOSED}lastHello(){let e=Array.from(this.description.servers.values());return e.length===0?{}:e.filter(s=>s.type!==H.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(e){this.s.clusterTime=e;}};Ro.Topology=lt;lt.SERVER_OPENING=Ft.SERVER_OPENING;lt.SERVER_CLOSED=Ft.SERVER_CLOSED;lt.SERVER_DESCRIPTION_CHANGED=Ft.SERVER_DESCRIPTION_CHANGED;lt.TOPOLOGY_OPENING=Ft.TOPOLOGY_OPENING;lt.TOPOLOGY_CLOSED=Ft.TOPOLOGY_CLOSED;lt.TOPOLOGY_DESCRIPTION_CHANGED=Ft.TOPOLOGY_DESCRIPTION_CHANGED;lt.ERROR=Ft.ERROR;lt.OPEN=Ft.OPEN;lt.CONNECT=Ft.CONNECT;lt.CLOSE=Ft.CLOSE;lt.TIMEOUT=Ft.TIMEOUT;function _9(t,e){for(let r of Ft.LOCAL_SERVER_EVENTS)t.removeAllListeners(r);t.close(),e.emitAndLog(lt.SERVER_CLOSED,new zn.ServerClosedEvent(e.s.id,t.description.address));for(let r of Ft.SERVER_RELAY_EVENTS)t.removeAllListeners(r);}function FT(t){return t?.directConnection?H.TopologyType.Single:t?.replicaSet?H.TopologyType.ReplicaSetNoPrimary:t?.loadBalanced?H.TopologyType.LoadBalanced:H.TopologyType.Unknown}function D9(t,e){t.emitAndLog(lt.SERVER_OPENING,new zn.ServerOpeningEvent(t.s.id,e.address));let r=new S9.Server(t,e,t.s.options);for(let n of Ft.SERVER_RELAY_EVENTS)r.on(n,s=>t.emit(n,s));return r.on(S9.Server.DESCRIPTION_RECEIVED,n=>t.serverUpdateHandler(n)),r.connect(),r}function O9(t,e){if(e&&t.s.servers.has(e.address)){let r=t.s.servers.get(e.address);if(r){if(r.s.description=e,e.error instanceof Lr.MongoError&&e.error.hasErrorLabel(Lr.MongoErrorLabel.ResetPool)){let n=e.error.hasErrorLabel(Lr.MongoErrorLabel.InterruptInUseConnections);r.pool.clear({interruptInUseConnections:n});}else if(e.error==null){let n=t.s.description.type;(e.isDataBearing||e.type!==H.ServerType.Unknown&&n===H.TopologyType.Single)&&r.pool.ready();}}}for(let r of t.description.servers.values())if(!t.s.servers.has(r.address)){let n=D9(t,r);t.s.servers.set(r.address,n);}for(let r of t.s.servers){let n=r[0];if(t.description.hasServer(n)||!t.s.servers.has(n))continue;let s=t.s.servers.get(n);t.s.servers.delete(n),s&&_9(s,t);}}function T9(t,e){for(;t.length;){let r=t.shift();r&&(r.cancelled||(r.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&r.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionFailedEvent(r.serverSelector,r.topologyDescription,e,r.operationName)),r.reject(e)));}}function w9(t){if(t.s.state===H.STATE_CLOSED){T9(t.waitQueue,new Lr.MongoTopologyClosedError);return}let e=t.description.type===H.TopologyType.Sharded,r=Array.from(t.description.servers.values()),n=t.waitQueue.length;for(let s=0;s<n;++s){let o=t.waitQueue.shift();if(!o||o.cancelled)continue;let i;try{let c=o.serverSelector,h=o.previousServer;i=c?c(t.description,r,h?[h]:[]):r;}catch(c){t.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&t.client.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionFailedEvent(o.serverSelector,t.description,c,o.operationName)),o.reject(c);continue}let u;if(i.length===0){o.waitingLogged||(t.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.INFORMATIONAL)&&t.client.mongoLogger?.info(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.WaitingForSuitableServerEvent(o.serverSelector,t.description,t.s.serverSelectionTimeoutMS!==0?t.s.serverSelectionTimeoutMS-((0, Mt.now)()-o.startTime):-1,o.operationName)),o.waitingLogged=true),t.waitQueue.push(o);continue}else if(i.length===1)u=t.s.servers.get(i[0].address);else {let c=(0, Mt.shuffle)(i,2),h=t.s.servers.get(c[0].address),d=t.s.servers.get(c[1].address);u=h&&d&&h.s.operationCount<d.s.operationCount?h:d;}if(!u){let c=new Lr.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",t.description);t.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&t.client.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionFailedEvent(o.serverSelector,t.description,c,o.operationName)),o.reject(c);return}let a=o.transaction;e&&a&&a.isActive&&u&&a.pinServer(u),t.client.mongoLogger?.willLog(Se.MongoLoggableComponent.SERVER_SELECTION,Se.SeverityLevel.DEBUG)&&t.client.mongoLogger?.debug(Se.MongoLoggableComponent.SERVER_SELECTION,new Vn.ServerSelectionSucceededEvent(o.serverSelector,o.topologyDescription,u.pool.address,o.operationName)),o.resolve(u);}if(t.waitQueue.length>0)for(let[,s]of t.s.servers)process.nextTick(function(){return s.requestCheck()});}function RT(t,e){let n=t.servers.get(e.address)?.topologyVersion;return (0, Of.compareTopologyVersion)(n,e.topologyVersion)>0}var Ka=class{constructor(e){this.minWireVersion=e.minWireVersion||0,this.maxWireVersion=e.maxWireVersion||0;}get hasAggregationCursor(){return true}get hasWriteCommands(){return true}get hasTextSearch(){return true}get hasAuthCommands(){return true}get hasListCollectionsCommand(){return true}get hasListIndexesCommand(){return true}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return true}get commandsTakeCollation(){return true}};Ro.ServerCapabilities=Ka;});var Nn=c(No=>{g();Object.defineProperty(No,"__esModule",{value:true});No.MongoClient=No.ServerApiVersion=void 0;var wf=a("fs"),NT=te(),IT=gs(),vT=nu(),PT=Fr(),_f=Gl(),xT=ae(),b9=hd(),LT=Ne(),kT=Aa(),Df=B(),qT=rf(),M9=Cn(),UT=Pt(),jT=C9(),zT=$e(),VT=he(),F9=We(),WT=ao(),$T=Yo(),R9=B9(),N9=uo(),je=v();No.ServerApiVersion=Object.freeze({v1:"1"});var Ya=class extends UT.TypedEventEmitter{constructor(e,r){super(),this.driverInfoList=[],this.on("error",je.noop),this.options=(0, b9.parseOptions)(e,this,r),this.appendMetadata(this.options.driverInfo);let n=Object.values(this.options.mongoLoggerOptions.componentSeverities).some(o=>o!==M9.SeverityLevel.OFF);this.mongoLogger=n?new M9.MongoLogger(this.options.mongoLoggerOptions):void 0;let s=this;this.s={url:e,bsonOptions:(0, NT.resolveBSONOptions)(this.options),namespace:(0, je.ns)("admin"),hasBeenClosed:false,sessionPool:new N9.ServerSessionPool(this),activeSessions:new Set,activeCursors:new Set,authProviders:new qT.MongoClientAuthProviders,get options(){return s.options},get readConcern(){return s.options.readConcern},get writeConcern(){return s.options.writeConcern},get readPreference(){return s.options.readPreference},get isMongoClient(){return true}},this.checkForNonGenuineHosts();}async asyncDispose(){await this.close();}appendMetadata(e){this.driverInfoList.some(n=>(0, _f.isDriverInfoEqual)(n,e))||(this.driverInfoList.push(e),this.options.metadata=(0, _f.makeClientMetadata)(this.driverInfoList,this.options),this.options.extendedMetadata=(0, _f.addContainerMetadata)(this.options.metadata).then(void 0,je.squashError).then(n=>n??{}));}checkForNonGenuineHosts(){let e=this.options.hosts.filter(o=>(0, je.isHostMatch)(je.DOCUMENT_DB_CHECK,o.host)),r=(0, je.isHostMatch)(je.DOCUMENT_DB_CHECK,this.options.srvHost),n=this.options.hosts.filter(o=>(0, je.isHostMatch)(je.COSMOS_DB_CHECK,o.host)),s=(0, je.isHostMatch)(je.COSMOS_DB_CHECK,this.options.srvHost);e.length!==0||r?this.mongoLogger?.info("client",je.DOCUMENT_DB_MSG):(n.length!==0||s)&&this.mongoLogger?.info("client",je.COSMOS_DB_MSG);}get serverApi(){return this.options.serverApi&&Object.freeze({...this.options.serverApi})}get monitorCommands(){return this.options.monitorCommands}set monitorCommands(e){this.options.monitorCommands=e;}get autoEncrypter(){return this.options.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}get timeoutMS(){return this.s.options.timeoutMS}async bulkWrite(e,r){if(this.autoEncrypter)throw new Df.MongoInvalidArgumentError("MongoClient bulkWrite does not currently support automatic encryption.");return await new jT.ClientBulkWriteExecutor(this,e,(0, je.resolveOptions)(this,r)).execute()}async connect(){if(this.connectionLock)return await 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;let e=this.options;if(e.tls&&(typeof e.tlsCAFile=="string"&&(e.ca??=await wf.promises.readFile(e.tlsCAFile)),typeof e.tlsCRLFile=="string"&&(e.crl??=await wf.promises.readFile(e.tlsCRLFile)),typeof e.tlsCertificateKeyFile=="string"&&(!e.key||!e.cert))){let n=await wf.promises.readFile(e.tlsCertificateKeyFile);e.key??=n,e.cert??=n;}if(typeof e.srvHost=="string"){let n=await(0, b9.resolveSRVRecord)(e);for(let[s,o]of n.entries())e.hosts[s]=o;}if(e.credentials?.mechanism===PT.AuthMechanism.MONGODB_OIDC){let n=e.credentials?.mechanismProperties?.ALLOWED_HOSTS||vT.DEFAULT_ALLOWED_HOSTS;if(!!!e.credentials?.mechanismProperties?.ENVIRONMENT){for(let o of e.hosts)if(!(0, je.hostMatchesWildcards)(o.toHostPort().host,n))throw new Df.MongoInvalidArgumentError(`Host '${o}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${n.join(",")}'`)}}this.topology=new R9.Topology(this,e.hosts,e),this.topology.once(R9.Topology.OPEN,()=>this.emit("open",this));for(let n of LT.MONGO_CLIENT_EVENTS)this.topology.on(n,(...s)=>this.emit(n,...s));let r=async()=>{try{await this.topology?.connect(e);}catch(n){throw this.topology?.close(),n}};return this.autoEncrypter?(await this.autoEncrypter?.init(),await r(),await e.encrypter.connectInternalClient()):await r(),this}async close(e=false){if(this.closeLock)return await this.closeLock;try{this.closeLock=this._close(),await this.closeLock;}finally{this.closeLock=void 0;}}async _close(){Object.defineProperty(this.s,"hasBeenClosed",{value:true,enumerable:true,configurable:false,writable:false}),this.topology?.closeCheckedOutConnections();let e=Array.from(this.s.activeCursors,c=>c.close());this.s.activeCursors.clear(),await Promise.all(e);let r=Array.from(this.s.activeSessions,c=>c.endSession());if(this.s.activeSessions.clear(),await Promise.all(r),this.topology==null)return;let n=(0, $T.readPreferenceServerSelector)(F9.ReadPreference.primaryPreferred),s=this.topology.description,o=Array.from(s.servers.values());if(n(s,o).length!==0){let c=Array.from(this.s.sessionPool.sessions,({id:h})=>h);if(c.length!==0)try{class h extends VT.AbstractOperation{constructor(){super(...arguments),this.ns=je.MongoDBNamespace.fromString("admin.$cmd"),this.SERVER_COMMAND_RESPONSE_TYPE=xT.MongoDBResponse;}buildCommand(m,E){return {endSessions:c}}buildOptions(m){return {timeoutContext:m,readPreference:F9.ReadPreference.primaryPreferred,noResponse:!0}}get commandName(){return "endSessions"}}await(0,zT.executeOperation)(this,new h);}catch(h){(0, je.squashError)(h);}}let u=this.topology;this.topology=void 0,u.close();let{encrypter:a}=this.options;a&&await a.close(this);}db(e,r){r=r??{},e||(e=this.s.options.dbName);let n=Object.assign({},this.options,r);return new kT.Db(this,e,n)}static async connect(e,r){return await new this(e,r).connect()}startSession(e){let r=new N9.ClientSession(this,this.s.sessionPool,{explicit:true,...e},this.options);return this.s.activeSessions.add(r),r.once("ended",()=>{this.s.activeSessions.delete(r);}),r}async withSession(e,r){let n={owner:Symbol(),...typeof e=="object"?e:{}},s=typeof e=="function"?e:r;if(s==null)throw new Df.MongoInvalidArgumentError("Missing required callback parameter");let o=this.startSession(n);try{return await s(o)}finally{try{await o.endSession();}catch(i){(0, je.squashError)(i);}}}watch(e=[],r={}){return Array.isArray(e)||(r=e,e=[]),new IT.ChangeStream(this,e,(0, je.resolveOptions)(this,r))}};No.MongoClient=Ya;(0, WT.configureResourceManagement)(Ya.prototype);});var ao=c(Xa=>{g();Object.defineProperty(Xa,"__esModule",{value:true});Xa.configureResourceManagement=e1;Xa.configureExplicitResourceManagement=GT;function e1(t){Symbol.asyncDispose&&Object.defineProperty(t,Symbol.asyncDispose,{value:async function(){await this.asyncDispose();},enumerable:false,configurable:true,writable:true});}function GT(){let{MongoClient:t}=Nn(),{ClientSession:e}=uo(),{AbstractCursor:r}=Qe(),{ChangeStream:n}=gs();e1(t.prototype),e1(e.prototype),e1(r.prototype),e1(n.prototype);}});var Qe=c(Me=>{g();Object.defineProperty(Me,"__esModule",{value:true});Me.CursorTimeoutContext=Me.AbstractCursor=Me.CursorTimeoutMode=Me.CURSOR_FLAGS=void 0;var x9=a("stream"),Io=te(),ze=B(),HT=Pt(),I9=$e(),KT=Ll(),YT=W6(),v9=ar(),Ja=We(),XT=ao(),JT=uo(),Tf=ke(),qt=v();Me.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];function P9(){this.client.s.activeCursors.delete(this);}Me.CursorTimeoutMode=Object.freeze({ITERATION:"iteration",LIFETIME:"cursorLifetime"});var t1=class extends HT.TypedEventEmitter{constructor(e,r,n={}){if(super(),this.documents=null,this.hasEmittedClose=false,this.on("error",qt.noop),!e.s.isMongoClient)throw new ze.MongoRuntimeError("Cursor must be constructed with MongoClient");if(this.cursorClient=e,this.cursorNamespace=r,this.cursorId=null,this.initialized=false,this.isClosed=false,this.isKilled=false,this.cursorOptions={readPreference:n.readPreference&&n.readPreference instanceof Ja.ReadPreference?n.readPreference:Ja.ReadPreference.primary,...(0, Io.pluckBSONSerializeOptions)(n),timeoutMS:n?.timeoutContext?.csotEnabled()?n.timeoutContext.timeoutMS:n.timeoutMS,tailable:n.tailable,awaitData:n.awaitData},this.cursorOptions.timeoutMS!=null)if(n.timeoutMode==null)if(n.tailable){if(n.awaitData&&n.maxAwaitTimeMS!=null&&n.maxAwaitTimeMS>=this.cursorOptions.timeoutMS)throw new ze.MongoInvalidArgumentError("Cannot specify maxAwaitTimeMS >= timeoutMS for a tailable awaitData cursor");this.cursorOptions.timeoutMode=Me.CursorTimeoutMode.ITERATION;}else this.cursorOptions.timeoutMode=Me.CursorTimeoutMode.LIFETIME;else {if(n.tailable&&n.timeoutMode===Me.CursorTimeoutMode.LIFETIME)throw new ze.MongoInvalidArgumentError("Cannot set tailable cursor's timeoutMode to LIFETIME");this.cursorOptions.timeoutMode=n.timeoutMode;}else if(n.timeoutMode!=null)throw new ze.MongoInvalidArgumentError("Cannot set timeoutMode without setting timeoutMS");this.cursorOptions.omitMaxTimeMS=this.cursorOptions.timeoutMS!=null&&(this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&!this.cursorOptions.tailable||this.cursorOptions.tailable&&!this.cursorOptions.awaitData);let s=v9.ReadConcern.fromOptions(n);s&&(this.cursorOptions.readConcern=s),typeof n.batchSize=="number"&&(this.cursorOptions.batchSize=n.batchSize),n.comment!==void 0&&(this.cursorOptions.comment=n.comment),typeof n.maxTimeMS=="number"&&(this.cursorOptions.maxTimeMS=n.maxTimeMS),typeof n.maxAwaitTimeMS=="number"&&(this.cursorOptions.maxAwaitTimeMS=n.maxAwaitTimeMS),this.cursorSession=n.session??null,this.deserializationOptions={...this.cursorOptions,validation:{utf8:n?.enableUtf8Validation!==false}},this.timeoutContext=n.timeoutContext,this.signal=n.signal,this.abortListener=(0, qt.addAbortListener)(this.signal,()=>{this.close().then(void 0,qt.squashError);}),this.trackCursor();}get id(){return this.cursorId??void 0}get isDead(){return (this.cursorId?.isZero()??false)||this.isClosed||this.isKilled}get client(){return this.cursorClient}get server(){return this.selectedServer}get namespace(){return this.cursorNamespace}get readPreference(){return this.cursorOptions.readPreference}get readConcern(){return this.cursorOptions.readConcern}get session(){return this.cursorSession}set session(e){this.cursorSession=e;}get closed(){return this.isClosed&&(this.documents?.length??0)===0}get killed(){return this.isKilled}get loadBalanced(){return !!this.cursorClient.topology?.loadBalanced}async asyncDispose(){await this.close();}trackCursor(){this.cursorClient.s.activeCursors.add(this),this.listeners("close").includes(P9)||this.once("close",P9);}bufferedCount(){return this.documents?.length??0}readBufferedDocuments(e){let r=[],n=Math.min(e??this.documents?.length??0,this.documents?.length??0);for(let s=0;s<n;s++){let o=this.documents?.shift(this.deserializationOptions);o!=null&&r.push(o);}return r}async*[Symbol.asyncIterator](){if(this.signal?.throwIfAborted(),!this.closed)try{for(;;){if(this.isKilled||this.closed||this.cursorId!=null&&this.isDead&&(this.documents?.length??0)===0)return;let e=await this.next();if(e===null)return;yield e,this.signal?.throwIfAborted();}}finally{if(!this.isClosed)try{await this.close();}catch(e){(0, qt.squashError)(e);}}}stream(e){let r=new Bf(this),n=(0, qt.addAbortListener)(this.signal,function(){r.destroy(this.reason);});if(r.once("end",()=>{n?.[qt.kDispose]();}),e?.transform){let s=e.transform,o=r.pipe(new x9.Transform({objectMode:true,highWaterMark:1,transform(i,u,a){try{let c=s(i);a(void 0,c);}catch(c){a(c);}}}));return r.on("error",i=>o.emit("error",i)),o}return r}async hasNext(){if(this.signal?.throwIfAborted(),this.cursorId===Io.Long.ZERO)return false;this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&this.cursorId!=null&&this.timeoutContext?.refresh();try{do{if((this.documents?.length??0)!==0)return !0;await this.fetchBatch();}while(!this.isDead||(this.documents?.length??0)!==0)}finally{this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&this.timeoutContext?.clear();}return false}async next(){if(this.signal?.throwIfAborted(),this.cursorId===Io.Long.ZERO)throw new ze.MongoCursorExhaustedError;this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&this.cursorId!=null&&this.timeoutContext?.refresh();try{do{let e=this.documents?.shift(this.deserializationOptions);if(e!=null)return this.transform!=null?await this.transformDocument(e):e;await this.fetchBatch();}while(!this.isDead||(this.documents?.length??0)!==0)}finally{this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&this.timeoutContext?.clear();}return null}async tryNext(){if(this.signal?.throwIfAborted(),this.cursorId===Io.Long.ZERO)throw new ze.MongoCursorExhaustedError;this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&this.cursorId!=null&&this.timeoutContext?.refresh();try{let e=this.documents?.shift(this.deserializationOptions);if(e!=null)return this.transform!=null?await this.transformDocument(e):e;if(await this.fetchBatch(),e=this.documents?.shift(this.deserializationOptions),e!=null)return this.transform!=null?await this.transformDocument(e):e}finally{this.cursorOptions.timeoutMode===Me.CursorTimeoutMode.ITERATION&&this.timeoutContext?.clear();}return null}async forEach(e){if(this.signal?.throwIfAborted(),typeof e!="function")throw new ze.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let r of this)if(e(r)===false)break}async close(e){await this.cleanup(e?.timeoutMS);}async toArray(){this.signal?.throwIfAborted();let e=[];for await(let r of this){e.push(r);let n=this.readBufferedDocuments();if(this.transform!=null)for(let s of n)e.push(await this.transformDocument(s));else e.push(...n);}return e}addCursorFlag(e,r){if(this.throwIfInitialized(),!Me.CURSOR_FLAGS.includes(e))throw new ze.MongoInvalidArgumentError(`Flag ${e} is not one of ${Me.CURSOR_FLAGS}`);if(typeof r!="boolean")throw new ze.MongoInvalidArgumentError(`Flag ${e} must be a boolean value`);return this.cursorOptions[e]=r,this}map(e){this.throwIfInitialized();let r=this.transform;return r?this.transform=n=>e(r(n)):this.transform=e,this}withReadPreference(e){if(this.throwIfInitialized(),e instanceof Ja.ReadPreference)this.cursorOptions.readPreference=e;else if(typeof e=="string")this.cursorOptions.readPreference=Ja.ReadPreference.fromString(e);else throw new ze.MongoInvalidArgumentError(`Invalid read preference: ${e}`);return this}withReadConcern(e){this.throwIfInitialized();let r=v9.ReadConcern.fromOptions({readConcern:e});return r&&(this.cursorOptions.readConcern=r),this}maxTimeMS(e){if(this.throwIfInitialized(),typeof e!="number")throw new ze.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this.cursorOptions.maxTimeMS=e,this}batchSize(e){if(this.throwIfInitialized(),this.cursorOptions.tailable)throw new ze.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof e!="number")throw new ze.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this.cursorOptions.batchSize=e,this}rewind(){if(this.timeoutContext&&this.timeoutContext.owner!==this)throw new ze.MongoAPIError("Cannot rewind cursor that does not own its timeout context.");this.initialized&&(this.cursorId=null,this.documents?.clear(),this.timeoutContext?.clear(),this.timeoutContext=void 0,this.isClosed=false,this.isKilled=false,this.initialized=false,this.hasEmittedClose=false,this.trackCursor(),this.cursorSession?.explicit===false&&(this.cursorSession.hasEnded||this.cursorSession.endSession().then(void 0,qt.squashError),this.cursorSession=null));}async getMore(e){if(this.cursorId==null)throw new ze.MongoRuntimeError("Unexpected null cursor id. A cursor creating command should have set this");if(this.selectedServer==null)throw new ze.MongoRuntimeError("Unexpected null selectedServer. A cursor creating command should have set this");if(this.cursorSession==null)throw new ze.MongoRuntimeError("Unexpected null session. A cursor creating command should have set this");let r={...this.cursorOptions,session:this.cursorSession,batchSize:e},n=new KT.GetMoreOperation(this.cursorNamespace,this.cursorId,this.selectedServer,r);return await(0, I9.executeOperation)(this.cursorClient,n,this.timeoutContext)}async cursorInit(){this.cursorOptions.timeoutMS!=null&&(this.timeoutContext??=new r1(Tf.TimeoutContext.create({serverSelectionTimeoutMS:this.client.s.options.serverSelectionTimeoutMS,timeoutMS:this.cursorOptions.timeoutMS}),this));try{this.cursorSession??=this.cursorClient.startSession({owner:this,explicit:!1});let e=await this._initialize(this.cursorSession);this.cursorOptions.omitMaxTimeMS=this.cursorOptions.timeoutMS!=null;let r=e.response;this.selectedServer=e.server,this.cursorId=r.id,this.cursorNamespace=r.ns??this.namespace,this.documents=r,this.initialized=!0;}catch(e){throw this.initialized=true,await this.cleanup(void 0,e),e}this.isDead&&await this.cleanup();}async fetchBatch(){if(this.isClosed)return;if(this.isDead){await this.cleanup();return}if(this.cursorId==null&&(await this.cursorInit(),(this.documents?.length??0)!==0||this.isDead))return;let e=this.cursorOptions.batchSize||1e3;try{let r=await this.getMore(e);this.cursorId=r.id,this.documents=r;}catch(r){try{await this.cleanup(void 0,r);}catch(n){(0, qt.squashError)(n);}throw r}this.isDead&&await this.cleanup();}async cleanup(e,r){this.abortListener?.[qt.kDispose](),this.isClosed=true;let n=()=>e!=null?(this.timeoutContext?.clear(),new r1(Tf.TimeoutContext.create({serverSelectionTimeoutMS:this.client.s.options.serverSelectionTimeoutMS,timeoutMS:e}),this)):this.timeoutContext?.refreshed();await(async i=>{try{await i();}finally{this.emitClose();}})(async()=>{let i=this.cursorSession;if(i)try{if(!this.isKilled&&this.cursorId&&!this.cursorId.isZero()&&this.cursorNamespace&&this.selectedServer&&!i.hasEnded){this.isKilled=!0;let u=this.cursorId;this.cursorId=Io.Long.ZERO,await(0,I9.executeOperation)(this.cursorClient,new YT.KillCursorsOperation(u,this.cursorNamespace,this.selectedServer,{session:i}),n());}}catch(u){(0,qt.squashError)(u);}finally{i.owner===this&&await i.endSession({error:r}),i.inTransaction()||(0,JT.maybeClearPinnedConnection)(i,{error:r});}});}emitClose(){try{!this.hasEmittedClose&&((this.documents?.length??0)===0||this.isClosed)&&this.emit("close");}finally{this.hasEmittedClose=true;}}async transformDocument(e){if(this.transform==null)return e;try{let r=this.transform(e);if(r===null){let n="Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.";throw new ze.MongoAPIError(n)}return r}catch(r){try{await this.close();}catch(n){(0, qt.squashError)(n);}throw r}}throwIfInitialized(){if(this.initialized)throw new ze.MongoCursorInUseError}};Me.AbstractCursor=t1;t1.CLOSE="close";var Bf=class extends x9.Readable{constructor(e){super({objectMode:true,autoDestroy:false,highWaterMark:1}),this._readInProgress=false,this._cursor=e;}_read(e){this._readInProgress||(this._readInProgress=true,this._readNext());}_destroy(e,r){this._cursor.close().then(()=>r(e),n=>r(n));}_readNext(){if(this._cursor.id===Io.Long.ZERO){this.push(null);return}this._cursor.next().then(e=>{if(e==null)this.push(null);else if(this.destroyed)this._cursor.close().then(void 0,qt.squashError);else {if(this.push(e))return this._readNext();this._readInProgress=false;}},e=>e.message.match(/server is closed/)?(this._cursor.close().then(void 0,qt.squashError),this.push(null)):e.message.match(/operation was interrupted/)?this.push(null):this.destroy(e)).catch(e=>{this._readInProgress=false,this.destroy(e);});}};(0, XT.configureResourceManagement)(t1.prototype);var r1=class t extends Tf.TimeoutContext{constructor(e,r){super(),this.timeoutContext=e,this.owner=r;}get serverSelectionTimeout(){return this.timeoutContext.serverSelectionTimeout}get connectionCheckoutTimeout(){return this.timeoutContext.connectionCheckoutTimeout}get clearServerSelectionTimeout(){return this.timeoutContext.clearServerSelectionTimeout}get timeoutForSocketWrite(){return this.timeoutContext.timeoutForSocketWrite}get timeoutForSocketRead(){return this.timeoutContext.timeoutForSocketRead}csotEnabled(){return this.timeoutContext.csotEnabled()}refresh(){if(typeof this.owner!="symbol")return this.timeoutContext.refresh()}clear(){if(typeof this.owner!="symbol")return this.timeoutContext.clear()}get maxTimeMS(){return this.timeoutContext.maxTimeMS}get timeoutMS(){return this.timeoutContext.csotEnabled()?this.timeoutContext.timeoutMS:null}refreshed(){return new t(this.timeoutContext.refreshed(),this.owner)}addMaxTimeMSToCommand(e,r){this.timeoutContext.addMaxTimeMSToCommand(e,r);}getSocketTimeoutMS(){return this.timeoutContext.getSocketTimeoutMS()}};Me.CursorTimeoutContext=r1;});var Za=c(Qa=>{g();Object.defineProperty(Qa,"__esModule",{value:true});Qa.ExplainableCursor=void 0;var QT=Qe(),bf=class extends QT.AbstractCursor{resolveExplainTimeoutOptions(e,r){let n,s;return e==null&&r==null?(n=void 0,s=void 0):e!=null&&r==null?(n=typeof e!="object"||"verbosity"in e?e:void 0,s=typeof e=="object"&&"timeoutMS"in e?e:void 0):(n=e,s=r),{timeout:s,explain:n}}};Qa.ExplainableCursor=bf;});var Wi=c(ec=>{g();Object.defineProperty(ec,"__esModule",{value:true});ec.AggregationCursor=void 0;var Mf=B(),L9=ti(),k9=ri(),q9=$e(),ZT=v(),U9=Qe(),eB=Za(),Ff=class t extends eB.ExplainableCursor{constructor(e,r,n=[],s={}){super(e,r,s),this.pipeline=n,this.aggregateOptions=s;let o=this.pipeline[this.pipeline.length-1];if(this.cursorOptions.timeoutMS!=null&&this.cursorOptions.timeoutMode===U9.CursorTimeoutMode.ITERATION&&(o?.$merge!=null||o?.$out!=null))throw new Mf.MongoAPIError("Cannot use $out or $merge stage with ITERATION timeoutMode")}clone(){let e=(0, ZT.mergeOptions)({},this.aggregateOptions);return delete e.session,new t(this.client,this.namespace,this.pipeline,{...e})}map(e){return super.map(e)}async _initialize(e){let r={...this.aggregateOptions,...this.cursorOptions,session:e,signal:this.signal};if(r.explain)try{(0,L9.validateExplainTimeoutOptions)(r,L9.Explain.fromOptions(r));}catch{throw new Mf.MongoAPIError("timeoutMS cannot be used with explain when explain is specified in aggregateOptions")}let n=new k9.AggregateOperation(this.namespace,this.pipeline,r),s=await(0, q9.executeOperation)(this.client,n,this.timeoutContext);return {server:n.server,session:e,response:s}}async explain(e,r){let{explain:n,timeout:s}=this.resolveExplainTimeoutOptions(e,r);return (await(0, q9.executeOperation)(this.client,new k9.AggregateOperation(this.namespace,this.pipeline,{...this.aggregateOptions,...this.cursorOptions,...s,explain:n??true}))).shift(this.deserializationOptions)}addStage(e){if(this.throwIfInitialized(),this.cursorOptions.timeoutMS!=null&&this.cursorOptions.timeoutMode===U9.CursorTimeoutMode.ITERATION&&(e.$out!=null||e.$merge!=null))throw new Mf.MongoAPIError("Cannot use $out or $merge stage with ITERATION timeoutMode");return this.pipeline.push(e),this}group(e){return this.addStage({$group:e})}limit(e){return this.addStage({$limit:e})}match(e){return this.addStage({$match:e})}out(e){return this.addStage({$out:e})}project(e){return this.addStage({$project:e})}lookup(e){return this.addStage({$lookup:e})}redact(e){return this.addStage({$redact:e})}skip(e){return this.addStage({$skip:e})}sort(e){return this.addStage({$sort:e})}unwind(e){return this.addStage({$unwind:e})}geoNear(e){return this.addStage({$geoNear:e})}};ec.AggregationCursor=Ff;});var Rf=c(nc=>{g();Object.defineProperty(nc,"__esModule",{value:true});nc.CountOperation=void 0;var tB=ae(),rB=Be(),tc=he(),rc=class extends rB.CommandOperation{constructor(e,r,n){super({s:{namespace:e}},n),this.SERVER_COMMAND_RESPONSE_TYPE=tB.MongoDBResponse,this.options=n,this.collectionName=e.collection,this.query=r;}get commandName(){return "count"}buildCommandDocument(e,r){let n=this.options,s={count:this.collectionName,query:this.query};return typeof n.limit=="number"&&(s.limit=n.limit),typeof n.skip=="number"&&(s.skip=n.skip),n.hint!=null&&(s.hint=n.hint),typeof n.maxTimeMS=="number"&&(s.maxTimeMS=n.maxTimeMS),s}handleOk(e){return e.getNumber("n")??0}};nc.CountOperation=rc;(0, tc.defineAspects)(rc,[tc.Aspect.READ_OPERATION,tc.Aspect.RETRYABLE,tc.Aspect.SUPPORTS_RAW_DATA]);});var j9=c(oc=>{g();Object.defineProperty(oc,"__esModule",{value:true});oc.FindOperation=void 0;var Nf=ae(),nB=B(),sB=js(),oB=v(),iB=Be(),vo=he(),sc=class extends iB.CommandOperation{constructor(e,r={},n={}){if(super(void 0,n),this.SERVER_COMMAND_RESPONSE_TYPE=Nf.CursorResponse,this.options={...n},delete this.options.writeConcern,this.ns=e,typeof r!="object"||Array.isArray(r))throw new nB.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=r!=null&&r._bsontype==="ObjectId"?{_id:r}:r,this.SERVER_COMMAND_RESPONSE_TYPE=this.explain?Nf.ExplainedCursorResponse:Nf.CursorResponse;}get commandName(){return "find"}buildOptions(e){return {...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:this.session,timeoutContext:e}}handleOk(e){return e}buildCommandDocument(){return uB(this.ns,this.filter,this.options)}};oc.FindOperation=sc;function uB(t,e,r){let n={find:t.collection,filter:e};if(r.sort&&(n.sort=(0, sB.formatSort)(r.sort)),r.projection){let s=r.projection;s&&Array.isArray(s)&&(s=s.length?s.reduce((o,i)=>(o[i]=1,o),{}):{_id:1}),n.projection=s;}return r.hint&&(n.hint=(0, oB.normalizeHintField)(r.hint)),typeof r.skip=="number"&&(n.skip=r.skip),typeof r.limit=="number"&&(r.limit<0?(n.limit=-r.limit,n.singleBatch=true):n.limit=r.limit),typeof r.batchSize=="number"&&(r.batchSize<0?n.limit=-r.batchSize:r.batchSize===r.limit?n.batchSize=r.batchSize+1:n.batchSize=r.batchSize),typeof r.singleBatch=="boolean"&&(n.singleBatch=r.singleBatch),r.comment!==void 0&&(n.comment=r.comment),r.max&&(n.max=r.max),r.min&&(n.min=r.min),typeof r.returnKey=="boolean"&&(n.returnKey=r.returnKey),typeof r.showRecordId=="boolean"&&(n.showRecordId=r.showRecordId),typeof r.tailable=="boolean"&&(n.tailable=r.tailable),typeof r.oplogReplay=="boolean"&&(n.oplogReplay=r.oplogReplay),typeof r.timeout=="boolean"?n.noCursorTimeout=!r.timeout:typeof r.noCursorTimeout=="boolean"&&(n.noCursorTimeout=r.noCursorTimeout),typeof r.awaitData=="boolean"&&(n.awaitData=r.awaitData),typeof r.allowPartialResults=="boolean"&&(n.allowPartialResults=r.allowPartialResults),typeof r.allowDiskUse=="boolean"&&(n.allowDiskUse=r.allowDiskUse),r.let&&(n.let=r.let),n}(0, vo.defineAspects)(sc,[vo.Aspect.READ_OPERATION,vo.Aspect.RETRYABLE,vo.Aspect.EXPLAINABLE,vo.Aspect.CURSOR_CREATING,vo.Aspect.SUPPORTS_RAW_DATA]);});var Lf=c(Po=>{g();Object.defineProperty(Po,"__esModule",{value:true});Po.FindCursor=Po.FLAGS=void 0;var aB=ae(),rr=B(),z9=ti(),cB=Rf(),If=$e(),V9=j9(),vf=js(),Pf=v(),lB=Za();Po.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];var xf=class t extends lB.ExplainableCursor{constructor(e,r,n={},s={}){super(e,r,s),this.numReturned=0,this.cursorFilter=n,this.findOptions=s,s.sort!=null&&(this.findOptions.sort=(0, vf.formatSort)(s.sort));}clone(){let e=(0, Pf.mergeOptions)({},this.findOptions);return delete e.session,new t(this.client,this.namespace,this.cursorFilter,{...e})}map(e){return super.map(e)}async _initialize(e){let r={...this.findOptions,...this.cursorOptions,session:e,signal:this.signal};if(r.explain)try{(0,z9.validateExplainTimeoutOptions)(r,z9.Explain.fromOptions(r));}catch{throw new rr.MongoAPIError("timeoutMS cannot be used with explain when explain is specified in findOptions")}let n=new V9.FindOperation(this.namespace,this.cursorFilter,r),s=await(0, If.executeOperation)(this.client,n,this.timeoutContext);return this.numReturned=s.batchSize,{server:n.server,session:e,response:s}}async getMore(e){let r=this.numReturned;if(r){let s=this.findOptions.limit;if(e=s&&s>0&&r+e>s?s-r:e,e<=0){try{await this.close();}catch(o){(0, Pf.squashError)(o);}return aB.CursorResponse.emptyGetMore}}let n=await super.getMore(e);return this.numReturned=this.numReturned+n.batchSize,n}async count(e){if((0, Pf.emitWarningOnce)("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof e=="boolean")throw new rr.MongoInvalidArgumentError("Invalid first parameter to count");return await(0, If.executeOperation)(this.client,new cB.CountOperation(this.namespace,this.cursorFilter,{...this.findOptions,...this.cursorOptions,...e}))}async explain(e,r){let{explain:n,timeout:s}=this.resolveExplainTimeoutOptions(e,r);return (await(0, If.executeOperation)(this.client,new V9.FindOperation(this.namespace,this.cursorFilter,{...this.findOptions,...this.cursorOptions,...s,explain:n??true}))).shift(this.deserializationOptions)}filter(e){return this.throwIfInitialized(),this.cursorFilter=e,this}hint(e){return this.throwIfInitialized(),this.findOptions.hint=e,this}min(e){return this.throwIfInitialized(),this.findOptions.min=e,this}max(e){return this.throwIfInitialized(),this.findOptions.max=e,this}returnKey(e){return this.throwIfInitialized(),this.findOptions.returnKey=e,this}showRecordId(e){return this.throwIfInitialized(),this.findOptions.showRecordId=e,this}addQueryModifier(e,r){if(this.throwIfInitialized(),e[0]!=="$")throw new rr.MongoInvalidArgumentError(`${e} is not a valid query modifier`);switch(e.substr(1)){case "comment":this.findOptions.comment=r;break;case "explain":this.findOptions.explain=r;break;case "hint":this.findOptions.hint=r;break;case "max":this.findOptions.max=r;break;case "maxTimeMS":this.findOptions.maxTimeMS=r;break;case "min":this.findOptions.min=r;break;case "orderby":this.findOptions.sort=(0, vf.formatSort)(r);break;case "query":this.cursorFilter=r;break;case "returnKey":this.findOptions.returnKey=r;break;case "showDiskLoc":this.findOptions.showRecordId=r;break;default:throw new rr.MongoInvalidArgumentError(`Invalid query modifier: ${e}`)}return this}comment(e){return this.throwIfInitialized(),this.findOptions.comment=e,this}maxAwaitTimeMS(e){if(this.throwIfInitialized(),typeof e!="number")throw new rr.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this.findOptions.maxAwaitTimeMS=e,this}maxTimeMS(e){if(this.throwIfInitialized(),typeof e!="number")throw new rr.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this.findOptions.maxTimeMS=e,this}project(e){return this.throwIfInitialized(),this.findOptions.projection=e,this}sort(e,r){if(this.throwIfInitialized(),this.findOptions.tailable)throw new rr.MongoTailableCursorError("Tailable cursor does not support sorting");return this.findOptions.sort=(0, vf.formatSort)(e,r),this}allowDiskUse(e=true){if(this.throwIfInitialized(),!this.findOptions.sort)throw new rr.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');return e?(this.findOptions.allowDiskUse=true,this):(this.findOptions.allowDiskUse=false,this)}collation(e){return this.throwIfInitialized(),this.findOptions.collation=e,this}limit(e){if(this.throwIfInitialized(),this.findOptions.tailable)throw new rr.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof e!="number")throw new rr.MongoInvalidArgumentError('Operation "limit" requires an integer');return this.findOptions.limit=e,this}skip(e){if(this.throwIfInitialized(),this.findOptions.tailable)throw new rr.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof e!="number")throw new rr.MongoInvalidArgumentError('Operation "skip" requires an integer');return this.findOptions.skip=e,this}};Po.FindCursor=xf;});var qf=c(ic=>{g();Object.defineProperty(ic,"__esModule",{value:true});ic.ListIndexesCursor=void 0;var hB=$e(),dB=zi(),fB=Qe(),kf=class t extends fB.AbstractCursor{constructor(e,r){super(e.client,e.s.namespace,r),this.parent=e,this.options=r;}clone(){return new t(this.parent,{...this.options,...this.cursorOptions})}async _initialize(e){let r=new dB.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:e}),n=await(0, hB.executeOperation)(this.parent.client,r,this.timeoutContext);return {server:r.server,session:e,response:n}}};ic.ListIndexesCursor=kf;});var W9=c(uc=>{g();Object.defineProperty(uc,"__esModule",{value:true});uc.ListSearchIndexesCursor=void 0;var mB=Wi(),Uf=class extends mB.AggregationCursor{constructor({fullNamespace:e,client:r},n,s={}){let o=n==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:n}}];super(r,e,o,s);}};uc.ListSearchIndexesCursor=Uf;});var $9=c(cc=>{g();Object.defineProperty(cc,"__esModule",{value:true});cc.DistinctOperation=void 0;var pB=ae(),EB=Be(),n1=he(),ac=class extends EB.CommandOperation{constructor(e,r,n,s){super(e,s),this.SERVER_COMMAND_RESPONSE_TYPE=pB.MongoDBResponse,this.options=s??{},this.collection=e,this.key=r,this.query=n;}get commandName(){return "distinct"}buildCommandDocument(e){let r={distinct:this.collection.collectionName,key:this.key,query:this.query};return this.options.comment!==void 0&&(r.comment=this.options.comment),this.options.hint!=null&&(r.hint=this.options.hint),r}handleOk(e){return this.explain?e.toObject(this.bsonOptions):e.toObject(this.bsonOptions).values}};cc.DistinctOperation=ac;(0, n1.defineAspects)(ac,[n1.Aspect.READ_OPERATION,n1.Aspect.RETRYABLE,n1.Aspect.EXPLAINABLE,n1.Aspect.SUPPORTS_RAW_DATA]);});var G9=c(hc=>{g();Object.defineProperty(hc,"__esModule",{value:true});hc.EstimatedDocumentCountOperation=void 0;var gB=ae(),AB=Be(),s1=he(),lc=class extends AB.CommandOperation{constructor(e,r={}){super(e,r),this.SERVER_COMMAND_RESPONSE_TYPE=gB.MongoDBResponse,this.options=r,this.collectionName=e.collectionName;}get commandName(){return "count"}buildCommandDocument(e,r){let n={count:this.collectionName};return typeof this.options.maxTimeMS=="number"&&(n.maxTimeMS=this.options.maxTimeMS),this.options.comment!==void 0&&(n.comment=this.options.comment),n}handleOk(e){return e.getNumber("n")??0}};hc.EstimatedDocumentCountOperation=lc;(0, s1.defineAspects)(lc,[s1.Aspect.READ_OPERATION,s1.Aspect.RETRYABLE,s1.Aspect.CURSOR_CREATING,s1.Aspect.SUPPORTS_RAW_DATA]);});var Wf=c(Ut=>{g();Object.defineProperty(Ut,"__esModule",{value:true});Ut.FindOneAndUpdateOperation=Ut.FindOneAndReplaceOperation=Ut.FindOneAndDeleteOperation=Ut.FindAndModifyOperation=Ut.ReturnDocument=void 0;var CB=ae(),Wn=B(),SB=We(),yB=js(),dc=v(),OB=Be(),o1=he();Ut.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});function H9(t,e){return t.new=e.returnDocument===Ut.ReturnDocument.AFTER,t.upsert=e.upsert===true,e.bypassDocumentValidation===true&&(t.bypassDocumentValidation=e.bypassDocumentValidation),t}var Os=class extends OB.CommandOperation{constructor(e,r,n){super(e,n),this.SERVER_COMMAND_RESPONSE_TYPE=CB.MongoDBResponse,this.options=n,this.readPreference=SB.ReadPreference.primary,this.collection=e,this.query=r;}get commandName(){return "findAndModify"}buildCommandDocument(e,r){let n=this.options,s={findAndModify:this.collection.collectionName,query:this.query,remove:false,new:false,upsert:false};n.includeResultMetadata??=false;let o=(0, yB.formatSort)(n.sort);if(o&&(s.sort=o),n.projection&&(s.fields=n.projection),n.maxTimeMS&&(s.maxTimeMS=n.maxTimeMS),n.writeConcern&&(s.writeConcern=n.writeConcern),n.let&&(s.let=n.let),n.comment!==void 0&&(s.comment=n.comment),(0, dc.decorateWithCollation)(s,n),n.hint){if(this.writeConcern?.w===0&&(0, dc.maxWireVersion)(e)<9)throw new Wn.MongoCompatibilityError("hint for the findAndModify command is only supported on MongoDB 4.4+");s.hint=n.hint;}return s}handleOk(e){let r=super.handleOk(e);return this.options.includeResultMetadata?r:r.value??null}};Ut.FindAndModifyOperation=Os;var jf=class extends Os{constructor(e,r,n){if(r==null||typeof r!="object")throw new Wn.MongoInvalidArgumentError('Argument "filter" must be an object');super(e,r,n);}buildCommandDocument(e,r){let n=super.buildCommandDocument(e,r);return n.remove=true,n}};Ut.FindOneAndDeleteOperation=jf;var zf=class extends Os{constructor(e,r,n,s){if(r==null||typeof r!="object")throw new Wn.MongoInvalidArgumentError('Argument "filter" must be an object');if(n==null||typeof n!="object")throw new Wn.MongoInvalidArgumentError('Argument "replacement" must be an object');if((0, dc.hasAtomicOperators)(n))throw new Wn.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(e,r,s),this.replacement=n;}buildCommandDocument(e,r){let n=super.buildCommandDocument(e,r);return n.update=this.replacement,H9(n,this.options),n}};Ut.FindOneAndReplaceOperation=zf;var Vf=class extends Os{constructor(e,r,n,s){if(r==null||typeof r!="object")throw new Wn.MongoInvalidArgumentError('Argument "filter" must be an object');if(n==null||typeof n!="object")throw new Wn.MongoInvalidArgumentError('Argument "update" must be an object');if(!(0, dc.hasAtomicOperators)(n,s))throw new Wn.MongoInvalidArgumentError("Update document requires atomic operators");super(e,r,s),this.update=n,this.options=s;}buildCommandDocument(e,r){let n=super.buildCommandDocument(e,r);return n.update=this.update,H9(n,this.options),this.options.arrayFilters&&(n.arrayFilters=this.options.arrayFilters),n}};Ut.FindOneAndUpdateOperation=Vf;(0, o1.defineAspects)(Os,[o1.Aspect.WRITE_OPERATION,o1.Aspect.RETRYABLE,o1.Aspect.EXPLAINABLE,o1.Aspect.SUPPORTS_RAW_DATA]);});var K9=c(fc=>{g();Object.defineProperty(fc,"__esModule",{value:true});fc.CreateSearchIndexesOperation=void 0;var wB=ae(),_B=he(),$f=class extends _B.AbstractOperation{constructor(e,r){super(),this.SERVER_COMMAND_RESPONSE_TYPE=wB.MongoDBResponse,this.collection=e,this.descriptions=r,this.ns=e.fullNamespace;}get commandName(){return "createSearchIndexes"}buildCommand(e,r){return {createSearchIndexes:this.collection.fullNamespace.collection,indexes:this.descriptions}}handleOk(e){return super.handleOk(e).indexesCreated.map(r=>r.name)}buildOptions(e){return {session:this.session,timeoutContext:e}}};fc.CreateSearchIndexesOperation=$f;});var X9=c(mc=>{g();Object.defineProperty(mc,"__esModule",{value:true});mc.DropSearchIndexOperation=void 0;var DB=ae(),Y9=B(),TB=he(),Gf=class extends TB.AbstractOperation{constructor(e,r){super(),this.SERVER_COMMAND_RESPONSE_TYPE=DB.MongoDBResponse,this.collection=e,this.name=r,this.ns=e.fullNamespace;}get commandName(){return "dropSearchIndex"}buildCommand(e,r){let s={dropSearchIndex:this.collection.fullNamespace.collection};return typeof this.name=="string"&&(s.name=this.name),s}handleOk(e){}buildOptions(e){return {session:this.session,timeoutContext:e}}handleError(e){if(!(e instanceof Y9.MongoServerError&&e.code===Y9.MONGODB_ERROR_CODES.NamespaceNotFound))throw e}};mc.DropSearchIndexOperation=Gf;});var J9=c(pc=>{g();Object.defineProperty(pc,"__esModule",{value:true});pc.UpdateSearchIndexOperation=void 0;var BB=ae(),bB=he(),Hf=class extends bB.AbstractOperation{constructor(e,r,n){super(),this.SERVER_COMMAND_RESPONSE_TYPE=BB.MongoDBResponse,this.collection=e,this.name=r,this.definition=n,this.ns=e.fullNamespace;}get commandName(){return "updateSearchIndex"}buildCommand(e,r){return {updateSearchIndex:this.collection.fullNamespace.collection,name:this.name,definition:this.definition}}handleOk(e){}buildOptions(e){return {session:this.session,timeoutContext:e}}};pc.UpdateSearchIndexOperation=Hf;});var wo=c(gc=>{g();Object.defineProperty(gc,"__esModule",{value:true});gc.Collection=void 0;var MB=te(),FB=bl(),RB=Fl(),NB=gs(),IB=Wi(),vB=Lf(),PB=qf(),xB=W9(),xo=B(),LB=Rf(),Q9=gl(),kB=$9(),qB=G9(),Pe=$e(),Kf=Wf(),Ec=zi(),UB=Al(),jB=wd(),zB=K9(),VB=X9(),WB=J9(),Yf=yl(),$B=ar(),Xf=We(),le=v(),Z9=dt(),Jf=class{constructor(e,r,n){this.db=e,this.s={db:e,options:n,namespace:new le.MongoDBCollectionNamespace(e.databaseName,r),pkFactory:e.options?.pkFactory??le.DEFAULT_PK_FACTORY,readPreference:Xf.ReadPreference.fromOptions(n),bsonOptions:(0, MB.resolveBSONOptions)(n,e),readConcern:$B.ReadConcern.fromOptions(n),writeConcern:Z9.WriteConcern.fromOptions(n)},this.client=e.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(){return this.s.readConcern==null?this.db.readConcern:this.s.readConcern}get readPreference(){return this.s.readPreference==null?this.db.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern==null?this.db.writeConcern:this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(e){this.s.collectionHint=(0, le.normalizeHintField)(e);}get timeoutMS(){return this.s.options.timeoutMS}async insertOne(e,r){return await(0, Pe.executeOperation)(this.client,new UB.InsertOneOperation(this,e,(0, le.resolveOptions)(this,r)))}async insertMany(e,r){if(!Array.isArray(e))throw new xo.MongoInvalidArgumentError('Argument "docs" must be an array of documents');r=(0, le.resolveOptions)(this,r??{});let n=Z9.WriteConcern.fromOptions(r)?.w!==0;try{let s=await this.bulkWrite(e.map(o=>({insertOne:{document:o}})),r);return {acknowledged:n,insertedCount:s.insertedCount,insertedIds:s.insertedIds}}catch(s){throw s&&s.message==="Operation must be an object with an operation key"?new xo.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values"):s}}async bulkWrite(e,r){if(!Array.isArray(e))throw new xo.MongoInvalidArgumentError('Argument "operations" must be an array of documents');r=(0, le.resolveOptions)(this,r??{}),this.client.topology!=null||await(0, Pe.autoConnect)(this.client);let s=r.ordered===false?this.initializeUnorderedBulkOp(r):this.initializeOrderedBulkOp(r);for(let o of e)s.raw(o);return await s.execute({...r})}async updateOne(e,r,n){return await(0, Pe.executeOperation)(this.client,new Yf.UpdateOneOperation(this.s.namespace,e,r,(0, le.resolveOptions)(this,n)))}async replaceOne(e,r,n){return await(0, Pe.executeOperation)(this.client,new Yf.ReplaceOneOperation(this.s.namespace,e,r,(0, le.resolveOptions)(this,n)))}async updateMany(e,r,n){return await(0, Pe.executeOperation)(this.client,new Yf.UpdateManyOperation(this.s.namespace,e,r,(0, le.resolveOptions)(this,n)))}async deleteOne(e={},r={}){return await(0, Pe.executeOperation)(this.client,new Q9.DeleteOneOperation(this.s.namespace,e,(0, le.resolveOptions)(this,r)))}async deleteMany(e={},r={}){return await(0, Pe.executeOperation)(this.client,new Q9.DeleteManyOperation(this.s.namespace,e,(0, le.resolveOptions)(this,r)))}async rename(e,r){return await(0, Pe.executeOperation)(this.client,new jB.RenameOperation(this,e,(0, le.resolveOptions)(void 0,{...r,readPreference:Xf.ReadPreference.PRIMARY})))}async drop(e){return await this.db.dropCollection(this.collectionName,e)}async findOne(e={},r={}){let{batchSize:n,noCursorTimeout:s,...o}=r;o.singleBatch=true;let i=this.find(e,o).limit(1),u=await i.next();return await i.close(),u}find(e={},r={}){return new vB.FindCursor(this.client,this.s.namespace,e,(0, le.resolveOptions)(this,r))}async options(e){e=(0, le.resolveOptions)(this,e);let[r]=await this.db.listCollections({name:this.collectionName},{...e,nameOnly:false}).toArray();if(r==null||r.options==null)throw new xo.MongoAPIError(`collection ${this.namespace} not found`);return r.options}async isCapped(e){let{capped:r}=await this.options(e);return !!r}async createIndex(e,r){return (await(0, Pe.executeOperation)(this.client,Ec.CreateIndexesOperation.fromIndexSpecification(this,this.collectionName,e,(0, le.resolveOptions)(this,r))))[0]}async createIndexes(e,r){return await(0, Pe.executeOperation)(this.client,Ec.CreateIndexesOperation.fromIndexDescriptionArray(this,this.collectionName,e,(0, le.resolveOptions)(this,{...r,maxTimeMS:void 0})))}async dropIndex(e,r){return await(0, Pe.executeOperation)(this.client,new Ec.DropIndexOperation(this,e,{...(0, le.resolveOptions)(this,r),readPreference:Xf.ReadPreference.primary}))}async dropIndexes(e){try{return await(0,Pe.executeOperation)(this.client,new Ec.DropIndexOperation(this,"*",(0,le.resolveOptions)(this,e))),!0}catch(r){if(r instanceof xo.MongoOperationTimeoutError)throw r;return false}}listIndexes(e){return new PB.ListIndexesCursor(this,(0, le.resolveOptions)(this,e))}async indexExists(e,r){let n=Array.isArray(e)?e:[e],s=new Set(await this.listIndexes(r).map(({name:o})=>o).toArray());return n.every(o=>s.has(o))}async indexInformation(e){return await this.indexes({...e,full:e?.full??false})}async estimatedDocumentCount(e){return await(0, Pe.executeOperation)(this.client,new qB.EstimatedDocumentCountOperation(this,(0, le.resolveOptions)(this,e)))}async countDocuments(e={},r={}){let n=[];n.push({$match:e}),typeof r.skip=="number"&&n.push({$skip:r.skip}),typeof r.limit=="number"&&n.push({$limit:r.limit}),n.push({$group:{_id:1,n:{$sum:1}}});let s=this.aggregate(n,r),o=await s.next();return await s.close(),o?.n??0}async distinct(e,r={},n={}){return await(0, Pe.executeOperation)(this.client,new kB.DistinctOperation(this,e,r,(0, le.resolveOptions)(this,n)))}async indexes(e){let r=await this.listIndexes(e).toArray();return e?.full??true?r:Object.fromEntries(r.map(({name:o,key:i})=>[o,Object.entries(i)]))}async findOneAndDelete(e,r){return await(0, Pe.executeOperation)(this.client,new Kf.FindOneAndDeleteOperation(this,e,(0, le.resolveOptions)(this,r)))}async findOneAndReplace(e,r,n){return await(0, Pe.executeOperation)(this.client,new Kf.FindOneAndReplaceOperation(this,e,r,(0, le.resolveOptions)(this,n)))}async findOneAndUpdate(e,r,n){return await(0, Pe.executeOperation)(this.client,new Kf.FindOneAndUpdateOperation(this,e,r,(0, le.resolveOptions)(this,n)))}aggregate(e=[],r){if(!Array.isArray(e))throw new xo.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new IB.AggregationCursor(this.client,this.s.namespace,e,(0, le.resolveOptions)(this,r))}watch(e=[],r={}){return Array.isArray(e)||(r=e,e=[]),new NB.ChangeStream(this,e,(0, le.resolveOptions)(this,r))}initializeUnorderedBulkOp(e){return new RB.UnorderedBulkOperation(this,(0, le.resolveOptions)(this,e))}initializeOrderedBulkOp(e){return new FB.OrderedBulkOperation(this,(0, le.resolveOptions)(this,e))}async count(e={},r={}){return await(0, Pe.executeOperation)(this.client,new LB.CountOperation(this.fullNamespace,e,(0, le.resolveOptions)(this,r)))}listSearchIndexes(e,r){r=typeof e=="object"?e:r??{};let n=e==null||typeof e=="object"?null:e;return new xB.ListSearchIndexesCursor(this,n,r)}async createSearchIndex(e){let[r]=await this.createSearchIndexes([e]);return r}async createSearchIndexes(e){return await(0, Pe.executeOperation)(this.client,new zB.CreateSearchIndexesOperation(this,e))}async dropSearchIndex(e){return await(0, Pe.executeOperation)(this.client,new VB.DropSearchIndexOperation(this,e))}async updateSearchIndex(e,r){return await(0, Pe.executeOperation)(this.client,new WB.UpdateSearchIndexOperation(this,e,r))}};gc.Collection=Jf;});var e3=c(Ac=>{g();Object.defineProperty(Ac,"__esModule",{value:true});Ac.ChangeStreamCursor=void 0;var Qf=gs(),e7=Ne(),GB=ri(),HB=$e(),t7=v(),KB=Qe(),Zf=class t extends KB.AbstractCursor{constructor(e,r,n=[],s={}){super(e,r,{...s,tailable:true,awaitData:true}),this.pipeline=n,this.changeStreamCursorOptions=s,this._resumeToken=null,this.startAtOperationTime=s.startAtOperationTime??null,s.startAfter?this.resumeToken=s.startAfter:s.resumeAfter&&(this.resumeToken=s.resumeAfter);}set resumeToken(e){this._resumeToken=e,this.emit(Qf.ChangeStream.RESUME_TOKEN_CHANGED,e);}get resumeToken(){return this._resumeToken}get resumeOptions(){let e={...this.changeStreamCursorOptions};for(let r of ["resumeAfter","startAfter","startAtOperationTime"])delete e[r];return this.resumeToken!=null?this.changeStreamCursorOptions.startAfter&&!this.hasReceived?e.startAfter=this.resumeToken:e.resumeAfter=this.resumeToken:this.startAtOperationTime!=null&&(e.startAtOperationTime=this.startAtOperationTime),e}cacheResumeToken(e){this.bufferedCount()===0&&this.postBatchResumeToken?this.resumeToken=this.postBatchResumeToken:this.resumeToken=e,this.hasReceived=true;}_processBatch(e){let{postBatchResumeToken:r}=e;r&&(this.postBatchResumeToken=r,e.batchSize===0&&(this.resumeToken=r));}clone(){return new t(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}async _initialize(e){let r=new GB.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.changeStreamCursorOptions,session:e}),n=await(0, HB.executeOperation)(e.client,r,this.timeoutContext),s=r.server;return this.maxWireVersion=(0, t7.maxWireVersion)(s),this.startAtOperationTime==null&&this.changeStreamCursorOptions.resumeAfter==null&&this.changeStreamCursorOptions.startAfter==null&&(this.startAtOperationTime=n.operationTime),this._processBatch(n),this.emit(e7.INIT,n),this.emit(e7.RESPONSE),{server:s,session:e,response:n}}async getMore(e){let r=await super.getMore(e);return this.maxWireVersion=(0, t7.maxWireVersion)(this.server),this._processBatch(r),this.emit(Qf.ChangeStream.MORE,r),this.emit(Qf.ChangeStream.RESPONSE),r}};Ac.ChangeStreamCursor=Zf;});var gs=c(Sc=>{g();Object.defineProperty(Sc,"__esModule",{value:true});Sc.ChangeStream=void 0;var YB=wo(),Dr=Ne(),XB=Qe(),JB=e3(),QB=Aa(),He=B(),ZB=Nn(),eb=Pt(),tb=ao(),rb=ke(),kr=v(),nb=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],ws={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},sb=[Dr.RESUME_TOKEN_CHANGED,Dr.END,Dr.CLOSE],ob="A change stream document has been received that lacks a resume token (_id).",Cc="ChangeStream is closed",nr=class t extends eb.TypedEventEmitter{async asyncDispose(){await this.close();}constructor(e,r=[],n={}){super(),this.pipeline=r,this.options={...n};let s;if(delete this.options.writeConcern,e instanceof YB.Collection)this.type=ws.COLLECTION,s=e.s.db.client.options.serverSelectionTimeoutMS;else if(e instanceof QB.Db)this.type=ws.DATABASE,s=e.client.options.serverSelectionTimeoutMS;else if(e instanceof ZB.MongoClient)this.type=ws.CLUSTER,s=e.options.serverSelectionTimeoutMS;else throw new He.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");this.contextOwner=Symbol(),this.parent=e,this.namespace=e.s.namespace,!this.options.readPreference&&e.readPreference&&(this.options.readPreference=e.readPreference),this.cursor=this._createChangeStreamCursor(n),this.isClosed=false,this.mode=false,this.on("newListener",o=>{o==="change"&&this.cursor&&this.listenerCount("change")===0&&this._streamEvents(this.cursor);}),this.on("removeListener",o=>{o==="change"&&this.listenerCount("change")===0&&this.cursor&&this.cursorStream?.removeAllListeners("data");}),this.options.timeoutMS!=null&&(this.timeoutContext=new rb.CSOTTimeoutContext({timeoutMS:this.options.timeoutMS,serverSelectionTimeoutMS:s}));}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator(),this.timeoutContext?.refresh();try{for(;;)try{return await this.cursor.hasNext()}catch(e){try{await this._processErrorIteratorMode(e,this.cursor.id!=null);}catch(r){if(r instanceof He.MongoOperationTimeoutError&&this.cursor.id==null)throw r;try{await this.close();}catch(n){(0,kr.squashError)(n);}throw r}}}finally{this.timeoutContext?.clear();}}async next(){this._setIsIterator(),this.timeoutContext?.refresh();try{for(;;)try{let e=await this.cursor.next();return this._processChange(e??null)}catch(e){try{await this._processErrorIteratorMode(e,this.cursor.id!=null);}catch(r){if(r instanceof He.MongoOperationTimeoutError&&this.cursor.id==null)throw r;try{await this.close();}catch(n){(0,kr.squashError)(n);}throw r}}}finally{this.timeoutContext?.clear();}}async tryNext(){this._setIsIterator(),this.timeoutContext?.refresh();try{for(;;)try{let e=await this.cursor.tryNext();return e?this._processChange(e):null}catch(e){try{await this._processErrorIteratorMode(e,this.cursor.id!=null);}catch(r){if(r instanceof He.MongoOperationTimeoutError&&this.cursor.id==null)throw r;try{await this.close();}catch(n){(0,kr.squashError)(n);}throw r}}}finally{this.timeoutContext?.clear();}}async*[Symbol.asyncIterator](){if(!this.closed)try{for(;;)yield await this.next();}finally{try{await this.close();}catch(e){(0, kr.squashError)(e);}}}get closed(){return this.isClosed||this.cursor.closed}async close(){this.timeoutContext?.clear(),this.timeoutContext=void 0,this.isClosed=true;let e=this.cursor;try{await e.close();}finally{this._endStream();}}stream(e){if(this.closed)throw new He.MongoChangeStreamError(Cc);return this.streamOptions=e,this.cursor.stream(e)}_setIsEmitter(){if(this.mode==="iterator")throw new He.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this.mode="emitter";}_setIsIterator(){if(this.mode==="emitter")throw new He.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this.mode="iterator";}_createChangeStreamCursor(e){let r=(0, kr.filterOptions)(e,nb);this.type===ws.CLUSTER&&(r.allChangesForCluster=true);let n=[{$changeStream:r},...this.pipeline],s=this.type===ws.CLUSTER?this.parent:this.type===ws.DATABASE?this.parent.client:this.type===ws.COLLECTION?this.parent.client:null;if(s==null)throw new He.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);let o=new JB.ChangeStreamCursor(s,this.namespace,n,{...e,timeoutContext:this.timeoutContext?new XB.CursorTimeoutContext(this.timeoutContext,this.contextOwner):void 0});for(let i of sb)o.on(i,u=>this.emit(i,u));return this.listenerCount(t.CHANGE)>0&&this._streamEvents(o),o}_closeEmitterModeWithError(e){this.emit(t.ERROR,e),this.close().then(void 0,kr.squashError);}_streamEvents(e){this._setIsEmitter();let r=this.cursorStream??e.stream();this.cursorStream=r,r.on("data",n=>{try{let s=this._processChange(n);this.emit(t.CHANGE,s);}catch(s){this.emit(t.ERROR,s);}this.timeoutContext?.refresh();}),r.on("error",n=>this._processErrorStreamMode(n,this.cursor.id!=null));}_endStream(){this.cursorStream?.removeAllListeners("data"),this.cursorStream?.removeAllListeners("close"),this.cursorStream?.removeAllListeners("end"),this.cursorStream?.destroy(),this.cursorStream=void 0;}_processChange(e){if(this.isClosed)throw new He.MongoAPIError(Cc);if(e==null)throw new He.MongoRuntimeError(Cc);if(e&&!e._id)throw new He.MongoChangeStreamError(ob);return this.cursor.cacheResumeToken(e._id),this.options.startAtOperationTime=void 0,e}_processErrorStreamMode(e,r){this.isClosed||(r&&((0, He.isResumableError)(e,this.cursor.maxWireVersion)||e instanceof He.MongoOperationTimeoutError)?(this._endStream(),this.cursor.close().then(()=>this._resume(e),n=>((0, kr.squashError)(n),this._resume(e))).then(()=>{e instanceof He.MongoOperationTimeoutError&&this.emit(t.ERROR,e);},()=>this._closeEmitterModeWithError(e))):this._closeEmitterModeWithError(e));}async _processErrorIteratorMode(e,r){if(this.isClosed)throw new He.MongoAPIError(Cc);if(r&&((0, He.isResumableError)(e,this.cursor.maxWireVersion)||e instanceof He.MongoOperationTimeoutError)){try{await this.cursor.close();}catch(n){(0, kr.squashError)(n);}if(await this._resume(e),e instanceof He.MongoOperationTimeoutError)throw e}else {try{await this.close();}catch(n){(0, kr.squashError)(n);}throw e}}async _resume(e){this.timeoutContext?.refresh();let r=(0, kr.getTopology)(this.parent);try{await r.selectServer(this.cursor.readPreference,{operationName:"reconnect topology in change stream",timeoutContext:this.timeoutContext}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions);}catch{throw await this.close(),e}}};Sc.ChangeStream=nr;nr.RESPONSE=Dr.RESPONSE;nr.MORE=Dr.MORE;nr.INIT=Dr.INIT;nr.CLOSE=Dr.CLOSE;nr.CHANGE=Dr.CHANGE;nr.END=Dr.END;nr.ERROR=Dr.ERROR;nr.RESUME_TOKEN_CHANGED=Dr.RESUME_TOKEN_CHANGED;(0, tb.configureResourceManagement)(nr.prototype);});var t3=c(yc=>{g();Object.defineProperty(yc,"__esModule",{value:true});yc.GridFSBucketReadStream=void 0;var ib=a("stream"),ub=Qe(),jt=B(),ab=ke(),i1=class extends ib.Readable{constructor(e,r,n,s,o){super({emitClose:true}),this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:e,expected:0,files:r,filter:s,init:false,expectedEnd:0,options:{start:0,end:0,...o},readPreference:n,timeoutContext:o?.timeoutMS!=null?new ab.CSOTTimeoutContext({timeoutMS:o.timeoutMS,serverSelectionTimeoutMS:0}):void 0};}_read(){this.destroyed||hb(this,()=>cb(this));}start(e=0){return r7(this),this.s.options.start=e,this}end(e=0){return r7(this),this.s.options.end=e,this}async abort(){this.push(null),this.destroy();let e=this.s.timeoutContext?.getRemainingTimeMSOrThrow();await this.s.cursor?.close({timeoutMS:e});}};yc.GridFSBucketReadStream=i1;i1.FILE="file";function r7(t){if(t.s.init)throw new jt.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")}function cb(t){if(t.destroyed||!t.s.cursor||!t.s.file)return;let e=r=>{if(t.destroyed)return;if(!r){t.push(null),t.s.cursor?.close().then(void 0,d=>t.destroy(d));return}if(!t.s.file)return;let n=t.s.file.length-t.s.bytesRead,s=t.s.expected++,o=Math.min(t.s.file.chunkSize,n);if(r.n>s)return t.destroy(new jt.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${r.n}, expected: ${s}`));if(r.n<s)return t.destroy(new jt.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${r.n}, expected: ${s}`));let i=Buffer.isBuffer(r.data)?r.data:r.data.buffer;if(i.byteLength!==o)return n<=0?t.destroy(new jt.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${r.n}, expected file length ${t.s.file.length} bytes but already read ${t.s.bytesRead} bytes`)):t.destroy(new jt.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${i.byteLength}, expected: ${o}`));if(t.s.bytesRead+=i.byteLength,i.byteLength===0)return t.push(null);let u=null,a=null;t.s.bytesToSkip!=null&&(u=t.s.bytesToSkip,t.s.bytesToSkip=0);let c=s===t.s.expectedEnd-1,h=t.s.options.end-t.s.bytesToSkip;c&&t.s.bytesToTrim!=null?a=t.s.file.chunkSize-t.s.bytesToTrim:t.s.options.end&&h<r.data.byteLength&&(a=h),(u!=null||a!=null)&&(i=i.slice(u||0,a||i.byteLength)),t.push(i);};t.s.cursor.next().then(e,r=>{t.destroyed||t.destroy(r);});}function lb(t){let e={};t.s.readPreference&&(e.readPreference=t.s.readPreference),t.s.options&&t.s.options.sort&&(e.sort=t.s.options.sort),t.s.options&&t.s.options.skip&&(e.skip=t.s.options.skip);let r=s=>{if(t.destroyed)return;if(!s){let a=`FileNotFound: file ${t.s.filter._id?t.s.filter._id.toString():t.s.filter.filename} was not found`,c=new jt.MongoRuntimeError(a);return c.code="ENOENT",t.destroy(c)}if(s.length<=0){t.push(null);return}if(t.destroyed){t.destroy();return}try{t.s.bytesToSkip=db(t,s,t.s.options);}catch(u){return t.destroy(u)}let o={files_id:s._id};if(t.s.options&&t.s.options.start!=null){let u=Math.floor(t.s.options.start/s.chunkSize);u>0&&(o.n={$gte:u});}let i;try{i=t.s.timeoutContext?.getRemainingTimeMSOrThrow(`Download timed out after ${t.s.timeoutContext?.timeoutMS}ms`);}catch(u){return t.destroy(u)}t.s.cursor=t.s.chunks.find(o,{timeoutMode:t.s.options.timeoutMS!=null?ub.CursorTimeoutMode.LIFETIME:void 0,timeoutMS:i}).sort({n:1}),t.s.readPreference&&t.s.cursor.withReadPreference(t.s.readPreference),t.s.expectedEnd=Math.ceil(s.length/s.chunkSize),t.s.file=s;try{t.s.bytesToTrim=fb(t,s,t.s.cursor,t.s.options);}catch(u){return t.destroy(u)}t.emit(i1.FILE,s);},n;try{n=t.s.timeoutContext?.getRemainingTimeMSOrThrow(`Download timed out after ${t.s.timeoutContext?.timeoutMS}ms`);}catch(s){t.destroyed||t.destroy(s);return}e.timeoutMS=n,t.s.files.findOne(t.s.filter,e).then(r,s=>{t.destroyed||t.destroy(s);});}function hb(t,e){if(t.s.file)return e();t.s.init||(lb(t),t.s.init=true),t.once("file",()=>{e();});}function db(t,e,r){if(r&&r.start!=null){if(r.start>e.length)throw new jt.MongoInvalidArgumentError(`Stream start (${r.start}) must not be more than the length of the file (${e.length})`);if(r.start<0)throw new jt.MongoInvalidArgumentError(`Stream start (${r.start}) must not be negative`);if(r.end!=null&&r.end<r.start)throw new jt.MongoInvalidArgumentError(`Stream start (${r.start}) must not be greater than stream end (${r.end})`);return t.s.bytesRead=Math.floor(r.start/e.chunkSize)*e.chunkSize,t.s.expected=Math.floor(r.start/e.chunkSize),r.start-t.s.bytesRead}throw new jt.MongoInvalidArgumentError("Start option must be defined")}function fb(t,e,r,n){if(n&&n.end!=null){if(n.end>e.length)throw new jt.MongoInvalidArgumentError(`Stream end (${n.end}) must not be more than the length of the file (${e.length})`);if(n.start==null||n.start<0)throw new jt.MongoInvalidArgumentError(`Stream end (${n.end}) must not be negative`);let s=n.start!=null?Math.floor(n.start/e.chunkSize):0;return r.limit(Math.ceil(n.end/e.chunkSize)-s),t.s.expectedEnd=Math.ceil(n.end/e.chunkSize),Math.ceil(n.end/e.chunkSize)*e.chunkSize-n.end}throw new jt.MongoInvalidArgumentError("End option must be defined")}});var s3=c(wc=>{g();Object.defineProperty(wc,"__esModule",{value:true});wc.GridFSBucketWriteStream=void 0;var mb=a("stream"),s7=te(),o7=Qe(),Tr=B(),pb=ke(),n7=v(),Eb=dt(),r3=class extends mb.Writable{constructor(e,r,n){super(),this.gridFSFile=null,n=n??{},this.bucket=e,this.chunks=e.s._chunksCollection,this.filename=r,this.files=e.s._filesCollection,this.options=n,this.writeConcern=Eb.WriteConcern.fromOptions(n)||e.s.options.writeConcern,this.done=false,this.id=n.id?n.id:new s7.ObjectId,this.chunkSizeBytes=n.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:false,outstandingRequests:0,errored:false,aborted:false},n.timeoutMS!=null&&(this.timeoutContext=new pb.CSOTTimeoutContext({timeoutMS:n.timeoutMS,serverSelectionTimeoutMS:(0, n7.resolveTimeoutOptions)(this.bucket.s.db.client,{}).serverSelectionTimeoutMS}));}_construct(e){if(!this.bucket.s.calledOpenUploadStream)this.bucket.s.calledOpenUploadStream=true,Ab(this).then(()=>{this.bucket.s.checkedIndexes=true,this.bucket.emit("index"),e();},r=>{if(r instanceof Tr.MongoOperationTimeoutError)return _s(this,r,e);(0, n7.squashError)(r),e();});else return process.nextTick(e)}_write(e,r,n){Sb(this,e,r,n);}_final(e){if(this.state.streamEnd)return process.nextTick(e);this.state.streamEnd=true,yb(this,e);}async abort(){if(this.state.streamEnd)throw new Tr.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new Tr.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=true;let e=this.timeoutContext?.getRemainingTimeMSOrThrow(`Upload timed out after ${this.timeoutContext?.timeoutMS}ms`);await this.chunks.deleteMany({files_id:this.id},{timeoutMS:e});}};wc.GridFSBucketWriteStream=r3;function _s(t,e,r){if(t.state.errored){process.nextTick(r);return}t.state.errored=true,process.nextTick(r,e);}function i7(t,e,r){return {_id:new s7.ObjectId,files_id:t,n:e,data:r}}async function gb(t){let e={files_id:1,n:1},r;r=t.timeoutContext?.getRemainingTimeMSOrThrow(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`);let n;try{n=await t.chunks.listIndexes({timeoutMode:r!=null?o7.CursorTimeoutMode.LIFETIME:void 0,timeoutMS:r}).toArray();}catch(o){if(o instanceof Tr.MongoError&&o.code===Tr.MONGODB_ERROR_CODES.NamespaceNotFound)n=[];else throw o}n.find(o=>Object.keys(o.key).length===2&&o.key.files_id===1&&o.key.n===1)||(r=t.timeoutContext?.getRemainingTimeMSOrThrow(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`),await t.chunks.createIndex(e,{...t.writeConcern,background:true,unique:true,timeoutMS:r}));}function n3(t,e){if(t.done)return process.nextTick(e);if(t.state.streamEnd&&t.state.outstandingRequests===0&&!t.state.errored){t.done=true;let r=Cb(t.id,t.length,t.chunkSizeBytes,t.filename,t.options.contentType,t.options.aliases,t.options.metadata);if(Oc(t,e))return;let n=t.timeoutContext?.remainingTimeMS;if(n!=null&&n<=0)return _s(t,new Tr.MongoOperationTimeoutError(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`),e);t.files.insertOne(r,{writeConcern:t.writeConcern,timeoutMS:n}).then(()=>{t.gridFSFile=r,e();},s=>_s(t,s,e));return}process.nextTick(e);}async function Ab(t){let e=t.timeoutContext?.getRemainingTimeMSOrThrow(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`);if(await t.files.findOne({},{projection:{_id:1},timeoutMS:e})!=null)return;let n={filename:1,uploadDate:1},s;e=t.timeoutContext?.getRemainingTimeMSOrThrow(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`);let o={timeoutMode:e!=null?o7.CursorTimeoutMode.LIFETIME:void 0,timeoutMS:e};try{s=await t.files.listIndexes(o).toArray();}catch(u){if(u instanceof Tr.MongoError&&u.code===Tr.MONGODB_ERROR_CODES.NamespaceNotFound)s=[];else throw u}s.find(u=>Object.keys(u.key).length===2&&u.key.filename===1&&u.key.uploadDate===1)||(e=t.timeoutContext?.getRemainingTimeMSOrThrow(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`),await t.files.createIndex(n,{background:false,timeoutMS:e})),await gb(t);}function Cb(t,e,r,n,s,o,i){let u={_id:t,length:e,chunkSize:r,uploadDate:new Date,filename:n};return s&&(u.contentType=s),o&&(u.aliases=o),i&&(u.metadata=i),u}function Sb(t,e,r,n){if(Oc(t,n))return;let s=Buffer.isBuffer(e)?e:Buffer.from(e,r);if(t.length+=s.length,t.pos+s.length<t.chunkSizeBytes){s.copy(t.bufToStore,t.pos),t.pos+=s.length,process.nextTick(n);return}let o=s.length,i=t.chunkSizeBytes-t.pos,u=Math.min(i,s.length),a=0;for(;o>0;){let c=s.length-o;s.copy(t.bufToStore,t.pos,c,c+u),t.pos+=u,i-=u;let h;if(i===0){h=i7(t.id,t.n,Buffer.from(t.bufToStore));let d=t.timeoutContext?.remainingTimeMS;if(d!=null&&d<=0)return _s(t,new Tr.MongoOperationTimeoutError(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`),n);if(++t.state.outstandingRequests,++a,Oc(t,n))return;t.chunks.insertOne(h,{writeConcern:t.writeConcern,timeoutMS:d}).then(()=>{--t.state.outstandingRequests,--a,a||n3(t,n);},m=>_s(t,m,n)),i=t.chunkSizeBytes,t.pos=0,++t.n;}o-=u,u=Math.min(i,o);}}function yb(t,e){if(t.pos===0)return n3(t,e);let r=Buffer.alloc(t.pos);t.bufToStore.copy(r,0,0,t.pos);let n=i7(t.id,t.n,r);if(Oc(t,e))return;let s=t.timeoutContext?.remainingTimeMS;if(s!=null&&s<=0)return _s(t,new Tr.MongoOperationTimeoutError(`Upload timed out after ${t.timeoutContext?.timeoutMS}ms`),e);++t.state.outstandingRequests,t.chunks.insertOne(n,{writeConcern:t.writeConcern,timeoutMS:s}).then(()=>{--t.state.outstandingRequests,n3(t,e);},o=>_s(t,o,e));}function Oc(t,e){return t.state.aborted?(process.nextTick(e,new Tr.MongoAPIError("Stream has been aborted")),true):false}});var l7=c(Tc=>{g();Object.defineProperty(Tc,"__esModule",{value:true});Tc.GridFSBucket=void 0;var o3=B(),Ob=Pt(),u7=ke(),_c=v(),wb=dt(),a7=t3(),c7=s3(),_b={bucketName:"fs",chunkSizeBytes:255*1024},Dc=class extends Ob.TypedEventEmitter{constructor(e,r){super(),this.on("error",_c.noop),this.setMaxListeners(0);let n=(0, _c.resolveOptions)(e,{..._b,...r,writeConcern:wb.WriteConcern.fromOptions(r)});this.s={db:e,options:n,_chunksCollection:e.collection(n.bucketName+".chunks"),_filesCollection:e.collection(n.bucketName+".files"),checkedIndexes:false,calledOpenUploadStream:false};}openUploadStream(e,r){return new c7.GridFSBucketWriteStream(this,e,{timeoutMS:this.s.options.timeoutMS,...r})}openUploadStreamWithId(e,r,n){return new c7.GridFSBucketWriteStream(this,r,{timeoutMS:this.s.options.timeoutMS,...n,id:e})}openDownloadStream(e,r){return new a7.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:e},{timeoutMS:this.s.options.timeoutMS,...r})}async delete(e,r){let{timeoutMS:n}=(0, _c.resolveOptions)(this.s.db,r),s;n&&(s=new u7.CSOTTimeoutContext({timeoutMS:n,serverSelectionTimeoutMS:this.s.db.client.s.options.serverSelectionTimeoutMS}));let{deletedCount:o}=await this.s._filesCollection.deleteOne({_id:e},{timeoutMS:s?.remainingTimeMS}),i=s?.remainingTimeMS;if(i!=null&&i<=0)throw new o3.MongoOperationTimeoutError(`Timed out after ${n}ms`);if(await this.s._chunksCollection.deleteMany({files_id:e},{timeoutMS:i}),o===0)throw new o3.MongoRuntimeError(`File not found for id ${e}`)}find(e={},r={}){return this.s._filesCollection.find(e,r)}openDownloadStreamByName(e,r){let n={uploadDate:-1},s;return r&&r.revision!=null&&(r.revision>=0?(n={uploadDate:1},s=r.revision):s=-r.revision-1),new a7.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:e},{timeoutMS:this.s.options.timeoutMS,...r,sort:n,skip:s})}async rename(e,r,n){let s={_id:e},o={$set:{filename:r}},{matchedCount:i}=await this.s._filesCollection.updateOne(s,o,n);if(i===0)throw new o3.MongoRuntimeError(`File with id ${e} not found`)}async drop(e){let{timeoutMS:r}=(0, _c.resolveOptions)(this.s.db,e),n;if(r&&(n=new u7.CSOTTimeoutContext({timeoutMS:r,serverSelectionTimeoutMS:this.s.db.client.s.options.serverSelectionTimeoutMS})),n){await this.s._filesCollection.drop({timeoutMS:n.remainingTimeMS});let s=n.getRemainingTimeMSOrThrow(`Timed out after ${r}ms`);await this.s._chunksCollection.drop({timeoutMS:s});}else await this.s._filesCollection.drop(),await this.s._chunksCollection.drop();}};Tc.GridFSBucket=Dc;Dc.INDEX="index";});var Sd=c(f=>{g();Object.defineProperty(f,"__esModule",{value:true});f.MongoRuntimeError=f.MongoParseError=f.MongoOperationTimeoutError=f.MongoOIDCError=f.MongoNotConnectedError=f.MongoNetworkTimeoutError=f.MongoNetworkError=f.MongoMissingDependencyError=f.MongoMissingCredentialsError=f.MongoKerberosError=f.MongoInvalidArgumentError=f.MongoGridFSStreamError=f.MongoGridFSChunkError=f.MongoGCPError=f.MongoExpiredSessionError=f.MongoError=f.MongoDriverError=f.MongoDecompressionError=f.MongoCursorInUseError=f.MongoCursorExhaustedError=f.MongoCompatibilityError=f.MongoClientClosedError=f.MongoClientBulkWriteExecutionError=f.MongoClientBulkWriteError=f.MongoClientBulkWriteCursorError=f.MongoChangeStreamError=f.MongoBatchReExecutionError=f.MongoAzureError=f.MongoAWSError=f.MongoAPIError=f.ExplainableCursor=f.ChangeStreamCursor=f.ClientEncryption=f.MongoBulkWriteError=f.UUID=f.Timestamp=f.ObjectId=f.MinKey=f.MaxKey=f.Long=f.Int32=f.Double=f.Decimal128=f.DBRef=f.Code=f.BSONType=f.BSONSymbol=f.BSONRegExp=f.Binary=f.BSON=void 0;f.CommandFailedEvent=f.WriteConcern=f.ReadPreference=f.ReadConcern=f.TopologyType=f.ServerType=f.ReadPreferenceMode=f.ReadConcernLevel=f.ProfilingLevel=f.ReturnDocument=f.SeverityLevel=f.MongoLoggableComponent=f.ServerApiVersion=f.ExplainVerbosity=f.MongoErrorLabel=f.CursorTimeoutMode=f.CURSOR_FLAGS=f.Compressor=f.AuthMechanism=f.GSSAPICanonicalizationValue=f.AutoEncryptionLoggerLevel=f.BatchType=f.UnorderedBulkOperation=f.OrderedBulkOperation=f.MongoClient=f.ListIndexesCursor=f.ListCollectionsCursor=f.GridFSBucketWriteStream=f.GridFSBucketReadStream=f.GridFSBucket=f.FindCursor=f.Db=f.Collection=f.ClientSession=f.ChangeStream=f.CancellationToken=f.AggregationCursor=f.Admin=f.AbstractCursor=f.configureExplicitResourceManagement=f.MongoWriteConcernError=f.MongoUnexpectedServerResponseError=f.MongoTransactionError=f.MongoTopologyClosedError=f.MongoTailableCursorError=f.MongoSystemError=f.MongoStalePrimaryError=f.MongoServerSelectionError=f.MongoServerError=f.MongoServerClosedError=void 0;f.MongoClientAuthProviders=f.MongoCryptKMSRequestNetworkTimeoutError=f.MongoCryptInvalidArgumentError=f.MongoCryptError=f.MongoCryptCreateEncryptedCollectionError=f.MongoCryptCreateDataKeyError=f.MongoCryptAzureKMSRequestError=f.SrvPollingEvent=f.WaitingForSuitableServerEvent=f.ServerSelectionSucceededEvent=f.ServerSelectionStartedEvent=f.ServerSelectionFailedEvent=f.ServerSelectionEvent=f.TopologyOpeningEvent=f.TopologyDescriptionChangedEvent=f.TopologyClosedEvent=f.ServerOpeningEvent=f.ServerHeartbeatSucceededEvent=f.ServerHeartbeatStartedEvent=f.ServerHeartbeatFailedEvent=f.ServerDescriptionChangedEvent=f.ServerClosedEvent=f.ConnectionReadyEvent=f.ConnectionPoolReadyEvent=f.ConnectionPoolMonitoringEvent=f.ConnectionPoolCreatedEvent=f.ConnectionPoolClosedEvent=f.ConnectionPoolClearedEvent=f.ConnectionCreatedEvent=f.ConnectionClosedEvent=f.ConnectionCheckOutStartedEvent=f.ConnectionCheckOutFailedEvent=f.ConnectionCheckedOutEvent=f.ConnectionCheckedInEvent=f.CommandSucceededEvent=f.CommandStartedEvent=void 0;var Db=pl();Object.defineProperty(f,"Admin",{enumerable:true,get:function(){return Db.Admin}});var Tb=bl();Object.defineProperty(f,"OrderedBulkOperation",{enumerable:true,get:function(){return Tb.OrderedBulkOperation}});var Bb=Fl();Object.defineProperty(f,"UnorderedBulkOperation",{enumerable:true,get:function(){return Bb.UnorderedBulkOperation}});var bb=gs();Object.defineProperty(f,"ChangeStream",{enumerable:true,get:function(){return bb.ChangeStream}});var Mb=wo();Object.defineProperty(f,"Collection",{enumerable:true,get:function(){return Mb.Collection}});var Fb=Qe();Object.defineProperty(f,"AbstractCursor",{enumerable:true,get:function(){return Fb.AbstractCursor}});var Rb=Wi();Object.defineProperty(f,"AggregationCursor",{enumerable:true,get:function(){return Rb.AggregationCursor}});var Nb=Lf();Object.defineProperty(f,"FindCursor",{enumerable:true,get:function(){return Nb.FindCursor}});var Ib=md();Object.defineProperty(f,"ListCollectionsCursor",{enumerable:true,get:function(){return Ib.ListCollectionsCursor}});var vb=qf();Object.defineProperty(f,"ListIndexesCursor",{enumerable:true,get:function(){return vb.ListIndexesCursor}});var Pb=Aa();Object.defineProperty(f,"Db",{enumerable:true,get:function(){return Pb.Db}});var xb=l7();Object.defineProperty(f,"GridFSBucket",{enumerable:true,get:function(){return xb.GridFSBucket}});var Lb=t3();Object.defineProperty(f,"GridFSBucketReadStream",{enumerable:true,get:function(){return Lb.GridFSBucketReadStream}});var kb=s3();Object.defineProperty(f,"GridFSBucketWriteStream",{enumerable:true,get:function(){return kb.GridFSBucketWriteStream}});var qb=Nn();Object.defineProperty(f,"MongoClient",{enumerable:true,get:function(){return qb.MongoClient}});var Ub=Pt();Object.defineProperty(f,"CancellationToken",{enumerable:true,get:function(){return Ub.CancellationToken}});var jb=uo();Object.defineProperty(f,"ClientSession",{enumerable:true,get:function(){return jb.ClientSession}});var zb=te();Object.defineProperty(f,"BSON",{enumerable:true,get:function(){return zb.BSON}});var At=te();Object.defineProperty(f,"Binary",{enumerable:true,get:function(){return At.Binary}});Object.defineProperty(f,"BSONRegExp",{enumerable:true,get:function(){return At.BSONRegExp}});Object.defineProperty(f,"BSONSymbol",{enumerable:true,get:function(){return At.BSONSymbol}});Object.defineProperty(f,"BSONType",{enumerable:true,get:function(){return At.BSONType}});Object.defineProperty(f,"Code",{enumerable:true,get:function(){return At.Code}});Object.defineProperty(f,"DBRef",{enumerable:true,get:function(){return At.DBRef}});Object.defineProperty(f,"Decimal128",{enumerable:true,get:function(){return At.Decimal128}});Object.defineProperty(f,"Double",{enumerable:true,get:function(){return At.Double}});Object.defineProperty(f,"Int32",{enumerable:true,get:function(){return At.Int32}});Object.defineProperty(f,"Long",{enumerable:true,get:function(){return At.Long}});Object.defineProperty(f,"MaxKey",{enumerable:true,get:function(){return At.MaxKey}});Object.defineProperty(f,"MinKey",{enumerable:true,get:function(){return At.MinKey}});Object.defineProperty(f,"ObjectId",{enumerable:true,get:function(){return At.ObjectId}});Object.defineProperty(f,"Timestamp",{enumerable:true,get:function(){return At.Timestamp}});Object.defineProperty(f,"UUID",{enumerable:true,get:function(){return At.UUID}});var Vb=ci();Object.defineProperty(f,"MongoBulkWriteError",{enumerable:true,get:function(){return Vb.MongoBulkWriteError}});var Wb=Du();Object.defineProperty(f,"ClientEncryption",{enumerable:true,get:function(){return Wb.ClientEncryption}});var $b=e3();Object.defineProperty(f,"ChangeStreamCursor",{enumerable:true,get:function(){return $b.ChangeStreamCursor}});var Gb=Za();Object.defineProperty(f,"ExplainableCursor",{enumerable:true,get:function(){return Gb.ExplainableCursor}});var K=B();Object.defineProperty(f,"MongoAPIError",{enumerable:true,get:function(){return K.MongoAPIError}});Object.defineProperty(f,"MongoAWSError",{enumerable:true,get:function(){return K.MongoAWSError}});Object.defineProperty(f,"MongoAzureError",{enumerable:true,get:function(){return K.MongoAzureError}});Object.defineProperty(f,"MongoBatchReExecutionError",{enumerable:true,get:function(){return K.MongoBatchReExecutionError}});Object.defineProperty(f,"MongoChangeStreamError",{enumerable:true,get:function(){return K.MongoChangeStreamError}});Object.defineProperty(f,"MongoClientBulkWriteCursorError",{enumerable:true,get:function(){return K.MongoClientBulkWriteCursorError}});Object.defineProperty(f,"MongoClientBulkWriteError",{enumerable:true,get:function(){return K.MongoClientBulkWriteError}});Object.defineProperty(f,"MongoClientBulkWriteExecutionError",{enumerable:true,get:function(){return K.MongoClientBulkWriteExecutionError}});Object.defineProperty(f,"MongoClientClosedError",{enumerable:true,get:function(){return K.MongoClientClosedError}});Object.defineProperty(f,"MongoCompatibilityError",{enumerable:true,get:function(){return K.MongoCompatibilityError}});Object.defineProperty(f,"MongoCursorExhaustedError",{enumerable:true,get:function(){return K.MongoCursorExhaustedError}});Object.defineProperty(f,"MongoCursorInUseError",{enumerable:true,get:function(){return K.MongoCursorInUseError}});Object.defineProperty(f,"MongoDecompressionError",{enumerable:true,get:function(){return K.MongoDecompressionError}});Object.defineProperty(f,"MongoDriverError",{enumerable:true,get:function(){return K.MongoDriverError}});Object.defineProperty(f,"MongoError",{enumerable:true,get:function(){return K.MongoError}});Object.defineProperty(f,"MongoExpiredSessionError",{enumerable:true,get:function(){return K.MongoExpiredSessionError}});Object.defineProperty(f,"MongoGCPError",{enumerable:true,get:function(){return K.MongoGCPError}});Object.defineProperty(f,"MongoGridFSChunkError",{enumerable:true,get:function(){return K.MongoGridFSChunkError}});Object.defineProperty(f,"MongoGridFSStreamError",{enumerable:true,get:function(){return K.MongoGridFSStreamError}});Object.defineProperty(f,"MongoInvalidArgumentError",{enumerable:true,get:function(){return K.MongoInvalidArgumentError}});Object.defineProperty(f,"MongoKerberosError",{enumerable:true,get:function(){return K.MongoKerberosError}});Object.defineProperty(f,"MongoMissingCredentialsError",{enumerable:true,get:function(){return K.MongoMissingCredentialsError}});Object.defineProperty(f,"MongoMissingDependencyError",{enumerable:true,get:function(){return K.MongoMissingDependencyError}});Object.defineProperty(f,"MongoNetworkError",{enumerable:true,get:function(){return K.MongoNetworkError}});Object.defineProperty(f,"MongoNetworkTimeoutError",{enumerable:true,get:function(){return K.MongoNetworkTimeoutError}});Object.defineProperty(f,"MongoNotConnectedError",{enumerable:true,get:function(){return K.MongoNotConnectedError}});Object.defineProperty(f,"MongoOIDCError",{enumerable:true,get:function(){return K.MongoOIDCError}});Object.defineProperty(f,"MongoOperationTimeoutError",{enumerable:true,get:function(){return K.MongoOperationTimeoutError}});Object.defineProperty(f,"MongoParseError",{enumerable:true,get:function(){return K.MongoParseError}});Object.defineProperty(f,"MongoRuntimeError",{enumerable:true,get:function(){return K.MongoRuntimeError}});Object.defineProperty(f,"MongoServerClosedError",{enumerable:true,get:function(){return K.MongoServerClosedError}});Object.defineProperty(f,"MongoServerError",{enumerable:true,get:function(){return K.MongoServerError}});Object.defineProperty(f,"MongoServerSelectionError",{enumerable:true,get:function(){return K.MongoServerSelectionError}});Object.defineProperty(f,"MongoStalePrimaryError",{enumerable:true,get:function(){return K.MongoStalePrimaryError}});Object.defineProperty(f,"MongoSystemError",{enumerable:true,get:function(){return K.MongoSystemError}});Object.defineProperty(f,"MongoTailableCursorError",{enumerable:true,get:function(){return K.MongoTailableCursorError}});Object.defineProperty(f,"MongoTopologyClosedError",{enumerable:true,get:function(){return K.MongoTopologyClosedError}});Object.defineProperty(f,"MongoTransactionError",{enumerable:true,get:function(){return K.MongoTransactionError}});Object.defineProperty(f,"MongoUnexpectedServerResponseError",{enumerable:true,get:function(){return K.MongoUnexpectedServerResponseError}});Object.defineProperty(f,"MongoWriteConcernError",{enumerable:true,get:function(){return K.MongoWriteConcernError}});var Hb=ao();Object.defineProperty(f,"configureExplicitResourceManagement",{enumerable:true,get:function(){return Hb.configureExplicitResourceManagement}});var Kb=ci();Object.defineProperty(f,"BatchType",{enumerable:true,get:function(){return Kb.BatchType}});var Yb=H2();Object.defineProperty(f,"AutoEncryptionLoggerLevel",{enumerable:true,get:function(){return Yb.AutoEncryptionLoggerLevel}});var Xb=ru();Object.defineProperty(f,"GSSAPICanonicalizationValue",{enumerable:true,get:function(){return Xb.GSSAPICanonicalizationValue}});var Jb=Fr();Object.defineProperty(f,"AuthMechanism",{enumerable:true,get:function(){return Jb.AuthMechanism}});var Qb=Si();Object.defineProperty(f,"Compressor",{enumerable:true,get:function(){return Qb.Compressor}});var h7=Qe();Object.defineProperty(f,"CURSOR_FLAGS",{enumerable:true,get:function(){return h7.CURSOR_FLAGS}});Object.defineProperty(f,"CursorTimeoutMode",{enumerable:true,get:function(){return h7.CursorTimeoutMode}});var Zb=B();Object.defineProperty(f,"MongoErrorLabel",{enumerable:true,get:function(){return Zb.MongoErrorLabel}});var eM=ti();Object.defineProperty(f,"ExplainVerbosity",{enumerable:true,get:function(){return eM.ExplainVerbosity}});var tM=Nn();Object.defineProperty(f,"ServerApiVersion",{enumerable:true,get:function(){return tM.ServerApiVersion}});var d7=Cn();Object.defineProperty(f,"MongoLoggableComponent",{enumerable:true,get:function(){return d7.MongoLoggableComponent}});Object.defineProperty(f,"SeverityLevel",{enumerable:true,get:function(){return d7.SeverityLevel}});var rM=Wf();Object.defineProperty(f,"ReturnDocument",{enumerable:true,get:function(){return rM.ReturnDocument}});var nM=Dd();Object.defineProperty(f,"ProfilingLevel",{enumerable:true,get:function(){return nM.ProfilingLevel}});var sM=ar();Object.defineProperty(f,"ReadConcernLevel",{enumerable:true,get:function(){return sM.ReadConcernLevel}});var oM=We();Object.defineProperty(f,"ReadPreferenceMode",{enumerable:true,get:function(){return oM.ReadPreferenceMode}});var f7=Nt();Object.defineProperty(f,"ServerType",{enumerable:true,get:function(){return f7.ServerType}});Object.defineProperty(f,"TopologyType",{enumerable:true,get:function(){return f7.TopologyType}});var iM=ar();Object.defineProperty(f,"ReadConcern",{enumerable:true,get:function(){return iM.ReadConcern}});var uM=We();Object.defineProperty(f,"ReadPreference",{enumerable:true,get:function(){return uM.ReadPreference}});var aM=dt();Object.defineProperty(f,"WriteConcern",{enumerable:true,get:function(){return aM.WriteConcern}});var i3=lh();Object.defineProperty(f,"CommandFailedEvent",{enumerable:true,get:function(){return i3.CommandFailedEvent}});Object.defineProperty(f,"CommandStartedEvent",{enumerable:true,get:function(){return i3.CommandStartedEvent}});Object.defineProperty(f,"CommandSucceededEvent",{enumerable:true,get:function(){return i3.CommandSucceededEvent}});var sr=$h();Object.defineProperty(f,"ConnectionCheckedInEvent",{enumerable:true,get:function(){return sr.ConnectionCheckedInEvent}});Object.defineProperty(f,"ConnectionCheckedOutEvent",{enumerable:true,get:function(){return sr.ConnectionCheckedOutEvent}});Object.defineProperty(f,"ConnectionCheckOutFailedEvent",{enumerable:true,get:function(){return sr.ConnectionCheckOutFailedEvent}});Object.defineProperty(f,"ConnectionCheckOutStartedEvent",{enumerable:true,get:function(){return sr.ConnectionCheckOutStartedEvent}});Object.defineProperty(f,"ConnectionClosedEvent",{enumerable:true,get:function(){return sr.ConnectionClosedEvent}});Object.defineProperty(f,"ConnectionCreatedEvent",{enumerable:true,get:function(){return sr.ConnectionCreatedEvent}});Object.defineProperty(f,"ConnectionPoolClearedEvent",{enumerable:true,get:function(){return sr.ConnectionPoolClearedEvent}});Object.defineProperty(f,"ConnectionPoolClosedEvent",{enumerable:true,get:function(){return sr.ConnectionPoolClosedEvent}});Object.defineProperty(f,"ConnectionPoolCreatedEvent",{enumerable:true,get:function(){return sr.ConnectionPoolCreatedEvent}});Object.defineProperty(f,"ConnectionPoolMonitoringEvent",{enumerable:true,get:function(){return sr.ConnectionPoolMonitoringEvent}});Object.defineProperty(f,"ConnectionPoolReadyEvent",{enumerable:true,get:function(){return sr.ConnectionPoolReadyEvent}});Object.defineProperty(f,"ConnectionReadyEvent",{enumerable:true,get:function(){return sr.ConnectionReadyEvent}});var on=Ku();Object.defineProperty(f,"ServerClosedEvent",{enumerable:true,get:function(){return on.ServerClosedEvent}});Object.defineProperty(f,"ServerDescriptionChangedEvent",{enumerable:true,get:function(){return on.ServerDescriptionChangedEvent}});Object.defineProperty(f,"ServerHeartbeatFailedEvent",{enumerable:true,get:function(){return on.ServerHeartbeatFailedEvent}});Object.defineProperty(f,"ServerHeartbeatStartedEvent",{enumerable:true,get:function(){return on.ServerHeartbeatStartedEvent}});Object.defineProperty(f,"ServerHeartbeatSucceededEvent",{enumerable:true,get:function(){return on.ServerHeartbeatSucceededEvent}});Object.defineProperty(f,"ServerOpeningEvent",{enumerable:true,get:function(){return on.ServerOpeningEvent}});Object.defineProperty(f,"TopologyClosedEvent",{enumerable:true,get:function(){return on.TopologyClosedEvent}});Object.defineProperty(f,"TopologyDescriptionChangedEvent",{enumerable:true,get:function(){return on.TopologyDescriptionChangedEvent}});Object.defineProperty(f,"TopologyOpeningEvent",{enumerable:true,get:function(){return on.TopologyOpeningEvent}});var u1=gf();Object.defineProperty(f,"ServerSelectionEvent",{enumerable:true,get:function(){return u1.ServerSelectionEvent}});Object.defineProperty(f,"ServerSelectionFailedEvent",{enumerable:true,get:function(){return u1.ServerSelectionFailedEvent}});Object.defineProperty(f,"ServerSelectionStartedEvent",{enumerable:true,get:function(){return u1.ServerSelectionStartedEvent}});Object.defineProperty(f,"ServerSelectionSucceededEvent",{enumerable:true,get:function(){return u1.ServerSelectionSucceededEvent}});Object.defineProperty(f,"WaitingForSuitableServerEvent",{enumerable:true,get:function(){return u1.WaitingForSuitableServerEvent}});var cM=Cf();Object.defineProperty(f,"SrvPollingEvent",{enumerable:true,get:function(){return cM.SrvPollingEvent}});var Lo=ro();Object.defineProperty(f,"MongoCryptAzureKMSRequestError",{enumerable:true,get:function(){return Lo.MongoCryptAzureKMSRequestError}});Object.defineProperty(f,"MongoCryptCreateDataKeyError",{enumerable:true,get:function(){return Lo.MongoCryptCreateDataKeyError}});Object.defineProperty(f,"MongoCryptCreateEncryptedCollectionError",{enumerable:true,get:function(){return Lo.MongoCryptCreateEncryptedCollectionError}});Object.defineProperty(f,"MongoCryptError",{enumerable:true,get:function(){return Lo.MongoCryptError}});Object.defineProperty(f,"MongoCryptInvalidArgumentError",{enumerable:true,get:function(){return Lo.MongoCryptInvalidArgumentError}});Object.defineProperty(f,"MongoCryptKMSRequestNetworkTimeoutError",{enumerable:true,get:function(){return Lo.MongoCryptKMSRequestNetworkTimeoutError}});var lM=rf();Object.defineProperty(f,"MongoClientAuthProviders",{enumerable:true,get:function(){return lM.MongoClientAuthProviders}});});
13
+ export{Sd as a};