vendor: 5,868 bytes, lines 1-2
1"use strict";(self.webpackChunkalitu_frontend=self.webpackChunkalitu_frontend||[]).push([[7733],{93331(t,r,e){e.r(r),e.d(r,{XM:()=>E,Nz:()=>A,LP:()=>N,Ld:()=>O,TB:()=>d});var n=e(24454);const o="function"==typeof ArrayBuffer,s=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===s.call(Blob),c="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===s.call(File);function a(t){return o&&(t instanceof ArrayBuffer||(t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(t))||i&&t instanceof Blob||c&&t instanceof File}function u(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,e=t.length;r<e;r++)if(u(t[r]))return!0;return!1}if(a(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return u(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&u(t[r]))return!0;return!1}function f(t){const r=[],e=t.data,n=t;return n.data=h(e,r),n.attachments=r.length,{packet:n,buffers:r}}function h(t,r,e){if(!t)return t;if(a(t)){const e={_placeholder:!0,num:r.length};return r.push(t),e}if(Array.isArray(t)){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=h(t[n],r);return e}if("object"==typeof t&&!(t instanceof Date)){if(t.toJSON&&"function"==typeof t.toJSON&&!e)return h(t.toJSON(),r,!0);const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=h(t[e],r));return n}return t}function l(t,r){return t.data=p(t.data,r),delete t.attachments,t}function p(t,r){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let e=0;e<t.length;e++)t[e]=p(t[e],r);else if("object"==typeof t)for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=p(t[e],r));return t}const y=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d=5;var N;!function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(N||(N={}));class A{constructor(t){this.replacer=t}encode(t){return t.type!==N.EVENT&&t.type!==N.ACK||!u(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===N.EVENT?N.BINARY_EVENT:N.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let r=""+t.type;return t.type!==N.BINARY_EVENT&&t.type!==N.BINARY_ACK||(r+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(r+=t.nsp+","),null!=t.id&&(r+=t.id),null!=t.data&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=f(t),e=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(e),n}}class E extends n.v{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof t?{reviver:t}:t)}add(t){let r;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const e=r.type===N.BINARY_EVENT;e||r.type===N.BINARY_ACK?(r.type=e?N.EVENT:N.ACK,this.reconstructor=new b(r)):super.emitReserved("decoded",r)}else{if(!a(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r))}}decodeString(t){let r=0;const e={type:Number(t.charAt(0))};if(void 0===N[e.type])throw new Error("unknown packet type "+e.type);if(e.type===N.BINARY_EVENT||e.type===N.BINARY_ACK){const n=r+1;for(;"-"!==t.charAt(++r)&&r!=t.length;);const o=t.substring(n,r);if(o!=Number(o)||"-"!==t.charAt(r))throw new Error("Illegal attachments");const s=Number(o);if(!C(s)||s<1)throw new Error("Illegal attachments");if(s>this.opts.maxAttachments)throw new Error("too many attachments");e.attachments=s}if("/"===t.charAt(r+1)){const n=r+1;for(;++r;){if(","===t.charAt(r))break;if(r===t.length)break}e.nsp=t.substring(n,r)}else e.nsp="/";const n=t.charAt(r+1);if(""!==n&&Number(n)==n){const n=r+1;for(;++r;){const e=t.charAt(r);if(null==e||Number(e)!=e){--r;break}if(r===t.length)break}e.id=Number(t.substring(n,r+1))}if(t.charAt(++r)){const n=this.tryParse(t.substr(r));if(!E.isPayloadValid(e.type,n))throw new Error("invalid payload");e.data=n}return e}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(t){return!1}}static isPayloadValid(t,r){switch(t){case N.CONNECT:return g(r);case N.DISCONNECT:return void 0===r;case N.CONNECT_ERROR:return"string"==typeof r||g(r);case N.EVENT:case N.BINARY_EVENT:return Array.isArray(r)&&("number"==typeof r[0]||"string"==typeof r[0]&&-1===y.indexOf(r[0]));case N.ACK:case N.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class b{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const t=l(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const C=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function O(t){return"string"==typeof t.nsp&&(void 0===(r=t.id)||C(r))&&function(t,r){switch(t){case N.CONNECT:return void 0===r||g(r);case N.DISCONNECT:return void 0===r;case N.EVENT:return Array.isArray(r)&&("number"==typeof r[0]||"string"==typeof r[0]&&-1===y.indexOf(r[0]));case N.ACK:return Array.isArray(r);case N.CONNECT_ERROR:return"string"==typeof r||g(r);default:return!1}}(t.type,t.data);var r}}}]); 2//# sourceMappingURL=npm.socket.io-parser-53b6f00fdfaae7b7caa6.bundle.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.