1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9997],{4123:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,c){function u(e){try{a(n.next(e))}catch(e){c(e)}}function s(e){try{a(n.throw(e))}catch(e){c(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(u,s)}a((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,c,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function s(c){return function(s){var a=[c,s];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=void 0;var c=r(27923);t.getUrl=function(e,t){return n(void 0,void 0,void 0,function(){var r,n;return o(this,function(o){switch(o.label){case 0:if("function"!=typeof e)return[3,2];return[4,e()];case 1:return r=o.sent(),[3,3];case 2:r=e,o.label=3;case 3:return n=t.current.fromSocketIO?(0,c.parseSocketIOUrl)(r):r,[2,t.current.queryParams?(0,c.appendQueryParams)(n,t.current.queryParams):n]}})})}},6407:(e,t,r)=>{var n=r(16815);e.exports=r(24567)(n)},8737:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useSocketIO=void 0;var o=r(12115),c=r(72646),u=r(69154),s={type:"empty",payload:null},a=function(e){if(!e||!e.data)return s;var t=e.data.match(/\[.*]/);if(!t)return s;var r=JSON.parse(t);return Array.isArray(r)&&r[1]?{type:r[0],payload:r[1]}:s};t.useSocketIO=function(e,t,r){void 0===t&&(t=u.DEFAULT_OPTIONS),void 0===r&&(r=!0);var s=(0,o.useMemo)(function(){return n(n({},t),{fromSocketIO:!0})},[]),i=(0,c.useWebSocket)(e,s,r),f=i.sendMessage,l=i.sendJsonMessage,p=i.lastMessage,d=i.readyState,S=i.getWebSocket,v=(0,o.useMemo)(function(){return a(p)},[p]);return{sendMessage:f,sendJsonMessage:l,lastMessage:v,lastJsonMessage:v,readyState:d,getWebSocket:S}}},15791:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},16815:(e,t,r)=>
1{var n=r(39089),o=r(91958);e.exports=function(e,t){return e&&n(e,t,o)}},19535:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.attachListeners=void 0;var o=r(27923),c=r(69154),u=r(19989),s=function(e,t,r){e.onmessage=function(e){t.current.onMessage&&t.current.onMessage(e),("function"!=typeof t.current.filter||!0===t.current.filter(e))&&r(e)}},a=function(e,t,r,n){e.onopen=function(e){t.current.onOpen&&t.current.onOpen(e),n.current=0,r(c.ReadyState.OPEN)}},i=function(e,t,r,n,o){var s;return c.isEventSourceSupported&&e instanceof EventSource?function(){}:((0,u.assertIsWebSocket)(e,t.current.skipAssert),e.onclose=function(e){var u;if(t.current.onClose&&t.current.onClose(e),r(c.ReadyState.CLOSED),t.current.shouldReconnect&&t.current.shouldReconnect(e)){var a=null!=(u=t.current.reconnectAttempts)?u:c.DEFAULT_RECONNECT_LIMIT;if(o.current<a){var i="function"==typeof t.current.reconnectInterval?t.current.reconnectInterval(o.current):t.current.reconnectInterval;s=window.setTimeout(function(){o.current++,n()},null!=i?i:c.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(a),console.warn("Max reconnect attempts of ".concat(a," exceeded"))}},function(){return s&&window.clearTimeout(s)})},f=function(e,t,r,o,u){var s;return e.onerror=function(a){var i;if(t.current.onError&&t.current.onError(a),c.isEventSourceSupported&&e instanceof EventSource&&(t.current.onClose&&t.current.onClose(n(n({},a),{code:1006,reason:"An error occurred with the EventSource: ".concat(a),wasClean:!1})),r(c.ReadyState.CLOSED),e.close()),t.current.retryOnError)if(u.current<(null!=(i=t.current.reconnectAttempts)?i:c.DEFAULT_RECONNECT_LIMIT)){var f="function"==typeof t.current.reconnectInterval?t.current.reconnectInterval(u.current):t.current.reconnectInterval;s=window.setTimeout(function(){u.current++,o()},null!=f?f:c.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(t.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(t.current.reconnectAttempts," exceeded"))},function(){return s&&window.clearTimeout(s)}};t.attachListeners=function(e,t,r,n,u,l){var p,d,S,v=t.setLastMessage,b=t.setReadyState;return r.current.fromSocketIO&&(p=(0,o.setUpSocketIOPing)(l)),s(e,r,v),a(e,r,b,u),d=i(e,r,b,n,u),S=f(e,r,b,n,u),function(){b(c.ReadyState.CLOSING),d(),S(),e.close(),p&&clearInterval(p)}}},19989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetGlobalState=t.assertIsWebSocket=void 0;var n=r(36955),o=r(61556);t.assertIsWebSocket=function(e,t){if(!t&&e instanceof WebSocket==!1)throw Error("")},t.resetGlobalState=function(e){(0,o.resetSubscribers)(e),(0,n.resetWebSockets)(e)}},22009:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.useEventSource=void 0;var c=r(12115),u=r(72646),s=r(69154);t.useEventSource=function(e,t,r){void 0===t&&(t=s.DEFAULT_EVENT_SOURCE_OPTIONS);var a=t.withCredentials,i=t.events,f=o(t,["withCredentials","events"]);void 0===r&&(r=!0);var l=n(n({},f),{eventSourceOptions:{withCredentials:a}}),p=(0,c.useRef)(s.EMPTY_EVENT_HANDLERS);i&&(p.current=i);var d=(0,u.useWebSocket)(e,l,r),S=d.lastMessage,v=d.readyState,b=d.getWebSocket;return(0,c.useEffect)(function(){(null==S?void 0:S.type)&&Object.entries(p.current).forEach(function(e){var t=e[0],r=e[1];t===S.type&&r(S)})},[S]),{lastEvent:S,readyState:v,getEventSource:b}}},24567:(e,t,r)=>{var n=r(48908);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var c=r.length,u=t?c:-1,s=Object(r);(t?u--:++u<c)&&!1!==o(s[u],u,s););return r}}},27923:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.setUpSocketIOPing=t.appendQueryParams=t.parseSocketIOUrl=void 0;var n=r(69154);t.parseSocketIOUrl=function(e){if(e){var t=/^https|wss/.test(e),r=e.replace(/^(https?|wss?)(:\/\/)?/,"").replace(/\/$/,""),o=t?"wss":"ws";return"".concat(o,"://").concat(r).concat(n.SOCKET_IO_PATH)}if(""===e){var t=/^https/.test(window.location.protocol),o=t?"wss":"ws",c=window.location.port?":".concat(window.location.port):"";return"".concat(o,"://").concat(window.location.hostname).concat(c).concat(n.SOCKET_IO_PATH)}return e},t.appendQueryParams=function(e,t){void 0===t&&(t={});var r=/\?([\w]+=[\w]+)/.test(e),n="".concat(Object.entries(t).reduce(function(e,t){var r=t[0],n=t[1];return e+"".concat(r,"=").concat(n,"&")},"").slice(0,-1));return"".concat(e).concat(r?"&":"?").concat(n)},t.setUpSocketIOPing=function(e,t){return void 0===t&&(t=n.SOCKET_IO_PING_INTERVAL),window.setInterval(function(){return e(n.SOCKET_IO_PING_CODE)},t)}},32812:(e,t,r)=>{var n=r(6407),o=r(48908);e.exports=function(e,t){var r=-1,c=o(e)?Array(e.length):[];return n(e,function(e,n,o){c[++r]=t(e,n,o)}),c}},34587:(e,t,r)=>{var n=r(48883),o=r(25411);e.exports=function(e,t,r,c){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(r=c?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},36955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetWebSockets=t.sharedWebSockets=void 0,t.sharedWebSockets={},t.resetWebSockets=function(e){if(e&&t.sharedWebSockets.hasOwnProperty(e))delete t.sharedWebSockets[e];else for(var r in t.sharedWebSockets)t.sharedWebSockets.hasOwnProperty(r)&&delete t.sharedWebSockets[r]}},39089:(e,t,r)=>{e.exports=r(55777)()},43391:(e,t,r)=>{"use strict";t.Ay=void 0;var n=r(72646);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return n.useWebSocket}}),r(8737),r(69154),r(22009),r(19989)},44882:(e,t,r)=>{var n=r(90988);e.exports=function(e,t,r){for(var o=-1,c=e.criteria,u=t.criteria,s=c.length,a=r.length;++o<s;){var i=n(c[o],u[o]);if(i){if(o>=a)return i;return i*("desc"==r[o]?-1:1)}}return e.index-t.index}},48883:(e,t,r)=>{var n=r(91426),o=r(14638),c=r(33011),u=r(32812),s=r(15791),a=r(99425),i=r(44882),f=r(90176),l=r(25411);e.exports=function(e,t,r){t=t.length?n(t,function(e){return l(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[f];var p=-1;return t=n(t,a(c)),s(u(e,function(e,r,o){return{criteria:n(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return i(e,t,r)})}},55777:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,c=Object(t),u=n(t),s=u.length;s--;){var a=u[e?s:++o];if(!1===r(c[a],a,c))break}return t}}},57500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOrJoinSocket=void 0;var n=r(36955),o=r(69154),c=r(19535),u=r(60762),s=r(61556);t.createOrJoinSocket=function(e,t,r,a,i,f,l,p){if(!o.isEventSourceSupported&&a.current.eventSourceOptions)if(o.isReactNative)throw Error("EventSource is not supported in ReactNative");else throw Error("EventSource is not supported");if(a.current.share){var d,S=null;void 0===n.sharedWebSockets[t]?(n.sharedWebSockets[t]=a.current.eventSourceOptions?new EventSource(t,a.current.eventSourceOptions):new WebSocket(t,a.current.protocols),e.current=n.sharedWebSockets[t],r(o.ReadyState.CONNECTING),S=(0,u.attachSharedListeners)(n.sharedWebSockets[t],t,a,p)):(e.current=n.sharedWebSockets[t],r(n.sharedWebSockets[t].readyState));var v={setLastMessage:i,setReadyState:r,optionsRef:a,reconnectCount:l,reconnect:f};return(0,s.addSubscriber)(t,v),d=S,function(){if((0,s.removeSubscriber)(t,v),!(0,s.hasSubscribers)(t)){try{var e=n.sharedWebSockets[t];e instanceof WebSocket&&(e.onclose=function(e){a.current.onClose&&a.current.onClose(e),r(o.ReadyState.CLOSED)}),e.close()}catch(e){}d&&d(),delete n.sharedWebSockets[t]}}}if(e.current=a.current.eventSourceOptions?new EventSource(t,a.current.eventSourceOptions):new WebSocket(t,a.current.protocols),r(o.ReadyState.CONNECTING),!e.current)throw Error("WebSocket failed to be created");return(0,c.attachListeners)(e.current,{setLastMessage:i,setReadyState:r},a,f.current,l,p)}},58575:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.websocketWrapper=void 0,t.websocketWrapper=function(e,t){return new Proxy(e,{get:function(e,r){var n=e[r];return"reconnect"===r?t:"function"==typeof n?(console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."),function(){}):n},set:function(e,t,r){return/^on/.test(t)?(console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."),!1):(e[t]=r,!0)}})},t.default=t.websocketWrapper},60762:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.attachSharedListeners=void 0;var o=r(36955),c=r(69154),u=r(61556),s=r(27923),a=function(e,t){e.onmessage=function(e){(0,u.getSubscribers)(t).forEach(function(t){t.optionsRef.current.onMessage&&t.optionsRef.current.onMessage(e),("function"!=typeof t.optionsRef.current.filter||!0===t.optionsRef.current.filter(e))&&t.setLastMessage(e)})}},i=function(e,t){e.onopen=function(e){(0,u.getSubscribers)(t).forEach(function(t){t.reconnectCount.current=0,t.optionsRef.current.onOpen&&t.optionsRef.current.onOpen(e),t.setReadyState(c.ReadyState.OPEN)})}},f=function(e,t){e instanceof WebSocket&&(e.onclose=function(e){(0,u.getSubscribers)(t).forEach(function(t){t.optionsRef.current.onClose&&t.optionsRef.current.onClose(e),t.setReadyState(c.ReadyState.CLOSED)}),delete o.sharedWebSockets[t],(0,u.getSubscribers)(t).forEach(function(t){var r;if(t.optionsRef.current.shouldReconnect&&t.optionsRef.current.shouldReconnect(e)){var n=null!=(r=t.optionsRef.current.reconnectAttempts)?r:c.DEFAULT_RECONNECT_LIMIT;if(t.reconnectCount.current<n){var o="function"==typeof t.optionsRef.current.reconnectInterval?t.optionsRef.current.reconnectInterval(t.reconnectCount.current):t.optionsRef.current.reconnectInterval;setTimeout(function(){t.reconnectCount.current++,t.reconnect.current()},null!=o?o:c.DEFAULT_RECONNECT_INTERVAL_MS)}else t.optionsRef.current.onReconnectStop&&t.optionsRef.current.onReconnectStop(t.optionsRef.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(n," exceeded"))}})})},l=function(e,t){e.onerror=function(r){(0,u.getSubscribers)(t).forEach(function(t){t.optionsRef.current.onError&&t.optionsRef.current.onError(r),c.isEventSourceSupported&&e instanceof EventSource&&(t.optionsRef.current.onClose&&t.optionsRef.current.onClose(n(n({},r),{code:1006,reason:"An error occurred with the EventSource: ".concat(r),wasClean:!1})),t.setReadyState(c.ReadyState.CLOSED))}),c.isEventSourceSupported&&e instanceof EventSource&&e.close()}};t.attachSharedListeners=function(e,t,r,n){var o;return r.current.fromSocketIO&&(o=(0,s.setUpSocketIOPing)(n)),a(e,t),f(e,t),i(e,t),l(e,t),function(){o&&clearInterval(o)}}},61556:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetSubscribers=t.removeSubscriber=t.addSubscriber=t.hasSubscribers=t.getSubscribers=void 0;var r={},n=[];t.getSubscribers=function(e){return(0,t.hasSubscribers)(e)?Array.from(r[e]):n},t.hasSubscribers=function(e){var t;return(null==(t=r[e])?void 0:t.size)>0},t.addSubscriber=function(e,t){r[e]=r[e]||new Set,r[e].add(t)},t.removeSubscriber=function(e,t){r[e].delete(t)},t.resetSubscribers=function(e){if(e&&r.hasOwnProperty(e))delete r[e];else for(var t in r)r.hasOwnProperty(t)&&delete r[t]}},69154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEventSourceSupported=t.isReactNative=t.ReadyState=t.UNPARSABLE_JSON_OBJECT=t.DEFAULT_RECONNECT_INTERVAL_MS=t.DEFAULT_RECONNECT_LIMIT=t.SOCKET_IO_PING_CODE=t.SOCKET_IO_PATH=t.SOCKET_IO_PING_INTERVAL=t.DEFAULT_EVENT_SOURCE_OPTIONS=t.EMPTY_EVENT_HANDLERS=t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={},t.EMPTY_EVENT_HANDLERS={},t.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:t.EMPTY_EVENT_HANDLERS},t.SOCKET_IO_PING_INTERVAL=25e3,t.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",t.SOCKET_IO_PING_CODE="2",t.DEFAULT_RECONNECT_LIMIT=20,t.DEFAULT_RECONNECT_INTERVAL_MS=5e3,t.UNPARSABLE_JSON_OBJECT={},function(e){e[e.UNINSTANTIATED=-1]="UNINSTANTIATED",e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED"}(t.ReadyState||(t.ReadyState={})),t.isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,t.isEventSourceSupp
1orted=!t.isReactNative&&function(){try{return"EventSource"in globalThis}catch(e){return!1}}()},72646:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,c){function u(e){try{a(n.next(e))}catch(e){c(e)}}function s(e){try{a(n.throw(e))}catch(e){c(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(u,s)}a((n=n.apply(e,t||[])).next())})},c=this&&this.__generator||function(e,t){var r,n,o,c,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function s(c){return function(s){var a=[c,s];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useWebSocket=void 0;var s=r(12115),a=r(47650),i=r(69154),f=r(57500),l=r(4123),p=u(r(58575)),d=r(19989);t.useWebSocket=function(e,t,r){void 0===t&&(t=i.DEFAULT_OPTIONS),void 0===r&&(r=!0);var u=(0,s.useState)(null),S=u[0],v=u[1],b=(0,s.useState)({}),h=b[0],E=b[1],O=(0,s.useMemo)(function(){if(S)try{return JSON.parse(S.data)}catch(e){return i.UNPARSABLE_JSON_OBJECT}return null},[S]),y=(0,s.useRef)(null),_=(0,s.useRef)(null),N=(0,s.useRef)(function(){}),R=(0,s.useRef)(0),T=(0,s.useRef)([]),w=(0,s.useRef)(null),C=(0,s.useRef)(t);C.current=t;var I=y.current&&void 0!==h[y.current]?h[y.current]:null!==e&&!0===r?i.ReadyState.CONNECTING:i.ReadyState.UNINSTANTIATED,g=t.queryParams?JSON.stringify(t.queryParams):null,k=(0,s.useCallback)(function(e,t){var r;if(void 0===t&&(t=!0),i.isEventSourceSupported&&_.current instanceof EventSource)return void console.warn("Unable to send a message from an eventSource");(null==(r=_.current)?void 0:r.readyState)===i.ReadyState.OPEN?((0,d.assertIsWebSocket)(_.current,C.current.skipAssert),_.current.send(e)):t&&T.current.push(e)},[]),P=(0,s.useCallback)(function(e,t){void 0===t&&(t=!0),k(JSON.stringify(e),t)},[k]),A=(0,s.useCallback)(function(){return!0!==C.current.share||i.isEventSourceSupported&&_.current instanceof EventSource?_.current:(null===w.current&&_.current&&((0,d.assertIsWebSocket)(_.current,C.current.skipAssert),w.current=(0,p.default)(_.current,N)),w.current)},[]);return(0,s.useEffect)(function(){if(null!==e&&!0===r){var t,u=!1,s=!0,p=function(){return o(void 0,void 0,void 0,function(){var r,o,i;return c(this,function(c){switch(c.label){case 0:return r=y,[4,(0,l.getUrl)(e,C)];case 1:return r.current=c.sent(),o=function(e){u||(0,a.flushSync)(function(){return v(e)})},i=function(e){u||(0,a.flushSync)(function(){return E(function(t){var r;return n(n({},t),y.current&&((r={})[y.current]=e,r))})})},s&&(t=(0,f.createOrJoinSocket)(_,y.current,i,C,o,N,R,k)),[2]}})})};return N.current=function(){u||(w.current&&(w.current=null),null==t||t(),p())},p(),function(){u=!0,s=!1,w.current&&(w.current=null),null==t||t(),v(null)}}(null===e||!1===r)&&(R.current=0,E(function(e){var t;return n(n({},e),y.current&&((t={})[y.current]=i.ReadyState.CLOSED,t))}))},[e,r,g,k]),(0,s.useEffect)(function(){I===i.ReadyState.OPEN&&T.current.splice(0).forEac
1h(function(e){k(e)})},[I]),{sendMessage:k,sendJsonMessage:P,lastMessage:S,lastJsonMessage:O,readyState:I,getWebSocket:A}}},90988:(e,t,r)=>{var n=r(36702);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,c=e==e,u=n(e),s=void 0!==t,a=null===t,i=t==t,f=n(t);if(!a&&!f&&!u&&e>t||u&&s&&i&&!a&&!f||o&&s&&i||!r&&i||!c)return 1;if(!o&&!u&&!f&&e<t||f&&r&&c&&!o&&!u||a&&r&&c||!s&&c||!i)return -1}return 0}}}]); 2//# sourceMappingURL=9997-3e13b17eb15d95da.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.