@langgenius/nodwork-linux-arm64 0.0.0-bootstrap.0 → 0.0.1-beta
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/README.md +3 -2
- package/package.json +24 -6
- package/payload/.env.example +2 -0
- package/payload/dist/chunk-BwDYZCav.js +1 -0
- package/payload/dist/cli.d.ts +4 -0
- package/payload/dist/cli.js +514 -0
- package/payload/dist/devtools-D4NxccOc.js +96 -0
- package/payload/dist/token-CqKQPcXv.js +1 -0
- package/payload/dist/token-error-CxiWEZm9.js +1 -0
- package/payload/dist/token-util-CiNuS5JL.js +1 -0
- package/payload/dist/token-util-Cscbk5az.js +1 -0
- package/payload/package.json +54 -0
- package/payload/vendor/node-pty/LICENSE +69 -0
- package/payload/vendor/node-pty/build/Release/pty.node +0 -0
- package/payload/vendor/node-pty/lib/eventEmitter2.js +46 -0
- package/payload/vendor/node-pty/lib/index.js +51 -0
- package/payload/vendor/node-pty/lib/terminal.js +189 -0
- package/payload/vendor/node-pty/lib/unixTerminal.js +345 -0
- package/payload/vendor/node-pty/lib/utils.js +38 -0
- package/payload/vendor/node-pty/package.json +64 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import{i as e,r as t,t as n}from"./chunk-BwDYZCav.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(((e,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 e=t(`bufferutil`);n.exports.mask=function(t,n,r,i,a){a<48?s(t,n,r,i,a):e.mask(t,n,r,i,a)},n.exports.unmask=function(t,n){t.length<32?c(t,n):e.unmask(t,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(((e,n)=>{let o=t(`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,t,n){this._maxPayload=n|0,this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._isServer=!!t,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(((e,n)=>{let{isUtf8:i}=t(`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 e=t(`utf-8-validate`);n.exports.isValidUTF8=function(t){return t.length<32?c(t):e(t)}}catch{}})),c=n(((e,n)=>{let{Writable:a}=t(`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(((e,n)=>{let{Duplex:a}=t(`stream`),{randomFillSync:c}=t(`crypto`),l=o(),{EMPTY_BUFFER:u,kWebSocket:d,NOOP:f}=r(),{isBlob:p,isValidStatusCode:m}=s(),{mask:h,toBuffer:g}=i(),_=Symbol(`kByteLength`),v=Buffer.alloc(4),y=8*1024,b,x=y;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=f,this[d]=void 0}static frame(e,t){let n,r=!1,i=2,a=!1;t.mask&&(n=t.maskBuffer||v,t.generateMask?t.generateMask(n):(x===y&&(b===void 0&&(b=Buffer.alloc(y)),c(b,0,y),x=0),n[0]=b[x++],n[1]=b[x++],n[2]=b[x++],n[3]=b[x++]),a=(n[0]|n[1]|n[2]|n[3])===0,i=6);let o;typeof e==`string`?(!t.mask||a)&&t[_]!==void 0?o=t[_]:(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?(h(e,n,l,i,o),[l]):(h(e,n,e,0,o),[l,e])}close(t,n,r,i){let a;if(t===void 0)a=u;else if(typeof t!=`number`||!m(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`);a=Buffer.allocUnsafe(2+e),a.writeUInt16BE(t,0),typeof n==`string`?a.write(n,2):a.set(n,2)}let o={[_]: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):p(t)?(i=t.size,a=!1):(t=g(t),i=t.length,a=g.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[_]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};p(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):p(t)?(i=t.size,a=!1):(t=g(t),i=t.length,a=g.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[_]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};p(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[l.extensionName],i=t.binary?2:1,a=t.compress,o,s;typeof e==`string`?(o=Buffer.byteLength(e),s=!1):p(e)?(o=e.size,s=!1):(e=g(e),o=e.length,s=g.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={[_]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:s,rsv1:a};p(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[_],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(S,this,e,i);return}this._bufferedBytes-=r[_];let a=g(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(C,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let a=this._extensions[l.extensionName];this._bufferedBytes+=r[_],this._state=1,a.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){S(this,Error(`The socket was closed while data was being compressed`),i);return}this._bufferedBytes-=r[_],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][_],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][_],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 S(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 C(e,t,n){S(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(((e,n)=>{let a=t(`events`),f=t(`https`),p=t(`http`),m=t(`net`),h=t(`tls`),{randomBytes:g,createHash:_}=t(`crypto`),{Duplex:v,Readable:y}=t(`stream`),{URL:b}=t(`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===!0?{}:i.perMessageDeflate,!1,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(((e,n)=>{f();let{Duplex:r}=t(`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(((e,n)=>{let i=t(`events`),a=t(`http`),{Duplex:s}=t(`stream`),{createHash:c}=t(`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,!0,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
|
+
`).join(`\r
|
|
3
|
+
`)),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
|
|
4
|
+
`)+`\r
|
|
5
|
+
\r
|
|
6
|
+
`+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(),c(),l();var g=e(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}];var y=e(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)=>{
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-debug-tools.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
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);
|
|
17
|
+
/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
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
|
+
`).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(`
|
|
28
|
+
`).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(`
|
|
29
|
+
`)>-1&&e.message.split(`
|
|
30
|
+
`).length>e.stacktrace.split(`
|
|
31
|
+
`).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(`
|
|
32
|
+
`),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(`
|
|
33
|
+
`),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(`
|
|
34
|
+
`).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
|
+
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`);Symbol.iterator,Symbol.asyncIterator;var 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.
|
|
36
|
+
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(`
|
|
37
|
+
`))}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
|
|
38
|
+
`)&&(e=e.slice(29));var t=e.indexOf(`
|
|
39
|
+
`);if(t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t===-1&&(t=e.indexOf(`react-stack-bottom-frame`)),t!==-1&&(t=e.lastIndexOf(`
|
|
40
|
+
`,t)),t!==-1)e=e.slice(0,t);else return``;return e}function Et(e,t){var n;if(typeof Symbol>`u`||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Ot(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.
|
|
41
|
+
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 W(e,t){return jt(e)||At(e,t)||Ot(e,t)||Dt()}function Dt(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ot(e,t){if(e){if(typeof e==`string`)return kt(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 kt(e,t)}}function kt(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 At(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 jt(e){if(Array.isArray(e))return e}function Mt(e){"@babel/helpers - typeof";return Mt=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},Mt(e)}function Nt(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nt(Object(n),!0).forEach(function(t){Ft(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=`999.9.9`;function Lt(e){return e==null||e===``?!1:G(e,It)}function Rt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e!==null){var r=[],i=[];return{data:yt(e,r,i,n,t),cleaned:r,unserializable:i}}else return null}function zt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=t[n],i=Ct(e)?e.slice():Pt({},e);return n+1===t.length?Ct(i)?i.splice(r,1):delete i[r]:i[r]=zt(e[r],t,n+1),i}function Bt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=t[r],a=Ct(e)?e.slice():Pt({},e);if(r+1===t.length){var o=n[r];a[o]=a[i],Ct(a)?a.splice(i,1):delete a[i]}else a[i]=Bt(e[i],t,n,r+1);return a}function Vt(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(r>=t.length)return n;var i=t[r],a=Ct(e)?e.slice():Pt({},e);return a[i]=Vt(e[i],t,n,r+1),a}function Ht(e){var t=null,n=null,r=e.current;if(r!=null){var i=r.stateNode;i!=null&&(t=i.effectDuration==null?null:i.effectDuration,n=i.passiveEffectDuration==null?null:i.passiveEffectDuration)}return{effectDuration:t,passiveEffectDuration:n}}function Ut(e){if(e===void 0)return`undefined`;if(typeof e==`function`)return e.toString();var t=new Set;return JSON.stringify(e,function(e,n){if(Mt(n)===`object`&&n!==null){if(t.has(n))return;t.add(n)}return typeof n==`bigint`?n.toString()+`n`:n},2)}function Wt(e){try{return String(e)}catch(t){if(Mt(e)===`object`)return`[object Object]`;throw t}}function Gt(e){var t=[...arguments].slice(1).slice(),n=Wt(e);if(typeof e==`string`&&t.length&&(n=n.replace(/(%?)(%([jds]))/g,function(e,n,r,i){var a=t.shift();switch(i){case`s`:a+=``;break;case`d`:case`i`:a=parseInt(a,10).toString();break;case`f`:a=parseFloat(a).toString();break}return n?(t.unshift(a),e):a})),t.length)for(var r=0;r<t.length;r++)n+=` `+Wt(t[r]);return n=n.replace(/%{2,2}/g,`%`),String(n)}function Kt(){return!!(window.document&&window.document.featurePolicy&&window.document.featurePolicy.allowsFeature(`sync-xhr`))}function qt(){return D(arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,arguments.length>1&&arguments[1]!==void 0?arguments[1]:``)===1}function G(){return D(arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,arguments.length>1&&arguments[1]!==void 0?arguments[1]:``)>-1}var Jt=function(){return window.document==null};function Yt(e){if(e.indexOf(`:`)===-1)return null;var t=e.replace(/^\(+/,``).replace(/\)+$/,``),n=/(at )?(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t);if(n==null)return null;var r=W(n,5);return{sourceURL:r[2],line:r[3],column:r[4]}}var Xt=/^\s*at .*(\S+:\d+|\(native\))/m;function Zt(e){var t=Et(e.split(`
|
|
43
|
+
`)),n;try{for(t.s();!(n=t.n()).done;){var r=n.value.trim(),i=r.match(/ (\(.+\)$)/),a=Yt(i?i[1]:r);if(a!=null){var o=a.sourceURL,s=a.line,c=s===void 0?`1`:s,l=a.column,u=l===void 0?`1`:l;return{sourceURL:o,line:parseInt(c,10),column:parseInt(u,10)}}}}catch(e){t.e(e)}finally{t.f()}return null}function Qt(e){var t=Et(e.split(`
|
|
44
|
+
`)),n;try{for(t.s();!(n=t.n()).done;){var r=Yt(n.value.trim().replace(/((.*".+"[^@]*)?[^@]*)(?:@)/,``));if(r!=null){var i=r.sourceURL,a=r.line,o=a===void 0?`1`:a,s=r.column,c=s===void 0?`1`:s;return{sourceURL:i,line:parseInt(o,10),column:parseInt(c,10)}}}}catch(e){t.e(e)}finally{t.f()}return null}function $t(e){return e.match(Xt)?Zt(e):Qt(e)}var en=null;function tn(e,t){for(var n=null,r=0;r<t.length;r++){var i=t[r],a=i.getFunctionName();if(a!=null&&(a.includes(`react_stack_bottom_frame`)||a.includes(`react-stack-bottom-frame`))){en=n;break}else{var o=i.getScriptNameOrSourceURL(),s=typeof i.getEnclosingLineNumber==`function`?i.getEnclosingLineNumber():i.getLineNumber(),c=typeof i.getEnclosingColumnNumber==`function`?i.getEnclosingColumnNumber():i.getColumnNumber();if(!o||!s||!c)continue;n={sourceURL:o,line:s,column:c}}}for(var l=e.name||`Error`,u=e.message||``,d=l+`: `+u,f=0;f<t.length;f++)d+=`
|
|
45
|
+
at `+t[f].toString();return d}function nn(e){en=null;var t=Error.prepareStackTrace;Error.prepareStackTrace=tn;var n;try{n=e.stack}catch{Error.prepareStackTrace=void 0,n=e.stack}finally{Error.prepareStackTrace=t}return en===null?n==null?null:$t(Tt(n)):en}function rn(e){return Math.round(e*1e3)/1e3}function an(e,t){return sn(e)||on(e,t)||q(e,t)||K()}function K(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(e,t){if(e){if(typeof e==`string`)return J(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 J(e,t)}}function J(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 on(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 sn(e){if(Array.isArray(e))return e}function cn(e){return e.ownerDocument?e.ownerDocument.defaultView:null}function ln(e){var t=cn(e);return t?t.frameElement:null}function un(e){var t=pn(e);return dn([e.getBoundingClientRect(),{top:t.borderTop,left:t.borderLeft,bottom:t.borderBottom,right:t.borderRight,width:0,height:0}])}function dn(e){return e.reduce(function(e,t){return e==null?t:{top:e.top+t.top,left:e.left+t.left,width:e.width,height:e.height,bottom:e.bottom+t.bottom,right:e.right+t.right}})}function fn(e,t){var n=ln(e);if(n&&n!==t){for(var r=[e.getBoundingClientRect()],i=n,a=!1;i;){var o=un(i);if(r.push(o),i=ln(i),a)break;i&&cn(i)===t&&(a=!0)}return dn(r)}else return e.getBoundingClientRect()}function pn(e){var t=window.getComputedStyle(e);return{borderLeft:parseInt(t.borderLeftWidth,10),borderRight:parseInt(t.borderRightWidth,10),borderTop:parseInt(t.borderTopWidth,10),borderBottom:parseInt(t.borderBottomWidth,10),marginLeft:parseInt(t.marginLeft,10),marginRight:parseInt(t.marginRight,10),marginTop:parseInt(t.marginTop,10),marginBottom:parseInt(t.marginBottom,10),paddingLeft:parseInt(t.paddingLeft,10),paddingRight:parseInt(t.paddingRight,10),paddingTop:parseInt(t.paddingTop,10),paddingBottom:parseInt(t.paddingBottom,10)}}function mn(e){if(!e)return{baseComponentName:``,hocNames:[]};for(var t=/([A-Z][a-zA-Z0-9]*?)\((.*)\)/g,n=[],r=e,i;(i=t.exec(r))!=null;)if(Array.isArray(i)){var a=an(i,3),o=a[1],s=a[2];n.push(o),r=s}return{baseComponentName:r,hocNames:n}}function hn(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function gn(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 _n(e,t,n){return t&&gn(e.prototype,t),n&&gn(e,n),e}var vn=Object.assign,yn=function(){function e(t,n){hn(this,e),this.node=t.createElement(`div`),this.border=t.createElement(`div`),this.padding=t.createElement(`div`),this.content=t.createElement(`div`),this.border.style.borderColor=wn.border,this.padding.style.borderColor=wn.padding,this.content.style.backgroundColor=wn.background,vn(this.node.style,{borderColor:wn.margin,pointerEvents:`none`,position:`fixed`}),this.node.style.zIndex=`10000000`,this.node.appendChild(this.border),this.border.appendChild(this.padding),this.padding.appendChild(this.content),n.appendChild(this.node)}return _n(e,[{key:`remove`,value:function(){this.node.parentNode&&this.node.parentNode.removeChild(this.node)}},{key:`update`,value:function(e,t){Cn(t,`margin`,this.node),Cn(t,`border`,this.border),Cn(t,`padding`,this.padding),vn(this.content.style,{height:e.height-t.borderTop-t.borderBottom-t.paddingTop-t.paddingBottom+`px`,width:e.width-t.borderLeft-t.borderRight-t.paddingLeft-t.paddingRight+`px`}),vn(this.node.style,{top:e.top-t.marginTop+`px`,left:e.left-t.marginLeft+`px`})}}])}(),bn=function(){function e(t,n){hn(this,e),this.tip=t.createElement(`div`),vn(this.tip.style,{display:`flex`,flexFlow:`row nowrap`,backgroundColor:`#333740`,borderRadius:`2px`,fontFamily:`"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace`,fontWeight:`bold`,padding:`3px 5px`,pointerEvents:`none`,position:`fixed`,fontSize:`12px`,whiteSpace:`nowrap`}),this.nameSpan=t.createElement(`span`),this.tip.appendChild(this.nameSpan),vn(this.nameSpan.style,{color:`#ee78e6`,borderRight:`1px solid #aaaaaa`,paddingRight:`0.5rem`,marginRight:`0.5rem`}),this.dimSpan=t.createElement(`span`),this.tip.appendChild(this.dimSpan),vn(this.dimSpan.style,{color:`#d7d7d7`}),this.tip.style.zIndex=`10000000`,n.appendChild(this.tip)}return _n(e,[{key:`remove`,value:function(){this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip)}},{key:`updateText`,value:function(e,t,n){this.nameSpan.textContent=e,this.dimSpan.textContent=Math.round(t)+`px × `+Math.round(n)+`px`}},{key:`updatePosition`,value:function(e,t){var n=this.tip.getBoundingClientRect(),r=Sn(e,t,{width:n.width,height:n.height});vn(this.tip.style,r.style)}}])}(),xn=function(){function e(t){hn(this,e);var n=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=n,this.tipBoundsWindow=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;var r=n.document;this.container=r.createElement(`div`),this.container.style.zIndex=`10000000`,this.tip=new bn(r,this.container),this.rects=[],this.agent=t,r.body.appendChild(this.container)}return _n(e,[{key:`remove`,value:function(){this.tip.remove(),this.rects.forEach(function(e){e.remove()}),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:`inspect`,value:function(e,t){for(var n=this,r=e.filter(function(e){return e.nodeType===Node.ELEMENT_NODE});this.rects.length>r.length;)this.rects.pop().remove();if(r.length!==0){for(;this.rects.length<r.length;)this.rects.push(new yn(this.window.document,this.container));var i={top:1/0,right:-1/0,bottom:-1/0,left:1/0};if(r.forEach(function(e,t){var r=fn(e,n.window),a=pn(e);i.top=Math.min(i.top,r.top-a.marginTop),i.right=Math.max(i.right,r.left+r.width+a.marginRight),i.bottom=Math.max(i.bottom,r.top+r.height+a.marginBottom),i.left=Math.min(i.left,r.left-a.marginLeft),n.rects[t].update(r,a)}),!t){t=r[0].nodeName.toLowerCase();var a=r[0],o=this.agent.getComponentNameForHostInstance(a);o&&(t+=` (in `+o+`)`)}this.tip.updateText(t,i.right-i.left,i.bottom-i.top);var s=fn(this.tipBoundsWindow.document.documentElement,this.window);this.tip.updatePosition({top:i.top,left:i.left,height:i.bottom-i.top,width:i.right-i.left},{top:s.top+this.tipBoundsWindow.scrollY,left:s.left+this.tipBoundsWindow.scrollX,height:this.tipBoundsWindow.innerHeight,width:this.tipBoundsWindow.innerWidth})}}}])}();function Sn(e,t,n){var r=Math.max(n.height,20),i=Math.max(n.width,60),a=5,o=e.top+e.height+r<=t.top+t.height?e.top+e.height<t.top+0?t.top+a:e.top+e.height+a:e.top-r<=t.top+t.height?e.top-r-a<t.top+a?t.top+a:e.top-r-a:t.top+t.height-r-a,s=e.left+a;return e.left<t.left&&(s=t.left+a),e.left+i>t.left+t.width&&(s=t.left+t.width-i-a),o+=`px`,s+=`px`,{style:{top:o,left:s}}}function Cn(e,t,n){vn(n.style,{borderTopWidth:e[t+`Top`]+`px`,borderLeftWidth:e[t+`Left`]+`px`,borderRightWidth:e[t+`Right`]+`px`,borderBottomWidth:e[t+`Bottom`]+`px`,borderStyle:`solid`})}var wn={background:`rgba(120, 170, 210, 0.7)`,padding:`rgba(77, 200, 0, 0.3)`,margin:`rgba(255, 155, 0, 0.3)`,border:`rgba(255, 200, 50, 0.3)`},Tn=2e3,En=null,Dn=null;function On(e){e.emit(`hideNativeHighlight`)}function kn(){En=null,Dn!==null&&(Dn.remove(),Dn=null)}function An(e){return Jt()?On(e):kn()}function jn(e,t){t.emit(`showNativeHighlight`,e)}function Mn(e,t,n,r){En!==null&&clearTimeout(En),Dn===null&&(Dn=new xn(n)),Dn.inspect(e,t),r&&(En=setTimeout(function(){return An(n)},Tn))}function Nn(e,t,n,r){return Jt()?jn(e,n):Mn(e,t,n,r)}var Pn=new Set;function Fn(e,t){e.addListener(`clearHostInstanceHighlight`,o),e.addListener(`highlightHostInstance`,s),e.addListener(`shutdown`,i),e.addListener(`startInspectingHost`,n),e.addListener(`stopInspectingHost`,i);function n(){r(window)}function r(e){e&&typeof e.addEventListener==`function`?(e.addEventListener(`click`,c,!0),e.addEventListener(`mousedown`,l,!0),e.addEventListener(`mouseover`,l,!0),e.addEventListener(`mouseup`,l,!0),e.addEventListener(`pointerdown`,u,!0),e.addEventListener(`pointermove`,f,!0),e.addEventListener(`pointerup`,p,!0)):t.emit(`startInspectingNative`)}function i(){An(t),a(window),Pn.forEach(function(e){try{a(e.contentWindow)}catch{}}),Pn=new Set}function a(e){e&&typeof e.removeEventListener==`function`?(e.removeEventListener(`click`,c,!0),e.removeEventListener(`mousedown`,l,!0),e.removeEventListener(`mouseover`,l,!0),e.removeEventListener(`mouseup`,l,!0),e.removeEventListener(`pointerdown`,u,!0),e.removeEventListener(`pointermove`,f,!0),e.removeEventListener(`pointerup`,p,!0)):t.emit(`stopInspectingNative`)}function o(){An(t)}function s(n){var r=n.displayName,i=n.hideAfterTimeout,a=n.id,o=n.openBuiltinElementsPanel,s=n.rendererID,c=n.scrollIntoView,l=t.rendererInterfaces[s];if(l==null){console.warn(`Invalid renderer id "${s}" for element "${a}"`),An(t);return}if(!l.hasElementWithId(a)){An(t);return}var u=l.findHostInstancesForElementID(a);if(u!=null&&u[0]!=null){var d=u[0];c&&typeof d.scrollIntoView==`function`&&d.scrollIntoView({block:`nearest`,inline:`nearest`}),Nn(u,r,t,i),o&&(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0=d,e.send(`syncSelectionToBuiltinElementsPanel`))}else An(t)}function c(t){t.preventDefault(),t.stopPropagation(),i(),e.send(`stopInspectingHost`,!0)}function l(e){e.preventDefault(),e.stopPropagation()}function u(e){e.preventDefault(),e.stopPropagation(),m(h(e))}var d=null;function f(e){e.preventDefault(),e.stopPropagation();var n=h(e);if(d!==n){if(d=n,n.tagName===`IFRAME`){var i=n;try{if(!Pn.has(i)){var a=i.contentWindow;r(a),Pn.add(i)}}catch{}}Nn([n],null,t,!1),m(n)}}function p(e){e.preventDefault(),e.stopPropagation()}var m=function(n){var r=t.getIDForHostInstance(n);r!==null&&e.send(`selectElement`,r)};function h(e){return e.composed?e.composedPath()[0]:e.target}}function In(e){return Bn(e)||zn(e)||Rn(e)||Ln()}function Ln(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
47
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rn(e,t){if(e){if(typeof e==`string`)return Vn(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 Vn(e,t)}}function zn(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Bn(e){if(Array.isArray(e))return Vn(e)}function Vn(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 Hn=[`#37afa9`,`#63b19e`,`#80b393`,`#97b488`,`#abb67d`,`#beb771`,`#cfb965`,`#dfba57`,`#efbb49`,`#febc38`],Y=null;function Un(e,t){var n=[];Yn(e,function(e){var t=e.color,r=e.node;n.push({node:r,color:t})}),t.emit(`drawTraceUpdates`,n);var r=Gn(e);t.emit(`drawGroupedTraceUpdatesWithNames`,r)}function Wn(e){Y===null&&er();var t=window.devicePixelRatio||1,n=Y;n.width=window.innerWidth*t,n.height=window.innerHeight*t,n.style.width=`${window.innerWidth}px`,n.style.height=`${window.innerHeight}px`;var r=n.getContext(`2d`);if(r.scale(t,t),r.clearRect(0,0,n.width/t,n.height/t),Gn(e).forEach(function(e){Kn(r,e),qn(r,e)}),Y!==null){if(e.size===0&&Y.matches(`:popover-open`)){Y.hidePopover();return}Y.matches(`:popover-open`)&&Y.hidePopover(),Y.showPopover()}}function Gn(e){var t=new Map;return Yn(e,function(e){var n,r=e.rect,i=e.color,a=e.displayName,o=e.count;if(r){var s=`${r.left},${r.top}`;t.has(s)||t.set(s,[]),(n=t.get(s))==null||n.push({rect:r,color:i,displayName:a,count:o})}}),Array.from(t.values()).sort(function(e,t){return Math.max.apply(Math,In(e.map(function(e){return e.count})))-Math.max.apply(Math,In(t.map(function(e){return e.count})))})}function Kn(e,t){t.forEach(function(t){var n=t.color,r=t.rect;e.beginPath(),e.strokeStyle=n,e.rect(r.left,r.top,r.width-1,r.height-1),e.stroke()})}function qn(e,t){var n=t.map(function(e){var t=e.displayName,n=e.count;return t?`${t}${n>1?` x${n}`:``}`:``}).filter(Boolean).join(`, `);n&&Xn(e,t[0].rect,n,t[0].color)}function Jn(e,t){return Jt()?Un(e,t):Wn(e)}function Yn(e,t){e.forEach(function(e,n){var r=Hn[Math.min(Hn.length-1,e.count-1)];t({color:r,node:n,count:e.count,displayName:e.displayName,expirationTime:e.expirationTime,lastMeasuredAt:e.lastMeasuredAt,rect:e.rect})})}function Xn(e,t,n,r){var i=t.left,a=t.top;e.font=`10px monospace`,e.textBaseline=`middle`,e.textAlign=`center`;var o=2,s=14,c=e.measureText(n).width+o*2,l=s,u=i,d=a-l;e.fillStyle=r,e.fillRect(u,d,c,l),e.fillStyle=`#000000`,e.fillText(n,u+c/2,d+l/2)}function Zn(e){e.emit(`disableTraceUpdates`)}function Qn(){Y!==null&&(Y.matches(`:popover-open`)&&Y.hidePopover(),Y.parentNode!=null&&Y.parentNode.removeChild(Y),Y=null)}function $n(e){return Jt()?Zn(e):Qn()}function er(){Y=window.document.createElement(`canvas`),Y.setAttribute(`popover`,`manual`),Y.style.cssText=`
|
|
48
|
+
xx-background-color: red;
|
|
49
|
+
xx-opacity: 0.5;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
position: fixed;
|
|
54
|
+
right: 0;
|
|
55
|
+
top: 0;
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
outline: none;
|
|
58
|
+
box-shadow: none;
|
|
59
|
+
border: none;
|
|
60
|
+
`;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.
|
|
61
|
+
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.
|
|
62
|
+
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>)`,`
|
|
63
|
+
`+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(`
|
|
64
|
+
`),d=l.split(`
|
|
65
|
+
`),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=`
|
|
66
|
+
`+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+=`
|
|
67
|
+
`+wt(r));else break}return t}catch(e){return`
|
|
68
|
+
Error generating stack: `+e.message+`
|
|
69
|
+
`+e.stack}}var Ei=new WeakMap;function Di(e){return ji(e)||Ai(e)||ki(e)||Oi()}function Oi(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ki(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 Ai(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function ji(e){if(Array.isArray(e))return Mi(e)}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 Ni(e){return!!e.debugTask}function Pi(e,t,n,r){var i=n.getCurrentComponentInfo;function a(e){if(i===void 0)return null;var t=i();if(t===null||Ni(t))return null;var n=t.debugStack!=null,r=``;if(n){var a=wt(e);a&&(r+=`
|
|
71
|
+
`+a),r+=Ti(t)}return{enableOwnerStacks:n,componentStack:r}}function o(e,t){if(i!==void 0){var n=i();if(n!==null){if(t.length>3&&typeof t[0]==`string`&&t[0].startsWith(`%c%s%c `)&&typeof t[1]==`string`&&typeof t[2]==`string`&&typeof t[3]==`string`){var r=t[0].slice(7),a=t[2].trim();t=t.slice(4),a===n.env?t.unshift(r):t.unshift(`[`+a+`] `+r)}var o=Gt.apply(void 0,Di(t)),s=Ei.get(n);s===void 0&&(s={errors:new Map,errorsCount:0,warnings:new Map,warningsCount:0},Ei.set(n,s));var c=e===`error`?s.errors:s.warnings,l=c.get(o)||0;c.set(o,l+1),e===`error`?s.errorsCount++:s.warningsCount++}}}return{cleanup:function(){},clearErrorsAndWarnings:function(){},clearErrorsForElementID:function(){},clearWarningsForElementID:function(){},getSerializedElementValueByPath:function(){},deletePath:function(){},findHostInstancesForElementID:function(){return null},flushInitialOperations:function(){},getBestMatchForTrackedPath:function(){return null},getComponentStack:a,getDisplayNameForElementID:function(){return null},getNearestMountedDOMNode:function(){return null},getElementIDForHostInstance:function(){return null},getInstanceAndStyle:function(){return{instance:null,style:null}},getOwnersList:function(){return null},getPathForElement:function(){return null},getProfilingData:function(){throw Error(`getProfilingData not supported by this renderer`)},handleCommitFiberRoot:function(){},handleCommitFiberUnmount:function(){},handlePostCommitFiberRoot:function(){},hasElementWithId:function(){return!1},inspectElement:function(e,t,n){return{id:t,responseID:e,type:`not-found`}},logElementToConsole:function(){},getElementAttributeByPath:function(){},getElementSourceFunctionById:function(){},onErrorOrWarning:o,overrideError:function(){},overrideSuspense:function(){},overrideValueAtPath:function(){},renamePath:function(){},renderer:n,setTraceUpdatesEnabled:function(){},setTrackedPath:function(){},startProfiling:function(){},stopProfiling:function(){},storeAsGlobal:function(){},updateComponentFilters:function(){},getEnvironmentNames:function(){return[]}}}var Fi=n(987),Ii=60111,Li=`Symbol(react.concurrent_mode)`,Ri=60110,zi=`Symbol(react.context)`,Bi=`Symbol(react.server_context)`,Vi=`Symbol(react.async_mode)`,Hi=60112,Ui=`Symbol(react.forward_ref)`,Wi=60115,Gi=`Symbol(react.memo)`,Ki=60114,qi=`Symbol(react.profiler)`,Ji=60109,Yi=`Symbol(react.provider)`,Xi=`Symbol(react.consumer)`,Zi=60119,Qi=`Symbol(react.scope)`,$i=60108,ea=`Symbol(react.strict_mode)`,ta=Symbol.for(`react.memo_cache_sentinel`),na=!1;function ra(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}let ia=typeof Object.is==`function`?Object.is:ra,aa=Object.prototype.hasOwnProperty;function oa(e,t,n){var r=e.HostHoistable,i=e.HostSingleton,a=e.HostComponent,o=e.LazyComponent,s=e.SuspenseComponent,c=e.SuspenseListComponent,l=e.FunctionComponent,u=e.IndeterminateComponent,d=e.SimpleMemoComponent,f=e.ForwardRef,p=e.ClassComponent,m=e.ViewTransitionComponent,h=e.ActivityComponent;switch(t.tag){case r:case i:case a:return yi(t.type);case o:return yi(`Lazy`);case s:return yi(`Suspense`);case c:return yi(`SuspenseList`);case m:return yi(`ViewTransition`);case h:return yi(`Activity`);case l:case u:case d:return wi(t.type,n);case f:return wi(t.type.render,n);case p:return Ci(t.type,n);default:return``}}function sa(e,t,n){try{var r=``,i=t;do{r+=oa(e,i,n);var a=i._debugInfo;if(a)for(var o=a.length-1;o>=0;o--){var s=a[o];typeof s.name==`string`&&(r+=bi(s.name,s.env))}i=i.return}while(i);return r}catch(e){return`
|
|
72
|
+
Error generating stack: `+e.message+`
|
|
73
|
+
`+e.stack}}function ca(e,t,n){try{var r=oa(e,t,n);if(r!==``)return r.slice(1)}catch(e){console.error(e)}return null}function la(e){return!!e._debugTask}function ua(e){return e._debugStack!==void 0}function da(e,t,n){var r=e.HostHoistable,i=e.HostSingleton,a=e.HostText,o=e.HostComponent,s=e.SuspenseComponent,c=e.SuspenseListComponent,l=e.ViewTransitionComponent,u=e.ActivityComponent;try{var d=``;switch(t.tag===a&&(t=t.return),t.tag){case r:case i:case o:d+=yi(t.type);break;case s:d+=yi(`Suspense`);break;case c:d+=yi(`SuspenseList`);break;case l:d+=yi(`ViewTransition`);break;case u:d+=yi(`Activity`);break}for(var f=t;f;)if(typeof f.tag==`number`){var p=f;f=p._debugOwner;var m=p._debugStack;f&&m&&(typeof m!=`string`&&(m=wt(m)),m!==``&&(d+=`
|
|
74
|
+
`+m))}else if(f.debugStack!=null){var h=f.debugStack;f=f.owner,f&&h&&(d+=`
|
|
75
|
+
`+wt(h))}else break;return d}catch(e){return`
|
|
76
|
+
Error generating stack: `+e.message+`
|
|
77
|
+
`+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.
|
|
78
|
+
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 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.
|
|
80
|
+
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+=`
|
|
81
|
+
`+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(`
|
|
82
|
+
`).slice(1).join(`
|
|
83
|
+
`)),console.groupEnd()}}function pt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(s){var n=(e.kind===Xa?e.data.name:_(e.data))||``;console.log(` `.repeat(t)+`- `+(e.kind===Za?0:e.id)+` (`+n+`)`,`parent`,e.parent===null?` `:e.parent.kind===Za?0:e.parent.id,`next`,e.nextSibling===null?` `:e.nextSibling.id);for(var r=e.firstChild;r!==null;)pt(r,t+1),r=r.nextSibling}}var mt=new Set,ht=new Set,gt=new Set,_t=new Set,vt=!1,yt=new Set;function bt(e){gt.clear(),mt.clear(),ht.clear(),_t.clear(),e.forEach(function(e){if(e.isEnabled)switch(e.type){case De:e.isValid&&e.value!==``&&mt.add(new RegExp(e.value,`i`));break;case Ee:gt.add(e.value);break;case Oe:e.isValid&&e.value!==``&&ht.add(new RegExp(e.value,`i`));break;case ke:mt.add(RegExp(`\\(`));break;case Ae:_t.add(e.value);break;default:console.warn(`Invalid component filter type "${e.type}"`);break}})}window.__REACT_DEVTOOLS_COMPONENT_FILTERS__==null?bt(et()):bt(tt(window.__REACT_DEVTOOLS_COMPONENT_FILTERS__));function xt(n){if(pr)throw Error(`Cannot modify filter preferences while profiling`);e.getFiberRoots(t).forEach(function(e){var t=oo.get(e);if(t===void 0)throw Error(`Expected the root instance to already exist when applying filters`);W=t,gn(t),oo.delete(e),Zt(e),W=null}),bt(n),Br.clear(),e.getFiberRoots(t).forEach(function(e){var t=e.current,n=Qa(t);oo.set(e,n),$.set(n.id,n),Ar!==null&&(Pr=!0),W=n,Vr(W.id,e.current),hn(e.current,!1),Zt(e),W=null}),Zt(),Ze=!1}function St(){return Array.from(ao)}function Ct(e,t){if(gt.has(pe))return!0;if(mt.size>0){var n=e.name;if(n!=null){var r=Ua(mt),i;try{for(r.s();!(i=r.n()).done;)if(i.value.test(n))return!0}catch(e){r.e(e)}finally{r.f()}}}return!!((e.env==null||_t.has(e.env))&&(t===null||_t.has(t)))}function Tt(e){var t=e.tag,n=e.type,r=e.key;switch(t){case E:return!0;case N:case F:case te:case z:case ie:return!0;case A:return!1;case O:return r===null;default:switch(v(n)){case Ii:case Li:case Vi:case $i:case ea:return!0;default:break}}var i=Et(e);if(gt.has(i))return!0;if(mt.size>0){var a=_(e);if(a!=null){var o=Ua(mt),s;try{for(o.s();!(s=o.n()).done;)if(s.value.test(a))return!0}catch(e){o.e(e)}finally{o.f()}}}if(_t.has(`Client`))switch(t){case w:case I:case L:case k:case ee:case D:case R:case B:return!0}return!1}function Et(e){var t=e.type;switch(e.tag){case S:return Te;case w:case I:return de;case L:case k:case ee:return pe;case D:return me;case A:return ye;case P:case j:case M:return he;case N:case F:case O:return _e;case R:case B:return ge;case V:return be;case ne:return xe;case re:return Se;case ae:return we;default:switch(v(t)){case Ii:case Li:case Vi:return _e;case Ji:case Yi:return fe;case Ri:case zi:return fe;case $i:case ea:return _e;case Ki:case qi:return ve;default:return _e}}}var W=null;function Dt(e,t){X.size>0&&(X.delete(t),t.alternate&&X.delete(t.alternate),X.size===0&&Ve!=null&&Ve(Cr)),Dr.size>0&&(Dr.delete(t),t.alternate&&Dr.delete(t.alternate),Dr.size===0&&He!=null&&He(Er)),t.tag===j?ho(e,t.memoizedState):(t.tag===P||t.tag===F||t.tag===M)&&po(e,t.stateNode);for(var n=t.child;n!==null;n=n.sibling)Tt(n)&&Dt(e,n)}function Ot(e,t){switch(t.tag){case w:return e===null?{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null}:{context:kt(e,t),didHooksChange:!1,isFirstMount:!1,props:Nt(e.memoizedProps,t.memoizedProps),state:Nt(e.memoizedState,t.memoizedState)};case L:case k:case ee:case D:case R:case B:if(e===null)return{context:null,didHooksChange:!1,isFirstMount:!0,props:null,state:null};var n=Mt(e.memoizedState,t.memoizedState);return{context:kt(e,t),didHooksChange:n!==null&&n.length>0,isFirstMount:!1,props:Nt(e.memoizedProps,t.memoizedProps),state:null,hooks:n};default:return null}}function kt(e,t){for(var n=e.dependencies&&e.dependencies.firstContext,r=t.dependencies&&t.dependencies.firstContext;n&&r;){if(n.context!==r.context)return!1;if(!ia(n.memoizedValue,r.memoizedValue))return!0;n=n.next,r=r.next}return!1}function At(e){var t=e.queue;if(!t)return!1;var n=aa.bind(t);return n(`pending`)?!0:n(`value`)&&n(`getSnapshot`)&&typeof t.getSnapshot==`function`}function jt(e,t){var n=e.memoizedState,r=t.memoizedState;return At(e)?n!==r:!1}function Mt(e,t){if(e==null||t==null)return null;for(var n=[],r=0;t!==null;)jt(e,t)&&n.push(r),t=t.next,e=e.next,r++;return n}function Nt(e,t){if(e==null||t==null)return null;var n=new Set([].concat(za(Object.keys(e)),za(Object.keys(t)))),r=[],i=Ua(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;e[o]!==t[o]&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r}function Pt(e,t){switch(t.tag){case w:case k:case T:case R:case B:case D:var n=1;return(no(t)&n)===n;default:return e.memoizedProps!==t.memoizedProps||e.memoizedState!==t.memoizedState||e.ref!==t.ref}}var Ft=[],It=[],Lt=[],Wt=new Map,Kt=0,qt=null;function G(e){Ft.push(e)}function Jt(){return pr&&ur!=null&&ur.durations.length>0?!1:Ft.length===0&&It.length===0&&qt===null}function Yt(t){Jt()||(Lt===null?e.emit(`operations`,t):Lt.push(t))}function Xt(e,t){if(t===void 0)return e.logCount===0?!1:(e.logCount=0,G(f),G(e.id),G(0),G(0),!0);var n=t.errorsCount+t.warningsCount;return e.logCount===n?!1:(e.logCount=n,G(f),G(e.id),G(t.errorsCount),G(t.warningsCount),!0)}function Zt(e){if(!Jt()){var n=It.length+(qt===null?0:1),r=Array(3+Kt+(n>0?2+n:0)+Ft.length),i=0;if(r[i++]=t,W===null?r[i++]=-1:r[i++]=W.id,r[i++]=Kt,Wt.forEach(function(e,t){var n=e.encodedString,a=n.length;r[i++]=a;for(var o=0;o<a;o++)r[i+o]=n[o];i+=a}),n>0){r[i++]=l,r[i++]=n;for(var a=0;a<It.length;a++)r[i++]=It[a];qt!==null&&(r[i]=qt,i++)}for(var o=0;o<Ft.length;o++)r[i+o]=Ft[o];i+=Ft.length,Yt(r),Ft.length=0,It.length=0,qt=null,Wt.clear(),Kt=0}}function Qt(e){if(e===null)return 0;var t=Wt.get(e);if(t!==void 0)return t.id;var n=Wt.size+1,r=Qe(e);return Wt.set(e,{encodedString:r,id:n}),Kt+=r.length+1,n}function en(e,t){var r=e.tag===A,i;if(r){var a=oo.get(e.stateNode);if(a===void 0)throw Error(`The root should have been registered at this point`);i=a}else i=Qa(e);$.set(i.id,i);var o=i.id;s&&U(`recordMount()`,i,t);var l=e.hasOwnProperty(`treeBaseDuration`);if(r){var u=e.hasOwnProperty(`_debugOwner`),d=0;l&&(d=h,typeof Ne==`function`&&(d|=g));var f=n.bundleType===0;G(c),G(o),G(ye),G((e.mode&x)===0?0:1),G(d),G(!f&&x!==0?1:0),G(u?1:0),pr&&dr!==null&&dr.set(o,Ur(e))}else{var p=e.key,v=_(e),y=Et(e),b=Y(e),S=Un(t,b);S!==null&&b===e._debugOwner&&e._debugStack!=null&&S.source===null&&(S.source=e._debugStack);var C=S===null?0:S.id,w=t?t.kind===Za?t.parent.id:t.id:0,T=Qt(v),E=Qt(p===null?null:String(p));if(G(c),G(o),G(y),G(w),G(C),G(T),G(E),(e.mode&x)!==0){for(var D=null,O=t;O!==null;){if(O.kind===Ya){D=O.data;break}O=O.parent}(D===null||(D.mode&x)===0)&&(G(m),G(o),G(je))}}var k=Xe.get(e);return k===void 0&&e.alternate!==null&&(k=Xe.get(e.alternate)),Xt(i,k),l&&_n(i,null),i}function tn(e,t,n){var r=e.id;$.set(r,e);var i=e.data,a=typeof i.key==`string`?i.key:null,o=i.env,s=i.name||``;typeof o==`string`&&(n!==null&&(s=n+`(`+s+`)`),s=o+`(`+s+`)`);var l=Ce,u=Y(i),d=Un(t,u);d!==null&&u===i.owner&&i.debugStack!=null&&d.source===null&&(d.source=i.debugStack);var f=d===null?0:d.id,p=t?t.kind===Za?t.parent.id:t.id:0,m=Qt(s),h=Qt(a===null?null:String(a));G(c),G(r),G(l),G(p),G(f),G(m),G(h),Xt(e,Ei.get(i))}function an(e){var t=e.data;s&&U(`recordUnmount()`,e,J),Mr===e&&Fr(null);var n=e.id;t.tag===A?qt=n:It.push(n),$.delete(e.id),Dt(e,t)}var K=null,q=null,J=null;function on(e){var t=J;t!==null&&(e.parent=t,q===null?(q=e,t.firstChild=e):(q.nextSibling=e,q=e),e.nextSibling=null)}function sn(e,t){cn(e,t),on(e)}function cn(e,t){if(e.parent===null){if(K===e)throw Error(`Remaining children should not have items with no parent`);if(e.nextSibling!==null)throw Error(`A deleted instance should not have next siblings`);return}var n=J;if(n===null)throw Error(`Should not have a parent if we are at the root`);if(e.parent!==n)throw Error(`Cannot remove a node from a different parent than is being reconciled.`);if(t===null){if(K!==e)throw Error(`Expected a placed child to be moved from the remaining set.`);K=e.nextSibling}else t.nextSibling=e.nextSibling;e.nextSibling=null,e.parent=null}function ln(){for(var e=K;e!==null;)gn(e),e=K}function un(e,t,n,r,i){var a=Lr(e,J),o=J,s=q,c=K;J=e,q=null,K=null;try{pn(t,n,r,i+1),vn(e)}finally{J=o,q=s,K=c,Rr(a)}}function dn(e){Mr===e&&Fr(null);var t=e.id;It.push(t)}function fn(e,t){if(e!=null)for(var n=e[t],r=t+1;r<e.length;r++){var i=e[r];if(typeof i.env==`string`)return n.env===i.env?null:i.env}return null}function pn(e,t,n,r){for(var i=e,a=null,o=e;i!==null&&i!==t;){var s=0;if(i._debugInfo)for(var c=0;c<i._debugInfo.length;c++){var l=i._debugInfo[c];if(typeof l.name==`string`){var u=l,d=fn(i._debugInfo,c);if(u.env!=null&&ao.add(u.env),d!==null&&ao.add(d),!Ct(u,d))if(s===r){(a===null||a.data!==l)&&(a!==null&&un(a,o,i,n,r),a=eo(u),tn(a,J,d),on(a),o=i),s++;break}else s++}}s===r&&(a!==null&&(un(a,o,i,n,r),a=null),hn(i,n)),i=i.sibling}a!==null&&un(a,o,null,n,r)}function mn(e,t){pn(e,null,t,0)}function hn(e,t){var n=!Tt(e),r=null;n?(r=en(e,J),on(r),s&&U(`mountFiberRecursively()`,r,J)):J!==null&&J.kind===Xa&&(J.data===e._debugOwner&&e._debugStack!=null&&J.source===null&&(J.source=e._debugStack),r=$a(e),on(r),s&&U(`mountFiberRecursively()`,r,J));var i=Ir(e,r),a=J,o=q,c=K;r!==null&&(J=r,q=null,K=null);try{if(vt&&t&&Et(e)===he&&(yt.add(e.stateNode),t=!1),e.tag===j){var l=J;if(l===null)throw Error(`Did not expect a host hoistable to be the root`);mo(l,e.memoizedState)}else if(e.tag===P||e.tag===F||e.tag===M){var u=J;if(u===null)throw Error(`Did not expect a host hoistable to be the root`);fo(u,e.stateNode)}if(e.tag===V)if(e.memoizedState!==null){var d=e.child,f=d?d.sibling:null;if(f){var p=f.child;p!==null&&(Ir(f,null),mn(p,t))}}else{var m=null;z===-1?m=e.child:e.child!==null&&(m=e.child.child,Ir(e.child,null)),m!==null&&mn(m,t)}else e.child!==null&&mn(e.child,t)}finally{r!==null&&(J=a,q=o,K=c)}Rr(i)}function gn(e){s&&U(`unmountInstanceRecursively()`,e,J);var t=J,n=q,r=K;J=e,q=null,K=e.firstChild,e.firstChild=null;try{ln()}finally{J=t,q=n,K=r}e.kind===Ya?an(e):e.kind===Xa?dn(e):Dt(e,e.data),cn(e,null)}function _n(e,t){var n=e.id,r=e.data,i=r.actualDuration,a=r.treeBaseDuration;if(e.treeBaseDuration=a||0,pr){if(t==null||a!==t.treeBaseDuration){var o=Math.floor((a||0)*1e3);G(d),G(n),G(o)}if((t==null||Pt(t,r))&&i!=null){for(var s=i,c=r.child;c!==null;)s-=c.actualDuration||0,c=c.sibling;var l=ur;if(l.durations.push(n,i,s),l.maxActualDuration=Math.max(l.maxActualDuration,i),hr){var u=Ot(t,r);u!==null&&l.changeDescriptions!==null&&l.changeDescriptions.set(n,u)}}var f=W.data.stateNode.memoizedUpdaters;if(f!=null&&(f.has(r)||r.alternate!==null&&f.has(r.alternate))){var p=ur;p.updaters===null&&(p.updaters=[]),p.updaters.push(Bn(e))}}}function vn(e){for(var t=e.id,n=0,r=e.firstChild;r!==null;r=r.nextSibling)n+=r.treeBaseDuration;if(pr){var i=e.treeBaseDuration;if(n!==i){var a=Math.floor((n||0)*1e3);G(d),G(t),G(a)}}e.treeBaseDuration=n}function yn(e){s&&e.firstChild!==null&&U(`recordResetChildren()`,e.firstChild,e);for(var t=[],n=e.firstChild;n!==null;){if(n.kind===Za)for(var r=e.firstChild;r!==null;r=r.nextSibling)t.push(r.id);else t.push(n.id);n=n.nextSibling}var i=t.length;if(!(i<2)){G(u),G(e.id),G(i);for(var a=0;a<t.length;a++)G(t[a])}}function bn(e,t,n,r,i,a){var o=J,s=q,c=K;J=e,q=null,K=e.firstChild,e.firstChild=null;try{xn(t,n,r,i,a+1)&&yn(e),Xt(e,Ei.get(e.data)),vn(e)}finally{ln(),J=o,q=s,K=c}}function xn(e,t,n,r,i){for(var a=!1,o=e,s=n,c=null,l=!1,u=e,d=n;o!==null&&o!==t;){var f=0;if(o._debugInfo)for(var p=0;p<o._debugInfo.length;p++){var m=o._debugInfo[p];if(typeof m.name==`string`){var h=m,g=fn(o._debugInfo,p);if(h.env!=null&&ao.add(h.env),g!==null&&ao.add(g),!Ct(h,g))if(f===i){if(c===null||c.data!==h){c!==null&&(l?un(c,u,o,r,i):bn(c,u,o,d,r,i));var _=null,v=K;if(h.key!=null)for(v=K;v!==null&&!(v.kind===Xa&&v.data.key===h.key);)_=v,v=v.nextSibling;if(v!==null&&v.kind===Xa&&v.data.name===h.name&&v.data.env===h.env&&v.data.key===h.key)v.data=h,sn(v,_),c=v,l=!1;else{var y=eo(h);tn(y,J,g),on(y),c=y,l=!0,a=!0}u=o,d=s}f++;break}else f++}}if(f===i){c!==null&&(l?un(c,u,o,r,i):bn(c,u,o,d,r,i),c=null);var b=void 0;b=s===o?o:o.alternate;var x=null,S=null;if(b!==null)for(S=K;S!==null&&S.data!==b;)x=S,S=S.nextSibling;if(S!==null){var C=S;b!==s&&(a=!0),sn(C,x),Cn(C,o,b,r)&&(a=!0)}else b!==null&&Tt(o)?Cn(null,o,b,r)&&(a=!0):(hn(o,r),a=!0)}o=o.sibling,!a&&s!==null&&(s=s.sibling)}return c!==null&&(l?un(c,u,null,r,i):bn(c,u,null,d,r,i)),s!==null&&(a=!0),a}function Sn(e,t,n){return e===null?t!==null:xn(e,null,t,n,0)}function Cn(e,t,n,r){if(s&&e!==null&&U(`updateFiberRecursively()`,e,J),vt){var i=Et(t);r?i===he&&(yt.add(t.stateNode),r=!1):(i===pe||i===de||i===fe||i===ge||i===me)&&(r=Pt(n,t))}var a=J,o=q,c=K;e!==null&&(e.data=t,Yn!==null&&Yn.id===e.id&&Pt(n,t)&&(Xn=!0),J=e,q=null,K=e.firstChild,e.firstChild=null);try{if(t.tag===j&&n.memoizedState!==t.memoizedState){var l=J;if(l===null)throw Error(`Did not expect a host hoistable to be the root`);ho(l,n.memoizedState),mo(l,t.memoizedState)}else if((t.tag===P||t.tag===F||t.tag===M)&&n.stateNode!==t.stateNode){var u=J;if(u===null)throw Error(`Did not expect a host hoistable to be the root`);po(u,n.stateNode),fo(u,t.stateNode)}var d=t.tag===V,f=!1,p=d&&n.memoizedState!==null,m=d&&t.memoizedState!==null;if(p&&m){var h=t.child,g=h?h.sibling:null,_=n.child,v=_?_.sibling:null;v==null&&g!=null&&(mn(g,r),f=!0),g!=null&&v!=null&&Sn(g,v,r)&&(f=!0)}else if(p&&!m){var y=t.child;y!==null&&mn(y,r),f=!0}else if(!p&&m){var b=t.child,x=b?b.sibling:null;x!=null&&(mn(x,r),f=!0)}else if(t.child!==n.child)Sn(t.child,n.child,r)&&(f=!0);else if(e!==null)e.firstChild=K,K=null,vt&&r&&Nn(e).forEach(function(e){yt.add(e)});else if(Sn(t.child,n.child,!1))throw Error(`The children should not have changed if we pass in the same set.`);if(e!==null){var S=Xe.get(e.data);S===void 0&&e.data.alternate&&(S=Xe.get(e.data.alternate)),Xt(e,S),t.hasOwnProperty(`treeBaseDuration`)&&_n(e,n)}return f?e===null?!0:(yn(e),!1):!1}finally{e!==null&&(ln(),J=a,q=o,K=c)}}function wn(){pr=!1}function Tn(e){return e.memoizedInteractions==null?!!(e.current!=null&&e.current.hasOwnProperty(`treeBaseDuration`)):!0}function En(){var n=Lt;Lt=null,n!==null&&n.length>0?n.forEach(function(t){e.emit(`operations`,t)}):(Ar!==null&&(Pr=!0),e.getFiberRoots(t).forEach(function(e){var t=e.current,n=Qa(t);oo.set(e,n),$.set(n.id,n),W=n,Vr(W.id,e.current),pr&&Tn(e)&&(ur={changeDescriptions:hr?new Map:null,durations:[],commitTime:ro()-mr,maxActualDuration:0,priorityLevel:null,updaters:null,effectDuration:null,passiveEffectDuration:null}),hn(e.current,!1),Zt(e),Ze=!1,W=null}))}function Dn(e){}function On(e){if(pr&&Tn(e)&&ur!==null){var t=Ht(e),n=t.effectDuration,r=t.passiveEffectDuration;ur.effectDuration=n,ur.passiveEffectDuration=r}Ze&&$e()}function kn(t,n){var r=t.current,i=null,a=oo.get(t);a?i=a.data:(a=Qa(r),oo.set(t,a),$.set(a.id,a)),W=a,Ar!==null&&(Pr=!0),vt&&yt.clear();var o=Tn(t);if(pr&&o&&(ur={changeDescriptions:hr?new Map:null,durations:[],commitTime:ro()-mr,maxActualDuration:0,priorityLevel:n==null?null:Jr(n),updaters:null,effectDuration:null,passiveEffectDuration:null}),i!==null){var s=i.memoizedState!=null&&i.memoizedState.element!=null&&i.memoizedState.isDehydrated!==!0,c=r.memoizedState!=null&&r.memoizedState.element!=null&&r.memoizedState.isDehydrated!==!0;!s&&c?(Vr(W.id,r),hn(r,!1)):s&&c?Cn(a,r,i,!1):s&&!c&&(gn(a),Hr(W.id),oo.delete(t))}else Vr(W.id,r),hn(r,!1);if(pr&&o&&!Jt()){var l=_r.get(W.id);l==null?_r.set(W.id,[ur]):l.push(ur)}Zt(t),Ze=!1,vt&&e.emit(`traceUpdates`,yt),W=null}function An(e){if(e.tag===j){var t=e.memoizedState;if(Ka(t)===`object`&&t!==null&&t.instance!=null)return t.instance}return null}function jn(e,t){if(e.kind!==Xa){var n=e.data;Mn(n,t);return}for(var r=e.firstChild;r!==null;r=r.nextSibling)jn(r,t)}function Mn(e,t){for(var n=e;;){if(n.tag===P||n.tag===F||n.tag===M||n.tag===j){var r=n.stateNode||An(n);r&&t.push(r)}else if(n.child){n.child.return=n,n=n.child;continue}if(n===e)return;for(;!n.sibling;){if(!n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Nn(e){var t=[];return jn(e,t),t}function Pn(e){try{var t=$.get(e);return t===void 0?(console.warn(`Could not find DevToolsInstance with id "${e}"`),null):Nn(t)}catch{return null}}function Fn(e){var t=$.get(e);return t===void 0?null:t.kind===Ya?_(t.data):t.data.name||``}function In(e){for(var t=e;t&&!so.has(t);)t=t.parentNode;return t}function Ln(e){var t=so.get(e);return t===void 0?null:t.kind===Za?t.parent.id:t.id}function Rn(e,t){if(Qn(e))return rt(Yn,t)}function zn(e){var t=$.get(e);if(t===void 0)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;if(t.kind!==Ya)return null;var n=t.data,r=n.elementType,i=n.tag,a=n.type;switch(i){case w:case I:case L:case ee:case k:return a;case D:return a.render;case R:case B:return r!=null&&r.type!=null?r.type:a;default:return null}}function Bn(e){if(e.kind===Ya){var t=e.data;return{displayName:_(t)||`Anonymous`,id:e.id,key:t.key,type:Et(t)}}else{var n=e.data;return{displayName:n.name||`Anonymous`,id:e.id,key:n.key==null?null:n.key,type:Ce}}}function Vn(e){var t=$.get(e);if(t===void 0)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;var n=Bn(t),r=Hn(t);return r===null?[n]:(r.unshift(n),r.reverse(),r)}function Hn(e){var t=Y(e.data);if(t===null)return null;for(var n=[],r=e.parent;r!==null&&t!==null;){var i=Un(r,t);if(i!==null)n.push(Bn(i)),t=Y(t),r=i.parent;else break}return n}function Y(e){if(e==null)return null;for(e=typeof e.tag==`number`?e._debugOwner:e.owner;e;)if(typeof e.tag==`number`){var t=e;if(!Tt(t))return t;e=t._debugOwner}else{var n=e;if(!Ct(n,null))return n;e=n.owner}return null}function Un(e,t){if(t==null)return null;for(;e!==null;){if(e.data===t||e.data===t.alternate)return e.kind===Za?null:e;e=e.parent}return null}function Wn(e){var t=null,n=null,r=$.get(e);if(r===void 0)return console.warn(`Could not find DevToolsInstance with id "${e}"`),{instance:t,style:n};if(r.kind!==Ya)return{instance:t,style:n};var i=r.data;return i!==null&&(t=i.stateNode,i.memoizedProps!==null&&(n=i.memoizedProps.style)),{instance:t,style:n}}function Gn(e){var t=e.tag,n=e.type;switch(t){case w:case I:var r=e.stateNode;return typeof n.getDerivedStateFromError==`function`||r!==null&&typeof r.componentDidCatch==`function`;default:return!1}}function Kn(e){var t=$.get(e);if(t===void 0)return console.warn(`Could not find DevToolsInstance with id "${e}"`),null;if(t.kind===Xa)return Jn(t);if(t.kind===Ya)return qn(t);throw Error(`Unsupported instance kind`)}function qn(e){var t=e.data;if(t==null)return null;var r=t.stateNode,i=t.key,a=t.memoizedProps,o=t.memoizedState,s=t.dependencies,c=t.tag,l=t.type,u=Et(t),d=(c===k||c===B||c===D)&&(!!o||!!s),f=!d&&c!==C,p=v(l),m=!1,h=null;if(c===w||c===k||c===I||c===L||c===ee||c===R||c===D||c===B)m=!0,r&&r.context!=null&&(u===de&&!(l.contextTypes||l.contextType)||(h=r.context));else if((p===Ri||p===zi)&&!(l._context===void 0&&l.Provider===l)){var g=l._context||l;h=g._currentValue||null;for(var _=t.return;_!==null;){var y=_.type,b=v(y);if((b===Ji||b===Yi)&&(y._context||y.context)===g){h=_.memoizedProps.value;break}_=_.return}}else if(p===Xi){var x=l._context;h=x._currentValue||null;for(var S=t.return;S!==null;){var T=S.type;if(v(T)===zi&&T===x){h=S.memoizedProps.value;break}S=S.return}}var E=!1;h!==null&&(E=!!l.contextTypes,h={value:h});var O=Hn(e),A=null;if(d){var j={};for(var M in console)try{j[M]=console[M],console[M]=function(){}}catch{}try{A=(0,Fi.inspectHooksOfFiber)(t,to(n))}finally{for(var N in j)try{console[N]=j[N]}catch{}}}for(var P=null,F=t,te=!1,z=!1;F.return!==null;){var ne=F;F=F.return,ne.tag===V?z=!0:Gn(ne)&&(te=!0)}var re=F.stateNode;re!=null&&re._debugRootType!==null&&(P=re._debugRootType);var ie=c===V&&o!==null,ae=!1;Gn(t)&&(ae=(t.flags&128)!=0||X.get(t)===!0||t.alternate!==null&&X.get(t.alternate)===!0);var H={stylex:null};na&&a!=null&&a.hasOwnProperty(`xstyle`)&&(H.stylex=pa(a.xstyle));var oe=null;m&&(oe=Xr(e));var se=Xe.get(t);se===void 0&&t.alternate!==null&&(se=Xe.get(t.alternate));var ce=null;return u===he&&(ce=uo(t.stateNode)),{id:e.id,canEditHooks:typeof Pe==`function`,canEditFunctionProps:typeof Le==`function`,canEditHooksAndDeletePaths:typeof Fe==`function`,canEditHooksAndRenamePaths:typeof Ie==`function`,canEditFunctionPropsDeletePaths:typeof Re==`function`,canEditFunctionPropsRenamePaths:typeof ze==`function`,canToggleError:Ge&&te,isErrored:ae,canToggleSuspense:Ke&&z&&(!ie||Dr.has(t)||t.alternate!==null&&Dr.has(t.alternate)),canViewSource:m,source:oe,hasLegacyContext:E,key:i??null,type:u,context:h,hooks:A,props:a,state:f?o:null,errors:se===void 0?[]:Array.from(se.errors.entries()),warnings:se===void 0?[]:Array.from(se.warnings.entries()),owners:O,rootType:P,rendererPackageName:n.rendererPackageName,rendererVersion:n.version,plugins:H,nativeTag:ce}}function Jn(e){var t=!0,r=Zr(e),i=e.data,a=typeof i.key==`string`?i.key:null,o=i.props==null?null:i.props,s=Hn(e),c=null,l=!1,u=!1,d=Sr(e);if(d!==null){for(var f=d;f.return!==null;){var p=f;f=f.return,p.tag===V?u=!0:Gn(p)&&(l=!0)}var m=f.stateNode;m!=null&&m._debugRootType!==null&&(c=m._debugRootType)}var h={stylex:null},g=Ei.get(i);return{id:e.id,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:Ge&&l,isErrored:!1,canToggleSuspense:Ke&&u,canViewSource:t,source:r,hasLegacyContext:!1,key:a,type:Ce,context:null,hooks:null,props:o,state:null,errors:g===void 0?[]:Array.from(g.errors.entries()),warnings:g===void 0?[]:Array.from(g.warnings.entries()),owners:s,rootType:c,rendererPackageName:n.rendererPackageName,rendererVersion:n.version,plugins:h,nativeTag:null}}var Yn=null,Xn=!1,Zn={};function Qn(e){return Yn!==null&&Yn.id===e}function $n(e){return Qn(e)&&!Xn}function er(e){var t=Zn;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]})}function tr(e,t){return function(n){switch(t){case`hooks`:if(n.length===1||n[n.length-2]===`hookSource`&&n[n.length-1]===`fileName`||n[n.length-1]===`subHooks`||n[n.length-2]===`subHooks`)return!0;break;default:break}var r=e===null?Zn:Zn[e];if(!r)return!1;for(var i=0;i<n.length;i++)if(r=r[n[i]],!r)return!1;return!0}}function nr(e){var t=e.hooks,n=e.id,i=e.props,a=$.get(n);if(a===void 0){console.warn(`Could not find DevToolsInstance with id "${n}"`);return}if(a.kind===Ya){var o=a.data,s=o.elementType,c=o.stateNode,l=o.tag,u=o.type;switch(l){case w:case I:case ee:r.$r=c;break;case L:case k:r.$r={hooks:t,props:i,type:u};break;case D:r.$r={hooks:t,props:i,type:u.render};break;case R:case B:r.$r={hooks:t,props:i,type:s!=null&&s.type!=null?s.type:u};break;default:r.$r=null;break}}}function rr(e,t,n){if(Qn(e)){var r=rt(Yn,t),i=`\$reactTemp${n}`;window[i]=r,console.log(i),console.log(r)}}function ir(e,t){if(Qn(e))return Ut(rt(Yn,t))}function ar(e,t,n,r){if(n!==null&&er(n),Qn(t)&&!r){if(!Xn)if(n!==null){var i=null;return n[0]===`hooks`&&(i=`hooks`),{id:t,responseID:e,type:`hydrated-path`,path:n,value:Rt(rt(Yn,n),tr(null,i),n)}}else return{id:t,responseID:e,type:`no-change`}}else Zn={};Xn=!1;try{Yn=Kn(t)}catch(n){if(n.name===`ReactDebugToolsRenderError`){var a=`Error rendering inspected element.`,o;if(console.error(a+`
|
|
84
|
+
|
|
85
|
+
`,n),n.cause!=null){var s=Fn(t);console.error(`React DevTools encountered an error while trying to inspect hooks. This is most likely caused by an error in current inspected component`+(s==null?`.`:`: "${s}".`)+`
|
|
86
|
+
The error thrown in the component is:
|
|
87
|
+
|
|
88
|
+
`,n.cause),n.cause instanceof Error&&(a=n.cause.message||a,o=n.cause.stack)}return{type:`error`,errorType:`user`,id:t,responseID:e,message:a,stack:o}}return n.name===`ReactDebugToolsUnsupportedHookError`?{type:`error`,errorType:`unknown-hook`,id:t,responseID:e,message:`Unsupported hook in the react-debug-tools package: `+n.message}:(console.error(`Error inspecting element.
|
|
89
|
+
|
|
90
|
+
`,n),{type:`error`,errorType:`uncaught`,id:t,responseID:e,message:n.message,stack:n.stack})}if(Yn===null)return{id:t,responseID:e,type:`not-found`};nr(Yn);var c=La({},Yn);return c.context=Rt(c.context,tr(`context`,null)),c.hooks=Rt(c.hooks,tr(`hooks`,`hooks`)),c.props=Rt(c.props,tr(`props`,null)),c.state=Rt(c.state,tr(`state`,null)),{id:t,responseID:e,type:`full-data`,value:c}}function or(e){var t=$n(e)?Yn:Kn(e);if(t===null){console.warn(`Could not find DevToolsInstance with id "${e}"`);return}var n=Fn(e),r=typeof console.groupCollapsed==`function`;r&&console.groupCollapsed(`[Click to expand] %c<${n||`Component`} />`,`color: var(--dom-tag-name-color); font-weight: normal;`),t.props!==null&&console.log(`Props:`,t.props),t.state!==null&&console.log(`State:`,t.state),t.hooks!==null&&console.log(`Hooks:`,t.hooks);var i=Pn(e);i!==null&&console.log(`Nodes:`,i),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log(`Right-click any value to save it as a global variable for further inspection.`),r&&console.groupEnd()}function sr(e,t,n,r){var i=$.get(t);if(i===void 0){console.warn(`Could not find DevToolsInstance with id "${t}"`);return}if(i.kind===Ya){var a=i.data;if(a!==null){var o=a.stateNode;switch(e){case`context`:switch(r=r.slice(1),a.tag){case w:r.length===0||it(o.context,r),o.forceUpdate();break;case k:break}break;case`hooks`:typeof Fe==`function`&&Fe(a,n,r);break;case`props`:o===null?typeof Re==`function`&&Re(a,r):(a.pendingProps=zt(o.props,r),o.forceUpdate());break;case`state`:it(o.state,r),o.forceUpdate();break}}}}function cr(e,t,n,r,i){var a=$.get(t);if(a===void 0){console.warn(`Could not find DevToolsInstance with id "${t}"`);return}if(a.kind===Ya){var o=a.data;if(o!==null){var s=o.stateNode;switch(e){case`context`:switch(r=r.slice(1),i=i.slice(1),o.tag){case w:r.length===0||at(s.context,r,i),s.forceUpdate();break;case k:break}break;case`hooks`:typeof Ie==`function`&&Ie(o,n,r,i);break;case`props`:s===null?typeof ze==`function`&&ze(o,r,i):(o.pendingProps=Bt(s.props,r,i),s.forceUpdate());break;case`state`:at(s.state,r,i),s.forceUpdate();break}}}}function lr(e,t,n,r,i){var a=$.get(t);if(a===void 0){console.warn(`Could not find DevToolsInstance with id "${t}"`);return}if(a.kind===Ya){var o=a.data;if(o!==null){var s=o.stateNode;switch(e){case`context`:switch(r=r.slice(1),o.tag){case w:r.length===0?s.context=i:ot(s.context,r,i),s.forceUpdate();break;case k:break}break;case`hooks`:typeof Pe==`function`&&Pe(o,n,r,i);break;case`props`:switch(o.tag){case w:o.pendingProps=Vt(s.props,r,i),s.forceUpdate();break;default:typeof Le==`function`&&Le(o,r,i);break}break;case`state`:switch(o.tag){case w:ot(s.state,r,i),s.forceUpdate();break}break}}}}var ur=null,dr=null,fr=null,pr=!1,mr=0,hr=!1,gr=!1,_r=null;function vr(){var e=[];if(_r===null)throw Error(`getProfilingData() called before any profiling data was recorded`);_r.forEach(function(t,n){var r=[],i=dr!==null&&dr.get(n)||`Unknown`,a=fr!==null&&fr.get(n)||[];t.forEach(function(e,t){for(var n=e.changeDescriptions,i=e.durations,a=e.effectDuration,o=e.maxActualDuration,s=e.passiveEffectDuration,c=e.priorityLevel,l=e.commitTime,u=e.updaters,d=[],f=[],p=0;p<i.length;p+=3){var m=i[p];d.push([m,rn(i[p+1])]),f.push([m,rn(i[p+2])])}r.push({changeDescriptions:n===null?null:Array.from(n.entries()),duration:rn(o),effectDuration:a===null?null:rn(a),fiberActualDurations:d,fiberSelfDurations:f,passiveEffectDuration:s===null?null:rn(s),priorityLevel:c,timestamp:l,updaters:u})}),e.push({commitData:r,displayName:i,initialTreeBaseDurations:a,rootID:n})});var n=null;if(typeof qe==`function`){var r=qe();if(r){var i=r.batchUIDToMeasuresMap,a=r.internalModuleSourceToRanges,o=r.laneToLabelMap,s=r.laneToReactMeasureMap;n=La(La({},Pa(r,[`batchUIDToMeasuresMap`,`internalModuleSourceToRanges`,`laneToLabelMap`,`laneToReactMeasureMap`])),{},{batchUIDToMeasuresKeyValueArray:Array.from(i.entries()),internalModuleSourceToRanges:Array.from(a.entries()),laneToLabelKeyValueArray:Array.from(o.entries()),laneToReactMeasureKeyValueArray:Array.from(s.entries())})}}return{dataForRoots:e,rendererID:t,timelineData:n}}function yr(e,t){e.kind!==Za&&t.push([e.id,e.treeBaseDuration]);for(var n=e.firstChild;n!==null;n=n.nextSibling)yr(n,t)}function br(n,r){pr||(hr=n,gr=r,dr=new Map,fr=new Map,e.getFiberRoots(t).forEach(function(e){var t=oo.get(e);if(t===void 0)throw Error(`Expected the root instance to already exist when starting profiling`);var n=t.id;dr.set(n,Ur(e.current));var r=[];yr(t,r),fr.set(n,r)}),pr=!0,mr=ro(),_r=new Map,Je!==null&&Je(!0,gr))}function xr(){pr=!1,hr=!1,Je!==null&&Je(!1,gr),gr=!1}i&&br(a.recordChangeDescriptions,a.recordTimeline);function Sr(e){if(e.kind===Xa){for(var t=e;t.kind===Xa;){if(t.firstChild===null)return null;t=t.firstChild}return t.data.return}else return e.data}function Cr(){return null}var X=new Map;function wr(e){if(typeof Ve!=`function`)throw Error(`Expected overrideError() to not get called for earlier React versions.`);var t=X.get(e);return t===!1?(X.delete(e),X.size===0&&Ve(Cr),!1):(t===void 0&&e.alternate!==null&&(t=X.get(e.alternate),t===!1&&(X.delete(e.alternate),X.size===0&&Ve(Cr))),t===void 0?!1:t)}function Tr(e,t){if(typeof Ve!=`function`||typeof Ue!=`function`)throw Error(`Expected overrideError() to not get called for earlier React versions.`);var n=$.get(e);if(n!==void 0){var r=Sr(n);if(r!==null){for(var i=r;!Gn(i);){if(i.return===null)return;i=i.return}X.set(i,t),i.alternate!==null&&X.delete(i.alternate),X.size===1&&Ve(wr),Ue(i)}}}function Er(){return!1}var Dr=new Set;function Or(e){return Dr.has(e)||e.alternate!==null&&Dr.has(e.alternate)}function kr(e,t){if(typeof He!=`function`||typeof Ue!=`function`)throw Error(`Expected overrideSuspense() to not get called for earlier React versions.`);var n=$.get(e);if(n!==void 0){var r=Sr(n);if(r!==null){for(var i=r;i.tag!==V;){if(i.return===null)return;i=i.return}i.alternate!==null&&Dr.delete(i.alternate),t?(Dr.add(i),Dr.size===1&&He(Or)):(Dr.delete(i),Dr.size===0&&He(Er)),Ue(i)}}}var Ar=null,jr=null,Mr=null,Nr=-1,Pr=!1;function Fr(e){e===null&&(jr=null,Mr=null,Nr=-1,Pr=!1),Ar=e}function Ir(e,t){if(Ar===null||!Pr)return!1;var n=e.return,r=n===null?null:n.alternate;if(jr===n||jr===r&&r!==null){var i=Wr(e),a=Ar[Nr+1];if(a===void 0)throw Error(`Expected to see a frame at the next depth.`);if(i.index===a.index&&i.key===a.key&&i.displayName===a.displayName)return jr=e,t!==null&&t.kind===Ya&&(Mr=t),Nr++,Pr=Nr!==Ar.length-1,!1}return jr===null&&t===null||(Pr=!1),!0}function Lr(e,t){if(Ar===null||!Pr)return!1;if(Mr===t){var n=Gr(e),r=Ar[Nr+1];if(r===void 0)throw Error(`Expected to see a frame at the next depth.`);if(n.index===r.index&&n.key===r.key&&n.displayName===r.displayName)return jr=null,Mr=e,Nr++,Pr=Nr!==Ar.length-1,!1}return jr===null&&(Pr=!1),!0}function Rr(e){Pr=e}var zr=new Map,Br=new Map;function Vr(e,t){var n=Ur(t),r=Br.get(n)||0;Br.set(n,r+1);var i=`${n}:${r}`;zr.set(e,i)}function Hr(e){var t=zr.get(e);if(t===void 0)throw Error(`Expected root pseudo key to be known.`);var n=t.slice(0,t.lastIndexOf(`:`)),r=Br.get(n);if(r===void 0)throw Error(`Expected counter to be known.`);r>1?Br.set(n,r-1):Br.delete(n),zr.delete(e)}function Ur(e){for(var t=null,n=null,r=e.child,i=0;i<3&&r!==null;i++){var a=_(r);if(a!==null&&(typeof r.type==`function`?t=a:n===null&&(n=a)),t!==null)break;r=r.child}return t||n||`Anonymous`}function Wr(e){var t=e.key,n=_(e),r=e.index;switch(e.tag){case A:var i=oo.get(e.stateNode);if(i===void 0)throw Error(`Expected the root instance to exist when computing a path`);var a=zr.get(i.id);if(a===void 0)throw Error(`Expected mounted root to have known pseudo key.`);n=a;break;case P:n=e.type;break;default:break}return{displayName:n,key:t,index:r}}function Gr(e){return{displayName:e.data.name||``,key:e.data.key==null?null:e.data.key,index:-1}}function Kr(e){var t=$.get(e);if(t===void 0)return null;for(var n=[],r=t;r.kind===Xa;){if(n.push(Gr(r)),r.parent===null)return null;r=r.parent}for(var i=r.data;i!==null;)n.push(Wr(i)),i=i.return;return n.reverse(),n}function qr(){return Ar===null||Mr===null?null:{id:Mr.id,isFullMatch:Nr===Ar.length-1}}var Jr=function(e){if(e==null)return`Unknown`;switch(e){case H:return`Immediate`;case oe:return`User-Blocking`;case se:return`Normal`;case ce:return`Low`;case le:return`Idle`;case ue:default:return`Unknown`}};function Z(e){vt=e}function Yr(e){return $.has(e)}function Xr(e){var t=Zr(e);if(t!==null)return t;var r=to(n),i=r==null?null:ca(b,e.data,r);if(i===null)return null;var a=$t(i);return e.source=a,a}function Zr(e){var t=e.source;if(t===null)return null;if(e.kind===Xa){var n=e.data.debugLocation;n!=null&&(t=n)}if(Ja(t))return e.source=nn(t);if(typeof t==`string`){var r=t.lastIndexOf(`
|
|
91
|
+
`);return e.source=$t(r===-1?t:t.slice(r+1))}return t}return La({cleanup:wn,clearErrorsAndWarnings:nt,clearErrorsForElementID:ct,clearWarningsForElementID:lt,getSerializedElementValueByPath:ir,deletePath:sr,findHostInstancesForElementID:Pn,flushInitialOperations:En,getBestMatchForTrackedPath:qr,getDisplayNameForElementID:Fn,getNearestMountedDOMNode:In,getElementIDForHostInstance:Ln,getInstanceAndStyle:Wn,getOwnersList:Vn,getPathForElement:Kr,getProfilingData:vr,handleCommitFiberRoot:kn,handleCommitFiberUnmount:Dn,handlePostCommitFiberRoot:On,hasElementWithId:Yr,inspectElement:ar,logElementToConsole:or,getComponentStack:dt,getElementAttributeByPath:Rn,getElementSourceFunctionById:zn,onErrorOrWarning:ft,overrideError:Tr,overrideSuspense:kr,overrideValueAtPath:lr,renamePath:cr,renderer:n,setTraceUpdatesEnabled:Z,setTrackedPath:Fr,startProfiling:br,stopProfiling:xr,storeAsGlobal:rr,updateComponentFilters:xt,getEnvironmentNames:St},{})}function _o(e,t,n){var r=e[t];return e[t]=function(e){return n.call(this,r,arguments)},r}function vo(e,t){var n={};for(var r in t)n[r]=_o(e,r,t[r]);return n}function yo(e,t){for(var n in t)e[n]=t[n]}function bo(e){typeof e.forceUpdate==`function`?e.forceUpdate():e.updater!=null&&typeof e.updater.enqueueForceUpdate==`function`&&e.updater.enqueueForceUpdate(this,function(){},`forceUpdate`)}function xo(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 So(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xo(Object(n),!0).forEach(function(t){Co(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Co(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wo(e){"@babel/helpers - typeof";return wo=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},wo(e)}function To(e){var t=null,n=null;if(e._currentElement!=null){e._currentElement.key&&(n=String(e._currentElement.key));var r=e._currentElement.type;typeof r==`string`?t=r:typeof r==`function`&&(t=qe(r))}return{displayName:t,key:n}}function Eo(e){if(e._currentElement!=null){var t=e._currentElement.type;if(typeof t==`function`)return e.getPublicInstance()===null?pe:de;if(typeof t==`string`)return he}return _e}function Do(e){var t=[];if(wo(e)===`object`&&!(e._currentElement===null||e._currentElement===!1)){if(e._renderedComponent){var n=e._renderedComponent;Eo(n)!==_e&&t.push(n)}else if(e._renderedChildren){var r=e._renderedChildren;for(var i in r){var a=r[i];Eo(a)!==_e&&t.push(a)}}}return t}function Oo(e,t,n,r){var i=new Map,a=new WeakMap,o=new WeakMap,d=null,f,p=function(e){return null};n.ComponentTree?(d=function(e){var t=n.ComponentTree.getClosestInstanceFromNode(e);return a.get(t)||null},f=function(e){var t=i.get(e);return n.ComponentTree.getNodeFromInstance(t)},p=function(e){var t=n.ComponentTree.getClosestInstanceFromNode(e);return t==null?null:n.ComponentTree.getNodeFromInstance(t)}):n.Mount.getID&&n.Mount.getNode&&(d=function(e){return null},f=function(e){return null});function m(e){var t=i.get(e);return t?To(t).displayName:null}function h(e){if(wo(e)!==`object`||e===null)throw Error(`Invalid internal instance: `+e);if(!a.has(e)){var t=Ye();a.set(e,t),i.set(t,e)}return a.get(e)}function g(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var _=[],v=null;n.Reconciler&&(v=vo(n.Reconciler,{mountComponent:function(e,t){var n=t[0],r=t[3];if(Eo(n)===_e||r._topLevelWrapper===void 0)return e.apply(this,t);var i=h(n);b(n,i,_.length>0?_[_.length-1]:0),_.push(i),o.set(n,h(r._topLevelWrapper));try{var a=e.apply(this,t);return _.pop(),a}catch(e){throw _=[],e}finally{if(_.length===0){var s=o.get(n);if(s===void 0)throw Error(`Expected to find root ID.`);A(s)}}},performUpdateIfNecessary:function(e,t){var n=t[0];if(Eo(n)===_e)return e.apply(this,t);var r=h(n);_.push(r);var i=Do(n);try{var a=e.apply(this,t),s=Do(n);return g(i,s)||x(n,r,s),_.pop(),a}catch(e){throw _=[],e}finally{if(_.length===0){var c=o.get(n);if(c===void 0)throw Error(`Expected to find root ID.`);A(c)}}},receiveComponent:function(e,t){var n=t[0];if(Eo(n)===_e)return e.apply(this,t);var r=h(n);_.push(r);var i=Do(n);try{var a=e.apply(this,t),s=Do(n);return g(i,s)||x(n,r,s),_.pop(),a}catch(e){throw _=[],e}finally{if(_.length===0){var c=o.get(n);if(c===void 0)throw Error(`Expected to find root ID.`);A(c)}}},unmountComponent:function(e,t){var n=t[0];if(Eo(n)===_e)return e.apply(this,t);var r=h(n);_.push(r);try{var i=e.apply(this,t);return _.pop(),S(n,r),i}catch(e){throw _=[],e}finally{if(_.length===0){var a=o.get(n);if(a===void 0)throw Error(`Expected to find root ID.`);A(a)}}}}));function y(){v!==null&&(n.Component?yo(n.Component.Mixin,v):yo(n.Reconciler,v)),v=null}function b(e,t,n){var r=n===0;if(s&&console.log(`%crecordMount()`,`color: green; font-weight: bold;`,t,To(e).displayName),r){var i=e._currentElement!=null&&e._currentElement._owner!=null;j(c),j(t),j(ye),j(0),j(0),j(0),j(i?1:0)}else{var a=Eo(e),o=To(e),l=o.displayName,u=o.key,d=e._currentElement!=null&&e._currentElement._owner!=null?h(e._currentElement._owner):0,f=M(l),p=M(u);j(c),j(t),j(a),j(n),j(d),j(f),j(p)}}function x(e,t,n){j(u),j(t);var r=n.map(h);j(r.length);for(var i=0;i<r.length;i++)j(r[i])}function S(e,t){D.push(t),i.delete(t)}function C(e,t,n){s&&console.group(`crawlAndRecordInitialMounts() id:`,e);var r=i.get(e);r!=null&&(o.set(r,n),b(r,e,t),Do(r).forEach(function(t){return C(h(t),e,n)})),s&&console.groupEnd()}function w(){var e=n.Mount._instancesByReactRootID||n.Mount._instancesByContainerID;for(var t in e){var r=e[t],i=h(r);C(i,0,i),A(i)}}var T=[],E=new Map,D=[],O=0,k=null;function A(n){if(!(T.length===0&&D.length===0&&k===null)){var r=D.length+(k===null?0:1),i=Array(3+O+(r>0?2+r:0)+T.length),a=0;if(i[a++]=t,i[a++]=n,i[a++]=O,E.forEach(function(e,t){i[a++]=t.length;for(var n=Qe(t),r=0;r<n.length;r++)i[a+r]=n[r];a+=t.length}),r>0){i[a++]=l,i[a++]=r;for(var o=0;o<D.length;o++)i[a++]=D[o];k!==null&&(i[a]=k,a++)}for(var c=0;c<T.length;c++)i[a+c]=T[c];a+=T.length,s&&$e(i),e.emit(`operations`,i),T.length=0,D=[],k=null,E.clear(),O=0}}function j(e){T.push(e)}function M(e){if(e===null)return 0;var t=E.get(e);if(t!==void 0)return t;var n=E.size+1;return E.set(e,n),O+=e.length+1,n}var N=null,P={};function F(e){var t=P;e.forEach(function(e){t[e]||(t[e]={}),t=t[e]})}function I(e){return function(t){var n=P[e];if(!n)return!1;for(var r=0;r<t.length;r++)if(n=n[t[r]],!n)return!1;return!0}}function L(e){var t=null,n=null,r=i.get(e);if(r!=null){t=r._instance||null;var a=r._currentElement;a!=null&&a.props!=null&&(n=a.props.style||null)}return{instance:t,style:n}}function ee(e){var t=i.get(e);if(t==null){console.warn(`Could not find instance with id "${e}"`);return}switch(Eo(t)){case de:r.$r=t._instance;break;case pe:var n=t._currentElement;if(n==null){console.warn(`Could not find element with id "${e}"`);return}r.$r={props:n.props,type:n.type};break;default:r.$r=null;break}}function te(e,t,n){var r=B(e);if(r!==null){var i=rt(r,t),a=`\$reactTemp${n}`;window[a]=i,console.log(a),console.log(i)}}function R(e,t){var n=B(e);if(n!==null)return Ut(rt(n,t))}function z(e,t,n,r){(r||N!==t)&&(N=t,P={});var i=B(t);return i===null?{id:t,responseID:e,type:`not-found`}:(n!==null&&F(n),ee(t),i.context=Rt(i.context,I(`context`)),i.props=Rt(i.props,I(`props`)),i.state=Rt(i.state,I(`state`)),{id:t,responseID:e,type:`full-data`,value:i})}function B(e){var t=i.get(e);if(t==null)return null;var n=To(t).key,r=Eo(t),a=null,o=null,s=null,c=null,l=t._currentElement;if(l!==null){s=l.props;var u=l._owner;if(u)for(o=[];u!=null;)o.push({displayName:To(u).displayName||`Unknown`,id:h(u),key:l.key,type:Eo(u)}),u._currentElement&&(u=u._currentElement._owner)}var d=t._instance;return d!=null&&(a=d.context||null,c=d.state||null),{id:e,canEditHooks:!1,canEditFunctionProps:!1,canEditHooksAndDeletePaths:!1,canEditHooksAndRenamePaths:!1,canEditFunctionPropsDeletePaths:!1,canEditFunctionPropsRenamePaths:!1,canToggleError:!1,isErrored:!1,canToggleSuspense:!1,canViewSource:r===de||r===pe,source:null,hasLegacyContext:!0,type:r,key:n??null,context:a,hooks:null,props:s,state:c,errors:[],warnings:[],owners:o,rootType:null,rendererPackageName:null,rendererVersion:null,plugins:{stylex:null},nativeTag:null}}function V(e){var t=B(e);if(t===null){console.warn(`Could not find element with id "${e}"`);return}var n=m(e),r=typeof console.groupCollapsed==`function`;r&&console.groupCollapsed(`[Click to expand] %c<${n||`Component`} />`,`color: var(--dom-tag-name-color); font-weight: normal;`),t.props!==null&&console.log(`Props:`,t.props),t.state!==null&&console.log(`State:`,t.state),t.context!==null&&console.log(`Context:`,t.context);var i=f(e);i!==null&&console.log(`Node:`,i),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log(`Right-click any value to save it as a global variable for further inspection.`),r&&console.groupEnd()}function ne(e,t){var n=B(e);if(n!==null)return rt(n,t)}function re(e){var t=i.get(e);if(t==null)return console.warn(`Could not find instance with id "${e}"`),null;var n=t._currentElement;return n==null?(console.warn(`Could not find element with id "${e}"`),null):n.type}function ie(e,t,n,r){var a=i.get(t);if(a!=null){var o=a._instance;if(o!=null)switch(e){case`context`:it(o.context,r),bo(o);break;case`hooks`:throw Error(`Hooks not supported by this renderer`);case`props`:var s=a._currentElement;a._currentElement=So(So({},s),{},{props:zt(s.props,r)}),bo(o);break;case`state`:it(o.state,r),bo(o);break}}}function ae(e,t,n,r,a){var o=i.get(t);if(o!=null){var s=o._instance;if(s!=null)switch(e){case`context`:at(s.context,r,a),bo(s);break;case`hooks`:throw Error(`Hooks not supported by this renderer`);case`props`:var c=o._currentElement;o._currentElement=So(So({},c),{},{props:Bt(c.props,r,a)}),bo(s);break;case`state`:at(s.state,r,a),bo(s);break}}}function H(e,t,n,r,a){var o=i.get(t);if(o!=null){var s=o._instance;if(s!=null)switch(e){case`context`:ot(s.context,r,a),bo(s);break;case`hooks`:throw Error(`Hooks not supported by this renderer`);case`props`:var c=o._currentElement;o._currentElement=So(So({},c),{},{props:Vt(c.props,r,a)}),bo(s);break;case`state`:ot(s.state,r,a),bo(s);break}}}var oe=function(){throw Error(`getProfilingData not supported by this renderer`)},se=function(){throw Error(`handleCommitFiberRoot not supported by this renderer`)},ce=function(){throw Error(`handleCommitFiberUnmount not supported by this renderer`)},le=function(){throw Error(`handlePostCommitFiberRoot not supported by this renderer`)},ue=function(){throw Error(`overrideError not supported by this renderer`)},fe=function(){throw Error(`overrideSuspense not supported by this renderer`)},me=function(){},he=function(){};function ge(){return null}function ve(e){return null}function be(e){}function xe(){return[]}function Se(e){}function Ce(e){}function we(e){return null}function Te(){}function Ee(e){}function De(e){}function Oe(e){return i.has(e)}return{clearErrorsAndWarnings:Te,clearErrorsForElementID:Ee,clearWarningsForElementID:De,cleanup:y,getSerializedElementValueByPath:R,deletePath:ie,flushInitialOperations:w,getBestMatchForTrackedPath:ge,getDisplayNameForElementID:m,getNearestMountedDOMNode:p,getElementIDForHostInstance:d,getInstanceAndStyle:L,findHostInstancesForElementID:function(e){var t=f(e);return t==null?null:[t]},getOwnersList:we,getPathForElement:ve,getProfilingData:oe,handleCommitFiberRoot:se,handleCommitFiberUnmount:ce,handlePostCommitFiberRoot:le,hasElementWithId:Oe,inspectElement:z,logElementToConsole:V,overrideError:ue,overrideSuspense:fe,overrideValueAtPath:H,renamePath:ae,getElementAttributeByPath:ne,getElementSourceFunctionById:re,renderer:n,setTraceUpdatesEnabled:Se,setTrackedPath:Ce,startProfiling:me,stopProfiling:he,storeAsGlobal:te,updateComponentFilters:be,getEnvironmentNames:xe}}function ko(e){return!Lt(e)}function Ao(e,t,n,r,i,a){if(ko(n.reconcilerVersion||n.version)){var o=e.rendererInterfaces.get(t);return o??(typeof n.getCurrentComponentInfo==`function`?o=Pi(e,t,n,r):typeof n.findFiberByHostInstance==`function`||n.currentDispatcherRef!=null?o=go(e,t,n,r,i,a):n.ComponentTree&&(o=Oo(e,t,n,r))),o}}function jo(e){return Po(e)||No(e)||Lo(e)||Mo()}function Mo(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
92
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function No(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Po(e){if(Array.isArray(e))return Ro(e)}function Fo(e,t){return Bo(e)||zo(e,t)||Lo(e,t)||Io()}function Io(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
93
|
+
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.
|
|
94
|
+
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.
|
|
95
|
+
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(`
|
|
96
|
+
`);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{};
|