@mongodb-js/compass-indexes 5.12.0 → 5.14.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.
- package/dist/browser.js +1 -1
- package/dist/browser.js.LICENSE.txt +0 -15
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +0 -15
- package/dist/src/components/create-index-modal/create-index-modal.d.ts.map +1 -1
- package/dist/src/components/drop-index-modal/index.d.ts.map +1 -1
- package/dist/src/components/indexes/indexes.d.ts +10 -25
- package/dist/src/components/indexes/indexes.d.ts.map +1 -1
- package/dist/src/components/indexes-table/index.d.ts +2 -0
- package/dist/src/components/indexes-table/index.d.ts.map +1 -0
- package/dist/src/components/indexes-table/indexes-table.d.ts +20 -10
- package/dist/src/components/indexes-table/indexes-table.d.ts.map +1 -1
- package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts +32 -5
- package/dist/src/components/indexes-toolbar/indexes-toolbar.d.ts.map +1 -1
- package/dist/src/components/regular-indexes-table/badge-with-icon-link.d.ts.map +1 -0
- package/dist/src/components/{indexes-table → regular-indexes-table}/index-actions.d.ts +3 -3
- package/dist/src/components/regular-indexes-table/index-actions.d.ts.map +1 -0
- package/dist/src/components/regular-indexes-table/property-field.d.ts +11 -0
- package/dist/src/components/regular-indexes-table/property-field.d.ts.map +1 -0
- package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts +29 -0
- package/dist/src/components/regular-indexes-table/regular-indexes-table.d.ts.map +1 -0
- package/dist/src/components/regular-indexes-table/size-field.d.ts.map +1 -0
- package/dist/src/components/regular-indexes-table/type-field.d.ts +13 -0
- package/dist/src/components/regular-indexes-table/type-field.d.ts.map +1 -0
- package/dist/src/components/regular-indexes-table/usage-field.d.ts.map +1 -0
- package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts +17 -0
- package/dist/src/components/search-indexes-modals/create-search-index-modal.d.ts.map +1 -0
- package/dist/src/components/search-indexes-modals/index.d.ts +2 -0
- package/dist/src/components/search-indexes-modals/index.d.ts.map +1 -0
- package/dist/src/components/search-indexes-table/search-index-actions.d.ts +9 -0
- package/dist/src/components/search-indexes-table/search-index-actions.d.ts.map +1 -0
- package/dist/src/components/search-indexes-table/search-indexes-table.d.ts +27 -0
- package/dist/src/components/search-indexes-table/search-indexes-table.d.ts.map +1 -0
- package/dist/src/components/search-indexes-table/zero-graphic.d.ts +4 -0
- package/dist/src/components/search-indexes-table/zero-graphic.d.ts.map +1 -0
- package/dist/src/modules/create-index/error.d.ts +19 -0
- package/dist/src/modules/create-index/error.d.ts.map +1 -0
- package/dist/src/modules/create-index/index.d.ts +12 -12
- package/dist/src/modules/create-index/options.d.ts.map +1 -1
- package/dist/src/modules/data-service.d.ts +5 -5
- package/dist/src/modules/data-service.d.ts.map +1 -1
- package/dist/src/modules/description.d.ts +1 -1
- package/dist/src/modules/description.d.ts.map +1 -1
- package/dist/src/modules/drop-index/error.d.ts +19 -0
- package/dist/src/modules/drop-index/error.d.ts.map +1 -0
- package/dist/src/modules/drop-index/index.d.ts +2 -2
- package/dist/src/modules/index.d.ts +10 -12
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/is-readonly-view.d.ts +1 -1
- package/dist/src/modules/is-readonly-view.d.ts.map +1 -1
- package/dist/src/modules/is-writable.d.ts +1 -1
- package/dist/src/modules/is-writable.d.ts.map +1 -1
- package/dist/src/modules/regular-indexes.d.ts +96 -0
- package/dist/src/modules/regular-indexes.d.ts.map +1 -0
- package/dist/src/modules/search-indexes.d.ts +97 -0
- package/dist/src/modules/search-indexes.d.ts.map +1 -0
- package/dist/src/stores/create-index.d.ts +12 -12
- package/dist/src/stores/index.d.ts +0 -1
- package/dist/src/stores/index.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +27 -2
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/is-action.d.ts +3 -0
- package/dist/src/utils/is-action.d.ts.map +1 -0
- package/package.json +22 -22
- package/dist/src/components/indexes-table/badge-with-icon-link.d.ts.map +0 -1
- package/dist/src/components/indexes-table/index-actions.d.ts.map +0 -1
- package/dist/src/components/indexes-table/property-field.d.ts +0 -11
- package/dist/src/components/indexes-table/property-field.d.ts.map +0 -1
- package/dist/src/components/indexes-table/size-field.d.ts.map +0 -1
- package/dist/src/components/indexes-table/type-field.d.ts +0 -13
- package/dist/src/components/indexes-table/type-field.d.ts.map +0 -1
- package/dist/src/components/indexes-table/usage-field.d.ts.map +0 -1
- package/dist/src/modules/error.d.ts +0 -22
- package/dist/src/modules/error.d.ts.map +0 -1
- package/dist/src/modules/in-progress-indexes.d.ts +0 -41
- package/dist/src/modules/in-progress-indexes.d.ts.map +0 -1
- package/dist/src/modules/indexes.d.ts +0 -43
- package/dist/src/modules/indexes.d.ts.map +0 -1
- package/dist/src/modules/is-readonly.d.ts +0 -3
- package/dist/src/modules/is-readonly.d.ts.map +0 -1
- package/dist/src/modules/is-refreshing.d.ts +0 -19
- package/dist/src/modules/is-refreshing.d.ts.map +0 -1
- package/dist/src/modules/sort-column.d.ts +0 -6
- package/dist/src/modules/sort-column.d.ts.map +0 -1
- package/dist/src/modules/sort-order.d.ts +0 -6
- package/dist/src/modules/sort-order.d.ts.map +0 -1
- /package/dist/src/components/{indexes-table → regular-indexes-table}/badge-with-icon-link.d.ts +0 -0
- /package/dist/src/components/{indexes-table → regular-indexes-table}/size-field.d.ts +0 -0
- /package/dist/src/components/{indexes-table → regular-indexes-table}/usage-field.d.ts +0 -0
package/dist/browser.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! For license information please see browser.js.LICENSE.txt */
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CompassIndexesPlugin=t():e.CompassIndexesPlugin=t()}(self,(()=>(()=>{var e={2563:e=>{const t="@mongodb-js/mongodb-redux-common/app-registry",r=`${t}/LOCAL_APP_REGISTRY_ACTIVATED`,n=`${t}/GLOBAL_APP_REGISTRY_ACTIVATED`,i={localAppRegistry:null,globalAppRegistry:null},o=function(e,t){if(e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];e.emit(t,...n)}};e.exports=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;return t.type===r?{...e,localAppRegistry:t.appRegistry}:t.type===n?{...e,globalAppRegistry:t.appRegistry}:e},e.exports.LOCAL_APP_REGISTRY_ACTIVATED=r,e.exports.GLOBAL_APP_REGISTRY_ACTIVATED=n,e.exports.INITIAL_STATE=i,e.exports.localAppRegistryActivated=e=>({type:r,appRegistry:e}),e.exports.globalAppRegistryActivated=e=>({type:n,appRegistry:e}),e.exports.localAppRegistryEmit=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(t,n)=>{o(n().appRegistry.localAppRegistry,e,...r)}},e.exports.globalAppRegistryEmit=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(t,n)=>{o(n().appRegistry.globalAppRegistry,e,...r)}}},7452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=r(5163),i=r(4959),o=r(2492),s=function(){function e(){this.crc32=new o.Crc32}return e.prototype.update=function(e){(0,i.isEmptyData)(e)||this.crc32.update((0,i.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,(0,i.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new o.Crc32},e}();t.AwsCrc32=s},2492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=r(5163),i=r(4959);t.crc32=function(e){return(new o).update(e).digest()};var o=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),o=i.next();!o.done;o=i.next()){var a=o.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var s=(0,i.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=r(7452);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6177:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,i=t.subtle;return r.map((function(e){return i[e]})).concat(n).every((function(e){return"function"==typeof e}))}return!1}},2860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5163);n.__exportStar(r(893),t),n.__exportStar(r(4532),t),n.__exportStar(r(5039),t),n.__exportStar(r(6177),t),n.__exportStar(r(9693),t)},3497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},2401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(8479),i=r(214),o=r(9387),s=r(2942),a=r(2860),u=r(8281),c=r(4959),l=function(){function e(e){(0,s.supportsWebCrypto)((0,u.locateWindow)())?this.hash=new i.Sha256(e):(0,a.isMsWindow)((0,u.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,c.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();t.Sha256=l},8479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(5780),i=r(3497),o=r(6778),s=r(8281),a=function(){function e(e){this.secret=e,this.reset()}return e.prototype.update=function(e){var t=this;(0,n.isEmptyData)(e)||(this.operation=this.operation.then((function(r){return r.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},r.process(u(e)),r})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(new Error("Error encountered finalizing hash"))},e.finish()}))}))},e.prototype.reset=function(){var e;this.secret?(this.operation=(e=this.secret,new Promise((function(t,r){var n=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",u(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(new Error("ImportKey completed without importing key."))},n.onerror=function(){r(new Error("ImportKey failed to import key."))}}))).then((function(e){return(0,s.locateWindow)().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,s.locateWindow)().msCrypto.subtle.digest("SHA-256"))},e}();function u(e){return"string"==typeof e?(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=a},8322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,r(5163).__exportStar(r(2401),t);var n=r(8479);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return n.Sha256}});var i=r(214);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return i.Sha256}})},5780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(4959),i=r(3497),o=r(8281),s=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return(0,o.locateWindow)().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):(0,n.isEmptyData)(this.toHash)?Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,o.locateWindow)().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){(0,o.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e.secret),i.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();t.Sha256=s},4002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(149),i=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i<n.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<n.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(n.DIGEST_LENGTH);for(i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],u=t[5],c=t[6],l=t[7],d=0;d<n.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var h=this.temp[d-2],p=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,f=((h=this.temp[d-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(f+this.temp[d-16]|0)}var m=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&u^~a&c)|0)+(l+(n.KEY[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;l=c,c=u,u=a,a=s+m|0,s=o,o=i,i=r,r=m+g|0}t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=u,t[6]+=c,t[7]+=l},e}();t.RawSha256=i},149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},9387:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5163).__exportStar(r(3572),t)},3572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(5163),i=r(149),o=r(4002),s=r(4959),a=function(){function e(e){this.secret=e,this.hash=new o.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new o.RawSha256,this.secret){this.outer=new o.RawSha256;var e=function(e){var t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var r=new o.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(i.BLOCK_SIZE);return n.set(t),n}(this.secret),t=new Uint8Array(i.BLOCK_SIZE);t.set(e);for(var r=0;r<i.BLOCK_SIZE;r++)e[r]^=54,t[r]^=92;for(this.hash.update(e),this.outer.update(t),r=0;r<e.byteLength;r++)e[r]=0}},e}();t.Sha256=a},2942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5163).__exportStar(r(2445),t)},2445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var n=r(5163),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return e&&i.every((function(t){return"function"==typeof e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCrypto=s,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:if(!s(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}))}))}},3376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var n=r(6778),i="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},4959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(3376);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var i=r(1205);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=r(1443);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var s=r(1650);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},1205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},1443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},1650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},8062:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromCognitoIdentity:()=>yi,fromCognitoIdentityPool:()=>Oi,fromTemporaryCredentials:()=>es,fromWebToken:()=>ss});var n={};r.r(n),r.d(n,{getUserAgentPrefix:()=>Te,isVirtualHostableS3Bucket:()=>Me,parseArn:()=>Le,partition:()=>_e,setPartitionInfo:()=>xe,useDefaultPartitionInfo:()=>De});var i,o,s,a,u,c={};r.r(c),r.d(c,{aws:()=>n,booleanEquals:()=>je,getAttr:()=>Ue,isSet:()=>Ve,isValidHostLabel:()=>Ne,not:()=>ze,parseURL:()=>He,stringEquals:()=>Ge,substring:()=>qe,uriEncode:()=>Ke}),function(e){e.HEADER="header",e.QUERY="query"}(i||(i={})),function(e){e.HTTP="http",e.HTTPS="https"}(o||(o={})),(u=s||(s={}))[u.HEADER=0]="HEADER",u[u.TRAILER=1]="TRAILER",function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(a||(a={}));class l{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){const e=new l({...this,headers:{...this.headers}});var t;return e.query&&(e.query=(t=e.query,Object.keys(t).reduce(((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}}),{}))),e}}class d{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const h={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},p=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!l.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]="";else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),h)}}),f={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},m=e=>({applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:i,commandName:o,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:c}=a,l=u??t.inputFilterSensitiveLog,d=c??t.outputFilterSensitiveLog,{$metadata:h,...p}=n.output;return s?.info?.({clientName:i,commandName:o,input:l(r.input),output:d(p),metadata:h}),n}catch(e){const{clientName:n,commandName:i,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,u=a??t.inputFilterSensitiveLog;throw o?.error?.({clientName:n,commandName:i,input:u(r.input),error:e,metadata:e.$metadata}),e}}),f)}}),g="X-Amzn-Trace-Id",E={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},y=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!l.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(g))return t(r);const i=process.env.AWS_LAMBDA_FUNCTION_NAME,o=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(i)&&s(o)&&(n.headers[g]=o),t({...r,request:n})})(e),E)}}),v=(e,t,r)=>{let n,i,o,s=!1;const a=async()=>{i||(i=e());try{n=await i,o=!0,s=!1}finally{i=void 0}return n};return void 0===t?async e=>(o&&!e?.forceRefresh||(n=await a()),n):async e=>(o&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)};r(2492);const A={},C={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),A[e]=t,C[t]=e}function b(e){let t="";for(let r=0;r<e.byteLength;r++)t+=A[e[r]];return t}class S{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&w(t),new S(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&w(e),parseInt(b(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function w(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class O{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const u=new Uint8Array(a.buffer);return u.set(s,3),u;case"timestamp":const c=new Uint8Array(9);return c[0]=8,c.set(S.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!N.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in C))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=C[n]}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[i]={type:x,value:!0};break;case 1:t[i]={type:x,value:!1};break;case 2:t[i]={type:D,value:e.getInt8(r++)};break;case 3:t[i]={type:T,value:e.getInt16(r,!1)},r+=2;break;case 4:t[i]={type:B,value:e.getInt32(r,!1)},r+=4;break;case 5:t[i]={type:I,value:new S(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[i]={type:F,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const o=e.getUint16(r,!1);r+=2,t[i]={type:R,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,o))},r+=o;break;case 8:t[i]={type:P,value:new Date(new S(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[i]={type:k,value:`${b(s.subarray(0,4))}-${b(s.subarray(4,6))}-${b(s.subarray(6,8))}-${b(s.subarray(8,10))}-${b(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var _;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(_||(_={}));const x="boolean",D="byte",T="short",B="integer",I="long",F="binary",R="string",P="timestamp",k="uuid",N=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;Symbol.asyncIterator,Symbol.asyncIterator,Symbol.asyncIterator,Symbol.asyncIterator;const M=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},L=e=>new TextDecoder("utf-8").decode(e),j=e=>(new TextEncoder).encode(e),U=e=>"string"==typeof e?j(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),V="X-Amz-Date",z="X-Amz-Signature",$="X-Amz-Security-Token",W="authorization",H=V.toLowerCase(),G=[W,H,"date"],q=z.toLowerCase(),K="x-amz-content-sha256",Y=$.toLowerCase(),Q={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},X=/^proxy-/,Z=/^sec-/,J="AWS4-HMAC-SHA256",ee="AWS4-HMAC-SHA256-PAYLOAD",te="aws4_request",re={},ne=[],ie=(e,t,r)=>`${e}/${t}/${r}/${te}`,oe=(e,t,r)=>{const n=new e(t);return n.update(U(r)),n.digest()},se=({headers:e},t,r)=>{const n={};for(const i of Object.keys(e).sort()){if(null==e[i])continue;const o=i.toLowerCase();(o in Q||t?.has(o)||X.test(o)||Z.test(o))&&(!r||r&&!r.has(o))||(n[o]=e[i].trim().replace(/\s+/g," "))}return n},ae=e=>encodeURIComponent(e).replace(/[!'()*]/g,ue),ue=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,ce=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===K)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(U(t)),b(await e.digest())}var n;return"UNSIGNED-PAYLOAD"},le=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?de(t):void 0}),de=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}}),{}),he=e=>{e="function"==typeof e.clone?e.clone():le(e);for(const t of Object.keys(e.headers))G.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class pe{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:o=!0}){this.headerMarshaller=new O(L,j),this.service=n,this.sha256=i,this.uriEscapePath=o,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=M(r),this.credentialProvider=M(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:o,signableHeaders:s,signingRegion:a,signingService:u}=t,c=await this.credentialProvider();this.validateResolvedCredentials(c);const l=a??await this.regionProvider(),{longDate:d,shortDate:h}=fe(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=ie(h,l,u??this.service),f=((e,t={})=>{const{headers:r,query:n={}}="function"==typeof e.clone?e.clone():le(e);for(const e of Object.keys(r)){const i=e.toLowerCase();"x-amz-"!==i.slice(0,6)||t.unhoistableHeaders?.has(i)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(he(e),{unhoistableHeaders:o});c.sessionToken&&(f.query[$]=c.sessionToken),f.query["X-Amz-Algorithm"]=J,f.query["X-Amz-Credential"]=`${c.accessKeyId}/${p}`,f.query[V]=d,f.query["X-Amz-Expires"]=n.toString(10);const m=se(f,i,s);return f.query["X-Amz-SignedHeaders"]=me(m),f.query[z]=await this.getSignature(d,p,this.getSigningKey(c,l,h,u),this.createCanonicalRequest(f,m,await ce(e,this.sha256))),f}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:i,signingService:o}){const s=i??await this.regionProvider(),{shortDate:a,longDate:u}=fe(r),c=ie(a,s,o??this.service),l=await ce({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const h=b(await d.digest()),p=[ee,u,c,n,h,l].join("\n");return this.signString(p,{signingDate:r,signingRegion:s,signingService:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const o=r??await this.regionProvider(),{shortDate:s}=fe(t),a=new this.sha256(await this.getSigningKey(i,o,s,n));return a.update(U(e)),b(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:i,signingService:o}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=i??await this.regionProvider(),u=he(e),{longDate:c,shortDate:l}=fe(t),d=ie(l,a,o??this.service);u.headers[H]=c,s.sessionToken&&(u.headers[Y]=s.sessionToken);const h=await ce(u,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(K,u.headers)&&this.applyChecksum&&(u.headers[K]=h);const p=se(u,n,r),f=await this.getSignature(c,d,this.getSigningKey(s,a,l,o),this.createCanonicalRequest(u,p,h));return u.headers[W]=`${J} Credential=${s.accessKeyId}/${d}, SignedHeaders=${me(p)}, Signature=${f}`,u}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===q)continue;t.push(n);const i=e[n];"string"==typeof i?r[n]=`${ae(n)}=${ae(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce(((e,t)=>e.concat([`${ae(n)}=${ae(t)}`])),[]).join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(U(r));const i=await n.digest();return`${J}\n${e}\n${t}\n${b(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const i=await this.createStringToSign(e,t,n),o=new this.sha256(await r);return o.update(U(i)),b(await o.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,i)=>{const o=`${r}:${n}:${i}:${b(await oe(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(o in re)return re[o];for(ne.push(o);ne.length>50;)delete re[ne.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,i,te])s=await oe(e,s,t);return re[o]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const fe=e=>{const t=(r=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},me=e=>Object.keys(e).sort().join(";"),ge=e=>{const t=e.credentials?Ee(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e;let o;return o=e.signer?M(e.signer):e.regionInfoProvider?()=>M(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,o])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||o,e.signingName=e.signingName||a||e.serviceId;const u={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r};return new(e.signerConstructor||pe)(u)})):async n=>{const o=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await M(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||o,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r};return new(e.signerConstructor||pe)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:o}},Ee=e=>"function"==typeof e?v(e,(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)):M(e),ye=e=>new Date(Date.now()+e),ve=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(ye(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},Ae=e=>d.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ce={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};function be(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}const Se=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');let we=Se,Oe="";const _e=e=>{const{partitions:t}=we;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,i]of Object.entries(t))if(r===e)return{...n,...i}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},xe=(e,t="")=>{we=e,Oe=t},De=()=>{xe(Se,"")},Te=()=>Oe,Be="endpoints";function Ie(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${Ie(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Ie).join(", ")})`:JSON.stringify(e,null,2)}class Fe extends Error{constructor(e){super(e),this.name="EndpointError"}}const Re=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Pe=e=>Re.test(e)||e.startsWith("[")&&e.endsWith("]"),ke=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ne=(e,t=!1)=>{if(!t)return ke.test(e);const r=e.split(".");for(const e of r)if(!Ne(e))return!1;return!0},Me=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!Me(t))return!1;return!0}return!(!Ne(e)||e.length<3||e.length>63||e!==e.toLowerCase()||Pe(e))},Le=e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,i,o,s,...a]=t;return"arn"!==r||""===n||""===i||""===a[0]?null:{partition:n,service:i,region:o,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},je=(e,t)=>e===t,Ue=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new Fe(`Path: '${e}' does not end with ']'`);const i=n.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new Fe(`Invalid array index: '${i}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(i)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new Fe(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),Ve=e=>null!=e,ze=e=>!e;var $e;!function(e){e.AAAA="AAAA",e.A="A"}($e||($e={}));const We={[o.HTTP]:80,[o.HTTPS]:443},He=e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:i="",query:o={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${i}`);return s.search=Object.entries(o).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:i,pathname:s,protocol:a,search:u}=t;if(u)return null;const c=a.slice(0,-1);if(!Object.values(o).includes(c))return null;const l=Pe(i);return{scheme:c,authority:`${n}${r.includes(`${n}:${We[c]}`)||"string"==typeof e&&e.includes(`${n}:${We[c]}`)?`:${We[c]}`:""}`,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}},Ge=(e,t)=>e===t,qe=(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),Ke=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),Ye=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let i=0;for(;i<e.length;){const t=e.indexOf("{",i);if(-1===t){r.push(e.slice(i));break}r.push(e.slice(i,t));const o=e.indexOf("}",t);if(-1===o){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[o+1]&&(r.push(e.slice(t+1,o)),i=o+2);const s=e.substring(t+1,o);if(s.includes("#")){const[e,t]=s.split("#");r.push(Ue(n[e],t))}else r.push(n[s]);i=o+1}return r.join("")},Qe=(e,t,r)=>{if("string"==typeof e)return Ye(e,r);if(e.fn)return Xe(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new Fe(`'${t}': ${String(e)} is not a string, function or reference.`)},Xe=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:Qe(e,"arg",r)));return e.split(".").reduce(((e,t)=>e[t]),c)(...n)},Ze=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new Fe(`'${e}' is already defined in Reference Record.`);const n=Xe(t,r);return r.logger?.debug?.(Be,`evaluateCondition: ${Ie(t)} = ${Ie(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},Je=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:i}=Ze(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};i&&(r[i.name]=i.value,t.logger?.debug?.(Be,`assign: ${i.name} := ${Ie(i.value)}`))}return{result:!0,referenceRecord:r}},et=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=Qe(e,"Header value entry",t);if("string"!=typeof n)throw new Fe(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),tt=(e,t)=>{if(Array.isArray(e))return e.map((e=>tt(e,t)));switch(typeof e){case"string":return Ye(e,t);case"object":if(null===e)throw new Fe(`Unexpected endpoint property: ${e}`);return rt(e,t);case"boolean":return e;default:throw new Fe("Unexpected endpoint property type: "+typeof e)}},rt=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:tt(n,t)})),{}),nt=(e,t)=>{const r=Qe(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new Fe("Endpoint URL must be a string, got "+typeof r)},it=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:i,referenceRecord:o}=Je(r,t);if(!i)return;const s={...t,referenceRecord:{...t.referenceRecord,...o}},{url:a,properties:u,headers:c}=n;return t.logger?.debug?.(Be,`Resolving endpoint from template: ${Ie(n)}`),{...null!=c&&{headers:et(c,s)},...null!=u&&{properties:rt(u,s)},url:nt(a,s)}},ot=(e,t)=>{const{conditions:r,error:n}=e,{result:i,referenceRecord:o}=Je(r,t);if(i)throw new Fe(Qe(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},st=(e,t)=>{const{conditions:r,rules:n}=e,{result:i,referenceRecord:o}=Je(r,t);if(i)return at(n,{...t,referenceRecord:{...t.referenceRecord,...o}})},at=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=it(r,t);if(e)return e}else if("error"===r.type)ot(r,t);else{if("tree"!==r.type)throw new Fe(`Unknown endpoint rule: ${r}`);{const e=st(r,t);if(e)return e}}throw new Fe("Rules evaluation failed")},ut=(e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:i,rules:o}=e;t.logger?.debug?.(`${Be} Initial EndpointParams: ${Ie(r)}`);const s=Object.entries(i).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new Fe(`Missing required parameter: '${e}'`);const u=at(o,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;u.url.protocol=r,u.url.port=n}catch(e){}return t.logger?.debug?.(`${Be} Resolved endpoint: ${Ie(u)}`),u},ct="user-agent",lt="x-amz-user-agent",dt=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,ht=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,pt=e=>{const t=e[0].split("/").map((e=>e.replace(dt,"-"))).join("/"),r=e[1]?.replace(ht,"-"),n=t.indexOf("/"),i=t.substring(0,n);let o=t.substring(n+1);return"api"===i&&(o=o.toLowerCase()),[i,o,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},ft={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},mt=e=>({applyToStack:t=>{var r;t.add((r=e,(e,t)=>async n=>{const{request:i}=n;if(!l.isInstance(i))return e(n);const{headers:o}=i,s=t?.userAgent?.map(pt)||[],a=(await r.defaultUserAgentProvider()).map(pt),u=r?.customUserAgent?.map(pt)||[],c=Te(),d=(c?[c]:[]).concat([...a,...s,...u]).join(" "),h=[...a.filter((e=>e.startsWith("aws-sdk-"))),...u].join(" ");return"browser"!==r.runtime?(h&&(o[lt]=o[lt]?`${o[ct]} ${h}`:h),o[ct]=d):o[lt]=d,e({...n,request:i})}),ft)}});var gt;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(gt||(gt={}));const Et=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),yt=e=>Et(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,vt=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return yt(t);const e=await t();return yt(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!Et(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}},At="content-length",Ct={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},bt=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(l.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(At))try{const t=r(e);n.headers={...n.headers,[At]:String(t)}}catch(e){}}return e({...t,request:n})}),Ct)}}),St={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},wt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Ot(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>(r,n)=>async n=>{const{response:i}=await r(n);try{return{response:i,output:await t(i,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:i}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t}throw e}})(e,r),St),n.add(((e,t)=>(r,n)=>async i=>{const o=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!o)throw new Error("No valid endpoint provider available.");const s=await t(i.input,{...e,endpoint:o});return r({...i,request:s})})(e,t),wt)}}}const _t=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,xt=/(\d+\.){3}\d+/,Dt=/\.\./,Tt=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:n},Bt=async(e,t,r)=>{const n={},i=t?.getEndpointParameterInstructions?.()||{};for(const[t,o]of Object.entries(i))switch(o.type){case"staticContextParams":n[t]=o.value;break;case"contextParams":n[t]=e[o.name];break;case"clientContextParams":case"builtInParams":n[t]=await Tt(o.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(o))}return 0===Object.keys(i).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),(e=>{const[t,r,n,i,o,s]=e.split(":"),a="arn"===t&&e.split(":").length>=6,u=5===[t,r,n,o,s].filter(Boolean).length;if(a&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&r&&n&&o&&s)})(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else r=t,(!_t.test(r)||xt.test(r)||Dt.test(r)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);var r;return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},It={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:wt.name},Ft=(e,t)=>({applyToStack:r=>{r.addRelativeTo((({config:e,instructions:t})=>(r,n)=>async i=>{const o=await(async(e,t,r,n)=>{const i=await Bt(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)})(i.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=o,n.authSchemes=o.properties?.authSchemes;const s=n.authSchemes?.[0];return s&&(n.signing_region=s.signingRegion,n.signing_service=s.signingName),r({...i})})({config:e,instructions:t}),It)}}),Rt=e=>{if("string"==typeof e)return Rt(new URL(e));const{hostname:t,pathname:r,port:n,protocol:i,search:o}=e;let s;return o&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(o)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:s}},Pt=e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>(e=>"object"==typeof e?"url"in e?Rt(e.url):e:Rt(e))(await M(r)()):void 0,i=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:i,useDualstackEndpoint:M(e.useDualstackEndpoint??!1),useFipsEndpoint:M(e.useFipsEndpoint??!1)}};var kt,Nt;(Nt=kt||(kt={})).STANDARD="standard",Nt.ADAPTIVE="adaptive";const Mt=kt.STANDARD,Lt=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],jt=["TimeoutError","RequestTimeout","RequestTimeoutException"],Ut=[500,502,503,504],Vt=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],zt=e=>429===e.$metadata?.httpStatusCode||Lt.includes(e.name)||1==e.$retryable?.throttling,$t=e=>jt.includes(e.name)||Vt.includes(e?.code||"")||Ut.includes(e.$metadata?.httpStatusCode||0);class Wt{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),zt(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const Ht=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class Gt{constructor(e){this.maxAttempts=e,this.mode=kt.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return Ht({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,o=this.getCapacityCost(r);return this.capacity-=o,Ht({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:o})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class qt{constructor(e,t){this.maxAttemptsProvider=e,this.mode=kt.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Wt,this.standardRetryStrategy=new Gt(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const Kt=e=>{const{retryStrategy:t}=e,r=M(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await M(e.retryMode)()===kt.ADAPTIVE?new qt(r):new Gt(r))}};var Yt,Qt=new Uint8Array(16);function Xt(){if(!Yt&&!(Yt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yt(Qt)}const Zt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Jt=[],er=0;er<256;++er)Jt.push((er+256).toString(16).substr(1));const tr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Jt[e[t+0]]+Jt[e[t+1]]+Jt[e[t+2]]+Jt[e[t+3]]+"-"+Jt[e[t+4]]+Jt[e[t+5]]+"-"+Jt[e[t+6]]+Jt[e[t+7]]+"-"+Jt[e[t+8]]+Jt[e[t+9]]+"-"+Jt[e[t+10]]+Jt[e[t+11]]+Jt[e[t+12]]+Jt[e[t+13]]+Jt[e[t+14]]+Jt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Zt.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},rr=function(e,t,r){var n=(e=e||{}).random||(e.rng||Xt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return tr(n)},nr=e=>{const t={errorType:ir(e)},r=ar(e.$response);return r&&(t.retryAfterHint=r),t},ir=e=>zt(e)?"THROTTLING":$t(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!$t(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",or={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},sr=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let i=await e.retryStrategy();const o=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(i))return i?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n);{let e=await i.acquireInitialRetryToken(r.partition_id),a=new Error,u=0,c=0;const{request:d}=n;for(l.isInstance(d)&&(d.headers["amz-sdk-invocation-id"]=rr());;)try{l.isInstance(d)&&(d.headers["amz-sdk-request"]=`attempt=${u+1}; max=${o}`);const{response:r,output:s}=await t(n);return i.recordSuccess(e),s.$metadata.attempts=u+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const r=nr(t);a=(s=t)instanceof Error?s:s instanceof Object?Object.assign(new Error,s):"string"==typeof s?new Error(s):new Error(`AWS SDK error wrapper for ${s}`);try{e=await i.refreshRetryTokenForRetry(e,r)}catch(e){throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=u+1,a.$metadata.totalRetryDelay=c,a}u=e.getRetryCount();const n=e.getRetryDelay();c+=n,await new Promise((e=>setTimeout(e,n)))}}var s})(e),or)}}),ar=e=>{if(!d.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(1e3*n)};class ur{trace(){}debug(){}info(){}warn(){}error(){}}const cr=()=>{let e=[],t=[];const r=new Set,n=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},o=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(s[t.name]=t),n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};t.name&&(s[t.name]=t),o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(u=n,u.sort(((e,t)=>lr[t.step]-lr[e.step]||dr[t.priority||"normal"]-dr[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var u;return a},s={add:(t,n={})=>{const{name:i,override:o}=n,s={step:"initialize",priority:"normal",middleware:t,...n};if(i){if(r.has(i)){if(!o)throw new Error(`Duplicate middleware name '${i}'`);const t=e.findIndex((e=>e.name===i)),r=e[t];if(r.step!==s.step||r.priority!==s.priority)throw new Error(`"${i}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by same-name middleware with ${s.priority} priority in ${s.step} step.`);e.splice(t,1)}r.add(i)}e.push(s)},addRelativeTo:(e,n)=>{const{name:i,override:o}=n,s={middleware:e,...n};if(i){if(r.has(i)){if(!o)throw new Error(`Duplicate middleware name '${i}'`);const e=t.findIndex((e=>e.name===i)),r=t[e];if(r.toMiddleware!==s.toMiddleware||r.relation!==s.relation)throw new Error(`"${i}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by same-name middleware ${s.relation} "${s.toMiddleware}" middleware.`);t.splice(e,1)}r.add(i)}t.push(s)},clone:()=>n(cr()),use:e=>{e.applyToStack(s)},remove:n=>"string"==typeof n?(n=>{let i=!1;const o=e=>!e.name||e.name!==n||(i=!0,r.delete(n),!1);return e=e.filter(o),t=t.filter(o),i})(n):(n=>{let i=!1;const o=e=>e.middleware!==n||(i=!0,e.name&&r.delete(e.name),!1);return e=e.filter(o),t=t.filter(o),i})(n),removeByTag:n=>{let i=!1;const o=e=>{const{tags:t,name:o}=e;return!t||!t.includes(n)||(o&&r.delete(o),i=!0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:e=>{const t=n(cr());return t.use(e),t},applyToStack:n,identify:()=>o(!0).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const r of o().map((e=>e.middleware)).reverse())e=r(e,t);return e}};return s},lr={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},dr={high:3,normal:2,low:1};class hr{constructor(e){this.middlewareStack=cr(),this.config=e}send(e,t,r){const n="function"!=typeof t?t:void 0,i="function"==typeof t?t:r,o=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!i)return o(e).then((e=>e.output));o(e).then((e=>i(null,e.output)),(e=>i(e))).catch((()=>{}))}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const pr={},fr=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);pr[r]=e,fr[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;pr[r]=n,fr[n]=r}for(let e=0;e<10;e++){pr[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;pr[t]=r,fr[r]=t}pr["+"]=62,fr[62]="+",pr["/"]=63,fr[63]="/";const mr=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,i=0;for(let n=t,o=t+3;n<=o;n++)if("="!==e[n]){if(!(e[n]in pr))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=pr[e[n]]<<6*(o-n),i+=6}else r>>=6;const o=t/4*3;r>>=i%8;const s=Math.floor(i/8);for(let e=0;e<s;e++){const t=8*(s-e-1);n.setUint8(o+e,(r&255<<t)>>t)}}return new Uint8Array(r)};function gr(e){let t="";for(let r=0;r<e.length;r+=3){let n=0,i=0;for(let t=r,o=Math.min(r+3,e.length);t<o;t++)n|=e[t]<<8*(o-t-1),i+=8;const o=Math.ceil(i/6);n<<=6*o-i;for(let e=1;e<=o;e++){const r=6*(o-e);t+=fr[(n&63<<r)>>r]}t+="==".slice(0,4-o)}return t}class Er extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?Er.mutate(mr(e)):Er.mutate(j(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,Er.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?gr(e):L(e)}(this,e)}}function yr(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}class vr{constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let n=e.path;const i=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=ae(r),Array.isArray(n))for(let e=0,i=n.length;e<i;e++)t.push(`${r}=${ae(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${ae(n)}`),t.push(e)}}return t.join("&")}(e.query||{});i&&(n+=`?${i}`),e.fragment&&(n+=`#${e.fragment}`);let o="";null==e.username&&null==e.password||(o=`${e.username??""}:${e.password??""}@`);const{port:s,method:a}=e,u=`${e.protocol}//${o}${e.hostname}${s?`:${s}`:""}${n}`,c={body:"GET"===a||"HEAD"===a?void 0:e.body,headers:new Headers(e.headers),method:a};"undefined"!=typeof AbortController&&(c.signal=t);const l=new Request(u,c),h=[fetch(l).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new d({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new d({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),yr(r)];return t&&h.push(new Promise(((e,r)=>{t.onabort=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)}}))),Promise.race(h)}}const Ar=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",i=e.indexOf(","),o=i>-1?i+1:e.length;t(e.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=mr(t);return new Uint8Array(r)}(e):async function(e){let t=new Uint8Array(0);const r=e.getReader();let n=!1;for(;!n;){const{done:e,value:i}=await r.read();if(i){const e=t;t=new Uint8Array(e.length+i.length),t.set(e),t.set(i,e.length)}n=e}return t}(e),Cr=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Er.mutate(e);if(!e)return Er.mutate(new Uint8Array);const r=t.streamCollector(e);return Er.mutate(await r)};class br{constructor(){this.middlewareStack=cr()}}const Sr="***SensitiveInformation***",wr=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Pr.warn(Rr(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},Or=Math.ceil(2**127*(2-2**-23)),_r=(e,t)=>{const r=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==r&&xr(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},xr=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Dr=(e,t)=>{if(null==e){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},Tr=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return Pr.warn(Rr(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},Br=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Ir=e=>{const t=e.match(Br);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Fr=e=>(e=>_r(e,32))("string"==typeof e?Ir(e):e),Rr=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Pr={warn:console.warn},kr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Nr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Mr=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=Nr.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,i,o,s,a,u,c,l]=t,d=(e=>(e=>_r(e,16))("string"==typeof e?Ir(e):e))(Hr(n)),h=zr(i,"month",1,12),p=zr(o,"day",1,31),f=Lr(d,h,p,{hours:s,minutes:a,seconds:u,fractionalMilliseconds:c});return"Z"!=l.toUpperCase()&&f.setTime(f.getTime()-Wr(l)),f},Lr=(e,t,r,n)=>{const i=t-1;return Ur(e,i,r),new Date(Date.UTC(e,i,r,zr(n.hours,"hour",0,23),zr(n.minutes,"minute",0,59),zr(n.seconds,"seconds",0,60),$r(n.fractionalMilliseconds)))},jr=[31,28,31,30,31,30,31,31,30,31,30,31],Ur=(e,t,r)=>{let n=jr[t];if(1===t&&Vr(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${kr[t]} in ${e}: ${r}`)},Vr=e=>e%4==0&&(e%100!=0||e%400==0),zr=(e,t,r,n)=>{const i=(e=>(e=>_r(e,8))("string"==typeof e?Ir(e):e))(Hr(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},$r=e=>null==e?0:1e3*(e=>(e=>{const t=wr(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Or)throw new TypeError(`Expected 32-bit float, got ${e}`);return t})("string"==typeof e?Ir(e):e))("0."+e),Wr=e=>{const t=e[0];let r=1;if("+"==t)r=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);r=-1}return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},Hr=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)};class Gr extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Gr.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const qr=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Kr=e=>({output:t,parsedBody:r,errorCode:n})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const i=Yr(e),o=i.httpStatusCode?i.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||o||"UnknownError",$fault:"client",$metadata:i});throw qr(s,t)})({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})},Yr=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Qr=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};function Xr(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}const Zr=e=>{const t="#text";for(const r in e)e.hasOwnProperty(r)&&void 0!==e[r][t]?e[r]=e[r][t]:"object"==typeof e[r]&&null!==e[r]&&(e[r]=Zr(e[r]));return e},Jr=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};Jr.prototype=Object.create(String.prototype,{constructor:{value:Jr,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Jr,String);const en=(e,t)=>{const r={};for(const n in t)tn(r,e,t,n);return r},tn=(e,t,r,n)=>{if(null!==t){let i=r[n];"function"==typeof i&&(i=[,i]);const[o=rn,s=nn,a=n]=i;return void(("function"==typeof o&&o(t[a])||"function"!=typeof o&&o)&&(e[n]=s(t[a])))}let[i,o]=r[n];if("function"==typeof o){let t;const r=void 0===i&&null!=(t=o()),s="function"==typeof i&&!!i(void 0)||"function"!=typeof i&&!!i;r?e[n]=t:s&&(e[n]=o())}else{const t=void 0===i&&null!=o,r="function"==typeof i&&!!i(o)||"function"!=typeof i&&!!i;(t||r)&&(e[n]=o)}},rn=e=>null!=e,nn=e=>e,on=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter((e=>null!=e));if("object"==typeof e){const t={};for(const r of Object.keys(e))null!=e[r]&&(t[r]=on(e[r]));return t}return e};var sn=r(8322),an=r(7160),un=r.n(an);const cn=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?un().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n},ln=e=>()=>Promise.reject(e),dn=e=>{if("string"==typeof e){let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},hn="required",pn="fn",fn="argv",mn="ref",gn="PartitionResult",En="tree",yn="error",vn="endpoint",An={[hn]:!1,type:"String"},Cn={[hn]:!0,default:!1,type:"Boolean"},bn={[mn]:"Endpoint"},Sn={[pn]:"booleanEquals",[fn]:[{[mn]:"UseFIPS"},!0]},wn={[pn]:"booleanEquals",[fn]:[{[mn]:"UseDualStack"},!0]},On={},_n={[pn]:"booleanEquals",[fn]:[!0,{[pn]:"getAttr",[fn]:[{[mn]:gn},"supportsFIPS"]}]},xn={[pn]:"booleanEquals",[fn]:[!0,{[pn]:"getAttr",[fn]:[{[mn]:gn},"supportsDualStack"]}]},Dn=[bn],Tn=[Sn],Bn=[wn],In={version:"1.0",parameters:{Region:An,UseDualStack:Cn,UseFIPS:Cn,Endpoint:An},rules:[{conditions:[{[pn]:"aws.partition",[fn]:[{[mn]:"Region"}],assign:gn}],type:En,rules:[{conditions:[{[pn]:"isSet",[fn]:Dn},{[pn]:"parseURL",[fn]:Dn,assign:"url"}],type:En,rules:[{conditions:Tn,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:yn},{type:En,rules:[{conditions:Bn,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:yn},{endpoint:{url:bn,properties:On,headers:On},type:vn}]}]},{conditions:[Sn,wn],type:En,rules:[{conditions:[_n,xn],type:En,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:On,headers:On},type:vn}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:yn}]},{conditions:Tn,type:En,rules:[{conditions:[_n],type:En,rules:[{type:En,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:On,headers:On},type:vn}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:yn}]},{conditions:Bn,type:En,rules:[{conditions:[xn],type:En,rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:On,headers:On},type:vn}]},{error:"DualStack is enabled but this partition does not support DualStack",type:yn}]},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:On,headers:On},type:vn}]}]},Fn=(e,t={})=>ut(In,{endpointParams:e,logger:t.logger}),Rn=["in-region","cross-region","mobile","standard","legacy"],Pn=({defaultsMode:e}={})=>v((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(kn()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Rn.join(", ")}, got ${t}`)}})),kn=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?un().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t};class Nn extends hr{constructor(e){const t=(r=(e=>{const t=Pn(e),r=()=>t().then(Qr),n=(e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??mr,base64Encoder:e?.base64Encoder??gr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Fn,logger:e?.logger??new ur,serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??Rt,utf8Decoder:e?.utf8Decoder??j,utf8Encoder:e?.utf8Encoder??L}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??dn,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??cn({serviceId:n.serviceId,clientVersion:"3.370.0"}),maxAttempts:e?.maxAttempts??3,region:e?.region??ln("Region is missing"),requestHandler:e?.requestHandler??new vr(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Mt),sha256:e?.sha256??sn.Sha256,streamCollector:e?.streamCollector??Ar,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}})(e),{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"});var r;const n=vt(t),i=Pt(n),o=Kt(i),s=be(ge(o));super(s),this.config=s,this.middlewareStack.use(sr(this.config)),this.middlewareStack.use(bt(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(m(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(mt(this.config))}destroy(){super.destroy()}}class Mn extends Gr{constructor(e){super(e),Object.setPrototypeOf(this,Mn.prototype)}}class Ln extends Mn{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,Ln.prototype)}}class jn extends Mn{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,jn.prototype)}}class Un extends Mn{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Un.prototype)}}class Vn extends Mn{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,Vn.prototype)}}class zn extends Mn{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,zn.prototype)}}class $n extends Mn{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,$n.prototype)}}class Wn extends Mn{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Wn.prototype)}}class Hn extends Mn{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,Hn.prototype)}}class Gn extends Mn{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Gn.prototype)}}const qn=async(e,t)=>{const r=e.body,n=on(r),i=new Hn({$metadata:ni(e),...n});return qr(i,r)},Kn=async(e,t)=>{const r=e.body,n=on(r),i=new Ln({$metadata:ni(e),...n});return qr(i,r)},Yn=async(e,t)=>{const r=e.body,n=on(r),i=new Gn({$metadata:ni(e),...n});return qr(i,r)},Qn=async(e,t)=>{const r=e.body,n=on(r),i=new jn({$metadata:ni(e),...n});return qr(i,r)},Xn=async(e,t)=>{const r=e.body,n=on(r),i=new Un({$metadata:ni(e),...n});return qr(i,r)},Zn=async(e,t)=>{const r=e.body,n=on(r),i=new Vn({$metadata:ni(e),...n});return qr(i,r)},Jn=async(e,t)=>{const r=e.body,n=on(r),i=new zn({$metadata:ni(e),...n});return qr(i,r)},ei=async(e,t)=>{const r=e.body,n=on(r),i=new Wn({$metadata:ni(e),...n});return qr(i,r)},ti=async(e,t)=>{const r=e.body,n=on(r),i=new $n({$metadata:ni(e),...n});return qr(i,r)},ri=(e,t)=>en(e,{AccessKeyId:Tr,Expiration:e=>Dr((e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else{if("string"!=typeof e)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=(e=>wr("string"==typeof e?Ir(e):e))(e)}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))})(wr(e))),SecretKey:Tr,SessionToken:Tr}),ni=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),ii=Kr(Mn),oi=async(e,t,r,n,i)=>{const{hostname:o,protocol:s="https",port:a,path:u}=await e.endpoint(),c={protocol:s,hostname:o,port:a,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+r:u+r,headers:t};return void 0!==n&&(c.hostname=n),void 0!==i&&(c.body=i),new l(c)};function si(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}}const ai=(e,t)=>((e,t)=>Cr(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),ui=async(e,t)=>{const r=await ai(e,t);return r.message=r.message??r.Message,r},ci=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(i=e.headers,"x-amzn-errortype",Object.keys(i).find((e=>e.toLowerCase()==="x-amzn-errortype".toLowerCase())));var i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class li extends br{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(Ot(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ft(t,li.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:i}=t,o={logger:i,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const r=si("GetCredentialsForIdentity");let n;return n=JSON.stringify(on(e)),oi(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await ui(e.body,t)},n=ci(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await qn(r,t);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Kn(r,t);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await Yn(r,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await Qn(r,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Zn(r,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await Jn(r,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await ei(r,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await ti(r,t);default:const i=r.body;return ii({output:e,parsedBody:i,errorCode:n})}})(e,t);let r={};return r=((e,t)=>en(e,{Credentials:e=>ri(e),IdentityId:Tr}))(await ai(e.body,t)),{$metadata:ni(e),...r}})(e,t)}}class di extends Error{constructor(e,t=!0){super(e),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,di.prototype)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}class hi extends di{constructor(e,t=!0){super(e,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,hi.prototype)}}function pi(e){return Promise.all(Object.keys(e).reduce(((t,r)=>{const n=e[r];return"string"==typeof n?t.push([r,n]):t.push(n().then((e=>[r,e]))),t}),[])).then((e=>e.reduce(((e,[t,r])=>(e[t]=r,e)),{})))}function fi(e){return async()=>{const{Credentials:{AccessKeyId:t=mi(),Expiration:r,SecretKey:n=Ei(),SessionToken:i}=gi()}=await e.client.send(new li({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await pi(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:t,secretAccessKey:n,sessionToken:i,expiration:r}}}function mi(){throw new hi("Response from Amazon Cognito contained no access key ID")}function gi(){throw new hi("Response from Amazon Cognito contained no credentials")}function Ei(){throw new hi("Response from Amazon Cognito contained no secret key")}const yi=e=>fi({...e,client:new Nn(e.clientConfig??{})});class vi extends br{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(Ot(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ft(t,vi.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:i}=t,o={logger:i,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const r=si("GetId");let n;return n=JSON.stringify(on(e)),oi(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await ui(e.body,t)},n=ci(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await qn(r,t);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Kn(r,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await Qn(r,t);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await Xn(r,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Zn(r,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await Jn(r,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await ei(r,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await ti(r,t);default:const i=r.body;return ii({output:e,parsedBody:i,errorCode:n})}})(e,t);const r=await ai(e.body,t);let n={};return n=on(r),{$metadata:ni(e),...n}})(e,t)}}const Ai="IdentityIds";class Ci{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",(t=>{const r=t.get(e);return new Promise((e=>{r.onerror=()=>e(null),r.onsuccess=()=>e(r.result?r.result.value:null)}))})).catch((()=>null))}removeItem(e){return this.withObjectStore("readwrite",(t=>{const r=t.delete(e);return new Promise(((e,t)=>{r.onerror=()=>t(r.error),r.onsuccess=()=>e()}))}))}setItem(e,t){return this.withObjectStore("readwrite",(r=>{const n=r.put({id:e,value:t});return new Promise(((e,t)=>{n.onerror=()=>t(n.error),n.onsuccess=()=>e()}))}))}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise(((t,r)=>{e.onsuccess=()=>{t(e.result)},e.onerror=()=>{r(e.error)},e.onblocked=()=>{r(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const t=e.result;t.onerror=()=>{r(new Error("Failed to create object store"))},t.createObjectStore(Ai,{keyPath:"id"})}}))}withObjectStore(e,t){return this.getDb().then((r=>{const n=r.transaction(Ai,e);return n.oncomplete=()=>r.close(),new Promise(((e,r)=>{n.onerror=()=>r(n.error),e(t(n.objectStore(Ai)))})).catch((e=>{throw r.close(),e}))}))}}const bi=new class{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}};function Si(){return"object"==typeof self&&self.indexedDB?new Ci:"object"==typeof window&&window.localStorage?window.localStorage:bi}function wi(){throw new hi("Response from Amazon Cognito contained no identity ID")}const Oi=e=>function({accountId:e,cache:t=Si(),client:r,customRoleArn:n,identityPoolId:i,logins:o,userIdentifier:s=(o&&0!==Object.keys(o).length?void 0:"ANONYMOUS")}){const a=s?`aws:cognito-identity-credentials:${i}:${s}`:void 0;let u=async()=>{let s=a&&await t.getItem(a);if(!s){const{IdentityId:n=wi()}=await r.send(new vi({AccountId:e,IdentityPoolId:i,Logins:o?await pi(o):void 0}));s=n,a&&Promise.resolve(t.setItem(a,s)).catch((()=>{}))}return u=fi({client:r,customRoleArn:n,logins:o,identityId:s}),u()};return()=>u().catch((async e=>{throw a&&Promise.resolve(t.removeItem(a)).catch((()=>{})),e}))}({...e,client:new Nn(e.clientConfig??{})}),_i="required",xi="type",Di="fn",Ti="argv",Bi="ref",Ii="booleanEquals",Fi="tree",Ri="stringEquals",Pi="sigv4",ki="us-east-1",Ni="endpoint",Mi="https://sts.{Region}.{PartitionResult#dnsSuffix}",Li="error",ji="getAttr",Ui={[_i]:!1,[xi]:"String"},Vi={[_i]:!0,default:!1,[xi]:"Boolean"},zi={[Bi]:"Endpoint"},$i={[Di]:"isSet",[Ti]:[{[Bi]:"Region"}]},Wi={[Bi]:"Region"},Hi={[Di]:"aws.partition",[Ti]:[Wi],assign:"PartitionResult"},Gi={[Bi]:"UseFIPS"},qi={[Bi]:"UseDualStack"},Ki={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Pi,signingName:"sts",signingRegion:ki}]},headers:{}},Yi={},Qi={conditions:[{[Di]:Ri,[Ti]:[Wi,"aws-global"]}],[Ni]:Ki,[xi]:Ni},Xi={[Di]:Ii,[Ti]:[Gi,!0]},Zi={[Di]:Ii,[Ti]:[qi,!0]},Ji={[Di]:Ii,[Ti]:[!0,{[Di]:ji,[Ti]:[{[Bi]:"PartitionResult"},"supportsFIPS"]}]},eo={[Bi]:"PartitionResult"},to={[Di]:Ii,[Ti]:[!0,{[Di]:ji,[Ti]:[eo,"supportsDualStack"]}]},ro=[{[Di]:"isSet",[Ti]:[zi]}],no=[Xi],io=[Zi],oo={version:"1.0",parameters:{Region:Ui,UseDualStack:Vi,UseFIPS:Vi,Endpoint:Ui,UseGlobalEndpoint:Vi},rules:[{conditions:[{[Di]:Ii,[Ti]:[{[Bi]:"UseGlobalEndpoint"},!0]},{[Di]:"not",[Ti]:ro},$i,Hi,{[Di]:Ii,[Ti]:[Gi,!1]},{[Di]:Ii,[Ti]:[qi,!1]}],[xi]:Fi,rules:[{conditions:[{[Di]:Ri,[Ti]:[Wi,"ap-northeast-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"ap-south-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"ap-southeast-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"ap-southeast-2"]}],endpoint:Ki,[xi]:Ni},Qi,{conditions:[{[Di]:Ri,[Ti]:[Wi,"ca-central-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"eu-central-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"eu-north-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"eu-west-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"eu-west-2"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"eu-west-3"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"sa-east-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,ki]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"us-east-2"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"us-west-1"]}],endpoint:Ki,[xi]:Ni},{conditions:[{[Di]:Ri,[Ti]:[Wi,"us-west-2"]}],endpoint:Ki,[xi]:Ni},{endpoint:{url:Mi,properties:{authSchemes:[{name:Pi,signingName:"sts",signingRegion:"{Region}"}]},headers:Yi},[xi]:Ni}]},{conditions:ro,[xi]:Fi,rules:[{conditions:no,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[xi]:Li},{[xi]:Fi,rules:[{conditions:io,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[xi]:Li},{endpoint:{url:zi,properties:Yi,headers:Yi},[xi]:Ni}]}]},{[xi]:Fi,rules:[{conditions:[$i],[xi]:Fi,rules:[{conditions:[Hi],[xi]:Fi,rules:[{conditions:[Xi,Zi],[xi]:Fi,rules:[{conditions:[Ji,to],[xi]:Fi,rules:[{[xi]:Fi,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Yi,headers:Yi},[xi]:Ni}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[xi]:Li}]},{conditions:no,[xi]:Fi,rules:[{conditions:[Ji],[xi]:Fi,rules:[{[xi]:Fi,rules:[{conditions:[{[Di]:Ri,[Ti]:["aws-us-gov",{[Di]:ji,[Ti]:[eo,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Yi,headers:Yi},[xi]:Ni},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Yi,headers:Yi},[xi]:Ni}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[xi]:Li}]},{conditions:io,[xi]:Fi,rules:[{conditions:[to],[xi]:Fi,rules:[{[xi]:Fi,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Yi,headers:Yi},[xi]:Ni}]}]},{error:"DualStack is enabled but this partition does not support DualStack",[xi]:Li}]},{[xi]:Fi,rules:[Qi,{endpoint:{url:Mi,properties:Yi,headers:Yi},[xi]:Ni}]}]}]},{error:"Invalid Configuration: Missing Region",[xi]:Li}]}]},so=(e,t={})=>ut(oo,{endpointParams:e,logger:t.logger});class ao extends hr{constructor(e){const t=(r=(e=>{const t=Pn(e),r=()=>t().then(Qr),n=(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??mr,base64Encoder:e?.base64Encoder??gr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??so,logger:e?.logger??new ur,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Rt,utf8Decoder:e?.utf8Decoder??j,utf8Encoder:e?.utf8Encoder??L}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??dn,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??cn({serviceId:n.serviceId,clientVersion:"3.370.0"}),maxAttempts:e?.maxAttempts??3,region:e?.region??ln("Region is missing"),requestHandler:e?.requestHandler??new vr(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Mt),sha256:e?.sha256??sn.Sha256,streamCollector:e?.streamCollector??Ar,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}})(e),{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"});var r;const n=vt(t),i=Pt(n),o=be(((e,{stsClientCtor:t})=>ge({...e,stsClientCtor:t}))(Kt(i),{stsClientCtor:ao}));super(o),this.config=o,this.middlewareStack.use(sr(this.config)),this.middlewareStack.use(bt(this.config)),this.middlewareStack.use(p(this.config)),this.middlewareStack.use(m(this.config)),this.middlewareStack.use(y(this.config)),this.middlewareStack.use(mt(this.config))}destroy(){super.destroy()}}class uo extends Gr{constructor(e){super(e),Object.setPrototypeOf(this,uo.prototype)}}class co extends uo{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,co.prototype)}}class lo extends uo{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,lo.prototype)}}class ho extends uo{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,ho.prototype)}}class po extends uo{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,po.prototype)}}class fo extends uo{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,fo.prototype)}}class mo extends uo{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,mo.prototype)}}class go extends uo{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,go.prototype)}}const Eo=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:Sr}}),yo=e=>({...e,...e.Credentials&&{Credentials:Eo(e.Credentials)}}),vo=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:Sr}}),Ao=e=>({...e,...e.Credentials&&{Credentials:Eo(e.Credentials)}});var Co=r(2215);const bo=async(e,t)=>{const r=e.body,n=Lo(r.Error,t),i=new co({$metadata:Ho(e),...n});return qr(i,r)},So=async(e,t)=>{const r=e.body,n=jo(r.Error,t),i=new go({$metadata:Ho(e),...n});return qr(i,r)},wo=async(e,t)=>{const r=e.body,n=Uo(r.Error,t),i=new fo({$metadata:Ho(e),...n});return qr(i,r)},Oo=async(e,t)=>{const r=e.body,n=Vo(r.Error,t),i=new mo({$metadata:Ho(e),...n});return qr(i,r)},_o=async(e,t)=>{const r=e.body,n=zo(r.Error,t),i=new lo({$metadata:Ho(e),...n});return qr(i,r)},xo=async(e,t)=>{const r=e.body,n=$o(r.Error,t),i=new ho({$metadata:Ho(e),...n});return qr(i,r)},Do=async(e,t)=>{const r=e.body,n=Wo(r.Error,t),i=new po({$metadata:Ho(e),...n});return qr(i,r)},To=(e,t)=>{const r={};if(null!=e.RoleArn&&(r.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(r.RoleSessionName=e.RoleSessionName),null!=e.PolicyArns){const n=Io(e.PolicyArns,t);0===e.PolicyArns?.length&&(r.PolicyArns=[]),Object.entries(n).forEach((([e,t])=>{r[`PolicyArns.${e}`]=t}))}if(null!=e.Policy&&(r.Policy=e.Policy),null!=e.DurationSeconds&&(r.DurationSeconds=e.DurationSeconds),null!=e.Tags){const n=ko(e.Tags,t);0===e.Tags?.length&&(r.Tags=[]),Object.entries(n).forEach((([e,t])=>{r[`Tags.${e}`]=t}))}if(null!=e.TransitiveTagKeys){const n=Po(e.TransitiveTagKeys,t);0===e.TransitiveTagKeys?.length&&(r.TransitiveTagKeys=[]),Object.entries(n).forEach((([e,t])=>{r[`TransitiveTagKeys.${e}`]=t}))}return null!=e.ExternalId&&(r.ExternalId=e.ExternalId),null!=e.SerialNumber&&(r.SerialNumber=e.SerialNumber),null!=e.TokenCode&&(r.TokenCode=e.TokenCode),null!=e.SourceIdentity&&(r.SourceIdentity=e.SourceIdentity),r},Bo=(e,t)=>{const r={};if(null!=e.RoleArn&&(r.RoleArn=e.RoleArn),null!=e.RoleSessionName&&(r.RoleSessionName=e.RoleSessionName),null!=e.WebIdentityToken&&(r.WebIdentityToken=e.WebIdentityToken),null!=e.ProviderId&&(r.ProviderId=e.ProviderId),null!=e.PolicyArns){const n=Io(e.PolicyArns,t);0===e.PolicyArns?.length&&(r.PolicyArns=[]),Object.entries(n).forEach((([e,t])=>{r[`PolicyArns.${e}`]=t}))}return null!=e.Policy&&(r.Policy=e.Policy),null!=e.DurationSeconds&&(r.DurationSeconds=e.DurationSeconds),r},Io=(e,t)=>{const r={};let n=1;for(const i of e){if(null===i)continue;const e=Fo(i,t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r},Fo=(e,t)=>{const r={};return null!=e.arn&&(r.arn=e.arn),r},Ro=(e,t)=>{const r={};return null!=e.Key&&(r.Key=e.Key),null!=e.Value&&(r.Value=e.Value),r},Po=(e,t)=>{const r={};let n=1;for(const t of e)null!==t&&(r[`member.${n}`]=t,n++);return r},ko=(e,t)=>{const r={};let n=1;for(const t of e){if(null===t)continue;const e=Ro(t);Object.entries(e).forEach((([e,t])=>{r[`member.${n}.${e}`]=t})),n++}return r},No=(e,t)=>{const r={};return void 0!==e.AssumedRoleId&&(r.AssumedRoleId=Tr(e.AssumedRoleId)),void 0!==e.Arn&&(r.Arn=Tr(e.Arn)),r},Mo=(e,t)=>{const r={};return void 0!==e.AccessKeyId&&(r.AccessKeyId=Tr(e.AccessKeyId)),void 0!==e.SecretAccessKey&&(r.SecretAccessKey=Tr(e.SecretAccessKey)),void 0!==e.SessionToken&&(r.SessionToken=Tr(e.SessionToken)),void 0!==e.Expiration&&(r.Expiration=Dr(Mr(e.Expiration))),r},Lo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},jo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},Uo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},Vo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},zo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},$o=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},Wo=(e,t)=>{const r={};return void 0!==e.message&&(r.message=Tr(e.message)),r},Ho=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Go=Kr(uo),qo=async(e,t,r,n,i)=>{const{hostname:o,protocol:s="https",port:a,path:u}=await e.endpoint(),c={protocol:s,hostname:o,port:a,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+r:u+r,headers:t};return void 0!==n&&(c.hostname=n),void 0!==i&&(c.body=i),new l(c)},Ko={"content-type":"application/x-www-form-urlencoded"},Yo=(e,t)=>((e,t)=>Cr(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length){const t=new Co.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>""===t.trim()&&t.includes("\n")?"":void 0});t.addEntity("#xD","\r"),t.addEntity("#10","\n");const r=t.parse(e),n="#text",i=Object.keys(r)[0],o=r[i];return o[n]&&(o[i]=o[n],delete o[n]),Zr(o)}return{}})),Qo=async(e,t)=>{const r=await Yo(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},Xo=e=>Object.entries(e).map((([e,t])=>Xr(e)+"="+Xr(t))).join("&"),Zo=(e,t)=>void 0!==t.Error?.Code?t.Error.Code:404==e.statusCode?"NotFound":void 0;class Jo extends br{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(Ot(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ft(t,Jo.getEndpointParameterInstructions())),this.middlewareStack.use((e=>({applyToStack:t=>{t.addRelativeTo((e=>(t,r)=>async function(n){if(!l.isInstance(n.request))return t(n);const i=r.endpointV2?.properties?.authSchemes?.[0],o="sigv4a"===i?.name?i?.signingRegionSet?.join(","):void 0,s=await e.signer(i),a=await t({...n,request:await s.sign(n.request,{signingDate:ye(e.systemClockOffset),signingRegion:o||r.signing_region,signingService:r.signing_service})}).catch((t=>{const r=t.ServerTime??Ae(t.$response);throw r&&(e.systemClockOffset=ve(r,e.systemClockOffset)),t})),u=Ae(a.response);return u&&(e.systemClockOffset=ve(u,e.systemClockOffset)),a})(e),Ce)}}))(t));const n=e.concat(this.middlewareStack),{logger:i}=t,o={logger:i,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:yo},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const r=Ko;let n;return n=Xo({...To(e,t),Action:"AssumeRole",Version:"2011-06-15"}),qo(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Qo(e.body,t)},n=Zo(e,r.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await bo(r,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await _o(r,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await xo(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Do(r,t);default:const i=r.body;return Go({output:e,parsedBody:i.Error,errorCode:n})}})(e,t);let r={};return r=((e,t)=>{const r={};return void 0!==e.Credentials&&(r.Credentials=Mo(e.Credentials,t)),void 0!==e.AssumedRoleUser&&(r.AssumedRoleUser=No(e.AssumedRoleUser)),void 0!==e.PackedPolicySize&&(r.PackedPolicySize=Fr(e.PackedPolicySize)),void 0!==e.SourceIdentity&&(r.SourceIdentity=Tr(e.SourceIdentity)),r})((await Yo(e.body,t)).AssumeRoleResult,t),{$metadata:Ho(e),...r}})(e,t)}}const es=e=>{let t;return async()=>{const r={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(r?.SerialNumber){if(!e.mfaCodeProvider)throw new hi("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",!1);r.TokenCode=await e.mfaCodeProvider(r?.SerialNumber)}if(t||(t=new ao({...e.clientConfig,credentials:e.masterCredentials})),e.clientPlugins)for(const r of e.clientPlugins)t.middlewareStack.use(r);const{Credentials:n}=await t.send(new Jo(r));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new hi(`Invalid response from STS.assumeRole call with role ${r.RoleArn}`);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration}}};class ts extends br{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(Ot(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ft(t,ts.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:i}=t,o={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:vo,outputFilterSensitiveLog:Ao},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),o)}serialize(e,t){return(async(e,t)=>{const r=Ko;let n;return n=Xo({...Bo(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),qo(t,r,"/",void 0,n)})(e,t)}deserialize(e,t){return(async(e,t)=>{if(e.statusCode>=300)return(async(e,t)=>{const r={...e,body:await Qo(e.body,t)},n=Zo(e,r.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await bo(r,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await So(r,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await wo(r,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Oo(r,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await _o(r,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await xo(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Do(r,t);default:const i=r.body;return Go({output:e,parsedBody:i.Error,errorCode:n})}})(e,t);let r={};return r=((e,t)=>{const r={};return void 0!==e.Credentials&&(r.Credentials=Mo(e.Credentials,t)),void 0!==e.SubjectFromWebIdentityToken&&(r.SubjectFromWebIdentityToken=Tr(e.SubjectFromWebIdentityToken)),void 0!==e.AssumedRoleUser&&(r.AssumedRoleUser=No(e.AssumedRoleUser)),void 0!==e.PackedPolicySize&&(r.PackedPolicySize=Fr(e.PackedPolicySize)),void 0!==e.Provider&&(r.Provider=Tr(e.Provider)),void 0!==e.Audience&&(r.Audience=Tr(e.Audience)),void 0!==e.SourceIdentity&&(r.SourceIdentity=Tr(e.SourceIdentity)),r})((await Yo(e.body,t)).AssumeRoleWithWebIdentityResult,t),{$metadata:Ho(e),...r}})(e,t)}}const rs="us-east-1",ns=e=>"function"!=typeof e?void 0===e?rs:e:async()=>{try{return await e()}catch(e){return rs}},is=(e,t)=>t?class extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,os=(e={},t)=>((e,t)=>{let r;return async n=>{if(!r){const{logger:n,region:i,requestHandler:o}=e;r=new t({logger:n,region:ns(i||e.region),...o?{requestHandler:o}:{}})}const{Credentials:i}=await r.send(new ts(n));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}})(e,is(ao,t));r(6745);const ss=e=>(e=>()=>{const{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:o,policy:s,durationSeconds:a,roleAssumerWithWebIdentity:u}=e;if(!u)throw new hi(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:o,Policy:s,DurationSeconds:a})})({...e,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity??os(e.clientConfig,e.clientPlugins)})},8281:(e,t,r)=>{"use strict";r.r(t),r.d(t,{locateWindow:()=>i});const n={};function i(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},6778:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n,toUtf8:()=>i});const n=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))){const i=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),i=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){const i=e[++r];t+=String.fromCharCode((31&n)<<6|63&i)}else if(240<=n&&n<365){const i="%"+[n,e[++r],e[++r],e[++r]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(i)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)},1595:(e,t,r)=>{var n=t,i=r(7360),o=r(6624),s=r(4770),a=r(4680)(1e3);function u(e,t,r){return s.createHmac("sha256",e).update(t,"utf8").digest(r)}function c(e,t){return s.createHash("sha256").update(e,"utf8").digest(t)}function l(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function d(e){return l(encodeURIComponent(e))}var h={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function p(e,t){"string"==typeof e&&(e=i.parse(e));var r=e.headers=e.headers||{},n=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||r.Host||r.host);this.request=e,this.credentials=t||this.defaultCredentials(),this.service=e.service||n[0]||"",this.region=e.region||n[1]||"us-east-1","email"===this.service&&(this.service="ses"),!e.method&&e.body&&(e.method="POST"),r.Host||r.host||(r.Host=e.hostname||e.host||this.createHost(),e.port&&(r.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=r.Host||r.host),this.isCodeCommitGit="codecommit"===this.service&&"GIT"===e.method}p.prototype.matchHost=function(e){var t=((e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/)||[]).slice(1,3);if("es"===t[1]&&(t=t.reverse()),"s3"==t[1])t[0]="s3",t[1]="us-east-1";else for(var r=0;r<2;r++)if(/^s3-/.test(t[r])){t[1]=t[r].slice(3),t[0]="s3";break}return t},p.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&"us-east-1"===this.region||["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0},p.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region;return("ses"===this.service?"email":this.service)+e+".amazonaws.com"},p.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,r=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},this.credentials.sessionToken&&(e["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||e["X-Amz-Expires"]||(e["X-Amz-Expires"]=86400),e["X-Amz-Date"]?this.datetime=e["X-Amz-Date"]:e["X-Amz-Date"]=this.getDateTime(),e["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",e["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),e["X-Amz-SignedHeaders"]=this.signedHeaders()):(t.doNotModifyHeaders||this.isCodeCommitGit||(!t.body||r["Content-Type"]||r["content-type"]||(r["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),!t.body||r["Content-Length"]||r["content-length"]||(r["Content-Length"]=Buffer.byteLength(t.body)),!this.credentials.sessionToken||r["X-Amz-Security-Token"]||r["x-amz-security-token"]||(r["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||(r["X-Amz-Content-Sha256"]=c(this.request.body||"","hex")),r["X-Amz-Date"]||r["x-amz-date"]?this.datetime=r["X-Amz-Date"]||r["x-amz-date"]:r["X-Amz-Date"]=this.getDateTime()),delete r.Authorization,delete r.authorization)},p.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this.request},p.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,""),this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))}return this.datetime},p.prototype.getDate=function(){return this.getDateTime().substr(0,8)},p.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")},p.prototype.signature=function(){var e,t,r,n=this.getDate(),i=[this.credentials.secretAccessKey,n,this.region,this.service].join(),o=a.get(i);return o||(e=u("AWS4"+this.credentials.secretAccessKey,n),t=u(e,this.region),r=u(t,this.service),o=u(r,"aws4_request"),a.set(i,o)),u(o,this.stringToSign(),"hex")},p.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),c(this.canonicalString(),"hex")].join("\n")},p.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e,t=this.parsedPath.path,r=this.parsedPath.query,n=this.request.headers,i="",o="s3"!==this.service,s="s3"===this.service||this.request.doNotEncodePath,a="s3"===this.service,u="s3"===this.service;if(e="s3"===this.service&&this.request.signQuery?"UNSIGNED-PAYLOAD":this.isCodeCommitGit?"":n["X-Amz-Content-Sha256"]||n["x-amz-content-sha256"]||c(this.request.body||"","hex"),r){var l=Object.keys(r).reduce((function(e,t){return t?(e[d(t)]=Array.isArray(r[t])&&u?r[t][0]:r[t],e):e}),{}),h=[];Object.keys(l).sort().forEach((function(e){Array.isArray(l[e])?l[e].map(d).sort().forEach((function(t){h.push(e+"="+t)})):h.push(e+"="+d(l[e]))})),i=h.join("&")}return"/"!==t&&(o&&(t=t.replace(/\/{2,}/g,"/")),"/"!==(t=t.split("/").reduce((function(e,t){return o&&".."===t?e.pop():o&&"."===t||(s&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push(d(t))),e}),[]).join("/"))[0]&&(t="/"+t),a&&(t=t.replace(/%2F/g,"/"))),[this.request.method||"GET",t,i,this.canonicalHeaders()+"\n",this.signedHeaders(),e].join("\n")},p.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){return null==h[e.toLowerCase()]})).sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1})).map((function(t){return t.toLowerCase()+":"+e[t].toString().trim().replace(/\s+/g," ")})).join("\n")},p.prototype.signedHeaders=function(){return Object.keys(this.request.headers).map((function(e){return e.toLowerCase()})).filter((function(e){return null==h[e]})).sort().join(";")},p.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")},p.prototype.defaultCredentials=function(){var e=process.env;return{accessKeyId:e.AWS_ACCESS_KEY_ID||e.AWS_ACCESS_KEY,secretAccessKey:e.AWS_SECRET_ACCESS_KEY||e.AWS_SECRET_KEY,sessionToken:e.AWS_SESSION_TOKEN}},p.prototype.parsePath=function(){var e=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(e)&&(e=encodeURI(decodeURI(e)));var t=e.indexOf("?"),r=null;t>=0&&(r=o.parse(e.slice(t+1)),e=e.slice(0,t)),this.parsedPath={path:e,query:r}},p.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+l(o.stringify(t))):e},n.RequestSigner=p,n.sign=function(e,t){return new p(e,t).sign()}},4680:e=>{function t(e){this.capacity=0|e,this.map=Object.create(null),this.list=new r}function r(){this.firstNode=null,this.lastNode=null}function n(e,t){this.key=e,this.val=t,this.prev=null,this.next=null}e.exports=function(e){return new t(e)},t.prototype.get=function(e){var t=this.map[e];if(null!=t)return this.used(t),t.val},t.prototype.set=function(e,t){var r=this.map[e];if(null!=r)r.val=t;else{if(this.capacity||this.prune(),!this.capacity)return!1;r=new n(e,t),this.map[e]=r,this.capacity--}return this.used(r),!0},t.prototype.used=function(e){this.list.moveToFront(e)},t.prototype.prune=function(){var e=this.list.pop();null!=e&&(delete this.map[e.key],this.capacity++)},r.prototype.moveToFront=function(e){this.firstNode!=e&&(this.remove(e),null==this.firstNode?(this.firstNode=e,this.lastNode=e,e.prev=null,e.next=null):(e.prev=null,e.next=this.firstNode,e.next.prev=e,this.firstNode=e))},r.prototype.pop=function(){var e=this.lastNode;return null!=e&&this.remove(e),e},r.prototype.remove=function(e){this.firstNode==e?this.firstNode=e.next:null!=e.prev&&(e.prev.next=e.next),this.lastNode==e?this.lastNode=e.prev:null!=e.next&&(e.next.prev=e.prev)}},7160:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),s=Math.max(i,o),a=0,u=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(u[0][s]>u[1][s])return 1;if(u[0][s]===u[1][s]){if(s===a)return 0;s-=1}else if(u[0][s]<u[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],null&&s(t.prototype,null),r&&s(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),s=u(r(95)),a=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(i[t]=s,o+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),u=a.default.find(s,(function(e){return t.isOS(e)}));if(u){var c=this.satisfies(r[u]);if(void 0!==c)return c}var l=a.default.find(s,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(o>0){var h=Object.keys(i),p=a.default.find(h,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},3819:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},7728:e=>{e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},1176:(e,t,r)=>{var n=r(5052);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},9540:(e,t,r)=>{var n=r(905),i=r(4237),o=r(3231),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u.length),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},5738:(e,t,r)=>{"use strict";var n=r(3819),i=r(1176),o=r(2391),s=r(5762),a=r(8787),u=r(95),c=r(6407),l=r(1333),d=r(4027),h=l("Promise"),p=c.set,f=c.get,m=u("toStringTag");e.exports=function(e,t){var r=function(e){e.next=n(e.iterator.next),e.done=!1,e.ignoreArgument=!t,p(this,e)};return r.prototype=a(o(d),{next:function(r){var n=this,o=!!arguments.length;return new h((function(s){var a=f(n),u=o?[a.ignoreArgument?void 0:r]:t?[]:[void 0];a.ignoreArgument=!1,s(a.done?{done:!0,value:void 0}:i(e.call(a,h,u)))}))},return:function(e){var t=this;return new h((function(r,n){var o=f(t),s=o.iterator;o.done=!0;var a=s.return;if(void 0===a)return r({done:!0,value:e});h.resolve(a.call(s,e)).then((function(t){i(t),r({done:!0,value:e})}),n)}))},throw:function(e){var t=this;return new h((function(r,n){var i=f(t),o=i.iterator;i.done=!0;var s=o.throw;if(void 0===s)return n(e);r(s.call(o,e))}))}}),t||s(r.prototype,m,"Generator"),r}},2676:(e,t,r)=>{"use strict";var n=r(3819),i=r(1176),o=r(1333)("Promise"),s=[].push,a=function(e){var t=0==e,r=1==e,a=2==e,u=3==e;return function(e,c){i(e);var l=n(e.next),d=t?[]:void 0;return t||n(c),new o((function(n,h){var p=function(t,r){try{var n=e.return;if(void 0!==n)return o.resolve(n.call(e)).then((function(){t(r)}),(function(e){h(e)}))}catch(e){return h(e)}t(r)},f=function(e){p(h,e)},m=function(){try{o.resolve(i(l.call(e))).then((function(e){try{if(i(e).done)n(t?d:!u&&(a||void 0));else{var l=e.value;t?(s.call(d,l),m()):o.resolve(c(l)).then((function(e){r?m():a?e?m():p(n,!1):e?p(n,u||l):m()}),f)}}catch(e){f(e)}}),f)}catch(e){f(e)}};m()}))}};e.exports={toArray:a(0),forEach:a(1),every:a(2),some:a(3),find:a(4)}},4027:(e,t,r)=>{var n,i,o=r(9859),s=r(5353),a=r(2391),u=r(7567),c=r(5762),l=r(95),d=r(4231),h="USE_FUNCTION_CONSTRUCTOR",p=l("asyncIterator"),f=o.AsyncIterator,m=s.AsyncIteratorPrototype;if(m)n=m;else if("function"==typeof f)n=f.prototype;else if(s[h]||o[h])try{i=u(u(u(Function("return async function*(){}()")()))),u(i)===Object.prototype&&(n=i)}catch(e){}n?d&&(n=a(n)):n={},"function"!=typeof n[p]&&c(n,p,(function(){return this})),e.exports=n},4960:(e,t,r)=>{var n=r(1176),i=r(7281);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},7079:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1589:(e,t,r)=>{var n=r(1601),i=r(7079),o=r(95)("toStringTag"),s="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:s?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},7081:(e,t,r)=>{var n=r(816),i=r(4826),o=r(7933),s=r(1787);e.exports=function(e,t){for(var r=i(t),a=s.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||a(e,l,u(t,l))}}},7528:(e,t,r)=>{var n=r(4229);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5762:(e,t,r)=>{var n=r(7400),i=r(1787),o=r(5358);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},5358:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7400:(e,t,r)=>{var n=r(4229);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2635:(e,t,r)=>{var n=r(9859),i=r(5052),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},598:(e,t,r)=>{var n=r(1333);e.exports=n("navigator","userAgent")||""},6358:(e,t,r)=>{var n,i,o=r(9859),s=r(598),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l?i=(n=l.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},3837:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:(e,t,r)=>{var n=r(9859),i=r(7933).f,o=r(5762),s=r(7487),a=r(2079),u=r(7081),c=r(6541);e.exports=function(e,t){var r,l,d,h,p,f=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[f]||a(f,{}):(n[f]||{}).prototype)for(l in t){if(h=t[l],d=e.noTargetGet?(p=i(r,l))&&p.value:r[l],!c(m?l:f+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),s(r,l,h,e)}}},4229:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7636:(e,t,r)=>{var n=r(3819);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},1333:(e,t,r)=>{var n=r(9859);e.exports=function(e,t){return arguments.length<2?"function"==typeof(r=n[e])?r:void 0:n[e]&&n[e][t];var r}},8830:(e,t,r)=>{var n=r(1589),i=r(5495),o=r(95)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},8403:(e,t,r)=>{var n=r(1176),i=r(8830);e.exports=function(e,t){var r=arguments.length<2?i(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return n(r.call(e))}},9859:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},816:(e,t,r)=>{var n=r(2991),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},5977:e=>{e.exports={}},3777:(e,t,r)=>{var n=r(1333);e.exports=n("document","documentElement")},4394:(e,t,r)=>{var n=r(7400),i=r(4229),o=r(2635);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},9337:(e,t,r)=>{var n=r(4229),i=r(7079),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},8511:(e,t,r)=>{var n=r(5353),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},6407:(e,t,r)=>{var n,i,o,s=r(8694),a=r(9859),u=r(5052),c=r(5762),l=r(816),d=r(5353),h=r(4399),p=r(5977),f="Object already initialized",m=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new m),E=g.get,y=g.has,v=g.set;n=function(e,t){if(y.call(g,e))throw new TypeError(f);return t.facade=e,v.call(g,e,t),t},i=function(e){return E.call(g,e)||{}},o=function(e){return y.call(g,e)}}else{var A=h("state");p[A]=!0,n=function(e,t){if(l(e,A))throw new TypeError(f);return t.facade=e,c(e,A,t),t},i=function(e){return l(e,A)?e[A]:{}},o=function(e){return l(e,A)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},1943:(e,t,r)=>{var n=r(95),i=r(5495),o=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},6541:(e,t,r)=>{var n=r(4229),i=/#|\.prototype\./,o=function(e,t){var r=a[s(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},5052:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4231:e=>{e.exports=!1},9395:(e,t,r)=>{var n=r(1333),i=r(6969);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return"function"==typeof t&&Object(e)instanceof t}},9003:(e,t,r)=>{var n=r(1176),i=r(1943),o=r(4237),s=r(7636),a=r(8403),u=r(8830),c=r(7281),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var d,h,p,f,m,g,E,y=r&&r.that,v=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),b=s(t,y,1+v+C),S=function(e){return d&&c(d,"normal",e),new l(!0,e)},w=function(e){return v?(n(e),C?b(e[0],e[1],S):b(e[0],e[1])):C?b(e,S):b(e)};if(A)d=e;else{if("function"!=typeof(h=u(e)))throw TypeError("Target is not iterable");if(i(h)){for(p=0,f=o(e.length);f>p;p++)if((m=w(e[p]))&&m instanceof l)return m;return new l(!1)}d=a(e,h)}for(g=d.next;!(E=g.call(d)).done;){try{m=w(E.value)}catch(e){c(d,"throw",e)}if("object"==typeof m&&m&&m instanceof l)return m}return new l(!1)}},7281:(e,t,r)=>{var n=r(1176);e.exports=function(e,t,r){var i,o;n(e);try{if(void 0===(i=e.return)){if("throw"===t)throw r;return r}i=i.call(e)}catch(e){o=!0,i=e}if("throw"===t)throw r;if(o)throw i;return n(i),r}},8671:(e,t,r)=>{"use strict";var n=r(3819),i=r(1176),o=r(2391),s=r(5762),a=r(8787),u=r(95),c=r(6407),l=r(693).IteratorPrototype,d=c.set,h=c.get,p=u("toStringTag");e.exports=function(e,t){var r=function(e){e.next=n(e.iterator.next),e.done=!1,e.ignoreArg=!t,d(this,e)};return r.prototype=a(o(l),{next:function(r){var n=h(this),i=arguments.length?[n.ignoreArg?void 0:r]:t?[]:[void 0];n.ignoreArg=!1;var o=n.done?void 0:e.call(n,i);return{done:n.done,value:o}},return:function(e){var t=h(this),r=t.iterator;t.done=!0;var n=r.return;return{done:!0,value:void 0===n?e:i(n.call(r,e)).value}},throw:function(e){var t=h(this),r=t.iterator;t.done=!0;var n=r.throw;if(void 0===n)throw e;return n.call(r,e)}}),t||s(r.prototype,p,"Generator"),r}},693:(e,t,r)=>{"use strict";var n,i,o,s=r(4229),a=r(2391),u=r(7567),c=r(5762),l=r(95),d=r(4231),h=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):p=!0),null==n||s((function(){var e={};return n[h].call(e)!==e}))?n={}:d&&(n=a(n)),"function"!=typeof n[h]&&c(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},5495:e=>{e.exports={}},3839:(e,t,r)=>{var n=r(6358),i=r(4229);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8694:(e,t,r)=>{var n=r(9859),i=r(8511),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},2391:(e,t,r)=>{var n,i=r(1176),o=r(219),s=r(3837),a=r(5977),u=r(3777),c=r(2635),l=r(4399),d="prototype",h="script",p=l("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},E=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;E="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),r="java"+h+":",t.style.display="none",u.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var i=s.length;i--;)delete E[d][s[i]];return E()};a[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[d]=i(e),r=new f,f[d]=null,r[p]=e):r=E(),void 0===t?r:o(r,t)}},219:(e,t,r)=>{var n=r(7400),i=r(1787),o=r(1176),s=r(5632);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),a=n.length,u=0;a>u;)i.f(e,r=n[u++],t[r]);return e}},1787:(e,t,r)=>{var n=r(7400),i=r(4394),o=r(1176),s=r(9310),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(o(e),t=s(t),o(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},7933:(e,t,r)=>{var n=r(7400),i=r(9195),o=r(5358),s=r(905),a=r(9310),u=r(816),c=r(4394),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=s(e),t=a(t),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},8151:(e,t,r)=>{var n=r(140),i=r(3837).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},894:(e,t)=>{t.f=Object.getOwnPropertySymbols},7567:(e,t,r)=>{var n=r(816),i=r(2991),o=r(4399),s=r(7528),a=o("IE_PROTO"),u=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=i(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},140:(e,t,r)=>{var n=r(816),i=r(905),o=r(9540).indexOf,s=r(5977);e.exports=function(e,t){var r,a=i(e),u=0,c=[];for(r in a)!n(s,r)&&n(a,r)&&c.push(r);for(;t.length>u;)n(a,r=t[u++])&&(~o(c,r)||c.push(r));return c}},5632:(e,t,r)=>{var n=r(140),i=r(3837);e.exports=Object.keys||function(e){return n(e,i)}},9195:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2914:(e,t,r)=>{var n=r(5052);e.exports=function(e,t){var r,i;if("string"===t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if("string"!==t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},4826:(e,t,r)=>{var n=r(1333),i=r(8151),o=r(894),s=r(1176);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?t.concat(r(e)):t}},8787:(e,t,r)=>{var n=r(7487);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},7487:(e,t,r)=>{var n=r(9859),i=r(5762),o=r(816),s=r(2079),a=r(8511),u=r(6407),c=u.get,l=u.enforce,d=String(String).split("String");(e.exports=function(e,t,r,a){var u,c=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),(u=l(r)).source||(u.source=d.join("string"==typeof t?t:""))),e!==n?(c?!p&&e[t]&&(h=!0):delete e[t],h?e[t]=r:i(e,t,r)):h?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},8885:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2079:(e,t,r)=>{var n=r(9859);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},4399:(e,t,r)=>{var n=r(3036),i=r(1441),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5353:(e,t,r)=>{var n=r(9859),i=r(2079),o="__core-js_shared__",s=n[o]||i(o,{});e.exports=s},3036:(e,t,r)=>{var n=r(4231),i=r(5353);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3231:(e,t,r)=>{var n=r(6051),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},905:(e,t,r)=>{var n=r(9337),i=r(8885);e.exports=function(e){return n(i(e))}},6051:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},4237:(e,t,r)=>{var n=r(6051),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},2991:(e,t,r)=>{var n=r(8885);e.exports=function(e){return Object(n(e))}},2066:(e,t,r)=>{var n=r(5052),i=r(9395),o=r(2914),s=r(95)("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,a=e[s];if(void 0!==a){if(void 0===t&&(t="default"),r=a.call(e,t),!n(r)||i(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},9310:(e,t,r)=>{var n=r(2066),i=r(9395);e.exports=function(e){var t=n(e,"string");return i(t)?t:String(t)}},1601:(e,t,r)=>{var n={};n[r(95)("toStringTag")]="z",e.exports="[object z]"===String(n)},1441:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},6969:(e,t,r)=>{var n=r(3839);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},95:(e,t,r)=>{var n=r(9859),i=r(3036),o=r(816),s=r(1441),a=r(3839),u=r(6969),c=i("wks"),l=n.Symbol,d=u?l:l&&l.withoutSetter||s;e.exports=function(e){return o(c,e)&&(a||"string"==typeof c[e])||(a&&o(l,e)?c[e]=l[e]:c[e]=d("Symbol."+e)),c[e]}},0:(e,t,r)=>{"use strict";var n=r(3103),i=r(3819),o=r(1176),s=r(5738)((function(e,t){var r=this,n=r.filterer;return new e((function(i,s){var a=function(){try{e.resolve(o(r.next.apply(r.iterator,t))).then((function(t){try{if(o(t).done)r.done=!0,i({done:!0,value:void 0});else{var u=t.value;e.resolve(n(u)).then((function(e){e?i({done:!1,value:u}):a()}),s)}}catch(e){s(e)}}),s)}catch(e){s(e)}};a()}))}));n({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return new s({iterator:o(this),filterer:i(e)})}})},8166:(e,t,r)=>{"use strict";var n=r(3103),i=r(2676).find;n({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return i(this,e)}})},4715:(e,t,r)=>{"use strict";var n=r(3103),i=r(2676).forEach;n({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return i(this,e)}})},4925:(e,t,r)=>{"use strict";var n=r(3103),i=r(3819),o=r(1176),s=r(5738)((function(e,t){var r=this,n=r.mapper;return e.resolve(o(r.next.apply(r.iterator,t))).then((function(t){return o(t).done?(r.done=!0,{done:!0,value:void 0}):e.resolve(n(t.value)).then((function(e){return{done:!1,value:e}}))}))}));n({target:"AsyncIterator",proto:!0,real:!0},{map:function(e){return new s({iterator:o(this),mapper:i(e)})}})},4407:(e,t,r)=>{"use strict";var n=r(3103),i=r(3819),o=r(1176),s=r(1333)("Promise");n({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){var t=o(this),r=i(t.next),n=arguments.length<2,a=n?void 0:arguments[1];return i(e),new s((function(i,u){var c=function(){try{s.resolve(o(r.call(t))).then((function(t){try{if(o(t).done)n?u(TypeError("Reduce of empty iterator with no initial value")):i(a);else{var r=t.value;n?(n=!1,a=r,c()):s.resolve(e(a,r)).then((function(e){a=e,c()}),u)}}catch(e){u(e)}}),u)}catch(e){u(e)}};c()}))}})},2856:(e,t,r)=>{"use strict";var n=r(3103),i=r(2676).some;n({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return i(this,e)}})},6464:(e,t,r)=>{"use strict";var n=r(3103),i=r(9859),o=r(7728),s=r(5762),a=r(4229),u=r(816),c=r(95),l=r(693).IteratorPrototype,d=r(4231),h=c("toStringTag"),p=i.Iterator,f=d||"function"!=typeof p||p.prototype!==l||!a((function(){p({})})),m=function(){o(this,m)};u(l,h)||s(l,h,"Iterator"),!f&&u(l,"constructor")&&l.constructor!==Object||s(l,"constructor",m),m.prototype=l,n({global:!0,forced:f},{Iterator:m})},8339:(e,t,r)=>{"use strict";var n=r(3103),i=r(3819),o=r(1176),s=r(8671),a=r(4960),u=s((function(e){for(var t,r,n=this.iterator,i=this.filterer,s=this.next;;){if(t=o(s.apply(n,e)),this.done=!!t.done)return;if(r=t.value,a(n,i,r))return r}}));n({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new u({iterator:o(this),filterer:i(e)})}})},5162:(e,t,r)=>{"use strict";var n=r(3103),i=r(9003),o=r(3819),s=r(1176);n({target:"Iterator",proto:!0,real:!0},{find:function(e){return s(this),o(e),i(this,(function(t,r){if(e(t))return r(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},9570:(e,t,r)=>{"use strict";var n=r(3103),i=r(9003),o=r(1176);n({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(o(this),e,{IS_ITERATOR:!0})}})},4819:(e,t,r)=>{"use strict";var n=r(3103),i=r(3819),o=r(1176),s=r(8671),a=r(4960),u=s((function(e){var t=this.iterator,r=o(this.next.apply(t,e));if(!(this.done=!!r.done))return a(t,this.mapper,r.value)}));n({target:"Iterator",proto:!0,real:!0},{map:function(e){return new u({iterator:o(this),mapper:i(e)})}})},4903:(e,t,r)=>{"use strict";var n=r(3103),i=r(9003),o=r(3819),s=r(1176);n({target:"Iterator",proto:!0,real:!0},{reduce:function(e){s(this),o(e);var t=arguments.length<2,r=t?void 0:arguments[1];if(i(this,(function(n){t?(t=!1,r=n):r=e(r,n)}),{IS_ITERATOR:!0}),t)throw TypeError("Reduce of empty iterator with no initial value");return r}})},7610:(e,t,r)=>{"use strict";var n=r(3103),i=r(9003),o=r(3819),s=r(1176);n({target:"Iterator",proto:!0,real:!0},{some:function(e){return s(this),o(e),i(this,(function(t,r){if(e(t))return r()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},5130:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(7123)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,r)=>{e.exports=function(e){function t(e){let r,i=null;function o(...e){if(!o.enabled)return;const n=o,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},1829:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParseMode:()=>st,default:()=>At});var n=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",u={5:a,"5module":a+" export import",6:a+" const class extends export import super"},c=/^in(stanceof)?$/,l=new RegExp("["+o+"]"),d=new RegExp("["+o+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function h(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}return!1}function p(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&h(e,i)))}function f(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&d.test(String.fromCharCode(e)):!1!==t&&(h(e,i)||h(e,n)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function g(e,t){return new m(e,{beforeExpr:!0,binop:t})}var E={beforeExpr:!0},y={startsExpr:!0},v={};function A(e,t){return void 0===t&&(t={}),t.keyword=e,v[e]=new m(e,t)}var C={num:new m("num",y),regexp:new m("regexp",y),string:new m("string",y),name:new m("name",y),privateId:new m("privateId",y),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",E),semi:new m(";",E),colon:new m(":",E),dot:new m("."),question:new m("?",E),questionDot:new m("?."),arrow:new m("=>",E),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",E),backQuote:new m("`",y),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("</>/<=/>=",7),bitShift:g("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:g("??",1),_break:A("break"),_case:A("case",E),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",E),_do:A("do",{isLoop:!0,beforeExpr:!0}),_else:A("else",E),_finally:A("finally"),_for:A("for",{isLoop:!0}),_function:A("function",y),_if:A("if"),_return:A("return",E),_switch:A("switch"),_throw:A("throw",E),_try:A("try"),_var:A("var"),_const:A("const"),_while:A("while",{isLoop:!0}),_with:A("with"),_new:A("new",{beforeExpr:!0,startsExpr:!0}),_this:A("this",y),_super:A("super",y),_class:A("class",y),_extends:A("extends",E),_export:A("export"),_import:A("import",y),_null:A("null",y),_true:A("true",y),_false:A("false",y),_in:A("in",{beforeExpr:!0,binop:7}),_instanceof:A("instanceof",{beforeExpr:!0,binop:7}),_typeof:A("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:A("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:A("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},b=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(b.source,"g");function w(e){return 10===e||13===e||8232===e||8233===e}function O(e,t,r){void 0===r&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(w(i))return n<r-1&&13===i&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var _=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,x=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,T=D.hasOwnProperty,B=D.toString,I=Object.hasOwn||function(e,t){return T.call(e,t)},F=Array.isArray||function(e){return"[object Array]"===B.call(e)};function R(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var k=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,N=function(e,t){this.line=e,this.column=t};N.prototype.offset=function(e){return new N(this.line,this.column+e)};var M=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function L(e,t){for(var r=1,n=0;;){var i=O(e,n,t);if(i<0)return new N(r,t-n);++r,n=i}}var j={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},U=!1;function V(e,t){return 2|(e?4:0)|(t?8:0)}var z=function(e,t,r){this.options=e=function(e){var t={};for(var r in j)t[r]=e&&I(e,r)?e[r]:j[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!U&&"object"==typeof console&&console.warn&&(U=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),F(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return F(t.onComment)&&(t.onComment=function(e,t){return function(r,n,i,o,s,a){var u={type:r?"Block":"Line",value:n,start:i,end:o};e.locations&&(u.loc=new M(this,s,a)),e.ranges&&(u.range=[i,o]),t.push(u)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=R(u[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=s[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=R(n);var i=(n?n+" ":"")+s.strict;this.reservedWordsStrict=R(i),this.reservedWordsStrictBind=R(i+" "+s.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(b).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},$={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};z.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},$.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},$.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},$.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(64&t)>0||r||this.options.allowSuperOutsideMethod},$.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},$.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(258&t)>0||r},$.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},z.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},z.parse=function(e,t){return new this(t,e).parse()},z.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},z.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(z.prototype,$);var W=z.prototype,H=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;W.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){x.lastIndex=e,e+=x.exec(this.input)[0].length;var t=H.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){x.lastIndex=e+t[0].length;var r=x.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||b.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}e+=t[0].length,x.lastIndex=e,e+=x.exec(this.input)[0].length,";"===this.input[e]&&e++}},W.eat=function(e){return this.type===e&&(this.next(),!0)},W.isContextual=function(e){return this.type===C.name&&this.value===e&&!this.containsEsc},W.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},W.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},W.canInsertSemicolon=function(){return this.type===C.eof||this.type===C.braceR||b.test(this.input.slice(this.lastTokEnd,this.start))},W.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},W.semicolon=function(){this.eat(C.semi)||this.insertSemicolon()||this.unexpected()},W.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},W.expect=function(e){this.eat(e)||this.unexpected()},W.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var G=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};W.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}},W.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},W.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},W.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var q=z.prototype;q.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==C.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var o=i[n];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var K={kind:"loop"},Y={kind:"switch"};q.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;x.lastIndex=this.pos;var t=x.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n)return!0;if(e)return!1;if(123===n||n>55295&&n<56320)return!0;if(p(n,!0)){for(var i=r+1;f(n=this.input.charCodeAt(i),!0);)++i;if(92===n||n>55295&&n<56320)return!0;var o=this.input.slice(r,i);if(!c.test(o))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;x.lastIndex=this.pos;var e,t=x.exec(this.input),r=this.pos+t[0].length;return!(b.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(f(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},q.parseStatement=function(e,t,r){var n,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=C._var,n="let"),i){case C._break:case C._continue:return this.parseBreakContinueStatement(o,i.keyword);case C._debugger:return this.parseDebuggerStatement(o);case C._do:return this.parseDoStatement(o);case C._for:return this.parseForStatement(o);case C._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case C._class:return e&&this.unexpected(),this.parseClass(o,!0);case C._if:return this.parseIfStatement(o);case C._return:return this.parseReturnStatement(o);case C._switch:return this.parseSwitchStatement(o);case C._throw:return this.parseThrowStatement(o);case C._try:return this.parseTryStatement(o);case C._const:case C._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(o,n);case C._while:return this.parseWhileStatement(o);case C._with:return this.parseWithStatement(o);case C.braceL:return this.parseBlock(!0,o);case C.semi:return this.parseEmptyStatement(o);case C._export:case C._import:if(this.options.ecmaVersion>10&&i===C._import){x.lastIndex=this.pos;var s=x.exec(this.input),a=this.pos+s[0].length,u=this.input.charCodeAt(a);if(40===u||46===u)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===C._import?this.parseImport(o):this.parseExport(o,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var c=this.value,l=this.parseExpression();return i===C.name&&"Identifier"===l.type&&this.eat(C.colon)?this.parseLabeledStatement(o,c,l,e):this.parseExpressionStatement(o,l)}},q.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(C.semi)||this.insertSemicolon()?e.label=null:this.type!==C.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},q.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},q.parseDoStatement=function(e){return this.next(),this.labels.push(K),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(C._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(C.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(C.parenL),this.type===C.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===C._var||this.type===C._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===C._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var o=this.isContextual("let"),s=!1,a=new G,u=this.parseExpression(!(t>-1)||"await",a);return this.type===C._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===C._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&s&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,a),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},q.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,X|(r?0:Z),!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(C._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},q.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(C.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},q.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(C.braceL),this.labels.push(Y),this.enterScope(0);for(var r=!1;this.type!==C.braceR;)if(this.type===C._case||this.type===C._default){var n=this.type===C._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(C.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},q.parseThrowStatement=function(e){return this.next(),b.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q=[];q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===C._catch){var t=this.startNode();if(this.next(),this.eat(C.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLValPattern(t.param,r?4:2),this.expect(C.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(C._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},q.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(K),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},q.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},q.parseLabeledStatement=function(e,t,r,n){for(var i=0,o=this.labels;i<o.length;i+=1)o[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===C._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var u=this.labels[a];if(u.statementStart!==e.start)break;u.statementStart=this.start,u.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},q.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(C.braceL),e&&this.enterScope(0);this.type!==C.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},q.parseFor=function(e,t){return e.init=t,this.expect(C.semi),e.test=this.type===C.semi?null:this.parseExpression(),this.expect(C.semi),e.update=this.type===C.parenR?null:this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},q.parseForIn=function(e,t){var r=this.type===C._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},q.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(C.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===C._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(C.comma))break}return e},q.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var X=1,Z=2;function J(e,t){var r=t.key.name,n=e[r],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===i||"iset"===n&&"iget"===i||"sget"===n&&"sset"===i||"sset"===n&&"sget"===i?(e[r]="true",!1):!!n||(e[r]=i,!1)}function ee(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}q.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===C.star&&t&Z&&this.unexpected(),e.generator=this.eat(C.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&X&&(e.id=4&t&&this.type!==C.name?null:this.parseIdent(),!e.id||t&Z||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V(e.async,e.generator)),t&X||(e.id=this.type===C.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=o,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(e){this.expect(C.parenL),e.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(C.braceL);this.type!==C.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(o&&this.raise(s.start,"Duplicate constructor in the same class"),o=!0):s.key&&"PrivateIdentifier"===s.key.type&&J(n,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},q.parseClassElement=function(e){if(this.eat(C.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,o=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(C.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===C.star?a=!0:n="static"}if(r.static=a,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==C.star||this.canInsertSemicolon()?n="async":o=!0),!n&&(t>=9||!o)&&this.eat(C.star)&&(i=!0),!n&&!o&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=u:n=u)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===C.parenL||"method"!==s||i||o){var c=!r.static&&ee(r,"constructor"),l=c&&e;c&&"method"!==s&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=c?"constructor":s,this.parseClassMethod(r,i,o,l)}else this.parseClassField(r);return r},q.isClassElementNameStart=function(){return this.type===C.name||this.type===C.privateId||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword},q.parseClassElementName=function(e){this.type===C.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},q.parseClassMethod=function(e,t,r,n){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ee(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},q.parseClassField=function(e){if(ee(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ee(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(C.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},q.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==C.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},q.parseClassId=function(e,t){this.type===C.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},q.parseClassSuper=function(e){e.superClass=this.eat(C._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},q.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,n=this.privateNameStack.length,i=0===n?null:this.privateNameStack[n-1],o=0;o<r.length;++o){var s=r[o];I(t,s.name)||(i?i.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},q.parseExport=function(e,t){if(this.next(),this.eat(C.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(C._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===C._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|X,!1,r)}else if(this.type===C._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,s=e.specifiers;o<s.length;o+=1){var a=s[o];this.checkUnreserved(a.local),this.checkLocalExport(a.local),"Literal"===a.local.type&&this.raise(a.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},q.checkExport=function(e,t,r){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),I(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},q.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var o=i[n];this.checkPatternExport(e,o)}else if("ArrayPattern"===r)for(var s=0,a=t.elements;s<a.length;s+=1){var u=a[s];u&&this.checkPatternExport(e,u)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},q.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}},q.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},q.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(r)r=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var n=this.startNode();n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(e,n.exported,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},q.parseImport=function(e){return this.next(),this.type===C.string?(e.specifiers=Q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===C.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},q.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===C.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(C.comma))return e}if(this.type===C.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===C.string){var e=this.parseLiteral(this.value);return k.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},q.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},q.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=z.prototype;te.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},te.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var o=e[r-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==C.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case C.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(C.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case C.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,r){for(var n=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(C.comma),t&&this.type===C.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===C.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var s=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(s),n.push(s)}return n},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(C.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},te.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(I(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var u=a[s];u&&this.checkLValInnerPattern(u,t,r)}break;default:this.checkLValSimple(e,t,r)}},te.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var re=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},ne={b_stat:new re("{",!1),b_expr:new re("{",!0),b_tmpl:new re("${",!1),p_stat:new re("(",!1),p_expr:new re("(",!0),q_tmpl:new re("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new re("function",!1),f_expr:new re("function",!0),f_expr_gen:new re("function",!0,!1,null,!0),f_gen:new re("function",!1,!1,null,!0)},ie=z.prototype;ie.initialContext=function(){return[ne.b_stat]},ie.curContext=function(){return this.context[this.context.length-1]},ie.braceIsBlock=function(e){var t=this.curContext();return t===ne.f_expr||t===ne.f_stat||(e!==C.colon||t!==ne.b_stat&&t!==ne.b_expr?e===C._return||e===C.name&&this.exprAllowed?b.test(this.input.slice(this.lastTokEnd,this.start)):e===C._else||e===C.semi||e===C.eof||e===C.parenR||e===C.arrow||(e===C.braceL?t===ne.b_stat:e!==C._var&&e!==C._const&&e!==C.name&&!this.exprAllowed):!t.isExpr)},ie.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ie.updateContext=function(e){var t,r=this.type;r.keyword&&e===C.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},ie.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},C.parenR.updateContext=C.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ne.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},C.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ne.b_stat:ne.b_expr),this.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.context.push(ne.b_tmpl),this.exprAllowed=!0},C.parenL.updateContext=function(e){var t=e===C._if||e===C._for||e===C._with||e===C._while;this.context.push(t?ne.p_stat:ne.p_expr),this.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=C._class.updateContext=function(e){!e.beforeExpr||e===C._else||e===C.semi&&this.curContext()!==ne.p_stat||e===C._return&&b.test(this.input.slice(this.lastTokEnd,this.start))||(e===C.colon||e===C.braceL)&&this.curContext()===ne.b_stat?this.context.push(ne.f_stat):this.context.push(ne.f_expr),this.exprAllowed=!1},C.backQuote.updateContext=function(){this.curContext()===ne.q_tmpl?this.context.pop():this.context.push(ne.q_tmpl),this.exprAllowed=!1},C.star.updateContext=function(e){if(e===C._function){var t=this.context.length-1;this.context[t]===ne.f_expr?this.context[t]=ne.f_expr_gen:this.context[t]=ne.f_gen}this.exprAllowed=!0},C.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==C.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var oe=z.prototype;function se(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&se(e.expression)}oe.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===o&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[n="$"+n];s?("init"===o?this.strict&&s.init||s.get||s.set:s.init||s[o])&&this.raiseRecoverable(i.start,"Redefinition of property"):s=t[n]={init:!1,get:!1,set:!1},s[o]=!0}}},oe.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===C.comma){var o=this.startNodeAt(r,n);for(o.expressions=[i];this.eat(C.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i},oe.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,o=-1,s=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new G,n=!0);var a=this.start,u=this.startLoc;this.type!==C.parenL&&this.type!==C.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,a,u)),this.type.isAssign){var l=this.startNodeAt(a,u);return l.operator=this.value,this.type===C.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===C.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(l,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),c},oe.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(C.question)){var o=this.startNodeAt(r,n);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(C.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},oe.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},oe.parseExprOp=function(e,t,r,n,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==C._in)&&o>n){var s=this.type===C.logicalOR||this.type===C.logicalAND,a=this.type===C.coalesce;a&&(o=C.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,l,o,i),h=this.buildBinary(t,r,e,d,u,s||a);return(s&&this.type===C.coalesce||a&&(this.type===C.logicalOR||this.type===C.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,i)}return e},oe.buildBinary=function(e,t,r,n,i,o){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=r,s.operator=i,s.right=n,this.finishNode(s,o?"LogicalExpression":"BinaryExpression")},oe.parseMaybeUnary=function(e,t,r,n){var i,o=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(n),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===C.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,n),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&se(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==C.privateId){if(i=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(o,s);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==C._in&&this.unexpected();return r||!this.eat(C.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(o,s,i,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},oe.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var o=this.parseSubscripts(i,r,n,!1,t);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},oe.parseSubscripts=function(e,t,r,n,i){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,r,n,o,s,i);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var u=this.startNodeAt(t,r);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}},oe.parseSubscript=function(e,t,r,n,i,o,s){var a=this.options.ecmaVersion>=11,u=a&&this.eat(C.questionDot);n&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(C.bracketL);if(c||u&&this.type!==C.parenL&&this.type!==C.backQuote||this.eat(C.dot)){var l=this.startNodeAt(t,r);l.object=e,c?(l.property=this.parseExpression(),this.expect(C.bracketR)):this.type===C.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,a&&(l.optional=u),e=this.finishNode(l,"MemberExpression")}else if(!n&&this.eat(C.parenL)){var d=new G,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!u&&!this.canInsertSemicolon()&&this.eat(C.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,r),m,!0,s);this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,r);g.callee=e,g.arguments=m,a&&(g.optional=u),e=this.finishNode(g,"CallExpression")}else if(this.type===C.backQuote){(u||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var E=this.startNodeAt(t,r);E.tag=e,E.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(E,"TaggedTemplateExpression")}return e},oe.parseExprAtom=function(e,t){this.type===C.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case C._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==C.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==C.dot&&this.type!==C.bracketL&&this.type!==C.parenL&&this.unexpected(),this.finishNode(r,"Super");case C._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case C.name:var i=this.start,o=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(C._function))return this.overrideContext(ne.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(C.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[a],!1,t);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===C.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(C.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[a],!0,t)}return a;case C.regexp:var u=this.value;return(r=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},r;case C.num:case C.string:return this.parseLiteral(this.value);case C._null:case C._true:case C._false:return(r=this.startNode()).value=this.type===C._null?null:this.type===C._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case C.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case C.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(C.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case C.braceL:return this.overrideContext(ne.b_expr),this.parseObj(!1,e);case C._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case C._class:return this.parseClass(this.startNode(),!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate();case C._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},oe.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case C.parenL:return this.parseDynamicImport(e);case C.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},oe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(C.parenR)){var t=this.start;this.eat(C.comma)&&this.eat(C.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},oe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},oe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},oe.parseParenExpression=function(){this.expect(C.parenL);var e=this.parseExpression();return this.expect(C.parenR),e},oe.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,u=this.startLoc,c=[],l=!0,d=!1,h=new G,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==C.parenR;){if(l?l=!1:this.expect(C.comma),o&&this.afterTrailingComma(C.parenR,!0)){d=!0;break}if(this.type===C.ellipsis){s=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(C.parenR),e&&!this.canInsertSemicolon()&&this.eat(C.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,i,c,t);c.length&&!d||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((r=this.startNodeAt(a,u)).expressions=c,this.finishNodeAt(r,"SequenceExpression",m,g)):r=c[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var E=this.startNodeAt(n,i);return E.expression=r,this.finishNode(E,"ParenthesizedExpression")}return r},oe.parseParenItem=function(e){return e},oe.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var ae=[];oe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(C.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc,o=this.type===C._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0,!1),o&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(C.parenL)?e.arguments=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ae,this.finishNode(e,"NewExpression")},oe.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===C.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===C.backQuote,this.finishNode(r,"TemplateElement")},oe.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===C.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(C.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(C.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},oe.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===C.name||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===C.star)&&!b.test(this.input.slice(this.lastTokEnd,this.start))},oe.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(C.braceR);){if(n)n=!1;else if(this.expect(C.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(C.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},oe.parseProperty=function(e,t){var r,n,i,o,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(C.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===C.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(r=this.eat(C.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(C.star),this.parsePropertyName(s)):n=!1,this.parsePropertyValue(s,e,r,n,i,o,t,a),this.finishNode(s,"Property")},oe.parsePropertyValue=function(e,t,r,n,i,o,s,a){if((r||n)&&this.type===C.colon&&this.unexpected(),this.eat(C.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===C.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===C.comma||this.type===C.braceR||this.type===C.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===C.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},oe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(C.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(C.bracketR),e.key;e.computed=!1}return e.key=this.type===C.num||this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},oe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},oe.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|V(t,n.generator)|(r?128:0)),this.expect(C.parenL),n.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(n,"FunctionExpression")},oe.parseArrowExpression=function(e,t,r,n){var i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|V(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},oe.parseFunctionBody=function(e,t,r,n){var i=t&&this.type!==C.braceL,o=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!o&&!s&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()},oe.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},oe.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var o=i[n];this.checkLValInnerPattern(o,1,t?null:r)}},oe.parseExprList=function(e,t,r,n){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(C.comma),t&&this.afterTrailingComma(e))break;var s=void 0;r&&this.type===C.comma?s=null:this.type===C.ellipsis?(s=this.parseSpread(n),n&&this.type===C.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):s=this.parseMaybeAssign(!1,n),i.push(s)}return i},oe.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===n&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},oe.parseIdent=function(e){var t=this.startNode();return this.type===C.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},oe.parsePrivateIdent=function(){var e=this.startNode();return this.type===C.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},oe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===C.semi||this.canInsertSemicolon()||this.type!==C.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(C.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},oe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ue=z.prototype;ue.raise=function(e,t){var r=L(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},ue.raiseRecoverable=ue.raise,ue.curPosition=function(){if(this.options.locations)return new N(this.curLine,this.pos-this.lineStart)};var ce=z.prototype,le=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ce.enterScope=function(e){this.scopeStack.push(new le(e))},ce.exitScope=function(){this.scopeStack.pop()},ce.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ce.declareName=function(e,t,r){var n=!1;if(2===t){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();n=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){n=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ce.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ce.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ce.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ce.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var de=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new M(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},he=z.prototype;function pe(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}he.startNode=function(){return new de(this,this.start,this.startLoc)},he.startNodeAt=function(e,t){return new de(this,e,t)},he.finishNode=function(e,t){return pe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},he.finishNodeAt=function(e,t,r,n){return pe.call(this,e,t,r,n)},he.copyNode=function(e){var t=new de(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var fe,me,ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ee=ge+" Extended_Pictographic",ye=Ee+" EBase EComp EMod EPres ExtPict",ve={9:ge,10:Ee,11:Ee,12:ye,13:ye,14:ye},Ae="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ce="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",be=Ce+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Se=be+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",we=Se+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Oe=we+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",_e={9:Ce,10:be,11:Se,12:we,13:Oe,14:Oe+" Kawi Nag_Mundari Nagm"},xe={};for(var De=0,Te=[9,10,11,12,13,14];De<Te.length;De+=1)me=void 0,(me=xe[fe=Te[De]]={binary:R(ve[fe]+" "+Ae),nonBinary:{General_Category:R(Ae),Script:R(_e[fe])}}).nonBinary.Script_Extensions=me.nonBinary.Script,me.nonBinary.gc=me.nonBinary.General_Category,me.nonBinary.sc=me.nonBinary.Script,me.nonBinary.scx=me.nonBinary.Script_Extensions;var Be=z.prototype,Ie=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=xe[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Fe(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Re(e){return e>=65&&e<=90||e>=97&&e<=122}function Pe(e){return Re(e)||95===e}function ke(e){return Pe(e)||Ne(e)}function Ne(e){return e>=48&&e<=57}function Me(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Le(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function je(e){return e>=48&&e<=55}Ie.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Ie.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ie.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=n)return i;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},Ie.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,o=r.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Ie.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ie.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ie.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ie.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Be.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var i=r.charAt(n);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(i,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Be.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Be.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];-1===e.groupNames.indexOf(n)&&e.raise("Invalid named capture referenced")}},Be.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Be.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Be.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Be.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Be.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Be.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Be.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Be.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Be.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Be.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Be.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Be.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Be.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Be.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Fe(t)&&(e.lastIntValue=t,e.advance(),!0)},Be.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!Fe(r);)e.advance();return e.pos!==t},Be.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Be.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Be.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Be.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=P(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=P(e.lastIntValue);return!0}return!1},Be.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return p(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Be.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Be.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Be.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Be.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Be.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Be.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Be.regexp_eatZero=function(e){return 48===e.current()&&!Ne(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Be.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Be.regexp_eatControlLetter=function(e){var t=e.current();return!!Re(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Be.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(o-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(r=e.lastIntValue)>=0&&r<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Be.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Be.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Be.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Be.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Be.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){I(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Be.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Be.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Pe(t=e.current());)e.lastStringValue+=P(t),e.advance();return""!==e.lastStringValue},Be.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ke(t=e.current());)e.lastStringValue+=P(t),e.advance();return""!==e.lastStringValue},Be.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Be.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Be.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Be.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||je(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Be.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Be.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ne(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Be.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Be.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Ne(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Be.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Me(r=e.current());)e.lastIntValue=16*e.lastIntValue+Le(r),e.advance();return e.pos!==t},Be.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Be.regexp_eatOctalDigit=function(e){var t=e.current();return je(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Be.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!Me(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Le(i),e.advance()}return!0};var Ue=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new M(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ve=z.prototype;function ze(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}Ve.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ue(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ve.getToken=function(){return this.next(),new Ue(this)},"undefined"!=typeof Symbol&&(Ve[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===C.eof,value:t}}}}),Ve.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(C.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ve.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ve.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Ve.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=t;(n=O(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},Ve.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!w(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},Ve.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&_.test(String.fromCharCode(e))))break e;++this.pos}}},Ve.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Ve.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(C.ellipsis)):(++this.pos,this.finishToken(C.dot))},Ve.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(C.assign,2):this.finishOp(C.slash,1)},Ve.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?C.star:C.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=C.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(C.assign,r+1):this.finishOp(n,r)},Ve.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(124===e?C.logicalOR:C.logicalAND,2):61===t?this.finishOp(C.assign,2):this.finishOp(124===e?C.bitwiseOR:C.bitwiseAND,1)},Ve.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.bitwiseXOR,1)},Ve.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!b.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(C.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(C.assign,2):this.finishOp(C.plusMin,1)},Ve.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(C.assign,r+1):this.finishOp(C.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(C.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ve.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(C.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(C.arrow)):this.finishOp(61===e?C.eq:C.prefix,1)},Ve.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(C.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(C.coalesce,2)}return this.finishOp(C.question,1)},Ve.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(C.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+P(e)+"'")},Ve.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(C.parenL);case 41:return++this.pos,this.finishToken(C.parenR);case 59:return++this.pos,this.finishToken(C.semi);case 44:return++this.pos,this.finishToken(C.comma);case 91:return++this.pos,this.finishToken(C.bracketL);case 93:return++this.pos,this.finishToken(C.bracketR);case 123:return++this.pos,this.finishToken(C.braceL);case 125:return++this.pos,this.finishToken(C.braceR);case 58:return++this.pos,this.finishToken(C.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(C.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(C.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+P(e)+"'")},Ve.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Ve.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(b.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new Ie(this));a.reset(r,i,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var u=null;try{u=new RegExp(i,s)}catch(e){}return this.finishToken(C.regexp,{pattern:i,flags:s,value:u})},Ve.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),o=this.pos,s=0,a=0,u=0,c=null==t?1/0:t;u<c;++u,++this.pos){var l=this.input.charCodeAt(this.pos),d=void 0;if(n&&95===l)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===u&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((d=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,s=s*e+d}}return n&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:s},Ve.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=ze(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,r)},Ve.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var i=ze(this.input.slice(t,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,s=(o=this.input.slice(t,this.pos),r?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(C.num,s)},Ve.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ve.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(w(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(C.string,t)};var $e={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$e)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ve.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $e;this.raise(e,t)},Ve.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==C.template&&this.type!==C.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(C.template,e)):36===r?(this.pos+=2,this.finishToken(C.dollarBraceL)):(++this.pos,this.finishToken(C.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(w(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ve.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(C.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ve.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return P(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return w(t)?"":String.fromCharCode(t)}},Ve.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},Ve.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(f(i,n))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?p:f)(s,n)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=P(s),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},Ve.readWord=function(){var e=this.readWord1(),t=C.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)},z.acorn={Parser:z,version:"8.8.2",defaultOptions:j,Position:N,SourceLocation:M,getLineInfo:L,Node:de,TokenType:m,tokTypes:C,keywordTypes:v,TokContext:re,tokContexts:ne,isIdentifierChar:f,isIdentifierStart:p,Token:Ue,isNewLine:w,lineBreak:b,lineBreakG:S,nonASCIIwhitespace:_};var We=r(345);function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ge(e,t,r){return t&&He(e.prototype,t),r&&He(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Ye(e,t,r){return Ye=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Ke(i,r.prototype),i},Ye.apply(null,arguments)}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xe(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e){return"string"==typeof e?We.Long.fromString(e):We.Long.fromNumber(e)}var Je={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Date.apply(void 0,Xe(t))}))},et={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ye(Date,Xe(t))}))},tt={RegExp,Binary:function(e,t){return new We.Binary(e,t)},BinData:function(e,t){return new We.Binary(Buffer.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new We.UUID).toBinary():new We.Binary(Buffer.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new We.Code(e,t)},DBRef:function(e,t,r,n){return new We.DBRef(e,t,r,n)},Decimal128:function(e){return We.Decimal128.fromString(e)},NumberDecimal:function(e){return We.Decimal128.fromString(e)},Double:function(e){return new We.Double(e)},Int32:function(e){return new We.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new We.Long(e,t)},NumberLong:Ze,Int64:Ze,Map:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t;return new(null!==(t=We.Map)&&void 0!==t?t:Map)(e)})),MaxKey:function(){return new We.MaxKey},MinKey:function(){return new We.MinKey},ObjectID:function(e){return new We.ObjectId(e)},ObjectId:function(e){return new We.ObjectId(e)},Symbol:function(e){return new We.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new We.Timestamp({t:e,i:t}):new We.Timestamp(e)},ISODate:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ye(Date,Xe(t))}},rt=Object.freeze({Infinity:1/0,NaN:NaN,undefined:void 0}),nt={Math:{class:Math,allowedMethods:{abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0}},Date:{class:Date,allowedMethods:{getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0}},ISODate:{class:Date,allowedMethods:"Date"}},it=Object.freeze([].concat(Xe(Object.keys(tt)),Xe(Object.keys(et)),Xe(Object.keys(Je))));function ot(e,t){if(nt[e]){var r=nt[e].allowedMethods;return"string"==typeof r?nt[r].allowedMethods[t]:r[t]}return!1}var st,at=Ge((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,qe(this,"checkSafeCall",(function(e){var t=r.options.allowMethods;if("Identifier"===e.callee.type)return it.indexOf(e.callee.name)>=0&&e.arguments.every(r.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){var n=e.callee.object,i=e.callee.property;return"Identifier"===n.type&&"Identifier"===i.type?ot(n.name,i.name)&&e.arguments.every(r.checkSafeExpression):"NewExpression"!==n.type&&"CallExpression"!==n.type||"Identifier"!==n.callee.type?r.checkSafeExpression(n)&&e.arguments.every(r.checkSafeExpression):ot(n.callee.name,i.name)&&e.arguments.every(r.checkSafeExpression)}return!1})),qe(this,"checkSafeExpression",(function(e){switch(e.type){case"Identifier":return rt.hasOwnProperty(e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(r.checkSafeExpression);case"UnaryExpression":return r.checkSafeExpression(e.argument);case"BinaryExpression":return r.checkSafeExpression(e.left)&&r.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return r.checkSafeCall(e);case"ObjectExpression":return e.properties.every((function(e){return!e.computed&&!e.method&&!!["Literal","Identifier"].includes(e.key.type)&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||r.checkSafeExpression(e.value))}));default:return!1}}))})),ut=function(e,t){return"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new at(t).checkSafeExpression(e.body[0].expression)},ct=function(e){if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-ht(e.argument);case"+":return+ht(e.argument);case"!":return!ht(e.argument);case"~":return~ht(e.argument);default:throw new Error("Invalid UnaryExpression Provided: '".concat(e.operator,"'"))}},lt=function(e){var t=e.left,r=e.right;switch(e.operator){case"==":return ht(t)==ht(r);case"!=":return ht(t)!=ht(r);case"===":return ht(t)===ht(r);case"!==":return ht(t)!==ht(r);case"<":return ht(t)<ht(r);case"<=":return ht(t)<=ht(r);case">":return ht(t)>ht(r);case">=":return ht(t)>=ht(r);case"<<":return ht(t)<<ht(r);case">>":return ht(t)>>ht(r);case">>>":return ht(t)>>>ht(r);case"+":return ht(t)+ht(r);case"-":return ht(t)-ht(r);case"*":return ht(t)*ht(r);case"/":return ht(t)/ht(r);case"%":return ht(t)%ht(r);case"**":return Math.pow(ht(t),ht(r));case"|":return ht(t)|ht(r);case"^":return ht(t)^ht(r);case"&":return ht(t)&ht(r);case"in":return ht(t)in ht(r);case"instanceof":return ht(t)instanceof ht(r);default:throw new Error("Invalid BinaryExpression Provided: '".concat(e.operator,"'"))}},dt=function(e,t){switch(e.callee.type){case"Identifier":var r=function(e,t){if(t&&et[e])return et[e];if(!t&&Je[e])return Je[e];if(tt[e])return tt[e];throw new Error("Attempted to access scope property '".concat(e,"' that doesn't exist"))}(e.callee.name,t),n=e.arguments.map((function(e){return ht(e)}));return r.apply(r,n);case"MemberExpression":var i="Identifier"===e.callee.object.type?function(e){if(nt[e])return nt[e].class;throw new Error("Attempted to access member '".concat(e,"' that doesn't exist"))}(e.callee.object.name):ht(e.callee.object),o="Identifier"===e.callee.property.type&&e.callee.property.name;if(!o)throw new Error("Expected CallExpression property to be an identifier");var s=e.arguments.map((function(e){return ht(e)}));return i[o].apply(i,s);default:throw new Error("Should not evaluate invalid expressions")}},ht=function e(t){switch(t.type){case"Identifier":if(rt.hasOwnProperty(t.name))return rt[t.name];throw new Error("".concat(t.name," is not a valid Identifier"));case"Literal":return t.value;case"UnaryExpression":return ct(t);case"BinaryExpression":return lt(t);case"ArrayExpression":return t.elements.map((function(t){return e(t)}));case"CallExpression":return dt(t,!1);case"NewExpression":return dt(t,!0);case"ObjectExpression":var r={};return t.properties.forEach((function(t){var n="Identifier"===t.key.type?t.key.name:e(t.key);r[n]=e(t.value)})),r;case"FunctionExpression":case"ArrowFunctionExpression":return function(e){var t,r=(null===(t=e.loc)||void 0===t?void 0:t.source)||"",n=e.range||[];return r.slice(n[0],n[1])}(t);default:throw new Error}},pt=function(e){if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return ht(e.body[0].expression);throw new Error("Invalid AST Found")};function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(r),!0).forEach((function(t){qe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}!function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(st||(st={}));var gt={allowMethods:!1,allowComments:!1},Et={allowMethods:!0},yt={allowMethods:!0,allowComments:!0},vt=mt({mode:st.Strict},gt);function At(e,t){var r=function(e){return mt(mt(mt({},vt),function(e){switch(e){case st.Strict:return gt;case st.Extended:return Et;case st.Loose:return yt}}(e&&e.mode||st.Strict)),e)}(t),n=function(e){var t=!1,r=function(e,t){return z.parse(e,t)}(e,{ecmaVersion:6,onComment:function(){return t=!0},locations:!0,ranges:!0,sourceFile:e});return{ast:r,hasComments:t}}("(\n".concat(e,"\n)")),i=n.hasComments,o=n.ast;return i&&!r.allowComments||!ut(o,r)?"":pt(o)}},2215:(e,t,r)=>{"use strict";const n=r(3325),i=r(3281),o=r(7932);e.exports={XMLParser:i,XMLValidator:n,XMLBuilder:o}},4056:(e,t)=>{"use strict";const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+n+"$");t.isExist=function(e){return void 0!==e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,r){if(t){const n=Object.keys(t),i=n.length;for(let o=0;o<i;o++)e[n[o]]="strict"===r?[t[n[o]]]:t[n[o]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(e){return!(null==i.exec(e))},t.getAllMatches=function(e,t){const r=[];let n=t.exec(e);for(;n;){const i=[];i.startIndex=t.lastIndex-n[0].length;const o=n.length;for(let e=0;e<o;e++)i.push(n[e]);r.push(i),n=t.exec(e)}return r},t.nameRegexp=n},3325:(e,t,r)=>{"use strict";const n=r(4056),i={allowBooleanAttributes:!1,unpairedTags:[]};function o(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function s(e,t){const r=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const n=e.substr(r,t-r);if(t>5&&"xml"===n)return f("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&(r--,0===r))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}t.validate=function(e,t){t=Object.assign({},i,t);const r=[];let u=!1,c=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i<e.length;i++)if("<"===e[i]&&"?"===e[i+1]){if(i+=2,i=s(e,i),i.err)return i}else{if("<"!==e[i]){if(o(e[i]))continue;return f("InvalidChar","char '"+e[i]+"' is not expected.",g(e,i))}{let m=i;if(i++,"!"===e[i]){i=a(e,i);continue}{let E=!1;"/"===e[i]&&(E=!0,i++);let y="";for(;i<e.length&&">"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)y+=e[i];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),i--),d=y,!n.isName(d)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",f("InvalidTag",t,g(e,i))}const v=l(e,i);if(!1===v)return f("InvalidAttr","Attributes for '"+y+"' have open quote.",g(e,i));let A=v.value;if(i=v.index,"/"===A[A.length-1]){const r=i-A.length;A=A.substring(0,A.length-1);const n=h(A,t);if(!0!==n)return f(n.err.code,n.err.msg,g(e,r+n.err.line));u=!0}else if(E){if(!v.tagClosed)return f("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",g(e,i));if(A.trim().length>0)return f("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",g(e,m));{const t=r.pop();if(y!==t.tagName){let r=g(e,t.tagStartPos);return f("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+y+"'.",g(e,m))}0==r.length&&(c=!0)}}else{const n=h(A,t);if(!0!==n)return f(n.err.code,n.err.msg,g(e,i-A.length+n.err.line));if(!0===c)return f("InvalidXml","Multiple possible root nodes found.",g(e,i));-1!==t.unpairedTags.indexOf(y)||r.push({tagName:y,tagStartPos:m}),u=!0}for(i++;i<e.length;i++)if("<"===e[i]){if("!"===e[i+1]){i++,i=a(e,i);continue}if("?"!==e[i+1])break;if(i=s(e,++i),i.err)return i}else if("&"===e[i]){const t=p(e,i);if(-1==t)return f("InvalidChar","char '&' is not expected.",g(e,i));i=t}else if(!0===c&&!o(e[i]))return f("InvalidXml","Extra text at the end",g(e,i));"<"===e[i]&&i--}}}var d;return u?1==r.length?f("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",g(e,r[0].tagStartPos)):!(r.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};const u='"',c="'";function l(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if(e[t]===u||e[t]===c)""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){i=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:i}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(e,t){const r=n.getAllMatches(e,d),i={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return f("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",E(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return f("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",E(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",E(r[e]));const n=r[e][2];if(!m(n))return f("InvalidAttr","Attribute '"+n+"' is an invalid name.",E(r[e]));if(i.hasOwnProperty(n))return f("InvalidAttr","Attribute '"+n+"' is repeated.",E(r[e]));i[n]=1}return!0}function p(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function f(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function m(e){return n.isName(e)}function g(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function E(e){return e.startIndex+e[1].length}},7932:(e,t,r)=>{"use strict";const n=r(6704),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(e){this.options=Object.assign({},i,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=s,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function s(e,t,r){const n=this.j2x(e,r+1);return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,r):this.buildObjectNode(n.val,t,n.attrStr,r)}function a(e){return this.options.indentBy.repeat(e)}function u(e){return!!e.startsWith(this.options.attributeNamePrefix)&&e.substr(this.attrPrefixLen)}o.prototype.build=function(e){return this.options.preserveOrder?n(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},o.prototype.j2x=function(e,t){let r="",n="";for(let i in e)if(void 0===e[i]);else if(null===e[i])"?"===i[0]?n+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)n+=this.buildTextValNode(e[i],i,"",t);else if("object"!=typeof e[i]){const o=this.isAttribute(i);if(o)r+=this.buildAttrPairStr(o,""+e[i]);else if(i===this.options.textNodeName){let t=this.options.tagValueProcessor(i,""+e[i]);n+=this.replaceEntitiesValue(t)}else n+=this.buildTextValNode(e[i],i,"",t)}else if(Array.isArray(e[i])){const r=e[i].length;let o="";for(let s=0;s<r;s++){const r=e[i][s];void 0===r||(null===r?"?"===i[0]?n+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+i+"/"+this.tagEndChar:"object"==typeof r?this.options.oneListGroup?o+=this.j2x(r,t+1).val:o+=this.processTextOrObjNode(r,i,t):o+=this.buildTextValNode(r,i,"",t))}this.options.oneListGroup&&(o=this.buildObjectNode(o,i,"",t)),n+=o}else if(this.options.attributesGroupName&&i===this.options.attributesGroupName){const t=Object.keys(e[i]),n=t.length;for(let o=0;o<n;o++)r+=this.buildAttrPairStr(t[o],""+e[i][t[o]])}else n+=this.processTextOrObjNode(e[i],i,t);return{attrStr:r,val:n}},o.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},o.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,o="";return"?"===t[0]&&(o="?",i=""),r&&-1===e.indexOf("<")?this.indentate(n)+"<"+t+r+o+">"+e+i:!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(n)+"<"+t+r+o+this.tagEndChar+e+this.indentate(n)+i}},o.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},o.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+i+"</"+t+this.tagEndChar}},o.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},e.exports=o},6704:e=>{function t(e,s,a,u){let c="",l=!1;for(let d=0;d<e.length;d++){const h=e[d],p=r(h);let f="";if(f=0===a.length?p:`${a}.${p}`,p===s.textNodeName){let e=h[p];i(f,s)||(e=s.tagValueProcessor(p,e),e=o(e,s)),l&&(c+=u),c+=e,l=!1;continue}if(p===s.cdataPropName){l&&(c+=u),c+=`<![CDATA[${h[p][0][s.textNodeName]}]]>`,l=!1;continue}if(p===s.commentPropName){c+=u+`\x3c!--${h[p][0][s.textNodeName]}--\x3e`,l=!0;continue}if("?"===p[0]){const e=n(h[":@"],s),t="?xml"===p?"":u;let r=h[p][0][s.textNodeName];r=0!==r.length?" "+r:"",c+=t+`<${p}${r}${e}?>`,l=!0;continue}let m=u;""!==m&&(m+=s.indentBy);const g=u+`<${p}${n(h[":@"],s)}`,E=t(h[p],s,f,m);-1!==s.unpairedTags.indexOf(p)?s.suppressUnpairedNode?c+=g+">":c+=g+"/>":E&&0!==E.length||!s.suppressEmptyNode?E&&E.endsWith(">")?c+=g+`>${E}${u}</${p}>`:(c+=g+">",E&&""!==u&&(E.includes("/>")||E.includes("</"))?c+=u+s.indentBy+E+u:c+=E,c+=`</${p}>`):c+=g+"/>",l=!0}return c}function r(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function n(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){let i=t.attributeValueProcessor(n,e[n]);i=o(i,t),!0===i&&t.suppressBooleanAttributes?r+=` ${n.substr(t.attributeNamePrefix.length)}`:r+=` ${n.substr(t.attributeNamePrefix.length)}="${i}"`}return r}function i(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function o(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}e.exports=function(e,r){let n="";return r.format&&r.indentBy.length>0&&(n="\n"),t(e,r,"",n)}},3770:(e,t,r)=>{const n=r(4056);function i(e,t){let r="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)r+=e[t];if(r=r.trim(),-1!==r.indexOf(" "))throw new Error("External entites are not supported");const n=e[t++];let i="";for(;t<e.length&&e[t]!==n;t++)i+=e[t];return[r,i,t]}function o(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function s(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function u(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function c(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function l(e){if(n.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}e.exports=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let n=1,d=!1,h=!1,p="";for(;t<e.length;t++)if("<"!==e[t]||h)if(">"===e[t]){if(h?"-"===e[t-1]&&"-"===e[t-2]&&(h=!1,n--):n--,0===n)break}else"["===e[t]?d=!0:p+=e[t];else{if(d&&s(e,t))t+=7,[entityName,val,t]=i(e,t+1),-1===val.indexOf("&")&&(r[l(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(d&&a(e,t))t+=8;else if(d&&u(e,t))t+=8;else if(d&&c(e,t))t+=9;else{if(!o)throw new Error("Invalid DOCTYPE");h=!0}n++,p=""}if(0!==n)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}}},4238:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}};t.buildOptions=function(e){return Object.assign({},r,e)},t.defaultOptions=r},2848:(e,t,r)=>{"use strict";const n=r(4056),i=r(4499),o=r(3770),s=r(5580);function a(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function u(e,t,r,n,i,o,s){if(void 0!==e&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e));const n=this.options.tagValueProcessor(t,e,r,i,o);return null==n?e:typeof n!=typeof e||n!==e?n:this.options.trimValues||e.trim()===e?A(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function c(e){if(this.options.removeNSPrefix){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,t,r){if(!this.options.ignoreAttributes&&"string"==typeof e){const r=n.getAllMatches(e,l),i=r.length,o={};for(let e=0;e<i;e++){const n=this.resolveNameSpace(r[e][1]);let i=r[e][4],s=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(s=this.options.transformAttributeName(s)),"__proto__"===s&&(s="#__proto__"),void 0!==i){this.options.trimValues&&(i=i.trim()),i=this.replaceEntitiesValue(i);const e=this.options.attributeValueProcessor(n,i,t);o[s]=null==e?i:typeof e!=typeof i||e!==i?e:A(i,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[s]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=o,e}return o}}const h=function(e){e=e.replace(/\r\n?/g,"\n");const t=new i("!xml");let r=t,n="",s="";for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=E(e,">",a,"Closing Tag is not closed.");let i=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),r&&(n=this.saveTextToParentTag(n,r,s));const o=s.substring(s.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);let u=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",a=t}else if("?"===e[a+1]){let t=y(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new i(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,s,t.tagName)),this.addChild(r,e,s)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=E(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=e.substring(a+4,t-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=t}else if("!D"===e.substr(a+1,2)){const t=o(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=E(e,"]]>",a,"CDATA is not closed.")-2,i=e.substring(a+9,t);if(n=this.saveTextToParentTag(n,r,s),this.options.cdataPropName)r.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]);else{let e=this.parseTextData(i,r.tagname,s,!0,!1,!0);null==e&&(e=""),r.add(this.options.textNodeName,e)}a=t+2}else{let o=y(e,a,this.options.removeNSPrefix),u=o.tagName,c=o.tagExp,l=o.attrExpPresent,d=o.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,s,!1));const h=r;if(h&&-1!==this.options.unpairedTags.indexOf(h.tagname)&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),u!==t.tagname&&(s+=s?"."+u:u),this.isItStopNode(this.options.stopNodes,s,u)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(u))a=o.closeIndex;else{const r=this.readStopNodeData(e,u,d+1);if(!r)throw new Error(`Unexpected end of ${u}`);a=r.i,t=r.tagContent}const n=new i(u);u!==c&&l&&(n[":@"]=this.buildAttributesMap(c,s,u)),t&&(t=this.parseTextData(t,u,s,!0,l,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),n.add(this.options.textNodeName,t),this.addChild(r,n,s)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===u[u.length-1]?(u=u.substr(0,u.length-1),c=u):c=c.substr(0,c.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));const e=new i(u);u!==c&&l&&(e[":@"]=this.buildAttributesMap(c,s,u)),this.addChild(r,e,s),s=s.substr(0,s.lastIndexOf("."))}else{const e=new i(u);this.tagsNodeStack.push(r),u!==c&&l&&(e[":@"]=this.buildAttributesMap(c,s,u)),this.addChild(r,e,s),r=e}n="",a=d}}else n+=e[a];return t.child};function p(e,t,r){const n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"==typeof n?(t.tagname=n,e.addChild(t)):e.addChild(t))}const f=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,r,n){return e&&(void 0===n&&(n=0===Object.keys(t.child).length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function g(e,t,r){const n="*."+r;for(const r in e){const i=e[r];if(n===i||t===i)return!0}return!1}function E(e,t,r,n){const i=e.indexOf(t,r);if(-1===i)throw new Error(n);return i+t.length-1}function y(e,t,r,n=">"){const i=function(e,t,r=">"){let n,i="";for(let o=t;o<e.length;o++){let t=e[o];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else if(t===r[0]){if(!r[1])return{data:i,index:o};if(e[o+1]===r[1])return{data:i,index:o}}else"\t"===t&&(t=" ");i+=t}}(e,t+1,n);if(!i)return;let o=i.data;const s=i.index,a=o.search(/\s/);let u=o,c=!0;if(-1!==a&&(u=o.substr(0,a).replace(/\s\s*$/,""),o=o.substr(a+1)),r){const e=u.indexOf(":");-1!==e&&(u=u.substr(e+1),c=u!==i.data.substr(e+1))}return{tagName:u,tagExp:o,closeIndex:s,attrExpPresent:c}}function v(e,t,r){const n=r;let i=1;for(;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){const o=E(e,">",r,`${t} is not closed`);if(e.substring(r+2,o).trim()===t&&(i--,0===i))return{tagContent:e.substring(n,r),i:o};r=o}else if("?"===e[r+1])r=E(e,"?>",r+1,"StopNode is not closed.");else if("!--"===e.substr(r+1,3))r=E(e,"--\x3e",r+3,"StopNode is not closed.");else if("!["===e.substr(r+1,2))r=E(e,"]]>",r,"StopNode is not closed.")-2;else{const n=y(e,r,">");n&&((n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&i++,r=n.closeIndex)}}function A(e,t,r){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&s(e,r)}return n.isExist(e)?e:""}e.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=a,this.parseXml=h,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=f,this.readStopNodeData=v,this.saveTextToParentTag=m,this.addChild=p}}},3281:(e,t,r)=>{const{buildOptions:n}=r(4238),i=r(2848),{prettify:o}=r(4416),s=r(3325);e.exports=class{constructor(e){this.externalEntities={},this.options=n(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const r=s.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new i(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:o(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}},4416:(e,t)=>{"use strict";function r(e,t,s){let a;const u={};for(let c=0;c<e.length;c++){const l=e[c],d=n(l);let h="";if(h=void 0===s?d:s+"."+d,d===t.textNodeName)void 0===a?a=l[d]:a+=""+l[d];else{if(void 0===d)continue;if(l[d]){let e=r(l[d],t,h);const n=o(e,t);l[":@"]?i(e,l[":@"],h,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==u[d]&&u.hasOwnProperty(d)?(Array.isArray(u[d])||(u[d]=[u[d]]),u[d].push(e)):t.isArray(d,h,n)?u[d]=[e]:u[d]=e}}}return"string"==typeof a?a.length>0&&(u[t.textNodeName]=a):void 0!==a&&(u[t.textNodeName]=a),u}function n(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function i(e,t,r,n){if(t){const i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){const o=i[s];n.isArray(o,r+"."+o,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function o(e,t){const{textNodeName:r}=t,n=Object.keys(e).length;return 0===n||!(1!==n||!e[r]&&"boolean"!=typeof e[r]&&0!==e[r])}t.prettify=function(e,t){return r(e,t)}},4499:e=>{"use strict";e.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},3463:(e,t,r)=>{"use strict";var n=r(3887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var s=l(r);d&&(s=s.concat(d(r)));for(var a=u(t),m=u(r),g=0;g<s.length;++g){var E=s[g];if(!(o[E]||n&&n[E]||m&&m[E]||a&&a[E])){var y=h(r,E);try{c(t,E,y)}catch(e){}}}}return t}},3459:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,E=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,A=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case u:return e;default:return t}}case i:return t}}}function b(e){return C(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return b(e)||C(e)===l},t.isConcurrentMode=b,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===A||e.$$typeof===E)},t.typeOf=C},3887:(e,t,r)=>{"use strict";e.exports=r(3459)},841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayToString=void 0,t.arrayToString=(e,t,r)=>{const n=e.map((function(e,n){const i=r(e,n);return void 0===i?String(i):t+i.split("\n").join(`\n${t}`)})).join(t?",\n":","),i=t&&n?"\n":"";return`[${i}${n}${i}]`}},2679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionParser=t.dedentFunction=t.functionToString=t.USED_METHOD_KEY=void 0;const n=r(311),i='"'==={" "(){}}[" "].toString().charAt(0),o={Function:"function ",GeneratorFunction:"function* ",AsyncFunction:"async function ",AsyncGeneratorFunction:"async function* "},s={Function:"",GeneratorFunction:"*",AsyncFunction:"async ",AsyncGeneratorFunction:"async *"},a=new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));function u(e){let t;for(const r of e.split("\n").slice(1)){const n=/^[\s\t]+/.exec(r);if(!n)return e;const[i]=n;(void 0===t||i.length<t.length)&&(t=i)}return t?e.split(`\n${t}`).join("\n"):e}t.USED_METHOD_KEY=new WeakSet,t.functionToString=(e,r,n,i)=>{const o="string"==typeof i?i:void 0;return void 0!==o&&t.USED_METHOD_KEY.add(e),new c(e,r,n,o).stringify()},t.dedentFunction=u;class c{constructor(e,t,r,i){this.fn=e,this.indent=t,this.next=r,this.key=i,this.pos=0,this.hadKeyword=!1,this.fnString=Function.prototype.toString.call(e),this.fnType=e.constructor.name,this.keyQuote=void 0===i?"":n.quoteKey(i,r),this.keyPrefix=void 0===i?"":`${this.keyQuote}:${t?" ":""}`,this.isMethodCandidate=void 0!==i&&(""===this.fn.name||this.fn.name===i)}stringify(){const e=this.tryParse();return e?u(e):`${this.keyPrefix}void ${this.next(this.fnString)}`}getPrefix(){return this.isMethodCandidate&&!this.hadKeyword?s[this.fnType]+this.keyQuote:this.keyPrefix+o[this.fnType]}tryParse(){if("}"!==this.fnString[this.fnString.length-1])return this.keyPrefix+this.fnString;if(this.fn.name){const e=this.tryStrippingName();if(e)return e}const e=this.pos;if("class"===this.consumeSyntax())return this.fnString;if(this.pos=e,this.tryParsePrefixTokens()){const e=this.tryStrippingName();if(e)return e;let t=this.pos;switch(this.consumeSyntax("WORD_LIKE")){case"WORD_LIKE":this.isMethodCandidate&&!this.hadKeyword&&(t=this.pos);case"()":if("=>"===this.fnString.substr(this.pos,2))return this.keyPrefix+this.fnString;this.pos=t;case'"':case"'":case"[]":return this.getPrefix()+this.fnString.substr(this.pos)}}}tryStrippingName(){if(i)return;let e=this.pos;const t=this.fnString.substr(this.pos,this.fn.name.length);if(t===this.fn.name&&(this.pos+=t.length,"()"===this.consumeSyntax()&&"{}"===this.consumeSyntax()&&this.pos===this.fnString.length))return!this.isMethodCandidate&&n.isValidVariableName(t)||(e+=t.length),this.getPrefix()+this.fnString.substr(e);this.pos=e}tryParsePrefixTokens(){let e=this.pos;switch(this.hadKeyword=!1,this.fnType){case"AsyncFunction":if("async"!==this.consumeSyntax())return!1;e=this.pos;case"Function":return"function"===this.consumeSyntax()?this.hadKeyword=!0:this.pos=e,!0;case"AsyncGeneratorFunction":if("async"!==this.consumeSyntax())return!1;case"GeneratorFunction":let t=this.consumeSyntax();return"function"===t&&(t=this.consumeSyntax(),this.hadKeyword=!0),"*"===t}}consumeSyntax(e){const t=this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);if(!t)return;const[r,n]=t;if(this.consumeWhitespace(),n)return e||n;switch(r){case"(":return this.consumeSyntaxUntil("(",")");case"[":return this.consumeSyntaxUntil("[","]");case"{":return this.consumeSyntaxUntil("{","}");case"`":return this.consumeTemplate();case'"':return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/,'"');case"'":return this.consumeRegExp(/^(?:[^\\']|\\.)*'/,"'")}return r}consumeSyntaxUntil(e,t){let r=!0;for(;;){const n=this.consumeSyntax();if(n===t)return e+t;if(!n||")"===n||"]"===n||"}"===n)return;"/"===n&&r&&this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)?(r=!1,this.consumeWhitespace()):r=a.has(n)}}consumeMatch(e){const t=e.exec(this.fnString.substr(this.pos));return t&&(this.pos+=t[0].length),t}consumeRegExp(e,t){const r=e.exec(this.fnString.substr(this.pos));if(r)return this.pos+=r[0].length,this.consumeWhitespace(),t}consumeTemplate(){for(;;){if(this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/),"`"===this.fnString[this.pos])return this.pos++,this.consumeWhitespace(),"`";if("${"!==this.fnString.substr(this.pos,2)||(this.pos+=2,this.consumeWhitespace(),!this.consumeSyntaxUntil("{","}")))return}}consumeWhitespace(){this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/)}}t.FunctionParser=c},6081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;const n=r(4225),i=r(311),o=Symbol("root");t.stringify=function(e,t,r,s={}){const a="string"==typeof r?r:" ".repeat(r||0),u=[],c=new Set,l=new Map,d=new Map;let h=0;const{maxDepth:p=100,references:f=!1,skipUndefinedProperties:m=!1,maxValues:g=1e5}=s,E=function(e){return e?(t,r,i,o)=>e(t,r,(e=>n.toString(e,r,i,o)),o):n.toString}(t),y=(e,t)=>{if(++h>g)return;if(m&&void 0===e)return;if(u.length>p)return;if(void 0===t)return E(e,a,y,t);u.push(t);const r=v(e,t===o?void 0:t);return u.pop(),r},v=f?(e,t)=>{if(null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)){if(l.has(e))return d.set(u.slice(1),l.get(e)),E(void 0,a,y,t);l.set(e,u.slice(1))}return E(e,a,y,t)}:(e,t)=>{if(c.has(e))return;c.add(e);const r=E(e,a,y,t);return c.delete(e),r},A=y(e,o);if(d.size){const e=a?" ":"",t=a?"\n":"";let r=`var x${e}=${e}${A};${t}`;for(const[n,o]of d.entries())r+=`x${i.stringifyPath(n,y)}${e}=${e}x${i.stringifyPath(o,y)};${t}`;return`(function${e}()${e}{${t}${r}return x;${t}}())`}return A}},7112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=void 0;const n=r(311),i=r(2679),o=r(841);t.objectToString=(e,t,n,i)=>{if("function"==typeof Buffer&&Buffer.isBuffer(e))return`Buffer.from(${n(e.toString("base64"))}, 'base64')`;if("object"==typeof r.g&&e===r.g)return s(e,t,n,i);const o=a[Object.prototype.toString.call(e)];return o?o(e,t,n,i):void 0};const s=(e,t,r)=>`Function(${r("return this")})()`,a={"[object Array]":o.arrayToString,"[object Object]":(e,t,r,o)=>{const s=t?"\n":"",a=t?" ":"",u=Object.keys(e).reduce((function(o,s){const u=e[s],c=r(u,s);if(void 0===c)return o;const l=c.split("\n").join(`\n${t}`);return i.USED_METHOD_KEY.has(u)?(o.push(`${t}${l}`),o):(o.push(`${t}${n.quoteKey(s,r)}:${a}${l}`),o)}),[]).join(`,${s}`);return""===u?"{}":`{${s}${u}${s}}`},"[object Error]":(e,t,r)=>`new Error(${r(e.message)})`,"[object Date]":e=>`new Date(${e.getTime()})`,"[object String]":(e,t,r)=>`new String(${r(e.toString())})`,"[object Number]":e=>`new Number(${e})`,"[object Boolean]":e=>`new Boolean(${e})`,"[object Set]":(e,t,r)=>`new Set(${r(Array.from(e))})`,"[object Map]":(e,t,r)=>`new Map(${r(Array.from(e))})`,"[object RegExp]":String,"[object global]":s,"[object Window]":s}},311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyPath=t.quoteKey=t.isValidVariableName=t.IS_VALID_IDENTIFIER=t.quoteString=void 0;const r=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n=new Map([["\b","\\b"],["\t","\\t"],["\n","\\n"],["\f","\\f"],["\r","\\r"],["'","\\'"],['"','\\"'],["\\","\\\\"]]);function i(e){return n.get(e)||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}t.quoteString=function(e){return`'${e.replace(r,i)}'`};const o=new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));function s(e){return"string"==typeof e&&!o.has(e)&&t.IS_VALID_IDENTIFIER.test(e)}t.IS_VALID_IDENTIFIER=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t.isValidVariableName=s,t.quoteKey=function(e,t){return s(e)?e:t(e)},t.stringifyPath=function(e,t){let r="";for(const n of e)s(n)?r+=`.${n}`:r+=`[${t(n)}]`;return r}},4225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;const n=r(311),i=r(7112),o=r(2679),s={string:n.quoteString,number:e=>Object.is(e,-0)?"-0":String(e),boolean:String,symbol:(e,t,r)=>{const n=Symbol.keyFor(e);return void 0!==n?`Symbol.for(${r(n)})`:`Symbol(${r(e.description)})`},bigint:(e,t,r)=>`BigInt(${r(String(e))})`,undefined:String,object:i.objectToString,function:o.functionToString};t.toString=(e,t,r,n)=>null===e?"null":s[typeof e](e,t,r,n)},6635:function(e,t,r){var n;e=r.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,d=9007199254740991,h=NaN,p=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",E="[object Boolean]",y="[object Date]",v="[object Error]",A="[object Function]",C="[object GeneratorFunction]",b="[object Map]",S="[object Number]",w="[object Object]",O="[object Promise]",_="[object RegExp]",x="[object Set]",D="[object String]",T="[object Symbol]",B="[object WeakMap]",I="[object ArrayBuffer]",F="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",k="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",U="[object Uint16Array]",V="[object Uint32Array]",z=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,q=RegExp(H.source),K=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+Ce+"]",Te="["+xe+"]",Be="["+be+"]",Ie="\\d+",Fe="["+Se+"]",Re="["+we+"]",Pe="[^"+Ce+xe+Ie+Se+we+Oe+"]",ke="\\ud83c[\\udffb-\\udfff]",Ne="[^"+Ce+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Oe+"]",Ue="\\u200d",Ve="(?:"+Re+"|"+Pe+")",ze="(?:"+je+"|"+Pe+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Be+"|"+ke+")?",Ge="["+_e+"]?",qe=Ge+He+"(?:"+Ue+"(?:"+[Ne,Me,Le].join("|")+")"+Ge+He+")*",Ke="(?:"+[Fe,Me,Le].join("|")+")"+qe,Ye="(?:"+[Ne+Be+"?",Be,Me,Le,De].join("|")+")",Qe=RegExp("['’]","g"),Xe=RegExp(Be,"g"),Ze=RegExp(ke+"(?="+ke+")|"+Ye+qe,"g"),Je=RegExp([je+"?"+Re+"+"+$e+"(?="+[Te,je,"$"].join("|")+")",ze+"+"+We+"(?="+[Te,je+Ve,"$"].join("|")+")",je+"?"+Ve+"+"+$e,je+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ke].join("|"),"g"),et=RegExp("["+Ue+Ce+be+_e+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,it={};it[R]=it[P]=it[k]=it[N]=it[M]=it[L]=it[j]=it[U]=it[V]=!0,it[m]=it[g]=it[I]=it[E]=it[F]=it[y]=it[v]=it[A]=it[b]=it[S]=it[w]=it[_]=it[x]=it[D]=it[B]=!1;var ot={};ot[m]=ot[g]=ot[I]=ot[F]=ot[E]=ot[y]=ot[R]=ot[P]=ot[k]=ot[N]=ot[M]=ot[b]=ot[S]=ot[w]=ot[_]=ot[x]=ot[D]=ot[T]=ot[L]=ot[j]=ot[U]=ot[V]=!0,ot[v]=ot[A]=ot[B]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,lt="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||lt||Function("return this")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,ft=pt&&pt.exports===ht,mt=ft&&ct.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),Et=gt&>.isArrayBuffer,yt=gt&>.isDate,vt=gt&>.isMap,At=gt&>.isRegExp,Ct=gt&>.isSet,bt=gt&>.isTypedArray;function St(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function wt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}function Ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function _t(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function xt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Dt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function Tt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Bt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function It(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Ft(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Rt(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function Pt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Nt=$t("length");function Mt(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function Lt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function jt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Lt(e,Vt,r)}function Ut(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function Vt(e){return e!=e}function zt(e,t){var r=null==e?0:e.length;return r?Gt(e,t)/r:h}function $t(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function Ht(e,t,r,n,i){return i(e,(function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)})),r}function Gt(e,t){for(var r,n=-1,o=e.length;++n<o;){var s=t(e[n]);s!==i&&(r=r===i?s:r+s)}return r}function qt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Kt(e){return e?e.slice(0,dr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Qt(e,t){return It(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var r=-1,n=e.length;++r<n&&jt(t,e[r],0)>-1;);return r}function Jt(e,t){for(var r=e.length;r--&&jt(t,e[r],0)>-1;);return r}var er=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(e){return"\\"+st[e]}function nr(e){return et.test(e)}function ir(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function or(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r];s!==t&&s!==a||(e[r]=a,o[i++]=r)}return o}function ar(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Nt(e)}function lr(e){return nr(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function dr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hr=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pr=function e(t){var r,n=(t=null==t?dt:pr.defaults(dt.Object(),t,pr.pick(dt,rt))).Array,ie=t.Date,Ce=t.Error,be=t.Function,Se=t.Math,we=t.Object,Oe=t.RegExp,_e=t.String,xe=t.TypeError,De=n.prototype,Te=be.prototype,Be=we.prototype,Ie=t["__core-js_shared__"],Fe=Te.toString,Re=Be.hasOwnProperty,Pe=0,ke=(r=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ne=Be.toString,Me=Fe.call(we),Le=dt._,je=Oe("^"+Fe.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:i,Ve=t.Symbol,ze=t.Uint8Array,$e=Ue?Ue.allocUnsafe:i,We=or(we.getPrototypeOf,we),He=we.create,Ge=Be.propertyIsEnumerable,qe=De.splice,Ke=Ve?Ve.isConcatSpreadable:i,Ye=Ve?Ve.iterator:i,Ze=Ve?Ve.toStringTag:i,et=function(){try{var e=uo(we,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==dt.Date.now&&ie.now,lt=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Se.ceil,pt=Se.floor,mt=we.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:i,Nt=t.isFinite,Wt=De.join,fr=or(we.keys,we),mr=Se.max,gr=Se.min,Er=ie.now,yr=t.parseInt,vr=Se.random,Ar=De.reverse,Cr=uo(t,"DataView"),br=uo(t,"Map"),Sr=uo(t,"Promise"),wr=uo(t,"Set"),Or=uo(t,"WeakMap"),_r=uo(we,"create"),xr=Or&&new Or,Dr={},Tr=Mo(Cr),Br=Mo(br),Ir=Mo(Sr),Fr=Mo(wr),Rr=Mo(Or),Pr=Ve?Ve.prototype:i,kr=Pr?Pr.valueOf:i,Nr=Pr?Pr.toString:i;function Mr(e){if(ea(e)&&!$s(e)&&!(e instanceof Vr)){if(e instanceof Ur)return e;if(Re.call(e,"__wrapped__"))return Lo(e)}return new Ur(e)}var Lr=function(){function e(){}return function(t){if(!Js(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function jr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Wr;++t<r;)this.add(e[t])}function Gr(e){var t=this.__data__=new $r(e);this.size=t.size}function qr(e,t){var r=$s(e),n=!r&&zs(e),i=!r&&!n&&qs(e),o=!r&&!n&&!i&&ua(e),s=r||n||i||o,a=s?qt(e.length,_e):[],u=a.length;for(var c in e)!t&&!Re.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,u))||a.push(c);return a}function Kr(e){var t=e.length;return t?e[Hn(0,t-1)]:i}function Yr(e,t){return Fo(_i(e),on(t,0,e.length))}function Qr(e){return Fo(_i(e))}function Xr(e,t,r){(r!==i&&!js(e[t],r)||r===i&&!(t in e))&&rn(e,t,r)}function Zr(e,t,r){var n=e[t];Re.call(e,t)&&js(n,r)&&(r!==i||t in e)||rn(e,t,r)}function Jr(e,t){for(var r=e.length;r--;)if(js(e[r][0],t))return r;return-1}function en(e,t,r,n){return ln(e,(function(e,i,o){t(n,e,r(e),o)})),n}function tn(e,t){return e&&xi(t,Ba(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,o=t.length,s=n(o),a=null==e;++r<o;)s[r]=a?i:Oa(e,t[r]);return s}function on(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function sn(e,t,r,n,o,s){var a,u=1&t,c=2&t,l=4&t;if(r&&(a=o?r(e,n,o,s):r(e)),a!==i)return a;if(!Js(e))return e;var d=$s(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return _i(e,a)}else{var h=ho(e),p=h==A||h==C;if(qs(e))return Ai(e,u);if(h==w||h==m||p&&!o){if(a=c||p?{}:fo(e),!u)return c?function(e,t){return xi(e,lo(e),t)}(e,function(e,t){return e&&xi(t,Ia(t),e)}(a,e)):function(e,t){return xi(e,co(e),t)}(e,tn(a,e))}else{if(!ot[h])return o?e:{};a=function(e,t,r){var n,i=e.constructor;switch(t){case I:return Ci(e);case E:case y:return new i(+e);case F:return function(e,t){var r=t?Ci(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case P:case k:case N:case M:case L:case j:case U:case V:return bi(e,r);case b:return new i;case S:case D:return new i(e);case _:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new i;case T:return n=e,kr?we(kr.call(n)):{}}}(e,h,u)}}s||(s=new Gr);var f=s.get(e);if(f)return f;s.set(e,a),oa(e)?e.forEach((function(n){a.add(sn(n,t,r,n,e,s))})):ta(e)&&e.forEach((function(n,i){a.set(i,sn(n,t,r,i,e,s))}));var g=d?i:(l?c?to:eo:c?Ia:Ba)(e);return Ot(g||e,(function(n,i){g&&(n=e[i=n]),Zr(a,i,sn(n,t,r,i,e,s))})),a}function an(e,t,r){var n=r.length;if(null==e)return!n;for(e=we(e);n--;){var o=r[n],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new xe(o);return Do((function(){e.apply(i,r)}),t)}function cn(e,t,r,n){var i=-1,o=Tt,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;r&&(t=It(t,Yt(r))),n?(o=Bt,s=!1):t.length>=200&&(o=Xt,s=!1,t=new Hr(t));e:for(;++i<a;){var l=e[i],d=null==r?l:r(l);if(l=n||0!==l?l:0,s&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;u.push(l)}else o(t,d,n)||u.push(l)}return u}Mr.templateSettings={escape:Y,evaluate:Q,interpolate:X,variable:"",imports:{_:Mr}},Mr.prototype=jr.prototype,Mr.prototype.constructor=Mr,Ur.prototype=Lr(jr.prototype),Ur.prototype.constructor=Ur,Vr.prototype=Lr(jr.prototype),Vr.prototype.constructor=Vr,zr.prototype.clear=function(){this.__data__=_r?_r(null):{},this.size=0},zr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zr.prototype.get=function(e){var t=this.__data__;if(_r){var r=t[e];return r===s?i:r}return Re.call(t,e)?t[e]:i},zr.prototype.has=function(e){var t=this.__data__;return _r?t[e]!==i:Re.call(t,e)},zr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_r&&t===i?s:t,this},$r.prototype.clear=function(){this.__data__=[],this.size=0},$r.prototype.delete=function(e){var t=this.__data__,r=Jr(t,e);return!(r<0||(r==t.length-1?t.pop():qe.call(t,r,1),--this.size,0))},$r.prototype.get=function(e){var t=this.__data__,r=Jr(t,e);return r<0?i:t[r][1]},$r.prototype.has=function(e){return Jr(this.__data__,e)>-1},$r.prototype.set=function(e,t){var r=this.__data__,n=Jr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new zr,map:new(br||$r),string:new zr}},Wr.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return so(this,e).get(e)},Wr.prototype.has=function(e){return so(this,e).has(e)},Wr.prototype.set=function(e,t){var r=so(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,s),this},Hr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new $r,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $r){var n=r.__data__;if(!br||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var ln=Bi(yn),dn=Bi(vn,!0);function hn(e,t){var r=!0;return ln(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function pn(e,t,r){for(var n=-1,o=e.length;++n<o;){var s=e[n],a=t(s);if(null!=a&&(u===i?a==a&&!aa(a):r(a,u)))var u=a,c=s}return c}function fn(e,t){var r=[];return ln(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function mn(e,t,r,n,i){var o=-1,s=e.length;for(r||(r=mo),i||(i=[]);++o<s;){var a=e[o];t>0&&r(a)?t>1?mn(a,t-1,r,n,i):Ft(i,a):n||(i[i.length]=a)}return i}var gn=Ii(),En=Ii(!0);function yn(e,t){return e&&gn(e,t,Ba)}function vn(e,t){return e&&En(e,t,Ba)}function An(e,t){return Dt(t,(function(t){return Qs(e[t])}))}function Cn(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&r<n;)e=e[No(t[r++])];return r&&r==n?e:i}function bn(e,t,r){var n=t(e);return $s(e)?n:Ft(n,r(e))}function Sn(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in we(e)?function(e){var t=Re.call(e,Ze),r=e[Ze];try{e[Ze]=i;var n=!0}catch(e){}var o=Ne.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),o}(e):function(e){return Ne.call(e)}(e)}function wn(e,t){return e>t}function On(e,t){return null!=e&&Re.call(e,t)}function _n(e,t){return null!=e&&t in we(e)}function xn(e,t,r){for(var o=r?Bt:Tt,s=e[0].length,a=e.length,u=a,c=n(a),l=1/0,d=[];u--;){var h=e[u];u&&t&&(h=It(h,Yt(t))),l=gr(h.length,l),c[u]=!r&&(t||s>=120&&h.length>=120)?new Hr(u&&h):i}h=e[0];var p=-1,f=c[0];e:for(;++p<s&&d.length<l;){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Xt(f,g):o(d,g,r))){for(u=a;--u;){var E=c[u];if(!(E?Xt(E,g):o(e[u],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Dn(e,t,r){var n=null==(e=Oo(e,t=gi(t,e)))?e:e[No(Yo(t))];return null==n?i:St(n,e,r)}function Tn(e){return ea(e)&&Sn(e)==m}function Bn(e,t,r,n,o){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,r,n,o,s){var a=$s(e),u=$s(t),c=a?g:ho(e),l=u?g:ho(t),d=(c=c==m?w:c)==w,h=(l=l==m?w:l)==w,p=c==l;if(p&&qs(e)){if(!qs(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new Gr),a||ua(e)?Zi(e,t,r,n,o,s):function(e,t,r,n,i,o,s){switch(r){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!o(new ze(e),new ze(t)));case E:case y:case S:return js(+e,+t);case v:return e.name==t.name&&e.message==t.message;case _:case D:return e==t+"";case b:var a=ir;case x:var u=1&n;if(a||(a=ar),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var l=Zi(a(e),a(t),n,i,o,s);return s.delete(e),l;case T:if(kr)return kr.call(e)==kr.call(t)}return!1}(e,t,c,r,n,o,s);if(!(1&r)){var f=d&&Re.call(e,"__wrapped__"),A=h&&Re.call(t,"__wrapped__");if(f||A){var C=f?e.value():e,O=A?t.value():t;return s||(s=new Gr),o(C,O,r,n,s)}}return!!p&&(s||(s=new Gr),function(e,t,r,n,o,s){var a=1&r,u=eo(e),c=u.length;if(c!=eo(t).length&&!a)return!1;for(var l=c;l--;){var d=u[l];if(!(a?d in t:Re.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var f=!0;s.set(e,t),s.set(t,e);for(var m=a;++l<c;){var g=e[d=u[l]],E=t[d];if(n)var y=a?n(E,g,d,t,e,s):n(g,E,d,e,t,s);if(!(y===i?g===E||o(g,E,r,n,s):y)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var v=e.constructor,A=t.constructor;v==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,r,n,o,s))}(e,t,r,n,Bn,o))}function In(e,t,r,n){var o=r.length,s=o,a=!n;if(null==e)return!s;for(e=we(e);o--;){var u=r[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=r[o])[0],l=e[c],d=u[1];if(a&&u[2]){if(l===i&&!(c in e))return!1}else{var h=new Gr;if(n)var p=n(l,d,c,e,t,h);if(!(p===i?Bn(d,l,3,n,h):p))return!1}}return!0}function Fn(e){return!(!Js(e)||(t=e,ke&&ke in t))&&(Qs(e)?je:me).test(Mo(e));var t}function Rn(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?$s(e)?Ln(e[0],e[1]):Mn(e):du(e)}function Pn(e){if(!Co(e))return fr(e);var t=[];for(var r in we(e))Re.call(e,r)&&"constructor"!=r&&t.push(r);return t}function kn(e,t){return e<t}function Nn(e,t){var r=-1,i=Hs(e)?n(e.length):[];return ln(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Mn(e){var t=ao(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(r){return r===e||In(r,e,t)}}function Ln(e,t){return yo(e)&&bo(t)?So(No(e),t):function(r){var n=Oa(r,e);return n===i&&n===t?_a(r,e):Bn(t,n,3)}}function jn(e,t,r,n,o){e!==t&&gn(t,(function(s,a){if(o||(o=new Gr),Js(s))!function(e,t,r,n,o,s,a){var u=_o(e,r),c=_o(t,r),l=a.get(c);if(l)Xr(e,r,l);else{var d=s?s(u,c,r+"",e,t,a):i,h=d===i;if(h){var p=$s(c),f=!p&&qs(c),m=!p&&!f&&ua(c);d=c,p||f||m?$s(u)?d=u:Gs(u)?d=_i(u):f?(h=!1,d=Ai(c,!0)):m?(h=!1,d=bi(c,!0)):d=[]:na(c)||zs(c)?(d=u,zs(u)?d=ga(u):Js(u)&&!Qs(u)||(d=fo(c))):h=!1}h&&(a.set(c,d),o(d,c,n,s,a),a.delete(c)),Xr(e,r,d)}}(e,t,a,r,jn,n,o);else{var u=n?n(_o(e,a),s,a+"",e,t,o):i;u===i&&(u=s),Xr(e,a,u)}}),Ia)}function Un(e,t){var r=e.length;if(r)return go(t+=t<0?r:0,r)?e[t]:i}function Vn(e,t,r){t=t.length?It(t,(function(e){return $s(e)?function(t){return Cn(t,1===e.length?e[0]:e)}:e})):[ru];var n=-1;t=It(t,Yt(oo()));var i=Nn(e,(function(e,r,i){var o=It(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,s=i.length,a=r.length;++n<s;){var u=Si(i[n],o[n]);if(u)return n>=a?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(i)}function zn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var s=t[n],a=Cn(e,s);r(a,s)&&Qn(o,gi(s,e),a)}return o}function $n(e,t,r,n){var i=n?Ut:jt,o=-1,s=t.length,a=e;for(e===t&&(t=_i(t)),r&&(a=It(e,Yt(r)));++o<s;)for(var u=0,c=t[o],l=r?r(c):c;(u=i(a,l,u,n))>-1;)a!==e&&qe.call(a,u,1),qe.call(e,u,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;go(i)?qe.call(e,i,1):ui(e,i)}}return e}function Hn(e,t){return e+pt(vr()*(t-e+1))}function Gn(e,t){var r="";if(!e||t<1||t>d)return r;do{t%2&&(r+=e),(t=pt(t/2))&&(e+=e)}while(t);return r}function qn(e,t){return To(wo(e,t,ru),e+"")}function Kn(e){return Kr(ja(e))}function Yn(e,t){var r=ja(e);return Fo(r,on(t,0,r.length))}function Qn(e,t,r,n){if(!Js(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,u=e;null!=u&&++o<s;){var c=No(t[o]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=u[c];(l=n?n(d,c,u):i)===i&&(l=Js(d)?d:go(t[o+1])?[]:{})}Zr(u,c,l),u=u[c]}return e}var Xn=xr?function(e,t){return xr.set(e,t),e}:ru,Zn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Ja(t),writable:!0})}:ru;function Jn(e){return Fo(ja(e))}function ei(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i<o;)s[i]=e[i+t];return s}function ti(e,t){var r;return ln(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function ri(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=e[o];null!==s&&!aa(s)&&(r?s<=t:s<t)?n=o+1:i=o}return i}return ni(e,t,ru,r)}function ni(e,t,r,n){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,u=null===t,c=aa(t),l=t===i;o<s;){var d=pt((o+s)/2),h=r(e[d]),p=h!==i,f=null===h,m=h==h,g=aa(h);if(a)var E=n||m;else E=l?m&&(n||p):u?m&&p&&(n||!f):c?m&&p&&!f&&(n||!g):!f&&!g&&(n?h<=t:h<t);E?o=d+1:s=d}return gr(s,4294967294)}function ii(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r],a=t?t(s):s;if(!r||!js(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function oi(e){return"number"==typeof e?e:aa(e)?h:+e}function si(e){if("string"==typeof e)return e;if($s(e))return It(e,si)+"";if(aa(e))return Nr?Nr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ai(e,t,r){var n=-1,i=Tt,o=e.length,s=!0,a=[],u=a;if(r)s=!1,i=Bt;else if(o>=200){var c=t?null:Gi(e);if(c)return ar(c);s=!1,i=Xt,u=new Hr}else u=t?[]:a;e:for(;++n<o;){var l=e[n],d=t?t(l):l;if(l=r||0!==l?l:0,s&&d==d){for(var h=u.length;h--;)if(u[h]===d)continue e;t&&u.push(d),a.push(l)}else i(u,d,r)||(u!==a&&u.push(d),a.push(l))}return a}function ui(e,t){return null==(e=Oo(e,t=gi(t,e)))||delete e[No(Yo(t))]}function ci(e,t,r,n){return Qn(e,t,r(Cn(e,t)),n)}function li(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ei(e,n?0:o,n?o+1:i):ei(e,n?o+1:0,n?i:o)}function di(e,t){var r=e;return r instanceof Vr&&(r=r.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))}),r)}function hi(e,t,r){var i=e.length;if(i<2)return i?ai(e[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=e[o],u=-1;++u<i;)u!=o&&(s[o]=cn(s[o]||a,e[u],t,r));return ai(mn(s,1),t,r)}function pi(e,t,r){for(var n=-1,o=e.length,s=t.length,a={};++n<o;){var u=n<s?t[n]:i;r(a,e[n],u)}return a}function fi(e){return Gs(e)?e:[]}function mi(e){return"function"==typeof e?e:ru}function gi(e,t){return $s(e)?e:yo(e,t)?[e]:ko(Ea(e))}var Ei=qn;function yi(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:ei(e,t,r)}var vi=st||function(e){return dt.clearTimeout(e)};function Ai(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function Ci(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function bi(e,t){var r=t?Ci(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,s=aa(e),a=t!==i,u=null===t,c=t==t,l=aa(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||n&&a&&c||!r&&c||!o)return 1;if(!n&&!s&&!l&&e<t||l&&r&&o&&!n&&!s||u&&r&&o||!a&&o||!c)return-1}return 0}function wi(e,t,r,i){for(var o=-1,s=e.length,a=r.length,u=-1,c=t.length,l=mr(s-a,0),d=n(c+l),h=!i;++u<c;)d[u]=t[u];for(;++o<a;)(h||o<s)&&(d[r[o]]=e[o]);for(;l--;)d[u++]=e[o++];return d}function Oi(e,t,r,i){for(var o=-1,s=e.length,a=-1,u=r.length,c=-1,l=t.length,d=mr(s-u,0),h=n(d+l),p=!i;++o<d;)h[o]=e[o];for(var f=o;++c<l;)h[f+c]=t[c];for(;++a<u;)(p||o<s)&&(h[f+r[a]]=e[o++]);return h}function _i(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function xi(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=n?n(r[u],e[u],u,r,e):i;c===i&&(c=e[u]),o?rn(r,u,c):Zr(r,u,c)}return r}function Di(e,t){return function(r,n){var i=$s(r)?wt:en,o=t?t():{};return i(r,e,oo(n,2),o)}}function Ti(e){return qn((function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:i,a=o>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&Eo(r[0],r[1],a)&&(s=o<3?i:s,o=1),t=we(t);++n<o;){var u=r[n];u&&e(t,u,n,s)}return t}))}function Bi(e,t){return function(r,n){if(null==r)return r;if(!Hs(r))return e(r,n);for(var i=r.length,o=t?i:-1,s=we(r);(t?o--:++o<i)&&!1!==n(s[o],o,s););return r}}function Ii(e){return function(t,r,n){for(var i=-1,o=we(t),s=n(t),a=s.length;a--;){var u=s[e?a:++i];if(!1===r(o[u],u,o))break}return t}}function Fi(e){return function(t){var r=nr(t=Ea(t))?lr(t):i,n=r?r[0]:t.charAt(0),o=r?yi(r,1).join(""):t.slice(1);return n[e]()+o}}function Ri(e){return function(t){return Rt(Qa(za(t).replace(Qe,"")),e,"")}}function Pi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return Js(n)?n:r}}function ki(e){return function(t,r,n){var o=we(t);if(!Hs(t)){var s=oo(r,3);t=Ba(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,n);return a>-1?o[s?t[a]:a]:i}}function Ni(e){return Ji((function(t){var r=t.length,n=r,s=Ur.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new xe(o);if(s&&!u&&"wrapper"==no(a))var u=new Ur([],!0)}for(n=u?n:r;++n<r;){var c=no(a=t[n]),l="wrapper"==c?ro(a):i;u=l&&vo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[no(l[0])].apply(u,l[3]):1==a.length&&vo(a)?u[c]():u.thru(a)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&$s(n))return u.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Mi(e,t,r,o,s,a,u,l,d,h){var p=t&c,f=1&t,m=2&t,g=24&t,E=512&t,y=m?i:Pi(e);return function c(){for(var v=arguments.length,A=n(v),C=v;C--;)A[C]=arguments[C];if(g)var b=io(c),S=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(A,b);if(o&&(A=wi(A,o,s,g)),a&&(A=Oi(A,a,u,g)),v-=S,g&&v<h){var w=sr(A,b);return Wi(e,t,Mi,c.placeholder,r,A,w,l,d,h-v)}var O=f?r:this,_=m?O[e]:e;return v=A.length,l?A=function(e,t){for(var r=e.length,n=gr(t.length,r),o=_i(e);n--;){var s=t[n];e[n]=go(s,r)?o[s]:i}return e}(A,l):E&&v>1&&A.reverse(),p&&d<v&&(A.length=d),this&&this!==dt&&this instanceof c&&(_=y||Pi(_)),_.apply(O,A)}}function Li(e,t){return function(r,n){return function(e,t,r,n){return yn(e,(function(e,i,o){t(n,r(e),i,o)})),n}(r,e,t(n),{})}}function ji(e,t){return function(r,n){var o;if(r===i&&n===i)return t;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=si(r),n=si(n)):(r=oi(r),n=oi(n)),o=e(r,n)}return o}}function Ui(e){return Ji((function(t){return t=It(t,Yt(oo())),qn((function(r){var n=this;return e(t,(function(e){return St(e,n,r)}))}))}))}function Vi(e,t){var r=(t=t===i?" ":si(t)).length;if(r<2)return r?Gn(t,e):t;var n=Gn(t,ht(e/cr(t)));return nr(t)?yi(lr(n),0,e).join(""):n.slice(0,e)}function zi(e){return function(t,r,o){return o&&"number"!=typeof o&&Eo(t,r,o)&&(r=o=i),t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r,i){for(var o=-1,s=mr(ht((t-e)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=e,e+=r;return a}(t,r,o=o===i?t<r?1:-1:ha(o),e)}}function $i(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ma(t),r=ma(r)),e(t,r)}}function Wi(e,t,r,n,o,s,a,c,l,d){var h=8&t;t|=h?u:64,4&(t&=~(h?64:u))||(t&=-4);var p=[e,t,o,h?s:i,h?a:i,h?i:s,h?i:a,c,l,d],f=r.apply(i,p);return vo(e)&&xo(f,p),f.placeholder=n,Bo(f,e,t)}function Hi(e){var t=Se[e];return function(e,r){if(e=ma(e),(r=null==r?0:gr(pa(r),292))&&Nt(e)){var n=(Ea(e)+"e").split("e");return+((n=(Ea(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Gi=wr&&1/ar(new wr([,-0]))[1]==l?function(e){return new wr(e)}:au;function qi(e){return function(t){var r=ho(t);return r==b?ir(t):r==x?ur(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,r,s,l,d,h,p){var f=2&t;if(!f&&"function"!=typeof e)throw new xe(o);var m=s?s.length:0;if(m||(t&=-97,s=l=i),h=h===i?h:mr(pa(h),0),p=p===i?p:pa(p),m-=l?l.length:0,64&t){var g=s,E=l;s=l=i}var y=f?i:ro(e),v=[e,t,r,s,l,g,E,d,h,p];if(y&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,s=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!o&&!s)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?wi(l,u,t[4]):u,e[4]=l?sr(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Oi(l,u,t[6]):u,e[6]=l?sr(e[5],a):t[6]),(u=t[7])&&(e[7]=u),n&c&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(v,y),e=v[0],t=v[1],r=v[2],s=v[3],l=v[4],!(p=v[9]=v[9]===i?f?0:e.length:mr(v[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||16==t?function(e,t,r){var o=Pi(e);return function s(){for(var a=arguments.length,u=n(a),c=a,l=io(s);c--;)u[c]=arguments[c];var d=a<3&&u[0]!==l&&u[a-1]!==l?[]:sr(u,l);return(a-=d.length)<r?Wi(e,t,Mi,s.placeholder,i,u,d,i,i,r-a):St(this&&this!==dt&&this instanceof s?o:e,this,u)}}(e,t,p):t!=u&&33!=t||l.length?Mi.apply(i,v):function(e,t,r,i){var o=1&t,s=Pi(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=i.length,d=n(l+u),h=this&&this!==dt&&this instanceof t?s:e;++c<l;)d[c]=i[c];for(;u--;)d[c++]=arguments[++a];return St(h,o?r:this,d)}}(e,t,r,s);else var A=function(e,t,r){var n=1&t,i=Pi(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return Bo((y?Xn:xo)(A,v),e,t)}function Yi(e,t,r,n){return e===i||js(e,Be[r])&&!Re.call(n,r)?t:e}function Qi(e,t,r,n,o,s){return Js(e)&&Js(t)&&(s.set(t,e),jn(e,t,i,Qi,s),s.delete(t)),e}function Xi(e){return na(e)?i:e}function Zi(e,t,r,n,o,s){var a=1&r,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),d=s.get(t);if(l&&d)return l==t&&d==e;var h=-1,p=!0,f=2&r?new Hr:i;for(s.set(e,t),s.set(t,e);++h<u;){var m=e[h],g=t[h];if(n)var E=a?n(g,m,h,t,e,s):n(m,g,h,e,t,s);if(E!==i){if(E)continue;p=!1;break}if(f){if(!kt(t,(function(e,t){if(!Xt(f,t)&&(m===e||o(m,e,r,n,s)))return f.push(t)}))){p=!1;break}}else if(m!==g&&!o(m,g,r,n,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Ji(e){return To(wo(e,i,Wo),e+"")}function eo(e){return bn(e,Ba,co)}function to(e){return bn(e,Ia,lo)}var ro=xr?function(e){return xr.get(e)}:au;function no(e){for(var t=e.name+"",r=Dr[t],n=Re.call(Dr,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Re.call(Mr,"placeholder")?Mr:e).placeholder}function oo(){var e=Mr.iteratee||nu;return e=e===nu?Rn:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ao(e){for(var t=Ba(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,bo(i)]}return t}function uo(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return Fn(r)?r:i}var co=mt?function(e){return null==e?[]:(e=we(e),Dt(mt(e),(function(t){return Ge.call(e,t)})))}:fu,lo=mt?function(e){for(var t=[];e;)Ft(t,co(e)),e=We(e);return t}:fu,ho=Sn;function po(e,t,r){for(var n=-1,i=(t=gi(t,e)).length,o=!1;++n<i;){var s=No(t[n]);if(!(o=null!=e&&r(e,s)))break;e=e[s]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Zs(i)&&go(s,i)&&($s(e)||zs(e))}function fo(e){return"function"!=typeof e.constructor||Co(e)?{}:Lr(We(e))}function mo(e){return $s(e)||zs(e)||!!(Ke&&e&&e[Ke])}function go(e,t){var r=typeof e;return!!(t=null==t?d:t)&&("number"==r||"symbol"!=r&&Ee.test(e))&&e>-1&&e%1==0&&e<t}function Eo(e,t,r){if(!Js(r))return!1;var n=typeof t;return!!("number"==n?Hs(r)&&go(t,r.length):"string"==n&&t in r)&&js(r[t],e)}function yo(e,t){if($s(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!aa(e))||J.test(e)||!Z.test(e)||null!=t&&e in we(t)}function vo(e){var t=no(e),r=Mr[t];if("function"!=typeof r||!(t in Vr.prototype))return!1;if(e===r)return!0;var n=ro(r);return!!n&&e===n[0]}(Cr&&ho(new Cr(new ArrayBuffer(1)))!=F||br&&ho(new br)!=b||Sr&&ho(Sr.resolve())!=O||wr&&ho(new wr)!=x||Or&&ho(new Or)!=B)&&(ho=function(e){var t=Sn(e),r=t==w?e.constructor:i,n=r?Mo(r):"";if(n)switch(n){case Tr:return F;case Br:return b;case Ir:return O;case Fr:return x;case Rr:return B}return t});var Ao=Ie?Qs:mu;function Co(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Be)}function bo(e){return e==e&&!Js(e)}function So(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in we(r))}}function wo(e,t,r){return t=mr(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=mr(i.length-t,0),a=n(s);++o<s;)a[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(a),St(e,this,u)}}function Oo(e,t){return t.length<2?e:Cn(e,ei(t,0,-1))}function _o(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xo=Io(Xn),Do=lt||function(e,t){return dt.setTimeout(e,t)},To=Io(Zn);function Bo(e,t,r){var n=t+"";return To(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ot(f,(function(r){var n="_."+r[0];t&r[1]&&!Tt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Io(e){var t=0,r=0;return function(){var n=Er(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Fo(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r<t;){var s=Hn(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var Ro,Po,ko=(Ro=Rs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,i){t.push(n?i.replace(le,"$1"):r||e)})),t}),(function(e){return 500===Po.size&&Po.clear(),e})),Po=Ro.cache,Ro);function No(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Fe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Lo(e){if(e instanceof Vr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=_i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=qn((function(e,t){return Gs(e)?cn(e,mn(t,1,Gs,!0)):[]})),Uo=qn((function(e,t){var r=Yo(t);return Gs(r)&&(r=i),Gs(e)?cn(e,mn(t,1,Gs,!0),oo(r,2)):[]})),Vo=qn((function(e,t){var r=Yo(t);return Gs(r)&&(r=i),Gs(e)?cn(e,mn(t,1,Gs,!0),i,r):[]}));function zo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=mr(n+i,0)),Lt(e,oo(t,3),i)}function $o(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==i&&(o=pa(r),o=r<0?mr(n+o,0):gr(o,n-1)),Lt(e,oo(t,3),o,!0)}function Wo(e){return null!=e&&e.length?mn(e,1):[]}function Ho(e){return e&&e.length?e[0]:i}var Go=qn((function(e){var t=It(e,fi);return t.length&&t[0]===e[0]?xn(t):[]})),qo=qn((function(e){var t=Yo(e),r=It(e,fi);return t===Yo(r)?t=i:r.pop(),r.length&&r[0]===e[0]?xn(r,oo(t,2)):[]})),Ko=qn((function(e){var t=Yo(e),r=It(e,fi);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?xn(r,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=qn(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?$n(e,t):e}var Zo=Ji((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Wn(e,It(t,(function(e){return go(e,r)?+e:e})).sort(Si)),n}));function Jo(e){return null==e?e:Ar.call(e)}var es=qn((function(e){return ai(mn(e,1,Gs,!0))})),ts=qn((function(e){var t=Yo(e);return Gs(t)&&(t=i),ai(mn(e,1,Gs,!0),oo(t,2))})),rs=qn((function(e){var t=Yo(e);return t="function"==typeof t?t:i,ai(mn(e,1,Gs,!0),i,t)}));function ns(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Gs(e))return t=mr(e.length,t),!0})),qt(t,(function(t){return It(e,$t(t))}))}function is(e,t){if(!e||!e.length)return[];var r=ns(e);return null==t?r:It(r,(function(e){return St(t,i,e)}))}var os=qn((function(e,t){return Gs(e)?cn(e,t):[]})),ss=qn((function(e){return hi(Dt(e,Gs))})),as=qn((function(e){var t=Yo(e);return Gs(t)&&(t=i),hi(Dt(e,Gs),oo(t,2))})),us=qn((function(e){var t=Yo(e);return t="function"==typeof t?t:i,hi(Dt(e,Gs),i,t)})),cs=qn(ns),ls=qn((function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,is(e,r)}));function ds(e){var t=Mr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=Ji((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Vr&&go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Ur(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),fs=Di((function(e,t,r){Re.call(e,r)?++e[r]:rn(e,r,1)})),ms=ki(zo),gs=ki($o);function Es(e,t){return($s(e)?Ot:ln)(e,oo(t,3))}function ys(e,t){return($s(e)?_t:dn)(e,oo(t,3))}var vs=Di((function(e,t,r){Re.call(e,r)?e[r].push(t):rn(e,r,[t])})),As=qn((function(e,t,r){var i=-1,o="function"==typeof t,s=Hs(e)?n(e.length):[];return ln(e,(function(e){s[++i]=o?St(t,e,r):Dn(e,t,r)})),s})),Cs=Di((function(e,t,r){rn(e,r,t)}));function bs(e,t){return($s(e)?It:Nn)(e,oo(t,3))}var Ss=Di((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),ws=qn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Eo(e,t[0],t[1])?t=[]:r>2&&Eo(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,mn(t,1),[])})),Os=ct||function(){return dt.Date.now()};function _s(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function xs(e,t){var r;if("function"!=typeof t)throw new xe(o);return e=pa(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Ds=qn((function(e,t,r){var n=1;if(r.length){var i=sr(r,io(Ds));n|=u}return Ki(e,n,t,r,i)})),Ts=qn((function(e,t,r){var n=3;if(r.length){var i=sr(r,io(Ts));n|=u}return Ki(t,n,e,r,i)}));function Bs(e,t,r){var n,s,a,u,c,l,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new xe(o);function m(t){var r=n,o=s;return n=s=i,d=t,u=e.apply(o,r)}function g(e){var r=e-l;return l===i||r>=t||r<0||p&&e-d>=a}function E(){var e=Os();if(g(e))return y(e);c=Do(E,function(e){var r=t-(e-l);return p?gr(r,a-(e-d)):r}(e))}function y(e){return c=i,f&&n?m(e):(n=s=i,u)}function v(){var e=Os(),r=g(e);if(n=arguments,s=this,l=e,r){if(c===i)return function(e){return d=e,c=Do(E,t),h?m(e):u}(l);if(p)return vi(c),c=Do(E,t),m(l)}return c===i&&(c=Do(E,t)),u}return t=ma(t)||0,Js(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ma(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),v.cancel=function(){c!==i&&vi(c),d=0,n=l=s=c=i},v.flush=function(){return c===i?u:y(Os())},v}var Is=qn((function(e,t){return un(e,1,t)})),Fs=qn((function(e,t,r){return un(e,ma(t)||0,r)}));function Rs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Rs.Cache||Wr),r}function Ps(e){if("function"!=typeof e)throw new xe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Rs.Cache=Wr;var ks=Ei((function(e,t){var r=(t=1==t.length&&$s(t[0])?It(t[0],Yt(oo())):It(mn(t,1),Yt(oo()))).length;return qn((function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return St(e,this,n)}))})),Ns=qn((function(e,t){var r=sr(t,io(Ns));return Ki(e,u,i,t,r)})),Ms=qn((function(e,t){var r=sr(t,io(Ms));return Ki(e,64,i,t,r)})),Ls=Ji((function(e,t){return Ki(e,256,i,i,i,t)}));function js(e,t){return e===t||e!=e&&t!=t}var Us=$i(wn),Vs=$i((function(e,t){return e>=t})),zs=Tn(function(){return arguments}())?Tn:function(e){return ea(e)&&Re.call(e,"callee")&&!Ge.call(e,"callee")},$s=n.isArray,Ws=Et?Yt(Et):function(e){return ea(e)&&Sn(e)==I};function Hs(e){return null!=e&&Zs(e.length)&&!Qs(e)}function Gs(e){return ea(e)&&Hs(e)}var qs=gt||mu,Ks=yt?Yt(yt):function(e){return ea(e)&&Sn(e)==y};function Ys(e){if(!ea(e))return!1;var t=Sn(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function Qs(e){if(!Js(e))return!1;var t=Sn(e);return t==A||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==pa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Js(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=vt?Yt(vt):function(e){return ea(e)&&ho(e)==b};function ra(e){return"number"==typeof e||ea(e)&&Sn(e)==S}function na(e){if(!ea(e)||Sn(e)!=w)return!1;var t=We(e);if(null===t)return!0;var r=Re.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Fe.call(r)==Me}var ia=At?Yt(At):function(e){return ea(e)&&Sn(e)==_},oa=Ct?Yt(Ct):function(e){return ea(e)&&ho(e)==x};function sa(e){return"string"==typeof e||!$s(e)&&ea(e)&&Sn(e)==D}function aa(e){return"symbol"==typeof e||ea(e)&&Sn(e)==T}var ua=bt?Yt(bt):function(e){return ea(e)&&Zs(e.length)&&!!it[Sn(e)]},ca=$i(kn),la=$i((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Hs(e))return sa(e)?lr(e):_i(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ho(e);return(t==b?ir:t==x?ar:ja)(e)}function ha(e){return e?(e=ma(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=ha(e),r=t%1;return t==t?r?t-r:t:0}function fa(e){return e?on(pa(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Js(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Js(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var r=fe.test(e);return r||ge.test(e)?ut(e.slice(2),r?2:8):pe.test(e)?h:+e}function ga(e){return xi(e,Ia(e))}function Ea(e){return null==e?"":si(e)}var ya=Ti((function(e,t){if(Co(t)||Hs(t))xi(t,Ba(t),e);else for(var r in t)Re.call(t,r)&&Zr(e,r,t[r])})),va=Ti((function(e,t){xi(t,Ia(t),e)})),Aa=Ti((function(e,t,r,n){xi(t,Ia(t),e,n)})),Ca=Ti((function(e,t,r,n){xi(t,Ba(t),e,n)})),ba=Ji(nn),Sa=qn((function(e,t){e=we(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&Eo(t[0],t[1],o)&&(n=1);++r<n;)for(var s=t[r],a=Ia(s),u=-1,c=a.length;++u<c;){var l=a[u],d=e[l];(d===i||js(d,Be[l])&&!Re.call(e,l))&&(e[l]=s[l])}return e})),wa=qn((function(e){return e.push(i,Qi),St(Ra,i,e)}));function Oa(e,t,r){var n=null==e?i:Cn(e,t);return n===i?r:n}function _a(e,t){return null!=e&&po(e,t,_n)}var xa=Li((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=r}),Ja(ru)),Da=Li((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Re.call(e,t)?e[t].push(r):e[t]=[r]}),oo),Ta=qn(Dn);function Ba(e){return Hs(e)?qr(e):Pn(e)}function Ia(e){return Hs(e)?qr(e,!0):function(e){if(!Js(e))return function(e){var t=[];if(null!=e)for(var r in we(e))t.push(r);return t}(e);var t=Co(e),r=[];for(var n in e)("constructor"!=n||!t&&Re.call(e,n))&&r.push(n);return r}(e)}var Fa=Ti((function(e,t,r){jn(e,t,r)})),Ra=Ti((function(e,t,r,n){jn(e,t,r,n)})),Pa=Ji((function(e,t){var r={};if(null==e)return r;var n=!1;t=It(t,(function(t){return t=gi(t,e),n||(n=t.length>1),t})),xi(e,to(e),r),n&&(r=sn(r,7,Xi));for(var i=t.length;i--;)ui(r,t[i]);return r})),ka=Ji((function(e,t){return null==e?{}:function(e,t){return zn(e,t,(function(t,r){return _a(e,r)}))}(e,t)}));function Na(e,t){if(null==e)return{};var r=It(to(e),(function(e){return[e]}));return t=oo(t),zn(e,r,(function(e,r){return t(e,r[0])}))}var Ma=qi(Ba),La=qi(Ia);function ja(e){return null==e?[]:Qt(e,Ba(e))}var Ua=Ri((function(e,t,r){return t=t.toLowerCase(),e+(r?Va(t):t)}));function Va(e){return Ya(Ea(e).toLowerCase())}function za(e){return(e=Ea(e))&&e.replace(ye,er).replace(Xe,"")}var $a=Ri((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Wa=Ri((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ha=Fi("toLowerCase"),Ga=Ri((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),qa=Ri((function(e,t,r){return e+(r?" ":"")+Ya(t)})),Ka=Ri((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ya=Fi("toUpperCase");function Qa(e,t,r){return e=Ea(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xa=qn((function(e,t){try{return St(e,i,t)}catch(e){return Ys(e)?e:new Ce(e)}})),Za=Ji((function(e,t){return Ot(t,(function(t){t=No(t),rn(e,t,Ds(e[t],e))})),e}));function Ja(e){return function(){return e}}var eu=Ni(),tu=Ni(!0);function ru(e){return e}function nu(e){return Rn("function"==typeof e?e:sn(e,1))}var iu=qn((function(e,t){return function(r){return Dn(r,e,t)}})),ou=qn((function(e,t){return function(r){return Dn(e,r,t)}}));function su(e,t,r){var n=Ba(t),i=An(t,n);null!=r||Js(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=An(t,Ba(t)));var o=!(Js(r)&&"chain"in r&&!r.chain),s=Qs(e);return Ot(i,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=_i(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Ft([this.value()],arguments))})})),e}function au(){}var uu=Ui(It),cu=Ui(xt),lu=Ui(kt);function du(e){return yo(e)?$t(No(e)):function(e){return function(t){return Cn(t,e)}}(e)}var hu=zi(),pu=zi(!0);function fu(){return[]}function mu(){return!1}var gu,Eu=ji((function(e,t){return e+t}),0),yu=Hi("ceil"),vu=ji((function(e,t){return e/t}),1),Au=Hi("floor"),Cu=ji((function(e,t){return e*t}),1),bu=Hi("round"),Su=ji((function(e,t){return e-t}),0);return Mr.after=function(e,t){if("function"!=typeof t)throw new xe(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Mr.ary=_s,Mr.assign=ya,Mr.assignIn=va,Mr.assignInWith=Aa,Mr.assignWith=Ca,Mr.at=ba,Mr.before=xs,Mr.bind=Ds,Mr.bindAll=Za,Mr.bindKey=Ts,Mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $s(e)?e:[e]},Mr.chain=ds,Mr.chunk=function(e,t,r){t=(r?Eo(e,t,r):t===i)?1:mr(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,u=n(ht(o/t));s<o;)u[a++]=ei(e,s,s+=t);return u},Mr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Mr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ft($s(r)?_i(r):[r],mn(t,1))},Mr.cond=function(e){var t=null==e?0:e.length,r=oo();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new xe(o);return[r(e[0]),e[1]]})):[],qn((function(r){for(var n=-1;++n<t;){var i=e[n];if(St(i[0],this,r))return St(i[1],this,r)}}))},Mr.conforms=function(e){return function(e){var t=Ba(e);return function(r){return an(r,e,t)}}(sn(e,1))},Mr.constant=Ja,Mr.countBy=fs,Mr.create=function(e,t){var r=Lr(e);return null==t?r:tn(r,t)},Mr.curry=function e(t,r,n){var o=Ki(t,8,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Mr.curryRight=function e(t,r,n){var o=Ki(t,16,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Mr.debounce=Bs,Mr.defaults=Sa,Mr.defaultsDeep=wa,Mr.defer=Is,Mr.delay=Fs,Mr.difference=jo,Mr.differenceBy=Uo,Mr.differenceWith=Vo,Mr.drop=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=r||t===i?1:pa(t))<0?0:t,n):[]},Mr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,0,(t=n-(t=r||t===i?1:pa(t)))<0?0:t):[]},Mr.dropRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0,!0):[]},Mr.dropWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0):[]},Mr.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Eo(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=pa(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:pa(n))<0&&(n+=o),n=r>n?0:fa(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Mr.filter=function(e,t){return($s(e)?Dt:fn)(e,oo(t,3))},Mr.flatMap=function(e,t){return mn(bs(e,t),1)},Mr.flatMapDeep=function(e,t){return mn(bs(e,t),l)},Mr.flatMapDepth=function(e,t,r){return r=r===i?1:pa(r),mn(bs(e,t),r)},Mr.flatten=Wo,Mr.flattenDeep=function(e){return null!=e&&e.length?mn(e,l):[]},Mr.flattenDepth=function(e,t){return null!=e&&e.length?mn(e,t=t===i?1:pa(t)):[]},Mr.flip=function(e){return Ki(e,512)},Mr.flow=eu,Mr.flowRight=tu,Mr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Mr.functions=function(e){return null==e?[]:An(e,Ba(e))},Mr.functionsIn=function(e){return null==e?[]:An(e,Ia(e))},Mr.groupBy=vs,Mr.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Mr.intersection=Go,Mr.intersectionBy=qo,Mr.intersectionWith=Ko,Mr.invert=xa,Mr.invertBy=Da,Mr.invokeMap=As,Mr.iteratee=nu,Mr.keyBy=Cs,Mr.keys=Ba,Mr.keysIn=Ia,Mr.map=bs,Mr.mapKeys=function(e,t){var r={};return t=oo(t,3),yn(e,(function(e,n,i){rn(r,t(e,n,i),e)})),r},Mr.mapValues=function(e,t){var r={};return t=oo(t,3),yn(e,(function(e,n,i){rn(r,n,t(e,n,i))})),r},Mr.matches=function(e){return Mn(sn(e,1))},Mr.matchesProperty=function(e,t){return Ln(e,sn(t,1))},Mr.memoize=Rs,Mr.merge=Fa,Mr.mergeWith=Ra,Mr.method=iu,Mr.methodOf=ou,Mr.mixin=su,Mr.negate=Ps,Mr.nthArg=function(e){return e=pa(e),qn((function(t){return Un(t,e)}))},Mr.omit=Pa,Mr.omitBy=function(e,t){return Na(e,Ps(oo(t)))},Mr.once=function(e){return xs(2,e)},Mr.orderBy=function(e,t,r,n){return null==e?[]:($s(t)||(t=null==t?[]:[t]),$s(r=n?i:r)||(r=null==r?[]:[r]),Vn(e,t,r))},Mr.over=uu,Mr.overArgs=ks,Mr.overEvery=cu,Mr.overSome=lu,Mr.partial=Ns,Mr.partialRight=Ms,Mr.partition=Ss,Mr.pick=ka,Mr.pickBy=Na,Mr.property=du,Mr.propertyOf=function(e){return function(t){return null==e?i:Cn(e,t)}},Mr.pull=Qo,Mr.pullAll=Xo,Mr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,oo(r,2)):e},Mr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?$n(e,t,i,r):e},Mr.pullAt=Zo,Mr.range=hu,Mr.rangeRight=pu,Mr.rearg=Ls,Mr.reject=function(e,t){return($s(e)?Dt:fn)(e,Ps(oo(t,3)))},Mr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=oo(t,3);++n<o;){var s=e[n];t(s,n,e)&&(r.push(s),i.push(n))}return Wn(e,i),r},Mr.rest=function(e,t){if("function"!=typeof e)throw new xe(o);return qn(e,t=t===i?t:pa(t))},Mr.reverse=Jo,Mr.sampleSize=function(e,t,r){return t=(r?Eo(e,t,r):t===i)?1:pa(t),($s(e)?Yr:Yn)(e,t)},Mr.set=function(e,t,r){return null==e?e:Qn(e,t,r)},Mr.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:Qn(e,t,r,n)},Mr.shuffle=function(e){return($s(e)?Qr:Jn)(e)},Mr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Eo(e,t,r)?(t=0,r=n):(t=null==t?0:pa(t),r=r===i?n:pa(r)),ei(e,t,r)):[]},Mr.sortBy=ws,Mr.sortedUniq=function(e){return e&&e.length?ii(e):[]},Mr.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Mr.split=function(e,t,r){return r&&"number"!=typeof r&&Eo(e,t,r)&&(t=r=i),(r=r===i?p:r>>>0)?(e=Ea(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&nr(e)?yi(lr(e),0,r):e.split(t,r):[]},Mr.spread=function(e,t){if("function"!=typeof e)throw new xe(o);return t=null==t?0:mr(pa(t),0),qn((function(r){var n=r[t],i=yi(r,0,t);return n&&Ft(i,n),St(e,this,i)}))},Mr.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Mr.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===i?1:pa(t))<0?0:t):[]},Mr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=n-(t=r||t===i?1:pa(t)))<0?0:t,n):[]},Mr.takeRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!1,!0):[]},Mr.takeWhile=function(e,t){return e&&e.length?li(e,oo(t,3)):[]},Mr.tap=function(e,t){return t(e),e},Mr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new xe(o);return Js(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Bs(e,t,{leading:n,maxWait:t,trailing:i})},Mr.thru=hs,Mr.toArray=da,Mr.toPairs=Ma,Mr.toPairsIn=La,Mr.toPath=function(e){return $s(e)?It(e,No):aa(e)?[e]:_i(ko(Ea(e)))},Mr.toPlainObject=ga,Mr.transform=function(e,t,r){var n=$s(e),i=n||qs(e)||ua(e);if(t=oo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Js(e)&&Qs(o)?Lr(We(e)):{}}return(i?Ot:yn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Mr.unary=function(e){return _s(e,1)},Mr.union=es,Mr.unionBy=ts,Mr.unionWith=rs,Mr.uniq=function(e){return e&&e.length?ai(e):[]},Mr.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Mr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Mr.unset=function(e,t){return null==e||ui(e,t)},Mr.unzip=ns,Mr.unzipWith=is,Mr.update=function(e,t,r){return null==e?e:ci(e,t,mi(r))},Mr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ci(e,t,mi(r),n)},Mr.values=ja,Mr.valuesIn=function(e){return null==e?[]:Qt(e,Ia(e))},Mr.without=os,Mr.words=Qa,Mr.wrap=function(e,t){return Ns(mi(t),e)},Mr.xor=ss,Mr.xorBy=as,Mr.xorWith=us,Mr.zip=cs,Mr.zipObject=function(e,t){return pi(e||[],t||[],Zr)},Mr.zipObjectDeep=function(e,t){return pi(e||[],t||[],Qn)},Mr.zipWith=ls,Mr.entries=Ma,Mr.entriesIn=La,Mr.extend=va,Mr.extendWith=Aa,su(Mr,Mr),Mr.add=Eu,Mr.attempt=Xa,Mr.camelCase=Ua,Mr.capitalize=Va,Mr.ceil=yu,Mr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ma(r))==r?r:0),t!==i&&(t=(t=ma(t))==t?t:0),on(ma(e),t,r)},Mr.clone=function(e){return sn(e,4)},Mr.cloneDeep=function(e){return sn(e,5)},Mr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:i)},Mr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:i)},Mr.conformsTo=function(e,t){return null==t||an(e,t,Ba(t))},Mr.deburr=za,Mr.defaultTo=function(e,t){return null==e||e!=e?t:e},Mr.divide=vu,Mr.endsWith=function(e,t,r){e=Ea(e),t=si(t);var n=e.length,o=r=r===i?n:on(pa(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Mr.eq=js,Mr.escape=function(e){return(e=Ea(e))&&K.test(e)?e.replace(G,tr):e},Mr.escapeRegExp=function(e){return(e=Ea(e))&&re.test(e)?e.replace(te,"\\$&"):e},Mr.every=function(e,t,r){var n=$s(e)?xt:hn;return r&&Eo(e,t,r)&&(t=i),n(e,oo(t,3))},Mr.find=ms,Mr.findIndex=zo,Mr.findKey=function(e,t){return Mt(e,oo(t,3),yn)},Mr.findLast=gs,Mr.findLastIndex=$o,Mr.findLastKey=function(e,t){return Mt(e,oo(t,3),vn)},Mr.floor=Au,Mr.forEach=Es,Mr.forEachRight=ys,Mr.forIn=function(e,t){return null==e?e:gn(e,oo(t,3),Ia)},Mr.forInRight=function(e,t){return null==e?e:En(e,oo(t,3),Ia)},Mr.forOwn=function(e,t){return e&&yn(e,oo(t,3))},Mr.forOwnRight=function(e,t){return e&&vn(e,oo(t,3))},Mr.get=Oa,Mr.gt=Us,Mr.gte=Vs,Mr.has=function(e,t){return null!=e&&po(e,t,On)},Mr.hasIn=_a,Mr.head=Ho,Mr.identity=ru,Mr.includes=function(e,t,r,n){e=Hs(e)?e:ja(e),r=r&&!n?pa(r):0;var i=e.length;return r<0&&(r=mr(i+r,0)),sa(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&jt(e,t,r)>-1},Mr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=mr(n+i,0)),jt(e,t,i)},Mr.inRange=function(e,t,r){return t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r){return e>=gr(t,r)&&e<mr(t,r)}(e=ma(e),t,r)},Mr.invoke=Ta,Mr.isArguments=zs,Mr.isArray=$s,Mr.isArrayBuffer=Ws,Mr.isArrayLike=Hs,Mr.isArrayLikeObject=Gs,Mr.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Sn(e)==E},Mr.isBuffer=qs,Mr.isDate=Ks,Mr.isElement=function(e){return ea(e)&&1===e.nodeType&&!na(e)},Mr.isEmpty=function(e){if(null==e)return!0;if(Hs(e)&&($s(e)||"string"==typeof e||"function"==typeof e.splice||qs(e)||ua(e)||zs(e)))return!e.length;var t=ho(e);if(t==b||t==x)return!e.size;if(Co(e))return!Pn(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0},Mr.isEqual=function(e,t){return Bn(e,t)},Mr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?Bn(e,t,i,r):!!n},Mr.isError=Ys,Mr.isFinite=function(e){return"number"==typeof e&&Nt(e)},Mr.isFunction=Qs,Mr.isInteger=Xs,Mr.isLength=Zs,Mr.isMap=ta,Mr.isMatch=function(e,t){return e===t||In(e,t,ao(t))},Mr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,In(e,t,ao(t),r)},Mr.isNaN=function(e){return ra(e)&&e!=+e},Mr.isNative=function(e){if(Ao(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Fn(e)},Mr.isNil=function(e){return null==e},Mr.isNull=function(e){return null===e},Mr.isNumber=ra,Mr.isObject=Js,Mr.isObjectLike=ea,Mr.isPlainObject=na,Mr.isRegExp=ia,Mr.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=d},Mr.isSet=oa,Mr.isString=sa,Mr.isSymbol=aa,Mr.isTypedArray=ua,Mr.isUndefined=function(e){return e===i},Mr.isWeakMap=function(e){return ea(e)&&ho(e)==B},Mr.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Sn(e)},Mr.join=function(e,t){return null==e?"":Wt.call(e,t)},Mr.kebabCase=$a,Mr.last=Yo,Mr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=pa(r))<0?mr(n+o,0):gr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Lt(e,Vt,o,!0)},Mr.lowerCase=Wa,Mr.lowerFirst=Ha,Mr.lt=ca,Mr.lte=la,Mr.max=function(e){return e&&e.length?pn(e,ru,wn):i},Mr.maxBy=function(e,t){return e&&e.length?pn(e,oo(t,2),wn):i},Mr.mean=function(e){return zt(e,ru)},Mr.meanBy=function(e,t){return zt(e,oo(t,2))},Mr.min=function(e){return e&&e.length?pn(e,ru,kn):i},Mr.minBy=function(e,t){return e&&e.length?pn(e,oo(t,2),kn):i},Mr.stubArray=fu,Mr.stubFalse=mu,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Cu,Mr.nth=function(e,t){return e&&e.length?Un(e,pa(t)):i},Mr.noConflict=function(){return dt._===this&&(dt._=Le),this},Mr.noop=au,Mr.now=Os,Mr.pad=function(e,t,r){e=Ea(e);var n=(t=pa(t))?cr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Vi(pt(i),r)+e+Vi(ht(i),r)},Mr.padEnd=function(e,t,r){e=Ea(e);var n=(t=pa(t))?cr(e):0;return t&&n<t?e+Vi(t-n,r):e},Mr.padStart=function(e,t,r){e=Ea(e);var n=(t=pa(t))?cr(e):0;return t&&n<t?Vi(t-n,r)+e:e},Mr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),yr(Ea(e).replace(ne,""),t||0)},Mr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Eo(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ha(e),t===i?(t=e,e=0):t=ha(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=vr();return gr(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return Hn(e,t)},Mr.reduce=function(e,t,r){var n=$s(e)?Rt:Ht,i=arguments.length<3;return n(e,oo(t,4),r,i,ln)},Mr.reduceRight=function(e,t,r){var n=$s(e)?Pt:Ht,i=arguments.length<3;return n(e,oo(t,4),r,i,dn)},Mr.repeat=function(e,t,r){return t=(r?Eo(e,t,r):t===i)?1:pa(t),Gn(Ea(e),t)},Mr.replace=function(){var e=arguments,t=Ea(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mr.result=function(e,t,r){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++n<o;){var s=null==e?i:e[No(t[n])];s===i&&(n=o,s=r),e=Qs(s)?s.call(e):s}return e},Mr.round=bu,Mr.runInContext=e,Mr.sample=function(e){return($s(e)?Kr:Kn)(e)},Mr.size=function(e){if(null==e)return 0;if(Hs(e))return sa(e)?cr(e):e.length;var t=ho(e);return t==b||t==x?e.size:Pn(e).length},Mr.snakeCase=Ga,Mr.some=function(e,t,r){var n=$s(e)?kt:ti;return r&&Eo(e,t,r)&&(t=i),n(e,oo(t,3))},Mr.sortedIndex=function(e,t){return ri(e,t)},Mr.sortedIndexBy=function(e,t,r){return ni(e,t,oo(r,2))},Mr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ri(e,t);if(n<r&&js(e[n],t))return n}return-1},Mr.sortedLastIndex=function(e,t){return ri(e,t,!0)},Mr.sortedLastIndexBy=function(e,t,r){return ni(e,t,oo(r,2),!0)},Mr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ri(e,t,!0)-1;if(js(e[r],t))return r}return-1},Mr.startCase=qa,Mr.startsWith=function(e,t,r){return e=Ea(e),r=null==r?0:on(pa(r),0,e.length),t=si(t),e.slice(r,r+t.length)==t},Mr.subtract=Su,Mr.sum=function(e){return e&&e.length?Gt(e,ru):0},Mr.sumBy=function(e,t){return e&&e.length?Gt(e,oo(t,2)):0},Mr.template=function(e,t,r){var n=Mr.templateSettings;r&&Eo(e,t,r)&&(t=i),e=Ea(e),t=Aa({},t,n,Yi);var o,s,a=Aa({},t.imports,n.imports,Yi),u=Ba(a),c=Qt(a,u),l=0,d=t.interpolate||ve,h="__p += '",p=Oe((t.escape||ve).source+"|"+d.source+"|"+(d===X?de:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),f="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(p,(function(t,r,n,i,a,u){return n||(n=i),h+=e.slice(l,u).replace(Ae,rr),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),h+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(z,""):h).replace($,"$1").replace(W,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Xa((function(){return be(u,f+"return "+h).apply(i,c)}));if(g.source=h,Ys(g))throw g;return g},Mr.times=function(e,t){if((e=pa(e))<1||e>d)return[];var r=p,n=gr(e,p);t=oo(t),e-=p;for(var i=qt(n,t);++r<e;)t(r);return i},Mr.toFinite=ha,Mr.toInteger=pa,Mr.toLength=fa,Mr.toLower=function(e){return Ea(e).toLowerCase()},Mr.toNumber=ma,Mr.toSafeInteger=function(e){return e?on(pa(e),-9007199254740991,d):0===e?e:0},Mr.toString=Ea,Mr.toUpper=function(e){return Ea(e).toUpperCase()},Mr.trim=function(e,t,r){if((e=Ea(e))&&(r||t===i))return Kt(e);if(!e||!(t=si(t)))return e;var n=lr(e),o=lr(t);return yi(n,Zt(n,o),Jt(n,o)+1).join("")},Mr.trimEnd=function(e,t,r){if((e=Ea(e))&&(r||t===i))return e.slice(0,dr(e)+1);if(!e||!(t=si(t)))return e;var n=lr(e);return yi(n,0,Jt(n,lr(t))+1).join("")},Mr.trimStart=function(e,t,r){if((e=Ea(e))&&(r||t===i))return e.replace(ne,"");if(!e||!(t=si(t)))return e;var n=lr(e);return yi(n,Zt(n,lr(t))).join("")},Mr.truncate=function(e,t){var r=30,n="...";if(Js(t)){var o="separator"in t?t.separator:o;r="length"in t?pa(t.length):r,n="omission"in t?si(t.omission):n}var s=(e=Ea(e)).length;if(nr(e)){var a=lr(e);s=a.length}if(r>=s)return e;var u=r-cr(n);if(u<1)return n;var c=a?yi(a,0,u).join(""):e.slice(0,u);if(o===i)return c+n;if(a&&(u+=c.length-u),ia(o)){if(e.slice(u).search(o)){var l,d=c;for(o.global||(o=Oe(o.source,Ea(he.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var h=l.index;c=c.slice(0,h===i?u:h)}}else if(e.indexOf(si(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+n},Mr.unescape=function(e){return(e=Ea(e))&&q.test(e)?e.replace(H,hr):e},Mr.uniqueId=function(e){var t=++Pe;return Ea(e)+t},Mr.upperCase=Ka,Mr.upperFirst=Ya,Mr.each=Es,Mr.eachRight=ys,Mr.first=Ho,su(Mr,(gu={},yn(Mr,(function(e,t){Re.call(Mr.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Mr.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),Ot(["drop","take"],(function(e,t){Vr.prototype[e]=function(r){r=r===i?1:mr(pa(r),0);var n=this.__filtered__&&!t?new Vr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,p),type:e+(n.__dir__<0?"Right":"")}),n},Vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ot(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(ru)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=qn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return Dn(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Ps(oo(e)))},Vr.prototype.slice=function(e,t){e=pa(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=pa(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(p)},yn(Vr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Mr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,u=t instanceof Vr,c=a[0],l=u||$s(t),d=function(e){var t=o.apply(Mr,Ft([e],a));return n&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=u&&!p;if(!s&&l){t=m?t:new Vr(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:i}),new Ur(g,h)}return f&&m?e.apply(this,a):(g=this.thru(d),f?n?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply($s(i)?i:[],e)}return this[r]((function(r){return t.apply($s(r)?r:[],e)}))}})),yn(Vr.prototype,(function(e,t){var r=Mr[t];if(r){var n=r.name+"";Re.call(Dr,n)||(Dr[n]=[]),Dr[n].push({name:t,func:r})}})),Dr[Mi(i,2).name]=[{name:"wrapper",func:i}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=_i(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_i(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_i(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=$s(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=gr(t,e+s);break;case"takeRight":e=mr(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=n?a:s-1,l=this.__iteratees__,d=l.length,h=0,p=gr(u,this.__takeCount__);if(!r||!n&&i==u&&p==u)return di(e,this.__actions__);var f=[];e:for(;u--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var E=l[m],y=E.iteratee,v=E.type,A=y(g);if(2==v)g=A;else if(!A){if(1==v)continue e;break e}}f[h++]=g}return f},Mr.prototype.at=ps,Mr.prototype.chain=function(){return ds(this)},Mr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Mr.prototype.next=function(){this.__values__===i&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(e){for(var t,r=this;r instanceof jr;){var n=Lo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vr){var t=e;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Jo],thisArg:i}),new Ur(t,this.__chain__)}return this.thru(Jo)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Ye&&(Mr.prototype[Ye]=function(){return this}),Mr}();dt._=pr,(n=function(){return pr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},6902:e=>{function t(e,n){if(!(this instanceof t))return new t(e,n);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=e||1024,this.deduplicate=n?n.deduplicate:null,this.zeros=this.deduplicate?r(this.deduplicate.length):null}function r(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t}function n(e,t){this.offset=e*t.length,this.buffer=t,this.updated=!1,this.deduplicate=0}e.exports=t,t.prototype.updated=function(e){for(;this.deduplicate&&e.buffer[e.deduplicate]===this.deduplicate[e.deduplicate];)if(e.deduplicate++,e.deduplicate===this.deduplicate.length){e.deduplicate=0,e.buffer.equals&&e.buffer.equals(this.deduplicate)&&(e.buffer=this.deduplicate);break}!e.updated&&this.updates&&(e.updated=!0,this.updates.push(e))},t.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var e=this.updates.pop();return e.updated=!1,e},t.prototype._array=function(e,t){if(e>=this.maxPages){if(t)return;!function(e,t){for(;e.maxPages<t;){var r=e.pages;e.pages=new Array(32768),e.pages[0]=r,e.level++,e.maxPages*=32768}}(this,e)}var r,n;r=((r=((r=e)-((n=this.path)[0]=32767&r))/32768)-(n[1]=32767&r))/32768,n[3]=(r-(n[2]=32767&r))/32768&32767;for(var i=this.pages,o=this.level;o>0;o--){var s=this.path[o],a=i[s];if(!a){if(t)return;a=i[s]=new Array(32768)}i=a}return i},t.prototype.get=function(e,t){var i,o,s=this._array(e,t),a=this.path[0],u=s&&s[a];return u||t||(u=s[a]=new n(e,r(this.pageSize)),e>=this.length&&(this.length=e+1)),u&&u.buffer===this.deduplicate&&this.deduplicate&&!t&&(u.buffer=(i=u.buffer,o=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(o),o),u.deduplicate=0),u},t.prototype.set=function(e,t){var i=this._array(e,!1),o=this.path[0];if(e>=this.length&&(this.length=e+1),!t||this.zeros&&t.equals&&t.equals(this.zeros))i[o]=void 0;else{this.deduplicate&&t.equals&&t.equals(this.deduplicate)&&(t=this.deduplicate);var s=i[o],a=function(e,t){if(e.length===t)return e;if(e.length>t)return e.slice(0,t);var n=r(t);return e.copy(n),n}(t,this.pageSize);s?s.buffer=a:i[o]=new n(e,a)}},t.prototype.toBuffer=function(){for(var e=new Array(this.length),t=r(this.pageSize),n=0;n<e.length;)for(var i=this._array(n,!0),o=0;o<32768&&n<e.length;o++)e[n++]=i&&i[o]?i[o].buffer:t;return Buffer.concat(e)}},451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const n=r(4159),i=r(5015);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return i.redactConnectionString}});const o="__this_is_a_placeholder__",s=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a 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,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class u extends n.URL{}class c extends Error{get name(){return"MongoParseError"}}class l extends u{constructor(e,t={}){var r;const{looseValidation:n}=t;if(!n&&!(i=e).startsWith("mongodb://")&&!i.startsWith("mongodb+srv://"))throw new c('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var i;const u=e.match(s);if(!u)throw new c(`Invalid connection string "${e}"`);const{protocol:d,username:h,password:p,hosts:f,rest:m}=null!==(r=u.groups)&&void 0!==r?r:{};if(!n){if(!d||!f)throw new c(`Protocol and host list are required in "${e}"`);try{decodeURIComponent(null!=h?h:""),decodeURIComponent(null!=p?p:"")}catch(e){throw new c(e.message)}const t=/[:/?#[\]@]/gi;if(null==h?void 0:h.match(t))throw new c(`Username contains unescaped characters ${h}`);if(!h||!p){const t=e.replace(`${d}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new c("URI contained empty userinfo section")}if(null==p?void 0:p.match(t))throw new c("Password contains unescaped characters")}let g="";"string"==typeof h&&(g+=h),"string"==typeof p&&(g+=`:${p}`),g&&(g+="@");try{super(`${d.toLowerCase()}://${g}${o}${m}`)}catch(r){throw n&&new l(e,{...t,looseValidation:!1}),"string"==typeof r.message&&(r.message=r.message.replace(o,f)),r}if(this._hosts=f.split(","),!n){if(this.isSRV&&1!==this.hosts.length)throw new c("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new c("mongodb+srv URI cannot have port number")}var E;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(E=this.searchParams.constructor,class extends E{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return o}set host(e){throw new Error("No single host for connection string")}get hostname(){return o}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(o,this.hosts.join(","))}clone(){return new l(this.toString(),{looseValidation:!0})}redact(e){return(0,i.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:r,username:n,password:i,hosts:o,pathname:s,search:a,searchParams:u,hash:c}=this;return{href:e,origin:t,protocol:r,username:n,password:i,hosts:o,pathname:s,search:a,searchParams:u,hash:c}}}t.ConnectionString=l,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(null!=e?e:"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=l},5015:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const s=o(r(451));t.redactValidConnectionString=function(e,t){var r,n;const i=e.clone(),o=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"_credentials_",a=null===(n=null==t?void 0:t.redactUsernames)||void 0===n||n;if((i.username||i.password)&&a?(i.username=o,i.password=""):i.password&&(i.password=o),i.searchParams.has("authMechanismProperties")){const e=new s.CommaAndColonSeparatedRecord(i.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",o),i.searchParams.set("authMechanismProperties",e.toString()))}return i.searchParams.has("tlsCertificateKeyFilePassword")&&i.searchParams.set("tlsCertificateKeyFilePassword",o),i.searchParams.has("proxyUsername")&&a&&i.searchParams.set("proxyUsername",o),i.searchParams.has("proxyPassword")&&i.searchParams.set("proxyPassword",o),i},t.redactConnectionString=function(e,t){var r,n;const i=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"<credentials>",o=null===(n=null==t?void 0:t.redactUsernames)||void 0===n||n;let a;try{a=new s.default(e)}catch(e){}if(a)return t={...t,replacementString:"___credentials___"},a.redact(t).toString().replace(/___credentials___/g,i);const u=i,c=[e=>e.replace(o?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${u}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${u}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${u}`),e=>o?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${u}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${u}`)];for(const t of c)e=t(e);return e}},6843:(e,t,r)=>{"use strict";const n=r(8621),i=r(629),o=r(7443),{STATUS_MAPPING:s}=r(5541);function a(e,{useSTD3ASCIIRules:t}){let r=0,n=o.length-1;for(;r<=n;){const i=Math.floor((r+n)/2),a=o[i],u=Array.isArray(a[0])?a[0][0]:a[0],c=Array.isArray(a[0])?a[0][1]:a[0];if(u<=e&&c>=e)return!t||a[1]!==s.disallowed_STD3_valid&&a[1]!==s.disallowed_STD3_mapped?a[1]===s.disallowed_STD3_valid?[s.valid,...a.slice(2)]:a[1]===s.disallowed_STD3_mapped?[s.mapped,...a.slice(2)]:a.slice(1):[s.disallowed,...a.slice(2)];u>e?n=i-1:r=i+1}return null}function u(e,{checkHyphens:t,checkBidi:r,checkJoiners:n,processingOption:o,useSTD3ASCIIRules:u}){if(e.normalize("NFC")!==e)return!1;const c=Array.from(e);if(t&&("-"===c[2]&&"-"===c[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(e.includes(".")||c.length>0&&i.combiningMarks.test(c[0]))return!1;for(const e of c){const[t]=a(e.codePointAt(0),{useSTD3ASCIIRules:u});if("transitional"===o&&t!==s.valid||"nontransitional"===o&&t!==s.valid&&t!==s.deviation)return!1}if(n){let e=0;for(const[t,r]of c.entries())if(""===r||""===r){if(t>0){if(i.combiningClassVirama.test(c[t-1]))continue;if(""===r){const r=c.indexOf("",t+1),n=r<0?c.slice(e):c.slice(e,r);if(i.validZWNJ.test(n.join(""))){e=t+1;continue}}}return!1}}if(r){let t;if(i.bidiS1LTR.test(c[0]))t=!1;else{if(!i.bidiS1RTL.test(c[0]))return!1;t=!0}if(t){if(!i.bidiS2.test(e)||!i.bidiS3.test(e)||i.bidiS4EN.test(e)&&i.bidiS4AN.test(e))return!1}else if(!i.bidiS5.test(e)||!i.bidiS6.test(e))return!1}return!0}function c(e,t){const{processingOption:r}=t;let{string:o,error:c}=function(e,{useSTD3ASCIIRules:t,processingOption:r}){let n=!1,i="";for(const o of e){const[e,u]=a(o.codePointAt(0),{useSTD3ASCIIRules:t});switch(e){case s.disallowed:n=!0,i+=o;break;case s.ignored:break;case s.mapped:i+=u;break;case s.deviation:i+="transitional"===r?u:o;break;case s.valid:i+=o}}return{string:i,error:n}}(e,t);o=o.normalize("NFC");const l=o.split("."),d=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return n.decode(e.substring(4))}catch(e){return""}return e})).join(".");return i.bidiDomain.test(t)}(l);for(const[e,i]of l.entries()){let o=i,s=r;if(o.startsWith("xn--")){try{o=n.decode(o.substring(4)),l[e]=o}catch(e){c=!0;continue}s="nontransitional"}c||(u(o,{...t,processingOption:s,checkBidi:t.checkBidi&&d})||(c=!0))}return{string:l.join("."),error:c}}e.exports={toASCII:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:i=!1,useSTD3ASCIIRules:o=!1,processingOption:s="nontransitional",verifyDNSLength:a=!1}={}){if("transitional"!==s&&"nontransitional"!==s)throw new RangeError("processingOption must be either transitional or nontransitional");const u=c(e,{processingOption:s,checkHyphens:t,checkBidi:r,checkJoiners:i,useSTD3ASCIIRules:o});let l=u.string.split(".");if(l=l.map((e=>{if(/[^\x00-\x7F]/u.test(e))try{return`xn--${n.encode(e)}`}catch(e){u.error=!0}return e})),a){const e=l.join(".").length;(e>253||0===e)&&(u.error=!0);for(let e=0;e<l.length;++e)if(l[e].length>63||0===l[e].length){u.error=!0;break}}return u.error?null:l.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,processingOption:o="nontransitional"}={}){const s=c(e,{processingOption:o,checkHyphens:t,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i});return{domain:s.string,error:s.error}}}},629:e=>{"use strict";e.exports={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11FD5}-\u{11FF1}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1123E}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u}},5541:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},5292:(e,t)=>{"use strict";function r(e,t,r){return r.globals&&(e=r.globals[e.name]),new e(`${r.context?r.context:"Value"} ${t}.`)}function n(e,t){if("bigint"==typeof e)throw r(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function i(e){return a(e>0&&e%1==.5&&0==(1&e)||e<0&&e%1==-.5&&1==(1&e)?Math.floor(e):Math.round(e))}function o(e){return a(Math.trunc(e))}function s(e){return e<0?-1:1}function a(e){return 0===e?0:e}function u(e,{unsigned:t}){let u,c;t?(u=0,c=2**e-1):(u=-(2**(e-1)),c=2**(e-1)-1);const l=2**e,d=2**(e-1);return(e,h={})=>{let p=n(e,h);if(p=a(p),h.enforceRange){if(!Number.isFinite(p))throw r(TypeError,"is not a finite number",h);if(p=o(p),p<u||p>c)throw r(TypeError,`is outside the accepted range of ${u} to ${c}, inclusive`,h);return p}return!Number.isNaN(p)&&h.clamp?(p=Math.min(Math.max(p,u),c),p=i(p),p):Number.isFinite(p)&&0!==p?(p=o(p),p>=u&&p<=c?p:(p=function(e,t){const r=e%t;return s(t)!==s(r)?r+t:r}(p,l),!t&&p>=d?p-l:p)):0}}function c(e,{unsigned:t}){const s=Number.MAX_SAFE_INTEGER,u=t?0:Number.MIN_SAFE_INTEGER,c=t?BigInt.asUintN:BigInt.asIntN;return(t,l={})=>{let d=n(t,l);if(d=a(d),l.enforceRange){if(!Number.isFinite(d))throw r(TypeError,"is not a finite number",l);if(d=o(d),d<u||d>s)throw r(TypeError,`is outside the accepted range of ${u} to ${s}, inclusive`,l);return d}if(!Number.isNaN(d)&&l.clamp)return d=Math.min(Math.max(d,u),s),d=i(d),d;if(!Number.isFinite(d)||0===d)return 0;let h=BigInt(o(d));return h=c(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=u(8,{unsigned:!1}),t.octet=u(8,{unsigned:!0}),t.short=u(16,{unsigned:!1}),t["unsigned short"]=u(16,{unsigned:!0}),t.long=u(32,{unsigned:!1}),t["unsigned long"]=u(32,{unsigned:!0}),t["long long"]=c(64,{unsigned:!1}),t["unsigned long long"]=c(64,{unsigned:!0}),t.double=(e,t={})=>{const i=n(e,t);if(!Number.isFinite(i))throw r(TypeError,"is not a finite floating-point value",t);return i},t["unrestricted double"]=(e,t={})=>n(e,t),t.float=(e,t={})=>{const i=n(e,t);if(!Number.isFinite(i))throw r(TypeError,"is not a finite floating-point value",t);if(Object.is(i,-0))return i;const o=Math.fround(i);if(!Number.isFinite(o))throw r(TypeError,"is outside the range of a single-precision floating-point value",t);return o},t["unrestricted float"]=(e,t={})=>{const r=n(e,t);return isNaN(r)||Object.is(r,-0)?r:Math.fround(r)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw r(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,n={})=>{const i=t.DOMString(e,n);let o;for(let e=0;void 0!==(o=i.codePointAt(e));++e)if(o>255)throw r(TypeError,"is not a valid ByteString",n);return i},t.USVString=(e,r={})=>{const n=t.DOMString(e,r),i=n.length,o=[];for(let e=0;e<i;++e){const t=n.charCodeAt(e);if(t<55296||t>57343)o.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)o.push(String.fromCodePoint(65533));else if(e===i-1)o.push(String.fromCodePoint(65533));else{const r=n.charCodeAt(e+1);if(56320<=r&&r<=57343){const n=1023&t,i=1023&r;o.push(String.fromCodePoint(65536+1024*n+i)),++e}else o.push(String.fromCodePoint(65533))}}return o.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw r(TypeError,"is not an object",t);return e};const l=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,d="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return l.call(e),!0}catch{return!1}}function p(e){try{return d.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!p(e))throw r(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw r(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw r(TypeError,"is not a DataView",t)}if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is backed by a detached ArrayBuffer",t);return e};const g=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:n}=e,i=/^[AEIOU]/u.test(n)?"an":"a";t[n]=(e,t={})=>{if(!ArrayBuffer.isView(e)||g.call(e)!==n)throw r(TypeError,`is not ${i} ${n} object`,t);if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw r(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&p(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw r(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!p(e)&&!h(e))throw r(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]},4159:(e,t,r)=>{"use strict";const{URL:n,URLSearchParams:i}=r(6396),o=r(1002),s=r(7689),a={Array,Object,Promise,String,TypeError};n.install(a,["Window"]),i.install(a,["Window"]),t.URL=a.URL,t.URLSearchParams=a.URLSearchParams,t.parseURL=o.parseURL,t.basicURLParse=o.basicURLParse,t.serializeURL=o.serializeURL,t.serializePath=o.serializePath,t.serializeHost=o.serializeHost,t.serializeInteger=o.serializeInteger,t.serializeURLOrigin=o.serializeURLOrigin,t.setTheUsername=o.setTheUsername,t.setThePassword=o.setThePassword,t.cannotHaveAUsernamePasswordPort=o.cannotHaveAUsernamePasswordPort,t.hasAnOpaquePath=o.hasAnOpaquePath,t.percentDecodeString=s.percentDecodeString,t.percentDecodeBytes=s.percentDecodeBytes},9353:(e,t,r)=>{"use strict";const n=r(5292),i=r(7118);t.convert=(e,t,{context:r="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(r+" is not a function");function o(...o){const s=i.tryWrapperForImpl(this);let a;for(let e=0;e<o.length;e++)o[e]=i.tryWrapperForImpl(o[e]);return a=Reflect.apply(t,s,o),a=n.any(a,{context:r,globals:e}),a}return o.construct=(...o)=>{for(let e=0;e<o.length;e++)o[e]=i.tryWrapperForImpl(o[e]);let s=Reflect.construct(t,o);return s=n.any(s,{context:r,globals:e}),s},o[i.wrapperSymbol]=t,o.objectReference=t,o}},11:(e,t,r)=>{"use strict";const n=r(1002),i=r(6655),o=r(15);t.implementation=class{constructor(e,t){const r=t[0],i=t[1];let s=null;if(void 0!==i&&(s=n.basicURLParse(i),null===s))throw new TypeError(`Invalid base URL: ${i}`);const a=n.basicURLParse(r,{baseURL:s});if(null===a)throw new TypeError(`Invalid URL: ${r}`);const u=null!==a.query?a.query:"";this._url=a,this._query=o.createImpl(e,[u],{doNotStripQMark:!0}),this._query._url=this}get href(){return n.serializeURL(this._url)}set href(e){const t=n.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:r}=t;null!==r&&(this._query._list=i.parseUrlencodedString(r))}get origin(){return n.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){n.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){n.cannotHaveAUsernamePasswordPort(this._url)||n.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){n.cannotHaveAUsernamePasswordPort(this._url)||n.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?n.serializeHost(e.host):`${n.serializeHost(e.host)}:${n.serializeInteger(e.port)}`}set host(e){n.hasAnOpaquePath(this._url)||n.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":n.serializeHost(this._url.host)}set hostname(e){n.hasAnOpaquePath(this._url)||n.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":n.serializeInteger(this._url.port)}set port(e){n.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:n.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return n.serializePath(this._url)}set pathname(e){n.hasAnOpaquePath(this._url)||(this._url.path=[],n.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,void(this._query._list=[]);const r="?"===e[0]?e.substring(1):e;t.query="",n.basicURLParse(r,{url:t,stateOverride:"query"}),this._query._list=i.parseUrlencodedString(r)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",n.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},9415:(e,t,r)=>{"use strict";const n=r(5292),i=r(7118),o=i.implSymbol,s=i.ctorRegistrySymbol;function a(e,t){let r;return void 0!==t&&(r=t.prototype),i.isObject(r)||(r=e[s].URL.prototype),Object.create(r)}t.is=e=>i.isObject(e)&&i.hasOwn(e,o)&&e[o]instanceof c.implementation,t.isImpl=e=>i.isObject(e)&&e instanceof c.implementation,t.convert=(e,r,{context:n="The provided value"}={})=>{if(t.is(r))return i.implForWrapper(r);throw new e.TypeError(`${n} is not of type 'URL'.`)},t.create=(e,r,n)=>{const i=a(e);return t.setup(i,e,r,n)},t.createImpl=(e,r,n)=>{const o=t.create(e,r,n);return i.implForWrapper(o)},t._internalSetup=(e,t)=>{},t.setup=(e,r,n=[],s={})=>(s.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,o,{value:new c.implementation(r,n,s),configurable:!0}),e[o][i.wrapperSymbol]=e,c.init&&c.init(e[o]),e),t.new=(e,r)=>{const n=a(e,r);return t._internalSetup(n,e),Object.defineProperty(n,o,{value:Object.create(c.implementation.prototype),configurable:!0}),n[o][i.wrapperSymbol]=n,c.init&&c.init(n[o]),n[o]};const u=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>u.has(e))))return;const s=i.initCtorRegistry(e);class a{constructor(r){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];void 0!==t&&(t=n.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),i.push(t)}return t.setup(Object.create(new.target.prototype),e,i)}toJSON(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[o].toJSON()}get href(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[o].href}set href(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),i[o].href=r}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[o].href}get origin(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[o].origin}get protocol(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[o].protocol}set protocol(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),i[o].protocol=r}get username(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[o].username}set username(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),i[o].username=r}get password(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[o].password}set password(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),i[o].password=r}get host(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[o].host}set host(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),i[o].host=r}get hostname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[o].hostname}set hostname(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),i[o].hostname=r}get port(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[o].port}set port(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),i[o].port=r}get pathname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[o].pathname}set pathname(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),i[o].pathname=r}get search(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[o].search}set search(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),i[o].search=r}get searchParams(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return i.getSameObject(this,"searchParams",(()=>i.tryWrapperForImpl(r[o].searchParams)))}get hash(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[o].hash}set hash(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=n.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),i[o].hash=r}}Object.defineProperties(a.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),s.URL=a,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:a}),r.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:a})};const c=r(11)},2082:(e,t,r)=>{"use strict";const n=r(6655);t.implementation=class{constructor(e,t,{doNotStripQMark:r=!1}){let i=t[0];if(this._list=[],this._url=null,r||"string"!=typeof i||"?"!==i[0]||(i=i.slice(1)),Array.isArray(i))for(const e of i){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof i&&null===Object.getPrototypeOf(i))for(const e of Object.keys(i)){const t=i[e];this._list.push([e,t])}else this._list=n.parseUrlencodedString(i)}_updateSteps(){if(null!==this._url){let e=n.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e}}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e){let t=0;for(;t<this._list.length;)this._list[t][0]===e?this._list.splice(t,1):t++;this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const r of this._list)r[0]===e&&t.push(r[1]);return t}has(e){for(const t of this._list)if(t[0]===e)return!0;return!1}set(e,t){let r=!1,n=0;for(;n<this._list.length;)this._list[n][0]===e?r?this._list.splice(n,1):(r=!0,this._list[n][1]=t,n++):n++;r||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return n.serializeUrlencoded(this._list)}}},15:(e,t,r)=>{"use strict";const n=r(5292),i=r(7118),o=r(9353),s=i.newObjectInRealm,a=i.implSymbol,u=i.ctorRegistrySymbol,c="URLSearchParams";function l(e,t){let r;return void 0!==t&&(r=t.prototype),i.isObject(r)||(r=e[u].URLSearchParams.prototype),Object.create(r)}t.is=e=>i.isObject(e)&&i.hasOwn(e,a)&&e[a]instanceof h.implementation,t.isImpl=e=>i.isObject(e)&&e instanceof h.implementation,t.convert=(e,r,{context:n="The provided value"}={})=>{if(t.is(r))return i.implForWrapper(r);throw new e.TypeError(`${n} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,r)=>{const n=e[u]["URLSearchParams Iterator"],o=Object.create(n);return Object.defineProperty(o,i.iterInternalSymbol,{value:{target:t,kind:r,index:0},configurable:!0}),o},t.create=(e,r,n)=>{const i=l(e);return t.setup(i,e,r,n)},t.createImpl=(e,r,n)=>{const o=t.create(e,r,n);return i.implForWrapper(o)},t._internalSetup=(e,t)=>{},t.setup=(e,r,n=[],o={})=>(o.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,a,{value:new h.implementation(r,n,o),configurable:!0}),e[a][i.wrapperSymbol]=e,h.init&&h.init(e[a]),e),t.new=(e,r)=>{const n=l(e,r);return t._internalSetup(n,e),Object.defineProperty(n,a,{value:Object.create(h.implementation.prototype),configurable:!0}),n[a][i.wrapperSymbol]=n,h.init&&h.init(n[a]),n[a]};const d=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>d.has(e))))return;const u=i.initCtorRegistry(e);class l{constructor(){const r=[];{let t=arguments[0];if(void 0!==t)if(i.isObject(t))if(void 0!==t[Symbol.iterator]){if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const r=[],o=t;for(let t of o){if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const r=[],i=t;for(let t of i)t=n.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),r.push(t);t=r}r.push(t)}t=r}}else{if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const r=Object.create(null);for(const i of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,i);if(o&&o.enumerable){let o=i;o=n.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let s=t[i];s=n.USVString(s,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),r[o]=s}}t=r}}else t=n.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}append(r,o){const s=null!=this?this:e;if(!t.is(s))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=n.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return i.tryWrapperForImpl(s[a].append(...u))}delete(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const s=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),s.push(t)}return i.tryWrapperForImpl(o[a].delete(...s))}get(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return i[a].get(...o)}getAll(r){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const s=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),s.push(t)}return i.tryWrapperForImpl(o[a].getAll(...s))}has(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return i[a].has(...o)}set(r,o){const s=null!=this?this:e;if(!t.is(s))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=n.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=n.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return i.tryWrapperForImpl(s[a].set(...u))}sort(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return i.tryWrapperForImpl(r[a].sort())}toString(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return r[a].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(r){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");r=o.convert(e,r,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const n=arguments[1];let s=Array.from(this[a]),u=0;for(;u<s.length;){const[e,t]=s[u].map(i.tryWrapperForImpl);r.call(n,t,e,this),s=Array.from(this[a]),u++}}}Object.defineProperties(l.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:l.prototype.entries,configurable:!0,writable:!0}}),u[c]=l,u["URLSearchParams Iterator"]=Object.create(u["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),i.define(u["URLSearchParams Iterator"],{next(){const t=this&&this[i.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:r,kind:n,index:o}=t,u=Array.from(r[a]);if(o>=u.length)return s(e,{value:void 0,done:!0});const c=u[o];return t.index=o+1,s(e,i.iteratorResult(c.map(i.tryWrapperForImpl),n))}}),Object.defineProperty(e,c,{configurable:!0,writable:!0,value:l})};const h=r(2082)},8359:e=>{"use strict";const t=new TextEncoder,r=new TextDecoder("utf-8",{ignoreBOM:!0});e.exports={utf8Encode:function(e){return t.encode(e)},utf8DecodeWithoutBOM:function(e){return r.decode(e)}}},5485:e=>{"use strict";function t(e){return e>=48&&e<=57}function r(e){return e>=65&&e<=90||e>=97&&e<=122}e.exports={isASCIIDigit:t,isASCIIAlpha:r,isASCIIAlphanumeric:function(e){return r(e)||t(e)},isASCIIHex:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102}}},7689:(e,t,r)=>{"use strict";const{isASCIIHex:n}=r(5485),{utf8Encode:i}=r(8359);function o(e){return e.codePointAt(0)}function s(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function a(e){const t=new Uint8Array(e.byteLength);let r=0;for(let i=0;i<e.byteLength;++i){const o=e[i];if(37!==o)t[r++]=o;else if(37!==o||n(e[i+1])&&n(e[i+2])){const n=parseInt(String.fromCodePoint(e[i+1],e[i+2]),16);t[r++]=n,i+=2}else t[r++]=o}return t.slice(0,r)}function u(e){return e<=31||e>126}const c=new Set([o(" "),o('"'),o("<"),o(">"),o("`")]),l=new Set([o(" "),o('"'),o("#"),o("<"),o(">")]);function d(e){return u(e)||l.has(e)}const h=new Set([o("?"),o("`"),o("{"),o("}")]);function p(e){return d(e)||h.has(e)}const f=new Set([o("/"),o(":"),o(";"),o("="),o("@"),o("["),o("\\"),o("]"),o("^"),o("|")]);function m(e){return p(e)||f.has(e)}const g=new Set([o("$"),o("%"),o("&"),o("+"),o(",")]),E=new Set([o("!"),o("'"),o("("),o(")"),o("~")]);function y(e,t){const r=i(e);let n="";for(const e of r)t(e)?n+=s(e):n+=String.fromCharCode(e);return n}e.exports={isC0ControlPercentEncode:u,isFragmentPercentEncode:function(e){return u(e)||c.has(e)},isQueryPercentEncode:d,isSpecialQueryPercentEncode:function(e){return d(e)||e===o("'")},isPathPercentEncode:p,isUserinfoPercentEncode:m,isURLEncodedPercentEncode:function(e){return function(e){return m(e)||g.has(e)}(e)||E.has(e)},percentDecodeString:function(e){return a(i(e))},percentDecodeBytes:a,utf8PercentEncodeString:function(e,t,r=!1){let n="";for(const i of e)n+=r&&" "===i?"+":y(i,t);return n},utf8PercentEncodeCodePoint:function(e,t){return y(String.fromCodePoint(e),t)}}},1002:(e,t,r)=>{"use strict";const n=r(6843),i=r(5485),{utf8DecodeWithoutBOM:o}=r(8359),{percentDecodeString:s,utf8PercentEncodeCodePoint:a,utf8PercentEncodeString:u,isC0ControlPercentEncode:c,isFragmentPercentEncode:l,isQueryPercentEncode:d,isSpecialQueryPercentEncode:h,isPathPercentEncode:p,isUserinfoPercentEncode:f}=r(7689);function m(e){return e.codePointAt(0)}const g={ftp:21,file:null,http:80,https:443,ws:80,wss:443},E=Symbol("failure");function y(e){return[...e].length}function v(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function A(e){return"."===e||"%2e"===e.toLowerCase()}function C(e){return 2===e.length&&i.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function b(e){return void 0!==g[e]}function S(e){return b(e.scheme)}function w(e){return!b(e.scheme)}function O(e){return g[e]}function _(e){if(""===e)return E;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let r=/[^0-7]/u;return 10===t&&(r=/[^0-9]/u),16===t&&(r=/[^0-9A-Fa-f]/u),r.test(e)?E:parseInt(e,t)}function x(e,t=!1){if("["===e[0])return"]"!==e[e.length-1]?E:function(e){const t=[0,0,0,0,0,0,0,0];let r=0,n=null,o=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[o]===m(":")){if(e[o+1]!==m(":"))return E;o+=2,++r,n=r}for(;o<e.length;){if(8===r)return E;if(e[o]===m(":")){if(null!==n)return E;++o,++r,n=r;continue}let s=0,a=0;for(;a<4&&i.isASCIIHex(e[o]);)s=16*s+parseInt(v(e,o),16),++o,++a;if(e[o]===m(".")){if(0===a)return E;if(o-=a,r>6)return E;let n=0;for(;void 0!==e[o];){let s=null;if(n>0){if(!(e[o]===m(".")&&n<4))return E;++o}if(!i.isASCIIDigit(e[o]))return E;for(;i.isASCIIDigit(e[o]);){const t=parseInt(v(e,o));if(null===s)s=t;else{if(0===s)return E;s=10*s+t}if(s>255)return E;++o}t[r]=256*t[r]+s,++n,2!==n&&4!==n||++r}if(4!==n)return E;break}if(e[o]===m(":")){if(++o,void 0===e[o])return E}else if(void 0!==e[o])return E;t[r]=s,++r}if(null!==n){let e=r-n;for(r=7;0!==r&&e>0;){const i=t[n+e-1];t[n+e-1]=t[r],t[r]=i,--r,--e}}else if(null===n&&8!==r)return E;return t}(e.substring(1,e.length-1));if(t)return function(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)?E:u(e,c)}(e);const r=function(e,t=!1){const r=n.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});return null===r||""===r?E:r}(o(s(e)));return r===E||-1!==r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)?E:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const r=t[t.length-1];return _(r)!==E||!!/^[0-9]+$/u.test(r)}(r)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return E;const r=[];for(const e of t){const t=_(e);if(t===E)return E;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return E;if(r[r.length-1]>=256**(5-r.length))return E;let n=r.pop(),i=0;for(const e of r)n+=e*256**(3-i),++i;return n}(r):r}function D(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t=`.${t}`),r=Math.floor(r/256);return t}(e):e instanceof Array?`[${function(e){let t="";const r=function(e){let t=null,r=1,n=null,i=0;for(let o=0;o<e.length;++o)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e);let n=!1;for(let i=0;i<=7;++i)n&&0===e[i]||(n&&(n=!1),r!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",n=!0));return t}(e)}]`:e}function T(e){const{path:t}=e;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/u.test(r))||t.pop())}function B(e){return""!==e.username||""!==e.password}function I(e){return"string"==typeof e.path}function F(e,t,r,n,i){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=i,this.url=n,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const o=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(o!==this.input&&(this.parseError=!0),this.input=o,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this[`parse ${this.state}`](e,t);if(!r)break;if(r===E){this.failure=!0;break}}}F.prototype["parse scheme start"]=function(e,t){if(i.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,E;this.state="no scheme",--this.pointer}return!0},F.prototype["parse scheme"]=function(e,t){if(i.isASCIIAlphanumeric(e)||e===m("+")||e===m("-")||e===m("."))this.buffer+=t.toLowerCase();else if(e===m(":")){if(this.stateOverride){if(S(this.url)&&!b(this.buffer))return!1;if(!S(this.url)&&b(this.buffer))return!1;if((B(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===O(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===m("/")&&this.input[this.pointer+2]===m("/")||(this.parseError=!0),this.state="file"):S(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":S(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===m("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,E;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},F.prototype["parse no scheme"]=function(e){return null===this.base||I(this.base)&&e!==m("#")?E:(I(this.base)&&e===m("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},F.prototype["parse special relative or authority"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},F.prototype["parse path or authority"]=function(e){return e===m("/")?this.state="authority":(this.state="path",--this.pointer),!0},F.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===m("/")?this.state="relative slash":S(this.url)&&e===m("\\")?(this.parseError=!0,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===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},F.prototype["parse relative slash"]=function(e){return!S(this.url)||e!==m("/")&&e!==m("\\")?e===m("/")?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):(e===m("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},F.prototype["parse special authority slashes"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},F.prototype["parse special authority ignore slashes"]=function(e){return e!==m("/")&&e!==m("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},F.prototype["parse authority"]=function(e,t){if(e===m("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=y(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===m(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=a(e,f);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,E;this.pointer-=y(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},F.prototype["parse hostname"]=F.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==m(":")||this.arrFlag)if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")){if(--this.pointer,S(this.url)&&""===this.buffer)return this.parseError=!0,E;if(this.stateOverride&&""===this.buffer&&(B(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=x(this.buffer,w(this.url));if(e===E)return E;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===m("[")?this.arrFlag=!0:e===m("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,E;if("hostname"===this.stateOverride)return!1;const e=x(this.buffer,w(this.url));if(e===E)return E;this.url.host=e,this.buffer="",this.state="port"}return!0},F.prototype["parse port"]=function(e,t){if(i.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")||this.stateOverride))return this.parseError=!0,E;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,E;this.url.port=e===O(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const R=new Set([m("/"),m("\\"),m("?"),m("#")]);function P(e,t){const r=e.length-t;return r>=2&&(n=e[t],o=e[t+1],i.isASCIIAlpha(n)&&(o===m(":")||o===m("|")))&&(2===r||R.has(e[t+2]));var n,o}function k(e){if(I(e))return e.path;let t="";for(const r of e.path)t+=`/${r}`;return t}F.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,P(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):T(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},F.prototype["parse file slash"]=function(e){var t;return e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!P(this.input,this.pointer)&&2===(t=this.base.path[0]).length&&i.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},F.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===m("/")||e===m("\\")||e===m("?")||e===m("#"))if(--this.pointer,!this.stateOverride&&C(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=x(this.buffer,w(this.url));if(e===E)return E;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},F.prototype["parse path start"]=function(e){return S(this.url)?(e===m("\\")&&(this.parseError=!0),this.state="path",e!==m("/")&&e!==m("\\")&&--this.pointer):this.stateOverride||e!==m("?")?this.stateOverride||e!==m("#")?void 0!==e?(this.state="path",e!==m("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},F.prototype["parse path"]=function(e){var t;return isNaN(e)||e===m("/")||S(this.url)&&e===m("\\")||!this.stateOverride&&(e===m("?")||e===m("#"))?(S(this.url)&&e===m("\\")&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(T(this.url),e===m("/")||S(this.url)&&e===m("\\")||this.url.path.push("")):!A(this.buffer)||e===m("/")||S(this.url)&&e===m("\\")?A(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&C(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="",e===m("?")&&(this.url.query="",this.state="query"),e===m("#")&&(this.url.fragment="",this.state="fragment")):(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=a(e,p)),!0},F.prototype["parse opaque path"]=function(e){return e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):(isNaN(e)||e===m("%")||(this.parseError=!0),e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=a(e,c))),!0},F.prototype["parse query"]=function(e,t){if(S(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===m("#")||isNaN(e)){const t=S(this.url)?h:d;this.url.query+=u(this.buffer,t),this.buffer="",e===m("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},F.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=a(e,l)),!0},e.exports.serializeURL=function(e,t){let r=`${e.scheme}:`;return null!==e.host&&(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=`:${e.password}`),r+="@"),r+=D(e.host),null!==e.port&&(r+=`:${e.port}`)),null===e.host&&!I(e)&&e.path.length>1&&""===e.path[0]&&(r+="/."),r+=k(e),null!==e.query&&(r+=`?${e.query}`),t||null===e.fragment||(r+=`#${e.fragment}`),r},e.exports.serializePath=k,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(k(t)))}catch(e){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=D(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new F(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?null:r.url},e.exports.setTheUsername=function(e,t){e.username=u(t,f)},e.exports.setThePassword=function(e,t){e.password=u(t,f)},e.exports.serializeHost=D,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||I(e)||"file"===e.scheme},e.exports.hasAnOpaquePath=I,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}},6655:(e,t,r)=>{"use strict";const{utf8Encode:n,utf8DecodeWithoutBOM:i}=r(8359),{percentDecodeBytes:o,utf8PercentEncodeString:s,isURLEncodedPercentEncode:a}=r(7689);function u(e){return e.codePointAt(0)}function c(e,t,r){let n=e.indexOf(t);for(;n>=0;)e[n]=r,n=e.indexOf(t,n+1);return e}e.exports={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const r=[];let n=0,i=e.indexOf(t);for(;i>=0;)r.push(e.slice(n,i)),n=i+1,i=e.indexOf(t,n);return n!==e.length&&r.push(e.slice(n)),r}(e,u("&")),r=[];for(const e of t){if(0===e.length)continue;let t,n;const s=e.indexOf(u("="));s>=0?(t=e.slice(0,s),n=e.slice(s+1)):(t=e,n=new Uint8Array(0)),t=c(t,43,32),n=c(n,43,32);const a=i(o(t)),l=i(o(n));r.push([a,l])}return r}(n(e))},serializeUrlencoded:function(e,t=void 0){let r="utf-8";void 0!==t&&(r=t);let n="";for(const[t,i]of e.entries()){const e=s(i[0],a,!0);let o=i[1];i.length>2&&void 0!==i[2]&&("hidden"===i[2]&&"_charset_"===e?o=r:"file"===i[2]&&(o=o.name)),o=s(o,a,!0),0!==t&&(n+="&"),n+=`${e}=${o}`}return n}}},7118:(e,t)=>{"use strict";const r=Function.prototype.call.bind(Object.prototype.hasOwnProperty),n=Symbol("wrapper"),i=Symbol("impl"),o=Symbol("SameObject caches"),s=Symbol.for("[webidl2js] constructor registry"),a=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function u(e){if(r(e,s))return e[s];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=a}return e[s]=t,t}function c(e){return e?e[n]:null}function l(e){return e?e[i]:null}const d=Symbol("internal"),h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,p=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),g=Symbol("supported property names"),E=Symbol("indexed property get"),y=Symbol("indexed property set new"),v=Symbol("indexed property set existing"),A=Symbol("named property get"),C=Symbol("named property set new"),b=Symbol("named property set existing"),S=Symbol("named property delete"),w=Symbol("async iterator get the next iteration result"),O=Symbol("async iterator return steps"),_=Symbol("async iterator initialization steps"),x=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:r,define:function(e,t){for(const r of Reflect.ownKeys(t)){const n=Reflect.getOwnPropertyDescriptor(t,r);if(n&&!Reflect.defineProperty(e,r,n))throw new TypeError(`Cannot redefine property: ${String(r)}`)}},newObjectInRealm:function(e,t){const r=u(e);return Object.defineProperties(Object.create(r["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:n,implSymbol:i,getSameObject:function(e,t,r){return e[o]||(e[o]=Object.create(null)),t in e[o]||(e[o][t]=r()),e[o][t]},ctorRegistrySymbol:s,initCtorRegistry:u,wrapperForImpl:c,implForWrapper:l,tryWrapperForImpl:function(e){return c(e)||e},tryImplForWrapper:function(e){return l(e)||e},iterInternalSymbol:d,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:p,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:g,indexedGet:E,indexedSetNew:y,indexedSetExisting:v,namedGet:A,namedSetNew:C,namedSetExisting:b,namedDelete:S,asyncIteratorNext:w,asyncIteratorReturn:O,asyncIteratorInit:_,asyncIteratorEOI:x,iteratorResult:function([e,t],r){let n;switch(r){case"key":n=e;break;case"value":n=t;break;case"key+value":n=[e,t]}return{value:n,done:!1}}}},6396:(e,t,r)=>{"use strict";const n=r(9415),i=r(15);t.URL=n,t.URLSearchParams=i},5949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},315:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const a=o(r(1829)),u=s(r(6635)),c=s(r(5130)),l=r(5949),d=r(8423);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return d.toJSString}});const h=(0,c.default)("mongodb-query-parser"),p={};t.DEFAULT_FILTER=p;const f=null;t.DEFAULT_SORT=f,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const m=null;t.DEFAULT_PROJECT=m;const g=null;function E(e){if(null==e)return!0;const t=u.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||u.default.isEmpty(t)}function y(e){return E(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function v(e){return(0,a.default)(e,{mode:a.ParseMode.Loose})}function A(e){return(0,a.default)(e,{mode:a.ParseMode.Loose})}function C(e){return E(e)?f:(0,a.default)(e,{mode:a.ParseMode.Loose})}function b(e){return(0,a.default)(e,{mode:a.ParseMode.Loose})}function S(e){if(E(e))return p;try{return b(e)}catch(t){return h('Filter "%s" is invalid',e,t),!1}}function w(e){if(E(e))return g;try{return function(e){for(const[t,r]of Object.entries(e)){if(!l.COLLATION_OPTIONS[t])return h('Collation "%s" is invalid bc of its keys',e),!1;if(!1===l.COLLATION_OPTIONS[t].includes(r))return h('Collation "%s" is invalid bc of its values',e),!1}return e}(A(e))}catch(t){return h('Collation "%s" is invalid',e,t),!1}}function O(){return!0}function _(e){if(E(e))return m;try{const t=v(e);return u.default.isObject(t)?u.default.every(t,O)?t:(h('Project "%s" is invalid bc of its values',e),!1):(h('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return h('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=g,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=C,t.parseFilter=function(e){return E(e)?p:b(e)},t.parseCollation=function(e){return E(e)?g:A(e)},t.isFilterValid=S,t.isCollationValid=w,t.parseProject=function(e){return E(e)?m:v(e)},t.isProjectValid=_;const x=[1,-1,"asc","desc"];function D(e){return u.default.includes(x,e)||!(!u.default.isObject(e)||!e.$meta)}function T(e){return u.default.isArray(e)&&2===e.length&&u.default.isString(e[0])&&D(e[1])}function B(e){try{const t=C(e);return E(t)?f:u.default.isArray(t)&&u.default.every(t,T)||u.default.isObject(t)&&!u.default.isArray(t)&&u.default.every(t,D)?t:(h('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return h('Sort "%s" is invalid',e,t),!1}}function I(e){return E(e)?6e4:y(e)}function F(e){return E(e)?0:y(e)}function R(e){return E(e)?0:y(e)}t.isSortValid=B,t.isMaxTimeMSValid=I,t.isSkipValid=F,t.isLimitValid=R;const P={isMaxTimeMSValid:I,isFilterValid:S,isProjectValid:_,isSortValid:B,isLimitValid:R,isSkipValid:F,isCollationValid:w,isNumberValid:y};t.validate=function(e,t){const r=P[`is${u.default.upperFirst(e)}Valid`];return r?r(t):(h("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&u.default.isString(e)?b(e):{filter:b(e),project:t!==m?v(t):t}}},8423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const n=r(6081),i=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const o={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(16)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong(${e.toString()})`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return`ISODate('${e.toISOString()}')`},ISODate:function(e){return`ISODate('${e.toISOString()}')`},RegExp:function(e){let t="",r=!1;return e.global&&(r=!0,t+="g"),e.ignoreCase&&(r=!0,t+="i"),e.multiline&&(r=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${r?`, '${t}'`:""})`}};function s(e,t){return(0,n.stringify)(e,(function(e,t,r){const n=function(e){const t=function(e){return i.get(Object.prototype.toString.call(e))}(e),r="Object"===t&&e._bsontype;return{type:r||t,isBSON:!!r}}(e),s=o[n.type];return s?s(e):r(e)}),t||" ")}t.toJSString=s,t.stringify=function(e){return s(e)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},5716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Admin=void 0;const n=r(3186),i=r(7445),o=r(1608),s=r(8521),a=r(25),u=r(6540);t.Admin=class{constructor(e){this.s={db:e}}async command(e,t){return(0,i.executeOperation)(this.s.db.client,new a.RunCommandOperation(this.s.db,e,{dbName:"admin",...t}))}async buildInfo(e){return this.command({buildinfo:1},e)}async serverInfo(e){return this.command({buildinfo:1},e)}async serverStatus(e){return this.command({serverStatus:1},e)}async ping(e){return this.command({ping:1},e)}async addUser(e,t,r){r=null!=r&&"object"==typeof r?r:null!=t&&"object"==typeof t?t:void 0;const o="string"==typeof t?t:void 0;return(0,i.executeOperation)(this.s.db.client,new n.AddUserOperation(this.s.db,e,o,{dbName:"admin",...r}))}async removeUser(e,t){return(0,i.executeOperation)(this.s.db.client,new s.RemoveUserOperation(this.s.db,e,{dbName:"admin",...t}))}async validateCollection(e,t={}){return(0,i.executeOperation)(this.s.db.client,new u.ValidateCollectionOperation(this,e,t))}async listDatabases(e){return(0,i.executeOperation)(this.s.db.client,new o.ListDatabasesOperation(this.s.db,e))}async replSetGetStatus(e){return this.command({replSetGetStatus:1},e)}}},9064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBSONOptions=t.pluckBSONSerializeOptions=t.Timestamp=t.serialize=t.ObjectId=t.MinKey=t.MaxKey=t.Long=t.Int32=t.Double=t.deserialize=t.Decimal128=t.DBRef=t.Code=t.calculateObjectSize=t.BSONType=t.BSONSymbol=t.BSONRegExp=t.BSON=t.Binary=void 0;var n=r(345);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return n.Binary}}),Object.defineProperty(t,"BSON",{enumerable:!0,get:function(){return n.BSON}}),Object.defineProperty(t,"BSONRegExp",{enumerable:!0,get:function(){return n.BSONRegExp}}),Object.defineProperty(t,"BSONSymbol",{enumerable:!0,get:function(){return n.BSONSymbol}}),Object.defineProperty(t,"BSONType",{enumerable:!0,get:function(){return n.BSONType}}),Object.defineProperty(t,"calculateObjectSize",{enumerable:!0,get:function(){return n.calculateObjectSize}}),Object.defineProperty(t,"Code",{enumerable:!0,get:function(){return n.Code}}),Object.defineProperty(t,"DBRef",{enumerable:!0,get:function(){return n.DBRef}}),Object.defineProperty(t,"Decimal128",{enumerable:!0,get:function(){return n.Decimal128}}),Object.defineProperty(t,"deserialize",{enumerable:!0,get:function(){return n.deserialize}}),Object.defineProperty(t,"Double",{enumerable:!0,get:function(){return n.Double}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return n.Int32}}),Object.defineProperty(t,"Long",{enumerable:!0,get:function(){return n.Long}}),Object.defineProperty(t,"MaxKey",{enumerable:!0,get:function(){return n.MaxKey}}),Object.defineProperty(t,"MinKey",{enumerable:!0,get:function(){return n.MinKey}}),Object.defineProperty(t,"ObjectId",{enumerable:!0,get:function(){return n.ObjectId}}),Object.defineProperty(t,"serialize",{enumerable:!0,get:function(){return n.serialize}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return n.Timestamp}}),t.pluckBSONSerializeOptions=function(e){const{fieldsAsRaw:t,useBigInt64:r,promoteValues:n,promoteBuffers:i,promoteLongs:o,serializeFunctions:s,ignoreUndefined:a,bsonRegExp:u,raw:c,enableUtf8Validation:l}=e;return{fieldsAsRaw:t,useBigInt64:r,promoteValues:n,promoteBuffers:i,promoteLongs:o,serializeFunctions:s,ignoreUndefined:a,bsonRegExp:u,raw:c,enableUtf8Validation:l}},t.resolveBSONOptions=function(e,t){const r=t?.bsonOptions;return{raw:e?.raw??r?.raw??!1,useBigInt64:e?.useBigInt64??r?.useBigInt64??!1,promoteLongs:e?.promoteLongs??r?.promoteLongs??!0,promoteValues:e?.promoteValues??r?.promoteValues??!0,promoteBuffers:e?.promoteBuffers??r?.promoteBuffers??!1,ignoreUndefined:e?.ignoreUndefined??r?.ignoreUndefined??!1,bsonRegExp:e?.bsonRegExp??r?.bsonRegExp??!1,serializeFunctions:e?.serializeFunctions??r?.serializeFunctions??!1,fieldsAsRaw:e?.fieldsAsRaw??r?.fieldsAsRaw??{},enableUtf8Validation:e?.enableUtf8Validation??r?.enableUtf8Validation??!0}}},363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BulkOperationBase=t.FindOperators=t.MongoBulkWriteError=t.mergeBatchResults=t.WriteError=t.WriteConcernError=t.BulkWriteResult=t.Batch=t.BatchType=void 0;const n=r(9064),i=r(4947),o=r(7237),s=r(7445),a=r(7159),u=r(5172),c=r(5556),l=r(2229),d=r(4620),h=Symbol("serverError");t.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3}),t.Batch=class{constructor(e,t){this.originalZeroIndex=t,this.currentIndex=0,this.originalIndexes=[],this.batchType=e,this.operations=[],this.size=0,this.sizeBytes=0}};class p{static generateIdMap(e){const t={};for(const r of e)t[r.index]=r._id;return t}constructor(e){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=p.generateIdMap(this.result.upserted),this.insertedIds=p.generateIdMap(this.result.insertedIds),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}get ok(){return this.result.ok}get nInserted(){return this.result.nInserted}get nUpserted(){return this.result.nUpserted}get nMatched(){return this.result.nMatched}get nModified(){return this.result.nModified}get nRemoved(){return this.result.nRemoved}getInsertedIds(){return this.result.insertedIds}getUpsertedIds(){return this.result.upserted}getUpsertedIdAt(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(0!==this.result.writeConcernErrors.length){if(1===this.result.writeConcernErrors.length)return this.result.writeConcernErrors[0];{let e="";for(let t=0;t<this.result.writeConcernErrors.length;t++)e+=this.result.writeConcernErrors[t].errmsg,0===t&&(e+=" and ");return new f({errmsg:e,code:i.MONGODB_ERROR_CODES.WriteConcernFailed})}}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return 1===this.result.ok}}t.BulkWriteResult=p;class f{constructor(e){this[h]=e}get code(){return this[h].code}get errmsg(){return this[h].errmsg}get errInfo(){return this[h].errInfo}toJSON(){return this[h]}toString(){return`WriteConcernError(${this.errmsg})`}}t.WriteConcernError=f;class m{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())})`}}function g(e,t,r,n){if(r?n=r:n&&n.result&&(n=n.result),null==n)return;if(0===n.ok&&1===t.ok){t.ok=0;const r={index:0,code:n.code||0,errmsg:n.message,errInfo:n.errInfo,op:e.operations[0]};return void t.writeErrors.push(new m(r))}if(0===n.ok&&0===t.ok)return;S(e)&&n.n&&(t.nInserted=t.nInserted+n.n),O(e)&&n.n&&(t.nRemoved=t.nRemoved+n.n);let i=0;if(Array.isArray(n.upserted)){i=n.upserted.length;for(let r=0;r<n.upserted.length;r++)t.upserted.push({index:n.upserted[r].index+e.originalZeroIndex,_id:n.upserted[r]._id})}else n.upserted&&(i=1,t.upserted.push({index:e.originalZeroIndex,_id:n.upserted}));if(w(e)&&n.n){const e=n.nModified;t.nUpserted=t.nUpserted+i,t.nMatched=t.nMatched+(n.n-i),t.nModified="number"==typeof e?t.nModified+e:0}if(Array.isArray(n.writeErrors))for(let r=0;r<n.writeErrors.length;r++){const i={index:e.originalIndexes[n.writeErrors[r].index],code:n.writeErrors[r].code,errmsg:n.writeErrors[r].errmsg,errInfo:n.writeErrors[r].errInfo,op:e.operations[n.writeErrors[r].index]};t.writeErrors.push(new m(i))}n.writeConcernError&&t.writeConcernErrors.push(new f(n.writeConcernError))}function E(e,t,r){if(0===e.s.batches.length)return r(void 0,new p(e.s.bulkResult));const n=e.s.batches.shift();function u(o,s){if(o&&"message"in o&&!(o instanceof i.MongoWriteConcernError))return r(new y(o,new p(e.s.bulkResult)));if(o instanceof i.MongoWriteConcernError)return function(e,t,r,n){g(e,t,void 0,r.result),n(new y({message:r.result?.writeConcernError.errmsg,code:r.result?.writeConcernError.result},new p(t)))}(n,e.s.bulkResult,o,r);g(n,e.s.bulkResult,o,s);const a=new p(e.s.bulkResult);e.handleWriteError(r,a)||E(e,t,r)}const d=(0,l.resolveOptions)(e,{...t,ordered:e.isOrdered});!0!==d.bypassDocumentValidation&&delete d.bypassDocumentValidation,e.operationId&&(u.operationId=e.operationId),!0===e.s.bypassDocumentValidation&&(d.bypassDocumentValidation=!0),!1===e.s.checkKeys&&(d.checkKeys=!1),d.retryWrites&&(w(n)&&(d.retryWrites=d.retryWrites&&!n.operations.some((e=>e.multi))),O(n)&&(d.retryWrites=d.retryWrites&&!n.operations.some((e=>0===e.limit))));try{S(n)?(0,s.executeOperation)(e.s.collection.client,new a.InsertOperation(e.s.namespace,n.operations,d),u):w(n)?(0,s.executeOperation)(e.s.collection.client,new c.UpdateOperation(e.s.namespace,n.operations,d),u):O(n)&&(0,s.executeOperation)(e.s.collection.client,new o.DeleteOperation(e.s.namespace,n.operations,d),u)}catch(t){t.ok=0,g(n,e.s.bulkResult,t,void 0),r()}}t.WriteError=m,t.mergeBatchResults=g;class y extends i.MongoServerError{constructor(e,t){super(e),this.writeErrors=[],e instanceof f?this.err=e:e instanceof Error||(this.message=e.message,this.code=e.code,this.writeErrors=e.writeErrors??[]),this.result=t,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}}t.MongoBulkWriteError=y;class v{constructor(e){this.bulkOperation=e}update(e){const r=_(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,c.makeUpdateStatement)(r.selector,e,{...r,multi:!0}))}updateOne(e){if(!(0,l.hasAtomicOperators)(e))throw new i.MongoInvalidArgumentError("Update document requires atomic operators");const r=_(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,c.makeUpdateStatement)(r.selector,e,{...r,multi:!1}))}replaceOne(e){if((0,l.hasAtomicOperators)(e))throw new i.MongoInvalidArgumentError("Replacement document must not use atomic operators");const r=_(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,c.makeUpdateStatement)(r.selector,e,{...r,multi:!1}))}deleteOne(){const e=_(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.selector,{...e,limit:1}))}delete(){const e=_(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.selector,{...e,limit:0}))}upsert(){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.upsert=!0,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}}t.FindOperators=v;class A extends u.AbstractCallbackOperation{constructor(e,t){super(t),this.bulkOperation=e}executeCallback(e,t,r){return null==this.options.session&&(this.options.session=t),E(this.bulkOperation,this.options,r)}}class C{constructor(e,t,r){this.isOrdered=r;const i=(0,l.getTopology)(e);t=null==t?{}:t;const o=e.s.namespace,s=i.lastHello(),a=!(!i.s.options||!i.s.options.autoEncrypter),u=s&&s.maxBsonObjectSize?s.maxBsonObjectSize:16777216,c=a?2097152:u,h=s&&s.maxWriteBatchSize?s.maxWriteBatchSize:1e3,p=(h-1).toString(10).length+2;let f=Object.assign({},t);f=(0,l.applyRetryableWrites)(f,e.s.db),this.s={bulkResult:{ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]},currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:d.WriteConcern.fromOptions(t),maxBsonObjectSize:u,maxBatchSizeBytes:c,maxWriteBatchSize:h,maxKeySize:p,namespace:o,topology:i,options:f,bsonOptions:(0,n.resolveBSONOptions)(t),currentOp:void 0,executed:!1,collection:e,err:void 0,checkKeys:"boolean"==typeof t.checkKeys&&t.checkKeys},!0===t.bypassDocumentValidation&&(this.s.bypassDocumentValidation=!0)}insert(e){return null!=e._id||b(this)||(e._id=new n.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e)}find(e){if(!e)throw new i.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:e},new v(this)}raw(e){if(null==e||"object"!=typeof e)throw new i.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in e){const r=b(this);return e.insertOne&&null==e.insertOne.document?(!0!==r&&null==e.insertOne._id&&(e.insertOne._id=new n.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e.insertOne)):(!0!==r&&null==e.insertOne.document._id&&(e.insertOne.document._id=new n.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e.insertOne.document))}if("replaceOne"in e||"updateOne"in e||"updateMany"in e){if("replaceOne"in e){if("q"in e.replaceOne)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");const r=(0,c.makeUpdateStatement)(e.replaceOne.filter,e.replaceOne.replacement,{...e.replaceOne,multi:!1});if((0,l.hasAtomicOperators)(r.u))throw new i.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,r)}if("updateOne"in e){if("q"in e.updateOne)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");const r=(0,c.makeUpdateStatement)(e.updateOne.filter,e.updateOne.update,{...e.updateOne,multi:!1});if(!(0,l.hasAtomicOperators)(r.u))throw new i.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,r)}if("updateMany"in e){if("q"in e.updateMany)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");const r=(0,c.makeUpdateStatement)(e.updateMany.filter,e.updateMany.update,{...e.updateMany,multi:!0});if(!(0,l.hasAtomicOperators)(r.u))throw new i.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,r)}}if("deleteOne"in e){if("q"in e.deleteOne)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.deleteOne.filter,{...e.deleteOne,limit:1}))}if("deleteMany"in e){if("q"in e.deleteMany)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.deleteMany.filter,{...e.deleteMany,limit:0}))}throw new i.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const 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 i.MongoBatchReExecutionError;const t=d.WriteConcern.fromOptions(e);if(t&&(this.s.writeConcern=t),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)),0===this.s.batches.length)throw new i.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const r={...this.s.options,...e},n=new A(this,r);return(0,s.executeOperation)(this.s.collection.client,n)}handleWriteError(e,t){if(this.s.bulkResult.writeErrors.length>0){const r=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return e(new y({message:r,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},t)),!0}const r=t.getWriteConcernError();return!!r&&(e(new y(r,t)),!0)}}function b(e){return"boolean"==typeof e.s.options.forceServerObjectId?e.s.options.forceServerObjectId:"boolean"==typeof e.s.collection.s.db.options?.forceServerObjectId&&e.s.collection.s.db.options?.forceServerObjectId}function S(e){return e.batchType===t.BatchType.INSERT}function w(e){return e.batchType===t.BatchType.UPDATE}function O(e){return e.batchType===t.BatchType.DELETE}function _(e){let{currentOp:t}=e.s;return e.s.currentOp=void 0,t||(t={}),t}t.BulkOperationBase=C,Object.defineProperty(C.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})},3868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrderedBulkOperation=void 0;const n=r(9064),i=r(4947),o=r(363);class s extends o.BulkOperationBase{constructor(e,t){super(e,t,!0)}addToOperationsList(e,t){const r=n.calculateObjectSize(t,{checkKeys:!1,ignoreUndefined:!1});if(r>=this.s.maxBsonObjectSize)throw new i.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);null==this.s.currentBatch&&(this.s.currentBatch=new o.Batch(e,this.s.currentIndex));const s=this.s.maxKeySize;if((this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+s+r>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new o.Batch(e,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0),e===o.BatchType.INSERT&&this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:t._id}),Array.isArray(t))throw new i.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(t),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=s+r,this.s.currentIndex+=1,this}}t.OrderedBulkOperation=s},1625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnorderedBulkOperation=void 0;const n=r(9064),i=r(4947),o=r(363);class s extends o.BulkOperationBase{constructor(e,t){super(e,t,!1)}handleWriteError(e,t){return!this.s.batches.length&&super.handleWriteError(e,t)}addToOperationsList(e,t){const r=n.calculateObjectSize(t,{checkKeys:!1,ignoreUndefined:!1});if(r>=this.s.maxBsonObjectSize)throw new i.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);this.s.currentBatch=void 0,e===o.BatchType.INSERT?this.s.currentBatch=this.s.currentInsertBatch:e===o.BatchType.UPDATE?this.s.currentBatch=this.s.currentUpdateBatch:e===o.BatchType.DELETE&&(this.s.currentBatch=this.s.currentRemoveBatch);const s=this.s.maxKeySize;if(null==this.s.currentBatch&&(this.s.currentBatch=new o.Batch(e,this.s.currentIndex)),(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+s+r>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new o.Batch(e,this.s.currentIndex)),Array.isArray(t))throw new i.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.operations.push(t),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,e===o.BatchType.INSERT?(this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:t._id})):e===o.BatchType.UPDATE?this.s.currentUpdateBatch=this.s.currentBatch:e===o.BatchType.DELETE&&(this.s.currentRemoveBatch=this.s.currentBatch),this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=s+r,this}}t.UnorderedBulkOperation=s},4747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStream=void 0;const n=r(8971),i=r(5006),o=r(2206),s=r(2644),a=r(4947),u=r(2319),c=r(334),l=r(2229),d=Symbol("cursorStream"),h=Symbol("closed"),p=Symbol("mode"),f=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],m={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},g=[i.RESUME_TOKEN_CHANGED,i.END,i.CLOSE],E="ChangeStream is closed";class y extends c.TypedEventEmitter{constructor(e,t=[],r={}){if(super(),this.pipeline=t,this.options={...r},delete this.options.writeConcern,e instanceof n.Collection)this.type=m.COLLECTION;else if(e instanceof s.Db)this.type=m.DATABASE;else{if(!(e instanceof u.MongoClient))throw new a.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");this.type=m.CLUSTER}this.parent=e,this.namespace=e.s.namespace,!this.options.readPreference&&e.readPreference&&(this.options.readPreference=e.readPreference),this.cursor=this._createChangeStreamCursor(r),this[h]=!1,this[p]=!1,this.on("newListener",(e=>{"change"===e&&this.cursor&&0===this.listenerCount("change")&&this._streamEvents(this.cursor)})),this.on("removeListener",(e=>{"change"===e&&0===this.listenerCount("change")&&this.cursor&&this[d]?.removeAllListeners("data")}))}get cursorStream(){return this[d]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){for(this._setIsIterator();;)try{return await this.cursor.hasNext()}catch(e){try{await this._processErrorIteratorMode(e)}catch(e){try{await this.close()}catch{}throw e}}}async next(){for(this._setIsIterator();;)try{const e=await this.cursor.next();return this._processChange(e??null)}catch(e){try{await this._processErrorIteratorMode(e)}catch(e){try{await this.close()}catch{}throw e}}}async tryNext(){for(this._setIsIterator();;)try{return await this.cursor.tryNext()??null}catch(e){try{await this._processErrorIteratorMode(e)}catch(e){try{await this.close()}catch{}throw e}}}async*[Symbol.asyncIterator](){if(!this.closed)try{for(;;)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[h]||this.cursor.closed}async close(){this[h]=!0;const e=this.cursor;try{await e.close()}finally{this._endStream()}}stream(e){if(this.closed)throw new a.MongoChangeStreamError(E);return this.streamOptions=e,this.cursor.stream(e)}_setIsEmitter(){if("iterator"===this[p])throw new a.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[p]="emitter"}_setIsIterator(){if("emitter"===this[p])throw new a.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[p]="iterator"}_createChangeStreamCursor(e){const t=(0,l.filterOptions)(e,f);this.type===m.CLUSTER&&(t.allChangesForCluster=!0);const r=[{$changeStream:t},...this.pipeline],n=this.type===m.CLUSTER?this.parent:this.type===m.DATABASE||this.type===m.COLLECTION?this.parent.client:null;if(null==n)throw new a.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const i=new o.ChangeStreamCursor(n,this.namespace,r,e);for(const e of g)i.on(e,(t=>this.emit(e,t)));return this.listenerCount(y.CHANGE)>0&&this._streamEvents(i),i}_closeEmitterModeWithError(e){this.emit(y.ERROR,e),this.close().catch((()=>null))}_streamEvents(e){this._setIsEmitter();const t=this[d]??e.stream();this[d]=t,t.on("data",(e=>{try{const t=this._processChange(e);this.emit(y.CHANGE,t)}catch(e){this.emit(y.ERROR,e)}})),t.on("error",(e=>this._processErrorStreamMode(e)))}_endStream(){const e=this[d];e&&(["data","close","end","error"].forEach((t=>e.removeAllListeners(t))),e.destroy()),this[d]=void 0}_processChange(e){if(this[h])throw new a.MongoAPIError(E);if(null==e)throw new a.MongoRuntimeError(E);if(e&&!e._id)throw new a.MongoChangeStreamError("A change stream document has been received that lacks a resume token (_id).");return this.cursor.cacheResumeToken(e._id),this.options.startAtOperationTime=void 0,e}_processErrorStreamMode(e){this[h]||((0,a.isResumableError)(e,this.cursor.maxWireVersion)?(this._endStream(),this.cursor.close().catch((()=>null)),(0,l.getTopology)(this.parent).selectServer(this.cursor.readPreference,{},(t=>{if(t)return this._closeEmitterModeWithError(e);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}))):this._closeEmitterModeWithError(e))}async _processErrorIteratorMode(e){if(this[h])throw new a.MongoAPIError(E);if(!(0,a.isResumableError)(e,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw e}await this.cursor.close().catch((()=>null));const t=(0,l.getTopology)(this.parent);try{await t.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),e}}}y.RESPONSE=i.RESPONSE,y.MORE=i.MORE,y.INIT=i.INIT,y.CLOSE=i.CLOSE,y.CHANGE=i.CHANGE,y.END=i.END,y.ERROR=i.ERROR,y.RESUME_TOKEN_CHANGED=i.RESUME_TOKEN_CHANGED,t.ChangeStream=y},590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthProvider=t.AuthContext=void 0;const n=r(4947);t.AuthContext=class{constructor(e,t,r){this.reauthenticating=!1,this.connection=e,this.credentials=t,this.options=r}},t.AuthProvider=class{async prepare(e,t){return e}async reauth(e){if(e.reauthenticating)throw new n.MongoRuntimeError("Reauthentication already in progress.");try{e.reauthenticating=!0,await this.auth(e)}finally{e.reauthenticating=!1}}}},2403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCname=t.performGSSAPICanonicalizeHostName=t.GSSAPI=t.GSSAPICanonicalizationValue=void 0;const n=r(665),i=r(8808),o=r(4947),s=r(2229),a=r(590);async function u(e,t){return e.commandAsync((0,s.ns)("$external.$cmd"),t,void 0)}let c;t.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});class l extends a.AuthProvider{async auth(e){const{connection:t,credentials:r}=e;if(null==r)throw new o.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:n}=r,s=await async function(e){const{hostAddress:t}=e.options,{credentials:r}=e;if(!t||"string"!=typeof t.host||!r)throw new o.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(c||(c=(0,i.getKerberos)()),"kModuleError"in c)throw c.kModuleError;const{initializeClient:n}=c,{username:s,password:a}=r,u=r.mechanismProperties,l=u.SERVICE_NAME??"mongodb",d=await h(t.host,u),p={};null!=a&&Object.assign(p,{user:s,password:a});const f=u.SERVICE_HOST??d;let m=`${l}${"win32"===process.platform?"/":"@"}${f}`;return"SERVICE_REALM"in u&&(m=`${m}@${u.SERVICE_REALM}`),n(m,p)}(e),a=await s.step(""),l=await u(t,function(e){return{saslStart:1,mechanism:"GSSAPI",payload:e,autoAuthorize:1}}(a)),p=await d(s,10,l.payload),f=await u(t,function(e,t){return{saslContinue:1,conversationId:t,payload:e}}(p,l.conversationId)),m=await async function(e,t,r){const n=await e.unwrap(r);return e.wrap(n||"",{user:t})}(s,n,f.payload);await u(t,{saslContinue:1,conversationId:f.conversationId,payload:m})}}async function d(e,t,r){try{return await e.step(r)||""}catch(n){if(0===t)throw n;return d(e,t-1,r)}}async function h(e,r){const i=r.CANONICALIZE_HOST_NAME;if(!i||i===t.GSSAPICanonicalizationValue.none)return e;if(i!==t.GSSAPICanonicalizationValue.on&&i!==t.GSSAPICanonicalizationValue.forwardAndReverse)return p(e);{const{address:t}=await n.promises.lookup(e);try{const r=await n.promises.resolvePtr(t);return r.length>0?r[0]:e}catch(t){return p(e)}}}async function p(e){try{const t=await n.promises.resolveCname(e);return t.length>0?t[0]:e}catch{return e}}t.GSSAPI=l,t.performGSSAPICanonicalizeHostName=h,t.resolveCname=p},4064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoCredentials=t.DEFAULT_ALLOWED_HOSTS=void 0;const n=r(4947),i=r(2403),o=r(4511);function s(e){if(e){if(Array.isArray(e.saslSupportedMechs))return e.saslSupportedMechs.includes(o.AuthMechanism.MONGODB_SCRAM_SHA256)?o.AuthMechanism.MONGODB_SCRAM_SHA256:o.AuthMechanism.MONGODB_SCRAM_SHA1;if(e.maxWireVersion>=3)return o.AuthMechanism.MONGODB_SCRAM_SHA1}return o.AuthMechanism.MONGODB_CR}const a=["aws","azure"],u="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";t.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];class c{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||o.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),null==this.mechanismProperties.AWS_SESSION_TOKEN&&null!=process.env.AWS_SESSION_TOKEN&&(this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN})),this.mechanism!==o.AuthMechanism.MONGODB_OIDC||this.mechanismProperties.ALLOWED_HOSTS||(this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:t.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 c({username:this.username,password:this.password,source:this.source,mechanism:s(e),mechanismProperties:this.mechanismProperties}):this}validate(){if((this.mechanism===o.AuthMechanism.MONGODB_GSSAPI||this.mechanism===o.AuthMechanism.MONGODB_CR||this.mechanism===o.AuthMechanism.MONGODB_PLAIN||this.mechanism===o.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===o.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new n.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===o.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new n.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if("azure"===this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new n.MongoAzureError("TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.");if(this.mechanismProperties.PROVIDER_NAME&&!a.includes(this.mechanismProperties.PROVIDER_NAME))throw new n.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${a.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new n.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new n.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const e=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(e))throw new n.MongoInvalidArgumentError(u);for(const t of e)if("string"!=typeof t)throw new n.MongoInvalidArgumentError(u)}}if(o.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)&&null!=this.source&&"$external"!==this.source)throw new n.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`);if(this.mechanism===o.AuthMechanism.MONGODB_PLAIN&&null==this.source)throw new n.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===o.AuthMechanism.MONGODB_X509&&null!=this.password){if(""===this.password)return void Reflect.set(this,"password",void 0);throw new n.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const e=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(i.GSSAPICanonicalizationValue).includes(e))throw new n.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${e}`)}static merge(e,t){return new c({username:t.username??e?.username??"",password:t.password??e?.password??"",mechanism:t.mechanism??e?.mechanism??o.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:t.mechanismProperties??e?.mechanismProperties??{},source:t.source??t.db??e?.source??"admin"})}}t.MongoCredentials=c},6614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoCR=void 0;const n=r(4770),i=r(4947),o=r(2229),s=r(590);class a extends s.AuthProvider{async auth(e){const{connection:t,credentials:r}=e;if(!r)throw new i.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:s,password:a,source:u}=r,{nonce:c}=await t.commandAsync((0,o.ns)(`${u}.$cmd`),{getnonce:1},void 0),l=n.createHash("md5").update(`${s}:mongo:${a}`,"utf8").digest("hex"),d={authenticate:1,user:s,nonce:c,key:n.createHash("md5").update(`${c}${s}${l}`,"utf8").digest("hex")};await t.commandAsync((0,o.ns)(`${u}.$cmd`),d,void 0)}}t.MongoCR=a},3354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoDBAWS=void 0;const n=r(4770),i=r(1764),o=r(9064),s=r(8808),a=r(4947),u=r(2229),c=r(590),l=r(4064),d=r(4511),h="http://169.254.169.254",p="/latest/meta-data/iam/security-credentials",f={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class m extends c.AuthProvider{constructor(){super(),this.randomBytesAsync=(0,i.promisify)(n.randomBytes)}async auth(e){const{connection:t}=e;if(!e.credentials)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in s.aws4)throw s.aws4.kModuleError;const{sign:r}=s.aws4;if((0,u.maxWireVersion)(t)<9)throw new a.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");e.credentials.username||(e.credentials=await async function(e){function t(t){if(!t.AccessKeyId||!t.SecretAccessKey||!t.Token)throw new a.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new l.MongoCredentials({username:t.AccessKeyId,password:t.SecretAccessKey,source:e.source,mechanism:d.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:t.Token}})}const r=(0,s.getAwsCredentialProvider)();if("kModuleError"in r){if(process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return t(await(0,u.request)(`http://169.254.170.2${process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const e=await(0,u.request)(`${h}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),r=await(0,u.request)(`${h}/${p}`,{json:!1,headers:{"X-aws-ec2-metadata-token":e}});return t(await(0,u.request)(`${h}/${p}/${r}`,{headers:{"X-aws-ec2-metadata-token":e}}))}{const{fromNodeProviderChain:e}=r,n=e();try{const e=await n();return t({AccessKeyId:e.accessKeyId,SecretAccessKey:e.secretAccessKey,Token:e.sessionToken,Expiration:e.expiration})}catch(e){throw new a.MongoAWSError(e.message)}}}(e.credentials));const{credentials:n}=e,i=n.username,c=n.password,m=n.mechanismProperties.AWS_SESSION_TOKEN,E=i&&c&&m?{accessKeyId:i,secretAccessKey:c,sessionToken:m}:i&&c?{accessKeyId:i,secretAccessKey:c}:void 0,y=n.source,v=await this.randomBytesAsync(32),A={saslStart:1,mechanism:"MONGODB-AWS",payload:o.serialize({r:v,p:110},f)},C=await t.commandAsync((0,u.ns)(`${y}.$cmd`),A,void 0),b=o.deserialize(C.payload.buffer,f),S=b.h,w=b.s.buffer;if(64!==w.length)throw new a.MongoRuntimeError(`Invalid server nonce length ${w.length}, expected 64`);if(!u.ByteUtils.equals(w.subarray(0,v.byteLength),v))throw new a.MongoRuntimeError("Server nonce does not begin with client nonce");if(S.length<1||S.length>255||-1!==S.indexOf(".."))throw new a.MongoRuntimeError(`Server returned an invalid host: "${S}"`);const O=r({method:"POST",host:S,region:g(b.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":43,"X-MongoDB-Server-Nonce":u.ByteUtils.toBase64(w),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:"Action=GetCallerIdentity&Version=2011-06-15"},E),_={a:O.headers.Authorization,d:O.headers["X-Amz-Date"]};m&&(_.t=m);const x={saslContinue:1,conversationId:1,payload:o.serialize(_,f)};await t.commandAsync((0,u.ns)(`${y}.$cmd`),x,void 0)}}function g(e){const t=e.split(".");return 1===t.length||"amazonaws"===t[1]?"us-east-1":t[1]}t.MongoDBAWS=m},8205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoDBOIDC=t.OIDC_WORKFLOWS=void 0;const n=r(4947),i=r(590),o=r(4272),s=r(4253),a=r(8450);t.OIDC_WORKFLOWS=new Map,t.OIDC_WORKFLOWS.set("callback",new a.CallbackWorkflow),t.OIDC_WORKFLOWS.set("aws",new o.AwsServiceWorkflow),t.OIDC_WORKFLOWS.set("azure",new s.AzureServiceWorkflow);class u extends i.AuthProvider{constructor(){super()}async auth(e){const{connection:t,reauthenticating:r,response:n}=e,i=c(e),o=l(i);await o.execute(t,i,r,n)}async prepare(e,t){const r=c(t),n=l(r);return{...e,...await n.speculativeAuth(r)}}}function c(e){const{credentials:t}=e;if(!t)throw new n.MongoMissingCredentialsError("AuthContext must provide credentials.");return t}function l(e){const r=e.mechanismProperties.PROVIDER_NAME,i=t.OIDC_WORKFLOWS.get(r||"callback");if(!i)throw new n.MongoInvalidArgumentError(`Could not load workflow for provider ${e.mechanismProperties.PROVIDER_NAME}`);return i}t.MongoDBOIDC=u},4272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsServiceWorkflow=void 0;const n=r(2048),i=r(4947),o=r(4605);class s extends o.ServiceWorkflow{constructor(){super()}async getToken(){const e=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!e)throw new i.MongoAWSError("AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.");return n.promises.readFile(e,"utf8")}}t.AwsServiceWorkflow=s},4253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureServiceWorkflow=void 0;const n=r(4947),i=r(2229),o=r(5362),s=r(4605),a=Object.freeze({Metadata:"true",Accept:"application/json"});class u extends s.ServiceWorkflow{constructor(){super(...arguments),this.cache=new o.AzureTokenCache}async getToken(e){const t=e?.mechanismProperties.TOKEN_AUDIENCE;if(!t)throw new n.MongoAzureError("TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.");let r;const o=this.cache.getEntry(t);if(o?.isValid())r=o.token;else{this.cache.deleteEntry(t);const e=await async function(e){const t=`http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=${e}`;return await(0,i.request)(t,{json:!0,headers:a})}(t);if(!function(e){return null!=e&&"object"==typeof e&&"access_token"in e&&"expires_in"in e}(e))throw new n.MongoAzureError("Azure endpoint did not return a value with only access_token and expires_in properties");this.cache.addEntry(t,e),r=e.access_token}return r}}t.AzureServiceWorkflow=u},5362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureTokenCache=t.AzureTokenEntry=void 0;const n=r(1539);class i extends n.ExpiringCacheEntry{constructor(e,t){super(t),this.token=e}}t.AzureTokenEntry=i;class o extends n.Cache{addEntry(e,t){const r=new i(t.access_token,t.expires_in);return this.entries.set(e,r),r}cacheKey(e){return e}deleteEntry(e){this.entries.delete(e)}getEntry(e){return this.entries.get(e)}}t.AzureTokenCache=o},1539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=t.ExpiringCacheEntry=void 0,t.ExpiringCacheEntry=class{constructor(e){this.expiration=this.expirationTime(e)}isValid(){return this.expiration-Date.now()>3e5}expirationTime(e){return Date.now()+1e3*e}},t.Cache=class{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(e,t,r){return JSON.stringify([e,t,r])}}},8801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallbackLockCache=void 0;const n=r(4947),i=r(1539);let o=0;const s=async()=>({accessToken:"test"}),a=new WeakMap;a.set(s,o);class u extends i.Cache{getEntry(e,t){const r=t.mechanismProperties.REQUEST_TOKEN_CALLBACK,i=t.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!r)throw new n.MongoInvalidArgumentError("Auth mechanism property REQUEST_TOKEN_CALLBACK is required.");const u=function(e,t){let r=a.get(e),n=a.get(t??s);return null==r&&(o++,r=o,a.set(e,o)),null==n&&t&&(o++,n=o,a.set(t,o)),`${r}-${n}`}(r,i),c=this.cacheKey(e.address,t.username,u);return this.entries.get(c)||this.addEntry(c,u,r,i)}addEntry(e,t,r,n){const i={requestCallback:c(r),refreshCallback:n?c(n):void 0,callbackHash:t};return this.entries.set(e,i),i}cacheKey(e,t,r){return this.hashedCacheKey(e,t,r)}}function c(e){let t=Promise.resolve();return async(r,n)=>(await t,t=t.then((()=>e(r,n))),t)}t.CallbackLockCache=u},8450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallbackWorkflow=void 0;const n=r(345),i=r(4947),o=r(2229),s=r(4511),a=r(8801),u=r(1832),c=["accessToken","expiresInSeconds","refreshToken"];function l(e){const t={};return e.username&&(t.n=e.username),{saslStart:1,autoAuthorize:1,mechanism:s.AuthMechanism.MONGODB_OIDC,payload:new n.Binary(n.BSON.serialize(t))}}t.CallbackWorkflow=class{constructor(){this.cache=new u.TokenEntryCache,this.callbackCache=new a.CallbackLockCache}async speculativeAuth(e){const t=l(e);return t.db=e.source,{speculativeAuthenticate:t}}async execute(e,t,r,o){const{requestCallback:s,refreshCallback:a,callbackHash:u}=this.callbackCache.getEntry(e,t),c=this.cache.getEntry(e.address,t.username,u);let l;if(c)if(c.isValid()&&!r)l=await this.finishAuthentication(e,t,c.tokenResult,o?.speculativeAuthenticate?.conversationId);else{const n=await this.fetchAccessToken(e,t,c.serverInfo,r,u,s,a);try{l=await this.finishAuthentication(e,t,n,r?void 0:o?.speculativeAuthenticate?.conversationId)}catch(n){if(!(r&&n instanceof i.MongoError&&n.code===i.MONGODB_ERROR_CODES.Reauthenticate))throw n;this.cache.deleteEntry(e.address,t.username,u),l=await this.execute(e,t,r)}}else{const i=await this.startAuthentication(e,t,r,o),c=i.conversationId,d=n.BSON.deserialize(i.payload.buffer),h=await this.fetchAccessToken(e,t,d,r,u,s,a);l=await this.finishAuthentication(e,t,h,c)}return l}async startAuthentication(e,t,r,n){let i;return i=!r&&n?.speculativeAuthenticate?n.speculativeAuthenticate:await e.commandAsync((0,o.ns)(t.source),l(t),void 0),i}async finishAuthentication(e,t,r,i){const a=await e.commandAsync((0,o.ns)(t.source),function(e,t){return null!=t&&"number"==typeof t?{saslContinue:1,conversationId:t,payload:new n.Binary(n.BSON.serialize({jwt:e}))}:{saslStart:1,mechanism:s.AuthMechanism.MONGODB_OIDC,payload:new n.Binary(n.BSON.serialize({jwt:e}))}}(r.accessToken,i),void 0);return a}async fetchAccessToken(e,t,r,n,o,s,a){const u=this.cache.getEntry(e.address,t.username,o);let l;const d={timeoutSeconds:300,version:0};if(u){if(u.isValid()&&!n)return u.tokenResult;a?(d.refreshToken=u.tokenResult.refreshToken,l=await a(r,d)):l=await s(r,d)}else l=await s(r,d);if(null==(h=l)||"object"!=typeof h||!("accessToken"in h)||!Object.getOwnPropertyNames(h).every((e=>c.includes(e))))throw this.cache.deleteEntry(e.address,t.username,o),new i.MongoMissingCredentialsError("User provided OIDC callbacks must return a valid object with an accessToken.");var h;return this.cache.deleteExpiredEntries(),this.cache.addEntry(e.address,t.username||"",o,l,r),l}}},4605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandDocument=t.ServiceWorkflow=void 0;const n=r(345),i=r(2229),o=r(4511);function s(e){return{saslStart:1,mechanism:o.AuthMechanism.MONGODB_OIDC,payload:n.BSON.serialize({jwt:e})}}t.ServiceWorkflow=class{async execute(e,t){const r=s(await this.getToken(t));return e.commandAsync((0,i.ns)(t.source),r,void 0)}async speculativeAuth(e){const t=s(await this.getToken(e));return t.db=e.source,{speculativeAuthenticate:t}}},t.commandDocument=s},1832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenEntryCache=t.TokenEntry=void 0;const n=r(1539);class i extends n.ExpiringCacheEntry{constructor(e,t,r){super(r),this.tokenResult=e,this.serverInfo=t}}t.TokenEntry=i;class o extends n.Cache{addEntry(e,t,r,n,o){const s=new i(n,o,n.expiresInSeconds??0);return this.entries.set(this.cacheKey(e,t,r),s),s}deleteEntry(e,t,r){this.entries.delete(this.cacheKey(e,t,r))}getEntry(e,t,r){return this.entries.get(this.cacheKey(e,t,r))}deleteExpiredEntries(){for(const[e,t]of this.entries)t.isValid()||this.entries.delete(e)}cacheKey(e,t,r){return this.hashedCacheKey(e,t,r)}}t.TokenEntryCache=o},6427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plain=void 0;const n=r(9064),i=r(4947),o=r(2229),s=r(590);class a extends s.AuthProvider{async auth(e){const{connection:t,credentials:r}=e;if(!r)throw new i.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:s,password:a}=r,u={saslStart:1,mechanism:"PLAIN",payload:new n.Binary(Buffer.from(`\0${s}\0${a}`)),autoAuthorize:1};await t.commandAsync((0,o.ns)("$external.$cmd"),u,void 0)}}t.Plain=a},4511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_MECHS_AUTH_SRC_EXTERNAL=t.AuthMechanism=void 0,t.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"}),t.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([t.AuthMechanism.MONGODB_GSSAPI,t.AuthMechanism.MONGODB_AWS,t.AuthMechanism.MONGODB_OIDC,t.AuthMechanism.MONGODB_X509])},9755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScramSHA256=t.ScramSHA1=void 0;const n=r(4770),i=r(1764),o=r(9064),s=r(8808),a=r(4947),u=r(2229),c=r(590),l=r(4511);class d extends c.AuthProvider{constructor(e){super(),this.cryptoMethod=e||"sha1",this.randomBytesAsync=(0,i.promisify)(n.randomBytes)}async prepare(e,t){const r=this.cryptoMethod,n=t.credentials;if(!n)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");"sha256"!==r||!("kModuleError"in s.saslprep)&&"function"==typeof s.saslprep||(0,u.emitWarning)("Warning: no saslprep library specified. Passwords will not be sanitized");const i=await this.randomBytesAsync(24);return t.nonce=i,{...e,speculativeAuthenticate:{...f(r,n,i),db:n.source}}}async auth(e){const{reauthenticating:t,response:r}=e;return r?.speculativeAuthenticate&&!t?m(this.cryptoMethod,r.speculativeAuthenticate,e):async function(e,t){const{connection:r,credentials:n}=t;if(!n)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!t.nonce)throw new a.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const i=t.nonce,o=n.source,s=f(e,n,i),c=await r.commandAsync((0,u.ns)(`${o}.$cmd`),s,void 0);await m(e,c,t)}(this.cryptoMethod,e)}}function h(e){return e.replace("=","=3D").replace(",","=2C")}function p(e,t){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(e,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(t.toString("base64"),"utf8")])}function f(e,t,r){const n=h(t.username);return{saslStart:1,mechanism:"sha1"===e?l.AuthMechanism.MONGODB_SCRAM_SHA1:l.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new o.Binary(Buffer.concat([Buffer.from("n,,","utf8"),p(n,r)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}}async function m(e,t,r){const i=r.connection,c=r.credentials;if(!c)throw new a.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!r.nonce)throw new a.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const l=r.nonce,d=c.source,f=h(c.username),m=c.password;let C;C="sha256"===e?"kModuleError"in s.saslprep||"function"!=typeof s.saslprep?m:(0,s.saslprep)(m):function(e,t){if("string"!=typeof e)throw new a.MongoInvalidArgumentError("Username must be a string");if("string"!=typeof t)throw new a.MongoInvalidArgumentError("Password must be a string");if(0===t.length)throw new a.MongoInvalidArgumentError("Password cannot be empty");let r;try{r=n.createHash("md5")}catch(e){if(n.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw e}return r.update(`${e}:mongo:${t}`,"utf8"),r.digest("hex")}(f,m);const b=Buffer.isBuffer(t.payload)?new o.Binary(t.payload):t.payload,S=g(b.value()),w=parseInt(S.i,10);if(w&&w<4096)throw new a.MongoRuntimeError(`Server returned an invalid iteration count ${w}`);const O=S.s,_=S.r;if(_.startsWith("nonce"))throw new a.MongoRuntimeError(`Server returned an invalid nonce: ${_}`);const x=`c=biws,r=${_}`,D=function(e,t,r,i){const o=[e,t.toString("base64"),r].join("_");if(null!=y[o])return y[o];const s=n.pbkdf2Sync(e,t,r,A[i],i);return v>=200&&(y={},v=0),y[o]=s,v+=1,s}(C,Buffer.from(O,"base64"),w,e),T=E(e,D,"Client Key"),B=E(e,D,"Server Key"),I=(F=e,R=T,n.createHash(F).update(R).digest());var F,R;const P=[p(f,l),b.value(),x].join(","),k=[x,`p=${function(e,t){Buffer.isBuffer(e)||(e=Buffer.from(e)),Buffer.isBuffer(t)||(t=Buffer.from(t));const r=Math.max(e.length,t.length),n=[];for(let i=0;i<r;i+=1)n.push(e[i]^t[i]);return Buffer.from(n).toString("base64")}(T,E(e,I,P))}`].join(","),N=E(e,B,P),M={saslContinue:1,conversationId:t.conversationId,payload:new o.Binary(Buffer.from(k))},L=await i.commandAsync((0,u.ns)(`${d}.$cmd`),M,void 0),j=g(L.payload.value());if(!function(e,t){if(e.length!==t.length)return!1;if("function"==typeof n.timingSafeEqual)return n.timingSafeEqual(e,t);let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}(Buffer.from(j.v,"base64"),N))throw new a.MongoRuntimeError("Server returned an invalid signature");if(!1!==L.done)return;const U={saslContinue:1,conversationId:L.conversationId,payload:Buffer.alloc(0)};await i.commandAsync((0,u.ns)(`${d}.$cmd`),U,void 0)}function g(e){const t={},r=e.split(",");for(let e=0;e<r.length;e++){const n=r[e].split("=");t[n[0]]=n[1]}return t}function E(e,t,r){return n.createHmac(e,t).update(r).digest()}let y={},v=0;const A={sha256:32,sha1:20};t.ScramSHA1=class extends d{constructor(){super("sha1")}},t.ScramSHA256=class extends d{constructor(){super("sha256")}}},3953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X509=void 0;const n=r(4947),i=r(2229),o=r(590);class s extends o.AuthProvider{async prepare(e,t){const{credentials:r}=t;if(!r)throw new n.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...e,speculativeAuthenticate:a(r)}}async auth(e){const t=e.connection,r=e.credentials;if(!r)throw new n.MongoMissingCredentialsError("AuthContext must provide credentials.");const o=e.response;o?.speculativeAuthenticate||await t.commandAsync((0,i.ns)("$external.$cmd"),a(r),void 0)}}function a(e){const t={authenticate:1,mechanism:"MONGODB-X509"};return e.username&&(t.user=e.username),t}t.X509=s},2457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_COMMANDS=t.CommandFailedEvent=t.CommandSucceededEvent=t.CommandStartedEvent=void 0;const n=r(5006),i=r(2229),o=r(2322);t.CommandStartedEvent=class{constructor(e,r){this.name=n.COMMAND_STARTED;const i=m(r),o=a(i),{address:s,connectionId:u,serviceId:l}=g(e);t.SENSITIVE_COMMANDS.has(o)&&(this.commandObj={},this.commandObj[o]=!0),this.address=s,this.connectionId=u,this.serviceId=l,this.requestId=r.requestId,this.databaseName=c(r),this.commandName=o,this.command=d(o,i,i)}get hasServiceId(){return!!this.serviceId}},t.CommandSucceededEvent=class{constructor(e,t,r,s){this.name=n.COMMAND_SUCCEEDED;const c=m(t),l=a(c),{address:h,connectionId:p,serviceId:f}=g(e);this.address=h,this.connectionId=p,this.serviceId=f,this.requestId=t.requestId,this.commandName=l,this.duration=(0,i.calculateDurationInMs)(s),this.reply=d(l,c,function(e,t){return t?e instanceof o.Msg?(0,i.deepCopy)(t.result?t.result:t):e.query&&null!=e.query.$query?{ok:1,cursor:{id:(0,i.deepCopy)(t.cursorId),ns:u(e),firstBatch:(0,i.deepCopy)(t.documents)}}:(0,i.deepCopy)(t.result?t.result:t):t}(t,r))}get hasServiceId(){return!!this.serviceId}},t.CommandFailedEvent=class{constructor(e,t,r,o){this.name=n.COMMAND_FAILED;const s=m(t),u=a(s),{address:c,connectionId:l,serviceId:h}=g(e);this.address=c,this.connectionId=l,this.serviceId=h,this.requestId=t.requestId,this.commandName=u,this.duration=(0,i.calculateDurationInMs)(o),this.failure=d(u,s,r)}get hasServiceId(){return!!this.serviceId}},t.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);const s=new Set(["hello",n.LEGACY_HELLO_COMMAND,n.LEGACY_HELLO_COMMAND_CAMEL_CASE]),a=e=>Object.keys(e)[0],u=e=>e.ns,c=e=>e.ns.split(".")[0],l=e=>e.ns.split(".")[1],d=(e,r,n)=>t.SENSITIVE_COMMANDS.has(e)||s.has(e)&&r.speculativeAuthenticate?{}:n,h={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},p={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},f=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"];function m(e){if(e instanceof o.Msg)return(0,i.deepCopy)(e.command);if(e.query?.$query){let t;return"admin.$cmd"===e.ns?t=Object.assign({},e.query.$query):(t={find:l(e)},Object.keys(h).forEach((r=>{null!=e.query[r]&&(t[h[r]]=(0,i.deepCopy)(e.query[r]))}))),Object.keys(p).forEach((r=>{const n=r;null!=e[n]&&(t[p[n]]=(0,i.deepCopy)(e[n]))})),f.forEach((r=>{e[r]&&(t[r]=e[r])})),null!=e.pre32Limit&&(t.limit=e.pre32Limit),e.query.$explain?{explain:t}:t}const t={},r={};if(e.query){for(const r in e.query)t[r]=(0,i.deepCopy)(e.query[r]);r.query=t}for(const t in e)"query"!==t&&(r[t]=(0,i.deepCopy)(e[t]));return e.query?t:r}function g(e){let t;return"id"in e&&(t=e.id),{address:e.address,serviceId:e.serviceId,connectionId:t}}},2322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinMsg=t.Msg=t.Response=t.Query=void 0;const n=r(9064),i=r(4947),o=r(1228),s=r(2229),a=r(3496);let u=0;class c{constructor(e,t,r){if(null==e)throw new i.MongoRuntimeError("Namespace must be specified for query");if(null==t)throw new i.MongoRuntimeError("A query document must be specified for query");if(-1!==e.indexOf("\0"))throw new i.MongoRuntimeError("Namespace cannot contain a null character");this.ns=e,this.query=t,this.numberToSkip=r.numberToSkip||0,this.numberToReturn=r.numberToReturn||0,this.returnFieldSelector=r.returnFieldSelector||void 0,this.requestId=c.getRequestId(),this.pre32Limit=r.pre32Limit,this.serializeFunctions="boolean"==typeof r.serializeFunctions&&r.serializeFunctions,this.ignoreUndefined="boolean"==typeof r.ignoreUndefined&&r.ignoreUndefined,this.maxBsonSize=r.maxBsonSize||16777216,this.checkKeys="boolean"==typeof r.checkKeys&&r.checkKeys,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk="boolean"==typeof r.secondaryOk&&r.secondaryOk,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=u++}nextRequestId(){return u+1}static getRequestId(){return++u}toBin(){const e=[];let t=null,r=0;this.tailable&&(r|=2),this.secondaryOk&&(r|=4),this.oplogReplay&&(r|=8),this.noCursorTimeout&&(r|=16),this.awaitData&&(r|=32),this.exhaust&&(r|=64),this.partial&&(r|=128),this.batchSize!==this.numberToReturn&&(this.numberToReturn=this.batchSize);const i=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);e.push(i);const o=n.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});e.push(o),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0&&(t=n.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),e.push(t));const s=i.length+o.length+(t?t.length:0);let u=4;return i[3]=s>>24&255,i[2]=s>>16&255,i[1]=s>>8&255,i[0]=255&s,i[u+3]=this.requestId>>24&255,i[u+2]=this.requestId>>16&255,i[u+1]=this.requestId>>8&255,i[u]=255&this.requestId,u+=4,i[u+3]=0,i[u+2]=0,i[u+1]=0,i[u]=0,u+=4,i[u+3]=a.OP_QUERY>>24&255,i[u+2]=a.OP_QUERY>>16&255,i[u+1]=a.OP_QUERY>>8&255,i[u]=255&a.OP_QUERY,u+=4,i[u+3]=r>>24&255,i[u+2]=r>>16&255,i[u+1]=r>>8&255,i[u]=255&r,u+=4,u=u+i.write(this.ns,u,"utf8")+1,i[u-1]=0,i[u+3]=this.numberToSkip>>24&255,i[u+2]=this.numberToSkip>>16&255,i[u+1]=this.numberToSkip>>8&255,i[u]=255&this.numberToSkip,u+=4,i[u+3]=this.numberToReturn>>24&255,i[u+2]=this.numberToReturn>>16&255,i[u+1]=this.numberToReturn>>8&255,i[u]=255&this.numberToReturn,u+=4,e}}t.Query=c,t.Response=class{constructor(e,t,r,n){this.documents=new Array(0),this.parsed=!1,this.raw=e,this.data=r,this.opts=n??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=t.length,this.requestId=t.requestId,this.responseTo=t.responseTo,this.opCode=t.opCode,this.fromCompressed=t.fromCompressed,this.useBigInt64="boolean"==typeof this.opts.useBigInt64&&this.opts.useBigInt64,this.promoteLongs="boolean"!=typeof this.opts.promoteLongs||this.opts.promoteLongs,this.promoteValues="boolean"!=typeof this.opts.promoteValues||this.opts.promoteValues,this.promoteBuffers="boolean"==typeof this.opts.promoteBuffers&&this.opts.promoteBuffers,this.bsonRegExp="boolean"==typeof this.opts.bsonRegExp&&this.opts.bsonRegExp}isParsed(){return this.parsed}parse(e){if(this.parsed)return;const t=(e=e??{}).raw||!1,r=e.documentsReturnedIn||null;let i;const o={useBigInt64:e.useBigInt64??this.opts.useBigInt64,promoteLongs:e.promoteLongs??this.opts.promoteLongs,promoteValues:e.promoteValues??this.opts.promoteValues,promoteBuffers:e.promoteBuffers??this.opts.promoteBuffers,bsonRegExp:e.bsonRegExp??this.opts.bsonRegExp};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new n.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=0!=(1&this.responseFlags),this.queryFailure=0!=(2&this.responseFlags),this.shardConfigStale=0!=(4&this.responseFlags),this.awaitCapable=0!=(8&this.responseFlags);for(let e=0;e<this.numberReturned;e++)i=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,this.documents[e]=t?this.data.slice(this.index,this.index+i):n.deserialize(this.data.slice(this.index,this.index+i),o),this.index=this.index+i;if(1===this.documents.length&&null!=r&&t){const e={};e[r]=!0,o.fieldsAsRaw=e;const t=n.deserialize(this.documents[0],o);this.documents=[t]}this.parsed=!0}};class l{constructor(e,t,r){if(null==t)throw new i.MongoInvalidArgumentError("Query document must be specified for query");this.ns=e,this.command=t,this.command.$db=(0,s.databaseNamespace)(e),r.readPreference&&r.readPreference.mode!==o.ReadPreference.PRIMARY&&(this.command.$readPreference=r.readPreference.toJSON()),this.options=r??{},this.requestId=r.requestId?r.requestId:l.getRequestId(),this.serializeFunctions="boolean"==typeof r.serializeFunctions&&r.serializeFunctions,this.ignoreUndefined="boolean"==typeof r.ignoreUndefined&&r.ignoreUndefined,this.checkKeys="boolean"==typeof r.checkKeys&&r.checkKeys,this.maxBsonSize=r.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=r.moreToCome||!1,this.exhaustAllowed="boolean"==typeof r.exhaustAllowed&&r.exhaustAllowed}toBin(){const e=[];let t=0;this.checksumPresent&&(t|=1),this.moreToCome&&(t|=2),this.exhaustAllowed&&(t|=65536);const r=Buffer.alloc(20);e.push(r);let n=r.length;const i=this.command;return n+=this.makeDocumentSegment(e,i),r.writeInt32LE(n,0),r.writeInt32LE(this.requestId,4),r.writeInt32LE(0,8),r.writeInt32LE(a.OP_MSG,12),r.writeUInt32LE(t,16),e}makeDocumentSegment(e,t){const r=Buffer.alloc(1);r[0]=0;const n=this.serializeBson(t);return e.push(r),e.push(n),r.length+n.length}serializeBson(e){return n.serialize(e,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return u=u+1&2147483647,u}}t.Msg=l,t.BinMsg=class{constructor(e,t,r,n){this.parsed=!1,this.raw=e,this.data=r,this.opts=n??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=t.length,this.requestId=t.requestId,this.responseTo=t.responseTo,this.opCode=t.opCode,this.fromCompressed=t.fromCompressed,this.responseFlags=r.readInt32LE(0),this.checksumPresent=0!=(1&this.responseFlags),this.moreToCome=0!=(2&this.responseFlags),this.exhaustAllowed=0!=(65536&this.responseFlags),this.useBigInt64="boolean"==typeof this.opts.useBigInt64&&this.opts.useBigInt64,this.promoteLongs="boolean"!=typeof this.opts.promoteLongs||this.opts.promoteLongs,this.promoteValues="boolean"!=typeof this.opts.promoteValues||this.opts.promoteValues,this.promoteBuffers="boolean"==typeof this.opts.promoteBuffers&&this.opts.promoteBuffers,this.bsonRegExp="boolean"==typeof this.opts.bsonRegExp&&this.opts.bsonRegExp,this.documents=[]}isParsed(){return this.parsed}parse(e){if(this.parsed)return;e=e??{},this.index=4;const t=e.raw||!1,r=e.documentsReturnedIn||null,o={useBigInt64:e.useBigInt64??this.opts.useBigInt64,promoteLongs:e.promoteLongs??this.opts.promoteLongs,promoteValues:e.promoteValues??this.opts.promoteValues,promoteBuffers:e.promoteBuffers??this.opts.promoteBuffers,bsonRegExp:e.bsonRegExp??this.opts.bsonRegExp,validation:this.parseBsonSerializationOptions(e)};for(;this.index<this.data.length;){const e=this.data.readUInt8(this.index++);if(0===e){const e=this.data.readUInt32LE(this.index),r=this.data.slice(this.index,this.index+e);this.documents.push(t?r:n.deserialize(r,o)),this.index+=e}else if(1===e)throw new i.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(1===this.documents.length&&null!=r&&t){const e={};e[r]=!0,o.fieldsAsRaw=e;const t=n.deserialize(this.documents[0],o);this.documents=[t]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:e}){return!1===e?{utf8:!1}:{utf8:{writeErrors:!1}}}}},231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEGAL_TCP_SOCKET_OPTIONS=t.LEGAL_TLS_SOCKET_OPTIONS=t.prepareHandshakeDocument=t.connect=t.AUTH_PROVIDERS=void 0;const n=r(8216),i=r(2131),o=r(2452),s=r(5006),a=r(4947),u=r(2229),c=r(590),l=r(2403),d=r(6614),h=r(3354),p=r(8205),f=r(6427),m=r(4511),g=r(9755),E=r(3953),y=r(8345),v=r(3496);async function A(e){const r=e.options,n=r.compressors?r.compressors:[],{serverApi:i}=e.connection,o={[i?.version?"hello":s.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:r.metadata,compression:n};!0===r.loadBalanced&&(o.loadBalanced=!0);const u=e.credentials;if(u){if(u.mechanism===m.AuthMechanism.MONGODB_DEFAULT&&u.username){o.saslSupportedMechs=`${u.source}.${u.username}`;const r=t.AUTH_PROVIDERS.get(m.AuthMechanism.MONGODB_SCRAM_SHA256);if(!r)throw new a.MongoInvalidArgumentError(`No AuthProvider for ${m.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return r.prepare(o,e)}const r=t.AUTH_PROVIDERS.get(u.mechanism);if(!r)throw new a.MongoInvalidArgumentError(`No AuthProvider for ${u.mechanism} defined.`);return r.prepare(o,e)}return o}function C(e){const r=e.hostAddress;if(!r)throw new a.MongoInvalidArgumentError('Option "hostAddress" is required');const n={};for(const r of t.LEGAL_TCP_SOCKET_OPTIONS)null!=e[r]&&(n[r]=e[r]);if("string"==typeof r.socketPath)return n.path=r.socketPath,n;if("string"==typeof r.host)return n.host=r.host,n.port=r.port,n;throw new a.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(r)}`)}t.AUTH_PROVIDERS=new Map([[m.AuthMechanism.MONGODB_AWS,new h.MongoDBAWS],[m.AuthMechanism.MONGODB_CR,new d.MongoCR],[m.AuthMechanism.MONGODB_GSSAPI,new l.GSSAPI],[m.AuthMechanism.MONGODB_OIDC,new p.MongoDBOIDC],[m.AuthMechanism.MONGODB_PLAIN,new f.Plain],[m.AuthMechanism.MONGODB_SCRAM_SHA1,new g.ScramSHA1],[m.AuthMechanism.MONGODB_SCRAM_SHA256,new g.ScramSHA256],[m.AuthMechanism.MONGODB_X509,new E.X509]]),t.connect=function(e,r){S({...e,existingSocket:void 0},((n,i)=>{if(n||!i)return r(n);let o=e.connectionType??y.Connection;e.autoEncrypter&&(o=y.CryptoConnection);const l=new o(i,e);(async function(e,r){const n=r.credentials;if(n&&n.mechanism!==m.AuthMechanism.MONGODB_DEFAULT&&!t.AUTH_PROVIDERS.get(n.mechanism))throw new a.MongoInvalidArgumentError(`AuthMechanism '${n.mechanism}' not supported`);const i=new c.AuthContext(e,n,r);e.authContext=i;const o=await A(i),l={...r};"number"==typeof r.connectTimeoutMS&&(l.socketTimeoutMS=r.connectTimeoutMS);const d=(new Date).getTime(),h=await e.commandAsync((0,u.ns)("admin.$cmd"),o,l);"isWritablePrimary"in h||(h.isWritablePrimary=h[s.LEGACY_HELLO_COMMAND]),h.helloOk&&(e.helloOk=!0);const p=function(e,t){const r=Number(e.maxWireVersion),n=Number(e.minWireVersion),i=!Number.isNaN(r)&&r>=v.MIN_SUPPORTED_WIRE_VERSION,o=!Number.isNaN(n)&&n<=v.MAX_SUPPORTED_WIRE_VERSION;if(i){if(o)return null;const r=`Server at ${t.hostAddress} reports minimum wire version ${JSON.stringify(e.minWireVersion)}, but this version of the Node.js Driver requires at most ${v.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${v.MAX_SUPPORTED_SERVER_VERSION})`;return new a.MongoCompatibilityError(r)}const s=`Server at ${t.hostAddress} reports maximum wire version ${JSON.stringify(e.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${v.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${v.MIN_SUPPORTED_SERVER_VERSION})`;return new a.MongoCompatibilityError(s)}(h,r);if(p)throw p;if(r.loadBalanced&&!h.serviceId)throw new a.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.");if(e.hello=h,e.lastHelloMS=(new Date).getTime()-d,!h.arbiterOnly&&n){i.response=h;const e=n.resolveAuthMechanism(h),r=t.AUTH_PROVIDERS.get(e.mechanism);if(!r)throw new a.MongoInvalidArgumentError(`No AuthProvider for ${e.mechanism} defined.`);try{await r.auth(i)}catch(e){throw e instanceof a.MongoError&&(e.addErrorLabel(a.MongoErrorLabel.HandshakeError),(0,a.needsRetryableWriteLabel)(e,h.maxWireVersion)&&e.addErrorLabel(a.MongoErrorLabel.RetryableWriteError)),e}}})(l,e).then((()=>r(void 0,l)),(e=>{l.destroy({force:!1}),r(e)}))}))},t.prepareHandshakeDocument=A,t.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"],t.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];const b=new Set(["error","close","timeout","parseError"]);function S(e,r){const s=e.tls??!1,c=e.keepAlive??!0,l=e.socketTimeoutMS??Reflect.get(e,"socketTimeout")??0,d=e.noDelay??!0,h=e.connectTimeoutMS??3e4,p=e.rejectUnauthorized??!0,f=((e.keepAliveInitialDelay??12e4)>l?Math.round(l/2):e.keepAliveInitialDelay)??12e4,m=e.existingSocket;let g;const E=function(e,t){e&&g&&g.destroy(),r(e,t)};if(null!=e.proxyHost)return function(e,t){const r=u.HostAddress.fromHostPort(e.proxyHost??"",e.proxyPort??1080);S({...e,hostAddress:r,tls:!1,proxyHost:void 0},((r,n)=>{if(r)return t(r);const o=C(e);if("string"!=typeof o.host||"number"!=typeof o.port)return t(new a.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));i.SocksClient.createConnection({existing_socket:n,timeout:e.connectTimeoutMS,command:"connect",destination:{host:o.host,port:o.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:e.proxyUsername||void 0,password:e.proxyPassword||void 0}}).then((({socket:r})=>{S({...e,existingSocket:r,proxyHost:void 0},t)}),(e=>t(w("error",e))))}))}({...e,connectTimeoutMS:h},E);if(s){const r=o.connect(function(e){const r=C(e);for(const n of t.LEGAL_TLS_SOCKET_OPTIONS)null!=e[n]&&(r[n]=e[n]);return e.existingSocket&&(r.socket=e.existingSocket),null==r.servername&&r.host&&!n.isIP(r.host)&&(r.servername=r.host),r}(e));"function"==typeof r.disableRenegotiation&&r.disableRenegotiation(),g=r}else g=m||n.createConnection(C(e));g.setKeepAlive(c,f),g.setTimeout(h),g.setNoDelay(d);const y=s?"secureConnect":"connect";let v;function A(t){return r=>{b.forEach((e=>g.removeAllListeners(e))),v&&e.cancellationToken&&e.cancellationToken.removeListener("cancel",v),g.removeListener(y,O),E(w(t,r))}}function O(){if(b.forEach((e=>g.removeAllListeners(e))),v&&e.cancellationToken&&e.cancellationToken.removeListener("cancel",v),"authorizationError"in g&&g.authorizationError&&p)return E(g.authorizationError);g.setTimeout(0),E(void 0,g)}b.forEach((e=>g.once(e,A(e)))),e.cancellationToken&&(v=A("cancel"),e.cancellationToken.once("cancel",v)),m?process.nextTick(O):g.once(y,O)}function w(e,t){switch(e){case"error":return new a.MongoNetworkError(t);case"timeout":return new a.MongoNetworkTimeoutError("connection timed out");case"close":return new a.MongoNetworkError("connection closed");case"cancel":return new a.MongoNetworkError("connection establishment was cancelled");default:return new a.MongoNetworkError("unknown network error")}}},8345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSessionSupport=t.CryptoConnection=t.Connection=void 0;const n=r(5346),i=r(1764),o=r(5006),s=r(4947),a=r(334),u=r(1296),c=r(2229),l=r(2457),d=r(2322),h=r(7827),p=r(9011),f=r(3377),m=Symbol("stream"),g=Symbol("queue"),E=Symbol("messageStream"),y=Symbol("generation"),v=Symbol("lastUseTime"),A=Symbol("clusterTime"),C=Symbol("description"),b=Symbol("hello"),S=Symbol("autoEncrypter"),w=Symbol("delayedTimeoutId");class O extends a.TypedEventEmitter{constructor(e,t){super(),this.commandAsync=(0,i.promisify)(((e,t,r,n)=>this.command(e,t,r,n))),this.id=t.id,this.address=function(e,t){if(t.proxyHost)return t.hostAddress.toString();const{remoteAddress:r,remotePort:n}=e;return"string"==typeof r&&"number"==typeof n?c.HostAddress.fromHostPort(r,n).toString():(0,c.uuidV4)().toString("hex")}(e,t),this.socketTimeoutMS=t.socketTimeoutMS??0,this.monitorCommands=t.monitorCommands,this.serverApi=t.serverApi,this.closed=!1,this[b]=null,this[A]=null,this[C]=new p.StreamDescription(this.address,t),this[y]=t.generation,this[v]=(0,c.now)(),this[g]=new Map,this[E]=new h.MessageStream({...t,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[m]=e,this[w]=null,this[E].on("message",(e=>this.onMessage(e))),this[E].on("error",(e=>this.onError(e))),this[m].on("close",(()=>this.onClose())),this[m].on("timeout",(()=>this.onTimeout())),this[m].on("error",(()=>{})),this[m].pipe(this[E]),this[E].pipe(this[m])}get description(){return this[C]}get hello(){return this[b]}set hello(e){this[C].receiveResponse(e),this[C]=Object.freeze(this[C]),this[b]=e}set isMonitoringConnection(e){this[E].isMonitoringConnection=e}get isMonitoringConnection(){return this[E].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[y]||0}set generation(e){this[y]=e}get idleTime(){return(0,c.calculateDurationInMs)(this[v])}get clusterTime(){return this[A]}get stream(){return this[m]}markAvailable(){this[v]=(0,c.now)()}onError(e){this.cleanup(!0,e)}onClose(){const e=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new s.MongoNetworkError(e))}onTimeout(){this[w]=(0,n.setTimeout)((()=>{const e=`connection ${this.id} to ${this.address} timed out`,t=null==this.hello;this.cleanup(!0,new s.MongoNetworkTimeoutError(e,{beforeHandshake:t}))}),1).unref()}onMessage(e){const t=this[w];null!=t&&((0,n.clearTimeout)(t),this[w]=null);const r=this[m].timeout??0;this[m].setTimeout(0),this.emit("message",e);let i=this[g].get(e.responseTo);if(!i&&this.isMonitoringConnection)if(this[g].size>1)this.cleanup(!0,new s.MongoRuntimeError("Connection internal queue contains more than 1 operation description"));else{const e=this[g].entries().next();if(null!=e.value){const[t,r]=e.value;i=r,this[g].delete(t)}}if(!i)return;const o=i.cb;this[g].delete(e.responseTo),"moreToCome"in e&&e.moreToCome&&(this[g].set(e.requestId,i),this[m].setTimeout(r));try{e.parse(i)}catch(e){return void o(e)}if(e.documents[0]){const t=e.documents[0],r=i.session;if(r&&(0,u.updateSessionFromResponse)(r,t),t.$clusterTime&&(this[A]=t.$clusterTime,this.emit(O.CLUSTER_TIME_RECEIVED,t.$clusterTime)),t.writeConcernError)return void o(new s.MongoWriteConcernError(t.writeConcernError,t),t);if(0===t.ok||t.$err||t.errmsg||t.code)return void o(new s.MongoServerError(t))}o(void 0,e.documents[0])}destroy(e,t){if(this.closed)return void process.nextTick((()=>t?.()));"function"==typeof t&&this.once("close",(()=>process.nextTick((()=>t())))),this.removeAllListeners(O.PINNED),this.removeAllListeners(O.UNPINNED);const r=`connection ${this.id} to ${this.address} closed`;this.cleanup(e.force,new s.MongoNetworkError(r))}cleanup(e,t){if(this.closed)return;this.closed=!0;const r=()=>{for(const e of this[g].values())e.cb(t);this[g].clear(),this.emit(O.CLOSE)};if(this[m].removeAllListeners(),this[E].removeAllListeners(),this[E].destroy(),e)return this[m].destroy(),void r();this[m].writableEnded?r():this[m].end((()=>{this[m].destroy(),r()}))}command(e,t,r,n){let i={...t};const o=(0,f.getReadPreference)(r),a=function(e){const t=e.description;return null!=t&&((0,c.maxWireVersion)(e)>=6&&!t.__nodejs_mock_server__)}(this),h=r?.session;let p=this.clusterTime;if(this.serverApi){const{version:e,strict:t,deprecationErrors:r}=this.serverApi;i.apiVersion=e,null!=t&&(i.apiStrict=t),null!=r&&(i.apiDeprecationErrors=r)}if(_(this)&&h){h.clusterTime&&p&&h.clusterTime.clusterTime.greaterThan(p.clusterTime)&&(p=h.clusterTime);const e=(0,u.applySession)(h,i,r);if(e)return n(e)}else if(h?.explicit)return n(new s.MongoCompatibilityError("Current topology does not support sessions"));p&&(i.$clusterTime=p),(0,f.isSharded)(this)&&!a&&o&&"primary"!==o.mode&&(i={$query:i,$readPreference:o.toJSON()});const y=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:o.secondaryOk()},r),v=`${e.db}.$cmd`,A=a?new d.Msg(v,i,y):new d.Query(v,i,y);try{!function(e,t,r,n){r=r??{};const i={requestId:t.requestId,cb:n,session:r.session,noResponse:"boolean"==typeof r.noResponse&&r.noResponse,documentsReturnedIn:r.documentsReturnedIn,useBigInt64:"boolean"==typeof r.useBigInt64&&r.useBigInt64,promoteLongs:"boolean"!=typeof r.promoteLongs||r.promoteLongs,promoteValues:"boolean"!=typeof r.promoteValues||r.promoteValues,promoteBuffers:"boolean"==typeof r.promoteBuffers&&r.promoteBuffers,bsonRegExp:"boolean"==typeof r.bsonRegExp&&r.bsonRegExp,enableUtf8Validation:"boolean"!=typeof r.enableUtf8Validation||r.enableUtf8Validation,raw:"boolean"==typeof r.raw&&r.raw,started:0};e[C]&&e[C].compressor&&(i.agreedCompressor=e[C].compressor,e[C].zlibCompressionLevel&&(i.zlibCompressionLevel=e[C].zlibCompressionLevel)),"number"==typeof r.socketTimeoutMS?e[m].setTimeout(r.socketTimeoutMS):0!==e.socketTimeoutMS&&e[m].setTimeout(e.socketTimeoutMS),e.monitorCommands&&(e.emit(O.COMMAND_STARTED,new l.CommandStartedEvent(e,t)),i.started=(0,c.now)(),i.cb=(r,o)=>{r&&1!==o?.ok?e.emit(O.COMMAND_FAILED,new l.CommandFailedEvent(e,t,r,i.started)):o&&(0===o.ok||o.$err)?e.emit(O.COMMAND_FAILED,new l.CommandFailedEvent(e,t,o,i.started)):e.emit(O.COMMAND_SUCCEEDED,new l.CommandSucceededEvent(e,t,o,i.started)),"function"==typeof n&&n(r,r instanceof s.MongoWriteConcernError?void 0:o)}),i.noResponse||e[g].set(i.requestId,i);try{e[E].writeCommand(t,i)}catch(t){if(!i.noResponse)return e[g].delete(i.requestId),void i.cb(t)}i.noResponse&&i.cb()}(this,A,y,n)}catch(e){n(e)}}}function _(e){return null!=e.description.logicalSessionTimeoutMinutes}O.COMMAND_STARTED=o.COMMAND_STARTED,O.COMMAND_SUCCEEDED=o.COMMAND_SUCCEEDED,O.COMMAND_FAILED=o.COMMAND_FAILED,O.CLUSTER_TIME_RECEIVED=o.CLUSTER_TIME_RECEIVED,O.CLOSE=o.CLOSE,O.MESSAGE=o.MESSAGE,O.PINNED=o.PINNED,O.UNPINNED=o.UNPINNED,t.Connection=O,t.CryptoConnection=class extends O{constructor(e,t){super(e,t),this[S]=t.autoEncrypter}command(e,t,r,n){const i=this[S];if(!i)return n(new s.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const o=(0,c.maxWireVersion)(this);if(0===o)return super.command(e,t,r,n);if(o<8)return void n(new s.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));const a=t.find||t.findAndModify?t.sort:null,u=t.createIndexes?t.indexes.map((e=>e.key)):null;i.encrypt(e.toString(),t,r,((o,s)=>{if(o||null==s)n(o,null);else{if(null!=a&&(t.find||t.findAndModify)&&(s.sort=a),null!=u&&t.createIndexes)for(const[e,t]of u.entries())s.indexes[e].key=t;super.command(e,s,r,((e,t)=>{e||null==t?n(e,t):i.decrypt(t,r,n)}))}}))}},t.hasSessionSupport=_},8343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPool=t.PoolState=void 0;const n=r(5346),i=r(5006),o=r(4947),s=r(334),a=r(2229),u=r(231),c=r(8345),l=r(1654),d=r(8122),h=r(8547),p=Symbol("server"),f=Symbol("connections"),m=Symbol("pending"),g=Symbol("checkedOut"),E=Symbol("minPoolSizeTimer"),y=Symbol("generation"),v=Symbol("serviceGenerations"),A=Symbol("connectionCounter"),C=Symbol("cancellationToken"),b=Symbol("waitQueue"),S=Symbol("cancelled"),w=Symbol("metrics"),O=Symbol("processingWaitQueue"),_=Symbol("poolState");t.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class x extends s.TypedEventEmitter{constructor(e,r){if(super(),this.options=Object.freeze({...r,connectionType:c.Connection,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,metadata:r.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new o.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[_]=t.PoolState.paused,this[p]=e,this[f]=new a.List,this[m]=0,this[g]=new Set,this[E]=void 0,this[y]=0,this[v]=new Map,this[A]=(0,a.makeCounter)(1),this[C]=new s.CancellationToken,this[C].setMaxListeners(1/0),this[b]=new a.List,this[w]=new h.ConnectionPoolMetrics,this[O]=!1,this.mongoLogger=this[p].topology.client.mongoLogger,this.component="connection",process.nextTick((()=>{this.emitAndLog(x.CONNECTION_POOL_CREATED,new l.ConnectionPoolCreatedEvent(this))}))}get address(){return this.options.hostAddress.toString()}get closed(){return this[_]===t.PoolState.closed}get generation(){return this[y]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[f].length}get pendingConnectionCount(){return this[m]}get currentCheckedOutCount(){return this[g].size}get waitQueueSize(){return this[b].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[v]}get serverError(){return this[p].description.error}get checkedOutConnections(){return this[g]}waitQueueErrorMetrics(){return this[w].info(this.options.maxPoolSize)}ready(){this[_]===t.PoolState.paused&&(this[_]=t.PoolState.ready,this.emitAndLog(x.CONNECTION_POOL_READY,new l.ConnectionPoolReadyEvent(this)),(0,n.clearTimeout)(this[E]),this.ensureMinPoolSize())}checkOut(e){this.emitAndLog(x.CONNECTION_CHECK_OUT_STARTED,new l.ConnectionCheckOutStartedEvent(this));const t={callback:e},r=this.options.waitQueueTimeoutMS;r&&(t.timer=(0,n.setTimeout)((()=>{t[S]=!0,t.timer=void 0,this.emitAndLog(x.CONNECTION_CHECK_OUT_FAILED,new l.ConnectionCheckOutFailedEvent(this,"timeout")),t.callback(new d.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),r)),this[b].push(t),process.nextTick((()=>this.processWaitQueue()))}checkIn(e){if(!this[g].has(e))return;const t=this.closed,r=this.connectionIsStale(e),n=!!(t||r||e.closed);if(n||(e.markAvailable(),this[f].unshift(e)),this[g].delete(e),this.emitAndLog(x.CONNECTION_CHECKED_IN,new l.ConnectionCheckedInEvent(this,e)),n){const r=e.closed?"error":t?"poolClosed":"stale";this.destroyConnection(e,r)}process.nextTick((()=>this.processWaitQueue()))}clear(e={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:t}=e;if(!t)throw new o.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const r=t.toHexString(),n=this.serviceGenerations.get(r);if(null==n)throw new o.MongoRuntimeError("Service generations are required in load balancer mode.");return this.serviceGenerations.set(r,n+1),void this.emitAndLog(x.CONNECTION_POOL_CLEARED,new l.ConnectionPoolClearedEvent(this,{serviceId:t}))}const r=e.interruptInUseConnections??!1,n=this[y];this[y]+=1;const i=this[_]===t.PoolState.paused;this[_]=t.PoolState.paused,this.clearMinPoolSizeTimer(),i||this.emitAndLog(x.CONNECTION_POOL_CLEARED,new l.ConnectionPoolClearedEvent(this,{interruptInUseConnections:r})),r&&process.nextTick((()=>this.interruptInUseConnections(n))),this.processWaitQueue()}interruptInUseConnections(e){for(const t of this[g])t.generation<=e&&(this.checkIn(t),t.onError(new d.PoolClearedOnNetworkError(this)))}close(e,r){let n=e;const i=r??e;if("function"==typeof n&&(n={}),n=Object.assign({force:!1},n),this.closed)return i();this[C].emit("cancel"),"function"==typeof this[A].return&&this[A].return(void 0),this[_]=t.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),(0,a.eachAsync)(this[f].toArray(),((e,t)=>{this.emitAndLog(x.CONNECTION_CLOSED,new l.ConnectionClosedEvent(this,e,"poolClosed")),e.destroy({force:!!n.force},t)}),(e=>{this[f].clear(),this.emitAndLog(x.CONNECTION_POOL_CLOSED,new l.ConnectionPoolClosedEvent(this)),i(e)}))}withConnection(e,t,r){e?t(void 0,e,((n,i)=>{if(n)return this.withReauthentication(n,e,t,r);r(void 0,i)})):this.checkOut(((e,n)=>{t(e,n,((e,i)=>{e?n?this.withReauthentication(e,n,t,r):r(e):r(void 0,i),n&&this.checkIn(n)}))}))}withReauthentication(e,t,r,n){e instanceof o.MongoError&&e.code===o.MONGODB_ERROR_CODES.Reauthenticate?this.reauthenticate(t,r,((e,t)=>{if(e)return n(e);n(void 0,t)})):n(e)}reauthenticate(e,t,r){const n=e.authContext;if(!n)return r(new o.MongoRuntimeError("No auth context found on connection."));const i=n.credentials;if(!i)return r(new o.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const s=i.resolveAuthMechanism(e.hello||void 0),a=u.AUTH_PROVIDERS.get(s.mechanism);if(!a)return r(new o.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${i.mechanism}`));a.reauth(n).then((()=>{t(void 0,e,((e,t)=>{if(e)return r(e);r(void 0,t)}))}),(e=>r(e)))}clearMinPoolSizeTimer(){const e=this[E];e&&(0,n.clearTimeout)(e)}destroyConnection(e,t){this.emitAndLog(x.CONNECTION_CLOSED,new l.ConnectionClosedEvent(this,e,t)),process.nextTick((()=>e.destroy({force:!1})))}connectionIsStale(e){const t=e.serviceId;if(this.loadBalanced&&t){const r=t.toHexString(),n=this.serviceGenerations.get(r);return e.generation!==n}return e.generation!==this[y]}connectionIsIdle(e){return!!(this.options.maxIdleTimeMS&&e.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(e){const t=this.connectionIsStale(e),r=this.connectionIsIdle(e);if(!t&&!r&&!e.closed)return!1;const n=e.closed?"error":t?"stale":"idle";return this.destroyConnection(e,n),!0}createConnection(e){const r={...this.options,id:this[A].next().value,generation:this[y],cancellationToken:this[C]};this[m]++,this.emitAndLog(x.CONNECTION_CREATED,new l.ConnectionCreatedEvent(this,{id:r.id})),(0,u.connect)(r,((n,s)=>{if(n||!s)return this[m]--,this.emitAndLog(x.CONNECTION_CLOSED,new l.ConnectionClosedEvent(this,{id:r.id,serviceId:void 0},"error",n)),(n instanceof o.MongoNetworkError||n instanceof o.MongoServerError)&&(n.connectionGeneration=r.generation),void e(n??new o.MongoRuntimeError("Connection creation failed without error"));if(this[_]!==t.PoolState.ready)return this[m]--,s.destroy({force:!0}),void e(this.closed?new d.PoolClosedError(this):new d.PoolClearedError(this));for(const e of[...i.APM_EVENTS,c.Connection.CLUSTER_TIME_RECEIVED])s.on(e,(t=>this.emit(e,t)));if(this.loadBalanced){s.on(c.Connection.PINNED,(e=>this[w].markPinned(e))),s.on(c.Connection.UNPINNED,(e=>this[w].markUnpinned(e)));const e=s.serviceId;if(e){let t;const r=e.toHexString();(t=this.serviceGenerations.get(r))?s.generation=t:(this.serviceGenerations.set(r,0),s.generation=0)}}s.markAvailable(),this.emitAndLog(x.CONNECTION_READY,new l.ConnectionReadyEvent(this,s)),this[m]--,e(void 0,s)}))}ensureMinPoolSize(){const e=this.options.minPoolSize;this[_]===t.PoolState.ready&&0!==e&&(this[f].prune((e=>this.destroyConnectionIfPerished(e))),this.totalConnectionCount<e&&this.pendingConnectionCount<this.options.maxConnecting?this.createConnection(((e,r)=>{e&&this[p].handleError(e),!e&&r&&(this[f].push(r),process.nextTick((()=>this.processWaitQueue()))),this[_]===t.PoolState.ready&&((0,n.clearTimeout)(this[E]),this[E]=(0,n.setTimeout)((()=>this.ensureMinPoolSize()),this.options.minPoolSizeCheckFrequencyMS))})):((0,n.clearTimeout)(this[E]),this[E]=(0,n.setTimeout)((()=>this.ensureMinPoolSize()),this.options.minPoolSizeCheckFrequencyMS)))}processWaitQueue(){if(this[O])return;for(this[O]=!0;this.waitQueueSize;){const e=this[b].first();if(!e){this[b].shift();continue}if(e[S]){this[b].shift();continue}if(this[_]!==t.PoolState.ready){const t=this.closed?"poolClosed":"connectionError",r=this.closed?new d.PoolClosedError(this):new d.PoolClearedError(this);this.emitAndLog(x.CONNECTION_CHECK_OUT_FAILED,new l.ConnectionCheckOutFailedEvent(this,t,r)),e.timer&&(0,n.clearTimeout)(e.timer),this[b].shift(),e.callback(r);continue}if(!this.availableConnectionCount)break;const r=this[f].shift();if(!r)break;this.destroyConnectionIfPerished(r)||(this[g].add(r),this.emitAndLog(x.CONNECTION_CHECKED_OUT,new l.ConnectionCheckedOutEvent(this,r)),e.timer&&(0,n.clearTimeout)(e.timer),this[b].shift(),e.callback(void 0,r))}const{maxPoolSize:e,maxConnecting:r}=this.options;for(;this.waitQueueSize>0&&this.pendingConnectionCount<r&&(0===e||this.totalConnectionCount<e);){const e=this[b].shift();e&&!e[S]&&this.createConnection(((t,r)=>{e[S]?!t&&r&&this[f].push(r):(t?this.emitAndLog(x.CONNECTION_CHECK_OUT_FAILED,new l.ConnectionCheckOutFailedEvent(this,"connectionError",t)):r&&(this[g].add(r),this.emitAndLog(x.CONNECTION_CHECKED_OUT,new l.ConnectionCheckedOutEvent(this,r))),e.timer&&(0,n.clearTimeout)(e.timer),e.callback(t,r)),process.nextTick((()=>this.processWaitQueue()))}))}this[O]=!1}}x.CONNECTION_POOL_CREATED=i.CONNECTION_POOL_CREATED,x.CONNECTION_POOL_CLOSED=i.CONNECTION_POOL_CLOSED,x.CONNECTION_POOL_CLEARED=i.CONNECTION_POOL_CLEARED,x.CONNECTION_POOL_READY=i.CONNECTION_POOL_READY,x.CONNECTION_CREATED=i.CONNECTION_CREATED,x.CONNECTION_READY=i.CONNECTION_READY,x.CONNECTION_CLOSED=i.CONNECTION_CLOSED,x.CONNECTION_CHECK_OUT_STARTED=i.CONNECTION_CHECK_OUT_STARTED,x.CONNECTION_CHECK_OUT_FAILED=i.CONNECTION_CHECK_OUT_FAILED,x.CONNECTION_CHECKED_OUT=i.CONNECTION_CHECKED_OUT,x.CONNECTION_CHECKED_IN=i.CONNECTION_CHECKED_IN,t.ConnectionPool=x},1654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoolClearedEvent=t.ConnectionCheckedInEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionClosedEvent=t.ConnectionReadyEvent=t.ConnectionCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolReadyEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolMonitoringEvent=void 0;const n=r(5006);class i{constructor(e){this.time=new Date,this.address=e.address}}t.ConnectionPoolMonitoringEvent=i,t.ConnectionPoolCreatedEvent=class extends i{constructor(e){super(e),this.name=n.CONNECTION_POOL_CREATED,this.options=e.options}},t.ConnectionPoolReadyEvent=class extends i{constructor(e){super(e),this.name=n.CONNECTION_POOL_READY}},t.ConnectionPoolClosedEvent=class extends i{constructor(e){super(e),this.name=n.CONNECTION_POOL_CLOSED}},t.ConnectionCreatedEvent=class extends i{constructor(e,t){super(e),this.name=n.CONNECTION_CREATED,this.connectionId=t.id}},t.ConnectionReadyEvent=class extends i{constructor(e,t){super(e),this.name=n.CONNECTION_READY,this.connectionId=t.id}},t.ConnectionClosedEvent=class extends i{constructor(e,t,r,i){super(e),this.name=n.CONNECTION_CLOSED,this.connectionId=t.id,this.reason=r,this.serviceId=t.serviceId,this.error=i??null}},t.ConnectionCheckOutStartedEvent=class extends i{constructor(e){super(e),this.name=n.CONNECTION_CHECK_OUT_STARTED}},t.ConnectionCheckOutFailedEvent=class extends i{constructor(e,t,r){super(e),this.name=n.CONNECTION_CHECK_OUT_FAILED,this.reason=t,this.error=r}},t.ConnectionCheckedOutEvent=class extends i{constructor(e,t){super(e),this.name=n.CONNECTION_CHECKED_OUT,this.connectionId=t.id}},t.ConnectionCheckedInEvent=class extends i{constructor(e,t){super(e),this.name=n.CONNECTION_CHECKED_IN,this.connectionId=t.id}},t.ConnectionPoolClearedEvent=class extends i{constructor(e,t={}){super(e),this.name=n.CONNECTION_POOL_CLEARED,this.serviceId=t.serviceId,this.interruptInUseConnections=t.interruptInUseConnections}}},8122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitQueueTimeoutError=t.PoolClearedOnNetworkError=t.PoolClearedError=t.PoolClosedError=void 0;const n=r(4947);class i extends n.MongoDriverError{constructor(e){super("Attempted to check out a connection from closed connection pool"),this.address=e.address}get name(){return"MongoPoolClosedError"}}t.PoolClosedError=i;class o extends n.MongoNetworkError{constructor(e,t){super(t||`Connection pool for ${e.address} was cleared because another operation failed with: "${e.serverError?.message}"`),this.address=e.address,this.addErrorLabel(n.MongoErrorLabel.RetryableWriteError)}get name(){return"MongoPoolClearedError"}}t.PoolClearedError=o,t.PoolClearedOnNetworkError=class extends o{constructor(e){super(e,`Connection to ${e.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}};class s extends n.MongoDriverError{constructor(e,t){super(e),this.address=t}get name(){return"MongoWaitQueueTimeoutError"}}t.WaitQueueTimeoutError=s},8043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFAASEnv=t.makeClientMetadata=t.LimitedSizeDocument=void 0;const n=r(9801),i=r(5816),o=r(9064),s=r(4947),a=r(6615).i8;class u{constructor(e){this.maxSize=e,this.document=new Map,this.documentSize=5}ifItFitsItSits(e,t){const r=o.BSON.serialize((new Map).set(e,t)).byteLength-5;return!(r+this.documentSize>this.maxSize||(this.documentSize+=r,this.document.set(e,t),0))}toObject(){return o.BSON.deserialize(o.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}function c(){const{AWS_EXECUTION_ENV:e="",AWS_LAMBDA_RUNTIME_API:t="",FUNCTIONS_WORKER_RUNTIME:r="",K_SERVICE:n="",FUNCTION_NAME:s="",VERCEL:a="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:u="",AWS_REGION:c="",FUNCTION_MEMORY_MB:l="",FUNCTION_REGION:d="",FUNCTION_TIMEOUT_SEC:h="",VERCEL_REGION:p=""}=i.env,f=e.startsWith("AWS_Lambda_")||t.length>0,m=r.length>0,g=n.length>0||s.length>0,E=a.length>0,y=new Map;return!E||m||g?f&&!(m||g||E)?(c.length>0&&y.set("region",c),u.length>0&&Number.isInteger(+u)&&y.set("memory_mb",new o.Int32(u)),y.set("name","aws.lambda"),y):m&&!(g||f||E)?(y.set("name","azure.func"),y):g&&!(m||f||E)?(d.length>0&&y.set("region",d),l.length>0&&Number.isInteger(+l)&&y.set("memory_mb",new o.Int32(l)),h.length>0&&Number.isInteger(+h)&&y.set("timeout_sec",new o.Int32(h)),y.set("name","gcp.func"),y):null:(p.length>0&&y.set("region",p),y.set("name","vercel"),y)}t.LimitedSizeDocument=u,t.makeClientMetadata=function(e){const t=new u(512),{appName:r=""}=e;if(r.length>0){const n=Buffer.byteLength(r,"utf8")<=128?e.appName:Buffer.from(r,"utf8").subarray(0,128).toString("utf8");t.ifItFitsItSits("application",{name:n})}const{name:o="",version:l="",platform:d=""}=e.driverInfo,h={name:o.length>0?`nodejs|${o}`:"nodejs",version:l.length>0?`${a}|${l}`:a};if(!t.ifItFitsItSits("driver",h))throw new s.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let p="Deno"in globalThis?`Deno v${"string"==typeof Deno?.version?.deno?Deno?.version?.deno:"0.0.0-unknown"}, ${n.endianness()}`:"Bun"in globalThis?`Bun v${"string"==typeof Bun?.version?Bun?.version:"0.0.0-unknown"}, ${n.endianness()}`:`Node.js ${i.version}, ${n.endianness()}`;if(d.length>0&&(p=`${p}|${d}`),!t.ifItFitsItSits("platform",p))throw new s.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const f=(new Map).set("name",i.platform).set("architecture",i.arch).set("version",n.release()).set("type",n.type());if(!t.ifItFitsItSits("os",f))for(const e of f.keys()){if(f.delete(e),0===f.size)break;if(t.ifItFitsItSits("os",f))break}const m=c();if(null!=m&&!t.ifItFitsItSits("env",m))for(const e of m.keys()){if(m.delete(e),0===m.size)break;if(t.ifItFitsItSits("env",m))break}return t.toObject()},t.getFAASEnv=c},7827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageStream=void 0;const n=r(6162),i=r(4947),o=r(2229),s=r(2322),a=r(942),u=r(3496),c=Symbol("buffer");class l extends n.Duplex{constructor(e={}){super(e),this.isMonitoringConnection=!1,this.maxBsonMessageSize=e.maxBsonMessageSize||67108864,this[c]=new o.BufferPool}get buffer(){return this[c]}_write(e,t,r){this[c].append(e),d(this,r)}_read(){}writeCommand(e,t){const r=t.agreedCompressor??"none";if("none"===r||!function(e){const t=e instanceof s.Msg?e.command:e.query,r=Object.keys(t)[0];return!a.uncompressibleCommands.has(r)}(e)){const t=e.toBin();return void this.push(Array.isArray(t)?Buffer.concat(t):t)}const n=Buffer.concat(e.toBin()),i=n.slice(16),o=n.readInt32LE(12),c={agreedCompressor:r,zlibCompressionLevel:t.zlibCompressionLevel??0};(0,a.compress)(c,i).then((t=>{const n=Buffer.alloc(16);n.writeInt32LE(25+t.length,0),n.writeInt32LE(e.requestId,4),n.writeInt32LE(0,8),n.writeInt32LE(u.OP_COMPRESSED,12);const s=Buffer.alloc(9);s.writeInt32LE(o,0),s.writeInt32LE(i.length,4),s.writeUInt8(a.Compressor[r],8),this.push(Buffer.concat([n,s,t]))}),(e=>{t.cb(e)}))}}function d(e,t){const r=e[c],n=r.getInt32();if(null==n)return t();if(n<0)return t(new i.MongoParseError(`Invalid message size: ${n}`));if(n>e.maxBsonMessageSize)return t(new i.MongoParseError(`Invalid message size: ${n}, max allowed: ${e.maxBsonMessageSize}`));if(n>r.length)return t();const o=r.read(n),l={length:o.readInt32LE(0),requestId:o.readInt32LE(4),responseTo:o.readInt32LE(8),opCode:o.readInt32LE(12)},h=()=>{if(e.isMonitoringConnection){const e=r.getInt32();if(null!=e&&e<=r.length)return!0}return!1};let p=l.opCode===u.OP_MSG?s.BinMsg:s.Response;if(l.opCode!==u.OP_COMPRESSED){const n=o.subarray(16);return h()?d(e,t):(e.emit("message",new p(o,l,n)),r.length>=4?d(e,t):t())}l.fromCompressed=!0,l.opCode=o.readInt32LE(16),l.length=o.readInt32LE(20);const f=o[24],m=o.slice(25);p=l.opCode===u.OP_MSG?s.BinMsg:s.Response,(0,a.decompress)(f,m).then((n=>n.length!==l.length?t(new i.MongoDecompressionError("Message body and message header must be the same length")):h()?d(e,t):(e.emit("message",new p(o,l,n)),r.length>=4?d(e,t):t())),(e=>t(e)))}t.MessageStream=l},8547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoolMetrics=void 0;class r{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(e){e===r.TXN?this.txnConnections+=1:e===r.CURSOR?this.cursorConnections+=1:this.otherConnections+=1}markUnpinned(e){e===r.TXN?this.txnConnections-=1:e===r.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}}r.TXN="txn",r.CURSOR="cursor",r.OTHER="other",t.ConnectionPoolMetrics=r},9011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamDescription=void 0;const n=r(5896),i=r(9735),o=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];t.StreamDescription=class{constructor(e,t){this.address=e,this.type=n.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48e6,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=t?.logicalSessionTimeoutMinutes,this.loadBalanced=!!t?.loadBalanced,this.compressors=t&&t.compressors&&Array.isArray(t.compressors)?t.compressors:[]}receiveResponse(e){if(null!=e){this.type=(0,i.parseServerType)(e);for(const t of o)null!=e[t]&&(this[t]=e[t]),"__nodejs_mock_server__"in e&&(this.__nodejs_mock_server__=e.__nodejs_mock_server__);e.compression&&(this.compressor=this.compressors.filter((t=>e.compression?.includes(t)))[0])}}}},942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decompress=t.compress=t.uncompressibleCommands=t.Compressor=void 0;const n=r(1764),i=r(1568),o=r(5006),s=r(8808),a=r(4947);t.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3}),t.uncompressibleCommands=new Set([o.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);const u=(0,n.promisify)(i.inflate.bind(i)),c=(0,n.promisify)(i.deflate.bind(i));let l,d=null;function h(){if(null==d){const e=(0,s.getSnappy)();if("kModuleError"in e)throw e.kModuleError;d=e}return d}function p(){l||(l=(0,s.getZstdLibrary)())}t.compress=async function(e,t){const r={};switch(e.agreedCompressor){case"snappy":return d??(d=h()),d.compress(t);case"zstd":if(p(),"kModuleError"in l)throw l.kModuleError;return l.compress(t,3);case"zlib":return e.zlibCompressionLevel&&(r.level=e.zlibCompressionLevel),c(t,r);default:throw new a.MongoInvalidArgumentError(`Unknown compressor ${e.agreedCompressor} failed to compress`)}},t.decompress=async function(e,r){if(e!==t.Compressor.snappy&&e!==t.Compressor.zstd&&e!==t.Compressor.zlib&&e!==t.Compressor.none)throw new a.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${e})`);switch(e){case t.Compressor.snappy:return d??(d=h()),d.uncompress(r,{asBuffer:!0});case t.Compressor.zstd:if(p(),"kModuleError"in l)throw l.kModuleError;return l.decompress(r);case t.Compressor.zlib:return u(r);default:return r}}},3496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OP_MSG=t.OP_COMPRESSED=t.OP_DELETE=t.OP_QUERY=t.OP_INSERT=t.OP_UPDATE=t.OP_REPLY=t.MIN_SUPPORTED_QE_SERVER_VERSION=t.MIN_SUPPORTED_QE_WIRE_VERSION=t.MAX_SUPPORTED_WIRE_VERSION=t.MIN_SUPPORTED_WIRE_VERSION=t.MAX_SUPPORTED_SERVER_VERSION=t.MIN_SUPPORTED_SERVER_VERSION=void 0,t.MIN_SUPPORTED_SERVER_VERSION="3.6",t.MAX_SUPPORTED_SERVER_VERSION="7.0",t.MIN_SUPPORTED_WIRE_VERSION=6,t.MAX_SUPPORTED_WIRE_VERSION=21,t.MIN_SUPPORTED_QE_WIRE_VERSION=21,t.MIN_SUPPORTED_QE_SERVER_VERSION="7.0",t.OP_REPLY=1,t.OP_UPDATE=2001,t.OP_INSERT=2002,t.OP_QUERY=2004,t.OP_DELETE=2006,t.OP_COMPRESSED=2012,t.OP_MSG=2013},3377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSharded=t.getReadPreference=void 0;const n=r(4947),i=r(1228),o=r(5896),s=r(7411);t.getReadPreference=function(e){let t=e?.readPreference??i.ReadPreference.primary;if(e?.readPreference&&(t=e.readPreference),"string"==typeof t&&(t=i.ReadPreference.fromString(t)),!(t instanceof i.ReadPreference))throw new n.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return t},t.isSharded=function(e){return null!=e&&(!(!e.description||e.description.type!==o.ServerType.Mongos)||!!(e.description&&e.description instanceof s.TopologyDescription)&&Array.from(e.description.servers.values()).some((e=>e.type===o.ServerType.Mongos)))}},8971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;const n=r(9064),i=r(3868),o=r(1625),s=r(4747),a=r(3490),u=r(6331),c=r(5051),l=r(2496),d=r(4947),h=r(6192),p=r(2566),f=r(7643),m=r(7237),g=r(9579),E=r(3226),y=r(3345),v=r(7445),A=r(8448),C=r(2139),b=r(7159),S=r(2062),w=r(2552),O=r(8955),_=r(2195),x=r(3060),D=r(88),T=r(6577),B=r(5556),I=r(3389),F=r(1228),R=r(2229),P=r(4620);t.Collection=class{constructor(e,t,r){(0,R.checkCollectionName)(t),this.s={db:e,options:r,namespace:new R.MongoDBCollectionNamespace(e.databaseName,t),pkFactory:e.options?.pkFactory??R.DEFAULT_PK_FACTORY,readPreference:F.ReadPreference.fromOptions(r),bsonOptions:(0,n.resolveBSONOptions)(r,e),readConcern:I.ReadConcern.fromOptions(r),writeConcern:P.WriteConcern.fromOptions(r)},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 null==this.s.readConcern?this.s.db.readConcern:this.s.readConcern}get readPreference(){return null==this.s.readPreference?this.s.db.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return null==this.s.writeConcern?this.s.db.writeConcern:this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(e){this.s.collectionHint=(0,R.normalizeHintField)(e)}async insertOne(e,t){return(0,v.executeOperation)(this.client,new b.InsertOneOperation(this,e,(0,R.resolveOptions)(this,t)))}async insertMany(e,t){return(0,v.executeOperation)(this.client,new b.InsertManyOperation(this,e,(0,R.resolveOptions)(this,t??{ordered:!0})))}async bulkWrite(e,t){if(!Array.isArray(e))throw new d.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return(0,v.executeOperation)(this.client,new h.BulkWriteOperation(this,e,(0,R.resolveOptions)(this,t??{ordered:!0})))}async updateOne(e,t,r){return(0,v.executeOperation)(this.client,new B.UpdateOneOperation(this,e,t,(0,R.resolveOptions)(this,r)))}async replaceOne(e,t,r){return(0,v.executeOperation)(this.client,new B.ReplaceOneOperation(this,e,t,(0,R.resolveOptions)(this,r)))}async updateMany(e,t,r){return(0,v.executeOperation)(this.client,new B.UpdateManyOperation(this,e,t,(0,R.resolveOptions)(this,r)))}async deleteOne(e={},t={}){return(0,v.executeOperation)(this.client,new m.DeleteOneOperation(this,e,(0,R.resolveOptions)(this,t)))}async deleteMany(e={},t={}){return(0,v.executeOperation)(this.client,new m.DeleteManyOperation(this,e,(0,R.resolveOptions)(this,t)))}async rename(e,t){return(0,v.executeOperation)(this.client,new O.RenameOperation(this,e,{...t,readPreference:F.ReadPreference.PRIMARY}))}async drop(e){return(0,v.executeOperation)(this.client,new E.DropCollectionOperation(this.s.db,this.collectionName,e))}async findOne(e={},t={}){return this.find(e,t).limit(-1).batchSize(1).next()}find(e={},t={}){return new u.FindCursor(this.client,this.s.namespace,e,(0,R.resolveOptions)(this,t))}async options(e){return(0,v.executeOperation)(this.client,new w.OptionsOperation(this,(0,R.resolveOptions)(this,e)))}async isCapped(e){return(0,v.executeOperation)(this.client,new S.IsCappedOperation(this,(0,R.resolveOptions)(this,e)))}async createIndex(e,t){return(0,v.executeOperation)(this.client,new C.CreateIndexOperation(this,this.collectionName,e,(0,R.resolveOptions)(this,t)))}async createIndexes(e,t){return(0,v.executeOperation)(this.client,new C.CreateIndexesOperation(this,this.collectionName,e,(0,R.resolveOptions)(this,{...t,maxTimeMS:void 0})))}async dropIndex(e,t){return(0,v.executeOperation)(this.client,new C.DropIndexOperation(this,e,{...(0,R.resolveOptions)(this,t),readPreference:F.ReadPreference.primary}))}async dropIndexes(e){return(0,v.executeOperation)(this.client,new C.DropIndexesOperation(this,(0,R.resolveOptions)(this,e)))}listIndexes(e){return new c.ListIndexesCursor(this,(0,R.resolveOptions)(this,e))}async indexExists(e,t){return(0,v.executeOperation)(this.client,new C.IndexExistsOperation(this,e,(0,R.resolveOptions)(this,t)))}async indexInformation(e){return(0,v.executeOperation)(this.client,new C.IndexInformationOperation(this.s.db,this.collectionName,(0,R.resolveOptions)(this,e)))}async estimatedDocumentCount(e){return(0,v.executeOperation)(this.client,new y.EstimatedDocumentCountOperation(this,(0,R.resolveOptions)(this,e)))}async countDocuments(e={},t={}){return(0,v.executeOperation)(this.client,new f.CountDocumentsOperation(this,e,(0,R.resolveOptions)(this,t)))}async distinct(e,t={},r={}){return(0,v.executeOperation)(this.client,new g.DistinctOperation(this,e,t,(0,R.resolveOptions)(this,r)))}async indexes(e){return(0,v.executeOperation)(this.client,new C.IndexesOperation(this,(0,R.resolveOptions)(this,e)))}async stats(e){return(0,v.executeOperation)(this.client,new T.CollStatsOperation(this,e))}async findOneAndDelete(e,t){return(0,v.executeOperation)(this.client,new A.FindOneAndDeleteOperation(this,e,(0,R.resolveOptions)(this,t)))}async findOneAndReplace(e,t,r){return(0,v.executeOperation)(this.client,new A.FindOneAndReplaceOperation(this,e,t,(0,R.resolveOptions)(this,r)))}async findOneAndUpdate(e,t,r){return(0,v.executeOperation)(this.client,new A.FindOneAndUpdateOperation(this,e,t,(0,R.resolveOptions)(this,r)))}aggregate(e=[],t){if(!Array.isArray(e))throw new d.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new a.AggregationCursor(this.client,this.s.namespace,e,(0,R.resolveOptions)(this,t))}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new s.ChangeStream(this,e,(0,R.resolveOptions)(this,t))}initializeUnorderedBulkOp(e){return new o.UnorderedBulkOperation(this,(0,R.resolveOptions)(this,e))}initializeOrderedBulkOp(e){return new i.OrderedBulkOperation(this,(0,R.resolveOptions)(this,e))}async count(e={},t={}){return(0,v.executeOperation)(this.client,new p.CountOperation(this.fullNamespace,e,(0,R.resolveOptions)(this,t)))}listSearchIndexes(e,t){t="object"==typeof e?e:null==t?{}:t;const r=null==e||"object"==typeof e?null:e;return new l.ListSearchIndexesCursor(this,r,t)}async createSearchIndex(e){const[t]=await this.createSearchIndexes([e]);return t}async createSearchIndexes(e){return(0,v.executeOperation)(this.client,new _.CreateSearchIndexesOperation(this,e))}async dropSearchIndex(e){return(0,v.executeOperation)(this.client,new x.DropSearchIndexOperation(this,e))}async updateSearchIndex(e,t){return(0,v.executeOperation)(this.client,new D.UpdateSearchIndexOperation(this,e,t))}}},2395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURE_FLAGS=t.DEFAULT_OPTIONS=t.OPTIONS=t.parseOptions=t.resolveSRVRecord=void 0;const n=r(665),i=r(2048),o=r(451),s=r(7360),a=r(4064),u=r(4511),c=r(8043),l=r(942),d=r(3748),h=r(4947),p=r(2319),f=r(9925),m=r(3389),g=r(1228),E=r(2229),y=r(4620),v=["authSource","replicaSet","loadBalanced"];t.resolveSRVRecord=async function(e){if("string"!=typeof e.srvHost)throw new h.MongoAPIError('Option "srvHost" must not be empty');if(e.srvHost.split(".").length<3)throw new h.MongoAPIError("URI must include hostname, domain name, and tld");const t=e.srvHost,r=await n.promises.resolveSrv(`_${e.srvServiceName}._tcp.${t}`);if(0===r.length)throw new h.MongoAPIError("No addresses found at host");for(const{name:e}of r)if(!(0,E.matchesParentDomain)(e,t))throw new h.MongoAPIError("Server record does not share hostname with parent URI");const i=r.map((e=>E.HostAddress.fromString(`${e.name}:${e.port??27017}`)));let o;x(i,e,!0);try{o=await n.promises.resolveTxt(t)}catch(e){if("ENODATA"!==e.code&&"ENOTFOUND"!==e.code)throw e;return i}if(o.length>1)throw new h.MongoParseError("Multiple text records not allowed");const c=new s.URLSearchParams(o[0].join(""));if([...c.keys()].some((e=>!v.includes(e))))throw new h.MongoParseError(`Text record may only set any of: ${v.join(", ")}`);if(v.some((e=>""===c.get(e))))throw new h.MongoParseError("Cannot have empty URI params in DNS TXT Record");const l=c.get("authSource")??void 0,d=c.get("replicaSet")??void 0,p=c.get("loadBalanced")??void 0;if(!e.userSpecifiedAuthSource&&l&&e.credentials&&!u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(e.credentials.mechanism)&&(e.credentials=a.MongoCredentials.merge(e.credentials,{source:l})),!e.userSpecifiedReplicaSet&&d&&(e.replicaSet=d),"true"===p&&(e.loadBalanced=!0),e.replicaSet&&e.srvMaxHosts>0)throw new h.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return x(i,e,!0),i};const A=new Set(["true","t","1","y","yes"]),C=new Set(["false","f","0","n","no","-1"]);function b(e,t){if("boolean"==typeof t)return t;const r=String(t).toLowerCase();if(A.has(r))return"true"!==r&&(0,E.emitWarningOnce)(`deprecated value for ${e} : ${r} - please update to ${e} : true instead`),!0;if(C.has(r))return"false"!==r&&(0,E.emitWarningOnce)(`deprecated value for ${e} : ${r} - please update to ${e} : false instead`),!1;throw new h.MongoParseError(`Expected ${e} to be stringified boolean value, got: ${t}`)}function S(e,t){const r=(0,E.parseInteger)(t);if(null!=r)return r;throw new h.MongoParseError(`Expected ${e} to be stringified int value, got: ${t}`)}function w(e,t){const r=S(e,t);if(r<0)throw new h.MongoParseError(`${e} can only be a positive int value, got: ${t}`);return r}function*O(e){const t=e.split(",");for(const e of t){const[t,r]=e.split(/:(.*)/);if(null==r)throw new h.MongoParseError("Cannot have undefined values in key value pairs");yield[t,r]}}class _ extends Map{constructor(e=[]){super(e.map((([e,t])=>[e.toLowerCase(),t])))}has(e){return super.has(e.toLowerCase())}get(e){return super.get(e.toLowerCase())}set(e,t){return super.set(e.toLowerCase(),t)}delete(e){return super.delete(e.toLowerCase())}}function x(e,t,r){if(t.loadBalanced){if(e.length>1)throw new h.MongoParseError("loadBalanced option only supported with a single host in the URI");if(t.replicaSet)throw new h.MongoParseError("loadBalanced option not supported with a replicaSet option");if(t.directConnection)throw new h.MongoParseError("loadBalanced option not supported when directConnection is provided");if(r&&t.srvMaxHosts>0)throw new h.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}}function D(e,t,r,n){const{target:i,type:o,transform:s}=r,a=i??t;switch(o){case"boolean":e[a]=b(a,n[0]);break;case"int":e[a]=S(a,n[0]);break;case"uint":e[a]=w(a,n[0]);break;case"string":if(null==n[0])break;e[a]=String(n[0]);break;case"record":if(!(0,E.isRecord)(n[0]))throw new h.MongoParseError(`${a} must be an object`);e[a]=n[0];break;case"any":e[a]=n[0];break;default:{if(!s)throw new h.MongoParseError("Descriptors missing a type must define a transform");const t=s({name:a,options:e,values:n});e[a]=t;break}}}t.parseOptions=function(e,r=void 0,n={}){if(null==r||r instanceof p.MongoClient||(n=r,r=void 0),n.useBigInt64&&"boolean"==typeof n.promoteLongs&&!n.promoteLongs)throw new h.MongoAPIError("Must request either bigint or Long for int64 deserialization");if(n.useBigInt64&&"boolean"==typeof n.promoteValues&&!n.promoteValues)throw new h.MongoAPIError("Must request either bigint or Long for int64 deserialization");const i=new o.default(e),{hosts:s,isSRV:l}=i,m=Object.create(null);for(const e of Object.getOwnPropertySymbols(n))t.FEATURE_FLAGS.has(e)&&(m[e]=n[e]);m.hosts=l?[]:s.map(E.HostAddress.fromString);const g=new _;if("/"!==i.pathname&&""!==i.pathname){const e=decodeURIComponent("/"===i.pathname[0]?i.pathname.slice(1):i.pathname);e&&g.set("dbName",[e])}if(""!==i.username){const e={username:decodeURIComponent(i.username)};"string"==typeof i.password&&(e.password=decodeURIComponent(i.password)),g.set("auth",[e])}for(const e of i.searchParams.keys()){const t=[...i.searchParams.getAll(e)];if(t.includes(""))throw new h.MongoAPIError("URI cannot contain options with no value");g.has(e)||g.set(e,t)}const y=new _(Object.entries(n).filter((([,e])=>null!=e)));if(g.has("serverApi"))throw new h.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const v=g.get("authMechanismProperties");if(v)for(const e of v)if(/(^|,)ALLOWED_HOSTS:/.test(e))throw new h.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.");if(y.has("loadBalanced"))throw new h.MongoParseError("loadBalanced is only a valid option in the URI");const A=new _,C=new Set([...g.keys(),...y.keys()]);for(const e of C){const t=[],r=y.get(e);null!=r&&t.push(r);const n=g.get(e)??[];t.push(...n),A.set(e,t)}if(A.has("tlsCertificateKeyFile")&&!A.has("tlsCertificateFile")&&A.set("tlsCertificateFile",A.get("tlsCertificateKeyFile")),A.has("tls")||A.has("ssl")){const e=(A.get("tls")||[]).concat(A.get("ssl")||[]).map(b.bind(null,"tls/ssl"));if(1!==new Set(e).size)throw new h.MongoParseError("All values of tls/ssl must be the same.")}!function(e){if(!e)return;const t=(t,r)=>{if(e.has(t)&&e.has(r))throw new h.MongoAPIError(`The '${t}' option cannot be used with the '${r}' option`)};t("tlsInsecure","tlsAllowInvalidCertificates"),t("tlsInsecure","tlsAllowInvalidHostnames"),t("tlsInsecure","tlsDisableCertificateRevocationCheck"),t("tlsInsecure","tlsDisableOCSPEndpointCheck"),t("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),t("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),t("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")}(A);const S=(0,E.setDifference)(C,Array.from(Object.keys(t.OPTIONS)).map((e=>e.toLowerCase())));if(0!==S.size){const e=S.size>1?"options":"option",t=S.size>1?"are":"is";throw new h.MongoParseError(`${e} ${Array.from(S).join(", ")} ${t} not supported`)}for(const[e,r]of Object.entries(t.OPTIONS)){const n=A.get(e);if(n&&0!==n.length){const{deprecated:t}=r;if(t){const r="string"==typeof t?`: ${t}`:"";(0,E.emitWarning)(`${e} is a deprecated option${r}`)}D(m,e,r,n)}else t.DEFAULT_OPTIONS.has(e)&&D(m,e,r,[t.DEFAULT_OPTIONS.get(e)])}if(m.credentials){const e=m.credentials.mechanism===u.AuthMechanism.MONGODB_GSSAPI,t=m.credentials.mechanism===u.AuthMechanism.MONGODB_X509,r=m.credentials.mechanism===u.AuthMechanism.MONGODB_AWS,n=m.credentials.mechanism===u.AuthMechanism.MONGODB_OIDC;if((e||t)&&A.has("authSource")&&"$external"!==m.credentials.source)throw new h.MongoParseError(`authMechanism ${m.credentials.mechanism} requires an authSource of '$external'`);if(e||t||r||n||!m.dbName||A.has("authSource")||(m.credentials=a.MongoCredentials.merge(m.credentials,{source:m.dbName})),r&&m.credentials.username&&!m.credentials.password)throw new h.MongoMissingCredentialsError(`When using ${m.credentials.mechanism} password must be set when a username is specified`);m.credentials.validate(),""===m.credentials.password&&""===m.credentials.username&&m.credentials.mechanism===u.AuthMechanism.MONGODB_DEFAULT&&0===Object.keys(m.credentials.mechanismProperties).length&&delete m.credentials}if(m.dbName||(m.dbName="test"),x(s,m,l),r&&m.autoEncryption&&(d.Encrypter.checkForMongoCrypt(),m.encrypter=new d.Encrypter(r,e,n),m.autoEncrypter=m.encrypter.autoEncrypter),m.userSpecifiedAuthSource=y.has("authSource")||g.has("authSource"),m.userSpecifiedReplicaSet=y.has("replicaSet")||g.has("replicaSet"),l){if(m.srvHost=s[0],m.directConnection)throw new h.MongoAPIError("SRV URI does not support directConnection");if(m.srvMaxHosts>0&&"string"==typeof m.replicaSet)throw new h.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const e=!y.has("tls")&&!g.has("tls"),t=!y.has("ssl")&&!g.has("ssl");e&&t&&(m.tls=!0)}else if(g.has("srvMaxHosts")||y.has("srvMaxHosts")||g.has("srvServiceName")||y.has("srvServiceName"))throw new h.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(m.directConnection&&1!==m.hosts.length)throw new h.MongoParseError("directConnection option requires exactly one host");if(!m.proxyHost&&(m.proxyPort||m.proxyUsername||m.proxyPassword))throw new h.MongoParseError("Must specify proxyHost if other proxy options are passed");if(m.proxyUsername&&!m.proxyPassword||!m.proxyUsername&&m.proxyPassword)throw new h.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((e=>g.get(e)??[])).some((e=>e.length>1)))throw new h.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const w=Symbol.for("@@mdb.enableMongoLogger");m[w]=m[w]??!1;let O={},T={};return m[w]&&(O={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...m[Symbol.for("@@mdb.internalLoggerConfig")]},T={mongodbLogPath:m.mongodbLogPath}),m.mongoLoggerOptions=f.MongoLogger.resolveOptions(O,T),m.metadata=(0,c.makeClientMetadata)(m),m},t.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:e,options:t,values:[r]}){if(!(0,E.isRecord)(r,["username","password"]))throw new h.MongoParseError(`${e} must be an object with 'username' and 'password' properties`);return a.MongoCredentials.merge(t.credentials,{username:r.username,password:r.password})}},authMechanism:{target:"credentials",transform({options:e,values:[t]}){const r=Object.values(u.AuthMechanism),[n]=r.filter((e=>e.match(RegExp(String.raw`\b${t}\b`,"i"))));if(!n)throw new h.MongoParseError(`authMechanism one of ${r}, got ${t}`);let i=e.credentials?.source;(n===u.AuthMechanism.MONGODB_PLAIN||u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(n))&&(i="$external");let o=e.credentials?.password;return n===u.AuthMechanism.MONGODB_X509&&""===o&&(o=void 0),a.MongoCredentials.merge(e.credentials,{mechanism:n,source:i,password:o})}},authMechanismProperties:{target:"credentials",transform({options:e,values:t}){let r=Object.create(null);for(const e of t)if("string"==typeof e)for(const[t,n]of O(e))try{r[t]=b(t,n)}catch{r[t]=n}else{if(!(0,E.isRecord)(e))throw new h.MongoParseError("AuthMechanismProperties must be an object");r={...e}}return a.MongoCredentials.merge(e.credentials,{mechanismProperties:r})}},authSource:{target:"credentials",transform({options:e,values:[t]}){const r=String(t);return a.MongoCredentials.merge(e.credentials,{source:r})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[e]}){const t="string"==typeof e?{version:e}:e,r=t&&t.version;if(!r)throw new h.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(p.ServerApiVersion).join('", "')}"]`);if(!Object.values(p.ServerApiVersion).some((e=>e===r)))throw new h.MongoParseError(`Invalid server API version=${r}; must be in the following enum: ["${Object.values(p.ServerApiVersion).join('", "')}"]`);return t}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:e}){const t=new Set;for(const r of e){const e="string"==typeof r?r.split(","):r;if(!Array.isArray(e))throw new h.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(const r of e){if(!Object.keys(l.Compressor).includes(String(r)))throw new h.MongoInvalidArgumentError(`${r} is not a valid compression mechanism. Must be one of: ${Object.keys(l.Compressor)}.`);t.add(String(r))}}return[...t]}},connectTimeoutMS:{default:3e4,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:e,values:[t]}){const r=S(e,t);if(4===r||6===r)return r;throw new h.MongoParseError(`Option 'family' must be 4 or 6 got ${r}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,fsync:b(e,r)}});if(!n)throw new h.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:e,options:t,values:[r]}){const n=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:b(e,r)}});if(!n)throw new h.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},journal:{target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:b(e,r)}});if(!n)throw new h.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},keepAlive:{default:!0,type:"boolean",deprecated:"Will not be able to turn off in the future."},keepAliveInitialDelay:{default:12e4,type:"uint",deprecated:"Will not be configurable in the future."},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:e,values:[t]}){const r=w(e,t);if(0===r)throw new h.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return r}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:e,options:t,values:[r]}){const n=w(e,r);return t.readPreference?g.ReadPreference.fromOptions({readPreference:{...t.readPreference,maxStalenessSeconds:n}}):new g.ReadPreference("secondary",void 0,{maxStalenessSeconds:n})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform:({values:[e],options:t})=>({...t.driverInfo,name:String(e)})},noDelay:{default:!0,type:"boolean"},pkFactory:{default:E.DEFAULT_PK_FACTORY,transform({values:[e]}){if((0,E.isRecord)(e,["createPk"])&&"function"==typeof e.createPk)return e;throw new h.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${e}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[e],options:t}){if(e instanceof m.ReadConcern||(0,E.isRecord)(e,["level"]))return m.ReadConcern.fromOptions({...t.readConcern,...e});throw new h.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(e)}`)}},readConcernLevel:{target:"readConcern",transform:({values:[e],options:t})=>m.ReadConcern.fromOptions({...t.readConcern,level:e})},readPreference:{default:g.ReadPreference.primary,transform({values:[e],options:t}){if(e instanceof g.ReadPreference)return g.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if((0,E.isRecord)(e,["mode"])){const r=g.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if(r)return r;throw new h.MongoParseError(`Cannot make read preference from ${JSON.stringify(e)}`)}if("string"==typeof e){const r={hedge:t.readPreference?.hedge,maxStalenessSeconds:t.readPreference?.maxStalenessSeconds};return new g.ReadPreference(e,t.readPreference?.tags,r)}throw new h.MongoParseError(`Unknown ReadPreference value: ${e}`)}},readPreferenceTags:{target:"readPreference",transform({values:e,options:t}){const r=Array.isArray(e[0])?e[0]:e,n=[];for(const e of r){const t=Object.create(null);if("string"==typeof e)for(const[r,n]of O(e))t[r]=n;if((0,E.isRecord)(e))for(const[r,n]of Object.entries(e))t[r]=n;n.push(t)}return g.ReadPreference.fromOptions({readPreference:t.readPreference,readPreferenceTags:n})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},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"},sslCA:{deprecated:"sslCA is deprecated and will be removed in the next major version. Please use tlsCAFile instead.",target:"ca",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslCRL:{deprecated:"sslCRL is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"crl",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslCert:{deprecated:"sslCert is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslKey:{deprecated:"sslKey is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"key",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslPass:{deprecated:"sslPass is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFilePassword instead.",target:"passphrase",type:"string"},sslValidate:{deprecated:"sslValidate is deprecated and will be removed in the next major version. Please use tlsAllowInvalidCertificates instead.",target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform:({name:e,values:[t]})=>!b(e,t)},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform:({name:e,values:[t]})=>b(e,t)?()=>{}:void 0},tlsCAFile:{target:"ca",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateFile:{deprecated:"tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateKeyFile:{target:"key",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:e,options:t,values:[r]}){const n=b(e,r);return n?(t.checkServerIdentity=()=>{},t.rejectUnauthorized=!1):(t.checkServerIdentity=t.tlsAllowInvalidHostnames?()=>{}:void 0,t.rejectUnauthorized=!t.tlsAllowInvalidCertificates),n}},w:{target:"writeConcern",transform:({values:[e],options:t})=>y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}})},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[e],options:t}){if((0,E.isRecord)(e)||e instanceof y.WriteConcern)return y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,...e}});if("majority"===e||"number"==typeof e)return y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}});throw new h.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(e)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[e],options:t}){const r=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeout:w("wtimeout",e)}});if(r)return r;throw new h.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[e],options:t}){const r=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeoutMS:w("wtimeoutMS",e)}});if(r)return r;throw new h.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean"},useUnifiedTopology:{type:"boolean"},mongodbLogPath:{type:"any"}},t.DEFAULT_OPTIONS=new _(Object.entries(t.OPTIONS).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]))),t.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])},5006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TOPOLOGY_EVENTS=t.CMAP_EVENTS=t.HEARTBEAT_EVENTS=t.RESUME_TOKEN_CHANGED=t.END=t.CHANGE=t.INIT=t.MORE=t.RESPONSE=t.SERVER_HEARTBEAT_FAILED=t.SERVER_HEARTBEAT_SUCCEEDED=t.SERVER_HEARTBEAT_STARTED=t.COMMAND_FAILED=t.COMMAND_SUCCEEDED=t.COMMAND_STARTED=t.CLUSTER_TIME_RECEIVED=t.CONNECTION_CHECKED_IN=t.CONNECTION_CHECKED_OUT=t.CONNECTION_CHECK_OUT_FAILED=t.CONNECTION_CHECK_OUT_STARTED=t.CONNECTION_CLOSED=t.CONNECTION_READY=t.CONNECTION_CREATED=t.CONNECTION_POOL_READY=t.CONNECTION_POOL_CLEARED=t.CONNECTION_POOL_CLOSED=t.CONNECTION_POOL_CREATED=t.TOPOLOGY_DESCRIPTION_CHANGED=t.TOPOLOGY_CLOSED=t.TOPOLOGY_OPENING=t.SERVER_DESCRIPTION_CHANGED=t.SERVER_CLOSED=t.SERVER_OPENING=t.DESCRIPTION_RECEIVED=t.UNPINNED=t.PINNED=t.MESSAGE=t.ENDED=t.CLOSED=t.CONNECT=t.OPEN=t.CLOSE=t.TIMEOUT=t.ERROR=t.SYSTEM_JS_COLLECTION=t.SYSTEM_COMMAND_COLLECTION=t.SYSTEM_USER_COLLECTION=t.SYSTEM_PROFILE_COLLECTION=t.SYSTEM_INDEX_COLLECTION=t.SYSTEM_NAMESPACE_COLLECTION=void 0,t.LEGACY_HELLO_COMMAND_CAMEL_CASE=t.LEGACY_HELLO_COMMAND=t.MONGO_CLIENT_EVENTS=t.LOCAL_SERVER_EVENTS=t.SERVER_RELAY_EVENTS=t.APM_EVENTS=void 0,t.SYSTEM_NAMESPACE_COLLECTION="system.namespaces",t.SYSTEM_INDEX_COLLECTION="system.indexes",t.SYSTEM_PROFILE_COLLECTION="system.profile",t.SYSTEM_USER_COLLECTION="system.users",t.SYSTEM_COMMAND_COLLECTION="$cmd",t.SYSTEM_JS_COLLECTION="system.js",t.ERROR="error",t.TIMEOUT="timeout",t.CLOSE="close",t.OPEN="open",t.CONNECT="connect",t.CLOSED="closed",t.ENDED="ended",t.MESSAGE="message",t.PINNED="pinned",t.UNPINNED="unpinned",t.DESCRIPTION_RECEIVED="descriptionReceived",t.SERVER_OPENING="serverOpening",t.SERVER_CLOSED="serverClosed",t.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged",t.TOPOLOGY_OPENING="topologyOpening",t.TOPOLOGY_CLOSED="topologyClosed",t.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged",t.CONNECTION_POOL_CREATED="connectionPoolCreated",t.CONNECTION_POOL_CLOSED="connectionPoolClosed",t.CONNECTION_POOL_CLEARED="connectionPoolCleared",t.CONNECTION_POOL_READY="connectionPoolReady",t.CONNECTION_CREATED="connectionCreated",t.CONNECTION_READY="connectionReady",t.CONNECTION_CLOSED="connectionClosed",t.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted",t.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed",t.CONNECTION_CHECKED_OUT="connectionCheckedOut",t.CONNECTION_CHECKED_IN="connectionCheckedIn",t.CLUSTER_TIME_RECEIVED="clusterTimeReceived",t.COMMAND_STARTED="commandStarted",t.COMMAND_SUCCEEDED="commandSucceeded",t.COMMAND_FAILED="commandFailed",t.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted",t.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded",t.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed",t.RESPONSE="response",t.MORE="more",t.INIT="init",t.CHANGE="change",t.END="end",t.RESUME_TOKEN_CHANGED="resumeTokenChanged",t.HEARTBEAT_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED]),t.CMAP_EVENTS=Object.freeze([t.CONNECTION_POOL_CREATED,t.CONNECTION_POOL_READY,t.CONNECTION_POOL_CLEARED,t.CONNECTION_POOL_CLOSED,t.CONNECTION_CREATED,t.CONNECTION_READY,t.CONNECTION_CLOSED,t.CONNECTION_CHECK_OUT_STARTED,t.CONNECTION_CHECK_OUT_FAILED,t.CONNECTION_CHECKED_OUT,t.CONNECTION_CHECKED_IN]),t.TOPOLOGY_EVENTS=Object.freeze([t.SERVER_OPENING,t.SERVER_CLOSED,t.SERVER_DESCRIPTION_CHANGED,t.TOPOLOGY_OPENING,t.TOPOLOGY_CLOSED,t.TOPOLOGY_DESCRIPTION_CHANGED,t.ERROR,t.TIMEOUT,t.CLOSE]),t.APM_EVENTS=Object.freeze([t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED]),t.SERVER_RELAY_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED,t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED,...t.CMAP_EVENTS]),t.LOCAL_SERVER_EVENTS=Object.freeze([t.CONNECT,t.DESCRIPTION_RECEIVED,t.CLOSED,t.ENDED]),t.MONGO_CLIENT_EVENTS=Object.freeze([...t.CMAP_EVENTS,...t.APM_EVENTS,...t.TOPOLOGY_EVENTS,...t.HEARTBEAT_EVENTS]),t.LEGACY_HELLO_COMMAND="ismaster",t.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"},6829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertUninitialized=t.AbstractCursor=t.CURSOR_FLAGS=void 0;const n=r(6162),i=r(1764),o=r(9064),s=r(4947),a=r(334),u=r(7445),c=r(4170),l=r(9602),d=r(3389),h=r(1228),p=r(1296),f=r(2229),m=Symbol("id"),g=Symbol("documents"),E=Symbol("server"),y=Symbol("namespace"),v=Symbol("client"),A=Symbol("session"),C=Symbol("options"),b=Symbol("transform"),S=Symbol("initialized"),w=Symbol("closed"),O=Symbol("killed"),_=Symbol("kInit");t.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class x extends a.TypedEventEmitter{constructor(e,t,r={}){if(super(),!e.s.isMongoClient)throw new s.MongoRuntimeError("Cursor must be constructed with MongoClient");this[v]=e,this[y]=t,this[m]=null,this[g]=new f.List,this[S]=!1,this[w]=!1,this[O]=!1,this[C]={readPreference:r.readPreference&&r.readPreference instanceof h.ReadPreference?r.readPreference:h.ReadPreference.primary,...(0,o.pluckBSONSerializeOptions)(r)};const n=d.ReadConcern.fromOptions(r);n&&(this[C].readConcern=n),"number"==typeof r.batchSize&&(this[C].batchSize=r.batchSize),void 0!==r.comment&&(this[C].comment=r.comment),"number"==typeof r.maxTimeMS&&(this[C].maxTimeMS=r.maxTimeMS),"number"==typeof r.maxAwaitTimeMS&&(this[C].maxAwaitTimeMS=r.maxAwaitTimeMS),r.session instanceof p.ClientSession?this[A]=r.session:this[A]=this[v].startSession({owner:this,explicit:!1})}get id(){return this[m]??void 0}get client(){return this[v]}get server(){return this[E]}get namespace(){return this[y]}get readPreference(){return this[C].readPreference}get readConcern(){return this[C].readConcern}get session(){return this[A]}set session(e){this[A]=e}get cursorOptions(){return this[C]}get closed(){return this[w]}get killed(){return this[O]}get loadBalanced(){return!!this[v].topology?.loadBalanced}bufferedCount(){return this[g].length}readBufferedDocuments(e){const t=[],r=Math.min(e??this[g].length,this[g].length);for(let e=0;e<r;e++){const e=this[g].shift();null!=e&&t.push(e)}return t}async*[Symbol.asyncIterator](){if(!this.closed)try{for(;;){const e=await this.next();if(null===e){if(!this.closed){const e="Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.";throw await B(this,{needsToEmitClosed:!0}).catch((()=>null)),new s.MongoAPIError(e)}break}if(yield e,this[m]===o.Long.ZERO)break}}finally{this.closed||await this.close().catch((()=>null))}}stream(e){if(e?.transform){const t=e.transform;return new R(this).pipe(new n.Transform({objectMode:!0,highWaterMark:1,transform(e,r,n){try{n(void 0,t(e))}catch(e){n(e)}}}))}return new R(this)}async hasNext(){if(this[m]===o.Long.ZERO)return!1;if(0!==this[g].length)return!0;const e=await D(this,{blocking:!0,transform:!1});return!!e&&(this[g].unshift(e),!0)}async next(){if(this[m]===o.Long.ZERO)throw new s.MongoCursorExhaustedError;return D(this,{blocking:!0,transform:!0})}async tryNext(){if(this[m]===o.Long.ZERO)throw new s.MongoCursorExhaustedError;return D(this,{blocking:!1,transform:!0})}async forEach(e){if("function"!=typeof e)throw new s.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(const t of this)if(!1===e(t))break}async close(){const e=!this[w];this[w]=!0,await B(this,{needsToEmitClosed:e})}async toArray(){const e=[];for await(const t of this)e.push(t);return e}addCursorFlag(e,r){if(F(this),!t.CURSOR_FLAGS.includes(e))throw new s.MongoInvalidArgumentError(`Flag ${e} is not one of ${t.CURSOR_FLAGS}`);if("boolean"!=typeof r)throw new s.MongoInvalidArgumentError(`Flag ${e} must be a boolean value`);return this[C][e]=r,this}map(e){F(this);const t=this[b];return this[b]=t?r=>e(t(r)):e,this}withReadPreference(e){if(F(this),e instanceof h.ReadPreference)this[C].readPreference=e;else{if("string"!=typeof e)throw new s.MongoInvalidArgumentError(`Invalid read preference: ${e}`);this[C].readPreference=h.ReadPreference.fromString(e)}return this}withReadConcern(e){F(this);const t=d.ReadConcern.fromOptions({readConcern:e});return t&&(this[C].readConcern=t),this}maxTimeMS(e){if(F(this),"number"!=typeof e)throw new s.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[C].maxTimeMS=e,this}batchSize(e){if(F(this),this[C].tailable)throw new s.MongoTailableCursorError("Tailable cursor does not support batchSize");if("number"!=typeof e)throw new s.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[C].batchSize=e,this}rewind(){if(!this[S])return;this[m]=null,this[g].clear(),this[w]=!1,this[O]=!1,this[S]=!1;const e=this[A];e&&!1===e.explicit&&(e.hasEnded||e.endSession().catch((()=>null)),this[A]=this.client.startSession({owner:this,explicit:!1}))}_getMore(e,t){const r=new c.GetMoreOperation(this[y],this[m],this[E],{...this[C],session:this[A],batchSize:e});(0,u.executeOperation)(this[v],r,t)}[_](e){this._initialize(this[A],((t,r)=>{if(r){const e=r.response;this[E]=r.server,e.cursor&&(this[m]="number"==typeof e.cursor.id?o.Long.fromNumber(e.cursor.id):"bigint"==typeof e.cursor.id?o.Long.fromBigInt(e.cursor.id):e.cursor.id,e.cursor.ns&&(this[y]=(0,f.ns)(e.cursor.ns)),this[g].pushMany(e.cursor.firstBatch)),null==this[m]&&(this[m]=o.Long.ZERO,this[g].push(r.response))}return this[S]=!0,t?I(this,{error:t},(()=>e(t,void 0))):T(this)?I(this,void 0,(()=>e())):void e()}))}}async function D(e,{blocking:t,transform:r}){const n=e[m];if(e.closed)return null;if(0!==e[g].length){const t=e[g].shift();if(null!=t&&r&&e[b])try{return e[b](t)}catch(t){throw await B(e,{error:t,needsToEmitClosed:!0}).catch((()=>{})),t}return t}if(null==n){const n=(0,i.promisify)((t=>e[_](t)));return await n(),D(e,{blocking:t,transform:r})}if(T(e))return await B(e,{}),null;const s=e[C].batchSize||1e3,a=(0,i.promisify)(((t,r)=>e._getMore(t,r)));let u;try{u=await a(s)}catch(t){if(t)throw await B(e,{error:t}).catch((()=>{})),t}if(u){const t="number"==typeof u.cursor.id?o.Long.fromNumber(u.cursor.id):"bigint"==typeof u.cursor.id?o.Long.fromBigInt(u.cursor.id):u.cursor.id;e[g].pushMany(u.cursor.nextBatch),e[m]=t}return T(e)&&await B(e,{}),0===e[g].length&&!1===t?null:D(e,{blocking:t,transform:r})}function T(e){const t=e[m];return!!t&&t.isZero()}x.CLOSE="close",t.AbstractCursor=x;const B=(0,i.promisify)(I);function I(e,t,r){const n=e[m],i=e[y],a=e[E],c=e[A],d=t?.error,h=t?.needsToEmitClosed??0===e[g].length;if(d&&e.loadBalanced&&d instanceof s.MongoNetworkError)return f();if(null==n||null==a||n.isZero()||null==i){if(h&&(e[w]=!0,e[m]=o.Long.ZERO,e.emit(x.CLOSE)),c){if(c.owner===e)return void c.endSession({error:d}).finally((()=>{r()}));c.inTransaction()||(0,p.maybeClearPinnedConnection)(c,{error:d})}return r()}function f(){if(c){if(c.owner===e)return void c.endSession({error:d}).finally((()=>{e.emit(x.CLOSE),r()}));c.inTransaction()||(0,p.maybeClearPinnedConnection)(c,{error:d})}return e.emit(x.CLOSE),r()}if(e[O]=!0,c.hasEnded)return f();(0,u.executeOperation)(e[v],new l.KillCursorsOperation(n,i,a,{session:c})).catch((()=>null)).finally(f)}function F(e){if(e[S])throw new s.MongoCursorInUseError}t.assertUninitialized=F;class R extends n.Readable{constructor(e){super({objectMode:!0,autoDestroy:!1,highWaterMark:1}),this._readInProgress=!1,this._cursor=e}_read(e){this._readInProgress||(this._readInProgress=!0,this._readNext())}_destroy(e,t){this._cursor.close().then((()=>t(e)),(e=>t(e)))}_readNext(){D(this._cursor,{blocking:!0,transform:!0}).then((e=>{if(null==e)this.push(null);else if(this.destroyed)this._cursor.close().catch((()=>null));else{if(this.push(e))return this._readNext();this._readInProgress=!1}}),(e=>e.message.match(/server is closed/)?(this._cursor.close().catch((()=>null)),this.push(null)):e.message.match(/operation was interrupted/)?this.push(null):this.destroy(e)))}}},3490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregationCursor=void 0;const n=r(4213),i=r(7445),o=r(2229),s=r(6829),a=Symbol("pipeline"),u=Symbol("options");class c extends s.AbstractCursor{constructor(e,t,r=[],n={}){super(e,t,n),this[a]=r,this[u]=n}get pipeline(){return this[a]}clone(){const e=(0,o.mergeOptions)({},this[u]);return delete e.session,new c(this.client,this.namespace,this[a],{...e})}map(e){return super.map(e)}_initialize(e,t){const r=new n.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,session:e});(0,i.executeOperation)(this.client,r,((n,i)=>{if(n||null==i)return t(n);t(void 0,{server:r.server,session:e,response:i})}))}async explain(e){return(0,i.executeOperation)(this.client,new n.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,explain:e??!0}))}group(e){return(0,s.assertUninitialized)(this),this[a].push({$group:e}),this}limit(e){return(0,s.assertUninitialized)(this),this[a].push({$limit:e}),this}match(e){return(0,s.assertUninitialized)(this),this[a].push({$match:e}),this}out(e){return(0,s.assertUninitialized)(this),this[a].push({$out:e}),this}project(e){return(0,s.assertUninitialized)(this),this[a].push({$project:e}),this}lookup(e){return(0,s.assertUninitialized)(this),this[a].push({$lookup:e}),this}redact(e){return(0,s.assertUninitialized)(this),this[a].push({$redact:e}),this}skip(e){return(0,s.assertUninitialized)(this),this[a].push({$skip:e}),this}sort(e){return(0,s.assertUninitialized)(this),this[a].push({$sort:e}),this}unwind(e){return(0,s.assertUninitialized)(this),this[a].push({$unwind:e}),this}geoNear(e){return(0,s.assertUninitialized)(this),this[a].push({$geoNear:e}),this}}t.AggregationCursor=c},2206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStreamCursor=void 0;const n=r(4747),i=r(5006),o=r(4213),s=r(7445),a=r(2229),u=r(6829);class c extends u.AbstractCursor{constructor(e,t,r=[],n={}){super(e,t,n),this.pipeline=r,this.options=n,this._resumeToken=null,this.startAtOperationTime=n.startAtOperationTime,n.startAfter?this.resumeToken=n.startAfter:n.resumeAfter&&(this.resumeToken=n.resumeAfter)}set resumeToken(e){this._resumeToken=e,this.emit(n.ChangeStream.RESUME_TOKEN_CHANGED,e)}get resumeToken(){return this._resumeToken}get resumeOptions(){const e={...this.options};for(const t of["resumeAfter","startAfter","startAtOperationTime"])delete e[t];return null!=this.resumeToken?this.options.startAfter&&!this.hasReceived?e.startAfter=this.resumeToken:e.resumeAfter=this.resumeToken:null!=this.startAtOperationTime&&(0,a.maxWireVersion)(this.server)>=7&&(e.startAtOperationTime=this.startAtOperationTime),e}cacheResumeToken(e){0===this.bufferedCount()&&this.postBatchResumeToken?this.resumeToken=this.postBatchResumeToken:this.resumeToken=e,this.hasReceived=!0}_processBatch(e){const t=e.cursor;t.postBatchResumeToken&&(this.postBatchResumeToken=e.cursor.postBatchResumeToken,0===("firstBatch"in e.cursor?e.cursor.firstBatch:e.cursor.nextBatch).length&&(this.resumeToken=t.postBatchResumeToken))}clone(){return new c(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(e,t){const r=new o.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:e});(0,s.executeOperation)(e.client,r,((n,o)=>{if(n||null==o)return t(n);const s=r.server;this.maxWireVersion=(0,a.maxWireVersion)(s),null==this.startAtOperationTime&&null==this.resumeAfter&&null==this.startAfter&&this.maxWireVersion>=7&&(this.startAtOperationTime=o.operationTime),this._processBatch(o),this.emit(i.INIT,o),this.emit(i.RESPONSE),t(void 0,{server:s,session:e,response:o})}))}_getMore(e,t){super._getMore(e,((e,r)=>{if(e)return t(e);this.maxWireVersion=(0,a.maxWireVersion)(this.server),this._processBatch(r),this.emit(n.ChangeStream.MORE,r),this.emit(n.ChangeStream.RESPONSE),t(e,r)}))}}t.ChangeStreamCursor=c},6331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindCursor=t.FLAGS=void 0;const n=r(4947),i=r(2566),o=r(7445),s=r(1709),a=r(649),u=r(2229),c=r(6829),l=Symbol("filter"),d=Symbol("numReturned"),h=Symbol("builtOptions");t.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class p extends c.AbstractCursor{constructor(e,t,r={},n={}){super(e,t,n),this[l]=r,this[h]=n,null!=n.sort&&(this[h].sort=(0,a.formatSort)(n.sort))}clone(){const e=(0,u.mergeOptions)({},this[h]);return delete e.session,new p(this.client,this.namespace,this[l],{...e})}map(e){return super.map(e)}_initialize(e,t){const r=new s.FindOperation(void 0,this.namespace,this[l],{...this[h],...this.cursorOptions,session:e});(0,o.executeOperation)(this.client,r,((n,i)=>{if(n||null==i)return t(n);i.cursor?this[d]=i.cursor.firstBatch.length:this[d]=i.documents?i.documents.length:0,t(void 0,{server:r.server,session:e,response:i})}))}_getMore(e,t){const r=this[d];if(r){const n=this[h].limit;if((e=n&&n>0&&r+e>n?n-r:e)<=0)return void this.close().finally((()=>t()))}super._getMore(e,((e,r)=>{if(e)return t(e);r&&(this[d]=this[d]+r.cursor.nextBatch.length),t(void 0,r)}))}async count(e){if((0,u.emitWarningOnce)("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),"boolean"==typeof e)throw new n.MongoInvalidArgumentError("Invalid first parameter to count");return(0,o.executeOperation)(this.client,new i.CountOperation(this.namespace,this[l],{...this[h],...this.cursorOptions,...e}))}async explain(e){return(0,o.executeOperation)(this.client,new s.FindOperation(void 0,this.namespace,this[l],{...this[h],...this.cursorOptions,explain:e??!0}))}filter(e){return(0,c.assertUninitialized)(this),this[l]=e,this}hint(e){return(0,c.assertUninitialized)(this),this[h].hint=e,this}min(e){return(0,c.assertUninitialized)(this),this[h].min=e,this}max(e){return(0,c.assertUninitialized)(this),this[h].max=e,this}returnKey(e){return(0,c.assertUninitialized)(this),this[h].returnKey=e,this}showRecordId(e){return(0,c.assertUninitialized)(this),this[h].showRecordId=e,this}addQueryModifier(e,t){if((0,c.assertUninitialized)(this),"$"!==e[0])throw new n.MongoInvalidArgumentError(`${e} is not a valid query modifier`);switch(e.substr(1)){case"comment":this[h].comment=t;break;case"explain":this[h].explain=t;break;case"hint":this[h].hint=t;break;case"max":this[h].max=t;break;case"maxTimeMS":this[h].maxTimeMS=t;break;case"min":this[h].min=t;break;case"orderby":this[h].sort=(0,a.formatSort)(t);break;case"query":this[l]=t;break;case"returnKey":this[h].returnKey=t;break;case"showDiskLoc":this[h].showRecordId=t;break;default:throw new n.MongoInvalidArgumentError(`Invalid query modifier: ${e}`)}return this}comment(e){return(0,c.assertUninitialized)(this),this[h].comment=e,this}maxAwaitTimeMS(e){if((0,c.assertUninitialized)(this),"number"!=typeof e)throw new n.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[h].maxAwaitTimeMS=e,this}maxTimeMS(e){if((0,c.assertUninitialized)(this),"number"!=typeof e)throw new n.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[h].maxTimeMS=e,this}project(e){return(0,c.assertUninitialized)(this),this[h].projection=e,this}sort(e,t){if((0,c.assertUninitialized)(this),this[h].tailable)throw new n.MongoTailableCursorError("Tailable cursor does not support sorting");return this[h].sort=(0,a.formatSort)(e,t),this}allowDiskUse(e=!0){if((0,c.assertUninitialized)(this),!this[h].sort)throw new n.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');return e?(this[h].allowDiskUse=!0,this):(this[h].allowDiskUse=!1,this)}collation(e){return(0,c.assertUninitialized)(this),this[h].collation=e,this}limit(e){if((0,c.assertUninitialized)(this),this[h].tailable)throw new n.MongoTailableCursorError("Tailable cursor does not support limit");if("number"!=typeof e)throw new n.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[h].limit=e,this}skip(e){if((0,c.assertUninitialized)(this),this[h].tailable)throw new n.MongoTailableCursorError("Tailable cursor does not support skip");if("number"!=typeof e)throw new n.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[h].skip=e,this}}t.FindCursor=p},1640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListCollectionsCursor=void 0;const n=r(7445),i=r(2320),o=r(6829);class s extends o.AbstractCursor{constructor(e,t,r){super(e.client,e.s.namespace,r),this.parent=e,this.filter=t,this.options=r}clone(){return new s(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(e,t){const r=new i.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:e});(0,n.executeOperation)(this.parent.client,r,((n,i)=>{if(n||null==i)return t(n);t(void 0,{server:r.server,session:e,response:i})}))}}t.ListCollectionsCursor=s},5051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListIndexesCursor=void 0;const n=r(7445),i=r(2139),o=r(6829);class s extends o.AbstractCursor{constructor(e,t){super(e.client,e.s.namespace,t),this.parent=e,this.options=t}clone(){return new s(this.parent,{...this.options,...this.cursorOptions})}_initialize(e,t){const r=new i.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:e});(0,n.executeOperation)(this.parent.client,r,((n,i)=>{if(n||null==i)return t(n);t(void 0,{server:r.server,session:e,response:i})}))}}t.ListIndexesCursor=s},2496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListSearchIndexesCursor=void 0;const n=r(3490);class i extends n.AggregationCursor{constructor({fullNamespace:e,client:t},r,n={}){super(t,e,null==r?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:r}}],n)}}t.ListSearchIndexesCursor=i},9724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunCommandCursor=void 0;const n=r(4947),i=r(7445),o=r(4170),s=r(25),a=r(2229),u=r(6829);class c extends u.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 n.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(e){throw new n.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(e,t){throw new n.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(e){throw new n.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(e){throw new n.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(e,t,r={}){super(e.client,(0,a.ns)(e.namespace),r),this.getMoreOptions={},this.db=e,this.command=Object.freeze({...t})}_initialize(e,t){const r=new s.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:e,readPreference:this.cursorOptions.readPreference});(0,i.executeOperation)(this.client,r).then((i=>{null!=i.cursor?t(void 0,{server:r.server,session:e,response:i}):t(new n.MongoUnexpectedServerResponseError("Expected server to respond with cursor"))}),(e=>t(e)))}_getMore(e,t){const r=new o.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});(0,i.executeOperation)(this.client,r,t)}}t.RunCommandCursor=c},2644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Db=void 0;const n=r(5716),i=r(9064),o=r(4747),s=r(8971),a=r(5006),u=r(3490),c=r(1640),l=r(9724),d=r(4947),h=r(3186),p=r(4916),f=r(7711),m=r(3226),g=r(7445),E=r(2139),y=r(8528),v=r(8521),A=r(8955),C=r(25),b=r(4671),S=r(6577),w=r(3389),O=r(1228),_=r(2229),x=r(4620),D=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class T{constructor(e,t,r){r=r??{},r=(0,_.filterOptions)(r,D),function(e){if("string"!=typeof e)throw new d.MongoInvalidArgumentError("Database name must be a string");if(0===e.length)throw new d.MongoInvalidArgumentError("Database name cannot be the empty string");if("$external"===e)return;const t=[" ",".","$","/","\\"];for(let r=0;r<t.length;r++)if(-1!==e.indexOf(t[r]))throw new d.MongoAPIError(`database names cannot contain the character '${t[r]}'`)}(t),this.s={options:r,readPreference:O.ReadPreference.fromOptions(r),bsonOptions:(0,i.resolveBSONOptions)(r,e),pkFactory:r?.pkFactory??_.DEFAULT_PK_FACTORY,readConcern:w.ReadConcern.fromOptions(r),writeConcern:x.WriteConcern.fromOptions(r),namespace:new _.MongoDBNamespace(t)},this.client=e}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return"primary"!==this.s.readPreference?.preference||!1}get readConcern(){return this.s.readConcern}get readPreference(){return null==this.s.readPreference?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()}async createCollection(e,t){return(0,g.executeOperation)(this.client,new f.CreateCollectionOperation(this,e,(0,_.resolveOptions)(this,t)))}async command(e,t){return(0,g.executeOperation)(this.client,new C.RunCommandOperation(this,e,t))}aggregate(e=[],t){return new u.AggregationCursor(this.client,this.s.namespace,e,(0,_.resolveOptions)(this,t))}admin(){return new n.Admin(this)}collection(e,t={}){if("function"==typeof t)throw new d.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new s.Collection(this,e,(0,_.resolveOptions)(this,t))}async stats(e){return(0,g.executeOperation)(this.client,new S.DbStatsOperation(this,(0,_.resolveOptions)(this,e)))}listCollections(e={},t={}){return new c.ListCollectionsCursor(this,e,(0,_.resolveOptions)(this,t))}async renameCollection(e,t,r){return(0,g.executeOperation)(this.client,new A.RenameOperation(this.collection(e),t,{...r,new_collection:!0,readPreference:O.ReadPreference.primary}))}async dropCollection(e,t){return(0,g.executeOperation)(this.client,new m.DropCollectionOperation(this,e,(0,_.resolveOptions)(this,t)))}async dropDatabase(e){return(0,g.executeOperation)(this.client,new m.DropDatabaseOperation(this,(0,_.resolveOptions)(this,e)))}async collections(e){return(0,g.executeOperation)(this.client,new p.CollectionsOperation(this,(0,_.resolveOptions)(this,e)))}async createIndex(e,t,r){return(0,g.executeOperation)(this.client,new E.CreateIndexOperation(this,e,t,(0,_.resolveOptions)(this,r)))}async addUser(e,t,r){r=null!=r&&"object"==typeof r?r:null!=t&&"object"==typeof t?t:void 0;const n="string"==typeof t?t:void 0;return(0,g.executeOperation)(this.client,new h.AddUserOperation(this,e,n,(0,_.resolveOptions)(this,r)))}async removeUser(e,t){return(0,g.executeOperation)(this.client,new v.RemoveUserOperation(this,e,(0,_.resolveOptions)(this,t)))}async setProfilingLevel(e,t){return(0,g.executeOperation)(this.client,new b.SetProfilingLevelOperation(this,e,(0,_.resolveOptions)(this,t)))}async profilingLevel(e){return(0,g.executeOperation)(this.client,new y.ProfilingLevelOperation(this,(0,_.resolveOptions)(this,e)))}async indexInformation(e,t){return(0,g.executeOperation)(this.client,new E.IndexInformationOperation(this,e,(0,_.resolveOptions)(this,t)))}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new o.ChangeStream(this,e,(0,_.resolveOptions)(this,t))}runCursorCommand(e,t){return new l.RunCommandCursor(this,e,t)}}T.SYSTEM_NAMESPACE_COLLECTION=a.SYSTEM_NAMESPACE_COLLECTION,T.SYSTEM_INDEX_COLLECTION=a.SYSTEM_INDEX_COLLECTION,T.SYSTEM_PROFILE_COLLECTION=a.SYSTEM_PROFILE_COLLECTION,T.SYSTEM_USER_COLLECTION=a.SYSTEM_USER_COLLECTION,T.SYSTEM_COMMAND_COLLECTION=a.SYSTEM_COMMAND_COLLECTION,T.SYSTEM_JS_COLLECTION=a.SYSTEM_JS_COLLECTION,t.Db=T},8808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoEncryptionLoggerLevel=t.aws4=t.saslprep=t.getSnappy=t.getAwsCredentialProvider=t.getZstdLibrary=t.ZStandard=t.getKerberos=t.Kerberos=void 0;const n=r(4947);function i(e){return new Proxy(e?{kModuleError:e}:{},{get:(t,r)=>{if("kModuleError"===r)return e;throw e},set:()=>{throw e}})}t.Kerberos=i(new n.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication")),t.getKerberos=function(){try{return t.Kerberos=r(3617),t.Kerberos}catch{return t.Kerberos}},t.ZStandard=i(new n.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression")),t.getZstdLibrary=function(){try{return t.ZStandard=Object(function(){var e=new Error("Cannot find module '@mongodb-js/zstd'");throw e.code="MODULE_NOT_FOUND",e}()),t.ZStandard}catch{return t.ZStandard}},t.getAwsCredentialProvider=function(){try{return r(8062)}catch{return i(new n.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},t.getSnappy=function(){try{return r(8349)}catch(e){return{kModuleError:new n.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:e})}}},t.saslprep=i(new n.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{t.saslprep=r(7017)}catch{}t.aws4=i(new n.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{t.aws4=r(1595)}catch{}t.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})},3748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Encrypter=void 0;const n=r(5006),i=r(4947),o=r(2319),s=r(2229);let a;const u=Symbol("internalClient");t.Encrypter=class{constructor(e,t,r){if("object"!=typeof r.autoEncryption)throw new i.MongoInvalidArgumentError('Option "autoEncryption" must be specified');this[u]=null,this.bypassAutoEncryption=!!r.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,0===r.maxPoolSize&&null==r.autoEncryption.keyVaultClient?r.autoEncryption.keyVaultClient=e:null==r.autoEncryption.keyVaultClient&&(r.autoEncryption.keyVaultClient=this.getInternalClient(e,t,r)),this.bypassAutoEncryption?r.autoEncryption.metadataClient=void 0:0===r.maxPoolSize?r.autoEncryption.metadataClient=e:r.autoEncryption.metadataClient=this.getInternalClient(e,t,r),r.proxyHost&&(r.autoEncryption.proxyOptions={proxyHost:r.proxyHost,proxyPort:r.proxyPort,proxyUsername:r.proxyUsername,proxyPassword:r.proxyPassword}),this.autoEncrypter=new a(e,r.autoEncryption)}getInternalClient(e,t,r){let i=this[u];if(null==i){const s={};for(const e of[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)])["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(e)||Reflect.set(s,e,Reflect.get(r,e));s.minPoolSize=0,i=new o.MongoClient(t,s),this[u]=i;for(const t of n.MONGO_CLIENT_EVENTS)for(const r of e.listeners(t))i.on(t,r);e.on("newListener",((e,t)=>{i?.on(e,t)})),this.needsConnecting=!0}return i}async connectInternalClient(){const e=this[u];this.needsConnecting&&null!=e&&(this.needsConnecting=!1,await e.connect())}close(e,t,r){this.autoEncrypter.teardown(!!t,(n=>{const i=this[u];null==i||e===i?r(n):i.close(t).then((()=>r()),(e=>r(e)))}))}static checkForMongoCrypt(){const e=(0,s.getMongoDBClientEncryption)();if(null==e)throw new i.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project");a=e.extension(r(8761)).AutoEncrypter}}},4947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResumableError=t.isNetworkTimeoutError=t.isSDAMUnrecoverableError=t.isNodeShuttingDownError=t.isRetryableReadError=t.isRetryableWriteError=t.needsRetryableWriteLabel=t.MongoWriteConcernError=t.MongoServerSelectionError=t.MongoSystemError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoCompatibilityError=t.MongoInvalidArgumentError=t.MongoParseError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.isNetworkErrorBeforeHandshake=t.MongoTopologyClosedError=t.MongoCursorExhaustedError=t.MongoServerClosedError=t.MongoCursorInUseError=t.MongoUnexpectedServerResponseError=t.MongoGridFSChunkError=t.MongoGridFSStreamError=t.MongoTailableCursorError=t.MongoChangeStreamError=t.MongoAzureError=t.MongoAWSError=t.MongoKerberosError=t.MongoExpiredSessionError=t.MongoTransactionError=t.MongoNotConnectedError=t.MongoDecompressionError=t.MongoBatchReExecutionError=t.MongoRuntimeError=t.MongoAPIError=t.MongoDriverError=t.MongoServerError=t.MongoError=t.MongoErrorLabel=t.GET_MORE_RESUMABLE_CODES=t.MONGODB_ERROR_CODES=t.NODE_IS_RECOVERING_ERROR_MESSAGE=t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;const r=Symbol("errorLabels");t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i"),t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i"),t.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i"),t.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391}),t.GET_MORE_RESUMABLE_CODES=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.ExceededTimeLimit,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,t.MONGODB_ERROR_CODES.StaleShardVersion,t.MONGODB_ERROR_CODES.StaleEpoch,t.MONGODB_ERROR_CODES.StaleConfig,t.MONGODB_ERROR_CODES.RetryChangeStream,t.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,t.MONGODB_ERROR_CODES.CursorNotFound]),t.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class n extends Error{constructor(e){super(n.buildErrorMessage(e)),e instanceof Error&&(this.cause=e),this[r]=new Set}static buildErrorMessage(e){return"string"==typeof e?e:function(e){return"errors"in e&&Array.isArray(e.errors)}(e)&&0===e.message.length?0===e.errors.length?"AggregateError has an empty errors array. Please check the `cause` property for more information.":e.errors.map((({message:e})=>e)).join(", "):e.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(e){return this[r].has(e)}addErrorLabel(e){this[r].add(e)}get errorLabels(){return Array.from(this[r])}}t.MongoError=n;class i extends n{constructor(e){super(e.message||e.errmsg||e.$err||"n/a"),e.errorLabels&&(this[r]=new Set(e.errorLabels));for(const t in e)"errorLabels"!==t&&"errmsg"!==t&&"message"!==t&&(this[t]=e[t])}get name(){return"MongoServerError"}}t.MongoServerError=i;class o extends n{constructor(e){super(e)}get name(){return"MongoDriverError"}}t.MongoDriverError=o;class s extends o{constructor(e){super(e)}get name(){return"MongoAPIError"}}t.MongoAPIError=s;class a extends o{constructor(e){super(e)}get name(){return"MongoRuntimeError"}}t.MongoRuntimeError=a,t.MongoBatchReExecutionError=class extends s{constructor(e="This batch has already been executed, create new batch to execute"){super(e)}get name(){return"MongoBatchReExecutionError"}},t.MongoDecompressionError=class extends a{constructor(e){super(e)}get name(){return"MongoDecompressionError"}},t.MongoNotConnectedError=class extends s{constructor(e){super(e)}get name(){return"MongoNotConnectedError"}},t.MongoTransactionError=class extends s{constructor(e){super(e)}get name(){return"MongoTransactionError"}},t.MongoExpiredSessionError=class extends s{constructor(e="Cannot use a session that has ended"){super(e)}get name(){return"MongoExpiredSessionError"}},t.MongoKerberosError=class extends a{constructor(e){super(e)}get name(){return"MongoKerberosError"}},t.MongoAWSError=class extends a{constructor(e){super(e)}get name(){return"MongoAWSError"}},t.MongoAzureError=class extends a{constructor(e){super(e)}get name(){return"MongoAzureError"}},t.MongoChangeStreamError=class extends a{constructor(e){super(e)}get name(){return"MongoChangeStreamError"}},t.MongoTailableCursorError=class extends s{constructor(e="Tailable cursor does not support this operation"){super(e)}get name(){return"MongoTailableCursorError"}},t.MongoGridFSStreamError=class extends a{constructor(e){super(e)}get name(){return"MongoGridFSStreamError"}},t.MongoGridFSChunkError=class extends a{constructor(e){super(e)}get name(){return"MongoGridFSChunkError"}},t.MongoUnexpectedServerResponseError=class extends a{constructor(e){super(e)}get name(){return"MongoUnexpectedServerResponseError"}},t.MongoCursorInUseError=class extends s{constructor(e="Cursor is already initialized"){super(e)}get name(){return"MongoCursorInUseError"}},t.MongoServerClosedError=class extends s{constructor(e="Server is closed"){super(e)}get name(){return"MongoServerClosedError"}},t.MongoCursorExhaustedError=class extends s{constructor(e){super(e||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}},t.MongoTopologyClosedError=class extends s{constructor(e="Topology is closed"){super(e)}get name(){return"MongoTopologyClosedError"}};const u=Symbol("beforeHandshake");t.isNetworkErrorBeforeHandshake=function(e){return!0===e[u]};class c extends n{constructor(e,t){super(e),t&&"boolean"==typeof t.beforeHandshake&&(this[u]=t.beforeHandshake)}get name(){return"MongoNetworkError"}}t.MongoNetworkError=c,t.MongoNetworkTimeoutError=class extends c{constructor(e,t){super(e,t)}get name(){return"MongoNetworkTimeoutError"}};class l extends o{constructor(e){super(e)}get name(){return"MongoParseError"}}t.MongoParseError=l,t.MongoInvalidArgumentError=class extends s{constructor(e){super(e)}get name(){return"MongoInvalidArgumentError"}},t.MongoCompatibilityError=class extends s{constructor(e){super(e)}get name(){return"MongoCompatibilityError"}},t.MongoMissingCredentialsError=class extends s{constructor(e){super(e)}get name(){return"MongoMissingCredentialsError"}},t.MongoMissingDependencyError=class extends s{constructor(e,{cause:t}={}){super(e),t&&(this.cause=t)}get name(){return"MongoMissingDependencyError"}};class d extends n{constructor(e,t){t&&t.error?super(t.error.message||t.error):super(e),t&&(this.reason=t),this.code=t.error?.code}get name(){return"MongoSystemError"}}t.MongoSystemError=d,t.MongoServerSelectionError=class extends d{constructor(e,t){super(e,t)}get name(){return"MongoServerSelectionError"}};class h extends i{constructor(e,t){t&&Array.isArray(t.errorLabels)&&(e.errorLabels=t.errorLabels),super(e),this.errInfo=e.errInfo,null!=t&&(this.result=function(e){const t=Object.assign({},e);return 0===t.ok&&(t.ok=1,delete t.errmsg,delete t.code,delete t.codeName),t}(t))}get name(){return"MongoWriteConcernError"}}t.MongoWriteConcernError=h;const p=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),f=new Set([...p,t.MONGODB_ERROR_CODES.ExceededTimeLimit]);t.needsRetryableWriteLabel=function(e,r){return e instanceof c||!(e instanceof n&&(r>=9||e.hasErrorLabel(t.MongoErrorLabel.RetryableWriteError))&&!e.hasErrorLabel(t.MongoErrorLabel.HandshakeError))&&(e instanceof h?f.has(e.result?.code??e.code??0):e instanceof n&&"number"==typeof e.code?f.has(e.code):!!t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(e.message)||!!t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message))},t.isRetryableWriteError=function(e){return e.hasErrorLabel(t.MongoErrorLabel.RetryableWriteError)},t.isRetryableReadError=function(e){return!("number"!=typeof e.code||!p.has(e.code))||e instanceof c||!!t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(e.message)||!!t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message)};const m=new Set([t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),g=new Set([t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.LegacyNotPrimary]),E=new Set([t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.ShutdownInProgress]);function y(e){return"number"==typeof e.code?m.has(e.code):t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(e.message)||t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message)}t.isNodeShuttingDownError=function(e){return!("number"!=typeof e.code||!E.has(e.code))},t.isSDAMUnrecoverableError=function(e){return e instanceof l||null==e||y(e)||("number"==typeof(r=e).code?g.has(r.code):!y(r)&&t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(r.message));var r},t.isNetworkTimeoutError=function(e){return!!(e instanceof c&&e.message.match(/timed out/))},t.isResumableError=function(e,r){return null!=e&&e instanceof n&&(e instanceof c||(null!=r&&r>=9?e.code===t.MONGODB_ERROR_CODES.CursorNotFound||e.hasErrorLabel(t.MongoErrorLabel.ResumableChangeStreamError):"number"==typeof e.code&&t.GET_MORE_RESUMABLE_CODES.has(e.code)))}},223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explain=t.ExplainVerbosity=void 0;const n=r(4947);t.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class i{constructor(e){this.verbosity="boolean"==typeof e?e?t.ExplainVerbosity.allPlansExecution:t.ExplainVerbosity.queryPlanner:e}static fromOptions(e){if(null==e?.explain)return;const t=e.explain;if("boolean"==typeof t||"string"==typeof t)return new i(t);throw new n.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}t.Explain=i},3890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucketReadStream=void 0;const n=r(6162),i=r(4947);class o extends n.Readable{constructor(e,t,r,n,i){super(),this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:e,expected:0,files:t,filter:n,init:!1,expectedEnd:0,options:{start:0,end:0,...i},readPreference:r}}_read(){this.destroyed||function(e,t){if(e.s.file)return t();e.s.init||(function(e){const t={};e.s.readPreference&&(t.readPreference=e.s.readPreference),e.s.options&&e.s.options.sort&&(t.sort=e.s.options.sort),e.s.options&&e.s.options.skip&&(t.skip=e.s.options.skip);const r=({error:t,doc:r})=>{if(t)return e.emit(o.ERROR,t);if(!r){const t=`FileNotFound: file ${e.s.filter._id?e.s.filter._id.toString():e.s.filter.filename} was not found`,r=new i.MongoRuntimeError(t);return r.code="ENOENT",e.emit(o.ERROR,r)}if(r.length<=0)return void e.push(null);if(e.destroyed)return void e.emit(o.CLOSE);try{e.s.bytesToSkip=function(e,t,r){if(r&&null!=r.start){if(r.start>t.length)throw new i.MongoInvalidArgumentError(`Stream start (${r.start}) must not be more than the length of the file (${t.length})`);if(r.start<0)throw new i.MongoInvalidArgumentError(`Stream start (${r.start}) must not be negative`);if(null!=r.end&&r.end<r.start)throw new i.MongoInvalidArgumentError(`Stream start (${r.start}) must not be greater than stream end (${r.end})`);return e.s.bytesRead=Math.floor(r.start/t.chunkSize)*t.chunkSize,e.s.expected=Math.floor(r.start/t.chunkSize),r.start-e.s.bytesRead}throw new i.MongoInvalidArgumentError("Start option must be defined")}(e,r,e.s.options)}catch(t){return e.emit(o.ERROR,t)}const n={files_id:r._id};if(e.s.options&&null!=e.s.options.start){const t=Math.floor(e.s.options.start/r.chunkSize);t>0&&(n.n={$gte:t})}e.s.cursor=e.s.chunks.find(n).sort({n:1}),e.s.readPreference&&e.s.cursor.withReadPreference(e.s.readPreference),e.s.expectedEnd=Math.ceil(r.length/r.chunkSize),e.s.file=r;try{e.s.bytesToTrim=function(e,t,r,n){if(n&&null!=n.end){if(n.end>t.length)throw new i.MongoInvalidArgumentError(`Stream end (${n.end}) must not be more than the length of the file (${t.length})`);if(null==n.start||n.start<0)throw new i.MongoInvalidArgumentError(`Stream end (${n.end}) must not be negative`);const o=null!=n.start?Math.floor(n.start/t.chunkSize):0;return r.limit(Math.ceil(n.end/t.chunkSize)-o),e.s.expectedEnd=Math.ceil(n.end/t.chunkSize),Math.ceil(n.end/t.chunkSize)*t.chunkSize-n.end}throw new i.MongoInvalidArgumentError("End option must be defined")}(e,r,e.s.cursor,e.s.options)}catch(t){return e.emit(o.ERROR,t)}e.emit(o.FILE,r)};e.s.files.findOne(e.s.filter,t).then((e=>r({error:null,doc:e})),(e=>r({error:e,doc:null})))}(e),e.s.init=!0),e.once("file",(()=>{t()}))}(this,(()=>function(e){if(e.destroyed)return;if(!e.s.cursor)return;if(!e.s.file)return;const t=({error:t,doc:r})=>{if(e.destroyed)return;if(t)return void e.emit(o.ERROR,t);if(!r)return e.push(null),void e.s.cursor?.close().then((()=>{e.emit(o.CLOSE)}),(t=>{e.emit(o.ERROR,t)}));if(!e.s.file)return;const n=e.s.file.length-e.s.bytesRead,s=e.s.expected++,a=Math.min(e.s.file.chunkSize,n);if(r.n>s)return e.emit(o.ERROR,new i.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${r.n}, expected: ${s}`));if(r.n<s)return e.emit(o.ERROR,new i.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${r.n}, expected: ${s}`));let u=Buffer.isBuffer(r.data)?r.data:r.data.buffer;if(u.byteLength!==a)return n<=0?e.emit(o.ERROR,new i.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${r.n}, expected file length ${e.s.file.length} bytes but already read ${e.s.bytesRead} bytes`)):e.emit(o.ERROR,new i.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${u.byteLength}, expected: ${a}`));if(e.s.bytesRead+=u.byteLength,0===u.byteLength)return e.push(null);let c=null,l=null;null!=e.s.bytesToSkip&&(c=e.s.bytesToSkip,e.s.bytesToSkip=0);const d=s===e.s.expectedEnd-1,h=e.s.options.end-e.s.bytesToSkip;d&&null!=e.s.bytesToTrim?l=e.s.file.chunkSize-e.s.bytesToTrim:e.s.options.end&&h<r.data.byteLength&&(l=h),null==c&&null==l||(u=u.slice(c||0,l||u.byteLength)),e.push(u)};e.s.cursor.next().then((e=>t({error:null,doc:e})),(e=>t({error:e,doc:null})))}(this)))}start(e=0){return s(this),this.s.options.start=e,this}end(e=0){return s(this),this.s.options.end=e,this}async abort(){if(this.push(null),this.destroyed=!0,this.s.cursor)try{await this.s.cursor.close()}finally{this.emit(o.CLOSE)}else this.s.init||this.emit(o.CLOSE)}}function s(e){if(e.s.init)throw new i.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")}o.ERROR="error",o.FILE="file",o.DATA="data",o.END="end",o.CLOSE="close",t.GridFSBucketReadStream=o},2227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucket=void 0;const n=r(4947),i=r(334),o=r(4620),s=r(3890),a=r(7632),u={bucketName:"fs",chunkSizeBytes:261120};class c extends i.TypedEventEmitter{constructor(e,t){super(),this.setMaxListeners(0);const r={...u,...t,writeConcern:o.WriteConcern.fromOptions(t)};this.s={db:e,options:r,_chunksCollection:e.collection(r.bucketName+".chunks"),_filesCollection:e.collection(r.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(e,t){return new a.GridFSBucketWriteStream(this,e,t)}openUploadStreamWithId(e,t,r){return new a.GridFSBucketWriteStream(this,t,{...r,id:e})}openDownloadStream(e,t){return new s.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:e},t)}async delete(e){const{deletedCount:t}=await this.s._filesCollection.deleteOne({_id:e});if(await this.s._chunksCollection.deleteMany({files_id:e}),0===t)throw new n.MongoRuntimeError(`File not found for id ${e}`)}find(e={},t={}){return this.s._filesCollection.find(e,t)}openDownloadStreamByName(e,t){let r,n={uploadDate:-1};return t&&null!=t.revision&&(t.revision>=0?(n={uploadDate:1},r=t.revision):r=-t.revision-1),new s.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:e},{...t,sort:n,skip:r})}async rename(e,t){const r={_id:e},i={$set:{filename:t}},{matchedCount:o}=await this.s._filesCollection.updateOne(r,i);if(0===o)throw new n.MongoRuntimeError(`File with id ${e} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}c.INDEX="index",t.GridFSBucket=c},7632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucketWriteStream=void 0;const n=r(6162),i=r(9064),o=r(4947),s=r(4620);class a extends n.Writable{constructor(e,t,r){super(),r=r??{},this.bucket=e,this.chunks=e.s._chunksCollection,this.filename=t,this.files=e.s._filesCollection,this.options=r,this.writeConcern=s.WriteConcern.fromOptions(r)||e.s.options.writeConcern,this.done=!1,this.id=r.id?r.id:new i.ObjectId,this.chunkSizeBytes=r.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},this.bucket.s.calledOpenUploadStream||(this.bucket.s.calledOpenUploadStream=!0,async function(e){if(null!=await e.files.findOne({},{projection:{_id:1}}))return;let t;try{t=await e.files.listIndexes().toArray()}catch(e){if(!(e instanceof o.MongoError&&e.code===o.MONGODB_ERROR_CODES.NamespaceNotFound))throw e;t=[]}t.find((e=>2===Object.keys(e.key).length&&1===e.key.filename&&1===e.key.uploadDate))||await e.files.createIndex({filename:1,uploadDate:1},{background:!1}),await async function(e){let t;try{t=await e.chunks.listIndexes().toArray()}catch(e){if(!(e instanceof o.MongoError&&e.code===o.MONGODB_ERROR_CODES.NamespaceNotFound))throw e;t=[]}const r=!!t.find((e=>2===Object.keys(e.key).length&&1===e.key.files_id&&1===e.key.n));r||await e.chunks.createIndex({files_id:1,n:1},{...e.writeConcern,background:!0,unique:!0})}(e)}(this).then((()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")}),(()=>null)))}write(e,t,r){const n="function"==typeof t?void 0:t;return r="function"==typeof t?t:r,d(this,(()=>function(e,t,r,n){if(p(e,n))return!1;const i=Buffer.isBuffer(t)?t:Buffer.from(t,r);if(e.length+=i.length,e.pos+i.length<e.chunkSizeBytes)return i.copy(e.bufToStore,e.pos),e.pos+=i.length,n&&n(),!0;let o=i.length,s=e.chunkSizeBytes-e.pos,a=Math.min(s,i.length),d=0;for(;o>0;){const t=i.length-o;let r;if(i.copy(e.bufToStore,e.pos,t,t+a),e.pos+=a,s-=a,0===s){if(r=c(e.id,e.n,Buffer.from(e.bufToStore)),++e.state.outstandingRequests,++d,p(e,n))return!1;e.chunks.insertOne(r,{writeConcern:e.writeConcern}).then((()=>{--e.state.outstandingRequests,--d,d||(e.emit("drain",r),n&&n(),l(e))}),(t=>u(e,t))),s=e.chunkSizeBytes,e.pos=0,++e.n}o-=a,a=Math.min(s,o)}return!1}(this,e,n,r)))}async abort(){if(this.state.streamEnd)throw new o.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new o.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}end(e,t,r){const n="function"==typeof e?void 0:e,i="function"==typeof t?void 0:t;return r="function"==typeof e?e:"function"==typeof t?t:r,this.state.streamEnd||p(this,r)?this:(this.state.streamEnd=!0,r&&this.once(a.FINISH,(e=>{r&&r(void 0,e)})),n?(this.write(n,i,(()=>{h(this)})),this):(d(this,(()=>!!h(this))),this))}}function u(e,t,r){if(!e.state.errored){if(e.state.errored=!0,r)return r(t);e.emit(a.ERROR,t)}}function c(e,t,r){return{_id:new i.ObjectId,files_id:e,n:t,data:r}}function l(e,t){if(e.done)return!0;if(e.state.streamEnd&&0===e.state.outstandingRequests&&!e.state.errored){e.done=!0;const r=function(e,t,r,n,i,o,s){const a={_id:e,length:t,chunkSize:r,uploadDate:new Date,filename:n};return i&&(a.contentType=i),o&&(a.aliases=o),s&&(a.metadata=s),a}(e.id,e.length,e.chunkSizeBytes,e.filename,e.options.contentType,e.options.aliases,e.options.metadata);return!p(e,t)&&(e.files.insertOne(r,{writeConcern:e.writeConcern}).then((()=>{e.emit(a.FINISH,r),e.emit(a.CLOSE)}),(r=>u(e,r,t))),!0)}return!1}function d(e,t){return e.bucket.s.checkedIndexes?t(!1):(e.bucket.once("index",(()=>{t(!0)})),!0)}function h(e,t){if(0===e.pos)return l(e,t);++e.state.outstandingRequests;const r=Buffer.alloc(e.pos);e.bufToStore.copy(r,0,0,e.pos);const n=c(e.id,e.n,r);return!p(e,t)&&(e.chunks.insertOne(n,{writeConcern:e.writeConcern}).then((()=>{--e.state.outstandingRequests,l(e)}),(t=>u(e,t))),!0)}function p(e,t){return!!e.state.aborted&&("function"==typeof t&&t(new o.MongoAPIError("Stream has been aborted")),!0)}a.CLOSE="close",a.ERROR="error",a.FINISH="finish",t.GridFSBucketWriteStream=a},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCursor=t.MongoWriteConcernError=t.MongoUnexpectedServerResponseError=t.MongoTransactionError=t.MongoTopologyClosedError=t.MongoTailableCursorError=t.MongoSystemError=t.MongoServerSelectionError=t.MongoServerError=t.MongoServerClosedError=t.MongoRuntimeError=t.MongoParseError=t.MongoNotConnectedError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoKerberosError=t.MongoInvalidArgumentError=t.MongoGridFSStreamError=t.MongoGridFSChunkError=t.MongoExpiredSessionError=t.MongoError=t.MongoDriverError=t.MongoDecompressionError=t.MongoCursorInUseError=t.MongoCursorExhaustedError=t.MongoCompatibilityError=t.MongoChangeStreamError=t.MongoBatchReExecutionError=t.MongoAzureError=t.MongoAWSError=t.MongoAPIError=t.ChangeStreamCursor=t.MongoBulkWriteError=t.Timestamp=t.ObjectId=t.MinKey=t.MaxKey=t.Long=t.Int32=t.Double=t.Decimal128=t.DBRef=t.Code=t.BSONType=t.BSONSymbol=t.BSONRegExp=t.Binary=t.BSON=void 0,t.ServerClosedEvent=t.ConnectionReadyEvent=t.ConnectionPoolReadyEvent=t.ConnectionPoolMonitoringEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolClearedEvent=t.ConnectionCreatedEvent=t.ConnectionClosedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckedInEvent=t.CommandSucceededEvent=t.CommandStartedEvent=t.CommandFailedEvent=t.WriteConcern=t.ReadPreference=t.ReadConcern=t.TopologyType=t.ServerType=t.ReadPreferenceMode=t.ReadConcernLevel=t.ProfilingLevel=t.ReturnDocument=t.ServerApiVersion=t.ExplainVerbosity=t.MongoErrorLabel=t.AutoEncryptionLoggerLevel=t.CURSOR_FLAGS=t.Compressor=t.AuthMechanism=t.GSSAPICanonicalizationValue=t.BatchType=t.UnorderedBulkOperation=t.OrderedBulkOperation=t.MongoClient=t.ListIndexesCursor=t.ListCollectionsCursor=t.GridFSBucketWriteStream=t.GridFSBucketReadStream=t.GridFSBucket=t.FindCursor=t.Db=t.Collection=t.ClientSession=t.ChangeStream=t.CancellationToken=t.AggregationCursor=t.Admin=void 0,t.SrvPollingEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.TopologyClosedEvent=t.ServerOpeningEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.ServerHeartbeatFailedEvent=t.ServerDescriptionChangedEvent=void 0;const n=r(5716);Object.defineProperty(t,"Admin",{enumerable:!0,get:function(){return n.Admin}});const i=r(3868);Object.defineProperty(t,"OrderedBulkOperation",{enumerable:!0,get:function(){return i.OrderedBulkOperation}});const o=r(1625);Object.defineProperty(t,"UnorderedBulkOperation",{enumerable:!0,get:function(){return o.UnorderedBulkOperation}});const s=r(4747);Object.defineProperty(t,"ChangeStream",{enumerable:!0,get:function(){return s.ChangeStream}});const a=r(8971);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return a.Collection}});const u=r(6829);Object.defineProperty(t,"AbstractCursor",{enumerable:!0,get:function(){return u.AbstractCursor}});const c=r(3490);Object.defineProperty(t,"AggregationCursor",{enumerable:!0,get:function(){return c.AggregationCursor}});const l=r(6331);Object.defineProperty(t,"FindCursor",{enumerable:!0,get:function(){return l.FindCursor}});const d=r(1640);Object.defineProperty(t,"ListCollectionsCursor",{enumerable:!0,get:function(){return d.ListCollectionsCursor}});const h=r(5051);Object.defineProperty(t,"ListIndexesCursor",{enumerable:!0,get:function(){return h.ListIndexesCursor}});const p=r(2644);Object.defineProperty(t,"Db",{enumerable:!0,get:function(){return p.Db}});const f=r(2227);Object.defineProperty(t,"GridFSBucket",{enumerable:!0,get:function(){return f.GridFSBucket}});const m=r(3890);Object.defineProperty(t,"GridFSBucketReadStream",{enumerable:!0,get:function(){return m.GridFSBucketReadStream}});const g=r(7632);Object.defineProperty(t,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return g.GridFSBucketWriteStream}});const E=r(2319);Object.defineProperty(t,"MongoClient",{enumerable:!0,get:function(){return E.MongoClient}});const y=r(334);Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return y.CancellationToken}});const v=r(1296);Object.defineProperty(t,"ClientSession",{enumerable:!0,get:function(){return v.ClientSession}});var A=r(9064);Object.defineProperty(t,"BSON",{enumerable:!0,get:function(){return A.BSON}});var C=r(9064);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return C.Binary}}),Object.defineProperty(t,"BSONRegExp",{enumerable:!0,get:function(){return C.BSONRegExp}}),Object.defineProperty(t,"BSONSymbol",{enumerable:!0,get:function(){return C.BSONSymbol}}),Object.defineProperty(t,"BSONType",{enumerable:!0,get:function(){return C.BSONType}}),Object.defineProperty(t,"Code",{enumerable:!0,get:function(){return C.Code}}),Object.defineProperty(t,"DBRef",{enumerable:!0,get:function(){return C.DBRef}}),Object.defineProperty(t,"Decimal128",{enumerable:!0,get:function(){return C.Decimal128}}),Object.defineProperty(t,"Double",{enumerable:!0,get:function(){return C.Double}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return C.Int32}}),Object.defineProperty(t,"Long",{enumerable:!0,get:function(){return C.Long}}),Object.defineProperty(t,"MaxKey",{enumerable:!0,get:function(){return C.MaxKey}}),Object.defineProperty(t,"MinKey",{enumerable:!0,get:function(){return C.MinKey}}),Object.defineProperty(t,"ObjectId",{enumerable:!0,get:function(){return C.ObjectId}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return C.Timestamp}});var b=r(363);Object.defineProperty(t,"MongoBulkWriteError",{enumerable:!0,get:function(){return b.MongoBulkWriteError}});var S=r(2206);Object.defineProperty(t,"ChangeStreamCursor",{enumerable:!0,get:function(){return S.ChangeStreamCursor}});var w=r(4947);Object.defineProperty(t,"MongoAPIError",{enumerable:!0,get:function(){return w.MongoAPIError}}),Object.defineProperty(t,"MongoAWSError",{enumerable:!0,get:function(){return w.MongoAWSError}}),Object.defineProperty(t,"MongoAzureError",{enumerable:!0,get:function(){return w.MongoAzureError}}),Object.defineProperty(t,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return w.MongoBatchReExecutionError}}),Object.defineProperty(t,"MongoChangeStreamError",{enumerable:!0,get:function(){return w.MongoChangeStreamError}}),Object.defineProperty(t,"MongoCompatibilityError",{enumerable:!0,get:function(){return w.MongoCompatibilityError}}),Object.defineProperty(t,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return w.MongoCursorExhaustedError}}),Object.defineProperty(t,"MongoCursorInUseError",{enumerable:!0,get:function(){return w.MongoCursorInUseError}}),Object.defineProperty(t,"MongoDecompressionError",{enumerable:!0,get:function(){return w.MongoDecompressionError}}),Object.defineProperty(t,"MongoDriverError",{enumerable:!0,get:function(){return w.MongoDriverError}}),Object.defineProperty(t,"MongoError",{enumerable:!0,get:function(){return w.MongoError}}),Object.defineProperty(t,"MongoExpiredSessionError",{enumerable:!0,get:function(){return w.MongoExpiredSessionError}}),Object.defineProperty(t,"MongoGridFSChunkError",{enumerable:!0,get:function(){return w.MongoGridFSChunkError}}),Object.defineProperty(t,"MongoGridFSStreamError",{enumerable:!0,get:function(){return w.MongoGridFSStreamError}}),Object.defineProperty(t,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return w.MongoInvalidArgumentError}}),Object.defineProperty(t,"MongoKerberosError",{enumerable:!0,get:function(){return w.MongoKerberosError}}),Object.defineProperty(t,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return w.MongoMissingCredentialsError}}),Object.defineProperty(t,"MongoMissingDependencyError",{enumerable:!0,get:function(){return w.MongoMissingDependencyError}}),Object.defineProperty(t,"MongoNetworkError",{enumerable:!0,get:function(){return w.MongoNetworkError}}),Object.defineProperty(t,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return w.MongoNetworkTimeoutError}}),Object.defineProperty(t,"MongoNotConnectedError",{enumerable:!0,get:function(){return w.MongoNotConnectedError}}),Object.defineProperty(t,"MongoParseError",{enumerable:!0,get:function(){return w.MongoParseError}}),Object.defineProperty(t,"MongoRuntimeError",{enumerable:!0,get:function(){return w.MongoRuntimeError}}),Object.defineProperty(t,"MongoServerClosedError",{enumerable:!0,get:function(){return w.MongoServerClosedError}}),Object.defineProperty(t,"MongoServerError",{enumerable:!0,get:function(){return w.MongoServerError}}),Object.defineProperty(t,"MongoServerSelectionError",{enumerable:!0,get:function(){return w.MongoServerSelectionError}}),Object.defineProperty(t,"MongoSystemError",{enumerable:!0,get:function(){return w.MongoSystemError}}),Object.defineProperty(t,"MongoTailableCursorError",{enumerable:!0,get:function(){return w.MongoTailableCursorError}}),Object.defineProperty(t,"MongoTopologyClosedError",{enumerable:!0,get:function(){return w.MongoTopologyClosedError}}),Object.defineProperty(t,"MongoTransactionError",{enumerable:!0,get:function(){return w.MongoTransactionError}}),Object.defineProperty(t,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return w.MongoUnexpectedServerResponseError}}),Object.defineProperty(t,"MongoWriteConcernError",{enumerable:!0,get:function(){return w.MongoWriteConcernError}});var O=r(363);Object.defineProperty(t,"BatchType",{enumerable:!0,get:function(){return O.BatchType}});var _=r(2403);Object.defineProperty(t,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return _.GSSAPICanonicalizationValue}});var x=r(4511);Object.defineProperty(t,"AuthMechanism",{enumerable:!0,get:function(){return x.AuthMechanism}});var D=r(942);Object.defineProperty(t,"Compressor",{enumerable:!0,get:function(){return D.Compressor}});var T=r(6829);Object.defineProperty(t,"CURSOR_FLAGS",{enumerable:!0,get:function(){return T.CURSOR_FLAGS}});var B=r(8808);Object.defineProperty(t,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return B.AutoEncryptionLoggerLevel}});var I=r(4947);Object.defineProperty(t,"MongoErrorLabel",{enumerable:!0,get:function(){return I.MongoErrorLabel}});var F=r(223);Object.defineProperty(t,"ExplainVerbosity",{enumerable:!0,get:function(){return F.ExplainVerbosity}});var R=r(2319);Object.defineProperty(t,"ServerApiVersion",{enumerable:!0,get:function(){return R.ServerApiVersion}});var P=r(8448);Object.defineProperty(t,"ReturnDocument",{enumerable:!0,get:function(){return P.ReturnDocument}});var k=r(4671);Object.defineProperty(t,"ProfilingLevel",{enumerable:!0,get:function(){return k.ProfilingLevel}});var N=r(3389);Object.defineProperty(t,"ReadConcernLevel",{enumerable:!0,get:function(){return N.ReadConcernLevel}});var M=r(1228);Object.defineProperty(t,"ReadPreferenceMode",{enumerable:!0,get:function(){return M.ReadPreferenceMode}});var L=r(5896);Object.defineProperty(t,"ServerType",{enumerable:!0,get:function(){return L.ServerType}}),Object.defineProperty(t,"TopologyType",{enumerable:!0,get:function(){return L.TopologyType}});var j=r(3389);Object.defineProperty(t,"ReadConcern",{enumerable:!0,get:function(){return j.ReadConcern}});var U=r(1228);Object.defineProperty(t,"ReadPreference",{enumerable:!0,get:function(){return U.ReadPreference}});var V=r(4620);Object.defineProperty(t,"WriteConcern",{enumerable:!0,get:function(){return V.WriteConcern}});var z=r(2457);Object.defineProperty(t,"CommandFailedEvent",{enumerable:!0,get:function(){return z.CommandFailedEvent}}),Object.defineProperty(t,"CommandStartedEvent",{enumerable:!0,get:function(){return z.CommandStartedEvent}}),Object.defineProperty(t,"CommandSucceededEvent",{enumerable:!0,get:function(){return z.CommandSucceededEvent}});var $=r(1654);Object.defineProperty(t,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return $.ConnectionCheckedInEvent}}),Object.defineProperty(t,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return $.ConnectionCheckedOutEvent}}),Object.defineProperty(t,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return $.ConnectionCheckOutFailedEvent}}),Object.defineProperty(t,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return $.ConnectionCheckOutStartedEvent}}),Object.defineProperty(t,"ConnectionClosedEvent",{enumerable:!0,get:function(){return $.ConnectionClosedEvent}}),Object.defineProperty(t,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return $.ConnectionCreatedEvent}}),Object.defineProperty(t,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return $.ConnectionPoolClearedEvent}}),Object.defineProperty(t,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return $.ConnectionPoolClosedEvent}}),Object.defineProperty(t,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return $.ConnectionPoolCreatedEvent}}),Object.defineProperty(t,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return $.ConnectionPoolMonitoringEvent}}),Object.defineProperty(t,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return $.ConnectionPoolReadyEvent}}),Object.defineProperty(t,"ConnectionReadyEvent",{enumerable:!0,get:function(){return $.ConnectionReadyEvent}});var W=r(8214);Object.defineProperty(t,"ServerClosedEvent",{enumerable:!0,get:function(){return W.ServerClosedEvent}}),Object.defineProperty(t,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return W.ServerDescriptionChangedEvent}}),Object.defineProperty(t,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return W.ServerHeartbeatFailedEvent}}),Object.defineProperty(t,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return W.ServerHeartbeatStartedEvent}}),Object.defineProperty(t,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return W.ServerHeartbeatSucceededEvent}}),Object.defineProperty(t,"ServerOpeningEvent",{enumerable:!0,get:function(){return W.ServerOpeningEvent}}),Object.defineProperty(t,"TopologyClosedEvent",{enumerable:!0,get:function(){return W.TopologyClosedEvent}}),Object.defineProperty(t,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return W.TopologyDescriptionChangedEvent}}),Object.defineProperty(t,"TopologyOpeningEvent",{enumerable:!0,get:function(){return W.TopologyOpeningEvent}});var H=r(8709);Object.defineProperty(t,"SrvPollingEvent",{enumerable:!0,get:function(){return H.SrvPollingEvent}})},2319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoClient=t.ServerApiVersion=void 0;const n=r(1764),i=r(9064),o=r(4747),s=r(4064),a=r(4511),u=r(2395),c=r(5006),l=r(2644),d=r(4947),h=r(9925),p=r(334),f=r(1228),m=r(114),g=r(9281),E=r(1296),y=r(2229);t.ServerApiVersion=Object.freeze({v1:"1"});const v=Symbol("options");class A extends p.TypedEventEmitter{constructor(e,t){super(),this[v]=(0,u.parseOptions)(e,this,t),this.mongoLogger=new h.MongoLogger(this[v].mongoLoggerOptions);const r=this;this.s={url:e,bsonOptions:(0,i.resolveBSONOptions)(this[v]),namespace:(0,y.ns)("admin"),hasBeenClosed:!1,sessionPool:new E.ServerSessionPool(this),activeSessions:new Set,get options(){return r[v]},get readConcern(){return r[v].readConcern},get writeConcern(){return r[v].writeConcern},get readPreference(){return r[v].readPreference},get isMongoClient(){return!0}}}get options(){return Object.freeze({...this[v]})}get serverApi(){return this[v].serverApi&&Object.freeze({...this[v].serverApi})}get monitorCommands(){return this[v].monitorCommands}set monitorCommands(e){this[v].monitorCommands=e}get autoEncrypter(){return this[v].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const e=this[v];if("string"==typeof e.srvHost){const t=await(0,u.resolveSRVRecord)(e);for(const[r,n]of t.entries())e.hosts[r]=n}if(e.credentials?.mechanism===a.AuthMechanism.MONGODB_OIDC){const t=e.credentials?.mechanismProperties?.ALLOWED_HOSTS||s.DEFAULT_ALLOWED_HOSTS;if(!e.credentials?.mechanismProperties?.PROVIDER_NAME)for(const r of e.hosts)if(!(0,y.hostMatchesWildcards)(r.toHostPort().host,t))throw new d.MongoInvalidArgumentError(`Host '${r}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${t.join(",")}'`)}this.topology=new g.Topology(this,e.hosts,e),this.topology.once(g.Topology.OPEN,(()=>this.emit("open",this)));for(const e of c.MONGO_CLIENT_EVENTS)this.topology.on(e,((...t)=>this.emit(e,...t)));const t=async()=>{try{await(0,n.promisify)((t=>this.topology?.connect(e,t)))()}catch(e){throw this.topology?.close({force:!0}),e}};if(this.autoEncrypter){const r=(0,n.promisify)((e=>this.autoEncrypter?.init(e)));await r(),await t(),await e.encrypter.connectInternalClient()}else await t();return this}async close(e=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const t=Array.from(this.s.activeSessions,(e=>e.endSession()));if(this.s.activeSessions.clear(),await Promise.all(t),null==this.topology)return;const r=(0,m.readPreferenceServerSelector)(f.ReadPreference.primaryPreferred),n=this.topology.description,i=Array.from(n.servers.values());if(0!==r(n,i).length){const e=Array.from(this.s.sessionPool.sessions,(({id:e})=>e));0!==e.length&&await this.db("admin").command({endSessions:e},{readPreference:f.ReadPreference.primaryPreferred,noResponse:!0}).catch((()=>null))}const o=this.topology;this.topology=void 0,await new Promise(((t,r)=>{o.close({force:e},(n=>{if(n)return r(n);const{encrypter:i}=this[v];if(i)return i.close(this,e,(e=>{if(e)return r(e);t()}));t()}))}))}db(e,t){t=t??{},e||(e=this.options.dbName);const r=Object.assign({},this[v],t);return new l.Db(this,e,r)}static async connect(e,t){return new this(e,t).connect()}startSession(e){const t=new E.ClientSession(this,this.s.sessionPool,{explicit:!0,...e},this[v]);return this.s.activeSessions.add(t),t.once("ended",(()=>{this.s.activeSessions.delete(t)})),t}async withSession(e,t){const r={owner:Symbol(),..."object"==typeof e?e:{}},n="function"==typeof e?e:t;if(null==n)throw new d.MongoInvalidArgumentError("Missing required callback parameter");const i=this.startSession(r);try{await n(i)}finally{try{await i.endSession()}catch{}}}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new o.ChangeStream(this,e,(0,y.resolveOptions)(this,t))}}t.MongoClient=A},9925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoLogger=t.stringifyWithMaxLen=t.createStdioLogger=t.MongoLoggableComponent=t.SEVERITY_LEVEL_MAP=t.DEFAULT_MAX_DOCUMENT_LENGTH=t.SeverityLevel=void 0;const n=r(345),i=r(1764),o=r(5006),s=r(2229);t.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"}),t.DEFAULT_MAX_DOCUMENT_LENGTH=1e3;class a extends Map{constructor(e){const t=[];for(const[r,n]of e)t.push([n,r]);t.push(...e),super(t)}getNumericSeverityLevel(e){return this.get(e)}getSeverityLevelName(e){return this.get(e)}}function u(e){const r=Object.values(t.SeverityLevel),n=e?.toLowerCase();return null!=n&&r.includes(n)?n:null}function c(e){return{write:t=>{e.write((0,i.inspect)(t,{compact:!0,breakLength:1/0}),"utf-8")}}}function l({MONGODB_LOG_PATH:e},{mongodbLogPath:t}){return"string"==typeof t&&/^stderr$/i.test(t)?c(process.stderr):"string"==typeof t&&/^stdout$/i.test(t)?c(process.stdout):"object"==typeof t&&"function"==typeof t?.write?t:e&&/^stderr$/i.test(e)?c(process.stderr):e&&/^stdout$/i.test(e)?c(process.stdout):c(process.stderr)}function d(e,t){const r=n.EJSON.stringify(e);return 0!==t&&r.length>t?`${r.slice(0,t)}...`:r}function h(e,t){e.commandName=t.commandName,e.requestId=t.requestId,e.driverConnectionId=t?.connectionId;const{host:r,port:n}=s.HostAddress.fromString(t.address).toHostPort();return e.serverHost=r,e.serverPort=n,t?.serviceId&&(e.serviceId=t.serviceId.toHexString()),e}function p(e,t){const{host:r,port:n}=s.HostAddress.fromString(t.address).toHostPort();return e.serverHost=r,e.serverPort=n,e}function f(e,r=t.DEFAULT_MAX_DOCUMENT_LENGTH){let n=Object.create(null);switch(e.name){case o.COMMAND_STARTED:return n=h(n,e),n.message="Command started",n.command=d(e.command,r),n.databaseName=e.databaseName,n;case o.COMMAND_SUCCEEDED:return n=h(n,e),n.message="Command succeeded",n.durationMS=e.duration,n.reply=d(e.reply,r),n;case o.COMMAND_FAILED:return n=h(n,e),n.message="Command failed",n.durationMS=e.duration,n.failure=e.failure,n;case o.CONNECTION_POOL_CREATED:if(n=p(n,e),n.message="Connection pool created",e.options){const{maxIdleTimeMS:t,minPoolSize:r,maxPoolSize:i,maxConnecting:o,waitQueueTimeoutMS:s}=e.options;n={...n,maxIdleTimeMS:t,minPoolSize:r,maxPoolSize:i,maxConnecting:o,waitQueueTimeoutMS:s}}return n;case o.CONNECTION_POOL_READY:return n=p(n,e),n.message="Connection pool ready",n;case o.CONNECTION_POOL_CLEARED:return n=p(n,e),n.message="Connection pool cleared","ObjectId"===e.serviceId?._bsontype&&(n.serviceId=e.serviceId.toHexString()),n;case o.CONNECTION_POOL_CLOSED:return n=p(n,e),n.message="Connection pool closed",n;case o.CONNECTION_CREATED:return n=p(n,e),n.message="Connection created",n.driverConnectionId=e.connectionId,n;case o.CONNECTION_READY:return n=p(n,e),n.message="Connection ready",n.driverConnectionId=e.connectionId,n;case o.CONNECTION_CLOSED:switch(n=p(n,e),n.message="Connection closed",n.driverConnectionId=e.connectionId,e.reason){case"stale":n.reason="Connection became stale because the pool was cleared";break;case"idle":n.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":n.reason="An error occurred while using the connection",e.error&&(n.error=e.error);break;case"poolClosed":n.reason="Connection pool was closed";break;default:n.reason=`Unknown close reason: ${e.reason}`}return n;case o.CONNECTION_CHECK_OUT_STARTED:return n=p(n,e),n.message="Connection checkout started",n;case o.CONNECTION_CHECK_OUT_FAILED:switch(n=p(n,e),n.message="Connection checkout failed",e.reason){case"poolClosed":n.reason="Connection pool was closed";break;case"timeout":n.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":n.reason="An error occurred while trying to establish a new connection",e.error&&(n.error=e.error);break;default:n.reason=`Unknown close reason: ${e.reason}`}return n;case o.CONNECTION_CHECKED_OUT:return n=p(n,e),n.message="Connection checked out",n.driverConnectionId=e.connectionId,n;case o.CONNECTION_CHECKED_IN:return n=p(n,e),n.message="Connection checked in",n.driverConnectionId=e.connectionId,n;default:for(const[t,r]of Object.entries(e))null!=r&&(n[t]=r)}return n}t.SEVERITY_LEVEL_MAP=new a([[t.SeverityLevel.OFF,-1/0],[t.SeverityLevel.EMERGENCY,0],[t.SeverityLevel.ALERT,1],[t.SeverityLevel.CRITICAL,2],[t.SeverityLevel.ERROR,3],[t.SeverityLevel.WARNING,4],[t.SeverityLevel.NOTICE,5],[t.SeverityLevel.INFORMATIONAL,6],[t.SeverityLevel.DEBUG,7],[t.SeverityLevel.TRACE,8]]),t.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection"}),t.createStdioLogger=c,t.stringifyWithMaxLen=d,t.MongoLogger=class{constructor(e){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}log(e,r,n){if(function(e,r){const n=t.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(e),i=t.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(r);return n<i?-1:n>i?1:0}(e,this.componentSeverities[r])>0)return;let i={t:new Date,c:r,s:e};"string"==typeof n?i.message=n:"object"==typeof n&&(i=function(e){const t=e;return void 0!==t.toLog&&"function"==typeof t.toLog}(n)?{...i,...n.toLog()}:{...i,...f(n,this.maxDocumentLength)}),this.logDestination.write(i)}static resolveOptions(e,r){const n={...e,...r,mongodbLogPath:l(e,r)},i=u(n.MONGODB_LOG_ALL)??t.SeverityLevel.OFF;return{componentSeverities:{command:u(n.MONGODB_LOG_COMMAND)??i,topology:u(n.MONGODB_LOG_TOPOLOGY)??i,serverSelection:u(n.MONGODB_LOG_SERVER_SELECTION)??i,connection:u(n.MONGODB_LOG_CONNECTION)??i,default:i},maxDocumentLength:(0,s.parseUnsignedInteger)(n.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1e3,logDestination:n.mongodbLogPath}}}},334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationToken=t.TypedEventEmitter=void 0;const n=r(7702);class i extends n.EventEmitter{emitAndLog(e,...t){this.emit(e,...t),this.component&&this.mongoLogger?.debug(this.component,t[0])}}t.TypedEventEmitter=i,t.CancellationToken=class extends i{}},3186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddUserOperation=void 0;const n=r(4770),i=r(4947),o=r(2229),s=r(8945),a=r(5172);class u extends s.CommandOperation{constructor(e,t,r,n){super(e,n),this.db=e,this.username=t,this.password=r,this.options=n??{}}executeCallback(e,t,r){const s=this.db,a=this.username,u=this.password,c=this.options;if("digestPassword"in c&&null!=c.digestPassword)return r(new i.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let l,d;!c.roles||Array.isArray(c.roles)&&0===c.roles.length?((0,o.emitWarningOnce)('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),l="admin"===s.databaseName.toLowerCase()?["root"]:["dbOwner"]):l=Array.isArray(c.roles)?c.roles:[c.roles];try{d=(0,o.getTopology)(s)}catch(e){return r(e)}const h=d.lastHello().maxWireVersion>=7;let p=u;if(!h){const e=n.createHash("md5");e.update(`${a}:mongo:${u}`),p=e.digest("hex")}const f={createUser:a,customData:c.customData||{},roles:l,digestPassword:h};"string"==typeof u&&(f.pwd=p),super.executeCommand(e,t,f,r)}}t.AddUserOperation=u,(0,a.defineAspects)(u,[a.Aspect.WRITE_OPERATION])},4213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateOperation=t.DB_AGGREGATE_COLLECTION=void 0;const n=r(4947),i=r(2229),o=r(4620),s=r(8945),a=r(5172);t.DB_AGGREGATE_COLLECTION=1;class u extends s.CommandOperation{constructor(e,r,i){if(super(void 0,{...i,dbName:e.db}),this.options={...i},this.target=e.collection||t.DB_AGGREGATE_COLLECTION,this.pipeline=r,this.hasWriteStage=!1,"string"==typeof i?.out)this.pipeline=this.pipeline.concat({$out:i.out}),this.hasWriteStage=!0;else if(r.length>0){const e=r[r.length-1];(e.$out||e.$merge)&&(this.hasWriteStage=!0)}if(this.hasWriteStage?this.trySecondaryWrite=!0:delete this.options.writeConcern,this.explain&&this.writeConcern)throw new n.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if(null!=i?.cursor&&"object"!=typeof i.cursor)throw new n.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(e){this.pipeline.push(e)}executeCallback(e,t,r){const n=this.options,s=(0,i.maxWireVersion)(e),a={aggregate:this.target,pipeline:this.pipeline};this.hasWriteStage&&s<8&&(this.readConcern=void 0),this.hasWriteStage&&this.writeConcern&&o.WriteConcern.apply(a,this.writeConcern),!0===n.bypassDocumentValidation&&(a.bypassDocumentValidation=n.bypassDocumentValidation),"boolean"==typeof n.allowDiskUse&&(a.allowDiskUse=n.allowDiskUse),n.hint&&(a.hint=n.hint),n.let&&(a.let=n.let),void 0!==n.comment&&(a.comment=n.comment),a.cursor=n.cursor||{},n.batchSize&&!this.hasWriteStage&&(a.cursor.batchSize=n.batchSize),super.executeCommand(e,t,a,r)}}t.AggregateOperation=u,(0,a.defineAspects)(u,[a.Aspect.READ_OPERATION,a.Aspect.RETRYABLE,a.Aspect.EXPLAINABLE,a.Aspect.CURSOR_CREATING])},6192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BulkWriteOperation=void 0;const n=r(5172);class i extends n.AbstractCallbackOperation{constructor(e,t,r){super(r),this.options=r,this.collection=e,this.operations=t}executeCallback(e,t,r){const n=this.collection,i=this.operations,o={...this.options,...this.bsonOptions,readPreference:this.readPreference},s=!1===o.ordered?n.initializeUnorderedBulkOp(o):n.initializeOrderedBulkOp(o);try{for(let e=0;e<i.length;e++)s.raw(i[e])}catch(e){return r(e)}s.execute({...o,session:t}).then((e=>r(void 0,e)),(e=>r(e)))}}t.BulkWriteOperation=i,(0,n.defineAspects)(i,[n.Aspect.WRITE_OPERATION])},4916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionsOperation=void 0;const n=r(8971),i=r(5172);class o extends i.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.db=e}executeCallback(e,t,r){this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:t}).toArray().then((e=>{const t=[];for(const{name:r}of e)r.includes("$")||t.push(new n.Collection(this.db,r,this.db.s.options));r(void 0,t)}),(e=>r(e)))}}t.CollectionsOperation=o},8945:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandOperation=void 0;const n=r(4947),i=r(223),o=r(3389),s=r(114),a=r(2229),u=r(4620),c=r(5172);class l extends c.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t??{};const r=t?.dbName||t?.authdb;if(this.ns=r?new a.MongoDBNamespace(r,"$cmd"):e?e.s.namespace.withCollection("$cmd"):new a.MongoDBNamespace("admin","$cmd"),this.readConcern=o.ReadConcern.fromOptions(t),this.writeConcern=u.WriteConcern.fromOptions(t),this.hasAspect(c.Aspect.EXPLAINABLE))this.explain=i.Explain.fromOptions(t);else if(null!=t?.explain)throw new n.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){return!this.hasAspect(c.Aspect.EXPLAINABLE)||null==this.explain}executeCommand(e,t,r,n){this.server=e;const i={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:t},o=(0,a.maxWireVersion)(e),l=this.session&&this.session.inTransaction();this.readConcern&&(0,a.commandSupportsReadConcern)(r)&&!l&&Object.assign(r,{readConcern:this.readConcern}),this.trySecondaryWrite&&o<s.MIN_SECONDARY_WRITE_WIRE_VERSION&&(i.omitReadPreference=!0),this.writeConcern&&this.hasAspect(c.Aspect.WRITE_OPERATION)&&!l&&u.WriteConcern.apply(r,this.writeConcern),i.collation&&"object"==typeof i.collation&&!this.hasAspect(c.Aspect.SKIP_COLLATION)&&Object.assign(r,{collation:i.collation}),"number"==typeof i.maxTimeMS&&(r.maxTimeMS=i.maxTimeMS),this.hasAspect(c.Aspect.EXPLAINABLE)&&this.explain&&(r=(0,a.decorateWithExplain)(r,this.explain)),e.command(this.ns,r,i,n)}}t.CommandOperation=l},8741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareDocs=t.indexInformation=void 0;const n=r(4947),i=r(2229);t.indexInformation=function(e,t,r,o){let s=r,a=o;"function"==typeof r&&(a=r,s={});const u=null!=s.full&&s.full;let c;try{c=(0,i.getTopology)(e)}catch(e){return a(e)}if(c.isDestroyed())return a(new n.MongoTopologyClosedError);e.collection(t).listIndexes(s).toArray().then((e=>Array.isArray(e)?u?a(void 0,e):void a(void 0,function(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[n.name]=[];for(const e in n.key)t[n.name].push([e,n.key[e]])}return t}(e)):a(void 0,[])),(e=>a(e)))},t.prepareDocs=function(e,t,r){return!0===("boolean"==typeof r.forceServerObjectId?r.forceServerObjectId:e.s.db.options?.forceServerObjectId)?t:t.map((t=>(null==t._id&&(t._id=e.s.pkFactory.createPk()),t)))}},2566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountOperation=void 0;const n=r(8945),i=r(5172);class o extends n.CommandOperation{constructor(e,t,r){super({s:{namespace:e}},r),this.options=r,this.collectionName=e.collection,this.query=t}executeCallback(e,t,r){const n=this.options,i={count:this.collectionName,query:this.query};"number"==typeof n.limit&&(i.limit=n.limit),"number"==typeof n.skip&&(i.skip=n.skip),null!=n.hint&&(i.hint=n.hint),"number"==typeof n.maxTimeMS&&(i.maxTimeMS=n.maxTimeMS),super.executeCommand(e,t,i,((e,t)=>{r(e,t?t.n:0)}))}}t.CountOperation=o,(0,i.defineAspects)(o,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE])},7643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountDocumentsOperation=void 0;const n=r(4213);class i extends n.AggregateOperation{constructor(e,t,r){const n=[];n.push({$match:t}),"number"==typeof r.skip&&n.push({$skip:r.skip}),"number"==typeof r.limit&&n.push({$limit:r.limit}),n.push({$group:{_id:1,n:{$sum:1}}}),super(e.s.namespace,n,r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>{if(e||!t)return void r(e);const n=t;if(null==n.cursor||null==n.cursor.firstBatch)return void r(void 0,0);const i=n.cursor.firstBatch;r(void 0,i.length?i[0].n:0)}))}}t.CountDocumentsOperation=i},7711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateCollectionOperation=void 0;const n=r(3496),i=r(8971),o=r(4947),s=r(8945),a=r(2139),u=r(5172),c=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]);class l extends s.CommandOperation{constructor(e,t,r={}){super(e,r),this.options=r,this.db=e,this.name=t}executeCallback(e,t,r){(async()=>{const r=this.db,i=this.name,s=this.options,u=s.encryptedFields??r.client.options.autoEncryption?.encryptedFieldsMap?.[`${r.databaseName}.${i}`];if(u){if(!e.loadBalanced&&e.description.maxWireVersion<n.MIN_SUPPORTED_QE_WIRE_VERSION)throw new o.MongoCompatibilityError(`Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption. The minimum server version required is ${n.MIN_SUPPORTED_QE_SERVER_VERSION}`);const a=u.escCollection??`enxcol_.${i}.esc`,c=u.ecocCollection??`enxcol_.${i}.ecoc`;for(const n of[a,c]){const i=new l(r,n,{clusteredIndex:{key:{_id:1},unique:!0}});await i.executeWithoutEncryptedFieldsCheck(e,t)}s.encryptedFields||(this.options={...this.options,encryptedFields:u})}const c=await this.executeWithoutEncryptedFieldsCheck(e,t);if(u){const n=new a.CreateIndexOperation(r,i,{__safeContent__:1},{});await n.execute(e,t)}return c})().then((e=>r(void 0,e)),(e=>r(e)))}executeWithoutEncryptedFieldsCheck(e,t){return new Promise(((r,n)=>{const o=this.db,s=this.name,a=this.options,u={create:s};for(const e in a)null==a[e]||"function"==typeof a[e]||c.has(e)||(u[e]=a[e]);super.executeCommand(e,t,u,(e=>{if(e)return n(e);r(new i.Collection(o,s,a))}))}))}}t.CreateCollectionOperation=l,(0,u.defineAspects)(l,[u.Aspect.WRITE_OPERATION])},7237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeDeleteStatement=t.DeleteManyOperation=t.DeleteOneOperation=t.DeleteOperation=void 0;const n=r(4947),i=r(8945),o=r(5172);class s extends i.CommandOperation{constructor(e,t,r){super(void 0,r),this.options=r,this.ns=e,this.statements=t}get canRetryWrite(){return!1!==super.canRetryWrite&&this.statements.every((e=>null==e.limit||e.limit>0))}executeCallback(e,t,r){const i=this.options??{},o="boolean"!=typeof i.ordered||i.ordered,s={delete:this.ns.collection,deletes:this.statements,ordered:o};i.let&&(s.let=i.let),void 0!==i.comment&&(s.comment=i.comment),this.writeConcern&&0===this.writeConcern.w&&this.statements.find((e=>e.hint))?r(new n.MongoCompatibilityError("hint is not supported with unacknowledged writes")):super.executeCommand(e,t,s,r)}}t.DeleteOperation=s;class a extends s{constructor(e,t,r){super(e.s.namespace,[c(t,{...r,limit:1})],r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||null==t?r(e):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):this.explain?r(void 0,t):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,deletedCount:t.n})))}}t.DeleteOneOperation=a;class u extends s{constructor(e,t,r){super(e.s.namespace,[c(t,r)],r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||null==t?r(e):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):this.explain?r(void 0,t):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,deletedCount:t.n})))}}function c(e,t){const r={q:e,limit:"number"==typeof t.limit?t.limit:0};return t.collation&&(r.collation=t.collation),t.hint&&(r.hint=t.hint),r}t.DeleteManyOperation=u,t.makeDeleteStatement=c,(0,o.defineAspects)(s,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION]),(0,o.defineAspects)(a,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION,o.Aspect.EXPLAINABLE,o.Aspect.SKIP_COLLATION]),(0,o.defineAspects)(u,[o.Aspect.WRITE_OPERATION,o.Aspect.EXPLAINABLE,o.Aspect.SKIP_COLLATION])},9579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DistinctOperation=void 0;const n=r(2229),i=r(8945),o=r(5172);class s extends i.CommandOperation{constructor(e,t,r,n){super(e,n),this.options=n??{},this.collection=e,this.key=t,this.query=r}executeCallback(e,t,r){const i=this.collection,o=this.key,s=this.query,a=this.options,u={distinct:i.collectionName,key:o,query:s};"number"==typeof a.maxTimeMS&&(u.maxTimeMS=a.maxTimeMS),void 0!==a.comment&&(u.comment=a.comment),(0,n.decorateWithReadConcern)(u,i,a);try{(0,n.decorateWithCollation)(u,i,a)}catch(e){return r(e)}super.executeCommand(e,t,u,((e,t)=>{e?r(e):r(void 0,this.explain?t:t.values)}))}}t.DistinctOperation=s,(0,o.defineAspects)(s,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE,o.Aspect.EXPLAINABLE])},3226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropDatabaseOperation=t.DropCollectionOperation=void 0;const n=r(4947),i=r(8945),o=r(5172);class s extends i.CommandOperation{constructor(e,t,r={}){super(e,r),this.db=e,this.options=r,this.name=t}executeCallback(e,t,r){(async()=>{const r=this.db,i=this.options,o=this.name,a=r.client.options.autoEncryption?.encryptedFieldsMap;let u=i.encryptedFields??a?.[`${r.databaseName}.${o}`];if(!u&&a){const e=await r.listCollections({name:o},{nameOnly:!1}).toArray();u=e?.[0]?.options?.encryptedFields}if(u){const i=u.escCollection||`enxcol_.${o}.esc`,a=u.ecocCollection||`enxcol_.${o}.ecoc`;for(const o of[i,a]){const i=new s(r,o);try{await i.executeWithoutEncryptedFieldsCheck(e,t)}catch(e){if(!(e instanceof n.MongoServerError)||e.code!==n.MONGODB_ERROR_CODES.NamespaceNotFound)throw e}}}return this.executeWithoutEncryptedFieldsCheck(e,t)})().then((e=>r(void 0,e)),(e=>r(e)))}executeWithoutEncryptedFieldsCheck(e,t){return new Promise(((r,n)=>{super.executeCommand(e,t,{drop:this.name},((e,t)=>{if(e)return n(e);r(!!t.ok)}))}))}}t.DropCollectionOperation=s;class a extends i.CommandOperation{constructor(e,t){super(e,t),this.options=t}executeCallback(e,t,r){super.executeCommand(e,t,{dropDatabase:1},((e,t)=>e?r(e):t.ok?r(void 0,!0):void r(void 0,!1)))}}t.DropDatabaseOperation=a,(0,o.defineAspects)(s,[o.Aspect.WRITE_OPERATION]),(0,o.defineAspects)(a,[o.Aspect.WRITE_OPERATION])},3345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimatedDocumentCountOperation=void 0;const n=r(8945),i=r(5172);class o extends n.CommandOperation{constructor(e,t={}){super(e,t),this.options=t,this.collectionName=e.collectionName}executeCallback(e,t,r){const n={count:this.collectionName};"number"==typeof this.options.maxTimeMS&&(n.maxTimeMS=this.options.maxTimeMS),void 0!==this.options.comment&&(n.comment=this.options.comment),super.executeCommand(e,t,n,((e,t)=>{e?r(e):r(void 0,t?.n||0)}))}}t.EstimatedDocumentCountOperation=o,(0,i.defineAspects)(o,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE,i.Aspect.CURSOR_CREATING])},7445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeOperation=void 0;const n=r(4947),i=r(1228),o=r(114),s=r(2229),a=r(5172),u=n.MONGODB_ERROR_CODES.IllegalOperation,c="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";t.executeOperation=function(e,t,r){return(0,s.maybeCallback)((()=>async function(e,t){if(!(t instanceof a.AbstractCallbackOperation))throw new n.MongoRuntimeError("This method requires a valid operation instance");if(null==e.topology){if(e.s.hasBeenClosed)throw new n.MongoNotConnectedError("Client must be connected before running operations");e.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await e.connect()}finally{delete e.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:r}=e;if(null==r)throw new n.MongoRuntimeError("client.connect did not create a topology but also did not throw");let l,d=t.session;if(null==d)l=Symbol(),d=e.startSession({owner:l,explicit:!1});else{if(d.hasEnded)throw new n.MongoExpiredSessionError("Use of expired sessions is not permitted");if(d.snapshotEnabled&&!r.capabilities.supportsSnapshotReads)throw new n.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later")}const h=t.readPreference??i.ReadPreference.primary,p=!!d?.inTransaction();if(p&&!h.equals(i.ReadPreference.primary))throw new n.MongoTransactionError(`Read preference in a transaction must be primary, not: ${h.mode}`);let f;d?.isPinned&&d.transaction.isCommitted&&!t.bypassPinningCheck&&d.unpin(),f=t.hasAspect(a.Aspect.MUST_SELECT_SAME_SERVER)?(0,o.sameServerSelector)(t.server?.description):t.trySecondaryWrite?(0,o.secondaryWritableServerSelector)(r.commonWireVersion,h):h;const m=await r.selectServerAsync(f,{session:d});if(null==d)return t.execute(m,void 0);if(!t.hasAspect(a.Aspect.RETRYABLE))try{return await t.execute(m,d)}finally{null!=d?.owner&&d.owner===l&&await d.endSession().catch((()=>null))}const g=r.s.options.retryReads&&!p&&t.canRetryRead,E=r.s.options.retryWrites&&!p&&(0,s.supportsRetryableWrites)(m)&&t.canRetryWrite,y=t.hasAspect(a.Aspect.READ_OPERATION),v=t.hasAspect(a.Aspect.WRITE_OPERATION),A=y&&g||v&&E;v&&E&&(t.options.willRetryWrite=!0,d.incrementTransactionNumber());try{return await t.execute(m,d)}catch(e){if(A&&e instanceof n.MongoError)return await async function(e,t,{session:r,topology:i,selector:o}){const l=e.hasAspect(a.Aspect.WRITE_OPERATION),d=e.hasAspect(a.Aspect.READ_OPERATION);if(l&&t.code===u)throw new n.MongoServerError({message:c,errmsg:c,originalError:t});if(l&&!(0,n.isRetryableWriteError)(t))throw t;if(d&&!(0,n.isRetryableReadError)(t))throw t;t instanceof n.MongoNetworkError&&r.isPinned&&!r.inTransaction()&&e.hasAspect(a.Aspect.CURSOR_CREATING)&&r.unpin({force:!0,forceClear:!0});const h=await i.selectServerAsync(o,{session:r});if(l&&!(0,s.supportsRetryableWrites)(h))throw new n.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await e.execute(h,r)}catch(e){if(e instanceof n.MongoError&&e.hasErrorLabel(n.MongoErrorLabel.NoWritesPerformed))throw t;throw e}}(t,e,{session:d,topology:r,selector:f});throw e}finally{null!=d?.owner&&d.owner===l&&await d.endSession().catch((()=>null))}}(e,t)),r)}},1709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindOperation=void 0;const n=r(4947),i=r(3389),o=r(649),s=r(2229),a=r(8945),u=r(5172);class c extends a.CommandOperation{constructor(e,t,r={},i={}){if(super(e,i),this.options={...i},delete this.options.writeConcern,this.ns=t,"object"!=typeof r||Array.isArray(r))throw new n.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=null!=r&&"ObjectId"===r._bsontype?{_id:r}:r}executeCallback(e,t,r){this.server=e;const n=this.options;let a=function(e,t,r){const n={find:e.collection,filter:t};if(r.sort&&(n.sort=(0,o.formatSort)(r.sort)),r.projection){let e=r.projection;e&&Array.isArray(e)&&(e=e.length?e.reduce(((e,t)=>(e[t]=1,e)),{}):{_id:1}),n.projection=e}r.hint&&(n.hint=(0,s.normalizeHintField)(r.hint)),"number"==typeof r.skip&&(n.skip=r.skip),"number"==typeof r.limit&&(r.limit<0?(n.limit=-r.limit,n.singleBatch=!0):n.limit=r.limit),"number"==typeof r.batchSize&&(r.batchSize<0?(r.limit&&0!==r.limit&&Math.abs(r.batchSize)<Math.abs(r.limit)&&(n.limit=-r.batchSize),n.singleBatch=!0):n.batchSize=r.batchSize),"boolean"==typeof r.singleBatch&&(n.singleBatch=r.singleBatch),void 0!==r.comment&&(n.comment=r.comment),"number"==typeof r.maxTimeMS&&(n.maxTimeMS=r.maxTimeMS);const a=i.ReadConcern.fromOptions(r);return a&&(n.readConcern=a.toJSON()),r.max&&(n.max=r.max),r.min&&(n.min=r.min),"boolean"==typeof r.returnKey&&(n.returnKey=r.returnKey),"boolean"==typeof r.showRecordId&&(n.showRecordId=r.showRecordId),"boolean"==typeof r.tailable&&(n.tailable=r.tailable),"boolean"==typeof r.oplogReplay&&(n.oplogReplay=r.oplogReplay),"boolean"==typeof r.timeout?n.noCursorTimeout=!r.timeout:"boolean"==typeof r.noCursorTimeout&&(n.noCursorTimeout=r.noCursorTimeout),"boolean"==typeof r.awaitData&&(n.awaitData=r.awaitData),"boolean"==typeof r.allowPartialResults&&(n.allowPartialResults=r.allowPartialResults),r.collation&&(n.collation=r.collation),"boolean"==typeof r.allowDiskUse&&(n.allowDiskUse=r.allowDiskUse),r.let&&(n.let=r.let),n}(this.ns,this.filter,n);this.explain&&(a=(0,s.decorateWithExplain)(a,this.explain)),e.command(this.ns,a,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:t},r)}}t.FindOperation=c,(0,u.defineAspects)(c,[u.Aspect.READ_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE,u.Aspect.CURSOR_CREATING])},8448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindOneAndUpdateOperation=t.FindOneAndReplaceOperation=t.FindOneAndDeleteOperation=t.ReturnDocument=void 0;const n=r(4947),i=r(1228),o=r(649),s=r(2229),a=r(8945),u=r(5172);function c(e,r){return e.new=r.returnDocument===t.ReturnDocument.AFTER,e.upsert=!0===r.upsert,!0===r.bypassDocumentValidation&&(e.bypassDocumentValidation=r.bypassDocumentValidation),e}t.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class l extends a.CommandOperation{constructor(e,t,r){super(e,r),this.options=r??{},this.cmdBase={remove:!1,new:!1,upsert:!1},r.includeResultMetadata??(r.includeResultMetadata=!0);const n=(0,o.formatSort)(r.sort);n&&(this.cmdBase.sort=n),r.projection&&(this.cmdBase.fields=r.projection),r.maxTimeMS&&(this.cmdBase.maxTimeMS=r.maxTimeMS),r.writeConcern&&(this.cmdBase.writeConcern=r.writeConcern),r.let&&(this.cmdBase.let=r.let),void 0!==r.comment&&(this.cmdBase.comment=r.comment),this.readPreference=i.ReadPreference.primary,this.collection=e,this.query=t}executeCallback(e,t,r){const i=this.collection,o=this.query,a={...this.options,...this.bsonOptions},u={findAndModify:i.collectionName,query:o,...this.cmdBase};try{(0,s.decorateWithCollation)(u,i,a)}catch(e){return r(e)}if(a.hint){if(0===this.writeConcern?.w||(0,s.maxWireVersion)(e)<8)return void r(new n.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));u.hint=a.hint}super.executeCommand(e,t,u,((e,t)=>e?r(e):r(void 0,a.includeResultMetadata?t:t.value??null)))}}t.FindOneAndDeleteOperation=class extends l{constructor(e,t,r){if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError('Argument "filter" must be an object');super(e,t,r),this.cmdBase.remove=!0}},t.FindOneAndReplaceOperation=class extends l{constructor(e,t,r,i){if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError('Argument "filter" must be an object');if(null==r||"object"!=typeof r)throw new n.MongoInvalidArgumentError('Argument "replacement" must be an object');if((0,s.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(e,t,i),this.cmdBase.update=r,c(this.cmdBase,i)}},t.FindOneAndUpdateOperation=class extends l{constructor(e,t,r,i){if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError('Argument "filter" must be an object');if(null==r||"object"!=typeof r)throw new n.MongoInvalidArgumentError('Argument "update" must be an object');if(!(0,s.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Update document requires atomic operators");super(e,t,i),this.cmdBase.update=r,c(this.cmdBase,i),i.arrayFilters&&(this.cmdBase.arrayFilters=i.arrayFilters)}},(0,u.defineAspects)(l,[u.Aspect.WRITE_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE])},4170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetMoreOperation=void 0;const n=r(4947),i=r(2229),o=r(5172);class s extends o.AbstractCallbackOperation{constructor(e,t,r,n){super(n),this.options=n,this.ns=e,this.cursorId=t,this.server=r}executeCallback(e,t,r){if(e!==this.server)return r(new n.MongoRuntimeError("Getmore must run on the same server operation began on"));if(null==this.cursorId||this.cursorId.isZero())return r(new n.MongoRuntimeError("Unable to iterate cursor with no id"));const o=this.ns.collection;if(null==o)return r(new n.MongoRuntimeError("A collection name must be determined before getMore"));const s={getMore:this.cursorId,collection:o};"number"==typeof this.options.batchSize&&(s.batchSize=Math.abs(this.options.batchSize)),"number"==typeof this.options.maxAwaitTimeMS&&(s.maxTimeMS=this.options.maxAwaitTimeMS),void 0!==this.options.comment&&(0,i.maxWireVersion)(e)>=9&&(s.comment=this.options.comment);const a={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};e.command(this.ns,s,a,r)}}t.GetMoreOperation=s,(0,o.defineAspects)(s,[o.Aspect.READ_OPERATION,o.Aspect.MUST_SELECT_SAME_SERVER])},2139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexInformationOperation=t.IndexExistsOperation=t.ListIndexesOperation=t.DropIndexesOperation=t.DropIndexOperation=t.EnsureIndexOperation=t.CreateIndexOperation=t.CreateIndexesOperation=t.IndexesOperation=void 0;const n=r(4947),i=r(1228),o=r(2229),s=r(8945),a=r(8741),u=r(5172),c=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 l(e,t){const r=new Map,n=Array.isArray(e)&&(i=e,!Array.isArray(i)||2!==i.length||"number"!=typeof(s=i[1])&&"2d"!==s&&"2dsphere"!==s&&"text"!==s&&"geoHaystack"!==s)?e:[e];var i,s;for(const e of n)if("string"==typeof e)r.set(e,1);else if(Array.isArray(e))r.set(e[0],e[1]??1);else if(e instanceof Map)for(const[t,n]of e)r.set(t,n);else if((0,o.isObject)(e))for(const[t,n]of Object.entries(e))r.set(t,n);return{...t,key:r}}class d extends u.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.collection=e}executeCallback(e,t,r){const n=this.collection,i=this.options;(0,a.indexInformation)(n.s.db,n.collectionName,{full:!0,...i,readPreference:this.readPreference,session:t},r)}}t.IndexesOperation=d;class h extends s.CommandOperation{constructor(e,t,r,n){super(e,n),this.options=n??{},this.collectionName=t,this.indexes=r.map((e=>{const t=e.key instanceof Map?e.key:new Map(Object.entries(e.key)),r=null!=e.name?e.name:Array.from(t).flat().join("_");return{...Object.fromEntries(Object.entries({...e}).filter((([e])=>c.has(e)))),name:r,key:t}}))}executeCallback(e,t,r){const i=this.options,s=this.indexes,a=(0,o.maxWireVersion)(e),u={createIndexes:this.collectionName,indexes:s};if(null!=i.commitQuorum){if(a<9)return void r(new n.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));u.commitQuorum=i.commitQuorum}this.options.collation=void 0,super.executeCommand(e,t,u,(e=>{if(e)return void r(e);const t=s.map((e=>e.name||""));r(void 0,t)}))}}t.CreateIndexesOperation=h;class p extends h{constructor(e,t,r,n){super(e,t,[l(r,n)],n)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):r(void 0,t[0])))}}t.CreateIndexOperation=p;class f extends p{constructor(e,t,r,n){super(e,t,r,n),this.readPreference=i.ReadPreference.primary,this.db=e,this.collectionName=t}executeCallback(e,t,r){const i=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:t}).toArray().then((n=>{(n=Array.isArray(n)?n:[n]).some((e=>e.name===i))?r(void 0,i):super.executeCallback(e,t,r)}),(i=>i instanceof n.MongoError&&i.code===n.MONGODB_ERROR_CODES.NamespaceNotFound?super.executeCallback(e,t,r):r(i)))}}t.EnsureIndexOperation=f;class m extends s.CommandOperation{constructor(e,t,r){super(e,r),this.options=r??{},this.collection=e,this.indexName=t}executeCallback(e,t,r){const n={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommand(e,t,n,r)}}t.DropIndexOperation=m;class g extends m{constructor(e,t){super(e,"*",t)}executeCallback(e,t,r){super.executeCallback(e,t,(e=>{if(e)return r(e,!1);r(void 0,!0)}))}}t.DropIndexesOperation=g;class E extends s.CommandOperation{constructor(e,t){super(e,t),this.options={...t},delete this.options.writeConcern,this.collectionNamespace=e.s.namespace}executeCallback(e,t,r){const n=(0,o.maxWireVersion)(e),i=this.options.batchSize?{batchSize:this.options.batchSize}:{},s={listIndexes:this.collectionNamespace.collection,cursor:i};n>=9&&void 0!==this.options.comment&&(s.comment=this.options.comment),super.executeCommand(e,t,s,r)}}t.ListIndexesOperation=E;class y extends u.AbstractCallbackOperation{constructor(e,t,r){super(r),this.options=r,this.collection=e,this.indexes=t}executeCallback(e,t,r){const n=this.collection,i=this.indexes;(0,a.indexInformation)(n.s.db,n.collectionName,{...this.options,readPreference:this.readPreference,session:t},((e,t)=>{if(null!=e)return r(e);if(!Array.isArray(i))return r(void 0,null!=t[i]);for(let e=0;e<i.length;e++)if(null==t[i[e]])return r(void 0,!1);return r(void 0,!0)}))}}t.IndexExistsOperation=y;class v extends u.AbstractCallbackOperation{constructor(e,t,r){super(r),this.options=r??{},this.db=e,this.name=t}executeCallback(e,t,r){const n=this.db,i=this.name;(0,a.indexInformation)(n,i,{...this.options,readPreference:this.readPreference,session:t},r)}}t.IndexInformationOperation=v,(0,u.defineAspects)(E,[u.Aspect.READ_OPERATION,u.Aspect.RETRYABLE,u.Aspect.CURSOR_CREATING]),(0,u.defineAspects)(h,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(p,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(f,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(m,[u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(g,[u.Aspect.WRITE_OPERATION])},7159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertManyOperation=t.InsertOneOperation=t.InsertOperation=void 0;const n=r(4947),i=r(4620),o=r(6192),s=r(8945),a=r(8741),u=r(5172);class c extends s.CommandOperation{constructor(e,t,r){super(void 0,r),this.options={...r,checkKeys:r.checkKeys??!1},this.ns=e,this.documents=t}executeCallback(e,t,r){const n=this.options??{},i="boolean"!=typeof n.ordered||n.ordered,o={insert:this.ns.collection,documents:this.documents,ordered:i};"boolean"==typeof n.bypassDocumentValidation&&(o.bypassDocumentValidation=n.bypassDocumentValidation),void 0!==n.comment&&(o.comment=n.comment),super.executeCommand(e,t,o,r)}}t.InsertOperation=c;class l extends c{constructor(e,t,r){super(e.s.namespace,(0,a.prepareDocs)(e,[t],r),r)}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||null==t?r(e):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,insertedId:this.documents[0]._id})))}}t.InsertOneOperation=l;class d extends u.AbstractCallbackOperation{constructor(e,t,r){if(super(r),!Array.isArray(t))throw new n.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=r,this.collection=e,this.docs=t}executeCallback(e,t,r){const s=this.collection,u={...this.options,...this.bsonOptions,readPreference:this.readPreference},c=i.WriteConcern.fromOptions(u);new o.BulkWriteOperation(s,(0,a.prepareDocs)(s,this.docs,u).map((e=>({insertOne:{document:e}}))),u).executeCallback(e,t,((e,t)=>{if(e||null==t)return e&&"Operation must be an object with an operation key"===e.message&&(e=new n.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values")),r(e);r(void 0,{acknowledged:0!==c?.w??!0,insertedCount:t.insertedCount,insertedIds:t.insertedIds})}))}}t.InsertManyOperation=d,(0,u.defineAspects)(c,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(l,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(d,[u.Aspect.WRITE_OPERATION])},2062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsCappedOperation=void 0;const n=r(4947),i=r(5172);class o extends i.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.collection=e}executeCallback(e,t,r){const i=this.collection;i.s.db.listCollections({name:i.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:t}).toArray().then((e=>{if(0===e.length)return r(new n.MongoAPIError(`collection ${i.namespace} not found`));r(void 0,!!e[0].options?.capped)}),(e=>r(e)))}}t.IsCappedOperation=o},9602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KillCursorsOperation=void 0;const n=r(4947),i=r(5172);class o extends i.AbstractCallbackOperation{constructor(e,t,r,n){super(n),this.ns=t,this.cursorId=e,this.server=r}executeCallback(e,t,r){if(e!==this.server)return r(new n.MongoRuntimeError("Killcursor must run on the same server operation began on"));const i=this.ns.collection;if(null==i)return r(new n.MongoRuntimeError("A collection name must be determined before killCursors"));const o={killCursors:i,cursors:[this.cursorId]};e.command(this.ns,o,{session:t},(()=>r()))}}t.KillCursorsOperation=o,(0,i.defineAspects)(o,[i.Aspect.MUST_SELECT_SAME_SERVER])},2320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListCollectionsOperation=void 0;const n=r(2229),i=r(8945),o=r(5172);class s extends i.CommandOperation{constructor(e,t,r){super(e,r),this.options={...r},delete this.options.writeConcern,this.db=e,this.filter=t,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,"number"==typeof this.options.batchSize&&(this.batchSize=this.options.batchSize)}executeCallback(e,t,r){return super.executeCommand(e,t,this.generateCommand((0,n.maxWireVersion)(e)),r)}generateCommand(e){const t={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};return e>=9&&void 0!==this.options.comment&&(t.comment=this.options.comment),t}}t.ListCollectionsOperation=s,(0,o.defineAspects)(s,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE,o.Aspect.CURSOR_CREATING])},1608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListDatabasesOperation=void 0;const n=r(2229),i=r(8945),o=r(5172);class s extends i.CommandOperation{constructor(e,t){super(e,t),this.options=t??{},this.ns=new n.MongoDBNamespace("admin","$cmd")}executeCallback(e,t,r){const i={listDatabases:1};"boolean"==typeof this.options.nameOnly&&(i.nameOnly=this.options.nameOnly),this.options.filter&&(i.filter=this.options.filter),"boolean"==typeof this.options.authorizedDatabases&&(i.authorizedDatabases=this.options.authorizedDatabases),(0,n.maxWireVersion)(e)>=9&&void 0!==this.options.comment&&(i.comment=this.options.comment),super.executeCommand(e,t,i,r)}}t.ListDatabasesOperation=s,(0,o.defineAspects)(s,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE])},5172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineAspects=t.AbstractCallbackOperation=t.AbstractOperation=t.Aspect=void 0;const n=r(1764),i=r(9064),o=r(1228);t.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")};const s=Symbol("session");class a{constructor(e={}){this.readPreference=this.hasAspect(t.Aspect.WRITE_OPERATION)?o.ReadPreference.primary:o.ReadPreference.fromOptions(e)??o.ReadPreference.primary,this.bsonOptions=(0,i.resolveBSONOptions)(e),this[s]=null!=e.session?e.session:void 0,this.options=e,this.bypassPinningCheck=!!e.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(e){const t=this.constructor;return null!=t.aspects&&t.aspects.has(e)}get session(){return this[s]}clearSession(){this[s]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}t.AbstractOperation=a,t.AbstractCallbackOperation=class extends a{constructor(e={}){super(e)}execute(e,t){return(0,n.promisify)((r=>{this.executeCallback(e,t,r)}))()}},t.defineAspects=function(e,t){return Array.isArray(t)||t instanceof Set||(t=[t]),t=new Set(t),Object.defineProperty(e,"aspects",{value:t,writable:!1}),t}},2552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsOperation=void 0;const n=r(4947),i=r(5172);class o extends i.AbstractCallbackOperation{constructor(e,t){super(t),this.options=t,this.collection=e}executeCallback(e,t,r){const i=this.collection;i.s.db.listCollections({name:i.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:t}).toArray().then((e=>{if(0===e.length)return r(new n.MongoAPIError(`collection ${i.namespace} not found`));r(void 0,e[0].options)}),(e=>r(e)))}}t.OptionsOperation=o},8528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfilingLevelOperation=void 0;const n=r(4947),i=r(8945);class o extends i.CommandOperation{constructor(e,t){super(e,t),this.options=t}executeCallback(e,t,r){super.executeCommand(e,t,{profile:-1},((e,t)=>{if(null==e&&1===t.ok){const e=t.was;return 0===e?r(void 0,"off"):1===e?r(void 0,"slow_only"):2===e?r(void 0,"all"):r(new n.MongoRuntimeError(`Illegal profiling level value ${e}`))}r(null!=e?e:new n.MongoRuntimeError("Error with profile command"))}))}}t.ProfilingLevelOperation=o},8521:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveUserOperation=void 0;const n=r(8945),i=r(5172);class o extends n.CommandOperation{constructor(e,t,r){super(e,r),this.options=r,this.username=t}executeCallback(e,t,r){super.executeCommand(e,t,{dropUser:this.username},(e=>{r(e,!e)}))}}t.RemoveUserOperation=o,(0,i.defineAspects)(o,[i.Aspect.WRITE_OPERATION])},8955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameOperation=void 0;const n=r(8971),i=r(4947),o=r(2229),s=r(5172),a=r(25);class u extends a.RunAdminCommandOperation{constructor(e,t,r){(0,o.checkCollectionName)(t);const n=e.namespace,i=e.s.namespace.withCollection(t).toString();super(e,{renameCollection:n,to:i,dropTarget:"boolean"==typeof r.dropTarget&&r.dropTarget},r),this.options=r,this.collection=e,this.newName=t}executeCallback(e,t,r){const o=this.collection;super.executeCallback(e,t,((e,t)=>{if(e)return r(e);if(t?.errmsg)return r(new i.MongoServerError(t));let s;try{s=new n.Collection(o.s.db,this.newName,o.s.options)}catch(e){return r(e)}return r(void 0,s)}))}}t.RenameOperation=u,(0,s.defineAspects)(u,[s.Aspect.WRITE_OPERATION])},25:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunAdminCommandOperation=t.RunCommandOperation=void 0;const n=r(2229),i=r(8945);class o extends i.CommandOperation{constructor(e,t,r){super(e,r),this.options=r??{},this.command=t}executeCallback(e,t,r){const n=this.command;this.executeCommand(e,t,n,r)}}t.RunCommandOperation=o,t.RunAdminCommandOperation=class extends o{constructor(e,t,r){super(e,t,r),this.ns=new n.MongoDBNamespace("admin")}}},2195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateSearchIndexesOperation=void 0;const n=r(5172);class i extends n.AbstractCallbackOperation{constructor(e,t){super(),this.collection=e,this.descriptions=t}executeCallback(e,t,r){const n=this.collection.fullNamespace,i={createSearchIndexes:n.collection,indexes:this.descriptions};e.command(n,i,{session:t},((e,t)=>{!e&&t?r(void 0,(t?.indexesCreated??[]).map((({name:e})=>e))):r(e)}))}}t.CreateSearchIndexesOperation=i},3060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropSearchIndexOperation=void 0;const n=r(5172);class i extends n.AbstractCallbackOperation{constructor(e,t){super(),this.collection=e,this.name=t}executeCallback(e,t,r){const n=this.collection.fullNamespace,i={dropSearchIndex:n.collection};"string"==typeof this.name&&(i.name=this.name),e.command(n,i,{session:t},(e=>{e?r(e):r()}))}}t.DropSearchIndexOperation=i},88:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateSearchIndexOperation=void 0;const n=r(5172);class i extends n.AbstractCallbackOperation{constructor(e,t,r){super(),this.collection=e,this.name=t,this.definition=r}executeCallback(e,t,r){const n=this.collection.fullNamespace,i={updateSearchIndex:n.collection,name:this.name,definition:this.definition};e.command(n,i,{session:t},(e=>{e?r(e):r()}))}}t.UpdateSearchIndexOperation=i},4671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetProfilingLevelOperation=t.ProfilingLevel=void 0;const n=r(4947),i=r(2229),o=r(8945),s=new Set(["off","slow_only","all"]);t.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class a extends o.CommandOperation{constructor(e,r,n){switch(super(e,n),this.options=n,r){case t.ProfilingLevel.off:this.profile=0;break;case t.ProfilingLevel.slowOnly:this.profile=1;break;case t.ProfilingLevel.all:this.profile=2;break;default:this.profile=0}this.level=r}executeCallback(e,r,o){const a=this.level;if(!s.has(a))return o(new n.MongoInvalidArgumentError(`Profiling level must be one of "${(0,i.enumToString)(t.ProfilingLevel)}"`));super.executeCommand(e,r,{profile:this.profile},((e,t)=>null==e&&1===t.ok?o(void 0,a):o(null!=e?e:new n.MongoRuntimeError("Error with profile command"))))}}t.SetProfilingLevelOperation=a},6577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DbStatsOperation=t.CollStatsOperation=void 0;const n=r(8945),i=r(5172);class o extends n.CommandOperation{constructor(e,t){super(e,t),this.options=t??{},this.collectionName=e.collectionName}executeCallback(e,t,r){const n={collStats:this.collectionName};null!=this.options.scale&&(n.scale=this.options.scale),super.executeCommand(e,t,n,r)}}t.CollStatsOperation=o;class s extends n.CommandOperation{constructor(e,t){super(e,t),this.options=t}executeCallback(e,t,r){const n={dbStats:!0};null!=this.options.scale&&(n.scale=this.options.scale),super.executeCommand(e,t,n,r)}}t.DbStatsOperation=s,(0,i.defineAspects)(o,[i.Aspect.READ_OPERATION]),(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION])},5556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeUpdateStatement=t.ReplaceOneOperation=t.UpdateManyOperation=t.UpdateOneOperation=t.UpdateOperation=void 0;const n=r(4947),i=r(2229),o=r(8945),s=r(5172);class a extends o.CommandOperation{constructor(e,t,r){super(void 0,r),this.options=r,this.ns=e,this.statements=t}get canRetryWrite(){return!1!==super.canRetryWrite&&this.statements.every((e=>null==e.multi||!1===e.multi))}executeCallback(e,t,r){const i=this.options??{},o="boolean"!=typeof i.ordered||i.ordered,s={update:this.ns.collection,updates:this.statements,ordered:o};"boolean"==typeof i.bypassDocumentValidation&&(s.bypassDocumentValidation=i.bypassDocumentValidation),i.let&&(s.let=i.let),void 0!==i.comment&&(s.comment=i.comment),this.writeConcern&&0===this.writeConcern.w&&this.statements.find((e=>e.hint))?r(new n.MongoCompatibilityError("hint is not supported with unacknowledged writes")):super.executeCommand(e,t,s,r)}}t.UpdateOperation=a;class u extends a{constructor(e,t,r,o){if(super(e.s.namespace,[d(t,r,{...o,multi:!1})],o),!(0,i.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):null!=this.explain?r(void 0,t):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})))}}t.UpdateOneOperation=u;class c extends a{constructor(e,t,r,o){if(super(e.s.namespace,[d(t,r,{...o,multi:!0})],o),!(0,i.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):null!=this.explain?r(void 0,t):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})))}}t.UpdateManyOperation=c;class l extends a{constructor(e,t,r,o){if(super(e.s.namespace,[d(t,r,{...o,multi:!1})],o),(0,i.hasAtomicOperators)(r))throw new n.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}executeCallback(e,t,r){super.executeCallback(e,t,((e,t)=>e||!t?r(e):null!=this.explain?r(void 0,t):t.code?r(new n.MongoServerError(t)):t.writeErrors?r(new n.MongoServerError(t.writeErrors[0])):void r(void 0,{acknowledged:0!==this.writeConcern?.w??!0,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})))}}function d(e,t,r){if(null==e||"object"!=typeof e)throw new n.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(null==t||"object"!=typeof t)throw new n.MongoInvalidArgumentError("Document must be a valid JavaScript object");const i={q:e,u:t};return"boolean"==typeof r.upsert&&(i.upsert=r.upsert),r.multi&&(i.multi=r.multi),r.hint&&(i.hint=r.hint),r.arrayFilters&&(i.arrayFilters=r.arrayFilters),r.collation&&(i.collation=r.collation),i}t.ReplaceOneOperation=l,t.makeUpdateStatement=d,(0,s.defineAspects)(a,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.SKIP_COLLATION]),(0,s.defineAspects)(u,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]),(0,s.defineAspects)(c,[s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]),(0,s.defineAspects)(l,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.SKIP_COLLATION])},6540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCollectionOperation=void 0;const n=r(4947),i=r(8945);class o extends i.CommandOperation{constructor(e,t,r){const n={validate:t},i=Object.keys(r);for(let e=0;e<i.length;e++)Object.prototype.hasOwnProperty.call(r,i[e])&&"session"!==i[e]&&(n[i[e]]=r[i[e]]);super(e.s.db,r),this.options=r,this.command=n,this.collectionName=t}executeCallback(e,t,r){const i=this.collectionName;super.executeCommand(e,t,this.command,((e,t)=>null!=e?r(e):0===t.ok?r(new n.MongoRuntimeError("Error with validate command")):null!=t.result&&"string"!=typeof t.result?r(new n.MongoRuntimeError("Error with validation data")):null!=t.result&&null!=t.result.match(/exception|corrupt/)?r(new n.MongoRuntimeError(`Invalid collection ${i}`)):null==t.valid||t.valid?r(void 0,t):r(new n.MongoRuntimeError(`Invalid collection ${i}`))))}}t.ValidateCollectionOperation=o},3389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadConcern=t.ReadConcernLevel=void 0,t.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class r{constructor(e){this.level=t.ReadConcernLevel[e]??e}static fromOptions(e){if(null!=e){if(e.readConcern){const{readConcern:t}=e;if(t instanceof r)return t;if("string"==typeof t)return new r(t);if("level"in t&&t.level)return new r(t.level)}return e.level?new r(e.level):void 0}}static get MAJORITY(){return t.ReadConcernLevel.majority}static get AVAILABLE(){return t.ReadConcernLevel.available}static get LINEARIZABLE(){return t.ReadConcernLevel.linearizable}static get SNAPSHOT(){return t.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}t.ReadConcern=r},1228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadPreference=t.ReadPreferenceMode=void 0;const n=r(4947);t.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class i{constructor(e,t,r){if(!i.isValid(e))throw new n.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(e)}`);if(null!=r||"object"!=typeof t||Array.isArray(t)){if(t&&!Array.isArray(t))throw new n.MongoInvalidArgumentError("ReadPreference tags must be an array")}else r=t,t=void 0;if(this.mode=e,this.tags=t,this.hedge=r?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,null!=(r=r??{}).maxStalenessSeconds){if(r.maxStalenessSeconds<=0)throw new n.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=r.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===i.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(e){return new i(e)}static fromOptions(e){if(!e)return;const t=e.readPreference??e.session?.transaction.options.readPreference,r=e.readPreferenceTags;if(null!=t){if("string"==typeof t)return new i(t,r,{maxStalenessSeconds:e.maxStalenessSeconds,hedge:e.hedge});if(!(t instanceof i)&&"object"==typeof t){const n=t.mode||t.preference;if(n&&"string"==typeof n)return new i(n,t.tags??r,{maxStalenessSeconds:t.maxStalenessSeconds,hedge:e.hedge})}return r&&(t.tags=r),t}}static translate(e){if(null==e.readPreference)return e;const t=e.readPreference;if("string"==typeof t)e.readPreference=new i(t);else if(!t||t instanceof i||"object"!=typeof t){if(!(t instanceof i))throw new n.MongoInvalidArgumentError(`Invalid read preference: ${t}`)}else{const r=t.mode||t.preference;r&&"string"==typeof r&&(e.readPreference=new i(r,t.tags,{maxStalenessSeconds:t.maxStalenessSeconds}))}return e}static isValid(e){return new Set([i.PRIMARY,i.PRIMARY_PREFERRED,i.SECONDARY,i.SECONDARY_PREFERRED,i.NEAREST,null]).has(e)}isValid(e){return i.isValid("string"==typeof e?e:this.mode)}secondaryOk(){return new Set([i.PRIMARY_PREFERRED,i.SECONDARY,i.SECONDARY_PREFERRED,i.NEAREST]).has(this.mode)}equals(e){return e.mode===this.mode}toJSON(){const 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}}i.PRIMARY=t.ReadPreferenceMode.primary,i.PRIMARY_PREFERRED=t.ReadPreferenceMode.primaryPreferred,i.SECONDARY=t.ReadPreferenceMode.secondary,i.SECONDARY_PREFERRED=t.ReadPreferenceMode.secondaryPreferred,i.NEAREST=t.ReadPreferenceMode.nearest,i.primary=new i(t.ReadPreferenceMode.primary),i.primaryPreferred=new i(t.ReadPreferenceMode.primaryPreferred),i.secondary=new i(t.ReadPreferenceMode.secondary),i.secondaryPreferred=new i(t.ReadPreferenceMode.secondaryPreferred),i.nearest=new i(t.ReadPreferenceMode.nearest),t.ReadPreference=i},5896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._advanceClusterTime=t.drainTimerQueue=t.ServerType=t.TopologyType=t.STATE_CONNECTED=t.STATE_CONNECTING=t.STATE_CLOSED=t.STATE_CLOSING=void 0;const n=r(5346);t.STATE_CLOSING="closing",t.STATE_CLOSED="closed",t.STATE_CONNECTING="connecting",t.STATE_CONNECTED="connected",t.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"}),t.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"}),t.drainTimerQueue=function(e){e.forEach(n.clearTimeout),e.clear()},t._advanceClusterTime=function(e,t){(null==e.clusterTime||t.clusterTime.greaterThan(e.clusterTime.clusterTime))&&(e.clusterTime=t)}},8214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerHeartbeatFailedEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.TopologyClosedEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.ServerClosedEvent=t.ServerOpeningEvent=t.ServerDescriptionChangedEvent=void 0,t.ServerDescriptionChangedEvent=class{constructor(e,t,r,n){this.topologyId=e,this.address=t,this.previousDescription=r,this.newDescription=n}},t.ServerOpeningEvent=class{constructor(e,t){this.topologyId=e,this.address=t}},t.ServerClosedEvent=class{constructor(e,t){this.topologyId=e,this.address=t}},t.TopologyDescriptionChangedEvent=class{constructor(e,t,r){this.topologyId=e,this.previousDescription=t,this.newDescription=r}},t.TopologyOpeningEvent=class{constructor(e){this.topologyId=e}},t.TopologyClosedEvent=class{constructor(e){this.topologyId=e}},t.ServerHeartbeatStartedEvent=class{constructor(e){this.connectionId=e}},t.ServerHeartbeatSucceededEvent=class{constructor(e,t,r){this.connectionId=e,this.duration=t,this.reply=r??{}}},t.ServerHeartbeatFailedEvent=class{constructor(e,t,r){this.connectionId=e,this.duration=t,this.failure=r}}},2295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonitorInterval=t.RTTPinger=t.Monitor=void 0;const n=r(5346),i=r(9064),o=r(231),s=r(8345),a=r(5006),u=r(4947),c=r(334),l=r(2229),d=r(5896),h=r(8214),p=r(8631),f=Symbol("server"),m=Symbol("monitorId"),g=Symbol("connection"),E=Symbol("cancellationToken"),y=Symbol("rttPinger"),v=Symbol("roundTripTime"),A="idle",C="monitoring",b=(0,l.makeStateMachine)({[d.STATE_CLOSING]:[d.STATE_CLOSING,A,d.STATE_CLOSED],[d.STATE_CLOSED]:[d.STATE_CLOSED,C],[A]:[A,C,d.STATE_CLOSING],[C]:[C,A,d.STATE_CLOSING]}),S=new Set([d.STATE_CLOSING,d.STATE_CLOSED,C]);function w(e){return e.s.state===d.STATE_CLOSED||e.s.state===d.STATE_CLOSING}class O extends c.TypedEventEmitter{get connection(){return this[g]}constructor(e,t){super(),this[f]=e,this[g]=void 0,this[E]=new c.CancellationToken,this[E].setMaxListeners(1/0),this[m]=void 0,this.s={state:d.STATE_CLOSED},this.address=e.description.address,this.options=Object.freeze({connectTimeoutMS:t.connectTimeoutMS??1e4,heartbeatFrequencyMS:t.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:t.minHeartbeatFrequencyMS??500});const r=this[E],n=Object.assign({id:"<monitor>",generation:e.pool.generation,connectionType:s.Connection,cancellationToken:r,hostAddress:e.description.hostAddress},t,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});delete n.credentials,n.autoEncrypter&&delete n.autoEncrypter,this.connectOptions=Object.freeze(n)}connect(){if(this.s.state!==d.STATE_CLOSED)return;const e=this.options.heartbeatFrequencyMS,t=this.options.minHeartbeatFrequencyMS;this[m]=new B(x(this),{heartbeatFrequencyMS:e,minHeartbeatFrequencyMS:t,immediate:!0})}requestCheck(){S.has(this.s.state)||this[m]?.wake()}reset(){const e=this[f].description.topologyVersion;if(w(this)||null==e)return;b(this,d.STATE_CLOSING),_(this),b(this,A);const t=this.options.heartbeatFrequencyMS,r=this.options.minHeartbeatFrequencyMS;this[m]=new B(x(this),{heartbeatFrequencyMS:t,minHeartbeatFrequencyMS:r})}close(){w(this)||(b(this,d.STATE_CLOSING),_(this),this.emit("close"),b(this,d.STATE_CLOSED))}}function _(e){e[m]?.stop(),e[m]=void 0,e[y]?.close(),e[y]=void 0,e[E].emit("cancel"),e[g]?.destroy({force:!0}),e[g]=void 0}function x(e){return t=>{function r(){w(e)||b(e,A),t()}e.s.state!==C?(b(e,C),function(e,t){let r=(0,l.now)();function n(n){e[g]?.destroy({force:!0}),e[g]=void 0,e.emit(p.Server.SERVER_HEARTBEAT_FAILED,new h.ServerHeartbeatFailedEvent(e.address,(0,l.calculateDurationInMs)(r),n));const i=n instanceof u.MongoError?n:new u.MongoError(n);i.addErrorLabel(u.MongoErrorLabel.ResetPool),i instanceof u.MongoNetworkTimeoutError&&i.addErrorLabel(u.MongoErrorLabel.InterruptInUseConnections),e.emit("resetServer",i),t(n)}e.emit(p.Server.SERVER_HEARTBEAT_STARTED,new h.ServerHeartbeatStartedEvent(e.address));const s=e[g];if(s&&!s.closed){const{serverApi:o,helloOk:u}=s,d=e.options.connectTimeoutMS,m=e.options.heartbeatFrequencyMS,g=e[f].description.topologyVersion,v=null!=g,A={[o?.version||u?"hello":a.LEGACY_HELLO_COMMAND]:1,...v&&g?{maxAwaitTimeMS:m,topologyVersion:(c=g,{processId:c.processId,counter:i.Long.isLong(c.counter)?c.counter:i.Long.fromNumber(c.counter)})}:{}},C=v?{socketTimeoutMS:d?d+m:0,exhaustAllowed:!0}:{socketTimeoutMS:d};return v&&null==e[y]&&(e[y]=new D(e[E],Object.assign({heartbeatFrequencyMS:e.options.heartbeatFrequencyMS},e.connectOptions))),void s.command((0,l.ns)("admin.$cmd"),A,C,((i,o)=>{if(i)return n(i);"isWritablePrimary"in o||(o.isWritablePrimary=o[a.LEGACY_HELLO_COMMAND]);const s=e[y],u=v&&s?s.roundTripTime:(0,l.calculateDurationInMs)(r);e.emit(p.Server.SERVER_HEARTBEAT_SUCCEEDED,new h.ServerHeartbeatSucceededEvent(e.address,u,o)),v&&o.topologyVersion?(e.emit(p.Server.SERVER_HEARTBEAT_STARTED,new h.ServerHeartbeatStartedEvent(e.address)),r=(0,l.now)()):(e[y]?.close(),e[y]=void 0,t(void 0,o))}))}var c;(0,o.connect)(e.connectOptions,((i,o)=>{if(i)return e[g]=void 0,void n(i);if(o){if(o.isMonitoringConnection=!0,w(e))return void o.destroy({force:!0});e[g]=o,e.emit(p.Server.SERVER_HEARTBEAT_SUCCEEDED,new h.ServerHeartbeatSucceededEvent(e.address,(0,l.calculateDurationInMs)(r),o.hello)),t(void 0,o.hello)}}))}(e,((t,i)=>{if(t&&e[f].description.type===d.ServerType.Unknown)return r();i&&i.topologyVersion&&(0,n.setTimeout)((()=>{w(e)||e[m]?.wake()}),0),r()}))):process.nextTick(t)}}t.Monitor=O;class D{constructor(e,t){this[g]=void 0,this[E]=e,this[v]=0,this.closed=!1;const r=t.heartbeatFrequencyMS;this[m]=(0,n.setTimeout)((()=>T(this,t)),r)}get roundTripTime(){return this[v]}close(){this.closed=!0,(0,n.clearTimeout)(this[m]),this[g]?.destroy({force:!0}),this[g]=void 0}}function T(e,t){const r=(0,l.now)();t.cancellationToken=e[E];const i=t.heartbeatFrequencyMS;if(e.closed)return;function s(o){e.closed?o?.destroy({force:!0}):(null==e[g]&&(e[g]=o),e[v]=(0,l.calculateDurationInMs)(r),e[m]=(0,n.setTimeout)((()=>T(e,t)),i))}const u=e[g];null!=u?u.command((0,l.ns)("admin.$cmd"),{[a.LEGACY_HELLO_COMMAND]:1},void 0,(t=>{if(t)return e[g]=void 0,void(e[v]=0);s()})):(0,o.connect)(t,((t,r)=>{if(t)return e[g]=void 0,void(e[v]=0);s(r)}))}t.RTTPinger=D;class B{constructor(e,t={}){this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{this.stopped||(this.timerId&&(0,n.clearTimeout)(this.timerId),this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn((()=>{this.lastExecutionEnded=(0,l.now)(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})))},this.fn=e,this.lastExecutionEnded=-1/0,this.heartbeatFrequencyMS=t.heartbeatFrequencyMS??1e3,this.minHeartbeatFrequencyMS=t.minHeartbeatFrequencyMS??500,t.immediate?this._executeAndReschedule():this._reschedule(void 0)}wake(){const e=(0,l.now)()-this.lastExecutionEnded;return e<0?this._executeAndReschedule():this.isExecutionInProgress||this.isExpeditedCallToFnScheduled?void 0:e<this.minHeartbeatFrequencyMS?(this.isExpeditedCallToFnScheduled=!0,void this._reschedule(this.minHeartbeatFrequencyMS-e)):void this._executeAndReschedule()}stop(){this.stopped=!0,this.timerId&&((0,n.clearTimeout)(this.timerId),this.timerId=void 0),this.lastExecutionEnded=-1/0,this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const e=(0,l.now)(),t=e-this.lastExecutionEnded;return{timerId:null!=this.timerId?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:e,timeSinceLastCall:t}}_reschedule(e){this.stopped||(this.timerId&&(0,n.clearTimeout)(this.timerId),this.timerId=(0,n.setTimeout)(this._executeAndReschedule,e||this.heartbeatFrequencyMS))}}t.MonitorInterval=B},8631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const n=r(1764),i=r(8345),o=r(8343),s=r(8122),a=r(5006),u=r(4947),c=r(334),l=r(6204),d=r(2229),h=r(5896),p=r(2295),f=r(9735),m=(0,d.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]}),g=Symbol("monitor");class E extends c.TypedEventEmitter{constructor(e,t,r){super(),this.commandAsync=(0,n.promisify)(((e,t,r,n)=>this.command(e,t,r,n))),this.serverApi=r.serverApi;const s={hostAddress:t.hostAddress,...r};this.topology=e,this.pool=new o.ConnectionPool(this,s),this.s={description:t,options:r,state:h.STATE_CLOSED,operationCount:0};for(const e of[...a.CMAP_EVENTS,...a.APM_EVENTS])this.pool.on(e,(t=>this.emit(e,t)));if(this.pool.on(i.Connection.CLUSTER_TIME_RECEIVED,(e=>{this.clusterTime=e})),this.loadBalanced)return void(this[g]=null);const u=new p.Monitor(this,this.s.options);this[g]=u;for(const e of a.HEARTBEAT_EVENTS)u.on(e,(t=>this.emit(e,t)));u.on("resetServer",(e=>v(this,e))),u.on(E.SERVER_HEARTBEAT_SUCCEEDED,(e=>{this.emit(E.DESCRIPTION_RECEIVED,new f.ServerDescription(this.description.hostAddress,e.reply,{roundTripTime:y(this.description.roundTripTime,e.duration)})),this.s.state===h.STATE_CONNECTING&&(m(this,h.STATE_CONNECTED),this.emit(E.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===h.TopologyType.LoadBalanced}connect(){this.s.state===h.STATE_CLOSED&&(m(this,h.STATE_CONNECTING),this.loadBalanced?(m(this,h.STATE_CONNECTED),this.emit(E.CONNECT,this)):this[g]?.connect())}destroy(e,t){"function"==typeof e&&(t=e,e={force:!1}),e=Object.assign({},{force:!1},e),this.s.state!==h.STATE_CLOSED?(m(this,h.STATE_CLOSING),this.loadBalanced||this[g]?.close(),this.pool.close(e,(e=>{m(this,h.STATE_CLOSED),this.emit("closed"),"function"==typeof t&&t(e)}))):"function"==typeof t&&t()}requestCheck(){this.loadBalanced||this[g]?.requestCheck()}command(e,t,r,n){if(null==n)throw new u.MongoInvalidArgumentError("Callback must be provided");if(null==e.db||"string"==typeof e)throw new u.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===h.STATE_CLOSING||this.s.state===h.STATE_CLOSED)return void n(new u.MongoServerClosedError);const i=Object.assign({},r,{wireProtocolCommand:!1});i.omitReadPreference&&delete i.readPreference;const o=i.session,a=o?.pinnedConnection;this.loadBalanced&&o&&null==a&&function(e,t){return!!t&&(t.inTransaction()||"aggregate"in e||"find"in e||"getMore"in e||"listCollections"in e||"listIndexes"in e)}(t,o)?this.pool.checkOut(((r,s)=>{if(r||null==s)return n?n(r):void 0;o.pin(s),this.command(e,t,i,n)})):(this.incrementOperationCount(),this.pool.withConnection(a,((r,n,o)=>{if(r||!n)return this.decrementOperationCount(),r?(r instanceof s.PoolClearedError||this.handleError(r),o(r)):o(new u.MongoRuntimeError("Failed to create connection without error"));n.command(e,t,i,function(e,t,r,n,i){const o=n?.session;return function(s,a){return null==s&&null!=a?i(void 0,a):null!=n&&"noResponse"in n&&!0===n.noResponse?i(void 0,null):s?s instanceof u.MongoError?(function(e,t){return t.serviceId?t.generation!==e.serviceGenerations.get(t.serviceId.toHexString()):t.generation!==e.generation}(e.pool,t)||(s instanceof u.MongoNetworkError?(o&&!o.hasEnded&&o.serverSession&&(o.serverSession.isDirty=!0),A(o,r)&&!s.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError)&&s.addErrorLabel(u.MongoErrorLabel.TransientTransactionError),(C(e.topology)||(0,l.isTransactionCommand)(r))&&(0,d.supportsRetryableWrites)(e)&&!A(o,r)&&s.addErrorLabel(u.MongoErrorLabel.RetryableWriteError)):(C(e.topology)||(0,l.isTransactionCommand)(r))&&(0,u.needsRetryableWriteLabel)(s,(0,d.maxWireVersion)(e))&&!A(o,r)&&s.addErrorLabel(u.MongoErrorLabel.RetryableWriteError),o&&o.isPinned&&s.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError)&&o.unpin({force:!0}),e.handleError(s,t)),i(s)):i(s):i(new u.MongoUnexpectedServerResponseError("Empty response with no error"))}}(this,n,t,i,((e,t)=>{this.decrementOperationCount(),o(e,t)})))}),n))}handleError(e,t){if(!(e instanceof u.MongoError))return;if(e.connectionGeneration&&e.connectionGeneration<this.pool.generation)return;const r=e instanceof u.MongoNetworkError&&!(e instanceof u.MongoNetworkTimeoutError),n=(0,u.isNetworkErrorBeforeHandshake)(e),i=e.hasErrorLabel(u.MongoErrorLabel.HandshakeError);if(r||n||i)this.loadBalanced?t&&this.pool.clear({serviceId:t.serviceId}):(e.addErrorLabel(u.MongoErrorLabel.ResetPool),v(this,e));else if((0,u.isSDAMUnrecoverableError)(e)&&function(e,t){const r=t.topologyVersion,n=e.description.topologyVersion;return(0,f.compareTopologyVersion)(n,r)<0}(this,e)){const r=(0,d.maxWireVersion)(this)<=7||(0,u.isNodeShuttingDownError)(e);this.loadBalanced&&t&&r&&this.pool.clear({serviceId:t.serviceId}),this.loadBalanced||(r&&e.addErrorLabel(u.MongoErrorLabel.ResetPool),v(this,e),process.nextTick((()=>this.requestCheck())))}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}function y(e,t){return-1===e?t:.2*t+.8*e}function v(e,t){e.loadBalanced||(t instanceof u.MongoNetworkError&&!(t instanceof u.MongoNetworkTimeoutError)&&e[g]?.reset(),e.emit(E.DESCRIPTION_RECEIVED,new f.ServerDescription(e.description.hostAddress,void 0,{error:t})))}function A(e,t){return e&&e.inTransaction()&&!(0,l.isTransactionCommand)(t)}function C(e){return!1!==e.s.options.retryWrites}E.SERVER_HEARTBEAT_STARTED=a.SERVER_HEARTBEAT_STARTED,E.SERVER_HEARTBEAT_SUCCEEDED=a.SERVER_HEARTBEAT_SUCCEEDED,E.SERVER_HEARTBEAT_FAILED=a.SERVER_HEARTBEAT_FAILED,E.CONNECT=a.CONNECT,E.DESCRIPTION_RECEIVED=a.DESCRIPTION_RECEIVED,E.CLOSED=a.CLOSED,E.ENDED=a.ENDED,t.Server=E},9735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareTopologyVersion=t.parseServerType=t.ServerDescription=void 0;const n=r(9064),i=r(4947),o=r(2229),s=r(5896),a=new Set([s.ServerType.RSPrimary,s.ServerType.Standalone,s.ServerType.Mongos,s.ServerType.LoadBalancer]),u=new Set([s.ServerType.RSPrimary,s.ServerType.RSSecondary,s.ServerType.Mongos,s.ServerType.Standalone,s.ServerType.LoadBalancer]);function c(e,t){return t?.loadBalanced?s.ServerType.LoadBalancer:e&&e.ok?e.isreplicaset?s.ServerType.RSGhost:e.msg&&"isdbgrid"===e.msg?s.ServerType.Mongos:e.setName?e.hidden?s.ServerType.RSOther:e.isWritablePrimary?s.ServerType.RSPrimary:e.secondary?s.ServerType.RSSecondary:e.arbiterOnly?s.ServerType.RSArbiter:s.ServerType.RSOther:s.ServerType.Standalone:s.ServerType.Unknown}function l(e,t){if(null==e||null==t)return-1;if(!e.processId.equals(t.processId))return-1;const r=n.Long.isLong(e.counter)?e.counter:n.Long.fromNumber(e.counter),i=n.Long.isLong(t.counter)?t.counter:n.Long.fromNumber(t.counter);return r.compare(i)}t.ServerDescription=class{constructor(e,t,r={}){if(null==e||""===e)throw new i.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address="string"==typeof e?o.HostAddress.fromString(e).toString():e.toString(),this.type=c(t,r),this.hosts=t?.hosts?.map((e=>e.toLowerCase()))??[],this.passives=t?.passives?.map((e=>e.toLowerCase()))??[],this.arbiters=t?.arbiters?.map((e=>e.toLowerCase()))??[],this.tags=t?.tags??{},this.minWireVersion=t?.minWireVersion??0,this.maxWireVersion=t?.maxWireVersion??0,this.roundTripTime=r?.roundTripTime??-1,this.lastUpdateTime=(0,o.now)(),this.lastWriteDate=t?.lastWrite?.lastWriteDate??0,this.error=r.error??null,this.topologyVersion=this.error?.topologyVersion??t?.topologyVersion??null,this.setName=t?.setName??null,this.setVersion=t?.setVersion??null,this.electionId=t?.electionId??null,this.logicalSessionTimeoutMinutes=t?.logicalSessionTimeoutMinutes??null,this.primary=t?.primary??null,this.me=t?.me?.toLowerCase()??null,this.$clusterTime=t?.$clusterTime??null}get hostAddress(){return o.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===s.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return u.has(this.type)}get isWritable(){return a.has(this.type)}get host(){const e=`:${this.port}`.length;return this.address.slice(0,-e)}get port(){const e=this.address.split(":").pop();return e?Number.parseInt(e,10):27017}equals(e){const t=this.topologyVersion===e?.topologyVersion||0===l(this.topologyVersion,e?.topologyVersion),r=null!=this.electionId&&null!=e?.electionId?0===(0,o.compareObjectId)(this.electionId,e.electionId):this.electionId===e?.electionId;return null!=e&&(0,o.errorStrictEqual)(this.error,e.error)&&this.type===e.type&&this.minWireVersion===e.minWireVersion&&(0,o.arrayStrictEqual)(this.hosts,e.hosts)&&function(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every((r=>t[r]===e[r]))}(this.tags,e.tags)&&this.setName===e.setName&&this.setVersion===e.setVersion&&r&&this.primary===e.primary&&this.logicalSessionTimeoutMinutes===e.logicalSessionTimeoutMinutes&&t}},t.parseServerType=c,t.compareTopologyVersion=l},114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readPreferenceServerSelector=t.secondaryWritableServerSelector=t.sameServerSelector=t.writableServerSelector=t.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;const n=r(4947),i=r(1228),o=r(5896);function s(e,t){const r=Object.keys(e),n=Object.keys(t);for(let i=0;i<r.length;++i){const o=r[i];if(-1===n.indexOf(o)||t[o]!==e[o])return!1}return!0}function a(e,t){const r=t.reduce(((e,t)=>-1===e?t.roundTripTime:Math.min(t.roundTripTime,e)),-1),n=r+e.localThresholdMS;return t.reduce(((e,t)=>(t.roundTripTime<=n&&t.roundTripTime>=r&&e.push(t),e)),[])}function u(e){return e.type===o.ServerType.RSPrimary}function c(e){return e.type===o.ServerType.RSSecondary}function l(e){return e.type===o.ServerType.RSSecondary||e.type===o.ServerType.RSPrimary}function d(e){return e.type!==o.ServerType.Unknown}function h(e){return e.type===o.ServerType.LoadBalancer}function p(e){if(!e.isValid())throw new n.MongoInvalidArgumentError("Invalid read preference specified");return(t,r)=>{const p=t.commonWireVersion;if(p&&e.minWireVersion&&e.minWireVersion>p)throw new n.MongoCompatibilityError(`Minimum wire version '${e.minWireVersion}' required, but found '${p}'`);if(t.type===o.TopologyType.LoadBalanced)return r.filter(h);if(t.type===o.TopologyType.Unknown)return[];if(t.type===o.TopologyType.Single||t.type===o.TopologyType.Sharded)return a(t,r.filter(d));const f=e.mode;if(f===i.ReadPreference.PRIMARY)return r.filter(u);if(f===i.ReadPreference.PRIMARY_PREFERRED){const e=r.filter(u);if(e.length)return e}const m=f===i.ReadPreference.NEAREST?l:c,g=a(t,function(e,t){if(null==e.tags||Array.isArray(e.tags)&&0===e.tags.length)return t;for(let r=0;r<e.tags.length;++r){const n=e.tags[r],i=t.reduce(((e,t)=>(s(n,t.tags)&&e.push(t),e)),[]);if(i.length)return i}return[]}(e,function(e,t,r){if(null==e.maxStalenessSeconds||e.maxStalenessSeconds<0)return r;const i=e.maxStalenessSeconds,s=(t.heartbeatFrequencyMS+1e4)/1e3;if(i<s)throw new n.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${s} seconds`);if(i<90)throw new n.MongoInvalidArgumentError('Option "maxStalenessSeconds" must be at least 90 seconds');if(t.type===o.TopologyType.ReplicaSetWithPrimary){const n=Array.from(t.servers.values()).filter(u)[0];return r.reduce(((r,i)=>((i.lastUpdateTime-i.lastWriteDate-(n.lastUpdateTime-n.lastWriteDate)+t.heartbeatFrequencyMS)/1e3<=(e.maxStalenessSeconds??0)&&r.push(i),r)),[])}if(t.type===o.TopologyType.ReplicaSetNoPrimary){if(0===r.length)return r;const n=r.reduce(((e,t)=>t.lastWriteDate>e.lastWriteDate?t:e));return r.reduce(((r,i)=>((n.lastWriteDate-i.lastWriteDate+t.heartbeatFrequencyMS)/1e3<=(e.maxStalenessSeconds??0)&&r.push(i),r)),[])}return r}(e,t,r.filter(m))));return f===i.ReadPreference.SECONDARY_PREFERRED&&0===g.length?r.filter(u):g}}t.MIN_SECONDARY_WRITE_WIRE_VERSION=13,t.writableServerSelector=function(){return(e,t)=>a(e,t.filter((e=>e.isWritable)))},t.sameServerSelector=function(e){return(t,r)=>e?r.filter((t=>t.address===e.address&&t.type!==o.ServerType.Unknown)):[]},t.secondaryWritableServerSelector=function(e,r){return!r||!e||e&&e<t.MIN_SECONDARY_WRITE_WIRE_VERSION?p(i.ReadPreference.primary):p(r)},t.readPreferenceServerSelector=p},8709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SrvPoller=t.SrvPollingEvent=void 0;const n=r(665),i=r(5346),o=r(4947),s=r(334),a=r(2229);class u{constructor(e){this.srvRecords=e}hostnames(){return new Set(this.srvRecords.map((e=>a.HostAddress.fromSrvRecord(e).toString())))}}t.SrvPollingEvent=u;class c extends s.TypedEventEmitter{constructor(e){if(super(),!e||!e.srvHost)throw new o.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=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){this._timeout||this.schedule()}stop(){this._timeout&&((0,i.clearTimeout)(this._timeout),this.generation+=1,this._timeout=void 0)}schedule(){this._timeout&&(0,i.clearTimeout)(this._timeout),this._timeout=(0,i.setTimeout)((()=>{this._poll().catch((()=>null))}),this.intervalMS)}success(e){this.haMode=!1,this.schedule(),this.emit(c.SRV_RECORD_DISCOVERY,new u(e))}failure(){this.haMode=!0,this.schedule()}async _poll(){const e=this.generation;let t;try{t=await n.promises.resolveSrv(this.srvAddress)}catch(e){return void this.failure()}if(e!==this.generation)return;const r=[];for(const e of t)(0,a.matchesParentDomain)(e.name,this.srvHost)&&r.push(e);r.length?this.success(r):this.failure()}}c.SRV_RECORD_DISCOVERY="srvRecordDiscovery",t.SrvPoller=c},9281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerCapabilities=t.Topology=void 0;const n=r(5346),i=r(1764),o=r(2395),s=r(5006),a=r(4947),u=r(334),c=r(1228),l=r(2229),d=r(5896),h=r(8214),p=r(8631),f=r(9735),m=r(114),g=r(8709),E=r(7411);let y=0;const v=(0,l.makeStateMachine)({[d.STATE_CLOSED]:[d.STATE_CLOSED,d.STATE_CONNECTING],[d.STATE_CONNECTING]:[d.STATE_CONNECTING,d.STATE_CLOSING,d.STATE_CONNECTED,d.STATE_CLOSED],[d.STATE_CONNECTED]:[d.STATE_CONNECTED,d.STATE_CLOSING,d.STATE_CLOSED],[d.STATE_CLOSING]:[d.STATE_CLOSING,d.STATE_CLOSED]}),A=Symbol("cancelled"),C=Symbol("waitQueue");class b extends u.TypedEventEmitter{constructor(e,t,r){super(),this.client=e,this.selectServerAsync=(0,i.promisify)(((e,t,r)=>this.selectServer(e,t,r))),r=r??{hosts:[l.HostAddress.fromString("localhost:27017")],...Object.fromEntries(o.DEFAULT_OPTIONS.entries()),...Object.fromEntries(o.FEATURE_FLAGS.entries())},"string"==typeof t?t=[l.HostAddress.fromString(t)]:Array.isArray(t)||(t=[t]);const n=[];for(const e of t)if("string"==typeof e)n.push(l.HostAddress.fromString(e));else{if(!(e instanceof l.HostAddress))throw new a.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(e)}`);n.push(e)}const s=function(e){return e?.directConnection?d.TopologyType.Single:e?.replicaSet?d.TopologyType.ReplicaSetNoPrimary:e?.loadBalanced?d.TopologyType.LoadBalanced:d.TopologyType.Unknown}(r),u=y++,c=null==r.srvMaxHosts||0===r.srvMaxHosts||r.srvMaxHosts>=n.length?n:(0,l.shuffle)(n,r.srvMaxHosts),h=new Map;for(const e of c)h.set(e.toString(),new f.ServerDescription(e));this[C]=new l.List,this.s={id:u,options:r,seedlist:n,state:d.STATE_CLOSED,description:new E.TopologyDescription(s,h,r.replicaSet,void 0,void 0,void 0,r),serverSelectionTimeoutMS:r.serverSelectionTimeoutMS,heartbeatFrequencyMS:r.heartbeatFrequencyMS,minHeartbeatFrequencyMS:r.minHeartbeatFrequencyMS,servers:new Map,credentials:r?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:e=>this.detectShardedTopology(e),detectSrvRecords:e=>this.detectSrvRecords(e)},r.srvHost&&!r.loadBalanced&&(this.s.srvPoller=r.srvPoller??new g.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:r.srvHost,srvMaxHosts:r.srvMaxHosts,srvServiceName:r.srvServiceName}),this.on(b.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology))}detectShardedTopology(e){const t=e.previousDescription.type,r=e.newDescription.type,n=t!==d.TopologyType.Sharded&&r===d.TopologyType.Sharded,i=this.s.srvPoller?.listeners(g.SrvPoller.SRV_RECORD_DISCOVERY),o=!!i?.includes(this.s.detectSrvRecords);n&&!o&&(this.s.srvPoller?.on(g.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start())}detectSrvRecords(e){const t=this.s.description;this.s.description=this.s.description.updateFromSrvPollingEvent(e,this.s.options.srvMaxHosts),this.s.description!==t&&(O(this),this.emit(b.TOPOLOGY_DESCRIPTION_CHANGED,new h.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description)))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new D(this.lastHello())}connect(e,t){if("function"==typeof e&&(t=e,e={}),e=e??{},this.s.state===d.STATE_CONNECTED)return void("function"==typeof t&&t());v(this,d.STATE_CONNECTING),this.emit(b.TOPOLOGY_OPENING,new h.TopologyOpeningEvent(this.s.id)),this.emit(b.TOPOLOGY_DESCRIPTION_CHANGED,new h.TopologyDescriptionChangedEvent(this.s.id,new E.TopologyDescription(d.TopologyType.Unknown),this.s.description));const r=Array.from(this.s.description.servers.values());if(this.s.servers=new Map(r.map((e=>[e.address,w(this,e)]))),this.s.options.loadBalanced)for(const e of r){const t=new f.ServerDescription(e.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(t)}const n=e=>t?t(e):this.emit(b.ERROR,e),i=e.readPreference??c.ReadPreference.primary;this.selectServer((0,m.readPreferenceServerSelector)(i),e,((e,r)=>{if(e)return this.close({force:!1},(()=>n(e)));!0!==this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]&&r&&this.s.credentials?r.command((0,l.ns)("admin.$cmd"),{ping:1},{},(e=>{if(e)return n(e);v(this,d.STATE_CONNECTED),this.emit(b.OPEN,this),this.emit(b.CONNECT,this),t?.(void 0,this)})):(v(this,d.STATE_CONNECTED),this.emit(b.OPEN,this),this.emit(b.CONNECT,this),t?.(void 0,this))}))}close(e,t){if(e=e??{force:!1},this.s.state===d.STATE_CLOSED||this.s.state===d.STATE_CLOSING)return t?.();const r=Array.from(this.s.servers.values(),(t=>(0,i.promisify)(S)(t,this,{force:!!e?.force})));Promise.all(r).then((()=>{this.s.servers.clear(),v(this,d.STATE_CLOSING),_(this[C],new a.MongoTopologyClosedError),(0,d.drainTimerQueue)(this.s.connectionTimers),this.s.srvPoller&&(this.s.srvPoller.stop(),this.s.srvPoller.removeListener(g.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords)),this.removeListener(b.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),v(this,d.STATE_CLOSED),this.emit(b.TOPOLOGY_CLOSED,new h.TopologyClosedEvent(this.s.id))})).finally((()=>t?.()))}selectServer(e,t,r){let i;if("function"!=typeof e)if("string"==typeof e)i=(0,m.readPreferenceServerSelector)(c.ReadPreference.fromString(e));else{let r;e instanceof c.ReadPreference?r=e:(c.ReadPreference.translate(t),r=t.readPreference||c.ReadPreference.primary),i=(0,m.readPreferenceServerSelector)(r)}else i=e;t=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},t);const o=this.description.type===d.TopologyType.Sharded,s=t.session,u=s&&s.transaction;if(o&&u&&u.server)return void r(void 0,u.server);const l={serverSelector:i,transaction:u,callback:r},h=t.serverSelectionTimeoutMS;h&&(l.timer=(0,n.setTimeout)((()=>{l[A]=!0,l.timer=void 0;const e=new a.MongoServerSelectionError(`Server selection timed out after ${h} ms`,this.description);l.callback(e)}),h)),this[C].push(l),x(this)}serverUpdateHandler(e){if(!this.s.description.hasServer(e.address))return;if(function(e,t){const r=e.servers.get(t.address),n=r?.topologyVersion;return(0,f.compareTopologyVersion)(n,t.topologyVersion)>0}(this.s.description,e))return;const t=this.s.description,r=this.s.description.servers.get(e.address);if(!r)return;const n=e.$clusterTime;n&&(0,d._advanceClusterTime)(this,n);const i=r&&r.equals(e);if(this.s.description=this.s.description.update(e),this.s.description.compatibilityError)this.emit(b.ERROR,new a.MongoCompatibilityError(this.s.description.compatibilityError));else{if(!i){const t=this.s.description.servers.get(e.address);t&&this.emit(b.SERVER_DESCRIPTION_CHANGED,new h.ServerDescriptionChangedEvent(this.s.id,e.address,r,t))}O(this,e),this[C].length>0&&x(this),i||this.emit(b.TOPOLOGY_DESCRIPTION_CHANGED,new h.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description))}}auth(e,t){"function"==typeof e&&(t=e,e=void 0),"function"==typeof t&&t(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===d.STATE_CONNECTED}isDestroyed(){return this.s.state===d.STATE_CLOSED}lastHello(){const e=Array.from(this.description.servers.values());return 0===e.length?{}:e.filter((e=>e.type!==d.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}}function S(e,t,r,n){r=r??{force:!1};for(const t of s.LOCAL_SERVER_EVENTS)e.removeAllListeners(t);e.destroy(r,(()=>{t.emit(b.SERVER_CLOSED,new h.ServerClosedEvent(t.s.id,e.description.address));for(const t of s.SERVER_RELAY_EVENTS)e.removeAllListeners(t);"function"==typeof n&&n()}))}function w(e,t){e.emit(b.SERVER_OPENING,new h.ServerOpeningEvent(e.s.id,t.address));const r=new p.Server(e,t,e.s.options);for(const t of s.SERVER_RELAY_EVENTS)r.on(t,(r=>e.emit(t,r)));return r.on(p.Server.DESCRIPTION_RECEIVED,(t=>e.serverUpdateHandler(t))),r.connect(),r}function O(e,t){if(t&&e.s.servers.has(t.address)){const r=e.s.servers.get(t.address);if(r)if(r.s.description=t,t.error instanceof a.MongoError&&t.error.hasErrorLabel(a.MongoErrorLabel.ResetPool)){const e=t.error.hasErrorLabel(a.MongoErrorLabel.InterruptInUseConnections);r.pool.clear({interruptInUseConnections:e})}else if(null==t.error){const n=e.s.description.type;(t.isDataBearing||t.type!==d.ServerType.Unknown&&n===d.TopologyType.Single)&&r.pool.ready()}}for(const t of e.description.servers.values())if(!e.s.servers.has(t.address)){const r=w(e,t);e.s.servers.set(t.address,r)}for(const t of e.s.servers){const r=t[0];if(e.description.hasServer(r))continue;if(!e.s.servers.has(r))continue;const n=e.s.servers.get(r);e.s.servers.delete(r),n&&S(n,e)}}function _(e,t){for(;e.length;){const r=e.shift();r&&(r.timer&&(0,n.clearTimeout)(r.timer),r[A]||r.callback(t))}}function x(e){if(e.s.state===d.STATE_CLOSED)return void _(e[C],new a.MongoTopologyClosedError);const t=e.description.type===d.TopologyType.Sharded,r=Array.from(e.description.servers.values()),i=e[C].length;for(let o=0;o<i;++o){const i=e[C].shift();if(!i)continue;if(i[A])continue;let o,s;try{const t=i.serverSelector;o=t?t(e.description,r):r}catch(e){i.timer&&(0,n.clearTimeout)(i.timer),i.callback(e);continue}if(0===o.length){e[C].push(i);continue}if(1===o.length)s=e.s.servers.get(o[0].address);else{const t=(0,l.shuffle)(o,2),r=e.s.servers.get(t[0].address),n=e.s.servers.get(t[1].address);s=r&&n&&r.s.operationCount<n.s.operationCount?r:n}if(!s)return void i.callback(new a.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",e.description));const u=i.transaction;t&&u&&u.isActive&&s&&u.pinServer(s),i.timer&&(0,n.clearTimeout)(i.timer),i.callback(void 0,s)}if(e[C].length>0)for(const[,t]of e.s.servers)process.nextTick((function(){return t.requestCheck()}))}b.SERVER_OPENING=s.SERVER_OPENING,b.SERVER_CLOSED=s.SERVER_CLOSED,b.SERVER_DESCRIPTION_CHANGED=s.SERVER_DESCRIPTION_CHANGED,b.TOPOLOGY_OPENING=s.TOPOLOGY_OPENING,b.TOPOLOGY_CLOSED=s.TOPOLOGY_CLOSED,b.TOPOLOGY_DESCRIPTION_CHANGED=s.TOPOLOGY_DESCRIPTION_CHANGED,b.ERROR=s.ERROR,b.OPEN=s.OPEN,b.CONNECT=s.CONNECT,b.CLOSE=s.CLOSE,b.TIMEOUT=s.TIMEOUT,t.Topology=b;class D{constructor(e){this.minWireVersion=e.minWireVersion||0,this.maxWireVersion=e.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}t.ServerCapabilities=D},7411:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopologyDescription=void 0;const n=r(3496),i=r(4947),o=r(2229),s=r(5896),a=r(9735),u=n.MIN_SUPPORTED_SERVER_VERSION,c=n.MAX_SUPPORTED_SERVER_VERSION,l=n.MIN_SUPPORTED_WIRE_VERSION,d=n.MAX_SUPPORTED_WIRE_VERSION,h=new Set([s.ServerType.Mongos,s.ServerType.Unknown]),p=new Set([s.ServerType.Mongos,s.ServerType.Standalone]),f=new Set([s.ServerType.RSSecondary,s.ServerType.RSArbiter,s.ServerType.RSOther]);class m{constructor(e,t=null,r=null,n=null,i=null,o=null,a=null){a=a??{},this.type=e??s.TopologyType.Unknown,this.servers=t??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=a.heartbeatFrequencyMS??0,this.localThresholdMS=a.localThresholdMS??15,this.setName=r??null,this.maxElectionId=i??null,this.maxSetVersion=n??null,this.commonWireVersion=o??0;for(const e of this.servers.values())if(e.type!==s.ServerType.Unknown&&e.type!==s.ServerType.LoadBalancer&&(e.minWireVersion>d&&(this.compatible=!1,this.compatibilityError=`Server at ${e.address} requires wire version ${e.minWireVersion}, but this version of the driver only supports up to ${d} (MongoDB ${c})`),e.maxWireVersion<l)){this.compatible=!1,this.compatibilityError=`Server at ${e.address} reports wire version ${e.maxWireVersion}, but this version of the driver requires at least ${l} (MongoDB ${u}).`;break}this.logicalSessionTimeoutMinutes=null;for(const[,e]of this.servers)if(e.isReadable){if(null==e.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=null;break}if(null==this.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=e.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,e.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(e,t=0){const r=e.hostnames(),n=new Set(this.servers.keys()),i=new Set(r),s=new Set;for(const e of n)i.delete(e),r.has(e)||s.add(e);if(0===i.size&&0===s.size)return this;const u=new Map(this.servers);for(const e of s)u.delete(e);if(i.size>0)if(0===t)for(const e of i)u.set(e,new a.ServerDescription(e));else if(u.size<t){const e=(0,o.shuffle)(i,t-u.size);for(const t of e)u.set(t,new a.ServerDescription(t))}return new m(this.type,u,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(e){const t=e.address;let{type:r,setName:n,maxSetVersion:o,maxElectionId:u,commonWireVersion:c}=this;const l=e.type,d=new Map(this.servers);if(0!==e.maxWireVersion&&(c=null==c?e.maxWireVersion:Math.min(c,e.maxWireVersion)),"string"==typeof e.setName&&"string"==typeof n&&e.setName!==n&&(r===s.TopologyType.Single?e=new a.ServerDescription(t):d.delete(t)),d.set(t,e),r===s.TopologyType.Single)return new m(s.TopologyType.Single,d,n,o,u,c,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if(r===s.TopologyType.Unknown&&(l===s.ServerType.Standalone&&1!==this.servers.size?d.delete(t):r=function(e){switch(e){case s.ServerType.Standalone:return s.TopologyType.Single;case s.ServerType.Mongos:return s.TopologyType.Sharded;case s.ServerType.RSPrimary:return s.TopologyType.ReplicaSetWithPrimary;case s.ServerType.RSOther:case s.ServerType.RSSecondary:return s.TopologyType.ReplicaSetNoPrimary;default:return s.TopologyType.Unknown}}(l)),r===s.TopologyType.Sharded&&(h.has(l)||d.delete(t)),r===s.TopologyType.ReplicaSetNoPrimary)if(p.has(l)&&d.delete(t),l===s.ServerType.RSPrimary){const t=g(d,e,n,o,u);r=t[0],n=t[1],o=t[2],u=t[3]}else if(f.has(l)){const t=function(e,t,r=null){const n=s.TopologyType.ReplicaSetNoPrimary;return(r=r??t.setName)!==t.setName?(e.delete(t.address),[n,r]):(t.allHosts.forEach((t=>{e.has(t)||e.set(t,new a.ServerDescription(t))})),t.me&&t.address!==t.me&&e.delete(t.address),[n,r])}(d,e,n);r=t[0],n=t[1]}if(r===s.TopologyType.ReplicaSetWithPrimary)if(p.has(l))d.delete(t),r=E(d);else if(l===s.ServerType.RSPrimary){const t=g(d,e,n,o,u);r=t[0],n=t[1],o=t[2],u=t[3]}else r=f.has(l)?function(e,t,r=null){if(null==r)throw new i.MongoRuntimeError('Argument "setName" is required if connected to a replica set');return(r!==t.setName||t.me&&t.address!==t.me)&&e.delete(t.address),E(e)}(d,e,n):E(d);return new m(r,d,n,o,u,c,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const e=Array.from(this.servers.values()).filter((e=>e.error));return e.length>0?e[0].error:null}get hasKnownServers(){return Array.from(this.servers.values()).some((e=>e.type!==s.ServerType.Unknown))}get hasDataBearingServers(){return Array.from(this.servers.values()).some((e=>e.isDataBearing))}hasServer(e){return this.servers.has(e)}}function g(e,t,r=null,n=null,i=null){if((r=r||t.setName)!==t.setName)return e.delete(t.address),[E(e),r,n,i];if(t.maxWireVersion>=17){const s=(0,o.compareObjectId)(i,t.electionId),u=0===s,c=-1===s,l=(n??-1)<=(t.setVersion??-1);if(!(c||u&&l))return e.set(t.address,new a.ServerDescription(t.address)),[E(e),r,n,i];i=t.electionId,n=t.setVersion}else{const s=t.electionId?t.electionId:null;if(t.setVersion&&s){if(n&&i&&(n>t.setVersion||(0,o.compareObjectId)(i,s)>0))return e.set(t.address,new a.ServerDescription(t.address)),[E(e),r,n,i];i=t.electionId}null!=t.setVersion&&(null==n||t.setVersion>n)&&(n=t.setVersion)}for(const[r,n]of e)if(n.type===s.ServerType.RSPrimary&&n.address!==t.address){e.set(r,new a.ServerDescription(n.address));break}t.allHosts.forEach((t=>{e.has(t)||e.set(t,new a.ServerDescription(t))}));const u=Array.from(e.keys()),c=t.allHosts;return u.filter((e=>-1===c.indexOf(e))).forEach((t=>{e.delete(t)})),[E(e),r,n,i]}function E(e){for(const t of e.values())if(t.type===s.ServerType.RSPrimary)return s.TopologyType.ReplicaSetWithPrimary;return s.TopologyType.ReplicaSetNoPrimary}t.TopologyDescription=m},1296:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.updateSessionFromResponse=t.applySession=t.ServerSessionPool=t.ServerSession=t.maybeClearPinnedConnection=t.ClientSession=void 0;const i=r(1764),o=r(9064),s=r(8547),a=r(3377),u=r(5006),c=r(4947),l=r(334),d=r(7445),h=r(25),p=r(3389),f=r(1228),m=r(5896),g=r(6204),E=r(2229),y=r(4620),v=Symbol("serverSession"),A=Symbol("snapshotTime"),C=Symbol("snapshotEnabled"),b=Symbol("pinnedConnection"),S=Symbol("txnNumberIncrement");class w extends l.TypedEventEmitter{constructor(e,t,r,i){if(super(),this[n]=!1,null==e)throw new c.MongoRuntimeError("ClientSession requires a MongoClient");if(null==t||!(t instanceof k))throw new c.MongoRuntimeError("ClientSession requires a ServerSessionPool");if(!0===(r=r??{}).snapshot&&(this[C]=!0,!0===r.causalConsistency))throw new c.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive');this.client=e,this.sessionPool=t,this.hasEnded=!1,this.clientOptions=i,this.explicit=!!r.explicit,this[v]=this.explicit?this.sessionPool.acquire():null,this[S]=0;const o=this.explicit&&!0!==r.snapshot;this.supports={causalConsistency:r.causalConsistency??o},this.clusterTime=r.initialClusterTime,this.operationTime=void 0,this.owner=r.owner,this.defaultTransactionOptions=Object.assign({},r.defaultTransactionOptions),this.transaction=new g.Transaction}get id(){return this[v]?.id}get serverSession(){let e=this[v];if(null==e){if(this.explicit)throw new c.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new c.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");e=this.sessionPool.acquire(),this[v]=e}return e}get snapshotEnabled(){return this[C]}get loadBalanced(){return this.client.topology?.description.type===m.TopologyType.LoadBalanced}get pinnedConnection(){return this[b]}pin(e){if(this[b])throw TypeError("Cannot pin multiple connections to the same session");this[b]=e,e.emit(u.PINNED,this.inTransaction()?s.ConnectionPoolMetrics.TXN:s.ConnectionPoolMetrics.CURSOR)}unpin(e){if(this.loadBalanced)return D(this,e);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[b]:this.transaction.isPinned}async endSession(e){try{if(this.inTransaction()&&await this.abortTransaction(),!this.hasEnded){const e=this[v];null!=e&&(this.sessionPool.release(e),Object.defineProperty(this,v,{value:P.clone(e),writable:!1})),this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{D(this,{force:!0,...e})}}advanceOperationTime(e){null!=this.operationTime?e.greaterThan(this.operationTime)&&(this.operationTime=e):this.operationTime=e}advanceClusterTime(e){if(!e||"object"!=typeof e)throw new c.MongoInvalidArgumentError("input cluster time must be an object");if(!e.clusterTime||"Timestamp"!==e.clusterTime._bsontype)throw new c.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!e.signature||"Binary"!==e.signature.hash?._bsontype||"bigint"!=typeof e.signature.keyId&&"number"!=typeof e.signature.keyId&&"Long"!==e.signature.keyId?._bsontype)throw new c.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');(0,m._advanceClusterTime)(this,e)}equals(e){return e instanceof w&&null!=this.id&&null!=e.id&&E.ByteUtils.equals(this.id.id.buffer,e.id.id.buffer)}incrementTransactionNumber(){this[S]+=1}inTransaction(){return this.transaction.isActive}startTransaction(e){if(this[C])throw new c.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new c.MongoTransactionError("Transaction already in progress");this.isPinned&&this.transaction.isCommitted&&this.unpin();const t=(0,E.maxWireVersion)(this.client.topology);if((0,a.isSharded)(this.client.topology)&&null!=t&&t<8)throw new c.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new g.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(g.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return R(this,"commitTransaction")}async abortTransaction(){return R(this,"abortTransaction")}toBSON(){throw new c.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(e,t){return F(this,(0,E.now)(),e,t)}}t.ClientSession=w,n=C;const O=12e4,_=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);function x(e,t){return(0,E.calculateDurationInMs)(e)<t}function D(e,t){const r=e[b],n=t?.error;if(e.inTransaction()&&n&&n instanceof c.MongoError&&n.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError))return;const i=e.client.topology;if(r&&null!=i){const n=Array.from(i.s.servers.values())[0];(null==t?.error||t?.force)&&(n.pool.checkIn(r),r.emit(u.UNPINNED,e.transaction.state!==g.TxnState.NO_TRANSACTION?s.ConnectionPoolMetrics.TXN:s.ConnectionPoolMetrics.CURSOR),t?.forceClear&&n.pool.clear({serviceId:r.serviceId})),e[b]=void 0}}function T(e){return null!=e&&e instanceof c.MongoServerError&&(e.code===c.MONGODB_ERROR_CODES.MaxTimeMSExpired||e.writeConcernError&&e.writeConcernError.code===c.MONGODB_ERROR_CODES.MaxTimeMSExpired)}function B(e,t,r,n){return e.commitTransaction().catch((i=>{if(i instanceof c.MongoError&&x(t,O)&&!T(i)){if(i.hasErrorLabel(c.MongoErrorLabel.UnknownTransactionCommitResult))return B(e,t,r,n);if(i.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError))return F(e,t,r,n)}throw i}))}t.maybeClearPinnedConnection=D;const I=new Set([g.TxnState.NO_TRANSACTION,g.TxnState.TRANSACTION_COMMITTED,g.TxnState.TRANSACTION_ABORTED]);function F(e,t,r,n){let i;e.startTransaction(n);try{i=r(e)}catch(e){i=Promise.reject(e)}if(!(0,E.isPromiseLike)(i))throw e.abortTransaction().catch((()=>null)),new c.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return i.then((()=>{if(!function(e){return I.has(e.transaction.state)}(e))return B(e,t,r,n)}),(i=>{function o(i){if(i instanceof c.MongoError&&i.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError)&&x(t,O))return F(e,t,r,n);throw T(i)&&i.addErrorLabel(c.MongoErrorLabel.UnknownTransactionCommitResult),i}return e.inTransaction()?e.abortTransaction().then((()=>o(i))):o(i)}))}const R=(0,i.promisify)((function(e,t,r){const n=e.transaction.state;if(n===g.TxnState.NO_TRANSACTION)return void r(new c.MongoTransactionError("No transaction started"));if("commitTransaction"===t){if(n===g.TxnState.STARTING_TRANSACTION||n===g.TxnState.TRANSACTION_COMMITTED_EMPTY)return e.transaction.transition(g.TxnState.TRANSACTION_COMMITTED_EMPTY),void r();if(n===g.TxnState.TRANSACTION_ABORTED)return void r(new c.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"))}else{if(n===g.TxnState.STARTING_TRANSACTION)return e.transaction.transition(g.TxnState.TRANSACTION_ABORTED),void r();if(n===g.TxnState.TRANSACTION_ABORTED)return void r(new c.MongoTransactionError("Cannot call abortTransaction twice"));if(n===g.TxnState.TRANSACTION_COMMITTED||n===g.TxnState.TRANSACTION_COMMITTED_EMPTY)return void r(new c.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"))}const i={[t]:1};let o;function s(n,i){if("commitTransaction"!==t)return e.transaction.transition(g.TxnState.TRANSACTION_ABORTED),e.loadBalanced&&D(e,{force:!1}),r();e.transaction.transition(g.TxnState.TRANSACTION_COMMITTED),n instanceof c.MongoError&&(n.hasErrorLabel(c.MongoErrorLabel.RetryableWriteError)||n instanceof c.MongoWriteConcernError||T(n)?function(e){const t=e instanceof c.MongoServerError&&e.codeName&&_.has(e.codeName);return T(e)||!t&&e.code!==c.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&e.code!==c.MONGODB_ERROR_CODES.UnknownReplWriteConcern}(n)&&(n.addErrorLabel(c.MongoErrorLabel.UnknownTransactionCommitResult),e.unpin({error:n})):n.hasErrorLabel(c.MongoErrorLabel.TransientTransactionError)&&e.unpin({error:n})),r(n,i)}e.transaction.options.writeConcern?o=Object.assign({},e.transaction.options.writeConcern):e.clientOptions&&e.clientOptions.writeConcern&&(o={w:e.clientOptions.writeConcern.w}),n===g.TxnState.TRANSACTION_COMMITTED&&(o=Object.assign({wtimeoutMS:1e4},o,{w:"majority"})),o&&y.WriteConcern.apply(i,o),"commitTransaction"===t&&e.transaction.options.maxTimeMS&&Object.assign(i,{maxTimeMS:e.transaction.options.maxTimeMS}),e.transaction.recoveryToken&&(i.recoveryToken=e.transaction.recoveryToken),(0,d.executeOperation)(e.client,new h.RunAdminCommandOperation(void 0,i,{session:e,readPreference:f.ReadPreference.primary,bypassPinningCheck:!0}),((t,r)=>{if(i.abortTransaction&&e.unpin(),t instanceof c.MongoError&&t.hasErrorLabel(c.MongoErrorLabel.RetryableWriteError))return i.commitTransaction&&(e.unpin({force:!0}),i.writeConcern=Object.assign({wtimeout:1e4},i.writeConcern,{w:"majority"})),(0,d.executeOperation)(e.client,new h.RunAdminCommandOperation(void 0,i,{session:e,readPreference:f.ReadPreference.primary,bypassPinningCheck:!0}),s);s(t,r)}))}));class P{constructor(){this.id={id:new o.Binary((0,E.uuidV4)(),o.Binary.SUBTYPE_UUID)},this.lastUse=(0,E.now)(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(e){return Math.round((0,E.calculateDurationInMs)(this.lastUse)%864e5%36e5/6e4)>e-1}static clone(e){const t=new ArrayBuffer(16),r=Buffer.from(t);r.set(e.id.id.buffer);const n=new o.Binary(r,e.id.id.sub_type);return Object.setPrototypeOf({id:{id:n},lastUse:e.lastUse,txnNumber:e.txnNumber,isDirty:e.isDirty},P.prototype)}}t.ServerSession=P;class k{constructor(e){if(null==e)throw new c.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=e,this.sessions=new E.List}acquire(){const e=this.client.topology?.logicalSessionTimeoutMinutes??10;let t=null;for(;this.sessions.length>0;){const r=this.sessions.shift();if(null!=r&&(this.client.topology?.loadBalanced||!r.hasTimedOut(e))){t=r;break}}return null==t&&(t=new P),t}release(e){const t=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!t&&this.sessions.unshift(e),t&&(this.sessions.prune((e=>e.hasTimedOut(t))),!e.hasTimedOut(t))){if(e.isDirty)return;this.sessions.unshift(e)}}}t.ServerSessionPool=k,t.applySession=function(e,t,r){if(e.hasEnded)return new c.MongoExpiredSessionError;const n=e.serverSession;if(null==n)return new c.MongoRuntimeError("Unable to acquire server session");if(0===r.writeConcern?.w)return e&&e.explicit?new c.MongoAPIError("Cannot have explicit session with unacknowledged writes"):void 0;n.lastUse=(0,E.now)(),t.lsid=n.id;const i=e.inTransaction()||(0,g.isTransactionCommand)(t);if((!!r.willRetryWrite||i)&&(n.txnNumber+=e[S],e[S]=0,t.txnNumber=o.Long.fromNumber(n.txnNumber)),!i)return e.transaction.state!==g.TxnState.NO_TRANSACTION&&e.transaction.transition(g.TxnState.NO_TRANSACTION),void(e.supports.causalConsistency&&e.operationTime&&(0,E.commandSupportsReadConcern)(t,r)?(t.readConcern=t.readConcern||{},Object.assign(t.readConcern,{afterClusterTime:e.operationTime})):e[C]&&(t.readConcern=t.readConcern||{level:p.ReadConcernLevel.snapshot},null!=e[A]&&Object.assign(t.readConcern,{atClusterTime:e[A]})));if(t.autocommit=!1,e.transaction.state===g.TxnState.STARTING_TRANSACTION){e.transaction.transition(g.TxnState.TRANSACTION_IN_PROGRESS),t.startTransaction=!0;const r=e.transaction.options.readConcern||e?.clientOptions?.readConcern;r&&(t.readConcern=r),e.supports.causalConsistency&&e.operationTime&&(t.readConcern=t.readConcern||{},Object.assign(t.readConcern,{afterClusterTime:e.operationTime}))}},t.updateSessionFromResponse=function(e,t){if(t.$clusterTime&&(0,m._advanceClusterTime)(e,t.$clusterTime),t.operationTime&&e&&e.supports.causalConsistency&&e.advanceOperationTime(t.operationTime),t.recoveryToken&&e&&e.inTransaction()&&(e.transaction._recoveryToken=t.recoveryToken),e?.[C]&&null==e[A]){const r=t.cursor?.atClusterTime||t.atClusterTime;r&&(e[A]=r)}}},649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatSort=void 0;const n=r(4947);function i(e=1){const t=`${e}`.toLowerCase();if("object"==typeof(r=e)&&null!=r&&"$meta"in r&&"string"==typeof r.$meta)return e;var r;switch(t){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new n.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(e)}`)}}t.formatSort=function(e,t){if(null!=e){if("string"==typeof e)return new Map([[e,i(t)]]);if("object"!=typeof e)throw new n.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(e)} Sort must be a valid object`);if(!Array.isArray(e))return(r=e)instanceof Map&&r.size>0?function(e){const t=Array.from(e).map((([e,t])=>[`${e}`,i(t)]));return new Map(t)}(e):Object.keys(e).length?function(e){const t=Object.entries(e).map((([e,t])=>[`${e}`,i(t)]));return new Map(t)}(e):void 0;var r,o;if(e.length)return function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?function(e){const t=e.map((([e,t])=>[`${e}`,i(t)]));return new Map(t)}(e):function(e){if(Array.isArray(e)&&2===e.length)try{return i(e[1]),!0}catch(e){return!1}return!1}(e)?(o=e,new Map([[`${o[0]}`,i([o[1]])]])):function(e){const t=e.map((e=>[`${e}`,1]));return new Map(t)}(e)}}},6204:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransactionCommand=t.Transaction=t.TxnState=void 0;const n=r(4947),i=r(3389),o=r(1228),s=r(4620);t.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"});const a={[t.TxnState.NO_TRANSACTION]:[t.TxnState.NO_TRANSACTION,t.TxnState.STARTING_TRANSACTION],[t.TxnState.STARTING_TRANSACTION]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_IN_PROGRESS]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_COMMITTED]:[t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_ABORTED]:[t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_COMMITTED_EMPTY]:[t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.NO_TRANSACTION]},u=new Set([t.TxnState.STARTING_TRANSACTION,t.TxnState.TRANSACTION_IN_PROGRESS]),c=new Set([t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED]);t.Transaction=class{constructor(e){e=e??{},this.state=t.TxnState.NO_TRANSACTION,this.options={};const r=s.WriteConcern.fromOptions(e);if(r){if(0===r.w)throw new n.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=r}e.readConcern&&(this.options.readConcern=i.ReadConcern.fromOptions(e)),e.readPreference&&(this.options.readPreference=o.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===t.TxnState.STARTING_TRANSACTION}get isActive(){return u.has(this.state)}get isCommitted(){return c.has(this.state)}transition(e){const r=a[this.state];if(r&&r.includes(e))return this.state=e,void(this.state!==t.TxnState.NO_TRANSACTION&&this.state!==t.TxnState.STARTING_TRANSACTION&&this.state!==t.TxnState.TRANSACTION_ABORTED||this.unpinServer());throw new n.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${e}]`)}pinServer(e){this.isActive&&(this._pinnedServer=e)}unpinServer(){this._pinnedServer=void 0}},t.isTransactionCommand=function(e){return!(!e.commitTransaction&&!e.abortTransaction)}},2229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesParentDomain=t.parseUnsignedInteger=t.parseInteger=t.compareObjectId=t.getMongoDBClientEncryption=t.commandSupportsReadConcern=t.shuffle=t.supportsRetryableWrites=t.enumToString=t.emitWarningOnce=t.emitWarning=t.MONGODB_WARNING_CODE=t.DEFAULT_PK_FACTORY=t.HostAddress=t.BufferPool=t.List=t.deepCopy=t.isRecord=t.setDifference=t.isHello=t.isSuperset=t.resolveOptions=t.hasAtomicOperators=t.calculateDurationInMs=t.now=t.makeStateMachine=t.errorStrictEqual=t.arrayStrictEqual=t.eachAsync=t.maxWireVersion=t.uuidV4=t.databaseNamespace=t.maybeCallback=t.makeCounter=t.MongoDBCollectionNamespace=t.MongoDBNamespace=t.ns=t.getTopology=t.decorateWithExplain=t.decorateWithReadConcern=t.decorateWithCollation=t.isPromiseLike=t.applyRetryableWrites=t.filterOptions=t.mergeOptions=t.isObject=t.normalizeHintField=t.checkCollectionName=t.hostMatchesWildcards=t.ByteUtils=void 0,t.request=void 0;const n=r(4770),i=r(2615),o=r(7360),s=r(7360),a=r(9064),u=r(3496),c=r(5006),l=r(4947),d=r(3389),h=r(1228),p=r(5896),f=r(4620);t.ByteUtils={toLocalBufferType:e=>Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength),equals:(e,r)=>t.ByteUtils.toLocalBufferType(e).equals(r),compare:(e,r)=>t.ByteUtils.toLocalBufferType(e).compare(r),toBase64:e=>t.ByteUtils.toLocalBufferType(e).toString("base64")},t.hostMatchesWildcards=function(e,t){for(const r of t)if(e===r||r.startsWith("*.")&&e?.endsWith(r.substring(2,r.length))||r.startsWith("*/")&&e?.endsWith(r.substring(2,r.length)))return!0;return!1},t.checkCollectionName=function(e){if("string"!=typeof e)throw new l.MongoInvalidArgumentError("Collection name must be a String");if(!e||-1!==e.indexOf(".."))throw new l.MongoInvalidArgumentError("Collection names cannot be empty");if(-1!==e.indexOf("$")&&null==e.match(/((^\$cmd)|(oplog\.\$main))/))throw new l.MongoInvalidArgumentError("Collection names must not contain '$'");if(null!=e.match(/^\.|\.$/))throw new l.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(-1!==e.indexOf("\0"))throw new l.MongoInvalidArgumentError("Collection names cannot contain a null character")},t.normalizeHintField=function(e){let t;if("string"==typeof e)t=e;else if(Array.isArray(e))t={},e.forEach((e=>{t[e]=1}));else if(null!=e&&"object"==typeof e){t={};for(const r in e)t[r]=e[r]}return t};const m=e=>Object.prototype.toString.call(e);function g(e){return"[object Object]"===m(e)}function E(e){if("topology"in e&&e.topology)return e.topology;if("client"in e&&e.client.topology)return e.client.topology;throw new l.MongoNotConnectedError("MongoClient must be connected to perform this operation")}t.isObject=g,t.mergeOptions=function(e,t){return{...e,...t}},t.filterOptions=function(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r},t.applyRetryableWrites=function(e,t){return t&&t.s.options?.retryWrites&&(e.retryWrites=!0),e},t.isPromiseLike=function(e){return!!e&&"function"==typeof e.then},t.decorateWithCollation=function(e,t,r){const n=E(t).capabilities;if(r.collation&&"object"==typeof r.collation){if(!n||!n.commandsTakeCollation)throw new l.MongoCompatibilityError("Current topology does not support collation");e.collation=r.collation}},t.decorateWithReadConcern=function(e,t,r){if(r&&r.session&&r.session.inTransaction())return;const n=Object.assign({},e.readConcern||{});t.s.readConcern&&Object.assign(n,t.s.readConcern),Object.keys(n).length>0&&Object.assign(e,{readConcern:n})},t.decorateWithExplain=function(e,t){return e.explain?e:{explain:e,verbosity:t.verbosity}},t.getTopology=E,t.ns=function(e){return y.fromString(e)};class y{constructor(e,t){this.db=e,this.collection=t,this.collection=""===t?void 0:t}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(e){return new v(this.db,e)}static fromString(e){if("string"!=typeof e||""===e)throw new l.MongoRuntimeError(`Cannot parse namespace from "${e}"`);const[t,...r]=e.split("."),n=r.join(".");return new y(t,""===n?void 0:n)}}t.MongoDBNamespace=y;class v extends y{constructor(e,t){super(e,t),this.collection=t}}function A(){const e=process.hrtime();return Math.floor(1e3*e[0]+e[1]/1e6)}function C(e,t){e=Array.isArray(e)?new Set(e):e,t=Array.isArray(t)?new Set(t):t;for(const r of t)if(!e.has(r))return!1;return!0}t.MongoDBCollectionNamespace=v,t.makeCounter=function*(e=0){let t=e;for(;;){const e=t;t+=1,yield e}},t.maybeCallback=function(e,t){const r=e();if(null==t)return r;r.then((e=>t(void 0,e)),(e=>t(e)))},t.databaseNamespace=function(e){return e.split(".")[0]},t.uuidV4=function(){const e=n.randomBytes(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e},t.maxWireVersion=function(e){if(e){if(e.loadBalanced)return u.MAX_SUPPORTED_WIRE_VERSION;if(e.hello)return e.hello.maxWireVersion;if("lastHello"in e&&"function"==typeof e.lastHello){const t=e.lastHello();if(t)return t.maxWireVersion}if(e.description&&"maxWireVersion"in e.description&&null!=e.description.maxWireVersion)return e.description.maxWireVersion}return 0},t.eachAsync=function(e,t,r){e=e||[];let n=0,i=0;for(n=0;n<e.length;++n)i++,t(e[n],o);function o(t){i--,t?r(t):n===e.length&&i<=0&&r()}0!==i||r()},t.arrayStrictEqual=function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length===t.length&&e.every(((e,r)=>e===t[r]))},t.errorStrictEqual=function(e,t){return e===t||(e&&t?!(null==e&&null!=t||null!=e&&null==t)&&e.constructor.name===t.constructor.name&&e.message===t.message:e===t)},t.makeStateMachine=function(e){return function(t,r){const n=e[t.s.state];if(n&&n.indexOf(r)<0)throw new l.MongoRuntimeError(`illegal state transition from [${t.s.state}] => [${r}], allowed: [${n}]`);t.emit("stateChanged",t.s.state,r),t.s.state=r}},t.now=A,t.calculateDurationInMs=function(e){if("number"!=typeof e)throw new l.MongoInvalidArgumentError("Numeric value required to calculate duration");const t=A()-e;return t<0?0:t},t.hasAtomicOperators=function e(t){if(Array.isArray(t)){for(const r of t)if(e(r))return!0;return!1}const r=Object.keys(t);return r.length>0&&"$"===r[0][0]},t.resolveOptions=function(e,t){const r=Object.assign({},t,(0,a.resolveBSONOptions)(t,e)),n=t?.session;if(!n?.inTransaction()){const n=d.ReadConcern.fromOptions(t)??e?.readConcern;n&&(r.readConcern=n);const i=f.WriteConcern.fromOptions(t)??e?.writeConcern;i&&(r.writeConcern=i)}const i=h.ReadPreference.fromOptions(t)??e?.readPreference;return i&&(r.readPreference=i),r},t.isSuperset=C,t.isHello=function(e){return!(!e[c.LEGACY_HELLO_COMMAND]&&!e.hello)},t.setDifference=function(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r};function b(e,t=void 0){if(!g(e))return!1;const r=e.constructor;if(r&&r.prototype){if(!g(r.prototype))return!1;if(n=r.prototype,i="isPrototypeOf",!Object.prototype.hasOwnProperty.call(n,i))return!1}var n,i;return!t||C(Object.keys(e),t)}t.isRecord=b,t.deepCopy=function e(t){if(null==t)return t;if(Array.isArray(t))return t.map((t=>e(t)));if(b(t)){const r={};for(const n in t)r[n]=e(t[n]);return r}const r=t.constructor;if(r)switch(r.name.toLowerCase()){case"date":return new r(Number(t));case"map":return new Map(t);case"set":return new Set(t);case"buffer":return Buffer.from(t)}return t};class S{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(const e of this.nodes())yield e.value}*nodes(){let e=this.head.next;for(;e!==this.head;){const{next:t}=e;yield e,e=t}}push(e){this.count+=1;const t={next:this.head,prev:this.head.prev,value:e};this.head.prev.next=t,this.head.prev=t}pushMany(e){for(const t of e)this.push(t)}unshift(e){this.count+=1;const t={next:this.head.next,prev:this.head,value:e};this.head.next.prev=t,this.head.next=t}remove(e){if(e===this.head||0===this.length)return null;this.count-=1;const t=e.prev,r=e.next;return t.next=r,r.prev=t,e.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(e){for(const t of this.nodes())e(t.value)&&this.remove(t)}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=S,t.BufferPool=class{constructor(){this.buffers=new S,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;const e=this.buffers.first();if(null!=e&&e.byteLength>=4)return e.readInt32LE(0);const t=this.read(4),r=t.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(t),r}read(e){if("number"!=typeof e||e<0)throw new l.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(e>this.totalByteLength)return Buffer.alloc(0);const t=Buffer.allocUnsafe(e);for(let r=0;r<e;){const n=this.buffers.shift();if(null==n)break;const i=e-r,o=Math.min(i,n.byteLength),s=n.subarray(0,o);t.set(s,r),r+=o,this.totalByteLength-=o,o<n.byteLength&&this.buffers.unshift(n.subarray(o))}return t}};class w{constructor(e){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const t=e.split(" ").join("%20");if(t.endsWith(".sock"))return void(this.socketPath=decodeURIComponent(t));const r=`iLoveJS://${t}`;let n;try{n=new s.URL(r)}catch(e){const r=new l.MongoRuntimeError(`Unable to parse ${t} with URL`);throw r.cause=e,r}const i=n.hostname,o=n.port;let a=decodeURIComponent(i).toLowerCase();if(a.startsWith("[")&&a.endsWith("]")&&(this.isIPv6=!0,a=a.substring(1,i.length-1)),this.host=a.toLowerCase(),this.port="number"==typeof o?o:"string"==typeof o&&""!==o?Number.parseInt(o,10):27017,0===this.port)throw new l.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"string"==typeof this.host?this.isIPv6?`[${this.host}]:${this.port}`:`${this.host}:${this.port}`:`${this.socketPath}`}static fromString(e){return new w(e)}static fromHostPort(e,t){return e.includes(":")&&(e=`[${e}]`),w.fromString(`${e}:${t}`)}static fromSrvRecord({name:e,port:t}){return w.fromHostPort(e,t)}toHostPort(){return this.socketPath?{host:this.socketPath,port:0}:{host:this.host??"",port:this.port??0}}}function O(e){return process.emitWarning(e,{code:t.MONGODB_WARNING_CODE})}t.HostAddress=w,t.DEFAULT_PK_FACTORY={createPk:()=>new a.ObjectId},t.MONGODB_WARNING_CODE="MONGODB DRIVER",t.emitWarning=O;const _=new Set;function x(e){if("number"==typeof e)return Math.trunc(e);const t=Number.parseInt(String(e),10);return Number.isNaN(t)?null:t}t.emitWarningOnce=function(e){if(!_.has(e))return _.add(e),O(e)},t.enumToString=function(e){return Object.values(e).join(", ")},t.supportsRetryableWrites=function(e){return!!e&&(!!e.loadBalanced||null!=e.description.logicalSessionTimeoutMinutes&&e.description.type!==p.ServerType.Standalone)},t.shuffle=function(e,t=0){const r=Array.from(e);if(t>r.length)throw new l.MongoRuntimeError("Limit must be less than the number of items");let n=r.length;const i=t%r.length==0?1:r.length-t;for(;n>i;){const e=Math.floor(Math.random()*n);n-=1;const t=r[n];r[n]=r[e],r[e]=t}return t%r.length==0?r:r.slice(i)},t.commandSupportsReadConcern=function(e,t){return!!(e.aggregate||e.count||e.distinct||e.find||e.geoNear)||!(!(e.mapReduce&&t&&t.out)||1!==t.out.inline&&"inline"!==t.out)},t.getMongoDBClientEncryption=function(){let e=null;if("string"==typeof process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE&&process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE.length>0)try{e=r(6007)(process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE)}catch{}else try{e=r(4529)}catch{}return e},t.compareObjectId=function(e,r){return null==e&&null==r?0:null==e?-1:null==r?1:t.ByteUtils.compare(e.id,r.id)},t.parseInteger=x,t.parseUnsignedInteger=function(e){const t=x(e);return null!=t&&t>=0?t:null},t.matchesParentDomain=function(e,t){const r=e.endsWith(".")?e.slice(0,e.length-1):e,n=t.endsWith(".")?t.slice(0,t.length-1):t,i=/^.*?\./,o=`.${r.replace(i,"")}`,s=`.${n.replace(i,"")}`;return o.endsWith(s)},t.request=async function(e,t={}){return new Promise(((r,n)=>{const s={method:"GET",timeout:1e4,json:!0,...o.parse(e),...t},a=i.request(s,(e=>{e.setEncoding("utf8");let i="";e.on("data",(e=>{i+=e})),e.once("end",(()=>{if(!1!==t.json)try{const e=JSON.parse(i);r(e)}catch{n(new l.MongoRuntimeError(`Invalid JSON response: "${i}"`))}else r(i)}))}));a.once("timeout",(()=>a.destroy(new l.MongoNetworkTimeoutError(`Network request to ${e} timed out after ${t.timeout} ms`)))),a.once("error",(e=>n(e))),a.end()}))}},4620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteConcern=t.WRITE_CONCERN_KEYS=void 0,t.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class r{constructor(e,t,r,n){null!=e&&(Number.isNaN(Number(e))?this.w=e:this.w=Number(e)),null!=t&&(this.wtimeoutMS=this.wtimeout=t),null!=r&&(this.journal=this.j=r),null!=n&&(this.journal=this.j=!!n)}static apply(e,t){const r={};return null!=t.w&&(r.w=t.w),null!=t.wtimeoutMS&&(r.wtimeout=t.wtimeoutMS),null!=t.journal&&(r.j=t.j),e.writeConcern=r,e}static fromOptions(e,t){if(null==e)return;let n;t=t??{},n="string"==typeof e||"number"==typeof e?{w:e}:e instanceof r?e:e.writeConcern;const i=t instanceof r?t:t.writeConcern,{w:o,wtimeout:s,j:a,fsync:u,journal:c,wtimeoutMS:l}={...i,...n};return null!=o||null!=s||null!=l||null!=a||null!=c||null!=u?new r(o,s??l,a??c,u):void 0}}t.WriteConcern=r},6007:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=6007,e.exports=t},1378:e=>{var t=1e3,r=60*t,n=60*r,i=24*n;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var a,u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&isFinite(e))return s.long?(a=e,(u=Math.abs(a))>=i?o(a,u,i,"day"):u>=n?o(a,u,n,"hour"):u>=r?o(a,u,r,"minute"):u>=t?o(a,u,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))r.call(o,c)&&(a[c]=o[c]);if(t){s=t(o);for(var l=0;l<s.length;l++)n.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},8262:(e,t,r)=>{"use strict";var n=r(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},3980:(e,t,r)=>{e.exports=r(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2967:(e,t,r)=>{"use strict";var n=r(9497),i=r(7320),o=r(2941);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(s(227));var a=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,f={},m={};function g(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){E[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];E[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){E[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){E[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){E[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){E[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){E[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){E[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){E[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function A(e,t,r,n){var i=E.hasOwnProperty(t)?E[t]:null;(null!==i?0===i.type:!n&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!p.call(m,e)||!p.call(f,e)&&(h.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);E[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);E[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);E[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){E[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),E.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){E[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=60103,S=60106,w=60107,O=60108,_=60114,x=60109,D=60110,T=60112,B=60113,I=60120,F=60115,R=60116,P=60121,k=60128,N=60129,M=60130,L=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;b=j("react.element"),S=j("react.portal"),w=j("react.fragment"),O=j("react.strict_mode"),_=j("react.profiler"),x=j("react.provider"),D=j("react.context"),T=j("react.forward_ref"),B=j("react.suspense"),I=j("react.suspense_list"),F=j("react.memo"),R=j("react.lazy"),P=j("react.block"),j("react.scope"),k=j("react.opaque.id"),N=j("react.debug_trace_mode"),M=j("react.offscreen"),L=j("react.legacy_hidden")}var U,V="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function $(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function H(e,t){if(!e||W)return"";W=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=n.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a])return"\n"+i[s].replace(" at new "," at ")}while(1<=s&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?$(e):""}function G(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 22:return H(e.type._render,!1);case 1:return H(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case S:return"Portal";case _:return"Profiler";case O:return"StrictMode";case B:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case F:return q(e.type);case P:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Y(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var r=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=K(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&A(e,"checked",t,!1)}function re(e,t){te(e,t);var r=K(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,r):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ne(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ie(e,t,r){"number"===t&&Z(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function se(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+K(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(s(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(s(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ce(e,t){var r=K(t.value),n=K(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function Ee(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];function Ae(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ce(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=Ae(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(ye).forEach((function(e){ve.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var be=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,xe=null,De=null;function Te(e){if(e=ti(e)){if("function"!=typeof _e)throw Error(s(280));var t=e.stateNode;t&&(t=ni(t),_e(e.stateNode,e.type,t))}}function Be(e){xe?De?De.push(e):De=[e]:xe=e}function Ie(){if(xe){var e=xe,t=De;if(De=xe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Fe(e,t){return e(t)}function Re(e,t,r,n,i){return e(t,r,n,i)}function Pe(){}var ke=Fe,Ne=!1,Me=!1;function Le(){null===xe&&null===De||(Pe(),Ie())}function je(e,t){var r=e.stateNode;if(null===r)return null;var n=ni(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(s(231,t,typeof r));return r}var Ue=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(me){Ue=!1}function ze(e,t,r,n,i,o,s,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var $e=!1,We=null,He=!1,Ge=null,qe={onError:function(e){$e=!0,We=e}};function Ke(e,t,r,n,i,o,s,a,u){$e=!1,We=null,ze.apply(qe,arguments)}function Ye(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(s(188))}function Ze(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var Je,et,tt,rt,nt=!1,it=[],ot=null,st=null,at=null,ut=new Map,ct=new Map,lt=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:i,targetContainers:[n]}}function pt(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function ft(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,r,n,i,o),null!==t&&null!==(t=ti(t))&&et(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=ei(e.target);if(null!==t){var r=Ye(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){tt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=ti(r))&&et(t),e.blockedOn=r,!1;t.shift()}return!0}function Et(e,t,r){gt(e)&&r.delete(t)}function yt(){for(nt=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&Je(e);break}for(var t=e.targetContainers;0<t.length;){var r=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&it.shift()}null!==ot&>(ot)&&(ot=null),null!==st&>(st)&&(st=null),null!==at&>(at)&&(at=null),ut.forEach(Et),ct.forEach(Et)}function vt(e,t){e.blockedOn===t&&(e.blockedOn=null,nt||(nt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yt)))}function At(e){function t(t){return vt(t,e)}if(0<it.length){vt(it[0],e);for(var r=1;r<it.length;r++){var n=it[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==ot&&vt(ot,e),null!==st&&vt(st,e),null!==at&&vt(at,e),ut.forEach(t),ct.forEach(t),r=0;r<lt.length;r++)(n=lt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<lt.length&&null===(r=lt[0]).blockedOn;)mt(r),null===r.blockedOn&<.shift()}function Ct(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var bt={animationend:Ct("Animation","AnimationEnd"),animationiteration:Ct("Animation","AnimationIteration"),animationstart:Ct("Animation","AnimationStart"),transitionend:Ct("Transition","TransitionEnd")},St={},wt={};function Ot(e){if(St[e])return St[e];if(!bt[e])return e;var t,r=bt[e];for(t in r)if(r.hasOwnProperty(t)&&t in wt)return St[e]=r[t];return e}d&&(wt=document.createElement("div").style,"AnimationEvent"in window||(delete bt.animationend.animation,delete bt.animationiteration.animation,delete bt.animationstart.animation),"TransitionEvent"in window||delete bt.transitionend.transition);var _t=Ot("animationend"),xt=Ot("animationiteration"),Dt=Ot("animationstart"),Tt=Ot("transitionend"),Bt=new Map,It=new Map,Ft=["abort","abort",_t,"animationEnd",xt,"animationIteration",Dt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(n,t),Bt.set(n,i),c(i,[n])}}(0,o.unstable_now)();var Pt=8;function kt(e){if(0!=(1&e))return Pt=15,1;if(0!=(2&e))return Pt=14,2;if(0!=(4&e))return Pt=13,4;var t=24&e;return 0!==t?(Pt=12,t):0!=(32&e)?(Pt=11,32):0!=(t=192&e)?(Pt=10,t):0!=(256&e)?(Pt=9,256):0!=(t=3584&e)?(Pt=8,t):0!=(4096&e)?(Pt=7,4096):0!=(t=4186112&e)?(Pt=6,t):0!=(t=62914560&e)?(Pt=5,t):67108864&e?(Pt=4,67108864):0!=(134217728&e)?(Pt=3,134217728):0!=(t=805306368&e)?(Pt=2,t):0!=(1073741824&e)?(Pt=1,1073741824):(Pt=8,e)}function Nt(e,t){var r=e.pendingLanes;if(0===r)return Pt=0;var n=0,i=0,o=e.expiredLanes,s=e.suspendedLanes,a=e.pingedLanes;if(0!==o)n=o,i=Pt=15;else if(0!=(o=134217727&r)){var u=o&~s;0!==u?(n=kt(u),i=Pt):0!=(a&=o)&&(n=kt(a),i=Pt)}else 0!=(o=r&~s)?(n=kt(o),i=Pt):0!==a&&(n=kt(a),i=Pt);if(0===n)return 0;if(n=r&((0>(n=31-zt(n))?0:1<<n)<<1)-1,0!==t&&t!==n&&0==(t&s)){if(kt(t),i<=Pt)return t;Pt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-zt(t)),n|=e[r],t&=~i;return n}function Mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Lt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?Lt(10,t):e;case 10:return 0===(e=jt(192&~t))?Lt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&0===(e=jt(4186112&~t))&&(e=512),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function jt(e){return e&-e}function Ut(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Vt(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,(e=e.eventTimes)[t=31-zt(t)]=r}var zt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Wt|0)|0},$t=Math.log,Wt=Math.LN2,Ht=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,qt=!0;function Kt(e,t,r,n){Ne||Pe();var i=Qt,o=Ne;Ne=!0;try{Re(i,e,t,r,n)}finally{(Ne=o)||Le()}}function Yt(e,t,r,n){Gt(Ht,Qt.bind(null,e,t,r,n))}function Qt(e,t,r,n){var i;if(qt)if((i=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=ht(null,e,t,r,n),it.push(e);else{var o=Xt(e,t,r,n);if(null===o)i&&pt(e,n);else{if(i){if(-1<dt.indexOf(e))return e=ht(o,e,t,r,n),void it.push(e);if(function(e,t,r,n,i){switch(t){case"focusin":return ot=ft(ot,e,t,r,n,i),!0;case"dragenter":return st=ft(st,e,t,r,n,i),!0;case"mouseover":return at=ft(at,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,ft(ut.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,ft(ct.get(o)||null,e,t,r,n,i)),!0}return!1}(o,e,t,r,n))return;pt(e,n)}Rn(e,t,n,null,r)}}}function Xt(e,t,r,n){var i=Oe(n);if(null!==(i=ei(i))){var o=Ye(i);if(null===o)i=null;else{var s=o.tag;if(13===s){if(null!==(i=Qe(o)))return i;i=null}else if(3===s){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Rn(e,t,n,i,r),null}var Zt=null,Jt=null,er=null;function tr(){if(er)return er;var e,t,r=Jt,n=r.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var s=n-e;for(t=1;t<=s&&r[n-t]===i[o-t];t++);return er=i.slice(e,1<t?1-t:void 0)}function rr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nr(){return!0}function ir(){return!1}function or(e){function t(t,r,n,i,o){for(var s in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nr:ir,this.isPropagationStopped=ir,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}var sr,ar,ur,cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=or(cr),dr=i({},cr,{view:0,detail:0}),hr=or(dr),pr=i({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&"mousemove"===e.type?(sr=e.screenX-ur.screenX,ar=e.screenY-ur.screenY):ar=sr=0,ur=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),fr=or(pr),mr=or(i({},pr,{dataTransfer:0})),gr=or(i({},dr,{relatedTarget:0})),Er=or(i({},cr,{animationName:0,elapsedTime:0,pseudoElement:0})),yr=i({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vr=or(yr),Ar=or(i({},cr,{data:0})),Cr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},br={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Or(){return wr}var _r=i({},dr,{key:function(e){if(e.key){var t=Cr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?br[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(e){return"keypress"===e.type?rr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),xr=or(_r),Dr=or(i({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tr=or(i({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or})),Br=or(i({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ir=i({},pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fr=or(Ir),Rr=[9,13,27,32],Pr=d&&"CompositionEvent"in window,kr=null;d&&"documentMode"in document&&(kr=document.documentMode);var Nr=d&&"TextEvent"in window&&!kr,Mr=d&&(!Pr||kr&&8<kr&&11>=kr),Lr=String.fromCharCode(32),jr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zr=!1,$r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$r[e.type]:"textarea"===t}function Hr(e,t,r,n){Be(n),0<(t=kn(t,"onChange")).length&&(r=new lr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,qr=null;function Kr(e){xn(e,0)}function Yr(e){if(X(ri(e)))return e}function Qr(e,t){if("change"===e)return t}var Xr=!1;if(d){var Zr;if(d){var Jr="oninput"in document;if(!Jr){var en=document.createElement("div");en.setAttribute("oninput","return;"),Jr="function"==typeof en.oninput}Zr=Jr}else Zr=!1;Xr=Zr&&(!document.documentMode||9<document.documentMode)}function tn(){Gr&&(Gr.detachEvent("onpropertychange",rn),qr=Gr=null)}function rn(e){if("value"===e.propertyName&&Yr(qr)){var t=[];if(Hr(t,qr,e,Oe(e)),e=Kr,Ne)e(t);else{Ne=!0;try{Fe(e,t)}finally{Ne=!1,Le()}}}}function nn(e,t,r){"focusin"===e?(tn(),qr=r,(Gr=t).attachEvent("onpropertychange",rn)):"focusout"===e&&tn()}function on(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yr(qr)}function sn(e,t){if("click"===e)return Yr(t)}function an(e,t){if("input"===e||"change"===e)return Yr(t)}var un="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cn=Object.prototype.hasOwnProperty;function ln(e,t){if(un(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!cn.call(t,r[n])||!un(e[r[n]],t[r[n]]))return!1;return!0}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var r,n=dn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dn(n)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Z((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=d&&"documentMode"in document&&11>=document.documentMode,En=null,yn=null,vn=null,An=!1;function Cn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;An||null==En||En!==Z(n)||(n="selectionStart"in(n=En)&&mn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},vn&&ln(vn,n)||(vn=n,0<(n=kn(yn,"onSelect")).length&&(t=new lr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=En)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(Ft,2);for(var bn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sn=0;Sn<bn.length;Sn++)It.set(bn[Sn],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),On=new Set("cancel close invalid load scroll toggle".split(" ").concat(wn));function _n(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,o,a,u,c){if(Ke.apply(this,arguments),$e){if(!$e)throw Error(s(198));var l=We;$e=!1,We=null,He||(He=!0,Ge=l)}}(n,t,void 0,e),e.currentTarget=null}function xn(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==o&&i.isPropagationStopped())break e;_n(i,a,c),o=u}else for(s=0;s<n.length;s++){if(u=(a=n[s]).instance,c=a.currentTarget,a=a.listener,u!==o&&i.isPropagationStopped())break e;_n(i,a,c),o=u}}}if(He)throw e=Ge,He=!1,Ge=null,e}function Dn(e,t){var r=ii(t),n=e+"__bubble";r.has(n)||(Fn(t,e,2,!1),r.add(n))}var Tn="_reactListening"+Math.random().toString(36).slice(2);function Bn(e){e[Tn]||(e[Tn]=!0,a.forEach((function(t){On.has(t)||In(t,!1,e,null),In(t,!0,e,null)})))}function In(e,t,r,n){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=r;if("selectionchange"===e&&9!==r.nodeType&&(o=r.ownerDocument),null!==n&&!t&&On.has(e)){if("scroll"!==e)return;i|=2,o=n}var s=ii(o),a=e+"__"+(t?"capture":"bubble");s.has(a)||(t&&(i|=4),Fn(o,e,i,t),s.add(a))}function Fn(e,t,r,n){var i=It.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Yt;break;default:i=Qt}r=i.bind(null,t,r,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Rn(e,t,r,n,i){var o=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var s=n.tag;if(3===s||4===s){var a=n.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=n.return;null!==s;){var u=s.tag;if((3===u||4===u)&&((u=s.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=ei(a)))return;if(5===(u=s.tag)||6===u){n=o=s;continue e}a=a.parentNode}}n=n.return}!function(e,t,r){if(Me)return e();Me=!0;try{return ke(e,t,r)}finally{Me=!1,Le()}}((function(){var n=o,i=Oe(r),s=[];e:{var a=Bt.get(e);if(void 0!==a){var u=lr,c=e;switch(e){case"keypress":if(0===rr(r))break e;case"keydown":case"keyup":u=xr;break;case"focusin":c="focus",u=gr;break;case"focusout":c="blur",u=gr;break;case"beforeblur":case"afterblur":u=gr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tr;break;case _t:case xt:case Dt:u=Er;break;case Tt:u=Br;break;case"scroll":u=hr;break;case"wheel":u=Fr;break;case"copy":case"cut":case"paste":u=vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Dr}var l=0!=(4&t),d=!l&&"scroll"===e,h=l?null!==a?a+"Capture":null:a;l=[];for(var p,f=n;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&null!=(m=je(f,h))&&l.push(Pn(f,m,p))),d)break;f=f.return}0<l.length&&(a=new u(a,c,null,r,i),s.push({event:a,listeners:l}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=r.relatedTarget||r.fromElement)||!ei(c)&&!c[Zn])&&(u||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,u?(u=n,null!==(c=(c=r.relatedTarget||r.toElement)?ei(c):null)&&(c!==(d=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=n),u!==c)){if(l=fr,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(l=Dr,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==u?a:ri(u),p=null==c?a:ri(c),(a=new l(m,f+"leave",u,r,i)).target=d,a.relatedTarget=p,m=null,ei(i)===n&&((l=new l(h,f+"enter",c,r,i)).target=p,l.relatedTarget=d,m=l),d=m,u&&c)e:{for(h=c,f=0,p=l=u;p;p=Nn(p))f++;for(p=0,m=h;m;m=Nn(m))p++;for(;0<f-p;)l=Nn(l),f--;for(;0<p-f;)h=Nn(h),p--;for(;f--;){if(l===h||null!==h&&l===h.alternate)break e;l=Nn(l),h=Nn(h)}l=null}else l=null;null!==u&&Mn(s,a,u,l,!1),null!==c&&null!==d&&Mn(s,d,c,l,!0)}if("select"===(u=(a=n?ri(n):window).nodeName&&a.nodeName.toLowerCase())||"input"===u&&"file"===a.type)var g=Qr;else if(Wr(a))if(Xr)g=an;else{g=on;var E=nn}else(u=a.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(g=sn);switch(g&&(g=g(e,n))?Hr(s,g,r,i):(E&&E(e,a,n),"focusout"===e&&(E=a._wrapperState)&&E.controlled&&"number"===a.type&&ie(a,"number",a.value)),E=n?ri(n):window,e){case"focusin":(Wr(E)||"true"===E.contentEditable)&&(En=E,yn=n,vn=null);break;case"focusout":vn=yn=En=null;break;case"mousedown":An=!0;break;case"contextmenu":case"mouseup":case"dragend":An=!1,Cn(s,r,i);break;case"selectionchange":if(gn)break;case"keydown":case"keyup":Cn(s,r,i)}var y;if(Pr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else zr?Ur(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Mr&&"ko"!==r.locale&&(zr||"onCompositionStart"!==v?"onCompositionEnd"===v&&zr&&(y=tr()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,zr=!0)),0<(E=kn(n,v)).length&&(v=new Ar(v,e,null,r,i),s.push({event:v,listeners:E}),(y||null!==(y=Vr(r)))&&(v.data=y))),(y=Nr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(jr=!0,Lr);case"textInput":return(e=t.data)===Lr&&jr?null:e;default:return null}}(e,r):function(e,t){if(zr)return"compositionend"===e||!Pr&&Ur(e,t)?(e=tr(),er=Jt=Zt=null,zr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=kn(n,"onBeforeInput")).length&&(i=new Ar("onBeforeInput","beforeinput",null,r,i),s.push({event:i,listeners:n}),i.data=y)}xn(s,t)}))}function Pn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function kn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=je(e,r))&&n.unshift(Pn(e,o,i)),null!=(o=je(e,t))&&n.push(Pn(e,o,i))),e=e.return}return n}function Nn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mn(e,t,r,n,i){for(var o=t._reactName,s=[];null!==r&&r!==n;){var a=r,u=a.alternate,c=a.stateNode;if(null!==u&&u===n)break;5===a.tag&&null!==c&&(a=c,i?null!=(u=je(r,o))&&s.unshift(Pn(r,u,a)):i||null!=(u=je(r,o))&&s.push(Pn(r,u,a))),r=r.return}0!==s.length&&e.push({event:t,listeners:s})}function Ln(){}var jn=null,Un=null;function Vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $n="function"==typeof setTimeout?setTimeout:void 0,Wn="function"==typeof clearTimeout?clearTimeout:void 0;function Hn(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Gn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function qn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Kn=0,Yn=Math.random().toString(36).slice(2),Qn="__reactFiber$"+Yn,Xn="__reactProps$"+Yn,Zn="__reactContainer$"+Yn,Jn="__reactEvents$"+Yn;function ei(e){var t=e[Qn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Zn]||r[Qn]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=qn(e);null!==e;){if(r=e[Qn])return r;e=qn(e)}return t}r=(e=r).parentNode}return null}function ti(e){return!(e=e[Qn]||e[Zn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function ni(e){return e[Xn]||null}function ii(e){var t=e[Jn];return void 0===t&&(t=e[Jn]=new Set),t}var oi=[],si=-1;function ai(e){return{current:e}}function ui(e){0>si||(e.current=oi[si],oi[si]=null,si--)}function ci(e,t){si++,oi[si]=e.current,e.current=t}var li={},di=ai(li),hi=ai(!1),pi=li;function fi(e,t){var r=e.type.contextTypes;if(!r)return li;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=e.childContextTypes}function gi(){ui(hi),ui(di)}function Ei(e,t,r){if(di.current!==li)throw Error(s(168));ci(di,t),ci(hi,r)}function yi(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(s(108,q(t)||"Unknown",o));return i({},r,n)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,pi=di.current,ci(di,e),ci(hi,hi.current),!0}function Ai(e,t,r){var n=e.stateNode;if(!n)throw Error(s(169));r?(e=yi(e,t,pi),n.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(di),ci(di,e)):ui(hi),ci(hi,r)}var Ci=null,bi=null,Si=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,Oi=o.unstable_cancelCallback,_i=o.unstable_shouldYield,xi=o.unstable_requestPaint,Di=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Bi=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Fi=o.unstable_NormalPriority,Ri=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,ki={},Ni=void 0!==xi?xi:function(){},Mi=null,Li=null,ji=!1,Ui=Di(),Vi=1e4>Ui?Di:function(){return Di()-Ui};function zi(){switch(Ti()){case Bi:return 99;case Ii:return 98;case Fi:return 97;case Ri:return 96;case Pi:return 95;default:throw Error(s(332))}}function $i(e){switch(e){case 99:return Bi;case 98:return Ii;case 97:return Fi;case 96:return Ri;case 95:return Pi;default:throw Error(s(332))}}function Wi(e,t){return e=$i(e),Si(e,t)}function Hi(e,t,r){return e=$i(e),wi(e,t,r)}function Gi(){if(null!==Li){var e=Li;Li=null,Oi(e)}qi()}function qi(){if(!ji&&null!==Mi){ji=!0;var e=0;try{var t=Mi;Wi(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Mi=null}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),wi(Bi,Gi),t}finally{ji=!1}}}var Ki=C.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var r in t=i({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Qi=ai(null),Xi=null,Zi=null,Ji=null;function eo(){Ji=Zi=Xi=null}function to(e){var t=Qi.current;ui(Qi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function no(e,t){Xi=e,Ji=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ks=!0),e.firstContext=null)}function io(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Xi)throw Error(s(308));Zi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function lo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=s:o=o.next=s,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ho(e,t,r,n){var o=e.updateQueue;oo=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var c=u,l=c.next;c.next=null,null===a?s=l:a.next=l,a=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==a&&(null===h?d.firstBaseUpdate=l:h.next=l,d.lastBaseUpdate=c)}}if(null!==s){for(h=o.baseState,a=0,d=l=c=null;;){u=s.lane;var p=s.eventTime;if((n&u)===u){null!==d&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(u=t,p=r,m.tag){case 1:if("function"==typeof(f=m.payload)){h=f.call(p,h,u);break e}h=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(u="function"==typeof(f=m.payload)?f.call(p,h,u):f))break e;h=i({},h,u);break e;case 2:oo=!0}}null!==s.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[s]:u.push(s))}else p={eventTime:p,lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(l=d=p,c=h):d=d.next=p,a|=u;if(null===(s=s.next)){if(null===(u=o.shared.pending))break;s=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===d&&(c=h),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=d,La|=a,e.lanes=a,e.memoizedState=h}}function po(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(s(191,i));i.call(n)}}}var fo=(new n.Component).refs;function mo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:i({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var go={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=cu(),i=lu(e),o=uo(n,i);o.payload=t,null!=r&&(o.callback=r),co(e,o),du(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=cu(),i=lu(e),o=uo(n,i);o.tag=1,o.payload=t,null!=r&&(o.callback=r),co(e,o),du(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=cu(),n=lu(e),i=uo(r,n);i.tag=2,null!=t&&(i.callback=t),co(e,i),du(e,n,r)}};function Eo(e,t,r,n,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,s):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(i,o))}function yo(e,t,r){var n=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=io(o):(i=mi(t)?pi:di.current,o=(n=null!=(n=t.contextTypes))?fi(e,i):li),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function Ao(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=fo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=io(o):(o=mi(t)?pi:di.current,i.context=fi(e,o)),ho(e,r,i,n),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),ho(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var Co=Array.isArray;function bo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(s(309));var n=r.stateNode}if(!n)throw Error(s(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=n.refs;t===fo&&(t=n.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wo(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags=2,r):n:(t.flags=2,r):r}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,r,n){return null===t||6!==t.tag?((t=Gu(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=i(t,r.props)).ref=bo(e,t,r),n.return=e,n):((n=$u(r.type,r.key,r.props,null,e.mode,n)).ref=bo(e,t,r),n.return=e,n)}function l(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=qu(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Wu(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Gu(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(r=$u(t.type,t.key,t.props,null,e.mode,r)).ref=bo(e,null,t),r.return=e,r;case S:return(t=qu(t,e.mode,r)).return=e,t}if(Co(t)||z(t))return(t=Wu(t,e.mode,r,null)).return=e,t;So(e,t)}return null}function p(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:u(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return r.key===i?r.type===w?d(e,t,r.props.children,n,i):c(e,t,r,n):null;case S:return r.key===i?l(e,t,r,n):null}if(Co(r)||z(r))return null!==i?null:d(e,t,r,n,null);So(e,r)}return null}function f(e,t,r,n,i){if("string"==typeof n||"number"==typeof n)return u(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return e=e.get(null===n.key?r:n.key)||null,n.type===w?d(t,e,n.props.children,i,n.key):c(t,e,n,i);case S:return l(t,e=e.get(null===n.key?r:n.key)||null,n,i)}if(Co(n)||z(n))return d(t,e=e.get(r)||null,n,i,null);So(t,n)}return null}function m(i,s,a,u){for(var c=null,l=null,d=s,m=s=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var E=p(i,d,a[m],u);if(null===E){null===d&&(d=g);break}e&&d&&null===E.alternate&&t(i,d),s=o(E,s,m),null===l?c=E:l.sibling=E,l=E,d=g}if(m===a.length)return r(i,d),c;if(null===d){for(;m<a.length;m++)null!==(d=h(i,a[m],u))&&(s=o(d,s,m),null===l?c=d:l.sibling=d,l=d);return c}for(d=n(i,d);m<a.length;m++)null!==(g=f(d,i,m,a[m],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),s=o(g,s,m),null===l?c=g:l.sibling=g,l=g);return e&&d.forEach((function(e){return t(i,e)})),c}function g(i,a,u,c){var l=z(u);if("function"!=typeof l)throw Error(s(150));if(null==(u=l.call(u)))throw Error(s(151));for(var d=l=null,m=a,g=a=0,E=null,y=u.next();null!==m&&!y.done;g++,y=u.next()){m.index>g?(E=m,m=null):E=m.sibling;var v=p(i,m,y.value,c);if(null===v){null===m&&(m=E);break}e&&m&&null===v.alternate&&t(i,m),a=o(v,a,g),null===d?l=v:d.sibling=v,d=v,m=E}if(y.done)return r(i,m),l;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=h(i,y.value,c))&&(a=o(y,a,g),null===d?l=y:d.sibling=y,d=y);return l}for(m=n(i,m);!y.done;g++,y=u.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),a=o(y,a,g),null===d?l=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),l}return function(e,n,o,u){var c="object"==typeof o&&null!==o&&o.type===w&&null===o.key;c&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case b:e:{for(l=o.key,c=n;null!==c;){if(c.key===l){if(7===c.tag){if(o.type===w){r(e,c.sibling),(n=i(c,o.props.children)).return=e,e=n;break e}}else if(c.elementType===o.type){r(e,c.sibling),(n=i(c,o.props)).ref=bo(e,c,o),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}o.type===w?((n=Wu(o.props.children,e.mode,u,o.key)).return=e,e=n):((u=$u(o.type,o.key,o.props,null,e.mode,u)).ref=bo(e,n,o),u.return=e,e=u)}return a(e);case S:e:{for(c=o.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=i(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=qu(o,e.mode,u)).return=e,e=n}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=i(n,o)).return=e,e=n):(r(e,n),(n=Gu(o,e.mode,u)).return=e,e=n),a(e);if(Co(o))return m(e,n,o,u);if(z(o))return g(e,n,o,u);if(l&&So(e,o),void 0===o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,q(e.type)||"Component"))}return r(e,n)}}var Oo=wo(!0),_o=wo(!1),xo={},Do=ai(xo),To=ai(xo),Bo=ai(xo);function Io(e){if(e===xo)throw Error(s(174));return e}function Fo(e,t){switch(ci(Bo,t),ci(To,e),ci(Do,xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Do),ci(Do,t)}function Ro(){ui(Do),ui(To),ui(Bo)}function Po(e){Io(Bo.current);var t=Io(Do.current),r=pe(t,e.type);t!==r&&(ci(To,e),ci(Do,r))}function ko(e){To.current===e&&(ui(Do),ui(To))}var No=ai(0);function Mo(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lo=null,jo=null,Uo=!1;function Vo(e,t){var r=Uu(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function zo(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function $o(e){if(Uo){var t=jo;if(t){var r=t;if(!zo(e,t)){if(!(t=Gn(r.nextSibling))||!zo(e,t))return e.flags=-1025&e.flags|2,Uo=!1,void(Lo=e);Vo(Lo,r)}Lo=e,jo=Gn(t.firstChild)}else e.flags=-1025&e.flags|2,Uo=!1,Lo=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Lo=e}function Ho(e){if(e!==Lo)return!1;if(!Uo)return Wo(e),Uo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zn(t,e.memoizedProps))for(t=jo;t;)Vo(e,t),t=Gn(t.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){jo=Gn(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}jo=null}}else jo=Lo?Gn(e.stateNode.nextSibling):null;return!0}function Go(){jo=Lo=null,Uo=!1}var qo=[];function Ko(){for(var e=0;e<qo.length;e++)qo[e]._workInProgressVersionPrimary=null;qo.length=0}var Yo=C.ReactCurrentDispatcher,Qo=C.ReactCurrentBatchConfig,Xo=0,Zo=null,Jo=null,es=null,ts=!1,rs=!1;function ns(){throw Error(s(321))}function is(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!un(e[r],t[r]))return!1;return!0}function os(e,t,r,n,i,o){if(Xo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yo.current=null===e||null===e.memoizedState?Is:Fs,e=r(n,i),rs){o=0;do{if(rs=!1,!(25>o))throw Error(s(301));o+=1,es=Jo=null,t.updateQueue=null,Yo.current=Rs,e=r(n,i)}while(rs)}if(Yo.current=Bs,t=null!==Jo&&null!==Jo.next,Xo=0,es=Jo=Zo=null,ts=!1,t)throw Error(s(300));return e}function ss(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===es?Zo.memoizedState=es=e:es=es.next=e,es}function as(){if(null===Jo){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=Jo.next;var t=null===es?Zo.memoizedState:es.next;if(null!==t)es=t,Jo=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Jo=e).memoizedState,baseState:Jo.baseState,baseQueue:Jo.baseQueue,queue:Jo.queue,next:null},null===es?Zo.memoizedState=es=e:es=es.next=e}return es}function us(e,t){return"function"==typeof t?t(e):t}function cs(e){var t=as(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=Jo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(null!==i){i=i.next,n=n.baseState;var u=a=o=null,c=i;do{var l=c.lane;if((Xo&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===e?c.eagerState:e(n,c.action);else{var d={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(a=u=d,o=n):u=u.next=d,Zo.lanes|=l,La|=l}c=c.next}while(null!==c&&c!==i);null===u?o=n:u.next=a,un(n,t.memoizedState)||(ks=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=u,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ls(e){var t=as(),r=t.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);un(o,t.memoizedState)||(ks=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function ds(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===n:(e=e.mutableReadLanes,(e=(Xo&e)===e)&&(t._workInProgressVersionPrimary=n,qo.push(t))),e)return r(t._source);throw qo.push(t),Error(s(350))}function hs(e,t,r,n){var i=Ba;if(null===i)throw Error(s(349));var o=t._getVersion,a=o(t._source),u=Yo.current,c=u.useState((function(){return ds(i,t,r)})),l=c[1],d=c[0];c=es;var h=e.memoizedState,p=h.refs,f=p.getSnapshot,m=h.source;h=h.subscribe;var g=Zo;return e.memoizedState={refs:p,source:t,subscribe:n},u.useEffect((function(){p.getSnapshot=r,p.setSnapshot=l;var e=o(t._source);if(!un(a,e)){e=r(t._source),un(d,e)||(l(e),e=lu(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var n=i.entanglements,s=e;0<s;){var u=31-zt(s),c=1<<u;n[u]|=e,s&=~c}}}),[r,t,n]),u.useEffect((function(){return n(t._source,(function(){var e=p.getSnapshot,r=p.setSnapshot;try{r(e(t._source));var n=lu(g);i.mutableReadLanes|=n&i.pendingLanes}catch(e){r((function(){throw e}))}}))}),[t,n]),un(f,r)&&un(m,t)&&un(h,n)||((e={pending:null,dispatch:null,lastRenderedReducer:us,lastRenderedState:d}).dispatch=l=Ts.bind(null,Zo,e),c.queue=e,c.baseQueue=null,d=ds(i,t,r),c.memoizedState=c.baseState=d),d}function ps(e,t,r){return hs(as(),e,t,r)}function fs(e){var t=ss();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:us,lastRenderedState:e}).dispatch=Ts.bind(null,Zo,e),[t.memoizedState,e]}function ms(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function gs(e){return e={current:e},ss().memoizedState=e}function Es(){return as().memoizedState}function ys(e,t,r,n){var i=ss();Zo.flags|=e,i.memoizedState=ms(1|t,r,void 0,void 0===n?null:n)}function vs(e,t,r,n){var i=as();n=void 0===n?null:n;var o=void 0;if(null!==Jo){var s=Jo.memoizedState;if(o=s.destroy,null!==n&&is(n,s.deps))return void ms(t,r,o,n)}Zo.flags|=e,i.memoizedState=ms(1|t,r,o,n)}function As(e,t){return ys(516,4,e,t)}function Cs(e,t){return vs(516,4,e,t)}function bs(e,t){return vs(4,2,e,t)}function Ss(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ws(e,t,r){return r=null!=r?r.concat([e]):null,vs(4,2,Ss.bind(null,t,e),r)}function Os(){}function _s(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&is(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function xs(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&is(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ds(e,t){var r=zi();Wi(98>r?98:r,(function(){e(!0)})),Wi(97<r?97:r,(function(){var r=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=r}}))}function Ts(e,t,r){var n=cu(),i=lu(e),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(null===s?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===Zo||null!==s&&s===Zo)rs=ts=!0;else{if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=s(a,r);if(o.eagerReducer=s,o.eagerState=u,un(u,a))return}catch(e){}du(e,i,n)}}var Bs={readContext:io,useCallback:ns,useContext:ns,useEffect:ns,useImperativeHandle:ns,useLayoutEffect:ns,useMemo:ns,useReducer:ns,useRef:ns,useState:ns,useDebugValue:ns,useDeferredValue:ns,useTransition:ns,useMutableSource:ns,useOpaqueIdentifier:ns,unstable_isNewReconciler:!1},Is={readContext:io,useCallback:function(e,t){return ss().memoizedState=[e,void 0===t?null:t],e},useContext:io,useEffect:As,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,ys(4,2,Ss.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ys(4,2,e,t)},useMemo:function(e,t){var r=ss();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ss();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ts.bind(null,Zo,e),[n.memoizedState,e]},useRef:gs,useState:fs,useDebugValue:Os,useDeferredValue:function(e){var t=fs(e),r=t[0],n=t[1];return As((function(){var t=Qo.transition;Qo.transition=1;try{n(e)}finally{Qo.transition=t}}),[e]),r},useTransition:function(){var e=fs(!1),t=e[0];return gs(e=Ds.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var n=ss();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},hs(n,e,t,r)},useOpaqueIdentifier:function(){if(Uo){var e=!1,t=function(e){return{$$typeof:k,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+(Kn++).toString(36))),Error(s(355))})),r=fs(t)[1];return 0==(2&Zo.mode)&&(Zo.flags|=516,ms(5,(function(){r("r:"+(Kn++).toString(36))}),void 0,null)),t}return fs(t="r:"+(Kn++).toString(36)),t},unstable_isNewReconciler:!1},Fs={readContext:io,useCallback:_s,useContext:io,useEffect:Cs,useImperativeHandle:ws,useLayoutEffect:bs,useMemo:xs,useReducer:cs,useRef:Es,useState:function(){return cs(us)},useDebugValue:Os,useDeferredValue:function(e){var t=cs(us),r=t[0],n=t[1];return Cs((function(){var t=Qo.transition;Qo.transition=1;try{n(e)}finally{Qo.transition=t}}),[e]),r},useTransition:function(){var e=cs(us)[0];return[Es().current,e]},useMutableSource:ps,useOpaqueIdentifier:function(){return cs(us)[0]},unstable_isNewReconciler:!1},Rs={readContext:io,useCallback:_s,useContext:io,useEffect:Cs,useImperativeHandle:ws,useLayoutEffect:bs,useMemo:xs,useReducer:ls,useRef:Es,useState:function(){return ls(us)},useDebugValue:Os,useDeferredValue:function(e){var t=ls(us),r=t[0],n=t[1];return Cs((function(){var t=Qo.transition;Qo.transition=1;try{n(e)}finally{Qo.transition=t}}),[e]),r},useTransition:function(){var e=ls(us)[0];return[Es().current,e]},useMutableSource:ps,useOpaqueIdentifier:function(){return ls(us)[0]},unstable_isNewReconciler:!1},Ps=C.ReactCurrentOwner,ks=!1;function Ns(e,t,r,n){t.child=null===e?_o(t,null,r,n):Oo(t,e.child,r,n)}function Ms(e,t,r,n,i){r=r.render;var o=t.ref;return no(t,i),n=os(e,t,r,n,o,i),null===e||ks?(t.flags|=1,Ns(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ra(e,t,i))}function Ls(e,t,r,n,i,o){if(null===e){var s=r.type;return"function"!=typeof s||Vu(s)||void 0!==s.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=$u(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,js(e,t,s,n,i,o))}return s=e.child,0==(i&o)&&(i=s.memoizedProps,(r=null!==(r=r.compare)?r:ln)(i,n)&&e.ref===t.ref)?ra(e,t,o):(t.flags|=1,(e=zu(s,n)).ref=t.ref,e.return=t,t.child=e)}function js(e,t,r,n,i,o){if(null!==e&&ln(e.memoizedProps,n)&&e.ref===t.ref){if(ks=!1,0==(o&i))return t.lanes=e.lanes,ra(e,t,o);0!=(16384&e.flags)&&(ks=!0)}return zs(e,t,r,n,o)}function Us(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(0,r);else{if(0==(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(0,e),null;t.memoizedState={baseLanes:0},yu(0,null!==o?o.baseLanes:r)}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,yu(0,n);return Ns(e,t,i,r),t.child}function Vs(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function zs(e,t,r,n,i){var o=mi(r)?pi:di.current;return o=fi(t,o),no(t,i),r=os(e,t,r,n,o,i),null===e||ks?(t.flags|=1,Ns(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ra(e,t,i))}function $s(e,t,r,n,i){if(mi(r)){var o=!0;vi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),yo(t,r,n),Ao(t,r,n,i),n=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,c=r.contextType;c="object"==typeof c&&null!==c?io(c):fi(t,c=mi(r)?pi:di.current);var l=r.getDerivedStateFromProps,d="function"==typeof l||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==n||u!==c)&&vo(t,s,n,c),oo=!1;var h=t.memoizedState;s.state=h,ho(t,n,s,i),u=t.memoizedState,a!==n||h!==u||hi.current||oo?("function"==typeof l&&(mo(t,r,l,n),u=t.memoizedState),(a=oo||Eo(t,r,a,n,h,u,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4)):("function"==typeof s.componentDidMount&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=c,n=a):("function"==typeof s.componentDidMount&&(t.flags|=4),n=!1)}else{s=t.stateNode,ao(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Yi(t.type,a),s.props=c,d=t.pendingProps,h=s.context,u="object"==typeof(u=r.contextType)&&null!==u?io(u):fi(t,u=mi(r)?pi:di.current);var p=r.getDerivedStateFromProps;(l="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==d||h!==u)&&vo(t,s,n,u),oo=!1,h=t.memoizedState,s.state=h,ho(t,n,s,i);var f=t.memoizedState;a!==d||h!==f||hi.current||oo?("function"==typeof p&&(mo(t,r,p,n),f=t.memoizedState),(c=oo||Eo(t,r,c,n,h,f,u))?(l||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(n,f,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(n,f,u)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=f),s.props=n,s.state=f,s.context=u,n=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),n=!1)}return Ws(e,t,r,n,o,i)}function Ws(e,t,r,n,i,o){Vs(e,t);var s=0!=(64&t.flags);if(!n&&!s)return i&&Ai(t,r,!1),ra(e,t,o);n=t.stateNode,Ps.current=t;var a=s&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&s?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,a,o)):Ns(e,t,a,o),t.memoizedState=n.state,i&&Ai(t,r,!0),t.child}function Hs(e){var t=e.stateNode;t.pendingContext?Ei(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ei(0,t.context,!1),Fo(e,t.containerInfo)}var Gs,qs,Ks,Ys,Qs={dehydrated:null,retryLane:0};function Xs(e,t,r){var n,i=t.pendingProps,o=No.current,s=!1;return(n=0!=(64&t.flags))||(n=(null===e||null!==e.memoizedState)&&0!=(2&o)),n?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ci(No,1&o),null===e?(void 0!==i.fallback&&$o(t),e=i.children,o=i.fallback,s?(e=Zs(t,e,o,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Qs,e):"number"==typeof i.unstable_expectedLoadTime?(e=Zs(t,e,o,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Qs,t.lanes=33554432,e):((r=Hu({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,s?(i=function(e,t,r,n,i){var o=t.mode,s=e.child;e=s.sibling;var a={mode:"hidden",children:r};return 0==(2&o)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=a,null!==(s=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):r=zu(s,a),null!==e?n=zu(e,n):(n=Wu(n,o,i,null)).flags|=2,n.return=t,r.return=t,r.sibling=n,t.child=r,n}(e,t,i.children,i.fallback,r),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?{baseLanes:r}:{baseLanes:o.baseLanes|r},s.childLanes=e.childLanes&~r,t.memoizedState=Qs,i):(r=function(e,t,r,n){var i=e.child;return e=i.sibling,r=zu(i,{mode:"visible",children:r}),0==(2&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}(e,t,i.children,r),t.memoizedState=null,r))}function Zs(e,t,r,n){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Hu(t,i,0,null),r=Wu(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function Js(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ro(e.return,t)}function ea(e,t,r,n,i,o){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i,s.lastEffect=o)}function ta(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Ns(e,t,n.children,r),0!=(2&(n=No.current)))n=1&n|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Js(e,r);else if(19===e.tag)Js(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ci(No,n),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===Mo(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ea(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Mo(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ea(t,!0,r,null,o,t.lastEffect);break;case"together":ea(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ra(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),La|=t.lanes,0!=(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(r=zu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=zu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function na(e,t){if(!Uo)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ia(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mi(t.type)&&gi(),null;case 3:return Ro(),ui(hi),ui(di),Ko(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Ho(t)?t.flags|=4:n.hydrate||(t.flags|=256)),qs(t),null;case 5:ko(t);var o=Io(Bo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ks(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(null===t.stateNode)throw Error(s(166));return null}if(e=Io(Do.current),Ho(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Qn]=t,n[Xn]=a,r){case"dialog":Dn("cancel",n),Dn("close",n);break;case"iframe":case"object":case"embed":Dn("load",n);break;case"video":case"audio":for(e=0;e<wn.length;e++)Dn(wn[e],n);break;case"source":Dn("error",n);break;case"img":case"image":case"link":Dn("error",n),Dn("load",n);break;case"details":Dn("toggle",n);break;case"input":ee(n,a),Dn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Dn("invalid",n);break;case"textarea":ue(n,a),Dn("invalid",n)}for(var c in Se(r,a),e=null,a)a.hasOwnProperty(c)&&(o=a[c],"children"===c?"string"==typeof o?n.textContent!==o&&(e=["children",o]):"number"==typeof o&&n.textContent!==""+o&&(e=["children",""+o]):u.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Dn("scroll",n));switch(r){case"input":Q(n),ne(n,a,!0);break;case"textarea":Q(n),le(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ln)}n=e,t.updateQueue=n,null!==n&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===de.html&&(e=he(r)),e===de.html?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[Qn]=t,e[Xn]=n,Gs(e,t,!1,!1),t.stateNode=e,c=we(r,n),r){case"dialog":Dn("cancel",e),Dn("close",e),o=n;break;case"iframe":case"object":case"embed":Dn("load",e),o=n;break;case"video":case"audio":for(o=0;o<wn.length;o++)Dn(wn[o],e);o=n;break;case"source":Dn("error",e),o=n;break;case"img":case"image":case"link":Dn("error",e),Dn("load",e),o=n;break;case"details":Dn("toggle",e),o=n;break;case"input":ee(e,n),o=J(e,n),Dn("invalid",e);break;case"option":o=oe(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=i({},n,{value:void 0}),Dn("invalid",e);break;case"textarea":ue(e,n),o=ae(e,n),Dn("invalid",e);break;default:o=n}Se(r,o);var l=o;for(a in l)if(l.hasOwnProperty(a)){var d=l[a];"style"===a?Ce(e,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===a?"string"==typeof d?("textarea"!==r||""!==d)&&Ee(e,d):"number"==typeof d&&Ee(e,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(u.hasOwnProperty(a)?null!=d&&"onScroll"===a&&Dn("scroll",e):null!=d&&A(e,a,d,c))}switch(r){case"input":Q(e),ne(e,n,!1);break;case"textarea":Q(e),le(e);break;case"option":null!=n.value&&e.setAttribute("value",""+K(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?se(e,!!n.multiple,a,!1):null!=n.defaultValue&&se(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ln)}Vn(r,n)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ys(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(s(166));r=Io(Bo.current),Io(Do.current),Ho(t)?(n=t.stateNode,r=t.memoizedProps,n[Qn]=t,n.nodeValue!==r&&(t.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Qn]=t,t.stateNode=n)}return null;case 13:return ui(No),n=t.memoizedState,0!=(64&t.flags)?(t.lanes=r,t):(n=null!==n,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ho(t):r=null!==e.memoizedState,n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&No.current)?0===ka&&(ka=3):(0!==ka&&3!==ka||(ka=4),null===Ba||0==(134217727&La)&&0==(134217727&ja)||mu(Ba,Fa))),(n||r)&&(t.flags|=4),null);case 4:return Ro(),qs(t),null===e&&Bn(t.stateNode.containerInfo),null;case 10:return to(t),null;case 19:if(ui(No),null===(n=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(c=n.rendering))if(a)na(n,!1);else{if(0!==ka||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Mo(e))){for(t.flags|=64,na(n,!1),null!==(a=c.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ci(No,1&No.current|2),t.child}e=e.sibling}null!==n.tail&&Vi()>$a&&(t.flags|=64,a=!0,na(n,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Mo(c))){if(t.flags|=64,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),na(n,!0),null===n.tail&&"hidden"===n.tailMode&&!c.alternate&&!Uo)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Vi()-n.renderingStartTime>$a&&1073741824!==r&&(t.flags|=64,a=!0,na(n,!1),t.lanes=33554432);n.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=n.last)?r.sibling=c:t.child=c,n.last=c)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Vi(),r.sibling=null,t=No.current,ci(No,a?1&t|2:1&t),r):null;case 23:case 24:return vu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function oa(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ro(),ui(hi),ui(di),Ko(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return ko(e),null;case 13:return ui(No),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(No),null;case 4:return Ro(),null;case 10:return to(e),null;case 23:case 24:return vu(),null;default:return null}}function sa(e,t){try{var r="",n=t;do{r+=G(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function aa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Gs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},qs=function(){},Ks=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Io(Do.current);var s,a=null;switch(r){case"input":o=J(e,o),n=J(e,n),a=[];break;case"option":o=oe(e,o),n=oe(e,n),a=[];break;case"select":o=i({},o,{value:void 0}),n=i({},n,{value:void 0}),a=[];break;case"textarea":o=ae(e,o),n=ae(e,n),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ln)}for(d in Se(r,n),r=null,o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var c=o[d];for(s in c)c.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(u.hasOwnProperty(d)?a||(a=[]):(a=a||[]).push(d,null));for(d in n){var l=n[d];if(c=null!=o?o[d]:void 0,n.hasOwnProperty(d)&&l!==c&&(null!=l||null!=c))if("style"===d)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(a||(a=[]),a.push(d,r)),r=l;else"dangerouslySetInnerHTML"===d?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(d,l)):"children"===d?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(d,""+l):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(u.hasOwnProperty(d)?(null!=l&&"onScroll"===d&&Dn("scroll",e),a||c===l||(a=[])):"object"==typeof l&&null!==l&&l.$$typeof===k?l.toString():(a=a||[]).push(d,l))}r&&(a=a||[]).push("style",r);var d=a;(t.updateQueue=d)&&(t.flags|=4)}},Ys=function(e,t,r,n){r!==n&&(t.flags|=4)};var ua="function"==typeof WeakMap?WeakMap:Map;function ca(e,t,r){(r=uo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qa||(qa=!0,Ka=n),aa(0,t)},r}function la(e,t,r){(r=uo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return aa(0,t),n(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Ya?Ya=new Set([this]):Ya.add(this),aa(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var da="function"==typeof WeakSet?WeakSet:Set;function ha(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Nu(e,t)}else t.current=null}function pa(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Yi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hn(t.stateNode.containerInfo))}throw Error(s(163))}function fa(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;n=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ru(r,e),Fu(r,e)),e=n}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Yi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&po(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}po(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Vn(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&At(r)))))}throw Error(s(163))}function ma(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)"function"==typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,n.style.display=Ae("display",i)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ga(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(Ci,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,void 0!==i)if(0!=(4&n))Ru(t,r);else{n=t;try{i()}catch(e){Nu(n,e)}}r=r.next}while(r!==e)}break;case 1:if(ha(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Nu(t,e)}break;case 5:ha(t);break;case 4:ba(e,t)}}function Ea(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ya(e){return 5===e.tag||3===e.tag||4===e.tag}function va(e){e:{for(var t=e.return;null!==t;){if(ya(t))break e;t=t.return}throw Error(s(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(s(161))}16&r.flags&&(Ee(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ya(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}n?Aa(e,r,t):Ca(e,r,t)}function Aa(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ln));else if(4!==n&&null!==(e=e.child))for(Aa(e,t,r),e=e.sibling;null!==e;)Aa(e,t,r),e=e.sibling}function Ca(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Ca(e,t,r),e=e.sibling;null!==e;)Ca(e,t,r),e=e.sibling}function ba(e,t){for(var r,n,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(r=o.stateNode,o.tag){case 5:n=!1;break e;case 3:case 4:r=r.containerInfo,n=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var a=e,u=i,c=u;;)if(ga(a,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n?(a=r,u=i.stateNode,8===a.nodeType?a.parentNode.removeChild(u):a.removeChild(u)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,n=!0,i.child.return=i,i=i.child;continue}}else if(ga(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Sa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3==(3&n.tag)&&(e=n.destroy,n.destroy=void 0,void 0!==e&&e()),n=n.next}while(n!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){n=t.memoizedProps;var i=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[Xn]=n,"input"===e&&"radio"===n.type&&null!=n.name&&te(r,n),we(e,i),t=we(e,n),i=0;i<o.length;i+=2){var a=o[i],u=o[i+1];"style"===a?Ce(r,u):"dangerouslySetInnerHTML"===a?ge(r,u):"children"===a?Ee(r,u):A(r,a,u,t)}switch(e){case"input":re(r,n);break;case"textarea":ce(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(o=n.value)?se(r,!!n.multiple,o,!1):e!==!!n.multiple&&(null!=n.defaultValue?se(r,!!n.multiple,n.defaultValue,!0):se(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,At(r.containerInfo)));case 13:return null!==t.memoizedState&&(za=Vi(),ma(t.child,!0)),void wa(t);case 19:return void wa(t);case 23:case 24:return void ma(t,null!==t.memoizedState)}throw Error(s(163))}function wa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new da),t.forEach((function(t){var n=Lu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function Oa(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var _a=Math.ceil,xa=C.ReactCurrentDispatcher,Da=C.ReactCurrentOwner,Ta=0,Ba=null,Ia=null,Fa=0,Ra=0,Pa=ai(0),ka=0,Na=null,Ma=0,La=0,ja=0,Ua=0,Va=null,za=0,$a=1/0;function Wa(){$a=Vi()+500}var Ha,Ga=null,qa=!1,Ka=null,Ya=null,Qa=!1,Xa=null,Za=90,Ja=[],eu=[],tu=null,ru=0,nu=null,iu=-1,ou=0,su=0,au=null,uu=!1;function cu(){return 0!=(48&Ta)?Vi():-1!==iu?iu:iu=Vi()}function lu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zi()?1:2;if(0===ou&&(ou=Ma),0!==Ki.transition){0!==su&&(su=null!==Va?Va.pendingLanes:0),e=ou;var t=4186112&~su;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=zi(),e=Lt(0!=(4&Ta)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ou)}function du(e,t,r){if(50<ru)throw ru=0,nu=null,Error(s(185));if(null===(e=hu(e,t)))return null;Vt(e,t,r),e===Ba&&(ja|=t,4===ka&&mu(e,Fa));var n=zi();1===t?0!=(8&Ta)&&0==(48&Ta)?gu(e):(pu(e,r),0===Ta&&(Wa(),Gi())):(0==(4&Ta)||98!==n&&99!==n||(null===tu?tu=new Set([e]):tu.add(e)),pu(e,r)),Va=e}function hu(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function pu(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-zt(a),c=1<<u,l=o[u];if(-1===l){if(0==(c&n)||0!=(c&i)){l=t,kt(c);var d=Pt;o[u]=10<=d?l+250:6<=d?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);a&=~c}if(n=Nt(e,e===Ba?Fa:0),t=Pt,0===n)null!==r&&(r!==ki&&Oi(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==ki&&Oi(r)}15===t?(r=gu.bind(null,e),null===Mi?(Mi=[r],Li=wi(Bi,qi)):Mi.push(r),r=ki):14===t?r=Hi(99,gu.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),r=Hi(r,fu.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function fu(e){if(iu=-1,su=ou=0,0!=(48&Ta))throw Error(s(327));var t=e.callbackNode;if(Iu()&&e.callbackNode!==t)return null;var r=Nt(e,e===Ba?Fa:0);if(0===r)return null;var n=r,i=Ta;Ta|=16;var o=bu();for(Ba===e&&Fa===n||(Wa(),Au(e,n));;)try{Ou();break}catch(t){Cu(e,t)}if(eo(),xa.current=o,Ta=i,null!==Ia?n=0:(Ba=null,Fa=0,n=ka),0!=(Ma&ja))Au(e,0);else if(0!==n){if(2===n&&(Ta|=64,e.hydrate&&(e.hydrate=!1,Hn(e.containerInfo)),0!==(r=Mt(e))&&(n=Su(e,r))),1===n)throw t=Na,Au(e,0),mu(e,r),pu(e,Vi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(s(345));case 2:case 5:Du(e);break;case 3:if(mu(e,r),(62914560&r)===r&&10<(n=za+500-Vi())){if(0!==Nt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){cu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$n(Du.bind(null,e),n);break}Du(e);break;case 4:if(mu(e,r),(4186112&r)===r)break;for(n=e.eventTimes,i=-1;0<r;){var a=31-zt(r);o=1<<a,(a=n[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=Vi()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_a(r/1960))-r)){e.timeoutHandle=$n(Du.bind(null,e),r);break}Du(e);break;default:throw Error(s(329))}}return pu(e,Vi()),e.callbackNode===t?fu.bind(null,e):null}function mu(e,t){for(t&=~Ua,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-zt(t),n=1<<r;e[r]=-1,t&=~n}}function gu(e){if(0!=(48&Ta))throw Error(s(327));if(Iu(),e===Ba&&0!=(e.expiredLanes&Fa)){var t=Fa,r=Su(e,t);0!=(Ma&ja)&&(r=Su(e,t=Nt(e,t)))}else r=Su(e,t=Nt(e,0));if(0!==e.tag&&2===r&&(Ta|=64,e.hydrate&&(e.hydrate=!1,Hn(e.containerInfo)),0!==(t=Mt(e))&&(r=Su(e,t))),1===r)throw r=Na,Au(e,0),mu(e,t),pu(e,Vi()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Du(e),pu(e,Vi()),null}function Eu(e,t){var r=Ta;Ta|=1;try{return e(t)}finally{0===(Ta=r)&&(Wa(),Gi())}}function yu(e,t){ci(Pa,Ra),Ra|=t,Ma|=t}function vu(){Ra=Pa.current,ui(Pa)}function Au(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Wn(r)),null!==Ia)for(r=Ia.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&gi();break;case 3:Ro(),ui(hi),ui(di),Ko();break;case 5:ko(n);break;case 4:Ro();break;case 13:case 19:ui(No);break;case 10:to(n);break;case 23:case 24:vu()}r=r.return}Ba=e,Ia=zu(e.current,null),Fa=Ra=Ma=t,ka=0,Na=null,Ua=ja=La=0}function Cu(e,t){for(;;){var r=Ia;try{if(eo(),Yo.current=Bs,ts){for(var n=Zo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ts=!1}if(Xo=0,es=Jo=Zo=null,rs=!1,Da.current=null,null===r||null===r.return){ka=1,Na=t,Ia=null;break}e:{var o=e,s=r.return,a=r,u=t;if(t=Fa,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.lanes=l.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=0!=(1&No.current),h=s;do{var p;if(p=13===h.tag){var f=h.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var m=h.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=h.updateQueue;if(null===g){var E=new Set;E.add(c),h.updateQueue=E}else g.add(c);if(0==(2&h.mode)){if(h.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=uo(-1,1);y.tag=2,co(a,y)}a.lanes|=1;break e}u=void 0,a=t;var v=o.pingCache;if(null===v?(v=o.pingCache=new ua,u=new Set,v.set(c,u)):void 0===(u=v.get(c))&&(u=new Set,v.set(c,u)),!u.has(a)){u.add(a);var A=Mu.bind(null,o,c,a);c.then(A,A)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);u=Error((q(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==ka&&(ka=2),u=sa(u,a),h=s;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t,lo(h,ca(0,o,t));break e;case 1:o=u;var C=h.type,b=h.stateNode;if(0==(64&h.flags)&&("function"==typeof C.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ya||!Ya.has(b)))){h.flags|=4096,t&=-t,h.lanes|=t,lo(h,la(h,o,t));break e}}h=h.return}while(null!==h)}xu(r)}catch(e){t=e,Ia===r&&null!==r&&(Ia=r=r.return);continue}break}}function bu(){var e=xa.current;return xa.current=Bs,null===e?Bs:e}function Su(e,t){var r=Ta;Ta|=16;var n=bu();for(Ba===e&&Fa===t||Au(e,t);;)try{wu();break}catch(t){Cu(e,t)}if(eo(),Ta=r,xa.current=n,null!==Ia)throw Error(s(261));return Ba=null,Fa=0,ka}function wu(){for(;null!==Ia;)_u(Ia)}function Ou(){for(;null!==Ia&&!_i();)_u(Ia)}function _u(e){var t=Ha(e.alternate,e,Ra);e.memoizedProps=e.pendingProps,null===t?xu(e):Ia=t,Da.current=null}function xu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(r=ia(r,t,Ra)))return void(Ia=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!=(1073741824&Ra)||0==(4&r.mode)){for(var n=0,i=r.child;null!==i;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=oa(t)))return r.flags&=2047,void(Ia=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ia=t);Ia=t=e}while(null!==t);0===ka&&(ka=5)}function Du(e){var t=zi();return Wi(99,Tu.bind(null,e,t)),null}function Tu(e,t){do{Iu()}while(null!==Xa);if(0!=(48&Ta))throw Error(s(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,u=e.expirationTimes;0<o;){var c=31-zt(o),l=1<<c;i[c]=0,a[c]=-1,u[c]=-1,o&=~l}if(null!==tu&&0==(24&n)&&tu.has(e)&&tu.delete(e),e===Ba&&(Ia=Ba=null,Fa=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(i=Ta,Ta|=32,Da.current=null,jn=qt,mn(a=fn())){if("selectionStart"in a)u={start:a.selectionStart,end:a.selectionEnd};else e:if(u=(u=a.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,o=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(e){u=null;break e}var d=0,h=-1,p=-1,f=0,m=0,g=a,E=null;t:for(;;){for(var y;g!==u||0!==o&&3!==g.nodeType||(h=d+o),g!==c||0!==l&&3!==g.nodeType||(p=d+l),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)E=g,g=y;for(;;){if(g===a)break t;if(E===u&&++f===o&&(h=d),E===c&&++m===l&&(p=d),null!==(y=g.nextSibling))break;E=(g=E).parentNode}g=y}u=-1===h||-1===p?null:{start:h,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Un={focusedElem:a,selectionRange:u},qt=!1,au=null,uu=!1,Ga=n;do{try{Bu()}catch(e){if(null===Ga)throw Error(s(330));Nu(Ga,e),Ga=Ga.nextEffect}}while(null!==Ga);au=null,Ga=n;do{try{for(a=e;null!==Ga;){var v=Ga.flags;if(16&v&&Ee(Ga.stateNode,""),128&v){var A=Ga.alternate;if(null!==A){var C=A.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&v){case 2:va(Ga),Ga.flags&=-3;break;case 6:va(Ga),Ga.flags&=-3,Sa(Ga.alternate,Ga);break;case 1024:Ga.flags&=-1025;break;case 1028:Ga.flags&=-1025,Sa(Ga.alternate,Ga);break;case 4:Sa(Ga.alternate,Ga);break;case 8:ba(a,u=Ga);var b=u.alternate;Ea(u),null!==b&&Ea(b)}Ga=Ga.nextEffect}}catch(e){if(null===Ga)throw Error(s(330));Nu(Ga,e),Ga=Ga.nextEffect}}while(null!==Ga);if(C=Un,A=fn(),v=C.focusedElem,a=C.selectionRange,A!==v&&v&&v.ownerDocument&&pn(v.ownerDocument.documentElement,v)){null!==a&&mn(v)&&(A=a.start,void 0===(C=a.end)&&(C=A),"selectionStart"in v?(v.selectionStart=A,v.selectionEnd=Math.min(C,v.value.length)):(C=(A=v.ownerDocument||document)&&A.defaultView||window).getSelection&&(C=C.getSelection(),u=v.textContent.length,b=Math.min(a.start,u),a=void 0===a.end?b:Math.min(a.end,u),!C.extend&&b>a&&(u=a,a=b,b=u),u=hn(v,b),o=hn(v,a),u&&o&&(1!==C.rangeCount||C.anchorNode!==u.node||C.anchorOffset!==u.offset||C.focusNode!==o.node||C.focusOffset!==o.offset)&&((A=A.createRange()).setStart(u.node,u.offset),C.removeAllRanges(),b>a?(C.addRange(A),C.extend(o.node,o.offset)):(A.setEnd(o.node,o.offset),C.addRange(A))))),A=[];for(C=v;C=C.parentNode;)1===C.nodeType&&A.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof v.focus&&v.focus(),v=0;v<A.length;v++)(C=A[v]).element.scrollLeft=C.left,C.element.scrollTop=C.top}qt=!!jn,Un=jn=null,e.current=r,Ga=n;do{try{for(v=e;null!==Ga;){var S=Ga.flags;if(36&S&&fa(v,Ga.alternate,Ga),128&S){A=void 0;var w=Ga.ref;if(null!==w){var O=Ga.stateNode;Ga.tag,A=O,"function"==typeof w?w(A):w.current=A}}Ga=Ga.nextEffect}}catch(e){if(null===Ga)throw Error(s(330));Nu(Ga,e),Ga=Ga.nextEffect}}while(null!==Ga);Ga=null,Ni(),Ta=i}else e.current=r;if(Qa)Qa=!1,Xa=e,Za=t;else for(Ga=n;null!==Ga;)t=Ga.nextEffect,Ga.nextEffect=null,8&Ga.flags&&((S=Ga).sibling=null,S.stateNode=null),Ga=t;if(0===(n=e.pendingLanes)&&(Ya=null),1===n?e===nu?ru++:(ru=0,nu=e):ru=0,r=r.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(Ci,r,void 0,64==(64&r.current.flags))}catch(e){}if(pu(e,Vi()),qa)throw qa=!1,e=Ka,Ka=null,e;return 0!=(8&Ta)||Gi(),null}function Bu(){for(;null!==Ga;){var e=Ga.alternate;uu||null===au||(0!=(8&Ga.flags)?Ze(Ga,au)&&(uu=!0):13===Ga.tag&&Oa(e,Ga)&&Ze(Ga,au)&&(uu=!0));var t=Ga.flags;0!=(256&t)&&pa(e,Ga),0==(512&t)||Qa||(Qa=!0,Hi(97,(function(){return Iu(),null}))),Ga=Ga.nextEffect}}function Iu(){if(90!==Za){var e=97<Za?97:Za;return Za=90,Wi(e,Pu)}return!1}function Fu(e,t){Ja.push(t,e),Qa||(Qa=!0,Hi(97,(function(){return Iu(),null})))}function Ru(e,t){eu.push(t,e),Qa||(Qa=!0,Hi(97,(function(){return Iu(),null})))}function Pu(){if(null===Xa)return!1;var e=Xa;if(Xa=null,0!=(48&Ta))throw Error(s(331));var t=Ta;Ta|=32;var r=eu;eu=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],a=i.destroy;if(i.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));Nu(o,e)}}for(r=Ja,Ja=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===o)throw Error(s(330));Nu(o,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Ta=t,Gi(),!0}function ku(e,t,r){co(e,t=ca(0,t=sa(r,t),1)),t=cu(),null!==(e=hu(e,1))&&(Vt(e,1,t),pu(e,t))}function Nu(e,t){if(3===e.tag)ku(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){ku(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n))){var i=la(r,e=sa(t,e),1);if(co(r,i),i=cu(),null!==(r=hu(r,1)))Vt(r,1,i),pu(r,i);else if("function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n)))try{n.componentDidCatch(t,e)}catch(e){}break}}r=r.return}}function Mu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=cu(),e.pingedLanes|=e.suspendedLanes&r,Ba===e&&(Fa&r)===r&&(4===ka||3===ka&&(62914560&Fa)===Fa&&500>Vi()-za?Au(e,0):Ua|=r),pu(e,t)}function Lu(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zi()?1:2:(0===ou&&(ou=Ma),0===(t=jt(62914560&~ou))&&(t=4194304))),r=cu(),null!==(e=hu(e,t))&&(Vt(e,t,r),pu(e,r))}function ju(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,r,n){return new ju(e,t,r,n)}function Vu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var r=e.alternate;return null===r?((r=Uu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $u(e,t,r,n,i,o){var a=2;if(n=e,"function"==typeof e)Vu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case w:return Wu(r.children,i,o,t);case N:a=8,i|=16;break;case O:a=8,i|=1;break;case _:return(e=Uu(12,r,t,8|i)).elementType=_,e.type=_,e.lanes=o,e;case B:return(e=Uu(13,r,t,i)).type=B,e.elementType=B,e.lanes=o,e;case I:return(e=Uu(19,r,t,i)).elementType=I,e.lanes=o,e;case M:return Hu(r,i,o,t);case L:return(e=Uu(24,r,t,i)).elementType=L,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:a=10;break e;case D:a=9;break e;case T:a=11;break e;case F:a=14;break e;case R:a=16,n=null;break e;case P:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Uu(a,r,t,i)).elementType=e,t.type=n,t.lanes=o,t}function Wu(e,t,r,n){return(e=Uu(7,e,n,t)).lanes=r,e}function Hu(e,t,r,n){return(e=Uu(23,e,n,t)).elementType=M,e.lanes=r,e}function Gu(e,t,r){return(e=Uu(6,e,null,t)).lanes=r,e}function qu(e,t,r){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ku(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Yu(e,t,r,n){var i=t.current,o=cu(),a=lu(i);e:if(r){t:{if(Ye(r=r._reactInternals)!==r||1!==r.tag)throw Error(s(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(s(171))}if(1===r.tag){var c=r.type;if(mi(c)){r=yi(r,c,u);break e}}r=u}else r=li;return null===t.context?t.context=r:t.pendingContext=r,(t=uo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),co(i,t),du(i,a,o),a}function Qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Xu(e,t){Qu(e,t),(e=e.alternate)&&Qu(e,t)}function Zu(e,t,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Ku(e,t,null!=r&&!0===r.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,so(t),e[Zn]=r.current,Bn(8===e.nodeType?e.parentNode:e),n)for(e=0;e<n.length;e++){var i=(t=n[e])._getVersion;i=i(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}Ha=function(e,t,r){var n=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)ks=!0;else{if(0==(r&n)){switch(ks=!1,t.tag){case 3:Hs(t),Go();break;case 5:Po(t);break;case 1:mi(t.type)&&vi(t);break;case 4:Fo(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;ci(Qi,i._currentValue),i._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!=(r&t.child.childLanes)?Xs(e,t,r):(ci(No,1&No.current),null!==(t=ra(e,t,r))?t.sibling:null);ci(No,1&No.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(64&e.flags)){if(n)return ta(e,t,r);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ci(No,No.current),n)break;return null;case 23:case 24:return t.lanes=0,Us(e,t,r)}return ra(e,t,r)}ks=0!=(16384&e.flags)}else ks=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,di.current),no(t,r),i=os(null,t,n,e,i,r),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(n)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var a=n.getDerivedStateFromProps;"function"==typeof a&&mo(t,n,a,e),i.updater=go,t.stateNode=i,i._reactInternals=t,Ao(t,n,e,r),t=Ws(null,t,n,!0,o,r)}else t.tag=0,Ns(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Vu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===F)return 14}return 2}(i),e=Yi(i,e),o){case 0:t=zs(null,t,i,e,r);break e;case 1:t=$s(null,t,i,e,r);break e;case 11:t=Ms(null,t,i,e,r);break e;case 14:t=Ls(null,t,i,Yi(i.type,e),n,r);break e}throw Error(s(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,zs(e,t,n,i=t.elementType===n?i:Yi(n,i),r);case 1:return n=t.type,i=t.pendingProps,$s(e,t,n,i=t.elementType===n?i:Yi(n,i),r);case 3:if(Hs(t),n=t.updateQueue,null===e||null===n)throw Error(s(282));if(n=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),ho(t,n,null,r),(n=t.memoizedState.element)===i)Go(),t=ra(e,t,r);else{if((o=(i=t.stateNode).hydrate)&&(jo=Gn(t.stateNode.containerInfo.firstChild),Lo=t,o=Uo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],qo.push(o);for(r=_o(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Ns(e,t,n,r),Go();t=t.child}return t;case 5:return Po(t),null===e&&$o(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,zn(n,i)?a=null:null!==o&&zn(n,o)&&(t.flags|=16),Vs(e,t),Ns(e,t,a,r),t.child;case 6:return null===e&&$o(t),null;case 13:return Xs(e,t,r);case 4:return Fo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Oo(t,null,n,r):Ns(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Ms(e,t,n,i=t.elementType===n?i:Yi(n,i),r);case 7:return Ns(e,t,t.pendingProps,r),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var u=t.type._context;if(ci(Qi,u._currentValue),u._currentValue=o,null!==a)if(u=a.value,0==(o=un(u,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(u,o):1073741823))){if(a.children===i.children&&!hi.current){t=ra(e,t,r);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){a=u.child;for(var l=c.firstContext;null!==l;){if(l.context===n&&0!=(l.observedBits&o)){1===u.tag&&((l=uo(-1,r&-r)).tag=2,co(u,l)),u.lanes|=r,null!==(l=u.alternate)&&(l.lanes|=r),ro(u.return,r),c.lanes|=r;break}l=l.next}}else a=10===u.tag&&u.type===t.type?null:u.child;if(null!==a)a.return=u;else for(a=u;null!==a;){if(a===t){a=null;break}if(null!==(u=a.sibling)){u.return=a.return,a=u;break}a=a.return}u=a}Ns(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=(o=t.pendingProps).children,no(t,r),n=n(i=io(i,o.unstable_observedBits)),t.flags|=1,Ns(e,t,n,r),t.child;case 14:return o=Yi(i=t.type,t.pendingProps),Ls(e,t,i,o=Yi(i.type,o),n,r);case 15:return js(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mi(n)?(e=!0,vi(t)):e=!1,no(t,r),yo(t,n,i),Ao(t,n,i,r),Ws(null,t,n,!0,e,r);case 19:return ta(e,t,r);case 23:case 24:return Us(e,t,r)}throw Error(s(156,t.tag))},Zu.prototype.render=function(e){Yu(e,this._internalRoot,null,null)},Zu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Yu(null,e,null,(function(){t[Zn]=null}))},Je=function(e){13===e.tag&&(du(e,4,cu()),Xu(e,4))},et=function(e){13===e.tag&&(du(e,67108864,cu()),Xu(e,67108864))},tt=function(e){if(13===e.tag){var t=cu(),r=lu(e);du(e,r,t),Xu(e,r)}},rt=function(e,t){return t()},_e=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=ni(n);if(!i)throw Error(s(90));X(n),re(n,i)}}}break;case"textarea":ce(e,r);break;case"select":null!=(t=r.value)&&se(e,!!r.multiple,t,!1)}},Fe=Eu,Re=function(e,t,r,n,i){var o=Ta;Ta|=4;try{return Wi(98,e.bind(null,t,r,n,i))}finally{0===(Ta=o)&&(Wa(),Gi())}},Pe=function(){0==(49&Ta)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pu(e,Vi())}))}Gi()}(),Iu())},ke=function(e,t){var r=Ta;Ta|=2;try{return e(t)}finally{0===(Ta=r)&&(Wa(),Gi())}};var Ju={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ec={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(s(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Xe(i),e;if(o===n)return Xe(i),t;o=o.sibling}throw Error(s(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,u=i.child;u;){if(u===r){a=!0,r=i,n=o;break}if(u===n){a=!0,n=i,r=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===r){a=!0,r=o,n=i;break}if(u===n){a=!0,n=o,r=i;break}u=u.sibling}if(!a)throw Error(s(189))}}if(r.alternate!==n)throw Error(s(190))}if(3!==r.tag)throw Error(s(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{Ci=tc.inject(ec),bi=tc}catch(me){}}t.unstable_batchedUpdates=Eu},8316:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(2967)},9670:(e,t)=>{"use strict";var r,n,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,u=a.now();t.unstable_now=function(){return a.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},n=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,E=-1,y=5,v=0;t.unstable_shouldYield=function(){return t.unstable_now()>=v},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var A=new MessageChannel,C=A.port2;A.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();v=e+y;try{g(!0,e)?C.postMessage(null):(m=!1,g=null)}catch(e){throw C.postMessage(null),e}}else m=!1},r=function(e){g=e,m||(m=!0,C.postMessage(null))},n=function(e,r){E=h((function(){e(t.unstable_now())}),r)},i=function(){p(E),E=-1}}function b(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<O(i,t)))break e;e[n]=t,e[r]=i,r=n}}function S(e){return void 0===(e=e[0])?null:e}function w(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,s=e[o],a=o+1,u=e[a];if(void 0!==s&&0>O(s,r))void 0!==u&&0>O(u,s)?(e[n]=u,e[a]=r,n=a):(e[n]=s,e[o]=r,n=o);else{if(!(void 0!==u&&0>O(u,r)))break e;e[n]=u,e[a]=r,n=a}}}return t}return null}function O(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var _=[],x=[],D=1,T=null,B=3,I=!1,F=!1,R=!1;function P(e){for(var t=S(x);null!==t;){if(null===t.callback)w(x);else{if(!(t.startTime<=e))break;w(x),t.sortIndex=t.expirationTime,b(_,t)}t=S(x)}}function k(e){if(R=!1,P(e),!F)if(null!==S(_))F=!0,r(N);else{var t=S(x);null!==t&&n(k,t.startTime-e)}}function N(e,r){F=!1,R&&(R=!1,i()),I=!0;var o=B;try{for(P(r),T=S(_);null!==T&&(!(T.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=T.callback;if("function"==typeof s){T.callback=null,B=T.priorityLevel;var a=s(T.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?T.callback=a:T===S(_)&&w(_),P(r)}else w(_);T=S(_)}if(null!==T)var u=!0;else{var c=S(x);null!==c&&n(k,c.startTime-r),u=!1}return u}finally{T=null,B=o,I=!1}}var M=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){F||I||(F=!0,r(N))},t.unstable_getCurrentPriorityLevel=function(){return B},t.unstable_getFirstCallbackNode=function(){return S(_)},t.unstable_next=function(e){switch(B){case 1:case 2:case 3:var t=3;break;default:t=B}var r=B;B=t;try{return e()}finally{B=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=B;B=e;try{return t()}finally{B=r}},t.unstable_scheduleCallback=function(e,o,s){var a=t.unstable_now();switch(s="object"==typeof s&&null!==s&&"number"==typeof(s=s.delay)&&0<s?a+s:a,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:D++,callback:o,priorityLevel:e,startTime:s,expirationTime:u=s+u,sortIndex:-1},s>a?(e.sortIndex=s,b(x,e),null===S(_)&&e===S(x)&&(R?i():R=!0,n(k,s-a))):(e.sortIndex=u,b(_,e),F||I||(F=!0,r(N))),e},t.unstable_wrapCallback=function(e){var t=B;return function(){var r=B;B=t;try{return e.apply(this,arguments)}finally{B=r}}}},2941:(e,t,r)=>{"use strict";e.exports=r(9670)},8559:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case o:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case l:case f:case p:case a:return e;default:return t}}case n:return t}}}(e)===u}},3920:(e,t,r)=>{"use strict";e.exports=r(8559)},8139:(e,t,r)=>{"use strict";e.exports=r(1568).gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))},7017:(e,t,r)=>{"use strict";const{unassigned_code_points:n,commonly_mapped_to_nothing:i,non_ASCII_space_characters:o,prohibited_characters:s,bidirectional_r_al:a,bidirectional_l:u}=r(6392);e.exports=function(e,t={}){if("string"!=typeof e)throw new TypeError("Expected string.");if(0===e.length)return"";const r=f(e).map((e=>c.get(e)?32:e)).filter((e=>!l.get(e))),i=String.fromCodePoint.apply(null,r).normalize("NFKC"),o=f(i);if(o.some((e=>s.get(e))))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==t.allowUnassigned&&o.some((e=>n.get(e))))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const m=o.some((e=>a.get(e))),g=o.some((e=>u.get(e)));if(m&&g)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const E=a.get(d(h(i))),y=a.get(d(p(i)));if(m&&(!E||!y))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 i};const c=o,l=i,d=e=>e.codePointAt(0),h=e=>e[0],p=e=>e[e.length-1];function f(e){const t=[],r=e.length;for(let n=0;n<r;n+=1){const i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){const r=e.charCodeAt(n+1);if(r>=56320&&r<=57343){t.push(1024*(i-55296)+r-56320+65536),n+=1;continue}}t.push(i)}return t}},6392:(e,t,r)=>{"use strict";const n=r(3184),i=r(8139);let o=0;function s(){const e=i.readUInt32BE(o);o+=4;const t=i.slice(o,o+e);return o+=e,n({buffer:t})}const a=s(),u=s(),c=s(),l=s(),d=s(),h=s();e.exports={unassigned_code_points:a,commonly_mapped_to_nothing:u,non_ASCII_space_characters:c,prohibited_characters:l,bidirectional_r_al:d,bidirectional_l:h}},3619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9460);class i{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,i.isSmartBufferOptions(e))if(e.encoding&&(n.checkEncoding(e.encoding),this._encoding=e.encoding),e.size){if(!(n.isFiniteInteger(e.size)&&e.size>0))throw new Error(n.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=Buffer.allocUnsafe(e.size)}else if(e.buff){if(!Buffer.isBuffer(e.buff))throw new Error(n.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=e.buff,this.length=e.buff.length}else this._buff=Buffer.allocUnsafe(4096);else{if(void 0!==e)throw new Error(n.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(4096)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return n.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return n.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,t),this}insertInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(Buffer.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){return n.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){return n.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){return n.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(Buffer.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(Buffer.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}readString(e,t){let r;"number"==typeof e?(n.checkLengthValue(e),r=Math.min(e,this.length-this._readOffset)):(t=e,r=this.length-this._readOffset),void 0!==t&&n.checkEncoding(t);const i=this._buff.slice(this._readOffset,this._readOffset+r).toString(t||this._encoding);return this._readOffset+=r,i}insertString(e,t,r){return n.checkOffsetValue(t),this._handleString(e,!0,t,r)}writeString(e,t,r){return this._handleString(e,!1,t,r)}readStringNT(e){void 0!==e&&n.checkEncoding(e);let t=this.length;for(let e=this._readOffset;e<this.length;e++)if(0===this._buff[e]){t=e;break}const r=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,r.toString(e||this._encoding)}insertStringNT(e,t,r){return n.checkOffsetValue(t),this.insertString(e,t,r),this.insertUInt8(0,t+e.length),this}writeStringNT(e,t,r){return this.writeString(e,t,r),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}readBuffer(e){void 0!==e&&n.checkLengthValue(e);const t="number"==typeof e?e:this.length,r=Math.min(this.length,this._readOffset+t),i=this._buff.slice(this._readOffset,r);return this._readOffset=r,i}insertBuffer(e,t){return n.checkOffsetValue(t),this._handleBuffer(e,!0,t)}writeBuffer(e,t){return this._handleBuffer(e,!1,t)}readBufferNT(){let e=this.length;for(let t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}const t=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,t}insertBufferNT(e,t){return n.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}writeBufferNT(e,t){return void 0!==t&&n.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(e){n.checkOffsetValue(e),n.checkTargetOffset(e,this),this._readOffset=e}get writeOffset(){return this._writeOffset}set writeOffset(e){n.checkOffsetValue(e),n.checkTargetOffset(e,this),this._writeOffset=e}get encoding(){return this._encoding}set encoding(e){n.checkEncoding(e),this._encoding=e}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(e){const t="string"==typeof e?e:this._encoding;return n.checkEncoding(t),this._buff.toString(t,0,this.length)}destroy(){return this.clear(),this}_handleString(e,t,r,i){let o=this._writeOffset,s=this._encoding;"number"==typeof r?o=r:"string"==typeof r&&(n.checkEncoding(r),s=r),"string"==typeof i&&(n.checkEncoding(i),s=i);const a=Buffer.byteLength(e,s);return t?this.ensureInsertable(a,o):this._ensureWriteable(a,o),this._buff.write(e,o,a,s),t?this._writeOffset+=a:"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,o+a):this._writeOffset+=a,this}_handleBuffer(e,t,r){const n="number"==typeof r?r:this._writeOffset;return t?this.ensureInsertable(e.length,n):this._ensureWriteable(e.length,n),e.copy(this._buff,n),t?this._writeOffset+=e.length:"number"==typeof r?this._writeOffset=Math.max(this._writeOffset,n+e.length):this._writeOffset+=e.length,this}ensureReadable(e,t){let r=this._readOffset;if(void 0!==t&&(n.checkOffsetValue(t),r=t),r<0||r+e>this.length)throw new Error(n.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(e,t){n.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}_ensureWriteable(e,t){const r="number"==typeof t?t:this._writeOffset;this._ensureCapacity(r+e),r+e>this.length&&(this.length=r+e)}_ensureCapacity(e){const t=this._buff.length;if(e>t){let r=this._buff,n=3*t/2+1;n<e&&(n=e),this._buff=Buffer.allocUnsafe(n),r.copy(this._buff,0,0,t)}}_readNumberValue(e,t,r){this.ensureReadable(t,r);const n=e.call(this._buff,"number"==typeof r?r:this._readOffset);return void 0===r&&(this._readOffset+=t),n}_insertNumberValue(e,t,r,i){return n.checkOffsetValue(i),this.ensureInsertable(t,i),e.call(this._buff,r,i),this._writeOffset+=t,this}_writeNumberValue(e,t,r,i){if("number"==typeof i){if(i<0)throw new Error(n.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);n.checkOffsetValue(i)}const o="number"==typeof i?i:this._writeOffset;return this._ensureWriteable(t,o),e.call(this._buff,r,o),"number"==typeof i?this._writeOffset=Math.max(this._writeOffset,o+t):this._writeOffset+=t,this}}t.SmartBuffer=i},9460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8893),i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function o(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function s(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!o(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!n.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=o,t.checkLengthValue=function(e){s(e,!1)},t.checkOffsetValue=function(e){s(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(i.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===n.Buffer.prototype[e])throw new Error(`Platform does not support Buffer.prototype.${e}.`)}},9875:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SocksClientError=t.SocksClient=void 0;const i=r(7702),o=r(8216),s=r(1450),a=r(3619),u=r(9897),c=r(7385),l=r(9520),d=r(5155);Object.defineProperty(t,"SocksClientError",{enumerable:!0,get:function(){return d.SocksClientError}});class h extends i.EventEmitter{constructor(e){super(),this.options=Object.assign({},e),(0,c.validateSocksClientOptions)(e),this.setState(u.SocksClientState.Created)}static createConnection(e,t){return new Promise(((r,n)=>{try{(0,c.validateSocksClientOptions)(e,["connect"])}catch(e){return"function"==typeof t?(t(e),r(e)):n(e)}const i=new h(e);i.connect(e.existing_socket),i.once("established",(e=>{i.removeAllListeners(),"function"==typeof t?(t(null,e),r(e)):r(e)})),i.once("error",(e=>{i.removeAllListeners(),"function"==typeof t?(t(e),r(e)):n(e)}))}))}static createConnectionChain(e,t){return new Promise(((r,i)=>n(this,void 0,void 0,(function*(){try{(0,c.validateSocksClientChainOptions)(e)}catch(e){return"function"==typeof t?(t(e),r(e)):i(e)}e.randomizeChain&&(0,d.shuffleArray)(e.proxies);try{let n;for(let t=0;t<e.proxies.length;t++){const r=e.proxies[t],i=t===e.proxies.length-1?e.destination:{host:e.proxies[t+1].host||e.proxies[t+1].ipaddress,port:e.proxies[t+1].port},o=yield h.createConnection({command:"connect",proxy:r,destination:i,existing_socket:n});n=n||o.socket}"function"==typeof t?(t(null,{socket:n}),r({socket:n})):r({socket:n})}catch(e){"function"==typeof t?(t(e),r(e)):i(e)}}))))}static createUDPFrame(e){const t=new a.SmartBuffer;return t.writeUInt16BE(0),t.writeUInt8(e.frameNumber||0),o.isIPv4(e.remoteHost.host)?(t.writeUInt8(u.Socks5HostType.IPv4),t.writeUInt32BE(s.toLong(e.remoteHost.host))):o.isIPv6(e.remoteHost.host)?(t.writeUInt8(u.Socks5HostType.IPv6),t.writeBuffer(s.toBuffer(e.remoteHost.host))):(t.writeUInt8(u.Socks5HostType.Hostname),t.writeUInt8(Buffer.byteLength(e.remoteHost.host)),t.writeString(e.remoteHost.host)),t.writeUInt16BE(e.remoteHost.port),t.writeBuffer(e.data),t.toBuffer()}static parseUDPFrame(e){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r=t.readUInt8(),n=t.readUInt8();let i;return i=n===u.Socks5HostType.IPv4?s.fromLong(t.readUInt32BE()):n===u.Socks5HostType.IPv6?s.toString(t.readBuffer(16)):t.readString(t.readUInt8()),{frameNumber:r,remoteHost:{host:i,port:t.readUInt16BE()},data:t.readBuffer()}}setState(e){this.state!==u.SocksClientState.Error&&(this.state=e)}connect(e){this.onDataReceived=e=>this.onDataReceivedHandler(e),this.onClose=()=>this.onCloseHandler(),this.onError=e=>this.onErrorHandler(e),this.onConnect=()=>this.onConnectHandler();const t=setTimeout((()=>this.onEstablishedTimeout()),this.options.timeout||u.DEFAULT_TIMEOUT);t.unref&&"function"==typeof t.unref&&t.unref(),this.socket=e||new o.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(u.SocksClientState.Connecting),this.receiveBuffer=new l.ReceiveBuffer,e?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),void 0!==this.options.set_tcp_nodelay&&null!==this.options.set_tcp_nodelay&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",(e=>{setImmediate((()=>{if(this.receiveBuffer.length>0){const t=this.receiveBuffer.get(this.receiveBuffer.length);e.socket.emit("data",t)}e.socket.resume()}))}))}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.BoundWaitingForConnection&&this.closeSocket(u.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(u.SocksClientState.Connected),4===this.options.proxy.type?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(u.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(e){this.receiveBuffer.append(e),this.processData()}processData(){for(;this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===u.SocksClientState.SentInitialHandshake)4===this.options.proxy.type?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===u.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===u.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else{if(this.state!==u.SocksClientState.BoundWaitingForConnection){this.closeSocket(u.ERRORS.InternalError);break}4===this.options.proxy.type?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse()}}onCloseHandler(){this.closeSocket(u.ERRORS.SocketClosed)}onErrorHandler(e){this.closeSocket(e.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(e){this.state!==u.SocksClientState.Error&&(this.setState(u.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new d.SocksClientError(e,this.options)))}sendSocks4InitialHandshake(){const e=this.options.proxy.userId||"",t=new a.SmartBuffer;t.writeUInt8(4),t.writeUInt8(u.SocksCommand[this.options.command]),t.writeUInt16BE(this.options.destination.port),o.isIPv4(this.options.destination.host)?(t.writeBuffer(s.toBuffer(this.options.destination.host)),t.writeStringNT(e)):(t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(1),t.writeStringNT(e),t.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(t.toBuffer())}handleSocks4FinalHandshakeResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted)this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedConnection} - (${u.Socks4Response[e[1]]})`);else if(u.SocksCommand[this.options.command]===u.SocksCommand.bind){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:s.fromLong(t.readUInt32BE())};"0.0.0.0"===r.host&&(r.host=this.options.proxy.ipaddress),this.setState(u.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:r,socket:this.socket})}else this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted)this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${u.Socks4Response[e[1]]})`);else{const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:s.fromLong(t.readUInt32BE())};this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})}}sendSocks5InitialHandshake(){const e=new a.SmartBuffer,t=[u.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&t.push(u.Socks5Auth.UserPass),void 0!==this.options.proxy.custom_auth_method&&t.push(this.options.proxy.custom_auth_method),e.writeUInt8(5),e.writeUInt8(t.length);for(const r of t)e.writeUInt8(r);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(e.toBuffer()),this.setState(u.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const e=this.receiveBuffer.get(2);5!==e[0]?this.closeSocket(u.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):e[1]===u.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):e[1]===u.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=u.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):e[1]===u.Socks5Auth.UserPass?(this.socks5ChosenAuthType=u.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):e[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const e=this.options.proxy.userId||"",t=this.options.proxy.password||"",r=new a.SmartBuffer;r.writeUInt8(1),r.writeUInt8(Buffer.byteLength(e)),r.writeString(e),r.writeUInt8(Buffer.byteLength(t)),r.writeString(t),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(r.toBuffer()),this.setState(u.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return n(this,void 0,void 0,(function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(u.SocksClientState.SentAuthentication)}))}handleSocks5CustomAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return yield this.options.proxy.custom_auth_response_handler(e)}))}handleSocks5AuthenticationNoAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return 0===e[1]}))}handleSocks5AuthenticationUserPassHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return 0===e[1]}))}handleInitialSocks5AuthenticationHandshakeResponse(){return n(this,void 0,void 0,(function*(){this.setState(u.SocksClientState.ReceivedAuthenticationResponse);let e=!1;this.socks5ChosenAuthType===u.Socks5Auth.NoAuth?e=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===u.Socks5Auth.UserPass?e=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(e=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),e?this.sendSocks5CommandRequest():this.closeSocket(u.ERRORS.Socks5AuthenticationFailed)}))}sendSocks5CommandRequest(){const e=new a.SmartBuffer;e.writeUInt8(5),e.writeUInt8(u.SocksCommand[this.options.command]),e.writeUInt8(0),o.isIPv4(this.options.destination.host)?(e.writeUInt8(u.Socks5HostType.IPv4),e.writeBuffer(s.toBuffer(this.options.destination.host))):o.isIPv6(this.options.destination.host)?(e.writeUInt8(u.Socks5HostType.IPv6),e.writeBuffer(s.toBuffer(this.options.destination.host))):(e.writeUInt8(u.Socks5HostType.Hostname),e.writeUInt8(this.options.destination.host.length),e.writeString(this.options.destination.host)),e.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(e.toBuffer()),this.setState(u.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const e=this.receiveBuffer.peek(5);if(5!==e[0]||e[1]!==u.Socks5Response.Granted)this.closeSocket(`${u.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${u.Socks5Response[e[1]]}`);else{const t=e[3];let r,n;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.fromLong(n.readUInt32BE()),port:n.readUInt16BE()},"0.0.0.0"===r.host&&(r.host=this.options.proxy.ipaddress)}else if(t===u.Socks5HostType.Hostname){const t=e[4],i=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(t);if(this.receiveBuffer.length<i)return void(this.nextRequiredPacketBufferSize=i);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(i).slice(5)),r={host:n.readString(t),port:n.readUInt16BE()}}else if(t===u.Socks5HostType.IPv6){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.toString(n.readBuffer(16)),port:n.readUInt16BE()}}this.setState(u.SocksClientState.ReceivedFinalResponse),u.SocksCommand[this.options.command]===u.SocksCommand.connect?(this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})):u.SocksCommand[this.options.command]===u.SocksCommand.bind?(this.setState(u.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:r,socket:this.socket})):u.SocksCommand[this.options.command]===u.SocksCommand.associate&&(this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){const e=this.receiveBuffer.peek(5);if(5!==e[0]||e[1]!==u.Socks5Response.Granted)this.closeSocket(`${u.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${u.Socks5Response[e[1]]}`);else{const t=e[3];let r,n;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.fromLong(n.readUInt32BE()),port:n.readUInt16BE()},"0.0.0.0"===r.host&&(r.host=this.options.proxy.ipaddress)}else if(t===u.Socks5HostType.Hostname){const t=e[4],i=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(t);if(this.receiveBuffer.length<i)return void(this.nextRequiredPacketBufferSize=i);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(i).slice(5)),r={host:n.readString(t),port:n.readUInt16BE()}}else if(t===u.Socks5HostType.IPv6){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);n=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),r={host:s.toString(n.readBuffer(16)),port:n.readUInt16BE()}}this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:r,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}t.SocksClient=h},9897:(e,t)=>{"use strict";var r,n,i,o,s,a;Object.defineProperty(t,"__esModule",{value:!0}),t.SOCKS5_NO_ACCEPTABLE_AUTH=t.SOCKS5_CUSTOM_AUTH_END=t.SOCKS5_CUSTOM_AUTH_START=t.SOCKS_INCOMING_PACKET_SIZES=t.SocksClientState=t.Socks5Response=t.Socks5HostType=t.Socks5Auth=t.Socks4Response=t.SocksCommand=t.ERRORS=t.DEFAULT_TIMEOUT=void 0,t.DEFAULT_TIMEOUT=3e4,t.ERRORS={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"},t.SOCKS_INCOMING_PACKET_SIZES={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:e=>e+7,Socks4Response:8},function(e){e[e.connect=1]="connect",e[e.bind=2]="bind",e[e.associate=3]="associate"}(r||(r={})),t.SocksCommand=r,function(e){e[e.Granted=90]="Granted",e[e.Failed=91]="Failed",e[e.Rejected=92]="Rejected",e[e.RejectedIdent=93]="RejectedIdent"}(n||(n={})),t.Socks4Response=n,function(e){e[e.NoAuth=0]="NoAuth",e[e.GSSApi=1]="GSSApi",e[e.UserPass=2]="UserPass"}(i||(i={})),t.Socks5Auth=i,t.SOCKS5_CUSTOM_AUTH_START=128,t.SOCKS5_CUSTOM_AUTH_END=254,t.SOCKS5_NO_ACCEPTABLE_AUTH=255,function(e){e[e.Granted=0]="Granted",e[e.Failure=1]="Failure",e[e.NotAllowed=2]="NotAllowed",e[e.NetworkUnreachable=3]="NetworkUnreachable",e[e.HostUnreachable=4]="HostUnreachable",e[e.ConnectionRefused=5]="ConnectionRefused",e[e.TTLExpired=6]="TTLExpired",e[e.CommandNotSupported=7]="CommandNotSupported",e[e.AddressNotSupported=8]="AddressNotSupported"}(o||(o={})),t.Socks5Response=o,function(e){e[e.IPv4=1]="IPv4",e[e.Hostname=3]="Hostname",e[e.IPv6=4]="IPv6"}(s||(s={})),t.Socks5HostType=s,function(e){e[e.Created=0]="Created",e[e.Connecting=1]="Connecting",e[e.Connected=2]="Connected",e[e.SentInitialHandshake=3]="SentInitialHandshake",e[e.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",e[e.SentAuthentication=5]="SentAuthentication",e[e.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",e[e.SentFinalHandshake=7]="SentFinalHandshake",e[e.ReceivedFinalResponse=8]="ReceivedFinalResponse",e[e.BoundWaitingForConnection=9]="BoundWaitingForConnection",e[e.Established=10]="Established",e[e.Disconnected=11]="Disconnected",e[e.Error=99]="Error"}(a||(a={})),t.SocksClientState=a},7385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSocksClientChainOptions=t.validateSocksClientOptions=void 0;const n=r(5155),i=r(9897),o=r(6162);function s(e,t){if(void 0!==e.custom_auth_method){if(e.custom_auth_method<i.SOCKS5_CUSTOM_AUTH_START||e.custom_auth_method>i.SOCKS5_CUSTOM_AUTH_END)throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthRange,t);if(void 0===e.custom_auth_request_handler||"function"!=typeof e.custom_auth_request_handler)throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t);if(void 0===e.custom_auth_response_size)throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t);if(void 0===e.custom_auth_response_handler||"function"!=typeof e.custom_auth_response_handler)throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}}function a(e){return e&&"string"==typeof e.host&&"number"==typeof e.port&&e.port>=0&&e.port<=65535}function u(e){return e&&("string"==typeof e.host||"string"==typeof e.ipaddress)&&"number"==typeof e.port&&e.port>=0&&e.port<=65535&&(4===e.type||5===e.type)}function c(e){return"number"==typeof e&&e>0}t.validateSocksClientOptions=function(e,t=["connect","bind","associate"]){if(!i.SocksCommand[e.command])throw new n.SocksClientError(i.ERRORS.InvalidSocksCommand,e);if(-1===t.indexOf(e.command))throw new n.SocksClientError(i.ERRORS.InvalidSocksCommandForOperation,e);if(!a(e.destination))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e);if(!u(e.proxy))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e);if(s(e.proxy,e),e.timeout&&!c(e.timeout))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e);if(e.existing_socket&&!(e.existing_socket instanceof o.Duplex))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsExistingSocket,e)},t.validateSocksClientChainOptions=function(e){if("connect"!==e.command)throw new n.SocksClientError(i.ERRORS.InvalidSocksCommandChain,e);if(!a(e.destination))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e);if(!(e.proxies&&Array.isArray(e.proxies)&&e.proxies.length>=2))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxiesLength,e);if(e.proxies.forEach((t=>{if(!u(t))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e);s(t,e)})),e.timeout&&!c(e.timeout))throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e)}},9520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReceiveBuffer=void 0,t.ReceiveBuffer=class{constructor(e=4096){this.buffer=Buffer.allocUnsafe(e),this.offset=0,this.originalSize=e}get length(){return this.offset}append(e){if(!Buffer.isBuffer(e))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+e.length>=this.buffer.length){const t=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+e.length)),t.copy(this.buffer)}return e.copy(this.buffer,this.offset),this.offset+=e.length}peek(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,e)}get(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const t=Buffer.allocUnsafe(e);return this.buffer.slice(0,e).copy(t),this.buffer.copyWithin(0,e,e+this.offset-e),this.offset-=e,t}}},5155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shuffleArray=t.SocksClientError=void 0;class r extends Error{constructor(e,t){super(e),this.options=t}}t.SocksClientError=r,t.shuffleArray=function(e){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}}},2131:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(9875),t)},1450:(e,t,r)=>{const n=t,{Buffer:i}=r(8893),o=r(9801);n.toBuffer=function(e,t,r){let n;if(r=~~r,this.isV4Format(e))n=t||i.alloc(r+4),e.split(/\./g).map((e=>{n[r++]=255&parseInt(e,10)}));else if(this.isV6Format(e)){const o=e.split(":",8);let s;for(s=0;s<o.length;s++){let e;this.isV4Format(o[s])&&(e=this.toBuffer(o[s]),o[s]=e.slice(0,2).toString("hex")),e&&++s<8&&o.splice(s,0,e.slice(2,4).toString("hex"))}if(""===o[0])for(;o.length<8;)o.unshift("0");else if(""===o[o.length-1])for(;o.length<8;)o.push("0");else if(o.length<8){for(s=0;s<o.length&&""!==o[s];s++);const e=[s,1];for(s=9-o.length;s>0;s--)e.push("0");o.splice(...e)}for(n=t||i.alloc(r+16),s=0;s<o.length;s++){const e=parseInt(o[s],16);n[r++]=e>>8&255,n[r++]=255&e}}if(!n)throw Error(`Invalid ip address: ${e}`);return n},n.toString=function(e,t,r){t=~~t;let n=[];if(4===(r=r||e.length-t)){for(let i=0;i<r;i++)n.push(e[t+i]);n=n.join(".")}else if(16===r){for(let i=0;i<r;i+=2)n.push(e.readUInt16BE(t+i).toString(16));n=n.join(":"),n=n.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),n=n.replace(/:{3,4}/,"::")}return n};const s=/^(\d{1,3}\.){3,3}\d{1,3}$/,a=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;function u(e){return 4===e?"ipv4":6===e?"ipv6":e?e.toLowerCase():"ipv4"}n.isV4Format=function(e){return s.test(e)},n.isV6Format=function(e){return a.test(e)},n.fromPrefixLen=function(e,t){let r=4;"ipv6"===(t=e>32?"ipv6":u(t))&&(r=16);const o=i.alloc(r);for(let t=0,r=o.length;t<r;++t){let r=8;e<8&&(r=e),e-=r,o[t]=255&~(255>>r)}return n.toString(o)},n.mask=function(e,t){e=n.toBuffer(e),t=n.toBuffer(t);const r=i.alloc(Math.max(e.length,t.length));let o;if(e.length===t.length)for(o=0;o<e.length;o++)r[o]=e[o]&t[o];else if(4===t.length)for(o=0;o<t.length;o++)r[o]=e[e.length-4+o]&t[o];else{for(o=0;o<r.length-6;o++)r[o]=0;for(r[10]=255,r[11]=255,o=0;o<e.length;o++)r[o+12]=e[o]&t[o+12];o+=12}for(;o<r.length;o++)r[o]=0;return n.toString(r)},n.cidr=function(e){const t=e.split("/"),r=t[0];if(2!==t.length)throw new Error(`invalid CIDR subnet: ${r}`);const i=n.fromPrefixLen(parseInt(t[1],10));return n.mask(r,i)},n.subnet=function(e,t){const r=n.toLong(n.mask(e,t)),i=n.toBuffer(t);let o=0;for(let e=0;e<i.length;e++)if(255===i[e])o+=8;else{let t=255&i[e];for(;t;)t=t<<1&255,o++}const s=2**(32-o);return{networkAddress:n.fromLong(r),firstAddress:s<=2?n.fromLong(r):n.fromLong(r+1),lastAddress:s<=2?n.fromLong(r+s-1):n.fromLong(r+s-2),broadcastAddress:n.fromLong(r+s-1),subnetMask:t,subnetMaskLength:o,numHosts:s<=2?s:s-2,length:s,contains:e=>r===n.toLong(n.mask(e,t))}},n.cidrSubnet=function(e){const t=e.split("/"),r=t[0];if(2!==t.length)throw new Error(`invalid CIDR subnet: ${r}`);const i=n.fromPrefixLen(parseInt(t[1],10));return n.subnet(r,i)},n.not=function(e){const t=n.toBuffer(e);for(let e=0;e<t.length;e++)t[e]=255^t[e];return n.toString(t)},n.or=function(e,t){if(e=n.toBuffer(e),t=n.toBuffer(t),e.length===t.length){for(let r=0;r<e.length;++r)e[r]|=t[r];return n.toString(e)}let r=e,i=t;t.length>e.length&&(r=t,i=e);const o=r.length-i.length;for(let e=o;e<r.length;++e)r[e]|=i[e-o];return n.toString(r)},n.isEqual=function(e,t){if(e=n.toBuffer(e),t=n.toBuffer(t),e.length===t.length){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}if(4===t.length){const r=t;t=e,e=r}for(let e=0;e<10;e++)if(0!==t[e])return!1;const r=t.readUInt16BE(10);if(0!==r&&65535!==r)return!1;for(let r=0;r<4;r++)if(e[r]!==t[r+12])return!1;return!0},n.isPrivate=function(e){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^f[cd][0-9a-f]{2}:/i.test(e)||/^fe80:/i.test(e)||/^::1$/.test(e)||/^::$/.test(e)},n.isPublic=function(e){return!n.isPrivate(e)},n.isLoopback=function(e){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(e)||/^fe80::1$/.test(e)||/^::1$/.test(e)||/^::$/.test(e)},n.loopback=function(e){if("ipv4"!==(e=u(e))&&"ipv6"!==e)throw new Error("family must be ipv4 or ipv6");return"ipv4"===e?"127.0.0.1":"fe80::1"},n.address=function(e,t){const r=o.networkInterfaces();if(t=u(t),e&&"private"!==e&&"public"!==e){const n=r[e].filter((e=>u(e.family)===t));if(0===n.length)return;return n[0].address}const i=Object.keys(r).map((i=>{const o=r[i].filter((r=>(r.family=u(r.family),r.family===t&&!n.isLoopback(r.address)&&(!e||("public"===e?n.isPrivate(r.address):n.isPublic(r.address))))));return o.length?o[0].address:void 0})).filter(Boolean);return i.length?i[0]:n.loopback(t)},n.toLong=function(e){let t=0;return e.split(".").forEach((e=>{t<<=8,t+=parseInt(e)})),t>>>0},n.fromLong=function(e){return`${e>>>24}.${e>>16&255}.${e>>8&255}.${255&e}`}},3184:(e,t,r)=>{var n=r(6902);function i(e){if(!(this instanceof i))return new i(e);if(e||(e={}),Buffer.isBuffer(e)&&(e={buffer:e}),this.pageOffset=e.pageOffset||0,this.pageSize=e.pageSize||1024,this.pages=e.pages||n(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,(t=this.pageSize)&t-1)throw new Error("The page size should be a power of two");var t;if(this._trackUpdates=!!e.trackUpdates,this._pageMask=this.pageSize-1,e.buffer){for(var r=0;r<e.buffer.length;r+=this.pageSize)this.pages.set(r/this.pageSize,e.buffer.slice(r,r+this.pageSize));this.byteLength=e.buffer.length,this.length=8*this.byteLength}}e.exports=i,i.prototype.get=function(e){var t=7&e,r=(e-t)/8;return!!(this.getByte(r)&128>>t)},i.prototype.getByte=function(e){var t=e&this._pageMask,r=(e-t)/this.pageSize,n=this.pages.get(r,!0);return n?n.buffer[t+this.pageOffset]:0},i.prototype.set=function(e,t){var r=7&e,n=(e-r)/8,i=this.getByte(n);return this.setByte(n,t?i|128>>r:i&(255^128>>r))},i.prototype.toBuffer=function(){for(var e=function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t}(this.pages.length*this.pageSize),t=0;t<this.pages.length;t++){var r=this.pages.get(t,!0),n=t*this.pageSize;r&&r.buffer.copy(e,n,this.pageOffset,this.pageOffset+this.pageSize)}return e},i.prototype.setByte=function(e,t){var r=e&this._pageMask,n=(e-r)/this.pageSize,i=this.pages.get(n,!1);return r+=this.pageOffset,i.buffer[r]!==t&&(i.buffer[r]=t,e>=this.byteLength&&(this.byteLength=e+1,this.length=8*this.byteLength),this._trackUpdates&&this.pages.updated(i),!0)}},5580:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(e,i={}){if(i=Object.assign({},n,i),!e||"string"!=typeof e)return e;let o=e.trim();if(void 0!==i.skipLike&&i.skipLike.test(o))return e;if(i.hex&&t.test(o))return Number.parseInt(o,16);{const t=r.exec(o);if(t){const r=t[1],n=t[2];let a=(s=t[3])&&-1!==s.indexOf(".")?("."===(s=s.replace(/0+$/,""))?s="0":"."===s[0]?s="0"+s:"."===s[s.length-1]&&(s=s.substr(0,s.length-1)),s):s;const u=t[4]||t[6];if(!i.leadingZeros&&n.length>0&&r&&"."!==o[2])return e;if(!i.leadingZeros&&n.length>0&&!r&&"."!==o[1])return e;{const t=Number(o),s=""+t;return-1!==s.search(/[eE]/)||u?i.eNotation?t:e:-1!==o.indexOf(".")?"0"===s&&""===a||s===a||r&&s==="-"+a?t:e:n?a===s||r+a===s?t:e:o===s||o===r+s?t:e}}return e}var s}},5163:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>A,__asyncGenerator:()=>v,__asyncValues:()=>C,__await:()=>y,__awaiter:()=>l,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>_,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>p,__extends:()=>i,__generator:()=>d,__importDefault:()=>w,__importStar:()=>S,__makeTemplateObject:()=>b,__metadata:()=>c,__param:()=>u,__read:()=>m,__rest:()=>s,__spread:()=>g,__spreadArrays:()=>E,__values:()=>f});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof y?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function A(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:y(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function _(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},452:(e,t,r)=>{"use strict";var n=r(9497),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return a((function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,r,t]),s((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},402:(e,t,r)=>{"use strict";var n=r(9497),i=r(3100),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c((function(){function e(e){if(!u){if(u=!0,s=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(s=e,a=r)}var s,a,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,n,i]);var p=s(e,d[0],d[1]);return u((function(){h.hasValue=!0,h.value=p}),[p]),l(p),p}},3100:(e,t,r)=>{"use strict";e.exports=r(452)},1110:(e,t,r)=>{"use strict";e.exports=r(402)},2077:function(e,t,r){var n,i;n=function(){var e,t,r,n,i,o={},s={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(r){var n,i,s,a;if(e.isNumeral(r))n=r.value();else if(0===r||void 0===r)n=0;else if(null===r||t.isNaN(r))n=null;else if("string"==typeof r)if(u.zeroFormat&&r===u.zeroFormat)n=0;else if(u.nullFormat&&r===u.nullFormat||!r.replace(/[^0-9]+/g,"").length)n=null;else{for(i in o)if((a="function"==typeof o[i].regexps.unformat?o[i].regexps.unformat():o[i].regexps.unformat)&&r.match(a)){s=o[i].unformat;break}n=(s=s||e._.stringToNumber)(r)}else n=Number(r)||null;return new c(r,n)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,r,n){var i,o,a,u,c,l,d,h,p=s[e.options.currentLocale],f=!1,m=!1,g="",E=1e12,y=1e9,v=1e6,A="",C=!1;if(t=t||0,o=Math.abs(t),e._.includes(r,"(")?(f=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(c=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=!!(i=r.match(/a(k|m|b|t)?/))&&i[1],e._.includes(r," a")&&(g=" "),r=r.replace(new RegExp(g+"a[kmbt]?"),""),o>=E&&!i||"t"===i?(g+=p.abbreviations.trillion,t/=E):o<E&&o>=y&&!i||"b"===i?(g+=p.abbreviations.billion,t/=y):o<y&&o>=v&&!i||"m"===i?(g+=p.abbreviations.million,t/=v):(o<v&&o>=1e3&&!i||"k"===i)&&(g+=p.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),a=t.toString().split(".")[0],u=r.split(".")[1],l=r.indexOf(","),h=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),A=e._.toFixed(t,u[0].length+u[1].length,n,u[1].length)):A=e._.toFixed(t,u.length,n),a=A.split(".")[0],A=e._.includes(A,".")?p.delimiters.decimal+A.split(".")[1]:"",m&&0===Number(A.slice(1))&&(A="")):a=e._.toFixed(t,0,n),g&&!i&&Number(a)>=1e3&&g!==p.abbreviations.trillion)switch(a=String(Number(a)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(a,"-")&&(a=a.slice(1),C=!0),a.length<h)for(var b=h-a.length;b>0;b--)a="0"+a;return l>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===r.indexOf(".")&&(a=""),d=a+A+(g||""),f?d=(f&&C?"(":"")+d+(f&&C?")":""):c>=0?d=0===c?(C?"-":"+")+d:d+(C?"-":"+"):C&&(d="-"+d),d},stringToNumber:function(e){var t,r,n,i=s[u.currentLocale],o=e,a={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)r=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),a)if(n=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),o.match(n)){r*=Math.pow(10,a[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),i=n.length>>>0,o=0;if(3===arguments.length)r=arguments[2];else{for(;o<i&&!(o in n);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");r=n[o++]}for(;o<i;o++)o in n&&(r=t(r,n[o],o,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var n=t.multiplier(r);return e>n?e:n}),1)},toFixed:function(e,t,r,n){var i,o,s,a,u=e.toString().split("."),c=t-(n||0);return i=2===u.length?Math.min(Math.max(u[1].length,c),t):c,s=Math.pow(10,i),a=(r(e+"e+"+i)/s).toFixed(i),n>t-i&&(o=new RegExp("\\.?0{1,"+(n-(t-i))+"}$"),a=a.replace(o,"")),a}},e.options=u,e.formats=o,e.locales=s,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return s[u.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in a)u[e]=a[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,i,o,s,a,u,c,l;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(r)}catch(t){c=e.localeData(e.locale())}return o=c.currency.symbol,a=c.abbreviations,n=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==o)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==a.thousand&&l[0]!==a.million&&l[0]!==a.billion&&l[0]!==a.trillion)||(u=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(s=t.split(n)).length>2||(s.length<2?!s[0].match(/^\d+.*\d$/)||s[0].match(u):1===s[0].length?!s[0].match(/^\d+$/)||s[0].match(u)||!s[1].match(/^\d+$/):!s[0].match(/^\d+.*\d$/)||s[0].match(u)||!s[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,r){var n,i,s,a=this._value,c=t||u.defaultFormat;if(r=r||Math.round,0===a&&null!==u.zeroFormat)i=u.zeroFormat;else if(null===a&&null!==u.nullFormat)i=u.nullFormat;else{for(n in o)if(c.match(o[n].regexps.format)){s=o[n].format;break}i=(s=s||e._.numberToFormat)(a,c,r)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,n,i){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,n,i){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,i){var o=t.correctionFactor(e,r);return Math.round(e*o)*Math.round(r*o)/Math.round(o*o)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,n,i){var o=t.correctionFactor(e,r);return Math.round(e*o)/Math.round(r*o)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var i,o=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),i=e._.numberToFormat(t,r,n),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(n.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,o){var s,a,u,c=e._.includes(i,"ib")?n:r,l=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),s=0;s<=c.suffixes.length;s++)if(a=Math.pow(c.base,s),u=Math.pow(c.base,s+1),null===t||0===t||t>=a&&t<u){l+=c.suffixes[s],a>0&&(t/=a);break}return e._.numberToFormat(t,i,o)+l},unformat:function(t){var i,o,s=e._.stringToNumber(t);if(s){for(i=r.suffixes.length-1;i>=0;i--){if(e._.includes(t,r.suffixes[i])){o=Math.pow(r.base,i);break}if(e._.includes(t,n.suffixes[i])){o=Math.pow(n.base,i);break}}s*=o||1}return s}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var i,o,s=e.locales[e.options.currentLocale],a={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,r,n),t>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(a.before,"-")&&!e._.includes(a.before,"(")&&(a.before="-"+a.before),o=0;o<a.before.length;o++)switch(a.before[o]){case"$":i=e._.insert(i,s.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+s.currency.symbol.length-1)}for(o=a.after.length-1;o>=0;o--)switch(a.after[o]){case"$":i=o===a.after.length-1?i+s.currency.symbol:e._.insert(i,s.currency.symbol,-(a.after.length-(1+o)));break;case" ":i=o===a.after.length-1?i+" ":e._.insert(i," ",-(a.after.length-(1+o)+s.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),r,n)+"e"+i[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),i=Number(r[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([n,Math.pow(10,i)],(function(t,r,n,i){var o=e._.correctionFactor(t,r);return t*o*(r*o)/(o*o)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var i=e.locales[e.options.currentLocale],o=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,r,n)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var i,o=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),i=e._.numberToFormat(t,r,n),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),i=Math.floor((e-60*n*60)/60),o=Math.round(e-60*n*60-60*i);return n+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e},void 0===(i=n.call(t,r,t,e))||(e.exports=i)},6625:(e,t)=>{var r;t=e.exports=Z,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=n-6,s=t.re=[],a=t.safeRe=[],u=t.src=[],c=0,l="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[l,o]];function h(e){for(var t=0;t<d.length;t++){var r=d[t][0],n=d[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}var p=c++;u[p]="0|[1-9]\\d*";var f=c++;u[f]="\\d+";var m=c++;u[m]="\\d*[a-zA-Z-]"+l+"*";var g=c++;u[g]="("+u[p]+")\\.("+u[p]+")\\.("+u[p]+")";var E=c++;u[E]="("+u[f]+")\\.("+u[f]+")\\.("+u[f]+")";var y=c++;u[y]="(?:"+u[p]+"|"+u[m]+")";var v=c++;u[v]="(?:"+u[f]+"|"+u[m]+")";var A=c++;u[A]="(?:-("+u[y]+"(?:\\."+u[y]+")*))";var C=c++;u[C]="(?:-?("+u[v]+"(?:\\."+u[v]+")*))";var b=c++;u[b]=l+"+";var S=c++;u[S]="(?:\\+("+u[b]+"(?:\\."+u[b]+")*))";var w=c++,O="v?"+u[g]+u[A]+"?"+u[S]+"?";u[w]="^"+O+"$";var _="[v=\\s]*"+u[E]+u[C]+"?"+u[S]+"?",x=c++;u[x]="^"+_+"$";var D=c++;u[D]="((?:<|>)?=?)";var T=c++;u[T]=u[f]+"|x|X|\\*";var B=c++;u[B]=u[p]+"|x|X|\\*";var I=c++;u[I]="[v=\\s]*("+u[B]+")(?:\\.("+u[B]+")(?:\\.("+u[B]+")(?:"+u[A]+")?"+u[S]+"?)?)?";var F=c++;u[F]="[v=\\s]*("+u[T]+")(?:\\.("+u[T]+")(?:\\.("+u[T]+")(?:"+u[C]+")?"+u[S]+"?)?)?";var R=c++;u[R]="^"+u[D]+"\\s*"+u[I]+"$";var P=c++;u[P]="^"+u[D]+"\\s*"+u[F]+"$";var k=c++;u[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=c++;u[N]="(?:~>?)";var M=c++;u[M]="(\\s*)"+u[N]+"\\s+",s[M]=new RegExp(u[M],"g"),a[M]=new RegExp(h(u[M]),"g");var L=c++;u[L]="^"+u[N]+u[I]+"$";var j=c++;u[j]="^"+u[N]+u[F]+"$";var U=c++;u[U]="(?:\\^)";var V=c++;u[V]="(\\s*)"+u[U]+"\\s+",s[V]=new RegExp(u[V],"g"),a[V]=new RegExp(h(u[V]),"g");var z=c++;u[z]="^"+u[U]+u[I]+"$";var $=c++;u[$]="^"+u[U]+u[F]+"$";var W=c++;u[W]="^"+u[D]+"\\s*("+_+")$|^$";var H=c++;u[H]="^"+u[D]+"\\s*("+O+")$|^$";var G=c++;u[G]="(\\s*)"+u[D]+"\\s*("+_+"|"+u[I]+")",s[G]=new RegExp(u[G],"g"),a[G]=new RegExp(h(u[G]),"g");var q=c++;u[q]="^\\s*("+u[I]+")\\s+-\\s+("+u[I]+")\\s*$";var K=c++;u[K]="^\\s*("+u[F]+")\\s+-\\s+("+u[F]+")\\s*$";var Y=c++;u[Y]="(<|>)?=?\\s*\\*";for(var Q=0;Q<35;Q++)r(Q,u[Q]),s[Q]||(s[Q]=new RegExp(u[Q]),a[Q]=new RegExp(h(u[Q])));function X(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?a[x]:a[w]).test(e))return null;try{return new Z(e,t)}catch(e){return null}}function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof Z))return new Z(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?a[x]:a[w]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}t.parse=X,t.valid=function(e,t){var r=X(e,t);return r?r.version:null},t.clean=function(e,t){var r=X(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=Z,Z.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Z.prototype.toString=function(){return this.version},Z.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof Z||(e=new Z(e,this.options)),this.compareMain(e)||this.comparePre(e)},Z.prototype.compareMain=function(e){return e instanceof Z||(e=new Z(e,this.options)),ee(this.major,e.major)||ee(this.minor,e.minor)||ee(this.patch,e.patch)},Z.prototype.comparePre=function(e){if(e instanceof Z||(e=new Z(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return ee(n,i)}while(++t)},Z.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new Z(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(ie(e,t))return null;var r=X(e),n=X(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease"}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return o},t.compareIdentifiers=ee;var J=/^[0-9]+$/;function ee(e,t){var r=J.test(e),n=J.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}function te(e,t,r){return new Z(e,r).compare(new Z(t,r))}function re(e,t,r){return te(e,t,r)>0}function ne(e,t,r){return te(e,t,r)<0}function ie(e,t,r){return 0===te(e,t,r)}function oe(e,t,r){return 0!==te(e,t,r)}function se(e,t,r){return te(e,t,r)>=0}function ae(e,t,r){return te(e,t,r)<=0}function ue(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return ie(e,r,n);case"!=":return oe(e,r,n);case">":return re(e,r,n);case">=":return se(e,r,n);case"<":return ne(e,r,n);case"<=":return ae(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}function ce(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ce){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ce))return new ce(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===le?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return ee(t,e)},t.major=function(e,t){return new Z(e,t).major},t.minor=function(e,t){return new Z(e,t).minor},t.patch=function(e,t){return new Z(e,t).patch},t.compare=te,t.compareLoose=function(e,t){return te(e,t,!0)},t.rcompare=function(e,t,r){return te(t,e,r)},t.sort=function(e,r){return e.sort((function(e,n){return t.compare(e,n,r)}))},t.rsort=function(e,r){return e.sort((function(e,n){return t.rcompare(e,n,r)}))},t.gt=re,t.lt=ne,t.eq=ie,t.neq=oe,t.gte=se,t.lte=ae,t.cmp=ue,t.Comparator=ce;var le={};function de(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof de)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new de(e.raw,t);if(e instanceof ce)return new de(e.value,t);if(!(this instanceof de))return new de(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function he(e){return!e||"x"===e.toLowerCase()||"*"===e}function pe(e,t,r,n,i,o,s,a,u,c,l,d,h){return((t=he(r)?"":he(n)?">="+r+".0.0":he(i)?">="+r+"."+n+".0":">="+t)+" "+(a=he(u)?"":he(c)?"<"+(+u+1)+".0.0":he(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function fe(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==le&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function me(e,t,r){try{t=new de(t,r)}catch(e){return!1}return t.test(e)}function ge(e,t,r,n){var i,o,s,a,u;switch(e=new Z(e,n),t=new de(t,n),r){case">":i=re,o=ae,s=ne,a=">",u=">=";break;case"<":i=ne,o=se,s=re,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(me(e,t,n))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,h=null;if(l.forEach((function(e){e.semver===le&&(e=new ce(">=0.0.0")),d=d||e,h=h||e,i(e.semver,d.semver,n)?d=e:s(e.semver,h.semver,n)&&(h=e)})),d.operator===a||d.operator===u)return!1;if((!h.operator||h.operator===a)&&o(e,h.semver))return!1;if(h.operator===u&&s(e,h.semver))return!1}return!0}ce.prototype.parse=function(e){var t=this.options.loose?a[W]:a[H],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new Z(r[2],this.options.loose):this.semver=le},ce.prototype.toString=function(){return this.value},ce.prototype.test=function(e){return r("Comparator.test",e,this.options.loose),this.semver===le||("string"==typeof e&&(e=new Z(e,this.options)),ue(e,this.operator,this.semver,this.options))},ce.prototype.intersects=function(e,t){if(!(e instanceof ce))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return r=new de(e.value,t),me(this.value,r,t);if(""===e.operator)return r=new de(this.value,t),me(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ue(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ue(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||u},t.Range=de,de.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},de.prototype.toString=function(){return this.range},de.prototype.parseRange=function(e){var t=this.options.loose,n=t?a[K]:a[q];e=e.replace(n,pe),r("hyphen replace",e),e=e.replace(a[G],"$1$2$3"),r("comparator trim",e,a[G]),e=(e=e.replace(a[M],"$1~")).replace(a[V],"$1^");var i=t?a[W]:a[H],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[$]:a[z];return e.replace(n,(function(t,n,i,o,s){var a;return r("caret",e,t,n,i,o,s),he(n)?a="":he(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":he(o)?a="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",a),a}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[j]:a[L];return e.replace(n,(function(t,n,i,o,s){var a;return r("tilde",e,t,n,i,o,s),he(n)?a="":he(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":he(o)?a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"):a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[P]:a[R];return e.replace(n,(function(t,n,i,o,s,a){r("xRange",e,t,n,i,o,s,a);var u=he(i),c=u||he(o),l=c||he(s);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[Y],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o.map((function(e){return new ce(e,this.options)}),this)},de.prototype.intersects=function(e,t){if(!(e instanceof de))throw new TypeError("a Range is required");return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new de(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},de.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Z(e,this.options));for(var t=0;t<this.set.length;t++)if(fe(this.set[t],e,this.options))return!0;return!1},t.satisfies=me,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var o=new de(t,r)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(n&&-1!==i.compare(e)||(i=new Z(n=e,r)))})),n},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var o=new de(t,r)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(n&&1!==i.compare(e)||(i=new Z(n=e,r)))})),n},t.minVersion=function(e,t){e=new de(e,t);var r=new Z("0.0.0");if(e.test(r))return r;if(r=new Z("0.0.0-0"),e.test(r))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach((function(e){var t=new Z(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!re(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new de(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return ge(e,t,"<",r)},t.gtr=function(e,t,r){return ge(e,t,">",r)},t.outside=ge,t.prerelease=function(e,t){var r=X(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new de(e,r),t=new de(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof Z)return e;if("string"!=typeof e)return null;var t=e.match(a[k]);return null==t?null:X(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},345:e=>{"use strict";e.exports=require("bson")},8893:e=>{"use strict";e.exports=require("buffer")},4770:e=>{"use strict";e.exports=require("crypto")},665:e=>{"use strict";e.exports=require("dns")},7702:e=>{"use strict";e.exports=require("events")},2048:e=>{"use strict";e.exports=require("fs")},2615:e=>{"use strict";e.exports=require("http")},3617:e=>{"use strict";e.exports=require("kerberos")},4529:e=>{"use strict";e.exports=require("mongodb-client-encryption")},8216:e=>{"use strict";e.exports=require("net")},9801:e=>{"use strict";e.exports=require("os")},5816:e=>{"use strict";e.exports=require("process")},8621:e=>{"use strict";e.exports=require("punycode")},6624:e=>{"use strict";e.exports=require("querystring")},9497:e=>{"use strict";e.exports=require("react")},8349:e=>{"use strict";e.exports=require("snappy")},6162:e=>{"use strict";e.exports=require("stream")},5346:e=>{"use strict";e.exports=require("timers")},2452:e=>{"use strict";e.exports=require("tls")},7360:e=>{"use strict";e.exports=require("url")},1764:e=>{"use strict";e.exports=require("util")},1568:e=>{"use strict";e.exports=require("zlib")},6745:()=>{},7443:e=>{"use strict";e.exports=JSON.parse('[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," ̈"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," ̄"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," ́"],[181,1,"μ"],[182,2],[183,2],[184,5," ̧"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1⁄4"],[189,1,"1⁄2"],[190,1,"3⁄4"],[191,2],[192,1,"à"],[193,1,"á"],[194,1,"â"],[195,1,"ã"],[196,1,"ä"],[197,1,"å"],[198,1,"æ"],[199,1,"ç"],[200,1,"è"],[201,1,"é"],[202,1,"ê"],[203,1,"ë"],[204,1,"ì"],[205,1,"í"],[206,1,"î"],[207,1,"ï"],[208,1,"ð"],[209,1,"ñ"],[210,1,"ò"],[211,1,"ó"],[212,1,"ô"],[213,1,"õ"],[214,1,"ö"],[215,2],[216,1,"ø"],[217,1,"ù"],[218,1,"ú"],[219,1,"û"],[220,1,"ü"],[221,1,"ý"],[222,1,"þ"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"ā"],[257,2],[258,1,"ă"],[259,2],[260,1,"ą"],[261,2],[262,1,"ć"],[263,2],[264,1,"ĉ"],[265,2],[266,1,"ċ"],[267,2],[268,1,"č"],[269,2],[270,1,"ď"],[271,2],[272,1,"đ"],[273,2],[274,1,"ē"],[275,2],[276,1,"ĕ"],[277,2],[278,1,"ė"],[279,2],[280,1,"ę"],[281,2],[282,1,"ě"],[283,2],[284,1,"ĝ"],[285,2],[286,1,"ğ"],[287,2],[288,1,"ġ"],[289,2],[290,1,"ģ"],[291,2],[292,1,"ĥ"],[293,2],[294,1,"ħ"],[295,2],[296,1,"ĩ"],[297,2],[298,1,"ī"],[299,2],[300,1,"ĭ"],[301,2],[302,1,"į"],[303,2],[304,1,"i̇"],[305,2],[[306,307],1,"ij"],[308,1,"ĵ"],[309,2],[310,1,"ķ"],[[311,312],2],[313,1,"ĺ"],[314,2],[315,1,"ļ"],[316,2],[317,1,"ľ"],[318,2],[[319,320],1,"l·"],[321,1,"ł"],[322,2],[323,1,"ń"],[324,2],[325,1,"ņ"],[326,2],[327,1,"ň"],[328,2],[329,1,"ʼn"],[330,1,"ŋ"],[331,2],[332,1,"ō"],[333,2],[334,1,"ŏ"],[335,2],[336,1,"ő"],[337,2],[338,1,"œ"],[339,2],[340,1,"ŕ"],[341,2],[342,1,"ŗ"],[343,2],[344,1,"ř"],[345,2],[346,1,"ś"],[347,2],[348,1,"ŝ"],[349,2],[350,1,"ş"],[351,2],[352,1,"š"],[353,2],[354,1,"ţ"],[355,2],[356,1,"ť"],[357,2],[358,1,"ŧ"],[359,2],[360,1,"ũ"],[361,2],[362,1,"ū"],[363,2],[364,1,"ŭ"],[365,2],[366,1,"ů"],[367,2],[368,1,"ű"],[369,2],[370,1,"ų"],[371,2],[372,1,"ŵ"],[373,2],[374,1,"ŷ"],[375,2],[376,1,"ÿ"],[377,1,"ź"],[378,2],[379,1,"ż"],[380,2],[381,1,"ž"],[382,2],[383,1,"s"],[384,2],[385,1,"ɓ"],[386,1,"ƃ"],[387,2],[388,1,"ƅ"],[389,2],[390,1,"ɔ"],[391,1,"ƈ"],[392,2],[393,1,"ɖ"],[394,1,"ɗ"],[395,1,"ƌ"],[[396,397],2],[398,1,"ǝ"],[399,1,"ə"],[400,1,"ɛ"],[401,1,"ƒ"],[402,2],[403,1,"ɠ"],[404,1,"ɣ"],[405,2],[406,1,"ɩ"],[407,1,"ɨ"],[408,1,"ƙ"],[[409,411],2],[412,1,"ɯ"],[413,1,"ɲ"],[414,2],[415,1,"ɵ"],[416,1,"ơ"],[417,2],[418,1,"ƣ"],[419,2],[420,1,"ƥ"],[421,2],[422,1,"ʀ"],[423,1,"ƨ"],[424,2],[425,1,"ʃ"],[[426,427],2],[428,1,"ƭ"],[429,2],[430,1,"ʈ"],[431,1,"ư"],[432,2],[433,1,"ʊ"],[434,1,"ʋ"],[435,1,"ƴ"],[436,2],[437,1,"ƶ"],[438,2],[439,1,"ʒ"],[440,1,"ƹ"],[[441,443],2],[444,1,"ƽ"],[[445,451],2],[[452,454],1,"dž"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"ǎ"],[462,2],[463,1,"ǐ"],[464,2],[465,1,"ǒ"],[466,2],[467,1,"ǔ"],[468,2],[469,1,"ǖ"],[470,2],[471,1,"ǘ"],[472,2],[473,1,"ǚ"],[474,2],[475,1,"ǜ"],[[476,477],2],[478,1,"ǟ"],[479,2],[480,1,"ǡ"],[481,2],[482,1,"ǣ"],[483,2],[484,1,"ǥ"],[485,2],[486,1,"ǧ"],[487,2],[488,1,"ǩ"],[489,2],[490,1,"ǫ"],[491,2],[492,1,"ǭ"],[493,2],[494,1,"ǯ"],[[495,496],2],[[497,499],1,"dz"],[500,1,"ǵ"],[501,2],[502,1,"ƕ"],[503,1,"ƿ"],[504,1,"ǹ"],[505,2],[506,1,"ǻ"],[507,2],[508,1,"ǽ"],[509,2],[510,1,"ǿ"],[511,2],[512,1,"ȁ"],[513,2],[514,1,"ȃ"],[515,2],[516,1,"ȅ"],[517,2],[518,1,"ȇ"],[519,2],[520,1,"ȉ"],[521,2],[522,1,"ȋ"],[523,2],[524,1,"ȍ"],[525,2],[526,1,"ȏ"],[527,2],[528,1,"ȑ"],[529,2],[530,1,"ȓ"],[531,2],[532,1,"ȕ"],[533,2],[534,1,"ȗ"],[535,2],[536,1,"ș"],[537,2],[538,1,"ț"],[539,2],[540,1,"ȝ"],[541,2],[542,1,"ȟ"],[543,2],[544,1,"ƞ"],[545,2],[546,1,"ȣ"],[547,2],[548,1,"ȥ"],[549,2],[550,1,"ȧ"],[551,2],[552,1,"ȩ"],[553,2],[554,1,"ȫ"],[555,2],[556,1,"ȭ"],[557,2],[558,1,"ȯ"],[559,2],[560,1,"ȱ"],[561,2],[562,1,"ȳ"],[563,2],[[564,566],2],[[567,569],2],[570,1,"ⱥ"],[571,1,"ȼ"],[572,2],[573,1,"ƚ"],[574,1,"ⱦ"],[[575,576],2],[577,1,"ɂ"],[578,2],[579,1,"ƀ"],[580,1,"ʉ"],[581,1,"ʌ"],[582,1,"ɇ"],[583,2],[584,1,"ɉ"],[585,2],[586,1,"ɋ"],[587,2],[588,1,"ɍ"],[589,2],[590,1,"ɏ"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"ɦ"],[690,1,"j"],[691,1,"r"],[692,1,"ɹ"],[693,1,"ɻ"],[694,1,"ʁ"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," ̆"],[729,5," ̇"],[730,5," ̊"],[731,5," ̨"],[732,5," ̃"],[733,5," ̋"],[734,2],[735,2],[736,1,"ɣ"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"ʕ"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"̀"],[833,1,"́"],[834,2],[835,1,"̓"],[836,1,"̈́"],[837,1,"ι"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"ͱ"],[881,2],[882,1,"ͳ"],[883,2],[884,1,"ʹ"],[885,2],[886,1,"ͷ"],[887,2],[[888,889],3],[890,5," ι"],[[891,893],2],[894,5,";"],[895,1,"ϳ"],[[896,899],3],[900,5," ́"],[901,5," ̈́"],[902,1,"ά"],[903,1,"·"],[904,1,"έ"],[905,1,"ή"],[906,1,"ί"],[907,3],[908,1,"ό"],[909,3],[910,1,"ύ"],[911,1,"ώ"],[912,2],[913,1,"α"],[914,1,"β"],[915,1,"γ"],[916,1,"δ"],[917,1,"ε"],[918,1,"ζ"],[919,1,"η"],[920,1,"θ"],[921,1,"ι"],[922,1,"κ"],[923,1,"λ"],[924,1,"μ"],[925,1,"ν"],[926,1,"ξ"],[927,1,"ο"],[928,1,"π"],[929,1,"ρ"],[930,3],[931,1,"σ"],[932,1,"τ"],[933,1,"υ"],[934,1,"φ"],[935,1,"χ"],[936,1,"ψ"],[937,1,"ω"],[938,1,"ϊ"],[939,1,"ϋ"],[[940,961],2],[962,6,"σ"],[[963,974],2],[975,1,"ϗ"],[976,1,"β"],[977,1,"θ"],[978,1,"υ"],[979,1,"ύ"],[980,1,"ϋ"],[981,1,"φ"],[982,1,"π"],[983,2],[984,1,"ϙ"],[985,2],[986,1,"ϛ"],[987,2],[988,1,"ϝ"],[989,2],[990,1,"ϟ"],[991,2],[992,1,"ϡ"],[993,2],[994,1,"ϣ"],[995,2],[996,1,"ϥ"],[997,2],[998,1,"ϧ"],[999,2],[1000,1,"ϩ"],[1001,2],[1002,1,"ϫ"],[1003,2],[1004,1,"ϭ"],[1005,2],[1006,1,"ϯ"],[1007,2],[1008,1,"κ"],[1009,1,"ρ"],[1010,1,"σ"],[1011,2],[1012,1,"θ"],[1013,1,"ε"],[1014,2],[1015,1,"ϸ"],[1016,2],[1017,1,"σ"],[1018,1,"ϻ"],[1019,2],[1020,2],[1021,1,"ͻ"],[1022,1,"ͼ"],[1023,1,"ͽ"],[1024,1,"ѐ"],[1025,1,"ё"],[1026,1,"ђ"],[1027,1,"ѓ"],[1028,1,"є"],[1029,1,"ѕ"],[1030,1,"і"],[1031,1,"ї"],[1032,1,"ј"],[1033,1,"љ"],[1034,1,"њ"],[1035,1,"ћ"],[1036,1,"ќ"],[1037,1,"ѝ"],[1038,1,"ў"],[1039,1,"џ"],[1040,1,"а"],[1041,1,"б"],[1042,1,"в"],[1043,1,"г"],[1044,1,"д"],[1045,1,"е"],[1046,1,"ж"],[1047,1,"з"],[1048,1,"и"],[1049,1,"й"],[1050,1,"к"],[1051,1,"л"],[1052,1,"м"],[1053,1,"н"],[1054,1,"о"],[1055,1,"п"],[1056,1,"р"],[1057,1,"с"],[1058,1,"т"],[1059,1,"у"],[1060,1,"ф"],[1061,1,"х"],[1062,1,"ц"],[1063,1,"ч"],[1064,1,"ш"],[1065,1,"щ"],[1066,1,"ъ"],[1067,1,"ы"],[1068,1,"ь"],[1069,1,"э"],[1070,1,"ю"],[1071,1,"я"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"ѡ"],[1121,2],[1122,1,"ѣ"],[1123,2],[1124,1,"ѥ"],[1125,2],[1126,1,"ѧ"],[1127,2],[1128,1,"ѩ"],[1129,2],[1130,1,"ѫ"],[1131,2],[1132,1,"ѭ"],[1133,2],[1134,1,"ѯ"],[1135,2],[1136,1,"ѱ"],[1137,2],[1138,1,"ѳ"],[1139,2],[1140,1,"ѵ"],[1141,2],[1142,1,"ѷ"],[1143,2],[1144,1,"ѹ"],[1145,2],[1146,1,"ѻ"],[1147,2],[1148,1,"ѽ"],[1149,2],[1150,1,"ѿ"],[1151,2],[1152,1,"ҁ"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"ҋ"],[1163,2],[1164,1,"ҍ"],[1165,2],[1166,1,"ҏ"],[1167,2],[1168,1,"ґ"],[1169,2],[1170,1,"ғ"],[1171,2],[1172,1,"ҕ"],[1173,2],[1174,1,"җ"],[1175,2],[1176,1,"ҙ"],[1177,2],[1178,1,"қ"],[1179,2],[1180,1,"ҝ"],[1181,2],[1182,1,"ҟ"],[1183,2],[1184,1,"ҡ"],[1185,2],[1186,1,"ң"],[1187,2],[1188,1,"ҥ"],[1189,2],[1190,1,"ҧ"],[1191,2],[1192,1,"ҩ"],[1193,2],[1194,1,"ҫ"],[1195,2],[1196,1,"ҭ"],[1197,2],[1198,1,"ү"],[1199,2],[1200,1,"ұ"],[1201,2],[1202,1,"ҳ"],[1203,2],[1204,1,"ҵ"],[1205,2],[1206,1,"ҷ"],[1207,2],[1208,1,"ҹ"],[1209,2],[1210,1,"һ"],[1211,2],[1212,1,"ҽ"],[1213,2],[1214,1,"ҿ"],[1215,2],[1216,3],[1217,1,"ӂ"],[1218,2],[1219,1,"ӄ"],[1220,2],[1221,1,"ӆ"],[1222,2],[1223,1,"ӈ"],[1224,2],[1225,1,"ӊ"],[1226,2],[1227,1,"ӌ"],[1228,2],[1229,1,"ӎ"],[1230,2],[1231,2],[1232,1,"ӑ"],[1233,2],[1234,1,"ӓ"],[1235,2],[1236,1,"ӕ"],[1237,2],[1238,1,"ӗ"],[1239,2],[1240,1,"ә"],[1241,2],[1242,1,"ӛ"],[1243,2],[1244,1,"ӝ"],[1245,2],[1246,1,"ӟ"],[1247,2],[1248,1,"ӡ"],[1249,2],[1250,1,"ӣ"],[1251,2],[1252,1,"ӥ"],[1253,2],[1254,1,"ӧ"],[1255,2],[1256,1,"ө"],[1257,2],[1258,1,"ӫ"],[1259,2],[1260,1,"ӭ"],[1261,2],[1262,1,"ӯ"],[1263,2],[1264,1,"ӱ"],[1265,2],[1266,1,"ӳ"],[1267,2],[1268,1,"ӵ"],[1269,2],[1270,1,"ӷ"],[1271,2],[1272,1,"ӹ"],[1273,2],[1274,1,"ӻ"],[1275,2],[1276,1,"ӽ"],[1277,2],[1278,1,"ӿ"],[1279,2],[1280,1,"ԁ"],[1281,2],[1282,1,"ԃ"],[1283,2],[1284,1,"ԅ"],[1285,2],[1286,1,"ԇ"],[1287,2],[1288,1,"ԉ"],[1289,2],[1290,1,"ԋ"],[1291,2],[1292,1,"ԍ"],[1293,2],[1294,1,"ԏ"],[1295,2],[1296,1,"ԑ"],[1297,2],[1298,1,"ԓ"],[1299,2],[1300,1,"ԕ"],[1301,2],[1302,1,"ԗ"],[1303,2],[1304,1,"ԙ"],[1305,2],[1306,1,"ԛ"],[1307,2],[1308,1,"ԝ"],[1309,2],[1310,1,"ԟ"],[1311,2],[1312,1,"ԡ"],[1313,2],[1314,1,"ԣ"],[1315,2],[1316,1,"ԥ"],[1317,2],[1318,1,"ԧ"],[1319,2],[1320,1,"ԩ"],[1321,2],[1322,1,"ԫ"],[1323,2],[1324,1,"ԭ"],[1325,2],[1326,1,"ԯ"],[1327,2],[1328,3],[1329,1,"ա"],[1330,1,"բ"],[1331,1,"գ"],[1332,1,"դ"],[1333,1,"ե"],[1334,1,"զ"],[1335,1,"է"],[1336,1,"ը"],[1337,1,"թ"],[1338,1,"ժ"],[1339,1,"ի"],[1340,1,"լ"],[1341,1,"խ"],[1342,1,"ծ"],[1343,1,"կ"],[1344,1,"հ"],[1345,1,"ձ"],[1346,1,"ղ"],[1347,1,"ճ"],[1348,1,"մ"],[1349,1,"յ"],[1350,1,"ն"],[1351,1,"շ"],[1352,1,"ո"],[1353,1,"չ"],[1354,1,"պ"],[1355,1,"ջ"],[1356,1,"ռ"],[1357,1,"ս"],[1358,1,"վ"],[1359,1,"տ"],[1360,1,"ր"],[1361,1,"ց"],[1362,1,"ւ"],[1363,1,"փ"],[1364,1,"ք"],[1365,1,"օ"],[1366,1,"ֆ"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"եւ"],[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,"اٴ"],[1654,1,"وٴ"],[1655,1,"ۇٴ"],[1656,1,"يٴ"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"क़"],[2393,1,"ख़"],[2394,1,"ग़"],[2395,1,"ज़"],[2396,1,"ड़"],[2397,1,"ढ़"],[2398,1,"फ़"],[2399,1,"य़"],[[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,"ড়"],[2525,1,"ঢ়"],[2526,3],[2527,1,"য়"],[[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,"ਲ਼"],[2612,3],[2613,2],[2614,1,"ਸ਼"],[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,"ਖ਼"],[2650,1,"ਗ਼"],[2651,1,"ਜ਼"],[2652,2],[2653,3],[2654,1,"ਫ਼"],[[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,"ଡ଼"],[2909,1,"ଢ଼"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[[3315,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"ํา"],[[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,"ໍາ"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[[3790,3791],3],[[3792,3801],2],[[3802,3803],3],[3804,1,"ຫນ"],[3805,1,"ຫມ"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"་"],[[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,"གྷ"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"ཌྷ"],[[3918,3921],2],[3922,1,"དྷ"],[[3923,3926],2],[3927,1,"བྷ"],[[3928,3931],2],[3932,1,"ཛྷ"],[[3933,3944],2],[3945,1,"ཀྵ"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"ཱི"],[3956,2],[3957,1,"ཱུ"],[3958,1,"ྲྀ"],[3959,1,"ྲཱྀ"],[3960,1,"ླྀ"],[3961,1,"ླཱྀ"],[[3962,3968],2],[3969,1,"ཱྀ"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"ྒྷ"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"ྜྷ"],[[3998,4001],2],[4002,1,"ྡྷ"],[[4003,4006],2],[4007,1,"ྦྷ"],[[4008,4011],2],[4012,1,"ྫྷ"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"ྐྵ"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"ⴧ"],[[4296,4300],3],[4301,1,"ⴭ"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"ნ"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"Ᏸ"],[5113,1,"Ᏹ"],[5114,1,"Ᏺ"],[5115,1,"Ᏻ"],[5116,1,"Ᏼ"],[5117,1,"Ᏽ"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"в"],[7297,1,"д"],[7298,1,"о"],[7299,1,"с"],[[7300,7301],1,"т"],[7302,1,"ъ"],[7303,1,"ѣ"],[7304,1,"ꙋ"],[[7305,7311],3],[7312,1,"ა"],[7313,1,"ბ"],[7314,1,"გ"],[7315,1,"დ"],[7316,1,"ე"],[7317,1,"ვ"],[7318,1,"ზ"],[7319,1,"თ"],[7320,1,"ი"],[7321,1,"კ"],[7322,1,"ლ"],[7323,1,"მ"],[7324,1,"ნ"],[7325,1,"ო"],[7326,1,"პ"],[7327,1,"ჟ"],[7328,1,"რ"],[7329,1,"ს"],[7330,1,"ტ"],[7331,1,"უ"],[7332,1,"ფ"],[7333,1,"ქ"],[7334,1,"ღ"],[7335,1,"ყ"],[7336,1,"შ"],[7337,1,"ჩ"],[7338,1,"ც"],[7339,1,"ძ"],[7340,1,"წ"],[7341,1,"ჭ"],[7342,1,"ხ"],[7343,1,"ჯ"],[7344,1,"ჰ"],[7345,1,"ჱ"],[7346,1,"ჲ"],[7347,1,"ჳ"],[7348,1,"ჴ"],[7349,1,"ჵ"],[7350,1,"ჶ"],[7351,1,"ჷ"],[7352,1,"ჸ"],[7353,1,"ჹ"],[7354,1,"ჺ"],[[7355,7356],3],[7357,1,"ჽ"],[7358,1,"ჾ"],[7359,1,"ჿ"],[[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,"æ"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"ǝ"],[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,"ȣ"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"ɐ"],[7493,1,"ɑ"],[7494,1,"ᴂ"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"ə"],[7499,1,"ɛ"],[7500,1,"ɜ"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"ŋ"],[7506,1,"o"],[7507,1,"ɔ"],[7508,1,"ᴖ"],[7509,1,"ᴗ"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"ᴝ"],[7514,1,"ɯ"],[7515,1,"v"],[7516,1,"ᴥ"],[7517,1,"β"],[7518,1,"γ"],[7519,1,"δ"],[7520,1,"φ"],[7521,1,"χ"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"β"],[7527,1,"γ"],[7528,1,"ρ"],[7529,1,"φ"],[7530,1,"χ"],[7531,2],[[7532,7543],2],[7544,1,"н"],[[7545,7578],2],[7579,1,"ɒ"],[7580,1,"c"],[7581,1,"ɕ"],[7582,1,"ð"],[7583,1,"ɜ"],[7584,1,"f"],[7585,1,"ɟ"],[7586,1,"ɡ"],[7587,1,"ɥ"],[7588,1,"ɨ"],[7589,1,"ɩ"],[7590,1,"ɪ"],[7591,1,"ᵻ"],[7592,1,"ʝ"],[7593,1,"ɭ"],[7594,1,"ᶅ"],[7595,1,"ʟ"],[7596,1,"ɱ"],[7597,1,"ɰ"],[7598,1,"ɲ"],[7599,1,"ɳ"],[7600,1,"ɴ"],[7601,1,"ɵ"],[7602,1,"ɸ"],[7603,1,"ʂ"],[7604,1,"ʃ"],[7605,1,"ƫ"],[7606,1,"ʉ"],[7607,1,"ʊ"],[7608,1,"ᴜ"],[7609,1,"ʋ"],[7610,1,"ʌ"],[7611,1,"z"],[7612,1,"ʐ"],[7613,1,"ʑ"],[7614,1,"ʒ"],[7615,1,"θ"],[[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,"ḁ"],[7681,2],[7682,1,"ḃ"],[7683,2],[7684,1,"ḅ"],[7685,2],[7686,1,"ḇ"],[7687,2],[7688,1,"ḉ"],[7689,2],[7690,1,"ḋ"],[7691,2],[7692,1,"ḍ"],[7693,2],[7694,1,"ḏ"],[7695,2],[7696,1,"ḑ"],[7697,2],[7698,1,"ḓ"],[7699,2],[7700,1,"ḕ"],[7701,2],[7702,1,"ḗ"],[7703,2],[7704,1,"ḙ"],[7705,2],[7706,1,"ḛ"],[7707,2],[7708,1,"ḝ"],[7709,2],[7710,1,"ḟ"],[7711,2],[7712,1,"ḡ"],[7713,2],[7714,1,"ḣ"],[7715,2],[7716,1,"ḥ"],[7717,2],[7718,1,"ḧ"],[7719,2],[7720,1,"ḩ"],[7721,2],[7722,1,"ḫ"],[7723,2],[7724,1,"ḭ"],[7725,2],[7726,1,"ḯ"],[7727,2],[7728,1,"ḱ"],[7729,2],[7730,1,"ḳ"],[7731,2],[7732,1,"ḵ"],[7733,2],[7734,1,"ḷ"],[7735,2],[7736,1,"ḹ"],[7737,2],[7738,1,"ḻ"],[7739,2],[7740,1,"ḽ"],[7741,2],[7742,1,"ḿ"],[7743,2],[7744,1,"ṁ"],[7745,2],[7746,1,"ṃ"],[7747,2],[7748,1,"ṅ"],[7749,2],[7750,1,"ṇ"],[7751,2],[7752,1,"ṉ"],[7753,2],[7754,1,"ṋ"],[7755,2],[7756,1,"ṍ"],[7757,2],[7758,1,"ṏ"],[7759,2],[7760,1,"ṑ"],[7761,2],[7762,1,"ṓ"],[7763,2],[7764,1,"ṕ"],[7765,2],[7766,1,"ṗ"],[7767,2],[7768,1,"ṙ"],[7769,2],[7770,1,"ṛ"],[7771,2],[7772,1,"ṝ"],[7773,2],[7774,1,"ṟ"],[7775,2],[7776,1,"ṡ"],[7777,2],[7778,1,"ṣ"],[7779,2],[7780,1,"ṥ"],[7781,2],[7782,1,"ṧ"],[7783,2],[7784,1,"ṩ"],[7785,2],[7786,1,"ṫ"],[7787,2],[7788,1,"ṭ"],[7789,2],[7790,1,"ṯ"],[7791,2],[7792,1,"ṱ"],[7793,2],[7794,1,"ṳ"],[7795,2],[7796,1,"ṵ"],[7797,2],[7798,1,"ṷ"],[7799,2],[7800,1,"ṹ"],[7801,2],[7802,1,"ṻ"],[7803,2],[7804,1,"ṽ"],[7805,2],[7806,1,"ṿ"],[7807,2],[7808,1,"ẁ"],[7809,2],[7810,1,"ẃ"],[7811,2],[7812,1,"ẅ"],[7813,2],[7814,1,"ẇ"],[7815,2],[7816,1,"ẉ"],[7817,2],[7818,1,"ẋ"],[7819,2],[7820,1,"ẍ"],[7821,2],[7822,1,"ẏ"],[7823,2],[7824,1,"ẑ"],[7825,2],[7826,1,"ẓ"],[7827,2],[7828,1,"ẕ"],[[7829,7833],2],[7834,1,"aʾ"],[7835,1,"ṡ"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"ạ"],[7841,2],[7842,1,"ả"],[7843,2],[7844,1,"ấ"],[7845,2],[7846,1,"ầ"],[7847,2],[7848,1,"ẩ"],[7849,2],[7850,1,"ẫ"],[7851,2],[7852,1,"ậ"],[7853,2],[7854,1,"ắ"],[7855,2],[7856,1,"ằ"],[7857,2],[7858,1,"ẳ"],[7859,2],[7860,1,"ẵ"],[7861,2],[7862,1,"ặ"],[7863,2],[7864,1,"ẹ"],[7865,2],[7866,1,"ẻ"],[7867,2],[7868,1,"ẽ"],[7869,2],[7870,1,"ế"],[7871,2],[7872,1,"ề"],[7873,2],[7874,1,"ể"],[7875,2],[7876,1,"ễ"],[7877,2],[7878,1,"ệ"],[7879,2],[7880,1,"ỉ"],[7881,2],[7882,1,"ị"],[7883,2],[7884,1,"ọ"],[7885,2],[7886,1,"ỏ"],[7887,2],[7888,1,"ố"],[7889,2],[7890,1,"ồ"],[7891,2],[7892,1,"ổ"],[7893,2],[7894,1,"ỗ"],[7895,2],[7896,1,"ộ"],[7897,2],[7898,1,"ớ"],[7899,2],[7900,1,"ờ"],[7901,2],[7902,1,"ở"],[7903,2],[7904,1,"ỡ"],[7905,2],[7906,1,"ợ"],[7907,2],[7908,1,"ụ"],[7909,2],[7910,1,"ủ"],[7911,2],[7912,1,"ứ"],[7913,2],[7914,1,"ừ"],[7915,2],[7916,1,"ử"],[7917,2],[7918,1,"ữ"],[7919,2],[7920,1,"ự"],[7921,2],[7922,1,"ỳ"],[7923,2],[7924,1,"ỵ"],[7925,2],[7926,1,"ỷ"],[7927,2],[7928,1,"ỹ"],[7929,2],[7930,1,"ỻ"],[7931,2],[7932,1,"ỽ"],[7933,2],[7934,1,"ỿ"],[7935,2],[[7936,7943],2],[7944,1,"ἀ"],[7945,1,"ἁ"],[7946,1,"ἂ"],[7947,1,"ἃ"],[7948,1,"ἄ"],[7949,1,"ἅ"],[7950,1,"ἆ"],[7951,1,"ἇ"],[[7952,7957],2],[[7958,7959],3],[7960,1,"ἐ"],[7961,1,"ἑ"],[7962,1,"ἒ"],[7963,1,"ἓ"],[7964,1,"ἔ"],[7965,1,"ἕ"],[[7966,7967],3],[[7968,7975],2],[7976,1,"ἠ"],[7977,1,"ἡ"],[7978,1,"ἢ"],[7979,1,"ἣ"],[7980,1,"ἤ"],[7981,1,"ἥ"],[7982,1,"ἦ"],[7983,1,"ἧ"],[[7984,7991],2],[7992,1,"ἰ"],[7993,1,"ἱ"],[7994,1,"ἲ"],[7995,1,"ἳ"],[7996,1,"ἴ"],[7997,1,"ἵ"],[7998,1,"ἶ"],[7999,1,"ἷ"],[[8000,8005],2],[[8006,8007],3],[8008,1,"ὀ"],[8009,1,"ὁ"],[8010,1,"ὂ"],[8011,1,"ὃ"],[8012,1,"ὄ"],[8013,1,"ὅ"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"ὑ"],[8026,3],[8027,1,"ὓ"],[8028,3],[8029,1,"ὕ"],[8030,3],[8031,1,"ὗ"],[[8032,8039],2],[8040,1,"ὠ"],[8041,1,"ὡ"],[8042,1,"ὢ"],[8043,1,"ὣ"],[8044,1,"ὤ"],[8045,1,"ὥ"],[8046,1,"ὦ"],[8047,1,"ὧ"],[8048,2],[8049,1,"ά"],[8050,2],[8051,1,"έ"],[8052,2],[8053,1,"ή"],[8054,2],[8055,1,"ί"],[8056,2],[8057,1,"ό"],[8058,2],[8059,1,"ύ"],[8060,2],[8061,1,"ώ"],[[8062,8063],3],[8064,1,"ἀι"],[8065,1,"ἁι"],[8066,1,"ἂι"],[8067,1,"ἃι"],[8068,1,"ἄι"],[8069,1,"ἅι"],[8070,1,"ἆι"],[8071,1,"ἇι"],[8072,1,"ἀι"],[8073,1,"ἁι"],[8074,1,"ἂι"],[8075,1,"ἃι"],[8076,1,"ἄι"],[8077,1,"ἅι"],[8078,1,"ἆι"],[8079,1,"ἇι"],[8080,1,"ἠι"],[8081,1,"ἡι"],[8082,1,"ἢι"],[8083,1,"ἣι"],[8084,1,"ἤι"],[8085,1,"ἥι"],[8086,1,"ἦι"],[8087,1,"ἧι"],[8088,1,"ἠι"],[8089,1,"ἡι"],[8090,1,"ἢι"],[8091,1,"ἣι"],[8092,1,"ἤι"],[8093,1,"ἥι"],[8094,1,"ἦι"],[8095,1,"ἧι"],[8096,1,"ὠι"],[8097,1,"ὡι"],[8098,1,"ὢι"],[8099,1,"ὣι"],[8100,1,"ὤι"],[8101,1,"ὥι"],[8102,1,"ὦι"],[8103,1,"ὧι"],[8104,1,"ὠι"],[8105,1,"ὡι"],[8106,1,"ὢι"],[8107,1,"ὣι"],[8108,1,"ὤι"],[8109,1,"ὥι"],[8110,1,"ὦι"],[8111,1,"ὧι"],[[8112,8113],2],[8114,1,"ὰι"],[8115,1,"αι"],[8116,1,"άι"],[8117,3],[8118,2],[8119,1,"ᾶι"],[8120,1,"ᾰ"],[8121,1,"ᾱ"],[8122,1,"ὰ"],[8123,1,"ά"],[8124,1,"αι"],[8125,5," ̓"],[8126,1,"ι"],[8127,5," ̓"],[8128,5," ͂"],[8129,5," ̈͂"],[8130,1,"ὴι"],[8131,1,"ηι"],[8132,1,"ήι"],[8133,3],[8134,2],[8135,1,"ῆι"],[8136,1,"ὲ"],[8137,1,"έ"],[8138,1,"ὴ"],[8139,1,"ή"],[8140,1,"ηι"],[8141,5," ̓̀"],[8142,5," ̓́"],[8143,5," ̓͂"],[[8144,8146],2],[8147,1,"ΐ"],[[8148,8149],3],[[8150,8151],2],[8152,1,"ῐ"],[8153,1,"ῑ"],[8154,1,"ὶ"],[8155,1,"ί"],[8156,3],[8157,5," ̔̀"],[8158,5," ̔́"],[8159,5," ̔͂"],[[8160,8162],2],[8163,1,"ΰ"],[[8164,8167],2],[8168,1,"ῠ"],[8169,1,"ῡ"],[8170,1,"ὺ"],[8171,1,"ύ"],[8172,1,"ῥ"],[8173,5," ̈̀"],[8174,5," ̈́"],[8175,5,"`"],[[8176,8177],3],[8178,1,"ὼι"],[8179,1,"ωι"],[8180,1,"ώι"],[8181,3],[8182,2],[8183,1,"ῶι"],[8184,1,"ὸ"],[8185,1,"ό"],[8186,1,"ὼ"],[8187,1,"ώ"],[8188,1,"ωι"],[8189,5," ́"],[8190,5," ̔"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"‐"],[[8210,8214],2],[8215,5," ̳"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"′′"],[8244,1,"′′′"],[8245,2],[8246,1,"‵‵"],[8247,1,"‵‵‵"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," ̅"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"′′′′"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"−"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"−"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"ə"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"°c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"ɛ"],[8456,2],[8457,1,"°f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"ħ"],[[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,"ω"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"å"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"א"],[8502,1,"ב"],[8503,1,"ג"],[8504,1,"ד"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"π"],[[8509,8510],1,"γ"],[8511,1,"π"],[8512,1,"∑"],[[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⁄7"],[8529,1,"1⁄9"],[8530,1,"1⁄10"],[8531,1,"1⁄3"],[8532,1,"2⁄3"],[8533,1,"1⁄5"],[8534,1,"2⁄5"],[8535,1,"3⁄5"],[8536,1,"4⁄5"],[8537,1,"1⁄6"],[8538,1,"5⁄6"],[8539,1,"1⁄8"],[8540,1,"3⁄8"],[8541,1,"5⁄8"],[8542,1,"7⁄8"],[8543,1,"1⁄"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0⁄3"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"∫∫"],[8749,1,"∫∫∫"],[8750,2],[8751,1,"∮∮"],[8752,1,"∮∮∮"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"〈"],[9002,1,"〉"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"∫∫∫∫"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"⫝̸"],[[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,"ⰰ"],[11265,1,"ⰱ"],[11266,1,"ⰲ"],[11267,1,"ⰳ"],[11268,1,"ⰴ"],[11269,1,"ⰵ"],[11270,1,"ⰶ"],[11271,1,"ⰷ"],[11272,1,"ⰸ"],[11273,1,"ⰹ"],[11274,1,"ⰺ"],[11275,1,"ⰻ"],[11276,1,"ⰼ"],[11277,1,"ⰽ"],[11278,1,"ⰾ"],[11279,1,"ⰿ"],[11280,1,"ⱀ"],[11281,1,"ⱁ"],[11282,1,"ⱂ"],[11283,1,"ⱃ"],[11284,1,"ⱄ"],[11285,1,"ⱅ"],[11286,1,"ⱆ"],[11287,1,"ⱇ"],[11288,1,"ⱈ"],[11289,1,"ⱉ"],[11290,1,"ⱊ"],[11291,1,"ⱋ"],[11292,1,"ⱌ"],[11293,1,"ⱍ"],[11294,1,"ⱎ"],[11295,1,"ⱏ"],[11296,1,"ⱐ"],[11297,1,"ⱑ"],[11298,1,"ⱒ"],[11299,1,"ⱓ"],[11300,1,"ⱔ"],[11301,1,"ⱕ"],[11302,1,"ⱖ"],[11303,1,"ⱗ"],[11304,1,"ⱘ"],[11305,1,"ⱙ"],[11306,1,"ⱚ"],[11307,1,"ⱛ"],[11308,1,"ⱜ"],[11309,1,"ⱝ"],[11310,1,"ⱞ"],[11311,1,"ⱟ"],[[11312,11358],2],[11359,2],[11360,1,"ⱡ"],[11361,2],[11362,1,"ɫ"],[11363,1,"ᵽ"],[11364,1,"ɽ"],[[11365,11366],2],[11367,1,"ⱨ"],[11368,2],[11369,1,"ⱪ"],[11370,2],[11371,1,"ⱬ"],[11372,2],[11373,1,"ɑ"],[11374,1,"ɱ"],[11375,1,"ɐ"],[11376,1,"ɒ"],[11377,2],[11378,1,"ⱳ"],[11379,2],[11380,2],[11381,1,"ⱶ"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"ȿ"],[11391,1,"ɀ"],[11392,1,"ⲁ"],[11393,2],[11394,1,"ⲃ"],[11395,2],[11396,1,"ⲅ"],[11397,2],[11398,1,"ⲇ"],[11399,2],[11400,1,"ⲉ"],[11401,2],[11402,1,"ⲋ"],[11403,2],[11404,1,"ⲍ"],[11405,2],[11406,1,"ⲏ"],[11407,2],[11408,1,"ⲑ"],[11409,2],[11410,1,"ⲓ"],[11411,2],[11412,1,"ⲕ"],[11413,2],[11414,1,"ⲗ"],[11415,2],[11416,1,"ⲙ"],[11417,2],[11418,1,"ⲛ"],[11419,2],[11420,1,"ⲝ"],[11421,2],[11422,1,"ⲟ"],[11423,2],[11424,1,"ⲡ"],[11425,2],[11426,1,"ⲣ"],[11427,2],[11428,1,"ⲥ"],[11429,2],[11430,1,"ⲧ"],[11431,2],[11432,1,"ⲩ"],[11433,2],[11434,1,"ⲫ"],[11435,2],[11436,1,"ⲭ"],[11437,2],[11438,1,"ⲯ"],[11439,2],[11440,1,"ⲱ"],[11441,2],[11442,1,"ⲳ"],[11443,2],[11444,1,"ⲵ"],[11445,2],[11446,1,"ⲷ"],[11447,2],[11448,1,"ⲹ"],[11449,2],[11450,1,"ⲻ"],[11451,2],[11452,1,"ⲽ"],[11453,2],[11454,1,"ⲿ"],[11455,2],[11456,1,"ⳁ"],[11457,2],[11458,1,"ⳃ"],[11459,2],[11460,1,"ⳅ"],[11461,2],[11462,1,"ⳇ"],[11463,2],[11464,1,"ⳉ"],[11465,2],[11466,1,"ⳋ"],[11467,2],[11468,1,"ⳍ"],[11469,2],[11470,1,"ⳏ"],[11471,2],[11472,1,"ⳑ"],[11473,2],[11474,1,"ⳓ"],[11475,2],[11476,1,"ⳕ"],[11477,2],[11478,1,"ⳗ"],[11479,2],[11480,1,"ⳙ"],[11481,2],[11482,1,"ⳛ"],[11483,2],[11484,1,"ⳝ"],[11485,2],[11486,1,"ⳟ"],[11487,2],[11488,1,"ⳡ"],[11489,2],[11490,1,"ⳣ"],[[11491,11492],2],[[11493,11498],2],[11499,1,"ⳬ"],[11500,2],[11501,1,"ⳮ"],[[11502,11505],2],[11506,1,"ⳳ"],[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,"ⵡ"],[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,"母"],[[11936,12018],2],[12019,1,"龟"],[[12020,12031],3],[12032,1,"一"],[12033,1,"丨"],[12034,1,"丶"],[12035,1,"丿"],[12036,1,"乙"],[12037,1,"亅"],[12038,1,"二"],[12039,1,"亠"],[12040,1,"人"],[12041,1,"儿"],[12042,1,"入"],[12043,1,"八"],[12044,1,"冂"],[12045,1,"冖"],[12046,1,"冫"],[12047,1,"几"],[12048,1,"凵"],[12049,1,"刀"],[12050,1,"力"],[12051,1,"勹"],[12052,1,"匕"],[12053,1,"匚"],[12054,1,"匸"],[12055,1,"十"],[12056,1,"卜"],[12057,1,"卩"],[12058,1,"厂"],[12059,1,"厶"],[12060,1,"又"],[12061,1,"口"],[12062,1,"囗"],[12063,1,"土"],[12064,1,"士"],[12065,1,"夂"],[12066,1,"夊"],[12067,1,"夕"],[12068,1,"大"],[12069,1,"女"],[12070,1,"子"],[12071,1,"宀"],[12072,1,"寸"],[12073,1,"小"],[12074,1,"尢"],[12075,1,"尸"],[12076,1,"屮"],[12077,1,"山"],[12078,1,"巛"],[12079,1,"工"],[12080,1,"己"],[12081,1,"巾"],[12082,1,"干"],[12083,1,"幺"],[12084,1,"广"],[12085,1,"廴"],[12086,1,"廾"],[12087,1,"弋"],[12088,1,"弓"],[12089,1,"彐"],[12090,1,"彡"],[12091,1,"彳"],[12092,1,"心"],[12093,1,"戈"],[12094,1,"戶"],[12095,1,"手"],[12096,1,"支"],[12097,1,"攴"],[12098,1,"文"],[12099,1,"斗"],[12100,1,"斤"],[12101,1,"方"],[12102,1,"无"],[12103,1,"日"],[12104,1,"曰"],[12105,1,"月"],[12106,1,"木"],[12107,1,"欠"],[12108,1,"止"],[12109,1,"歹"],[12110,1,"殳"],[12111,1,"毋"],[12112,1,"比"],[12113,1,"毛"],[12114,1,"氏"],[12115,1,"气"],[12116,1,"水"],[12117,1,"火"],[12118,1,"爪"],[12119,1,"父"],[12120,1,"爻"],[12121,1,"爿"],[12122,1,"片"],[12123,1,"牙"],[12124,1,"牛"],[12125,1,"犬"],[12126,1,"玄"],[12127,1,"玉"],[12128,1,"瓜"],[12129,1,"瓦"],[12130,1,"甘"],[12131,1,"生"],[12132,1,"用"],[12133,1,"田"],[12134,1,"疋"],[12135,1,"疒"],[12136,1,"癶"],[12137,1,"白"],[12138,1,"皮"],[12139,1,"皿"],[12140,1,"目"],[12141,1,"矛"],[12142,1,"矢"],[12143,1,"石"],[12144,1,"示"],[12145,1,"禸"],[12146,1,"禾"],[12147,1,"穴"],[12148,1,"立"],[12149,1,"竹"],[12150,1,"米"],[12151,1,"糸"],[12152,1,"缶"],[12153,1,"网"],[12154,1,"羊"],[12155,1,"羽"],[12156,1,"老"],[12157,1,"而"],[12158,1,"耒"],[12159,1,"耳"],[12160,1,"聿"],[12161,1,"肉"],[12162,1,"臣"],[12163,1,"自"],[12164,1,"至"],[12165,1,"臼"],[12166,1,"舌"],[12167,1,"舛"],[12168,1,"舟"],[12169,1,"艮"],[12170,1,"色"],[12171,1,"艸"],[12172,1,"虍"],[12173,1,"虫"],[12174,1,"血"],[12175,1,"行"],[12176,1,"衣"],[12177,1,"襾"],[12178,1,"見"],[12179,1,"角"],[12180,1,"言"],[12181,1,"谷"],[12182,1,"豆"],[12183,1,"豕"],[12184,1,"豸"],[12185,1,"貝"],[12186,1,"赤"],[12187,1,"走"],[12188,1,"足"],[12189,1,"身"],[12190,1,"車"],[12191,1,"辛"],[12192,1,"辰"],[12193,1,"辵"],[12194,1,"邑"],[12195,1,"酉"],[12196,1,"釆"],[12197,1,"里"],[12198,1,"金"],[12199,1,"長"],[12200,1,"門"],[12201,1,"阜"],[12202,1,"隶"],[12203,1,"隹"],[12204,1,"雨"],[12205,1,"靑"],[12206,1,"非"],[12207,1,"面"],[12208,1,"革"],[12209,1,"韋"],[12210,1,"韭"],[12211,1,"音"],[12212,1,"頁"],[12213,1,"風"],[12214,1,"飛"],[12215,1,"食"],[12216,1,"首"],[12217,1,"香"],[12218,1,"馬"],[12219,1,"骨"],[12220,1,"高"],[12221,1,"髟"],[12222,1,"鬥"],[12223,1,"鬯"],[12224,1,"鬲"],[12225,1,"鬼"],[12226,1,"魚"],[12227,1,"鳥"],[12228,1,"鹵"],[12229,1,"鹿"],[12230,1,"麥"],[12231,1,"麻"],[12232,1,"黃"],[12233,1,"黍"],[12234,1,"黑"],[12235,1,"黹"],[12236,1,"黽"],[12237,1,"鼎"],[12238,1,"鼓"],[12239,1,"鼠"],[12240,1,"鼻"],[12241,1,"齊"],[12242,1,"齒"],[12243,1,"龍"],[12244,1,"龜"],[12245,1,"龠"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"〒"],[12343,2],[12344,1,"十"],[12345,1,"卄"],[12346,1,"卅"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," ゙"],[12444,5," ゚"],[[12445,12446],2],[12447,1,"より"],[12448,2],[[12449,12542],2],[12543,1,"コト"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"ᄀ"],[12594,1,"ᄁ"],[12595,1,"ᆪ"],[12596,1,"ᄂ"],[12597,1,"ᆬ"],[12598,1,"ᆭ"],[12599,1,"ᄃ"],[12600,1,"ᄄ"],[12601,1,"ᄅ"],[12602,1,"ᆰ"],[12603,1,"ᆱ"],[12604,1,"ᆲ"],[12605,1,"ᆳ"],[12606,1,"ᆴ"],[12607,1,"ᆵ"],[12608,1,"ᄚ"],[12609,1,"ᄆ"],[12610,1,"ᄇ"],[12611,1,"ᄈ"],[12612,1,"ᄡ"],[12613,1,"ᄉ"],[12614,1,"ᄊ"],[12615,1,"ᄋ"],[12616,1,"ᄌ"],[12617,1,"ᄍ"],[12618,1,"ᄎ"],[12619,1,"ᄏ"],[12620,1,"ᄐ"],[12621,1,"ᄑ"],[12622,1,"ᄒ"],[12623,1,"ᅡ"],[12624,1,"ᅢ"],[12625,1,"ᅣ"],[12626,1,"ᅤ"],[12627,1,"ᅥ"],[12628,1,"ᅦ"],[12629,1,"ᅧ"],[12630,1,"ᅨ"],[12631,1,"ᅩ"],[12632,1,"ᅪ"],[12633,1,"ᅫ"],[12634,1,"ᅬ"],[12635,1,"ᅭ"],[12636,1,"ᅮ"],[12637,1,"ᅯ"],[12638,1,"ᅰ"],[12639,1,"ᅱ"],[12640,1,"ᅲ"],[12641,1,"ᅳ"],[12642,1,"ᅴ"],[12643,1,"ᅵ"],[12644,3],[12645,1,"ᄔ"],[12646,1,"ᄕ"],[12647,1,"ᇇ"],[12648,1,"ᇈ"],[12649,1,"ᇌ"],[12650,1,"ᇎ"],[12651,1,"ᇓ"],[12652,1,"ᇗ"],[12653,1,"ᇙ"],[12654,1,"ᄜ"],[12655,1,"ᇝ"],[12656,1,"ᇟ"],[12657,1,"ᄝ"],[12658,1,"ᄞ"],[12659,1,"ᄠ"],[12660,1,"ᄢ"],[12661,1,"ᄣ"],[12662,1,"ᄧ"],[12663,1,"ᄩ"],[12664,1,"ᄫ"],[12665,1,"ᄬ"],[12666,1,"ᄭ"],[12667,1,"ᄮ"],[12668,1,"ᄯ"],[12669,1,"ᄲ"],[12670,1,"ᄶ"],[12671,1,"ᅀ"],[12672,1,"ᅇ"],[12673,1,"ᅌ"],[12674,1,"ᇱ"],[12675,1,"ᇲ"],[12676,1,"ᅗ"],[12677,1,"ᅘ"],[12678,1,"ᅙ"],[12679,1,"ᆄ"],[12680,1,"ᆅ"],[12681,1,"ᆈ"],[12682,1,"ᆑ"],[12683,1,"ᆒ"],[12684,1,"ᆔ"],[12685,1,"ᆞ"],[12686,1,"ᆡ"],[12687,3],[[12688,12689],2],[12690,1,"一"],[12691,1,"二"],[12692,1,"三"],[12693,1,"四"],[12694,1,"上"],[12695,1,"中"],[12696,1,"下"],[12697,1,"甲"],[12698,1,"乙"],[12699,1,"丙"],[12700,1,"丁"],[12701,1,"天"],[12702,1,"地"],[12703,1,"人"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(ᄀ)"],[12801,5,"(ᄂ)"],[12802,5,"(ᄃ)"],[12803,5,"(ᄅ)"],[12804,5,"(ᄆ)"],[12805,5,"(ᄇ)"],[12806,5,"(ᄉ)"],[12807,5,"(ᄋ)"],[12808,5,"(ᄌ)"],[12809,5,"(ᄎ)"],[12810,5,"(ᄏ)"],[12811,5,"(ᄐ)"],[12812,5,"(ᄑ)"],[12813,5,"(ᄒ)"],[12814,5,"(가)"],[12815,5,"(나)"],[12816,5,"(다)"],[12817,5,"(라)"],[12818,5,"(마)"],[12819,5,"(바)"],[12820,5,"(사)"],[12821,5,"(아)"],[12822,5,"(자)"],[12823,5,"(차)"],[12824,5,"(카)"],[12825,5,"(타)"],[12826,5,"(파)"],[12827,5,"(하)"],[12828,5,"(주)"],[12829,5,"(오전)"],[12830,5,"(오후)"],[12831,3],[12832,5,"(一)"],[12833,5,"(二)"],[12834,5,"(三)"],[12835,5,"(四)"],[12836,5,"(五)"],[12837,5,"(六)"],[12838,5,"(七)"],[12839,5,"(八)"],[12840,5,"(九)"],[12841,5,"(十)"],[12842,5,"(月)"],[12843,5,"(火)"],[12844,5,"(水)"],[12845,5,"(木)"],[12846,5,"(金)"],[12847,5,"(土)"],[12848,5,"(日)"],[12849,5,"(株)"],[12850,5,"(有)"],[12851,5,"(社)"],[12852,5,"(名)"],[12853,5,"(特)"],[12854,5,"(財)"],[12855,5,"(祝)"],[12856,5,"(労)"],[12857,5,"(代)"],[12858,5,"(呼)"],[12859,5,"(学)"],[12860,5,"(監)"],[12861,5,"(企)"],[12862,5,"(資)"],[12863,5,"(協)"],[12864,5,"(祭)"],[12865,5,"(休)"],[12866,5,"(自)"],[12867,5,"(至)"],[12868,1,"問"],[12869,1,"幼"],[12870,1,"文"],[12871,1,"箏"],[[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,"ᄀ"],[12897,1,"ᄂ"],[12898,1,"ᄃ"],[12899,1,"ᄅ"],[12900,1,"ᄆ"],[12901,1,"ᄇ"],[12902,1,"ᄉ"],[12903,1,"ᄋ"],[12904,1,"ᄌ"],[12905,1,"ᄎ"],[12906,1,"ᄏ"],[12907,1,"ᄐ"],[12908,1,"ᄑ"],[12909,1,"ᄒ"],[12910,1,"가"],[12911,1,"나"],[12912,1,"다"],[12913,1,"라"],[12914,1,"마"],[12915,1,"바"],[12916,1,"사"],[12917,1,"아"],[12918,1,"자"],[12919,1,"차"],[12920,1,"카"],[12921,1,"타"],[12922,1,"파"],[12923,1,"하"],[12924,1,"참고"],[12925,1,"주의"],[12926,1,"우"],[12927,2],[12928,1,"一"],[12929,1,"二"],[12930,1,"三"],[12931,1,"四"],[12932,1,"五"],[12933,1,"六"],[12934,1,"七"],[12935,1,"八"],[12936,1,"九"],[12937,1,"十"],[12938,1,"月"],[12939,1,"火"],[12940,1,"水"],[12941,1,"木"],[12942,1,"金"],[12943,1,"土"],[12944,1,"日"],[12945,1,"株"],[12946,1,"有"],[12947,1,"社"],[12948,1,"名"],[12949,1,"特"],[12950,1,"財"],[12951,1,"祝"],[12952,1,"労"],[12953,1,"秘"],[12954,1,"男"],[12955,1,"女"],[12956,1,"適"],[12957,1,"優"],[12958,1,"印"],[12959,1,"注"],[12960,1,"項"],[12961,1,"休"],[12962,1,"写"],[12963,1,"正"],[12964,1,"上"],[12965,1,"中"],[12966,1,"下"],[12967,1,"左"],[12968,1,"右"],[12969,1,"医"],[12970,1,"宗"],[12971,1,"学"],[12972,1,"監"],[12973,1,"企"],[12974,1,"資"],[12975,1,"協"],[12976,1,"夜"],[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月"],[12993,1,"2月"],[12994,1,"3月"],[12995,1,"4月"],[12996,1,"5月"],[12997,1,"6月"],[12998,1,"7月"],[12999,1,"8月"],[13000,1,"9月"],[13001,1,"10月"],[13002,1,"11月"],[13003,1,"12月"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"ア"],[13009,1,"イ"],[13010,1,"ウ"],[13011,1,"エ"],[13012,1,"オ"],[13013,1,"カ"],[13014,1,"キ"],[13015,1,"ク"],[13016,1,"ケ"],[13017,1,"コ"],[13018,1,"サ"],[13019,1,"シ"],[13020,1,"ス"],[13021,1,"セ"],[13022,1,"ソ"],[13023,1,"タ"],[13024,1,"チ"],[13025,1,"ツ"],[13026,1,"テ"],[13027,1,"ト"],[13028,1,"ナ"],[13029,1,"ニ"],[13030,1,"ヌ"],[13031,1,"ネ"],[13032,1,"ノ"],[13033,1,"ハ"],[13034,1,"ヒ"],[13035,1,"フ"],[13036,1,"ヘ"],[13037,1,"ホ"],[13038,1,"マ"],[13039,1,"ミ"],[13040,1,"ム"],[13041,1,"メ"],[13042,1,"モ"],[13043,1,"ヤ"],[13044,1,"ユ"],[13045,1,"ヨ"],[13046,1,"ラ"],[13047,1,"リ"],[13048,1,"ル"],[13049,1,"レ"],[13050,1,"ロ"],[13051,1,"ワ"],[13052,1,"ヰ"],[13053,1,"ヱ"],[13054,1,"ヲ"],[13055,1,"令和"],[13056,1,"アパート"],[13057,1,"アルファ"],[13058,1,"アンペア"],[13059,1,"アール"],[13060,1,"イニング"],[13061,1,"インチ"],[13062,1,"ウォン"],[13063,1,"エスクード"],[13064,1,"エーカー"],[13065,1,"オンス"],[13066,1,"オーム"],[13067,1,"カイリ"],[13068,1,"カラット"],[13069,1,"カロリー"],[13070,1,"ガロン"],[13071,1,"ガンマ"],[13072,1,"ギガ"],[13073,1,"ギニー"],[13074,1,"キュリー"],[13075,1,"ギルダー"],[13076,1,"キロ"],[13077,1,"キログラム"],[13078,1,"キロメートル"],[13079,1,"キロワット"],[13080,1,"グラム"],[13081,1,"グラムトン"],[13082,1,"クルゼイロ"],[13083,1,"クローネ"],[13084,1,"ケース"],[13085,1,"コルナ"],[13086,1,"コーポ"],[13087,1,"サイクル"],[13088,1,"サンチーム"],[13089,1,"シリング"],[13090,1,"センチ"],[13091,1,"セント"],[13092,1,"ダース"],[13093,1,"デシ"],[13094,1,"ドル"],[13095,1,"トン"],[13096,1,"ナノ"],[13097,1,"ノット"],[13098,1,"ハイツ"],[13099,1,"パーセント"],[13100,1,"パーツ"],[13101,1,"バーレル"],[13102,1,"ピアストル"],[13103,1,"ピクル"],[13104,1,"ピコ"],[13105,1,"ビル"],[13106,1,"ファラッド"],[13107,1,"フィート"],[13108,1,"ブッシェル"],[13109,1,"フラン"],[13110,1,"ヘクタール"],[13111,1,"ペソ"],[13112,1,"ペニヒ"],[13113,1,"ヘルツ"],[13114,1,"ペンス"],[13115,1,"ページ"],[13116,1,"ベータ"],[13117,1,"ポイント"],[13118,1,"ボルト"],[13119,1,"ホン"],[13120,1,"ポンド"],[13121,1,"ホール"],[13122,1,"ホーン"],[13123,1,"マイクロ"],[13124,1,"マイル"],[13125,1,"マッハ"],[13126,1,"マルク"],[13127,1,"マンション"],[13128,1,"ミクロン"],[13129,1,"ミリ"],[13130,1,"ミリバール"],[13131,1,"メガ"],[13132,1,"メガトン"],[13133,1,"メートル"],[13134,1,"ヤード"],[13135,1,"ヤール"],[13136,1,"ユアン"],[13137,1,"リットル"],[13138,1,"リラ"],[13139,1,"ルピー"],[13140,1,"ルーブル"],[13141,1,"レム"],[13142,1,"レントゲン"],[13143,1,"ワット"],[13144,1,"0点"],[13145,1,"1点"],[13146,1,"2点"],[13147,1,"3点"],[13148,1,"4点"],[13149,1,"5点"],[13150,1,"6点"],[13151,1,"7点"],[13152,1,"8点"],[13153,1,"9点"],[13154,1,"10点"],[13155,1,"11点"],[13156,1,"12点"],[13157,1,"13点"],[13158,1,"14点"],[13159,1,"15点"],[13160,1,"16点"],[13161,1,"17点"],[13162,1,"18点"],[13163,1,"19点"],[13164,1,"20点"],[13165,1,"21点"],[13166,1,"22点"],[13167,1,"23点"],[13168,1,"24点"],[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,"平成"],[13180,1,"昭和"],[13181,1,"大正"],[13182,1,"明治"],[13183,1,"株式会社"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"μa"],[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,"μf"],[13197,1,"μg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"μl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"μm"],[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∕s"],[13224,1,"m∕s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad∕s"],[13231,1,"rad∕s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"μs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"μv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"μw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"kω"],[13249,1,"mω"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c∕kg"],[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∕m"],[13279,1,"a∕m"],[13280,1,"1日"],[13281,1,"2日"],[13282,1,"3日"],[13283,1,"4日"],[13284,1,"5日"],[13285,1,"6日"],[13286,1,"7日"],[13287,1,"8日"],[13288,1,"9日"],[13289,1,"10日"],[13290,1,"11日"],[13291,1,"12日"],[13292,1,"13日"],[13293,1,"14日"],[13294,1,"15日"],[13295,1,"16日"],[13296,1,"17日"],[13297,1,"18日"],[13298,1,"19日"],[13299,1,"20日"],[13300,1,"21日"],[13301,1,"22日"],[13302,1,"23日"],[13303,1,"24日"],[13304,1,"25日"],[13305,1,"26日"],[13306,1,"27日"],[13307,1,"28日"],[13308,1,"29日"],[13309,1,"30日"],[13310,1,"31日"],[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,"ꙁ"],[42561,2],[42562,1,"ꙃ"],[42563,2],[42564,1,"ꙅ"],[42565,2],[42566,1,"ꙇ"],[42567,2],[42568,1,"ꙉ"],[42569,2],[42570,1,"ꙋ"],[42571,2],[42572,1,"ꙍ"],[42573,2],[42574,1,"ꙏ"],[42575,2],[42576,1,"ꙑ"],[42577,2],[42578,1,"ꙓ"],[42579,2],[42580,1,"ꙕ"],[42581,2],[42582,1,"ꙗ"],[42583,2],[42584,1,"ꙙ"],[42585,2],[42586,1,"ꙛ"],[42587,2],[42588,1,"ꙝ"],[42589,2],[42590,1,"ꙟ"],[42591,2],[42592,1,"ꙡ"],[42593,2],[42594,1,"ꙣ"],[42595,2],[42596,1,"ꙥ"],[42597,2],[42598,1,"ꙧ"],[42599,2],[42600,1,"ꙩ"],[42601,2],[42602,1,"ꙫ"],[42603,2],[42604,1,"ꙭ"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"ꚁ"],[42625,2],[42626,1,"ꚃ"],[42627,2],[42628,1,"ꚅ"],[42629,2],[42630,1,"ꚇ"],[42631,2],[42632,1,"ꚉ"],[42633,2],[42634,1,"ꚋ"],[42635,2],[42636,1,"ꚍ"],[42637,2],[42638,1,"ꚏ"],[42639,2],[42640,1,"ꚑ"],[42641,2],[42642,1,"ꚓ"],[42643,2],[42644,1,"ꚕ"],[42645,2],[42646,1,"ꚗ"],[42647,2],[42648,1,"ꚙ"],[42649,2],[42650,1,"ꚛ"],[42651,2],[42652,1,"ъ"],[42653,1,"ь"],[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,"ꜣ"],[42787,2],[42788,1,"ꜥ"],[42789,2],[42790,1,"ꜧ"],[42791,2],[42792,1,"ꜩ"],[42793,2],[42794,1,"ꜫ"],[42795,2],[42796,1,"ꜭ"],[42797,2],[42798,1,"ꜯ"],[[42799,42801],2],[42802,1,"ꜳ"],[42803,2],[42804,1,"ꜵ"],[42805,2],[42806,1,"ꜷ"],[42807,2],[42808,1,"ꜹ"],[42809,2],[42810,1,"ꜻ"],[42811,2],[42812,1,"ꜽ"],[42813,2],[42814,1,"ꜿ"],[42815,2],[42816,1,"ꝁ"],[42817,2],[42818,1,"ꝃ"],[42819,2],[42820,1,"ꝅ"],[42821,2],[42822,1,"ꝇ"],[42823,2],[42824,1,"ꝉ"],[42825,2],[42826,1,"ꝋ"],[42827,2],[42828,1,"ꝍ"],[42829,2],[42830,1,"ꝏ"],[42831,2],[42832,1,"ꝑ"],[42833,2],[42834,1,"ꝓ"],[42835,2],[42836,1,"ꝕ"],[42837,2],[42838,1,"ꝗ"],[42839,2],[42840,1,"ꝙ"],[42841,2],[42842,1,"ꝛ"],[42843,2],[42844,1,"ꝝ"],[42845,2],[42846,1,"ꝟ"],[42847,2],[42848,1,"ꝡ"],[42849,2],[42850,1,"ꝣ"],[42851,2],[42852,1,"ꝥ"],[42853,2],[42854,1,"ꝧ"],[42855,2],[42856,1,"ꝩ"],[42857,2],[42858,1,"ꝫ"],[42859,2],[42860,1,"ꝭ"],[42861,2],[42862,1,"ꝯ"],[42863,2],[42864,1,"ꝯ"],[[42865,42872],2],[42873,1,"ꝺ"],[42874,2],[42875,1,"ꝼ"],[42876,2],[42877,1,"ᵹ"],[42878,1,"ꝿ"],[42879,2],[42880,1,"ꞁ"],[42881,2],[42882,1,"ꞃ"],[42883,2],[42884,1,"ꞅ"],[42885,2],[42886,1,"ꞇ"],[[42887,42888],2],[[42889,42890],2],[42891,1,"ꞌ"],[42892,2],[42893,1,"ɥ"],[42894,2],[42895,2],[42896,1,"ꞑ"],[42897,2],[42898,1,"ꞓ"],[42899,2],[[42900,42901],2],[42902,1,"ꞗ"],[42903,2],[42904,1,"ꞙ"],[42905,2],[42906,1,"ꞛ"],[42907,2],[42908,1,"ꞝ"],[42909,2],[42910,1,"ꞟ"],[42911,2],[42912,1,"ꞡ"],[42913,2],[42914,1,"ꞣ"],[42915,2],[42916,1,"ꞥ"],[42917,2],[42918,1,"ꞧ"],[42919,2],[42920,1,"ꞩ"],[42921,2],[42922,1,"ɦ"],[42923,1,"ɜ"],[42924,1,"ɡ"],[42925,1,"ɬ"],[42926,1,"ɪ"],[42927,2],[42928,1,"ʞ"],[42929,1,"ʇ"],[42930,1,"ʝ"],[42931,1,"ꭓ"],[42932,1,"ꞵ"],[42933,2],[42934,1,"ꞷ"],[42935,2],[42936,1,"ꞹ"],[42937,2],[42938,1,"ꞻ"],[42939,2],[42940,1,"ꞽ"],[42941,2],[42942,1,"ꞿ"],[42943,2],[42944,1,"ꟁ"],[42945,2],[42946,1,"ꟃ"],[42947,2],[42948,1,"ꞔ"],[42949,1,"ʂ"],[42950,1,"ᶎ"],[42951,1,"ꟈ"],[42952,2],[42953,1,"ꟊ"],[42954,2],[[42955,42959],3],[42960,1,"ꟑ"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"ꟗ"],[42967,2],[42968,1,"ꟙ"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"ꟶ"],[42998,2],[42999,2],[43000,1,"ħ"],[43001,1,"œ"],[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,"ꜧ"],[43869,1,"ꬷ"],[43870,1,"ɫ"],[43871,1,"ꭒ"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"ʍ"],[[43882,43883],2],[[43884,43887],3],[43888,1,"Ꭰ"],[43889,1,"Ꭱ"],[43890,1,"Ꭲ"],[43891,1,"Ꭳ"],[43892,1,"Ꭴ"],[43893,1,"Ꭵ"],[43894,1,"Ꭶ"],[43895,1,"Ꭷ"],[43896,1,"Ꭸ"],[43897,1,"Ꭹ"],[43898,1,"Ꭺ"],[43899,1,"Ꭻ"],[43900,1,"Ꭼ"],[43901,1,"Ꭽ"],[43902,1,"Ꭾ"],[43903,1,"Ꭿ"],[43904,1,"Ꮀ"],[43905,1,"Ꮁ"],[43906,1,"Ꮂ"],[43907,1,"Ꮃ"],[43908,1,"Ꮄ"],[43909,1,"Ꮅ"],[43910,1,"Ꮆ"],[43911,1,"Ꮇ"],[43912,1,"Ꮈ"],[43913,1,"Ꮉ"],[43914,1,"Ꮊ"],[43915,1,"Ꮋ"],[43916,1,"Ꮌ"],[43917,1,"Ꮍ"],[43918,1,"Ꮎ"],[43919,1,"Ꮏ"],[43920,1,"Ꮐ"],[43921,1,"Ꮑ"],[43922,1,"Ꮒ"],[43923,1,"Ꮓ"],[43924,1,"Ꮔ"],[43925,1,"Ꮕ"],[43926,1,"Ꮖ"],[43927,1,"Ꮗ"],[43928,1,"Ꮘ"],[43929,1,"Ꮙ"],[43930,1,"Ꮚ"],[43931,1,"Ꮛ"],[43932,1,"Ꮜ"],[43933,1,"Ꮝ"],[43934,1,"Ꮞ"],[43935,1,"Ꮟ"],[43936,1,"Ꮠ"],[43937,1,"Ꮡ"],[43938,1,"Ꮢ"],[43939,1,"Ꮣ"],[43940,1,"Ꮤ"],[43941,1,"Ꮥ"],[43942,1,"Ꮦ"],[43943,1,"Ꮧ"],[43944,1,"Ꮨ"],[43945,1,"Ꮩ"],[43946,1,"Ꮪ"],[43947,1,"Ꮫ"],[43948,1,"Ꮬ"],[43949,1,"Ꮭ"],[43950,1,"Ꮮ"],[43951,1,"Ꮯ"],[43952,1,"Ꮰ"],[43953,1,"Ꮱ"],[43954,1,"Ꮲ"],[43955,1,"Ꮳ"],[43956,1,"Ꮴ"],[43957,1,"Ꮵ"],[43958,1,"Ꮶ"],[43959,1,"Ꮷ"],[43960,1,"Ꮸ"],[43961,1,"Ꮹ"],[43962,1,"Ꮺ"],[43963,1,"Ꮻ"],[43964,1,"Ꮼ"],[43965,1,"Ꮽ"],[43966,1,"Ꮾ"],[43967,1,"Ꮿ"],[[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,"豈"],[63745,1,"更"],[63746,1,"車"],[63747,1,"賈"],[63748,1,"滑"],[63749,1,"串"],[63750,1,"句"],[[63751,63752],1,"龜"],[63753,1,"契"],[63754,1,"金"],[63755,1,"喇"],[63756,1,"奈"],[63757,1,"懶"],[63758,1,"癩"],[63759,1,"羅"],[63760,1,"蘿"],[63761,1,"螺"],[63762,1,"裸"],[63763,1,"邏"],[63764,1,"樂"],[63765,1,"洛"],[63766,1,"烙"],[63767,1,"珞"],[63768,1,"落"],[63769,1,"酪"],[63770,1,"駱"],[63771,1,"亂"],[63772,1,"卵"],[63773,1,"欄"],[63774,1,"爛"],[63775,1,"蘭"],[63776,1,"鸞"],[63777,1,"嵐"],[63778,1,"濫"],[63779,1,"藍"],[63780,1,"襤"],[63781,1,"拉"],[63782,1,"臘"],[63783,1,"蠟"],[63784,1,"廊"],[63785,1,"朗"],[63786,1,"浪"],[63787,1,"狼"],[63788,1,"郎"],[63789,1,"來"],[63790,1,"冷"],[63791,1,"勞"],[63792,1,"擄"],[63793,1,"櫓"],[63794,1,"爐"],[63795,1,"盧"],[63796,1,"老"],[63797,1,"蘆"],[63798,1,"虜"],[63799,1,"路"],[63800,1,"露"],[63801,1,"魯"],[63802,1,"鷺"],[63803,1,"碌"],[63804,1,"祿"],[63805,1,"綠"],[63806,1,"菉"],[63807,1,"錄"],[63808,1,"鹿"],[63809,1,"論"],[63810,1,"壟"],[63811,1,"弄"],[63812,1,"籠"],[63813,1,"聾"],[63814,1,"牢"],[63815,1,"磊"],[63816,1,"賂"],[63817,1,"雷"],[63818,1,"壘"],[63819,1,"屢"],[63820,1,"樓"],[63821,1,"淚"],[63822,1,"漏"],[63823,1,"累"],[63824,1,"縷"],[63825,1,"陋"],[63826,1,"勒"],[63827,1,"肋"],[63828,1,"凜"],[63829,1,"凌"],[63830,1,"稜"],[63831,1,"綾"],[63832,1,"菱"],[63833,1,"陵"],[63834,1,"讀"],[63835,1,"拏"],[63836,1,"樂"],[63837,1,"諾"],[63838,1,"丹"],[63839,1,"寧"],[63840,1,"怒"],[63841,1,"率"],[63842,1,"異"],[63843,1,"北"],[63844,1,"磻"],[63845,1,"便"],[63846,1,"復"],[63847,1,"不"],[63848,1,"泌"],[63849,1,"數"],[63850,1,"索"],[63851,1,"參"],[63852,1,"塞"],[63853,1,"省"],[63854,1,"葉"],[63855,1,"說"],[63856,1,"殺"],[63857,1,"辰"],[63858,1,"沈"],[63859,1,"拾"],[63860,1,"若"],[63861,1,"掠"],[63862,1,"略"],[63863,1,"亮"],[63864,1,"兩"],[63865,1,"凉"],[63866,1,"梁"],[63867,1,"糧"],[63868,1,"良"],[63869,1,"諒"],[63870,1,"量"],[63871,1,"勵"],[63872,1,"呂"],[63873,1,"女"],[63874,1,"廬"],[63875,1,"旅"],[63876,1,"濾"],[63877,1,"礪"],[63878,1,"閭"],[63879,1,"驪"],[63880,1,"麗"],[63881,1,"黎"],[63882,1,"力"],[63883,1,"曆"],[63884,1,"歷"],[63885,1,"轢"],[63886,1,"年"],[63887,1,"憐"],[63888,1,"戀"],[63889,1,"撚"],[63890,1,"漣"],[63891,1,"煉"],[63892,1,"璉"],[63893,1,"秊"],[63894,1,"練"],[63895,1,"聯"],[63896,1,"輦"],[63897,1,"蓮"],[63898,1,"連"],[63899,1,"鍊"],[63900,1,"列"],[63901,1,"劣"],[63902,1,"咽"],[63903,1,"烈"],[63904,1,"裂"],[63905,1,"說"],[63906,1,"廉"],[63907,1,"念"],[63908,1,"捻"],[63909,1,"殮"],[63910,1,"簾"],[63911,1,"獵"],[63912,1,"令"],[63913,1,"囹"],[63914,1,"寧"],[63915,1,"嶺"],[63916,1,"怜"],[63917,1,"玲"],[63918,1,"瑩"],[63919,1,"羚"],[63920,1,"聆"],[63921,1,"鈴"],[63922,1,"零"],[63923,1,"靈"],[63924,1,"領"],[63925,1,"例"],[63926,1,"禮"],[63927,1,"醴"],[63928,1,"隸"],[63929,1,"惡"],[63930,1,"了"],[63931,1,"僚"],[63932,1,"寮"],[63933,1,"尿"],[63934,1,"料"],[63935,1,"樂"],[63936,1,"燎"],[63937,1,"療"],[63938,1,"蓼"],[63939,1,"遼"],[63940,1,"龍"],[63941,1,"暈"],[63942,1,"阮"],[63943,1,"劉"],[63944,1,"杻"],[63945,1,"柳"],[63946,1,"流"],[63947,1,"溜"],[63948,1,"琉"],[63949,1,"留"],[63950,1,"硫"],[63951,1,"紐"],[63952,1,"類"],[63953,1,"六"],[63954,1,"戮"],[63955,1,"陸"],[63956,1,"倫"],[63957,1,"崙"],[63958,1,"淪"],[63959,1,"輪"],[63960,1,"律"],[63961,1,"慄"],[63962,1,"栗"],[63963,1,"率"],[63964,1,"隆"],[63965,1,"利"],[63966,1,"吏"],[63967,1,"履"],[63968,1,"易"],[63969,1,"李"],[63970,1,"梨"],[63971,1,"泥"],[63972,1,"理"],[63973,1,"痢"],[63974,1,"罹"],[63975,1,"裏"],[63976,1,"裡"],[63977,1,"里"],[63978,1,"離"],[63979,1,"匿"],[63980,1,"溺"],[63981,1,"吝"],[63982,1,"燐"],[63983,1,"璘"],[63984,1,"藺"],[63985,1,"隣"],[63986,1,"鱗"],[63987,1,"麟"],[63988,1,"林"],[63989,1,"淋"],[63990,1,"臨"],[63991,1,"立"],[63992,1,"笠"],[63993,1,"粒"],[63994,1,"狀"],[63995,1,"炙"],[63996,1,"識"],[63997,1,"什"],[63998,1,"茶"],[63999,1,"刺"],[64000,1,"切"],[64001,1,"度"],[64002,1,"拓"],[64003,1,"糖"],[64004,1,"宅"],[64005,1,"洞"],[64006,1,"暴"],[64007,1,"輻"],[64008,1,"行"],[64009,1,"降"],[64010,1,"見"],[64011,1,"廓"],[64012,1,"兀"],[64013,1,"嗀"],[[64014,64015],2],[64016,1,"塚"],[64017,2],[64018,1,"晴"],[[64019,64020],2],[64021,1,"凞"],[64022,1,"猪"],[64023,1,"益"],[64024,1,"礼"],[64025,1,"神"],[64026,1,"祥"],[64027,1,"福"],[64028,1,"靖"],[64029,1,"精"],[64030,1,"羽"],[64031,2],[64032,1,"蘒"],[64033,2],[64034,1,"諸"],[[64035,64036],2],[64037,1,"逸"],[64038,1,"都"],[[64039,64041],2],[64042,1,"飯"],[64043,1,"飼"],[64044,1,"館"],[64045,1,"鶴"],[64046,1,"郞"],[64047,1,"隷"],[64048,1,"侮"],[64049,1,"僧"],[64050,1,"免"],[64051,1,"勉"],[64052,1,"勤"],[64053,1,"卑"],[64054,1,"喝"],[64055,1,"嘆"],[64056,1,"器"],[64057,1,"塀"],[64058,1,"墨"],[64059,1,"層"],[64060,1,"屮"],[64061,1,"悔"],[64062,1,"慨"],[64063,1,"憎"],[64064,1,"懲"],[64065,1,"敏"],[64066,1,"既"],[64067,1,"暑"],[64068,1,"梅"],[64069,1,"海"],[64070,1,"渚"],[64071,1,"漢"],[64072,1,"煮"],[64073,1,"爫"],[64074,1,"琢"],[64075,1,"碑"],[64076,1,"社"],[64077,1,"祉"],[64078,1,"祈"],[64079,1,"祐"],[64080,1,"祖"],[64081,1,"祝"],[64082,1,"禍"],[64083,1,"禎"],[64084,1,"穀"],[64085,1,"突"],[64086,1,"節"],[64087,1,"練"],[64088,1,"縉"],[64089,1,"繁"],[64090,1,"署"],[64091,1,"者"],[64092,1,"臭"],[[64093,64094],1,"艹"],[64095,1,"著"],[64096,1,"褐"],[64097,1,"視"],[64098,1,"謁"],[64099,1,"謹"],[64100,1,"賓"],[64101,1,"贈"],[64102,1,"辶"],[64103,1,"逸"],[64104,1,"難"],[64105,1,"響"],[64106,1,"頻"],[64107,1,"恵"],[64108,1,"𤋮"],[64109,1,"舘"],[[64110,64111],3],[64112,1,"並"],[64113,1,"况"],[64114,1,"全"],[64115,1,"侀"],[64116,1,"充"],[64117,1,"冀"],[64118,1,"勇"],[64119,1,"勺"],[64120,1,"喝"],[64121,1,"啕"],[64122,1,"喙"],[64123,1,"嗢"],[64124,1,"塚"],[64125,1,"墳"],[64126,1,"奄"],[64127,1,"奔"],[64128,1,"婢"],[64129,1,"嬨"],[64130,1,"廒"],[64131,1,"廙"],[64132,1,"彩"],[64133,1,"徭"],[64134,1,"惘"],[64135,1,"慎"],[64136,1,"愈"],[64137,1,"憎"],[64138,1,"慠"],[64139,1,"懲"],[64140,1,"戴"],[64141,1,"揄"],[64142,1,"搜"],[64143,1,"摒"],[64144,1,"敖"],[64145,1,"晴"],[64146,1,"朗"],[64147,1,"望"],[64148,1,"杖"],[64149,1,"歹"],[64150,1,"殺"],[64151,1,"流"],[64152,1,"滛"],[64153,1,"滋"],[64154,1,"漢"],[64155,1,"瀞"],[64156,1,"煮"],[64157,1,"瞧"],[64158,1,"爵"],[64159,1,"犯"],[64160,1,"猪"],[64161,1,"瑱"],[64162,1,"甆"],[64163,1,"画"],[64164,1,"瘝"],[64165,1,"瘟"],[64166,1,"益"],[64167,1,"盛"],[64168,1,"直"],[64169,1,"睊"],[64170,1,"着"],[64171,1,"磌"],[64172,1,"窱"],[64173,1,"節"],[64174,1,"类"],[64175,1,"絛"],[64176,1,"練"],[64177,1,"缾"],[64178,1,"者"],[64179,1,"荒"],[64180,1,"華"],[64181,1,"蝹"],[64182,1,"襁"],[64183,1,"覆"],[64184,1,"視"],[64185,1,"調"],[64186,1,"諸"],[64187,1,"請"],[64188,1,"謁"],[64189,1,"諾"],[64190,1,"諭"],[64191,1,"謹"],[64192,1,"變"],[64193,1,"贈"],[64194,1,"輸"],[64195,1,"遲"],[64196,1,"醙"],[64197,1,"鉶"],[64198,1,"陼"],[64199,1,"難"],[64200,1,"靖"],[64201,1,"韛"],[64202,1,"響"],[64203,1,"頋"],[64204,1,"頻"],[64205,1,"鬒"],[64206,1,"龜"],[64207,1,"𢡊"],[64208,1,"𢡄"],[64209,1,"𣏕"],[64210,1,"㮝"],[64211,1,"䀘"],[64212,1,"䀹"],[64213,1,"𥉉"],[64214,1,"𥳐"],[64215,1,"𧻓"],[64216,1,"齃"],[64217,1,"龎"],[[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,"մն"],[64276,1,"մե"],[64277,1,"մի"],[64278,1,"վն"],[64279,1,"մխ"],[[64280,64284],3],[64285,1,"יִ"],[64286,2],[64287,1,"ײַ"],[64288,1,"ע"],[64289,1,"א"],[64290,1,"ד"],[64291,1,"ה"],[64292,1,"כ"],[64293,1,"ל"],[64294,1,"ם"],[64295,1,"ר"],[64296,1,"ת"],[64297,5,"+"],[64298,1,"שׁ"],[64299,1,"שׂ"],[64300,1,"שּׁ"],[64301,1,"שּׂ"],[64302,1,"אַ"],[64303,1,"אָ"],[64304,1,"אּ"],[64305,1,"בּ"],[64306,1,"גּ"],[64307,1,"דּ"],[64308,1,"הּ"],[64309,1,"וּ"],[64310,1,"זּ"],[64311,3],[64312,1,"טּ"],[64313,1,"יּ"],[64314,1,"ךּ"],[64315,1,"כּ"],[64316,1,"לּ"],[64317,3],[64318,1,"מּ"],[64319,3],[64320,1,"נּ"],[64321,1,"סּ"],[64322,3],[64323,1,"ףּ"],[64324,1,"פּ"],[64325,3],[64326,1,"צּ"],[64327,1,"קּ"],[64328,1,"רּ"],[64329,1,"שּ"],[64330,1,"תּ"],[64331,1,"וֹ"],[64332,1,"בֿ"],[64333,1,"כֿ"],[64334,1,"פֿ"],[64335,1,"אל"],[[64336,64337],1,"ٱ"],[[64338,64341],1,"ٻ"],[[64342,64345],1,"پ"],[[64346,64349],1,"ڀ"],[[64350,64353],1,"ٺ"],[[64354,64357],1,"ٿ"],[[64358,64361],1,"ٹ"],[[64362,64365],1,"ڤ"],[[64366,64369],1,"ڦ"],[[64370,64373],1,"ڄ"],[[64374,64377],1,"ڃ"],[[64378,64381],1,"چ"],[[64382,64385],1,"ڇ"],[[64386,64387],1,"ڍ"],[[64388,64389],1,"ڌ"],[[64390,64391],1,"ڎ"],[[64392,64393],1,"ڈ"],[[64394,64395],1,"ژ"],[[64396,64397],1,"ڑ"],[[64398,64401],1,"ک"],[[64402,64405],1,"گ"],[[64406,64409],1,"ڳ"],[[64410,64413],1,"ڱ"],[[64414,64415],1,"ں"],[[64416,64419],1,"ڻ"],[[64420,64421],1,"ۀ"],[[64422,64425],1,"ہ"],[[64426,64429],1,"ھ"],[[64430,64431],1,"ے"],[[64432,64433],1,"ۓ"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"ڭ"],[[64471,64472],1,"ۇ"],[[64473,64474],1,"ۆ"],[[64475,64476],1,"ۈ"],[64477,1,"ۇٴ"],[[64478,64479],1,"ۋ"],[[64480,64481],1,"ۅ"],[[64482,64483],1,"ۉ"],[[64484,64487],1,"ې"],[[64488,64489],1,"ى"],[[64490,64491],1,"ئا"],[[64492,64493],1,"ئە"],[[64494,64495],1,"ئو"],[[64496,64497],1,"ئۇ"],[[64498,64499],1,"ئۆ"],[[64500,64501],1,"ئۈ"],[[64502,64504],1,"ئې"],[[64505,64507],1,"ئى"],[[64508,64511],1,"ی"],[64512,1,"ئج"],[64513,1,"ئح"],[64514,1,"ئم"],[64515,1,"ئى"],[64516,1,"ئي"],[64517,1,"بج"],[64518,1,"بح"],[64519,1,"بخ"],[64520,1,"بم"],[64521,1,"بى"],[64522,1,"بي"],[64523,1,"تج"],[64524,1,"تح"],[64525,1,"تخ"],[64526,1,"تم"],[64527,1,"تى"],[64528,1,"تي"],[64529,1,"ثج"],[64530,1,"ثم"],[64531,1,"ثى"],[64532,1,"ثي"],[64533,1,"جح"],[64534,1,"جم"],[64535,1,"حج"],[64536,1,"حم"],[64537,1,"خج"],[64538,1,"خح"],[64539,1,"خم"],[64540,1,"سج"],[64541,1,"سح"],[64542,1,"سخ"],[64543,1,"سم"],[64544,1,"صح"],[64545,1,"صم"],[64546,1,"ضج"],[64547,1,"ضح"],[64548,1,"ضخ"],[64549,1,"ضم"],[64550,1,"طح"],[64551,1,"طم"],[64552,1,"ظم"],[64553,1,"عج"],[64554,1,"عم"],[64555,1,"غج"],[64556,1,"غم"],[64557,1,"فج"],[64558,1,"فح"],[64559,1,"فخ"],[64560,1,"فم"],[64561,1,"فى"],[64562,1,"في"],[64563,1,"قح"],[64564,1,"قم"],[64565,1,"قى"],[64566,1,"قي"],[64567,1,"كا"],[64568,1,"كج"],[64569,1,"كح"],[64570,1,"كخ"],[64571,1,"كل"],[64572,1,"كم"],[64573,1,"كى"],[64574,1,"كي"],[64575,1,"لج"],[64576,1,"لح"],[64577,1,"لخ"],[64578,1,"لم"],[64579,1,"لى"],[64580,1,"لي"],[64581,1,"مج"],[64582,1,"مح"],[64583,1,"مخ"],[64584,1,"مم"],[64585,1,"مى"],[64586,1,"مي"],[64587,1,"نج"],[64588,1,"نح"],[64589,1,"نخ"],[64590,1,"نم"],[64591,1,"نى"],[64592,1,"ني"],[64593,1,"هج"],[64594,1,"هم"],[64595,1,"هى"],[64596,1,"هي"],[64597,1,"يج"],[64598,1,"يح"],[64599,1,"يخ"],[64600,1,"يم"],[64601,1,"يى"],[64602,1,"يي"],[64603,1,"ذٰ"],[64604,1,"رٰ"],[64605,1,"ىٰ"],[64606,5," ٌّ"],[64607,5," ٍّ"],[64608,5," َّ"],[64609,5," ُّ"],[64610,5," ِّ"],[64611,5," ّٰ"],[64612,1,"ئر"],[64613,1,"ئز"],[64614,1,"ئم"],[64615,1,"ئن"],[64616,1,"ئى"],[64617,1,"ئي"],[64618,1,"بر"],[64619,1,"بز"],[64620,1,"بم"],[64621,1,"بن"],[64622,1,"بى"],[64623,1,"بي"],[64624,1,"تر"],[64625,1,"تز"],[64626,1,"تم"],[64627,1,"تن"],[64628,1,"تى"],[64629,1,"تي"],[64630,1,"ثر"],[64631,1,"ثز"],[64632,1,"ثم"],[64633,1,"ثن"],[64634,1,"ثى"],[64635,1,"ثي"],[64636,1,"فى"],[64637,1,"في"],[64638,1,"قى"],[64639,1,"قي"],[64640,1,"كا"],[64641,1,"كل"],[64642,1,"كم"],[64643,1,"كى"],[64644,1,"كي"],[64645,1,"لم"],[64646,1,"لى"],[64647,1,"لي"],[64648,1,"ما"],[64649,1,"مم"],[64650,1,"نر"],[64651,1,"نز"],[64652,1,"نم"],[64653,1,"نن"],[64654,1,"نى"],[64655,1,"ني"],[64656,1,"ىٰ"],[64657,1,"ير"],[64658,1,"يز"],[64659,1,"يم"],[64660,1,"ين"],[64661,1,"يى"],[64662,1,"يي"],[64663,1,"ئج"],[64664,1,"ئح"],[64665,1,"ئخ"],[64666,1,"ئم"],[64667,1,"ئه"],[64668,1,"بج"],[64669,1,"بح"],[64670,1,"بخ"],[64671,1,"بم"],[64672,1,"به"],[64673,1,"تج"],[64674,1,"تح"],[64675,1,"تخ"],[64676,1,"تم"],[64677,1,"ته"],[64678,1,"ثم"],[64679,1,"جح"],[64680,1,"جم"],[64681,1,"حج"],[64682,1,"حم"],[64683,1,"خج"],[64684,1,"خم"],[64685,1,"سج"],[64686,1,"سح"],[64687,1,"سخ"],[64688,1,"سم"],[64689,1,"صح"],[64690,1,"صخ"],[64691,1,"صم"],[64692,1,"ضج"],[64693,1,"ضح"],[64694,1,"ضخ"],[64695,1,"ضم"],[64696,1,"طح"],[64697,1,"ظم"],[64698,1,"عج"],[64699,1,"عم"],[64700,1,"غج"],[64701,1,"غم"],[64702,1,"فج"],[64703,1,"فح"],[64704,1,"فخ"],[64705,1,"فم"],[64706,1,"قح"],[64707,1,"قم"],[64708,1,"كج"],[64709,1,"كح"],[64710,1,"كخ"],[64711,1,"كل"],[64712,1,"كم"],[64713,1,"لج"],[64714,1,"لح"],[64715,1,"لخ"],[64716,1,"لم"],[64717,1,"له"],[64718,1,"مج"],[64719,1,"مح"],[64720,1,"مخ"],[64721,1,"مم"],[64722,1,"نج"],[64723,1,"نح"],[64724,1,"نخ"],[64725,1,"نم"],[64726,1,"نه"],[64727,1,"هج"],[64728,1,"هم"],[64729,1,"هٰ"],[64730,1,"يج"],[64731,1,"يح"],[64732,1,"يخ"],[64733,1,"يم"],[64734,1,"يه"],[64735,1,"ئم"],[64736,1,"ئه"],[64737,1,"بم"],[64738,1,"به"],[64739,1,"تم"],[64740,1,"ته"],[64741,1,"ثم"],[64742,1,"ثه"],[64743,1,"سم"],[64744,1,"سه"],[64745,1,"شم"],[64746,1,"شه"],[64747,1,"كل"],[64748,1,"كم"],[64749,1,"لم"],[64750,1,"نم"],[64751,1,"نه"],[64752,1,"يم"],[64753,1,"يه"],[64754,1,"ـَّ"],[64755,1,"ـُّ"],[64756,1,"ـِّ"],[64757,1,"طى"],[64758,1,"طي"],[64759,1,"عى"],[64760,1,"عي"],[64761,1,"غى"],[64762,1,"غي"],[64763,1,"سى"],[64764,1,"سي"],[64765,1,"شى"],[64766,1,"شي"],[64767,1,"حى"],[64768,1,"حي"],[64769,1,"جى"],[64770,1,"جي"],[64771,1,"خى"],[64772,1,"خي"],[64773,1,"صى"],[64774,1,"صي"],[64775,1,"ضى"],[64776,1,"ضي"],[64777,1,"شج"],[64778,1,"شح"],[64779,1,"شخ"],[64780,1,"شم"],[64781,1,"شر"],[64782,1,"سر"],[64783,1,"صر"],[64784,1,"ضر"],[64785,1,"طى"],[64786,1,"طي"],[64787,1,"عى"],[64788,1,"عي"],[64789,1,"غى"],[64790,1,"غي"],[64791,1,"سى"],[64792,1,"سي"],[64793,1,"شى"],[64794,1,"شي"],[64795,1,"حى"],[64796,1,"حي"],[64797,1,"جى"],[64798,1,"جي"],[64799,1,"خى"],[64800,1,"خي"],[64801,1,"صى"],[64802,1,"صي"],[64803,1,"ضى"],[64804,1,"ضي"],[64805,1,"شج"],[64806,1,"شح"],[64807,1,"شخ"],[64808,1,"شم"],[64809,1,"شر"],[64810,1,"سر"],[64811,1,"صر"],[64812,1,"ضر"],[64813,1,"شج"],[64814,1,"شح"],[64815,1,"شخ"],[64816,1,"شم"],[64817,1,"سه"],[64818,1,"شه"],[64819,1,"طم"],[64820,1,"سج"],[64821,1,"سح"],[64822,1,"سخ"],[64823,1,"شج"],[64824,1,"شح"],[64825,1,"شخ"],[64826,1,"طم"],[64827,1,"ظم"],[[64828,64829],1,"اً"],[[64830,64831],2],[[64832,64847],2],[64848,1,"تجم"],[[64849,64850],1,"تحج"],[64851,1,"تحم"],[64852,1,"تخم"],[64853,1,"تمج"],[64854,1,"تمح"],[64855,1,"تمخ"],[[64856,64857],1,"جمح"],[64858,1,"حمي"],[64859,1,"حمى"],[64860,1,"سحج"],[64861,1,"سجح"],[64862,1,"سجى"],[[64863,64864],1,"سمح"],[64865,1,"سمج"],[[64866,64867],1,"سمم"],[[64868,64869],1,"صحح"],[64870,1,"صمم"],[[64871,64872],1,"شحم"],[64873,1,"شجي"],[[64874,64875],1,"شمخ"],[[64876,64877],1,"شمم"],[64878,1,"ضحى"],[[64879,64880],1,"ضخم"],[[64881,64882],1,"طمح"],[64883,1,"طمم"],[64884,1,"طمي"],[64885,1,"عجم"],[[64886,64887],1,"عمم"],[64888,1,"عمى"],[64889,1,"غمم"],[64890,1,"غمي"],[64891,1,"غمى"],[[64892,64893],1,"فخم"],[64894,1,"قمح"],[64895,1,"قمم"],[64896,1,"لحم"],[64897,1,"لحي"],[64898,1,"لحى"],[[64899,64900],1,"لجج"],[[64901,64902],1,"لخم"],[[64903,64904],1,"لمح"],[64905,1,"محج"],[64906,1,"محم"],[64907,1,"محي"],[64908,1,"مجح"],[64909,1,"مجم"],[64910,1,"مخج"],[64911,1,"مخم"],[[64912,64913],3],[64914,1,"مجخ"],[64915,1,"همج"],[64916,1,"همم"],[64917,1,"نحم"],[64918,1,"نحى"],[[64919,64920],1,"نجم"],[64921,1,"نجى"],[64922,1,"نمي"],[64923,1,"نمى"],[[64924,64925],1,"يمم"],[64926,1,"بخي"],[64927,1,"تجي"],[64928,1,"تجى"],[64929,1,"تخي"],[64930,1,"تخى"],[64931,1,"تمي"],[64932,1,"تمى"],[64933,1,"جمي"],[64934,1,"جحى"],[64935,1,"جمى"],[64936,1,"سخى"],[64937,1,"صحي"],[64938,1,"شحي"],[64939,1,"ضحي"],[64940,1,"لجي"],[64941,1,"لمي"],[64942,1,"يحي"],[64943,1,"يجي"],[64944,1,"يمي"],[64945,1,"ممي"],[64946,1,"قمي"],[64947,1,"نحي"],[64948,1,"قمح"],[64949,1,"لحم"],[64950,1,"عمي"],[64951,1,"كمي"],[64952,1,"نجح"],[64953,1,"مخي"],[64954,1,"لجم"],[64955,1,"كمم"],[64956,1,"لجم"],[64957,1,"نجح"],[64958,1,"جحي"],[64959,1,"حجي"],[64960,1,"مجي"],[64961,1,"فمي"],[64962,1,"بحي"],[64963,1,"كمم"],[64964,1,"عجم"],[64965,1,"صمم"],[64966,1,"سخي"],[64967,1,"نجي"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"صلے"],[65009,1,"قلے"],[65010,1,"الله"],[65011,1,"اكبر"],[65012,1,"محمد"],[65013,1,"صلعم"],[65014,1,"رسول"],[65015,1,"عليه"],[65016,1,"وسلم"],[65017,1,"صلى"],[65018,5,"صلى الله عليه وسلم"],[65019,5,"جل جلاله"],[65020,1,"ریال"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"、"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"〖"],[65048,1,"〗"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"—"],[65074,1,"–"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"〔"],[65082,1,"〕"],[65083,1,"【"],[65084,1,"】"],[65085,1,"《"],[65086,1,"》"],[65087,1,"〈"],[65088,1,"〉"],[65089,1,"「"],[65090,1,"」"],[65091,1,"『"],[65092,1,"』"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," ̅"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"、"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"—"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"〔"],[65118,1,"〕"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," ً"],[65137,1,"ـً"],[65138,5," ٌ"],[65139,2],[65140,5," ٍ"],[65141,3],[65142,5," َ"],[65143,1,"ـَ"],[65144,5," ُ"],[65145,1,"ـُ"],[65146,5," ِ"],[65147,1,"ـِ"],[65148,5," ّ"],[65149,1,"ـّ"],[65150,5," ْ"],[65151,1,"ـْ"],[65152,1,"ء"],[[65153,65154],1,"آ"],[[65155,65156],1,"أ"],[[65157,65158],1,"ؤ"],[[65159,65160],1,"إ"],[[65161,65164],1,"ئ"],[[65165,65166],1,"ا"],[[65167,65170],1,"ب"],[[65171,65172],1,"ة"],[[65173,65176],1,"ت"],[[65177,65180],1,"ث"],[[65181,65184],1,"ج"],[[65185,65188],1,"ح"],[[65189,65192],1,"خ"],[[65193,65194],1,"د"],[[65195,65196],1,"ذ"],[[65197,65198],1,"ر"],[[65199,65200],1,"ز"],[[65201,65204],1,"س"],[[65205,65208],1,"ش"],[[65209,65212],1,"ص"],[[65213,65216],1,"ض"],[[65217,65220],1,"ط"],[[65221,65224],1,"ظ"],[[65225,65228],1,"ع"],[[65229,65232],1,"غ"],[[65233,65236],1,"ف"],[[65237,65240],1,"ق"],[[65241,65244],1,"ك"],[[65245,65248],1,"ل"],[[65249,65252],1,"م"],[[65253,65256],1,"ن"],[[65257,65260],1,"ه"],[[65261,65262],1,"و"],[[65263,65264],1,"ى"],[[65265,65268],1,"ي"],[[65269,65270],1,"لآ"],[[65271,65272],1,"لأ"],[[65273,65274],1,"لإ"],[[65275,65276],1,"لا"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"\'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"⦅"],[65376,1,"⦆"],[65377,1,"."],[65378,1,"「"],[65379,1,"」"],[65380,1,"、"],[65381,1,"・"],[65382,1,"ヲ"],[65383,1,"ァ"],[65384,1,"ィ"],[65385,1,"ゥ"],[65386,1,"ェ"],[65387,1,"ォ"],[65388,1,"ャ"],[65389,1,"ュ"],[65390,1,"ョ"],[65391,1,"ッ"],[65392,1,"ー"],[65393,1,"ア"],[65394,1,"イ"],[65395,1,"ウ"],[65396,1,"エ"],[65397,1,"オ"],[65398,1,"カ"],[65399,1,"キ"],[65400,1,"ク"],[65401,1,"ケ"],[65402,1,"コ"],[65403,1,"サ"],[65404,1,"シ"],[65405,1,"ス"],[65406,1,"セ"],[65407,1,"ソ"],[65408,1,"タ"],[65409,1,"チ"],[65410,1,"ツ"],[65411,1,"テ"],[65412,1,"ト"],[65413,1,"ナ"],[65414,1,"ニ"],[65415,1,"ヌ"],[65416,1,"ネ"],[65417,1,"ノ"],[65418,1,"ハ"],[65419,1,"ヒ"],[65420,1,"フ"],[65421,1,"ヘ"],[65422,1,"ホ"],[65423,1,"マ"],[65424,1,"ミ"],[65425,1,"ム"],[65426,1,"メ"],[65427,1,"モ"],[65428,1,"ヤ"],[65429,1,"ユ"],[65430,1,"ヨ"],[65431,1,"ラ"],[65432,1,"リ"],[65433,1,"ル"],[65434,1,"レ"],[65435,1,"ロ"],[65436,1,"ワ"],[65437,1,"ン"],[65438,1,"゙"],[65439,1,"゚"],[65440,3],[65441,1,"ᄀ"],[65442,1,"ᄁ"],[65443,1,"ᆪ"],[65444,1,"ᄂ"],[65445,1,"ᆬ"],[65446,1,"ᆭ"],[65447,1,"ᄃ"],[65448,1,"ᄄ"],[65449,1,"ᄅ"],[65450,1,"ᆰ"],[65451,1,"ᆱ"],[65452,1,"ᆲ"],[65453,1,"ᆳ"],[65454,1,"ᆴ"],[65455,1,"ᆵ"],[65456,1,"ᄚ"],[65457,1,"ᄆ"],[65458,1,"ᄇ"],[65459,1,"ᄈ"],[65460,1,"ᄡ"],[65461,1,"ᄉ"],[65462,1,"ᄊ"],[65463,1,"ᄋ"],[65464,1,"ᄌ"],[65465,1,"ᄍ"],[65466,1,"ᄎ"],[65467,1,"ᄏ"],[65468,1,"ᄐ"],[65469,1,"ᄑ"],[65470,1,"ᄒ"],[[65471,65473],3],[65474,1,"ᅡ"],[65475,1,"ᅢ"],[65476,1,"ᅣ"],[65477,1,"ᅤ"],[65478,1,"ᅥ"],[65479,1,"ᅦ"],[[65480,65481],3],[65482,1,"ᅧ"],[65483,1,"ᅨ"],[65484,1,"ᅩ"],[65485,1,"ᅪ"],[65486,1,"ᅫ"],[65487,1,"ᅬ"],[[65488,65489],3],[65490,1,"ᅭ"],[65491,1,"ᅮ"],[65492,1,"ᅯ"],[65493,1,"ᅰ"],[65494,1,"ᅱ"],[65495,1,"ᅲ"],[[65496,65497],3],[65498,1,"ᅳ"],[65499,1,"ᅴ"],[65500,1,"ᅵ"],[[65501,65503],3],[65504,1,"¢"],[65505,1,"£"],[65506,1,"¬"],[65507,5," ̄"],[65508,1,"¦"],[65509,1,"¥"],[65510,1,"₩"],[65511,3],[65512,1,"│"],[65513,1,"←"],[65514,1,"↑"],[65515,1,"→"],[65516,1,"↓"],[65517,1,"■"],[65518,1,"○"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"𐐨"],[66561,1,"𐐩"],[66562,1,"𐐪"],[66563,1,"𐐫"],[66564,1,"𐐬"],[66565,1,"𐐭"],[66566,1,"𐐮"],[66567,1,"𐐯"],[66568,1,"𐐰"],[66569,1,"𐐱"],[66570,1,"𐐲"],[66571,1,"𐐳"],[66572,1,"𐐴"],[66573,1,"𐐵"],[66574,1,"𐐶"],[66575,1,"𐐷"],[66576,1,"𐐸"],[66577,1,"𐐹"],[66578,1,"𐐺"],[66579,1,"𐐻"],[66580,1,"𐐼"],[66581,1,"𐐽"],[66582,1,"𐐾"],[66583,1,"𐐿"],[66584,1,"𐑀"],[66585,1,"𐑁"],[66586,1,"𐑂"],[66587,1,"𐑃"],[66588,1,"𐑄"],[66589,1,"𐑅"],[66590,1,"𐑆"],[66591,1,"𐑇"],[66592,1,"𐑈"],[66593,1,"𐑉"],[66594,1,"𐑊"],[66595,1,"𐑋"],[66596,1,"𐑌"],[66597,1,"𐑍"],[66598,1,"𐑎"],[66599,1,"𐑏"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"𐓘"],[66737,1,"𐓙"],[66738,1,"𐓚"],[66739,1,"𐓛"],[66740,1,"𐓜"],[66741,1,"𐓝"],[66742,1,"𐓞"],[66743,1,"𐓟"],[66744,1,"𐓠"],[66745,1,"𐓡"],[66746,1,"𐓢"],[66747,1,"𐓣"],[66748,1,"𐓤"],[66749,1,"𐓥"],[66750,1,"𐓦"],[66751,1,"𐓧"],[66752,1,"𐓨"],[66753,1,"𐓩"],[66754,1,"𐓪"],[66755,1,"𐓫"],[66756,1,"𐓬"],[66757,1,"𐓭"],[66758,1,"𐓮"],[66759,1,"𐓯"],[66760,1,"𐓰"],[66761,1,"𐓱"],[66762,1,"𐓲"],[66763,1,"𐓳"],[66764,1,"𐓴"],[66765,1,"𐓵"],[66766,1,"𐓶"],[66767,1,"𐓷"],[66768,1,"𐓸"],[66769,1,"𐓹"],[66770,1,"𐓺"],[66771,1,"𐓻"],[[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,"𐖗"],[66929,1,"𐖘"],[66930,1,"𐖙"],[66931,1,"𐖚"],[66932,1,"𐖛"],[66933,1,"𐖜"],[66934,1,"𐖝"],[66935,1,"𐖞"],[66936,1,"𐖟"],[66937,1,"𐖠"],[66938,1,"𐖡"],[66939,3],[66940,1,"𐖣"],[66941,1,"𐖤"],[66942,1,"𐖥"],[66943,1,"𐖦"],[66944,1,"𐖧"],[66945,1,"𐖨"],[66946,1,"𐖩"],[66947,1,"𐖪"],[66948,1,"𐖫"],[66949,1,"𐖬"],[66950,1,"𐖭"],[66951,1,"𐖮"],[66952,1,"𐖯"],[66953,1,"𐖰"],[66954,1,"𐖱"],[66955,3],[66956,1,"𐖳"],[66957,1,"𐖴"],[66958,1,"𐖵"],[66959,1,"𐖶"],[66960,1,"𐖷"],[66961,1,"𐖸"],[66962,1,"𐖹"],[66963,3],[66964,1,"𐖻"],[66965,1,"𐖼"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"ː"],[67458,1,"ˑ"],[67459,1,"æ"],[67460,1,"ʙ"],[67461,1,"ɓ"],[67462,3],[67463,1,"ʣ"],[67464,1,"ꭦ"],[67465,1,"ʥ"],[67466,1,"ʤ"],[67467,1,"ɖ"],[67468,1,"ɗ"],[67469,1,"ᶑ"],[67470,1,"ɘ"],[67471,1,"ɞ"],[67472,1,"ʩ"],[67473,1,"ɤ"],[67474,1,"ɢ"],[67475,1,"ɠ"],[67476,1,"ʛ"],[67477,1,"ħ"],[67478,1,"ʜ"],[67479,1,"ɧ"],[67480,1,"ʄ"],[67481,1,"ʪ"],[67482,1,"ʫ"],[67483,1,"ɬ"],[67484,1,"𝼄"],[67485,1,"ꞎ"],[67486,1,"ɮ"],[67487,1,"𝼅"],[67488,1,"ʎ"],[67489,1,"𝼆"],[67490,1,"ø"],[67491,1,"ɶ"],[67492,1,"ɷ"],[67493,1,"q"],[67494,1,"ɺ"],[67495,1,"𝼈"],[67496,1,"ɽ"],[67497,1,"ɾ"],[67498,1,"ʀ"],[67499,1,"ʨ"],[67500,1,"ʦ"],[67501,1,"ꭧ"],[67502,1,"ʧ"],[67503,1,"ʈ"],[67504,1,"ⱱ"],[67505,3],[67506,1,"ʏ"],[67507,1,"ʡ"],[67508,1,"ʢ"],[67509,1,"ʘ"],[67510,1,"ǀ"],[67511,1,"ǁ"],[67512,1,"ǂ"],[67513,1,"𝼊"],[67514,1,"𝼞"],[[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,"𐳀"],[68737,1,"𐳁"],[68738,1,"𐳂"],[68739,1,"𐳃"],[68740,1,"𐳄"],[68741,1,"𐳅"],[68742,1,"𐳆"],[68743,1,"𐳇"],[68744,1,"𐳈"],[68745,1,"𐳉"],[68746,1,"𐳊"],[68747,1,"𐳋"],[68748,1,"𐳌"],[68749,1,"𐳍"],[68750,1,"𐳎"],[68751,1,"𐳏"],[68752,1,"𐳐"],[68753,1,"𐳑"],[68754,1,"𐳒"],[68755,1,"𐳓"],[68756,1,"𐳔"],[68757,1,"𐳕"],[68758,1,"𐳖"],[68759,1,"𐳗"],[68760,1,"𐳘"],[68761,1,"𐳙"],[68762,1,"𐳚"],[68763,1,"𐳛"],[68764,1,"𐳜"],[68765,1,"𐳝"],[68766,1,"𐳞"],[68767,1,"𐳟"],[68768,1,"𐳠"],[68769,1,"𐳡"],[68770,1,"𐳢"],[68771,1,"𐳣"],[68772,1,"𐳤"],[68773,1,"𐳥"],[68774,1,"𐳦"],[68775,1,"𐳧"],[68776,1,"𐳨"],[68777,1,"𐳩"],[68778,1,"𐳪"],[68779,1,"𐳫"],[68780,1,"𐳬"],[68781,1,"𐳭"],[68782,1,"𐳮"],[68783,1,"𐳯"],[68784,1,"𐳰"],[68785,1,"𐳱"],[68786,1,"𐳲"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69375],3],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"𑣀"],[71841,1,"𑣁"],[71842,1,"𑣂"],[71843,1,"𑣃"],[71844,1,"𑣄"],[71845,1,"𑣅"],[71846,1,"𑣆"],[71847,1,"𑣇"],[71848,1,"𑣈"],[71849,1,"𑣉"],[71850,1,"𑣊"],[71851,1,"𑣋"],[71852,1,"𑣌"],[71853,1,"𑣍"],[71854,1,"𑣎"],[71855,1,"𑣏"],[71856,1,"𑣐"],[71857,1,"𑣑"],[71858,1,"𑣒"],[71859,1,"𑣓"],[71860,1,"𑣔"],[71861,1,"𑣕"],[71862,1,"𑣖"],[71863,1,"𑣗"],[71864,1,"𑣘"],[71865,1,"𑣙"],[71866,1,"𑣚"],[71867,1,"𑣛"],[71868,1,"𑣜"],[71869,1,"𑣝"],[71870,1,"𑣞"],[71871,1,"𑣟"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,3],[[78896,78904],3],[[78905,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"𖹠"],[93761,1,"𖹡"],[93762,1,"𖹢"],[93763,1,"𖹣"],[93764,1,"𖹤"],[93765,1,"𖹥"],[93766,1,"𖹦"],[93767,1,"𖹧"],[93768,1,"𖹨"],[93769,1,"𖹩"],[93770,1,"𖹪"],[93771,1,"𖹫"],[93772,1,"𖹬"],[93773,1,"𖹭"],[93774,1,"𖹮"],[93775,1,"𖹯"],[93776,1,"𖹰"],[93777,1,"𖹱"],[93778,1,"𖹲"],[93779,1,"𖹳"],[93780,1,"𖹴"],[93781,1,"𖹵"],[93782,1,"𖹶"],[93783,1,"𖹷"],[93784,1,"𖹸"],[93785,1,"𖹹"],[93786,1,"𖹺"],[93787,1,"𖹻"],[93788,1,"𖹼"],[93789,1,"𖹽"],[93790,1,"𖹾"],[93791,1,"𖹿"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110927],3],[[110928,110930],2],[[110931,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"𝅗𝅥"],[119135,1,"𝅘𝅥"],[119136,1,"𝅘𝅥𝅮"],[119137,1,"𝅘𝅥𝅯"],[119138,1,"𝅘𝅥𝅰"],[119139,1,"𝅘𝅥𝅱"],[119140,1,"𝅘𝅥𝅲"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"𝆹𝅥"],[119228,1,"𝆺𝅥"],[119229,1,"𝆹𝅥𝅮"],[119230,1,"𝆺𝅥𝅮"],[119231,1,"𝆹𝅥𝅯"],[119232,1,"𝆺𝅥𝅯"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"ı"],[120485,1,"ȷ"],[[120486,120487],3],[120488,1,"α"],[120489,1,"β"],[120490,1,"γ"],[120491,1,"δ"],[120492,1,"ε"],[120493,1,"ζ"],[120494,1,"η"],[120495,1,"θ"],[120496,1,"ι"],[120497,1,"κ"],[120498,1,"λ"],[120499,1,"μ"],[120500,1,"ν"],[120501,1,"ξ"],[120502,1,"ο"],[120503,1,"π"],[120504,1,"ρ"],[120505,1,"θ"],[120506,1,"σ"],[120507,1,"τ"],[120508,1,"υ"],[120509,1,"φ"],[120510,1,"χ"],[120511,1,"ψ"],[120512,1,"ω"],[120513,1,"∇"],[120514,1,"α"],[120515,1,"β"],[120516,1,"γ"],[120517,1,"δ"],[120518,1,"ε"],[120519,1,"ζ"],[120520,1,"η"],[120521,1,"θ"],[120522,1,"ι"],[120523,1,"κ"],[120524,1,"λ"],[120525,1,"μ"],[120526,1,"ν"],[120527,1,"ξ"],[120528,1,"ο"],[120529,1,"π"],[120530,1,"ρ"],[[120531,120532],1,"σ"],[120533,1,"τ"],[120534,1,"υ"],[120535,1,"φ"],[120536,1,"χ"],[120537,1,"ψ"],[120538,1,"ω"],[120539,1,"∂"],[120540,1,"ε"],[120541,1,"θ"],[120542,1,"κ"],[120543,1,"φ"],[120544,1,"ρ"],[120545,1,"π"],[120546,1,"α"],[120547,1,"β"],[120548,1,"γ"],[120549,1,"δ"],[120550,1,"ε"],[120551,1,"ζ"],[120552,1,"η"],[120553,1,"θ"],[120554,1,"ι"],[120555,1,"κ"],[120556,1,"λ"],[120557,1,"μ"],[120558,1,"ν"],[120559,1,"ξ"],[120560,1,"ο"],[120561,1,"π"],[120562,1,"ρ"],[120563,1,"θ"],[120564,1,"σ"],[120565,1,"τ"],[120566,1,"υ"],[120567,1,"φ"],[120568,1,"χ"],[120569,1,"ψ"],[120570,1,"ω"],[120571,1,"∇"],[120572,1,"α"],[120573,1,"β"],[120574,1,"γ"],[120575,1,"δ"],[120576,1,"ε"],[120577,1,"ζ"],[120578,1,"η"],[120579,1,"θ"],[120580,1,"ι"],[120581,1,"κ"],[120582,1,"λ"],[120583,1,"μ"],[120584,1,"ν"],[120585,1,"ξ"],[120586,1,"ο"],[120587,1,"π"],[120588,1,"ρ"],[[120589,120590],1,"σ"],[120591,1,"τ"],[120592,1,"υ"],[120593,1,"φ"],[120594,1,"χ"],[120595,1,"ψ"],[120596,1,"ω"],[120597,1,"∂"],[120598,1,"ε"],[120599,1,"θ"],[120600,1,"κ"],[120601,1,"φ"],[120602,1,"ρ"],[120603,1,"π"],[120604,1,"α"],[120605,1,"β"],[120606,1,"γ"],[120607,1,"δ"],[120608,1,"ε"],[120609,1,"ζ"],[120610,1,"η"],[120611,1,"θ"],[120612,1,"ι"],[120613,1,"κ"],[120614,1,"λ"],[120615,1,"μ"],[120616,1,"ν"],[120617,1,"ξ"],[120618,1,"ο"],[120619,1,"π"],[120620,1,"ρ"],[120621,1,"θ"],[120622,1,"σ"],[120623,1,"τ"],[120624,1,"υ"],[120625,1,"φ"],[120626,1,"χ"],[120627,1,"ψ"],[120628,1,"ω"],[120629,1,"∇"],[120630,1,"α"],[120631,1,"β"],[120632,1,"γ"],[120633,1,"δ"],[120634,1,"ε"],[120635,1,"ζ"],[120636,1,"η"],[120637,1,"θ"],[120638,1,"ι"],[120639,1,"κ"],[120640,1,"λ"],[120641,1,"μ"],[120642,1,"ν"],[120643,1,"ξ"],[120644,1,"ο"],[120645,1,"π"],[120646,1,"ρ"],[[120647,120648],1,"σ"],[120649,1,"τ"],[120650,1,"υ"],[120651,1,"φ"],[120652,1,"χ"],[120653,1,"ψ"],[120654,1,"ω"],[120655,1,"∂"],[120656,1,"ε"],[120657,1,"θ"],[120658,1,"κ"],[120659,1,"φ"],[120660,1,"ρ"],[120661,1,"π"],[120662,1,"α"],[120663,1,"β"],[120664,1,"γ"],[120665,1,"δ"],[120666,1,"ε"],[120667,1,"ζ"],[120668,1,"η"],[120669,1,"θ"],[120670,1,"ι"],[120671,1,"κ"],[120672,1,"λ"],[120673,1,"μ"],[120674,1,"ν"],[120675,1,"ξ"],[120676,1,"ο"],[120677,1,"π"],[120678,1,"ρ"],[120679,1,"θ"],[120680,1,"σ"],[120681,1,"τ"],[120682,1,"υ"],[120683,1,"φ"],[120684,1,"χ"],[120685,1,"ψ"],[120686,1,"ω"],[120687,1,"∇"],[120688,1,"α"],[120689,1,"β"],[120690,1,"γ"],[120691,1,"δ"],[120692,1,"ε"],[120693,1,"ζ"],[120694,1,"η"],[120695,1,"θ"],[120696,1,"ι"],[120697,1,"κ"],[120698,1,"λ"],[120699,1,"μ"],[120700,1,"ν"],[120701,1,"ξ"],[120702,1,"ο"],[120703,1,"π"],[120704,1,"ρ"],[[120705,120706],1,"σ"],[120707,1,"τ"],[120708,1,"υ"],[120709,1,"φ"],[120710,1,"χ"],[120711,1,"ψ"],[120712,1,"ω"],[120713,1,"∂"],[120714,1,"ε"],[120715,1,"θ"],[120716,1,"κ"],[120717,1,"φ"],[120718,1,"ρ"],[120719,1,"π"],[120720,1,"α"],[120721,1,"β"],[120722,1,"γ"],[120723,1,"δ"],[120724,1,"ε"],[120725,1,"ζ"],[120726,1,"η"],[120727,1,"θ"],[120728,1,"ι"],[120729,1,"κ"],[120730,1,"λ"],[120731,1,"μ"],[120732,1,"ν"],[120733,1,"ξ"],[120734,1,"ο"],[120735,1,"π"],[120736,1,"ρ"],[120737,1,"θ"],[120738,1,"σ"],[120739,1,"τ"],[120740,1,"υ"],[120741,1,"φ"],[120742,1,"χ"],[120743,1,"ψ"],[120744,1,"ω"],[120745,1,"∇"],[120746,1,"α"],[120747,1,"β"],[120748,1,"γ"],[120749,1,"δ"],[120750,1,"ε"],[120751,1,"ζ"],[120752,1,"η"],[120753,1,"θ"],[120754,1,"ι"],[120755,1,"κ"],[120756,1,"λ"],[120757,1,"μ"],[120758,1,"ν"],[120759,1,"ξ"],[120760,1,"ο"],[120761,1,"π"],[120762,1,"ρ"],[[120763,120764],1,"σ"],[120765,1,"τ"],[120766,1,"υ"],[120767,1,"φ"],[120768,1,"χ"],[120769,1,"ψ"],[120770,1,"ω"],[120771,1,"∂"],[120772,1,"ε"],[120773,1,"θ"],[120774,1,"κ"],[120775,1,"φ"],[120776,1,"ρ"],[120777,1,"π"],[[120778,120779],1,"ϝ"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"𞤢"],[125185,1,"𞤣"],[125186,1,"𞤤"],[125187,1,"𞤥"],[125188,1,"𞤦"],[125189,1,"𞤧"],[125190,1,"𞤨"],[125191,1,"𞤩"],[125192,1,"𞤪"],[125193,1,"𞤫"],[125194,1,"𞤬"],[125195,1,"𞤭"],[125196,1,"𞤮"],[125197,1,"𞤯"],[125198,1,"𞤰"],[125199,1,"𞤱"],[125200,1,"𞤲"],[125201,1,"𞤳"],[125202,1,"𞤴"],[125203,1,"𞤵"],[125204,1,"𞤶"],[125205,1,"𞤷"],[125206,1,"𞤸"],[125207,1,"𞤹"],[125208,1,"𞤺"],[125209,1,"𞤻"],[125210,1,"𞤼"],[125211,1,"𞤽"],[125212,1,"𞤾"],[125213,1,"𞤿"],[125214,1,"𞥀"],[125215,1,"𞥁"],[125216,1,"𞥂"],[125217,1,"𞥃"],[[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,"ا"],[126465,1,"ب"],[126466,1,"ج"],[126467,1,"د"],[126468,3],[126469,1,"و"],[126470,1,"ز"],[126471,1,"ح"],[126472,1,"ط"],[126473,1,"ي"],[126474,1,"ك"],[126475,1,"ل"],[126476,1,"م"],[126477,1,"ن"],[126478,1,"س"],[126479,1,"ع"],[126480,1,"ف"],[126481,1,"ص"],[126482,1,"ق"],[126483,1,"ر"],[126484,1,"ش"],[126485,1,"ت"],[126486,1,"ث"],[126487,1,"خ"],[126488,1,"ذ"],[126489,1,"ض"],[126490,1,"ظ"],[126491,1,"غ"],[126492,1,"ٮ"],[126493,1,"ں"],[126494,1,"ڡ"],[126495,1,"ٯ"],[126496,3],[126497,1,"ب"],[126498,1,"ج"],[126499,3],[126500,1,"ه"],[[126501,126502],3],[126503,1,"ح"],[126504,3],[126505,1,"ي"],[126506,1,"ك"],[126507,1,"ل"],[126508,1,"م"],[126509,1,"ن"],[126510,1,"س"],[126511,1,"ع"],[126512,1,"ف"],[126513,1,"ص"],[126514,1,"ق"],[126515,3],[126516,1,"ش"],[126517,1,"ت"],[126518,1,"ث"],[126519,1,"خ"],[126520,3],[126521,1,"ض"],[126522,3],[126523,1,"غ"],[[126524,126529],3],[126530,1,"ج"],[[126531,126534],3],[126535,1,"ح"],[126536,3],[126537,1,"ي"],[126538,3],[126539,1,"ل"],[126540,3],[126541,1,"ن"],[126542,1,"س"],[126543,1,"ع"],[126544,3],[126545,1,"ص"],[126546,1,"ق"],[126547,3],[126548,1,"ش"],[[126549,126550],3],[126551,1,"خ"],[126552,3],[126553,1,"ض"],[126554,3],[126555,1,"غ"],[126556,3],[126557,1,"ں"],[126558,3],[126559,1,"ٯ"],[126560,3],[126561,1,"ب"],[126562,1,"ج"],[126563,3],[126564,1,"ه"],[[126565,126566],3],[126567,1,"ح"],[126568,1,"ط"],[126569,1,"ي"],[126570,1,"ك"],[126571,3],[126572,1,"م"],[126573,1,"ن"],[126574,1,"س"],[126575,1,"ع"],[126576,1,"ف"],[126577,1,"ص"],[126578,1,"ق"],[126579,3],[126580,1,"ش"],[126581,1,"ت"],[126582,1,"ث"],[126583,1,"خ"],[126584,3],[126585,1,"ض"],[126586,1,"ظ"],[126587,1,"غ"],[126588,1,"ٮ"],[126589,3],[126590,1,"ڡ"],[126591,3],[126592,1,"ا"],[126593,1,"ب"],[126594,1,"ج"],[126595,1,"د"],[126596,1,"ه"],[126597,1,"و"],[126598,1,"ز"],[126599,1,"ح"],[126600,1,"ط"],[126601,1,"ي"],[126602,3],[126603,1,"ل"],[126604,1,"م"],[126605,1,"ن"],[126606,1,"س"],[126607,1,"ع"],[126608,1,"ف"],[126609,1,"ص"],[126610,1,"ق"],[126611,1,"ر"],[126612,1,"ش"],[126613,1,"ت"],[126614,1,"ث"],[126615,1,"خ"],[126616,1,"ذ"],[126617,1,"ض"],[126618,1,"ظ"],[126619,1,"غ"],[[126620,126624],3],[126625,1,"ب"],[126626,1,"ج"],[126627,1,"د"],[126628,3],[126629,1,"و"],[126630,1,"ز"],[126631,1,"ح"],[126632,1,"ط"],[126633,1,"ي"],[126634,3],[126635,1,"ل"],[126636,1,"م"],[126637,1,"ن"],[126638,1,"س"],[126639,1,"ع"],[126640,1,"ف"],[126641,1,"ص"],[126642,1,"ق"],[126643,1,"ر"],[126644,1,"ش"],[126645,1,"ت"],[126646,1,"ث"],[126647,1,"خ"],[126648,1,"ذ"],[126649,1,"ض"],[126650,1,"ظ"],[126651,1,"غ"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"〔s〕"],[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,"ほか"],[127489,1,"ココ"],[127490,1,"サ"],[[127491,127503],3],[127504,1,"手"],[127505,1,"字"],[127506,1,"双"],[127507,1,"デ"],[127508,1,"二"],[127509,1,"多"],[127510,1,"解"],[127511,1,"天"],[127512,1,"交"],[127513,1,"映"],[127514,1,"無"],[127515,1,"料"],[127516,1,"前"],[127517,1,"後"],[127518,1,"再"],[127519,1,"新"],[127520,1,"初"],[127521,1,"終"],[127522,1,"生"],[127523,1,"販"],[127524,1,"声"],[127525,1,"吹"],[127526,1,"演"],[127527,1,"投"],[127528,1,"捕"],[127529,1,"一"],[127530,1,"三"],[127531,1,"遊"],[127532,1,"左"],[127533,1,"中"],[127534,1,"右"],[127535,1,"指"],[127536,1,"走"],[127537,1,"打"],[127538,1,"禁"],[127539,1,"空"],[127540,1,"合"],[127541,1,"満"],[127542,1,"有"],[127543,1,"月"],[127544,1,"申"],[127545,1,"割"],[127546,1,"営"],[127547,1,"配"],[[127548,127551],3],[127552,1,"〔本〕"],[127553,1,"〔三〕"],[127554,1,"〔二〕"],[127555,1,"〔安〕"],[127556,1,"〔点〕"],[127557,1,"〔打〕"],[127558,1,"〔盗〕"],[127559,1,"〔勝〕"],[127560,1,"〔敗〕"],[[127561,127567],3],[127568,1,"得"],[127569,1,"可"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128732],3],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128895],3],[[128896,128980],2],[[128981,128984],2],[[128985,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],3],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],3],[[129712,129718],2],[[129719,129722],2],[[129723,129727],3],[[129728,129730],2],[[129731,129733],2],[[129734,129743],3],[[129744,129750],2],[[129751,129753],2],[[129754,129759],3],[[129760,129767],2],[[129768,129775],3],[[129776,129782],2],[[129783,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[[177977,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"丽"],[194561,1,"丸"],[194562,1,"乁"],[194563,1,"𠄢"],[194564,1,"你"],[194565,1,"侮"],[194566,1,"侻"],[194567,1,"倂"],[194568,1,"偺"],[194569,1,"備"],[194570,1,"僧"],[194571,1,"像"],[194572,1,"㒞"],[194573,1,"𠘺"],[194574,1,"免"],[194575,1,"兔"],[194576,1,"兤"],[194577,1,"具"],[194578,1,"𠔜"],[194579,1,"㒹"],[194580,1,"內"],[194581,1,"再"],[194582,1,"𠕋"],[194583,1,"冗"],[194584,1,"冤"],[194585,1,"仌"],[194586,1,"冬"],[194587,1,"况"],[194588,1,"𩇟"],[194589,1,"凵"],[194590,1,"刃"],[194591,1,"㓟"],[194592,1,"刻"],[194593,1,"剆"],[194594,1,"割"],[194595,1,"剷"],[194596,1,"㔕"],[194597,1,"勇"],[194598,1,"勉"],[194599,1,"勤"],[194600,1,"勺"],[194601,1,"包"],[194602,1,"匆"],[194603,1,"北"],[194604,1,"卉"],[194605,1,"卑"],[194606,1,"博"],[194607,1,"即"],[194608,1,"卽"],[[194609,194611],1,"卿"],[194612,1,"𠨬"],[194613,1,"灰"],[194614,1,"及"],[194615,1,"叟"],[194616,1,"𠭣"],[194617,1,"叫"],[194618,1,"叱"],[194619,1,"吆"],[194620,1,"咞"],[194621,1,"吸"],[194622,1,"呈"],[194623,1,"周"],[194624,1,"咢"],[194625,1,"哶"],[194626,1,"唐"],[194627,1,"啓"],[194628,1,"啣"],[[194629,194630],1,"善"],[194631,1,"喙"],[194632,1,"喫"],[194633,1,"喳"],[194634,1,"嗂"],[194635,1,"圖"],[194636,1,"嘆"],[194637,1,"圗"],[194638,1,"噑"],[194639,1,"噴"],[194640,1,"切"],[194641,1,"壮"],[194642,1,"城"],[194643,1,"埴"],[194644,1,"堍"],[194645,1,"型"],[194646,1,"堲"],[194647,1,"報"],[194648,1,"墬"],[194649,1,"𡓤"],[194650,1,"売"],[194651,1,"壷"],[194652,1,"夆"],[194653,1,"多"],[194654,1,"夢"],[194655,1,"奢"],[194656,1,"𡚨"],[194657,1,"𡛪"],[194658,1,"姬"],[194659,1,"娛"],[194660,1,"娧"],[194661,1,"姘"],[194662,1,"婦"],[194663,1,"㛮"],[194664,3],[194665,1,"嬈"],[[194666,194667],1,"嬾"],[194668,1,"𡧈"],[194669,1,"寃"],[194670,1,"寘"],[194671,1,"寧"],[194672,1,"寳"],[194673,1,"𡬘"],[194674,1,"寿"],[194675,1,"将"],[194676,3],[194677,1,"尢"],[194678,1,"㞁"],[194679,1,"屠"],[194680,1,"屮"],[194681,1,"峀"],[194682,1,"岍"],[194683,1,"𡷤"],[194684,1,"嵃"],[194685,1,"𡷦"],[194686,1,"嵮"],[194687,1,"嵫"],[194688,1,"嵼"],[194689,1,"巡"],[194690,1,"巢"],[194691,1,"㠯"],[194692,1,"巽"],[194693,1,"帨"],[194694,1,"帽"],[194695,1,"幩"],[194696,1,"㡢"],[194697,1,"𢆃"],[194698,1,"㡼"],[194699,1,"庰"],[194700,1,"庳"],[194701,1,"庶"],[194702,1,"廊"],[194703,1,"𪎒"],[194704,1,"廾"],[[194705,194706],1,"𢌱"],[194707,1,"舁"],[[194708,194709],1,"弢"],[194710,1,"㣇"],[194711,1,"𣊸"],[194712,1,"𦇚"],[194713,1,"形"],[194714,1,"彫"],[194715,1,"㣣"],[194716,1,"徚"],[194717,1,"忍"],[194718,1,"志"],[194719,1,"忹"],[194720,1,"悁"],[194721,1,"㤺"],[194722,1,"㤜"],[194723,1,"悔"],[194724,1,"𢛔"],[194725,1,"惇"],[194726,1,"慈"],[194727,1,"慌"],[194728,1,"慎"],[194729,1,"慌"],[194730,1,"慺"],[194731,1,"憎"],[194732,1,"憲"],[194733,1,"憤"],[194734,1,"憯"],[194735,1,"懞"],[194736,1,"懲"],[194737,1,"懶"],[194738,1,"成"],[194739,1,"戛"],[194740,1,"扝"],[194741,1,"抱"],[194742,1,"拔"],[194743,1,"捐"],[194744,1,"𢬌"],[194745,1,"挽"],[194746,1,"拼"],[194747,1,"捨"],[194748,1,"掃"],[194749,1,"揤"],[194750,1,"𢯱"],[194751,1,"搢"],[194752,1,"揅"],[194753,1,"掩"],[194754,1,"㨮"],[194755,1,"摩"],[194756,1,"摾"],[194757,1,"撝"],[194758,1,"摷"],[194759,1,"㩬"],[194760,1,"敏"],[194761,1,"敬"],[194762,1,"𣀊"],[194763,1,"旣"],[194764,1,"書"],[194765,1,"晉"],[194766,1,"㬙"],[194767,1,"暑"],[194768,1,"㬈"],[194769,1,"㫤"],[194770,1,"冒"],[194771,1,"冕"],[194772,1,"最"],[194773,1,"暜"],[194774,1,"肭"],[194775,1,"䏙"],[194776,1,"朗"],[194777,1,"望"],[194778,1,"朡"],[194779,1,"杞"],[194780,1,"杓"],[194781,1,"𣏃"],[194782,1,"㭉"],[194783,1,"柺"],[194784,1,"枅"],[194785,1,"桒"],[194786,1,"梅"],[194787,1,"𣑭"],[194788,1,"梎"],[194789,1,"栟"],[194790,1,"椔"],[194791,1,"㮝"],[194792,1,"楂"],[194793,1,"榣"],[194794,1,"槪"],[194795,1,"檨"],[194796,1,"𣚣"],[194797,1,"櫛"],[194798,1,"㰘"],[194799,1,"次"],[194800,1,"𣢧"],[194801,1,"歔"],[194802,1,"㱎"],[194803,1,"歲"],[194804,1,"殟"],[194805,1,"殺"],[194806,1,"殻"],[194807,1,"𣪍"],[194808,1,"𡴋"],[194809,1,"𣫺"],[194810,1,"汎"],[194811,1,"𣲼"],[194812,1,"沿"],[194813,1,"泍"],[194814,1,"汧"],[194815,1,"洖"],[194816,1,"派"],[194817,1,"海"],[194818,1,"流"],[194819,1,"浩"],[194820,1,"浸"],[194821,1,"涅"],[194822,1,"𣴞"],[194823,1,"洴"],[194824,1,"港"],[194825,1,"湮"],[194826,1,"㴳"],[194827,1,"滋"],[194828,1,"滇"],[194829,1,"𣻑"],[194830,1,"淹"],[194831,1,"潮"],[194832,1,"𣽞"],[194833,1,"𣾎"],[194834,1,"濆"],[194835,1,"瀹"],[194836,1,"瀞"],[194837,1,"瀛"],[194838,1,"㶖"],[194839,1,"灊"],[194840,1,"災"],[194841,1,"灷"],[194842,1,"炭"],[194843,1,"𠔥"],[194844,1,"煅"],[194845,1,"𤉣"],[194846,1,"熜"],[194847,3],[194848,1,"爨"],[194849,1,"爵"],[194850,1,"牐"],[194851,1,"𤘈"],[194852,1,"犀"],[194853,1,"犕"],[194854,1,"𤜵"],[194855,1,"𤠔"],[194856,1,"獺"],[194857,1,"王"],[194858,1,"㺬"],[194859,1,"玥"],[[194860,194861],1,"㺸"],[194862,1,"瑇"],[194863,1,"瑜"],[194864,1,"瑱"],[194865,1,"璅"],[194866,1,"瓊"],[194867,1,"㼛"],[194868,1,"甤"],[194869,1,"𤰶"],[194870,1,"甾"],[194871,1,"𤲒"],[194872,1,"異"],[194873,1,"𢆟"],[194874,1,"瘐"],[194875,1,"𤾡"],[194876,1,"𤾸"],[194877,1,"𥁄"],[194878,1,"㿼"],[194879,1,"䀈"],[194880,1,"直"],[194881,1,"𥃳"],[194882,1,"𥃲"],[194883,1,"𥄙"],[194884,1,"𥄳"],[194885,1,"眞"],[[194886,194887],1,"真"],[194888,1,"睊"],[194889,1,"䀹"],[194890,1,"瞋"],[194891,1,"䁆"],[194892,1,"䂖"],[194893,1,"𥐝"],[194894,1,"硎"],[194895,1,"碌"],[194896,1,"磌"],[194897,1,"䃣"],[194898,1,"𥘦"],[194899,1,"祖"],[194900,1,"𥚚"],[194901,1,"𥛅"],[194902,1,"福"],[194903,1,"秫"],[194904,1,"䄯"],[194905,1,"穀"],[194906,1,"穊"],[194907,1,"穏"],[194908,1,"𥥼"],[[194909,194910],1,"𥪧"],[194911,3],[194912,1,"䈂"],[194913,1,"𥮫"],[194914,1,"篆"],[194915,1,"築"],[194916,1,"䈧"],[194917,1,"𥲀"],[194918,1,"糒"],[194919,1,"䊠"],[194920,1,"糨"],[194921,1,"糣"],[194922,1,"紀"],[194923,1,"𥾆"],[194924,1,"絣"],[194925,1,"䌁"],[194926,1,"緇"],[194927,1,"縂"],[194928,1,"繅"],[194929,1,"䌴"],[194930,1,"𦈨"],[194931,1,"𦉇"],[194932,1,"䍙"],[194933,1,"𦋙"],[194934,1,"罺"],[194935,1,"𦌾"],[194936,1,"羕"],[194937,1,"翺"],[194938,1,"者"],[194939,1,"𦓚"],[194940,1,"𦔣"],[194941,1,"聠"],[194942,1,"𦖨"],[194943,1,"聰"],[194944,1,"𣍟"],[194945,1,"䏕"],[194946,1,"育"],[194947,1,"脃"],[194948,1,"䐋"],[194949,1,"脾"],[194950,1,"媵"],[194951,1,"𦞧"],[194952,1,"𦞵"],[194953,1,"𣎓"],[194954,1,"𣎜"],[194955,1,"舁"],[194956,1,"舄"],[194957,1,"辞"],[194958,1,"䑫"],[194959,1,"芑"],[194960,1,"芋"],[194961,1,"芝"],[194962,1,"劳"],[194963,1,"花"],[194964,1,"芳"],[194965,1,"芽"],[194966,1,"苦"],[194967,1,"𦬼"],[194968,1,"若"],[194969,1,"茝"],[194970,1,"荣"],[194971,1,"莭"],[194972,1,"茣"],[194973,1,"莽"],[194974,1,"菧"],[194975,1,"著"],[194976,1,"荓"],[194977,1,"菊"],[194978,1,"菌"],[194979,1,"菜"],[194980,1,"𦰶"],[194981,1,"𦵫"],[194982,1,"𦳕"],[194983,1,"䔫"],[194984,1,"蓱"],[194985,1,"蓳"],[194986,1,"蔖"],[194987,1,"𧏊"],[194988,1,"蕤"],[194989,1,"𦼬"],[194990,1,"䕝"],[194991,1,"䕡"],[194992,1,"𦾱"],[194993,1,"𧃒"],[194994,1,"䕫"],[194995,1,"虐"],[194996,1,"虜"],[194997,1,"虧"],[194998,1,"虩"],[194999,1,"蚩"],[195000,1,"蚈"],[195001,1,"蜎"],[195002,1,"蛢"],[195003,1,"蝹"],[195004,1,"蜨"],[195005,1,"蝫"],[195006,1,"螆"],[195007,3],[195008,1,"蟡"],[195009,1,"蠁"],[195010,1,"䗹"],[195011,1,"衠"],[195012,1,"衣"],[195013,1,"𧙧"],[195014,1,"裗"],[195015,1,"裞"],[195016,1,"䘵"],[195017,1,"裺"],[195018,1,"㒻"],[195019,1,"𧢮"],[195020,1,"𧥦"],[195021,1,"䚾"],[195022,1,"䛇"],[195023,1,"誠"],[195024,1,"諭"],[195025,1,"變"],[195026,1,"豕"],[195027,1,"𧲨"],[195028,1,"貫"],[195029,1,"賁"],[195030,1,"贛"],[195031,1,"起"],[195032,1,"𧼯"],[195033,1,"𠠄"],[195034,1,"跋"],[195035,1,"趼"],[195036,1,"跰"],[195037,1,"𠣞"],[195038,1,"軔"],[195039,1,"輸"],[195040,1,"𨗒"],[195041,1,"𨗭"],[195042,1,"邔"],[195043,1,"郱"],[195044,1,"鄑"],[195045,1,"𨜮"],[195046,1,"鄛"],[195047,1,"鈸"],[195048,1,"鋗"],[195049,1,"鋘"],[195050,1,"鉼"],[195051,1,"鏹"],[195052,1,"鐕"],[195053,1,"𨯺"],[195054,1,"開"],[195055,1,"䦕"],[195056,1,"閷"],[195057,1,"𨵷"],[195058,1,"䧦"],[195059,1,"雃"],[195060,1,"嶲"],[195061,1,"霣"],[195062,1,"𩅅"],[195063,1,"𩈚"],[195064,1,"䩮"],[195065,1,"䩶"],[195066,1,"韠"],[195067,1,"𩐊"],[195068,1,"䪲"],[195069,1,"𩒖"],[[195070,195071],1,"頋"],[195072,1,"頩"],[195073,1,"𩖶"],[195074,1,"飢"],[195075,1,"䬳"],[195076,1,"餩"],[195077,1,"馧"],[195078,1,"駂"],[195079,1,"駾"],[195080,1,"䯎"],[195081,1,"𩬰"],[195082,1,"鬒"],[195083,1,"鱀"],[195084,1,"鳽"],[195085,1,"䳎"],[195086,1,"䳭"],[195087,1,"鵧"],[195088,1,"𪃎"],[195089,1,"䳸"],[195090,1,"𪄅"],[195091,1,"𪈎"],[195092,1,"𪊑"],[195093,1,"麻"],[195094,1,"䵖"],[195095,1,"黹"],[195096,1,"黾"],[195097,1,"鼅"],[195098,1,"鼏"],[195099,1,"鼖"],[195100,1,"鼻"],[195101,1,"𪘀"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]')},6615:e=>{"use strict";e.exports={i8:"5.7.0"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}},s=!0;try{e[n].call(o.exports,o,o.exports,r),s=!1}finally{s&&delete t[n]}return o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{activate:()=>tn,configureStore:()=>qr,deactivate:()=>rn,default:()=>nn,metadata:()=>Xr});var e=r(9497),t=r.n(e),i=r(3100),o=r(1110),s=r(8316);let a=function(e){e()};const u=()=>a,c=(0,e.createContext)(null);let l=null;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var p=r(3463),f=r.n(p),m=r(3920);const g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function E(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a,u,c,l,d,h=!1;return function(p,f){return h?function(h,p){const f=!o(p,u),m=!i(h,a,p,u);return a=h,u=p,f&&m?(c=e(a,u),t.dependsOnOwnProps&&(l=t(n,u)),d=r(c,l,u),d):f?(e.dependsOnOwnProps&&(c=e(a,u)),t.dependsOnOwnProps&&(l=t(n,u)),d=r(c,l,u),d):m?function(){const t=e(a,u),n=!s(t,c);return c=t,n&&(d=r(c,l,u)),d}():d}(p,f):(a=p,u=f,c=e(a,u),l=t(n,u),d=r(c,l,u),h=!0,d)}}function y(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function v(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=v(e);let i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=v(i),i=n(t,r)),i},n}}function C(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function b(e,t,r){return d({},r,e,t)}const S={notify(){},get:()=>[]};function w(e,t){let r,n=S;function i(){s.onStateChange&&s.onStateChange()}function o(){r||(r=t?t.addNestedSub(i):e.subscribe(i),n=function(){const e=u();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}const s={addNestedSub:function(e){return o(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(r)},trySubscribe:o,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=S)},getListeners:()=>n};return s}const O="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!_(e[r[n]],t[r[n]]))return!1;return!0}const D=["reactReduxForwardedRef"];let T=()=>{throw new Error("uSES not initialized!")};const B=[null,null];function I(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function F(e,t){return e===t}const R=function(r,n,i,{pure:o,areStatesEqual:s=F,areOwnPropsEqual:a=x,areStatePropsEqual:u=x,areMergedPropsEqual:l=x,forwardRef:p=!1,context:v=c}={}){const S=v,_=function(e){return e?"function"==typeof e?A(e):C(e,"mapStateToProps"):y((()=>({})))}(r),R=function(e){return e&&"object"==typeof e?y((t=>function(e,t){const r={};for(const n in e){const i=e[n];"function"==typeof i&&(r[n]=(...e)=>t(i(...e)))}return r}(e,t))):e?"function"==typeof e?A(e):C(e,"mapDispatchToProps"):y((e=>({dispatch:e})))}(n),P=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let i,o=!1;return function(t,r,s){const a=e(t,r,s);return o?n(a,i)||(i=a):(o=!0,i=a),i}}}(e):C(e,"mergeProps"):()=>b}(i),k=Boolean(r);return r=>{const n=r.displayName||r.name||"Component",i=`Connect(${n})`,o={shouldHandleStateChanges:k,displayName:i,wrappedComponentName:n,WrappedComponent:r,initMapStateToProps:_,initMapDispatchToProps:R,initMergeProps:P,areStatesEqual:s,areStatePropsEqual:u,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(n){const[i,s,a]=(0,e.useMemo)((()=>{const{reactReduxForwardedRef:e}=n,t=h(n,D);return[n.context,e,t]}),[n]),u=(0,e.useMemo)((()=>i&&i.Consumer&&(0,m.isContextConsumer)(t().createElement(i.Consumer,null))?i:S),[i,S]),c=(0,e.useContext)(u),l=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),p=Boolean(c)&&Boolean(c.store),f=l?n.store:c.store,y=p?c.getServerState:f.getState,v=(0,e.useMemo)((()=>function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,o=h(t,g);return E(r(e,o),n(e,o),i(e,o),e,o)}(f.dispatch,o)),[f]),[A,C]=(0,e.useMemo)((()=>{if(!k)return B;const e=w(f,l?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,l,c]),b=(0,e.useMemo)((()=>l?c:d({},c,{subscription:A})),[l,c,A]),_=(0,e.useRef)(),x=(0,e.useRef)(a),F=(0,e.useRef)(),R=(0,e.useRef)(!1),P=((0,e.useRef)(!1),(0,e.useRef)(!1)),N=(0,e.useRef)();O((()=>(P.current=!0,()=>{P.current=!1})),[]);const M=(0,e.useMemo)((()=>()=>F.current&&a===x.current?F.current:v(f.getState(),a)),[f,a]),L=(0,e.useMemo)((()=>e=>A?function(e,t,r,n,i,o,s,a,u,c,l){if(!e)return()=>{};let d=!1,h=null;const p=()=>{if(d||!a.current)return;const e=t.getState();let r,p;try{r=n(e,i.current)}catch(e){p=e,h=e}p||(h=null),r===o.current?s.current||c():(o.current=r,u.current=r,s.current=!0,l())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}(k,f,A,v,x,_,R,P,F,C,e):()=>{}),[A]);var j,U;let V;j=I,U=[x,_,R,a,F,C],O((()=>j(...U)),undefined);try{V=T(L,M,y?()=>v(y(),a):M)}catch(e){throw N.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${N.current.stack}\n\n`),e}O((()=>{N.current=void 0,F.current=void 0,_.current=V}));const z=(0,e.useMemo)((()=>t().createElement(r,d({},V,{ref:s}))),[s,r,V]);return(0,e.useMemo)((()=>k?t().createElement(u.Provider,{value:b},z):z),[u,z,b])}const y=t().memo(c);if(y.WrappedComponent=r,y.displayName=c.displayName=i,p){const e=t().forwardRef((function(e,r){return t().createElement(y,d({},e,{reactReduxForwardedRef:r}))}));return e.displayName=i,e.WrappedComponent=r,f()(e,r)}return f()(y,r)}},P=function({store:r,context:n,children:i,serverState:o}){const s=(0,e.useMemo)((()=>{const e=w(r);return{store:r,subscription:e,getServerState:o?()=>o:void 0}}),[r,o]),a=(0,e.useMemo)((()=>r.getState()),[r]);O((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==r.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,a]);const u=n||c;return t().createElement(u.Provider,{value:s},i)};var k;l=o.useSyncExternalStoreWithSelector,(e=>{T=e})(i.useSyncExternalStore),k=s.unstable_batchedUpdates,a=k;var N=r(3980),M=r.n(N);const L=require("@mongodb-js/compass-components"),j=require("compass-preferences-model");r(8166),r(6464),r(5162);var U=r(2563),V=r.n(U),z=r(5130),$=r.n(z),W=r(6635),H=r(8761);const G="indexes/reset-form",q=()=>({type:G});let K=function(e){return e.HandleError="indexes/error/HANDLE_ERROR",e.ClearError="indexes/error/CLEAR_ERROR",e}({});const Y=null;function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0;return t.type===K.HandleError?J(t.error):t.type===K.ClearError||t.type===G?Y:e}const X=e=>({type:K.HandleError,error:e}),Z=()=>({type:K.ClearError}),J=e=>"string"==typeof e?e:"string"==typeof e?.message?e.message:e instanceof H.MongoError&&"string"===e.errmsg?e.errmsg:"Unknown error";let ee=function(e){return e.RefreshStarted="indexes/is-refreshing/RefreshStarted",e.RefreshFinished="indexes/is-refreshing/RefreshFinished",e}({});r(0),r(8339);const te="indexes/in-progress-indexes/IN_PROGRESS_INDEXES_ADDED",re="indexes/in-progress-indexes/IN_PROGRESS_INDEXES_REMOVED",ne="indexes/in-progress-indexes/IN_PROGRESS_INDEXES_FAILED",ie=[],oe=e=>({type:re,inProgressIndexId:e}),se=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will no longer be visible to the query planner and cannot be used to support a query. If the impact is negative, you can unhide this index."),ae=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will become visible to the query planner and can be used to support a query. If the impact is negative, you can hide this index."),ue=$()("mongodb-compass:modules:indexes"),ce={"Name and Definition":"name",Type:"type",Size:"size",Usage:"usageCount",Properties:"properties"};let le=function(e){return e.LoadIndexes="indexes/indexes/LOAD_INDEXES",e.SortIndexes="indexes/indexes/SORT_INDEXES",e}({});const de=[],he=(e,t)=>{e((e=>({type:le.LoadIndexes,indexes:e}))(t)),e({type:ee.RefreshFinished}),e((0,U.localAppRegistryEmit)("indexes-changed",t))},pe=()=>async(e,t)=>{const{isReadonly:r,dataService:n,namespace:i,sortColumn:o,sortOrder:s,inProgressIndexes:a}=t();if(r)return he(e,[]);if(!n||!n.isConnected())return e({type:ee.RefreshFinished}),void ue("warning: trying to load indexes but dataService is disconnected",n);try{const t=function(e,t){e=(0,W.cloneDeep)(e);for(const r of t){const t=e.find((e=>e.name===r.name));t?(t.extra=t.extra??{},t.extra.status=r.extra.status,r.extra.error&&(t.extra.error=r.extra.error)):e.push(r)}return e}(await n.indexes(i),(0,W.cloneDeep)(a)).sort(fe(me(o),s));he(e,t)}catch(t){e(X(t)),he(e,[])}},fe=(e,t)=>{const r="asc"===t?1:-1;return"properties"===e?(e=>function(t,r){const n="compound"===t.cardinality?"compound":t.properties?.[0]||"",i="compound"===r.cardinality?"compound":r.properties?.[0]||"";return n>i?e:n<i?-e:0})(r):function(t,n){return void 0===n[e]?r:void 0===t[e]?-r:t[e]>n[e]?r:t[e]<n[e]?-r:0}},me=e=>ce[e],ge=(0,L.css)({margin:`${L.spacing[3]}px 0`}),Ee=(0,L.css)({display:"flex",flexDirection:"row",gap:L.spacing[2],justifyContent:"flex-start",alignItems:"center"}),ye=(0,L.css)({marginTop:L.spacing[2]}),ve=(0,L.css)({marginRight:L.spacing[2]}),Ae=(0,L.css)({display:"inline-block",width:"fit-content"}),Ce=r=>{let{errorMessage:n,isReadonly:i,isReadonlyView:o,isWritable:s,localAppRegistry:a,isRefreshing:u,writeStateDescription:c,hasTooManyIndexes:l,onRefreshIndexes:d,readOnly:h}=r;const p=(0,j.usePreference)("showInsights",t())&&!n,f=(0,e.useCallback)((()=>{a.emit("open-create-index-modal")}),[a]),m=!(i||o||h||n),g=u?t().createElement("div",{className:ve},t().createElement(L.SpinLoader,{title:"Refreshing Indexes"})):t().createElement(L.Icon,{glyph:"Refresh",title:"Refresh Indexes"});return t().createElement("div",{className:ge},!o&&t().createElement("div",{"data-testid":"indexes-toolbar"},t().createElement("div",{className:Ee},m&&t().createElement(L.Tooltip,{enabled:!s,align:"top",justify:"middle",trigger:e=>{let{children:r,...n}=e;return t().createElement("div",(0,L.mergeProps)({className:Ae},n),t().createElement(L.Button,{"data-testid":"open-create-index-modal-button",disabled:!s,onClick:f,variant:"primary",size:"small"},"Create Index"),r)}},c),t().createElement(L.Button,{"data-testid":"refresh-indexes-button",disabled:u,onClick:()=>d(),variant:"default",size:"small",leftGlyph:g},"Refresh"),p&&l&&t().createElement(L.SignalPopover,{signals:L.PerformanceSignals.get("too-many-indexes")}))),o?t().createElement(L.WarningSummary,{className:ye,warnings:["Readonly views may not contain indexes."]}):!!n&&t().createElement(L.ErrorSummary,{className:ye,errors:[n]}))},be={SINGLE:"https://docs.mongodb.org/manual/core/index-single/",COMPOUND:"https://docs.mongodb.org/manual/core/index-compound/",UNIQUE:"https://docs.mongodb.org/manual/core/index-unique/",PARTIAL:"https://docs.mongodb.org/manual/core/index-partial/",SPARSE:"https://docs.mongodb.org/manual/core/index-sparse/",TTL:"https://docs.mongodb.org/manual/core/index-ttl/","2D":"https://docs.mongodb.org/manual/core/2d/","2DSPHERE":"https://docs.mongodb.org/manual/core/2dsphere/",GEOHAYSTACK:"https://docs.mongodb.org/manual/core/geohaystack/",GEOSPATIAL:"https://docs.mongodb.org/manual/applications/geospatial-indexes/#geospatial-indexes",WILDCARD:"https://docs.mongodb.com/manual/core/index-wildcard/",CLUSTERED:"https://www.mongodb.com/docs/manual/core/clustered-collections/",COLUMNSTORE:null,TEXT:"https://docs.mongodb.org/manual/core/index-text/",HASHED:"https://docs.mongodb.org/manual/core/index-hashed/",REGULAR:"https://docs.mongodb.com/manual/indexes/#single-field",COLLATION:"https://docs.mongodb.com/master/reference/bson-type-comparison-order/#collation",COLLATION_REF:"https://docs.mongodb.com/master/reference/collation",HIDDEN:"https://www.mongodb.com/docs/manual/core/index-hidden/",UNKNOWN:null};function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"UNKNOWN";return be[e?.toUpperCase()]??null}const we=(0,L.css)({gap:L.spacing[2]}),Oe=(0,L.css)({lineHeight:0,color:L.palette.white,span:{backgroundImage:"none !important"}},L.focusRing),_e=e=>{let{text:r,link:n}=e;return t().createElement(L.Badge,{variant:L.BadgeVariant.DarkGray,className:we,"data-testid":`${r}-badge`},r,t().createElement(L.Link,{hideExternalIcon:!0,"aria-label":r,className:Oe,href:n},t().createElement(L.Icon,{glyph:"InfoWithCircle"})))},xe=e=>-1!==["text","wildcard","columnstore"].indexOf(e??""),De=e=>{let{extra:r}=e;const n=["weights","default_language","language_override","wildcardProjection","columnstoreProjection"],i=[];for(const e in r)n.includes(e)&&i.push(t().createElement(L.Body,{key:e},`${e}: ${JSON.stringify(r[e])}`));return t().createElement(t().Fragment,null,i)},Te=e=>{let{type:r,extra:n}=e;const i=Se(r);return t().createElement(L.Tooltip,{enabled:xe(r),trigger:e=>{let{children:n,...o}=e;return t().createElement("span",o,n,t().createElement(_e,{text:r??"unknown",link:i??"#"}))}},t().createElement(De,{extra:n}))};var Be=r(2077),Ie=r.n(Be);const Fe=e=>{let{relativeSize:r,size:n}=e;return t().createElement(L.Tooltip,{trigger:e=>{let{children:r,...i}=e;return t().createElement("span",i,r,t().createElement(L.Body,null,(e=>{const t=e<=1e3?"0":"0.0";return Ie()(e).format(t+" b")})(n)))}},t().createElement(L.Body,null,(e=>`${e.toFixed(2)}% compared to largest index`)(r)))},Re=e=>{let{usage:r,since:n}=e;return t().createElement(L.Tooltip,{trigger:e=>{let{children:i,...o}=e;return t().createElement("span",o,i,t().createElement(L.Body,null,r||0," ",t().createElement(t().Fragment,null,n?`(since ${n.toDateString()})`:"")))}},t().createElement(L.Body,null,(e=>e?`${e} index hits since index creation or last server restart`:"Either the server does not support the $indexStats command or the user is not authorized to execute it.")(r)))},Pe=(0,L.css)({display:"flex",gap:L.spacing[1],minWidth:7*L.spacing[3],alignItems:"baseline"}),ke=(e,t)=>{return"ttl"===e?`expireAfterSeconds: ${t.expireAfterSeconds}`:"partial"===e?(r=t.partialFilterExpression,`partialFilterExpression: ${JSON.stringify(r)}`):null;var r},Ne=e=>{let{text:r,link:n,tooltip:i}=e;return t().createElement(L.Tooltip,{enabled:!!i,trigger:e=>{let{children:i,...o}=e;return t().createElement("span",o,i,t().createElement(_e,{link:n,text:r}))}},t().createElement(L.Body,null,i))},Me=e=>{let{tooltip:r,darkMode:n}=e;return t().createElement(L.Tooltip,{enabled:!!r,darkMode:n,delay:500,trigger:e=>{let{children:r,...n}=e;return t().createElement("span",n,r,t().createElement(L.Badge,{variant:L.BadgeVariant.Red},"Failed"))}},t().createElement(L.Body,null,r))},Le="HIDDEN",je=e=>{let{extra:r,properties:n,cardinality:i}=e;const o=(0,L.useDarkMode)();return t().createElement("div",{className:Pe},n?.map((e=>t().createElement(Ne,{key:e,text:e,link:Se(e)??"#",tooltip:ke(e,r)}))),"compound"===i&&t().createElement(Ne,{text:i,link:Se(i)??"#"}),r.hidden&&t().createElement(Ne,{text:Le,link:Se(Le)??"#"}),"inprogress"===r.status&&t().createElement(L.Badge,{variant:L.BadgeVariant.Blue},"In Progress ..."),"failed"===r.status&&t().createElement(Me,{tooltip:r.error?String(r.error):"",darkMode:o}))};var Ue=r(6625),Ve=r.n(Ue);const ze=r=>{let{index:n,serverVersion:i,onDeleteIndex:o,onHideIndex:s,onUnhideIndex:a}=r;const u=(0,e.useMemo)((()=>{const e=[{action:"delete",label:`Drop Index ${n.name}`,icon:"Trash"}];return(e=>{try{return Ve().gte(e,"4.4.0")}catch(e){return!0}})(i)&&e.unshift(n.extra?.hidden?{action:"unhide",label:`Unhide Index ${n.name}`,tooltip:"Unhide Index",icon:"Visibility"}:{action:"hide",label:`Hide Index ${n.name}`,tooltip:"Hide Index",icon:"VisibilityOff"}),e}),[n,i]),c=(0,e.useCallback)((e=>{"delete"===e?o(n):"hide"===e?s(n.name):"unhide"===e&&a(n.name)}),[o,s,a,n]);return t().createElement(L.ItemActionGroup,{"data-testid":"index-actions",actions:u,onAction:c})},$e=(0,L.css)({":hover":{".index-actions-cell":{button:{opacity:1}}}}),We=(0,L.css)({button:{opacity:0,"&:focus":{opacity:1}},minWidth:L.spacing[5]}),He=(0,L.css)({borderWidth:0,borderBottomWidth:3,"> div":{justifyContent:"space-between"}}),Ge=(0,L.css)({verticalAlign:"middle"}),qe=(0,L.css)({padding:0}),Ke=(0,L.css)({thead:{position:"sticky",top:0,background:L.palette.white,zIndex:5}}),Ye=(0,L.css)({padding:L.spacing[3]}),Qe=(0,L.css)({flex:1,position:"relative",overflow:"hidden"}),Xe=r=>{let{indexes:n,canModifyIndex:i,serverVersion:o,onSortTable:s,onDeleteIndex:a,onHideIndex:u,onUnhideIndex:c}=r;const l=(0,e.useRef)(null),[h,{height:p}]=(0,L.useDOMRect)(),f=(0,e.useMemo)((()=>{const e=["Name and Definition","Type","Size","Usage","Properties"].map((e=>t().createElement(L.TableHeader,{"data-testid":`index-header-${e}`,label:e,key:e,className:He,handleSort:t=>{s(e,t)}})));return i&&e.push(t().createElement(L.TableHeader,{label:"",className:He})),e}),[i,s]);return(0,e.useEffect)((()=>{const e=l.current?.getElementsByTagName("table")[0],t=e?.parentElement;if(e&&t){const r=p-3*L.spacing[3],n=Math.max(e.clientHeight,r/2),i=Math.max(0,Math.min(n,r));t.style.height=`${i}px`}}),[p]),t().createElement("div",d({className:Qe},h),t().createElement(L.KeylineCard,{ref:l,"data-testid":"indexes",className:Ye},t().createElement(L.Table,{className:Ke,data:n,columns:f,"data-testid":"indexes-list","aria-label":"Indexes List Table"},(e=>{let{datum:r}=e;return t().createElement(L.Row,{key:r.name,"data-testid":`index-row-${r.name}`,className:$e},t().createElement(L.Cell,{"data-testid":"index-name-field",className:Ge},r.name),t().createElement(L.Cell,{"data-testid":"index-type-field",className:Ge},t().createElement(Te,{type:r.type,extra:r.extra})),t().createElement(L.Cell,{"data-testid":"index-size-field",className:Ge},t().createElement(Fe,{size:r.size,relativeSize:r.relativeSize})),t().createElement(L.Cell,{"data-testid":"index-usage-field",className:Ge},t().createElement(Re,{usage:r.usageCount,since:r.usageSince})),t().createElement(L.Cell,{"data-testid":"index-property-field",className:Ge},t().createElement(je,{cardinality:r.cardinality,extra:r.extra,properties:r.properties})),i&&t().createElement(L.Cell,{"data-testid":"index-actions-field",className:Ge},"_id_"!==r.name&&"inprogress"!==r.extra.status&&t().createElement("div",{className:(0,L.cx)(We,"index-actions-cell")},t().createElement(ze,{index:r,serverVersion:o,onDeleteIndex:a,onHideIndex:u,onUnhideIndex:c}))),t().createElement(L.Row,null,t().createElement(L.Cell,{className:(0,L.cx)(qe,Ge),colSpan:i?6:5},t().createElement(L.IndexKeysBadge,{keys:r.fields}))))}))))},Ze=(0,L.css)({margin:L.spacing[3],marginTop:0,display:"flex",flexDirection:"column",width:"100%"}),Je={sortIndexes:(e,t)=>(r,n)=>{const{indexes:i}=n();r({type:le.SortIndexes,indexes:i,column:e,order:t})},refreshIndexes:()=>e=>{e(pe()),e({type:ee.RefreshStarted})},dropFailedIndex:e=>t=>{t(oe(e)),t(pe())},onHideIndex:e=>async(t,r)=>{const{dataService:n,namespace:i}=r();if(await(0,L.showConfirmation)({title:`Hiding \`${e}\``,description:se(e)}))try{await(n?.updateCollection(i,{index:{name:e,hidden:!0}})),t(pe())}catch(e){(0,L.openToast)("hide-index-error",{title:"Failed to hide the index",variant:"warning",description:`An error occurred while hiding the index. ${e.message}`})}},onUnhideIndex:e=>async(t,r)=>{const{namespace:n,dataService:i}=r();if(await(0,L.showConfirmation)({title:`Unhiding \`${e}\``,description:ae(e)}))try{await(i?.updateCollection(n,{index:{name:e,hidden:!1}})),t(pe())}catch(e){(0,L.openToast)("unhide-index-error",{title:"Failed to unhide the index",variant:"warning",description:`An error occurred while unhiding the index. ${e.message}`})}}},et=R((e=>{let{indexes:t,isWritable:r,isReadonly:n,isReadonlyView:i,description:o,error:s,isRefreshing:a,serverVersion:u,appRegistry:c}=e;return{indexes:t,isWritable:r,isReadonly:n,isReadonlyView:i,description:o,error:s,localAppRegistry:c.localAppRegistry,isRefreshing:a,serverVersion:u}}),Je)((0,j.withPreferences)((e=>{let{indexes:r,isWritable:n,isReadonly:i,isReadonlyView:o,description:s,error:a,localAppRegistry:u,isRefreshing:c,serverVersion:l,sortIndexes:d,refreshIndexes:h,dropFailedIndex:p,onHideIndex:f,onUnhideIndex:m,readOnly:g}=e;return t().createElement("div",{className:Ze},t().createElement(Ce,{isWritable:n,isReadonly:i,isReadonlyView:o,readOnly:g,errorMessage:a,localAppRegistry:u,isRefreshing:c,writeStateDescription:s,hasTooManyIndexes:r.length>10,onRefreshIndexes:h}),!o&&!a&&t().createElement(Xe,{indexes:r,serverVersion:l,canModifyIndex:n&&!i&&!g,onSortTable:d,onDeleteIndex:e=>"failed"===e.extra.status?p(String(e.extra.id)):u.emit("toggle-drop-index-modal",!0,e.name),onHideIndex:f,onUnhideIndex:m}))}),["readOnly"],t()));class tt extends e.Component{static displayName="IndexesPlugin";static propTypes={store:M().object.isRequired};render(){return t().createElement(P,{store:this.props.store},t().createElement(et,null))}}const rt=tt,nt=require("@mongodb-js/compass-logging");r(2856),r(7610);const it="indexes/create-index/fields/ADD_FIELD",ot="indexes/create-index/fields/UPDATE_FIELD_TYPE",st="indexes/create-index/fields/REMOVE_FIELD",at="indexes/create-index/fields/CHANGE_FIELDS",ut=[{name:"",type:""}],ct="indexes/create-index/schema-fields/CHANGE_SCHEMA_FIELDS",lt=[],dt=e=>({type:ct,schemaFields:e});r(4925),r(4819),r(4407),r(4903),r(4715),r(9570);var ht=r(345);function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function ft(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==pt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){ft(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Et(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yt="function"==typeof Symbol&&Symbol.observable||"@@observable",vt=function(){return Math.random().toString(36).substring(7).split("").join(".")},At={INIT:"@@redux/INIT"+vt(),REPLACE:"@@redux/REPLACE"+vt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vt()}};function Ct(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Et(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Et(1));return r(Ct)(e,t)}if("function"!=typeof e)throw new Error(Et(2));var i=e,o=t,s=[],a=s,u=!1;function c(){a===s&&(a=s.slice())}function l(){if(u)throw new Error(Et(3));return o}function d(e){if("function"!=typeof e)throw new Error(Et(4));if(u)throw new Error(Et(5));var t=!0;return c(),a.push(e),function(){if(t){if(u)throw new Error(Et(6));t=!1,c();var r=a.indexOf(e);a.splice(r,1),s=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Et(7));if(void 0===e.type)throw new Error(Et(8));if(u)throw new Error(Et(9));try{u=!0,o=i(o,e)}finally{u=!1}for(var t=s=a,r=0;r<t.length;r++)(0,t[r])();return e}return h({type:At.INIT}),(n={dispatch:h,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Et(10));i=e,h({type:At.REPLACE})}})[yt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Et(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[yt]=function(){return this},e},n}function bt(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];"function"==typeof e[i]&&(r[i]=e[i])}var o,s=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:At.INIT}))throw new Error(Et(12));if(void 0===r(void 0,{type:At.PROBE_UNKNOWN_ACTION()}))throw new Error(Et(13))}))}(r)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var n=!1,i={},a=0;a<s.length;a++){var u=s[a],c=r[u],l=e[u],d=c(l,t);if(void 0===d)throw t&&t.type,new Error(Et(14));i[u]=d,n=n||d!==l}return(n=n||s.length!==Object.keys(e).length)?i:e}}function St(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function wt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(Et(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return n=St.apply(void 0,o)(r.dispatch),gt(gt({},r),{},{dispatch:n})}}}var Ot=r(315);Ot.default,Ot.DEFAULT_COLLATION,Ot.DEFAULT_FILTER,Ot.DEFAULT_LIMIT,Ot.DEFAULT_MAX_TIME_MS,Ot.DEFAULT_PROJECT,Ot.DEFAULT_SKIP,Ot.DEFAULT_SORT,Ot.QUERY_PROPERTIES;const _t=Ot.isCollationValid;Ot.isFilterValid,Ot.isLimitValid,Ot.isMaxTimeMSValid,Ot.isProjectValid,Ot.isSkipValid,Ot.isSortValid,Ot.parseCollation,Ot.parseFilter,Ot.parseProject,Ot.parseSort,Ot.stringify,Ot.toJSString,Ot.validate;let xt=function(e){return e.DataServiceConnected="indexes/data-service/DATA_SERVICE_CONNECTED",e}({});function Dt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return t.type===xt.DataServiceConnected?t.dataService:e}const Tt=e=>({type:xt.DataServiceConnected,dataService:e}),Bt="indexes/in-progress/TOGGLE_IN_PROGRESS",It=!1;function Ft(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It,t=arguments.length>1?arguments[1]:void 0;return t.type===Bt?t.inProgress:t.type===G?It:e}const Rt=e=>({type:Bt,inProgress:e}),Pt="indexes/is-visible/TOGGLE_IS_VISIBLE",kt=!1;function Nt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kt,t=arguments.length>1?arguments[1]:void 0;return t.type===Pt?t.isVisible:t.type===G?kt:e}const Mt=e=>({type:Pt,isVisible:e}),Lt="explain/namespace/NAMESPACE_CHANGED";function jt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===Lt?t.namespace:e}const Ut=e=>({type:Lt,namespace:e}),Vt="compass-indexes/server-version/SERVER_VERSION_CHANGED",zt="4.0.0";function $t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt,t=arguments.length>1?arguments[1]:void 0;return t.type===Vt&&t.version||e}const Wt=e=>({type:Vt,version:e}),Ht={unique:{type:"checkbox",label:"Create unique index",description:"A unique index ensures that the indexed fields do not store duplicate values; i.e. enforces uniqueness for the indexed fields."},name:{type:"text",label:"Index name",description:"Enter the name of the index to create, or leave blank to have MongoDB create a default name for the index.",units:void 0,optional:!0},expireAfterSeconds:{type:"number",label:"Create TTL",description:"TTL indexes are special single-field indexes that MongoDB can use to automatically remove documents from a collection after a certain amount of time or at a specific clock time.",units:"seconds",optional:!1},partialFilterExpression:{type:"code",label:"Partial Filter Expression",description:"Partial indexes only index the documents in a collection that meet a specified filter expression.",units:void 0,optional:!1},wildcardProjection:{type:"code",label:"Wildcard Projection",description:"Wildcard indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},collation:{type:"code",label:"Use Custom Collation",description:"Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.",units:void 0,optional:!1},columnstoreProjection:{type:"code",label:t().createElement(t().Fragment,null,"Columnstore Projection ",t().createElement(L.Badge,null,"Preview")),description:"Columnstore indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},sparse:{type:"checkbox",label:"Create sparse index",description:"Sparse indexes only contain entries for documents that have the indexed field, even if the index field contains a null value. The index skips over any document that is missing the indexed field."}};var Gt=function(e){return e.ChangeOption="compass-indexes/create-index/change-option",e.ChangeOptionEnabled="compass-indexes/create-index/change-option-enabled",e}(Gt||{});function qt(e,t){return{type:Gt.ChangeOption,name:e,value:t}}const Kt=Object.fromEntries(Object.keys(Ht).map((e=>[e,{value:"checkbox"!==Ht[e].type&&"",enabled:!1}])));function Yt(e,t){return e.type===t}const Qt="20.0.0-alpha0";function Xt(e){if(!e)return!0;try{return Ve().gte(e,Qt)}catch(e){return!0}}const{track:Zt}=(0,nt.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Jt=bt({dataService:Dt,appRegistry:V(),namespace:jt,serverVersion:$t,inProgress:Ft,isVisible:Nt,fields:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,t=arguments.length>1?arguments[1]:void 0;const r=[...e];if(t.type===it)return r.push({name:"",type:""}),r;if(t.type===st)return r.splice(t.idx,1),r;if(t.type===ot){if(t.idx>=0&&t.idx<r.length){const e={...r[t.idx]};e.type=t.fType,r[t.idx]=e}return r}return t.type===at?t.fields:t.type===G?ut:e},schemaFields:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt,t=arguments.length>1?arguments[1]:void 0;return t.type===ct?t.schemaFields:e},error:Q,options:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kt,t=arguments.length>1?arguments[1]:void 0;return Yt(t,Gt.ChangeOption)?{...e,[t.name]:{value:t.value,enabled:"checkbox"===Ht[t.name].type||e[t.name].enabled}}:Yt(t,Gt.ChangeOptionEnabled)?{...e,[t.name]:{...e[t.name],enabled:t.enabled}}:t.type===G?JSON.parse(JSON.stringify(Kt)):e}}),er=["1 (asc)","-1 (desc)","2dsphere","text","columnstore"],tr={name:"Select or type a field name",type:"Select a type"},rr=(0,L.css)({display:"flex",gap:L.spacing[2]}),nr=(0,L.css)({flexGrow:1,textTransform:"none",whiteSpace:"nowrap"}),ir=(0,L.css)({textTransform:"none",whiteSpace:"nowrap"});function or(r){let{fields:n,serverVersion:i,schemaFields:o,addField:s,removeField:a,updateFieldName:u,updateFieldType:c}=r;const[l,d]=(0,e.useMemo)((()=>{const e=Xt(i);return[er.filter((t=>e||"columnstore"!==t)),`calc(${Math.max(...er.map((e=>e.length)))}ch + ${L.spacing[6]+(e?L.spacing[6]:0)}px)`]}),[i]),h=(0,e.useCallback)(((e,t)=>{null!==t&&u(e,t)}),[u]),p=o.map((e=>({value:e})));return t().createElement(L.ListEditor,{items:n,renderItem:(e,r)=>t().createElement("div",{className:rr,"data-testid":`create-index-fields-line-${r}`},t().createElement("div",{className:nr,"data-testid":`create-index-fields-name-${r}`},t().createElement(L.ComboboxWithCustomOption,{"aria-label":"Index fields",placeholder:tr.name,size:"default",clearable:!1,overflow:"scroll-x",onChange:e=>h(r,e),options:p,renderOption:(e,r,n)=>t().createElement(L.ComboboxOption,{key:`field-option-${r}`,value:e.value,displayName:n?`Field: "${e.value}"`:e.value})})),t().createElement("div",{className:ir,"data-testid":`create-index-fields-type-${r}`},t().createElement(L.Select,{id:`create-index-fields-type-select-${r}`,placeholder:tr.type,onChange:e=>c(r,e),allowDeselect:!1,value:e.type,popoverZIndex:999999,"aria-labelledby":"Field type",style:{width:d}},l.map((e=>t().createElement(L.Option,{key:e,value:e},e,"columnstore"===e&&t().createElement(t().Fragment,null," ",t().createElement(L.Badge,null,"Preview")))))))),onAddItem:s,onRemoveItem:a,addButtonTestId:"add-index-field-button",removeButtonTestId:"remove-index-field-button"})}const sr=R(((e,t)=>{let{name:r}=t;return{label:Ht[r].label,description:Ht[r].description,checked:e.options[r].value}}),{onChange:qt})((e=>{let{name:r,label:n,description:i,disabled:o,checked:s,onChange:a}=e;const u=`create-index-modal-${r}-checkbox`;return t().createElement(L.FormFieldContainer,null,t().createElement(L.Checkbox,{id:u,"data-testid":u,checked:s,onChange:e=>{a(r,e.target.checked)},label:t().createElement(L.Label,{htmlFor:u},n),description:i,disabled:o}))})),ar=require("@mongodb-js/compass-editor"),ur=R(((e,t)=>{let{name:r}=t;return{type:Ht[r].type,label:Ht[r].label,description:Ht[r].description,optional:Ht[r].optional,units:Ht[r].units,value:e.options[r].value,enabled:e.options[r].enabled}}),{onChange:qt,onEnabled:function(e,t){return{type:Gt.ChangeOptionEnabled,name:e,enabled:t}}})((e=>{let{name:r,type:n,label:i,description:o,disabled:s,optional:a,units:u,value:c,onChange:l,enabled:d,onEnabled:h}=e;const p=`create-index-modal-${r}`,f=`${p}-${n}`;return t().createElement(L.CollapsibleFieldSet,{id:p,toggled:!s&&d,onToggle:e=>{h(r,e)},label:i,"data-testid":p,description:o,disabled:s},"code"===n?t().createElement(ar.CodemirrorMultilineEditor,{"data-testid":f,text:c,onChangeText:e=>{l(r,e)},id:f,"aria-labelledby":p,readOnly:s}):t().createElement(L.TextInput,{id:f,value:c,"data-testid":f,type:n,onChange:e=>{l(r,e.target.value)},spellCheck:!1,disabled:s,optional:a,label:u,"aria-labelledby":u?void 0:p}))})),cr=(0,L.css)({margin:`${L.spacing[4]}px 0 ${L.spacing[5]}px 0`}),lr=(0,L.css)({marginBottom:L.spacing[1]}),dr=(0,L.css)({paddingLeft:L.spacing[1]+2});function hr(e){let{fields:r,schemaFields:n,serverVersion:i,updateFieldName:o,updateFieldType:s,addField:a,removeField:u}=e;return t().createElement(t().Fragment,null,t().createElement("div",{className:cr,"data-testid":"create-index-form"},t().createElement(L.Body,{weight:"medium",className:lr},"Index fields"),r.length>0?t().createElement(or,{schemaFields:n,fields:r,serverVersion:i,isRemovable:!(r.length>1),updateFieldName:o,updateFieldType:s,addField:a,removeField:u}):null),t().createElement(L.Accordion,{"data-testid":"create-index-modal-toggle-options",text:"Options"},t().createElement("div",{"data-testid":"create-index-modal-options",className:dr},t().createElement(sr,{name:"unique"}),t().createElement(ur,{name:"name"}),t().createElement(ur,{name:"expireAfterSeconds"}),t().createElement(ur,{name:"partialFilterExpression"}),t().createElement(ur,{name:"wildcardProjection"}),t().createElement(ur,{name:"collation"}),Xt(i)&&t().createElement(ur,{name:"columnstoreProjection"}),t().createElement(sr,{name:"sparse"}))))}const pr=(0,L.css)({display:"flex",flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",gap:L.spacing[2]}),fr=(0,L.css)({flexGrow:1,width:"100%"}),mr=(0,L.css)({flex:"none"}),gr=function(e){let{error:r,clearError:n,inProgress:i,createIndex:o,closeCreateIndexModal:s}=e;return t().createElement("div",{className:pr},(()=>{if(r)return t().createElement("div",{"data-testid":"create-index-actions-error-banner-wrapper",className:fr},t().createElement(L.Banner,{variant:"danger",dismissible:!0,onClose:n},r))})(),(()=>{if(!r&&i)return t().createElement("div",{"data-testid":"create-index-actions-in-progress-banner-wrapper",className:fr},t().createElement(L.Banner,{variant:"info"},"Index creation in progress. The dialog can be closed."))})(),t().createElement(L.Button,{"data-testid":"create-index-actions-cancel-button",onClick:()=>{s()}},i?"Close":"Cancel"),!i&&t().createElement(L.Button,{"data-testid":"create-index-actions-create-index-button",onClick:()=>{o()},variant:"primary",className:mr},"Create Index"))},Er={changeSchemaFields:dt,clearError:Z,handleError:X,createIndex:()=>async(e,t)=>{const r=t(),n={};if(r.fields.some((e=>""===e.name||""===e.type)))return void e(X("You must select a field name and type"));const i=r.options;r.fields.forEach((e=>{let t=e.type;"1 (asc)"===e.type&&(t=1),"-1 (desc)"===e.type&&(t=-1),n[e.name]=t}));const o={},s=_t(i.collation.value??"")||void 0;if(i.collation.enabled&&!s)return void e(X("You must provide a valid collation object"));if(i.collation.enabled&&(o.collation=s),i.unique.enabled&&(o.unique=i.unique.value),i.sparse.enabled&&(o.sparse=i.sparse.value),i.name.enabled&&i.name.value&&(o.name=i.name.value),i.expireAfterSeconds.enabled&&(o.expireAfterSeconds=Number(i.expireAfterSeconds.value),isNaN(o.expireAfterSeconds)))return void e(X(`Bad TTL: "${String(i.expireAfterSeconds.value)}"`));if(i.wildcardProjection.enabled)try{o.wildcardProjection=ht.EJSON.parse(i.wildcardProjection.value??"")}catch(t){return void e(X(`Bad WildcardProjection: ${String(t)}`))}if(i.columnstoreProjection.enabled)try{o.columnstoreProjection=ht.EJSON.parse(i.columnstoreProjection.value??"")}catch(t){return void e(X(`Bad ColumnstoreProjection: ${String(t)}`))}if(i.partialFilterExpression.enabled)try{o.partialFilterExpression=ht.EJSON.parse(r.options.partialFilterExpression.value??"")}catch(t){return void e(X(`Bad PartialFilterExpression: ${String(t)}`))}for(const e of Object.keys(i))[!1,""].includes(i[e].value)&&delete o[e];e(Z()),e(Rt(!0));const a=r.namespace,u=(e=>{let{ns:t,name:r,spec:n}=e;const i=(new ht.ObjectId).toHexString(),o=Object.keys(n).map((e=>({field:e,value:n[e]}))),s=r||Object.keys(n).reduce(((e,t)=>`${""===e?"":`${e}_`}${t}_${n[t]}`),"");return{id:i,extra:{status:"inprogress"},key:n,fields:o,name:s,ns:t,size:0,relativeSize:0,usageCount:0}})({ns:a,name:o.name,spec:n});e((0,U.localAppRegistryEmit)("in-progress-indexes-added",u));const c={unique:o.unique,ttl:i.expireAfterSeconds.enabled,columnstore_index:(l=r.fields,l.some((e=>"columnstore"===e.type))),has_columnstore_projection:i.columnstoreProjection.enabled,has_wildcard_projection:i.wildcardProjection.enabled,custom_collation:i.collation.enabled,geo:r.fields.filter((e=>{let{type:t}=e;return"2dsphere"===t})).length>0};var l;try{await(r.dataService?.createIndex(a,n,o)),Zt("Index Created",c),e(q()),e(Rt(!1)),e(Mt(!1)),e((0,U.localAppRegistryEmit)("in-progress-indexes-removed",u.id)),e((0,U.localAppRegistryEmit)("refresh-data"))}catch(t){e(Rt(!1)),e(X(t)),e((0,U.localAppRegistryEmit)("in-progress-indexes-failed",{inProgressIndexId:u.id,error:t.message}))}},closeCreateIndexModal:()=>e=>{e(Mt(!1)),e(q())},addField:()=>({type:it}),removeField:e=>({type:st,idx:e}),updateFieldName:(e,t)=>(r,n)=>{const i=n(),o=[...i.fields];if(e>=0&&e<i.fields.length){if(i.fields.some(((r,n)=>r.name===t&&n!==e)))return void r(X("Index keys must be unique"));const n={...o[e]};n.name=t,o[e]=n,r((e=>({type:at,fields:e}))(o))}},updateFieldType:(e,t)=>({type:ot,idx:e,fType:t})},yr=R((e=>{let{fields:t,inProgress:r,schemaFields:n,error:i,isVisible:o,namespace:s,serverVersion:a}=e;return{fields:t,inProgress:r,schemaFields:n,error:i,isVisible:o,namespace:s,serverVersion:a}}),Er)((function(r){let{isVisible:n,namespace:i,error:o,clearError:s,inProgress:a,createIndex:u,closeCreateIndexModal:c,...l}=r;const d=(0,e.useCallback)((e=>{e||c()}),[c]);return(0,nt.useTrackOnChange)("COMPASS-INDEXES-UI",(e=>{n&&e("Screen",{name:"create_index_modal"})}),[n],void 0,t()),t().createElement(L.Modal,{open:n,setOpen:d,"data-testid":"create-index-modal"},t().createElement(L.ModalHeader,{title:"Create Index",subtitle:i}),t().createElement(L.ModalBody,null,t().createElement(hr,l)),t().createElement(L.ModalFooter,null,t().createElement(gr,{error:o,clearError:s,inProgress:a,createIndex:u,closeCreateIndexModal:c})))})),vr=yr;class Ar extends e.Component{static displayName="CreateIndexPlugin";static propTypes={store:M().object.isRequired};render(){return t().createElement(P,{store:this.props.store},t().createElement(vr,null))}}const Cr=Ar,br="indexes/drop-index/name/NAME_CHANGED",Sr=e=>({type:br,name:e}),wr="indexes/drop-index/confirm-name/CHANGE_CONFIRM_NAME",{track:Or}=(0,nt.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),_r=bt({dataService:Dt,appRegistry:V(),isVisible:Nt,inProgress:Ft,error:Q,name:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===br?t.name:e},confirmName:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===wr?t.name:e},namespace:jt}),xr=(e,t)=>t.type===G?{...e,inProgress:It,isVisible:kt,error:Y,name:"",confirmName:""}:_r(e,t),Dr=(0,L.css)({display:"flex",gap:L.spacing[1],marginTop:L.spacing[3],marginBottom:L.spacing[3]}),Tr=(0,L.css)({margin:`${L.spacing[3]}px 0`}),Br=(0,L.css)({flexShrink:0}),Ir=(0,L.css)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,textOverflow:"ellipsis",overflow:"hidden"}),Fr=R((e=>{let{isVisible:t,inProgress:r,error:n,name:i,confirmName:o}=e;return{isVisible:t,inProgress:r,error:n,name:i,confirmName:o}}),{toggleIsVisible:Mt,clearError:Z,handleError:X,nameChanged:Sr,changeConfirmName:e=>({type:wr,name:e}),dropIndex:e=>async(t,r)=>{const n=r(),i=n.namespace;t(Rt(!0));try{await(n.dataService?.dropIndex(i,e)),Or("Index Dropped"),t(q()),t((0,U.localAppRegistryEmit)("refresh-data")),t(Z()),t(Rt(!1)),t(Mt(!1))}catch(e){t(Rt(!1)),t(X(e))}},resetForm:q})((function(e){let{isVisible:r,inProgress:n,error:i,name:o,confirmName:s,toggleIsVisible:a,changeConfirmName:u,resetForm:c,dropIndex:l,clearError:d}=e;return(0,nt.useTrackOnChange)("COMPASS-INDEXES-UI",(e=>{r&&e("Screen",{name:"drop_index_modal"})}),[r],void 0,t()),t().createElement(L.ConfirmationModal,{title:"Drop Index",open:r,onConfirm:()=>{l(o)},onCancel:()=>{a(!1),c()},buttonText:"Drop",variant:"danger",submitDisabled:s!==o,"data-testid":"drop-index-modal"},t().createElement("div",{className:Dr},t().createElement(L.Icon,{glyph:"Warning",className:Br}),t().createElement(L.Body,{className:Ir},"Type the index name"," ",t().createElement(L.Label,{htmlFor:"confirm-drop-index-name"},o)," to drop")),t().createElement("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation()}},t().createElement(L.TextInput,{id:"confirm-drop-index-name","aria-labelledby":"Confirm drop index",type:"text","data-testid":"confirm-drop-index-name",value:s,onChange:e=>u(e.target.value)}),(()=>{if(i)return t().createElement("div",{"data-testid":"drop-index-error-banner-wrapper"},t().createElement(L.Banner,{className:Tr,variant:"danger",dismissible:!0,onClose:d},i))})(),(()=>{if(!i&&n)return t().createElement("div",{"data-testid":"drop-index-in-progress-banner-wrapper"},t().createElement(L.Banner,{className:Tr,variant:"info"},"Index dropping in progress."))})()))}));class Rr extends e.Component{static displayName="DropIndexPlugin";static propTypes={store:M().object.isRequired};render(){return t().createElement(P,{store:this.props.store},t().createElement(Fr,null))}}const Pr=Rr,kr="indexes/is-writable/WRITE_STATE_CHANGED",Nr=e=>({type:kr,isWritable:e}),Mr="indexes/is-readonly-view/READONLY_VIEW_CHANGED",Lr="indexes/description/GET_DESCRIPTION",jr="Topology type not yet discovered.",Ur=e=>({type:Lr,description:e}),Vr="Name and Definition",zr=bt({indexes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;return t.type===le.SortIndexes?[...t.indexes].sort(fe(me(t.column),t.order)):t.type===le.LoadIndexes?t.indexes:e},isWritable:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===kr?t.isWritable:e},isReadonly:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]},isReadonlyView:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===Mr?t.isReadonlyView:e},description:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jr,t=arguments.length>1?arguments[1]:void 0;return t.type===Lr?t.description:e},appRegistry:V(),dataService:Dt,sortOrder:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1?arguments[1]:void 0;return t.type===le.SortIndexes?t.order:e},sortColumn:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=arguments.length>1?arguments[1]:void 0;return t.type===le.SortIndexes?t.column:e},error:Q,serverVersion:$t,namespace:jt,isRefreshing:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===ee.RefreshStarted||t.type!==ee.RefreshFinished&&e},inProgressIndexes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,t=arguments.length>1?arguments[1]:void 0;if(t.type===te)return[...e,t.inProgressIndex];if(t.type===re)return e.filter((e=>e.id!==t.inProgressIndexId));if(t.type===ne){const r=[...e],n=r.findIndex((e=>e.id===t.inProgressIndexId));return r[n]={...r[n],extra:{...r[n].extra,status:"failed",error:"error"}},r}return e}}),$r=(e,t)=>t.type===G?{...e,isWritable:!0,isReadonly:!1,isReadonlyView:!1,description:jr,indexes:de,serverVersion:zt,sortOrder:"asc",sortColumn:Vr,error:Y,namespace:"",isRefreshing:!1}:zr(e,t);function Wr(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"==typeof i?i(r,n,e):t(i)}}}}var Hr=Wr();Hr.withExtraArgument=Wr;const Gr=Hr,qr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ct($r,wt(Gr));if(e.localAppRegistry){const r=e.localAppRegistry;t.dispatch((0,U.localAppRegistryActivated)(r)),r.on("refresh-data",(()=>{t.dispatch(pe())})),r.on("in-progress-indexes-added",(e=>{t.dispatch({type:te,inProgressIndex:e})})),r.on("in-progress-indexes-removed",(e=>{t.dispatch(oe(e))})),r.on("in-progress-indexes-failed",(e=>{t.dispatch((e=>{let{inProgressIndexId:t,error:r}=e;return{type:ne,inProgressIndexId:t,error:r}})(e))}))}if(e.globalAppRegistry){const r=e.globalAppRegistry;t.dispatch((0,U.globalAppRegistryActivated)(r));const n=r.getStore("App.InstanceStore").getState().instance;t.dispatch(Nr(n.isWritable)),t.dispatch(Ur(n.description)),n.on("change:isWritable",(()=>{t.dispatch(Nr(n.isWritable))})),n.on("change:description",(()=>{t.dispatch(Ur(n.description))})),r.on("refresh-data",(()=>{t.dispatch(pe())}))}if(e.namespace&&t.dispatch(Ut(e.namespace)),e.serverVersion&&t.dispatch(Wt(e.serverVersion)),e.isReadonly){const r=e.isReadonly;t.dispatch((e=>({type:Mr,isReadonlyView:e}))(r))}return e.dataProvider&&((e,t,r)=>{null!==t?e.dispatch(X(t)):(e.dispatch(Tt(r)),e.dispatch(pe()))})(t,e.dataProvider.error,e.dataProvider.dataProvider),t},{track:Kr}=(0,nt.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Yr=(e,t,r)=>{null!==t?e.dispatch(X(t)):e.dispatch(Tt(r))},Qr=(e,t,r)=>{null!==t?e.dispatch(X(t)):e.dispatch(Tt(r))},Xr=JSON.parse('{"name":"@mongodb-js/compass-indexes","productName":"Compass Indexes plugin","description":"Collection index management for Compass","version":"5.12.0","author":{"name":"MongoDB Inc","email":"compass@mongodb.com"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/mongodb-js/compass.git"},"license":"SSPL","homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"files":["dist"],"main":"dist/index.js","compass:main":"src/index.ts","types":"dist/src/index.d.ts","exports":{"browser":"./dist/browser.js","require":"./dist/index.js"},"compass:exports":{".":"./src/index.ts"},"scripts":{"bootstrap":"npm run postcompile","prepublishOnly":"npm run compile && compass-scripts check-exports-exist","compile":"npm run webpack -- --mode production","webpack":"webpack-compass","postcompile":"tsc --emitDeclarationOnly","analyze":"npm run webpack -- --mode production --analyze","typecheck":"tsc -p tsconfig-lint.json --noEmit","eslint":"eslint","prettier":"prettier","lint":"npm run eslint . && npm run prettier -- --check .","depcheck":"compass-scripts check-peer-deps && depcheck","check":"npm run typecheck && npm run lint && npm run depcheck","check-ci":"npm run check","test":"mocha","test-electron":"xvfb-maybe electron-mocha --no-sandbox","test-cov":"nyc --compact=false --produce-source-map=false -x \\"**/*.spec.*\\" --reporter=lcov --reporter=text --reporter=html npm run test","test-watch":"npm run test -- --watch","test-ci":"npm run test-cov","test-ci-electron":"npm run test-electron","reformat":"npm run prettier -- --write . && npm run eslint . --fix"},"peerDependencies":{"@mongodb-js/compass-components":"^1.12.0","@mongodb-js/compass-editor":"^0.11.0","@mongodb-js/compass-logging":"^1.1.8","@mongodb-js/mongodb-redux-common":"^2.0.10","bson":"^5.2.0","compass-preferences-model":"^2.12.0","react":"^17.0.2"},"devDependencies":{"@mongodb-js/eslint-config-compass":"^1.0.8","@mongodb-js/mocha-config-compass":"^1.3.0","@mongodb-js/prettier-config-compass":"^1.0.1","@mongodb-js/tsconfig-compass":"^1.0.3","@mongodb-js/webpack-config-compass":"^1.1.2","@testing-library/react":"^12.1.4","@testing-library/user-event":"^13.5.0","chai":"^4.2.0","debug":"^4.2.0","depcheck":"^1.4.1","electron":"^23.3.12","enzyme":"^3.11.0","eslint":"^7.25.0","hadron-app-registry":"^9.0.9","lodash":"^4.17.21","mocha":"^10.2.0","mongodb":"^5.6.0","mongodb-data-service":"^22.9.2","mongodb-query-parser":"^3.1.3","numeral":"^2.0.6","nyc":"^15.1.0","prop-types":"^15.7.2","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^8.0.5","redux":"^4.2.1","redux-thunk":"^2.4.1","semver":"^5.4.1","sinon":"^9.2.3","xvfb-maybe":"^0.2.1"},"dependencies":{"@mongodb-js/compass-components":"^1.12.0","@mongodb-js/compass-editor":"^0.11.0","@mongodb-js/compass-logging":"^1.1.8","@mongodb-js/mongodb-redux-common":"^2.0.10","bson":"^5.2.0","compass-preferences-model":"^2.12.0"},"gitHead":"62acadaa32f014e73080cfaf7c15753e2e1db08f"}'),Zr={name:"Indexes",component:rt,order:6,configureStore:qr,configureActions:()=>{},storeName:"Indexes.Store",actionName:"Indexes.Actions"},Jr={name:"Create Index",component:Cr,configureStore:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ct(Jt,wt(Gr));if(e.localAppRegistry){const r=e.localAppRegistry;t.dispatch((0,U.localAppRegistryActivated)(r)),r.on("fields-changed",(e=>{t.dispatch(dt(Object.keys(e.fields).filter((e=>"_id"!==e))))})),r.on("open-create-index-modal",(()=>{Kr("Index Create Opened"),t.dispatch(Mt(!0))})),r.on("data-service-connected",((e,r)=>{Yr(t,e,r)}))}if(e.globalAppRegistry){const r=e.globalAppRegistry;t.dispatch((0,U.globalAppRegistryActivated)(r))}return e.namespace&&t.dispatch(Ut(e.namespace)),e.serverVersion&&t.dispatch(Wt(e.serverVersion)),e.dataProvider&&Yr(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.CreateIndexStore",actionName:"Indexes.CreateIndexActions"},en={name:"Drop Index",component:Pr,configureStore:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ct(xr,wt(Gr));if(e.localAppRegistry){const r=e.localAppRegistry;t.dispatch((0,U.localAppRegistryActivated)(r)),r.on("toggle-drop-index-modal",((e,r)=>{t.dispatch(Sr(r)),t.dispatch(Mt(e))})),r.on("data-service-connected",((e,r)=>{Qr(t,e,r)}))}if(e.globalAppRegistry){const r=e.globalAppRegistry;t.dispatch((0,U.globalAppRegistryActivated)(r))}return e.namespace&&t.dispatch(Ut(e.namespace)),e.dataProvider&&Qr(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.DropIndexStore",actionName:"Indexes.DropIndexActions"};function tn(e){e.registerRole("Collection.Tab",Zr),e.registerRole("Collection.ScopedModal",Jr),e.registerRole("Collection.ScopedModal",en)}function rn(e){e.deregisterRole("Collection.Tab",Zr),e.deregisterRole("Collection.ScopedModal",Jr),e.deregisterRole("Collection.ScopedModal",en)}const nn=rt})(),n})()));
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CompassIndexesPlugin=t():e.CompassIndexesPlugin=t()}(self,(()=>(()=>{var e={2563:e=>{const t="@mongodb-js/mongodb-redux-common/app-registry",n=`${t}/LOCAL_APP_REGISTRY_ACTIVATED`,r=`${t}/GLOBAL_APP_REGISTRY_ACTIVATED`,i={localAppRegistry:null,globalAppRegistry:null},a=(e,t,...n)=>{e&&e.emit(t,...n)};e.exports=(e=i,t)=>t.type===n?{...e,localAppRegistry:t.appRegistry}:t.type===r?{...e,globalAppRegistry:t.appRegistry}:e,e.exports.LOCAL_APP_REGISTRY_ACTIVATED=n,e.exports.GLOBAL_APP_REGISTRY_ACTIVATED=r,e.exports.INITIAL_STATE=i,e.exports.localAppRegistryActivated=e=>({type:n,appRegistry:e}),e.exports.globalAppRegistryActivated=e=>({type:r,appRegistry:e}),e.exports.localAppRegistryEmit=(e,...t)=>(n,r)=>{a(r().appRegistry.localAppRegistry,e,...t)},e.exports.globalAppRegistryEmit=(e,...t)=>(n,r)=>{a(r().appRegistry.globalAppRegistry,e,...t)}},3819:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},7728:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},1176:(e,t,n)=>{var r=n(5052);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},9540:(e,t,n)=>{var r=n(905),i=n(4237),a=n(3231),o=function(e){return function(t,n,o){var s,l=r(t),u=i(l.length),c=a(o,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5738:(e,t,n)=>{"use strict";var r=n(3819),i=n(1176),a=n(2391),o=n(5762),s=n(8787),l=n(95),u=n(6407),c=n(1333),f=n(4027),p=c("Promise"),d=u.set,h=u.get,m=l("toStringTag");e.exports=function(e,t){var n=function(e){e.next=r(e.iterator.next),e.done=!1,e.ignoreArgument=!t,d(this,e)};return n.prototype=s(a(f),{next:function(n){var r=this,a=!!arguments.length;return new p((function(o){var s=h(r),l=a?[s.ignoreArgument?void 0:n]:t?[]:[void 0];s.ignoreArgument=!1,o(s.done?{done:!0,value:void 0}:i(e.call(s,p,l)))}))},return:function(e){var t=this;return new p((function(n,r){var a=h(t),o=a.iterator;a.done=!0;var s=o.return;if(void 0===s)return n({done:!0,value:e});p.resolve(s.call(o,e)).then((function(t){i(t),n({done:!0,value:e})}),r)}))},throw:function(e){var t=this;return new p((function(n,r){var i=h(t),a=i.iterator;i.done=!0;var o=a.throw;if(void 0===o)return r(e);n(o.call(a,e))}))}}),t||o(n.prototype,m,"Generator"),n}},2676:(e,t,n)=>{"use strict";var r=n(3819),i=n(1176),a=n(1333)("Promise"),o=[].push,s=function(e){var t=0==e,n=1==e,s=2==e,l=3==e;return function(e,u){i(e);var c=r(e.next),f=t?[]:void 0;return t||r(u),new a((function(r,p){var d=function(t,n){try{var r=e.return;if(void 0!==r)return a.resolve(r.call(e)).then((function(){t(n)}),(function(e){p(e)}))}catch(e){return p(e)}t(n)},h=function(e){d(p,e)},m=function(){try{a.resolve(i(c.call(e))).then((function(e){try{if(i(e).done)r(t?f:!l&&(s||void 0));else{var c=e.value;t?(o.call(f,c),m()):a.resolve(u(c)).then((function(e){n?m():s?e?m():d(r,!1):e?d(r,l||c):m()}),h)}}catch(e){h(e)}}),h)}catch(e){h(e)}};m()}))}};e.exports={toArray:s(0),forEach:s(1),every:s(2),some:s(3),find:s(4)}},4027:(e,t,n)=>{var r,i,a=n(9859),o=n(5353),s=n(2391),l=n(7567),u=n(5762),c=n(95),f=n(4231),p="USE_FUNCTION_CONSTRUCTOR",d=c("asyncIterator"),h=a.AsyncIterator,m=o.AsyncIteratorPrototype;if(m)r=m;else if("function"==typeof h)r=h.prototype;else if(o[p]||a[p])try{i=l(l(l(Function("return async function*(){}()")()))),l(i)===Object.prototype&&(r=i)}catch(e){}r?f&&(r=s(r)):r={},"function"!=typeof r[d]&&u(r,d,(function(){return this})),e.exports=r},4960:(e,t,n)=>{var r=n(1176),i=n(7281);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},7079:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1589:(e,t,n)=>{var r=n(1601),i=n(7079),a=n(95)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},7081:(e,t,n)=>{var r=n(816),i=n(4826),a=n(7933),o=n(1787);e.exports=function(e,t){for(var n=i(t),s=o.f,l=a.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},7528:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5762:(e,t,n)=>{var r=n(7400),i=n(1787),a=n(5358);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},5358:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7400:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2635:(e,t,n)=>{var r=n(9859),i=n(5052),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},598:(e,t,n)=>{var r=n(1333);e.exports=r("navigator","userAgent")||""},6358:(e,t,n)=>{var r,i,a=n(9859),o=n(598),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},3837:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:(e,t,n)=>{var r=n(9859),i=n(7933).f,a=n(5762),o=n(7487),s=n(2079),l=n(7081),u=n(6541);e.exports=function(e,t){var n,c,f,p,d,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(c in t){if(p=t[c],f=e.noTargetGet?(d=i(n,c))&&d.value:n[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),o(n,c,p,e)}}},4229:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7636:(e,t,n)=>{var r=n(3819);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1333:(e,t,n)=>{var r=n(9859);e.exports=function(e,t){return arguments.length<2?"function"==typeof(n=r[e])?n:void 0:r[e]&&r[e][t];var n}},8830:(e,t,n)=>{var r=n(1589),i=n(5495),a=n(95)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},8403:(e,t,n)=>{var r=n(1176),i=n(8830);e.exports=function(e,t){var n=arguments.length<2?i(e):t;if("function"!=typeof n)throw TypeError(String(e)+" is not iterable");return r(n.call(e))}},9859:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},816:(e,t,n)=>{var r=n(2991),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},5977:e=>{e.exports={}},3777:(e,t,n)=>{var r=n(1333);e.exports=r("document","documentElement")},4394:(e,t,n)=>{var r=n(7400),i=n(4229),a=n(2635);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},9337:(e,t,n)=>{var r=n(4229),i=n(7079),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},8511:(e,t,n)=>{var r=n(5353),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},6407:(e,t,n)=>{var r,i,a,o=n(8694),s=n(9859),l=n(5052),u=n(5762),c=n(816),f=n(5353),p=n(4399),d=n(5977),h="Object already initialized",m=s.WeakMap;if(o||f.state){var g=f.state||(f.state=new m),v=g.get,y=g.has,b=g.set;r=function(e,t){if(y.call(g,e))throw new TypeError(h);return t.facade=e,b.call(g,e,t),t},i=function(e){return v.call(g,e)||{}},a=function(e){return y.call(g,e)}}else{var x=p("state");d[x]=!0,r=function(e,t){if(c(e,x))throw new TypeError(h);return t.facade=e,u(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},a=function(e){return c(e,x)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},1943:(e,t,n)=>{var r=n(95),i=n(5495),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},6541:(e,t,n)=>{var r=n(4229),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},5052:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4231:e=>{e.exports=!1},9395:(e,t,n)=>{var r=n(1333),i=n(6969);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},9003:(e,t,n)=>{var r=n(1176),i=n(1943),a=n(4237),o=n(7636),s=n(8403),l=n(8830),u=n(7281),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var f,p,d,h,m,g,v,y=n&&n.that,b=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),S=o(t,y,1+b+w),_=function(e){return f&&u(f,"normal",e),new c(!0,e)},E=function(e){return b?(r(e),w?S(e[0],e[1],_):S(e[0],e[1])):w?S(e,_):S(e)};if(x)f=e;else{if("function"!=typeof(p=l(e)))throw TypeError("Target is not iterable");if(i(p)){for(d=0,h=a(e.length);h>d;d++)if((m=E(e[d]))&&m instanceof c)return m;return new c(!1)}f=s(e,p)}for(g=f.next;!(v=g.call(f)).done;){try{m=E(v.value)}catch(e){u(f,"throw",e)}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)}},7281:(e,t,n)=>{var r=n(1176);e.exports=function(e,t,n){var i,a;r(e);try{if(void 0===(i=e.return)){if("throw"===t)throw n;return n}i=i.call(e)}catch(e){a=!0,i=e}if("throw"===t)throw n;if(a)throw i;return r(i),n}},8671:(e,t,n)=>{"use strict";var r=n(3819),i=n(1176),a=n(2391),o=n(5762),s=n(8787),l=n(95),u=n(6407),c=n(693).IteratorPrototype,f=u.set,p=u.get,d=l("toStringTag");e.exports=function(e,t){var n=function(e){e.next=r(e.iterator.next),e.done=!1,e.ignoreArg=!t,f(this,e)};return n.prototype=s(a(c),{next:function(n){var r=p(this),i=arguments.length?[r.ignoreArg?void 0:n]:t?[]:[void 0];r.ignoreArg=!1;var a=r.done?void 0:e.call(r,i);return{done:r.done,value:a}},return:function(e){var t=p(this),n=t.iterator;t.done=!0;var r=n.return;return{done:!0,value:void 0===r?e:i(r.call(n,e)).value}},throw:function(e){var t=p(this),n=t.iterator;t.done=!0;var r=n.throw;if(void 0===r)throw e;return r.call(n,e)}}),t||o(n.prototype,d,"Generator"),n}},693:(e,t,n)=>{"use strict";var r,i,a,o=n(4229),s=n(2391),l=n(7567),u=n(5762),c=n(95),f=n(4231),p=c("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(i=l(l(a)))!==Object.prototype&&(r=i):d=!0),null==r||o((function(){var e={};return r[p].call(e)!==e}))?r={}:f&&(r=s(r)),"function"!=typeof r[p]&&u(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},5495:e=>{e.exports={}},3839:(e,t,n)=>{var r=n(6358),i=n(4229);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8694:(e,t,n)=>{var r=n(9859),i=n(8511),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},2391:(e,t,n)=>{var r,i=n(1176),a=n(219),o=n(3837),s=n(5977),l=n(3777),u=n(2635),c=n(4399),f="prototype",p="script",d=c("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?g(r):(t=u("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var i=o.length;i--;)delete v[f][o[i]];return v()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=i(e),n=new h,h[f]=null,n[d]=e):n=v(),void 0===t?n:a(n,t)}},219:(e,t,n)=>{var r=n(7400),i=n(1787),a=n(1176),o=n(5632);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=o(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},1787:(e,t,n)=>{var r=n(7400),i=n(4394),a=n(1176),o=n(9310),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7933:(e,t,n)=>{var r=n(7400),i=n(9195),a=n(5358),o=n(905),s=n(9310),l=n(816),u=n(4394),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=s(t),u)try{return c(e,t)}catch(e){}if(l(e,t))return a(!i.f.call(e,t),e[t])}},8151:(e,t,n)=>{var r=n(140),i=n(3837).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},894:(e,t)=>{t.f=Object.getOwnPropertySymbols},7567:(e,t,n)=>{var r=n(816),i=n(2991),a=n(4399),o=n(7528),s=a("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},140:(e,t,n)=>{var r=n(816),i=n(905),a=n(9540).indexOf,o=n(5977);e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(o,n)&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},5632:(e,t,n)=>{var r=n(140),i=n(3837);e.exports=Object.keys||function(e){return r(e,i)}},9195:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2914:(e,t,n)=>{var r=n(5052);e.exports=function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},4826:(e,t,n)=>{var r=n(1333),i=n(8151),a=n(894),o=n(1176);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},8787:(e,t,n)=>{var r=n(7487);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},7487:(e,t,n)=>{var r=n(9859),i=n(5762),a=n(816),o=n(2079),s=n(8511),l=n(6407),u=l.get,c=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var l,u=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),(l=c(n)).source||(l.source=f.join("string"==typeof t?t:""))),e!==r?(u?!d&&e[t]&&(p=!0):delete e[t],p?e[t]=n:i(e,t,n)):p?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},8885:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2079:(e,t,n)=>{var r=n(9859);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4399:(e,t,n)=>{var r=n(3036),i=n(1441),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},5353:(e,t,n)=>{var r=n(9859),i=n(2079),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},3036:(e,t,n)=>{var r=n(4231),i=n(5353);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3231:(e,t,n)=>{var r=n(6051),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},905:(e,t,n)=>{var r=n(9337),i=n(8885);e.exports=function(e){return r(i(e))}},6051:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4237:(e,t,n)=>{var r=n(6051),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},2991:(e,t,n)=>{var r=n(8885);e.exports=function(e){return Object(r(e))}},2066:(e,t,n)=>{var r=n(5052),i=n(9395),a=n(2914),o=n(95)("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,s=e[o];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},9310:(e,t,n)=>{var r=n(2066),i=n(9395);e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},1601:(e,t,n)=>{var r={};r[n(95)("toStringTag")]="z",e.exports="[object z]"===String(r)},1441:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},6969:(e,t,n)=>{var r=n(3839);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},95:(e,t,n)=>{var r=n(9859),i=n(3036),a=n(816),o=n(1441),s=n(3839),l=n(6969),u=i("wks"),c=r.Symbol,f=l?c:c&&c.withoutSetter||o;e.exports=function(e){return a(u,e)&&(s||"string"==typeof u[e])||(s&&a(c,e)?u[e]=c[e]:u[e]=f("Symbol."+e)),u[e]}},0:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(5738)((function(e,t){var n=this,r=n.filterer;return new e((function(i,o){var s=function(){try{e.resolve(a(n.next.apply(n.iterator,t))).then((function(t){try{if(a(t).done)n.done=!0,i({done:!0,value:void 0});else{var l=t.value;e.resolve(r(l)).then((function(e){e?i({done:!1,value:l}):s()}),o)}}catch(e){o(e)}}),o)}catch(e){o(e)}};s()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return new o({iterator:a(this),filterer:i(e)})}})},8166:(e,t,n)=>{"use strict";var r=n(3103),i=n(2676).find;r({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return i(this,e)}})},4715:(e,t,n)=>{"use strict";var r=n(3103),i=n(2676).forEach;r({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return i(this,e)}})},4925:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(5738)((function(e,t){var n=this,r=n.mapper;return e.resolve(a(n.next.apply(n.iterator,t))).then((function(t){return a(t).done?(n.done=!0,{done:!0,value:void 0}):e.resolve(r(t.value)).then((function(e){return{done:!1,value:e}}))}))}));r({target:"AsyncIterator",proto:!0,real:!0},{map:function(e){return new o({iterator:a(this),mapper:i(e)})}})},4407:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(1333)("Promise");r({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){var t=a(this),n=i(t.next),r=arguments.length<2,s=r?void 0:arguments[1];return i(e),new o((function(i,l){var u=function(){try{o.resolve(a(n.call(t))).then((function(t){try{if(a(t).done)r?l(TypeError("Reduce of empty iterator with no initial value")):i(s);else{var n=t.value;r?(r=!1,s=n,u()):o.resolve(e(s,n)).then((function(e){s=e,u()}),l)}}catch(e){l(e)}}),l)}catch(e){l(e)}};u()}))}})},2856:(e,t,n)=>{"use strict";var r=n(3103),i=n(2676).some;r({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return i(this,e)}})},6464:(e,t,n)=>{"use strict";var r=n(3103),i=n(9859),a=n(7728),o=n(5762),s=n(4229),l=n(816),u=n(95),c=n(693).IteratorPrototype,f=n(4231),p=u("toStringTag"),d=i.Iterator,h=f||"function"!=typeof d||d.prototype!==c||!s((function(){d({})})),m=function(){a(this,m)};l(c,p)||o(c,p,"Iterator"),!h&&l(c,"constructor")&&c.constructor!==Object||o(c,"constructor",m),m.prototype=c,r({global:!0,forced:h},{Iterator:m})},8339:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(8671),s=n(4960),l=o((function(e){for(var t,n,r=this.iterator,i=this.filterer,o=this.next;;){if(t=a(o.apply(r,e)),this.done=!!t.done)return;if(n=t.value,s(r,i,n))return n}}));r({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new l({iterator:a(this),filterer:i(e)})}})},5162:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(3819),o=n(1176);r({target:"Iterator",proto:!0,real:!0},{find:function(e){return o(this),a(e),i(this,(function(t,n){if(e(t))return n(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},9570:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(1176);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(a(this),e,{IS_ITERATOR:!0})}})},4819:(e,t,n)=>{"use strict";var r=n(3103),i=n(3819),a=n(1176),o=n(8671),s=n(4960),l=o((function(e){var t=this.iterator,n=a(this.next.apply(t,e));if(!(this.done=!!n.done))return s(t,this.mapper,n.value)}));r({target:"Iterator",proto:!0,real:!0},{map:function(e){return new l({iterator:a(this),mapper:i(e)})}})},4903:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(3819),o=n(1176);r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){o(this),a(e);var t=arguments.length<2,n=t?void 0:arguments[1];if(i(this,(function(r){t?(t=!1,n=r):n=e(n,r)}),{IS_ITERATOR:!0}),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})},7610:(e,t,n)=>{"use strict";var r=n(3103),i=n(9003),a=n(3819),o=n(1176);r({target:"Iterator",proto:!0,real:!0},{some:function(e){return o(this),a(e),i(this,(function(t,n){if(e(t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},5130:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(7123)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:(e,t,n)=>{e.exports=function(e){function t(e){let n,i=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const a=t.formatters[i];if("function"==typeof a){const t=e[s];n=a.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},1829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParseMode:()=>ot,default:()=>xt});var r=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},s="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",l={5:s,"5module":s+" export import",6:s+" const class extends export import super"},u=/^in(stanceof)?$/,c=new RegExp("["+a+"]"),f=new RegExp("["+a+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function p(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,i)))}function h(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&f.test(String.fromCharCode(e)):!1!==t&&(p(e,i)||p(e,r)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function g(e,t){return new m(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},y={startsExpr:!0},b={};function x(e,t){return void 0===t&&(t={}),t.keyword=e,b[e]=new m(e,t)}var w={num:new m("num",y),regexp:new m("regexp",y),string:new m("string",y),name:new m("name",y),privateId:new m("privateId",y),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",v),semi:new m(";",v),colon:new m(":",v),dot:new m("."),question:new m("?",v),questionDot:new m("?."),arrow:new m("=>",v),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",v),backQuote:new m("`",y),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("</>/<=/>=",7),bitShift:g("<</>>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:g("??",1),_break:x("break"),_case:x("case",v),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",v),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",v),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",y),_if:x("if"),_return:x("return",v),_switch:x("switch"),_throw:x("throw",v),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",y),_super:x("super",y),_class:x("class",y),_extends:x("extends",v),_export:x("export"),_import:x("import",y),_null:x("null",y),_true:x("true",y),_false:x("false",y),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(S.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}function k(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(E(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P=Object.prototype,T=P.hasOwnProperty,A=P.toString,N=Object.hasOwn||function(e,t){return T.call(e,t)},O=Array.isArray||function(e){return"[object Array]"===A.call(e)};function R(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function L(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var M=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,F=function(e,t){this.line=e,this.column=t};F.prototype.offset=function(e){return new F(this.line,this.column+e)};var j=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function D(e,t){for(var n=1,r=0;;){var i=k(e,r,t);if(i<0)return new F(n,t-r);++n,r=i}}var V={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},B=!1;function z(e,t){return 2|(e?4:0)|(t?8:0)}var U=function(e,t,n){this.options=e=function(e){var t={};for(var n in V)t[n]=e&&N(e,n)?e[n]:V[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!B&&"object"==typeof console&&console.warn&&(B=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),O(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return O(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var l={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(l.loc=new j(this,o,s)),e.ranges&&(l.range=[i,a]),t.push(l)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=R(l[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=o[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=R(r);var i=(r?r+" ":"")+o.strict;this.reservedWordsStrict=R(i),this.reservedWordsStrictBind=R(i+" "+o.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(S).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},$={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},$.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},$.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},$.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},$.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},$.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},$.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},U.parse=function(e,t){return new this(t,e).parse()},U.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},U.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(U.prototype,$);var W=U.prototype,q=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;W.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){I.lastIndex=e,e+=I.exec(this.input)[0].length;var t=q.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){I.lastIndex=e+t[0].length;var n=I.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||S.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,I.lastIndex=e,e+=I.exec(this.input)[0].length,";"===this.input[e]&&e++}},W.eat=function(e){return this.type===e&&(this.next(),!0)},W.isContextual=function(e){return this.type===w.name&&this.value===e&&!this.containsEsc},W.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},W.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},W.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},W.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},W.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()},W.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},W.expect=function(e){this.eat(e)||this.unexpected()},W.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var H=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};W.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},W.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},W.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},W.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var G=U.prototype;G.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==w.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var K={kind:"loop"},Q={kind:"switch"};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var t=I.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(d(r,!0)){for(var i=n+1;h(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!u.test(a))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var e,t=I.exec(this.input),n=this.pos+t[0].length;return!(S.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(h(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},G.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=w._var,r="let"),i){case w._break:case w._continue:return this.parseBreakContinueStatement(a,i.keyword);case w._debugger:return this.parseDebuggerStatement(a);case w._do:return this.parseDoStatement(a);case w._for:return this.parseForStatement(a);case w._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case w._class:return e&&this.unexpected(),this.parseClass(a,!0);case w._if:return this.parseIfStatement(a);case w._return:return this.parseReturnStatement(a);case w._switch:return this.parseSwitchStatement(a);case w._throw:return this.parseThrowStatement(a);case w._try:return this.parseTryStatement(a);case w._const:case w._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case w._while:return this.parseWhileStatement(a);case w._with:return this.parseWithStatement(a);case w.braceL:return this.parseBlock(!0,a);case w.semi:return this.parseEmptyStatement(a);case w._export:case w._import:if(this.options.ecmaVersion>10&&i===w._import){I.lastIndex=this.pos;var o=I.exec(this.input),s=this.pos+o[0].length,l=this.input.charCodeAt(s);if(40===l||46===l)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===w._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var u=this.value,c=this.parseExpression();return i===w.name&&"Identifier"===c.type&&this.eat(w.colon)?this.parseLabeledStatement(a,u,c,e):this.parseExpressionStatement(a,c)}},G.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(w.semi)||this.insertSemicolon()?e.label=null:this.type!==w.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},G.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},G.parseDoStatement=function(e){return this.next(),this.labels.push(K),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===w._var||this.type===w._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),o=!1,s=new H,l=this.parseExpression(!(t>-1)||"await",s);return this.type===w._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,s),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},G.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,X|(n?0:Z),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},G.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},G.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(w.braceL),this.labels.push(Q),this.enterScope(0);for(var n=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var r=this.type===w._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(w.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},G.parseThrowStatement=function(e){return this.next(),S.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Y=[];G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===w._catch){var t=this.startNode();if(this.next(),this.eat(w.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(w._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},G.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(K),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},G.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},G.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===w._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var l=this.labels[s];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},G.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(w.braceL),e&&this.enterScope(0);this.type!==w.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},G.parseFor=function(e,t){return e.init=t,this.expect(w.semi),e.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),e.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},G.parseForIn=function(e,t){var n=this.type===w._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},G.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(w.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===w._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(w.comma))break}return e},G.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var X=1,Z=2;function J(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function ee(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}G.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===w.star&&t&Z&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&X&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&Z||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(z(e.async,e.generator)),t&X||(e.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")},G.parseFunctionParams=function(e){this.expect(w.parenL),e.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(w.braceL);this.type!==w.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(a&&this.raise(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&"PrivateIdentifier"===o.key.type&&J(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},G.parseClassElement=function(e){if(this.eat(w.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,o="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===w.star?s=!0:r="static"}if(n.static=s,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==w.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(w.star)&&(i=!0),!r&&!a&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===w.parenL||"method"!==o||i||a){var u=!n.static&&ee(n,"constructor"),c=u&&e;u&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=u?"constructor":o,this.parseClassMethod(n,i,a,c)}else this.parseClassField(n);return n},G.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword},G.parseClassElementName=function(e){this.type===w.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},G.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ee(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},G.parseClassField=function(e){if(ee(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ee(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(w.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},G.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==w.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},G.parseClassId=function(e,t){this.type===w.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null},G.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},G.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];N(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},G.parseExport=function(e,t){if(this.next(),this.eat(w.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(w._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===w._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|X,!1,n)}else if(this.type===w._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},G.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),N(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},G.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if("ArrayPattern"===n)for(var o=0,s=t.elements;o<s.length;o+=1){var l=s[o];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},G.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},G.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},G.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(n)n=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},G.parseImport=function(e){return this.next(),this.type===w.string?(e.specifiers=Y,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===w.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(w.comma))return e}if(this.type===w.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(w.braceL);!this.eat(w.braceR);){if(t)t=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var e=this.parseLiteral(this.value);return M.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},G.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},G.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var te=U.prototype;te.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},te.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},te.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},te.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(w.comma),t&&this.type===w.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===w.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},te.parseBindingListItem=function(e){return e},te.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},te.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(N(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},te.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var o=0,s=e.elements;o<s.length;o+=1){var l=s[o];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},te.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var ne=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},re={b_stat:new ne("{",!1),b_expr:new ne("{",!0),b_tmpl:new ne("${",!1),p_stat:new ne("(",!1),p_expr:new ne("(",!0),q_tmpl:new ne("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ne("function",!1),f_expr:new ne("function",!0),f_expr_gen:new ne("function",!0,!1,null,!0),f_gen:new ne("function",!1,!1,null,!0)},ie=U.prototype;ie.initialContext=function(){return[re.b_stat]},ie.curContext=function(){return this.context[this.context.length-1]},ie.braceIsBlock=function(e){var t=this.curContext();return t===re.f_expr||t===re.f_stat||(e!==w.colon||t!==re.b_stat&&t!==re.b_expr?e===w._return||e===w.name&&this.exprAllowed?S.test(this.input.slice(this.lastTokEnd,this.start)):e===w._else||e===w.semi||e===w.eof||e===w.parenR||e===w.arrow||(e===w.braceL?t===re.b_stat:e!==w._var&&e!==w._const&&e!==w.name&&!this.exprAllowed):!t.isExpr)},ie.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ie.updateContext=function(e){var t,n=this.type;n.keyword&&e===w.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ie.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===re.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?re.b_stat:re.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(re.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(e){var t=e===w._if||e===w._for||e===w._with||e===w._while;this.context.push(t?re.p_stat:re.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(e){!e.beforeExpr||e===w._else||e===w.semi&&this.curContext()!==re.p_stat||e===w._return&&S.test(this.input.slice(this.lastTokEnd,this.start))||(e===w.colon||e===w.braceL)&&this.curContext()===re.b_stat?this.context.push(re.f_stat):this.context.push(re.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===re.q_tmpl?this.context.pop():this.context.push(re.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(e){if(e===w._function){var t=this.context.length-1;this.context[t]===re.f_expr?this.context[t]=re.f_expr_gen:this.context[t]=re.f_gen}this.exprAllowed=!0},w.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ae=U.prototype;function oe(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&oe(e.expression)}ae.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===a&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];o?("init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[r]={init:!1,get:!1,set:!1},o[a]=!0}}},ae.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===w.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(w.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return i},ae.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new H,r=!0);var s=this.start,l=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,s,l)),this.type.isAssign){var c=this.startNodeAt(s,l);return c.operator=this.value,this.type===w.eq&&(u=this.toAssignable(u,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===w.eq?this.checkLValPattern(u):this.checkLValSimple(u),c.left=u,this.next(),c.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),u},ae.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(w.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(w.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},ae.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},ae.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(null!=a&&(!i||this.type!==w._in)&&a>r){var o=this.type===w.logicalOR||this.type===w.logicalAND,s=this.type===w.coalesce;s&&(a=w.logicalAND.binop);var l=this.value;this.next();var u=this.start,c=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),u,c,a,i),p=this.buildBinary(t,n,e,f,l,o||s);return(o&&this.type===w.coalesce||s&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,n,r,i)}return e},ae.buildBinary=function(e,t,n,r,i,a){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")},ae.parseMaybeUnary=function(e,t,n,r){var i,a=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),l=this.type===w.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):"delete"===s.operator&&oe(s.argument)?this.raiseRecoverable(s.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(s,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==w.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(a,o);u.operator=this.value,u.prefix=!1,u.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(u,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==w._in&&this.unexpected();return n||!this.eat(w.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,o,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},ae.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},ae.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||"ArrowFunctionExpression"===s.type){if(o){var l=this.startNodeAt(t,n);l.expression=s,s=this.finishNode(l,"ChainExpression")}return s}e=s}},ae.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,l=s&&this.eat(w.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(w.bracketL);if(u||l&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var c=this.startNodeAt(t,n);c.object=e,u?(c.property=this.parseExpression(),this.expect(w.bracketR)):this.type===w.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!u,s&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(w.parenL)){var f=new H,p=this.yieldPos,d=this.awaitPos,h=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,f);if(i&&!l&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=h,this.parseArrowExpression(this.startNodeAt(t,n),m,!0,o);this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=h||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=m,s&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===w.backQuote){(l||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},ae.parseExprAtom=function(e,t){this.type===w.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(n,"Super");case w._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case w.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(re.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===w.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return s=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case w.regexp:var l=this.value;return(n=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},n;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(n=this.startNode()).value=this.type===w._null?null:this.type===w._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case w.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case w.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(w.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case w.braceL:return this.overrideContext(re.b_expr),this.parseObj(!1,e);case w._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ae.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case w.parenL:return this.parseDynamicImport(e);case w.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},ae.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var t=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ae.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ae.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ae.parseParenExpression=function(){this.expect(w.parenL);var e=this.parseExpression();return this.expect(w.parenR),e},ae.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,s=this.start,l=this.startLoc,u=[],c=!0,f=!1,p=new H,d=this.yieldPos,h=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(c?c=!1:this.expect(w.comma),a&&this.afterTrailingComma(w.parenR,!0)){f=!0;break}if(this.type===w.ellipsis){o=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(w.parenR),e&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=h,this.parseParenArrowList(r,i,u,t);u.length&&!f||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,u.length>1?((n=this.startNodeAt(s,l)).expressions=u,this.finishNodeAt(n,"SequenceExpression",m,g)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},ae.parseParenItem=function(e){return e},ae.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var se=[];ae.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,a=this.type===w._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(w.parenL)?e.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):e.arguments=se,this.finishNode(e,"NewExpression")},ae.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===w.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===w.backQuote,this.finishNode(n,"TemplateElement")},ae.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(w.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},ae.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},ae.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(w.braceR);){if(r)r=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},ae.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===w.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(w.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},ae.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===w.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},ae.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(w.bracketR),e.key;e.computed=!1}return e.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ae.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ae.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|z(t,r.generator)|(n?128:0)),this.expect(w.parenL),r.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},ae.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|z(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},ae.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==w.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!s||(o=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},ae.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},ae.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,1,t?null:n)}},ae.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(w.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===w.comma?o=null:this.type===w.ellipsis?(o=this.parseSpread(r),r&&this.type===w.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},ae.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},ae.parseIdent=function(e){var t=this.startNode();return this.type===w.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ae.parsePrivateIdent=function(){var e=this.startNode();return this.type===w.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},ae.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(w.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ae.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var le=U.prototype;le.raise=function(e,t){var n=D(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},le.raiseRecoverable=le.raise,le.curPosition=function(){if(this.options.locations)return new F(this.curLine,this.pos-this.lineStart)};var ue=U.prototype,ce=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ue.enterScope=function(e){this.scopeStack.push(new ce(e))},ue.exitScope=function(){this.scopeStack.pop()},ue.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ue.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],259&s.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},ue.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ue.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ue.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ue.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var fe=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new j(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},pe=U.prototype;function de(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}pe.startNode=function(){return new fe(this,this.start,this.startLoc)},pe.startNodeAt=function(e,t){return new fe(this,e,t)},pe.finishNode=function(e,t){return de.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},pe.finishNodeAt=function(e,t,n,r){return de.call(this,e,t,n,r)},pe.copyNode=function(e){var t=new fe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var he,me,ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ve=ge+" Extended_Pictographic",ye=ve+" EBase EComp EMod EPres ExtPict",be={9:ge,10:ve,11:ve,12:ye,13:ye,14:ye},xe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",we="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Se=we+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",_e=Se+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ee=_e+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ke=Ee+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ce={9:we,10:Se,11:_e,12:Ee,13:ke,14:ke+" Kawi Nag_Mundari Nagm"},Ie={};for(var Pe=0,Te=[9,10,11,12,13,14];Pe<Te.length;Pe+=1)me=void 0,(me=Ie[he=Te[Pe]]={binary:R(be[he]+" "+xe),nonBinary:{General_Category:R(xe),Script:R(Ce[he])}}).nonBinary.Script_Extensions=me.nonBinary.Script,me.nonBinary.gc=me.nonBinary.General_Category,me.nonBinary.sc=me.nonBinary.Script,me.nonBinary.scx=me.nonBinary.Script_Extensions;var Ae=U.prototype,Ne=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Ie[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Oe(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Re(e){return e>=65&&e<=90||e>=97&&e<=122}function Le(e){return Re(e)||95===e}function Me(e){return Le(e)||Fe(e)}function Fe(e){return e>=48&&e<=57}function je(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function De(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ve(e){return e>=48&&e<=55}Ne.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ne.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ne.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ne.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Ne.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ne.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ne.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ne.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ae.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Ae.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Ae.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},Ae.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Ae.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ae.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Ae.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Ae.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ae.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ae.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},Ae.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Ae.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ae.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Ae.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ae.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Ae.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ae.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Oe(t)&&(e.lastIntValue=t,e.advance(),!0)},Ae.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Oe(n);)e.advance();return e.pos!==t},Ae.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Ae.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Ae.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Ae.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=L(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=L(e.lastIntValue);return!0}return!1},Ae.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ae.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ae.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ae.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Ae.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Ae.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Ae.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ae.regexp_eatZero=function(e){return 48===e.current()&&!Fe(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ae.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ae.regexp_eatControlLetter=function(e){var t=e.current();return!!Re(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ae.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Ae.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Ae.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Ae.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Ae.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Ae.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){N(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Ae.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Ae.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Le(t=e.current());)e.lastStringValue+=L(t),e.advance();return""!==e.lastStringValue},Ae.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Me(t=e.current());)e.lastStringValue+=L(t),e.advance();return""!==e.lastStringValue},Ae.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ae.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Ae.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Ae.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Ve(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Ae.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Ae.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Fe(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Ae.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Ae.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Fe(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Ae.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;je(n=e.current());)e.lastIntValue=16*e.lastIntValue+De(n),e.advance();return e.pos!==t},Ae.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Ae.regexp_eatOctalDigit=function(e){var t=e.current();return Ve(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ae.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!je(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+De(i),e.advance()}return!0};var Be=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new j(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ze=U.prototype;function Ue(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}ze.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Be(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ze.getToken=function(){return this.next(),new Be(this)},"undefined"!=typeof Symbol&&(ze[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===w.eof,value:t}}}}),ze.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ze.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ze.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},ze.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=k(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},ze.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},ze.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},ze.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ze.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},ze.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},ze.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=w.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(w.assign,n+1):this.finishOp(r,n)},ze.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(124===e?w.logicalOR:w.logicalAND,2):61===t?this.finishOp(w.assign,2):this.finishOp(124===e?w.bitwiseOR:w.bitwiseAND,1)},ze.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},ze.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!S.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},ze.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(w.assign,n+1):this.finishOp(w.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(w.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ze.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===e?w.eq:w.prefix,1)},ze.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(w.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(w.coalesce,2)}return this.finishOp(w.question,1)},ze.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(w.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(e)+"'")},ze.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(e)+"'")},ze.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ze.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(S.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new Ne(this));s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(i,o)}catch(e){}return this.finishToken(w.regexp,{pattern:i,flags:o,value:l})},ze.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,l=0,u=null==t?1/0:t;l<u;++l,++this.pos){var c=this.input.charCodeAt(this.pos),f=void 0;if(r&&95===c)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=c;else{if((f=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;s=c,o=o*e+f}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},ze.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Ue(this.input.slice(t,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,n)},ze.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=Ue(this.input.slice(t,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(w.num,o)},ze.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},ze.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(w.string,t)};var $e={};ze.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$e)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ze.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $e;this.raise(e,t)},ze.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(w.template,e)):36===n?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ze.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},ze.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return E(t)?"":String.fromCharCode(t)}},ze.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ze.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(h(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?d:h)(o,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=L(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},ze.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)},U.acorn={Parser:U,version:"8.8.2",defaultOptions:V,Position:F,SourceLocation:j,getLineInfo:D,Node:fe,TokenType:m,tokTypes:w,keywordTypes:b,TokContext:ne,tokContexts:re,isIdentifierChar:h,isIdentifierStart:d,Token:Be,isNewLine:E,lineBreak:S,lineBreakG:_,nonASCIIwhitespace:C};var We=n(345);function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t,n){return t&&qe(e.prototype,t),n&&qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Qe(e,t,n){return Qe=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ke(i,n.prototype),i},Qe.apply(null,arguments)}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e){return"string"==typeof e?We.Long.fromString(e):We.Long.fromNumber(e)}var Je={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Date.apply(void 0,Xe(t))}))},et={Date:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qe(Date,Xe(t))}))},tt={RegExp,Binary:function(e,t){return new We.Binary(e,t)},BinData:function(e,t){return new We.Binary(Buffer.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new We.UUID).toBinary():new We.Binary(Buffer.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new We.Code(e,t)},DBRef:function(e,t,n,r){return new We.DBRef(e,t,n,r)},Decimal128:function(e){return We.Decimal128.fromString(e)},NumberDecimal:function(e){return We.Decimal128.fromString(e)},Double:function(e){return new We.Double(e)},Int32:function(e){return new We.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new We.Long(e,t)},NumberLong:Ze,Int64:Ze,Map:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t;return new(null!==(t=We.Map)&&void 0!==t?t:Map)(e)})),MaxKey:function(){return new We.MaxKey},MinKey:function(){return new We.MinKey},ObjectID:function(e){return new We.ObjectId(e)},ObjectId:function(e){return new We.ObjectId(e)},Symbol:function(e){return new We.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new We.Timestamp({t:e,i:t}):new We.Timestamp(e)},ISODate:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qe(Date,Xe(t))}},nt=Object.freeze({Infinity:1/0,NaN:NaN,undefined:void 0}),rt={Math:{class:Math,allowedMethods:{abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0}},Date:{class:Date,allowedMethods:{getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0}},ISODate:{class:Date,allowedMethods:"Date"}},it=Object.freeze([].concat(Xe(Object.keys(tt)),Xe(Object.keys(et)),Xe(Object.keys(Je))));function at(e,t){if(rt[e]){var n=rt[e].allowedMethods;return"string"==typeof n?rt[n].allowedMethods[t]:n[t]}return!1}var ot,st=He((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,Ge(this,"checkSafeCall",(function(e){var t=n.options.allowMethods;if("Identifier"===e.callee.type)return it.indexOf(e.callee.name)>=0&&e.arguments.every(n.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){var r=e.callee.object,i=e.callee.property;return"Identifier"===r.type&&"Identifier"===i.type?at(r.name,i.name)&&e.arguments.every(n.checkSafeExpression):"NewExpression"!==r.type&&"CallExpression"!==r.type||"Identifier"!==r.callee.type?n.checkSafeExpression(r)&&e.arguments.every(n.checkSafeExpression):at(r.callee.name,i.name)&&e.arguments.every(n.checkSafeExpression)}return!1})),Ge(this,"checkSafeExpression",(function(e){switch(e.type){case"Identifier":return nt.hasOwnProperty(e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(n.checkSafeExpression);case"UnaryExpression":return n.checkSafeExpression(e.argument);case"BinaryExpression":return n.checkSafeExpression(e.left)&&n.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return n.checkSafeCall(e);case"ObjectExpression":return e.properties.every((function(e){return!e.computed&&!e.method&&!!["Literal","Identifier"].includes(e.key.type)&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||n.checkSafeExpression(e.value))}));default:return!1}}))})),lt=function(e,t){return"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new st(t).checkSafeExpression(e.body[0].expression)},ut=function(e){if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-pt(e.argument);case"+":return+pt(e.argument);case"!":return!pt(e.argument);case"~":return~pt(e.argument);default:throw new Error("Invalid UnaryExpression Provided: '".concat(e.operator,"'"))}},ct=function(e){var t=e.left,n=e.right;switch(e.operator){case"==":return pt(t)==pt(n);case"!=":return pt(t)!=pt(n);case"===":return pt(t)===pt(n);case"!==":return pt(t)!==pt(n);case"<":return pt(t)<pt(n);case"<=":return pt(t)<=pt(n);case">":return pt(t)>pt(n);case">=":return pt(t)>=pt(n);case"<<":return pt(t)<<pt(n);case">>":return pt(t)>>pt(n);case">>>":return pt(t)>>>pt(n);case"+":return pt(t)+pt(n);case"-":return pt(t)-pt(n);case"*":return pt(t)*pt(n);case"/":return pt(t)/pt(n);case"%":return pt(t)%pt(n);case"**":return Math.pow(pt(t),pt(n));case"|":return pt(t)|pt(n);case"^":return pt(t)^pt(n);case"&":return pt(t)&pt(n);case"in":return pt(t)in pt(n);case"instanceof":return pt(t)instanceof pt(n);default:throw new Error("Invalid BinaryExpression Provided: '".concat(e.operator,"'"))}},ft=function(e,t){switch(e.callee.type){case"Identifier":var n=function(e,t){if(t&&et[e])return et[e];if(!t&&Je[e])return Je[e];if(tt[e])return tt[e];throw new Error("Attempted to access scope property '".concat(e,"' that doesn't exist"))}(e.callee.name,t),r=e.arguments.map((function(e){return pt(e)}));return n.apply(n,r);case"MemberExpression":var i="Identifier"===e.callee.object.type?function(e){if(rt[e])return rt[e].class;throw new Error("Attempted to access member '".concat(e,"' that doesn't exist"))}(e.callee.object.name):pt(e.callee.object),a="Identifier"===e.callee.property.type&&e.callee.property.name;if(!a)throw new Error("Expected CallExpression property to be an identifier");var o=e.arguments.map((function(e){return pt(e)}));return i[a].apply(i,o);default:throw new Error("Should not evaluate invalid expressions")}},pt=function e(t){switch(t.type){case"Identifier":if(nt.hasOwnProperty(t.name))return nt[t.name];throw new Error("".concat(t.name," is not a valid Identifier"));case"Literal":return t.value;case"UnaryExpression":return ut(t);case"BinaryExpression":return ct(t);case"ArrayExpression":return t.elements.map((function(t){return e(t)}));case"CallExpression":return ft(t,!1);case"NewExpression":return ft(t,!0);case"ObjectExpression":var n={};return t.properties.forEach((function(t){var r="Identifier"===t.key.type?t.key.name:e(t.key);n[r]=e(t.value)})),n;case"FunctionExpression":case"ArrowFunctionExpression":return function(e){var t,n=(null===(t=e.loc)||void 0===t?void 0:t.source)||"",r=e.range||[];return n.slice(r[0],r[1])}(t);default:throw new Error}},dt=function(e){if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return pt(e.body[0].expression);throw new Error("Invalid AST Found")};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(ot||(ot={}));var gt={allowMethods:!1,allowComments:!1},vt={allowMethods:!0},yt={allowMethods:!0,allowComments:!0},bt=mt({mode:ot.Strict},gt);function xt(e,t){var n=function(e){return mt(mt(mt({},bt),function(e){switch(e){case ot.Strict:return gt;case ot.Extended:return vt;case ot.Loose:return yt}}(e&&e.mode||ot.Strict)),e)}(t),r=function(e){var t=!1,n=function(e,t){return U.parse(e,t)}(e,{ecmaVersion:6,onComment:function(){return t=!0},locations:!0,ranges:!0,sourceFile:e});return{ast:n,hasComments:t}}("(\n".concat(e,"\n)")),i=r.hasComments,a=r.ast;return i&&!n.allowComments||!lt(a,n)?"":dt(a)}},3463:(e,t,n)=>{"use strict";var r=n(3887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var s=l(t),m=l(n),g=0;g<o.length;++g){var v=o[g];if(!(a[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{u(t,v,y)}catch(e){}}}}return t}},3459:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===o||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3887:(e,t,n)=>{"use strict";e.exports=n(3459)},841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayToString=void 0,t.arrayToString=(e,t,n)=>{const r=e.map((function(e,r){const i=n(e,r);return void 0===i?String(i):t+i.split("\n").join(`\n${t}`)})).join(t?",\n":","),i=t&&r?"\n":"";return`[${i}${r}${i}]`}},2679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionParser=t.dedentFunction=t.functionToString=t.USED_METHOD_KEY=void 0;const r=n(311),i='"'==={" "(){}}[" "].toString().charAt(0),a={Function:"function ",GeneratorFunction:"function* ",AsyncFunction:"async function ",AsyncGeneratorFunction:"async function* "},o={Function:"",GeneratorFunction:"*",AsyncFunction:"async ",AsyncGeneratorFunction:"async *"},s=new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));function l(e){let t;for(const n of e.split("\n").slice(1)){const r=/^[\s\t]+/.exec(n);if(!r)return e;const[i]=r;(void 0===t||i.length<t.length)&&(t=i)}return t?e.split(`\n${t}`).join("\n"):e}t.USED_METHOD_KEY=new WeakSet,t.functionToString=(e,n,r,i)=>{const a="string"==typeof i?i:void 0;return void 0!==a&&t.USED_METHOD_KEY.add(e),new u(e,n,r,a).stringify()},t.dedentFunction=l;class u{constructor(e,t,n,i){this.fn=e,this.indent=t,this.next=n,this.key=i,this.pos=0,this.hadKeyword=!1,this.fnString=Function.prototype.toString.call(e),this.fnType=e.constructor.name,this.keyQuote=void 0===i?"":r.quoteKey(i,n),this.keyPrefix=void 0===i?"":`${this.keyQuote}:${t?" ":""}`,this.isMethodCandidate=void 0!==i&&(""===this.fn.name||this.fn.name===i)}stringify(){const e=this.tryParse();return e?l(e):`${this.keyPrefix}void ${this.next(this.fnString)}`}getPrefix(){return this.isMethodCandidate&&!this.hadKeyword?o[this.fnType]+this.keyQuote:this.keyPrefix+a[this.fnType]}tryParse(){if("}"!==this.fnString[this.fnString.length-1])return this.keyPrefix+this.fnString;if(this.fn.name){const e=this.tryStrippingName();if(e)return e}const e=this.pos;if("class"===this.consumeSyntax())return this.fnString;if(this.pos=e,this.tryParsePrefixTokens()){const e=this.tryStrippingName();if(e)return e;let t=this.pos;switch(this.consumeSyntax("WORD_LIKE")){case"WORD_LIKE":this.isMethodCandidate&&!this.hadKeyword&&(t=this.pos);case"()":if("=>"===this.fnString.substr(this.pos,2))return this.keyPrefix+this.fnString;this.pos=t;case'"':case"'":case"[]":return this.getPrefix()+this.fnString.substr(this.pos)}}}tryStrippingName(){if(i)return;let e=this.pos;const t=this.fnString.substr(this.pos,this.fn.name.length);if(t===this.fn.name&&(this.pos+=t.length,"()"===this.consumeSyntax()&&"{}"===this.consumeSyntax()&&this.pos===this.fnString.length))return!this.isMethodCandidate&&r.isValidVariableName(t)||(e+=t.length),this.getPrefix()+this.fnString.substr(e);this.pos=e}tryParsePrefixTokens(){let e=this.pos;switch(this.hadKeyword=!1,this.fnType){case"AsyncFunction":if("async"!==this.consumeSyntax())return!1;e=this.pos;case"Function":return"function"===this.consumeSyntax()?this.hadKeyword=!0:this.pos=e,!0;case"AsyncGeneratorFunction":if("async"!==this.consumeSyntax())return!1;case"GeneratorFunction":let t=this.consumeSyntax();return"function"===t&&(t=this.consumeSyntax(),this.hadKeyword=!0),"*"===t}}consumeSyntax(e){const t=this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);if(!t)return;const[n,r]=t;if(this.consumeWhitespace(),r)return e||r;switch(n){case"(":return this.consumeSyntaxUntil("(",")");case"[":return this.consumeSyntaxUntil("[","]");case"{":return this.consumeSyntaxUntil("{","}");case"`":return this.consumeTemplate();case'"':return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/,'"');case"'":return this.consumeRegExp(/^(?:[^\\']|\\.)*'/,"'")}return n}consumeSyntaxUntil(e,t){let n=!0;for(;;){const r=this.consumeSyntax();if(r===t)return e+t;if(!r||")"===r||"]"===r||"}"===r)return;"/"===r&&n&&this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)?(n=!1,this.consumeWhitespace()):n=s.has(r)}}consumeMatch(e){const t=e.exec(this.fnString.substr(this.pos));return t&&(this.pos+=t[0].length),t}consumeRegExp(e,t){const n=e.exec(this.fnString.substr(this.pos));if(n)return this.pos+=n[0].length,this.consumeWhitespace(),t}consumeTemplate(){for(;;){if(this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/),"`"===this.fnString[this.pos])return this.pos++,this.consumeWhitespace(),"`";if("${"!==this.fnString.substr(this.pos,2)||(this.pos+=2,this.consumeWhitespace(),!this.consumeSyntaxUntil("{","}")))return}}consumeWhitespace(){this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/)}}t.FunctionParser=u},6081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;const r=n(4225),i=n(311),a=Symbol("root");t.stringify=function(e,t,n,o={}){const s="string"==typeof n?n:" ".repeat(n||0),l=[],u=new Set,c=new Map,f=new Map;let p=0;const{maxDepth:d=100,references:h=!1,skipUndefinedProperties:m=!1,maxValues:g=1e5}=o,v=function(e){return e?(t,n,i,a)=>e(t,n,(e=>r.toString(e,n,i,a)),a):r.toString}(t),y=(e,t)=>{if(++p>g)return;if(m&&void 0===e)return;if(l.length>d)return;if(void 0===t)return v(e,s,y,t);l.push(t);const n=b(e,t===a?void 0:t);return l.pop(),n},b=h?(e,t)=>{if(null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)){if(c.has(e))return f.set(l.slice(1),c.get(e)),v(void 0,s,y,t);c.set(e,l.slice(1))}return v(e,s,y,t)}:(e,t)=>{if(u.has(e))return;u.add(e);const n=v(e,s,y,t);return u.delete(e),n},x=y(e,a);if(f.size){const e=s?" ":"",t=s?"\n":"";let n=`var x${e}=${e}${x};${t}`;for(const[r,a]of f.entries())n+=`x${i.stringifyPath(r,y)}${e}=${e}x${i.stringifyPath(a,y)};${t}`;return`(function${e}()${e}{${t}${n}return x;${t}}())`}return x}},7112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=void 0;const r=n(311),i=n(2679),a=n(841);t.objectToString=(e,t,r,i)=>{if("function"==typeof Buffer&&Buffer.isBuffer(e))return`Buffer.from(${r(e.toString("base64"))}, 'base64')`;if("object"==typeof n.g&&e===n.g)return o(e,t,r,i);const a=s[Object.prototype.toString.call(e)];return a?a(e,t,r,i):void 0};const o=(e,t,n)=>`Function(${n("return this")})()`,s={"[object Array]":a.arrayToString,"[object Object]":(e,t,n,a)=>{const o=t?"\n":"",s=t?" ":"",l=Object.keys(e).reduce((function(a,o){const l=e[o],u=n(l,o);if(void 0===u)return a;const c=u.split("\n").join(`\n${t}`);return i.USED_METHOD_KEY.has(l)?(a.push(`${t}${c}`),a):(a.push(`${t}${r.quoteKey(o,n)}:${s}${c}`),a)}),[]).join(`,${o}`);return""===l?"{}":`{${o}${l}${o}}`},"[object Error]":(e,t,n)=>`new Error(${n(e.message)})`,"[object Date]":e=>`new Date(${e.getTime()})`,"[object String]":(e,t,n)=>`new String(${n(e.toString())})`,"[object Number]":e=>`new Number(${e})`,"[object Boolean]":e=>`new Boolean(${e})`,"[object Set]":(e,t,n)=>`new Set(${n(Array.from(e))})`,"[object Map]":(e,t,n)=>`new Map(${n(Array.from(e))})`,"[object RegExp]":String,"[object global]":o,"[object Window]":o}},311:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyPath=t.quoteKey=t.isValidVariableName=t.IS_VALID_IDENTIFIER=t.quoteString=void 0;const n=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=new Map([["\b","\\b"],["\t","\\t"],["\n","\\n"],["\f","\\f"],["\r","\\r"],["'","\\'"],['"','\\"'],["\\","\\\\"]]);function i(e){return r.get(e)||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}t.quoteString=function(e){return`'${e.replace(n,i)}'`};const a=new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));function o(e){return"string"==typeof e&&!a.has(e)&&t.IS_VALID_IDENTIFIER.test(e)}t.IS_VALID_IDENTIFIER=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t.isValidVariableName=o,t.quoteKey=function(e,t){return o(e)?e:t(e)},t.stringifyPath=function(e,t){let n="";for(const r of e)o(r)?n+=`.${r}`:n+=`[${t(r)}]`;return n}},4225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;const r=n(311),i=n(7112),a=n(2679),o={string:r.quoteString,number:e=>Object.is(e,-0)?"-0":String(e),boolean:String,symbol:(e,t,n)=>{const r=Symbol.keyFor(e);return void 0!==r?`Symbol.for(${n(r)})`:`Symbol(${n(e.description)})`},bigint:(e,t,n)=>`BigInt(${n(String(e))})`,undefined:String,object:i.objectToString,function:a.functionToString};t.toString=(e,t,n,r)=>null===e?"null":o[typeof e](e,t,n,r)},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",w="[object GeneratorFunction]",S="[object Map]",_="[object Number]",E="[object Object]",k="[object Promise]",C="[object RegExp]",I="[object Set]",P="[object String]",T="[object Symbol]",A="[object WeakMap]",N="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",D="[object Uint8Array]",V="[object Uint8ClampedArray]",B="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,G=RegExp(q.source),K=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="["+we+"]",Te="["+Ie+"]",Ae="["+Se+"]",Ne="\\d+",Oe="["+_e+"]",Re="["+Ee+"]",Le="[^"+we+Ie+Ne+_e+Ee+ke+"]",Me="\\ud83c[\\udffb-\\udfff]",Fe="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+ke+"]",Be="\\u200d",ze="(?:"+Re+"|"+Le+")",Ue="(?:"+Ve+"|"+Le+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ae+"|"+Me+")?",He="["+Ce+"]?",Ge=He+qe+"(?:"+Be+"(?:"+[Fe,je,De].join("|")+")"+He+qe+")*",Ke="(?:"+[Oe,je,De].join("|")+")"+Ge,Qe="(?:"+[Fe+Ae+"?",Ae,je,De,Pe].join("|")+")",Ye=RegExp("['’]","g"),Xe=RegExp(Ae,"g"),Ze=RegExp(Me+"(?="+Me+")|"+Qe+Ge,"g"),Je=RegExp([Ve+"?"+Re+"+"+$e+"(?="+[Te,Ve,"$"].join("|")+")",Ue+"+"+We+"(?="+[Te,Ve+ze,"$"].join("|")+")",Ve+"?"+ze+"+"+$e,Ve+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Ke].join("|"),"g"),et=RegExp("["+Be+we+Se+Ce+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[R]=it[L]=it[M]=it[F]=it[j]=it[D]=it[V]=it[B]=it[z]=!0,it[m]=it[g]=it[N]=it[v]=it[O]=it[y]=it[b]=it[x]=it[S]=it[_]=it[E]=it[C]=it[I]=it[P]=it[A]=!1;var at={};at[m]=at[g]=at[N]=at[O]=at[v]=at[y]=at[R]=at[L]=at[M]=at[F]=at[j]=at[S]=at[_]=at[E]=at[C]=at[I]=at[P]=at[T]=at[D]=at[V]=at[B]=at[z]=!0,at[b]=at[x]=at[A]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||ct||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&&ut.process,gt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,xt=gt&>.isRegExp,wt=gt&>.isSet,St=gt&>.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Tt(e,t){return!(null==e||!e.length)&&Vt(e,t,0)>-1}function At(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=$t("length");function jt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Dt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Dt(e,zt,n)}function Bt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function zt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Ht(e,t)/n:p}function $t(e){return function(t){return null==t?i:t[e]}}function Wt(e){return function(t){return null==e?i:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Ht(e,t){for(var n,r=-1,a=e.length;++r<a;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Qt(e){return function(t){return e(t)}}function Yt(e,t){return Nt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+ot[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==s||(e[n]=s,a[i++]=n)}return a}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Ft(e)}function fn(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,ie=t.Date,we=t.Error,Se=t.Function,_e=t.Math,Ee=t.Object,ke=t.RegExp,Ce=t.String,Ie=t.TypeError,Pe=r.prototype,Te=Se.prototype,Ae=Ee.prototype,Ne=t["__core-js_shared__"],Oe=Te.toString,Re=Ae.hasOwnProperty,Le=0,Me=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Ae.toString,je=Oe.call(Ee),De=ft._,Ve=ke("^"+Oe.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:i,ze=t.Symbol,Ue=t.Uint8Array,$e=Be?Be.allocUnsafe:i,We=on(Ee.getPrototypeOf,Ee),qe=Ee.create,He=Ae.propertyIsEnumerable,Ge=Pe.splice,Ke=ze?ze.isConcatSpreadable:i,Qe=ze?ze.iterator:i,Ze=ze?ze.toStringTag:i,et=function(){try{var e=la(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==ft.Date.now&&ie.now,ct=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=_e.ceil,dt=_e.floor,mt=Ee.getOwnPropertySymbols,gt=Be?Be.isBuffer:i,Ft=t.isFinite,Wt=Pe.join,mn=on(Ee.keys,Ee),gn=_e.max,vn=_e.min,yn=ie.now,bn=t.parseInt,xn=_e.random,wn=Pe.reverse,Sn=la(t,"DataView"),_n=la(t,"Map"),En=la(t,"Promise"),kn=la(t,"Set"),Cn=la(t,"WeakMap"),In=la(Ee,"create"),Pn=Cn&&new Cn,Tn={},An=Fa(Sn),Nn=Fa(_n),On=Fa(En),Rn=Fa(kn),Ln=Fa(Cn),Mn=ze?ze.prototype:i,Fn=Mn?Mn.valueOf:i,jn=Mn?Mn.toString:i;function Dn(e){if(es(e)&&!$o(e)&&!(e instanceof Un)){if(e instanceof zn)return e;if(Re.call(e,"__wrapped__"))return ja(e)}return new zn(e)}var Vn=function(){function e(){}return function(t){if(!Jo(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Kn(e,t){var n=$o(e),r=!n&&Uo(e),i=!n&&!r&&Go(e),a=!n&&!r&&!i&&ls(e),o=n||r||i||a,s=o?Gt(e.length,Ce):[],l=s.length;for(var u in e)!t&&!Re.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ma(u,l))||s.push(u);return s}function Qn(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Yn(e,t){return Na(Ci(e),ar(t,0,e.length))}function Xn(e){return Na(Ci(e))}function Zn(e,t,n){(n!==i&&!Vo(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Jn(e,t,n){var r=e[t];Re.call(e,t)&&Vo(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Vo(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function nr(e,t){return e&&Ii(t,As(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,a=t.length,o=r(a),s=null==e;++n<a;)o[n]=s?i:ks(e,t[n]);return o}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function or(e,t,n,r,a,o){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!Jo(e))return e;var f=$o(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ci(e,s)}else{var p=fa(e),d=p==x||p==w;if(Go(e))return xi(e,l);if(p==E||p==m||d&&!a){if(s=u||d?{}:da(e),!l)return u?function(e,t){return Ii(e,ca(e),t)}(e,function(e,t){return e&&Ii(t,Ns(t),e)}(s,e)):function(e,t){return Ii(e,ua(e),t)}(e,nr(s,e))}else{if(!at[p])return a?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case N:return wi(e);case v:case y:return new i(+e);case O:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case L:case M:case F:case j:case D:case V:case B:case z:return Si(e,n);case S:return new i;case _:case P:return new i(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new i;case T:return r=e,Fn?Ee(Fn.call(r)):{}}}(e,p,l)}}o||(o=new Gn);var h=o.get(e);if(h)return h;o.set(e,s),as(e)?e.forEach((function(r){s.add(or(r,t,n,r,e,o))})):ts(e)&&e.forEach((function(r,i){s.set(i,or(r,t,n,i,e,o))}));var g=f?i:(c?u?ta:ea:u?Ns:As)(e);return kt(g||e,(function(r,i){g&&(r=e[i=r]),Jn(s,i,or(r,t,n,i,e,o))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Ie(a);return Ia((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,a=Tt,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Nt(t,Qt(n))),r?(a=At,o=!1):t.length>=200&&(a=Xt,o=!1,t=new Hn(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,o&&f==f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(c)}else a(t,f,r)||l.push(c)}return l}Dn.templateSettings={escape:Q,evaluate:Y,interpolate:X,variable:"",imports:{_:Dn}},Dn.prototype=Bn.prototype,Dn.prototype.constructor=Dn,zn.prototype=Vn(Bn.prototype),zn.prototype.constructor=zn,Un.prototype=Vn(Bn.prototype),Un.prototype.constructor=Un,$n.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===o?i:n}return Re.call(t,e)?t[e]:i},$n.prototype.has=function(e){var t=this.__data__;return In?t[e]!==i:Re.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===i?o:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(_n||Wn),string:new $n}},qn.prototype.delete=function(e){var t=oa(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return oa(this,e).get(e)},qn.prototype.has=function(e){return oa(this,e).has(e)},qn.prototype.set=function(e,t){var n=oa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,o),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var cr=Ai(yr),fr=Ai(br,!0);function pr(e,t){var n=!0;return cr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function dr(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],s=t(o);if(null!=s&&(l===i?s==s&&!ss(s):n(s,l)))var l=s,u=o}return u}function hr(e,t){var n=[];return cr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=ha),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Ot(i,s):r||(i[i.length]=s)}return i}var gr=Ni(),vr=Ni(!0);function yr(e,t){return e&&gr(e,t,As)}function br(e,t){return e&&vr(e,t,As)}function xr(e,t){return Pt(t,(function(t){return Yo(e[t])}))}function wr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Ma(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return $o(e)?r:Ot(r,n(e))}function _r(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=Re.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(e){}var a=Fe.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),a}(e):function(e){return Fe.call(e)}(e)}function Er(e,t){return e>t}function kr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Ee(e)}function Ir(e,t,n){for(var a=n?At:Tt,o=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var p=e[l];l&&t&&(p=Nt(p,Qt(t))),c=vn(p.length,c),u[l]=!n&&(t||o>=120&&p.length>=120)?new Hn(l&&p):i}p=e[0];var d=-1,h=u[0];e:for(;++d<o&&f.length<c;){var m=p[d],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Xt(h,g):a(f,g,n))){for(l=s;--l;){var v=u[l];if(!(v?Xt(v,g):a(e[l],g,n)))continue e}h&&h.push(g),f.push(m)}}return f}function Pr(e,t,n){var r=null==(e=Ea(e,t=gi(t,e)))?e:e[Ma(Ka(t))];return null==r?i:_t(r,e,n)}function Tr(e){return es(e)&&_r(e)==m}function Ar(e,t,n,r,a){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,a,o){var s=$o(e),l=$o(t),u=s?g:fa(e),c=l?g:fa(t),f=(u=u==m?E:u)==E,p=(c=c==m?E:c)==E,d=u==c;if(d&&Go(e)){if(!Go(t))return!1;s=!0,f=!1}if(d&&!f)return o||(o=new Gn),s||ls(e)?Zi(e,t,n,r,a,o):function(e,t,n,r,i,a,o){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!a(new Ue(e),new Ue(t)));case v:case y:case _:return Vo(+e,+t);case b:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case S:var s=an;case I:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=Zi(s(e),s(t),r,i,a,o);return o.delete(e),c;case T:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,r,a,o);if(!(1&n)){var h=f&&Re.call(e,"__wrapped__"),x=p&&Re.call(t,"__wrapped__");if(h||x){var w=h?e.value():e,k=x?t.value():t;return o||(o=new Gn),a(w,k,n,r,o)}}return!!d&&(o||(o=new Gn),function(e,t,n,r,a,o){var s=1&n,l=ea(e),u=l.length;if(u!=ea(t).length&&!s)return!1;for(var c=u;c--;){var f=l[c];if(!(s?f in t:Re.call(t,f)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var m=s;++c<u;){var g=e[f=l[c]],v=t[f];if(r)var y=s?r(v,g,f,t,e,o):r(g,v,f,e,t,o);if(!(y===i?g===v||a(g,v,n,r,o):y)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,a,o))}(e,t,n,r,Ar,a))}function Nr(e,t,n,r){var a=n.length,o=a,s=!r;if(null==e)return!o;for(e=Ee(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=n[a])[0],c=e[u],f=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var p=new Gn;if(r)var d=r(c,f,u,e,t,p);if(!(d===i?Ar(f,c,3,r,p):d))return!1}}return!0}function Or(e){return!(!Jo(e)||(t=e,Me&&Me in t))&&(Yo(e)?Ve:me).test(Fa(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?$o(e)?Dr(e[0],e[1]):jr(e):fl(e)}function Lr(e){if(!xa(e))return mn(e);var t=[];for(var n in Ee(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function Fr(e,t){var n=-1,i=qo(e)?r(e.length):[];return cr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function jr(e){var t=sa(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Dr(e,t){return va(e)&&wa(t)?Sa(Ma(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Cs(n,e):Ar(t,r,3)}}function Vr(e,t,n,r,a){e!==t&&gr(t,(function(o,s){if(a||(a=new Gn),Jo(o))!function(e,t,n,r,a,o,s){var l=ka(e,n),u=ka(t,n),c=s.get(u);if(c)Zn(e,n,c);else{var f=o?o(l,u,n+"",e,t,s):i,p=f===i;if(p){var d=$o(u),h=!d&&Go(u),m=!d&&!h&&ls(u);f=u,d||h||m?$o(l)?f=l:Ho(l)?f=Ci(l):h?(p=!1,f=xi(u,!0)):m?(p=!1,f=Si(u,!0)):f=[]:rs(u)||Uo(u)?(f=l,Uo(l)?f=gs(l):Jo(l)&&!Yo(l)||(f=da(u))):p=!1}p&&(s.set(u,f),a(f,u,r,o,s),s.delete(u)),Zn(e,n,f)}}(e,t,s,n,Vr,r,a);else{var l=r?r(ka(e,s),o,s+"",e,t,a):i;l===i&&(l=o),Zn(e,s,l)}}),Ns)}function Br(e,t){var n=e.length;if(n)return ma(t+=t<0?n:0,n)?e[t]:i}function zr(e,t,n){t=t.length?Nt(t,(function(e){return $o(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nl];var r=-1;t=Nt(t,Qt(aa()));var i=Fr(e,(function(e,n,i){var a=Nt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=_i(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Ur(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=wr(e,o);n(s,o)&&Yr(a,gi(o,e),s)}return a}function $r(e,t,n,r){var i=r?Bt:Vt,a=-1,o=t.length,s=e;for(e===t&&(t=Ci(t)),n&&(s=Nt(e,Qt(n)));++a<o;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ma(i)?Ge.call(e,i,1):li(e,i)}}return e}function qr(e,t){return e+dt(xn()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Pa(_a(e,t,nl),e+"")}function Kr(e){return Qn(Vs(e))}function Qr(e,t){var n=Vs(e);return Na(n,ar(t,0,n.length))}function Yr(e,t,n,r){if(!Jo(e))return e;for(var a=-1,o=(t=gi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var u=Ma(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var f=l[u];(c=r?r(f,u,l):i)===i&&(c=Jo(f)?f:ma(t[a+1])?[]:{})}Jn(l,u,c),l=l[u]}return e}var Xr=Pn?function(e,t){return Pn.set(e,t),e}:nl,Zr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:nl;function Jr(e){return Na(Vs(e))}function ei(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}function ti(e,t){var n;return cr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!ss(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ri(e,t,nl,n)}function ri(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,u=ss(t),c=t===i;a<o;){var f=dt((a+o)/2),p=n(e[f]),d=p!==i,h=null===p,m=p==p,g=ss(p);if(s)var v=r||m;else v=c?m&&(r||d):l?m&&d&&(r||!h):u?m&&d&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);v?a=f+1:o=f}return vn(o,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Vo(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ai(e){return"number"==typeof e?e:ss(e)?p:+e}function oi(e){if("string"==typeof e)return e;if($o(e))return Nt(e,oi)+"";if(ss(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Tt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=At;else if(a>=200){var u=t?null:Hi(e);if(u)return ln(u);o=!1,i=Xt,l=new Hn}else l=t?[]:s;e:for(;++r<a;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,o&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),s.push(c)}else i(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}function li(e,t){return null==(e=Ea(e,t=gi(t,e)))||delete e[Ma(Ka(t))]}function ui(e,t,n,r){return Yr(e,t,n(wr(e,t)),r)}function ci(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ei(e,r?0:a,r?a+1:i):ei(e,r?a+1:0,r?i:a)}function fi(e,t){var n=e;return n instanceof Un&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function pi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],l=-1;++l<i;)l!=a&&(o[a]=ur(o[a]||s,e[l],t,n));return si(mr(o,1),t,n)}function di(e,t,n){for(var r=-1,a=e.length,o=t.length,s={};++r<a;){var l=r<o?t[r]:i;n(s,e[r],l)}return s}function hi(e){return Ho(e)?e:[]}function mi(e){return"function"==typeof e?e:nl}function gi(e,t){return $o(e)?e:va(e,t)?[e]:La(vs(e))}var vi=Gr;function yi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=ot||function(e){return ft.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Si(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _i(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,o=ss(e),s=t!==i,l=null===t,u=t==t,c=ss(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!a)return 1;if(!r&&!o&&!c&&e<t||c&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!u)return-1}return 0}function Ei(e,t,n,i){for(var a=-1,o=e.length,s=n.length,l=-1,u=t.length,c=gn(o-s,0),f=r(u+c),p=!i;++l<u;)f[l]=t[l];for(;++a<s;)(p||a<o)&&(f[n[a]]=e[a]);for(;c--;)f[l++]=e[a++];return f}function ki(e,t,n,i){for(var a=-1,o=e.length,s=-1,l=n.length,u=-1,c=t.length,f=gn(o-l,0),p=r(f+c),d=!i;++a<f;)p[a]=e[a];for(var h=a;++u<c;)p[h+u]=t[u];for(;++s<l;)(d||a<o)&&(p[h+n[s]]=e[a++]);return p}function Ci(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ii(e,t,n,r){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),a?rr(n,l,u):Jn(n,l,u)}return n}function Pi(e,t){return function(n,r){var i=$o(n)?Et:tr,a=t?t():{};return i(n,e,aa(r,2),a)}}function Ti(e){return Gr((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&ga(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=Ee(t);++r<a;){var l=n[r];l&&e(t,l,r,o)}return t}))}function Ai(e,t){return function(n,r){if(null==n)return n;if(!qo(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ee(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Ni(e){return function(t,n,r){for(var i=-1,a=Ee(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function Oi(e){return function(t){var n=rn(t=vs(t))?fn(t):i,r=n?n[0]:t.charAt(0),a=n?yi(n,1).join(""):t.slice(1);return r[e]()+a}}function Ri(e){return function(t){return Rt(Ys(Us(t).replace(Ye,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return Jo(r)?r:n}}function Mi(e){return function(t,n,r){var a=Ee(t);if(!qo(t)){var o=aa(n,3);t=As(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,r);return s>-1?a[o?t[s]:s]:i}}function Fi(e){return Ji((function(t){var n=t.length,r=n,o=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ie(a);if(o&&!l&&"wrapper"==ra(s))var l=new zn([],!0)}for(r=l?r:n;++r<n;){var u=ra(s=t[r]),c="wrapper"==u?na(s):i;l=c&&ya(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ra(c[0])].apply(l,c[3]):1==s.length&&ya(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&$o(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function ji(e,t,n,a,o,s,l,c,f,p){var d=t&u,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:Li(e);return function u(){for(var b=arguments.length,x=r(b),w=b;w--;)x[w]=arguments[w];if(g)var S=ia(u),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,S);if(a&&(x=Ei(x,a,o,g)),s&&(x=ki(x,s,l,g)),b-=_,g&&b<p){var E=sn(x,S);return Wi(e,t,ji,u.placeholder,n,x,E,c,f,p-b)}var k=h?n:this,C=m?k[e]:e;return b=x.length,c?x=function(e,t){for(var n=e.length,r=vn(t.length,n),a=Ci(e);r--;){var o=t[r];e[r]=ma(o,n)?a[o]:i}return e}(x,c):v&&b>1&&x.reverse(),d&&f<b&&(x.length=f),this&&this!==ft&&this instanceof u&&(C=y||Li(C)),C.apply(k,x)}}function Di(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=ai(n),r=ai(r)),a=e(n,r)}return a}}function Bi(e){return Ji((function(t){return t=Nt(t,Qt(aa())),Gr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function zi(e,t){var n=(t=t===i?" ":oi(t)).length;if(n<2)return n?Hr(t,e):t;var r=Hr(t,pt(e/cn(t)));return rn(t)?yi(fn(r),0,e).join(""):r.slice(0,e)}function Ui(e){return function(t,n,a){return a&&"number"!=typeof a&&ga(t,n,a)&&(n=a=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var a=-1,o=gn(pt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,a=a===i?t<n?1:-1:ps(a),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Wi(e,t,n,r,a,o,s,u,c,f){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var d=[e,t,a,p?o:i,p?s:i,p?i:o,p?i:s,u,c,f],h=n.apply(i,d);return ya(e)&&Ca(h,d),h.placeholder=r,Ta(h,e,t)}function qi(e){var t=_e[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(ds(n),292))&&Ft(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Hi=kn&&1/ln(new kn([,-0]))[1]==c?function(e){return new kn(e)}:sl;function Gi(e){return function(t){var n=fa(t);return n==S?an(t):n==I?un(t):function(e,t){return Nt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,o,c,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ie(a);var m=o?o.length:0;if(m||(t&=-97,o=c=i),p=p===i?p:gn(ds(p),0),d=d===i?d:ds(d),m-=c?c.length:0,64&t){var g=o,v=c;o=c=i}var y=h?i:na(e),b=[e,t,n,o,c,g,v,f,p,d];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ei(c,l,t[4]):l,e[4]=c?sn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?ki(c,l,t[6]):l,e[6]=c?sn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],o=b[3],c=b[4],!(d=b[9]=b[9]===i?h?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,n){var a=Li(e);return function o(){for(var s=arguments.length,l=r(s),u=s,c=ia(o);u--;)l[u]=arguments[u];var f=s<3&&l[0]!==c&&l[s-1]!==c?[]:sn(l,c);return(s-=f.length)<n?Wi(e,t,ji,o.placeholder,i,l,f,i,i,n-s):_t(this&&this!==ft&&this instanceof o?a:e,this,l)}}(e,t,d):t!=l&&33!=t||c.length?ji.apply(i,b):function(e,t,n,i){var a=1&t,o=Li(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,f=r(c+l),p=this&&this!==ft&&this instanceof t?o:e;++u<c;)f[u]=i[u];for(;l--;)f[u++]=arguments[++s];return _t(p,a?n:this,f)}}(e,t,n,o);else var x=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ta((y?Xr:Ca)(x,b),e,t)}function Qi(e,t,n,r){return e===i||Vo(e,Ae[n])&&!Re.call(r,n)?t:e}function Yi(e,t,n,r,a,o){return Jo(e)&&Jo(t)&&(o.set(t,e),Vr(e,t,i,Yi,o),o.delete(t)),e}function Xi(e){return rs(e)?i:e}function Zi(e,t,n,r,a,o){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var p=-1,d=!0,h=2&n?new Hn:i;for(o.set(e,t),o.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,o):r(m,g,p,e,t,o);if(v!==i){if(v)continue;d=!1;break}if(h){if(!Mt(t,(function(e,t){if(!Xt(h,t)&&(m===e||a(m,e,n,r,o)))return h.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ji(e){return Pa(_a(e,i,$a),e+"")}function ea(e){return Sr(e,As,ua)}function ta(e){return Sr(e,Ns,ca)}var na=Pn?function(e){return Pn.get(e)}:sl;function ra(e){for(var t=e.name+"",n=Tn[t],r=Re.call(Tn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ia(e){return(Re.call(Dn,"placeholder")?Dn:e).placeholder}function aa(){var e=Dn.iteratee||rl;return e=e===rl?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function oa(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function sa(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,wa(i)]}return t}function la(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Or(n)?n:i}var ua=mt?function(e){return null==e?[]:(e=Ee(e),Pt(mt(e),(function(t){return He.call(e,t)})))}:hl,ca=mt?function(e){for(var t=[];e;)Ot(t,ua(e)),e=We(e);return t}:hl,fa=_r;function pa(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,a=!1;++r<i;){var o=Ma(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Zo(i)&&ma(o,i)&&($o(e)||Uo(e))}function da(e){return"function"!=typeof e.constructor||xa(e)?{}:Vn(We(e))}function ha(e){return $o(e)||Uo(e)||!!(Ke&&e&&e[Ke])}function ma(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function ga(e,t,n){if(!Jo(n))return!1;var r=typeof t;return!!("number"==r?qo(n)&&ma(t,n.length):"string"==r&&t in n)&&Vo(n[t],e)}function va(e,t){if($o(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||J.test(e)||!Z.test(e)||null!=t&&e in Ee(t)}function ya(e){var t=ra(e),n=Dn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=na(n);return!!r&&e===r[0]}(Sn&&fa(new Sn(new ArrayBuffer(1)))!=O||_n&&fa(new _n)!=S||En&&fa(En.resolve())!=k||kn&&fa(new kn)!=I||Cn&&fa(new Cn)!=A)&&(fa=function(e){var t=_r(e),n=t==E?e.constructor:i,r=n?Fa(n):"";if(r)switch(r){case An:return O;case Nn:return S;case On:return k;case Rn:return I;case Ln:return A}return t});var ba=Ne?Yo:ml;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function wa(e){return e==e&&!Jo(e)}function Sa(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ee(n))}}function _a(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=gn(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),_t(e,this,l)}}function Ea(e,t){return t.length<2?e:wr(e,ei(t,0,-1))}function ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ca=Aa(Xr),Ia=ct||function(e,t){return ft.setTimeout(e,t)},Pa=Aa(Zr);function Ta(e,t,n){var r=t+"";return Pa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return kt(h,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(r),n)))}function Aa(e){var t=0,n=0;return function(){var r=yn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Na(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var o=qr(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Oa,Ra,La=(Oa=Ro((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Ra.size&&Ra.clear(),e})),Ra=Oa.cache,Oa);function Ma(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ja(e){if(e instanceof Un)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Ci(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Da=Gr((function(e,t){return Ho(e)?ur(e,mr(t,1,Ho,!0)):[]})),Va=Gr((function(e,t){var n=Ka(t);return Ho(n)&&(n=i),Ho(e)?ur(e,mr(t,1,Ho,!0),aa(n,2)):[]})),Ba=Gr((function(e,t){var n=Ka(t);return Ho(n)&&(n=i),Ho(e)?ur(e,mr(t,1,Ho,!0),i,n):[]}));function za(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ds(n);return i<0&&(i=gn(r+i,0)),Dt(e,aa(t,3),i)}function Ua(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=ds(n),a=n<0?gn(r+a,0):vn(a,r-1)),Dt(e,aa(t,3),a,!0)}function $a(e){return null!=e&&e.length?mr(e,1):[]}function Wa(e){return e&&e.length?e[0]:i}var qa=Gr((function(e){var t=Nt(e,hi);return t.length&&t[0]===e[0]?Ir(t):[]})),Ha=Gr((function(e){var t=Ka(e),n=Nt(e,hi);return t===Ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ir(n,aa(t,2)):[]})),Ga=Gr((function(e){var t=Ka(e),n=Nt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,i,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qa=Gr(Ya);function Ya(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Xa=Ji((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Wr(e,Nt(t,(function(e){return ma(e,n)?+e:e})).sort(_i)),r}));function Za(e){return null==e?e:wn.call(e)}var Ja=Gr((function(e){return si(mr(e,1,Ho,!0))})),eo=Gr((function(e){var t=Ka(e);return Ho(t)&&(t=i),si(mr(e,1,Ho,!0),aa(t,2))})),to=Gr((function(e){var t=Ka(e);return t="function"==typeof t?t:i,si(mr(e,1,Ho,!0),i,t)}));function no(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ho(e))return t=gn(e.length,t),!0})),Gt(t,(function(t){return Nt(e,$t(t))}))}function ro(e,t){if(!e||!e.length)return[];var n=no(e);return null==t?n:Nt(n,(function(e){return _t(t,i,e)}))}var io=Gr((function(e,t){return Ho(e)?ur(e,t):[]})),ao=Gr((function(e){return pi(Pt(e,Ho))})),oo=Gr((function(e){var t=Ka(e);return Ho(t)&&(t=i),pi(Pt(e,Ho),aa(t,2))})),so=Gr((function(e){var t=Ka(e);return t="function"==typeof t?t:i,pi(Pt(e,Ho),i,t)})),lo=Gr(no),uo=Gr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ro(e,n)}));function co(e){var t=Dn(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var po=Ji((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&ma(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fo,args:[a],thisArg:i}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)})),ho=Pi((function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)})),mo=Mi(za),go=Mi(Ua);function vo(e,t){return($o(e)?kt:cr)(e,aa(t,3))}function yo(e,t){return($o(e)?Ct:fr)(e,aa(t,3))}var bo=Pi((function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])})),xo=Gr((function(e,t,n){var i=-1,a="function"==typeof t,o=qo(e)?r(e.length):[];return cr(e,(function(e){o[++i]=a?_t(t,e,n):Pr(e,t,n)})),o})),wo=Pi((function(e,t,n){rr(e,n,t)}));function So(e,t){return($o(e)?Nt:Fr)(e,aa(t,3))}var _o=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Eo=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ga(e,t[0],t[1])?t=[]:n>2&&ga(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,mr(t,1),[])})),ko=ut||function(){return ft.Date.now()};function Co(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,u,i,i,i,i,t)}function Io(e,t){var n;if("function"!=typeof t)throw new Ie(a);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Po=Gr((function(e,t,n){var r=1;if(n.length){var i=sn(n,ia(Po));r|=l}return Ki(e,r,t,n,i)})),To=Gr((function(e,t,n){var r=3;if(n.length){var i=sn(n,ia(To));r|=l}return Ki(t,r,e,n,i)}));function Ao(e,t,n){var r,o,s,l,u,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ie(a);function m(t){var n=r,a=o;return r=o=i,f=t,l=e.apply(a,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=s}function v(){var e=ko();if(g(e))return y(e);u=Ia(v,function(e){var n=t-(e-c);return d?vn(n,s-(e-f)):n}(e))}function y(e){return u=i,h&&r?m(e):(r=o=i,l)}function b(){var e=ko(),n=g(e);if(r=arguments,o=this,c=e,n){if(u===i)return function(e){return f=e,u=Ia(v,t),p?m(e):l}(c);if(d)return bi(u),u=Ia(v,t),m(c)}return u===i&&(u=Ia(v,t)),l}return t=ms(t)||0,Jo(n)&&(p=!!n.leading,s=(d="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==i&&bi(u),f=0,r=c=o=u=i},b.flush=function(){return u===i?l:y(ko())},b}var No=Gr((function(e,t){return lr(e,1,t)})),Oo=Gr((function(e,t,n){return lr(e,ms(t)||0,n)}));function Ro(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ro.Cache||qn),n}function Lo(e){if("function"!=typeof e)throw new Ie(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ro.Cache=qn;var Mo=vi((function(e,t){var n=(t=1==t.length&&$o(t[0])?Nt(t[0],Qt(aa())):Nt(mr(t,1),Qt(aa()))).length;return Gr((function(r){for(var i=-1,a=vn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return _t(e,this,r)}))})),Fo=Gr((function(e,t){var n=sn(t,ia(Fo));return Ki(e,l,i,t,n)})),jo=Gr((function(e,t){var n=sn(t,ia(jo));return Ki(e,64,i,t,n)})),Do=Ji((function(e,t){return Ki(e,256,i,i,i,t)}));function Vo(e,t){return e===t||e!=e&&t!=t}var Bo=$i(Er),zo=$i((function(e,t){return e>=t})),Uo=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Re.call(e,"callee")&&!He.call(e,"callee")},$o=r.isArray,Wo=vt?Qt(vt):function(e){return es(e)&&_r(e)==N};function qo(e){return null!=e&&Zo(e.length)&&!Yo(e)}function Ho(e){return es(e)&&qo(e)}var Go=gt||ml,Ko=yt?Qt(yt):function(e){return es(e)&&_r(e)==y};function Qo(e){if(!es(e))return!1;var t=_r(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Yo(e){if(!Jo(e))return!1;var t=_r(e);return t==x||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==ds(e)}function Zo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Jo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Qt(bt):function(e){return es(e)&&fa(e)==S};function ns(e){return"number"==typeof e||es(e)&&_r(e)==_}function rs(e){if(!es(e)||_r(e)!=E)return!1;var t=We(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==je}var is=xt?Qt(xt):function(e){return es(e)&&_r(e)==C},as=wt?Qt(wt):function(e){return es(e)&&fa(e)==I};function os(e){return"string"==typeof e||!$o(e)&&es(e)&&_r(e)==P}function ss(e){return"symbol"==typeof e||es(e)&&_r(e)==T}var ls=St?Qt(St):function(e){return es(e)&&Zo(e.length)&&!!it[_r(e)]},us=$i(Mr),cs=$i((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(qo(e))return os(e)?fn(e):Ci(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=fa(e);return(t==S?an:t==I?ln:Vs)(e)}function ps(e){return e?(e=ms(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ar(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Jo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=he.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):de.test(e)?p:+e}function gs(e){return Ii(e,Ns(e))}function vs(e){return null==e?"":oi(e)}var ys=Ti((function(e,t){if(xa(t)||qo(t))Ii(t,As(t),e);else for(var n in t)Re.call(t,n)&&Jn(e,n,t[n])})),bs=Ti((function(e,t){Ii(t,Ns(t),e)})),xs=Ti((function(e,t,n,r){Ii(t,Ns(t),e,r)})),ws=Ti((function(e,t,n,r){Ii(t,As(t),e,r)})),Ss=Ji(ir),_s=Gr((function(e,t){e=Ee(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&ga(t[0],t[1],a)&&(r=1);++n<r;)for(var o=t[n],s=Ns(o),l=-1,u=s.length;++l<u;){var c=s[l],f=e[c];(f===i||Vo(f,Ae[c])&&!Re.call(e,c))&&(e[c]=o[c])}return e})),Es=Gr((function(e){return e.push(i,Yi),_t(Rs,i,e)}));function ks(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Cs(e,t){return null!=e&&pa(e,t,Cr)}var Is=Di((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),Js(nl)),Ps=Di((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),aa),Ts=Gr(Pr);function As(e){return qo(e)?Kn(e):Lr(e)}function Ns(e){return qo(e)?Kn(e,!0):function(e){if(!Jo(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Os=Ti((function(e,t,n){Vr(e,t,n)})),Rs=Ti((function(e,t,n,r){Vr(e,t,n,r)})),Ls=Ji((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,(function(t){return t=gi(t,e),r||(r=t.length>1),t})),Ii(e,ta(e),n),r&&(n=or(n,7,Xi));for(var i=t.length;i--;)li(n,t[i]);return n})),Ms=Ji((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Nt(ta(e),(function(e){return[e]}));return t=aa(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var js=Gi(As),Ds=Gi(Ns);function Vs(e){return null==e?[]:Yt(e,As(e))}var Bs=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?zs(t):t)}));function zs(e){return Qs(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ye,en).replace(Xe,"")}var $s=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Oi("toLowerCase"),Hs=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Ri((function(e,t,n){return e+(n?" ":"")+Qs(t)})),Ks=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Oi("toUpperCase");function Ys(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Gr((function(e,t){try{return _t(e,i,t)}catch(e){return Qo(e)?e:new we(e)}})),Zs=Ji((function(e,t){return kt(t,(function(t){t=Ma(t),rr(e,t,Po(e[t],e))})),e}));function Js(e){return function(){return e}}var el=Fi(),tl=Fi(!0);function nl(e){return e}function rl(e){return Rr("function"==typeof e?e:or(e,1))}var il=Gr((function(e,t){return function(n){return Pr(n,e,t)}})),al=Gr((function(e,t){return function(n){return Pr(e,n,t)}}));function ol(e,t,n){var r=As(t),i=xr(t,r);null!=n||Jo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,As(t)));var a=!(Jo(n)&&"chain"in n&&!n.chain),o=Yo(e);return kt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function sl(){}var ll=Bi(Nt),ul=Bi(It),cl=Bi(Mt);function fl(e){return va(e)?$t(Ma(e)):function(e){return function(t){return wr(t,e)}}(e)}var pl=Ui(),dl=Ui(!0);function hl(){return[]}function ml(){return!1}var gl,vl=Vi((function(e,t){return e+t}),0),yl=qi("ceil"),bl=Vi((function(e,t){return e/t}),1),xl=qi("floor"),wl=Vi((function(e,t){return e*t}),1),Sl=qi("round"),_l=Vi((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new Ie(a);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=Co,Dn.assign=ys,Dn.assignIn=bs,Dn.assignInWith=xs,Dn.assignWith=ws,Dn.at=Ss,Dn.before=Io,Dn.bind=Po,Dn.bindAll=Zs,Dn.bindKey=To,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $o(e)?e:[e]},Dn.chain=co,Dn.chunk=function(e,t,n){t=(n?ga(e,t,n):t===i)?1:gn(ds(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,l=r(pt(a/t));o<a;)l[s++]=ei(e,o,o+=t);return l},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ot($o(n)?Ci(n):[n],mr(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=aa();return e=t?Nt(e,(function(e){if("function"!=typeof e[1])throw new Ie(a);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var i=e[r];if(_t(i[0],this,n))return _t(i[1],this,n)}}))},Dn.conforms=function(e){return function(e){var t=As(e);return function(n){return sr(n,e,t)}}(or(e,1))},Dn.constant=Js,Dn.countBy=ho,Dn.create=function(e,t){var n=Vn(e);return null==t?n:nr(n,t)},Dn.curry=function e(t,n,r){var a=Ki(t,8,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Dn.curryRight=function e(t,n,r){var a=Ki(t,16,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Dn.debounce=Ao,Dn.defaults=_s,Dn.defaultsDeep=Es,Dn.defer=No,Dn.delay=Oo,Dn.difference=Da,Dn.differenceBy=Va,Dn.differenceWith=Ba,Dn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:ds(t))<0?0:t,r):[]},Dn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:ds(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!0):[]},Dn.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&ga(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=ds(n))<0&&(n=-n>a?0:a+n),(r=r===i||r>a?a:ds(r))<0&&(r+=a),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Dn.filter=function(e,t){return($o(e)?Pt:hr)(e,aa(t,3))},Dn.flatMap=function(e,t){return mr(So(e,t),1)},Dn.flatMapDeep=function(e,t){return mr(So(e,t),c)},Dn.flatMapDepth=function(e,t,n){return n=n===i?1:ds(n),mr(So(e,t),n)},Dn.flatten=$a,Dn.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},Dn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:ds(t)):[]},Dn.flip=function(e){return Ki(e,512)},Dn.flow=el,Dn.flowRight=tl,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Dn.functions=function(e){return null==e?[]:xr(e,As(e))},Dn.functionsIn=function(e){return null==e?[]:xr(e,Ns(e))},Dn.groupBy=bo,Dn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Dn.intersection=qa,Dn.intersectionBy=Ha,Dn.intersectionWith=Ga,Dn.invert=Is,Dn.invertBy=Ps,Dn.invokeMap=xo,Dn.iteratee=rl,Dn.keyBy=wo,Dn.keys=As,Dn.keysIn=Ns,Dn.map=So,Dn.mapKeys=function(e,t){var n={};return t=aa(t,3),yr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},Dn.mapValues=function(e,t){var n={};return t=aa(t,3),yr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},Dn.matches=function(e){return jr(or(e,1))},Dn.matchesProperty=function(e,t){return Dr(e,or(t,1))},Dn.memoize=Ro,Dn.merge=Os,Dn.mergeWith=Rs,Dn.method=il,Dn.methodOf=al,Dn.mixin=ol,Dn.negate=Lo,Dn.nthArg=function(e){return e=ds(e),Gr((function(t){return Br(t,e)}))},Dn.omit=Ls,Dn.omitBy=function(e,t){return Fs(e,Lo(aa(t)))},Dn.once=function(e){return Io(2,e)},Dn.orderBy=function(e,t,n,r){return null==e?[]:($o(t)||(t=null==t?[]:[t]),$o(n=r?i:n)||(n=null==n?[]:[n]),zr(e,t,n))},Dn.over=ll,Dn.overArgs=Mo,Dn.overEvery=ul,Dn.overSome=cl,Dn.partial=Fo,Dn.partialRight=jo,Dn.partition=_o,Dn.pick=Ms,Dn.pickBy=Fs,Dn.property=fl,Dn.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Dn.pull=Qa,Dn.pullAll=Ya,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,aa(n,2)):e},Dn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},Dn.pullAt=Xa,Dn.range=pl,Dn.rangeRight=dl,Dn.rearg=Do,Dn.reject=function(e,t){return($o(e)?Pt:hr)(e,Lo(aa(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=aa(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Wr(e,i),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new Ie(a);return Gr(e,t=t===i?t:ds(t))},Dn.reverse=Za,Dn.sampleSize=function(e,t,n){return t=(n?ga(e,t,n):t===i)?1:ds(t),($o(e)?Yn:Qr)(e,t)},Dn.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Dn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Yr(e,t,n,r)},Dn.shuffle=function(e){return($o(e)?Xn:Jr)(e)},Dn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ga(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===i?r:ds(n)),ei(e,t,n)):[]},Dn.sortBy=Eo,Dn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,aa(t,2)):[]},Dn.split=function(e,t,n){return n&&"number"!=typeof n&&ga(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=oi(t))&&rn(e)?yi(fn(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new Ie(a);return t=null==t?0:gn(ds(t),0),Gr((function(n){var r=n[t],i=yi(n,0,t);return r&&Ot(i,r),_t(e,this,i)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:ds(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:ds(t)))<0?0:t,r):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?ci(e,aa(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?ci(e,aa(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ie(a);return Jo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(e,t,{leading:r,maxWait:t,trailing:i})},Dn.thru=fo,Dn.toArray=fs,Dn.toPairs=js,Dn.toPairsIn=Ds,Dn.toPath=function(e){return $o(e)?Nt(e,Ma):ss(e)?[e]:Ci(La(vs(e)))},Dn.toPlainObject=gs,Dn.transform=function(e,t,n){var r=$o(e),i=r||Go(e)||ls(e);if(t=aa(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Jo(e)&&Yo(a)?Vn(We(e)):{}}return(i?kt:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Dn.unary=function(e){return Co(e,1)},Dn.union=Ja,Dn.unionBy=eo,Dn.unionWith=to,Dn.uniq=function(e){return e&&e.length?si(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?si(e,aa(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Dn.unset=function(e,t){return null==e||li(e,t)},Dn.unzip=no,Dn.unzipWith=ro,Dn.update=function(e,t,n){return null==e?e:ui(e,t,mi(n))},Dn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,mi(n),r)},Dn.values=Vs,Dn.valuesIn=function(e){return null==e?[]:Yt(e,Ns(e))},Dn.without=io,Dn.words=Ys,Dn.wrap=function(e,t){return Fo(mi(t),e)},Dn.xor=ao,Dn.xorBy=oo,Dn.xorWith=so,Dn.zip=lo,Dn.zipObject=function(e,t){return di(e||[],t||[],Jn)},Dn.zipObjectDeep=function(e,t){return di(e||[],t||[],Yr)},Dn.zipWith=uo,Dn.entries=js,Dn.entriesIn=Ds,Dn.extend=bs,Dn.extendWith=xs,ol(Dn,Dn),Dn.add=vl,Dn.attempt=Xs,Dn.camelCase=Bs,Dn.capitalize=zs,Dn.ceil=yl,Dn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,n)},Dn.clone=function(e){return or(e,4)},Dn.cloneDeep=function(e){return or(e,5)},Dn.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:i)},Dn.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:i)},Dn.conformsTo=function(e,t){return null==t||sr(e,t,As(t))},Dn.deburr=Us,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=bl,Dn.endsWith=function(e,t,n){e=vs(e),t=oi(t);var r=e.length,a=n=n===i?r:ar(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Dn.eq=Vo,Dn.escape=function(e){return(e=vs(e))&&K.test(e)?e.replace(H,tn):e},Dn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Dn.every=function(e,t,n){var r=$o(e)?It:pr;return n&&ga(e,t,n)&&(t=i),r(e,aa(t,3))},Dn.find=mo,Dn.findIndex=za,Dn.findKey=function(e,t){return jt(e,aa(t,3),yr)},Dn.findLast=go,Dn.findLastIndex=Ua,Dn.findLastKey=function(e,t){return jt(e,aa(t,3),br)},Dn.floor=xl,Dn.forEach=vo,Dn.forEachRight=yo,Dn.forIn=function(e,t){return null==e?e:gr(e,aa(t,3),Ns)},Dn.forInRight=function(e,t){return null==e?e:vr(e,aa(t,3),Ns)},Dn.forOwn=function(e,t){return e&&yr(e,aa(t,3))},Dn.forOwnRight=function(e,t){return e&&br(e,aa(t,3))},Dn.get=ks,Dn.gt=Bo,Dn.gte=zo,Dn.has=function(e,t){return null!=e&&pa(e,t,kr)},Dn.hasIn=Cs,Dn.head=Wa,Dn.identity=nl,Dn.includes=function(e,t,n,r){e=qo(e)?e:Vs(e),n=n&&!r?ds(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),os(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ds(n);return i<0&&(i=gn(r+i,0)),Vt(e,t,i)},Dn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},Dn.invoke=Ts,Dn.isArguments=Uo,Dn.isArray=$o,Dn.isArrayBuffer=Wo,Dn.isArrayLike=qo,Dn.isArrayLikeObject=Ho,Dn.isBoolean=function(e){return!0===e||!1===e||es(e)&&_r(e)==v},Dn.isBuffer=Go,Dn.isDate=Ko,Dn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(qo(e)&&($o(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||ls(e)||Uo(e)))return!e.length;var t=fa(e);if(t==S||t==I)return!e.size;if(xa(e))return!Lr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Ar(e,t)},Dn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Dn.isError=Qo,Dn.isFinite=function(e){return"number"==typeof e&&Ft(e)},Dn.isFunction=Yo,Dn.isInteger=Xo,Dn.isLength=Zo,Dn.isMap=ts,Dn.isMatch=function(e,t){return e===t||Nr(e,t,sa(t))},Dn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Nr(e,t,sa(t),n)},Dn.isNaN=function(e){return ns(e)&&e!=+e},Dn.isNative=function(e){if(ba(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Or(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=ns,Dn.isObject=Jo,Dn.isObjectLike=es,Dn.isPlainObject=rs,Dn.isRegExp=is,Dn.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=f},Dn.isSet=as,Dn.isString=os,Dn.isSymbol=ss,Dn.isTypedArray=ls,Dn.isUndefined=function(e){return e===i},Dn.isWeakMap=function(e){return es(e)&&fa(e)==A},Dn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==_r(e)},Dn.join=function(e,t){return null==e?"":Wt.call(e,t)},Dn.kebabCase=$s,Dn.last=Ka,Dn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=ds(n))<0?gn(r+a,0):vn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Dt(e,zt,a,!0)},Dn.lowerCase=Ws,Dn.lowerFirst=qs,Dn.lt=us,Dn.lte=cs,Dn.max=function(e){return e&&e.length?dr(e,nl,Er):i},Dn.maxBy=function(e,t){return e&&e.length?dr(e,aa(t,2),Er):i},Dn.mean=function(e){return Ut(e,nl)},Dn.meanBy=function(e,t){return Ut(e,aa(t,2))},Dn.min=function(e){return e&&e.length?dr(e,nl,Mr):i},Dn.minBy=function(e,t){return e&&e.length?dr(e,aa(t,2),Mr):i},Dn.stubArray=hl,Dn.stubFalse=ml,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=wl,Dn.nth=function(e,t){return e&&e.length?Br(e,ds(t)):i},Dn.noConflict=function(){return ft._===this&&(ft._=De),this},Dn.noop=sl,Dn.now=ko,Dn.pad=function(e,t,n){e=vs(e);var r=(t=ds(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return zi(dt(i),n)+e+zi(pt(i),n)},Dn.padEnd=function(e,t,n){e=vs(e);var r=(t=ds(t))?cn(e):0;return t&&r<t?e+zi(t-r,n):e},Dn.padStart=function(e,t,n){e=vs(e);var r=(t=ds(t))?cn(e):0;return t&&r<t?zi(t-r,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},Dn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ga(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=xn();return vn(e+a*(t-e+st("1e-"+((a+"").length-1))),t)}return qr(e,t)},Dn.reduce=function(e,t,n){var r=$o(e)?Rt:qt,i=arguments.length<3;return r(e,aa(t,4),n,i,cr)},Dn.reduceRight=function(e,t,n){var r=$o(e)?Lt:qt,i=arguments.length<3;return r(e,aa(t,4),n,i,fr)},Dn.repeat=function(e,t,n){return t=(n?ga(e,t,n):t===i)?1:ds(t),Hr(vs(e),t)},Dn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var r=-1,a=(t=gi(t,e)).length;for(a||(a=1,e=i);++r<a;){var o=null==e?i:e[Ma(t[r])];o===i&&(r=a,o=n),e=Yo(o)?o.call(e):o}return e},Dn.round=Sl,Dn.runInContext=e,Dn.sample=function(e){return($o(e)?Qn:Kr)(e)},Dn.size=function(e){if(null==e)return 0;if(qo(e))return os(e)?cn(e):e.length;var t=fa(e);return t==S||t==I?e.size:Lr(e).length},Dn.snakeCase=Hs,Dn.some=function(e,t,n){var r=$o(e)?Mt:ti;return n&&ga(e,t,n)&&(t=i),r(e,aa(t,3))},Dn.sortedIndex=function(e,t){return ni(e,t)},Dn.sortedIndexBy=function(e,t,n){return ri(e,t,aa(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Vo(e[r],t))return r}return-1},Dn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return ri(e,t,aa(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Vo(e[n],t))return n}return-1},Dn.startCase=Gs,Dn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:ar(ds(n),0,e.length),t=oi(t),e.slice(n,n+t.length)==t},Dn.subtract=_l,Dn.sum=function(e){return e&&e.length?Ht(e,nl):0},Dn.sumBy=function(e,t){return e&&e.length?Ht(e,aa(t,2)):0},Dn.template=function(e,t,n){var r=Dn.templateSettings;n&&ga(e,t,n)&&(t=i),e=vs(e),t=xs({},t,r,Qi);var a,o,s=xs({},t.imports,r.imports,Qi),l=As(s),u=Yt(s,l),c=0,f=t.interpolate||be,p="__p += '",d=ke((t.escape||be).source+"|"+f.source+"|"+(f===X?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,i,s,l){return r||(r=i),p+=e.slice(c,l).replace(xe,nn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),p+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(U,""):p).replace($,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xs((function(){return Se(l,h+"return "+p).apply(i,u)}));if(g.source=p,Qo(g))throw g;return g},Dn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=vn(e,d);t=aa(t),e-=d;for(var i=Gt(r,t);++n<e;)t(n);return i},Dn.toFinite=ps,Dn.toInteger=ds,Dn.toLength=hs,Dn.toLower=function(e){return vs(e).toLowerCase()},Dn.toNumber=ms,Dn.toSafeInteger=function(e){return e?ar(ds(e),-9007199254740991,f):0===e?e:0},Dn.toString=vs,Dn.toUpper=function(e){return vs(e).toUpperCase()},Dn.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Kt(e);if(!e||!(t=oi(t)))return e;var r=fn(e),a=fn(t);return yi(r,Zt(r,a),Jt(r,a)+1).join("")},Dn.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,pn(e)+1);if(!e||!(t=oi(t)))return e;var r=fn(e);return yi(r,0,Jt(r,fn(t))+1).join("")},Dn.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=oi(t)))return e;var r=fn(e);return yi(r,Zt(r,fn(t))).join("")},Dn.truncate=function(e,t){var n=30,r="...";if(Jo(t)){var a="separator"in t?t.separator:a;n="length"in t?ds(t.length):n,r="omission"in t?oi(t.omission):r}var o=(e=vs(e)).length;if(rn(e)){var s=fn(e);o=s.length}if(n>=o)return e;var l=n-cn(r);if(l<1)return r;var u=s?yi(s,0,l).join(""):e.slice(0,l);if(a===i)return u+r;if(s&&(l+=u.length-l),is(a)){if(e.slice(l).search(a)){var c,f=u;for(a.global||(a=ke(a.source,vs(pe.exec(a))+"g")),a.lastIndex=0;c=a.exec(f);)var p=c.index;u=u.slice(0,p===i?l:p)}}else if(e.indexOf(oi(a),l)!=l){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+r},Dn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(q,dn):e},Dn.uniqueId=function(e){var t=++Le;return vs(e)+t},Dn.upperCase=Ks,Dn.upperFirst=Qs,Dn.each=vo,Dn.eachRight=yo,Dn.first=Wa,ol(Dn,(gl={},yr(Dn,(function(e,t){Re.call(Dn.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Dn.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),kt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:gn(ds(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:aa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),kt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Pr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Lo(aa(e)))},Un.prototype.slice=function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(d)},yr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Dn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Dn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,u=s[0],c=l||$o(t),f=function(e){var t=a.apply(Dn,Ot([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=o&&!p,m=l&&!d;if(!o&&c){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:fo,args:[f],thisArg:i}),new zn(g,p)}return h&&m?e.apply(this,s):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply($o(i)?i:[],e)}return this[n]((function(n){return t.apply($o(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=Dn[t];if(n){var r=n.name+"";Re.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[ji(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$o(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vn(t,e+o);break;case"takeRight":e=gn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=r?s:o-1,c=this.__iteratees__,f=c.length,p=0,d=vn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return fi(e,this.__actions__);var h=[];e:for(;l--&&p<d;){for(var m=-1,g=e[u+=t];++m<f;){var v=c[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}h[p++]=g}return h},Dn.prototype.at=po,Dn.prototype.chain=function(){return co(this)},Dn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=ja(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fo,args:[Za],thisArg:i}),new zn(t,this.__chain__)}return this.thru(Za)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Qe&&(Dn.prototype[Qe]=function(){return this}),Dn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},315:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const s=a(n(1829)),l=o(n(6635)),u=o(n(5130)),c=n(5949),f=n(8423);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return f.toJSString}});const p=(0,u.default)("mongodb-query-parser"),d={};t.DEFAULT_FILTER=d;const h=null;t.DEFAULT_SORT=h,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const m=null;t.DEFAULT_PROJECT=m;const g=null;function v(e){if(null==e)return!0;const t=l.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||l.default.isEmpty(t)}function y(e){return v(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function b(e){return(0,s.default)(e,{mode:s.ParseMode.Loose})}function x(e){return(0,s.default)(e,{mode:s.ParseMode.Loose})}function w(e){return v(e)?h:(0,s.default)(e,{mode:s.ParseMode.Loose})}function S(e){return(0,s.default)(e,{mode:s.ParseMode.Loose})}function _(e){if(v(e))return d;try{return S(e)}catch(t){return p('Filter "%s" is invalid',e,t),!1}}function E(e){if(v(e))return g;try{return function(e){for(const[t,n]of Object.entries(e)){if(!c.COLLATION_OPTIONS[t])return p('Collation "%s" is invalid bc of its keys',e),!1;if(!1===c.COLLATION_OPTIONS[t].includes(n))return p('Collation "%s" is invalid bc of its values',e),!1}return e}(x(e))}catch(t){return p('Collation "%s" is invalid',e,t),!1}}function k(){return!0}function C(e){if(v(e))return m;try{const t=b(e);return l.default.isObject(t)?l.default.every(t,k)?t:(p('Project "%s" is invalid bc of its values',e),!1):(p('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return p('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=g,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=w,t.parseFilter=function(e){return v(e)?d:S(e)},t.parseCollation=function(e){return v(e)?g:x(e)},t.isFilterValid=_,t.isCollationValid=E,t.parseProject=function(e){return v(e)?m:b(e)},t.isProjectValid=C;const I=[1,-1,"asc","desc"];function P(e){return l.default.includes(I,e)||!(!l.default.isObject(e)||!e.$meta)}function T(e){return l.default.isArray(e)&&2===e.length&&l.default.isString(e[0])&&P(e[1])}function A(e){try{const t=w(e);return v(t)?h:l.default.isArray(t)&&l.default.every(t,T)||l.default.isObject(t)&&!l.default.isArray(t)&&l.default.every(t,P)?t:(p('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return p('Sort "%s" is invalid',e,t),!1}}function N(e){return v(e)?6e4:y(e)}function O(e){return v(e)?0:y(e)}function R(e){return v(e)?0:y(e)}t.isSortValid=A,t.isMaxTimeMSValid=N,t.isSkipValid=O,t.isLimitValid=R;const L={isMaxTimeMSValid:N,isFilterValid:_,isProjectValid:C,isSortValid:A,isLimitValid:R,isSkipValid:O,isCollationValid:E,isNumberValid:y};t.validate=function(e,t){const n=L[`is${l.default.upperFirst(e)}Valid`];return n?n(t):(p("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&l.default.isString(e)?S(e):{filter:S(e),project:t!==m?b(t):t}}},8423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const r=n(6081),i=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const a={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(16)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong(${e.toString()})`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return`ISODate('${e.toISOString()}')`},ISODate:function(e){return`ISODate('${e.toISOString()}')`},RegExp:function(e){let t="",n=!1;return e.global&&(n=!0,t+="g"),e.ignoreCase&&(n=!0,t+="i"),e.multiline&&(n=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${n?`, '${t}'`:""})`}};function o(e,t){return(0,r.stringify)(e,(function(e,t,n){const r=function(e){const t=function(e){return i.get(Object.prototype.toString.call(e))}(e),n="Object"===t&&e._bsontype;return{type:n||t,isBSON:!!n}}(e),o=a[r.type];return o?o(e):n(e)}),t||" ")}t.toJSString=o,t.stringify=function(e){return o(e)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},1378:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,o){o=o||{};var s,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var o=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===u&&isFinite(e))return o.long?(s=e,(l=Math.abs(s))>=i?a(s,l,i,"day"):l>=r?a(s,l,r,"hour"):l>=n?a(s,l,n,"minute"):l>=t?a(s,l,t,"second"):s+" ms"):function(e){var a=Math.abs(e);return a>=i?Math.round(e/i)+"d":a>=r?Math.round(e/r)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(s[u]=a[u]);if(t){o=t(a);for(var c=0;c<o.length;c++)r.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}},8262:(e,t,n)=>{"use strict";var r=n(3586);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},3980:(e,t,n)=>{e.exports=n(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2967:(e,t,n)=>{"use strict";var r=n(9497),i=n(7320),a=n(2941);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,_=60106,E=60107,k=60108,C=60114,I=60109,P=60110,T=60112,A=60113,N=60120,O=60115,R=60116,L=60121,M=60128,F=60129,j=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var V=Symbol.for;S=V("react.element"),_=V("react.portal"),E=V("react.fragment"),k=V("react.strict_mode"),C=V("react.profiler"),I=V("react.provider"),P=V("react.context"),T=V("react.forward_ref"),A=V("react.suspense"),N=V("react.suspense_list"),O=V("react.memo"),R=V("react.lazy"),L=V("react.block"),V("react.scope"),M=V("react.opaque.id"),F=V("react.debug_trace_mode"),j=V("react.offscreen"),D=V("react.legacy_hidden")}var B,z="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}function $(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var W=!1;function q(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function H(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return q(e.type,!1);case 11:return q(e.type.render,!1);case 22:return q(e.type._render,!1);case 1:return q(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case C:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case I:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return G(e.type);case L:return G(e._render);case R:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ue(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function de(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ge=(me=function(e,t){if(e.namespaceURI!==fe.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ie=null,Pe=null;function Te(e){if(e=ti(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ri(t),Ce(e.stateNode,e.type,t))}}function Ae(e){Ie?Pe?Pe.push(e):Pe=[e]:Ie=e}function Ne(){if(Ie){var e=Ie,t=Pe;if(Pe=Ie=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Oe(e,t){return e(t)}function Re(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Me=Oe,Fe=!1,je=!1;function De(){null===Ie&&null===Pe||(Le(),Ne())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=ri(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Be=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(me){Be=!1}function Ue(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var $e=!1,We=null,qe=!1,He=null,Ge={onError:function(e){$e=!0,We=e}};function Ke(e,t,n,r,i,a,o,s,l){$e=!1,We=null,Ue.apply(Ge,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Xe(e){if(Qe(e)!==e)throw Error(o(188))}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var Je,et,tt,nt,rt=!1,it=[],at=null,ot=null,st=null,lt=new Map,ut=new Map,ct=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function dt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function ht(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&null!==(t=ti(t))&&et(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=ei(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void nt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){tt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ti(n))&&et(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){gt(e)&&n.delete(t)}function yt(){for(rt=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ti(e.blockedOn))&&Je(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&>(at)&&(at=null),null!==ot&>(ot)&&(ot=null),null!==st&>(st)&&(st=null),lt.forEach(vt),ut.forEach(vt)}function bt(e,t){e.blockedOn===t&&(e.blockedOn=null,rt||(rt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,yt)))}function xt(e){function t(t){return bt(t,e)}if(0<it.length){bt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&bt(at,e),null!==ot&&bt(ot,e),null!==st&&bt(st,e),lt.forEach(t),ut.forEach(t),n=0;n<ct.length;n++)(r=ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ct.length&&null===(n=ct[0]).blockedOn;)mt(n),null===n.blockedOn&&ct.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},_t={},Et={};function kt(e){if(_t[e])return _t[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return _t[e]=n[t];return e}f&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Ct=kt("animationend"),It=kt("animationiteration"),Pt=kt("animationstart"),Tt=kt("transitionend"),At=new Map,Nt=new Map,Ot=["abort","abort",Ct,"animationEnd",It,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Nt.set(r,t),At.set(r,i),u(i,[r])}}(0,a.unstable_now)();var Lt=8;function Mt(e){if(0!=(1&e))return Lt=15,1;if(0!=(2&e))return Lt=14,2;if(0!=(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!=(32&e)?(Lt=11,32):0!=(t=192&e)?(Lt=10,t):0!=(256&e)?(Lt=9,256):0!=(t=3584&e)?(Lt=8,t):0!=(4096&e)?(Lt=7,4096):0!=(t=4186112&e)?(Lt=6,t):0!=(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!=(134217728&e)?(Lt=3,134217728):0!=(t=805306368&e)?(Lt=2,t):0!=(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Lt=15;else if(0!=(a=134217727&n)){var l=a&~o;0!==l?(r=Mt(l),i=Lt):0!=(s&=a)&&(r=Mt(s),i=Lt)}else 0!=(a=n&~o)?(r=Mt(a),i=Lt):0!==s&&(r=Mt(s),i=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Mt(t),i<=Lt)return t;Lt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ut(t)),r|=e[n],t&=~i;return r}function jt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Dt(10,t):e;case 10:return 0===(e=Vt(192&~t))?Dt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&0===(e=Vt(4186112&~t))&&(e=512),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Vt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Wt|0)|0},$t=Math.log,Wt=Math.LN2,qt=a.unstable_UserBlockingPriority,Ht=a.unstable_runWithPriority,Gt=!0;function Kt(e,t,n,r){Fe||Le();var i=Yt,a=Fe;Fe=!0;try{Re(i,e,t,n,r)}finally{(Fe=a)||De()}}function Qt(e,t,n,r){Ht(qt,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<it.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var a=Xt(e,t,n,r);if(null===a)i&&dt(e,r);else{if(i){if(-1<ft.indexOf(e))return e=pt(a,e,t,n,r),void it.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=ht(at,e,t,n,r,i),!0;case"dragenter":return ot=ht(ot,e,t,n,r,i),!0;case"mouseover":return st=ht(st,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return lt.set(a,ht(lt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ut.set(a,ht(ut.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;dt(e,r)}Rr(e,t,r,null,n)}}}function Xt(e,t,n,r){var i=ke(r);if(null!==(i=ei(i))){var a=Qe(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Ye(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Rr(e,t,r,i,n),null}var Zt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return en=i.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function on(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rn:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=on(cn),pn=i({},cn,{view:0,detail:0}),dn=on(pn),hn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(sn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=sn=0,un=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(hn),gn=on(i({},hn,{dataTransfer:0})),vn=on(i({},pn,{relatedTarget:0})),yn=on(i({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=i({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=on(bn),wn=on(i({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var In=i({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(In),Tn=on(i({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=on(i({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=i({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(On),Ln=[9,13,27,32],Mn=f&&"CompositionEvent"in window,Fn=null;f&&"documentMode"in document&&(Fn=document.documentMode);var jn=f&&"TextEvent"in window&&!Fn,Dn=f&&(!Mn||Fn&&8<Fn&&11>=Fn),Vn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ae(r),0<(t=Mr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Kn=null;function Qn(e){Ir(e,0)}function Yn(e){if(X(ni(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(f){var Jn;if(f){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Gn&&(Gn.detachEvent("onpropertychange",rr),Kn=Gn=null)}function rr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];if(Hn(t,Kn,e,ke(e)),e=Qn,Fe)e(t);else{Fe=!0;try{Oe(e,t)}finally{Fe=!1,De()}}}}function ir(e,t,n){"focusin"===e?(nr(),Kn=n,(Gn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function sr(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==vr||vr!==Z(r)||(r="selectionStart"in(r=vr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Mr(yr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(Ot,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<Sr.length;_r++)Nt.set(Sr[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Ke.apply(this,arguments),$e){if(!$e)throw Error(o(198));var c=We;$e=!1,We=null,qe||(qe=!0,He=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Cr(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Cr(i,s,u),a=l}}}if(qe)throw e=He,qe=!1,He=null,e}function Pr(e,t){var n=ii(t),r=e+"__bubble";n.has(r)||(Or(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){kr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ii(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Or(a,e,i,t),o.add(s))}function Or(e,t,n,r){var i=Nt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ei(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(je)return e();je=!0;try{return Me(e,t,n)}finally{je=!1,De()}}((function(){var r=a,i=ke(n),o=[];e:{var s=At.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Ct:case It:case Pt:l=yn;break;case Tt:l=Nn;break;case"scroll":l=dn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=Ve(h,p))&&c.push(Lr(h,m,d))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ei(u)&&!u[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ei(u):null)&&(u!==(f=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==l?s:ni(l),d=null==u?s:ni(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=d,m=null,ei(i)===r&&((c=new c(p,h+"enter",u,n,i)).target=d,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(p=u,h=0,d=c=l;d;d=Fr(d))h++;for(d=0,m=p;m;m=Fr(m))d++;for(;0<h-d;)c=Fr(c),h--;for(;0<d-h;)p=Fr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Fr(c),p=Fr(p)}c=null}else c=null;null!==l&&jr(o,s,l,c,!1),null!==u&&null!==f&&jr(o,f,u,c,!0)}if("select"===(l=(s=r?ni(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(qn(s))if(Zn)g=sr;else{g=ar;var v=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Hn(o,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ni(r):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(vr=v,yr=r,br=null);break;case"focusout":br=yr=vr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,wr(o,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(o,n,i)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=tn()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,$n=!0)),0<(v=Mr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:v}),(y||null!==(y=Un(n)))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Vn);case"textInput":return(e=t.data)===Vn&&Bn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Mn&&zn(e,t)?(e=tn(),en=Jt=Zt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Mr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y)}Ir(o,t)}))}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ve(e,n))&&r.unshift(Lr(e,a,i)),null!=(a=Ve(e,t))&&r.push(Lr(e,a,i))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ve(n,a))&&o.unshift(Lr(n,l,s)):i||null!=(l=Ve(n,a))&&o.push(Lr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Dr(){}var Vr=null,Br=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $r="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Kr=0,Qr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Qr,Xr="__reactProps$"+Qr,Zr="__reactContainer$"+Qr,Jr="__reactEvents$"+Qr;function ei(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Gr(e);null!==e;){if(n=e[Yr])return n;e=Gr(e)}return t}n=(e=n).parentNode}return null}function ti(e){return!(e=e[Yr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ni(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ri(e){return e[Xr]||null}function ii(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ai=[],oi=-1;function si(e){return{current:e}}function li(e){0>oi||(e.current=ai[oi],ai[oi]=null,oi--)}function ui(e,t){oi++,ai[oi]=e.current,e.current=t}var ci={},fi=si(ci),pi=si(!1),di=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function mi(e){return null!=e.childContextTypes}function gi(){li(pi),li(fi)}function vi(e,t,n){if(fi.current!==ci)throw Error(o(168));ui(fi,t),ui(pi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,G(t)||"Unknown",a));return i({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,di=fi.current,ui(fi,e),ui(pi,pi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=yi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,li(pi),li(fi),ui(fi,e)):li(pi),ui(pi,n)}var wi=null,Si=null,_i=a.unstable_runWithPriority,Ei=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Ci=a.unstable_shouldYield,Ii=a.unstable_requestPaint,Pi=a.unstable_now,Ti=a.unstable_getCurrentPriorityLevel,Ai=a.unstable_ImmediatePriority,Ni=a.unstable_UserBlockingPriority,Oi=a.unstable_NormalPriority,Ri=a.unstable_LowPriority,Li=a.unstable_IdlePriority,Mi={},Fi=void 0!==Ii?Ii:function(){},ji=null,Di=null,Vi=!1,Bi=Pi(),zi=1e4>Bi?Pi:function(){return Pi()-Bi};function Ui(){switch(Ti()){case Ai:return 99;case Ni:return 98;case Oi:return 97;case Ri:return 96;case Li:return 95;default:throw Error(o(332))}}function $i(e){switch(e){case 99:return Ai;case 98:return Ni;case 97:return Oi;case 96:return Ri;case 95:return Li;default:throw Error(o(332))}}function Wi(e,t){return e=$i(e),_i(e,t)}function qi(e,t,n){return e=$i(e),Ei(e,t,n)}function Hi(){if(null!==Di){var e=Di;Di=null,ki(e)}Gi()}function Gi(){if(!Vi&&null!==ji){Vi=!0;var e=0;try{var t=ji;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ei(Ai,Hi),t}finally{Vi=!1}}}var Ki=w.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Yi=si(null),Xi=null,Zi=null,Ji=null;function ea(){Ji=Zi=Xi=null}function ta(e){var t=Yi.current;li(Yi),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ra(e,t){Xi=e,Ji=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mo=!0),e.firstContext=null)}function ia(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Xi)throw Error(o(308));Zi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var aa=!1;function oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function la(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var a=e.updateQueue;aa=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?o=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==s&&(null===p?f.firstBaseUpdate=c:p.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(p=a.baseState,s=0,f=c=u=null;;){l=o.lane;var d=o.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(l=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){p=h.call(d,p,l);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(d,p,l):h))break e;p=i({},p,l);break e;case 2:aa=!0}}null!==o.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[o]:l.push(o))}else d={eventTime:d,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=d,u=p):f=f.next=d,s|=l;if(null===(o=o.next)){if(null===(l=a.shared.pending))break;o=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===f&&(u=p),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,Ds|=s,e.lanes=s,e.memoizedState=p}}function pa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var da=(new r.Component).refs;function ha(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ma={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),a=la(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),ua(e,a),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=cl(e),i=la(n,r);i.tag=2,null!=t&&(i.callback=t),ua(e,i),fl(e,r,n)}};function ga(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&cr(n,r)&&cr(i,a))}function va(e,t,n){var r=!1,i=ci,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(i=mi(t)?di:fi.current,a=(r=null!=(r=t.contextTypes))?hi(e,i):ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ma,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ya(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,oa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ia(a):(a=mi(t)?di:fi.current,i.context=hi(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ma.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var xa=Array.isArray;function wa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Sa(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ul(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wa(e,t,n),r.return=e,r):((r=$l(n.type,n.key,n.props,null,e.mode,r)).ref=wa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=$l(t.type,t.key,t.props,null,e.mode,n)).ref=wa(e,null,t),n.return=e,n;case _:return(t=Gl(t,e.mode,n)).return=e,t}if(xa(t)||U(t))return(t=Wl(t,e.mode,n,null)).return=e,t;Sa(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===E?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case _:return n.key===i?c(e,t,n,r):null}if(xa(n)||U(n))return null!==i?null:f(e,t,n,r,null);Sa(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(xa(r)||U(r))return f(t,e=e.get(n)||null,r,i,null);Sa(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=d(i,f,s[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,f=g}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)null!==(f=p(i,s[m],l))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<s.length;m++)null!==(g=h(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(i,e)})),u}function g(i,s,l,u){var c=U(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var f=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=d(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,u))&&(s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,l){var u="object"==typeof a&&null!==a&&a.type===E&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case S:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(a.type===E){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}}else if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=wa(e,u,a),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===E?((r=Wl(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=$l(a.type,a.key,a.props,null,e.mode,l)).ref=wa(e,r,a),l.return=e,e=l)}return s(e);case _:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(a,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Hl(a,e.mode,l)).return=e,e=r),s(e);if(xa(a))return m(e,r,a,l);if(U(a))return g(e,r,a,l);if(c&&Sa(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,G(e.type)||"Component"))}return n(e,r)}}var Ea=_a(!0),ka=_a(!1),Ca={},Ia=si(Ca),Pa=si(Ca),Ta=si(Ca);function Aa(e){if(e===Ca)throw Error(o(174));return e}function Na(e,t){switch(ui(Ta,t),ui(Pa,e),ui(Ia,Ca),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:de(null,"");break;default:t=de(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Ia),ui(Ia,t)}function Oa(){li(Ia),li(Pa),li(Ta)}function Ra(e){Aa(Ta.current);var t=Aa(Ia.current),n=de(t,e.type);t!==n&&(ui(Pa,e),ui(Ia,n))}function La(e){Pa.current===e&&(li(Ia),li(Pa))}var Ma=si(0);function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ja=null,Da=null,Va=!1;function Ba(e,t){var n=Bl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ua(e){if(Va){var t=Da;if(t){var n=t;if(!za(e,t)){if(!(t=Hr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Va=!1,void(ja=e);Ba(ja,n)}ja=e,Da=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Va=!1,ja=e}}function $a(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ja=e}function Wa(e){if(e!==ja)return!1;if(!Va)return $a(e),Va=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Da;t;)Ba(e,t),t=Hr(t.nextSibling);if($a(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Da=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Da=null}}else Da=ja?Hr(e.stateNode.nextSibling):null;return!0}function qa(){Da=ja=null,Va=!1}var Ha=[];function Ga(){for(var e=0;e<Ha.length;e++)Ha[e]._workInProgressVersionPrimary=null;Ha.length=0}var Ka=w.ReactCurrentDispatcher,Qa=w.ReactCurrentBatchConfig,Ya=0,Xa=null,Za=null,Ja=null,eo=!1,to=!1;function no(){throw Error(o(321))}function ro(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function io(e,t,n,r,i,a){if(Ya=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ka.current=null===e||null===e.memoizedState?No:Oo,e=n(r,i),to){a=0;do{if(to=!1,!(25>a))throw Error(o(301));a+=1,Ja=Za=null,t.updateQueue=null,Ka.current=Ro,e=n(r,i)}while(to)}if(Ka.current=Ao,t=null!==Za&&null!==Za.next,Ya=0,Ja=Za=Xa=null,eo=!1,t)throw Error(o(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e,Ja}function oo(){if(null===Za){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Za.next;var t=null===Ja?Xa.memoizedState:Ja.next;if(null!==t)Ja=t,Za=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Za=e).memoizedState,baseState:Za.baseState,baseQueue:Za.baseQueue,queue:Za.queue,next:null},null===Ja?Xa.memoizedState=Ja=e:Ja=Ja.next=e}return Ja}function so(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=oo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Za,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=a=null,u=i;do{var c=u.lane;if((Ya&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=f,a=r):l=l.next=f,Xa.lanes|=c,Ds|=c}u=u.next}while(null!==u&&u!==i);null===l?a=r:l.next=s,lr(r,t.memoizedState)||(Mo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function uo(e){var t=oo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);lr(a,t.memoizedState)||(Mo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function co(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ya&e)===e)&&(t._workInProgressVersionPrimary=r,Ha.push(t))),e)return n(t._source);throw Ha.push(t),Error(o(350))}function fo(e,t,n,r){var i=As;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),l=Ka.current,u=l.useState((function(){return co(i,t,n)})),c=u[1],f=u[0];u=Ja;var p=e.memoizedState,d=p.refs,h=d.getSnapshot,m=p.source;p=p.subscribe;var g=Xa;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect((function(){d.getSnapshot=n,d.setSnapshot=c;var e=a(t._source);if(!lr(s,e)){e=n(t._source),lr(f,e)||(c(e),e=cl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var l=31-Ut(o),u=1<<l;r[l]|=e,o&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=cl(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(h,n)&&lr(m,t)&&lr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:f}).dispatch=c=To.bind(null,Xa,e),u.queue=e,u.baseQueue=null,f=co(i,t,n),u.memoizedState=u.baseState=f),f}function po(e,t,n){return fo(oo(),e,t,n)}function ho(e){var t=ao();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:so,lastRenderedState:e}).dispatch=To.bind(null,Xa,e),[t.memoizedState,e]}function mo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xa.updateQueue)?(t={lastEffect:null},Xa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function go(e){return e={current:e},ao().memoizedState=e}function vo(){return oo().memoizedState}function yo(e,t,n,r){var i=ao();Xa.flags|=e,i.memoizedState=mo(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=oo();r=void 0===r?null:r;var a=void 0;if(null!==Za){var o=Za.memoizedState;if(a=o.destroy,null!==r&&ro(r,o.deps))return void mo(t,n,a,r)}Xa.flags|=e,i.memoizedState=mo(1|t,n,a,r)}function xo(e,t){return yo(516,4,e,t)}function wo(e,t){return bo(516,4,e,t)}function So(e,t){return bo(4,2,e,t)}function _o(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Eo(e,t,n){return n=null!=n?n.concat([e]):null,bo(4,2,_o.bind(null,t,e),n)}function ko(){}function Co(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Io(e,t){var n=oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Po(e,t){var n=Ui();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Qa.transition;Qa.transition=1;try{e(!1),t()}finally{Qa.transition=n}}))}function To(e,t,n){var r=ul(),i=cl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Xa||null!==o&&o===Xa)to=eo=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,lr(l,s))return}catch(e){}fl(e,i,r)}}var Ao={readContext:ia,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useOpaqueIdentifier:no,unstable_isNewReconciler:!1},No={readContext:ia,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:xo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,_o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=To.bind(null,Xa,e),[r.memoizedState,e]},useRef:go,useState:ho,useDebugValue:ko,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return xo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return go(e=Po.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fo(r,e,t,n)},useOpaqueIdentifier:function(){if(Va){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(o(355))})),n=ho(t)[1];return 0==(2&Xa.mode)&&(Xa.flags|=516,mo(5,(function(){n("r:"+(Kr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},Oo={readContext:ia,useCallback:Co,useContext:ia,useEffect:wo,useImperativeHandle:Eo,useLayoutEffect:So,useMemo:Io,useReducer:lo,useRef:vo,useState:function(){return lo(so)},useDebugValue:ko,useDeferredValue:function(e){var t=lo(so),n=t[0],r=t[1];return wo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=lo(so)[0];return[vo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return lo(so)[0]},unstable_isNewReconciler:!1},Ro={readContext:ia,useCallback:Co,useContext:ia,useEffect:wo,useImperativeHandle:Eo,useLayoutEffect:So,useMemo:Io,useReducer:uo,useRef:vo,useState:function(){return uo(so)},useDebugValue:ko,useDeferredValue:function(e){var t=uo(so),n=t[0],r=t[1];return wo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=uo(so)[0];return[vo().current,e]},useMutableSource:po,useOpaqueIdentifier:function(){return uo(so)[0]},unstable_isNewReconciler:!1},Lo=w.ReactCurrentOwner,Mo=!1;function Fo(e,t,n,r){t.child=null===e?ka(t,null,n,r):Ea(t,e.child,n,r)}function jo(e,t,n,r,i){n=n.render;var a=t.ref;return ra(t,i),r=io(e,t,n,r,a,i),null===e||Mo?(t.flags|=1,Fo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Do(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||zl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$l(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Vo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Ul(o,r)).ref=t.ref,e.return=t,t.child=e)}function Vo(e,t,n,r,i,a){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Mo=!1,0==(a&i))return t.lanes=e.lanes,ns(e,t,a);0!=(16384&e.flags)&&(Mo=!0)}return Uo(e,t,n,r,a)}function Bo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yl(0,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yl(0,e),null;t.memoizedState={baseLanes:0},yl(0,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yl(0,r);return Fo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Uo(e,t,n,r,i){var a=mi(n)?di:fi.current;return a=hi(t,a),ra(t,i),n=io(e,t,n,r,a,i),null===e||Mo?(t.flags|=1,Fo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function $o(e,t,n,r,i){if(mi(n)){var a=!0;bi(t)}else a=!1;if(ra(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;u="object"==typeof u&&null!==u?ia(u):hi(t,u=mi(n)?di:fi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&ya(t,o,r,u),aa=!1;var p=t.memoizedState;o.state=p,fa(t,r,o,i),l=t.memoizedState,s!==r||p!==l||pi.current||aa?("function"==typeof c&&(ha(t,n,c,r),l=t.memoizedState),(s=aa||ga(t,n,s,r,p,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,sa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Qi(t.type,s),o.props=u,f=t.pendingProps,p=o.context,l="object"==typeof(l=n.contextType)&&null!==l?ia(l):hi(t,l=mi(n)?di:fi.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||p!==l)&&ya(t,o,r,l),aa=!1,p=t.memoizedState,o.state=p,fa(t,r,o,i);var h=t.memoizedState;s!==f||p!==h||pi.current||aa?("function"==typeof d&&(ha(t,n,d,r),h=t.memoizedState),(u=aa||ga(t,n,u,r,p,h,l))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){zo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&xi(t,n,!1),ns(e,t,a);r=t.stateNode,Lo.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ea(t,e.child,null,a),t.child=Ea(t,null,s,a)):Fo(e,t,s,a),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function qo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Na(e,t.containerInfo)}var Ho,Go,Ko,Qo,Yo={dehydrated:null,retryLane:0};function Xo(e,t,n){var r,i=t.pendingProps,a=Ma.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ui(Ma,1&a),null===e?(void 0!==i.fallback&&Ua(t),e=i.children,a=i.fallback,o?(e=Zo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"==typeof i.unstable_expectedLoadTime?(e=Zo(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=function(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ul(o,s),null!==e?r=Ul(e,r):(r=Wl(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Ul(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Zo(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=ql(t,i,0,null),n=Wl(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),na(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fo(e,t,r.children,n),0!=(2&(r=Ma.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Ma,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ul(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ul(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Va)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mi(t.type)&&gi(),null;case 3:return Oa(),li(pi),li(fi),Ga(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Go(t),null;case 5:La(t);var a=Aa(Ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Ko(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Aa(Ia.current),Wa(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Yr]=t,r[Xr]=s,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)Pr(Er[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,s),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Pr("invalid",r);break;case"textarea":le(r,s),Pr("invalid",r)}for(var u in _e(n,s),e=null,s)s.hasOwnProperty(u)&&(a=s[u],"children"===u?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):l.hasOwnProperty(u)&&null!=a&&"onScroll"===u&&Pr("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===a.nodeType?a:a.ownerDocument,e===fe.html&&(e=pe(n)),e===fe.html?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Yr]=t,e[Xr]=r,Ho(e,t,!1,!1),t.stateNode=e,u=Ee(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),a=r;break;case"iframe":case"object":case"embed":Pr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Er.length;a++)Pr(Er[a],e);a=r;break;case"source":Pr("error",e),a=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),a=r;break;case"details":Pr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Pr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":le(e,r),a=se(e,r),Pr("invalid",e);break;default:a=r}_e(n,a);var c=a;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?we(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Pr("scroll",e):null!=f&&x(e,s,f,u))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Dr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Aa(Ta.current),Aa(Ia.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return li(Ma),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ma.current)?0===Ms&&(Ms=3):(0!==Ms&&3!==Ms||(Ms=4),null===As||0==(134217727&Ds)&&0==(134217727&Vs)||ml(As,Os))),(r||n)&&(t.flags|=4),null);case 4:return Oa(),Go(t),null===e&&Ar(t.stateNode.containerInfo),null;case 10:return ta(t),null;case 19:if(li(Ma),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)rs(r,!1);else{if(0!==Ms||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Fa(e))){for(t.flags|=64,rs(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(Ma,1&Ma.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>$s&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fa(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Va)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>$s&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Ma.current,ui(Ma,s?1&t|2:1&t),n):null;case 23:case 24:return bl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function as(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Oa(),li(pi),li(fi),Ga(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return La(e),null;case 13:return li(Ma),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(Ma),null;case 4:return Oa(),null;case 10:return ta(e),null;case 23:case 24:return bl(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Go=function(){},Ko=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Aa(Ia.current);var o,s=null;switch(n){case"input":a=J(e,a),r=J(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(f in _e(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var u=a[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=la(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Ks=r),ss(0,t)},n}function cs(e,t,n){(n=la(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fl(e,t)}else t.current=null}function ds(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(o(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Rl(n,e),Ol(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(o(163))}function ms(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(e,t){if(Si&&"function"==typeof Si.onCommitFiberUnmount)try{Si.onCommitFiberUnmount(wi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Rl(t,n);else{r=t;try{i()}catch(e){Fl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fl(t,e)}break;case 5:ps(t);break;case 4:Ss(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?xs(e,n,t):ws(e,n,t)}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(gs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function _s(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,i),t=Ee(e,r),i=0;i<a.length;i+=2){var s=a[i],l=a[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ve(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Us=zi(),ms(t.child,!0)),void Es(t);case 19:return void Es(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(o(163))}function Es(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Dl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ks(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cs=Math.ceil,Is=w.ReactCurrentDispatcher,Ps=w.ReactCurrentOwner,Ts=0,As=null,Ns=null,Os=0,Rs=0,Ls=si(0),Ms=0,Fs=null,js=0,Ds=0,Vs=0,Bs=0,zs=null,Us=0,$s=1/0;function Ws(){$s=zi()+500}var qs,Hs=null,Gs=!1,Ks=null,Qs=null,Ys=!1,Xs=null,Zs=90,Js=[],el=[],tl=null,nl=0,rl=null,il=-1,al=0,ol=0,sl=null,ll=!1;function ul(){return 0!=(48&Ts)?zi():-1!==il?il:il=zi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ui()?1:2;if(0===al&&(al=js),0!==Ki.transition){0!==ol&&(ol=null!==zs?zs.pendingLanes:0),e=al;var t=4186112&~ol;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ui(),e=Dt(0!=(4&Ts)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(o(185));if(null===(e=pl(e,t)))return null;zt(e,t,n),e===As&&(Vs|=t,4===Ms&&ml(e,Os));var r=Ui();1===t?0!=(8&Ts)&&0==(48&Ts)?gl(e):(dl(e,n),0===Ts&&(Ws(),Hi())):(0==(4&Ts)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),dl(e,n)),zs=e}function pl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function dl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),u=1<<l,c=a[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Lt;a[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Ft(e,e===As?Os:0),t=Lt,0===r)null!==n&&(n!==Mi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&ki(n)}15===t?(n=gl.bind(null,e),null===ji?(ji=[n],Di=Ei(Ai,Gi)):ji.push(n),n=Mi):14===t?n=qi(99,gl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),n=qi(n,hl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function hl(e){if(il=-1,ol=al=0,0!=(48&Ts))throw Error(o(327));var t=e.callbackNode;if(Nl()&&e.callbackNode!==t)return null;var n=Ft(e,e===As?Os:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var a=Sl();for(As===e&&Os===r||(Ws(),xl(e,r));;)try{kl();break}catch(t){wl(e,t)}if(ea(),Is.current=a,Ts=i,null!==Ns?r=0:(As=null,Os=0,r=Ms),0!=(js&Vs))xl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=jt(e))&&(r=_l(e,n))),1===r)throw t=Fs,xl(e,0),ml(e,n),dl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Pl(e);break;case 3:if(ml(e,n),(62914560&n)===n&&10<(r=Us+500-zi())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=$r(Pl.bind(null,e),r);break}Pl(e);break;case 4:if(ml(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ut(n);a=1<<s,(s=r[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=$r(Pl.bind(null,e),n);break}Pl(e);break;default:throw Error(o(329))}}return dl(e,zi()),e.callbackNode===t?hl.bind(null,e):null}function ml(e,t){for(t&=~Bs,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function gl(e){if(0!=(48&Ts))throw Error(o(327));if(Nl(),e===As&&0!=(e.expiredLanes&Os)){var t=Os,n=_l(e,t);0!=(js&Vs)&&(n=_l(e,t=Ft(e,t)))}else n=_l(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=jt(e))&&(n=_l(e,t))),1===n)throw n=Fs,xl(e,0),ml(e,t),dl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e),dl(e,zi()),null}function vl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Hi())}}function yl(e,t){ui(Ls,Rs),Rs|=t,js|=t}function bl(){Rs=Ls.current,li(Ls)}function xl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Oa(),li(pi),li(fi),Ga();break;case 5:La(r);break;case 4:Oa();break;case 13:case 19:li(Ma);break;case 10:ta(r);break;case 23:case 24:bl()}n=n.return}As=e,Ns=Ul(e.current,null),Os=Rs=js=t,Ms=0,Fs=null,Bs=Vs=Ds=0}function wl(e,t){for(;;){var n=Ns;try{if(ea(),Ka.current=Ao,eo){for(var r=Xa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}eo=!1}if(Ya=0,Ja=Za=Xa=null,to=!1,Ps.current=null,null===n||null===n.return){Ms=1,Fs=t,Ns=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Os,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Ma.current),p=o;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var m=p.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(d){var g=p.updateQueue;if(null===g){var v=new Set;v.add(u),p.updateQueue=v}else g.add(u);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=la(-1,1);y.tag=2,ua(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ls,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var x=jl.bind(null,a,u,s);u.then(x,x)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ms&&(Ms=2),l=os(l,s),p=o;do{switch(p.tag){case 3:a=l,p.flags|=4096,t&=-t,p.lanes|=t,ca(p,us(0,a,t));break e;case 1:a=l;var w=p.type,S=p.stateNode;if(0==(64&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Qs||!Qs.has(S)))){p.flags|=4096,t&=-t,p.lanes|=t,ca(p,cs(p,a,t));break e}}p=p.return}while(null!==p)}Il(n)}catch(e){t=e,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function Sl(){var e=Is.current;return Is.current=Ao,null===e?Ao:e}function _l(e,t){var n=Ts;Ts|=16;var r=Sl();for(As===e&&Os===t||xl(e,t);;)try{El();break}catch(t){wl(e,t)}if(ea(),Ts=n,Is.current=r,null!==Ns)throw Error(o(261));return As=null,Os=0,Ms}function El(){for(;null!==Ns;)Cl(Ns)}function kl(){for(;null!==Ns&&!Ci();)Cl(Ns)}function Cl(e){var t=qs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?Il(e):Ns=t,Ps.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,Rs)))return void(Ns=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(Ns=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Ms&&(Ms=5)}function Pl(e){var t=Ui();return Wi(99,Tl.bind(null,e,t)),null}function Tl(e,t){do{Nl()}while(null!==Xs);if(0!=(48&Ts))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<a;){var u=31-Ut(a),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,a&=~c}if(null!==tl&&0==(24&r)&&tl.has(e)&&tl.delete(e),e===As&&(Ns=As=null,Os=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ts,Ts|=32,Ps.current=null,Vr=Gt,mr(s=hr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,p=-1,d=-1,h=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==a&&3!==g.nodeType||(p=f+a),g!==u||0!==c&&3!==g.nodeType||(d=f+c),3===g.nodeType&&(f+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++h===a&&(p=f),v===u&&++m===c&&(d=f),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===p||-1===d?null:{start:p,end:d}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:s,selectionRange:l},Gt=!1,sl=null,ll=!1,Hs=r;do{try{Al()}catch(e){if(null===Hs)throw Error(o(330));Fl(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);sl=null,Hs=r;do{try{for(s=e;null!==Hs;){var b=Hs.flags;if(16&b&&ve(Hs.stateNode,""),128&b){var x=Hs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bs(Hs),Hs.flags&=-3;break;case 6:bs(Hs),Hs.flags&=-3,_s(Hs.alternate,Hs);break;case 1024:Hs.flags&=-1025;break;case 1028:Hs.flags&=-1025,_s(Hs.alternate,Hs);break;case 4:_s(Hs.alternate,Hs);break;case 8:Ss(s,l=Hs);var S=l.alternate;vs(l),null!==S&&vs(S)}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));Fl(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);if(w=Br,x=hr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!w.extend&&S>s&&(l=s,s=S,S=l),l=pr(b,S),a=pr(b,s),l&&a&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),S>s?(w.addRange(x),w.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Vr,Br=Vr=null,e.current=n,Hs=r;do{try{for(b=e;null!==Hs;){var _=Hs.flags;if(36&_&&hs(b,Hs.alternate,Hs),128&_){x=void 0;var E=Hs.ref;if(null!==E){var k=Hs.stateNode;Hs.tag,x=k,"function"==typeof E?E(x):E.current=x}}Hs=Hs.nextEffect}}catch(e){if(null===Hs)throw Error(o(330));Fl(Hs,e),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Fi(),Ts=i}else e.current=n;if(Ys)Ys=!1,Xs=e,Zs=t;else for(Hs=r;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,8&Hs.flags&&((_=Hs).sibling=null,_.stateNode=null),Hs=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,Si&&"function"==typeof Si.onCommitFiberRoot)try{Si.onCommitFiberRoot(wi,n,void 0,64==(64&n.current.flags))}catch(e){}if(dl(e,zi()),Gs)throw Gs=!1,e=Ks,Ks=null,e;return 0!=(8&Ts)||Hi(),null}function Al(){for(;null!==Hs;){var e=Hs.alternate;ll||null===sl||(0!=(8&Hs.flags)?Ze(Hs,sl)&&(ll=!0):13===Hs.tag&&ks(e,Hs)&&Ze(Hs,sl)&&(ll=!0));var t=Hs.flags;0!=(256&t)&&ds(e,Hs),0==(512&t)||Ys||(Ys=!0,qi(97,(function(){return Nl(),null}))),Hs=Hs.nextEffect}}function Nl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Ll)}return!1}function Ol(e,t){Js.push(t,e),Ys||(Ys=!0,qi(97,(function(){return Nl(),null})))}function Rl(e,t){el.push(t,e),Ys||(Ys=!0,qi(97,(function(){return Nl(),null})))}function Ll(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&Ts))throw Error(o(331));var t=Ts;Ts|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===a)throw Error(o(330));Fl(a,e)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===a)throw Error(o(330));Fl(a,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Hi(),!0}function Ml(e,t,n){ua(e,t=us(0,t=os(n,t),1)),t=ul(),null!==(e=pl(e,1))&&(zt(e,1,t),dl(e,t))}function Fl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var i=cs(n,e=os(t,e),1);if(ua(n,i),i=ul(),null!==(n=pl(n,1)))zt(n,1,i),dl(n,i);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function jl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Os&n)===n&&(4===Ms||3===Ms&&(62914560&Os)===Os&&500>zi()-Us?xl(e,0):Bs|=n),dl(e,t)}function Dl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ui()?1:2:(0===al&&(al=js),0===(t=Vt(62914560&~al))&&(t=4194304))),n=ul(),null!==(e=pl(e,t))&&(zt(e,t,n),dl(e,n))}function Vl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bl(e,t,n,r){return new Vl(e,t,n,r)}function zl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ul(e,t){var n=e.alternate;return null===n?((n=Bl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $l(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)zl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return Wl(n.children,i,a,t);case F:s=8,i|=16;break;case k:s=8,i|=1;break;case C:return(e=Bl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case A:return(e=Bl(13,n,t,i)).type=A,e.elementType=A,e.lanes=a,e;case N:return(e=Bl(19,n,t,i)).elementType=N,e.lanes=a,e;case j:return ql(n,i,a,t);case D:return(e=Bl(24,n,t,i)).elementType=D,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case I:s=10;break e;case P:s=9;break e;case T:s=11;break e;case O:s=14;break e;case R:s=16,r=null;break e;case L:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Bl(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Wl(e,t,n,r){return(e=Bl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Bl(23,e,r,t)).elementType=j,e.lanes=n,e}function Hl(e,t,n){return(e=Bl(6,e,null,t)).lanes=n,e}function Gl(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n,r){var i=t.current,a=ul(),s=cl(i);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=yi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ua(i,t),fl(i,s,a),s}function Yl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xl(e,t){Yl(e,t),(e=e.alternate)&&Yl(e,t)}function Zl(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Kl(e,t,null!=n&&!0===n.hydrate),t=Bl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oa(t),e[Zr]=n.current,Ar(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Mo=!0;else{if(0==(n&r)){switch(Mo=!1,t.tag){case 3:qo(t),qa();break;case 5:Ra(t);break;case 1:mi(t.type)&&bi(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xo(e,t,n):(ui(Ma,1&Ma.current),null!==(t=ns(e,t,n))?t.sibling:null);ui(Ma,1&Ma.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Ma,Ma.current),r)break;return null;case 23:case 24:return t.lanes=0,Bo(e,t,n)}return ns(e,t,n)}Mo=0!=(16384&e.flags)}else Mo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,fi.current),ra(t,n),i=io(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oa(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&ha(t,r,s,e),i.updater=ma,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Fo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return zl(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(i),e=Qi(i,e),a){case 0:t=Uo(null,t,i,e,n);break e;case 1:t=$o(null,t,i,e,n);break e;case 11:t=jo(null,t,i,e,n);break e;case 14:t=Do(null,t,i,Qi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,$o(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(qo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sa(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)qa(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Da=Hr(t.stateNode.containerInfo.firstChild),ja=t,a=Va=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Ha.push(a);for(n=ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fo(e,t,r,n),qa();t=t.child}return t;case 5:return Ra(t),null===e&&Ua(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Ur(r,i)?s=null:null!==a&&Ur(r,a)&&(t.flags|=16),zo(e,t),Fo(e,t,s,n),t.child;case 6:return null===e&&Ua(t),null;case 13:return Xo(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ea(t,null,r,n):Fo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 7:return Fo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var l=t.type._context;if(ui(Yi,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,0==(a=lr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===i.children&&!pi.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===l.tag&&((c=la(-1,n&-n)).tag=2,ua(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),na(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(i=ia(i,a.unstable_observedBits)),t.flags|=1,Fo(e,t,r,n),t.child;case 14:return a=Qi(i=t.type,t.pendingProps),Do(e,t,i,a=Qi(i.type,a),r,n);case 15:return Vo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,ra(t,n),va(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Bo(e,t,n)}throw Error(o(156,t.tag))},Zl.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},Zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Zr]=null}))},Je=function(e){13===e.tag&&(fl(e,4,ul()),Xl(e,4))},et=function(e){13===e.tag&&(fl(e,67108864,ul()),Xl(e,67108864))},tt=function(e){if(13===e.tag){var t=ul(),n=cl(e);fl(e,n,t),Xl(e,n)}},nt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ri(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Oe=vl,Re=function(e,t,n,r,i){var a=Ts;Ts|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=a)&&(Ws(),Hi())}},Le=function(){0==(49&Ts)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,dl(e,zi())}))}Hi()}(),Nl())},Me=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Ws(),Hi())}};var Jl={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},eu={bundleType:Jl.bundleType,version:Jl.version,rendererPackageName:Jl.rendererPackageName,rendererConfig:Jl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xe(i),e;if(a===r)return Xe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:Jl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{wi=tu.inject(eu),Si=tu}catch(me){}}t.unstable_batchedUpdates=vl},8316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2967)},9670:(e,t)=>{"use strict";var n,r,i,a;if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?w.postMessage(null):(m=!1,g=null)}catch(e){throw w.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,w.postMessage(null))},r=function(e,n){v=p((function(){e(t.unstable_now())}),n)},i=function(){d(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function _(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>k(o,n))void 0!==l&&0>k(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],I=[],P=1,T=null,A=3,N=!1,O=!1,R=!1;function L(e){for(var t=_(I);null!==t;){if(null===t.callback)E(I);else{if(!(t.startTime<=e))break;E(I),t.sortIndex=t.expirationTime,S(C,t)}t=_(I)}}function M(e){if(R=!1,L(e),!O)if(null!==_(C))O=!0,n(F);else{var t=_(I);null!==t&&r(M,t.startTime-e)}}function F(e,n){O=!1,R&&(R=!1,i()),N=!0;var a=A;try{for(L(n),T=_(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"==typeof o){T.callback=null,A=T.priorityLevel;var s=o(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?T.callback=s:T===_(C)&&E(C),L(n)}else E(C);T=_(C)}if(null!==T)var l=!0;else{var u=_(I);null!==u&&r(M,u.startTime-n),l=!1}return l}finally{T=null,A=a,N=!1}}var j=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||N||(O=!0,n(F))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return _(C)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:P++,callback:a,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,S(I,e),null===_(C)&&e===_(I)&&(R?i():R=!0,r(M,o-s))):(e.sortIndex=l,S(C,e),O||N||(O=!0,n(F))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},2941:(e,t,n)=>{"use strict";e.exports=n(9670)},8559:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case o:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case l:case c:case h:case d:case s:return e;default:return t}}case r:return t}}}(e)===l}},3920:(e,t,n)=>{"use strict";e.exports=n(8559)},452:(e,t,n)=>{"use strict";var r=n(9497),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),o((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},402:(e,t,n)=>{"use strict";var r=n(9497),i=n(3100),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(o=e,s=n)}var o,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var d=o(e,f[0],f[1]);return l((function(){p.hasValue=!0,p.value=d}),[d]),c(d),d}},3100:(e,t,n)=>{"use strict";e.exports=n(452)},1110:(e,t,n)=>{"use strict";e.exports=n(402)},2077:function(e,t,n){var r,i;r=function(){var e,t,n,r,i,a={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,o,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in a)if((s="function"==typeof a[i].regexps.unformat?a[i].regexps.unformat():a[i].regexps.unformat)&&n.match(s)){o=a[i].unformat;break}r=(o=o||e._.stringToNumber)(n)}else r=Number(n)||null;return new u(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,u,c,f,p,d=o[e.options.currentLocale],h=!1,m=!1,g="",v=1e12,y=1e9,b=1e6,x="",w=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=d.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=d.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=d.abbreviations.million,t/=b):(a<b&&a>=1e3&&!i||"k"===i)&&(g+=d.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],c=n.indexOf(","),p=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),x=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):x=e._.toFixed(t,l.length,r),s=x.split(".")[0],x=e._.includes(x,".")?d.delimiters.decimal+x.split(".")[1]:"",m&&0===Number(x.slice(1))&&(x="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==d.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case d.abbreviations.thousand:g=d.abbreviations.million;break;case d.abbreviations.million:g=d.abbreviations.billion;break;case d.abbreviations.billion:g=d.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),w=!0),s.length<p)for(var S=p-s.length;S>0;S--)s="0"+s;return c>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+x+(g||""),h?f=(h&&w?"(":"")+f+(h&&w?")":""):u>=0?f=0===u?(w?"-":"+")+f:f+(w?"-":"+"):w&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,i=o[l.currentLocale],a=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a<i&&!(a in r);)a++;if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;a<i;a++)a in r&&(n=t(n,r[a],a,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,l=e.toString().split("."),u=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,u),t):u,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=l,e.formats=a,e.locales=o,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return o[l.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,l,u,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(t){u=e.localeData(e.locale())}return a=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==a)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion)||(l=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(r)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(l):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(l)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(l)||!o[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,o,s=this._value,u=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in a)if(u.match(a[r].regexps.format)){o=a[r].format;break}i=(o=o||e._.numberToFormat)(s,u,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,i){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,i){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,a){var o,s,l,u=e._.includes(i,"ib")?r:n,c=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=u.suffixes.length;o++)if(s=Math.pow(u.base,o),l=Math.pow(u.base,o+1),null===t||0===t||t>=s&&t<l){c+=u.suffixes[o],s>0&&(t/=s);break}return e._.numberToFormat(t,i,a)+c},unformat:function(t){var i,a,o=e._.stringToNumber(t);if(o){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){a=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){a=Math.pow(r.base,i);break}}o*=a||1}return o}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a<s.before.length;a++)switch(s.before[a]){case"$":i=e._.insert(i,o.currency.symbol,a);break;case" ":i=e._.insert(i," ",a+o.currency.symbol.length-1)}for(a=s.after.length-1;a>=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],(function(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i=r.call(t,n,t,e))||(e.exports=i)},6625:(e,t)=>{var n;t=e.exports=Z,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=r-6,o=t.re=[],s=t.safeRe=[],l=t.src=[],u=0,c="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",r],[c,a]];function p(e){for(var t=0;t<f.length;t++){var n=f[t][0],r=f[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}var d=u++;l[d]="0|[1-9]\\d*";var h=u++;l[h]="\\d+";var m=u++;l[m]="\\d*[a-zA-Z-]"+c+"*";var g=u++;l[g]="("+l[d]+")\\.("+l[d]+")\\.("+l[d]+")";var v=u++;l[v]="("+l[h]+")\\.("+l[h]+")\\.("+l[h]+")";var y=u++;l[y]="(?:"+l[d]+"|"+l[m]+")";var b=u++;l[b]="(?:"+l[h]+"|"+l[m]+")";var x=u++;l[x]="(?:-("+l[y]+"(?:\\."+l[y]+")*))";var w=u++;l[w]="(?:-?("+l[b]+"(?:\\."+l[b]+")*))";var S=u++;l[S]=c+"+";var _=u++;l[_]="(?:\\+("+l[S]+"(?:\\."+l[S]+")*))";var E=u++,k="v?"+l[g]+l[x]+"?"+l[_]+"?";l[E]="^"+k+"$";var C="[v=\\s]*"+l[v]+l[w]+"?"+l[_]+"?",I=u++;l[I]="^"+C+"$";var P=u++;l[P]="((?:<|>)?=?)";var T=u++;l[T]=l[h]+"|x|X|\\*";var A=u++;l[A]=l[d]+"|x|X|\\*";var N=u++;l[N]="[v=\\s]*("+l[A]+")(?:\\.("+l[A]+")(?:\\.("+l[A]+")(?:"+l[x]+")?"+l[_]+"?)?)?";var O=u++;l[O]="[v=\\s]*("+l[T]+")(?:\\.("+l[T]+")(?:\\.("+l[T]+")(?:"+l[w]+")?"+l[_]+"?)?)?";var R=u++;l[R]="^"+l[P]+"\\s*"+l[N]+"$";var L=u++;l[L]="^"+l[P]+"\\s*"+l[O]+"$";var M=u++;l[M]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var F=u++;l[F]="(?:~>?)";var j=u++;l[j]="(\\s*)"+l[F]+"\\s+",o[j]=new RegExp(l[j],"g"),s[j]=new RegExp(p(l[j]),"g");var D=u++;l[D]="^"+l[F]+l[N]+"$";var V=u++;l[V]="^"+l[F]+l[O]+"$";var B=u++;l[B]="(?:\\^)";var z=u++;l[z]="(\\s*)"+l[B]+"\\s+",o[z]=new RegExp(l[z],"g"),s[z]=new RegExp(p(l[z]),"g");var U=u++;l[U]="^"+l[B]+l[N]+"$";var $=u++;l[$]="^"+l[B]+l[O]+"$";var W=u++;l[W]="^"+l[P]+"\\s*("+C+")$|^$";var q=u++;l[q]="^"+l[P]+"\\s*("+k+")$|^$";var H=u++;l[H]="(\\s*)"+l[P]+"\\s*("+C+"|"+l[N]+")",o[H]=new RegExp(l[H],"g"),s[H]=new RegExp(p(l[H]),"g");var G=u++;l[G]="^\\s*("+l[N]+")\\s+-\\s+("+l[N]+")\\s*$";var K=u++;l[K]="^\\s*("+l[O]+")\\s+-\\s+("+l[O]+")\\s*$";var Q=u++;l[Q]="(<|>)?=?\\s*\\*";for(var Y=0;Y<35;Y++)n(Y,l[Y]),o[Y]||(o[Y]=new RegExp(l[Y]),s[Y]=new RegExp(p(l[Y])));function X(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?s[I]:s[E]).test(e))return null;try{return new Z(e,t)}catch(e){return null}}function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Z))return new Z(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[I]:s[E]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=X,t.valid=function(e,t){var n=X(e,t);return n?n.version:null},t.clean=function(e,t){var n=X(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=Z,Z.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Z.prototype.toString=function(){return this.version},Z.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof Z||(e=new Z(e,this.options)),this.compareMain(e)||this.comparePre(e)},Z.prototype.compareMain=function(e){return e instanceof Z||(e=new Z(e,this.options)),ee(this.major,e.major)||ee(this.minor,e.minor)||ee(this.patch,e.patch)},Z.prototype.comparePre=function(e){if(e instanceof Z||(e=new Z(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return ee(r,i)}while(++t)},Z.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new Z(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(ie(e,t))return null;var n=X(e),r=X(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var a="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==r[o])return i+o;return a},t.compareIdentifiers=ee;var J=/^[0-9]+$/;function ee(e,t){var n=J.test(e),r=J.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function te(e,t,n){return new Z(e,n).compare(new Z(t,n))}function ne(e,t,n){return te(e,t,n)>0}function re(e,t,n){return te(e,t,n)<0}function ie(e,t,n){return 0===te(e,t,n)}function ae(e,t,n){return 0!==te(e,t,n)}function oe(e,t,n){return te(e,t,n)>=0}function se(e,t,n){return te(e,t,n)<=0}function le(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ie(e,n,r);case"!=":return ae(e,n,r);case">":return ne(e,n,r);case">=":return oe(e,n,r);case"<":return re(e,n,r);case"<=":return se(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ue(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ue){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ue))return new ue(e,t);e=e.trim().split(/\s+/).join(" "),n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ce?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return ee(t,e)},t.major=function(e,t){return new Z(e,t).major},t.minor=function(e,t){return new Z(e,t).minor},t.patch=function(e,t){return new Z(e,t).patch},t.compare=te,t.compareLoose=function(e,t){return te(e,t,!0)},t.rcompare=function(e,t,n){return te(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=ne,t.lt=re,t.eq=ie,t.neq=ae,t.gte=oe,t.lte=se,t.cmp=le,t.Comparator=ue;var ce={};function fe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof fe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new fe(e.raw,t);if(e instanceof ue)return new fe(e.value,t);if(!(this instanceof fe))return new fe(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function pe(e){return!e||"x"===e.toLowerCase()||"*"===e}function de(e,t,n,r,i,a,o,s,l,u,c,f,p){return((t=pe(n)?"":pe(r)?">="+n+".0.0":pe(i)?">="+n+"."+r+".0":">="+t)+" "+(s=pe(l)?"":pe(u)?"<"+(+l+1)+".0.0":pe(c)?"<"+l+"."+(+u+1)+".0":f?"<="+l+"."+u+"."+c+"-"+f:"<="+s)).trim()}function he(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==ce&&e[i].semver.prerelease.length>0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function me(e,t,n){try{t=new fe(t,n)}catch(e){return!1}return t.test(e)}function ge(e,t,n,r){var i,a,o,s,l;switch(e=new Z(e,r),t=new fe(t,r),n){case">":i=ne,a=se,o=re,s=">",l=">=";break;case"<":i=re,a=oe,o=ne,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(me(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var c=t.set[u],f=null,p=null;if(c.forEach((function(e){e.semver===ce&&(e=new ue(">=0.0.0")),f=f||e,p=p||e,i(e.semver,f.semver,r)?f=e:o(e.semver,p.semver,r)&&(p=e)})),f.operator===s||f.operator===l)return!1;if((!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0}ue.prototype.parse=function(e){var t=this.options.loose?s[W]:s[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new Z(n[2],this.options.loose):this.semver=ce},ue.prototype.toString=function(){return this.value},ue.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ce||("string"==typeof e&&(e=new Z(e,this.options)),le(e,this.operator,this.semver,this.options))},ue.prototype.intersects=function(e,t){if(!(e instanceof ue))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new fe(e.value,t),me(this.value,n,t);if(""===e.operator)return n=new fe(this.value,t),me(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=le(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=le(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||l},t.Range=fe,fe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},fe.prototype.toString=function(){return this.range},fe.prototype.parseRange=function(e){var t=this.options.loose,r=t?s[K]:s[G];e=e.replace(r,de),n("hyphen replace",e),e=e.replace(s[H],"$1$2$3"),n("comparator trim",e,s[H]),e=(e=e.replace(s[j],"$1~")).replace(s[z],"$1^");var i=t?s[W]:s[q],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?s[$]:s[U];return e.replace(r,(function(t,r,i,a,o){var s;return n("caret",e,t,r,i,a,o),pe(r)?s="":pe(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":pe(a)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":o?(n("replaceCaret pr",o),s="0"===r?"0"===i?">="+r+"."+i+"."+a+"-"+o+" <"+r+"."+i+"."+(+a+1):">="+r+"."+i+"."+a+"-"+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+a+"-"+o+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+a+" <"+r+"."+i+"."+(+a+1):">="+r+"."+i+"."+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+a+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?s[V]:s[D];return e.replace(r,(function(t,r,i,a,o){var s;return n("tilde",e,t,r,i,a,o),pe(r)?s="":pe(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":pe(a)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":o?(n("replaceTilde pr",o),s=">="+r+"."+i+"."+a+"-"+o+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+a+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?s[L]:s[R];return e.replace(r,(function(t,r,i,a,o,s){n("xRange",e,t,r,i,a,o,s);var l=pe(i),u=l||pe(a),c=u||pe(o);return"="===r&&c&&(r=""),l?t=">"===r||"<"===r?"<0.0.0":"*":r&&c?(u&&(a=0),o=0,">"===r?(r=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),t=r+i+"."+a+"."+o):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(s[Q],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ue(e,this.options)}),this)},fe.prototype.intersects=function(e,t){if(!(e instanceof fe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new fe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},fe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Z(e,this.options));for(var t=0;t<this.set.length;t++)if(he(this.set[t],e,this.options))return!0;return!1},t.satisfies=me,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var a=new fe(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&-1!==i.compare(e)||(i=new Z(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var a=new fe(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&1!==i.compare(e)||(i=new Z(r=e,n)))})),r},t.minVersion=function(e,t){e=new fe(e,t);var n=new Z("0.0.0");if(e.test(n))return n;if(n=new Z("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new Z(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!ne(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new fe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ge(e,t,"<",n)},t.gtr=function(e,t,n){return ge(e,t,">",n)},t.outside=ge,t.prerelease=function(e,t){var n=X(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new fe(e,n),t=new fe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof Z)return e;if("string"!=typeof e)return null;var t=e.match(s[M]);return null==t?null:X(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},345:e=>{"use strict";e.exports=require("bson")},9497:e=>{"use strict";e.exports=require("react")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}},o=!0;try{e[r].call(a.exports,a,a.exports,n),o=!1}finally{o&&delete t[r]}return a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";n.r(r),n.d(r,{activate:()=>br,configureStore:()=>fr,deactivate:()=>xr,default:()=>wr,metadata:()=>mr});var e=n(9497),t=n.n(e),i=n(3100),a=n(1110),o=n(8316);let s=function(e){e()};const l=()=>s,u=(0,e.createContext)(null);let c=null;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=n(3463),h=n.n(d),m=n(3920);const g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function v(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s,l,u,c,f,p=!1;return function(d,h){return p?function(p,d){const h=!a(d,l),m=!i(p,s,d,l);return s=p,l=d,h&&m?(u=e(s,l),t.dependsOnOwnProps&&(c=t(r,l)),f=n(u,c,l),f):h?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(r,l)),f=n(u,c,l),f):m?function(){const t=e(s,l),r=!o(t,u);return u=t,r&&(f=n(u,c,l)),f}():f}(d,h):(s=d,l=h,u=e(s,l),c=t(r,l),f=n(u,c,l),p=!0,f)}}function y(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function b(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=b(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=b(i),i=r(t,n)),i},r}}function w(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function S(e,t,n){return f({},n,e,t)}const _={notify(){},get:()=>[]};function E(e,t){let n,r=_;function i(){o.onStateChange&&o.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=l();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}const o={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=_)},getListeners:()=>r};return o}const k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!C(e[n[r]],t[n[r]]))return!1;return!0}const P=["reactReduxForwardedRef"];let T=()=>{throw new Error("uSES not initialized!")};const A=[null,null];function N(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function O(e,t){return e===t}const R=function(n,r,i,{pure:a,areStatesEqual:o=O,areOwnPropsEqual:s=I,areStatePropsEqual:l=I,areMergedPropsEqual:c=I,forwardRef:d=!1,context:b=u}={}){const _=b,C=function(e){return e?"function"==typeof e?x(e):w(e,"mapStateToProps"):y((()=>({})))}(n),R=function(e){return e&&"object"==typeof e?y((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?x(e):w(e,"mapDispatchToProps"):y((e=>({dispatch:e})))}(r),L=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i,a=!1;return function(t,n,o){const s=e(t,n,o);return a?r(s,i)||(i=s):(a=!0,i=s),i}}}(e):w(e,"mergeProps"):()=>S}(i),M=Boolean(n);return n=>{const r=n.displayName||n.name||"Component",i=`Connect(${r})`,a={shouldHandleStateChanges:M,displayName:i,wrappedComponentName:r,WrappedComponent:n,initMapStateToProps:C,initMapDispatchToProps:R,initMergeProps:L,areStatesEqual:o,areStatePropsEqual:l,areOwnPropsEqual:s,areMergedPropsEqual:c};function u(r){const[i,o,s]=(0,e.useMemo)((()=>{const{reactReduxForwardedRef:e}=r,t=p(r,P);return[r.context,e,t]}),[r]),l=(0,e.useMemo)((()=>i&&i.Consumer&&(0,m.isContextConsumer)(t().createElement(i.Consumer,null))?i:_),[i,_]),u=(0,e.useContext)(l),c=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch),d=Boolean(u)&&Boolean(u.store),h=c?r.store:u.store,y=d?u.getServerState:h.getState,b=(0,e.useMemo)((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,a=p(t,g);return v(n(e,a),r(e,a),i(e,a),e,a)}(h.dispatch,a)),[h]),[x,w]=(0,e.useMemo)((()=>{if(!M)return A;const e=E(h,c?void 0:u.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,c,u]),S=(0,e.useMemo)((()=>c?u:f({},u,{subscription:x})),[c,u,x]),C=(0,e.useRef)(),I=(0,e.useRef)(s),O=(0,e.useRef)(),R=(0,e.useRef)(!1),L=((0,e.useRef)(!1),(0,e.useRef)(!1)),F=(0,e.useRef)();k((()=>(L.current=!0,()=>{L.current=!1})),[]);const j=(0,e.useMemo)((()=>()=>O.current&&s===I.current?O.current:b(h.getState(),s)),[h,s]),D=(0,e.useMemo)((()=>e=>x?function(e,t,n,r,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,p=null;const d=()=>{if(f||!s.current)return;const e=t.getState();let n,d;try{n=r(e,i.current)}catch(e){d=e,p=e}d||(p=null),n===a.current?o.current||u():(a.current=n,l.current=n,o.current=!0,c())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(M,h,x,b,I,C,R,L,O,w,e):()=>{}),[x]);var V,B;let z;V=N,B=[I,C,R,s,O,w],k((()=>V(...B)),undefined);try{z=T(D,j,y?()=>b(y(),s):j)}catch(e){throw F.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${F.current.stack}\n\n`),e}k((()=>{F.current=void 0,O.current=void 0,C.current=z}));const U=(0,e.useMemo)((()=>t().createElement(n,f({},z,{ref:o}))),[o,n,z]);return(0,e.useMemo)((()=>M?t().createElement(l.Provider,{value:S},U):U),[l,U,S])}const y=t().memo(u);if(y.WrappedComponent=n,y.displayName=u.displayName=i,d){const e=t().forwardRef((function(e,n){return t().createElement(y,f({},e,{reactReduxForwardedRef:n}))}));return e.displayName=i,e.WrappedComponent=n,h()(e,n)}return h()(y,n)}},L=function({store:n,context:r,children:i,serverState:a}){const o=(0,e.useMemo)((()=>{const e=E(n);return{store:n,subscription:e,getServerState:a?()=>a:void 0}}),[n,a]),s=(0,e.useMemo)((()=>n.getState()),[n]);k((()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==n.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,s]);const l=r||u;return t().createElement(l.Provider,{value:o},i)};var M;c=a.useSyncExternalStoreWithSelector,(e=>{T=e})(i.useSyncExternalStore),M=o.unstable_batchedUpdates,s=M;var F=n(3980),j=n.n(F);const D=require("@mongodb-js/compass-components"),V=require("compass-preferences-model"),B=require("@mongodb-js/compass-logging");function z(e,t){return e.type===t}const U={InvalidIndexSpecificationOption:"Invalid index definition.",IndexAlreadyExists:"This index name is already in use. Please choose another one."},{debug:$}=(0,B.createLoggerAndTelemetry)("COMPASS-INDEXES"),W={"Name and Fields":"name",Status:"status"};let q=function(e){return e.NOT_AVAILABLE="NOT_AVAILABLE",e.PENDING="PENDING",e.READY="READY",e.REFRESHING="REFRESHING",e.ERROR="ERROR",e}({}),H=function(e){return e.SetStatus="indexes/search-indexes/SetStatus",e.OpenCreateSearchIndexModal="indexes/search-indexes/OpenCreateSearchIndexModal",e.CreateSearchIndexStarted="indexes/search-indexes/CreateSearchIndexStarted",e.CreateSearchIndexFailed="indexes/search-indexes/CreateSearchIndexFailed",e.CreateSearchIndexSucceeded="indexes/search-indexes/CreateSearchIndexSucceed",e.CreateSearchIndexCancelled="indexes/search-indexes/CreateSearchIndexCancelled",e.SetIsRefreshing="indexes/search-indexes/SetIsRefreshing",e.SetSearchIndexes="indexes/search-indexes/SetSearchIndexes",e.SearchIndexesSorted="indexes/search-indexes/SearchIndexesSorted",e.SetError="indexes/search-indexes/SetError",e}({});const G={status:q.NOT_AVAILABLE,createIndex:{isModalOpen:!1,isBusy:!1},error:void 0,indexes:[],sortOrder:"asc",sortColumn:"Name and Fields"},K=()=>({type:H.OpenCreateSearchIndexModal}),Q=e=>({type:H.CreateSearchIndexFailed,error:U[e]||e}),Y=()=>async(e,t)=>{const{isReadonlyView:n,dataService:r,namespace:i,searchIndexes:{sortColumn:a,sortOrder:o,status:s}}=t();if(!n)if(r&&r.isConnected()){s!==q.PENDING&&e({type:H.SetIsRefreshing});try{e((e=>({type:H.SetSearchIndexes,indexes:e}))(Z(await r.getSearchIndexes(i),a,o)))}catch(t){e((l=t.message,{type:H.SetError,error:l}))}var l}else $("warning: trying to load indexes but dataService is disconnected")},X=D.showConfirmation;function Z(e,t,n){const r="asc"===n?1:-1,i=W[t];return[...e].sort((function(e,t){return void 0===t[i]?r:void 0===e[i]?-r:e[i]>t[i]?r:e[i]<t[i]?-r:0}))}const J=(0,D.css)({margin:`${D.spacing[3]}px 0`}),ee=(0,D.css)({display:"flex",flexDirection:"row",gap:D.spacing[2],justifyContent:"flex-start",alignItems:"center"}),te=(0,D.css)({marginLeft:"auto"}),ne=(0,D.css)({marginTop:D.spacing[2]}),re=(0,D.css)({marginRight:D.spacing[2]}),ie=(0,D.css)({display:"inline-block",width:"fit-content"}),ae=({isSearchManagementActive:n,isAtlasSearchSupported:r,isWritable:i,onClickCreateIndex:a,onClickCreateAtlasSearchIndex:o})=>{const s=(0,e.useCallback)((e=>{switch(e){case"createRegularIndex":return a();case"createSearchIndex":return o()}}),[a,o]);return r&&n?t().createElement(D.DropdownMenuButton,{"data-testid":"multiple-index-types-creation-dropdown",buttonText:"Create",buttonProps:{size:"small",variant:"primary",disabled:!i},actions:[{action:"createRegularIndex",label:"Index"},{action:"createSearchIndex",label:"Search Index"}],onAction:s}):t().createElement(D.Button,{"data-testid":"open-create-index-modal-button",disabled:!i,onClick:a,variant:"primary",size:"small"},"Create Index")},oe=R((({isWritable:e,isReadonlyView:t,description:n,serverVersion:r,appRegistry:i,searchIndexes:a})=>({isWritable:e,isReadonlyView:t,writeStateDescription:n,localAppRegistry:i.localAppRegistry,serverVersion:r,isAtlasSearchSupported:a.status!==q.NOT_AVAILABLE})),{})((0,V.withPreferences)((({errorMessage:n,isReadonlyView:r,isWritable:i,localAppRegistry:a,isRefreshing:o,writeStateDescription:s,hasTooManyIndexes:l,isAtlasSearchSupported:u,onRefreshIndexes:c,onChangeIndexView:p,readOnly:d,onClickCreateAtlasSearchIndex:h})=>{const m=(0,V.usePreference)("enableAtlasSearchIndexManagement",t()),g=(0,V.usePreference)("showInsights",t())&&!n,v=(0,e.useCallback)((()=>{a.emit("open-create-index-modal")}),[a]),y=(0,e.useCallback)((e=>{p(e)}),[p]),b=!r&&!d&&!n,x=o?t().createElement("div",{className:re},t().createElement(D.SpinLoader,{title:"Refreshing Indexes"})):t().createElement(D.Icon,{glyph:"Refresh",title:"Refresh Indexes"});return t().createElement("div",{className:J,"data-testid":"indexes-toolbar-container"},!r&&t().createElement("div",{"data-testid":"indexes-toolbar"},t().createElement("div",{className:ee},b&&t().createElement(D.Tooltip,{enabled:!i,align:"top",justify:"middle",trigger:({children:e,...n})=>t().createElement("div",(0,D.mergeProps)({className:ie},n),t().createElement(ae,{isSearchManagementActive:m,isAtlasSearchSupported:u,isWritable:i,onClickCreateIndex:v,onClickCreateAtlasSearchIndex:h}),e)},s),t().createElement(D.Button,{"data-testid":"refresh-indexes-button",disabled:o,onClick:()=>c(),variant:"default",size:"small",leftGlyph:x},"Refresh"),g&&l&&t().createElement(D.SignalPopover,{signals:D.PerformanceSignals.get("too-many-indexes")}),m&&t().createElement(D.SegmentedControl,{onChange:y,className:te,label:"Viewing",defaultValue:"regular-indexes","data-testid":"indexes-segment-controls"},t().createElement(D.SegmentedControlOption,{"data-testid":"regular-indexes-tab",value:"regular-indexes"},"Indexes"),!u&&t().createElement(D.Tooltip,{align:"top",justify:"middle",enabled:!0,delay:500,trigger:({children:e,...n})=>t().createElement(D.SegmentedControlOption,f({},n,{"data-testid":"search-indexes-tab",value:"search-indexes",disabled:!0}),"Search Indexes",e)},"Search indexes are unavailable in your current connection."),u&&t().createElement(D.SegmentedControlOption,{"data-testid":"search-indexes-tab",value:"search-indexes"},"Search Indexes")))),r?t().createElement(D.WarningSummary,{className:ne,warnings:["Readonly views may not contain indexes."]}):!!n&&t().createElement(D.ErrorSummary,{className:ne,errors:[n]}))}),["readOnly"],t()));n(4925),n(4819);const se=(0,D.css)({":hover":{".index-actions-cell":{button:{opacity:1}}}}),le=(0,D.css)({button:{opacity:0,"&:focus":{opacity:1}},minWidth:D.spacing[5]}),ue=(0,D.css)({borderWidth:0,borderBottomWidth:3,"> div":{justifyContent:"space-between"}}),ce=(0,D.css)({verticalAlign:"middle"}),fe=(0,D.css)({padding:0}),pe=(0,D.css)({thead:{position:"sticky",top:0,background:D.palette.white,zIndex:5}}),de=(0,D.css)({padding:D.spacing[3]}),he=(0,D.css)({flex:1,position:"relative",overflow:"hidden"});function me({"data-testid":n,"aria-label":r,columns:i,canModifyIndex:a,data:o,onSortTable:s}){const l=(0,e.useRef)(null),[u,{height:c}]=(0,D.useDOMRect)();(0,e.useEffect)((()=>{const e=l.current?.getElementsByTagName("table")[0],t=e?.parentElement;if(e&&t){const n=c-3*D.spacing[3],r=Math.max(e.clientHeight,n/2),i=Math.max(0,Math.min(r,n));t.style.height=`${i}px`}}),[c]);const p=(0,e.useMemo)((()=>{const e=i.map((e=>t().createElement(D.TableHeader,{"data-testid":`${n}-header-${e}`,label:e,key:e,className:ue,handleSort:t=>{s(e,t)}})));return a&&e.push(t().createElement(D.TableHeader,{label:"",className:ue})),e}),[a,s,i]);return t().createElement("div",f({className:he},u),t().createElement(D.KeylineCard,{ref:l,"data-testid":n,className:de},t().createElement(D.Table,{className:pe,columns:p,data:o,"data-testid":`${n}-list`,"aria-label":`${r} List Table`},(({datum:e,index:r})=>t().createElement(D.Row,{key:e.key,"data-testid":`${n}-${e["data-testid"]}`,className:se},e.fields.map((i=>t().createElement(D.Cell,{key:i.key??`${e.key}-${r}`,"data-testid":`${n}-${i["data-testid"]}`,className:ce},i.children))),a&&t().createElement(D.Cell,{"data-testid":`${n}-actions-field`,className:ce},e.actions&&t().createElement("div",{className:(0,D.cx)(le,"index-actions-cell")},e.actions)),e.details&&t().createElement(D.Row,null,t().createElement(D.Cell,{className:(0,D.cx)(fe,ce),colSpan:a?e.fields.length+1:e.fields.length},e.details)))))))}const ge={SINGLE:"https://docs.mongodb.org/manual/core/index-single/",COMPOUND:"https://docs.mongodb.org/manual/core/index-compound/",UNIQUE:"https://docs.mongodb.org/manual/core/index-unique/",PARTIAL:"https://docs.mongodb.org/manual/core/index-partial/",SPARSE:"https://docs.mongodb.org/manual/core/index-sparse/",TTL:"https://docs.mongodb.org/manual/core/index-ttl/","2D":"https://docs.mongodb.org/manual/core/2d/","2DSPHERE":"https://docs.mongodb.org/manual/core/2dsphere/",GEOHAYSTACK:"https://docs.mongodb.org/manual/core/geohaystack/",GEOSPATIAL:"https://docs.mongodb.org/manual/applications/geospatial-indexes/#geospatial-indexes",WILDCARD:"https://docs.mongodb.com/manual/core/index-wildcard/",CLUSTERED:"https://www.mongodb.com/docs/manual/core/clustered-collections/",COLUMNSTORE:null,TEXT:"https://docs.mongodb.org/manual/core/index-text/",HASHED:"https://docs.mongodb.org/manual/core/index-hashed/",REGULAR:"https://docs.mongodb.com/manual/indexes/#single-field",COLLATION:"https://docs.mongodb.com/master/reference/bson-type-comparison-order/#collation",COLLATION_REF:"https://docs.mongodb.com/master/reference/collation",HIDDEN:"https://www.mongodb.com/docs/manual/core/index-hidden/",UNKNOWN:null};function ve(e="UNKNOWN"){return ge[e?.toUpperCase()]??null}const ye=(0,D.css)({gap:D.spacing[2]}),be=(0,D.css)({lineHeight:0,color:D.palette.white,span:{backgroundImage:"none !important"}},D.focusRing),xe=({text:e,link:n})=>t().createElement(D.Badge,{variant:D.BadgeVariant.DarkGray,className:ye,"data-testid":`${e}-badge`},e,t().createElement(D.Link,{hideExternalIcon:!0,"aria-label":e,className:be,href:n},t().createElement(D.Icon,{glyph:"InfoWithCircle"}))),we=e=>-1!==["text","wildcard","columnstore"].indexOf(e??""),Se=({extra:e})=>{const n=["weights","default_language","language_override","wildcardProjection","columnstoreProjection"],r=[];for(const i in e)n.includes(i)&&r.push(t().createElement(D.Body,{key:i},`${i}: ${JSON.stringify(e[i])}`));return t().createElement(t().Fragment,null,r)},_e=({type:e,extra:n})=>{const r=ve(e);return t().createElement(D.Tooltip,{enabled:we(e),trigger:({children:n,...i})=>t().createElement("span",i,n,t().createElement(xe,{text:e??"unknown",link:r??"#"}))},t().createElement(Se,{extra:n}))};var Ee=n(2077),ke=n.n(Ee);const Ce=({relativeSize:e,size:n})=>t().createElement(D.Tooltip,{trigger:({children:e,...r})=>t().createElement("span",r,e,t().createElement(D.Body,null,(e=>{const t=e<=1e3?"0":"0.0";return ke()(e).format(t+" b")})(n)))},t().createElement(D.Body,null,(e=>`${e.toFixed(2)}% compared to largest index`)(e))),Ie=({usage:e,since:n})=>t().createElement(D.Tooltip,{trigger:({children:r,...i})=>t().createElement("span",i,r,t().createElement(D.Body,null,e||0," ",t().createElement(t().Fragment,null,n?`(since ${n.toDateString()})`:"")))},t().createElement(D.Body,null,(e=>e?`${e} index hits since index creation or last server restart`:"Either the server does not support the $indexStats command or the user is not authorized to execute it.")(e))),Pe=(0,D.css)({display:"flex",gap:D.spacing[1],minWidth:7*D.spacing[3],alignItems:"baseline"}),Te=(e,t)=>{return"ttl"===e?`expireAfterSeconds: ${t.expireAfterSeconds}`:"partial"===e?(n=t.partialFilterExpression,`partialFilterExpression: ${JSON.stringify(n)}`):null;var n},Ae=({text:e,link:n,tooltip:r})=>t().createElement(D.Tooltip,{enabled:!!r,trigger:({children:r,...i})=>t().createElement("span",i,r,t().createElement(xe,{link:n,text:e}))},t().createElement(D.Body,null,r)),Ne=({tooltip:e,darkMode:n})=>t().createElement(D.Tooltip,{enabled:!!e,darkMode:n,delay:500,trigger:({children:e,...n})=>t().createElement("span",n,e,t().createElement(D.Badge,{variant:D.BadgeVariant.Red},"Failed"))},t().createElement(D.Body,null,e)),Oe="HIDDEN",Re=({extra:e,properties:n,cardinality:r})=>{const i=(0,D.useDarkMode)();return t().createElement("div",{className:Pe},n?.map((n=>t().createElement(Ae,{key:n,text:n,link:ve(n)??"#",tooltip:Te(n,e)}))),"compound"===r&&t().createElement(Ae,{text:r,link:ve(r)??"#"}),e.hidden&&t().createElement(Ae,{text:Oe,link:ve(Oe)??"#"}),"inprogress"===e.status&&t().createElement(D.Badge,{variant:D.BadgeVariant.Blue},"In Progress ..."),"failed"===e.status&&t().createElement(Ne,{tooltip:e.error?String(e.error):"",darkMode:i}))};var Le=n(6625),Me=n.n(Le);const Fe=({index:n,serverVersion:r,onDeleteIndex:i,onHideIndex:a,onUnhideIndex:o})=>{const s=(0,e.useMemo)((()=>{const e=[{action:"delete",label:`Drop Index ${n.name}`,icon:"Trash"}];return(e=>{try{return Me().gte(e,"4.4.0")}catch(e){return!0}})(r)&&e.unshift(n.extra?.hidden?{action:"unhide",label:`Unhide Index ${n.name}`,tooltip:"Unhide Index",icon:"Visibility"}:{action:"hide",label:`Hide Index ${n.name}`,tooltip:"Hide Index",icon:"VisibilityOff"}),e}),[n,r]),l=(0,e.useCallback)((e=>{"delete"===e?i(n):"hide"===e?a(n.name):"unhide"===e&&o(n.name)}),[i,a,o,n]);return t().createElement(D.ItemActionGroup,{"data-testid":"index-actions",actions:s,onAction:l})};n(0),n(6464),n(8339),n(8166),n(5162);var je=n(2563),De=n.n(je),Ve=n(6635);const Be=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will no longer be visible to the query planner and cannot be used to support a query. If the impact is negative, you can unhide this index."),ze=e=>t().createElement(t().Fragment,null,"The index `",t().createElement("b",null,e),"` will become visible to the query planner and can be used to support a query. If the impact is negative, you can hide this index."),{debug:Ue}=(0,B.createLoggerAndTelemetry)("COMPASS-INDEXES"),$e={"Name and Definition":"name",Type:"type",Size:"size",Usage:"usageCount",Properties:"properties"};let We=function(e){return e.IndexesAdded="indexes/regular-indexes/IndexesAdded",e.IndexesSorted="indexes/regular-indexes/IndexesSorted",e.SetIsRefreshing="indexes/regular-indexes/SetIsRefreshing",e.SetError="indexes/regular-indexes/SetError",e.InProgressIndexAdded="indexes/regular-indexes/InProgressIndexAdded",e.InProgressIndexRemoved="indexes/regular-indexes/InProgressIndexRemoved",e.InProgressIndexFailed="indexes/regular-indexes/InProgressIndexFailed",e}({});const qe={indexes:[],sortOrder:"asc",sortColumn:"Name and Definition",inProgressIndexes:[],isRefreshing:!1,error:null},He=e=>({type:We.SetIsRefreshing,isRefreshing:e}),Ge=e=>({type:We.SetError,error:e}),Ke=e=>t=>{t((e=>({type:We.IndexesAdded,indexes:e}))(e)),t(He(!1)),t((0,je.localAppRegistryEmit)("indexes-changed",e))},Qe=()=>async(e,t)=>{const{isReadonlyView:n,dataService:r,namespace:i,regularIndexes:{sortColumn:a,sortOrder:o,inProgressIndexes:s}}=t();if(n)e(Ke([]));else{if(!r||!r.isConnected())return e(He(!1)),void Ue("warning: trying to load indexes but dataService is disconnected");try{e(Ge(null));const t=function(e,t){const n=(0,Ve.cloneDeep)(e);for(const e of t){const t=n.find((t=>t.name===e.name));t?(t.extra=t.extra??{},t.extra.status=e.extra.status,e.extra.error&&(t.extra.error=e.extra.error)):n.push(e)}return n}(await r.indexes(i),(0,Ve.cloneDeep)(s)).sort(Ze(Je(a),o));e(Ke(t))}catch(t){e(Ge(t.message)),e(Ke([]))}}},Ye=e=>({type:We.InProgressIndexRemoved,id:e}),Xe=e=>t=>{t(Ye(e)),t(Qe())},Ze=(e,t)=>{const n="asc"===t?1:-1;return"properties"===e?(e=>function(t,n){const r="compound"===t.cardinality?"compound":t.properties?.[0]||"",i="compound"===n.cardinality?"compound":n.properties?.[0]||"";return r>i?e:r<i?-e:0})(n):function(t,r){return void 0===r[e]?n:void 0===t[e]?-n:t[e]>r[e]?n:t[e]<r[e]?-n:0}},Je=e=>$e[e],et={dropFailedIndex:Xe,onHideIndex:e=>async(t,n)=>{const{dataService:r,namespace:i}=n();if(await(0,D.showConfirmation)({title:`Hiding \`${e}\``,description:Be(e)}))try{await(r?.updateCollection(i,{index:{name:e,hidden:!0}})),t(Qe())}catch(e){(0,D.openToast)("hide-index-error",{title:"Failed to hide the index",variant:"warning",description:`An error occurred while hiding the index. ${e.message}`})}},onUnhideIndex:e=>async(t,n)=>{const{namespace:r,dataService:i}=n();if(await(0,D.showConfirmation)({title:`Unhiding \`${e}\``,description:ze(e)}))try{await(i?.updateCollection(r,{index:{name:e,hidden:!1}})),t(Qe())}catch(e){(0,D.openToast)("unhide-index-error",{title:"Failed to unhide the index",variant:"warning",description:`An error occurred while unhiding the index. ${e.message}`})}},onSortTable:(e,t)=>(n,r)=>{const{regularIndexes:{indexes:i}}=r(),a=[...i].sort(Ze(Je(e),t));n({type:We.IndexesSorted,indexes:a,sortOrder:t,sortColumn:e})}},tt=R((({serverVersion:e,regularIndexes:t,isWritable:n,appRegistry:r})=>({isWritable:n,serverVersion:e,indexes:t.indexes,error:t.error,localAppRegistry:r.localAppRegistry})),et)((0,V.withPreferences)((({isWritable:e,readOnly:n,indexes:r,serverVersion:i,onHideIndex:a,onUnhideIndex:o,onSortTable:s,error:l,localAppRegistry:u})=>{if(l)return null;const c=e=>"failed"===e.extra.status?Xe(String(e.extra.id)):u.emit("toggle-drop-index-modal",!0,e.name),f=e&&!n,p=r.map((e=>({key:e.name,"data-testid":`row-${e.name}`,fields:[{"data-testid":"name-field",children:e.name},{"data-testid":"type-field",children:t().createElement(_e,{type:e.type,extra:e.extra})},{"data-testid":"size-field",children:t().createElement(Ce,{size:e.size,relativeSize:e.relativeSize})},{"data-testid":"usage-field",children:t().createElement(Ie,{usage:e.usageCount,since:e.usageSince})},{"data-testid":"property-field",children:t().createElement(Re,{cardinality:e.cardinality,extra:e.extra,properties:e.properties})}],actions:"_id_"!==e.name&&"inprogress"!==e.extra.status&&t().createElement(Fe,{index:e,serverVersion:i,onDeleteIndex:c,onHideIndex:a,onUnhideIndex:o}),details:t().createElement(D.IndexKeysBadge,{keys:e.fields,"data-testid":`indexes-details-${e.name}`})})));return t().createElement(me,{"data-testid":"indexes","aria-label":"Indexes",canModifyIndex:f,columns:["Name and Definition","Type","Size","Usage","Properties"],data:p,onSortTable:(e,t)=>s(e,t)})}),["readOnly"],t())),nt=({index:n,onDropIndex:r})=>{const i=(0,e.useMemo)((()=>[{action:"drop",label:`Drop Index ${n.name}`,icon:"Trash"}]),[n]),a=(0,e.useCallback)((e=>{"drop"===e&&r(n.name)}),[r,n]);return t().createElement(D.ItemActionGroup,{"data-testid":"search-index-actions",actions:i,onAction:a})},rt=()=>{const n=(0,D.useDarkMode)(),r=(0,e.useMemo)((()=>n?D.palette.white:D.palette.black),[n]);return t().createElement("svg",{width:"72",height:"72",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t().createElement("path",{d:"M47 53C54.1797 53 60 47.1797 60 40C60 32.8203 54.1797 27 47 27C39.8203 27 34 32.8203 34 40C34 47.1797 39.8203 53 47 53Z",fill:D.palette.green.base,stroke:r,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),t().createElement("path",{d:"M56 49L68 61",stroke:r}),t().createElement("path",{d:"M4 35.9501H6.2M6.2 35.9501C9.4 35.9501 12.1 33.3553 12.1 30.0619V19.5828C12.1 14.8922 15.9 11 20.7 11M6.2 35.9501C9.4 35.9501 12.1 38.5449 12.1 41.8383V52.4172C12.1 57.1078 15.9 61 20.7 61M54.0001 35.9501H51.8001M51.8001 35.9501C48.6001 35.9501 45.9001 38.5449 45.9001 41.8383V52.4172C45.9001 57.1078 42.1001 61 37.3001 61M51.8001 35.9501C48.6001 35.9501 45.9 33.3553 45.9 30.0619V19.5828C45.9 14.8922 42.1 11 37.3 11",stroke:r,strokeMiterlimit:"10"}))};function it({openCreateModal:e}){return t().createElement(D.EmptyContent,{icon:rt,title:"No search indexes yet",subTitle:"Atlas Search is an embedded full-text search in MongoDB Atlas that gives you a seamless, scalable experience for building relevance-based app features.",callToAction:t().createElement(D.Button,{onClick:e,"data-testid":"create-atlas-search-index-button",variant:"primary",size:"small"},"Create Atlas Search Index"),callToActionLink:t().createElement("span",null,"Not sure where to start? ",t().createElement(D.Link,{href:"https://www.mongodb.com/docs/atlas/atlas-search/",target:"_blank"},"Visit our Docs"))})}const at={BUILDING:D.BadgeVariant.Blue,FAILED:D.BadgeVariant.Red,PENDING:D.BadgeVariant.Yellow,READY:D.BadgeVariant.Green,STALE:D.BadgeVariant.LightGray,DELETING:D.BadgeVariant.Red};function ot({status:e,"data-testid":n}){const r=at[e];return t().createElement(D.Badge,{variant:r,"data-testid":n},e)}const st=(0,D.css)({display:"inline-flex",gap:D.spacing[1]}),lt=(0,D.css)({textTransform:"none",gap:D.spacing[1]});function ut({indexName:e,definition:n}){const r=[];return n.mappings?.dynamic&&r.push({name:"Dynamic Mappings",className:void 0}),n.mappings?.fields&&r.push(...Object.keys(n.mappings.fields).map((e=>({name:e,className:lt})))),t().createElement("div",{className:st,"data-testid":`search-indexes-details-${e}`},r.map((e=>t().createElement(D.Badge,{key:e.name,className:e.className},e.name))))}const ct={onSortTable:(e,t)=>(n,r)=>{const{searchIndexes:{indexes:i}}=r(),a=Z(i,e,t);n({type:H.SearchIndexesSorted,indexes:a,sortOrder:t,sortColumn:e})},onDropIndex:e=>async function(t,n){const{namespace:r,dataService:i}=n();if(i&&await X({title:`Are you sure you want to drop "${e}" from Cluster?`,buttonText:"Drop Index",variant:"danger",requiredInputText:e,description:"If you drop default, all queries using it will no longer function"}))try{await i.dropSearchIndex(r,e),(0,D.openToast)("search-index-delete-in-progress",{title:`Your index ${e} is being deleted.`,dismissible:!0,timeout:5e3,variant:"success"}),t(Y())}catch(e){(0,D.openToast)("search-index-delete-failed",{title:"Failed to drop index.",description:e.message,dismissible:!0,timeout:5e3,variant:"warning"})}},openCreateModal:K},ft=R((({searchIndexes:e,isWritable:t})=>({isWritable:t,indexes:e.indexes,status:e.status})),ct)((0,V.withPreferences)((({indexes:e,isWritable:n,readOnly:r,onSortTable:i,openCreateModal:a,status:o,onDropIndex:s})=>{if(!function(e){return e===q.READY||e===q.REFRESHING}(o))return null;if(0===e.length)return t().createElement(it,{openCreateModal:a});const l=n&&!r,u=e.map((e=>({key:e.name,"data-testid":`row-${e.name}`,fields:[{"data-testid":"name-field",children:e.name},{"data-testid":"status-field",children:t().createElement(ot,{status:e.status,"data-testid":`search-indexes-status-${e.name}`})}],details:t().createElement(ut,{indexName:e.name,definition:e.latestDefinition}),actions:t().createElement(nt,{index:e,onDropIndex:s})})));return t().createElement(me,{"data-testid":"search-indexes","aria-label":"Search Indexes",canModifyIndex:l,columns:["Name and Fields","Status"],data:u,onSortTable:(e,t)=>i(e,t)})}),["readOnly"],t())),pt=require("@mongodb-js/compass-editor");var dt=n(1829);function ht(e){const t=(0,dt.default)(e,{mode:dt.ParseMode.Loose});if(!t||"object"!=typeof t)throw new Error("The provided index definition is invalid.");return t}const mt=(0,D.css)({display:"flex",flexDirection:"column",gap:D.spacing[3]}),gt=(0,D.css)({marginTop:D.spacing[3]}),vt=(0,D.css)({display:"flex",gap:D.spacing[2]}),yt=R((({searchIndexes:e})=>({isModalOpen:e.createIndex.isModalOpen,isBusy:e.createIndex.isBusy,error:e.error})),{closeModal:()=>({type:H.CreateSearchIndexCancelled}),saveIndex:(e,t)=>async function(n,r){const{namespace:i,dataService:a}=r();if(n({type:H.CreateSearchIndexStarted}),""!==e){try{await(a?.createSearchIndex(i,e,t))}catch(e){return void n(Q(e.codeName||e.message))}n({type:H.CreateSearchIndexSucceeded}),(0,D.openToast)("search-index-creation-in-progress",{title:`Your index ${e} is in progress.`,dismissible:!0,timeout:5e3,variant:"success"}),n(Y())}else n(Q("Please enter the name of the index."))}})((({isModalOpen:n,isBusy:r,error:i,saveIndex:a,closeModal:o})=>{const[s,l]=(0,e.useState)("default"),[u,c]=(0,e.useState)('{\n "mappings": {\n "dynamic": true\n }\n}'),[f,p]=(0,e.useState)(void 0),d=(0,e.useCallback)((e=>{p(void 0);try{ht(e),c(e)}catch(e){p(e.message)}}),[c,p]),h=(0,e.useCallback)((()=>{if(f)return;const e=ht(u);a(s,e)}),[a,f,s,u]);return(0,B.useTrackOnChange)("COMPASS-SEARCH-INDEXES-UI",(e=>{n&&e("Screen",{name:"create_search_index_modal"})}),[n],void 0,t()),t().createElement(D.Modal,{open:n,setOpen:o,"data-testid":"create-search-index-modal"},t().createElement(D.ModalHeader,{title:"Create Search Index",subtitle:"Give your search index a name for easy reference"}),t().createElement(D.ModalBody,{className:mt},t().createElement("section",null,t().createElement(D.Label,{htmlFor:"name-of-search-index"},"Name of Search Index"),t().createElement(D.TextInput,{id:"name-of-search-index","data-testid":"name-of-search-index","aria-labelledby":"Name of Search Index",type:"text",state:""===s?"error":"none",errorMessage:""===s?"Please enter the name of the index.":"",value:s,onChange:e=>l(e.target.value)})),t().createElement(D.HorizontalRule,null),t().createElement("section",null,t().createElement(D.Subtitle,null,"Index Definition"),t().createElement("p",{className:gt},"By default, search indexes will have the following search configurations. You can refine this later."),t().createElement(D.Link,{href:"https://www.mongodb.com/docs/atlas/atlas-search/tutorial/",target:"_blank",hideExternalIcon:!0},"View Atlas Search tutorials"," ",t().createElement(D.Icon,{size:"small",glyph:"OpenNewTab"})),t().createElement(pt.CodemirrorMultilineEditor,{"data-testid":"definition-of-search-index",text:u,onChangeText:d,minLines:16,className:gt}),f&&t().createElement(D.WarningSummary,{warnings:f}),i&&t().createElement(D.ErrorSummary,{errors:i}))),t().createElement(D.ModalFooter,{className:vt},t().createElement(D.Button,{"data-testid":"create-search-index-button",variant:"primary",onClick:h,disabled:r},"Create Search Index"),t().createElement(D.Button,{variant:"default",onClick:o},"Cancel")))})),bt=(0,D.css)({margin:D.spacing[3],marginTop:0,display:"flex",flexDirection:"column",width:"100%"}),xt=R((({isReadonlyView:e,regularIndexes:t,searchIndexes:n})=>({isReadonlyView:e,regularIndexes:t,searchIndexes:n})),{refreshRegularIndexes:()=>e=>{e(He(!0)),e(Qe())},refreshSearchIndexes:()=>e=>{e(Y())},onClickCreateAtlasSearchIndex:K})((function({isReadonlyView:n,regularIndexes:r,searchIndexes:i,refreshRegularIndexes:a,refreshSearchIndexes:o,onClickCreateAtlasSearchIndex:s}){const[l,u]=(0,e.useState)("regular-indexes"),c="regular-indexes"===l?r.error:i.error,f="regular-indexes"===l&&r.indexes.length>10,p="regular-indexes"===l?!0===r.isRefreshing:(d=i.status)===q.PENDING||d===q.REFRESHING;var d;const h="regular-indexes"===l?a:o,m=(0,e.useCallback)((()=>{"regular-indexes"===l?a():o()}),[l,a,o]),g=(0,e.useCallback)((e=>{u(e),m()}),[m]);return(0,e.useEffect)((()=>{m()}),[m]),t().createElement("div",{className:bt},t().createElement(oe,{errorMessage:c||null,hasTooManyIndexes:f,isRefreshing:p,onRefreshIndexes:h,onChangeIndexView:g,onClickCreateAtlasSearchIndex:s}),!n&&"regular-indexes"===l&&t().createElement(tt,null),!n&&"search-indexes"===l&&t().createElement(ft,null),t().createElement(yt,null))}));class wt extends e.Component{static displayName="IndexesPlugin";static propTypes={store:j().object.isRequired};render(){return t().createElement(L,{store:this.props.store},t().createElement(xt,null))}}const St=wt;n(2856),n(7610);const _t="indexes/reset-form",Et=()=>({type:_t});let kt=function(e){return e.HandleError="indexes/create-index/HandleError",e.ClearError="indexes/create-index/ClearError",e}({});const Ct=e=>({type:kt.HandleError,error:e}),It=()=>({type:kt.ClearError}),Pt="indexes/create-index/fields/ADD_FIELD",Tt="indexes/create-index/fields/UPDATE_FIELD_TYPE",At="indexes/create-index/fields/REMOVE_FIELD",Nt="indexes/create-index/fields/CHANGE_FIELDS",Ot=[{name:"",type:""}],Rt="indexes/create-index/schema-fields/CHANGE_SCHEMA_FIELDS",Lt=[],Mt=e=>({type:Rt,schemaFields:e});n(4407),n(4903),n(4715),n(9570);var Ft=n(345);function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}function Dt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ut="function"==typeof Symbol&&Symbol.observable||"@@observable",$t=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wt={INIT:"@@redux/INIT"+$t(),REPLACE:"@@redux/REPLACE"+$t(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$t()}};function qt(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(zt(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(zt(1));return n(qt)(e,t)}if("function"!=typeof e)throw new Error(zt(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(zt(3));return a}function f(e){if("function"!=typeof e)throw new Error(zt(4));if(l)throw new Error(zt(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(zt(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(zt(7));if(void 0===e.type)throw new Error(zt(8));if(l)throw new Error(zt(9));try{l=!0,a=i(a,e)}finally{l=!1}for(var t=o=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:Wt.INIT}),(r={dispatch:p,subscribe:f,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(zt(10));i=e,p({type:Wt.REPLACE})}})[Ut]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(zt(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Ut]=function(){return this},e},r}function Ht(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:Wt.INIT}))throw new Error(zt(12));if(void 0===n(void 0,{type:Wt.PROBE_UNKNOWN_ACTION()}))throw new Error(zt(13))}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var l=o[s],u=n[l],c=e[l],f=u(c,t);if(void 0===f)throw t&&t.type,new Error(zt(14));i[l]=f,r=r||f!==c}return(r=r||o.length!==Object.keys(e).length)?i:e}}function Gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(zt(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=Gt.apply(void 0,a)(n.dispatch),Bt(Bt({},n),{},{dispatch:r})}}}var Qt=n(315);Qt.default,Qt.DEFAULT_COLLATION,Qt.DEFAULT_FILTER,Qt.DEFAULT_LIMIT,Qt.DEFAULT_MAX_TIME_MS,Qt.DEFAULT_PROJECT,Qt.DEFAULT_SKIP,Qt.DEFAULT_SORT,Qt.QUERY_PROPERTIES;const Yt=Qt.isCollationValid;Qt.isFilterValid,Qt.isLimitValid,Qt.isMaxTimeMSValid,Qt.isProjectValid,Qt.isSkipValid,Qt.isSortValid,Qt.parseCollation,Qt.parseFilter,Qt.parseProject,Qt.parseSort,Qt.stringify,Qt.toJSString,Qt.validate;let Xt=function(e){return e.DataServiceConnected="indexes/data-service/DATA_SERVICE_CONNECTED",e}({});function Zt(e=null,t){return t.type===Xt.DataServiceConnected?t.dataService:e}const Jt=e=>({type:Xt.DataServiceConnected,dataService:e}),en="indexes/in-progress/TOGGLE_IN_PROGRESS";function tn(e=!1,t){return t.type===en?t.inProgress:t.type!==_t&&e}const nn=e=>({type:en,inProgress:e}),rn="indexes/is-visible/TOGGLE_IS_VISIBLE";function an(e=!1,t){return t.type===rn?t.isVisible:t.type!==_t&&e}const on=e=>({type:rn,isVisible:e}),sn="explain/namespace/NAMESPACE_CHANGED";function ln(e="",t){return t.type===sn?t.namespace:e}const un=e=>({type:sn,namespace:e}),cn="compass-indexes/server-version/SERVER_VERSION_CHANGED";function fn(e="4.0.0",t){return t.type===cn&&t.version||e}const pn={unique:{type:"checkbox",label:"Create unique index",description:"A unique index ensures that the indexed fields do not store duplicate values; i.e. enforces uniqueness for the indexed fields."},name:{type:"text",label:"Index name",description:"Enter the name of the index to create, or leave blank to have MongoDB create a default name for the index.",units:void 0,optional:!0},expireAfterSeconds:{type:"number",label:"Create TTL",description:"TTL indexes are special single-field indexes that MongoDB can use to automatically remove documents from a collection after a certain amount of time or at a specific clock time.",units:"seconds",optional:!1},partialFilterExpression:{type:"code",label:"Partial Filter Expression",description:"Partial indexes only index the documents in a collection that meet a specified filter expression.",units:void 0,optional:!1},wildcardProjection:{type:"code",label:"Wildcard Projection",description:"Wildcard indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},collation:{type:"code",label:"Use Custom Collation",description:"Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.",units:void 0,optional:!1},columnstoreProjection:{type:"code",label:t().createElement(t().Fragment,null,"Columnstore Projection ",t().createElement(D.Badge,null,"Preview")),description:"Columnstore indexes support queries against unknown or arbitrary fields.",units:void 0,optional:!1},sparse:{type:"checkbox",label:"Create sparse index",description:"Sparse indexes only contain entries for documents that have the indexed field, even if the index field contains a null value. The index skips over any document that is missing the indexed field."}};var dn=function(e){return e.ChangeOption="compass-indexes/create-index/change-option",e.ChangeOptionEnabled="compass-indexes/create-index/change-option-enabled",e}(dn||{});function hn(e,t){return{type:dn.ChangeOption,name:e,value:t}}const mn=Object.fromEntries(Object.keys(pn).map((e=>[e,{value:"checkbox"!==pn[e].type&&"",enabled:!1}]))),gn="20.0.0-alpha0";function vn(e){if(!e)return!0;try{return Me().gte(e,gn)}catch(e){return!0}}const{track:yn}=(0,B.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),bn=Ht({dataService:Zt,appRegistry:De(),namespace:ln,serverVersion:fn,inProgress:tn,isVisible:an,fields:function(e=Ot,t){const n=[...e];if(t.type===Pt)return n.push({name:"",type:""}),n;if(t.type===At)return n.splice(t.idx,1),n;if(t.type===Tt){if(t.idx>=0&&t.idx<n.length){const e={...n[t.idx]};e.type=t.fType,n[t.idx]=e}return n}return t.type===Nt?t.fields:t.type===_t?Ot:e},schemaFields:function(e=Lt,t){return t.type===Rt?t.schemaFields:e},error:function(e=null,t){return z(t,kt.HandleError)?t.error:z(t,kt.ClearError)||t.type===_t?null:e},options:(e=mn,t)=>z(t,dn.ChangeOption)?{...e,[t.name]:{value:t.value,enabled:"checkbox"===pn[t.name].type||e[t.name].enabled}}:z(t,dn.ChangeOptionEnabled)?{...e,[t.name]:{...e[t.name],enabled:t.enabled}}:t.type===_t?JSON.parse(JSON.stringify(mn)):e}),xn=["1 (asc)","-1 (desc)","2dsphere","text","columnstore"],wn={name:"Select or type a field name",type:"Select a type"},Sn=(0,D.css)({display:"flex",gap:D.spacing[2]}),_n=(0,D.css)({flexGrow:1,textTransform:"none",whiteSpace:"nowrap"}),En=(0,D.css)({textTransform:"none",whiteSpace:"nowrap"});function kn({fields:n,serverVersion:r,schemaFields:i,addField:a,removeField:o,updateFieldName:s,updateFieldType:l}){const[u,c]=(0,e.useMemo)((()=>{const e=vn(r);return[xn.filter((t=>e||"columnstore"!==t)),`calc(${Math.max(...xn.map((e=>e.length)))}ch + ${D.spacing[6]+(e?D.spacing[6]:0)}px)`]}),[r]),f=(0,e.useCallback)(((e,t)=>{null!==t&&s(e,t)}),[s]),p=i.map((e=>({value:e})));return t().createElement(D.ListEditor,{items:n,renderItem:(e,n)=>t().createElement("div",{className:Sn,"data-testid":`create-index-fields-line-${n}`},t().createElement("div",{className:_n,"data-testid":`create-index-fields-name-${n}`},t().createElement(D.ComboboxWithCustomOption,{"aria-label":"Index fields",placeholder:wn.name,size:"default",clearable:!1,overflow:"scroll-x",onChange:e=>f(n,e),options:p,renderOption:(e,n,r)=>t().createElement(D.ComboboxOption,{key:`field-option-${n}`,value:e.value,displayName:r?`Field: "${e.value}"`:e.value})})),t().createElement("div",{className:En,"data-testid":`create-index-fields-type-${n}`},t().createElement(D.Select,{id:`create-index-fields-type-select-${n}`,placeholder:wn.type,onChange:e=>l(n,e),allowDeselect:!1,value:e.type,popoverZIndex:999999,"aria-labelledby":"Field type",style:{width:c}},u.map((e=>t().createElement(D.Option,{key:e,value:e},e,"columnstore"===e&&t().createElement(t().Fragment,null," ",t().createElement(D.Badge,null,"Preview")))))))),onAddItem:a,onRemoveItem:o,addButtonTestId:"add-index-field-button",removeButtonTestId:"remove-index-field-button"})}const Cn=R(((e,{name:t})=>({label:pn[t].label,description:pn[t].description,checked:e.options[t].value})),{onChange:hn})((({name:e,label:n,description:r,disabled:i,checked:a,onChange:o})=>{const s=`create-index-modal-${e}-checkbox`;return t().createElement(D.FormFieldContainer,null,t().createElement(D.Checkbox,{id:s,"data-testid":s,checked:a,onChange:t=>{o(e,t.target.checked)},label:t().createElement(D.Label,{htmlFor:s},n),description:r,disabled:i}))})),In=R(((e,{name:t})=>({type:pn[t].type,label:pn[t].label,description:pn[t].description,optional:pn[t].optional,units:pn[t].units,value:e.options[t].value,enabled:e.options[t].enabled})),{onChange:hn,onEnabled:function(e,t){return{type:dn.ChangeOptionEnabled,name:e,enabled:t}}})((({name:e,type:n,label:r,description:i,disabled:a,optional:o,units:s,value:l,onChange:u,enabled:c,onEnabled:f})=>{const p=`create-index-modal-${e}`,d=`${p}-${n}`;return t().createElement(D.CollapsibleFieldSet,{id:p,toggled:!a&&c,onToggle:t=>{f(e,t)},label:r,"data-testid":p,description:i,disabled:a},"code"===n?t().createElement(pt.CodemirrorMultilineEditor,{"data-testid":d,text:l,onChangeText:t=>{u(e,t)},id:d,"aria-labelledby":p,readOnly:a}):t().createElement(D.TextInput,{id:d,value:l,"data-testid":d,type:n,onChange:t=>{u(e,t.target.value)},spellCheck:!1,disabled:a,optional:o,label:s,"aria-labelledby":s?void 0:p}))})),Pn=(0,D.css)({margin:`${D.spacing[4]}px 0 ${D.spacing[5]}px 0`}),Tn=(0,D.css)({marginBottom:D.spacing[1]}),An=(0,D.css)({paddingLeft:D.spacing[1]+2});function Nn({fields:e,schemaFields:n,serverVersion:r,updateFieldName:i,updateFieldType:a,addField:o,removeField:s}){return t().createElement(t().Fragment,null,t().createElement("div",{className:Pn,"data-testid":"create-index-form"},t().createElement(D.Body,{weight:"medium",className:Tn},"Index fields"),e.length>0?t().createElement(kn,{schemaFields:n,fields:e,serverVersion:r,isRemovable:!(e.length>1),updateFieldName:i,updateFieldType:a,addField:o,removeField:s}):null),t().createElement(D.Accordion,{"data-testid":"create-index-modal-toggle-options",text:"Options"},t().createElement("div",{"data-testid":"create-index-modal-options",className:An},t().createElement(Cn,{name:"unique"}),t().createElement(In,{name:"name"}),t().createElement(In,{name:"expireAfterSeconds"}),t().createElement(In,{name:"partialFilterExpression"}),t().createElement(In,{name:"wildcardProjection"}),t().createElement(In,{name:"collation"}),vn(r)&&t().createElement(In,{name:"columnstoreProjection"}),t().createElement(Cn,{name:"sparse"}))))}const On=(0,D.css)({display:"flex",flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",gap:D.spacing[2]}),Rn=(0,D.css)({flexGrow:1,width:"100%"}),Ln=(0,D.css)({flex:"none"}),Mn=function({error:e,clearError:n,inProgress:r,createIndex:i,closeCreateIndexModal:a}){return t().createElement("div",{className:On},(()=>{if(e)return t().createElement("div",{"data-testid":"create-index-actions-error-banner-wrapper",className:Rn},t().createElement(D.Banner,{variant:"danger",dismissible:!0,onClose:n},e))})(),(()=>{if(!e&&r)return t().createElement("div",{"data-testid":"create-index-actions-in-progress-banner-wrapper",className:Rn},t().createElement(D.Banner,{variant:"info"},"Index creation in progress. The dialog can be closed."))})(),t().createElement(D.Button,{"data-testid":"create-index-actions-cancel-button",onClick:()=>{a()}},r?"Close":"Cancel"),!r&&t().createElement(D.Button,{"data-testid":"create-index-actions-create-index-button",onClick:()=>{i()},variant:"primary",className:Ln},"Create Index"))},Fn={changeSchemaFields:Mt,clearError:It,createIndex:()=>async(e,t)=>{const n=t(),r={};if(n.fields.some((e=>""===e.name||""===e.type)))return void e(Ct("You must select a field name and type"));const i=n.options;n.fields.forEach((e=>{let t=e.type;"1 (asc)"===e.type&&(t=1),"-1 (desc)"===e.type&&(t=-1),r[e.name]=t}));const a={},o=Yt(i.collation.value??"")||void 0;if(i.collation.enabled&&!o)return void e(Ct("You must provide a valid collation object"));if(i.collation.enabled&&(a.collation=o),i.unique.enabled&&(a.unique=i.unique.value),i.sparse.enabled&&(a.sparse=i.sparse.value),i.name.enabled&&i.name.value&&(a.name=i.name.value),i.expireAfterSeconds.enabled&&(a.expireAfterSeconds=Number(i.expireAfterSeconds.value),isNaN(a.expireAfterSeconds)))return void e(Ct(`Bad TTL: "${String(i.expireAfterSeconds.value)}"`));if(i.wildcardProjection.enabled)try{a.wildcardProjection=Ft.EJSON.parse(i.wildcardProjection.value??"")}catch(t){return void e(Ct(`Bad WildcardProjection: ${String(t)}`))}if(i.columnstoreProjection.enabled)try{a.columnstoreProjection=Ft.EJSON.parse(i.columnstoreProjection.value??"")}catch(t){return void e(Ct(`Bad ColumnstoreProjection: ${String(t)}`))}if(i.partialFilterExpression.enabled)try{a.partialFilterExpression=Ft.EJSON.parse(n.options.partialFilterExpression.value??"")}catch(t){return void e(Ct(`Bad PartialFilterExpression: ${String(t)}`))}for(const e of Object.keys(i))[!1,""].includes(i[e].value)&&delete a[e];e(It()),e(nn(!0));const s=n.namespace,l=(({ns:e,name:t,spec:n})=>{const r=(new Ft.ObjectId).toHexString(),i=Object.keys(n).map((e=>({field:e,value:n[e]}))),a=t||Object.keys(n).reduce(((e,t)=>`${""===e?"":`${e}_`}${t}_${n[t]}`),"");return{id:r,extra:{status:"inprogress"},key:n,fields:i,name:a,ns:e,size:0,relativeSize:0,usageCount:0}})({ns:s,name:a.name,spec:r});e((0,je.localAppRegistryEmit)("in-progress-indexes-added",l));const u={unique:a.unique,ttl:i.expireAfterSeconds.enabled,columnstore_index:(c=n.fields,c.some((e=>"columnstore"===e.type))),has_columnstore_projection:i.columnstoreProjection.enabled,has_wildcard_projection:i.wildcardProjection.enabled,custom_collation:i.collation.enabled,geo:n.fields.filter((({type:e})=>"2dsphere"===e)).length>0};var c;try{await(n.dataService?.createIndex(s,r,a)),yn("Index Created",u),e(Et()),e(nn(!1)),e(on(!1)),e((0,je.localAppRegistryEmit)("in-progress-indexes-removed",l.id)),e((0,je.localAppRegistryEmit)("refresh-regular-indexes"))}catch(t){e(nn(!1)),e(Ct(t.message)),e((0,je.localAppRegistryEmit)("in-progress-indexes-failed",{inProgressIndexId:l.id,error:t.message}))}},closeCreateIndexModal:()=>e=>{e(on(!1)),e(Et())},addField:()=>({type:Pt}),removeField:e=>({type:At,idx:e}),updateFieldName:(e,t)=>(n,r)=>{const i=r(),a=[...i.fields];if(e>=0&&e<i.fields.length){if(i.fields.some(((n,r)=>n.name===t&&r!==e)))return void n(Ct("Index keys must be unique"));const r={...a[e]};r.name=t,a[e]=r,n((e=>({type:Nt,fields:e}))(a))}},updateFieldType:(e,t)=>({type:Tt,idx:e,fType:t})},jn=R((({fields:e,inProgress:t,schemaFields:n,error:r,isVisible:i,namespace:a,serverVersion:o})=>({fields:e,inProgress:t,schemaFields:n,error:r,isVisible:i,namespace:a,serverVersion:o})),Fn)((function({isVisible:n,namespace:r,error:i,clearError:a,inProgress:o,createIndex:s,closeCreateIndexModal:l,...u}){const c=(0,e.useCallback)((e=>{e||l()}),[l]);return(0,B.useTrackOnChange)("COMPASS-INDEXES-UI",(e=>{n&&e("Screen",{name:"create_index_modal"})}),[n],void 0,t()),t().createElement(D.Modal,{open:n,setOpen:c,"data-testid":"create-index-modal"},t().createElement(D.ModalHeader,{title:"Create Index",subtitle:r}),t().createElement(D.ModalBody,null,t().createElement(Nn,u)),t().createElement(D.ModalFooter,null,t().createElement(Mn,{error:i,clearError:a,inProgress:o,createIndex:s,closeCreateIndexModal:l})))})),Dn=jn;class Vn extends e.Component{static displayName="CreateIndexPlugin";static propTypes={store:j().object.isRequired};render(){return t().createElement(L,{store:this.props.store},t().createElement(Dn,null))}}const Bn=Vn,zn="indexes/drop-index/name/NAME_CHANGED",Un=e=>({type:zn,name:e}),$n="indexes/drop-index/confirm-name/CHANGE_CONFIRM_NAME";let Wn=function(e){return e.HandleError="indexes/create-index/HandleError",e.ClearError="indexes/create-index/ClearError",e}({});const qn=e=>({type:Wn.HandleError,error:e}),Hn=()=>({type:Wn.ClearError}),{track:Gn}=(0,B.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),Kn=Ht({dataService:Zt,appRegistry:De(),isVisible:an,inProgress:tn,error:function(e=null,t){return z(t,Wn.HandleError)?t.error:z(t,Wn.ClearError)||t.type===_t?null:e},name:function(e="",t){return t.type===zn?t.name:e},confirmName:function(e="",t){return t.type===$n?t.name:e},namespace:ln}),Qn=(e,t)=>t.type===_t?{...e,inProgress:false,isVisible:false,error:null,name:"",confirmName:""}:Kn(e,t),Yn=(0,D.css)({display:"flex",gap:D.spacing[1],marginTop:D.spacing[3],marginBottom:D.spacing[3]}),Xn=(0,D.css)({margin:`${D.spacing[3]}px 0`}),Zn=(0,D.css)({flexShrink:0}),Jn=(0,D.css)({display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,textOverflow:"ellipsis",overflow:"hidden"}),er=R((({isVisible:e,inProgress:t,error:n,name:r,confirmName:i})=>({isVisible:e,inProgress:t,error:n,name:r,confirmName:i})),{toggleIsVisible:on,clearError:Hn,nameChanged:Un,changeConfirmName:e=>({type:$n,name:e}),dropIndex:e=>async(t,n)=>{const r=n(),i=r.namespace;t(nn(!0));try{await(r.dataService?.dropIndex(i,e)),Gn("Index Dropped"),t(Et()),t((0,je.localAppRegistryEmit)("refresh-regular-indexes")),t(Hn()),t(nn(!1)),t(on(!1))}catch(e){t(nn(!1)),t(qn(e.message))}},resetForm:Et})((function({isVisible:e,inProgress:n,error:r,name:i,confirmName:a,toggleIsVisible:o,changeConfirmName:s,resetForm:l,dropIndex:u,clearError:c}){return(0,B.useTrackOnChange)("COMPASS-INDEXES-UI",(t=>{e&&t("Screen",{name:"drop_index_modal"})}),[e],void 0,t()),t().createElement(D.ConfirmationModal,{title:"Drop Index",open:e,onConfirm:()=>{u(i)},onCancel:()=>{o(!1),l()},buttonText:"Drop",variant:"danger",submitDisabled:a!==i,"data-testid":"drop-index-modal"},t().createElement("div",{className:Yn},t().createElement(D.Icon,{glyph:"Warning",className:Zn}),t().createElement(D.Body,{className:Jn},"Type the index name"," ",t().createElement(D.Label,{htmlFor:"confirm-drop-index-name"},i)," to drop")),t().createElement("form",{onSubmit:e=>{e.preventDefault(),e.stopPropagation()}},t().createElement(D.TextInput,{id:"confirm-drop-index-name","aria-labelledby":"Confirm drop index",type:"text","data-testid":"confirm-drop-index-name",value:a,onChange:e=>s(e.target.value)}),(()=>{if(r)return t().createElement("div",{"data-testid":"drop-index-error-banner-wrapper"},t().createElement(D.Banner,{className:Xn,variant:"danger",dismissible:!0,onClose:c},r))})(),(()=>{if(!r&&n)return t().createElement("div",{"data-testid":"drop-index-in-progress-banner-wrapper"},t().createElement(D.Banner,{className:Xn,variant:"info"},"Index dropping in progress."))})()))}));class tr extends e.Component{static displayName="DropIndexPlugin";static propTypes={store:j().object.isRequired};render(){return t().createElement(L,{store:this.props.store},t().createElement(er,null))}}const nr=tr,rr="indexes/is-writable/WRITE_STATE_CHANGED",ir=e=>({type:rr,isWritable:e}),ar="indexes/description/GET_DESCRIPTION",or=e=>({type:ar,description:e}),sr=Ht({isWritable:(e=!0,t)=>t.type===rr?t.isWritable:e,isReadonlyView:function(e=!1,t){return"indexes/is-readonly-view/READONLY_VIEW_CHANGED"===t.type?t.isReadonlyView:e},description:(e="Topology type not yet discovered.",t)=>t.type===ar?t.description:e,appRegistry:De(),dataService:Zt,serverVersion:fn,namespace:ln,regularIndexes:function(e=qe,t){if(z(t,We.IndexesAdded))return{...e,indexes:t.indexes};if(z(t,We.IndexesSorted))return{...e,indexes:t.indexes,sortOrder:t.sortOrder,sortColumn:t.sortColumn};if(z(t,We.SetIsRefreshing))return{...e,isRefreshing:t.isRefreshing};if(z(t,We.SetError))return{...e,error:t.error};if(z(t,We.InProgressIndexAdded))return{...e,inProgressIndexes:[...e.inProgressIndexes,t.index]};if(z(t,We.InProgressIndexRemoved))return{...e,inProgressIndexes:e.inProgressIndexes.filter((e=>e.id!==t.id))};if(z(t,We.InProgressIndexFailed)){const n=e.inProgressIndexes.findIndex((e=>e.id===t.id)),r=e.inProgressIndexes;return r[n]={...r[n],extra:{...r[n].extra,status:"failed",error:t.error}},{...e,inProgressIndexes:r}}return e},searchIndexes:function(e=G,t){return z(t,H.SetIsRefreshing)?{...e,status:q.REFRESHING,error:void 0}:z(t,H.SetSearchIndexes)?{...e,indexes:t.indexes,status:q.READY}:z(t,H.SearchIndexesSorted)?{...e,indexes:t.indexes,sortOrder:t.sortOrder,sortColumn:t.sortColumn}:z(t,H.SetError)?{...e,error:t.error,status:q.ERROR}:z(t,H.OpenCreateSearchIndexModal)?{...e,error:void 0,createIndex:{...e.createIndex,isModalOpen:!0,isBusy:!1}}:z(t,H.CreateSearchIndexCancelled)?{...e,error:void 0,createIndex:{...e.createIndex,isModalOpen:!1,isBusy:!1}}:z(t,H.CreateSearchIndexStarted)?{...e,error:void 0,createIndex:{...e.createIndex,isBusy:!0}}:z(t,H.CreateSearchIndexFailed)?{...e,error:t.error,createIndex:{...e.createIndex,isBusy:!1}}:z(t,H.CreateSearchIndexSucceeded)?{...e,error:void 0,createIndex:{...e.createIndex,isModalOpen:!1,isBusy:!1}}:e}});function lr(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var ur=lr();ur.withExtraArgument=lr;const cr=ur,fr=e=>{if(!e.dataProvider?.dataProvider)throw new Error("Can't configure store for indexes plugin without data serivce");const t=qt(sr,{appRegistry:{localAppRegistry:e.localAppRegistry,globalAppRegistry:e.globalAppRegistry},dataService:e.dataProvider.dataProvider,namespace:e.namespace,serverVersion:e.serverVersion,isReadonlyView:e.isReadonly,searchIndexes:{...G,status:e.isSearchIndexesSupported?q.PENDING:q.NOT_AVAILABLE}},Kt(cr.withExtraArgument({})));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,je.localAppRegistryActivated)(n)),n.on("refresh-regular-indexes",(()=>{t.dispatch(Qe())})),n.on("in-progress-indexes-added",(e=>{var n;t.dispatch((n=e,{type:We.InProgressIndexAdded,index:n}))})),n.on("in-progress-indexes-removed",(e=>{t.dispatch(Ye(e))})),n.on("in-progress-indexes-failed",(e=>{t.dispatch((({inProgressIndexId:e,error:t})=>({type:We.InProgressIndexFailed,id:e,error:t}))(e))}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,je.globalAppRegistryActivated)(n)),n.on("refresh-data",(()=>{t.dispatch(Qe()),t.dispatch(Y())}));const r=n.getStore("App.InstanceStore");if(r){const e=r.getState().instance;t.dispatch(ir(e.isWritable)),t.dispatch(or(e.description)),e.on("change:isWritable",(()=>{t.dispatch(ir(e.isWritable))})),e.on("change:description",(()=>{t.dispatch(or(e.description))}))}}return t},{track:pr}=(0,B.createLoggerAndTelemetry)("COMPASS-INDEXES-UI"),dr=(e,t,n)=>{null!==t?e.dispatch(Ct(t.message)):e.dispatch(Jt(n))},hr=(e,t,n)=>{null!==t?e.dispatch(qn(t.message)):e.dispatch(Jt(n))},mr=JSON.parse('{"name":"@mongodb-js/compass-indexes","productName":"Compass Indexes plugin","description":"Collection index management for Compass","version":"5.14.0","author":{"name":"MongoDB Inc","email":"compass@mongodb.com"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/mongodb-js/compass.git"},"license":"SSPL","homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"files":["dist"],"main":"dist/index.js","compass:main":"src/index.ts","types":"dist/src/index.d.ts","exports":{"browser":"./dist/browser.js","require":"./dist/index.js"},"compass:exports":{".":"./src/index.ts"},"scripts":{"bootstrap":"npm run postcompile","prepublishOnly":"npm run compile && compass-scripts check-exports-exist","compile":"npm run webpack -- --mode production","webpack":"webpack-compass","postcompile":"tsc --emitDeclarationOnly","analyze":"npm run webpack -- --mode production --analyze","typecheck":"tsc -p tsconfig-lint.json --noEmit","eslint":"eslint","prettier":"prettier","lint":"npm run eslint . && npm run prettier -- --check .","depcheck":"compass-scripts check-peer-deps && depcheck","check":"npm run typecheck && npm run lint && npm run depcheck","check-ci":"npm run check","test":"mocha","test-electron":"xvfb-maybe electron-mocha --no-sandbox","test-cov":"nyc --compact=false --produce-source-map=false -x \\"**/*.spec.*\\" --reporter=lcov --reporter=text --reporter=html npm run test","test-watch":"npm run test -- --watch","test-ci":"npm run test-cov","test-ci-electron":"npm run test-electron","reformat":"npm run prettier -- --write . && npm run eslint . --fix"},"peerDependencies":{"@mongodb-js/compass-components":"^1.14.0","@mongodb-js/compass-editor":"^0.13.0","@mongodb-js/compass-logging":"^1.2.0","@mongodb-js/mongodb-redux-common":"^2.0.11","bson":"^6.0.0","compass-preferences-model":"^2.14.0","react":"^17.0.2"},"devDependencies":{"@mongodb-js/eslint-config-compass":"^1.0.9","@mongodb-js/mocha-config-compass":"^1.3.1","@mongodb-js/prettier-config-compass":"^1.0.1","@mongodb-js/tsconfig-compass":"^1.0.3","@mongodb-js/webpack-config-compass":"^1.2.0","@testing-library/react":"^12.1.4","@testing-library/user-event":"^13.5.0","chai":"^4.2.0","depcheck":"^1.4.1","ejson-shell-parser":"^1.2.4","electron":"^26.2.1","enzyme":"^3.11.0","eslint":"^7.25.0","hadron-app-registry":"^9.0.10","lodash":"^4.17.21","mocha":"^10.2.0","mongodb":"^6.0.0","mongodb-data-service":"^22.11.0","mongodb-query-parser":"^3.1.3","numeral":"^2.0.6","nyc":"^15.1.0","prop-types":"^15.7.2","react":"^17.0.2","react-dom":"^17.0.2","react-redux":"^8.0.5","redux":"^4.2.1","redux-thunk":"^2.4.1","semver":"^5.4.1","sinon":"^9.2.3","xvfb-maybe":"^0.2.1"},"dependencies":{"@mongodb-js/compass-components":"^1.14.0","@mongodb-js/compass-editor":"^0.13.0","@mongodb-js/compass-logging":"^1.2.0","@mongodb-js/mongodb-redux-common":"^2.0.11","bson":"^6.0.0","compass-preferences-model":"^2.14.0"},"gitHead":"146534300cc62674da9089cc7f8ebade832b359f"}'),gr={name:"Indexes",component:St,order:6,configureStore:fr,configureActions:()=>{},storeName:"Indexes.Store",actionName:"Indexes.Actions"},vr={name:"Create Index",component:Bn,configureStore:(e={})=>{const t=qt(bn,Kt(cr));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,je.localAppRegistryActivated)(n)),n.on("fields-changed",(e=>{t.dispatch(Mt(Object.keys(e.fields).filter((e=>"_id"!==e))))})),n.on("open-create-index-modal",(()=>{pr("Index Create Opened"),t.dispatch(on(!0))})),n.on("data-service-connected",((e,n)=>{dr(t,e,n)}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,je.globalAppRegistryActivated)(n))}var n;return e.namespace&&t.dispatch(un(e.namespace)),e.serverVersion&&t.dispatch((n=e.serverVersion,{type:cn,version:n})),e.dataProvider&&dr(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.CreateIndexStore",actionName:"Indexes.CreateIndexActions"},yr={name:"Drop Index",component:nr,configureStore:(e={})=>{const t=qt(Qn,Kt(cr));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,je.localAppRegistryActivated)(n)),n.on("toggle-drop-index-modal",((e,n)=>{t.dispatch(Un(n)),t.dispatch(on(e))})),n.on("data-service-connected",((e,n)=>{hr(t,e,n)}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,je.globalAppRegistryActivated)(n))}return e.namespace&&t.dispatch(un(e.namespace)),e.dataProvider&&hr(t,e.dataProvider.error,e.dataProvider.dataProvider),t},configureActions:()=>{},storeName:"Indexes.DropIndexStore",actionName:"Indexes.DropIndexActions"};function br(e){e.registerRole("Collection.Tab",gr),e.registerRole("Collection.ScopedModal",vr),e.registerRole("Collection.ScopedModal",yr)}function xr(e){e.deregisterRole("Collection.Tab",gr),e.deregisterRole("Collection.ScopedModal",vr),e.deregisterRole("Collection.ScopedModal",yr)}const wr=St})(),r})()));
|