@langgenius/syncless-darwin-arm64 0.0.18 → 0.0.19
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/package.json +1 -1
- package/payload/.env +1 -1
- package/payload/dist/cli.js +150 -71
- package/payload/dist/{devtools-CA2oRalS.js → devtools-D3wbPHyt.js} +10 -11
- package/payload/dist/esm-C0X-DwMR.js +4 -0
- package/payload/dist/execAsync-BcBGiymk.js +4 -0
- package/payload/dist/execAsync-C9EmXJR4.js +4 -0
- package/payload/dist/execAsync-DWudzp_z.js +4 -0
- package/payload/dist/execAsync-DZzlHwlZ.js +4 -0
- package/payload/dist/execAsync-Zlv_fU4t.js +4 -0
- package/payload/dist/{getMachineId-bsd-B7IJldTE.js → getMachineId-bsd-1I5hgxaC.js} +3 -3
- package/payload/dist/{getMachineId-bsd-BOF4R-5b.js → getMachineId-bsd-B9fDIF4z.js} +3 -3
- package/payload/dist/{getMachineId-bsd-CXxDmbl-.js → getMachineId-bsd-BYdrIv_h.js} +3 -3
- package/payload/dist/{getMachineId-bsd-CgdeU1_A.js → getMachineId-bsd-Bpya8DJC.js} +3 -3
- package/payload/dist/getMachineId-bsd-MgbeIK4j.js +4 -0
- package/payload/dist/{getMachineId-darwin-0va0rJGP.js → getMachineId-darwin-797sqGnX.js} +3 -3
- package/payload/dist/{getMachineId-darwin-B2iRJjDk.js → getMachineId-darwin-BPWVGEIz.js} +3 -3
- package/payload/dist/{getMachineId-darwin-BqrOLIYH.js → getMachineId-darwin-Bj0iUzJy.js} +3 -3
- package/payload/dist/{getMachineId-darwin-CuPOfqMl.js → getMachineId-darwin-COIzhG1s.js} +3 -3
- package/payload/dist/getMachineId-darwin-D5vV8P02.js +5 -0
- package/payload/dist/{getMachineId-linux-CUlAgf4p.js → getMachineId-linux-CH4jdejH.js} +3 -3
- package/payload/dist/{getMachineId-linux-DKUhpr74.js → getMachineId-linux-VKxpXt9x.js} +3 -3
- package/payload/dist/{getMachineId-linux-DV61XOHH.js → getMachineId-linux-ZEyhgWjj.js} +3 -3
- package/payload/dist/{getMachineId-linux-h3RBA30a.js → getMachineId-linux-jzPtffQv.js} +3 -3
- package/payload/dist/getMachineId-linux-kWQKw2Tr.js +4 -0
- package/payload/dist/getMachineId-unsupported-BVhLQpms.js +4 -0
- package/payload/dist/getMachineId-unsupported-Bhsor6bu.js +4 -0
- package/payload/dist/getMachineId-unsupported-CNzeOFZl.js +4 -0
- package/payload/dist/getMachineId-unsupported-D8P2sh_8.js +4 -0
- package/payload/dist/getMachineId-unsupported-Hnl_ZEwb.js +4 -0
- package/payload/dist/{getMachineId-win-BlEG8eKR.js → getMachineId-win-9qbA6mIY.js} +3 -3
- package/payload/dist/{getMachineId-win-CPwLBa-V.js → getMachineId-win-BCu0ix5l.js} +3 -3
- package/payload/dist/{getMachineId-win-CfvwfuJg.js → getMachineId-win-BVSd3N1J.js} +3 -3
- package/payload/dist/{getMachineId-win-oAABMa4A.js → getMachineId-win-CHXygaY9.js} +3 -3
- package/payload/dist/getMachineId-win-qxMUCToN.js +4 -0
- package/payload/package.json +9 -11
- package/payload/dist/esm-ff0QswHQ.js +0 -4
- package/payload/dist/execAsync-BbPoEBLY.js +0 -4
- package/payload/dist/execAsync-C1C2Dhr5.js +0 -4
- package/payload/dist/execAsync-DgGRALCR.js +0 -4
- package/payload/dist/execAsync-YfbJtIiI.js +0 -4
- package/payload/dist/execAsync-ZBi_Rp_8.js +0 -4
- package/payload/dist/getMachineId-bsd-vwRNoq3L.js +0 -4
- package/payload/dist/getMachineId-darwin-D4cnvOCq.js +0 -5
- package/payload/dist/getMachineId-linux-txioaRT4.js +0 -4
- package/payload/dist/getMachineId-unsupported-BIk8g1NB.js +0 -4
- package/payload/dist/getMachineId-unsupported-BWYkKo3b.js +0 -4
- package/payload/dist/getMachineId-unsupported-BxJJ5c2g.js +0 -4
- package/payload/dist/getMachineId-unsupported-DMJtgTje.js +0 -4
- package/payload/dist/getMachineId-unsupported-DiyhtuQH.js +0 -4
- package/payload/dist/getMachineId-win-qu-3Sn0c.js +0 -4
- /package/payload/dist/{chunk-Bdh3yLIe.js → chunk-BTyA9uPd.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import{i as e,o as t,t as n}from"./chunk-Bdh3yLIe.js";var r=n(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),i=n(((t,n)=>{let{EMPTY_BUFFER:i}=r(),a=Buffer[Symbol.species];function o(e,t){if(e.length===0)return i;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),r=0;for(let t=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return r<t?new a(n.buffer,n.byteOffset,r):n}function s(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function c(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function l(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function u(e){if(u.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new a(e):ArrayBuffer.isView(e)?t=new a(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),u.readOnly=!1),t}if(n.exports={concat:o,mask:s,toArrayBuffer:l,toBuffer:u,unmask:c},!process.env.WS_NO_BUFFER_UTIL)try{let t=e(`bufferutil`);n.exports.mask=function(e,n,r,i,a){a<48?s(e,n,r,i,a):t.mask(e,n,r,i,a)},n.exports.unmask=function(e,n){e.length<32?c(e,n):t.unmask(e,n)}}catch{}})),a=n(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),o=n(((t,n)=>{let o=e(`zlib`),s=i(),c=a(),{kStatusCode:l}=r(),u=Buffer[Symbol.species],d=Buffer.from([0,0,255,255]),f=Symbol(`permessage-deflate`),p=Symbol(`total-length`),m=Symbol(`callback`),h=Symbol(`buffers`),g=Symbol(`error`),_;n.exports=class{constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,_||=new c(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[m];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){_.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){_.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){let r=this._isServer?`client`:`server`;if(!this._inflate){let e=`${r}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:o.Z_DEFAULT_WINDOWBITS;this._inflate=o.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[f]=this,this._inflate[p]=0,this._inflate[h]=[],this._inflate.on(`error`,b),this._inflate.on(`data`,y)}this._inflate[m]=n,this._inflate.write(e),t&&this._inflate.write(d),this._inflate.flush(()=>{let e=this._inflate[g];if(e){this._inflate.close(),this._inflate=null,n(e);return}let i=s.concat(this._inflate[h],this._inflate[p]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[p]=0,this._inflate[h]=[],t&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),n(null,i)})}_compress(e,t,n){let r=this._isServer?`server`:`client`;if(!this._deflate){let e=`${r}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:o.Z_DEFAULT_WINDOWBITS;this._deflate=o.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[p]=0,this._deflate[h]=[],this._deflate.on(`data`,v)}this._deflate[m]=n,this._deflate.write(e),this._deflate.flush(o.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=s.concat(this._deflate[h],this._deflate[p]);t&&(e=new u(e.buffer,e.byteOffset,e.length-4)),this._deflate[m]=null,this._deflate[p]=0,this._deflate[h]=[],t&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}};function v(e){this[h].push(e),this[p]+=e.length}function y(e){if(this[p]+=e.length,this[f]._maxPayload<1||this[p]<=this[f]._maxPayload){this[h].push(e);return}this[g]=RangeError(`Max payload size exceeded`),this[g].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[g][l]=1009,this.removeListener(`data`,y),this.reset()}function b(e){if(this[f]._inflate=null,this[g]){this[m](this[g]);return}e[l]=1007,this[m](e)}})),s=n(((t,n)=>{let{isUtf8:i}=e(`buffer`),{hasBlob:a}=r(),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function c(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function l(e){return a&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(n.exports={isBlob:l,isValidStatusCode:s,isValidUTF8:c,tokenChars:o},i)n.exports.isValidUTF8=function(e){return e.length<24?c(e):i(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=e(`utf-8-validate`);n.exports.isValidUTF8=function(e){return e.length<32?c(e):t(e)}}catch{}})),c=n(((t,n)=>{let{Writable:a}=e(`stream`),c=o(),{BINARY_TYPES:l,EMPTY_BUFFER:u,kStatusCode:d,kWebSocket:f}=r(),{concat:p,toArrayBuffer:m,unmask:h}=i(),{isValidStatusCode:g,isValidUTF8:_}=s(),v=Buffer[Symbol.species];n.exports=class extends a{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||l[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[f]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new v(t.buffer,t.byteOffset+e,t.length-e),new v(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new v(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[c.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=u;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&h(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[c.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?p(n,t):this._binaryType===`arraybuffer`?m(p(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=p(n,t);if(!this._skipUTF8Validation&&!_(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,u),this.end();else{let n=e.readUInt16BE(0);if(!g(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new v(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!_(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[d]=r,a}}})),l=n(((t,n)=>{let{Duplex:a}=e(`stream`),{randomFillSync:c}=e(`crypto`),{types:{isUint8Array:l}}=e(`util`),u=o(),{EMPTY_BUFFER:d,kWebSocket:f,NOOP:p}=r(),{isBlob:m,isValidStatusCode:h}=s(),{mask:g,toBuffer:_}=i(),v=Symbol(`kByteLength`),y=Buffer.alloc(4),b=8*1024,x,S=b;n.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=p,this[f]=void 0}static frame(e,t){let n,r=!1,i=2,a=!1;t.mask&&(n=t.maskBuffer||y,t.generateMask?t.generateMask(n):(S===b&&(x===void 0&&(x=Buffer.alloc(b)),c(x,0,b),S=0),n[0]=x[S++],n[1]=x[S++],n[2]=x[S++],n[3]=x[S++]),a=(n[0]|n[1]|n[2]|n[3])===0,i=6);let o;typeof e==`string`?(!t.mask||a)&&t[v]!==void 0?o=t[v]:(e=Buffer.from(e),o=e.length):(o=e.length,r=t.mask&&t.readOnly&&!a);let s=o;o>=65536?(i+=8,s=127):o>125&&(i+=2,s=126);let l=Buffer.allocUnsafe(r?o+i:i);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=s,s===126?l.writeUInt16BE(o,2):s===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),!t.mask||(l[1]|=128,l[i-4]=n[0],l[i-3]=n[1],l[i-2]=n[2],l[i-1]=n[3],a)?[l,e]:r?(g(e,n,l,i,o),[l]):(g(e,n,e,0,o),[l,e])}close(t,n,r,i){let a;if(t===void 0)a=d;else if(typeof t!=`number`||!h(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)a=Buffer.allocUnsafe(2),a.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(a=Buffer.allocUnsafe(2+e),a.writeUInt16BE(t,0),typeof n==`string`)a.write(n,2);else if(l(n))a.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let o={[v]:a.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(a,o),i):this.enqueue([this.dispatch,a,!1,o,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):m(t)?(i=t.size,a=!1):(t=_(t),i=t.length,a=_.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[v]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};m(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):m(t)?(i=t.size,a=!1):(t=_(t),i=t.length,a=_.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[v]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};m(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[u.extensionName],i=t.binary?2:1,a=t.compress,o,s;typeof e==`string`?(o=Buffer.byteLength(e),s=!1):m(e)?(o=e.size,s=!1):(e=_(e),o=e.length,s=_.readOnly),this._firstFragment?(this._firstFragment=!1,a&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(a=o>=r._threshold),this._compress=a):(a=!1,i=0),t.fin&&(this._firstFragment=!0);let c={[v]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:s,rsv1:a};m(e)?this._state===0?this.getBlobData(e,this._compress,c,n):this.enqueue([this.getBlobData,e,this._compress,c,n]):this._state===0?this.dispatch(e,this._compress,c,n):this.enqueue([this.dispatch,e,this._compress,c,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[v],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(C,this,e,i);return}this._bufferedBytes-=r[v];let a=_(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(w,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let a=this._extensions[u.extensionName];this._bufferedBytes+=r[v],this._state=1,a.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);C(this,e,i);return}this._bufferedBytes-=r[v],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][v],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][v],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function C(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function w(e,t,n){C(e,t,n),e.onerror(t)}})),u=n(((e,t)=>{let{kForOnEventAttribute:n,kListener:i}=r(),a=Symbol(`kCode`),o=Symbol(`kData`),s=Symbol(`kError`),c=Symbol(`kMessage`),l=Symbol(`kReason`),u=Symbol(`kTarget`),d=Symbol(`kType`),f=Symbol(`kWasClean`);var p=class{constructor(e){this[u]=null,this[d]=e}get target(){return this[u]}get type(){return this[d]}};Object.defineProperty(p.prototype,`target`,{enumerable:!0}),Object.defineProperty(p.prototype,`type`,{enumerable:!0});var m=class extends p{constructor(e,t={}){super(e),this[a]=t.code===void 0?0:t.code,this[l]=t.reason===void 0?``:t.reason,this[f]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[a]}get reason(){return this[l]}get wasClean(){return this[f]}};Object.defineProperty(m.prototype,`code`,{enumerable:!0}),Object.defineProperty(m.prototype,`reason`,{enumerable:!0}),Object.defineProperty(m.prototype,`wasClean`,{enumerable:!0});var h=class extends p{constructor(e,t={}){super(e),this[s]=t.error===void 0?null:t.error,this[c]=t.message===void 0?``:t.message}get error(){return this[s]}get message(){return this[c]}};Object.defineProperty(h.prototype,`error`,{enumerable:!0}),Object.defineProperty(h.prototype,`message`,{enumerable:!0});var g=class extends p{constructor(e,t={}){super(e),this[o]=t.data===void 0?null:t.data}get data(){return this[o]}};Object.defineProperty(g.prototype,`data`,{enumerable:!0}),t.exports={CloseEvent:m,ErrorEvent:h,Event:p,EventTarget:{addEventListener(e,t,r={}){for(let a of this.listeners(e))if(!r[n]&&a[i]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new g(`message`,{data:n?e:e.toString()});r[u]=this,_(t,this,r)};else if(e===`close`)a=function(e,n){let r=new m(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[u]=this,_(t,this,r)};else if(e===`error`)a=function(e){let n=new h(`error`,{error:e,message:e.message});n[u]=this,_(t,this,n)};else if(e===`open`)a=function(){let e=new p(`open`);e[u]=this,_(t,this,e)};else return;a[n]=!!r[n],a[i]=t,r.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let r of this.listeners(e))if(r[i]===t&&!r[n]){this.removeListener(e,r);break}}},MessageEvent:g};function _(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),d=n(((e,t)=>{let{tokenChars:n}=s();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),f=n(((t,n)=>{let a=e(`events`),f=e(`https`),p=e(`http`),m=e(`net`),h=e(`tls`),{randomBytes:g,createHash:_}=e(`crypto`),{Duplex:v,Readable:y}=e(`stream`),{URL:b}=e(`url`),x=o(),S=c(),C=l(),{isBlob:w}=s(),{BINARY_TYPES:T,CLOSE_TIMEOUT:E,EMPTY_BUFFER:D,GUID:O,kForOnEventAttribute:k,kListener:A,kStatusCode:j,kWebSocket:M,NOOP:N}=r(),{EventTarget:{addEventListener:P,removeEventListener:F}}=u(),{format:I,parse:L}=d(),{toBuffer:ee}=i(),te=Symbol(`kAborted`),R=[8,13],z=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],B=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var V=class e extends a{constructor(t,n,r){super(),this._binaryType=T[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=D,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),ne(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){T.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new S({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new C(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[M]=this,a[M]=this,t[M]=this,i.on(`conclude`,se),i.on(`drain`,ce),i.on(`error`,le),i.on(`message`,de),i.on(`ping`,fe),i.on(`pong`,pe),a.onerror=he,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,_e),t.on(`data`,ve),t.on(`end`,ye),t.on(`error`,be),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[x.extensionName]&&this._extensions[x.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){H(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),ge(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){oe(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||D,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){oe(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||D,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){oe(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[x.extensionName]||(i.compress=!1),this._sender.send(t||D,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){H(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(V,`CONNECTING`,{enumerable:!0,value:z.indexOf(`CONNECTING`)}),Object.defineProperty(V.prototype,`CONNECTING`,{enumerable:!0,value:z.indexOf(`CONNECTING`)}),Object.defineProperty(V,`OPEN`,{enumerable:!0,value:z.indexOf(`OPEN`)}),Object.defineProperty(V.prototype,`OPEN`,{enumerable:!0,value:z.indexOf(`OPEN`)}),Object.defineProperty(V,`CLOSING`,{enumerable:!0,value:z.indexOf(`CLOSING`)}),Object.defineProperty(V.prototype,`CLOSING`,{enumerable:!0,value:z.indexOf(`CLOSING`)}),Object.defineProperty(V,`CLOSED`,{enumerable:!0,value:z.indexOf(`CLOSED`)}),Object.defineProperty(V.prototype,`CLOSED`,{enumerable:!0,value:z.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(V.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(V.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[k])return t[A];return null},set(t){for(let t of this.listeners(e))if(t[k]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[k]:!0})}})}),V.prototype.addEventListener=P,V.prototype.removeEventListener=F,n.exports=V;function ne(e,t,n,r){let i={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:E,protocolVersion:R[1],maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,e._closeTimeout=i.closeTimeout,!R.includes(i.protocolVersion))throw RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${R.join(`, `)})`);let a;if(t instanceof b)a=t;else try{a=new b(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}a.protocol===`http:`?a.protocol=`ws:`:a.protocol===`https:`&&(a.protocol=`wss:`),e._url=a.href;let o=a.protocol===`wss:`,s=a.protocol===`ws+unix:`,c;if(a.protocol!==`ws:`&&!o&&!s?c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:s&&!a.pathname?c=`The URL's pathname is empty`:a.hash&&(c=`The URL contains a fragment identifier`),c){let t=SyntaxError(c);if(e._redirects===0)throw t;re(e,t);return}let l=o?443:80,u=g(16).toString(`base64`),d=o?f.request:p.request,m=new Set,h;if(i.createConnection=i.createConnection||(o?ae:ie),i.defaultPort=i.defaultPort||l,i.port=a.port||l,i.host=a.hostname.startsWith(`[`)?a.hostname.slice(1,-1):a.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":u,Connection:`Upgrade`,Upgrade:`websocket`},i.path=a.pathname+a.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(h=new x({...i.perMessageDeflate,isServer:!1,maxPayload:i.maxPayload}),i.headers[`Sec-WebSocket-Extensions`]=I({[x.extensionName]:h.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!B.test(e)||m.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);m.add(e)}i.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(i.origin&&(i.protocolVersion<13?i.headers[`Sec-WebSocket-Origin`]=i.origin:i.headers.Origin=i.origin),(a.username||a.password)&&(i.auth=`${a.username}:${a.password}`),s){let e=i.path.split(`:`);i.socketPath=e[0],i.path=e[1]}let v;if(i.followRedirects){if(e._redirects===0){e._originalIpc=s,e._originalSecure=o,e._originalHostOrSocketPath=s?i.socketPath:a.host;let t=r&&r.headers;if(r={...r,headers:{}},t)for(let[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=s?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:a.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!o)&&(delete i.headers.authorization,delete i.headers.cookie,t||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization=`Basic `+Buffer.from(i.auth).toString(`base64`)),v=e._req=d(i),e._redirects&&e.emit(`redirect`,e.url,v)}else v=e._req=d(i);i.timeout&&v.on(`timeout`,()=>{H(e,v,`Opening handshake has timed out`)}),v.on(`error`,t=>{v===null||v[te]||(v=e._req=null,re(e,t))}),v.on(`response`,a=>{let o=a.headers.location,s=a.statusCode;if(o&&i.followRedirects&&s>=300&&s<400){if(++e._redirects>i.maxRedirects){H(e,v,`Maximum redirects exceeded`);return}v.abort();let a;try{a=new b(o,t)}catch{re(e,SyntaxError(`Invalid URL: ${o}`));return}ne(e,a,n,r)}else e.emit(`unexpected-response`,v,a)||H(e,v,`Unexpected server response: ${a.statusCode}`)}),v.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==V.CONNECTING)return;v=e._req=null;let a=t.headers.upgrade;if(a===void 0||a.toLowerCase()!==`websocket`){H(e,n,`Invalid Upgrade header`);return}let o=_(`sha1`).update(u+O).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==o){H(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],c;if(s===void 0?m.size&&(c=`Server sent no subprotocol`):m.size?m.has(s)||(c=`Server sent an invalid subprotocol`):c=`Server sent a subprotocol but none was requested`,c){H(e,n,c);return}s&&(e._protocol=s);let l=t.headers[`sec-websocket-extensions`];if(l!==void 0){if(!h){H(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=L(l)}catch{H(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==x.extensionName){H(e,n,`Server indicated an extension that was not requested`);return}try{h.accept(t[x.extensionName])}catch{H(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[x.extensionName]=h}e.setSocket(n,r,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(v,e):v.end()}function re(e,t){e._readyState=V.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function ie(e){return e.path=e.socketPath,m.connect(e)}function ae(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=m.isIP(e.host)?``:e.host),h.connect(e)}function H(e,t,n){e._readyState=V.CLOSING;let r=Error(n);Error.captureStackTrace(r,H),t.setHeader?(t[te]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(re,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function oe(e,t,n){if(t){let n=w(t)?t.size:ee(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${z[e.readyState]})`);process.nextTick(n,t)}}function se(e,t){let n=this[M];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[M]!==void 0&&(n._socket.removeListener(`data`,ve),process.nextTick(me,n._socket),e===1005?n.close():n.close(e,t))}function ce(){let e=this[M];e.isPaused||e._socket.resume()}function le(e){let t=this[M];t._socket[M]!==void 0&&(t._socket.removeListener(`data`,ve),process.nextTick(me,t._socket),t.close(e[j])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function ue(){this[M].emitClose()}function de(e,t){this[M].emit(`message`,e,t)}function fe(e){let t=this[M];t._autoPong&&t.pong(e,!this._isServer,N),t.emit(`ping`,e)}function pe(e){this[M].emit(`pong`,e)}function me(e){e.resume()}function he(e){let t=this[M];t.readyState!==V.CLOSED&&(t.readyState===V.OPEN&&(t._readyState=V.CLOSING,ge(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function ge(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function _e(){let e=this[M];if(this.removeListener(`close`,_e),this.removeListener(`data`,ve),this.removeListener(`end`,ye),e._readyState=V.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[M]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,ue),e._receiver.on(`finish`,ue))}function ve(e){this[M]._receiver.write(e)||this.pause()}function ye(){let e=this[M];e._readyState=V.CLOSING,e._receiver.end(),this.end()}function be(){let e=this[M];this.removeListener(`error`,be),this.on(`error`,N),e&&(e._readyState=V.CLOSING,this.destroy())}})),p=n(((t,n)=>{f();let{Duplex:r}=e(`stream`);function i(e){e.emit(`close`)}function a(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener(`error`,o),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function s(e,t){let n=!0,s=new r({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(n=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,r){if(e.readyState===e.CLOSED){r(t),process.nextTick(i,s);return}let a=!1;e.once(`error`,function(e){a=!0,r(e)}),e.once(`close`,function(){a||r(t),process.nextTick(i,s)}),n&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,a),s.on(`error`,o),s}n.exports=s})),m=n(((e,t)=>{let{tokenChars:n}=s();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),h=n(((t,n)=>{let i=e(`events`),a=e(`http`),{Duplex:s}=e(`stream`),{createHash:c}=e(`crypto`),l=d(),u=o(),p=m(),h=f(),{CLOSE_TIMEOUT:g,GUID:_,kWebSocket:v}=r(),y=/^[+/0-9A-Za-z]{22}==$/;n.exports=class extends i{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:g,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:h,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=a.createServer((e,t)=>{let n=a.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=b(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(x,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(x,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{x(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,S);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,o=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){w(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){w(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!y.test(i)){w(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(o!==13&&o!==8){w(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){C(t,400);return}let s=e.headers[`sec-websocket-protocol`],c=new Set;if(s!==void 0)try{c=p.parse(s)}catch{w(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let d=e.headers[`sec-websocket-extensions`],f={};if(this.options.perMessageDeflate&&d!==void 0){let n=new u({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=l.parse(d);e[u.extensionName]&&(n.accept(e[u.extensionName]),f[u.extensionName]=n)}catch{w(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,l)=>{if(!a)return C(t,o||401,s,l);this.completeUpgrade(f,i,c,e,t,n,r)});return}if(!this.options.verifyClient(a))return C(t,401)}this.completeUpgrade(f,i,c,e,t,n,r)}completeUpgrade(e,t,n,r,i,a,o){if(!i.readable||!i.writable)return i.destroy();if(i[v])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return C(i,503);let s=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${c(`sha1`).update(t+_).digest(`base64`)}`],d=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(s.push(`Sec-WebSocket-Protocol: ${e}`),d._protocol=e)}if(e[u.extensionName]){let t=e[u.extensionName].params,n=l.format({[u.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),d._extensions=e}this.emit(`headers`,s,r),i.write(s.concat(`\r
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4b5668e9-2a6a-5b4b-8642-313f7fc9e8a1")}catch(e){}}();
|
|
3
|
+
import{i as e,o as t,t as n}from"./chunk-BTyA9uPd.js";var r=n(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),i=n(((t,n)=>{let{EMPTY_BUFFER:i}=r(),a=Buffer[Symbol.species];function o(e,t){if(e.length===0)return i;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),r=0;for(let t=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return r<t?new a(n.buffer,n.byteOffset,r):n}function s(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function c(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function l(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function u(e){if(u.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new a(e):ArrayBuffer.isView(e)?t=new a(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),u.readOnly=!1),t}if(n.exports={concat:o,mask:s,toArrayBuffer:l,toBuffer:u,unmask:c},!process.env.WS_NO_BUFFER_UTIL)try{let t=e(`bufferutil`);n.exports.mask=function(e,n,r,i,a){a<48?s(e,n,r,i,a):t.mask(e,n,r,i,a)},n.exports.unmask=function(e,n){e.length<32?c(e,n):t.unmask(e,n)}}catch{}})),a=n(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),o=n(((t,n)=>{let o=e(`zlib`),s=i(),c=a(),{kStatusCode:l}=r(),u=Buffer[Symbol.species],d=Buffer.from([0,0,255,255]),f=Symbol(`permessage-deflate`),p=Symbol(`total-length`),m=Symbol(`callback`),h=Symbol(`buffers`),g=Symbol(`error`),_;n.exports=class{constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,_||=new c(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[m];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){_.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){_.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){let r=this._isServer?`client`:`server`;if(!this._inflate){let e=`${r}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:o.Z_DEFAULT_WINDOWBITS;this._inflate=o.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[f]=this,this._inflate[p]=0,this._inflate[h]=[],this._inflate.on(`error`,b),this._inflate.on(`data`,y)}this._inflate[m]=n,this._inflate.write(e),t&&this._inflate.write(d),this._inflate.flush(()=>{let e=this._inflate[g];if(e){this._inflate.close(),this._inflate=null,n(e);return}let i=s.concat(this._inflate[h],this._inflate[p]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[p]=0,this._inflate[h]=[],t&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),n(null,i)})}_compress(e,t,n){let r=this._isServer?`server`:`client`;if(!this._deflate){let e=`${r}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:o.Z_DEFAULT_WINDOWBITS;this._deflate=o.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[p]=0,this._deflate[h]=[],this._deflate.on(`data`,v)}this._deflate[m]=n,this._deflate.write(e),this._deflate.flush(o.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=s.concat(this._deflate[h],this._deflate[p]);t&&(e=new u(e.buffer,e.byteOffset,e.length-4)),this._deflate[m]=null,this._deflate[p]=0,this._deflate[h]=[],t&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}};function v(e){this[h].push(e),this[p]+=e.length}function y(e){if(this[p]+=e.length,this[f]._maxPayload<1||this[p]<=this[f]._maxPayload){this[h].push(e);return}this[g]=RangeError(`Max payload size exceeded`),this[g].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[g][l]=1009,this.removeListener(`data`,y),this.reset()}function b(e){if(this[f]._inflate=null,this[g]){this[m](this[g]);return}e[l]=1007,this[m](e)}})),s=n(((t,n)=>{let{isUtf8:i}=e(`buffer`),{hasBlob:a}=r(),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function c(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function l(e){return a&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(n.exports={isBlob:l,isValidStatusCode:s,isValidUTF8:c,tokenChars:o},i)n.exports.isValidUTF8=function(e){return e.length<24?c(e):i(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=e(`utf-8-validate`);n.exports.isValidUTF8=function(e){return e.length<32?c(e):t(e)}}catch{}})),c=n(((t,n)=>{let{Writable:a}=e(`stream`),c=o(),{BINARY_TYPES:l,EMPTY_BUFFER:u,kStatusCode:d,kWebSocket:f}=r(),{concat:p,toArrayBuffer:m,unmask:h}=i(),{isValidStatusCode:g,isValidUTF8:_}=s(),v=Buffer[Symbol.species];n.exports=class extends a{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||l[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[f]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new v(t.buffer,t.byteOffset+e,t.length-e),new v(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new v(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[c.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=u;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&h(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[c.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?p(n,t):this._binaryType===`arraybuffer`?m(p(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=p(n,t);if(!this._skipUTF8Validation&&!_(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,u),this.end();else{let n=e.readUInt16BE(0);if(!g(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new v(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!_(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[d]=r,a}}})),l=n(((t,n)=>{let{Duplex:a}=e(`stream`),{randomFillSync:c}=e(`crypto`),{types:{isUint8Array:l}}=e(`util`),u=o(),{EMPTY_BUFFER:d,kWebSocket:f,NOOP:p}=r(),{isBlob:m,isValidStatusCode:h}=s(),{mask:g,toBuffer:_}=i(),v=Symbol(`kByteLength`),y=Buffer.alloc(4),b=8*1024,x,S=b;n.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=p,this[f]=void 0}static frame(e,t){let n,r=!1,i=2,a=!1;t.mask&&(n=t.maskBuffer||y,t.generateMask?t.generateMask(n):(S===b&&(x===void 0&&(x=Buffer.alloc(b)),c(x,0,b),S=0),n[0]=x[S++],n[1]=x[S++],n[2]=x[S++],n[3]=x[S++]),a=(n[0]|n[1]|n[2]|n[3])===0,i=6);let o;typeof e==`string`?(!t.mask||a)&&t[v]!==void 0?o=t[v]:(e=Buffer.from(e),o=e.length):(o=e.length,r=t.mask&&t.readOnly&&!a);let s=o;o>=65536?(i+=8,s=127):o>125&&(i+=2,s=126);let l=Buffer.allocUnsafe(r?o+i:i);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=s,s===126?l.writeUInt16BE(o,2):s===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),!t.mask||(l[1]|=128,l[i-4]=n[0],l[i-3]=n[1],l[i-2]=n[2],l[i-1]=n[3],a)?[l,e]:r?(g(e,n,l,i,o),[l]):(g(e,n,e,0,o),[l,e])}close(t,n,r,i){let a;if(t===void 0)a=d;else if(typeof t!=`number`||!h(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)a=Buffer.allocUnsafe(2),a.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(a=Buffer.allocUnsafe(2+e),a.writeUInt16BE(t,0),typeof n==`string`)a.write(n,2);else if(l(n))a.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let o={[v]:a.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(a,o),i):this.enqueue([this.dispatch,a,!1,o,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):m(t)?(i=t.size,a=!1):(t=_(t),i=t.length,a=_.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[v]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};m(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):m(t)?(i=t.size,a=!1):(t=_(t),i=t.length,a=_.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[v]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};m(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[u.extensionName],i=t.binary?2:1,a=t.compress,o,s;typeof e==`string`?(o=Buffer.byteLength(e),s=!1):m(e)?(o=e.size,s=!1):(e=_(e),o=e.length,s=_.readOnly),this._firstFragment?(this._firstFragment=!1,a&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(a=o>=r._threshold),this._compress=a):(a=!1,i=0),t.fin&&(this._firstFragment=!0);let c={[v]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:s,rsv1:a};m(e)?this._state===0?this.getBlobData(e,this._compress,c,n):this.enqueue([this.getBlobData,e,this._compress,c,n]):this._state===0?this.dispatch(e,this._compress,c,n):this.enqueue([this.dispatch,e,this._compress,c,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[v],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(C,this,e,i);return}this._bufferedBytes-=r[v];let a=_(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(w,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let a=this._extensions[u.extensionName];this._bufferedBytes+=r[v],this._state=1,a.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);C(this,e,i);return}this._bufferedBytes-=r[v],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][v],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][v],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function C(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function w(e,t,n){C(e,t,n),e.onerror(t)}})),u=n(((e,t)=>{let{kForOnEventAttribute:n,kListener:i}=r(),a=Symbol(`kCode`),o=Symbol(`kData`),s=Symbol(`kError`),c=Symbol(`kMessage`),l=Symbol(`kReason`),u=Symbol(`kTarget`),d=Symbol(`kType`),f=Symbol(`kWasClean`);var p=class{constructor(e){this[u]=null,this[d]=e}get target(){return this[u]}get type(){return this[d]}};Object.defineProperty(p.prototype,"target",{enumerable:!0}),Object.defineProperty(p.prototype,"type",{enumerable:!0});var m=class extends p{constructor(e,t={}){super(e),this[a]=t.code===void 0?0:t.code,this[l]=t.reason===void 0?``:t.reason,this[f]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[a]}get reason(){return this[l]}get wasClean(){return this[f]}};Object.defineProperty(m.prototype,"code",{enumerable:!0}),Object.defineProperty(m.prototype,"reason",{enumerable:!0}),Object.defineProperty(m.prototype,"wasClean",{enumerable:!0});var h=class extends p{constructor(e,t={}){super(e),this[s]=t.error===void 0?null:t.error,this[c]=t.message===void 0?``:t.message}get error(){return this[s]}get message(){return this[c]}};Object.defineProperty(h.prototype,"error",{enumerable:!0}),Object.defineProperty(h.prototype,"message",{enumerable:!0});var g=class extends p{constructor(e,t={}){super(e),this[o]=t.data===void 0?null:t.data}get data(){return this[o]}};Object.defineProperty(g.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:m,ErrorEvent:h,Event:p,EventTarget:{addEventListener(e,t,r={}){for(let a of this.listeners(e))if(!r[n]&&a[i]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new g(`message`,{data:n?e:e.toString()});r[u]=this,_(t,this,r)};else if(e===`close`)a=function(e,n){let r=new m(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[u]=this,_(t,this,r)};else if(e===`error`)a=function(e){let n=new h(`error`,{error:e,message:e.message});n[u]=this,_(t,this,n)};else if(e===`open`)a=function(){let e=new p(`open`);e[u]=this,_(t,this,e)};else return;a[n]=!!r[n],a[i]=t,r.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let r of this.listeners(e))if(r[i]===t&&!r[n]){this.removeListener(e,r);break}}},MessageEvent:g};function _(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),d=n(((e,t)=>{let{tokenChars:n}=s();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),f=n(((t,n)=>{let a=e(`events`),f=e(`https`),p=e(`http`),m=e(`net`),h=e(`tls`),{randomBytes:g,createHash:_}=e(`crypto`),{Duplex:v,Readable:y}=e(`stream`),{URL:b}=e(`url`),x=o(),S=c(),C=l(),{isBlob:w}=s(),{BINARY_TYPES:T,CLOSE_TIMEOUT:E,EMPTY_BUFFER:D,GUID:O,kForOnEventAttribute:k,kListener:A,kStatusCode:j,kWebSocket:M,NOOP:N}=r(),{EventTarget:{addEventListener:P,removeEventListener:F}}=u(),{format:I,parse:L}=d(),{toBuffer:ee}=i(),te=Symbol(`kAborted`),R=[8,13],z=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],B=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var V=class e extends a{constructor(t,n,r){super(),this._binaryType=T[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=D,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),ne(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){T.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new S({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new C(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[M]=this,a[M]=this,t[M]=this,i.on(`conclude`,se),i.on(`drain`,ce),i.on(`error`,le),i.on(`message`,de),i.on(`ping`,fe),i.on(`pong`,pe),a.onerror=he,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,_e),t.on(`data`,ve),t.on(`end`,ye),t.on(`error`,be),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[x.extensionName]&&this._extensions[x.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){H(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),ge(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){oe(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||D,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){oe(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||D,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){oe(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[x.extensionName]||(i.compress=!1),this._sender.send(t||D,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){H(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(V,"CONNECTING",{enumerable:!0,value:z.indexOf(`CONNECTING`)}),Object.defineProperty(V.prototype,"CONNECTING",{enumerable:!0,value:z.indexOf(`CONNECTING`)}),Object.defineProperty(V,"OPEN",{enumerable:!0,value:z.indexOf(`OPEN`)}),Object.defineProperty(V.prototype,"OPEN",{enumerable:!0,value:z.indexOf(`OPEN`)}),Object.defineProperty(V,"CLOSING",{enumerable:!0,value:z.indexOf(`CLOSING`)}),Object.defineProperty(V.prototype,"CLOSING",{enumerable:!0,value:z.indexOf(`CLOSING`)}),Object.defineProperty(V,"CLOSED",{enumerable:!0,value:z.indexOf(`CLOSED`)}),Object.defineProperty(V.prototype,"CLOSED",{enumerable:!0,value:z.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(V.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(V.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[k])return t[A];return null},set(t){for(let t of this.listeners(e))if(t[k]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[k]:!0})}})}),V.prototype.addEventListener=P,V.prototype.removeEventListener=F,n.exports=V;function ne(e,t,n,r){let i={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:E,protocolVersion:R[1],maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,e._closeTimeout=i.closeTimeout,!R.includes(i.protocolVersion))throw RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${R.join(`, `)})`);let a;if(t instanceof b)a=t;else try{a=new b(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}a.protocol===`http:`?a.protocol=`ws:`:a.protocol===`https:`&&(a.protocol=`wss:`),e._url=a.href;let o=a.protocol===`wss:`,s=a.protocol===`ws+unix:`,c;if(a.protocol!==`ws:`&&!o&&!s?c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:s&&!a.pathname?c=`The URL's pathname is empty`:a.hash&&(c=`The URL contains a fragment identifier`),c){let t=SyntaxError(c);if(e._redirects===0)throw t;re(e,t);return}let l=o?443:80,u=g(16).toString(`base64`),d=o?f.request:p.request,m=new Set,h;if(i.createConnection=i.createConnection||(o?ae:ie),i.defaultPort=i.defaultPort||l,i.port=a.port||l,i.host=a.hostname.startsWith(`[`)?a.hostname.slice(1,-1):a.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":u,Connection:`Upgrade`,Upgrade:`websocket`},i.path=a.pathname+a.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(h=new x({...i.perMessageDeflate,isServer:!1,maxPayload:i.maxPayload}),i.headers[`Sec-WebSocket-Extensions`]=I({[x.extensionName]:h.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!B.test(e)||m.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);m.add(e)}i.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(i.origin&&(i.protocolVersion<13?i.headers[`Sec-WebSocket-Origin`]=i.origin:i.headers.Origin=i.origin),(a.username||a.password)&&(i.auth=`${a.username}:${a.password}`),s){let e=i.path.split(`:`);i.socketPath=e[0],i.path=e[1]}let v;if(i.followRedirects){if(e._redirects===0){e._originalIpc=s,e._originalSecure=o,e._originalHostOrSocketPath=s?i.socketPath:a.host;let t=r&&r.headers;if(r={...r,headers:{}},t)for(let[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=s?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:a.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!o)&&(delete i.headers.authorization,delete i.headers.cookie,t||delete i.headers.host,i.auth=void 0)}i.auth&&!r.headers.authorization&&(r.headers.authorization=`Basic `+Buffer.from(i.auth).toString(`base64`)),v=e._req=d(i),e._redirects&&e.emit(`redirect`,e.url,v)}else v=e._req=d(i);i.timeout&&v.on(`timeout`,()=>{H(e,v,`Opening handshake has timed out`)}),v.on(`error`,t=>{v===null||v[te]||(v=e._req=null,re(e,t))}),v.on(`response`,a=>{let o=a.headers.location,s=a.statusCode;if(o&&i.followRedirects&&s>=300&&s<400){if(++e._redirects>i.maxRedirects){H(e,v,`Maximum redirects exceeded`);return}v.abort();let a;try{a=new b(o,t)}catch{re(e,SyntaxError(`Invalid URL: ${o}`));return}ne(e,a,n,r)}else e.emit(`unexpected-response`,v,a)||H(e,v,`Unexpected server response: ${a.statusCode}`)}),v.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==V.CONNECTING)return;v=e._req=null;let a=t.headers.upgrade;if(a===void 0||a.toLowerCase()!==`websocket`){H(e,n,`Invalid Upgrade header`);return}let o=_(`sha1`).update(u+O).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==o){H(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],c;if(s===void 0?m.size&&(c=`Server sent no subprotocol`):m.size?m.has(s)||(c=`Server sent an invalid subprotocol`):c=`Server sent a subprotocol but none was requested`,c){H(e,n,c);return}s&&(e._protocol=s);let l=t.headers[`sec-websocket-extensions`];if(l!==void 0){if(!h){H(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=L(l)}catch{H(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==x.extensionName){H(e,n,`Server indicated an extension that was not requested`);return}try{h.accept(t[x.extensionName])}catch{H(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[x.extensionName]=h}e.setSocket(n,r,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxBufferedChunks:i.maxBufferedChunks,maxFragments:i.maxFragments,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest?i.finishRequest(v,e):v.end()}function re(e,t){e._readyState=V.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function ie(e){return e.path=e.socketPath,m.connect(e)}function ae(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=m.isIP(e.host)?``:e.host),h.connect(e)}function H(e,t,n){e._readyState=V.CLOSING;let r=Error(n);Error.captureStackTrace(r,H),t.setHeader?(t[te]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(re,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function oe(e,t,n){if(t){let n=w(t)?t.size:ee(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${z[e.readyState]})`);process.nextTick(n,t)}}function se(e,t){let n=this[M];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[M]!==void 0&&(n._socket.removeListener(`data`,ve),process.nextTick(me,n._socket),e===1005?n.close():n.close(e,t))}function ce(){let e=this[M];e.isPaused||e._socket.resume()}function le(e){let t=this[M];t._socket[M]!==void 0&&(t._socket.removeListener(`data`,ve),process.nextTick(me,t._socket),t.close(e[j])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function ue(){this[M].emitClose()}function de(e,t){this[M].emit(`message`,e,t)}function fe(e){let t=this[M];t._autoPong&&t.pong(e,!this._isServer,N),t.emit(`ping`,e)}function pe(e){this[M].emit(`pong`,e)}function me(e){e.resume()}function he(e){let t=this[M];t.readyState!==V.CLOSED&&(t.readyState===V.OPEN&&(t._readyState=V.CLOSING,ge(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function ge(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function _e(){let e=this[M];if(this.removeListener(`close`,_e),this.removeListener(`data`,ve),this.removeListener(`end`,ye),e._readyState=V.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[M]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,ue),e._receiver.on(`finish`,ue))}function ve(e){this[M]._receiver.write(e)||this.pause()}function ye(){let e=this[M];e._readyState=V.CLOSING,e._receiver.end(),this.end()}function be(){let e=this[M];this.removeListener(`error`,be),this.on(`error`,N),e&&(e._readyState=V.CLOSING,this.destroy())}})),p=n(((t,n)=>{f();let{Duplex:r}=e(`stream`);function i(e){e.emit(`close`)}function a(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener(`error`,o),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function s(e,t){let n=!0,s=new r({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(n=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,r){if(e.readyState===e.CLOSED){r(t),process.nextTick(i,s);return}let a=!1;e.once(`error`,function(e){a=!0,r(e)}),e.once(`close`,function(){a||r(t),process.nextTick(i,s)}),n&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,a),s.on(`error`,o),s}n.exports=s})),m=n(((e,t)=>{let{tokenChars:n}=s();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),h=n(((t,n)=>{let i=e(`events`),a=e(`http`),{Duplex:s}=e(`stream`),{createHash:c}=e(`crypto`),l=d(),u=o(),p=m(),h=f(),{CLOSE_TIMEOUT:g,GUID:_,kWebSocket:v}=r(),y=/^[+/0-9A-Za-z]{22}==$/;n.exports=class extends i{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:g,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:h,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=a.createServer((e,t)=>{let n=a.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=b(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(x,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(x,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{x(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,S);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,o=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){w(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){w(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!y.test(i)){w(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(o!==13&&o!==8){w(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){C(t,400);return}let s=e.headers[`sec-websocket-protocol`],c=new Set;if(s!==void 0)try{c=p.parse(s)}catch{w(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let d=e.headers[`sec-websocket-extensions`],f={};if(this.options.perMessageDeflate&&d!==void 0){let n=new u({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=l.parse(d);e[u.extensionName]&&(n.accept(e[u.extensionName]),f[u.extensionName]=n)}catch{w(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,l)=>{if(!a)return C(t,o||401,s,l);this.completeUpgrade(f,i,c,e,t,n,r)});return}if(!this.options.verifyClient(a))return C(t,401)}this.completeUpgrade(f,i,c,e,t,n,r)}completeUpgrade(e,t,n,r,i,a,o){if(!i.readable||!i.writable)return i.destroy();if(i[v])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return C(i,503);let s=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${c(`sha1`).update(t+_).digest(`base64`)}`],d=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(s.push(`Sec-WebSocket-Protocol: ${e}`),d._protocol=e)}if(e[u.extensionName]){let t=e[u.extensionName].params,n=l.format({[u.extensionName]:[t]});s.push(`Sec-WebSocket-Extensions: ${n}`),d._extensions=e}this.emit(`headers`,s,r),i.write(s.concat(`\r
|
|
4
4
|
`).join(`\r
|
|
5
|
-
`)),i.removeListener(`error`,S),d.setSocket(i,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(d),d.on(`close`,()=>{this.clients.delete(d),this._shouldEmitClose&&!this.clients.size&&process.nextTick(x,this)})),o(d,r)}};function b(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function x(e){e._state=2,e.emit(`close`)}function S(){this.destroy()}function C(e,t,n,r){n||=a.STATUS_CODES[t],r={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...r},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${a.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join(`\r
|
|
5
|
+
`)),i.removeListener(`error`,S),d.setSocket(i,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(d),d.on(`close`,()=>{this.clients.delete(d),this._shouldEmitClose&&!this.clients.size&&process.nextTick(x,this)})),o(d,r)}};function b(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function x(e){e._state=2,e.emit(`close`)}function S(){this.destroy()}function C(e,t,n,r){n||=a.STATUS_CODES[t],r={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...r},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${a.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join(`\r
|
|
6
6
|
`)+`\r
|
|
7
7
|
\r
|
|
8
|
-
`+n)}function w(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,w),e.emit(`wsClientError`,r,n,t)}else C(n,r,i,a)}}));p(),d(),o(),c(),l(),m();var g=t(f(),1);h();var _=g.default;const v=global;v.WebSocket||=_,v.window||=global,v.self||=global,v.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:`InternalApp`,isEnabled:!0,isValid:!0},{type:2,value:`InternalAppContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStdoutContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStderrContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStdinContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalFocusContext`,isEnabled:!0,isValid:!0}]
|
|
8
|
+
`+n)}function w(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,w),e.emit(`wsClientError`,r,n,t)}else C(n,r,i,a)}}));p(),d(),o(),c(),l(),m();var g=t(f(),1);h();var _=g.default;const v=global;v.WebSocket||=_,v.window||=global,v.self||=global,v.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:`InternalApp`,isEnabled:!0,isValid:!0},{type:2,value:`InternalAppContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStdoutContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStderrContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStdinContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalFocusContext`,isEnabled:!0,isValid:!0}]
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-debug-tools.production.js
|
|
@@ -15,7 +15,6 @@ import{i as e,o as t,t as n}from"./chunk-Bdh3yLIe.js";var r=n(((e,t)=>{let n=[`n
|
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}var i=n(206),a=n(189),o=Object.assign,s=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,c=Symbol.for(`react.context`),l=Symbol.for(`react.memo_cache_sentinel`),u=Object.prototype.hasOwnProperty,d=[],f=null;function p(){if(f===null){var e=new Map;try{if(b.useContext({_currentValue:null}),b.useState(null),b.useReducer(function(e){return e},null),b.useRef(null),typeof b.useCacheRefresh==`function`&&b.useCacheRefresh(),b.useLayoutEffect(function(){}),b.useInsertionEffect(function(){}),b.useEffect(function(){}),b.useImperativeHandle(void 0,function(){return null}),b.useDebugValue(null),b.useCallback(function(){}),b.useTransition(),b.useSyncExternalStore(function(){return function(){}},function(){return null},function(){return null}),b.useDeferredValue(null),b.useMemo(function(){return null}),b.useOptimistic(null,function(e){return e}),b.useFormState(function(e){return e},null),b.useActionState(function(e){return e},null),b.useHostTransitionStatus(),typeof b.useMemoCache==`function`&&b.useMemoCache(0),typeof b.use==`function`){b.use({$$typeof:c,_currentValue:null}),b.use({then:function(){},status:`fulfilled`,value:null});try{b.use({then:function(){}})}catch{}}b.useId(),typeof b.useEffectEvent==`function`&&b.useEffectEvent(function(){})}finally{var t=d;d=[]}for(var n=0;n<t.length;n++){var r=t[n];e.set(r.primitive,i.parse(r.stackError))}f=e}return f}var m=null,h=null,g=null;function _(){var e=h;return e!==null&&(h=e.next),e}function v(e){if(m===null)return e._currentValue;if(g===null)throw Error(`Context reads do not line up with context dependencies. This is a bug in React Debug Tools.`);return u.call(g,`memoizedValue`)?(e=g.memoizedValue,g=g.next):e=e._currentValue,e}var y=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),b={readContext:v,use:function(e){if(e!==null&&r(e)===`object`){if(typeof e.then==`function`){switch(e.status){case`fulfilled`:var t=e.value;return d.push({displayName:null,primitive:`Promise`,stackError:Error(),value:t,debugInfo:e._debugInfo===void 0?null:e._debugInfo,dispatcherHookName:`Use`}),t;case`rejected`:throw e.reason}throw d.push({displayName:null,primitive:`Unresolved`,stackError:Error(),value:e,debugInfo:e._debugInfo===void 0?null:e._debugInfo,dispatcherHookName:`Use`}),y}if(e.$$typeof===c)return t=v(e),d.push({displayName:e.displayName||`Context`,primitive:`Context (use)`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`Use`}),t}throw Error(`An unsupported type was passed to use(): `+String(e))},useCallback:function(e){var t=_();return d.push({displayName:null,primitive:`Callback`,stackError:Error(),value:t===null?e:t.memoizedState[0],debugInfo:null,dispatcherHookName:`Callback`}),e},useContext:function(e){var t=v(e);return d.push({displayName:e.displayName||null,primitive:`Context`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`Context`}),t},useEffect:function(e){_(),d.push({displayName:null,primitive:`Effect`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Effect`})},useImperativeHandle:function(e){_();var t=void 0;e!==null&&r(e)===`object`&&(t=e.current),d.push({displayName:null,primitive:`ImperativeHandle`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`ImperativeHandle`})},useLayoutEffect:function(e){_(),d.push({displayName:null,primitive:`LayoutEffect`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`LayoutEffect`})},useInsertionEffect:function(e){_(),d.push({displayName:null,primitive:`InsertionEffect`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`InsertionEffect`})},useMemo:function(e){var t=_();return e=t===null?e():t.memoizedState[0],d.push({displayName:null,primitive:`Memo`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Memo`}),e},useReducer:function(e,t,n){return e=_(),t=e===null?n===void 0?t:n(t):e.memoizedState,d.push({displayName:null,primitive:`Reducer`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`Reducer`}),[t,function(){}]},useRef:function(e){var t=_();return e=t===null?{current:e}:t.memoizedState,d.push({displayName:null,primitive:`Ref`,stackError:Error(),value:e.current,debugInfo:null,dispatcherHookName:`Ref`}),e},useState:function(e){var t=_();return e=t===null?typeof e==`function`?e():e:t.memoizedState,d.push({displayName:null,primitive:`State`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`State`}),[e,function(){}]},useDebugValue:function(e,t){d.push({displayName:null,primitive:`DebugValue`,stackError:Error(),value:typeof t==`function`?t(e):e,debugInfo:null,dispatcherHookName:`DebugValue`})},useDeferredValue:function(e){var t=_();return e=t===null?e:t.memoizedState,d.push({displayName:null,primitive:`DeferredValue`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`DeferredValue`}),e},useTransition:function(){var e=_();return _(),e=e===null?!1:e.memoizedState,d.push({displayName:null,primitive:`Transition`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Transition`}),[e,function(){}]},useSyncExternalStore:function(e,t){return _(),_(),e=t(),d.push({displayName:null,primitive:`SyncExternalStore`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`SyncExternalStore`}),e},useId:function(){var e=_();return e=e===null?``:e.memoizedState,d.push({displayName:null,primitive:`Id`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Id`}),e},useHostTransitionStatus:function(){var e=v({_currentValue:null});return d.push({displayName:null,primitive:`HostTransitionStatus`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`HostTransitionStatus`}),e},useFormState:function(e,t){var n=_();_(),_(),e=Error();var i=null,a=null;if(n!==null)if(t=n.memoizedState,r(t)===`object`&&t!==null&&typeof t.then==`function`)switch(t.status){case`fulfilled`:var o=t.value;i=t._debugInfo===void 0?null:t._debugInfo;break;case`rejected`:a=t.reason;break;default:a=y,i=t._debugInfo===void 0?null:t._debugInfo,o=t}else o=t;else o=t;if(d.push({displayName:null,primitive:`FormState`,stackError:e,value:o,debugInfo:i,dispatcherHookName:`FormState`}),a!==null)throw a;return[o,function(){},!1]},useActionState:function(e,t){var n=_();_(),_(),e=Error();var i=null,a=null;if(n!==null)if(t=n.memoizedState,r(t)===`object`&&t!==null&&typeof t.then==`function`)switch(t.status){case`fulfilled`:var o=t.value;i=t._debugInfo===void 0?null:t._debugInfo;break;case`rejected`:a=t.reason;break;default:a=y,i=t._debugInfo===void 0?null:t._debugInfo,o=t}else o=t;else o=t;if(d.push({displayName:null,primitive:`ActionState`,stackError:e,value:o,debugInfo:i,dispatcherHookName:`ActionState`}),a!==null)throw a;return[o,function(){},!1]},useOptimistic:function(e){var t=_();return e=t===null?e:t.memoizedState,d.push({displayName:null,primitive:`Optimistic`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Optimistic`}),[e,function(){}]},useMemoCache:function(e){var t=m;if(t==null||(t=t.updateQueue==null?null:t.updateQueue.memoCache,t==null))return[];var n=t.data[t.index];if(n===void 0){n=t.data[t.index]=Array(e);for(var r=0;r<e;r++)n[r]=l}return t.index++,n},useCacheRefresh:function(){var e=_();return d.push({displayName:null,primitive:`CacheRefresh`,stackError:Error(),value:e===null?function(){}:e.memoizedState,debugInfo:null,dispatcherHookName:`CacheRefresh`}),function(){}},useEffectEvent:function(e){return _(),d.push({displayName:null,primitive:`EffectEvent`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`EffectEvent`}),e}},x=typeof Proxy>`u`?b:new Proxy(b,{get:function(e,t){if(e.hasOwnProperty(t))return e[t];throw e=Error(`Missing method in Dispatcher: `+t),e.name=`ReactDebugToolsUnsupportedHookError`,e}}),S=0;function C(e,t,n){var r=t[n].source,i=0;a:for(;i<e.length;i++)if(e[i].source===r){for(var a=n+1,o=i+1;a<t.length&&o<e.length;a++,o++)if(e[o].source!==t[a].source)continue a;return i}return-1}function w(e,t){return e=T(e),t===`HostTransitionStatus`?e===t||e===`FormStatus`:e===t}function T(e){if(!e)return``;var t=e.lastIndexOf(`[as `);if(t!==-1)return T(e.slice(t+4,-1));if(t=e.lastIndexOf(`.`),t=t===-1?0:t+1,e.slice(t).startsWith(`unstable_`)&&(t+=9),e.slice(t).startsWith(`experimental_`)&&(t+=13),e.slice(t,t+3)===`use`){if(e.length-t===3)return`Use`;t+=3}return e.slice(t)}function E(e,t){for(var n=[],r=null,a=n,o=0,s=[],c=0;c<t.length;c++){var l=t[c],u=e,d=i.parse(l.stackError);b:{var f=d,m=C(f,u,S);if(m!==-1)u=m;else{for(var h=0;h<u.length&&5>h;h++)if(m=C(f,u,h),m!==-1){S=h,u=m;break b}u=-1}}b:{if(f=d,m=p().get(l.primitive),m!==void 0){for(h=0;h<m.length&&h<f.length;h++)if(m[h].source!==f[h].source){h<f.length-1&&w(f[h].functionName,l.dispatcherHookName)&&h++,h<f.length-1&&w(f[h].functionName,l.dispatcherHookName)&&h++,f=h;break b}}f=-1}if(d=u===-1||f===-1||2>u-f?f===-1?[null,null]:[d[f-1],null]:[d[f-1],d.slice(f,u-1)],f=d[0],d=d[1],u=l.displayName,u===null&&f!==null&&(u=T(f.functionName)||T(l.dispatcherHookName)),d!==null){if(f=0,r!==null){for(;f<d.length&&f<r.length&&d[d.length-f-1].source===r[r.length-f-1].source;)f++;for(r=r.length-1;r>f;r--)a=s.pop()}for(r=d.length-f-1;1<=r;r--)f=[],m=d[r],m={id:null,isStateEditable:!1,name:T(d[r-1].functionName),value:void 0,subHooks:f,debugInfo:null,hookSource:{lineNumber:m.lineNumber,columnNumber:m.columnNumber,functionName:m.functionName,fileName:m.fileName}},a.push(m),s.push(a),a=f;r=d}f=l.primitive,m=l.debugInfo,l={id:f===`Context`||f===`Context (use)`||f===`DebugValue`||f===`Promise`||f===`Unresolved`||f===`HostTransitionStatus`?null:o++,isStateEditable:f===`Reducer`||f===`State`,name:u||f,value:l.value,subHooks:[],debugInfo:m,hookSource:null},u={lineNumber:null,functionName:null,fileName:null,columnNumber:null},d&&1<=d.length&&(d=d[0],u.lineNumber=d.lineNumber,u.functionName=d.functionName,u.fileName=d.fileName,u.columnNumber=d.columnNumber),l.hookSource=u,a.push(l)}return D(n,null),n}function D(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i.name===`DebugValue`&&i.subHooks.length===0?(e.splice(r,1),r--,n.push(i)):D(i.subHooks,i)}t!==null&&(n.length===1?t.value=n[0].value:1<n.length&&(t.value=n.map(function(e){return e.value})))}function O(e){if(e!==y){if(e instanceof Error&&e.name===`ReactDebugToolsUnsupportedHookError`)throw e;var t=Error(`Error rendering inspected component`,{cause:e});throw t.name=`ReactDebugToolsRenderError`,t.cause=e,t}}function k(e,t,n){n??=s;var r=n.H;n.H=x;try{var a=Error();e(t)}catch(e){O(e)}finally{e=d,d=[],n.H=r}return n=i.parse(a),E(n,e)}function A(e){e.forEach(function(e,t){return t._currentValue=e})}t.inspectHooksOfFiber=function(e,t){if(t??=s,e.tag!==0&&e.tag!==15&&e.tag!==11)throw Error(`Unknown Fiber. Needs to be a function component to inspect hooks.`);if(p(),h=e.memoizedState,m=e,u.call(m,`dependencies`)){var n=m.dependencies;g=n===null?null:n.firstContext}else if(u.call(m,`dependencies_old`))n=m.dependencies_old,g=n===null?null:n.firstContext;else if(u.call(m,`dependencies_new`))n=m.dependencies_new,g=n===null?null:n.firstContext;else if(u.call(m,`contextDependencies`))n=m.contextDependencies,g=n===null?null:n.first;else throw Error(`Unsupported React version. This is a bug in React Debug Tools.`);n=e.type;var r=e.memoizedProps;if(n!==e.elementType&&n&&n.defaultProps){r=o({},r);var a=n.defaultProps;for(c in a)r[c]===void 0&&(r[c]=a[c])}var c=new Map;try{if(g!==null&&!u.call(g,`memoizedValue`))for(a=e;a;){if(a.tag===10){var l=a.type;l._context!==void 0&&(l=l._context),c.has(l)||(c.set(l,l._currentValue),l._currentValue=a.memoizedProps.value)}a=a.return}if(e.tag===11){var f=n.render;l=r;var _=e.ref;e=t;var v=e.H;e.H=x;try{var y=Error();f(l,_)}catch(e){O(e)}finally{var b=d;d=[],e.H=v}return E(i.parse(y),b)}return k(n,r,t)}finally{g=h=m=null,A(c)}}}),987:((e,t,n)=>{e.exports=n(786)}),126:((e,t,n)=>{var r=n(169);
|
|
19
18
|
/**
|
|
20
19
|
* @license React
|
|
21
20
|
* react.production.js
|
|
@@ -25,7 +24,7 @@ function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&type
|
|
|
25
24
|
* This source code is licensed under the MIT license found in the
|
|
26
25
|
* LICENSE file in the root directory of this source tree.
|
|
27
26
|
*/
|
|
28
|
-
function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}var a=Symbol.for(`react.transitional.element`),o=Symbol.for(`react.portal`),s=Symbol.for(`react.fragment`),c=Symbol.for(`react.strict_mode`),l=Symbol.for(`react.profiler`),u=Symbol.for(`react.consumer`),d=Symbol.for(`react.context`),f=Symbol.for(`react.forward_ref`),p=Symbol.for(`react.suspense`),m=Symbol.for(`react.suspense_list`),h=Symbol.for(`react.memo`),g=Symbol.for(`react.lazy`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.postpone`),y=Symbol.for(`react.view_transition`),b=Symbol.iterator;function x(e){return e===null||i(e)!==`object`?null:(e=b&&e[b]||e[`@@iterator`],typeof e==`function`?e:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function T(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if(i(e)!==`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function E(){}E.prototype=T.prototype;function D(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}var O=D.prototype=new E;O.constructor=D,C(O,T.prototype),O.isPureReactComponent=!0;var k=Array.isArray;function A(){}var j={H:null,A:null,T:null,S:null,G:null},M=Object.prototype.hasOwnProperty;function N(e,t,n,r,i,o){return n=o.ref,{$$typeof:a,type:e,key:t,ref:n===void 0?null:n,props:o}}function P(e,t){return N(e.type,t,void 0,void 0,void 0,e.props)}function F(e){return i(e)===`object`&&e!==null&&e.$$typeof===a}function I(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var L=/\/+/g;function ee(e,t){return i(e)===`object`&&e!==null&&e.key!=null?I(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(A,A):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function R(e,t,n,r,s){var c=i(e);(c===`undefined`||c===`boolean`)&&(e=null);var l=!1;if(e===null)l=!0;else switch(c){case`bigint`:case`string`:case`number`:l=!0;break;case`object`:switch(e.$$typeof){case a:case o:l=!0;break;case g:return l=e._init,R(l(e._payload),t,n,r,s)}}if(l)return s=s(e),l=r===``?`.`+ee(e,0):r,k(s)?(n=``,l!=null&&(n=l.replace(L,`$&/`)+`/`),R(s,t,n,``,function(e){return e})):s!=null&&(F(s)&&(s=P(s,n+(s.key==null||e&&e.key===s.key?``:(``+s.key).replace(L,`$&/`)+`/`)+l)),t.push(s)),1;l=0;var u=r===``?`.`:r+`:`;if(k(e))for(var d=0;d<e.length;d++)r=e[d],c=u+ee(r,d),l+=R(r,t,n,c,s);else if(d=x(e),typeof d==`function`)for(e=d.call(e),d=0;!(r=e.next()).done;)r=r.value,c=u+ee(r,d++),l+=R(r,t,n,c,s);else if(c===`object`){if(typeof e.then==`function`)return R(te(e),t,n,r,s);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return l}function z(e,t,n){if(e==null)return e;var r=[],i=0;return R(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function B(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}function V(e,t){return j.H.useOptimistic(e,t)}var ne=typeof reportError==`function`?reportError:function(e){if((typeof window>`u`?`undefined`:i(window))===`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:i(e)===`object`&&e!==null&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if((r===void 0?`undefined`:i(r))===`object`&&typeof r.emit==`function`){r.emit(`uncaughtException`,e);return}console.error(e)};function re(e){var t=j.T,n={};n.types=t===null?null:t.types,n.gesture=null,j.T=n;try{var r=e(),a=j.S;a!==null&&a(n,r),i(r)===`object`&&r!==null&&typeof r.then==`function`&&r.then(A,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),j.T=t}}function ie(e){var t=j.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else re(ie.bind(null,e))}t.Children={map:z,forEach:function(e,t,n){z(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return z(e,function(){t++}),t},toArray:function(e){return z(e,function(e){return e})||[]},only:function(e){if(!F(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},t.Component=T,t.Fragment=s,t.Profiler=l,t.PureComponent=D,t.StrictMode=c,t.Suspense=p,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return j.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=C({},e.props),i=e.key,a=void 0;if(t!=null)for(o in t.ref!==void 0&&(a=void 0),t.key!==void 0&&(i=``+t.key),t)!M.call(t,o)||o===`key`||o===`__self`||o===`__source`||o===`ref`&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];r.children=s}return N(e.type,i,void 0,void 0,a,r)},t.createContext=function(e){return e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:u,_context:e},e},t.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)M.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return N(e,a,void 0,void 0,null,i)},t.createRef=function(){return{current:null}},t.experimental_useEffectEvent=function(e){return j.H.useEffectEvent(e)},t.experimental_useOptimistic=function(e,t){return V(e,t)},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=F,t.lazy=function(e){return{$$typeof:g,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:t===void 0?null:t}},t.startTransition=re,t.unstable_Activity=_,t.unstable_SuspenseList=m,t.unstable_ViewTransition=y,t.unstable_addTransitionType=ie,t.unstable_getCacheForType=function(e){var t=j.A;return t?t.getCacheForType(e):e()},t.unstable_postpone=function(e){throw e=Error(e),e.$$typeof=v,e},t.unstable_startGestureTransition=function(e,t,n){if(e==null)throw Error(`A Timeline is required as the first argument to startGestureTransition.`);var r=j.T,i={types:null};i.gesture=e,j.T=i;try{t();var a=j.G;if(a!==null)return a(i,e,n)}catch(e){ne(e)}finally{j.T=r}return A},t.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},t.use=function(e){return j.H.use(e)},t.useActionState=function(e,t,n){return j.H.useActionState(e,t,n)},t.useCallback=function(e,t){return j.H.useCallback(e,t)},t.useContext=function(e){return j.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return j.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return j.H.useEffect(e,t)},t.useId=function(){return j.H.useId()},t.useImperativeHandle=function(e,t,n){return j.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.H.useMemo(e,t)},t.useOptimistic=V,t.useReducer=function(e,t,n){return j.H.useReducer(e,t,n)},t.useRef=function(e){return j.H.useRef(e)},t.useState=function(e){return j.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.H.useTransition()},t.version=`19.2.0-experimental-5d87cd22-20250704`}),189:((e,t,n)=>{e.exports=n(126)}),206:(function(e,t,n){var r,i,a;function o(e){"@babel/helpers - typeof";return o=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},o(e)}(function(o,s){i=[n(430)],r=s,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(this,function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
|
|
27
|
+
;var y=t(n(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.ReactDevToolsBackend=r():n.ReactDevToolsBackend=r()})(self,()=>(()=>{var e={786:((e,t,n)=>{function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}var i=n(206),a=n(189),o=Object.assign,s=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,c=Symbol.for(`react.context`),l=Symbol.for(`react.memo_cache_sentinel`),u=Object.prototype.hasOwnProperty,d=[],f=null;function p(){if(f===null){var e=new Map;try{if(b.useContext({_currentValue:null}),b.useState(null),b.useReducer(function(e){return e},null),b.useRef(null),typeof b.useCacheRefresh==`function`&&b.useCacheRefresh(),b.useLayoutEffect(function(){}),b.useInsertionEffect(function(){}),b.useEffect(function(){}),b.useImperativeHandle(void 0,function(){return null}),b.useDebugValue(null),b.useCallback(function(){}),b.useTransition(),b.useSyncExternalStore(function(){return function(){}},function(){return null},function(){return null}),b.useDeferredValue(null),b.useMemo(function(){return null}),b.useOptimistic(null,function(e){return e}),b.useFormState(function(e){return e},null),b.useActionState(function(e){return e},null),b.useHostTransitionStatus(),typeof b.useMemoCache==`function`&&b.useMemoCache(0),typeof b.use==`function`){b.use({$$typeof:c,_currentValue:null}),b.use({then:function(){},status:`fulfilled`,value:null});try{b.use({then:function(){}})}catch{}}b.useId(),typeof b.useEffectEvent==`function`&&b.useEffectEvent(function(){})}finally{var t=d;d=[]}for(var n=0;n<t.length;n++){var r=t[n];e.set(r.primitive,i.parse(r.stackError))}f=e}return f}var m=null,h=null,g=null;function _(){var e=h;return e!==null&&(h=e.next),e}function v(e){if(m===null)return e._currentValue;if(g===null)throw Error(`Context reads do not line up with context dependencies. This is a bug in React Debug Tools.`);return u.call(g,`memoizedValue`)?(e=g.memoizedValue,g=g.next):e=e._currentValue,e}var y=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),b={readContext:v,use:function(e){if(e!==null&&r(e)===`object`){if(typeof e.then==`function`){switch(e.status){case`fulfilled`:var t=e.value;return d.push({displayName:null,primitive:`Promise`,stackError:Error(),value:t,debugInfo:e._debugInfo===void 0?null:e._debugInfo,dispatcherHookName:`Use`}),t;case`rejected`:throw e.reason}throw d.push({displayName:null,primitive:`Unresolved`,stackError:Error(),value:e,debugInfo:e._debugInfo===void 0?null:e._debugInfo,dispatcherHookName:`Use`}),y}if(e.$$typeof===c)return t=v(e),d.push({displayName:e.displayName||`Context`,primitive:`Context (use)`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`Use`}),t}throw Error(`An unsupported type was passed to use(): `+String(e))},useCallback:function(e){var t=_();return d.push({displayName:null,primitive:`Callback`,stackError:Error(),value:t===null?e:t.memoizedState[0],debugInfo:null,dispatcherHookName:`Callback`}),e},useContext:function(e){var t=v(e);return d.push({displayName:e.displayName||null,primitive:`Context`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`Context`}),t},useEffect:function(e){_(),d.push({displayName:null,primitive:`Effect`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Effect`})},useImperativeHandle:function(e){_();var t=void 0;e!==null&&r(e)===`object`&&(t=e.current),d.push({displayName:null,primitive:`ImperativeHandle`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`ImperativeHandle`})},useLayoutEffect:function(e){_(),d.push({displayName:null,primitive:`LayoutEffect`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`LayoutEffect`})},useInsertionEffect:function(e){_(),d.push({displayName:null,primitive:`InsertionEffect`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`InsertionEffect`})},useMemo:function(e){var t=_();return e=t===null?e():t.memoizedState[0],d.push({displayName:null,primitive:`Memo`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Memo`}),e},useReducer:function(e,t,n){return e=_(),t=e===null?n===void 0?t:n(t):e.memoizedState,d.push({displayName:null,primitive:`Reducer`,stackError:Error(),value:t,debugInfo:null,dispatcherHookName:`Reducer`}),[t,function(){}]},useRef:function(e){var t=_();return e=t===null?{current:e}:t.memoizedState,d.push({displayName:null,primitive:`Ref`,stackError:Error(),value:e.current,debugInfo:null,dispatcherHookName:`Ref`}),e},useState:function(e){var t=_();return e=t===null?typeof e==`function`?e():e:t.memoizedState,d.push({displayName:null,primitive:`State`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`State`}),[e,function(){}]},useDebugValue:function(e,t){d.push({displayName:null,primitive:`DebugValue`,stackError:Error(),value:typeof t==`function`?t(e):e,debugInfo:null,dispatcherHookName:`DebugValue`})},useDeferredValue:function(e){var t=_();return e=t===null?e:t.memoizedState,d.push({displayName:null,primitive:`DeferredValue`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`DeferredValue`}),e},useTransition:function(){var e=_();return _(),e=e===null?!1:e.memoizedState,d.push({displayName:null,primitive:`Transition`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Transition`}),[e,function(){}]},useSyncExternalStore:function(e,t){return _(),_(),e=t(),d.push({displayName:null,primitive:`SyncExternalStore`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`SyncExternalStore`}),e},useId:function(){var e=_();return e=e===null?``:e.memoizedState,d.push({displayName:null,primitive:`Id`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Id`}),e},useHostTransitionStatus:function(){var e=v({_currentValue:null});return d.push({displayName:null,primitive:`HostTransitionStatus`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`HostTransitionStatus`}),e},useFormState:function(e,t){var n=_();_(),_(),e=Error();var i=null,a=null;if(n!==null)if(t=n.memoizedState,r(t)===`object`&&t!==null&&typeof t.then==`function`)switch(t.status){case`fulfilled`:var o=t.value;i=t._debugInfo===void 0?null:t._debugInfo;break;case`rejected`:a=t.reason;break;default:a=y,i=t._debugInfo===void 0?null:t._debugInfo,o=t}else o=t;else o=t;if(d.push({displayName:null,primitive:`FormState`,stackError:e,value:o,debugInfo:i,dispatcherHookName:`FormState`}),a!==null)throw a;return[o,function(){},!1]},useActionState:function(e,t){var n=_();_(),_(),e=Error();var i=null,a=null;if(n!==null)if(t=n.memoizedState,r(t)===`object`&&t!==null&&typeof t.then==`function`)switch(t.status){case`fulfilled`:var o=t.value;i=t._debugInfo===void 0?null:t._debugInfo;break;case`rejected`:a=t.reason;break;default:a=y,i=t._debugInfo===void 0?null:t._debugInfo,o=t}else o=t;else o=t;if(d.push({displayName:null,primitive:`ActionState`,stackError:e,value:o,debugInfo:i,dispatcherHookName:`ActionState`}),a!==null)throw a;return[o,function(){},!1]},useOptimistic:function(e){var t=_();return e=t===null?e:t.memoizedState,d.push({displayName:null,primitive:`Optimistic`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`Optimistic`}),[e,function(){}]},useMemoCache:function(e){var t=m;if(t==null||(t=t.updateQueue==null?null:t.updateQueue.memoCache,t==null))return[];var n=t.data[t.index];if(n===void 0){n=t.data[t.index]=Array(e);for(var r=0;r<e;r++)n[r]=l}return t.index++,n},useCacheRefresh:function(){var e=_();return d.push({displayName:null,primitive:`CacheRefresh`,stackError:Error(),value:e===null?function(){}:e.memoizedState,debugInfo:null,dispatcherHookName:`CacheRefresh`}),function(){}},useEffectEvent:function(e){return _(),d.push({displayName:null,primitive:`EffectEvent`,stackError:Error(),value:e,debugInfo:null,dispatcherHookName:`EffectEvent`}),e}},x=typeof Proxy>`u`?b:new Proxy(b,{get:function(e,t){if(e.hasOwnProperty(t))return e[t];throw e=Error(`Missing method in Dispatcher: `+t),e.name=`ReactDebugToolsUnsupportedHookError`,e}}),S=0;function C(e,t,n){var r=t[n].source,i=0;a:for(;i<e.length;i++)if(e[i].source===r){for(var a=n+1,o=i+1;a<t.length&&o<e.length;a++,o++)if(e[o].source!==t[a].source)continue a;return i}return-1}function w(e,t){return e=T(e),t===`HostTransitionStatus`?e===t||e===`FormStatus`:e===t}function T(e){if(!e)return``;var t=e.lastIndexOf(`[as `);if(t!==-1)return T(e.slice(t+4,-1));if(t=e.lastIndexOf(`.`),t=t===-1?0:t+1,e.slice(t).startsWith(`unstable_`)&&(t+=9),e.slice(t).startsWith(`experimental_`)&&(t+=13),e.slice(t,t+3)===`use`){if(e.length-t===3)return`Use`;t+=3}return e.slice(t)}function E(e,t){for(var n=[],r=null,a=n,o=0,s=[],c=0;c<t.length;c++){var l=t[c],u=e,d=i.parse(l.stackError);b:{var f=d,m=C(f,u,S);if(m!==-1)u=m;else{for(var h=0;h<u.length&&5>h;h++)if(m=C(f,u,h),m!==-1){S=h,u=m;break b}u=-1}}b:{if(f=d,m=p().get(l.primitive),m!==void 0){for(h=0;h<m.length&&h<f.length;h++)if(m[h].source!==f[h].source){h<f.length-1&&w(f[h].functionName,l.dispatcherHookName)&&h++,h<f.length-1&&w(f[h].functionName,l.dispatcherHookName)&&h++,f=h;break b}}f=-1}if(d=u===-1||f===-1||2>u-f?f===-1?[null,null]:[d[f-1],null]:[d[f-1],d.slice(f,u-1)],f=d[0],d=d[1],u=l.displayName,u===null&&f!==null&&(u=T(f.functionName)||T(l.dispatcherHookName)),d!==null){if(f=0,r!==null){for(;f<d.length&&f<r.length&&d[d.length-f-1].source===r[r.length-f-1].source;)f++;for(r=r.length-1;r>f;r--)a=s.pop()}for(r=d.length-f-1;1<=r;r--)f=[],m=d[r],m={id:null,isStateEditable:!1,name:T(d[r-1].functionName),value:void 0,subHooks:f,debugInfo:null,hookSource:{lineNumber:m.lineNumber,columnNumber:m.columnNumber,functionName:m.functionName,fileName:m.fileName}},a.push(m),s.push(a),a=f;r=d}f=l.primitive,m=l.debugInfo,l={id:f===`Context`||f===`Context (use)`||f===`DebugValue`||f===`Promise`||f===`Unresolved`||f===`HostTransitionStatus`?null:o++,isStateEditable:f===`Reducer`||f===`State`,name:u||f,value:l.value,subHooks:[],debugInfo:m,hookSource:null},u={lineNumber:null,functionName:null,fileName:null,columnNumber:null},d&&1<=d.length&&(d=d[0],u.lineNumber=d.lineNumber,u.functionName=d.functionName,u.fileName=d.fileName,u.columnNumber=d.columnNumber),l.hookSource=u,a.push(l)}return D(n,null),n}function D(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i.name===`DebugValue`&&i.subHooks.length===0?(e.splice(r,1),r--,n.push(i)):D(i.subHooks,i)}t!==null&&(n.length===1?t.value=n[0].value:1<n.length&&(t.value=n.map(function(e){return e.value})))}function O(e){if(e!==y){if(e instanceof Error&&e.name===`ReactDebugToolsUnsupportedHookError`)throw e;var t=Error(`Error rendering inspected component`,{cause:e});throw t.name=`ReactDebugToolsRenderError`,t.cause=e,t}}function k(e,t,n){n??=s;var r=n.H;n.H=x;try{var a=Error();e(t)}catch(e){O(e)}finally{e=d,d=[],n.H=r}return n=i.parse(a),E(n,e)}function A(e){e.forEach(function(e,t){return t._currentValue=e})}t.inspectHooksOfFiber=function(e,t){if(t??=s,e.tag!==0&&e.tag!==15&&e.tag!==11)throw Error(`Unknown Fiber. Needs to be a function component to inspect hooks.`);if(p(),h=e.memoizedState,m=e,u.call(m,`dependencies`)){var n=m.dependencies;g=n===null?null:n.firstContext}else if(u.call(m,`dependencies_old`))n=m.dependencies_old,g=n===null?null:n.firstContext;else if(u.call(m,`dependencies_new`))n=m.dependencies_new,g=n===null?null:n.firstContext;else if(u.call(m,`contextDependencies`))n=m.contextDependencies,g=n===null?null:n.first;else throw Error(`Unsupported React version. This is a bug in React Debug Tools.`);n=e.type;var r=e.memoizedProps;if(n!==e.elementType&&n&&n.defaultProps){r=o({},r);var a=n.defaultProps;for(c in a)r[c]===void 0&&(r[c]=a[c])}var c=new Map;try{if(g!==null&&!u.call(g,`memoizedValue`))for(a=e;a;){if(a.tag===10){var l=a.type;l._context!==void 0&&(l=l._context),c.has(l)||(c.set(l,l._currentValue),l._currentValue=a.memoizedProps.value)}a=a.return}if(e.tag===11){var f=n.render;l=r;var _=e.ref;e=t;var v=e.H;e.H=x;try{var y=Error();f(l,_)}catch(e){O(e)}finally{var b=d;d=[],e.H=v}return E(i.parse(y),b)}return k(n,r,t)}finally{g=h=m=null,A(c)}}}),987:((e,t,n)=>{e.exports=n(786)}),126:((e,t,n)=>{var r=n(169);function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}var a=Symbol.for(`react.transitional.element`),o=Symbol.for(`react.portal`),s=Symbol.for(`react.fragment`),c=Symbol.for(`react.strict_mode`),l=Symbol.for(`react.profiler`),u=Symbol.for(`react.consumer`),d=Symbol.for(`react.context`),f=Symbol.for(`react.forward_ref`),p=Symbol.for(`react.suspense`),m=Symbol.for(`react.suspense_list`),h=Symbol.for(`react.memo`),g=Symbol.for(`react.lazy`),_=Symbol.for(`react.activity`),v=Symbol.for(`react.postpone`),y=Symbol.for(`react.view_transition`),b=Symbol.iterator;function x(e){return e===null||i(e)!==`object`?null:(e=b&&e[b]||e[`@@iterator`],typeof e==`function`?e:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function T(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}T.prototype.isReactComponent={},T.prototype.setState=function(e,t){if(i(e)!==`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function E(){}E.prototype=T.prototype;function D(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||S}var O=D.prototype=new E;O.constructor=D,C(O,T.prototype),O.isPureReactComponent=!0;var k=Array.isArray;function A(){}var j={H:null,A:null,T:null,S:null,G:null},M=Object.prototype.hasOwnProperty;function N(e,t,n,r,i,o){return n=o.ref,{$$typeof:a,type:e,key:t,ref:n===void 0?null:n,props:o}}function P(e,t){return N(e.type,t,void 0,void 0,void 0,e.props)}function F(e){return i(e)===`object`&&e!==null&&e.$$typeof===a}function I(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var L=/\/+/g;function ee(e,t){return i(e)===`object`&&e!==null&&e.key!=null?I(``+e.key):t.toString(36)}function te(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(A,A):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function R(e,t,n,r,s){var c=i(e);(c===`undefined`||c===`boolean`)&&(e=null);var l=!1;if(e===null)l=!0;else switch(c){case`bigint`:case`string`:case`number`:l=!0;break;case`object`:switch(e.$$typeof){case a:case o:l=!0;break;case g:return l=e._init,R(l(e._payload),t,n,r,s)}}if(l)return s=s(e),l=r===``?`.`+ee(e,0):r,k(s)?(n=``,l!=null&&(n=l.replace(L,`$&/`)+`/`),R(s,t,n,``,function(e){return e})):s!=null&&(F(s)&&(s=P(s,n+(s.key==null||e&&e.key===s.key?``:(``+s.key).replace(L,`$&/`)+`/`)+l)),t.push(s)),1;l=0;var u=r===``?`.`:r+`:`;if(k(e))for(var d=0;d<e.length;d++)r=e[d],c=u+ee(r,d),l+=R(r,t,n,c,s);else if(d=x(e),typeof d==`function`)for(e=d.call(e),d=0;!(r=e.next()).done;)r=r.value,c=u+ee(r,d++),l+=R(r,t,n,c,s);else if(c===`object`){if(typeof e.then==`function`)return R(te(e),t,n,r,s);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return l}function z(e,t,n){if(e==null)return e;var r=[],i=0;return R(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function B(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}function V(e,t){return j.H.useOptimistic(e,t)}var ne=typeof reportError==`function`?reportError:function(e){if((typeof window>`u`?`undefined`:i(window))===`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:i(e)===`object`&&e!==null&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if((r===void 0?`undefined`:i(r))===`object`&&typeof r.emit==`function`){r.emit(`uncaughtException`,e);return}console.error(e)};function re(e){var t=j.T,n={};n.types=t===null?null:t.types,n.gesture=null,j.T=n;try{var r=e(),a=j.S;a!==null&&a(n,r),i(r)===`object`&&r!==null&&typeof r.then==`function`&&r.then(A,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),j.T=t}}function ie(e){var t=j.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else re(ie.bind(null,e))}t.Children={map:z,forEach:function(e,t,n){z(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return z(e,function(){t++}),t},toArray:function(e){return z(e,function(e){return e})||[]},only:function(e){if(!F(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},t.Component=T,t.Fragment=s,t.Profiler=l,t.PureComponent=D,t.StrictMode=c,t.Suspense=p,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return j.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=C({},e.props),i=e.key,a=void 0;if(t!=null)for(o in t.ref!==void 0&&(a=void 0),t.key!==void 0&&(i=``+t.key),t)!M.call(t,o)||o===`key`||o===`__self`||o===`__source`||o===`ref`&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];r.children=s}return N(e.type,i,void 0,void 0,a,r)},t.createContext=function(e){return e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:u,_context:e},e},t.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)M.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return N(e,a,void 0,void 0,null,i)},t.createRef=function(){return{current:null}},t.experimental_useEffectEvent=function(e){return j.H.useEffectEvent(e)},t.experimental_useOptimistic=function(e,t){return V(e,t)},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=F,t.lazy=function(e){return{$$typeof:g,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:t===void 0?null:t}},t.startTransition=re,t.unstable_Activity=_,t.unstable_SuspenseList=m,t.unstable_ViewTransition=y,t.unstable_addTransitionType=ie,t.unstable_getCacheForType=function(e){var t=j.A;return t?t.getCacheForType(e):e()},t.unstable_postpone=function(e){throw e=Error(e),e.$$typeof=v,e},t.unstable_startGestureTransition=function(e,t,n){if(e==null)throw Error(`A Timeline is required as the first argument to startGestureTransition.`);var r=j.T,i={types:null};i.gesture=e,j.T=i;try{t();var a=j.G;if(a!==null)return a(i,e,n)}catch(e){ne(e)}finally{j.T=r}return A},t.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},t.use=function(e){return j.H.use(e)},t.useActionState=function(e,t,n){return j.H.useActionState(e,t,n)},t.useCallback=function(e,t){return j.H.useCallback(e,t)},t.useContext=function(e){return j.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return j.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return j.H.useEffect(e,t)},t.useId=function(){return j.H.useId()},t.useImperativeHandle=function(e,t,n){return j.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.H.useMemo(e,t)},t.useOptimistic=V,t.useReducer=function(e,t,n){return j.H.useReducer(e,t,n)},t.useRef=function(e){return j.H.useRef(e)},t.useState=function(e){return j.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.H.useTransition()},t.version=`19.2.0-experimental-5d87cd22-20250704`}),189:((e,t,n)=>{e.exports=n(126)}),206:(function(e,t,n){var r,i,a;function o(e){"@babel/helpers - typeof";return o=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},o(e)}(function(o,s){i=[n(430)],r=s,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(this,function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
|
|
29
28
|
`).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf(`(eval `)>-1&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(\),.*$)/g,``));var n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/);n=r?n.replace(r[0],``):n;var i=n.split(/\s+/).slice(1),a=this.extractLocation(r?r[1]:i.pop());return new e({functionName:i.join(` `)||void 0,fileName:[`eval`,`<anonymous>`].indexOf(a[0])>-1?void 0:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split(`
|
|
30
29
|
`).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(` > eval`)>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),t.indexOf(`@`)===-1&&t.indexOf(`:`)===-1)return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,``));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
|
|
31
30
|
`)>-1&&e.message.split(`
|
|
@@ -33,7 +32,7 @@ function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&type
|
|
|
33
32
|
`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
|
|
34
33
|
`),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
|
|
35
34
|
`),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera11:function(n){return n.stack.split(`
|
|
36
|
-
`).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}})}),730:((e,t,n)=>{function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(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 a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var o=n(695),s=Symbol(`max`),c=Symbol(`length`),l=Symbol(`lengthCalculator`),u=Symbol(`allowStale`),d=Symbol(`maxAge`),f=Symbol(`dispose`),p=Symbol(`noDisposeOnSet`),m=Symbol(`lruList`),h=Symbol(`cache`),g=Symbol(`updateAgeOnGet`),_=function(){return 1},v=function(){function e(t){if(r(this,e),typeof t==`number`&&(t={max:t}),t||={},t.max&&(typeof t.max!=`number`||t.max<0))throw TypeError(`max must be a non-negative number`);this[s]=t.max||1/0;var n=t.length||_;if(this[l]=typeof n==`function`?n:_,this[u]=t.stale||!1,t.maxAge&&typeof t.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[d]=t.maxAge||0,this[f]=t.dispose,this[p]=t.noDisposeOnSet||!1,this[g]=t.updateAgeOnGet||!1,this.reset()}return a(e,[{key:`max`,get:function(){return this[s]},set:function(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[s]=e||1/0,x(this)}},{key:`allowStale`,get:function(){return this[u]},set:function(e){this[u]=!!e}},{key:`maxAge`,get:function(){return this[d]},set:function(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[d]=e,x(this)}},{key:`lengthCalculator`,get:function(){return this[l]},set:function(e){var t=this;typeof e!=`function`&&(e=_),e!==this[l]&&(this[l]=e,this[c]=0,this[m].forEach(function(e){e.length=t[l](e.value,e.key),t[c]+=e.length})),x(this)}},{key:`length`,get:function(){return this[c]}},{key:`itemCount`,get:function(){return this[m].length}},{key:`rforEach`,value:function(e,t){t||=this;for(var n=this[m].tail;n!==null;){var r=n.prev;w(this,e,n,t),n=r}}},{key:`forEach`,value:function(e,t){t||=this;for(var n=this[m].head;n!==null;){var r=n.next;w(this,e,n,t),n=r}}},{key:`keys`,value:function(){return this[m].toArray().map(function(e){return e.key})}},{key:`values`,value:function(){return this[m].toArray().map(function(e){return e.value})}},{key:`reset`,value:function(){var e=this;this[f]&&this[m]&&this[m].length&&this[m].forEach(function(t){return e[f](t.key,t.value)}),this[h]=new Map,this[m]=new o,this[c]=0}},{key:`dump`,value:function(){var e=this;return this[m].map(function(t){return b(e,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}).toArray().filter(function(e){return e})}},{key:`dumpLru`,value:function(){return this[m]}},{key:`set`,value:function(e,t,n){if(n||=this[d],n&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);var r=n?Date.now():0,i=this[l](t,e);if(this[h].has(e)){if(i>this[s])return S(this,this[h].get(e)),!1;var a=this[h].get(e).value;return this[f]&&(this[p]||this[f](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[c]+=i-a.length,a.length=i,this.get(e),x(this),!0}var o=new C(e,t,i,r,n);return o.length>this[s]?(this[f]&&this[f](e,t),!1):(this[c]+=o.length,this[m].unshift(o),this[h].set(e,this[m].head),x(this),!0)}},{key:`has`,value:function(e){if(!this[h].has(e))return!1;var t=this[h].get(e).value;return!b(this,t)}},{key:`get`,value:function(e){return y(this,e,!0)}},{key:`peek`,value:function(e){return y(this,e,!1)}},{key:`pop`,value:function(){var e=this[m].tail;return e?(S(this,e),e.value):null}},{key:`del`,value:function(e){S(this,this[h].get(e))}},{key:`load`,value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{var a=i-t;a>0&&this.set(r.k,r.v,a)}}}},{key:`prune`,value:function(){var e=this;this[h].forEach(function(t,n){return y(e,n,!1)})}}])}(),y=function(e,t,n){var r=e[h].get(t);if(r){var i=r.value;if(b(e,i)){if(S(e,r),!e[u])return}else n&&(e[g]&&(r.value.now=Date.now()),e[m].unshiftNode(r));return i.value}},b=function(e,t){if(!t||!t.maxAge&&!e[d])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]},x=function(e){if(e[c]>e[s])for(var t=e[m].tail;e[c]>e[s]&&t!==null;){var n=t.prev;S(e,t),t=n}},S=function(e,t){if(t){var n=t.value;e[f]&&e[f](n.key,n.value),e[c]-=n.length,e[h].delete(n.key),e[m].removeNode(t)}},C=a(function e(t,n,i,a,o){r(this,e),this.key=t,this.value=n,this.length=i,this.now=a,this.maxAge=o||0}),w=function(e,t,n,r){var i=n.value;b(e,i)&&(S(e,n),e[u]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=v}),169:(e=>{var t=e.exports={},n,r;function i(){throw Error(`setTimeout has not been defined`)}function a(){throw Error(`clearTimeout has not been defined`)}(function(){try{n=typeof setTimeout==`function`?setTimeout:i}catch{n=i}try{r=typeof clearTimeout==`function`?clearTimeout:a}catch{r=a}})();function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}function s(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch{try{return r.call(null,e)}catch{return r.call(this,e)}}}var c=[],l=!1,u,d=-1;function f(){!l||!u||(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=o(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,s(e)}}t.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),c.length===1&&!l&&o(p)};function m(e,t){this.fun=e,this.array=t}m.prototype.run=function(){this.fun.apply(null,this.array)},t.title=`browser`,t.browser=!0,t.env={},t.argv=[],t.version=``,t.versions={};function h(){}t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(e){return[]},t.binding=function(e){throw Error(`process.binding is not supported`)},t.cwd=function(){return`/`},t.chdir=function(e){throw Error(`process.chdir is not supported`)},t.umask=function(){return 0}}),430:(function(e,t){var n,r,i;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}(function(a,o){r=[],n=o,i=typeof n==`function`?n.apply(t,r):n,i!==void 0&&(e.exports=i)})(this,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},s.fromString=function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})};for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}}(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=function(e){return function(t){this[e]=String(t)}}(a[u]);return s})}),476:(e=>{e.exports=function(e){e.prototype[Symbol.iterator]=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case`end`:return e.stop()}},e,this)})}}),695:((e,t,n)=>{e.exports=r,r.Node=s,r.create=r;function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}r.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||=e,this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||=e,this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},r.prototype.map=function(e,t){t||=this;for(var n=new r,i=this.head;i!==null;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t||=this;for(var n=new r,i=this.tail;i!==null;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)n.push(a.value);return n},r.prototype.sliceReverse=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)n.push(a.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;r!==null&&n<e;n++)r=r.next;for(var a=[],n=0;r&&n<t;n++)a.push(r.value),r=this.removeNode(r);r===null&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(var n=2;n<arguments.length;n++)r=i(this,r,arguments[n]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function a(e,t){e.tail=new s(t,e.tail,null,e),e.head||=e.tail,e.length++}function o(e,t){e.head=new s(t,null,e.head,e),e.tail||=e.head,e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{n(476)(r)}catch{}})},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{connectToDevTools:()=>_s,connectWithCustomMessagingProtocol:()=>vs,initialize:()=>gs});function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(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 i(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function t(){e(this,t),a(this,`listenersMap`,new Map)}return i(t,[{key:`addListener`,value:function(e,t){var n=this.listenersMap.get(e);n===void 0?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}},{key:`emit`,value:function(e){var t=this.listenersMap.get(e);if(t!==void 0){var n=[...arguments].slice(1);if(t.length===1)t[0].apply(null,n);else{for(var r=!1,i=null,a=Array.from(t),o=0;o<a.length;o++){var s=a[o];try{s.apply(null,n)}catch(e){i===null&&(r=!0,i=e)}}if(r)throw i}}}},{key:`removeAllListeners`,value:function(){this.listenersMap.clear()}},{key:`removeListener`,value:function(e,t){var n=this.listenersMap.get(e);if(n!==void 0){var r=n.indexOf(t);r>=0&&n.splice(r,1)}}}])}(),s=!1,c=1,l=2,u=3,d=4,f=5,p=6,m=7,h=1,g=2,_=`React::DevTools::lastSelection`,v=`\x1B[2;38;2;124;124;124m%s\x1B[0m`,y=`\x1B[2;38;2;124;124;124m%s %o\x1B[0m`;function b(e){"@babel/helpers - typeof";return b=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},b(e)}function x(e,t){return E(e)||T(e,t)||C(e,t)||S()}function S(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35
|
+
`).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}})}),730:((e,t,n)=>{function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(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 a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var o=n(695),s=Symbol(`max`),c=Symbol(`length`),l=Symbol(`lengthCalculator`),u=Symbol(`allowStale`),d=Symbol(`maxAge`),f=Symbol(`dispose`),p=Symbol(`noDisposeOnSet`),m=Symbol(`lruList`),h=Symbol(`cache`),g=Symbol(`updateAgeOnGet`),_=function(){return 1},v=function(){function e(t){if(r(this,e),typeof t==`number`&&(t={max:t}),t||={},t.max&&(typeof t.max!=`number`||t.max<0))throw TypeError(`max must be a non-negative number`);this[s]=t.max||1/0;var n=t.length||_;if(this[l]=typeof n==`function`?n:_,this[u]=t.stale||!1,t.maxAge&&typeof t.maxAge!=`number`)throw TypeError(`maxAge must be a number`);this[d]=t.maxAge||0,this[f]=t.dispose,this[p]=t.noDisposeOnSet||!1,this[g]=t.updateAgeOnGet||!1,this.reset()}return a(e,[{key:`max`,get:function(){return this[s]},set:function(e){if(typeof e!=`number`||e<0)throw TypeError(`max must be a non-negative number`);this[s]=e||1/0,x(this)}},{key:`allowStale`,get:function(){return this[u]},set:function(e){this[u]=!!e}},{key:`maxAge`,get:function(){return this[d]},set:function(e){if(typeof e!=`number`)throw TypeError(`maxAge must be a non-negative number`);this[d]=e,x(this)}},{key:`lengthCalculator`,get:function(){return this[l]},set:function(e){var t=this;typeof e!=`function`&&(e=_),e!==this[l]&&(this[l]=e,this[c]=0,this[m].forEach(function(e){e.length=t[l](e.value,e.key),t[c]+=e.length})),x(this)}},{key:`length`,get:function(){return this[c]}},{key:`itemCount`,get:function(){return this[m].length}},{key:`rforEach`,value:function(e,t){t||=this;for(var n=this[m].tail;n!==null;){var r=n.prev;w(this,e,n,t),n=r}}},{key:`forEach`,value:function(e,t){t||=this;for(var n=this[m].head;n!==null;){var r=n.next;w(this,e,n,t),n=r}}},{key:`keys`,value:function(){return this[m].toArray().map(function(e){return e.key})}},{key:`values`,value:function(){return this[m].toArray().map(function(e){return e.value})}},{key:`reset`,value:function(){var e=this;this[f]&&this[m]&&this[m].length&&this[m].forEach(function(t){return e[f](t.key,t.value)}),this[h]=new Map,this[m]=new o,this[c]=0}},{key:`dump`,value:function(){var e=this;return this[m].map(function(t){return b(e,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}).toArray().filter(function(e){return e})}},{key:`dumpLru`,value:function(){return this[m]}},{key:`set`,value:function(e,t,n){if(n||=this[d],n&&typeof n!=`number`)throw TypeError(`maxAge must be a number`);var r=n?Date.now():0,i=this[l](t,e);if(this[h].has(e)){if(i>this[s])return S(this,this[h].get(e)),!1;var a=this[h].get(e).value;return this[f]&&(this[p]||this[f](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[c]+=i-a.length,a.length=i,this.get(e),x(this),!0}var o=new C(e,t,i,r,n);return o.length>this[s]?(this[f]&&this[f](e,t),!1):(this[c]+=o.length,this[m].unshift(o),this[h].set(e,this[m].head),x(this),!0)}},{key:`has`,value:function(e){if(!this[h].has(e))return!1;var t=this[h].get(e).value;return!b(this,t)}},{key:`get`,value:function(e){return y(this,e,!0)}},{key:`peek`,value:function(e){return y(this,e,!1)}},{key:`pop`,value:function(){var e=this[m].tail;return e?(S(this,e),e.value):null}},{key:`del`,value:function(e){S(this,this[h].get(e))}},{key:`load`,value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(i===0)this.set(r.k,r.v);else{var a=i-t;a>0&&this.set(r.k,r.v,a)}}}},{key:`prune`,value:function(){var e=this;this[h].forEach(function(t,n){return y(e,n,!1)})}}])}(),y=function(e,t,n){var r=e[h].get(t);if(r){var i=r.value;if(b(e,i)){if(S(e,r),!e[u])return}else n&&(e[g]&&(r.value.now=Date.now()),e[m].unshiftNode(r));return i.value}},b=function(e,t){if(!t||!t.maxAge&&!e[d])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]},x=function(e){if(e[c]>e[s])for(var t=e[m].tail;e[c]>e[s]&&t!==null;){var n=t.prev;S(e,t),t=n}},S=function(e,t){if(t){var n=t.value;e[f]&&e[f](n.key,n.value),e[c]-=n.length,e[h].delete(n.key),e[m].removeNode(t)}},C=a(function e(t,n,i,a,o){r(this,e),this.key=t,this.value=n,this.length=i,this.now=a,this.maxAge=o||0}),w=function(e,t,n,r){var i=n.value;b(e,i)&&(S(e,n),e[u]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=v}),169:(e=>{var t=e.exports={},n,r;function i(){throw Error(`setTimeout has not been defined`)}function a(){throw Error(`clearTimeout has not been defined`)}(function(){try{n=typeof setTimeout==`function`?setTimeout:i}catch{n=i}try{r=typeof clearTimeout==`function`?clearTimeout:a}catch{r=a}})();function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch{try{return n.call(null,e,0)}catch{return n.call(this,e,0)}}}function s(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch{try{return r.call(null,e)}catch{return r.call(this,e)}}}var c=[],l=!1,u,d=-1;function f(){!l||!u||(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=o(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,s(e)}}t.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),c.length===1&&!l&&o(p)};function m(e,t){this.fun=e,this.array=t}m.prototype.run=function(){this.fun.apply(null,this.array)},t.title=`browser`,t.browser=!0,t.env={},t.argv=[],t.version=``,t.versions={};function h(){}t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(e){return[]},t.binding=function(e){throw Error(`process.binding is not supported`)},t.cwd=function(){return`/`},t.chdir=function(e){throw Error(`process.chdir is not supported`)},t.umask=function(){return 0}}),430:(function(e,t){var n,r,i;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}(function(a,o){r=[],n=o,i=typeof n==`function`?n.apply(t,r):n,i!==void 0&&(e.exports=i)})(this,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},s.fromString=function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})};for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=function(e){return function(t){this[e]=!!t}}(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}}(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=function(e){return function(t){this[e]=String(t)}}(a[u]);return s})}),476:(e=>{e.exports=function(e){e.prototype[Symbol.iterator]=regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case`end`:return e.stop()}},e,this)})}}),695:((e,t,n)=>{e.exports=r,r.Node=s,r.create=r;function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach==`function`)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}r.prototype.removeNode=function(e){if(e.list!==this)throw Error(`removing node which does not belong to this list`);var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||=e,this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||=e,this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t||=this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t||=this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value},r.prototype.map=function(e,t){t||=this;for(var n=new r,i=this.head;i!==null;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t||=this;for(var n=new r,i=this.tail;i!==null;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw TypeError(`Reduce of empty list with no initial value`);for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)n.push(a.value);return n},r.prototype.sliceReverse=function(e,t){t||=this.length,t<0&&(t+=this.length),e||=0,e<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)n.push(a.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;r!==null&&n<e;n++)r=r.next;for(var a=[],n=0;r&&n<t;n++)a.push(r.value),r=this.removeNode(r);r===null&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(var n=2;n<arguments.length;n++)r=i(this,r,arguments[n]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function a(e,t){e.tail=new s(t,e.tail,null,e),e.head||=e.tail,e.length++}function o(e,t){e.head=new s(t,null,e.head,e),e.tail||=e.head,e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{n(476)(r)}catch{}})},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{connectToDevTools:()=>_s,connectWithCustomMessagingProtocol:()=>vs,initialize:()=>gs});function e(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function t(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 i(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(){function t(){e(this,t),a(this,`listenersMap`,new Map)}return i(t,[{key:`addListener`,value:function(e,t){var n=this.listenersMap.get(e);n===void 0?this.listenersMap.set(e,[t]):n.indexOf(t)<0&&n.push(t)}},{key:`emit`,value:function(e){var t=this.listenersMap.get(e);if(t!==void 0){var n=[...arguments].slice(1);if(t.length===1)t[0].apply(null,n);else{for(var r=!1,i=null,a=Array.from(t),o=0;o<a.length;o++){var s=a[o];try{s.apply(null,n)}catch(e){i===null&&(r=!0,i=e)}}if(r)throw i}}}},{key:`removeAllListeners`,value:function(){this.listenersMap.clear()}},{key:`removeListener`,value:function(e,t){var n=this.listenersMap.get(e);if(n!==void 0){var r=n.indexOf(t);r>=0&&n.splice(r,1)}}}])}(),s=!1,c=1,l=2,u=3,d=4,f=5,p=6,m=7,h=1,g=2,_=`React::DevTools::lastSelection`,v=`\x1B[2;38;2;124;124;124m%s\x1B[0m`,y=`\x1B[2;38;2;124;124;124m%s %o\x1B[0m`;function b(e){"@babel/helpers - typeof";return b=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},b(e)}function x(e,t){return E(e)||T(e,t)||C(e,t)||S()}function S(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
37
36
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(e,t){if(e){if(typeof e==`string`)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}}function w(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function E(e){if(Array.isArray(e))return e}var D=function(e,t){var n=k(e),r=k(t),i=n.pop(),a=r.pop(),o=P(n,r);return o===0?i&&a?P(i.split(`.`),a.split(`.`)):i||a?i?-1:1:0:o},O=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,k=function(e){if(typeof e!=`string`)throw TypeError(`Invalid argument expected string`);var t=e.match(O);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},A=function(e){return e===`*`||e===`x`||e===`X`},j=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},M=function(e,t){return b(e)===b(t)?[e,t]:[String(e),String(t)]},N=function(e,t){if(A(e)||A(t))return 0;var n=x(M(j(e),j(t)),2),r=n[0],i=n[1];return r>i?1:r<i?-1:0},P=function(e,t){for(var n=0;n<Math.max(e.length,t.length);n++){var r=N(e[n]||`0`,t[n]||`0`);if(r!==0)return r}return 0},F=n(730),I=n.n(F),L=!0;function ee(e){"@babel/helpers - typeof";return ee=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ee(e)}var te=Symbol.for(`react.element`),R=L?Symbol.for(`react.transitional.element`):te,z=Symbol.for(`react.portal`),B=Symbol.for(`react.fragment`),V=Symbol.for(`react.strict_mode`),ne=Symbol.for(`react.profiler`),re=Symbol.for(`react.consumer`),ie=Symbol.for(`react.context`),ae=Symbol.for(`react.forward_ref`),H=Symbol.for(`react.suspense`),oe=Symbol.for(`react.suspense_list`),se=Symbol.for(`react.memo`),ce=Symbol.for(`react.lazy`),le=Symbol.for(`react.tracing_marker`),ue=Symbol.for(`react.view_transition`),de=1,fe=2,pe=5,me=6,he=7,ge=8,_e=9,ve=10,ye=11,be=12,xe=13,Se=14,Ce=15,we=16,Te=17,Ee=1,De=2,Oe=3,ke=4,Ae=5,je=1;let Me=Array.isArray;n(169);function Ne(e){"@babel/helpers - typeof";return Ne=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ne(e)}function Pe(e){return Re(e)||Le(e)||Ie(e)||Fe()}function Fe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
38
37
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ie(e,t){if(e){if(typeof e==`string`)return ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ze(e,t)}}function Le(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Re(e){if(Array.isArray(e))return ze(e)}function ze(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Be=Object.prototype.hasOwnProperty,Ve=new WeakMap,He=new(I())({max:1e3}),Ue=Symbol.for(`react.provider`);function We(e,t){return e.toString()>t.toString()?1:t.toString()>e.toString()?-1:0}function Ge(e){for(var t=new Set,n=e,r=function(){var e=[].concat(Pe(Object.keys(n)),Pe(Object.getOwnPropertySymbols(n))),r=Object.getOwnPropertyDescriptors(n);e.forEach(function(e){r[e].enumerable&&t.add(e)}),n=Object.getPrototypeOf(n)};n!=null;)r();return t}function Ke(e,t,n,r){return e?.displayName||`${n}(${qe(t,r)})`}function qe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Anonymous`,n=Ve.get(e);if(n!=null)return n;var r=t;return typeof e.displayName==`string`?r=e.displayName:typeof e.name==`string`&&e.name!==``&&(r=e.name),Ve.set(e,r),r}var Je=0;function Ye(){return++Je}function Xe(e,t,n){for(var r=``,i=t;i<=n;i++)r+=String.fromCodePoint(e[i]);return r}function Ze(e,t){return((e&1023)<<10)+(t&1023)+65536}function Qe(e){var t=He.get(e);if(t!==void 0)return t;for(var n=[],r=0,i;r<e.length;)i=e.charCodeAt(r),(i&63488)==55296?n.push(Ze(i,e.charCodeAt(++r))):n.push(i),++r;return He.set(e,n),n}function $e(e){for(var t=e[0],n=e[1],r=[`operations for renderer:${t} and root:${n}`],i=2,a=[null],o=e[i++],s=i+o;i<s;){var h=e[i++],g=Xe(e,i,i+h-1);a.push(g),i+=h}for(;i<e.length;){var _=e[i];switch(_){case c:var v=e[i+1],y=e[i+2];if(i+=3,y===ye)r.push(`Add new root node ${v}`),i++,i++,i++,i++;else{var b=e[i];i++,i++;var x=a[e[i]];i++,i++,r.push(`Add node ${v} (${x||`null`}) as child of ${b}`)}break;case l:var S=e[i+1];i+=2;for(var C=0;C<S;C++){var w=e[i];i+=1,r.push(`Remove node ${w}`)}break;case p:i+=1,r.push(`Remove root ${n}`);break;case m:var T=e[i+1],E=e[i+1];i+=3,r.push(`Mode ${E} set for subtree with root ${T}`);break;case u:var D=e[i+1],O=e[i+2];i+=3;var k=e.slice(i,i+O);i+=O,r.push(`Re-order node ${D} children ${k.join(`,`)}`);break;case d:i+=3;break;case f:var A=e[i+1],j=e[i+2],M=e[i+3];i+=4,r.push(`Node ${A} has ${j} errors and ${M} warnings`);break;default:throw Error(`Unsupported Bridge operation "${_}"`)}}console.log(r.join(`
|
|
39
38
|
`))}function et(){return[{type:Ee,value:he,isEnabled:!0}]}function tt(e){return Array.isArray(e)?e.filter(function(e){return e.type!==Oe}):e}function nt(e,t){if(e===null)return{formattedDisplayName:null,hocDisplayNames:null,compiledWithForget:!1};if(e.startsWith(`Forget(`)){var n=nt(e.slice(7,e.length-1),t);return{formattedDisplayName:n.formattedDisplayName,hocDisplayNames:n.hocDisplayNames,compiledWithForget:!0}}var r=null;switch(t){case ElementTypeClass:case ElementTypeForwardRef:case ElementTypeFunction:case ElementTypeMemo:case ElementTypeVirtual:if(e.indexOf(`(`)>=0){var i=e.match(/[^()]+/g);i!=null&&(e=i.pop(),r=i)}break;default:break}return{formattedDisplayName:e,hocDisplayNames:r,compiledWithForget:!1}}function rt(e,t){return t.reduce(function(e,t){if(e){if(Be.call(e,t))return e[t];if(typeof e[Symbol.iterator]==`function`)return Array.from(e)[t]}return null},e)}function it(e,t){var n=t.length,r=t[n-1];if(e!=null){var i=rt(e,t.slice(0,n-1));i&&(Me(i)?i.splice(r,1):delete i[r])}}function at(e,t,n){var r=t.length;if(e!=null){var i=rt(e,t.slice(0,r-1));if(i){var a=t[r-1],o=n[r-1];i[o]=i[a],Me(i)?i.splice(a,1):delete i[a]}}}function ot(e,t,n){var r=t.length,i=t[r-1];if(e!=null){var a=rt(e,t.slice(0,r-1));a&&(a[i]=n)}}function st(e){if(`name`in e&&`message`in e)for(;e;){if(Object.prototype.toString.call(e)===`[object Error]`)return!0;e=Object.getPrototypeOf(e)}return!1}function ct(e){if(e===null)return`null`;if(e===void 0)return`undefined`;if(typeof HTMLElement<`u`&&e instanceof HTMLElement)return`html_element`;switch(Ne(e)){case`bigint`:return`bigint`;case`boolean`:return`boolean`;case`function`:return`function`;case`number`:return Number.isNaN(e)?`nan`:Number.isFinite(e)?`number`:`infinity`;case`object`:if(e.$$typeof===R||e.$$typeof===te)return`react_element`;if(Me(e))return`array`;if(ArrayBuffer.isView(e))return Be.call(e.constructor,`BYTES_PER_ELEMENT`)?`typed_array`:`data_view`;if(e.constructor&&e.constructor.name===`ArrayBuffer`)return`array_buffer`;if(typeof e[Symbol.iterator]==`function`){var t=e[Symbol.iterator]();if(t)return t===e?`opaque_iterator`:`iterator`}else if(e.constructor&&e.constructor.name===`RegExp`)return`regexp`;else if(typeof e.then==`function`)return`thenable`;else if(st(e))return`error`;else{var n=Object.prototype.toString.call(e);if(n===`[object Date]`)return`date`;if(n===`[object HTMLAllCollection]`)return`html_all_collection`}return pt(e)?`object`:`class_instance`;case`string`:return`string`;case`symbol`:return`symbol`;case`undefined`:return Object.prototype.toString.call(e)===`[object HTMLAllCollection]`?`html_all_collection`:`undefined`;default:return`unknown`}}function lt(e){if(Ne(e)===`object`&&e!==null){var t=e.$$typeof;switch(t){case R:case te:var n=e.type;switch(n){case B:case ne:case V:case H:case oe:case ue:return n;default:var r=n&&n.$$typeof;switch(r){case ie:case ae:case ce:case se:return r;case re:return r;default:return t}}case z:return t}}}function ut(e){switch(lt(e)){case re:return`ContextConsumer`;case Ue:return`ContextProvider`;case ie:return`Context`;case ae:return`ForwardRef`;case B:return`Fragment`;case ce:return`Lazy`;case se:return`Memo`;case z:return`Portal`;case ne:return`Profiler`;case V:return`StrictMode`;case H:return`Suspense`;case oe:return`SuspenseList`;case ue:return`ViewTransition`;case le:return`TracingMarker`;default:var t=e.type;return typeof t==`string`?t:typeof t==`function`?qe(t,`Anonymous`):t==null?`Element`:`NotImplementedInDevtools`}}var dt=50;function ft(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt;return e.length>t?e.slice(0,t)+`…`:e}function U(e,t){if(e!=null&&Be.call(e,gt.type))return t?e[gt.preview_long]:e[gt.preview_short];switch(ct(e)){case`html_element`:return`<${ft(e.tagName.toLowerCase())} />`;case`function`:return typeof e.name==`function`||e.name===``?`() => {}`:`${ft(e.name)}() {}`;case`string`:return`"${e}"`;case`bigint`:return ft(e.toString()+`n`);case`regexp`:return ft(e.toString());case`symbol`:return ft(e.toString());case`react_element`:return`<${ft(ut(e)||`Unknown`)} />`;case`array_buffer`:return`ArrayBuffer(${e.byteLength})`;case`data_view`:return`DataView(${e.buffer.byteLength})`;case`array`:if(t){for(var n=``,r=0;r<e.length&&(r>0&&(n+=`, `),n+=U(e[r],!1),!(n.length>dt));r++);return`[${ft(n)}]`}else return`Array(${Be.call(e,gt.size)?e[gt.size]:e.length})`;case`typed_array`:var i=`${e.constructor.name}(${e.length})`;if(t){for(var a=``,o=0;o<e.length&&(o>0&&(a+=`, `),a+=e[o],!(a.length>dt));o++);return`${i} [${ft(a)}]`}else return i;case`iterator`:var s=e.constructor.name;if(t){for(var c=Array.from(e),l=``,u=0;u<c.length;u++){var d=c[u];if(u>0&&(l+=`, `),Me(d)){var f=U(d[0],!0),p=U(d[1],!1);l+=`${f} => ${p}`}else l+=U(d,!1);if(l.length>dt)break}return`${s}(${e.size}) {${ft(l)}}`}else return`${s}(${e.size})`;case`opaque_iterator`:return e[Symbol.toStringTag];case`date`:return e.toString();case`class_instance`:try{var m=e.constructor.name;if(typeof m==`string`||(m=Object.getPrototypeOf(e).constructor.name,typeof m==`string`))return m;try{return ft(String(e))}catch{return`unserializable`}}catch{return`unserializable`}case`thenable`:var h;if(pt(e))h=`Thenable`;else{var g=e.constructor.name;typeof g!=`string`&&(g=Object.getPrototypeOf(e).constructor.name),h=typeof g==`string`?g:`Thenable`}switch(e.status){case`pending`:return`pending ${h}`;case`fulfilled`:if(t){var _=U(e.value,!1);return`fulfilled ${h} {${ft(_)}}`}else return`fulfilled ${h} {…}`;case`rejected`:if(t){var v=U(e.reason,!1);return`rejected ${h} {${ft(v)}}`}else return`rejected ${h} {…}`;default:return h}case`object`:if(t){for(var y=Array.from(Ge(e)).sort(We),b=``,x=0;x<y.length;x++){var S=y[x];if(x>0&&(b+=`, `),b+=`${S.toString()}: ${U(e[S],!1)}`,b.length>dt)break}return`{${ft(b)}}`}else return`{…}`;case`error`:return ft(String(e));case`boolean`:case`number`:case`infinity`:case`nan`:case`null`:case`undefined`:return String(e);default:try{return ft(String(e))}catch{return`unserializable`}}}var pt=function(e){var t=Object.getPrototypeOf(e);return t?!Object.getPrototypeOf(t):!0};function mt(){var e=!1;try{localStorage.getItem(`test`),e=!0}catch{}return e&&Kt()}function ht(e){"@babel/helpers - typeof";return ht=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ht(e)}var gt={inspectable:Symbol(`inspectable`),inspected:Symbol(`inspected`),name:Symbol(`name`),preview_long:Symbol(`preview_long`),preview_short:Symbol(`preview_short`),readonly:Symbol(`readonly`),size:Symbol(`size`),type:Symbol(`type`),unserializable:Symbol(`unserializable`)},_t=2;function vt(e,t,n,r,i){r.push(i);var a={inspectable:t,type:e,preview_long:U(n,!0),preview_short:U(n,!1),name:typeof n.constructor!=`function`||typeof n.constructor.name!=`string`||n.constructor.name===`Object`?``:n.constructor.name};return e===`array`||e===`typed_array`?a.size=n.length:e===`object`&&(a.size=Object.keys(n).length),(e===`iterator`||e===`typed_array`)&&(a.readonly=!0),a}function yt(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=ct(e),s;switch(o){case`html_element`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e.tagName,type:o};case`function`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:typeof e.name==`function`||!e.name?`function`:e.name,type:o};case`string`:return s=i(r),s||e.length<=500?e:e.slice(0,500)+`...`;case`bigint`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e.toString(),type:o};case`symbol`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e.toString(),type:o};case`react_element`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:ut(e)||`Unknown`,type:o};case`array_buffer`:case`data_view`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:o===`data_view`?`DataView`:`ArrayBuffer`,size:e.byteLength,type:o};case`array`:if(s=i(r),a>=_t&&!s)return vt(o,!0,e,t,r);for(var c=[],l=0;l<e.length;l++)c[l]=bt(e,l,t,n,r.concat([l]),i,s?1:a+1);return c;case`html_all_collection`:case`typed_array`:case`iterator`:if(s=i(r),a>=_t&&!s)return vt(o,!0,e,t,r);var u={unserializable:!0,type:o,readonly:!0,size:o===`typed_array`?e.length:void 0,preview_short:U(e,!1),preview_long:U(e,!0),name:typeof e.constructor!=`function`||typeof e.constructor.name!=`string`||e.constructor.name===`Object`?``:e.constructor.name};return Array.from(e).forEach(function(e,o){return u[o]=yt(e,t,n,r.concat([o]),i,s?1:a+1)}),n.push(r),u;case`opaque_iterator`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e[Symbol.toStringTag],type:o};case`date`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e.toString(),type:o};case`regexp`:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e.toString(),type:o};case`thenable`:if(s=i(r),a>=_t&&!s)return{inspectable:e.status===`fulfilled`||e.status===`rejected`,preview_short:U(e,!1),preview_long:U(e,!0),name:e.toString(),type:o};switch(e.status){case`fulfilled`:var d={unserializable:!0,type:o,preview_short:U(e,!1),preview_long:U(e,!0),name:`fulfilled Thenable`};return d.value=yt(e.value,t,n,r.concat([`value`]),i,s?1:a+1),n.push(r),d;case`rejected`:var f={unserializable:!0,type:o,preview_short:U(e,!1),preview_long:U(e,!0),name:`rejected Thenable`};return f.reason=yt(e.reason,t,n,r.concat([`reason`]),i,s?1:a+1),n.push(r),f;default:return t.push(r),{inspectable:!1,preview_short:U(e,!1),preview_long:U(e,!0),name:e.toString(),type:o}}case`object`:if(s=i(r),a>=_t&&!s)return vt(o,!0,e,t,r);var p={};return Ge(e).forEach(function(o){var c=o.toString();p[c]=bt(e,o,t,n,r.concat([c]),i,s?1:a+1)}),p;case`class_instance`:if(s=i(r),a>=_t&&!s)return vt(o,!0,e,t,r);var m={unserializable:!0,type:o,readonly:!0,preview_short:U(e,!1),preview_long:U(e,!0),name:typeof e.constructor!=`function`||typeof e.constructor.name!=`string`?``:e.constructor.name};return Ge(e).forEach(function(o){var c=o.toString();m[c]=yt(e[o],t,n,r.concat([c]),i,s?1:a+1)}),n.push(r),m;case`error`:if(s=i(r),a>=_t&&!s)return vt(o,!0,e,t,r);var h={unserializable:!0,type:o,readonly:!0,preview_short:U(e,!1),preview_long:U(e,!0),name:e.name};return h.message=yt(e.message,t,n,r.concat([`message`]),i,s?1:a+1),h.stack=yt(e.stack,t,n,r.concat([`stack`]),i,s?1:a+1),`cause`in e&&(h.cause=yt(e.cause,t,n,r.concat([`cause`]),i,s?1:a+1)),Ge(e).forEach(function(o){var c=o.toString();h[c]=yt(e[o],t,n,r.concat([c]),i,s?1:a+1)}),n.push(r),h;case`infinity`:case`nan`:case`undefined`:return t.push(r),{type:o};default:return e}}function bt(e,t,n,r,i,a){var o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;try{return yt(e[t],n,r,i,a,o)}catch(e){var s=``;return ht(e)===`object`&&e!==null&&typeof e.stack==`string`?s=e.stack:typeof e==`string`&&(s=e),n.push(i),{inspectable:!1,preview_short:`[Exception]`,preview_long:s?`[Exception: `+s+`]`:`[Exception]`,name:s,type:`unknown`}}}var xt=Array.isArray;function St(e){return xt(e)}let Ct=St;function wt(e){var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var n=e.stack;return Error.prepareStackTrace=t,Tt(n)}function Tt(e){e.startsWith(`Error: react-stack-top-frame
|
|
@@ -62,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
62
61
|
`;var e=window.document.documentElement;e.insertBefore(Y,e.firstChild)}function tr(e){"@babel/helpers - typeof";return tr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tr(e)}var nr=250,rr=3e3,ir=250,ar=new Map([[`Forget`,`✨`],[`Memo`,`🧠`]]),or=(typeof performance>`u`?`undefined`:tr(performance))===`object`&&typeof performance.now==`function`?function(){return performance.now()}:function(){return Date.now()},sr=new Map,cr=null,lr=null,ur=!1,dr=null;function fr(e){cr=e,cr.addListener(`traceUpdates`,mr)}function pr(e){ur=e,ur||(sr.clear(),lr!==null&&(cancelAnimationFrame(lr),lr=null),dr!==null&&(clearTimeout(dr),dr=null),$n(cr))}function mr(e){ur&&(e.forEach(function(e){var t=sr.get(e),n=or(),r=t==null?0:t.lastMeasuredAt,i=t==null?null:t.rect;(i===null||r+ir<n)&&(r=n,i=gr(e));var a=cr.getComponentNameForHostInstance(e);if(a){var o=mn(a),s=o.baseComponentName,c=o.hocNames.map(function(e){return ar.get(e)||``}).join(``);a=c?`${c}${s}`:s}sr.set(e,{count:t==null?1:t.count+1,expirationTime:t==null?n+nr:Math.min(n+rr,t.expirationTime+nr),lastMeasuredAt:r,rect:i,displayName:a})}),dr!==null&&(clearTimeout(dr),dr=null),lr===null&&(lr=requestAnimationFrame(hr)))}function hr(){lr=null,dr=null;var e=or(),t=Number.MAX_VALUE;sr.forEach(function(n,r){n.expirationTime<e?sr.delete(r):t=Math.min(t,n.expirationTime)}),Jn(sr,cr),t!==Number.MAX_VALUE&&(dr=setTimeout(hr,t-e))}function gr(e){return!e||typeof e.getBoundingClientRect!=`function`?null:fn(e,window.__REACT_DEVTOOLS_TARGET_WINDOW__||window)}function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_r(e)}function vr(e){return Sr(e)||xr(e)||br(e)||yr()}function yr(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
62
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function br(e,t){if(e){if(typeof e==`string`)return Cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cr(e,t)}}function xr(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Sr(e){if(Array.isArray(e))return Cr(e)}function Cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function wr(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 Tr(e,t,n){return t&&wr(e.prototype,t),n&&wr(e,n),e}function Er(e,t,n){function r(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return t=kr(t),Dr(e,r()?Reflect.construct(t,n||[],kr(e).constructor):t.apply(e,n))}function Dr(e,t){return t&&(_r(t)===`object`||typeof t==`function`)?t:Or(e)}function Or(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}function Ar(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}function jr(e,t){return jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jr(e,t)}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nr=[{version:0,minNpmVersion:`"<4.11.0"`,maxNpmVersion:`"<4.11.0"`},{version:1,minNpmVersion:`4.13.0`,maxNpmVersion:`4.21.0`},{version:2,minNpmVersion:`4.22.0`,maxNpmVersion:null}],Pr=Nr[Nr.length-1];let Fr=function(e){function t(e){var n;return X(this,t),n=Er(this,t),Mr(n,`_isShutdown`,!1),Mr(n,`_messageQueue`,[]),Mr(n,`_scheduledFlush`,!1),Mr(n,`_wallUnlisten`,null),Mr(n,`_flush`,function(){try{if(n._messageQueue.length){for(var e=0;e<n._messageQueue.length;e+=2){var t;(t=n._wall).send.apply(t,[n._messageQueue[e]].concat(vr(n._messageQueue[e+1])))}n._messageQueue.length=0}}finally{n._scheduledFlush=!1}}),Mr(n,`overrideValueAtPath`,function(e){var t=e.id,r=e.path,i=e.rendererID,a=e.type,o=e.value;switch(a){case`context`:n.send(`overrideContext`,{id:t,path:r,rendererID:i,wasForwarded:!0,value:o});break;case`hooks`:n.send(`overrideHookState`,{id:t,path:r,rendererID:i,wasForwarded:!0,value:o});break;case`props`:n.send(`overrideProps`,{id:t,path:r,rendererID:i,wasForwarded:!0,value:o});break;case`state`:n.send(`overrideState`,{id:t,path:r,rendererID:i,wasForwarded:!0,value:o});break}}),n._wall=e,n._wallUnlisten=e.listen(function(e){e&&e.event&&n.emit(e.event,e.payload)})||null,n.addListener(`overrideValueAtPath`,n.overrideValueAtPath),n}return Ar(t,e),Tr(t,[{key:`wall`,get:function(){return this._wall}},{key:`send`,value:function(e){if(this._isShutdown){console.warn(`Cannot send message "${e}" through a Bridge that has been shutdown.`);return}var t=[...arguments].slice(1);this._messageQueue.push(e,t),this._scheduledFlush||(this._scheduledFlush=!0,typeof devtoolsJestTestScheduler==`function`?devtoolsJestTestScheduler(this._flush):queueMicrotask(this._flush))}},{key:`shutdown`,value:function(){if(this._isShutdown){console.warn(`Bridge was already shutdown.`);return}this.emit(`shutdown`),this.send(`shutdown`),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();var e=this._wallUnlisten;e&&e();do this._flush();while(this._messageQueue.length)}}])}(o);function Ir(e){try{return sessionStorage.getItem(e)}catch{return null}}function Lr(e){try{sessionStorage.removeItem(e)}catch{}}function Rr(e,t){try{return sessionStorage.setItem(e,t)}catch{}}function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zr(e)}function Br(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Vr(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 Hr(e,t,n){return t&&Vr(e.prototype,t),n&&Vr(e,n),e}function Ur(e,t,n){function r(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return t=Kr(t),Wr(e,r()?Reflect.construct(t,n||[],Kr(e).constructor):t.apply(e,n))}function Wr(e,t){return t&&(zr(t)===`object`||typeof t==`function`)?t:Gr(e)}function Gr(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Kr(e){return Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kr(e)}function qr(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jr(e,t)}function Jr(e,t){return Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jr(e,t)}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yr=function(e){if(s){var t,n=[...arguments].slice(1);(t=console).log.apply(t,[`%cAgent %c${e}`,`color: purple; font-weight: bold;`,`font-weight: bold;`].concat(n))}},Xr=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2?arguments[2]:void 0;Br(this,t),n=Ur(this,t),Z(n,`_isProfiling`,!1),Z(n,`_rendererInterfaces`,{}),Z(n,`_persistedSelection`,null),Z(n,`_persistedSelectionMatch`,null),Z(n,`_traceUpdatesEnabled`,!1),Z(n,`clearErrorsAndWarnings`,function(e){var t=e.rendererID,r=n._rendererInterfaces[t];r==null?console.warn(`Invalid renderer id "${t}"`):r.clearErrorsAndWarnings()}),Z(n,`clearErrorsForElementID`,function(e){var t=e.id,r=e.rendererID,i=n._rendererInterfaces[r];i==null?console.warn(`Invalid renderer id "${r}"`):i.clearErrorsForElementID(t)}),Z(n,`clearWarningsForElementID`,function(e){var t=e.id,r=e.rendererID,i=n._rendererInterfaces[r];i==null?console.warn(`Invalid renderer id "${r}"`):i.clearWarningsForElementID(t)}),Z(n,`copyElementPath`,function(e){var t=e.id,r=e.path,i=e.rendererID,a=n._rendererInterfaces[i];if(a==null)console.warn(`Invalid renderer id "${i}" for element "${t}"`);else{var o=a.getSerializedElementValueByPath(t,r);o==null?console.warn(`Unable to obtain serialized value for element "${t}"`):n._bridge.send(`saveToClipboard`,o)}}),Z(n,`deletePath`,function(e){var t=e.hookID,r=e.id,i=e.path,a=e.rendererID,o=e.type,s=n._rendererInterfaces[a];s==null?console.warn(`Invalid renderer id "${a}" for element "${r}"`):s.deletePath(o,r,t,i)}),Z(n,`getBackendVersion`,function(){var e=`6.1.5-5d87cd2244`;e&&n._bridge.send(`backendVersion`,e)}),Z(n,`getBridgeProtocol`,function(){n._bridge.send(`bridgeProtocol`,Pr)}),Z(n,`getProfilingData`,function(e){var t=e.rendererID,r=n._rendererInterfaces[t];r??console.warn(`Invalid renderer id "${t}"`),n._bridge.send(`profilingData`,r.getProfilingData())}),Z(n,`getProfilingStatus`,function(){n._bridge.send(`profilingStatus`,n._isProfiling)}),Z(n,`getOwnersList`,function(e){var t=e.id,r=e.rendererID,i=n._rendererInterfaces[r];if(i==null)console.warn(`Invalid renderer id "${r}" for element "${t}"`);else{var a=i.getOwnersList(t);n._bridge.send(`ownersList`,{id:t,owners:a})}}),Z(n,`inspectElement`,function(e){var t=e.forceFullData,r=e.id,i=e.path,a=e.rendererID,o=e.requestID,s=n._rendererInterfaces[a];s==null?console.warn(`Invalid renderer id "${a}" for element "${r}"`):(n._bridge.send(`inspectedElement`,s.inspectElement(o,r,i,t)),(n._persistedSelectionMatch===null||n._persistedSelectionMatch.id!==r)&&(n._persistedSelection=null,n._persistedSelectionMatch=null,s.setTrackedPath(null),n._lastSelectedElementID=r,n._lastSelectedRendererID=a,n._persistSelectionTimerScheduled||(n._persistSelectionTimerScheduled=!0,setTimeout(n._persistSelection,1e3))))}),Z(n,`logElementToConsole`,function(e){var t=e.id,r=e.rendererID,i=n._rendererInterfaces[r];i==null?console.warn(`Invalid renderer id "${r}" for element "${t}"`):i.logElementToConsole(t)}),Z(n,`overrideError`,function(e){var t=e.id,r=e.rendererID,i=e.forceError,a=n._rendererInterfaces[r];a==null?console.warn(`Invalid renderer id "${r}" for element "${t}"`):a.overrideError(t,i)}),Z(n,`overrideSuspense`,function(e){var t=e.id,r=e.rendererID,i=e.forceFallback,a=n._rendererInterfaces[r];a==null?console.warn(`Invalid renderer id "${r}" for element "${t}"`):a.overrideSuspense(t,i)}),Z(n,`overrideValueAtPath`,function(e){var t=e.hookID,r=e.id,i=e.path,a=e.rendererID,o=e.type,s=e.value,c=n._rendererInterfaces[a];c==null?console.warn(`Invalid renderer id "${a}" for element "${r}"`):c.overrideValueAtPath(o,r,t,i,s)}),Z(n,`overrideContext`,function(e){var t=e.id,r=e.path,i=e.rendererID,a=e.wasForwarded,o=e.value;a||n.overrideValueAtPath({id:t,path:r,rendererID:i,type:`context`,value:o})}),Z(n,`overrideHookState`,function(e){var t=e.id;e.hookID;var r=e.path,i=e.rendererID,a=e.wasForwarded,o=e.value;a||n.overrideValueAtPath({id:t,path:r,rendererID:i,type:`hooks`,value:o})}),Z(n,`overrideProps`,function(e){var t=e.id,r=e.path,i=e.rendererID,a=e.wasForwarded,o=e.value;a||n.overrideValueAtPath({id:t,path:r,rendererID:i,type:`props`,value:o})}),Z(n,`overrideState`,function(e){var t=e.id,r=e.path,i=e.rendererID,a=e.wasForwarded,o=e.value;a||n.overrideValueAtPath({id:t,path:r,rendererID:i,type:`state`,value:o})}),Z(n,`onReloadAndProfileSupportedByHost`,function(){n._bridge.send(`isReloadAndProfileSupportedByBackend`,!0)}),Z(n,`reloadAndProfile`,function(e){var t=e.recordChangeDescriptions,r=e.recordTimeline;typeof n._onReloadAndProfile==`function`&&n._onReloadAndProfile(t,r),n._bridge.send(`reloadAppForProfiling`)}),Z(n,`renamePath`,function(e){var t=e.hookID,r=e.id,i=e.newPath,a=e.oldPath,o=e.rendererID,s=e.type,c=n._rendererInterfaces[o];c==null?console.warn(`Invalid renderer id "${o}" for element "${r}"`):c.renamePath(s,r,t,a,i)}),Z(n,`setTraceUpdatesEnabled`,function(e){for(var t in n._traceUpdatesEnabled=e,pr(e),n._rendererInterfaces)n._rendererInterfaces[t].setTraceUpdatesEnabled(e)}),Z(n,`syncSelectionFromBuiltinElementsPanel`,function(){var e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;e!=null&&n.selectNode(e)}),Z(n,`shutdown`,function(){n.emit(`shutdown`),n._bridge.removeAllListeners(),n.removeAllListeners()}),Z(n,`startProfiling`,function(e){var t=e.recordChangeDescriptions,r=e.recordTimeline;for(var i in n._isProfiling=!0,n._rendererInterfaces)n._rendererInterfaces[i].startProfiling(t,r);n._bridge.send(`profilingStatus`,n._isProfiling)}),Z(n,`stopProfiling`,function(){for(var e in n._isProfiling=!1,n._rendererInterfaces)n._rendererInterfaces[e].stopProfiling();n._bridge.send(`profilingStatus`,n._isProfiling)}),Z(n,`stopInspectingNative`,function(e){n._bridge.send(`stopInspectingHost`,e)}),Z(n,`storeAsGlobal`,function(e){var t=e.count,r=e.id,i=e.path,a=e.rendererID,o=n._rendererInterfaces[a];o==null?console.warn(`Invalid renderer id "${a}" for element "${r}"`):o.storeAsGlobal(r,i,t)}),Z(n,`updateHookSettings`,function(e){n.emit(`updateHookSettings`,e)}),Z(n,`getHookSettings`,function(){n.emit(`getHookSettings`)}),Z(n,`onHookSettings`,function(e){n._bridge.send(`hookSettings`,e)}),Z(n,`updateComponentFilters`,function(e){for(var t in n._rendererInterfaces){var r=+t,i=n._rendererInterfaces[r];if(n._lastSelectedRendererID===r){var a=i.getPathForElement(n._lastSelectedElementID);a!==null&&(i.setTrackedPath(a),n._persistedSelection={rendererID:r,path:a})}i.updateComponentFilters(e)}}),Z(n,`getEnvironmentNames`,function(){var e=null;for(var t in n._rendererInterfaces){var r=n._rendererInterfaces[+t].getEnvironmentNames();if(e===null)e=r;else for(var i=0;i<r.length;i++)e.indexOf(r[i])===-1&&e.push(r[i])}n._bridge.send(`environmentNames`,e||[])}),Z(n,`onTraceUpdates`,function(e){n.emit(`traceUpdates`,e)}),Z(n,`onFastRefreshScheduled`,function(){s&&Yr(`onFastRefreshScheduled`),n._bridge.send(`fastRefreshScheduled`)}),Z(n,`onHookOperations`,function(e){if(s&&Yr(`onHookOperations`,`(${e.length}) [${e.join(`, `)}]`),n._bridge.send(`operations`,e),n._persistedSelection!==null){var t=e[0];if(n._persistedSelection.rendererID===t){var r=n._rendererInterfaces[t];if(r==null)console.warn(`Invalid renderer id "${t}"`);else{var i=n._persistedSelectionMatch,a=r.getBestMatchForTrackedPath();n._persistedSelectionMatch=a;var o=i===null?null:i.id,c=a===null?null:a.id;o!==c&&c!==null&&n._bridge.send(`selectElement`,c),a!==null&&a.isFullMatch&&(n._persistedSelection=null,n._persistedSelectionMatch=null,r.setTrackedPath(null))}}}}),Z(n,`getIfHasUnsupportedRendererVersion`,function(){n.emit(`getIfHasUnsupportedRendererVersion`)}),Z(n,`_persistSelectionTimerScheduled`,!1),Z(n,`_lastSelectedRendererID`,-1),Z(n,`_lastSelectedElementID`,-1),Z(n,`_persistSelection`,function(){n._persistSelectionTimerScheduled=!1;var e=n._lastSelectedRendererID,t=n._lastSelectedElementID,r=n._rendererInterfaces[e],i=r==null?null:r.getPathForElement(t);i===null?Lr(_):Rr(_,JSON.stringify({rendererID:e,path:i}))}),n._isProfiling=r,n._onReloadAndProfile=i;var a=Ir(_);return a!=null&&(n._persistedSelection=JSON.parse(a)),n._bridge=e,e.addListener(`clearErrorsAndWarnings`,n.clearErrorsAndWarnings),e.addListener(`clearErrorsForElementID`,n.clearErrorsForElementID),e.addListener(`clearWarningsForElementID`,n.clearWarningsForElementID),e.addListener(`copyElementPath`,n.copyElementPath),e.addListener(`deletePath`,n.deletePath),e.addListener(`getBackendVersion`,n.getBackendVersion),e.addListener(`getBridgeProtocol`,n.getBridgeProtocol),e.addListener(`getProfilingData`,n.getProfilingData),e.addListener(`getProfilingStatus`,n.getProfilingStatus),e.addListener(`getOwnersList`,n.getOwnersList),e.addListener(`inspectElement`,n.inspectElement),e.addListener(`logElementToConsole`,n.logElementToConsole),e.addListener(`overrideError`,n.overrideError),e.addListener(`overrideSuspense`,n.overrideSuspense),e.addListener(`overrideValueAtPath`,n.overrideValueAtPath),e.addListener(`reloadAndProfile`,n.reloadAndProfile),e.addListener(`renamePath`,n.renamePath),e.addListener(`setTraceUpdatesEnabled`,n.setTraceUpdatesEnabled),e.addListener(`startProfiling`,n.startProfiling),e.addListener(`stopProfiling`,n.stopProfiling),e.addListener(`storeAsGlobal`,n.storeAsGlobal),e.addListener(`syncSelectionFromBuiltinElementsPanel`,n.syncSelectionFromBuiltinElementsPanel),e.addListener(`shutdown`,n.shutdown),e.addListener(`updateHookSettings`,n.updateHookSettings),e.addListener(`getHookSettings`,n.getHookSettings),e.addListener(`updateComponentFilters`,n.updateComponentFilters),e.addListener(`getEnvironmentNames`,n.getEnvironmentNames),e.addListener(`getIfHasUnsupportedRendererVersion`,n.getIfHasUnsupportedRendererVersion),e.addListener(`overrideContext`,n.overrideContext),e.addListener(`overrideHookState`,n.overrideHookState),e.addListener(`overrideProps`,n.overrideProps),e.addListener(`overrideState`,n.overrideState),Fn(e,n),fr(n),e.send(`backendInitialized`),n._isProfiling&&e.send(`profilingStatus`,!0),n}return qr(t,e),Hr(t,[{key:`rendererInterfaces`,get:function(){return this._rendererInterfaces}},{key:`getInstanceAndStyle`,value:function(e){var t=e.id,n=e.rendererID,r=this._rendererInterfaces[n];return r==null?(console.warn(`Invalid renderer id "${n}"`),null):r.getInstanceAndStyle(t)}},{key:`getIDForHostInstance`,value:function(e){if(Jt()||typeof e.nodeType!=`number`){for(var t in this._rendererInterfaces){var n=this._rendererInterfaces[t];try{var r=n.getElementIDForHostInstance(e);if(r!=null)return r}catch{}}return null}else{var i=null,a=null;for(var o in this._rendererInterfaces){var s=this._rendererInterfaces[o],c=s.getNearestMountedDOMNode(e);if(c!==null){if(c===e){i=c,a=s;break}(i===null||i.contains(c))&&(i=c,a=s)}}if(a!=null&&i!=null)try{return a.getElementIDForHostInstance(i)}catch{}return null}}},{key:`getComponentNameForHostInstance`,value:function(e){if(Jt()||typeof e.nodeType!=`number`){for(var t in this._rendererInterfaces){var n=this._rendererInterfaces[t];try{var r=n.getElementIDForHostInstance(e);if(r)return n.getDisplayNameForElementID(r)}catch{}}return null}else{var i=null,a=null;for(var o in this._rendererInterfaces){var s=this._rendererInterfaces[o],c=s.getNearestMountedDOMNode(e);if(c!==null){if(c===e){i=c,a=s;break}(i===null||i.contains(c))&&(i=c,a=s)}}if(a!=null&&i!=null)try{var l=a.getElementIDForHostInstance(i);if(l)return a.getDisplayNameForElementID(l)}catch{}return null}}},{key:`selectNode`,value:function(e){var t=this.getIDForHostInstance(e);t!==null&&this._bridge.send(`selectElement`,t)}},{key:`registerRendererInterface`,value:function(e,t){this._rendererInterfaces[e]=t,t.setTraceUpdatesEnabled(this._traceUpdatesEnabled);var n=this._persistedSelection;n!==null&&n.rendererID===e&&t.setTrackedPath(n.path)}},{key:`onUnsupportedRenderer`,value:function(){this._bridge.send(`unsupportedRendererVersion`)}}])}(o);function Zr(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 Qr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zr(Object(n),!0).forEach(function(t){$r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ei=0,ti,ni,ri,ii,ai,oi,si;function ci(){}ci.__reactDisabledLog=!0;function li(){if(ei===0){ti=console.log,ni=console.info,ri=console.warn,ii=console.error,ai=console.group,oi=console.groupCollapsed,si=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ci,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ei++}function ui(){if(ei--,ei===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Qr(Qr({},e),{},{value:ti}),info:Qr(Qr({},e),{},{value:ni}),warn:Qr(Qr({},e),{},{value:ri}),error:Qr(Qr({},e),{},{value:ii}),group:Qr(Qr({},e),{},{value:ai}),groupCollapsed:Qr(Qr({},e),{},{value:oi}),groupEnd:Qr(Qr({},e),{},{value:si})})}ei<0&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function di(e,t){return gi(e)||hi(e,t)||pi(e,t)||fi()}function fi(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
64
63
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pi(e,t){if(e){if(typeof e==`string`)return mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mi(e,t)}}function mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hi(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function gi(e){if(Array.isArray(e))return e}function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_i(e)}var vi;function yi(e){if(vi===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);vi=t&&t[1]||``}var n=``;return n=` (<anonymous>)`,`
|
|
65
|
-
`+vi+e+n}function bi(e,t){return yi(e+(t?` [`+t+`]`:``))}var xi=!1;function Si(e,t,n){if(!e||xi)return``;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,xi=!0;var i=n.H;n.H=null,li();try{var a={DetermineComponentFrameRoot:function(){var n;try{if(t){var r=function(){throw Error()};if(Object.defineProperty(r.prototype
|
|
64
|
+
`+vi+e+n}function bi(e,t){return yi(e+(t?` [`+t+`]`:``))}var xi=!1;function Si(e,t,n){if(!e||xi)return``;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,xi=!0;var i=n.H;n.H=null,li();try{var a={DetermineComponentFrameRoot:function(){var n;try{if(t){var r=function(){throw Error()};if(Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),(typeof Reflect>`u`?`undefined`:_i(Reflect))===`object`&&Reflect.construct){try{Reflect.construct(r,[])}catch(e){n=e}Reflect.construct(e,[],r)}else{try{r.call()}catch(e){n=e}e.call(r.prototype)}}else{try{throw Error()}catch(e){n=e}var i=e();i&&typeof i.catch==`function`&&i.catch(function(){})}}catch(e){if(e&&n&&typeof e.stack==`string`)return[e.stack,n.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,`name`);o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var s=di(a.DetermineComponentFrameRoot(),2),c=s[0],l=s[1];if(c&&l){for(var u=c.split(`
|
|
66
65
|
`),d=l.split(`
|
|
67
66
|
`),f=0,p=0;f<u.length&&!u[f].includes(`DetermineComponentFrameRoot`);)f++;for(;p<d.length&&!d[p].includes(`DetermineComponentFrameRoot`);)p++;if(f===u.length||p===d.length)for(f=u.length-1,p=d.length-1;f>=1&&p>=0&&u[f]!==d[p];)p--;for(;f>=1&&p>=0;f--,p--)if(u[f]!==d[p]){if(f!==1||p!==1)do if(f--,p--,p<0||u[f]!==d[p]){var m=`
|
|
68
67
|
`+u[f].replace(` at new `,` at `);return e.displayName&&m.includes(`<anonymous>`)&&(m=m.replace(`<anonymous>`,e.displayName)),m}while(f>=1&&p>=0);break}}}finally{xi=!1,Error.prepareStackTrace=r,n.H=i,ui()}var h=e?e.displayName||e.name:``;return h?yi(h):``}function Ci(e,t){return Si(e,!0,t)}function wi(e,t){return Si(e,!1,t)}function Ti(e){try{var t=``;if(!e.owner&&typeof e.name==`string`)return yi(e.name);for(var n=e;n;){var r=n.debugStack;if(r!=null)n=n.owner,n&&(t+=`
|
|
@@ -77,7 +76,7 @@ Error generating stack: `+e.message+`
|
|
|
77
76
|
`+wt(h))}else break;return d}catch(e){return`
|
|
78
77
|
Error generating stack: `+e.message+`
|
|
79
78
|
`+e.stack}}var fa=new Map;function pa(e){var t=new Set,n={};return ma(e,t,n),{sources:Array.from(t).sort(),resolvedStyles:n}}function ma(e,t,n){e!=null&&(Me(e)?e.forEach(function(e){e!=null&&(Me(e)?ma(e,t,n):ha(e,t,n))}):ha(e,t,n),n=Object.fromEntries(Object.entries(n).sort()))}function ha(e,t,n){Object.keys(e).forEach(function(r){var i=e[r];if(typeof i==`string`)if(r===i)t.add(r);else{var a=ga(i);a!=null&&(n[r]=a)}else{var o={};n[r]=o,ma([i],t,o)}})}function ga(e){if(fa.has(e))return fa.get(e);for(var t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch{continue}for(var i=0;i<r.length;i++)if(r[i]instanceof CSSStyleRule){var a=r[i],o=a.cssText,s=a.selectorText,c=a.style;if(s!=null&&s.startsWith(`.${e}`)){var l=o.match(/{ *([a-z\-]+):/);if(l!==null){var u=l[1],d=c.getPropertyValue(u);return fa.set(e,d),d}else return null}}}return null}var _a={light:{"--color-attribute-name":`#ef6632`,"--color-attribute-name-not-editable":`#23272f`,"--color-attribute-name-inverted":`rgba(255, 255, 255, 0.7)`,"--color-attribute-value":`#1a1aa6`,"--color-attribute-value-inverted":`#ffffff`,"--color-attribute-editable-value":`#1a1aa6`,"--color-background":`#ffffff`,"--color-background-hover":`rgba(0, 136, 250, 0.1)`,"--color-background-inactive":`#e5e5e5`,"--color-background-invalid":`#fff0f0`,"--color-background-selected":`#0088fa`,"--color-button-background":`#ffffff`,"--color-button-background-focus":`#ededed`,"--color-button-background-hover":`rgba(0, 0, 0, 0.2)`,"--color-button":`#5f6673`,"--color-button-disabled":`#cfd1d5`,"--color-button-active":`#0088fa`,"--color-button-focus":`#23272f`,"--color-button-hover":`#23272f`,"--color-border":`#eeeeee`,"--color-commit-did-not-render-fill":`#cfd1d5`,"--color-commit-did-not-render-fill-text":`#000000`,"--color-commit-did-not-render-pattern":`#cfd1d5`,"--color-commit-did-not-render-pattern-text":`#333333`,"--color-commit-gradient-0":`#37afa9`,"--color-commit-gradient-1":`#63b19e`,"--color-commit-gradient-2":`#80b393`,"--color-commit-gradient-3":`#97b488`,"--color-commit-gradient-4":`#abb67d`,"--color-commit-gradient-5":`#beb771`,"--color-commit-gradient-6":`#cfb965`,"--color-commit-gradient-7":`#dfba57`,"--color-commit-gradient-8":`#efbb49`,"--color-commit-gradient-9":`#febc38`,"--color-commit-gradient-text":`#000000`,"--color-component-name":`#6a51b2`,"--color-component-name-inverted":`#ffffff`,"--color-component-badge-background":`#e6e6e6`,"--color-component-badge-background-inverted":`rgba(255, 255, 255, 0.25)`,"--color-component-badge-count":`#777d88`,"--color-component-badge-count-inverted":`rgba(255, 255, 255, 0.7)`,"--color-console-error-badge-text":`#ffffff`,"--color-console-error-background":`#fff0f0`,"--color-console-error-border":`#ffd6d6`,"--color-console-error-icon":`#eb3941`,"--color-console-error-text":`#fe2e31`,"--color-console-warning-badge-text":`#000000`,"--color-console-warning-background":`#fffbe5`,"--color-console-warning-border":`#fff5c1`,"--color-console-warning-icon":`#f4bd00`,"--color-console-warning-text":`#64460c`,"--color-context-background":`rgba(0,0,0,.9)`,"--color-context-background-hover":`rgba(255, 255, 255, 0.1)`,"--color-context-background-selected":`#178fb9`,"--color-context-border":`#3d424a`,"--color-context-text":`#ffffff`,"--color-context-text-selected":`#ffffff`,"--color-dim":`#777d88`,"--color-dimmer":`#cfd1d5`,"--color-dimmest":`#eff0f1`,"--color-error-background":`hsl(0, 100%, 97%)`,"--color-error-border":`hsl(0, 100%, 92%)`,"--color-error-text":`#ff0000`,"--color-expand-collapse-toggle":`#777d88`,"--color-forget-badge-background":`#2683e2`,"--color-forget-badge-background-inverted":`#1a6bbc`,"--color-forget-text":`#fff`,"--color-link":`#0000ff`,"--color-modal-background":`rgba(255, 255, 255, 0.75)`,"--color-bridge-version-npm-background":`#eff0f1`,"--color-bridge-version-npm-text":`#000000`,"--color-bridge-version-number":`#0088fa`,"--color-primitive-hook-badge-background":`#e5e5e5`,"--color-primitive-hook-badge-text":`#5f6673`,"--color-record-active":`#fc3a4b`,"--color-record-hover":`#3578e5`,"--color-record-inactive":`#0088fa`,"--color-resize-bar":`#eeeeee`,"--color-resize-bar-active":`#dcdcdc`,"--color-resize-bar-border":`#d1d1d1`,"--color-resize-bar-dot":`#333333`,"--color-timeline-internal-module":`#d1d1d1`,"--color-timeline-internal-module-hover":`#c9c9c9`,"--color-timeline-internal-module-text":`#444`,"--color-timeline-native-event":`#ccc`,"--color-timeline-native-event-hover":`#aaa`,"--color-timeline-network-primary":`#fcf3dc`,"--color-timeline-network-primary-hover":`#f0e7d1`,"--color-timeline-network-secondary":`#efc457`,"--color-timeline-network-secondary-hover":`#e3ba52`,"--color-timeline-priority-background":`#f6f6f6`,"--color-timeline-priority-border":`#eeeeee`,"--color-timeline-user-timing":`#c9cacd`,"--color-timeline-user-timing-hover":`#93959a`,"--color-timeline-react-idle":`#d3e5f6`,"--color-timeline-react-idle-hover":`#c3d9ef`,"--color-timeline-react-render":`#9fc3f3`,"--color-timeline-react-render-hover":`#83afe9`,"--color-timeline-react-render-text":`#11365e`,"--color-timeline-react-commit":`#c88ff0`,"--color-timeline-react-commit-hover":`#b281d6`,"--color-timeline-react-commit-text":`#3e2c4a`,"--color-timeline-react-layout-effects":`#b281d6`,"--color-timeline-react-layout-effects-hover":`#9d71bd`,"--color-timeline-react-layout-effects-text":`#3e2c4a`,"--color-timeline-react-passive-effects":`#b281d6`,"--color-timeline-react-passive-effects-hover":`#9d71bd`,"--color-timeline-react-passive-effects-text":`#3e2c4a`,"--color-timeline-react-schedule":`#9fc3f3`,"--color-timeline-react-schedule-hover":`#2683E2`,"--color-timeline-react-suspense-rejected":`#f1cc14`,"--color-timeline-react-suspense-rejected-hover":`#ffdf37`,"--color-timeline-react-suspense-resolved":`#a6e59f`,"--color-timeline-react-suspense-resolved-hover":`#89d281`,"--color-timeline-react-suspense-unresolved":`#c9cacd`,"--color-timeline-react-suspense-unresolved-hover":`#93959a`,"--color-timeline-thrown-error":`#ee1638`,"--color-timeline-thrown-error-hover":`#da1030`,"--color-timeline-text-color":`#000000`,"--color-timeline-text-dim-color":`#ccc`,"--color-timeline-react-work-border":`#eeeeee`,"--color-search-match":`yellow`,"--color-search-match-current":`#f7923b`,"--color-selected-tree-highlight-active":`rgba(0, 136, 250, 0.1)`,"--color-selected-tree-highlight-inactive":`rgba(0, 0, 0, 0.05)`,"--color-scroll-caret":`rgba(150, 150, 150, 0.5)`,"--color-tab-selected-border":`#0088fa`,"--color-text":`#000000`,"--color-text-invalid":`#ff0000`,"--color-text-selected":`#ffffff`,"--color-toggle-background-invalid":`#fc3a4b`,"--color-toggle-background-on":`#0088fa`,"--color-toggle-background-off":`#cfd1d5`,"--color-toggle-text":`#ffffff`,"--color-warning-background":`#fb3655`,"--color-warning-background-hover":`#f82042`,"--color-warning-text-color":`#ffffff`,"--color-warning-text-color-inverted":`#fd4d69`,"--color-scroll-thumb":`#c2c2c2`,"--color-scroll-track":`#fafafa`,"--color-tooltip-background":`rgba(0, 0, 0, 0.9)`,"--color-tooltip-text":`#ffffff`},dark:{"--color-attribute-name":`#9d87d2`,"--color-attribute-name-not-editable":`#ededed`,"--color-attribute-name-inverted":`#282828`,"--color-attribute-value":`#cedae0`,"--color-attribute-value-inverted":`#ffffff`,"--color-attribute-editable-value":`yellow`,"--color-background":`#282c34`,"--color-background-hover":`rgba(255, 255, 255, 0.1)`,"--color-background-inactive":`#3d424a`,"--color-background-invalid":`#5c0000`,"--color-background-selected":`#178fb9`,"--color-button-background":`#282c34`,"--color-button-background-focus":`#3d424a`,"--color-button-background-hover":`rgba(255, 255, 255, 0.2)`,"--color-button":`#afb3b9`,"--color-button-active":`#61dafb`,"--color-button-disabled":`#4f5766`,"--color-button-focus":`#a2e9fc`,"--color-button-hover":`#ededed`,"--color-border":`#3d424a`,"--color-commit-did-not-render-fill":`#777d88`,"--color-commit-did-not-render-fill-text":`#000000`,"--color-commit-did-not-render-pattern":`#666c77`,"--color-commit-did-not-render-pattern-text":`#ffffff`,"--color-commit-gradient-0":`#37afa9`,"--color-commit-gradient-1":`#63b19e`,"--color-commit-gradient-2":`#80b393`,"--color-commit-gradient-3":`#97b488`,"--color-commit-gradient-4":`#abb67d`,"--color-commit-gradient-5":`#beb771`,"--color-commit-gradient-6":`#cfb965`,"--color-commit-gradient-7":`#dfba57`,"--color-commit-gradient-8":`#efbb49`,"--color-commit-gradient-9":`#febc38`,"--color-commit-gradient-text":`#000000`,"--color-component-name":`#61dafb`,"--color-component-name-inverted":`#282828`,"--color-component-badge-background":`#5e6167`,"--color-component-badge-background-inverted":`#46494e`,"--color-component-badge-count":`#8f949d`,"--color-component-badge-count-inverted":`rgba(255, 255, 255, 0.85)`,"--color-console-error-badge-text":`#000000`,"--color-console-error-background":`#290000`,"--color-console-error-border":`#5c0000`,"--color-console-error-icon":`#eb3941`,"--color-console-error-text":`#fc7f7f`,"--color-console-warning-badge-text":`#000000`,"--color-console-warning-background":`#332b00`,"--color-console-warning-border":`#665500`,"--color-console-warning-icon":`#f4bd00`,"--color-console-warning-text":`#f5f2ed`,"--color-context-background":`rgba(255,255,255,.95)`,"--color-context-background-hover":`rgba(0, 136, 250, 0.1)`,"--color-context-background-selected":`#0088fa`,"--color-context-border":`#eeeeee`,"--color-context-text":`#000000`,"--color-context-text-selected":`#ffffff`,"--color-dim":`#8f949d`,"--color-dimmer":`#777d88`,"--color-dimmest":`#4f5766`,"--color-error-background":`#200`,"--color-error-border":`#900`,"--color-error-text":`#f55`,"--color-expand-collapse-toggle":`#8f949d`,"--color-forget-badge-background":`#2683e2`,"--color-forget-badge-background-inverted":`#1a6bbc`,"--color-forget-text":`#fff`,"--color-link":`#61dafb`,"--color-modal-background":`rgba(0, 0, 0, 0.75)`,"--color-bridge-version-npm-background":`rgba(0, 0, 0, 0.25)`,"--color-bridge-version-npm-text":`#ffffff`,"--color-bridge-version-number":`yellow`,"--color-primitive-hook-badge-background":`rgba(0, 0, 0, 0.25)`,"--color-primitive-hook-badge-text":`rgba(255, 255, 255, 0.7)`,"--color-record-active":`#fc3a4b`,"--color-record-hover":`#a2e9fc`,"--color-record-inactive":`#61dafb`,"--color-resize-bar":`#282c34`,"--color-resize-bar-active":`#31363f`,"--color-resize-bar-border":`#3d424a`,"--color-resize-bar-dot":`#cfd1d5`,"--color-timeline-internal-module":`#303542`,"--color-timeline-internal-module-hover":`#363b4a`,"--color-timeline-internal-module-text":`#7f8899`,"--color-timeline-native-event":`#b2b2b2`,"--color-timeline-native-event-hover":`#949494`,"--color-timeline-network-primary":`#fcf3dc`,"--color-timeline-network-primary-hover":`#e3dbc5`,"--color-timeline-network-secondary":`#efc457`,"--color-timeline-network-secondary-hover":`#d6af4d`,"--color-timeline-priority-background":`#1d2129`,"--color-timeline-priority-border":`#282c34`,"--color-timeline-user-timing":`#c9cacd`,"--color-timeline-user-timing-hover":`#93959a`,"--color-timeline-react-idle":`#3d485b`,"--color-timeline-react-idle-hover":`#465269`,"--color-timeline-react-render":`#2683E2`,"--color-timeline-react-render-hover":`#1a76d4`,"--color-timeline-react-render-text":`#11365e`,"--color-timeline-react-commit":`#731fad`,"--color-timeline-react-commit-hover":`#611b94`,"--color-timeline-react-commit-text":`#e5c1ff`,"--color-timeline-react-layout-effects":`#611b94`,"--color-timeline-react-layout-effects-hover":`#51167a`,"--color-timeline-react-layout-effects-text":`#e5c1ff`,"--color-timeline-react-passive-effects":`#611b94`,"--color-timeline-react-passive-effects-hover":`#51167a`,"--color-timeline-react-passive-effects-text":`#e5c1ff`,"--color-timeline-react-schedule":`#2683E2`,"--color-timeline-react-schedule-hover":`#1a76d4`,"--color-timeline-react-suspense-rejected":`#f1cc14`,"--color-timeline-react-suspense-rejected-hover":`#e4c00f`,"--color-timeline-react-suspense-resolved":`#a6e59f`,"--color-timeline-react-suspense-resolved-hover":`#89d281`,"--color-timeline-react-suspense-unresolved":`#c9cacd`,"--color-timeline-react-suspense-unresolved-hover":`#93959a`,"--color-timeline-thrown-error":`#fb3655`,"--color-timeline-thrown-error-hover":`#f82042`,"--color-timeline-text-color":`#282c34`,"--color-timeline-text-dim-color":`#555b66`,"--color-timeline-react-work-border":`#3d424a`,"--color-search-match":`yellow`,"--color-search-match-current":`#f7923b`,"--color-selected-tree-highlight-active":`rgba(23, 143, 185, 0.15)`,"--color-selected-tree-highlight-inactive":`rgba(255, 255, 255, 0.05)`,"--color-scroll-caret":`#4f5766`,"--color-shadow":`rgba(0, 0, 0, 0.5)`,"--color-tab-selected-border":`#178fb9`,"--color-text":`#ffffff`,"--color-text-invalid":`#ff8080`,"--color-text-selected":`#ffffff`,"--color-toggle-background-invalid":`#fc3a4b`,"--color-toggle-background-on":`#178fb9`,"--color-toggle-background-off":`#777d88`,"--color-toggle-text":`#ffffff`,"--color-warning-background":`#ee1638`,"--color-warning-background-hover":`#da1030`,"--color-warning-text-color":`#ffffff`,"--color-warning-text-color-inverted":`#ee1638`,"--color-scroll-thumb":`#afb3b9`,"--color-scroll-track":`#313640`,"--color-tooltip-background":`rgba(255, 255, 255, 0.95)`,"--color-tooltip-text":`#000000`},compact:{"--font-size-monospace-small":`9px`,"--font-size-monospace-normal":`11px`,"--font-size-monospace-large":`15px`,"--font-size-sans-small":`10px`,"--font-size-sans-normal":`12px`,"--font-size-sans-large":`14px`,"--line-height-data":`18px`},comfortable:{"--font-size-monospace-small":`10px`,"--font-size-monospace-normal":`13px`,"--font-size-monospace-large":`17px`,"--font-size-sans-small":`12px`,"--font-size-sans-normal":`14px`,"--font-size-sans-large":`16px`,"--line-height-data":`22px`}};parseInt(_a.comfortable[`--line-height-data`],10),parseInt(_a.compact[`--line-height-data`],10);var va=31,ya=1;function ba(e,t){return Ta(e)||wa(e,t)||Sa(e,t)||xa()}function xa(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
80
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sa(e,t){if(e){if(typeof e==`string`)return Ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ca(e,t)}}function Ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wa(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function Ta(e){if(Array.isArray(e))return e}function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ea(e)}var Da=10,Oa=null,ka=typeof performance<`u`&&typeof performance.mark==`function`&&typeof performance.clearMarks==`function`,Q=!1;if(ka){var Aa=`__v3`,ja={};Object.defineProperty(ja,`startTime`,{get:function(){return Q=!0,0},set:function(){}});try{performance.mark(Aa,ja)}catch{}finally{performance.clearMarks(Aa)}}Q&&(Oa=performance);var Ma=(typeof performance>`u`?`undefined`:Ea(performance))===`object`&&typeof performance.now==`function`?function(){return performance.now()}:function(){return Date.now()};function Na(e){var t=e.getDisplayNameForFiber;e.getIsProfiling;var n=e.getLaneLabelMap,r=e.workTagMap,i=e.currentDispatcherRef,a=e.reactVersion,o=0,s=null,c=[],l=null,u=new Map,d=!1,f=!1;function p(){var e=Ma();return l?(l.startTime===0&&(l.startTime=e-Da),e-l.startTime):0}function m(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges==`function`){var e=__REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();if(Ct(e))return e}return null}function h(){return l}function g(e){for(var t=[],n=1,r=0;r<va;r++)n&e&&t.push(n),n*=2;return t}var _=typeof n==`function`?n():null;function v(){y(`--react-version-${a}`),y(`--profiler-version-${ya}`);var e=m();if(e)for(var t=0;t<e.length;t++){var n=e[t];if(Ct(n)&&n.length===2){var r=ba(e[t],2),i=r[0],o=r[1];y(`--react-internal-module-start-${i}`),y(`--react-internal-module-stop-${o}`)}}_!=null&&y(`--react-lane-labels-${Array.from(_.values()).join(`,`)}`)}function y(e){Oa.mark(e),Oa.clearMarks(e)}function b(e,t){var n=0;if(c.length>0){var r=c[c.length-1];n=r.type===`render-idle`?r.depth:r.depth+1}var i=g(t),a={type:e,batchUID:o,depth:n,lanes:i,timestamp:p(),duration:0};if(c.push(a),l){var s=l,u=s.batchUIDToMeasuresMap,d=s.laneToReactMeasureMap,f=u.get(o);f==null?u.set(o,[a]):f.push(a),i.forEach(function(e){f=d.get(e),f&&f.push(a)})}}function x(e){var t=p();if(c.length===0){console.error(`Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.`,e,t);return}var n=c.pop();n.type!==e&&console.error(`Unexpected type "%s" completed at %sms before "%s" completed.`,e,t,n.type),n.duration=t-n.timestamp,l&&(l.duration=p()+Da)}function S(e){d&&(b(`commit`,e),f=!0,Q&&(y(`--commit-start-${e}`),v()))}function C(){d&&(x(`commit`),x(`render-idle`),Q&&y(`--commit-stop`))}function w(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`render`,warning:null},Q&&y(`--component-render-start-${n}`)}}function T(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-render-stop`))}function E(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`layout-effect-mount`,warning:null},Q&&y(`--component-layout-effect-mount-start-${n}`)}}function D(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-layout-effect-mount-stop`))}function O(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`layout-effect-unmount`,warning:null},Q&&y(`--component-layout-effect-unmount-start-${n}`)}}function k(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-layout-effect-unmount-stop`))}function A(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`passive-effect-mount`,warning:null},Q&&y(`--component-passive-effect-mount-start-${n}`)}}function j(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-passive-effect-mount-stop`))}function M(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`passive-effect-unmount`,warning:null},Q&&y(`--component-passive-effect-unmount-start-${n}`)}}function N(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-passive-effect-unmount-stop`))}function P(e,n,r){if(d){var i=t(e)||`Unknown`,a=e.alternate===null?`mount`:`update`,o=``;n!==null&&Ea(n)===`object`&&typeof n.message==`string`?o=n.message:typeof n==`string`&&(o=n),l&&l.thrownErrors.push({componentName:i,message:o,phase:a,timestamp:p(),type:`thrown-error`}),Q&&y(`--error-${i}-${a}-${o}`)}}var F=new(typeof WeakMap==`function`?WeakMap:Map),I=0;function L(e){return F.has(e)||F.set(e,I++),F.get(e)}function ee(e,n,r){if(d){var i=F.has(n)?`resuspend`:`suspend`,a=L(n),o=t(e)||`Unknown`,s=e.alternate===null?`mount`:`update`,c=n.displayName||``,u=null;u={componentName:o,depth:0,duration:0,id:`${a}`,phase:s,promiseName:c,resolution:`unresolved`,timestamp:p(),type:`suspense`,warning:null},l&&l.suspenseEvents.push(u),Q&&(y(`--suspense-${i}-${a}-${o}-${s}-${r}-${c}`),n.then(function(){u&&(u.duration=p()-u.timestamp,u.resolution=`resolved`),Q&&y(`--suspense-resolved-${a}-${o}`)},function(){u&&(u.duration=p()-u.timestamp,u.resolution=`rejected`),Q&&y(`--suspense-rejected-${a}-${o}`)}))}}function te(e){d&&(b(`layout-effects`,e),Q&&y(`--layout-effects-start-${e}`))}function R(){d&&(x(`layout-effects`),Q&&y(`--layout-effects-stop`))}function z(e){d&&(b(`passive-effects`,e),Q&&y(`--passive-effects-start-${e}`))}function B(){d&&(x(`passive-effects`),Q&&y(`--passive-effects-stop`))}function V(e){d&&(f&&(f=!1,o++),(c.length===0||c[c.length-1].type!==`render-idle`)&&b(`render-idle`,e),b(`render`,e),Q&&y(`--render-start-${e}`))}function ne(){d&&(x(`render`),Q&&y(`--render-yield`))}function re(){d&&(x(`render`),Q&&y(`--render-stop`))}function ie(e){d&&(l&&l.schedulingEvents.push({lanes:g(e),timestamp:p(),type:`schedule-render`,warning:null}),Q&&y(`--schedule-render-${e}`))}function ae(e,n){if(d){var r=t(e)||`Unknown`;l&&l.schedulingEvents.push({componentName:r,lanes:g(n),timestamp:p(),type:`schedule-force-update`,warning:null}),Q&&y(`--schedule-forced-update-${n}-${r}`)}}function H(e){for(var t=[],n=e;n!==null;)t.push(n),n=n.return;return t}function oe(e,n){if(d){var r=t(e)||`Unknown`;if(l){var i={componentName:r,lanes:g(n),timestamp:p(),type:`schedule-state-update`,warning:null};u.set(i,H(e)),l.schedulingEvents.push(i)}Q&&y(`--schedule-state-update-${n}-${r}`)}}function se(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d!==e)if(d=e,d){var n=new Map;if(Q){var p=m();if(p)for(var h=0;h<p.length;h++){var g=p[h];if(Ct(g)&&g.length===2){var v=ba(p[h],2),b=v[0],x=v[1];y(`--react-internal-module-start-${b}`),y(`--react-internal-module-stop-${x}`)}}}for(var S=new Map,C=1,w=0;w<va;w++)S.set(C,[]),C*=2;o=0,s=null,c=[],u=new Map,t&&(l={internalModuleSourceToRanges:n,laneToLabelMap:_||new Map,reactVersion:a,componentMeasures:[],schedulingEvents:[],suspenseEvents:[],thrownErrors:[],batchUIDToMeasuresMap:new Map,duration:0,laneToReactMeasureMap:S,startTime:0,flamechart:[],nativeEvents:[],networkMeasures:[],otherUserTimingMarks:[],snapshots:[],snapshotHeight:0}),f=!0}else l!==null&&l.schedulingEvents.forEach(function(e){if(e.type===`schedule-state-update`){var t=u.get(e);t&&i!=null&&(e.componentStack=t.reduce(function(e,t){return e+oa(r,t,i)},``))}}),u.clear()}return{getTimelineData:h,profilingHooks:{markCommitStarted:S,markCommitStopped:C,markComponentRenderStarted:w,markComponentRenderStopped:T,markComponentPassiveEffectMountStarted:A,markComponentPassiveEffectMountStopped:j,markComponentPassiveEffectUnmountStarted:M,markComponentPassiveEffectUnmountStopped:N,markComponentLayoutEffectMountStarted:E,markComponentLayoutEffectMountStopped:D,markComponentLayoutEffectUnmountStarted:O,markComponentLayoutEffectUnmountStopped:k,markComponentErrored:P,markComponentSuspended:ee,markLayoutEffectsStarted:te,markLayoutEffectsStopped:R,markPassiveEffectsStarted:z,markPassiveEffectsStopped:B,markRenderStarted:V,markRenderYielded:ne,markRenderStopped:re,markRenderScheduled:ie,markForceUpdateScheduled:ae,markStateUpdateScheduled:oe},toggleProfilingStatus:se}}function Pa(e,t){if(e==null)return{};var n=Fa(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fa(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ia(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 La(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ia(Object(n),!0).forEach(function(t){Ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e){return Ha(e)||Va(e)||Wa(e)||Ba()}function Ba(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sa(e,t){if(e){if(typeof e==`string`)return Ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ca(e,t)}}function Ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wa(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function Ta(e){if(Array.isArray(e))return e}function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ea(e)}var Da=10,Oa=null,ka=typeof performance<`u`&&typeof performance.mark==`function`&&typeof performance.clearMarks==`function`,Q=!1;if(ka){var Aa=`__v3`,ja={};Object.defineProperty(ja,"startTime",{get:function(){return Q=!0,0},set:function(){}});try{performance.mark(Aa,ja)}catch{}finally{performance.clearMarks(Aa)}}Q&&(Oa=performance);var Ma=(typeof performance>`u`?`undefined`:Ea(performance))===`object`&&typeof performance.now==`function`?function(){return performance.now()}:function(){return Date.now()};function Na(e){var t=e.getDisplayNameForFiber;e.getIsProfiling;var n=e.getLaneLabelMap,r=e.workTagMap,i=e.currentDispatcherRef,a=e.reactVersion,o=0,s=null,c=[],l=null,u=new Map,d=!1,f=!1;function p(){var e=Ma();return l?(l.startTime===0&&(l.startTime=e-Da),e-l.startTime):0}function m(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges==`function`){var e=__REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();if(Ct(e))return e}return null}function h(){return l}function g(e){for(var t=[],n=1,r=0;r<va;r++)n&e&&t.push(n),n*=2;return t}var _=typeof n==`function`?n():null;function v(){y(`--react-version-${a}`),y(`--profiler-version-${ya}`);var e=m();if(e)for(var t=0;t<e.length;t++){var n=e[t];if(Ct(n)&&n.length===2){var r=ba(e[t],2),i=r[0],o=r[1];y(`--react-internal-module-start-${i}`),y(`--react-internal-module-stop-${o}`)}}_!=null&&y(`--react-lane-labels-${Array.from(_.values()).join(`,`)}`)}function y(e){Oa.mark(e),Oa.clearMarks(e)}function b(e,t){var n=0;if(c.length>0){var r=c[c.length-1];n=r.type===`render-idle`?r.depth:r.depth+1}var i=g(t),a={type:e,batchUID:o,depth:n,lanes:i,timestamp:p(),duration:0};if(c.push(a),l){var s=l,u=s.batchUIDToMeasuresMap,d=s.laneToReactMeasureMap,f=u.get(o);f==null?u.set(o,[a]):f.push(a),i.forEach(function(e){f=d.get(e),f&&f.push(a)})}}function x(e){var t=p();if(c.length===0){console.error(`Unexpected type "%s" completed at %sms while currentReactMeasuresStack is empty.`,e,t);return}var n=c.pop();n.type!==e&&console.error(`Unexpected type "%s" completed at %sms before "%s" completed.`,e,t,n.type),n.duration=t-n.timestamp,l&&(l.duration=p()+Da)}function S(e){d&&(b(`commit`,e),f=!0,Q&&(y(`--commit-start-${e}`),v()))}function C(){d&&(x(`commit`),x(`render-idle`),Q&&y(`--commit-stop`))}function w(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`render`,warning:null},Q&&y(`--component-render-start-${n}`)}}function T(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-render-stop`))}function E(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`layout-effect-mount`,warning:null},Q&&y(`--component-layout-effect-mount-start-${n}`)}}function D(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-layout-effect-mount-stop`))}function O(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`layout-effect-unmount`,warning:null},Q&&y(`--component-layout-effect-unmount-start-${n}`)}}function k(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-layout-effect-unmount-stop`))}function A(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`passive-effect-mount`,warning:null},Q&&y(`--component-passive-effect-mount-start-${n}`)}}function j(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-passive-effect-mount-stop`))}function M(e){if(d){var n=t(e)||`Unknown`;s={componentName:n,duration:0,timestamp:p(),type:`passive-effect-unmount`,warning:null},Q&&y(`--component-passive-effect-unmount-start-${n}`)}}function N(){d&&(s&&=(l&&l.componentMeasures.push(s),s.duration=p()-s.timestamp,null),Q&&y(`--component-passive-effect-unmount-stop`))}function P(e,n,r){if(d){var i=t(e)||`Unknown`,a=e.alternate===null?`mount`:`update`,o=``;n!==null&&Ea(n)===`object`&&typeof n.message==`string`?o=n.message:typeof n==`string`&&(o=n),l&&l.thrownErrors.push({componentName:i,message:o,phase:a,timestamp:p(),type:`thrown-error`}),Q&&y(`--error-${i}-${a}-${o}`)}}var F=new(typeof WeakMap==`function`?WeakMap:Map),I=0;function L(e){return F.has(e)||F.set(e,I++),F.get(e)}function ee(e,n,r){if(d){var i=F.has(n)?`resuspend`:`suspend`,a=L(n),o=t(e)||`Unknown`,s=e.alternate===null?`mount`:`update`,c=n.displayName||``,u=null;u={componentName:o,depth:0,duration:0,id:`${a}`,phase:s,promiseName:c,resolution:`unresolved`,timestamp:p(),type:`suspense`,warning:null},l&&l.suspenseEvents.push(u),Q&&(y(`--suspense-${i}-${a}-${o}-${s}-${r}-${c}`),n.then(function(){u&&(u.duration=p()-u.timestamp,u.resolution=`resolved`),Q&&y(`--suspense-resolved-${a}-${o}`)},function(){u&&(u.duration=p()-u.timestamp,u.resolution=`rejected`),Q&&y(`--suspense-rejected-${a}-${o}`)}))}}function te(e){d&&(b(`layout-effects`,e),Q&&y(`--layout-effects-start-${e}`))}function R(){d&&(x(`layout-effects`),Q&&y(`--layout-effects-stop`))}function z(e){d&&(b(`passive-effects`,e),Q&&y(`--passive-effects-start-${e}`))}function B(){d&&(x(`passive-effects`),Q&&y(`--passive-effects-stop`))}function V(e){d&&(f&&(f=!1,o++),(c.length===0||c[c.length-1].type!==`render-idle`)&&b(`render-idle`,e),b(`render`,e),Q&&y(`--render-start-${e}`))}function ne(){d&&(x(`render`),Q&&y(`--render-yield`))}function re(){d&&(x(`render`),Q&&y(`--render-stop`))}function ie(e){d&&(l&&l.schedulingEvents.push({lanes:g(e),timestamp:p(),type:`schedule-render`,warning:null}),Q&&y(`--schedule-render-${e}`))}function ae(e,n){if(d){var r=t(e)||`Unknown`;l&&l.schedulingEvents.push({componentName:r,lanes:g(n),timestamp:p(),type:`schedule-force-update`,warning:null}),Q&&y(`--schedule-forced-update-${n}-${r}`)}}function H(e){for(var t=[],n=e;n!==null;)t.push(n),n=n.return;return t}function oe(e,n){if(d){var r=t(e)||`Unknown`;if(l){var i={componentName:r,lanes:g(n),timestamp:p(),type:`schedule-state-update`,warning:null};u.set(i,H(e)),l.schedulingEvents.push(i)}Q&&y(`--schedule-state-update-${n}-${r}`)}}function se(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d!==e)if(d=e,d){var n=new Map;if(Q){var p=m();if(p)for(var h=0;h<p.length;h++){var g=p[h];if(Ct(g)&&g.length===2){var v=ba(p[h],2),b=v[0],x=v[1];y(`--react-internal-module-start-${b}`),y(`--react-internal-module-stop-${x}`)}}}for(var S=new Map,C=1,w=0;w<va;w++)S.set(C,[]),C*=2;o=0,s=null,c=[],u=new Map,t&&(l={internalModuleSourceToRanges:n,laneToLabelMap:_||new Map,reactVersion:a,componentMeasures:[],schedulingEvents:[],suspenseEvents:[],thrownErrors:[],batchUIDToMeasuresMap:new Map,duration:0,laneToReactMeasureMap:S,startTime:0,flamechart:[],nativeEvents:[],networkMeasures:[],otherUserTimingMarks:[],snapshots:[],snapshotHeight:0}),f=!0}else l!==null&&l.schedulingEvents.forEach(function(e){if(e.type===`schedule-state-update`){var t=u.get(e);t&&i!=null&&(e.componentStack=t.reduce(function(e,t){return e+oa(r,t,i)},``))}}),u.clear()}return{getTimelineData:h,profilingHooks:{markCommitStarted:S,markCommitStopped:C,markComponentRenderStarted:w,markComponentRenderStopped:T,markComponentPassiveEffectMountStarted:A,markComponentPassiveEffectMountStopped:j,markComponentPassiveEffectUnmountStarted:M,markComponentPassiveEffectUnmountStopped:N,markComponentLayoutEffectMountStarted:E,markComponentLayoutEffectMountStopped:D,markComponentLayoutEffectUnmountStarted:O,markComponentLayoutEffectUnmountStopped:k,markComponentErrored:P,markComponentSuspended:ee,markLayoutEffectsStarted:te,markLayoutEffectsStopped:R,markPassiveEffectsStarted:z,markPassiveEffectsStopped:B,markRenderStarted:V,markRenderYielded:ne,markRenderStopped:re,markRenderScheduled:ie,markForceUpdateScheduled:ae,markStateUpdateScheduled:oe},toggleProfilingStatus:se}}function Pa(e,t){if(e==null)return{};var n=Fa(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fa(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ia(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 La(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ia(Object(n),!0).forEach(function(t){Ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ra(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e){return Ha(e)||Va(e)||Wa(e)||Ba()}function Ba(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
81
80
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Va(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Ha(e){if(Array.isArray(e))return Ga(e)}function Ua(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Wa(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
82
81
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function Wa(e,t){if(e){if(typeof e==`string`)return Ga(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ga(e,t)}}function Ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ka(e)}var qa=Object.prototype.toString;function Ja(e){return qa.call(e)===`[object Error]`}var Ya=0,Xa=1,Za=2;function Qa(e){return{kind:Ya,id:Ye(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,data:e}}function $a(e){return{kind:Za,id:0,parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,data:e}}function eo(e){return{kind:Xa,id:Ye(),parent:null,firstChild:null,nextSibling:null,source:null,logCount:0,treeBaseDuration:0,data:e}}function to(e){if(e.currentDispatcherRef!==void 0){var t=e.currentDispatcherRef;return t.H===void 0&&t.current!==void 0?{get H(){return t.current},set H(e){t.current=e}}:t}}function no(e){return e.flags===void 0?e.effectTag:e.flags}var ro=(typeof performance>`u`?`undefined`:Ka(performance))===`object`&&typeof performance.now==`function`?function(){return performance.now()}:function(){return Date.now()};function io(e){var t={ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90};qt(e,`17.0.2`)&&(t={ImmediatePriority:1,UserBlockingPriority:2,NormalPriority:3,LowPriority:4,IdlePriority:5,NoPriority:0});var n=0;G(e,`18.0.0-alpha`)?n=24:G(e,`16.9.0`)?n=1:G(e,`16.3.0`)&&(n=2);var r=null;r=qt(e,`17.0.1`)?{CacheComponent:24,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:26,HostSingleton:27,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:28,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:23,MemoComponent:14,Mode:8,OffscreenComponent:22,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:25,YieldComponent:-1,Throw:29,ViewTransitionComponent:30,ActivityComponent:31}:G(e,`17.0.0-alpha`)?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:24,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,ScopeComponent:21,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:G(e,`16.6.0-beta.0`)?{CacheComponent:-1,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:17,IncompleteFunctionComponent:-1,IndeterminateComponent:2,LazyComponent:16,LegacyHiddenComponent:-1,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,ScopeComponent:-1,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:G(e,`16.4.3-alpha`)?{CacheComponent:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostPortal:6,HostRoot:5,HostHoistable:-1,HostSingleton:-1,HostText:8,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:4,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:-1,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1}:{CacheComponent:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostPortal:4,HostRoot:3,HostHoistable:-1,HostSingleton:-1,HostText:6,IncompleteClassComponent:-1,IncompleteFunctionComponent:-1,IndeterminateComponent:0,LazyComponent:-1,LegacyHiddenComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,ScopeComponent:-1,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,TracingMarkerComponent:-1,YieldComponent:9,Throw:-1,ViewTransitionComponent:-1,ActivityComponent:-1};function i(e){var t=Ka(e)===`object`&&e!==null?e.$$typeof:e;return Ka(t)===`symbol`?t.toString():t}var a=r,o=a.CacheComponent,s=a.ClassComponent,c=a.IncompleteClassComponent,l=a.IncompleteFunctionComponent,u=a.FunctionComponent,d=a.IndeterminateComponent,f=a.ForwardRef,p=a.HostRoot,m=a.HostHoistable,h=a.HostSingleton,g=a.HostComponent,_=a.HostPortal,v=a.HostText,y=a.Fragment,b=a.LazyComponent,x=a.LegacyHiddenComponent,S=a.MemoComponent,C=a.OffscreenComponent,w=a.Profiler,T=a.ScopeComponent,E=a.SimpleMemoComponent,D=a.SuspenseComponent,O=a.SuspenseListComponent,k=a.TracingMarkerComponent,A=a.Throw,j=a.ViewTransitionComponent,M=a.ActivityComponent;function N(e){switch(i(e)){case Wi:case Gi:return N(e.type);case Hi:case Ui:return e.render;default:return e}}function P(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.elementType,a=e.type,F=e.tag,I=a;Ka(a)===`object`&&a!==null&&(I=N(a));var L=null;if(!n&&(e.updateQueue?.memoCache!=null||Array.isArray(e.memoizedState?.memoizedState)&&e.memoizedState.memoizedState[0]?.[ta]||(t=e.memoizedState)!=null&&t.memoizedState?.[ta])){var ee=P(e,!0);return ee==null?null:`Forget(${ee})`}switch(F){case M:return`Activity`;case o:return`Cache`;case s:case c:case l:case u:case d:return qe(I);case f:return Ke(r,I,`ForwardRef`,`Anonymous`);case p:var te=e.stateNode;return te!=null&&te._debugRootType!==null?te._debugRootType:null;case g:case h:case m:return a;case _:case v:return null;case y:return`Fragment`;case b:return`Lazy`;case S:case E:return Ke(r,I,`Memo`,`Anonymous`);case D:return`Suspense`;case x:return`LegacyHidden`;case C:return`Offscreen`;case T:return`Scope`;case O:return`SuspenseList`;case w:return`Profiler`;case k:return`TracingMarker`;case j:return`ViewTransition`;case A:return`Error`;default:switch(i(a)){case Ii:case Li:case Vi:return null;case Ji:case Yi:return L=e.type._context||e.type.context,`${L.displayName||`Context`}.Provider`;case Ri:case zi:case Bi:return e.type._context===void 0&&e.type.Provider===e.type?(L=e.type,`${L.displayName||`Context`}.Provider`):(L=e.type._context||e.type,`${L.displayName||`Context`}.Consumer`);case Xi:return L=e.type._context,`${L.displayName||`Context`}.Consumer`;case $i:case ea:return null;case Ki:case qi:return`Profiler(${e.memoizedProps.id})`;case Zi:case Qi:return`Scope`;default:return null}}}return{getDisplayNameForFiber:P,getTypeSymbol:i,ReactPriorityLevels:t,ReactTypeOfWork:r,StrictModeBits:n}}var ao=new Set,oo=new Map,$=new Map,so=new Map,co=new Map;function lo(e){if(Ka(e)===`object`&&e!==null){if(Ka(e.canonical)===`object`&&e.canonical!==null&&Ka(e.canonical.publicInstance)===`object`&&e.canonical.publicInstance!==null)return e.canonical.publicInstance;if(typeof e._nativeTag==`number`)return e._nativeTag}return e}function uo(e){return Ka(e)!==`object`||e===null?null:e.canonical!=null&&typeof e.canonical.nativeTag==`number`?e.canonical.nativeTag:typeof e._nativeTag==`number`?e._nativeTag:null}function fo(e,t){var n=lo(t);so.set(n,e)}function po(e,t){var n=lo(t);so.get(n)===e&&so.delete(n)}function mo(e,t){var n=t&&t.instance;if(n){var r=lo(n),i=co.get(r);i===void 0&&(i=new Set,co.set(r,i),so.set(r,e)),i.add(e)}}function ho(e,t){var n=t&&t.instance;if(n){var r=lo(n),i=co.get(r);if(i!==void 0){if(i.delete(e),i.size===0)co.delete(r),so.delete(r);else if(so.get(r)===e){var a=Ua(i),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;so.set(s,e);break}}catch(e){a.e(e)}finally{a.f()}}}}}function go(e,t,n,r,i,a){var o=n.reconcilerVersion||n.version,p=io(o),_=p.getDisplayNameForFiber,v=p.getTypeSymbol,y=p.ReactPriorityLevels,b=p.ReactTypeOfWork,x=p.StrictModeBits,S=b.ActivityComponent,C=b.CacheComponent,w=b.ClassComponent,T=b.ContextConsumer,E=b.DehydratedSuspenseComponent,D=b.ForwardRef,O=b.Fragment,k=b.FunctionComponent,A=b.HostRoot,j=b.HostHoistable,M=b.HostSingleton,N=b.HostPortal,P=b.HostComponent,F=b.HostText,I=b.IncompleteClassComponent,L=b.IncompleteFunctionComponent,ee=b.IndeterminateComponent,te=b.LegacyHiddenComponent,R=b.MemoComponent,z=b.OffscreenComponent,B=b.SimpleMemoComponent,V=b.SuspenseComponent,ne=b.SuspenseListComponent,re=b.TracingMarkerComponent,ie=b.Throw,ae=b.ViewTransitionComponent,H=y.ImmediatePriority,oe=y.UserBlockingPriority,se=y.NormalPriority,ce=y.LowPriority,le=y.IdlePriority,ue=y.NoPriority,Me=n.getLaneLabelMap,Ne=n.injectProfilingHooks,Pe=n.overrideHookState,Fe=n.overrideHookStateDeletePath,Ie=n.overrideHookStateRenamePath,Le=n.overrideProps,Re=n.overridePropsDeletePath,ze=n.overridePropsRenamePath,Be=n.scheduleRefresh,Ve=n.setErrorHandler,He=n.setSuspenseHandler,Ue=n.scheduleUpdate,We=n.getCurrentFiber,Ge=typeof Ve==`function`&&typeof Ue==`function`,Ke=typeof He==`function`&&typeof Ue==`function`;typeof Be==`function`&&(n.scheduleRefresh=function(){try{e.emit(`fastRefreshScheduled`)}finally{return Be.apply(void 0,arguments)}});var qe=null,Je=null;if(typeof Ne==`function`){var Ye=Na({getDisplayNameForFiber:_,getIsProfiling:function(){return pr},getLaneLabelMap:Me,currentDispatcherRef:to(n),workTagMap:b,reactVersion:o});Ne(Ye.profilingHooks),qe=Ye.getTimelineData,Je=Ye.toggleProfilingStatus}var Xe=new WeakMap,Ze=!1;function $e(){var e=!1,t=Ua($.values()),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.kind===Ya){var i=r.data;Xt(r,Xe.get(i))&&(e=!0,ut(r.id))}}}catch(e){t.e(e)}finally{t.f()}e&&Zt()}function nt(){var e=Ua($.values()),t;try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n.kind===Ya){var r=n.data;Xe.delete(r),r.alternate&&Xe.delete(r.alternate)}else Ei.delete(n.data);Xt(n,void 0)&&ut(n.id)}}catch(t){e.e(t)}finally{e.f()}Zt()}function st(e,t){var n=$.get(e);if(n!==void 0){var r;if(n.kind===Ya){var i=n.data;r=Xe.get(i),r===void 0&&i.alternate!==null&&(r=Xe.get(i.alternate))}else{var a=n.data;r=Ei.get(a)}r!==void 0&&(t===`error`?(r.errors.clear(),r.errorsCount=0):(r.warnings.clear(),r.warningsCount=0),Xt(n,r)&&(Zt(),ut(n.id)))}}function ct(e){st(e,`error`)}function lt(e){st(e,`warn`)}function ut(e){Yn!==null&&Yn.id===e&&(Xn=!0)}function dt(e){if(We==null)return null;var t=We();if(t===null||la(t))return null;var r=to(n);if(r===void 0)return null;var i=ua(t),a=``;if(i){var o=wt(e);o&&(a+=`
|
|
83
82
|
`+o),a+=da(b,t,r)}else a=sa(b,t,r);return{enableOwnerStacks:i,componentStack:a}}function ft(e,t){if(We!=null){var n=We();if(n!==null&&!(e===`error`&&(X.get(n)===!0||n.alternate!==null&&X.get(n.alternate)===!0))){var r=Gt.apply(void 0,za(t)),i=Xe.get(n);i===void 0&&n.alternate!==null&&(i=Xe.get(n.alternate),i!==void 0&&Xe.set(n,i)),i===void 0&&(i={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},Xe.set(n,i));var a=e===`error`?i.errors:i.warnings,o=a.get(r)||0;a.set(r,o+1),e===`error`?i.errorsCount++:i.warningsCount++,Ze=!0}}}function U(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:``;if(s){var i=t.kind===Xa?t.data.name||`null`:t.data.tag+`:`+(_(t.data)||`null`),a=t.kind===Za?`<no id>`:t.id,o=n===null?``:n.kind===Xa?n.data.name||`null`:n.data.tag+`:`+(_(n.data)||`null`),c=n===null||n.kind===Za?`<no id>`:n.id;console.groupCollapsed(`[renderer] %c${e} %c${i} (${a}) %c${n?`${o} (${c})`:``} %c${r}`,`color: red; font-weight: bold;`,`color: blue;`,`color: purple;`,`color: black;`),console.log(Error().stack.split(`
|
|
@@ -95,5 +94,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
95
94
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lo(e,t){if(e){if(typeof e==`string`)return Ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ro(e,t)}}function Ro(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zo(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function Bo(e){if(Array.isArray(e))return e}function Vo(e){var t=[...arguments].slice(1);if(t.length===0||typeof e!=`string`)return[e].concat(t);for(var n=t.slice(),r=``,i=0,a=0;a<e.length;++a){var o=e[a];if(o!==`%`){r+=o;continue}var s=e[a+1];switch(++a,s){case`c`:case`O`:case`o`:++i,r+=`%${s}`;break;case`d`:case`i`:var c=Fo(n.splice(i,1),1)[0];r+=parseInt(c,10).toString();break;case`f`:var l=Fo(n.splice(i,1),1)[0];r+=parseFloat(l).toString();break;case`s`:var u=Fo(n.splice(i,1),1)[0];r+=String(u);break;default:r+=`%${s}`}}return[r].concat(jo(n))}function Ho(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Go(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
96
95
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function Uo(e){return qo(e)||Ko(e)||Go(e)||Wo()}function Wo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
97
96
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Go(e,t){if(e){if(typeof e==`string`)return Jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jo(e,t)}}function Ko(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function qo(e){if(Array.isArray(e))return Jo(e)}function Jo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Yo=/\s{4}(in|at)\s{1}/,Xo=/:\d+:\d+(\n|$)/;function Zo(e){return Yo.test(e)||Xo.test(e)}var Qo=/ \(\<anonymous\>\)$|\@unknown\:0\:0$|\(|\)|\[|\]/gm;function $o(e,t){return e.replace(Qo,``)===t.replace(Qo,``)}var es=console,ts={recordChangeDescriptions:!1,recordTimeline:!1};function ns(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ts;if(e.hasOwnProperty(`__REACT_DEVTOOLS_GLOBAL_HOOK__`))return null;function i(e){try{if(typeof e.version==`string`)return e.bundleType>0?`development`:`production`;var t=Function.prototype.toString;if(e.Mount&&e.Mount._renderNewRootComponent){var n=t.call(e.Mount._renderNewRootComponent);return n.indexOf(`function`)===0?n.indexOf(`storedMeasure`)===-1?n.indexOf(`should be a pure function`)===-1?n.indexOf(`nextElement`)!==-1||n.indexOf(`nextComponent`)!==-1?`unminified`:`outdated`:n.indexOf(`NODE_ENV`)!==-1||n.indexOf(`development`)!==-1||n.indexOf(`true`)!==-1?`development`:n.indexOf(`nextElement`)!==-1||n.indexOf(`nextComponent`)!==-1?`unminified`:`development`:`development`:`production`}}catch{}return`production`}function a(e){try{Function.prototype.toString.call(e).indexOf(`^_^`)>-1&&(l=!0,setTimeout(function(){throw Error(`React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build`)}))}catch{}}var o=n,s=0;function c(t){var n=++s;F.set(n,t);var a=l?`deadcode`:i(t);I.emit(`renderer`,{id:n,renderer:t,reactBuildType:a});var c=Ao(I,n,t,e,o,r);return c==null?(I.hasUnsupportedRendererAttached=!0,I.emit(`unsupported-renderer-version`)):(I.rendererInterfaces.set(n,c),I.emit(`renderer-attached`,{id:n,rendererInterface:c})),n}var l=!1;function u(e,t){return I.on(e,t),function(){return I.off(e,t)}}function d(e,t){P[e]||(P[e]=[]),P[e].push(t)}function f(e,t){if(P[e]){var n=P[e].indexOf(t);n!==-1&&P[e].splice(n,1),P[e].length||delete P[e]}}function p(e,t){P[e]&&P[e].map(function(e){return e(t)})}function m(e){var t=M;return t[e]||(t[e]=new Set),t[e]}function h(e,t){N.get(e)?.handleCommitFiberUnmount(t)}function g(e,t,n){var r=I.getFiberRoots(e),i=t.current,a=r.has(t),o=i.memoizedState==null||i.memoizedState.element==null;!a&&!o?r.add(t):a&&o&&r.delete(t),N.get(e)?.handleCommitFiberRoot(t,n)}function _(e,t){N.get(e)?.handlePostCommitFiberRoot(t)}var b=!1;function x(e,t){b=t,t?C():w()}var S=[];function C(){if(I.settings&&!(S.length>0))for(var e=[`group`,`groupCollapsed`,`info`,`log`],t=function(){var e=r[n],t=es[e];es[e]=function(){var e=I.settings,n=[...arguments];if(e==null){t.apply(void 0,n);return}e.hideConsoleLogsInStrictMode||t.apply(void 0,[v].concat(Uo(Vo.apply(void 0,n))))},S.push(function(){es[e]=t})},n=0,r=e;n<r.length;n++)t()}function w(){S.forEach(function(e){return e()}),S.length=0}var T=[],E=[];function D(e){var t=e.stack.split(`
|
|
98
|
-
`);return t.length>1?t[1]:null}function O(){return E}function k(e){var t=D(e);t!==null&&T.push(t)}function A(e){if(T.length>0){var t=T.pop(),n=D(e);n!==null&&E.push([t,n])}}function j(){if(I.settings)for(var e=[`error`,`trace`,`warn`],t=function(){var e=r[n],t=es[e];es[e]=function(){var n=I.settings,r=[...arguments];if(n==null){t.apply(void 0,r);return}if(!(b&&n.hideConsoleLogsInStrictMode)){var i=!1,a=!1;if(n.appendComponentStack){var o=r.length>0?r[r.length-1]:null;a=typeof o==`string`&&Zo(o)}var s=n.showInlineWarningsAndErrors&&(e===`error`||e===`warn`),c=Ho(I.rendererInterfaces.values()),l;try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.onErrorOrWarning,f=u.getComponentStack;try{s&&d?.(e,r.slice())}catch(e){setTimeout(function(){throw e},0)}try{if(n.appendComponentStack&&f!=null){var p=f(Error(`react-stack-top-frame`));if(p!==null){var m=p.enableOwnerStacks,h=p.componentStack;if(h!==``){var g=Error(``);if(g.name=m?`Stack`:`Component Stack`,g.stack=(m?`Error Stack:`:`Error Component Stack:`)+h,a){if($o(r[r.length-1],h)){var _=r[0];r.length>1&&typeof _==`string`&&_.endsWith(`%s`)&&(r[0]=_.slice(0,_.length-2)),r[r.length-1]=g,i=!0}}else r.push(g),i=!0}break}}}catch(e){setTimeout(function(){throw e},0)}}}catch(e){c.e(e)}finally{c.f()}if(n.breakOnConsoleErrors)debugger;b?t.apply(void 0,[i?y:v].concat(Uo(Vo.apply(void 0,r)))):t.apply(void 0,r)}}},n=0,r=e;n<r.length;n++)t()}var M={},N=new Map,P={},F=new Map,I={rendererInterfaces:N,listeners:P,backends:new Map,renderers:F,hasUnsupportedRendererAttached:!1,emit:p,getFiberRoots:m,inject:c,on:d,off:f,sub:u,supportsFiber:!0,supportsFlight:!0,checkDCE:a,onCommitFiberUnmount:h,onCommitFiberRoot:g,onPostCommitFiberRoot:_,setStrictMode:x,getInternalModuleRanges:O,registerInternalModuleStart:k,registerInternalModuleStop:A};return t==null?(I.settings={appendComponentStack:!0,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!0,hideConsoleLogsInStrictMode:!1},j()):Promise.resolve(t).then(function(e){I.settings=e,I.emit(`settingsInitialized`,e),j()}).catch(function(){es.error(`React DevTools failed to get Console Patching settings. Console won't be patched and some console features will not work.`)}),Object.defineProperty(e,`__REACT_DEVTOOLS_GLOBAL_HOOK__`,{configurable:!1,enumerable:!1,get:function(){return I}}),I}function rs(e,t,n,r){if(e==null)return function(){};function i(e,n){t.registerRendererInterface(e,n),n.flushInitialOperations()}var a=[e.sub(`renderer-attached`,function(e){var t=e.id,n=e.rendererInterface;i(t,n)}),e.sub(`unsupported-renderer-version`,function(){t.onUnsupportedRenderer()}),e.sub(`fastRefreshScheduled`,t.onFastRefreshScheduled),e.sub(`operations`,t.onHookOperations),e.sub(`traceUpdates`,t.onTraceUpdates),e.sub(`settingsInitialized`,t.onHookSettings)];return t.addListener(`getIfHasUnsupportedRendererVersion`,function(){e.hasUnsupportedRendererAttached&&t.onUnsupportedRenderer()}),e.rendererInterfaces.forEach(function(e,t){i(t,e)}),e.emit(`react-devtools`,t),e.reactDevtoolsAgent=t,t.addListener(`shutdown`,function(){a.forEach(function(e){return e()}),e.rendererInterfaces.forEach(function(e){e.cleanup()}),e.reactDevtoolsAgent=null}),t.addListener(`updateHookSettings`,function(t){e.settings=t}),t.addListener(`getHookSettings`,function(){e.settings!=null&&t.onHookSettings(e.settings)}),r&&t.onReloadAndProfileSupportedByHost(),function(){a.forEach(function(e){return e()})}}function is(e,t){var n=!1,r={bottom:0,left:0,right:0,top:0},i=t[e];if(i!=null){for(var a=0,o=Object.keys(r);a<o.length;a++){var s=o[a];r[s]=i}n=!0}var c=t[e+`Horizontal`];if(c!=null)r.left=c,r.right=c,n=!0;else{var l=t[e+`Left`];l!=null&&(r.left=l,n=!0);var u=t[e+`Right`];u!=null&&(r.right=u,n=!0);var d=t[e+`End`];d!=null&&(r.right=d,n=!0);var f=t[e+`Start`];f!=null&&(r.left=f,n=!0)}var p=t[e+`Vertical`];if(p!=null)r.bottom=p,r.top=p,n=!0;else{var m=t[e+`Bottom`];m!=null&&(r.bottom=m,n=!0);var h=t[e+`Top`];h!=null&&(r.top=h,n=!0)}return n?r:null}function as(e){"@babel/helpers - typeof";return as=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},as(e)}function os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ss(e,t,n,r){e.addListener(`NativeStyleEditor_measure`,function(r){var i=r.id,a=r.rendererID;us(t,e,n,i,a)}),e.addListener(`NativeStyleEditor_renameAttribute`,function(r){var i=r.id,a=r.rendererID,o=r.oldName,s=r.newName,c=r.value;fs(t,i,a,o,s,c),setTimeout(function(){return us(t,e,n,i,a)})}),e.addListener(`NativeStyleEditor_setValue`,function(r){var i=r.id,a=r.rendererID,o=r.name,s=r.value;ps(t,i,a,o,s),setTimeout(function(){return us(t,e,n,i,a)})}),e.send(`isNativeStyleEditorSupported`,{isSupported:!0,validAttributes:r})}var cs={top:0,left:0,right:0,bottom:0},ls=new Map;function us(e,t,n,r,i){var a=e.getInstanceAndStyle({id:r,rendererID:i});if(!a||!a.style){t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:null,style:null});return}var o=a.instance,s=a.style,c=n(s),l=ls.get(r);if(l!=null&&(c=Object.assign({},c,l)),!o||typeof o.measure!=`function`){t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:null,style:c||null});return}o.measure(function(e,n,i,a,o,s){if(typeof e!=`number`){t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:null,style:c||null});return}var l=c!=null&&is(`margin`,c)||cs,u=c!=null&&is(`padding`,c)||cs;t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:{x:e,y:n,width:i,height:a,left:o,top:s,margin:l,padding:u},style:c||null})})}function ds(e){var t={};for(var n in e)t[n]=e[n];return t}function fs(e,t,n,r,i,a){var o,s=e.getInstanceAndStyle({id:t,rendererID:n});if(!(!s||!s.style)){var c=s.instance,l=s.style,u=i?(o={},os(o,r,void 0),os(o,i,a),o):os({},r,void 0),d;if(c!==null&&typeof c.setNativeProps==`function`){var f=ls.get(t);f?Object.assign(f,u):ls.set(t,u),c.setNativeProps({style:u})}else if(Me(l)){var p=l.length-1;as(l[p])===`object`&&!Me(l[p])?(d=ds(l[p]),delete d[r],i?d[i]=a:d[r]=void 0,e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`,p],value:d})):e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:l.concat([u])})}else as(l)===`object`?(d=ds(l),delete d[r],i?d[i]=a:d[r]=void 0,e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:d})):e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:[l,u]});e.emit(`hideNativeHighlight`)}}function ps(e,t,n,r,i){var a=e.getInstanceAndStyle({id:t,rendererID:n});if(!(!a||!a.style)){var o=a.instance,s=a.style,c=os({},r,i);if(o!==null&&typeof o.setNativeProps==`function`){var l=ls.get(t);l?Object.assign(l,c):ls.set(t,c),o.setNativeProps({style:c})}else if(Me(s)){var u=s.length-1;as(s[u])===`object`&&!Me(s[u])?e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`,u,r],value:i}):e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:s.concat([c])})}else e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:[s,c]});e.emit(`hideNativeHighlight`)}}var ms=et();function hs(e){if(s){var t,n=[...arguments].slice(1);(t=console).log.apply(t,[`%c[core/backend] %c${e}`,`color: teal; font-weight: bold;`,`font-weight: bold;`].concat(n))}}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;ns(window,e,t,n)}function _s(e){var t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t==null)return;var n=e||{},r=n.host,i=r===void 0?`localhost`:r,a=n.nativeStyleEditorValidAttributes,o=n.useHttps,c=o===void 0?!1:o,l=n.port,u=l===void 0?8097:l,d=n.websocket,f=n.resolveRNStyle,p=f===void 0?null:f,m=n.retryConnectionDelay,h=m===void 0?2e3:m,g=n.isAppActive,_=g===void 0?function(){return!0}:g,v=n.onSettingsUpdated,y=n.isReloadAndProfileSupported,b=y===void 0?mt():y,x=n.isProfiling,S=n.onReloadAndProfile,C=n.onReloadAndProfileFlagsReset,w=c?`wss`:`ws`,T=null;function E(){T===null&&(T=setTimeout(function(){return _s(e)},h))}if(!_()){E();return}var D=null,O=[],k=w+`://`+i+`:`+u,A=d||new window.WebSocket(k);A.onclose=j,A.onerror=M,A.onmessage=N,A.onopen=function(){D=new Fr({listen:function(e){return O.push(e),function(){var t=O.indexOf(e);t>=0&&O.splice(t,1)}},send:function(e,t,n){A.readyState===A.OPEN?(s&&hs(`wall.send()`,e,t),A.send(JSON.stringify({event:e,payload:t}))):(s&&hs(`wall.send()`,`Shutting down bridge because of closed WebSocket connection`),D!==null&&D.shutdown(),E())}}),D.addListener(`updateComponentFilters`,function(e){ms=e}),window.__REACT_DEVTOOLS_COMPONENT_FILTERS__??D.send(`overrideComponentFilters`,ms);var e=new Xr(D,x,S);if(typeof C==`function`&&C(),v!=null&&e.addListener(`updateHookSettings`,v),e.addListener(`shutdown`,function(){v!=null&&e.removeListener(`updateHookSettings`,v),t.emit(`shutdown`)}),rs(t,e,window,b),p!=null||t.resolveRNStyle!=null)ss(D,e,p||t.resolveRNStyle,a||t.nativeStyleEditorValidAttributes||null);else{var n,r,i=function(){D!==null&&ss(D,e,n,r)};t.hasOwnProperty(`resolveRNStyle`)||Object.defineProperty(t,`resolveRNStyle`,{enumerable:!1,get:function(){return n},set:function(e){n=e,i()}}),t.hasOwnProperty(`nativeStyleEditorValidAttributes`)||Object.defineProperty(t,`nativeStyleEditorValidAttributes`,{enumerable:!1,get:function(){return r},set:function(e){r=e,i()}})}};function j(){s&&hs(`WebSocket.onclose`),D!==null&&D.emit(`shutdown`),E()}function M(){s&&hs(`WebSocket.onerror`),E()}function N(e){var t;try{if(typeof e.data==`string`)t=JSON.parse(e.data),s&&hs(`WebSocket.onmessage`,t);else throw Error()}catch{console.error(`[React DevTools] Failed to parse JSON: `+e.data);return}O.forEach(function(e){try{e(t)}catch(e){throw console.log(`[React DevTools] Error calling listener`,t),console.log(`error:`,e),e}})}}function vs(e){var t=e.onSubscribe,n=e.onUnsubscribe,r=e.onMessage,i=e.nativeStyleEditorValidAttributes,a=e.resolveRNStyle,o=e.onSettingsUpdated,s=e.isReloadAndProfileSupported,c=s===void 0?mt():s,l=e.isProfiling,u=e.onReloadAndProfile,d=e.onReloadAndProfileFlagsReset,f=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f!=null){var p=new Fr({listen:function(e){return t(e),function(){n(e)}},send:function(e,t){r(e,t)}});p.addListener(`updateComponentFilters`,function(e){ms=e}),window.__REACT_DEVTOOLS_COMPONENT_FILTERS__??p.send(`overrideComponentFilters`,ms);var m=new Xr(p,l,u);typeof d==`function`&&d(),o!=null&&m.addListener(`updateHookSettings`,o),m.addListener(`shutdown`,function(){o!=null&&m.removeListener(`updateHookSettings`,o),f.emit(`shutdown`)});var h=rs(f,m,window,c),g=a||f.resolveRNStyle;return g!=null&&ss(p,m,g,i||f.nativeStyleEditorValidAttributes||null),h}}})(),r})())}))(),1);y.default.initialize(),y.default.connectToDevTools();export{};
|
|
99
|
-
//# debugId=
|
|
97
|
+
`);return t.length>1?t[1]:null}function O(){return E}function k(e){var t=D(e);t!==null&&T.push(t)}function A(e){if(T.length>0){var t=T.pop(),n=D(e);n!==null&&E.push([t,n])}}function j(){if(I.settings)for(var e=[`error`,`trace`,`warn`],t=function(){var e=r[n],t=es[e];es[e]=function(){var n=I.settings,r=[...arguments];if(n==null){t.apply(void 0,r);return}if(!(b&&n.hideConsoleLogsInStrictMode)){var i=!1,a=!1;if(n.appendComponentStack){var o=r.length>0?r[r.length-1]:null;a=typeof o==`string`&&Zo(o)}var s=n.showInlineWarningsAndErrors&&(e===`error`||e===`warn`),c=Ho(I.rendererInterfaces.values()),l;try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.onErrorOrWarning,f=u.getComponentStack;try{s&&d?.(e,r.slice())}catch(e){setTimeout(function(){throw e},0)}try{if(n.appendComponentStack&&f!=null){var p=f(Error(`react-stack-top-frame`));if(p!==null){var m=p.enableOwnerStacks,h=p.componentStack;if(h!==``){var g=Error(``);if(g.name=m?`Stack`:`Component Stack`,g.stack=(m?`Error Stack:`:`Error Component Stack:`)+h,a){if($o(r[r.length-1],h)){var _=r[0];r.length>1&&typeof _==`string`&&_.endsWith(`%s`)&&(r[0]=_.slice(0,_.length-2)),r[r.length-1]=g,i=!0}}else r.push(g),i=!0}break}}}catch(e){setTimeout(function(){throw e},0)}}}catch(e){c.e(e)}finally{c.f()}if(n.breakOnConsoleErrors)debugger;b?t.apply(void 0,[i?y:v].concat(Uo(Vo.apply(void 0,r)))):t.apply(void 0,r)}}},n=0,r=e;n<r.length;n++)t()}var M={},N=new Map,P={},F=new Map,I={rendererInterfaces:N,listeners:P,backends:new Map,renderers:F,hasUnsupportedRendererAttached:!1,emit:p,getFiberRoots:m,inject:c,on:d,off:f,sub:u,supportsFiber:!0,supportsFlight:!0,checkDCE:a,onCommitFiberUnmount:h,onCommitFiberRoot:g,onPostCommitFiberRoot:_,setStrictMode:x,getInternalModuleRanges:O,registerInternalModuleStart:k,registerInternalModuleStop:A};return t==null?(I.settings={appendComponentStack:!0,breakOnConsoleErrors:!1,showInlineWarningsAndErrors:!0,hideConsoleLogsInStrictMode:!1},j()):Promise.resolve(t).then(function(e){I.settings=e,I.emit(`settingsInitialized`,e),j()}).catch(function(){es.error(`React DevTools failed to get Console Patching settings. Console won't be patched and some console features will not work.`)}),Object.defineProperty(e,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:function(){return I}}),I}function rs(e,t,n,r){if(e==null)return function(){};function i(e,n){t.registerRendererInterface(e,n),n.flushInitialOperations()}var a=[e.sub(`renderer-attached`,function(e){var t=e.id,n=e.rendererInterface;i(t,n)}),e.sub(`unsupported-renderer-version`,function(){t.onUnsupportedRenderer()}),e.sub(`fastRefreshScheduled`,t.onFastRefreshScheduled),e.sub(`operations`,t.onHookOperations),e.sub(`traceUpdates`,t.onTraceUpdates),e.sub(`settingsInitialized`,t.onHookSettings)];return t.addListener(`getIfHasUnsupportedRendererVersion`,function(){e.hasUnsupportedRendererAttached&&t.onUnsupportedRenderer()}),e.rendererInterfaces.forEach(function(e,t){i(t,e)}),e.emit(`react-devtools`,t),e.reactDevtoolsAgent=t,t.addListener(`shutdown`,function(){a.forEach(function(e){return e()}),e.rendererInterfaces.forEach(function(e){e.cleanup()}),e.reactDevtoolsAgent=null}),t.addListener(`updateHookSettings`,function(t){e.settings=t}),t.addListener(`getHookSettings`,function(){e.settings!=null&&t.onHookSettings(e.settings)}),r&&t.onReloadAndProfileSupportedByHost(),function(){a.forEach(function(e){return e()})}}function is(e,t){var n=!1,r={bottom:0,left:0,right:0,top:0},i=t[e];if(i!=null){for(var a=0,o=Object.keys(r);a<o.length;a++){var s=o[a];r[s]=i}n=!0}var c=t[e+`Horizontal`];if(c!=null)r.left=c,r.right=c,n=!0;else{var l=t[e+`Left`];l!=null&&(r.left=l,n=!0);var u=t[e+`Right`];u!=null&&(r.right=u,n=!0);var d=t[e+`End`];d!=null&&(r.right=d,n=!0);var f=t[e+`Start`];f!=null&&(r.left=f,n=!0)}var p=t[e+`Vertical`];if(p!=null)r.bottom=p,r.top=p,n=!0;else{var m=t[e+`Bottom`];m!=null&&(r.bottom=m,n=!0);var h=t[e+`Top`];h!=null&&(r.top=h,n=!0)}return n?r:null}function as(e){"@babel/helpers - typeof";return as=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},as(e)}function os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ss(e,t,n,r){e.addListener(`NativeStyleEditor_measure`,function(r){var i=r.id,a=r.rendererID;us(t,e,n,i,a)}),e.addListener(`NativeStyleEditor_renameAttribute`,function(r){var i=r.id,a=r.rendererID,o=r.oldName,s=r.newName,c=r.value;fs(t,i,a,o,s,c),setTimeout(function(){return us(t,e,n,i,a)})}),e.addListener(`NativeStyleEditor_setValue`,function(r){var i=r.id,a=r.rendererID,o=r.name,s=r.value;ps(t,i,a,o,s),setTimeout(function(){return us(t,e,n,i,a)})}),e.send(`isNativeStyleEditorSupported`,{isSupported:!0,validAttributes:r})}var cs={top:0,left:0,right:0,bottom:0},ls=new Map;function us(e,t,n,r,i){var a=e.getInstanceAndStyle({id:r,rendererID:i});if(!a||!a.style){t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:null,style:null});return}var o=a.instance,s=a.style,c=n(s),l=ls.get(r);if(l!=null&&(c=Object.assign({},c,l)),!o||typeof o.measure!=`function`){t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:null,style:c||null});return}o.measure(function(e,n,i,a,o,s){if(typeof e!=`number`){t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:null,style:c||null});return}var l=c!=null&&is(`margin`,c)||cs,u=c!=null&&is(`padding`,c)||cs;t.send(`NativeStyleEditor_styleAndLayout`,{id:r,layout:{x:e,y:n,width:i,height:a,left:o,top:s,margin:l,padding:u},style:c||null})})}function ds(e){var t={};for(var n in e)t[n]=e[n];return t}function fs(e,t,n,r,i,a){var o,s=e.getInstanceAndStyle({id:t,rendererID:n});if(!(!s||!s.style)){var c=s.instance,l=s.style,u=i?(o={},os(o,r,void 0),os(o,i,a),o):os({},r,void 0),d;if(c!==null&&typeof c.setNativeProps==`function`){var f=ls.get(t);f?Object.assign(f,u):ls.set(t,u),c.setNativeProps({style:u})}else if(Me(l)){var p=l.length-1;as(l[p])===`object`&&!Me(l[p])?(d=ds(l[p]),delete d[r],i?d[i]=a:d[r]=void 0,e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`,p],value:d})):e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:l.concat([u])})}else as(l)===`object`?(d=ds(l),delete d[r],i?d[i]=a:d[r]=void 0,e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:d})):e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:[l,u]});e.emit(`hideNativeHighlight`)}}function ps(e,t,n,r,i){var a=e.getInstanceAndStyle({id:t,rendererID:n});if(!(!a||!a.style)){var o=a.instance,s=a.style,c=os({},r,i);if(o!==null&&typeof o.setNativeProps==`function`){var l=ls.get(t);l?Object.assign(l,c):ls.set(t,c),o.setNativeProps({style:c})}else if(Me(s)){var u=s.length-1;as(s[u])===`object`&&!Me(s[u])?e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`,u,r],value:i}):e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:s.concat([c])})}else e.overrideValueAtPath({type:`props`,id:t,rendererID:n,path:[`style`],value:[s,c]});e.emit(`hideNativeHighlight`)}}var ms=et();function hs(e){if(s){var t,n=[...arguments].slice(1);(t=console).log.apply(t,[`%c[core/backend] %c${e}`,`color: teal; font-weight: bold;`,`font-weight: bold;`].concat(n))}}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;ns(window,e,t,n)}function _s(e){var t=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t==null)return;var n=e||{},r=n.host,i=r===void 0?`localhost`:r,a=n.nativeStyleEditorValidAttributes,o=n.useHttps,c=o===void 0?!1:o,l=n.port,u=l===void 0?8097:l,d=n.websocket,f=n.resolveRNStyle,p=f===void 0?null:f,m=n.retryConnectionDelay,h=m===void 0?2e3:m,g=n.isAppActive,_=g===void 0?function(){return!0}:g,v=n.onSettingsUpdated,y=n.isReloadAndProfileSupported,b=y===void 0?mt():y,x=n.isProfiling,S=n.onReloadAndProfile,C=n.onReloadAndProfileFlagsReset,w=c?`wss`:`ws`,T=null;function E(){T===null&&(T=setTimeout(function(){return _s(e)},h))}if(!_()){E();return}var D=null,O=[],k=w+`://`+i+`:`+u,A=d||new window.WebSocket(k);A.onclose=j,A.onerror=M,A.onmessage=N,A.onopen=function(){D=new Fr({listen:function(e){return O.push(e),function(){var t=O.indexOf(e);t>=0&&O.splice(t,1)}},send:function(e,t,n){A.readyState===A.OPEN?(s&&hs(`wall.send()`,e,t),A.send(JSON.stringify({event:e,payload:t}))):(s&&hs(`wall.send()`,`Shutting down bridge because of closed WebSocket connection`),D!==null&&D.shutdown(),E())}}),D.addListener(`updateComponentFilters`,function(e){ms=e}),window.__REACT_DEVTOOLS_COMPONENT_FILTERS__??D.send(`overrideComponentFilters`,ms);var e=new Xr(D,x,S);if(typeof C==`function`&&C(),v!=null&&e.addListener(`updateHookSettings`,v),e.addListener(`shutdown`,function(){v!=null&&e.removeListener(`updateHookSettings`,v),t.emit(`shutdown`)}),rs(t,e,window,b),p!=null||t.resolveRNStyle!=null)ss(D,e,p||t.resolveRNStyle,a||t.nativeStyleEditorValidAttributes||null);else{var n,r,i=function(){D!==null&&ss(D,e,n,r)};t.hasOwnProperty(`resolveRNStyle`)||Object.defineProperty(t,"resolveRNStyle",{enumerable:!1,get:function(){return n},set:function(e){n=e,i()}}),t.hasOwnProperty(`nativeStyleEditorValidAttributes`)||Object.defineProperty(t,"nativeStyleEditorValidAttributes",{enumerable:!1,get:function(){return r},set:function(e){r=e,i()}})}};function j(){s&&hs(`WebSocket.onclose`),D!==null&&D.emit(`shutdown`),E()}function M(){s&&hs(`WebSocket.onerror`),E()}function N(e){var t;try{if(typeof e.data==`string`)t=JSON.parse(e.data),s&&hs(`WebSocket.onmessage`,t);else throw Error()}catch{console.error(`[React DevTools] Failed to parse JSON: `+e.data);return}O.forEach(function(e){try{e(t)}catch(e){throw console.log(`[React DevTools] Error calling listener`,t),console.log(`error:`,e),e}})}}function vs(e){var t=e.onSubscribe,n=e.onUnsubscribe,r=e.onMessage,i=e.nativeStyleEditorValidAttributes,a=e.resolveRNStyle,o=e.onSettingsUpdated,s=e.isReloadAndProfileSupported,c=s===void 0?mt():s,l=e.isProfiling,u=e.onReloadAndProfile,d=e.onReloadAndProfileFlagsReset,f=window.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f!=null){var p=new Fr({listen:function(e){return t(e),function(){n(e)}},send:function(e,t){r(e,t)}});p.addListener(`updateComponentFilters`,function(e){ms=e}),window.__REACT_DEVTOOLS_COMPONENT_FILTERS__??p.send(`overrideComponentFilters`,ms);var m=new Xr(p,l,u);typeof d==`function`&&d(),o!=null&&m.addListener(`updateHookSettings`,o),m.addListener(`shutdown`,function(){o!=null&&m.removeListener(`updateHookSettings`,o),f.emit(`shutdown`)});var h=rs(f,m,window,c),g=a||f.resolveRNStyle;return g!=null&&ss(p,m,g,i||f.nativeStyleEditorValidAttributes||null),h}}})(),r})())}))(),1);y.default.initialize(),y.default.connectToDevTools();export{};
|
|
98
|
+
//# debugId=4b5668e9-2a6a-5b4b-8642-313f7fc9e8a1
|