作者 宋国杰

sgj

@@ -80,14 +80,14 @@ @@ -80,14 +80,14 @@
80 80
81 .poster-img { 81 .poster-img {
82 border-radius: 16rpx; 82 border-radius: 16rpx;
83 - height: 700rpx; 83 + height: 630rpx;
  84 + width: 600rpx;
84 } 85 }
85 86
86 .btn-wrap { 87 .btn-wrap {
87 .save-btn { 88 .save-btn {
88 width: 600rpx; 89 width: 600rpx;
89 height: 72rpx; 90 height: 72rpx;
90 - margin-left: 20rpx;  
91 text-align: center; 91 text-align: center;
92 line-height: 72rpx; 92 line-height: 72rpx;
93 margin-top: 20rpx; 93 margin-top: 20rpx;
1 { 1 {
2 - "hash": "e1f86111",  
3 - "browserHash": "e5aba368", 2 + "hash": "65eb0560",
  3 + "browserHash": "a8e0fdec",
4 "optimized": { 4 "optimized": {
5 "uview-plus": { 5 "uview-plus": {
6 "src": "../../uview-plus/index.js", 6 "src": "../../uview-plus/index.js",
7 "file": "uview-plus.js", 7 "file": "uview-plus.js",
8 - "fileHash": "4fb9748b", 8 + "fileHash": "53a100fc",
9 "needsInterop": false 9 "needsInterop": false
10 }, 10 },
11 "event-source-polyfill": { 11 "event-source-polyfill": {
12 "src": "../../event-source-polyfill/src/eventsource.js", 12 "src": "../../event-source-polyfill/src/eventsource.js",
13 "file": "event-source-polyfill.js", 13 "file": "event-source-polyfill.js",
14 - "fileHash": "d472ec4b", 14 + "fileHash": "fea7ada0",
15 "needsInterop": true 15 "needsInterop": true
16 } 16 }
17 }, 17 },
  1 +var __getOwnPropNames = Object.getOwnPropertyNames;
  2 +var __commonJS = (cb, mod) => function __require() {
  3 + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  4 +};
  5 +
  6 +export {
  7 + __commonJS
  8 +};
  9 +//# sourceMappingURL=chunk-RSJERJUL.js.map
  1 +{
  2 + "version": 3,
  3 + "sources": [],
  4 + "sourcesContent": [],
  5 + "mappings": "",
  6 + "names": []
  7 +}
  1 +import {
  2 + __commonJS
  3 +} from "./chunk-RSJERJUL.js";
  4 +
  5 +// ../../../../uni/ai-dialogue/node_modules/event-source-polyfill/src/eventsource.js
  6 +var require_eventsource = __commonJS({
  7 + "../../../../uni/ai-dialogue/node_modules/event-source-polyfill/src/eventsource.js"(exports, module) {
  8 + (function(global) {
  9 + "use strict";
  10 + var setTimeout = global.setTimeout;
  11 + var clearTimeout = global.clearTimeout;
  12 + var XMLHttpRequest = global.XMLHttpRequest;
  13 + var XDomainRequest = global.XDomainRequest;
  14 + var ActiveXObject = global.ActiveXObject;
  15 + var NativeEventSource = global.EventSource;
  16 + var document = global.document;
  17 + var Promise2 = global.Promise;
  18 + var fetch = global.fetch;
  19 + var Response = global.Response;
  20 + var TextDecoder = global.TextDecoder;
  21 + var TextEncoder = global.TextEncoder;
  22 + var AbortController = global.AbortController;
  23 + if (typeof window !== "undefined" && typeof document !== "undefined" && !("readyState" in document) && document.body == null) {
  24 + document.readyState = "loading";
  25 + window.addEventListener("load", function(event) {
  26 + document.readyState = "complete";
  27 + }, false);
  28 + }
  29 + if (XMLHttpRequest == null && ActiveXObject != null) {
  30 + XMLHttpRequest = function() {
  31 + return new ActiveXObject("Microsoft.XMLHTTP");
  32 + };
  33 + }
  34 + if (Object.create == void 0) {
  35 + Object.create = function(C) {
  36 + function F() {
  37 + }
  38 + F.prototype = C;
  39 + return new F();
  40 + };
  41 + }
  42 + if (!Date.now) {
  43 + Date.now = function now() {
  44 + return (/* @__PURE__ */ new Date()).getTime();
  45 + };
  46 + }
  47 + if (AbortController == void 0) {
  48 + var originalFetch2 = fetch;
  49 + fetch = function(url, options) {
  50 + var signal = options.signal;
  51 + return originalFetch2(url, { headers: options.headers, credentials: options.credentials, cache: options.cache }).then(function(response) {
  52 + var reader = response.body.getReader();
  53 + signal._reader = reader;
  54 + if (signal._aborted) {
  55 + signal._reader.cancel();
  56 + }
  57 + return {
  58 + status: response.status,
  59 + statusText: response.statusText,
  60 + headers: response.headers,
  61 + body: {
  62 + getReader: function() {
  63 + return reader;
  64 + }
  65 + }
  66 + };
  67 + });
  68 + };
  69 + AbortController = function() {
  70 + this.signal = {
  71 + _reader: null,
  72 + _aborted: false
  73 + };
  74 + this.abort = function() {
  75 + if (this.signal._reader != null) {
  76 + this.signal._reader.cancel();
  77 + }
  78 + this.signal._aborted = true;
  79 + };
  80 + };
  81 + }
  82 + function TextDecoderPolyfill() {
  83 + this.bitsNeeded = 0;
  84 + this.codePoint = 0;
  85 + }
  86 + TextDecoderPolyfill.prototype.decode = function(octets) {
  87 + function valid(codePoint2, shift, octetsCount2) {
  88 + if (octetsCount2 === 1) {
  89 + return codePoint2 >= 128 >> shift && codePoint2 << shift <= 2047;
  90 + }
  91 + if (octetsCount2 === 2) {
  92 + return codePoint2 >= 2048 >> shift && codePoint2 << shift <= 55295 || codePoint2 >= 57344 >> shift && codePoint2 << shift <= 65535;
  93 + }
  94 + if (octetsCount2 === 3) {
  95 + return codePoint2 >= 65536 >> shift && codePoint2 << shift <= 1114111;
  96 + }
  97 + throw new Error();
  98 + }
  99 + function octetsCount(bitsNeeded2, codePoint2) {
  100 + if (bitsNeeded2 === 6 * 1) {
  101 + return codePoint2 >> 6 > 15 ? 3 : codePoint2 > 31 ? 2 : 1;
  102 + }
  103 + if (bitsNeeded2 === 6 * 2) {
  104 + return codePoint2 > 15 ? 3 : 2;
  105 + }
  106 + if (bitsNeeded2 === 6 * 3) {
  107 + return 3;
  108 + }
  109 + throw new Error();
  110 + }
  111 + var REPLACER = 65533;
  112 + var string = "";
  113 + var bitsNeeded = this.bitsNeeded;
  114 + var codePoint = this.codePoint;
  115 + for (var i = 0; i < octets.length; i += 1) {
  116 + var octet = octets[i];
  117 + if (bitsNeeded !== 0) {
  118 + if (octet < 128 || octet > 191 || !valid(codePoint << 6 | octet & 63, bitsNeeded - 6, octetsCount(bitsNeeded, codePoint))) {
  119 + bitsNeeded = 0;
  120 + codePoint = REPLACER;
  121 + string += String.fromCharCode(codePoint);
  122 + }
  123 + }
  124 + if (bitsNeeded === 0) {
  125 + if (octet >= 0 && octet <= 127) {
  126 + bitsNeeded = 0;
  127 + codePoint = octet;
  128 + } else if (octet >= 192 && octet <= 223) {
  129 + bitsNeeded = 6 * 1;
  130 + codePoint = octet & 31;
  131 + } else if (octet >= 224 && octet <= 239) {
  132 + bitsNeeded = 6 * 2;
  133 + codePoint = octet & 15;
  134 + } else if (octet >= 240 && octet <= 247) {
  135 + bitsNeeded = 6 * 3;
  136 + codePoint = octet & 7;
  137 + } else {
  138 + bitsNeeded = 0;
  139 + codePoint = REPLACER;
  140 + }
  141 + if (bitsNeeded !== 0 && !valid(codePoint, bitsNeeded, octetsCount(bitsNeeded, codePoint))) {
  142 + bitsNeeded = 0;
  143 + codePoint = REPLACER;
  144 + }
  145 + } else {
  146 + bitsNeeded -= 6;
  147 + codePoint = codePoint << 6 | octet & 63;
  148 + }
  149 + if (bitsNeeded === 0) {
  150 + if (codePoint <= 65535) {
  151 + string += String.fromCharCode(codePoint);
  152 + } else {
  153 + string += String.fromCharCode(55296 + (codePoint - 65535 - 1 >> 10));
  154 + string += String.fromCharCode(56320 + (codePoint - 65535 - 1 & 1023));
  155 + }
  156 + }
  157 + }
  158 + this.bitsNeeded = bitsNeeded;
  159 + this.codePoint = codePoint;
  160 + return string;
  161 + };
  162 + var supportsStreamOption = function() {
  163 + try {
  164 + return new TextDecoder().decode(new TextEncoder().encode("test"), { stream: true }) === "test";
  165 + } catch (error) {
  166 + console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + error);
  167 + }
  168 + return false;
  169 + };
  170 + if (TextDecoder == void 0 || TextEncoder == void 0 || !supportsStreamOption()) {
  171 + TextDecoder = TextDecoderPolyfill;
  172 + }
  173 + var k = function() {
  174 + };
  175 + function XHRWrapper(xhr) {
  176 + this.withCredentials = false;
  177 + this.readyState = 0;
  178 + this.status = 0;
  179 + this.statusText = "";
  180 + this.responseText = "";
  181 + this.onprogress = k;
  182 + this.onload = k;
  183 + this.onerror = k;
  184 + this.onreadystatechange = k;
  185 + this._contentType = "";
  186 + this._xhr = xhr;
  187 + this._sendTimeout = 0;
  188 + this._abort = k;
  189 + }
  190 + XHRWrapper.prototype.open = function(method, url) {
  191 + this._abort(true);
  192 + var that = this;
  193 + var xhr = this._xhr;
  194 + var state = 1;
  195 + var timeout = 0;
  196 + this._abort = function(silent) {
  197 + if (that._sendTimeout !== 0) {
  198 + clearTimeout(that._sendTimeout);
  199 + that._sendTimeout = 0;
  200 + }
  201 + if (state === 1 || state === 2 || state === 3) {
  202 + state = 4;
  203 + xhr.onload = k;
  204 + xhr.onerror = k;
  205 + xhr.onabort = k;
  206 + xhr.onprogress = k;
  207 + xhr.onreadystatechange = k;
  208 + xhr.abort();
  209 + if (timeout !== 0) {
  210 + clearTimeout(timeout);
  211 + timeout = 0;
  212 + }
  213 + if (!silent) {
  214 + that.readyState = 4;
  215 + that.onabort(null);
  216 + that.onreadystatechange();
  217 + }
  218 + }
  219 + state = 0;
  220 + };
  221 + var onStart = function() {
  222 + if (state === 1) {
  223 + var status = 0;
  224 + var statusText = "";
  225 + var contentType = void 0;
  226 + if (!("contentType" in xhr)) {
  227 + try {
  228 + status = xhr.status;
  229 + statusText = xhr.statusText;
  230 + contentType = xhr.getResponseHeader("Content-Type");
  231 + } catch (error) {
  232 + status = 0;
  233 + statusText = "";
  234 + contentType = void 0;
  235 + }
  236 + } else {
  237 + status = 200;
  238 + statusText = "OK";
  239 + contentType = xhr.contentType;
  240 + }
  241 + if (status !== 0) {
  242 + state = 2;
  243 + that.readyState = 2;
  244 + that.status = status;
  245 + that.statusText = statusText;
  246 + that._contentType = contentType;
  247 + that.onreadystatechange();
  248 + }
  249 + }
  250 + };
  251 + var onProgress = function() {
  252 + onStart();
  253 + if (state === 2 || state === 3) {
  254 + state = 3;
  255 + var responseText = "";
  256 + try {
  257 + responseText = xhr.responseText;
  258 + } catch (error) {
  259 + }
  260 + that.readyState = 3;
  261 + that.responseText = responseText;
  262 + that.onprogress();
  263 + }
  264 + };
  265 + var onFinish = function(type, event) {
  266 + if (event == null || event.preventDefault == null) {
  267 + event = {
  268 + preventDefault: k
  269 + };
  270 + }
  271 + onProgress();
  272 + if (state === 1 || state === 2 || state === 3) {
  273 + state = 4;
  274 + if (timeout !== 0) {
  275 + clearTimeout(timeout);
  276 + timeout = 0;
  277 + }
  278 + that.readyState = 4;
  279 + if (type === "load") {
  280 + that.onload(event);
  281 + } else if (type === "error") {
  282 + that.onerror(event);
  283 + } else if (type === "abort") {
  284 + that.onabort(event);
  285 + } else {
  286 + throw new TypeError();
  287 + }
  288 + that.onreadystatechange();
  289 + }
  290 + };
  291 + var onReadyStateChange = function(event) {
  292 + if (xhr != void 0) {
  293 + if (xhr.readyState === 4) {
  294 + if (!("onload" in xhr) || !("onerror" in xhr) || !("onabort" in xhr)) {
  295 + onFinish(xhr.responseText === "" ? "error" : "load", event);
  296 + }
  297 + } else if (xhr.readyState === 3) {
  298 + if (!("onprogress" in xhr)) {
  299 + onProgress();
  300 + }
  301 + } else if (xhr.readyState === 2) {
  302 + onStart();
  303 + }
  304 + }
  305 + };
  306 + var onTimeout = function() {
  307 + timeout = setTimeout(function() {
  308 + onTimeout();
  309 + }, 500);
  310 + if (xhr.readyState === 3) {
  311 + onProgress();
  312 + }
  313 + };
  314 + if ("onload" in xhr) {
  315 + xhr.onload = function(event) {
  316 + onFinish("load", event);
  317 + };
  318 + }
  319 + if ("onerror" in xhr) {
  320 + xhr.onerror = function(event) {
  321 + onFinish("error", event);
  322 + };
  323 + }
  324 + if ("onabort" in xhr) {
  325 + xhr.onabort = function(event) {
  326 + onFinish("abort", event);
  327 + };
  328 + }
  329 + if ("onprogress" in xhr) {
  330 + xhr.onprogress = onProgress;
  331 + }
  332 + if ("onreadystatechange" in xhr) {
  333 + xhr.onreadystatechange = function(event) {
  334 + onReadyStateChange(event);
  335 + };
  336 + }
  337 + if ("contentType" in xhr || !("ontimeout" in XMLHttpRequest.prototype)) {
  338 + url += (url.indexOf("?") === -1 ? "?" : "&") + "padding=true";
  339 + }
  340 + xhr.open(method, url, true);
  341 + if ("readyState" in xhr) {
  342 + timeout = setTimeout(function() {
  343 + onTimeout();
  344 + }, 0);
  345 + }
  346 + };
  347 + XHRWrapper.prototype.abort = function() {
  348 + this._abort(false);
  349 + };
  350 + XHRWrapper.prototype.getResponseHeader = function(name) {
  351 + return this._contentType;
  352 + };
  353 + XHRWrapper.prototype.setRequestHeader = function(name, value) {
  354 + var xhr = this._xhr;
  355 + if ("setRequestHeader" in xhr) {
  356 + xhr.setRequestHeader(name, value);
  357 + }
  358 + };
  359 + XHRWrapper.prototype.getAllResponseHeaders = function() {
  360 + return this._xhr.getAllResponseHeaders != void 0 ? this._xhr.getAllResponseHeaders() || "" : "";
  361 + };
  362 + XHRWrapper.prototype.send = function() {
  363 + if ((!("ontimeout" in XMLHttpRequest.prototype) || !("sendAsBinary" in XMLHttpRequest.prototype) && !("mozAnon" in XMLHttpRequest.prototype)) && document != void 0 && document.readyState != void 0 && document.readyState !== "complete") {
  364 + var that = this;
  365 + that._sendTimeout = setTimeout(function() {
  366 + that._sendTimeout = 0;
  367 + that.send();
  368 + }, 4);
  369 + return;
  370 + }
  371 + var xhr = this._xhr;
  372 + if ("withCredentials" in xhr) {
  373 + xhr.withCredentials = this.withCredentials;
  374 + }
  375 + try {
  376 + xhr.send(void 0);
  377 + } catch (error1) {
  378 + throw error1;
  379 + }
  380 + };
  381 + function toLowerCase(name) {
  382 + return name.replace(/[A-Z]/g, function(c) {
  383 + return String.fromCharCode(c.charCodeAt(0) + 32);
  384 + });
  385 + }
  386 + function HeadersPolyfill(all) {
  387 + var map = /* @__PURE__ */ Object.create(null);
  388 + var array = all.split("\r\n");
  389 + for (var i = 0; i < array.length; i += 1) {
  390 + var line = array[i];
  391 + var parts = line.split(": ");
  392 + var name = parts.shift();
  393 + var value = parts.join(": ");
  394 + map[toLowerCase(name)] = value;
  395 + }
  396 + this._map = map;
  397 + }
  398 + HeadersPolyfill.prototype.get = function(name) {
  399 + return this._map[toLowerCase(name)];
  400 + };
  401 + if (XMLHttpRequest != null && XMLHttpRequest.HEADERS_RECEIVED == null) {
  402 + XMLHttpRequest.HEADERS_RECEIVED = 2;
  403 + }
  404 + function XHRTransport() {
  405 + }
  406 + XHRTransport.prototype.open = function(xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {
  407 + xhr.open("GET", url);
  408 + var offset = 0;
  409 + xhr.onprogress = function() {
  410 + var responseText = xhr.responseText;
  411 + var chunk = responseText.slice(offset);
  412 + offset += chunk.length;
  413 + onProgressCallback(chunk);
  414 + };
  415 + xhr.onerror = function(event) {
  416 + event.preventDefault();
  417 + onFinishCallback(new Error("NetworkError"));
  418 + };
  419 + xhr.onload = function() {
  420 + onFinishCallback(null);
  421 + };
  422 + xhr.onabort = function() {
  423 + onFinishCallback(null);
  424 + };
  425 + xhr.onreadystatechange = function() {
  426 + if (xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED) {
  427 + var status = xhr.status;
  428 + var statusText = xhr.statusText;
  429 + var contentType = xhr.getResponseHeader("Content-Type");
  430 + var headers2 = xhr.getAllResponseHeaders();
  431 + onStartCallback(status, statusText, contentType, new HeadersPolyfill(headers2));
  432 + }
  433 + };
  434 + xhr.withCredentials = withCredentials;
  435 + for (var name in headers) {
  436 + if (Object.prototype.hasOwnProperty.call(headers, name)) {
  437 + xhr.setRequestHeader(name, headers[name]);
  438 + }
  439 + }
  440 + xhr.send();
  441 + return xhr;
  442 + };
  443 + function HeadersWrapper(headers) {
  444 + this._headers = headers;
  445 + }
  446 + HeadersWrapper.prototype.get = function(name) {
  447 + return this._headers.get(name);
  448 + };
  449 + function FetchTransport() {
  450 + }
  451 + FetchTransport.prototype.open = function(xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {
  452 + var reader = null;
  453 + var controller = new AbortController();
  454 + var signal = controller.signal;
  455 + var textDecoder = new TextDecoder();
  456 + fetch(url, {
  457 + headers,
  458 + credentials: withCredentials ? "include" : "same-origin",
  459 + signal,
  460 + cache: "no-store"
  461 + }).then(function(response) {
  462 + reader = response.body.getReader();
  463 + onStartCallback(response.status, response.statusText, response.headers.get("Content-Type"), new HeadersWrapper(response.headers));
  464 + return new Promise2(function(resolve, reject) {
  465 + var readNextChunk = function() {
  466 + reader.read().then(function(result) {
  467 + if (result.done) {
  468 + resolve(void 0);
  469 + } else {
  470 + var chunk = textDecoder.decode(result.value, { stream: true });
  471 + onProgressCallback(chunk);
  472 + readNextChunk();
  473 + }
  474 + })["catch"](function(error) {
  475 + reject(error);
  476 + });
  477 + };
  478 + readNextChunk();
  479 + });
  480 + })["catch"](function(error) {
  481 + if (error.name === "AbortError") {
  482 + return void 0;
  483 + } else {
  484 + return error;
  485 + }
  486 + }).then(function(error) {
  487 + onFinishCallback(error);
  488 + });
  489 + return {
  490 + abort: function() {
  491 + if (reader != null) {
  492 + reader.cancel();
  493 + }
  494 + controller.abort();
  495 + }
  496 + };
  497 + };
  498 + function EventTarget() {
  499 + this._listeners = /* @__PURE__ */ Object.create(null);
  500 + }
  501 + function throwError(e) {
  502 + setTimeout(function() {
  503 + throw e;
  504 + }, 0);
  505 + }
  506 + EventTarget.prototype.dispatchEvent = function(event) {
  507 + event.target = this;
  508 + var typeListeners = this._listeners[event.type];
  509 + if (typeListeners != void 0) {
  510 + var length = typeListeners.length;
  511 + for (var i = 0; i < length; i += 1) {
  512 + var listener = typeListeners[i];
  513 + try {
  514 + if (typeof listener.handleEvent === "function") {
  515 + listener.handleEvent(event);
  516 + } else {
  517 + listener.call(this, event);
  518 + }
  519 + } catch (e) {
  520 + throwError(e);
  521 + }
  522 + }
  523 + }
  524 + };
  525 + EventTarget.prototype.addEventListener = function(type, listener) {
  526 + type = String(type);
  527 + var listeners = this._listeners;
  528 + var typeListeners = listeners[type];
  529 + if (typeListeners == void 0) {
  530 + typeListeners = [];
  531 + listeners[type] = typeListeners;
  532 + }
  533 + var found = false;
  534 + for (var i = 0; i < typeListeners.length; i += 1) {
  535 + if (typeListeners[i] === listener) {
  536 + found = true;
  537 + }
  538 + }
  539 + if (!found) {
  540 + typeListeners.push(listener);
  541 + }
  542 + };
  543 + EventTarget.prototype.removeEventListener = function(type, listener) {
  544 + type = String(type);
  545 + var listeners = this._listeners;
  546 + var typeListeners = listeners[type];
  547 + if (typeListeners != void 0) {
  548 + var filtered = [];
  549 + for (var i = 0; i < typeListeners.length; i += 1) {
  550 + if (typeListeners[i] !== listener) {
  551 + filtered.push(typeListeners[i]);
  552 + }
  553 + }
  554 + if (filtered.length === 0) {
  555 + delete listeners[type];
  556 + } else {
  557 + listeners[type] = filtered;
  558 + }
  559 + }
  560 + };
  561 + function Event(type) {
  562 + this.type = type;
  563 + this.target = void 0;
  564 + }
  565 + function MessageEvent(type, options) {
  566 + Event.call(this, type);
  567 + this.data = options.data;
  568 + this.lastEventId = options.lastEventId;
  569 + }
  570 + MessageEvent.prototype = Object.create(Event.prototype);
  571 + function ConnectionEvent(type, options) {
  572 + Event.call(this, type);
  573 + this.status = options.status;
  574 + this.statusText = options.statusText;
  575 + this.headers = options.headers;
  576 + }
  577 + ConnectionEvent.prototype = Object.create(Event.prototype);
  578 + function ErrorEvent(type, options) {
  579 + Event.call(this, type);
  580 + this.error = options.error;
  581 + }
  582 + ErrorEvent.prototype = Object.create(Event.prototype);
  583 + var WAITING = -1;
  584 + var CONNECTING = 0;
  585 + var OPEN = 1;
  586 + var CLOSED = 2;
  587 + var AFTER_CR = -1;
  588 + var FIELD_START = 0;
  589 + var FIELD = 1;
  590 + var VALUE_START = 2;
  591 + var VALUE = 3;
  592 + var contentTypeRegExp = /^text\/event\-stream(;.*)?$/i;
  593 + var MINIMUM_DURATION = 1e3;
  594 + var MAXIMUM_DURATION = 18e6;
  595 + var parseDuration = function(value, def) {
  596 + var n = value == null ? def : parseInt(value, 10);
  597 + if (n !== n) {
  598 + n = def;
  599 + }
  600 + return clampDuration(n);
  601 + };
  602 + var clampDuration = function(n) {
  603 + return Math.min(Math.max(n, MINIMUM_DURATION), MAXIMUM_DURATION);
  604 + };
  605 + var fire = function(that, f, event) {
  606 + try {
  607 + if (typeof f === "function") {
  608 + f.call(that, event);
  609 + }
  610 + } catch (e) {
  611 + throwError(e);
  612 + }
  613 + };
  614 + function EventSourcePolyfill(url, options) {
  615 + EventTarget.call(this);
  616 + options = options || {};
  617 + this.onopen = void 0;
  618 + this.onmessage = void 0;
  619 + this.onerror = void 0;
  620 + this.url = void 0;
  621 + this.readyState = void 0;
  622 + this.withCredentials = void 0;
  623 + this.headers = void 0;
  624 + this._close = void 0;
  625 + start(this, url, options);
  626 + }
  627 + function getBestXHRTransport() {
  628 + return XMLHttpRequest != void 0 && "withCredentials" in XMLHttpRequest.prototype || XDomainRequest == void 0 ? new XMLHttpRequest() : new XDomainRequest();
  629 + }
  630 + var isFetchSupported = fetch != void 0 && Response != void 0 && "body" in Response.prototype;
  631 + function start(es, url, options) {
  632 + url = String(url);
  633 + var withCredentials = Boolean(options.withCredentials);
  634 + var lastEventIdQueryParameterName = options.lastEventIdQueryParameterName || "lastEventId";
  635 + var initialRetry = clampDuration(1e3);
  636 + var heartbeatTimeout = parseDuration(options.heartbeatTimeout, 45e3);
  637 + var lastEventId = "";
  638 + var retry = initialRetry;
  639 + var wasActivity = false;
  640 + var textLength = 0;
  641 + var headers = options.headers || {};
  642 + var TransportOption = options.Transport;
  643 + var xhr = isFetchSupported && TransportOption == void 0 ? void 0 : new XHRWrapper(TransportOption != void 0 ? new TransportOption() : getBestXHRTransport());
  644 + var transport = TransportOption != null && typeof TransportOption !== "string" ? new TransportOption() : xhr == void 0 ? new FetchTransport() : new XHRTransport();
  645 + var abortController = void 0;
  646 + var timeout = 0;
  647 + var currentState = WAITING;
  648 + var dataBuffer = "";
  649 + var lastEventIdBuffer = "";
  650 + var eventTypeBuffer = "";
  651 + var textBuffer = "";
  652 + var state = FIELD_START;
  653 + var fieldStart = 0;
  654 + var valueStart = 0;
  655 + var onStart = function(status, statusText, contentType, headers2) {
  656 + if (currentState === CONNECTING) {
  657 + if (status === 200 && contentType != void 0 && contentTypeRegExp.test(contentType)) {
  658 + currentState = OPEN;
  659 + wasActivity = Date.now();
  660 + retry = initialRetry;
  661 + es.readyState = OPEN;
  662 + var event = new ConnectionEvent("open", {
  663 + status,
  664 + statusText,
  665 + headers: headers2
  666 + });
  667 + es.dispatchEvent(event);
  668 + fire(es, es.onopen, event);
  669 + } else {
  670 + var message = "";
  671 + if (status !== 200) {
  672 + if (statusText) {
  673 + statusText = statusText.replace(/\s+/g, " ");
  674 + }
  675 + message = "EventSource's response has a status " + status + " " + statusText + " that is not 200. Aborting the connection.";
  676 + } else {
  677 + message = "EventSource's response has a Content-Type specifying an unsupported type: " + (contentType == void 0 ? "-" : contentType.replace(/\s+/g, " ")) + ". Aborting the connection.";
  678 + }
  679 + close();
  680 + var event = new ConnectionEvent("error", {
  681 + status,
  682 + statusText,
  683 + headers: headers2
  684 + });
  685 + es.dispatchEvent(event);
  686 + fire(es, es.onerror, event);
  687 + console.error(message);
  688 + }
  689 + }
  690 + };
  691 + var onProgress = function(textChunk) {
  692 + if (currentState === OPEN) {
  693 + var n = -1;
  694 + for (var i = 0; i < textChunk.length; i += 1) {
  695 + var c = textChunk.charCodeAt(i);
  696 + if (c === "\n".charCodeAt(0) || c === "\r".charCodeAt(0)) {
  697 + n = i;
  698 + }
  699 + }
  700 + var chunk = (n !== -1 ? textBuffer : "") + textChunk.slice(0, n + 1);
  701 + textBuffer = (n === -1 ? textBuffer : "") + textChunk.slice(n + 1);
  702 + if (textChunk !== "") {
  703 + wasActivity = Date.now();
  704 + textLength += textChunk.length;
  705 + }
  706 + for (var position = 0; position < chunk.length; position += 1) {
  707 + var c = chunk.charCodeAt(position);
  708 + if (state === AFTER_CR && c === "\n".charCodeAt(0)) {
  709 + state = FIELD_START;
  710 + } else {
  711 + if (state === AFTER_CR) {
  712 + state = FIELD_START;
  713 + }
  714 + if (c === "\r".charCodeAt(0) || c === "\n".charCodeAt(0)) {
  715 + if (state !== FIELD_START) {
  716 + if (state === FIELD) {
  717 + valueStart = position + 1;
  718 + }
  719 + var field = chunk.slice(fieldStart, valueStart - 1);
  720 + var value = chunk.slice(valueStart + (valueStart < position && chunk.charCodeAt(valueStart) === " ".charCodeAt(0) ? 1 : 0), position);
  721 + if (field === "data") {
  722 + dataBuffer += "\n";
  723 + dataBuffer += value;
  724 + } else if (field === "id") {
  725 + lastEventIdBuffer = value;
  726 + } else if (field === "event") {
  727 + eventTypeBuffer = value;
  728 + } else if (field === "retry") {
  729 + initialRetry = parseDuration(value, initialRetry);
  730 + retry = initialRetry;
  731 + } else if (field === "heartbeatTimeout") {
  732 + heartbeatTimeout = parseDuration(value, heartbeatTimeout);
  733 + if (timeout !== 0) {
  734 + clearTimeout(timeout);
  735 + timeout = setTimeout(function() {
  736 + onTimeout();
  737 + }, heartbeatTimeout);
  738 + }
  739 + }
  740 + }
  741 + if (state === FIELD_START) {
  742 + if (dataBuffer !== "") {
  743 + lastEventId = lastEventIdBuffer;
  744 + if (eventTypeBuffer === "") {
  745 + eventTypeBuffer = "message";
  746 + }
  747 + var event = new MessageEvent(eventTypeBuffer, {
  748 + data: dataBuffer.slice(1),
  749 + lastEventId: lastEventIdBuffer
  750 + });
  751 + es.dispatchEvent(event);
  752 + if (eventTypeBuffer === "open") {
  753 + fire(es, es.onopen, event);
  754 + } else if (eventTypeBuffer === "message") {
  755 + fire(es, es.onmessage, event);
  756 + } else if (eventTypeBuffer === "error") {
  757 + fire(es, es.onerror, event);
  758 + }
  759 + if (currentState === CLOSED) {
  760 + return;
  761 + }
  762 + }
  763 + dataBuffer = "";
  764 + eventTypeBuffer = "";
  765 + }
  766 + state = c === "\r".charCodeAt(0) ? AFTER_CR : FIELD_START;
  767 + } else {
  768 + if (state === FIELD_START) {
  769 + fieldStart = position;
  770 + state = FIELD;
  771 + }
  772 + if (state === FIELD) {
  773 + if (c === ":".charCodeAt(0)) {
  774 + valueStart = position + 1;
  775 + state = VALUE_START;
  776 + }
  777 + } else if (state === VALUE_START) {
  778 + state = VALUE;
  779 + }
  780 + }
  781 + }
  782 + }
  783 + }
  784 + };
  785 + var onFinish = function(error) {
  786 + if (currentState === OPEN || currentState === CONNECTING) {
  787 + currentState = WAITING;
  788 + if (timeout !== 0) {
  789 + clearTimeout(timeout);
  790 + timeout = 0;
  791 + }
  792 + timeout = setTimeout(function() {
  793 + onTimeout();
  794 + }, retry);
  795 + retry = clampDuration(Math.min(initialRetry * 16, retry * 2));
  796 + es.readyState = CONNECTING;
  797 + var event = new ErrorEvent("error", { error });
  798 + es.dispatchEvent(event);
  799 + fire(es, es.onerror, event);
  800 + if (error != void 0) {
  801 + console.error(error);
  802 + }
  803 + }
  804 + };
  805 + var close = function() {
  806 + currentState = CLOSED;
  807 + if (abortController != void 0) {
  808 + abortController.abort();
  809 + abortController = void 0;
  810 + }
  811 + if (timeout !== 0) {
  812 + clearTimeout(timeout);
  813 + timeout = 0;
  814 + }
  815 + es.readyState = CLOSED;
  816 + };
  817 + var onTimeout = function() {
  818 + timeout = 0;
  819 + if (currentState !== WAITING) {
  820 + if (!wasActivity && abortController != void 0) {
  821 + onFinish(new Error("No activity within " + heartbeatTimeout + " milliseconds. " + (currentState === CONNECTING ? "No response received." : textLength + " chars received.") + " Reconnecting."));
  822 + if (abortController != void 0) {
  823 + abortController.abort();
  824 + abortController = void 0;
  825 + }
  826 + } else {
  827 + var nextHeartbeat = Math.max((wasActivity || Date.now()) + heartbeatTimeout - Date.now(), 1);
  828 + wasActivity = false;
  829 + timeout = setTimeout(function() {
  830 + onTimeout();
  831 + }, nextHeartbeat);
  832 + }
  833 + return;
  834 + }
  835 + wasActivity = false;
  836 + textLength = 0;
  837 + timeout = setTimeout(function() {
  838 + onTimeout();
  839 + }, heartbeatTimeout);
  840 + currentState = CONNECTING;
  841 + dataBuffer = "";
  842 + eventTypeBuffer = "";
  843 + lastEventIdBuffer = lastEventId;
  844 + textBuffer = "";
  845 + fieldStart = 0;
  846 + valueStart = 0;
  847 + state = FIELD_START;
  848 + var requestURL = url;
  849 + if (url.slice(0, 5) !== "data:" && url.slice(0, 5) !== "blob:") {
  850 + if (lastEventId !== "") {
  851 + var i = url.indexOf("?");
  852 + requestURL = i === -1 ? url : url.slice(0, i + 1) + url.slice(i + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(p, paramName) {
  853 + return paramName === lastEventIdQueryParameterName ? "" : p;
  854 + });
  855 + requestURL += (url.indexOf("?") === -1 ? "?" : "&") + lastEventIdQueryParameterName + "=" + encodeURIComponent(lastEventId);
  856 + }
  857 + }
  858 + var withCredentials2 = es.withCredentials;
  859 + var requestHeaders = {};
  860 + requestHeaders["Accept"] = "text/event-stream";
  861 + var headers2 = es.headers;
  862 + if (headers2 != void 0) {
  863 + for (var name in headers2) {
  864 + if (Object.prototype.hasOwnProperty.call(headers2, name)) {
  865 + requestHeaders[name] = headers2[name];
  866 + }
  867 + }
  868 + }
  869 + try {
  870 + abortController = transport.open(xhr, onStart, onProgress, onFinish, requestURL, withCredentials2, requestHeaders);
  871 + } catch (error) {
  872 + close();
  873 + throw error;
  874 + }
  875 + };
  876 + es.url = url;
  877 + es.readyState = CONNECTING;
  878 + es.withCredentials = withCredentials;
  879 + es.headers = headers;
  880 + es._close = close;
  881 + onTimeout();
  882 + }
  883 + EventSourcePolyfill.prototype = Object.create(EventTarget.prototype);
  884 + EventSourcePolyfill.prototype.CONNECTING = CONNECTING;
  885 + EventSourcePolyfill.prototype.OPEN = OPEN;
  886 + EventSourcePolyfill.prototype.CLOSED = CLOSED;
  887 + EventSourcePolyfill.prototype.close = function() {
  888 + this._close();
  889 + };
  890 + EventSourcePolyfill.CONNECTING = CONNECTING;
  891 + EventSourcePolyfill.OPEN = OPEN;
  892 + EventSourcePolyfill.CLOSED = CLOSED;
  893 + EventSourcePolyfill.prototype.withCredentials = void 0;
  894 + var R = NativeEventSource;
  895 + if (XMLHttpRequest != void 0 && (NativeEventSource == void 0 || !("withCredentials" in NativeEventSource.prototype))) {
  896 + R = EventSourcePolyfill;
  897 + }
  898 + (function(factory) {
  899 + if (typeof module === "object" && typeof module.exports === "object") {
  900 + var v = factory(exports);
  901 + if (v !== void 0)
  902 + module.exports = v;
  903 + } else if (typeof define === "function" && define.amd) {
  904 + define(["exports"], factory);
  905 + } else {
  906 + factory(global);
  907 + }
  908 + })(function(exports2) {
  909 + exports2.EventSourcePolyfill = EventSourcePolyfill;
  910 + exports2.NativeEventSource = NativeEventSource;
  911 + exports2.EventSource = R;
  912 + });
  913 + })(typeof globalThis === "undefined" ? typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : exports : globalThis);
  914 + }
  915 +});
  916 +export default require_eventsource();
  917 +/*! Bundled license information:
  918 +
  919 +event-source-polyfill/src/eventsource.js:
  920 + (** @license
  921 + * eventsource.js
  922 + * Available under MIT License (MIT)
  923 + * https://github.com/Yaffle/EventSource/
  924 + *)
  925 +*/
  926 +//# sourceMappingURL=event-source-polyfill.js.map
  1 +{
  2 + "version": 3,
  3 + "sources": ["../../event-source-polyfill/src/eventsource.js"],
  4 + "sourcesContent": ["/** @license\r\n * eventsource.js\r\n * Available under MIT License (MIT)\r\n * https://github.com/Yaffle/EventSource/\r\n */\r\n\r\n/*jslint indent: 2, vars: true, plusplus: true */\r\n/*global setTimeout, clearTimeout */\r\n\r\n(function (global) {\r\n \"use strict\";\r\n\r\n var setTimeout = global.setTimeout;\r\n var clearTimeout = global.clearTimeout;\r\n var XMLHttpRequest = global.XMLHttpRequest;\r\n var XDomainRequest = global.XDomainRequest;\r\n var ActiveXObject = global.ActiveXObject;\r\n var NativeEventSource = global.EventSource;\r\n\r\n var document = global.document;\r\n var Promise = global.Promise;\r\n var fetch = global.fetch;\r\n var Response = global.Response;\r\n var TextDecoder = global.TextDecoder;\r\n var TextEncoder = global.TextEncoder;\r\n var AbortController = global.AbortController;\r\n\r\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\" && !(\"readyState\" in document) && document.body == null) { // Firefox 2\r\n document.readyState = \"loading\";\r\n window.addEventListener(\"load\", function (event) {\r\n document.readyState = \"complete\";\r\n }, false);\r\n }\r\n\r\n if (XMLHttpRequest == null && ActiveXObject != null) { // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6\r\n XMLHttpRequest = function () {\r\n return new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n };\r\n }\r\n\r\n if (Object.create == undefined) {\r\n Object.create = function (C) {\r\n function F(){}\r\n F.prototype = C;\r\n return new F();\r\n };\r\n }\r\n\r\n if (!Date.now) {\r\n Date.now = function now() {\r\n return new Date().getTime();\r\n };\r\n }\r\n\r\n // see #118 (Promise#finally with polyfilled Promise)\r\n // see #123 (data URLs crash Edge)\r\n // see #125 (CSP violations)\r\n // see pull/#138\r\n // => No way to polyfill Promise#finally\r\n\r\n if (AbortController == undefined) {\r\n var originalFetch2 = fetch;\r\n fetch = function (url, options) {\r\n var signal = options.signal;\r\n return originalFetch2(url, {headers: options.headers, credentials: options.credentials, cache: options.cache}).then(function (response) {\r\n var reader = response.body.getReader();\r\n signal._reader = reader;\r\n if (signal._aborted) {\r\n signal._reader.cancel();\r\n }\r\n return {\r\n status: response.status,\r\n statusText: response.statusText,\r\n headers: response.headers,\r\n body: {\r\n getReader: function () {\r\n return reader;\r\n }\r\n }\r\n };\r\n });\r\n };\r\n AbortController = function () {\r\n this.signal = {\r\n _reader: null,\r\n _aborted: false\r\n };\r\n this.abort = function () {\r\n if (this.signal._reader != null) {\r\n this.signal._reader.cancel();\r\n }\r\n this.signal._aborted = true;\r\n };\r\n };\r\n }\r\n\r\n function TextDecoderPolyfill() {\r\n this.bitsNeeded = 0;\r\n this.codePoint = 0;\r\n }\r\n\r\n TextDecoderPolyfill.prototype.decode = function (octets) {\r\n function valid(codePoint, shift, octetsCount) {\r\n if (octetsCount === 1) {\r\n return codePoint >= 0x0080 >> shift && codePoint << shift <= 0x07FF;\r\n }\r\n if (octetsCount === 2) {\r\n return codePoint >= 0x0800 >> shift && codePoint << shift <= 0xD7FF || codePoint >= 0xE000 >> shift && codePoint << shift <= 0xFFFF;\r\n }\r\n if (octetsCount === 3) {\r\n return codePoint >= 0x010000 >> shift && codePoint << shift <= 0x10FFFF;\r\n }\r\n throw new Error();\r\n }\r\n function octetsCount(bitsNeeded, codePoint) {\r\n if (bitsNeeded === 6 * 1) {\r\n return codePoint >> 6 > 15 ? 3 : codePoint > 31 ? 2 : 1;\r\n }\r\n if (bitsNeeded === 6 * 2) {\r\n return codePoint > 15 ? 3 : 2;\r\n }\r\n if (bitsNeeded === 6 * 3) {\r\n return 3;\r\n }\r\n throw new Error();\r\n }\r\n var REPLACER = 0xFFFD;\r\n var string = \"\";\r\n var bitsNeeded = this.bitsNeeded;\r\n var codePoint = this.codePoint;\r\n for (var i = 0; i < octets.length; i += 1) {\r\n var octet = octets[i];\r\n if (bitsNeeded !== 0) {\r\n if (octet < 128 || octet > 191 || !valid(codePoint << 6 | octet & 63, bitsNeeded - 6, octetsCount(bitsNeeded, codePoint))) {\r\n bitsNeeded = 0;\r\n codePoint = REPLACER;\r\n string += String.fromCharCode(codePoint);\r\n }\r\n }\r\n if (bitsNeeded === 0) {\r\n if (octet >= 0 && octet <= 127) {\r\n bitsNeeded = 0;\r\n codePoint = octet;\r\n } else if (octet >= 192 && octet <= 223) {\r\n bitsNeeded = 6 * 1;\r\n codePoint = octet & 31;\r\n } else if (octet >= 224 && octet <= 239) {\r\n bitsNeeded = 6 * 2;\r\n codePoint = octet & 15;\r\n } else if (octet >= 240 && octet <= 247) {\r\n bitsNeeded = 6 * 3;\r\n codePoint = octet & 7;\r\n } else {\r\n bitsNeeded = 0;\r\n codePoint = REPLACER;\r\n }\r\n if (bitsNeeded !== 0 && !valid(codePoint, bitsNeeded, octetsCount(bitsNeeded, codePoint))) {\r\n bitsNeeded = 0;\r\n codePoint = REPLACER;\r\n }\r\n } else {\r\n bitsNeeded -= 6;\r\n codePoint = codePoint << 6 | octet & 63;\r\n }\r\n if (bitsNeeded === 0) {\r\n if (codePoint <= 0xFFFF) {\r\n string += String.fromCharCode(codePoint);\r\n } else {\r\n string += String.fromCharCode(0xD800 + (codePoint - 0xFFFF - 1 >> 10));\r\n string += String.fromCharCode(0xDC00 + (codePoint - 0xFFFF - 1 & 0x3FF));\r\n }\r\n }\r\n }\r\n this.bitsNeeded = bitsNeeded;\r\n this.codePoint = codePoint;\r\n return string;\r\n };\r\n\r\n // Firefox < 38 throws an error with stream option\r\n var supportsStreamOption = function () {\r\n try {\r\n return new TextDecoder().decode(new TextEncoder().encode(\"test\"), {stream: true}) === \"test\";\r\n } catch (error) {\r\n console.debug(\"TextDecoder does not support streaming option. Using polyfill instead: \" + error);\r\n }\r\n return false;\r\n };\r\n\r\n // IE, Edge\r\n if (TextDecoder == undefined || TextEncoder == undefined || !supportsStreamOption()) {\r\n TextDecoder = TextDecoderPolyfill;\r\n }\r\n\r\n var k = function () {\r\n };\r\n\r\n function XHRWrapper(xhr) {\r\n this.withCredentials = false;\r\n this.readyState = 0;\r\n this.status = 0;\r\n this.statusText = \"\";\r\n this.responseText = \"\";\r\n this.onprogress = k;\r\n this.onload = k;\r\n this.onerror = k;\r\n this.onreadystatechange = k;\r\n this._contentType = \"\";\r\n this._xhr = xhr;\r\n this._sendTimeout = 0;\r\n this._abort = k;\r\n }\r\n\r\n XHRWrapper.prototype.open = function (method, url) {\r\n this._abort(true);\r\n\r\n var that = this;\r\n var xhr = this._xhr;\r\n var state = 1;\r\n var timeout = 0;\r\n\r\n this._abort = function (silent) {\r\n if (that._sendTimeout !== 0) {\r\n clearTimeout(that._sendTimeout);\r\n that._sendTimeout = 0;\r\n }\r\n if (state === 1 || state === 2 || state === 3) {\r\n state = 4;\r\n xhr.onload = k;\r\n xhr.onerror = k;\r\n xhr.onabort = k;\r\n xhr.onprogress = k;\r\n xhr.onreadystatechange = k;\r\n // IE 8 - 9: XDomainRequest#abort() does not fire any event\r\n // Opera < 10: XMLHttpRequest#abort() does not fire any event\r\n xhr.abort();\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n if (!silent) {\r\n that.readyState = 4;\r\n that.onabort(null);\r\n that.onreadystatechange();\r\n }\r\n }\r\n state = 0;\r\n };\r\n\r\n var onStart = function () {\r\n if (state === 1) {\r\n //state = 2;\r\n var status = 0;\r\n var statusText = \"\";\r\n var contentType = undefined;\r\n if (!(\"contentType\" in xhr)) {\r\n try {\r\n status = xhr.status;\r\n statusText = xhr.statusText;\r\n contentType = xhr.getResponseHeader(\"Content-Type\");\r\n } catch (error) {\r\n // IE < 10 throws exception for `xhr.status` when xhr.readyState === 2 || xhr.readyState === 3\r\n // Opera < 11 throws exception for `xhr.status` when xhr.readyState === 2\r\n // https://bugs.webkit.org/show_bug.cgi?id=29121\r\n status = 0;\r\n statusText = \"\";\r\n contentType = undefined;\r\n // Firefox < 14, Chrome ?, Safari ?\r\n // https://bugs.webkit.org/show_bug.cgi?id=29658\r\n // https://bugs.webkit.org/show_bug.cgi?id=77854\r\n }\r\n } else {\r\n status = 200;\r\n statusText = \"OK\";\r\n contentType = xhr.contentType;\r\n }\r\n if (status !== 0) {\r\n state = 2;\r\n that.readyState = 2;\r\n that.status = status;\r\n that.statusText = statusText;\r\n that._contentType = contentType;\r\n that.onreadystatechange();\r\n }\r\n }\r\n };\r\n var onProgress = function () {\r\n onStart();\r\n if (state === 2 || state === 3) {\r\n state = 3;\r\n var responseText = \"\";\r\n try {\r\n responseText = xhr.responseText;\r\n } catch (error) {\r\n // IE 8 - 9 with XMLHttpRequest\r\n }\r\n that.readyState = 3;\r\n that.responseText = responseText;\r\n that.onprogress();\r\n }\r\n };\r\n var onFinish = function (type, event) {\r\n if (event == null || event.preventDefault == null) {\r\n event = {\r\n preventDefault: k\r\n };\r\n }\r\n // Firefox 52 fires \"readystatechange\" (xhr.readyState === 4) without final \"readystatechange\" (xhr.readyState === 3)\r\n // IE 8 fires \"onload\" without \"onprogress\"\r\n onProgress();\r\n if (state === 1 || state === 2 || state === 3) {\r\n state = 4;\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n that.readyState = 4;\r\n if (type === \"load\") {\r\n that.onload(event);\r\n } else if (type === \"error\") {\r\n that.onerror(event);\r\n } else if (type === \"abort\") {\r\n that.onabort(event);\r\n } else {\r\n throw new TypeError();\r\n }\r\n that.onreadystatechange();\r\n }\r\n };\r\n var onReadyStateChange = function (event) {\r\n if (xhr != undefined) { // Opera 12\r\n if (xhr.readyState === 4) {\r\n if (!(\"onload\" in xhr) || !(\"onerror\" in xhr) || !(\"onabort\" in xhr)) {\r\n onFinish(xhr.responseText === \"\" ? \"error\" : \"load\", event);\r\n }\r\n } else if (xhr.readyState === 3) {\r\n if (!(\"onprogress\" in xhr)) { // testing XMLHttpRequest#responseText too many times is too slow in IE 11\r\n // and in Firefox 3.6\r\n onProgress();\r\n }\r\n } else if (xhr.readyState === 2) {\r\n onStart();\r\n }\r\n }\r\n };\r\n var onTimeout = function () {\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, 500);\r\n if (xhr.readyState === 3) {\r\n onProgress();\r\n }\r\n };\r\n\r\n // XDomainRequest#abort removes onprogress, onerror, onload\r\n if (\"onload\" in xhr) {\r\n xhr.onload = function (event) {\r\n onFinish(\"load\", event);\r\n };\r\n }\r\n if (\"onerror\" in xhr) {\r\n xhr.onerror = function (event) {\r\n onFinish(\"error\", event);\r\n };\r\n }\r\n // improper fix to match Firefox behaviour, but it is better than just ignore abort\r\n // see https://bugzilla.mozilla.org/show_bug.cgi?id=768596\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=880200\r\n // https://code.google.com/p/chromium/issues/detail?id=153570\r\n // IE 8 fires \"onload\" without \"onprogress\r\n if (\"onabort\" in xhr) {\r\n xhr.onabort = function (event) {\r\n onFinish(\"abort\", event);\r\n };\r\n }\r\n\r\n if (\"onprogress\" in xhr) {\r\n xhr.onprogress = onProgress;\r\n }\r\n\r\n // IE 8 - 9 (XMLHTTPRequest)\r\n // Opera < 12\r\n // Firefox < 3.5\r\n // Firefox 3.5 - 3.6 - ? < 9.0\r\n // onprogress is not fired sometimes or delayed\r\n // see also #64 (significant lag in IE 11)\r\n if (\"onreadystatechange\" in xhr) {\r\n xhr.onreadystatechange = function (event) {\r\n onReadyStateChange(event);\r\n };\r\n }\r\n\r\n if (\"contentType\" in xhr || !(\"ontimeout\" in XMLHttpRequest.prototype)) {\r\n url += (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + \"padding=true\";\r\n }\r\n xhr.open(method, url, true);\r\n\r\n if (\"readyState\" in xhr) {\r\n // workaround for Opera 12 issue with \"progress\" events\r\n // #91 (XMLHttpRequest onprogress not fired for streaming response in Edge 14-15-?)\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, 0);\r\n }\r\n };\r\n XHRWrapper.prototype.abort = function () {\r\n this._abort(false);\r\n };\r\n XHRWrapper.prototype.getResponseHeader = function (name) {\r\n return this._contentType;\r\n };\r\n XHRWrapper.prototype.setRequestHeader = function (name, value) {\r\n var xhr = this._xhr;\r\n if (\"setRequestHeader\" in xhr) {\r\n xhr.setRequestHeader(name, value);\r\n }\r\n };\r\n XHRWrapper.prototype.getAllResponseHeaders = function () {\r\n // XMLHttpRequest#getAllResponseHeaders returns null for CORS requests in Firefox 3.6.28\r\n return this._xhr.getAllResponseHeaders != undefined ? this._xhr.getAllResponseHeaders() || \"\" : \"\";\r\n };\r\n XHRWrapper.prototype.send = function () {\r\n // loading indicator in Safari < ? (6), Chrome < 14, Firefox\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=736723\r\n if ((!(\"ontimeout\" in XMLHttpRequest.prototype) || (!(\"sendAsBinary\" in XMLHttpRequest.prototype) && !(\"mozAnon\" in XMLHttpRequest.prototype))) &&\r\n document != undefined &&\r\n document.readyState != undefined &&\r\n document.readyState !== \"complete\") {\r\n var that = this;\r\n that._sendTimeout = setTimeout(function () {\r\n that._sendTimeout = 0;\r\n that.send();\r\n }, 4);\r\n return;\r\n }\r\n\r\n var xhr = this._xhr;\r\n // withCredentials should be set after \"open\" for Safari and Chrome (< 19 ?)\r\n if (\"withCredentials\" in xhr) {\r\n xhr.withCredentials = this.withCredentials;\r\n }\r\n try {\r\n // xhr.send(); throws \"Not enough arguments\" in Firefox 3.0\r\n xhr.send(undefined);\r\n } catch (error1) {\r\n // Safari 5.1.7, Opera 12\r\n throw error1;\r\n }\r\n };\r\n\r\n function toLowerCase(name) {\r\n return name.replace(/[A-Z]/g, function (c) {\r\n return String.fromCharCode(c.charCodeAt(0) + 0x20);\r\n });\r\n }\r\n\r\n function HeadersPolyfill(all) {\r\n // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example\r\n var map = Object.create(null);\r\n var array = all.split(\"\\r\\n\");\r\n for (var i = 0; i < array.length; i += 1) {\r\n var line = array[i];\r\n var parts = line.split(\": \");\r\n var name = parts.shift();\r\n var value = parts.join(\": \");\r\n map[toLowerCase(name)] = value;\r\n }\r\n this._map = map;\r\n }\r\n HeadersPolyfill.prototype.get = function (name) {\r\n return this._map[toLowerCase(name)];\r\n };\r\n\r\n if (XMLHttpRequest != null && XMLHttpRequest.HEADERS_RECEIVED == null) { // IE < 9, Firefox 3.6\r\n XMLHttpRequest.HEADERS_RECEIVED = 2;\r\n }\r\n\r\n function XHRTransport() {\r\n }\r\n\r\n XHRTransport.prototype.open = function (xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {\r\n xhr.open(\"GET\", url);\r\n var offset = 0;\r\n xhr.onprogress = function () {\r\n var responseText = xhr.responseText;\r\n var chunk = responseText.slice(offset);\r\n offset += chunk.length;\r\n onProgressCallback(chunk);\r\n };\r\n xhr.onerror = function (event) {\r\n event.preventDefault();\r\n onFinishCallback(new Error(\"NetworkError\"));\r\n };\r\n xhr.onload = function () {\r\n onFinishCallback(null);\r\n };\r\n xhr.onabort = function () {\r\n onFinishCallback(null);\r\n };\r\n xhr.onreadystatechange = function () {\r\n if (xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED) {\r\n var status = xhr.status;\r\n var statusText = xhr.statusText;\r\n var contentType = xhr.getResponseHeader(\"Content-Type\");\r\n var headers = xhr.getAllResponseHeaders();\r\n onStartCallback(status, statusText, contentType, new HeadersPolyfill(headers));\r\n }\r\n };\r\n xhr.withCredentials = withCredentials;\r\n for (var name in headers) {\r\n if (Object.prototype.hasOwnProperty.call(headers, name)) {\r\n xhr.setRequestHeader(name, headers[name]);\r\n }\r\n }\r\n xhr.send();\r\n return xhr;\r\n };\r\n\r\n function HeadersWrapper(headers) {\r\n this._headers = headers;\r\n }\r\n HeadersWrapper.prototype.get = function (name) {\r\n return this._headers.get(name);\r\n };\r\n\r\n function FetchTransport() {\r\n }\r\n\r\n FetchTransport.prototype.open = function (xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {\r\n var reader = null;\r\n var controller = new AbortController();\r\n var signal = controller.signal;\r\n var textDecoder = new TextDecoder();\r\n fetch(url, {\r\n headers: headers,\r\n credentials: withCredentials ? \"include\" : \"same-origin\",\r\n signal: signal,\r\n cache: \"no-store\"\r\n }).then(function (response) {\r\n reader = response.body.getReader();\r\n onStartCallback(response.status, response.statusText, response.headers.get(\"Content-Type\"), new HeadersWrapper(response.headers));\r\n // see https://github.com/promises-aplus/promises-spec/issues/179\r\n return new Promise(function (resolve, reject) {\r\n var readNextChunk = function () {\r\n reader.read().then(function (result) {\r\n if (result.done) {\r\n //Note: bytes in textDecoder are ignored\r\n resolve(undefined);\r\n } else {\r\n var chunk = textDecoder.decode(result.value, {stream: true});\r\n onProgressCallback(chunk);\r\n readNextChunk();\r\n }\r\n })[\"catch\"](function (error) {\r\n reject(error);\r\n });\r\n };\r\n readNextChunk();\r\n });\r\n })[\"catch\"](function (error) {\r\n if (error.name === \"AbortError\") {\r\n return undefined;\r\n } else {\r\n return error;\r\n }\r\n }).then(function (error) {\r\n onFinishCallback(error);\r\n });\r\n return {\r\n abort: function () {\r\n if (reader != null) {\r\n reader.cancel(); // https://bugzilla.mozilla.org/show_bug.cgi?id=1583815\r\n }\r\n controller.abort();\r\n }\r\n };\r\n };\r\n\r\n function EventTarget() {\r\n this._listeners = Object.create(null);\r\n }\r\n\r\n function throwError(e) {\r\n setTimeout(function () {\r\n throw e;\r\n }, 0);\r\n }\r\n\r\n EventTarget.prototype.dispatchEvent = function (event) {\r\n event.target = this;\r\n var typeListeners = this._listeners[event.type];\r\n if (typeListeners != undefined) {\r\n var length = typeListeners.length;\r\n for (var i = 0; i < length; i += 1) {\r\n var listener = typeListeners[i];\r\n try {\r\n if (typeof listener.handleEvent === \"function\") {\r\n listener.handleEvent(event);\r\n } else {\r\n listener.call(this, event);\r\n }\r\n } catch (e) {\r\n throwError(e);\r\n }\r\n }\r\n }\r\n };\r\n EventTarget.prototype.addEventListener = function (type, listener) {\r\n type = String(type);\r\n var listeners = this._listeners;\r\n var typeListeners = listeners[type];\r\n if (typeListeners == undefined) {\r\n typeListeners = [];\r\n listeners[type] = typeListeners;\r\n }\r\n var found = false;\r\n for (var i = 0; i < typeListeners.length; i += 1) {\r\n if (typeListeners[i] === listener) {\r\n found = true;\r\n }\r\n }\r\n if (!found) {\r\n typeListeners.push(listener);\r\n }\r\n };\r\n EventTarget.prototype.removeEventListener = function (type, listener) {\r\n type = String(type);\r\n var listeners = this._listeners;\r\n var typeListeners = listeners[type];\r\n if (typeListeners != undefined) {\r\n var filtered = [];\r\n for (var i = 0; i < typeListeners.length; i += 1) {\r\n if (typeListeners[i] !== listener) {\r\n filtered.push(typeListeners[i]);\r\n }\r\n }\r\n if (filtered.length === 0) {\r\n delete listeners[type];\r\n } else {\r\n listeners[type] = filtered;\r\n }\r\n }\r\n };\r\n\r\n function Event(type) {\r\n this.type = type;\r\n this.target = undefined;\r\n }\r\n\r\n function MessageEvent(type, options) {\r\n Event.call(this, type);\r\n this.data = options.data;\r\n this.lastEventId = options.lastEventId;\r\n }\r\n\r\n MessageEvent.prototype = Object.create(Event.prototype);\r\n\r\n function ConnectionEvent(type, options) {\r\n Event.call(this, type);\r\n this.status = options.status;\r\n this.statusText = options.statusText;\r\n this.headers = options.headers;\r\n }\r\n\r\n ConnectionEvent.prototype = Object.create(Event.prototype);\r\n\r\n function ErrorEvent(type, options) {\r\n Event.call(this, type);\r\n this.error = options.error;\r\n }\r\n\r\n ErrorEvent.prototype = Object.create(Event.prototype);\r\n\r\n var WAITING = -1;\r\n var CONNECTING = 0;\r\n var OPEN = 1;\r\n var CLOSED = 2;\r\n\r\n var AFTER_CR = -1;\r\n var FIELD_START = 0;\r\n var FIELD = 1;\r\n var VALUE_START = 2;\r\n var VALUE = 3;\r\n\r\n var contentTypeRegExp = /^text\\/event\\-stream(;.*)?$/i;\r\n\r\n var MINIMUM_DURATION = 1000;\r\n var MAXIMUM_DURATION = 18000000;\r\n\r\n var parseDuration = function (value, def) {\r\n var n = value == null ? def : parseInt(value, 10);\r\n if (n !== n) {\r\n n = def;\r\n }\r\n return clampDuration(n);\r\n };\r\n var clampDuration = function (n) {\r\n return Math.min(Math.max(n, MINIMUM_DURATION), MAXIMUM_DURATION);\r\n };\r\n\r\n var fire = function (that, f, event) {\r\n try {\r\n if (typeof f === \"function\") {\r\n f.call(that, event);\r\n }\r\n } catch (e) {\r\n throwError(e);\r\n }\r\n };\r\n\r\n function EventSourcePolyfill(url, options) {\r\n EventTarget.call(this);\r\n options = options || {};\r\n\r\n this.onopen = undefined;\r\n this.onmessage = undefined;\r\n this.onerror = undefined;\r\n\r\n this.url = undefined;\r\n this.readyState = undefined;\r\n this.withCredentials = undefined;\r\n this.headers = undefined;\r\n\r\n this._close = undefined;\r\n\r\n start(this, url, options);\r\n }\r\n\r\n function getBestXHRTransport() {\r\n return (XMLHttpRequest != undefined && (\"withCredentials\" in XMLHttpRequest.prototype)) || XDomainRequest == undefined\r\n ? new XMLHttpRequest()\r\n : new XDomainRequest();\r\n }\r\n\r\n var isFetchSupported = fetch != undefined && Response != undefined && \"body\" in Response.prototype;\r\n\r\n function start(es, url, options) {\r\n url = String(url);\r\n var withCredentials = Boolean(options.withCredentials);\r\n var lastEventIdQueryParameterName = options.lastEventIdQueryParameterName || \"lastEventId\";\r\n\r\n var initialRetry = clampDuration(1000);\r\n var heartbeatTimeout = parseDuration(options.heartbeatTimeout, 45000);\r\n\r\n var lastEventId = \"\";\r\n var retry = initialRetry;\r\n var wasActivity = false;\r\n var textLength = 0;\r\n var headers = options.headers || {};\r\n var TransportOption = options.Transport;\r\n var xhr = isFetchSupported && TransportOption == undefined ? undefined : new XHRWrapper(TransportOption != undefined ? new TransportOption() : getBestXHRTransport());\r\n var transport = TransportOption != null && typeof TransportOption !== \"string\" ? new TransportOption() : (xhr == undefined ? new FetchTransport() : new XHRTransport());\r\n var abortController = undefined;\r\n var timeout = 0;\r\n var currentState = WAITING;\r\n var dataBuffer = \"\";\r\n var lastEventIdBuffer = \"\";\r\n var eventTypeBuffer = \"\";\r\n\r\n var textBuffer = \"\";\r\n var state = FIELD_START;\r\n var fieldStart = 0;\r\n var valueStart = 0;\r\n\r\n var onStart = function (status, statusText, contentType, headers) {\r\n if (currentState === CONNECTING) {\r\n if (status === 200 && contentType != undefined && contentTypeRegExp.test(contentType)) {\r\n currentState = OPEN;\r\n wasActivity = Date.now();\r\n retry = initialRetry;\r\n es.readyState = OPEN;\r\n var event = new ConnectionEvent(\"open\", {\r\n status: status,\r\n statusText: statusText,\r\n headers: headers\r\n });\r\n es.dispatchEvent(event);\r\n fire(es, es.onopen, event);\r\n } else {\r\n var message = \"\";\r\n if (status !== 200) {\r\n if (statusText) {\r\n statusText = statusText.replace(/\\s+/g, \" \");\r\n }\r\n message = \"EventSource's response has a status \" + status + \" \" + statusText + \" that is not 200. Aborting the connection.\";\r\n } else {\r\n message = \"EventSource's response has a Content-Type specifying an unsupported type: \" + (contentType == undefined ? \"-\" : contentType.replace(/\\s+/g, \" \")) + \". Aborting the connection.\";\r\n }\r\n close();\r\n var event = new ConnectionEvent(\"error\", {\r\n status: status,\r\n statusText: statusText,\r\n headers: headers\r\n });\r\n es.dispatchEvent(event);\r\n fire(es, es.onerror, event);\r\n console.error(message);\r\n }\r\n }\r\n };\r\n\r\n var onProgress = function (textChunk) {\r\n if (currentState === OPEN) {\r\n var n = -1;\r\n for (var i = 0; i < textChunk.length; i += 1) {\r\n var c = textChunk.charCodeAt(i);\r\n if (c === \"\\n\".charCodeAt(0) || c === \"\\r\".charCodeAt(0)) {\r\n n = i;\r\n }\r\n }\r\n var chunk = (n !== -1 ? textBuffer : \"\") + textChunk.slice(0, n + 1);\r\n textBuffer = (n === -1 ? textBuffer : \"\") + textChunk.slice(n + 1);\r\n if (textChunk !== \"\") {\r\n wasActivity = Date.now();\r\n textLength += textChunk.length;\r\n }\r\n for (var position = 0; position < chunk.length; position += 1) {\r\n var c = chunk.charCodeAt(position);\r\n if (state === AFTER_CR && c === \"\\n\".charCodeAt(0)) {\r\n state = FIELD_START;\r\n } else {\r\n if (state === AFTER_CR) {\r\n state = FIELD_START;\r\n }\r\n if (c === \"\\r\".charCodeAt(0) || c === \"\\n\".charCodeAt(0)) {\r\n if (state !== FIELD_START) {\r\n if (state === FIELD) {\r\n valueStart = position + 1;\r\n }\r\n var field = chunk.slice(fieldStart, valueStart - 1);\r\n var value = chunk.slice(valueStart + (valueStart < position && chunk.charCodeAt(valueStart) === \" \".charCodeAt(0) ? 1 : 0), position);\r\n if (field === \"data\") {\r\n dataBuffer += \"\\n\";\r\n dataBuffer += value;\r\n } else if (field === \"id\") {\r\n lastEventIdBuffer = value;\r\n } else if (field === \"event\") {\r\n eventTypeBuffer = value;\r\n } else if (field === \"retry\") {\r\n initialRetry = parseDuration(value, initialRetry);\r\n retry = initialRetry;\r\n } else if (field === \"heartbeatTimeout\") {\r\n heartbeatTimeout = parseDuration(value, heartbeatTimeout);\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, heartbeatTimeout);\r\n }\r\n }\r\n }\r\n if (state === FIELD_START) {\r\n if (dataBuffer !== \"\") {\r\n lastEventId = lastEventIdBuffer;\r\n if (eventTypeBuffer === \"\") {\r\n eventTypeBuffer = \"message\";\r\n }\r\n var event = new MessageEvent(eventTypeBuffer, {\r\n data: dataBuffer.slice(1),\r\n lastEventId: lastEventIdBuffer\r\n });\r\n es.dispatchEvent(event);\r\n if (eventTypeBuffer === \"open\") {\r\n fire(es, es.onopen, event);\r\n } else if (eventTypeBuffer === \"message\") {\r\n fire(es, es.onmessage, event);\r\n } else if (eventTypeBuffer === \"error\") {\r\n fire(es, es.onerror, event);\r\n }\r\n if (currentState === CLOSED) {\r\n return;\r\n }\r\n }\r\n dataBuffer = \"\";\r\n eventTypeBuffer = \"\";\r\n }\r\n state = c === \"\\r\".charCodeAt(0) ? AFTER_CR : FIELD_START;\r\n } else {\r\n if (state === FIELD_START) {\r\n fieldStart = position;\r\n state = FIELD;\r\n }\r\n if (state === FIELD) {\r\n if (c === \":\".charCodeAt(0)) {\r\n valueStart = position + 1;\r\n state = VALUE_START;\r\n }\r\n } else if (state === VALUE_START) {\r\n state = VALUE;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n var onFinish = function (error) {\r\n if (currentState === OPEN || currentState === CONNECTING) {\r\n currentState = WAITING;\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, retry);\r\n retry = clampDuration(Math.min(initialRetry * 16, retry * 2));\r\n\r\n es.readyState = CONNECTING;\r\n var event = new ErrorEvent(\"error\", {error: error});\r\n es.dispatchEvent(event);\r\n fire(es, es.onerror, event);\r\n if (error != undefined) {\r\n console.error(error);\r\n }\r\n }\r\n };\r\n\r\n var close = function () {\r\n currentState = CLOSED;\r\n if (abortController != undefined) {\r\n abortController.abort();\r\n abortController = undefined;\r\n }\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n es.readyState = CLOSED;\r\n };\r\n\r\n var onTimeout = function () {\r\n timeout = 0;\r\n\r\n if (currentState !== WAITING) {\r\n if (!wasActivity && abortController != undefined) {\r\n onFinish(new Error(\"No activity within \" + heartbeatTimeout + \" milliseconds.\" + \" \" + (currentState === CONNECTING ? \"No response received.\" : textLength + \" chars received.\") + \" \" + \"Reconnecting.\"));\r\n if (abortController != undefined) {\r\n abortController.abort();\r\n abortController = undefined;\r\n }\r\n } else {\r\n var nextHeartbeat = Math.max((wasActivity || Date.now()) + heartbeatTimeout - Date.now(), 1);\r\n wasActivity = false;\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, nextHeartbeat);\r\n }\r\n return;\r\n }\r\n\r\n wasActivity = false;\r\n textLength = 0;\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, heartbeatTimeout);\r\n\r\n currentState = CONNECTING;\r\n dataBuffer = \"\";\r\n eventTypeBuffer = \"\";\r\n lastEventIdBuffer = lastEventId;\r\n textBuffer = \"\";\r\n fieldStart = 0;\r\n valueStart = 0;\r\n state = FIELD_START;\r\n\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=428916\r\n // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.\r\n var requestURL = url;\r\n if (url.slice(0, 5) !== \"data:\" && url.slice(0, 5) !== \"blob:\") {\r\n if (lastEventId !== \"\") {\r\n // Remove the lastEventId parameter if it's already part of the request URL.\r\n var i = url.indexOf(\"?\");\r\n requestURL = i === -1 ? url : url.slice(0, i + 1) + url.slice(i + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function (p, paramName) {\r\n return paramName === lastEventIdQueryParameterName ? '' : p;\r\n });\r\n // Append the current lastEventId to the request URL.\r\n requestURL += (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + lastEventIdQueryParameterName +\"=\" + encodeURIComponent(lastEventId);\r\n }\r\n }\r\n var withCredentials = es.withCredentials;\r\n var requestHeaders = {};\r\n requestHeaders[\"Accept\"] = \"text/event-stream\";\r\n var headers = es.headers;\r\n if (headers != undefined) {\r\n for (var name in headers) {\r\n if (Object.prototype.hasOwnProperty.call(headers, name)) {\r\n requestHeaders[name] = headers[name];\r\n }\r\n }\r\n }\r\n try {\r\n abortController = transport.open(xhr, onStart, onProgress, onFinish, requestURL, withCredentials, requestHeaders);\r\n } catch (error) {\r\n close();\r\n throw error;\r\n }\r\n };\r\n\r\n es.url = url;\r\n es.readyState = CONNECTING;\r\n es.withCredentials = withCredentials;\r\n es.headers = headers;\r\n es._close = close;\r\n\r\n onTimeout();\r\n }\r\n\r\n EventSourcePolyfill.prototype = Object.create(EventTarget.prototype);\r\n EventSourcePolyfill.prototype.CONNECTING = CONNECTING;\r\n EventSourcePolyfill.prototype.OPEN = OPEN;\r\n EventSourcePolyfill.prototype.CLOSED = CLOSED;\r\n EventSourcePolyfill.prototype.close = function () {\r\n this._close();\r\n };\r\n\r\n EventSourcePolyfill.CONNECTING = CONNECTING;\r\n EventSourcePolyfill.OPEN = OPEN;\r\n EventSourcePolyfill.CLOSED = CLOSED;\r\n EventSourcePolyfill.prototype.withCredentials = undefined;\r\n\r\n var R = NativeEventSource\r\n if (XMLHttpRequest != undefined && (NativeEventSource == undefined || !(\"withCredentials\" in NativeEventSource.prototype))) {\r\n // Why replace a native EventSource ?\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=444328\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=831392\r\n // https://code.google.com/p/chromium/issues/detail?id=260144\r\n // https://code.google.com/p/chromium/issues/detail?id=225654\r\n // ...\r\n R = EventSourcePolyfill;\r\n }\r\n\r\n (function (factory) {\r\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n var v = factory(exports);\r\n if (v !== undefined) module.exports = v;\r\n }\r\n else if (typeof define === \"function\" && define.amd) {\r\n define([\"exports\"], factory);\r\n }\r\n else {\r\n factory(global);\r\n }\r\n })(function (exports) {\r\n exports.EventSourcePolyfill = EventSourcePolyfill;\r\n exports.NativeEventSource = NativeEventSource;\r\n exports.EventSource = R;\r\n });\r\n}(typeof globalThis === 'undefined' ? (typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : this) : globalThis));\r\n"],
  5 + "mappings": ";;;;;AAAA;AAAA;AASA,KAAC,SAAU,QAAQ;AACjB;AAEA,UAAI,aAAa,OAAO;AACxB,UAAI,eAAe,OAAO;AAC1B,UAAI,iBAAiB,OAAO;AAC5B,UAAI,iBAAiB,OAAO;AAC5B,UAAI,gBAAgB,OAAO;AAC3B,UAAI,oBAAoB,OAAO;AAE/B,UAAI,WAAW,OAAO;AACtB,UAAIA,WAAU,OAAO;AACrB,UAAI,QAAQ,OAAO;AACnB,UAAI,WAAW,OAAO;AACtB,UAAI,cAAc,OAAO;AACzB,UAAI,cAAc,OAAO;AACzB,UAAI,kBAAkB,OAAO;AAE7B,UAAI,OAAO,WAAW,eAAe,OAAO,aAAa,eAAe,EAAE,gBAAgB,aAAa,SAAS,QAAQ,MAAM;AAC5H,iBAAS,aAAa;AACtB,eAAO,iBAAiB,QAAQ,SAAU,OAAO;AAC/C,mBAAS,aAAa;AAAA,QACxB,GAAG,KAAK;AAAA,MACV;AAEA,UAAI,kBAAkB,QAAQ,iBAAiB,MAAM;AACnD,yBAAiB,WAAY;AAC3B,iBAAO,IAAI,cAAc,mBAAmB;AAAA,QAC9C;AAAA,MACF;AAEA,UAAI,OAAO,UAAU,QAAW;AAC9B,eAAO,SAAS,SAAU,GAAG;AAC3B,mBAAS,IAAG;AAAA,UAAC;AACb,YAAE,YAAY;AACd,iBAAO,IAAI,EAAE;AAAA,QACf;AAAA,MACF;AAEA,UAAI,CAAC,KAAK,KAAK;AACb,aAAK,MAAM,SAAS,MAAM;AACxB,kBAAO,oBAAI,KAAK,GAAE,QAAQ;AAAA,QAC5B;AAAA,MACF;AAQA,UAAI,mBAAmB,QAAW;AAChC,YAAI,iBAAiB;AACrB,gBAAQ,SAAU,KAAK,SAAS;AAC9B,cAAI,SAAS,QAAQ;AACrB,iBAAO,eA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ACS,OAAO,WAAW,cAAc,OAAO,KAAK;AACnD,iBAAO,CAAC,SAAS,GAAG,OAAO;AAAA,QAC7B,OACK;AACH,kBAAQ,MAAM;AAAA,QAChB;AAAA,MACF,GAAG,SAAUC,UAAS;AACpB,QAAAA,SAAQ,sBAAsB;AAC9B,QAAAA,SAAQ,oBAAoB;AAC5B,QAAAA,SAAQ,cAAc;AAAA,MACxB,CAAC;AAAA,IACH,GAAE,OAAO,eAAe,cAAe,OAAO,WAAW,cAAc,SAAS,OAAO,SAAS,cAAc,OAAO,UAAQ,UAAU;AAAA;AAAA;",
  6 + "names": ["Promise", "codePoint", "octetsCount", "bitsNeeded", "headers", "withCredentials", "exports"]
  7 +}
1 import "./chunk-RSJERJUL.js"; 1 import "./chunk-RSJERJUL.js";
2 2
3 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/mixin/mixin.js 3 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/mixin/mixin.js
4 var mixin_default = { 4 var mixin_default = {
5 // 定义每个组件都可能需要用到的外部样式以及类名 5 // 定义每个组件都可能需要用到的外部样式以及类名
6 props: { 6 props: {
@@ -131,10 +131,10 @@ var mixin_default = { @@ -131,10 +131,10 @@ var mixin_default = {
131 } 131 }
132 }; 132 };
133 133
134 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/mixin/mpMixin.js 134 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/mixin/mpMixin.js
135 var mpMixin_default = {}; 135 var mpMixin_default = {};
136 136
137 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/utils.js 137 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/utils.js
138 var { toString } = Object.prototype; 138 var { toString } = Object.prototype;
139 function isArray(val) { 139 function isArray(val) {
140 return toString.call(val) === "[object Array]"; 140 return toString.call(val) === "[object Array]";
@@ -190,7 +190,7 @@ function isUndefined(val) { @@ -190,7 +190,7 @@ function isUndefined(val) {
190 return typeof val === "undefined"; 190 return typeof val === "undefined";
191 } 191 }
192 192
193 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js 193 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
194 function encode(val) { 194 function encode(val) {
195 return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); 195 return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
196 } 196 }
@@ -233,17 +233,17 @@ function buildURL(url2, params) { @@ -233,17 +233,17 @@ function buildURL(url2, params) {
233 return url2; 233 return url2;
234 } 234 }
235 235
236 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js 236 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
237 function isAbsoluteURL(url2) { 237 function isAbsoluteURL(url2) {
238 return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2); 238 return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
239 } 239 }
240 240
241 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js 241 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
242 function combineURLs(baseURL, relativeURL) { 242 function combineURLs(baseURL, relativeURL) {
243 return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL; 243 return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL;
244 } 244 }
245 245
246 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js 246 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
247 function buildFullPath(baseURL, requestedURL) { 247 function buildFullPath(baseURL, requestedURL) {
248 if (baseURL && !isAbsoluteURL(requestedURL)) { 248 if (baseURL && !isAbsoluteURL(requestedURL)) {
249 return combineURLs(baseURL, requestedURL); 249 return combineURLs(baseURL, requestedURL);
@@ -251,7 +251,7 @@ function buildFullPath(baseURL, requestedURL) { @@ -251,7 +251,7 @@ function buildFullPath(baseURL, requestedURL) {
251 return requestedURL; 251 return requestedURL;
252 } 252 }
253 253
254 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/settle.js 254 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/settle.js
255 function settle(resolve, reject, response) { 255 function settle(resolve, reject, response) {
256 const { validateStatus: validateStatus2 } = response.config; 256 const { validateStatus: validateStatus2 } = response.config;
257 const status = response.statusCode; 257 const status = response.statusCode;
@@ -262,7 +262,7 @@ function settle(resolve, reject, response) { @@ -262,7 +262,7 @@ function settle(resolve, reject, response) {
262 } 262 }
263 } 263 }
264 264
265 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/adapters/index.js 265 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/adapters/index.js
266 var mergeKeys = (keys, config2) => { 266 var mergeKeys = (keys, config2) => {
267 const config = {}; 267 const config = {};
268 keys.forEach((prop) => { 268 keys.forEach((prop) => {
@@ -325,10 +325,10 @@ var adapters_default = (config) => new Promise((resolve, reject) => { @@ -325,10 +325,10 @@ var adapters_default = (config) => new Promise((resolve, reject) => {
325 } 325 }
326 }); 326 });
327 327
328 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js 328 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
329 var dispatchRequest_default = (config) => adapters_default(config); 329 var dispatchRequest_default = (config) => adapters_default(config);
330 330
331 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js 331 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
332 function InterceptorManager() { 332 function InterceptorManager() {
333 this.handlers = []; 333 this.handlers = [];
334 } 334 }
@@ -353,7 +353,7 @@ InterceptorManager.prototype.forEach = function forEach2(fn) { @@ -353,7 +353,7 @@ InterceptorManager.prototype.forEach = function forEach2(fn) {
353 }; 353 };
354 var InterceptorManager_default = InterceptorManager; 354 var InterceptorManager_default = InterceptorManager;
355 355
356 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js 356 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
357 var mergeKeys2 = (keys, globalsConfig, config2) => { 357 var mergeKeys2 = (keys, globalsConfig, config2) => {
358 const config = {}; 358 const config = {};
359 keys.forEach((prop) => { 359 keys.forEach((prop) => {
@@ -415,7 +415,7 @@ var mergeConfig_default = (globalsConfig, config2 = {}) => { @@ -415,7 +415,7 @@ var mergeConfig_default = (globalsConfig, config2 = {}) => {
415 return config; 415 return config;
416 }; 416 };
417 417
418 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/defaults.js 418 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/defaults.js
419 var defaults_default = { 419 var defaults_default = {
420 baseURL: "", 420 baseURL: "",
421 header: {}, 421 header: {},
@@ -430,7 +430,7 @@ var defaults_default = { @@ -430,7 +430,7 @@ var defaults_default = {
430 } 430 }
431 }; 431 };
432 432
433 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/utils/clone.js 433 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/utils/clone.js
434 var clone = function() { 434 var clone = function() {
435 "use strict"; 435 "use strict";
436 function _instanceof(obj, type) { 436 function _instanceof(obj, type) {
@@ -627,7 +627,7 @@ var clone = function() { @@ -627,7 +627,7 @@ var clone = function() {
627 }(); 627 }();
628 var clone_default = clone; 628 var clone_default = clone;
629 629
630 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/core/Request.js 630 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/core/Request.js
631 var Request = class { 631 var Request = class {
632 /** 632 /**
633 * @param {Object} arg - 全局配置 633 * @param {Object} arg - 全局配置
@@ -765,10 +765,10 @@ var Request = class { @@ -765,10 +765,10 @@ var Request = class {
765 } 765 }
766 }; 766 };
767 767
768 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/luch-request/index.js 768 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/luch-request/index.js
769 var luch_request_default = Request; 769 var luch_request_default = Request;
770 770
771 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/util/route.js 771 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/util/route.js
772 var Router = class { 772 var Router = class {
773 constructor() { 773 constructor() {
774 this.config = { 774 this.config = {
@@ -868,7 +868,7 @@ var Router = class { @@ -868,7 +868,7 @@ var Router = class {
868 }; 868 };
869 var route_default = new Router().route; 869 var route_default = new Router().route;
870 870
871 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/colorGradient.js 871 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/colorGradient.js
872 function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) { 872 function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) {
873 const startRGB = hexToRgb(startColor, false); 873 const startRGB = hexToRgb(startColor, false);
874 const startR = startRGB[0]; 874 const startR = startRGB[0];
@@ -980,7 +980,7 @@ var colorGradient_default = { @@ -980,7 +980,7 @@ var colorGradient_default = {
980 colorToRgba 980 colorToRgba
981 }; 981 };
982 982
983 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/test.js 983 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/test.js
984 function email(value) { 984 function email(value) {
985 return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value); 985 return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
986 } 986 }
@@ -1154,7 +1154,7 @@ var test_default = { @@ -1154,7 +1154,7 @@ var test_default = {
1154 string 1154 string
1155 }; 1155 };
1156 1156
1157 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/debounce.js 1157 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/debounce.js
1158 var timeout = null; 1158 var timeout = null;
1159 function debounce(func2, wait = 500, immediate = false) { 1159 function debounce(func2, wait = 500, immediate = false) {
1160 if (timeout !== null) 1160 if (timeout !== null)
@@ -1174,7 +1174,7 @@ function debounce(func2, wait = 500, immediate = false) { @@ -1174,7 +1174,7 @@ function debounce(func2, wait = 500, immediate = false) {
1174 } 1174 }
1175 var debounce_default = debounce; 1175 var debounce_default = debounce;
1176 1176
1177 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/throttle.js 1177 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/throttle.js
1178 var timer; 1178 var timer;
1179 var flag; 1179 var flag;
1180 function throttle(func2, wait = 500, immediate = true) { 1180 function throttle(func2, wait = 500, immediate = true) {
@@ -1196,7 +1196,7 @@ function throttle(func2, wait = 500, immediate = true) { @@ -1196,7 +1196,7 @@ function throttle(func2, wait = 500, immediate = true) {
1196 } 1196 }
1197 var throttle_default = throttle; 1197 var throttle_default = throttle;
1198 1198
1199 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/digit.js 1199 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/digit.js
1200 var _boundaryCheckingState = true; 1200 var _boundaryCheckingState = true;
1201 function strip(num, precision = 15) { 1201 function strip(num, precision = 15) {
1202 return +parseFloat(Number(num).toPrecision(precision)); 1202 return +parseFloat(Number(num).toPrecision(precision));
@@ -1260,7 +1260,7 @@ function round(num, ratio) { @@ -1260,7 +1260,7 @@ function round(num, ratio) {
1260 return result; 1260 return result;
1261 } 1261 }
1262 1262
1263 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/index.js 1263 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/index.js
1264 function range2(min = 0, max = 0, value = 0) { 1264 function range2(min = 0, max = 0, value = 0) {
1265 return Math.max(min, Math.min(max, Number(value))); 1265 return Math.max(min, Math.min(max, Number(value)));
1266 } 1266 }
@@ -1732,7 +1732,7 @@ var function_default = { @@ -1732,7 +1732,7 @@ var function_default = {
1732 setConfig 1732 setConfig
1733 }; 1733 };
1734 1734
1735 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/config.js 1735 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/config.js
1736 var version = "3"; 1736 var version = "3";
1737 if (true) { 1737 if (true) {
1738 console.log(` 1738 console.log(`
@@ -1767,7 +1767,7 @@ var config_default = { @@ -1767,7 +1767,7 @@ var config_default = {
1767 unit: "px" 1767 unit: "px"
1768 }; 1768 };
1769 1769
1770 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/actionSheet.js 1770 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/actionSheet.js
1771 var actionSheet_default = { 1771 var actionSheet_default = {
1772 // action-sheet组件 1772 // action-sheet组件
1773 actionSheet: { 1773 actionSheet: {
@@ -1785,7 +1785,7 @@ var actionSheet_default = { @@ -1785,7 +1785,7 @@ var actionSheet_default = {
1785 } 1785 }
1786 }; 1786 };
1787 1787
1788 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/album.js 1788 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/album.js
1789 var album_default = { 1789 var album_default = {
1790 // album 组件 1790 // album 组件
1791 album: { 1791 album: {
@@ -1803,7 +1803,7 @@ var album_default = { @@ -1803,7 +1803,7 @@ var album_default = {
1803 } 1803 }
1804 }; 1804 };
1805 1805
1806 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/alert.js 1806 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/alert.js
1807 var alert_default = { 1807 var alert_default = {
1808 // alert警告组件 1808 // alert警告组件
1809 alert: { 1809 alert: {
@@ -1818,7 +1818,7 @@ var alert_default = { @@ -1818,7 +1818,7 @@ var alert_default = {
1818 } 1818 }
1819 }; 1819 };
1820 1820
1821 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/avatar.js 1821 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/avatar.js
1822 var avatar_default = { 1822 var avatar_default = {
1823 // avatar 组件 1823 // avatar 组件
1824 avatar: { 1824 avatar: {
@@ -1839,7 +1839,7 @@ var avatar_default = { @@ -1839,7 +1839,7 @@ var avatar_default = {
1839 } 1839 }
1840 }; 1840 };
1841 1841
1842 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/avatarGroup.js 1842 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/avatarGroup.js
1843 var avatarGroup_default = { 1843 var avatarGroup_default = {
1844 // avatarGroup 组件 1844 // avatarGroup 组件
1845 avatarGroup: { 1845 avatarGroup: {
@@ -1855,7 +1855,7 @@ var avatarGroup_default = { @@ -1855,7 +1855,7 @@ var avatarGroup_default = {
1855 } 1855 }
1856 }; 1856 };
1857 1857
1858 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/backtop.js 1858 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/backtop.js
1859 var backtop_default = { 1859 var backtop_default = {
1860 // backtop组件 1860 // backtop组件
1861 backtop: { 1861 backtop: {
@@ -1875,7 +1875,7 @@ var backtop_default = { @@ -1875,7 +1875,7 @@ var backtop_default = {
1875 } 1875 }
1876 }; 1876 };
1877 1877
1878 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/badge.js 1878 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/badge.js
1879 var badge_default = { 1879 var badge_default = {
1880 // 徽标数组件 1880 // 徽标数组件
1881 badge: { 1881 badge: {
@@ -1895,7 +1895,7 @@ var badge_default = { @@ -1895,7 +1895,7 @@ var badge_default = {
1895 } 1895 }
1896 }; 1896 };
1897 1897
1898 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/button.js 1898 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/button.js
1899 var button_default = { 1899 var button_default = {
1900 // button组件 1900 // button组件
1901 button: { 1901 button: {
@@ -1930,7 +1930,7 @@ var button_default = { @@ -1930,7 +1930,7 @@ var button_default = {
1930 } 1930 }
1931 }; 1931 };
1932 1932
1933 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/calendar.js 1933 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/calendar.js
1934 var calendar_default = { 1934 var calendar_default = {
1935 // calendar 组件 1935 // calendar 组件
1936 calendar: { 1936 calendar: {
@@ -1967,7 +1967,7 @@ var calendar_default = { @@ -1967,7 +1967,7 @@ var calendar_default = {
1967 } 1967 }
1968 }; 1968 };
1969 1969
1970 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/carKeyboard.js 1970 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/carKeyboard.js
1971 var carKeyboard_default = { 1971 var carKeyboard_default = {
1972 // 车牌号键盘 1972 // 车牌号键盘
1973 carKeyboard: { 1973 carKeyboard: {
@@ -1975,7 +1975,7 @@ var carKeyboard_default = { @@ -1975,7 +1975,7 @@ var carKeyboard_default = {
1975 } 1975 }
1976 }; 1976 };
1977 1977
1978 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/cell.js 1978 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/cell.js
1979 var cell_default = { 1979 var cell_default = {
1980 // cell组件的props 1980 // cell组件的props
1981 cell: { 1981 cell: {
@@ -2003,7 +2003,7 @@ var cell_default = { @@ -2003,7 +2003,7 @@ var cell_default = {
2003 } 2003 }
2004 }; 2004 };
2005 2005
2006 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/cellGroup.js 2006 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/cellGroup.js
2007 var cellGroup_default = { 2007 var cellGroup_default = {
2008 // cell-group组件的props 2008 // cell-group组件的props
2009 cellGroup: { 2009 cellGroup: {
@@ -2013,7 +2013,7 @@ var cellGroup_default = { @@ -2013,7 +2013,7 @@ var cellGroup_default = {
2013 } 2013 }
2014 }; 2014 };
2015 2015
2016 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/checkbox.js 2016 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/checkbox.js
2017 var checkbox_default = { 2017 var checkbox_default = {
2018 // checkbox组件 2018 // checkbox组件
2019 checkbox: { 2019 checkbox: {
@@ -2033,7 +2033,7 @@ var checkbox_default = { @@ -2033,7 +2033,7 @@ var checkbox_default = {
2033 } 2033 }
2034 }; 2034 };
2035 2035
2036 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/checkboxGroup.js 2036 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/checkboxGroup.js
2037 var checkboxGroup_default = { 2037 var checkboxGroup_default = {
2038 // checkbox-group组件 2038 // checkbox-group组件
2039 checkboxGroup: { 2039 checkboxGroup: {
@@ -2055,7 +2055,7 @@ var checkboxGroup_default = { @@ -2055,7 +2055,7 @@ var checkboxGroup_default = {
2055 } 2055 }
2056 }; 2056 };
2057 2057
2058 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/circleProgress.js 2058 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/circleProgress.js
2059 var circleProgress_default = { 2059 var circleProgress_default = {
2060 // circleProgress 组件 2060 // circleProgress 组件
2061 circleProgress: { 2061 circleProgress: {
@@ -2063,7 +2063,7 @@ var circleProgress_default = { @@ -2063,7 +2063,7 @@ var circleProgress_default = {
2063 } 2063 }
2064 }; 2064 };
2065 2065
2066 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/code.js 2066 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/code.js
2067 var code_default = { 2067 var code_default = {
2068 // code 组件 2068 // code 组件
2069 code: { 2069 code: {
@@ -2076,7 +2076,7 @@ var code_default = { @@ -2076,7 +2076,7 @@ var code_default = {
2076 } 2076 }
2077 }; 2077 };
2078 2078
2079 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/codeInput.js 2079 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/codeInput.js
2080 var codeInput_default = { 2080 var codeInput_default = {
2081 // codeInput 组件 2081 // codeInput 组件
2082 codeInput: { 2082 codeInput: {
@@ -2098,7 +2098,7 @@ var codeInput_default = { @@ -2098,7 +2098,7 @@ var codeInput_default = {
2098 } 2098 }
2099 }; 2099 };
2100 2100
2101 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/col.js 2101 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/col.js
2102 var col_default = { 2102 var col_default = {
2103 // col 组件 2103 // col 组件
2104 col: { 2104 col: {
@@ -2110,7 +2110,7 @@ var col_default = { @@ -2110,7 +2110,7 @@ var col_default = {
2110 } 2110 }
2111 }; 2111 };
2112 2112
2113 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/collapse.js 2113 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/collapse.js
2114 var collapse_default = { 2114 var collapse_default = {
2115 // collapse 组件 2115 // collapse 组件
2116 collapse: { 2116 collapse: {
@@ -2120,7 +2120,7 @@ var collapse_default = { @@ -2120,7 +2120,7 @@ var collapse_default = {
2120 } 2120 }
2121 }; 2121 };
2122 2122
2123 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/collapseItem.js 2123 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/collapseItem.js
2124 var collapseItem_default = { 2124 var collapseItem_default = {
2125 // collapseItem 组件 2125 // collapseItem 组件
2126 collapseItem: { 2126 collapseItem: {
@@ -2138,7 +2138,7 @@ var collapseItem_default = { @@ -2138,7 +2138,7 @@ var collapseItem_default = {
2138 } 2138 }
2139 }; 2139 };
2140 2140
2141 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/columnNotice.js 2141 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/columnNotice.js
2142 var columnNotice_default = { 2142 var columnNotice_default = {
2143 // columnNotice 组件 2143 // columnNotice 组件
2144 columnNotice: { 2144 columnNotice: {
@@ -2155,7 +2155,7 @@ var columnNotice_default = { @@ -2155,7 +2155,7 @@ var columnNotice_default = {
2155 } 2155 }
2156 }; 2156 };
2157 2157
2158 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/countDown.js 2158 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/countDown.js
2159 var countDown_default = { 2159 var countDown_default = {
2160 // u-count-down 计时器组件 2160 // u-count-down 计时器组件
2161 countDown: { 2161 countDown: {
@@ -2166,7 +2166,7 @@ var countDown_default = { @@ -2166,7 +2166,7 @@ var countDown_default = {
2166 } 2166 }
2167 }; 2167 };
2168 2168
2169 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/countTo.js 2169 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/countTo.js
2170 var countTo_default = { 2170 var countTo_default = {
2171 // countTo 组件 2171 // countTo 组件
2172 countTo: { 2172 countTo: {
@@ -2184,7 +2184,7 @@ var countTo_default = { @@ -2184,7 +2184,7 @@ var countTo_default = {
2184 } 2184 }
2185 }; 2185 };
2186 2186
2187 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/datetimePicker.js 2187 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/datetimePicker.js
2188 var datetimePicker_default = { 2188 var datetimePicker_default = {
2189 // datetimePicker 组件 2189 // datetimePicker 组件
2190 datetimePicker: { 2190 datetimePicker: {
@@ -2213,7 +2213,7 @@ var datetimePicker_default = { @@ -2213,7 +2213,7 @@ var datetimePicker_default = {
2213 } 2213 }
2214 }; 2214 };
2215 2215
2216 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/divider.js 2216 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/divider.js
2217 var divider_default = { 2217 var divider_default = {
2218 // divider组件 2218 // divider组件
2219 divider: { 2219 divider: {
@@ -2228,7 +2228,7 @@ var divider_default = { @@ -2228,7 +2228,7 @@ var divider_default = {
2228 } 2228 }
2229 }; 2229 };
2230 2230
2231 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/empty.js 2231 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/empty.js
2232 var empty_default = { 2232 var empty_default = {
2233 // empty组件 2233 // empty组件
2234 empty: { 2234 empty: {
@@ -2246,7 +2246,7 @@ var empty_default = { @@ -2246,7 +2246,7 @@ var empty_default = {
2246 } 2246 }
2247 }; 2247 };
2248 2248
2249 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/form.js 2249 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/form.js
2250 var form_default = { 2250 var form_default = {
2251 // form 组件 2251 // form 组件
2252 form: { 2252 form: {
@@ -2261,7 +2261,7 @@ var form_default = { @@ -2261,7 +2261,7 @@ var form_default = {
2261 } 2261 }
2262 }; 2262 };
2263 2263
2264 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/formItem.js 2264 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/formItem.js
2265 var formItem_default = { 2265 var formItem_default = {
2266 // formItem 组件 2266 // formItem 组件
2267 formItem: { 2267 formItem: {
@@ -2276,7 +2276,7 @@ var formItem_default = { @@ -2276,7 +2276,7 @@ var formItem_default = {
2276 } 2276 }
2277 }; 2277 };
2278 2278
2279 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/gap.js 2279 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/gap.js
2280 var gap_default = { 2280 var gap_default = {
2281 // gap组件 2281 // gap组件
2282 gap: { 2282 gap: {
@@ -2288,7 +2288,7 @@ var gap_default = { @@ -2288,7 +2288,7 @@ var gap_default = {
2288 } 2288 }
2289 }; 2289 };
2290 2290
2291 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/grid.js 2291 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/grid.js
2292 var grid_default = { 2292 var grid_default = {
2293 // grid组件 2293 // grid组件
2294 grid: { 2294 grid: {
@@ -2298,7 +2298,7 @@ var grid_default = { @@ -2298,7 +2298,7 @@ var grid_default = {
2298 } 2298 }
2299 }; 2299 };
2300 2300
2301 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/gridItem.js 2301 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/gridItem.js
2302 var gridItem_default = { 2302 var gridItem_default = {
2303 // grid-item组件 2303 // grid-item组件
2304 gridItem: { 2304 gridItem: {
@@ -2307,7 +2307,7 @@ var gridItem_default = { @@ -2307,7 +2307,7 @@ var gridItem_default = {
2307 } 2307 }
2308 }; 2308 };
2309 2309
2310 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/icon.js 2310 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/icon.js
2311 var { 2311 var {
2312 color 2312 color
2313 } = config_default; 2313 } = config_default;
@@ -2334,7 +2334,7 @@ var icon_default = { @@ -2334,7 +2334,7 @@ var icon_default = {
2334 } 2334 }
2335 }; 2335 };
2336 2336
2337 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/image.js 2337 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/image.js
2338 var image_default = { 2338 var image_default = {
2339 // image组件 2339 // image组件
2340 image: { 2340 image: {
@@ -2357,7 +2357,7 @@ var image_default = { @@ -2357,7 +2357,7 @@ var image_default = {
2357 } 2357 }
2358 }; 2358 };
2359 2359
2360 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/indexAnchor.js 2360 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/indexAnchor.js
2361 var indexAnchor_default = { 2361 var indexAnchor_default = {
2362 // indexAnchor 组件 2362 // indexAnchor 组件
2363 indexAnchor: { 2363 indexAnchor: {
@@ -2369,7 +2369,7 @@ var indexAnchor_default = { @@ -2369,7 +2369,7 @@ var indexAnchor_default = {
2369 } 2369 }
2370 }; 2370 };
2371 2371
2372 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/indexList.js 2372 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/indexList.js
2373 var indexList_default = { 2373 var indexList_default = {
2374 // indexList 组件 2374 // indexList 组件
2375 indexList: { 2375 indexList: {
@@ -2381,7 +2381,7 @@ var indexList_default = { @@ -2381,7 +2381,7 @@ var indexList_default = {
2381 } 2381 }
2382 }; 2382 };
2383 2383
2384 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/input.js 2384 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/input.js
2385 var input_default = { 2385 var input_default = {
2386 // index 组件 2386 // index 组件
2387 input: { 2387 input: {
@@ -2422,7 +2422,7 @@ var input_default = { @@ -2422,7 +2422,7 @@ var input_default = {
2422 } 2422 }
2423 }; 2423 };
2424 2424
2425 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/keyboard.js 2425 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/keyboard.js
2426 var keyboard_default = { 2426 var keyboard_default = {
2427 // 键盘组件 2427 // 键盘组件
2428 keyboard: { 2428 keyboard: {
@@ -2445,7 +2445,7 @@ var keyboard_default = { @@ -2445,7 +2445,7 @@ var keyboard_default = {
2445 } 2445 }
2446 }; 2446 };
2447 2447
2448 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/line.js 2448 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/line.js
2449 var line_default = { 2449 var line_default = {
2450 // line组件 2450 // line组件
2451 line: { 2451 line: {
@@ -2458,7 +2458,7 @@ var line_default = { @@ -2458,7 +2458,7 @@ var line_default = {
2458 } 2458 }
2459 }; 2459 };
2460 2460
2461 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/lineProgress.js 2461 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/lineProgress.js
2462 var lineProgress_default = { 2462 var lineProgress_default = {
2463 // lineProgress 组件 2463 // lineProgress 组件
2464 lineProgress: { 2464 lineProgress: {
@@ -2470,7 +2470,7 @@ var lineProgress_default = { @@ -2470,7 +2470,7 @@ var lineProgress_default = {
2470 } 2470 }
2471 }; 2471 };
2472 2472
2473 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/link.js 2473 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/link.js
2474 var { 2474 var {
2475 color: color2 2475 color: color2
2476 } = config_default; 2476 } = config_default;
@@ -2487,7 +2487,7 @@ var link_default = { @@ -2487,7 +2487,7 @@ var link_default = {
2487 } 2487 }
2488 }; 2488 };
2489 2489
2490 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/list.js 2490 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/list.js
2491 var list_default = { 2491 var list_default = {
2492 // list 组件 2492 // list 组件
2493 list: { 2493 list: {
@@ -2508,7 +2508,7 @@ var list_default = { @@ -2508,7 +2508,7 @@ var list_default = {
2508 } 2508 }
2509 }; 2509 };
2510 2510
2511 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/listItem.js 2511 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/listItem.js
2512 var listItem_default = { 2512 var listItem_default = {
2513 // listItem 组件 2513 // listItem 组件
2514 listItem: { 2514 listItem: {
@@ -2516,7 +2516,7 @@ var listItem_default = { @@ -2516,7 +2516,7 @@ var listItem_default = {
2516 } 2516 }
2517 }; 2517 };
2518 2518
2519 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/loadingIcon.js 2519 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/loadingIcon.js
2520 var { 2520 var {
2521 color: color3 2521 color: color3
2522 } = config_default; 2522 } = config_default;
@@ -2537,7 +2537,7 @@ var loadingIcon_default = { @@ -2537,7 +2537,7 @@ var loadingIcon_default = {
2537 } 2537 }
2538 }; 2538 };
2539 2539
2540 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/loadingPage.js 2540 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/loadingPage.js
2541 var loadingPage_default = { 2541 var loadingPage_default = {
2542 // loading-page组件 2542 // loading-page组件
2543 loadingPage: { 2543 loadingPage: {
@@ -2553,7 +2553,7 @@ var loadingPage_default = { @@ -2553,7 +2553,7 @@ var loadingPage_default = {
2553 } 2553 }
2554 }; 2554 };
2555 2555
2556 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/loadmore.js 2556 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/loadmore.js
2557 var loadmore_default = { 2557 var loadmore_default = {
2558 // loadmore 组件 2558 // loadmore 组件
2559 loadmore: { 2559 loadmore: {
@@ -2578,7 +2578,7 @@ var loadmore_default = { @@ -2578,7 +2578,7 @@ var loadmore_default = {
2578 } 2578 }
2579 }; 2579 };
2580 2580
2581 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/modal.js 2581 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/modal.js
2582 var modal_default = { 2582 var modal_default = {
2583 // modal 组件 2583 // modal 组件
2584 modal: { 2584 modal: {
@@ -2601,7 +2601,7 @@ var modal_default = { @@ -2601,7 +2601,7 @@ var modal_default = {
2601 } 2601 }
2602 }; 2602 };
2603 2603
2604 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/color.js 2604 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/color.js
2605 var color4 = { 2605 var color4 = {
2606 primary: "#3c9cff", 2606 primary: "#3c9cff",
2607 info: "#909399", 2607 info: "#909399",
@@ -2617,7 +2617,7 @@ var color4 = { @@ -2617,7 +2617,7 @@ var color4 = {
2617 }; 2617 };
2618 var color_default = color4; 2618 var color_default = color4;
2619 2619
2620 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/navbar.js 2620 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/navbar.js
2621 var navbar_default = { 2621 var navbar_default = {
2622 // navbar 组件 2622 // navbar 组件
2623 navbar: { 2623 navbar: {
@@ -2640,7 +2640,7 @@ var navbar_default = { @@ -2640,7 +2640,7 @@ var navbar_default = {
2640 } 2640 }
2641 }; 2641 };
2642 2642
2643 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/noNetwork.js 2643 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/noNetwork.js
2644 var noNetwork_default = { 2644 var noNetwork_default = {
2645 // noNetwork 2645 // noNetwork
2646 noNetwork: { 2646 noNetwork: {
@@ -2650,7 +2650,7 @@ var noNetwork_default = { @@ -2650,7 +2650,7 @@ var noNetwork_default = {
2650 } 2650 }
2651 }; 2651 };
2652 2652
2653 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/noticeBar.js 2653 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/noticeBar.js
2654 var noticeBar_default = { 2654 var noticeBar_default = {
2655 // noticeBar 2655 // noticeBar
2656 noticeBar: { 2656 noticeBar: {
@@ -2670,7 +2670,7 @@ var noticeBar_default = { @@ -2670,7 +2670,7 @@ var noticeBar_default = {
2670 } 2670 }
2671 }; 2671 };
2672 2672
2673 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/notify.js 2673 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/notify.js
2674 var notify_default = { 2674 var notify_default = {
2675 // notify组件 2675 // notify组件
2676 notify: { 2676 notify: {
@@ -2685,7 +2685,7 @@ var notify_default = { @@ -2685,7 +2685,7 @@ var notify_default = {
2685 } 2685 }
2686 }; 2686 };
2687 2687
2688 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/numberBox.js 2688 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/numberBox.js
2689 var numberBox_default = { 2689 var numberBox_default = {
2690 // 步进器组件 2690 // 步进器组件
2691 numberBox: { 2691 numberBox: {
@@ -2713,7 +2713,7 @@ var numberBox_default = { @@ -2713,7 +2713,7 @@ var numberBox_default = {
2713 } 2713 }
2714 }; 2714 };
2715 2715
2716 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/numberKeyboard.js 2716 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/numberKeyboard.js
2717 var numberKeyboard_default = { 2717 var numberKeyboard_default = {
2718 // 数字键盘 2718 // 数字键盘
2719 numberKeyboard: { 2719 numberKeyboard: {
@@ -2723,7 +2723,7 @@ var numberKeyboard_default = { @@ -2723,7 +2723,7 @@ var numberKeyboard_default = {
2723 } 2723 }
2724 }; 2724 };
2725 2725
2726 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/overlay.js 2726 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/overlay.js
2727 var overlay_default = { 2727 var overlay_default = {
2728 // overlay组件 2728 // overlay组件
2729 overlay: { 2729 overlay: {
@@ -2734,7 +2734,7 @@ var overlay_default = { @@ -2734,7 +2734,7 @@ var overlay_default = {
2734 } 2734 }
2735 }; 2735 };
2736 2736
2737 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/parse.js 2737 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/parse.js
2738 var parse_default = { 2738 var parse_default = {
2739 // parse 2739 // parse
2740 parse: { 2740 parse: {
@@ -2749,7 +2749,7 @@ var parse_default = { @@ -2749,7 +2749,7 @@ var parse_default = {
2749 } 2749 }
2750 }; 2750 };
2751 2751
2752 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/picker.js 2752 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/picker.js
2753 var picker_default = { 2753 var picker_default = {
2754 // picker 2754 // picker
2755 picker: { 2755 picker: {
@@ -2771,7 +2771,7 @@ var picker_default = { @@ -2771,7 +2771,7 @@ var picker_default = {
2771 } 2771 }
2772 }; 2772 };
2773 2773
2774 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/popup.js 2774 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/popup.js
2775 var popup_default = { 2775 var popup_default = {
2776 // popup组件 2776 // popup组件
2777 popup: { 2777 popup: {
@@ -2794,7 +2794,7 @@ var popup_default = { @@ -2794,7 +2794,7 @@ var popup_default = {
2794 } 2794 }
2795 }; 2795 };
2796 2796
2797 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/radio.js 2797 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/radio.js
2798 var radio_default = { 2798 var radio_default = {
2799 // radio组件 2799 // radio组件
2800 radio: { 2800 radio: {
@@ -2814,7 +2814,7 @@ var radio_default = { @@ -2814,7 +2814,7 @@ var radio_default = {
2814 } 2814 }
2815 }; 2815 };
2816 2816
2817 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/radioGroup.js 2817 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/radioGroup.js
2818 var radioGroup_default = { 2818 var radioGroup_default = {
2819 // radio-group组件 2819 // radio-group组件
2820 radioGroup: { 2820 radioGroup: {
@@ -2837,7 +2837,7 @@ var radioGroup_default = { @@ -2837,7 +2837,7 @@ var radioGroup_default = {
2837 } 2837 }
2838 }; 2838 };
2839 2839
2840 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/rate.js 2840 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/rate.js
2841 var rate_default = { 2841 var rate_default = {
2842 // rate组件 2842 // rate组件
2843 rate: { 2843 rate: {
@@ -2856,7 +2856,7 @@ var rate_default = { @@ -2856,7 +2856,7 @@ var rate_default = {
2856 } 2856 }
2857 }; 2857 };
2858 2858
2859 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/readMore.js 2859 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/readMore.js
2860 var readMore_default = { 2860 var readMore_default = {
2861 // readMore 2861 // readMore
2862 readMore: { 2862 readMore: {
@@ -2871,7 +2871,7 @@ var readMore_default = { @@ -2871,7 +2871,7 @@ var readMore_default = {
2871 } 2871 }
2872 }; 2872 };
2873 2873
2874 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/row.js 2874 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/row.js
2875 var row_default = { 2875 var row_default = {
2876 // row 2876 // row
2877 row: { 2877 row: {
@@ -2881,7 +2881,7 @@ var row_default = { @@ -2881,7 +2881,7 @@ var row_default = {
2881 } 2881 }
2882 }; 2882 };
2883 2883
2884 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/rowNotice.js 2884 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/rowNotice.js
2885 var rowNotice_default = { 2885 var rowNotice_default = {
2886 // rowNotice 2886 // rowNotice
2887 rowNotice: { 2887 rowNotice: {
@@ -2895,7 +2895,7 @@ var rowNotice_default = { @@ -2895,7 +2895,7 @@ var rowNotice_default = {
2895 } 2895 }
2896 }; 2896 };
2897 2897
2898 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/scrollList.js 2898 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/scrollList.js
2899 var scrollList_default = { 2899 var scrollList_default = {
2900 // scrollList 2900 // scrollList
2901 scrollList: { 2901 scrollList: {
@@ -2908,7 +2908,7 @@ var scrollList_default = { @@ -2908,7 +2908,7 @@ var scrollList_default = {
2908 } 2908 }
2909 }; 2909 };
2910 2910
2911 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/search.js 2911 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/search.js
2912 var search_default = { 2912 var search_default = {
2913 // search 2913 // search
2914 search: { 2914 search: {
@@ -2938,7 +2938,7 @@ var search_default = { @@ -2938,7 +2938,7 @@ var search_default = {
2938 } 2938 }
2939 }; 2939 };
2940 2940
2941 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/section.js 2941 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/section.js
2942 var section_default = { 2942 var section_default = {
2943 // u-section组件 2943 // u-section组件
2944 section: { 2944 section: {
@@ -2955,7 +2955,7 @@ var section_default = { @@ -2955,7 +2955,7 @@ var section_default = {
2955 } 2955 }
2956 }; 2956 };
2957 2957
2958 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/skeleton.js 2958 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/skeleton.js
2959 var skeleton_default = { 2959 var skeleton_default = {
2960 // skeleton 2960 // skeleton
2961 skeleton: { 2961 skeleton: {
@@ -2973,7 +2973,7 @@ var skeleton_default = { @@ -2973,7 +2973,7 @@ var skeleton_default = {
2973 } 2973 }
2974 }; 2974 };
2975 2975
2976 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/slider.js 2976 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/slider.js
2977 var slider_default = { 2977 var slider_default = {
2978 // slider组件 2978 // slider组件
2979 slider: { 2979 slider: {
@@ -2992,7 +2992,7 @@ var slider_default = { @@ -2992,7 +2992,7 @@ var slider_default = {
2992 } 2992 }
2993 }; 2993 };
2994 2994
2995 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/statusBar.js 2995 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/statusBar.js
2996 var statusBar_default = { 2996 var statusBar_default = {
2997 // statusBar 2997 // statusBar
2998 statusBar: { 2998 statusBar: {
@@ -3000,7 +3000,7 @@ var statusBar_default = { @@ -3000,7 +3000,7 @@ var statusBar_default = {
3000 } 3000 }
3001 }; 3001 };
3002 3002
3003 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/steps.js 3003 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/steps.js
3004 var steps_default = { 3004 var steps_default = {
3005 // steps组件 3005 // steps组件
3006 steps: { 3006 steps: {
@@ -3014,7 +3014,7 @@ var steps_default = { @@ -3014,7 +3014,7 @@ var steps_default = {
3014 } 3014 }
3015 }; 3015 };
3016 3016
3017 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/stepsItem.js 3017 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/stepsItem.js
3018 var stepsItem_default = { 3018 var stepsItem_default = {
3019 // steps-item组件 3019 // steps-item组件
3020 stepsItem: { 3020 stepsItem: {
@@ -3025,7 +3025,7 @@ var stepsItem_default = { @@ -3025,7 +3025,7 @@ var stepsItem_default = {
3025 } 3025 }
3026 }; 3026 };
3027 3027
3028 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/sticky.js 3028 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/sticky.js
3029 var sticky_default = { 3029 var sticky_default = {
3030 // sticky组件 3030 // sticky组件
3031 sticky: { 3031 sticky: {
@@ -3038,7 +3038,7 @@ var sticky_default = { @@ -3038,7 +3038,7 @@ var sticky_default = {
3038 } 3038 }
3039 }; 3039 };
3040 3040
3041 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/subsection.js 3041 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/subsection.js
3042 var subsection_default = { 3042 var subsection_default = {
3043 // subsection组件 3043 // subsection组件
3044 subsection: { 3044 subsection: {
@@ -3054,7 +3054,7 @@ var subsection_default = { @@ -3054,7 +3054,7 @@ var subsection_default = {
3054 } 3054 }
3055 }; 3055 };
3056 3056
3057 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/swipeAction.js 3057 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/swipeAction.js
3058 var swipeAction_default = { 3058 var swipeAction_default = {
3059 // swipe-action组件 3059 // swipe-action组件
3060 swipeAction: { 3060 swipeAction: {
@@ -3062,7 +3062,7 @@ var swipeAction_default = { @@ -3062,7 +3062,7 @@ var swipeAction_default = {
3062 } 3062 }
3063 }; 3063 };
3064 3064
3065 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/swipeActionItem.js 3065 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/swipeActionItem.js
3066 var swipeActionItem_default = { 3066 var swipeActionItem_default = {
3067 // swipeActionItem 组件 3067 // swipeActionItem 组件
3068 swipeActionItem: { 3068 swipeActionItem: {
@@ -3076,7 +3076,7 @@ var swipeActionItem_default = { @@ -3076,7 +3076,7 @@ var swipeActionItem_default = {
3076 } 3076 }
3077 }; 3077 };
3078 3078
3079 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/swiper.js 3079 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/swiper.js
3080 var swiper_default = { 3080 var swiper_default = {
3081 // swiper 组件 3081 // swiper 组件
3082 swiper: { 3082 swiper: {
@@ -3107,7 +3107,7 @@ var swiper_default = { @@ -3107,7 +3107,7 @@ var swiper_default = {
3107 } 3107 }
3108 }; 3108 };
3109 3109
3110 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/swipterIndicator.js 3110 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/swipterIndicator.js
3111 var swipterIndicator_default = { 3111 var swipterIndicator_default = {
3112 // swiperIndicator 组件 3112 // swiperIndicator 组件
3113 swiperIndicator: { 3113 swiperIndicator: {
@@ -3119,7 +3119,7 @@ var swipterIndicator_default = { @@ -3119,7 +3119,7 @@ var swipterIndicator_default = {
3119 } 3119 }
3120 }; 3120 };
3121 3121
3122 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/switch.js 3122 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/switch.js
3123 var switch_default = { 3123 var switch_default = {
3124 // switch 3124 // switch
3125 switch: { 3125 switch: {
@@ -3136,7 +3136,7 @@ var switch_default = { @@ -3136,7 +3136,7 @@ var switch_default = {
3136 } 3136 }
3137 }; 3137 };
3138 3138
3139 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/tabbar.js 3139 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/tabbar.js
3140 var tabbar_default = { 3140 var tabbar_default = {
3141 // tabbar 3141 // tabbar
3142 tabbar: { 3142 tabbar: {
@@ -3151,7 +3151,7 @@ var tabbar_default = { @@ -3151,7 +3151,7 @@ var tabbar_default = {
3151 } 3151 }
3152 }; 3152 };
3153 3153
3154 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/tabbarItem.js 3154 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/tabbarItem.js
3155 var tabbarItem_default = { 3155 var tabbarItem_default = {
3156 // 3156 //
3157 tabbarItem: { 3157 tabbarItem: {
@@ -3164,7 +3164,7 @@ var tabbarItem_default = { @@ -3164,7 +3164,7 @@ var tabbarItem_default = {
3164 } 3164 }
3165 }; 3165 };
3166 3166
3167 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/tabs.js 3167 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/tabs.js
3168 var tabs_default = { 3168 var tabs_default = {
3169 // 3169 //
3170 tabs: { 3170 tabs: {
@@ -3189,7 +3189,7 @@ var tabs_default = { @@ -3189,7 +3189,7 @@ var tabs_default = {
3189 } 3189 }
3190 }; 3190 };
3191 3191
3192 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/tag.js 3192 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/tag.js
3193 var tag_default = { 3193 var tag_default = {
3194 // tag 组件 3194 // tag 组件
3195 tag: { 3195 tag: {
@@ -3211,7 +3211,7 @@ var tag_default = { @@ -3211,7 +3211,7 @@ var tag_default = {
3211 } 3211 }
3212 }; 3212 };
3213 3213
3214 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/text.js 3214 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/text.js
3215 var text_default = { 3215 var text_default = {
3216 // text 组件 3216 // text 组件
3217 text: { 3217 text: {
@@ -3241,7 +3241,7 @@ var text_default = { @@ -3241,7 +3241,7 @@ var text_default = {
3241 } 3241 }
3242 }; 3242 };
3243 3243
3244 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/textarea.js 3244 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/textarea.js
3245 var textarea_default = { 3245 var textarea_default = {
3246 // textarea 组件 3246 // textarea 组件
3247 textarea: { 3247 textarea: {
@@ -3270,7 +3270,7 @@ var textarea_default = { @@ -3270,7 +3270,7 @@ var textarea_default = {
3270 } 3270 }
3271 }; 3271 };
3272 3272
3273 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/toast.js 3273 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/toast.js
3274 var toast_default = { 3274 var toast_default = {
3275 // toast组件 3275 // toast组件
3276 toast: { 3276 toast: {
@@ -3293,7 +3293,7 @@ var toast_default = { @@ -3293,7 +3293,7 @@ var toast_default = {
3293 } 3293 }
3294 }; 3294 };
3295 3295
3296 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/toolbar.js 3296 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/toolbar.js
3297 var toolbar_default = { 3297 var toolbar_default = {
3298 // toolbar 组件 3298 // toolbar 组件
3299 toolbar: { 3299 toolbar: {
@@ -3306,7 +3306,7 @@ var toolbar_default = { @@ -3306,7 +3306,7 @@ var toolbar_default = {
3306 } 3306 }
3307 }; 3307 };
3308 3308
3309 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/tooltip.js 3309 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/tooltip.js
3310 var tooltip_default = { 3310 var tooltip_default = {
3311 // tooltip 组件 3311 // tooltip 组件
3312 tooltip: { 3312 tooltip: {
@@ -3324,7 +3324,7 @@ var tooltip_default = { @@ -3324,7 +3324,7 @@ var tooltip_default = {
3324 } 3324 }
3325 }; 3325 };
3326 3326
3327 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/transition.js 3327 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/transition.js
3328 var transition_default = { 3328 var transition_default = {
3329 // transition动画组件的props 3329 // transition动画组件的props
3330 transition: { 3330 transition: {
@@ -3335,7 +3335,7 @@ var transition_default = { @@ -3335,7 +3335,7 @@ var transition_default = {
3335 } 3335 }
3336 }; 3336 };
3337 3337
3338 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props/upload.js 3338 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props/upload.js
3339 var upload_default = { 3339 var upload_default = {
3340 // upload组件 3340 // upload组件
3341 upload: { 3341 upload: {
@@ -3364,7 +3364,7 @@ var upload_default = { @@ -3364,7 +3364,7 @@ var upload_default = {
3364 } 3364 }
3365 }; 3365 };
3366 3366
3367 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/props.js 3367 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/props.js
3368 var { 3368 var {
3369 color: color5 3369 color: color5
3370 } = config_default; 3370 } = config_default;
@@ -3459,7 +3459,7 @@ var props_default = { @@ -3459,7 +3459,7 @@ var props_default = {
3459 ...upload_default 3459 ...upload_default
3460 }; 3460 };
3461 3461
3462 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/config/zIndex.js 3462 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/config/zIndex.js
3463 var zIndex_default = { 3463 var zIndex_default = {
3464 toast: 10090, 3464 toast: 10090,
3465 noNetwork: 10080, 3465 noNetwork: 10080,
@@ -3472,13 +3472,13 @@ var zIndex_default = { @@ -3472,13 +3472,13 @@ var zIndex_default = {
3472 indexListSticky: 965 3472 indexListSticky: 965
3473 }; 3473 };
3474 3474
3475 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/libs/function/platform.js 3475 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/libs/function/platform.js
3476 var platform = "none"; 3476 var platform = "none";
3477 platform = "vue3"; 3477 platform = "vue3";
3478 platform = "h5"; 3478 platform = "h5";
3479 var platform_default = platform; 3479 var platform_default = platform;
3480 3480
3481 -// C:/Users/zhuo/Desktop/practice/vue-three/AI-interlocution/node_modules/uview-plus/index.js 3481 +// ../../../../uni/ai-dialogue/node_modules/uview-plus/index.js
3482 var pleaseSetTranspileDependencies = {}; 3482 var pleaseSetTranspileDependencies = {};
3483 var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test; 3483 var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test;
3484 var $u = { 3484 var $u = {
  1 +The MIT License (MIT)
  2 +
  3 +Copyright (c) 2012 vic99999@yandex.ru
  4 +
  5 +Permission is hereby granted, free of charge, to any person obtaining a copy
  6 +of this software and associated documentation files (the "Software"), to deal
  7 +in the Software without restriction, including without limitation the rights
  8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9 +copies of the Software, and to permit persons to whom the Software is
  10 +furnished to do so, subject to the following conditions:
  11 +
  12 +The above copyright notice and this permission notice shall be included in all
  13 +copies or substantial portions of the Software.
  14 +
  15 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  21 +SOFTWARE.
  1 +MIT License
  2 +
  3 +Copyright (c) 2018 Viktor
  4 +
  5 +Permission is hereby granted, free of charge, to any person obtaining a copy
  6 +of this software and associated documentation files (the "Software"), to deal
  7 +in the Software without restriction, including without limitation the rights
  8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9 +copies of the Software, and to permit persons to whom the Software is
  10 +furnished to do so, subject to the following conditions:
  11 +
  12 +The above copyright notice and this permission notice shall be included in all
  13 +copies or substantial portions of the Software.
  14 +
  15 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  21 +SOFTWARE.
  1 +EventSource polyfill - https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
  2 +========================================================
  3 +
  4 +Пожалуйста не используйте эту обосранную библиотеку!
  5 +
  6 +Installing:
  7 +-----------
  8 +
  9 +You can get the code from npm or bower:
  10 +
  11 +```
  12 +npm install event-source-polyfill
  13 +```
  14 +
  15 +```
  16 +bower install event-source-polyfill
  17 +```
  18 +
  19 +Just include `src/eventsource.js` or `src/eventsource.min.js` in your page to use the polyfill.
  20 +
  21 +
  22 +Ionic2/Angular2 Installation:
  23 +-----------------------------
  24 +
  25 +Unless a typescript definition file is created for this polyfill, this is how you would use it in an Ionic2 project. It should (in theory) be very similar in an Angular2 project.
  26 +
  27 +```
  28 +npm install event-source-polyfill
  29 +```
  30 +
  31 +Add to (or create) src/app/polyfills.ts (path is relative to where polyfills.ts is) :
  32 +```
  33 +import 'path/to/event-source-polyfill/src/eventsource.min.js'
  34 +```
  35 +
  36 +Add anywhere you need access to EventSourcePolyfill class :
  37 +
  38 +```
  39 +declare var EventSourcePolyfill: any;
  40 +```
  41 +
  42 +Usage with webpack/browserify:
  43 +------------------------------
  44 +
  45 +```javascript
  46 +import { NativeEventSource, EventSourcePolyfill } from 'event-source-polyfill';
  47 +
  48 +const EventSource = NativeEventSource || EventSourcePolyfill;
  49 +// OR: may also need to set as global property
  50 +global.EventSource = NativeEventSource || EventSourcePolyfill;
  51 +```
  52 +
  53 +Browser support:
  54 +----------------
  55 +
  56 +* IE 10+, Firefox 3.5+, Chrome 3+, Safari 4+, Opera 12+
  57 +* IE 8 - IE 9: XDomainRequest is used internally, which has some limitations (2KB padding in the beginning is required, no way to send cookies, no way to use client certificates)
  58 +* It works on Mobile Safari, Opera Mobile, Chrome for Android, Firefox for Android
  59 +* It does not work on: Android Browser(requires 4 KB padding after every chunk), Opera Mini
  60 +
  61 +Advantages:
  62 +-----------
  63 +
  64 +* Simple server-side code
  65 +* Cross-domain requests support
  66 +
  67 +Server-side requirements:
  68 +-------------------------
  69 +
  70 +* "Last-Event-ID" is sent in a query string (CORS + "Last-Event-ID" header is not supported by all browsers)
  71 +* It is required to send 2 KB padding for IE < 10 and Chrome < 13 at the top of the response stream (the polyfill sends `padding=true` query argument)
  72 +* You need to send "comment" messages each 15-30 seconds, these messages will be used as heartbeat to detect disconnects - see https://bugzilla.mozilla.org/show_bug.cgi?id=444328
  73 +
  74 +Specification:
  75 +--------------
  76 +
  77 +* http://www.w3.org/TR/eventsource/
  78 +
  79 +Build:
  80 +------
  81 +
  82 +* To build EventSource, just install npm modules (`npm install`) and then run the build (`npm run build`). It should generate a new version of `src/eventsource.min.js`.
  83 +
  84 +Notes:
  85 +-----
  86 + * If you are using HTTP Basic Authentication, you can embed credentials into the URL - `http://username:password@github.com`.
  87 +
  88 +Custom Headers:
  89 +---------------
  90 +```
  91 +var es = new EventSourcePolyfill('/events', {
  92 + headers: {
  93 + 'X-Custom-Header': 'value'
  94 + }
  95 +});
  96 +```
  97 +
  98 +Custom query parameter name for the last event id:
  99 +---------------
  100 + * Some server require a special query parameter name for last-event-id, you can change that via option
  101 + * The default is `lastEventId`
  102 + * Example for mercure-hub (https://mercure.rocks/)
  103 +
  104 +```
  105 +var es = new EventSourcePolyfill(hubUrl, {
  106 + lastEventIdQueryParameterName: 'Last-Event-Id'
  107 +});
  108 +```
  109 +
  110 +Other EventSource polyfills:
  111 +----------------------------
  112 +
  113 +* https://github.com/remy/polyfills/blob/master/EventSource.js by Remy Sharp
  114 +* https://github.com/rwldrn/jquery.eventsource by Rick Waldron
  115 +* https://github.com/amvtek/EventSource by AmvTek
  116 +
  117 +EXAMPLE
  118 +-------
  119 +
  120 +
  121 +
  122 +server-side (node.js)
  123 +---------------------
  124 +
  125 +```javascript
  126 +var PORT = 8081;
  127 +
  128 +var http = require("http");
  129 +var fs = require("fs");
  130 +var url = require("url");
  131 +
  132 +http.createServer(function (request, response) {
  133 + var parsedURL = url.parse(request.url, true);
  134 + var pathname = parsedURL.pathname;
  135 + if (pathname === "/events.php") {
  136 +
  137 + response.writeHead(200, {
  138 + "Content-Type": "text/event-stream",
  139 + "Cache-Control": "no-store",
  140 + "Access-Control-Allow-Origin": "*"
  141 + });
  142 +
  143 + var padding = new Array(2049);
  144 + response.write(":" + padding.join(" ") + "\n"); // 2kB padding for IE
  145 + response.write("retry: 2000\n");
  146 +
  147 + var lastEventId = Number(request.headers["last-event-id"]) || Number(parsedURL.query.lastEventId) || 0;
  148 +
  149 + var timeoutId = 0;
  150 + var i = lastEventId;
  151 + var c = i + 100;
  152 + var f = function () {
  153 + if (++i < c) {
  154 + response.write("id: " + i + "\n");
  155 + response.write("data: " + i + "\n\n");
  156 + timeoutId = setTimeout(f, 1000);
  157 + } else {
  158 + response.end();
  159 + }
  160 + };
  161 +
  162 + f();
  163 +
  164 + response.on("close", function () {
  165 + clearTimeout(timeoutId);
  166 + });
  167 +
  168 + } else {
  169 + if (pathname === "/") {
  170 + pathname = "/index.html";
  171 + }
  172 + if (pathname === "/index.html" || pathname === "../src/eventsource.js") {
  173 + response.writeHead(200, {
  174 + "Content-Type": pathname === "/index.html" ? "text/html" : "text/javascript"
  175 + });
  176 + response.write(fs.readFileSync(__dirname + pathname));
  177 + }
  178 + response.end();
  179 + }
  180 +}).listen(PORT);
  181 +```
  182 +
  183 +or use PHP (see php/events.php)
  184 +-------------------------------
  185 +```php
  186 +<?php
  187 +
  188 + header("Content-Type: text/event-stream");
  189 + header("Cache-Control: no-store");
  190 + header("Access-Control-Allow-Origin: *");
  191 +
  192 + $lastEventId = floatval(isset($_SERVER["HTTP_LAST_EVENT_ID"]) ? $_SERVER["HTTP_LAST_EVENT_ID"] : 0);
  193 + if ($lastEventId == 0) {
  194 + $lastEventId = floatval(isset($_GET["lastEventId"]) ? $_GET["lastEventId"] : 0);
  195 + }
  196 +
  197 + echo ":" . str_repeat(" ", 2048) . "\n"; // 2 kB padding for IE
  198 + echo "retry: 2000\n";
  199 +
  200 + // event-stream
  201 + $i = $lastEventId;
  202 + $c = $i + 100;
  203 + while (++$i < $c) {
  204 + echo "id: " . $i . "\n";
  205 + echo "data: " . $i . ";\n\n";
  206 + ob_flush();
  207 + flush();
  208 + sleep(1);
  209 + }
  210 +
  211 +?>
  212 +```
  213 +
  214 +index.html (php/index.html):
  215 +----------------------------
  216 +```html
  217 +<!DOCTYPE html>
  218 +<html>
  219 +<head>
  220 + <meta charset="utf-8" />
  221 + <title>EventSource example</title>
  222 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  223 + <script src="../src/eventsource.js"></script>
  224 + <script>
  225 + var es = new EventSource("events.php");
  226 + var listener = function (event) {
  227 + var div = document.createElement("div");
  228 + var type = event.type;
  229 + div.appendChild(document.createTextNode(type + ": " + (type === "message" ? event.data : es.url)));
  230 + document.body.appendChild(div);
  231 + };
  232 + es.addEventListener("open", listener);
  233 + es.addEventListener("message", listener);
  234 + es.addEventListener("error", listener);
  235 + </script>
  236 +</head>
  237 +<body>
  238 +</body>
  239 +</html>
  240 +```
  241 +
  242 +Usage in node.js:
  243 +=================
  244 +With some dynamic imports it may work in node.js:
  245 +
  246 +Install the library and the dependency:
  247 +`npm install @titelmedia/node-fetch`
  248 +`npm install event-source-polyfill`
  249 +
  250 +x.js:
  251 +```javascript
  252 +// The @titelmedia/node-fetch is used instead of node-fetch as it supports ReadableStream Web API
  253 +import('@titelmedia/node-fetch').then(function (fetch) {
  254 + globalThis.fetch = fetch.default;
  255 + globalThis.Response = fetch.default.Response;
  256 + import('event-source-polyfill').then(function (x) {
  257 + var es = new x.default.EventSourcePolyfill('http://localhost:8004/events');
  258 + es.onerror = es.onopen = es.onmessage = function (event) {
  259 + console.log(event.type + ': ' + event.data);
  260 + };
  261 + });
  262 +});
  263 +```
  264 +
  265 +`node --experimental-modules ./x.js`
  266 +
  267 +License
  268 +-------
  269 +The MIT License (MIT)
  270 +
  271 +Copyright (c) 2012 vic99999@yandex.ru
  272 +
  273 +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  274 +
  275 +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  276 +
  277 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1 +{
  2 + "name": "event-source-polyfill",
  3 + "version": "1.0.31",
  4 + "description": "A polyfill for http://www.w3.org/TR/eventsource/ ",
  5 + "main": "src/eventsource.js",
  6 + "scripts": {
  7 + "build": "grunt"
  8 + },
  9 + "repository": {
  10 + "type": "git",
  11 + "url": "git://github.com/Yaffle/EventSource.git"
  12 + },
  13 + "keywords": [
  14 + "sse",
  15 + "server sent events",
  16 + "eventsource",
  17 + "event-source",
  18 + "polyfill"
  19 + ],
  20 + "files": [
  21 + "src/*"
  22 + ],
  23 + "author": "Yaffle (https://github.com/Yaffle)",
  24 + "license": "MIT",
  25 + "bugs": {
  26 + "url": "https://github.com/Yaffle/EventSource/issues"
  27 + },
  28 + "homepage": "https://github.com/Yaffle/EventSource",
  29 + "devDependencies": {
  30 + "grunt": "^1.4.1",
  31 + "grunt-cli": "^1.4.3",
  32 + "grunt-contrib-uglify": "^5.0.1"
  33 + }
  34 +}
  1 +/** @license
  2 + * eventsource.js
  3 + * Available under MIT License (MIT)
  4 + * https://github.com/Yaffle/EventSource/
  5 + */
  6 +
  7 +/*jslint indent: 2, vars: true, plusplus: true */
  8 +/*global setTimeout, clearTimeout */
  9 +
  10 +(function (global) {
  11 + "use strict";
  12 +
  13 + var setTimeout = global.setTimeout;
  14 + var clearTimeout = global.clearTimeout;
  15 + var XMLHttpRequest = global.XMLHttpRequest;
  16 + var XDomainRequest = global.XDomainRequest;
  17 + var ActiveXObject = global.ActiveXObject;
  18 + var NativeEventSource = global.EventSource;
  19 +
  20 + var document = global.document;
  21 + var Promise = global.Promise;
  22 + var fetch = global.fetch;
  23 + var Response = global.Response;
  24 + var TextDecoder = global.TextDecoder;
  25 + var TextEncoder = global.TextEncoder;
  26 + var AbortController = global.AbortController;
  27 +
  28 + if (typeof window !== "undefined" && typeof document !== "undefined" && !("readyState" in document) && document.body == null) { // Firefox 2
  29 + document.readyState = "loading";
  30 + window.addEventListener("load", function (event) {
  31 + document.readyState = "complete";
  32 + }, false);
  33 + }
  34 +
  35 + if (XMLHttpRequest == null && ActiveXObject != null) { // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6
  36 + XMLHttpRequest = function () {
  37 + return new ActiveXObject("Microsoft.XMLHTTP");
  38 + };
  39 + }
  40 +
  41 + if (Object.create == undefined) {
  42 + Object.create = function (C) {
  43 + function F(){}
  44 + F.prototype = C;
  45 + return new F();
  46 + };
  47 + }
  48 +
  49 + if (!Date.now) {
  50 + Date.now = function now() {
  51 + return new Date().getTime();
  52 + };
  53 + }
  54 +
  55 + // see #118 (Promise#finally with polyfilled Promise)
  56 + // see #123 (data URLs crash Edge)
  57 + // see #125 (CSP violations)
  58 + // see pull/#138
  59 + // => No way to polyfill Promise#finally
  60 +
  61 + if (AbortController == undefined) {
  62 + var originalFetch2 = fetch;
  63 + fetch = function (url, options) {
  64 + var signal = options.signal;
  65 + return originalFetch2(url, {headers: options.headers, credentials: options.credentials, cache: options.cache}).then(function (response) {
  66 + var reader = response.body.getReader();
  67 + signal._reader = reader;
  68 + if (signal._aborted) {
  69 + signal._reader.cancel();
  70 + }
  71 + return {
  72 + status: response.status,
  73 + statusText: response.statusText,
  74 + headers: response.headers,
  75 + body: {
  76 + getReader: function () {
  77 + return reader;
  78 + }
  79 + }
  80 + };
  81 + });
  82 + };
  83 + AbortController = function () {
  84 + this.signal = {
  85 + _reader: null,
  86 + _aborted: false
  87 + };
  88 + this.abort = function () {
  89 + if (this.signal._reader != null) {
  90 + this.signal._reader.cancel();
  91 + }
  92 + this.signal._aborted = true;
  93 + };
  94 + };
  95 + }
  96 +
  97 + function TextDecoderPolyfill() {
  98 + this.bitsNeeded = 0;
  99 + this.codePoint = 0;
  100 + }
  101 +
  102 + TextDecoderPolyfill.prototype.decode = function (octets) {
  103 + function valid(codePoint, shift, octetsCount) {
  104 + if (octetsCount === 1) {
  105 + return codePoint >= 0x0080 >> shift && codePoint << shift <= 0x07FF;
  106 + }
  107 + if (octetsCount === 2) {
  108 + return codePoint >= 0x0800 >> shift && codePoint << shift <= 0xD7FF || codePoint >= 0xE000 >> shift && codePoint << shift <= 0xFFFF;
  109 + }
  110 + if (octetsCount === 3) {
  111 + return codePoint >= 0x010000 >> shift && codePoint << shift <= 0x10FFFF;
  112 + }
  113 + throw new Error();
  114 + }
  115 + function octetsCount(bitsNeeded, codePoint) {
  116 + if (bitsNeeded === 6 * 1) {
  117 + return codePoint >> 6 > 15 ? 3 : codePoint > 31 ? 2 : 1;
  118 + }
  119 + if (bitsNeeded === 6 * 2) {
  120 + return codePoint > 15 ? 3 : 2;
  121 + }
  122 + if (bitsNeeded === 6 * 3) {
  123 + return 3;
  124 + }
  125 + throw new Error();
  126 + }
  127 + var REPLACER = 0xFFFD;
  128 + var string = "";
  129 + var bitsNeeded = this.bitsNeeded;
  130 + var codePoint = this.codePoint;
  131 + for (var i = 0; i < octets.length; i += 1) {
  132 + var octet = octets[i];
  133 + if (bitsNeeded !== 0) {
  134 + if (octet < 128 || octet > 191 || !valid(codePoint << 6 | octet & 63, bitsNeeded - 6, octetsCount(bitsNeeded, codePoint))) {
  135 + bitsNeeded = 0;
  136 + codePoint = REPLACER;
  137 + string += String.fromCharCode(codePoint);
  138 + }
  139 + }
  140 + if (bitsNeeded === 0) {
  141 + if (octet >= 0 && octet <= 127) {
  142 + bitsNeeded = 0;
  143 + codePoint = octet;
  144 + } else if (octet >= 192 && octet <= 223) {
  145 + bitsNeeded = 6 * 1;
  146 + codePoint = octet & 31;
  147 + } else if (octet >= 224 && octet <= 239) {
  148 + bitsNeeded = 6 * 2;
  149 + codePoint = octet & 15;
  150 + } else if (octet >= 240 && octet <= 247) {
  151 + bitsNeeded = 6 * 3;
  152 + codePoint = octet & 7;
  153 + } else {
  154 + bitsNeeded = 0;
  155 + codePoint = REPLACER;
  156 + }
  157 + if (bitsNeeded !== 0 && !valid(codePoint, bitsNeeded, octetsCount(bitsNeeded, codePoint))) {
  158 + bitsNeeded = 0;
  159 + codePoint = REPLACER;
  160 + }
  161 + } else {
  162 + bitsNeeded -= 6;
  163 + codePoint = codePoint << 6 | octet & 63;
  164 + }
  165 + if (bitsNeeded === 0) {
  166 + if (codePoint <= 0xFFFF) {
  167 + string += String.fromCharCode(codePoint);
  168 + } else {
  169 + string += String.fromCharCode(0xD800 + (codePoint - 0xFFFF - 1 >> 10));
  170 + string += String.fromCharCode(0xDC00 + (codePoint - 0xFFFF - 1 & 0x3FF));
  171 + }
  172 + }
  173 + }
  174 + this.bitsNeeded = bitsNeeded;
  175 + this.codePoint = codePoint;
  176 + return string;
  177 + };
  178 +
  179 + // Firefox < 38 throws an error with stream option
  180 + var supportsStreamOption = function () {
  181 + try {
  182 + return new TextDecoder().decode(new TextEncoder().encode("test"), {stream: true}) === "test";
  183 + } catch (error) {
  184 + console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + error);
  185 + }
  186 + return false;
  187 + };
  188 +
  189 + // IE, Edge
  190 + if (TextDecoder == undefined || TextEncoder == undefined || !supportsStreamOption()) {
  191 + TextDecoder = TextDecoderPolyfill;
  192 + }
  193 +
  194 + var k = function () {
  195 + };
  196 +
  197 + function XHRWrapper(xhr) {
  198 + this.withCredentials = false;
  199 + this.readyState = 0;
  200 + this.status = 0;
  201 + this.statusText = "";
  202 + this.responseText = "";
  203 + this.onprogress = k;
  204 + this.onload = k;
  205 + this.onerror = k;
  206 + this.onreadystatechange = k;
  207 + this._contentType = "";
  208 + this._xhr = xhr;
  209 + this._sendTimeout = 0;
  210 + this._abort = k;
  211 + }
  212 +
  213 + XHRWrapper.prototype.open = function (method, url) {
  214 + this._abort(true);
  215 +
  216 + var that = this;
  217 + var xhr = this._xhr;
  218 + var state = 1;
  219 + var timeout = 0;
  220 +
  221 + this._abort = function (silent) {
  222 + if (that._sendTimeout !== 0) {
  223 + clearTimeout(that._sendTimeout);
  224 + that._sendTimeout = 0;
  225 + }
  226 + if (state === 1 || state === 2 || state === 3) {
  227 + state = 4;
  228 + xhr.onload = k;
  229 + xhr.onerror = k;
  230 + xhr.onabort = k;
  231 + xhr.onprogress = k;
  232 + xhr.onreadystatechange = k;
  233 + // IE 8 - 9: XDomainRequest#abort() does not fire any event
  234 + // Opera < 10: XMLHttpRequest#abort() does not fire any event
  235 + xhr.abort();
  236 + if (timeout !== 0) {
  237 + clearTimeout(timeout);
  238 + timeout = 0;
  239 + }
  240 + if (!silent) {
  241 + that.readyState = 4;
  242 + that.onabort(null);
  243 + that.onreadystatechange();
  244 + }
  245 + }
  246 + state = 0;
  247 + };
  248 +
  249 + var onStart = function () {
  250 + if (state === 1) {
  251 + //state = 2;
  252 + var status = 0;
  253 + var statusText = "";
  254 + var contentType = undefined;
  255 + if (!("contentType" in xhr)) {
  256 + try {
  257 + status = xhr.status;
  258 + statusText = xhr.statusText;
  259 + contentType = xhr.getResponseHeader("Content-Type");
  260 + } catch (error) {
  261 + // IE < 10 throws exception for `xhr.status` when xhr.readyState === 2 || xhr.readyState === 3
  262 + // Opera < 11 throws exception for `xhr.status` when xhr.readyState === 2
  263 + // https://bugs.webkit.org/show_bug.cgi?id=29121
  264 + status = 0;
  265 + statusText = "";
  266 + contentType = undefined;
  267 + // Firefox < 14, Chrome ?, Safari ?
  268 + // https://bugs.webkit.org/show_bug.cgi?id=29658
  269 + // https://bugs.webkit.org/show_bug.cgi?id=77854
  270 + }
  271 + } else {
  272 + status = 200;
  273 + statusText = "OK";
  274 + contentType = xhr.contentType;
  275 + }
  276 + if (status !== 0) {
  277 + state = 2;
  278 + that.readyState = 2;
  279 + that.status = status;
  280 + that.statusText = statusText;
  281 + that._contentType = contentType;
  282 + that.onreadystatechange();
  283 + }
  284 + }
  285 + };
  286 + var onProgress = function () {
  287 + onStart();
  288 + if (state === 2 || state === 3) {
  289 + state = 3;
  290 + var responseText = "";
  291 + try {
  292 + responseText = xhr.responseText;
  293 + } catch (error) {
  294 + // IE 8 - 9 with XMLHttpRequest
  295 + }
  296 + that.readyState = 3;
  297 + that.responseText = responseText;
  298 + that.onprogress();
  299 + }
  300 + };
  301 + var onFinish = function (type, event) {
  302 + if (event == null || event.preventDefault == null) {
  303 + event = {
  304 + preventDefault: k
  305 + };
  306 + }
  307 + // Firefox 52 fires "readystatechange" (xhr.readyState === 4) without final "readystatechange" (xhr.readyState === 3)
  308 + // IE 8 fires "onload" without "onprogress"
  309 + onProgress();
  310 + if (state === 1 || state === 2 || state === 3) {
  311 + state = 4;
  312 + if (timeout !== 0) {
  313 + clearTimeout(timeout);
  314 + timeout = 0;
  315 + }
  316 + that.readyState = 4;
  317 + if (type === "load") {
  318 + that.onload(event);
  319 + } else if (type === "error") {
  320 + that.onerror(event);
  321 + } else if (type === "abort") {
  322 + that.onabort(event);
  323 + } else {
  324 + throw new TypeError();
  325 + }
  326 + that.onreadystatechange();
  327 + }
  328 + };
  329 + var onReadyStateChange = function (event) {
  330 + if (xhr != undefined) { // Opera 12
  331 + if (xhr.readyState === 4) {
  332 + if (!("onload" in xhr) || !("onerror" in xhr) || !("onabort" in xhr)) {
  333 + onFinish(xhr.responseText === "" ? "error" : "load", event);
  334 + }
  335 + } else if (xhr.readyState === 3) {
  336 + if (!("onprogress" in xhr)) { // testing XMLHttpRequest#responseText too many times is too slow in IE 11
  337 + // and in Firefox 3.6
  338 + onProgress();
  339 + }
  340 + } else if (xhr.readyState === 2) {
  341 + onStart();
  342 + }
  343 + }
  344 + };
  345 + var onTimeout = function () {
  346 + timeout = setTimeout(function () {
  347 + onTimeout();
  348 + }, 500);
  349 + if (xhr.readyState === 3) {
  350 + onProgress();
  351 + }
  352 + };
  353 +
  354 + // XDomainRequest#abort removes onprogress, onerror, onload
  355 + if ("onload" in xhr) {
  356 + xhr.onload = function (event) {
  357 + onFinish("load", event);
  358 + };
  359 + }
  360 + if ("onerror" in xhr) {
  361 + xhr.onerror = function (event) {
  362 + onFinish("error", event);
  363 + };
  364 + }
  365 + // improper fix to match Firefox behaviour, but it is better than just ignore abort
  366 + // see https://bugzilla.mozilla.org/show_bug.cgi?id=768596
  367 + // https://bugzilla.mozilla.org/show_bug.cgi?id=880200
  368 + // https://code.google.com/p/chromium/issues/detail?id=153570
  369 + // IE 8 fires "onload" without "onprogress
  370 + if ("onabort" in xhr) {
  371 + xhr.onabort = function (event) {
  372 + onFinish("abort", event);
  373 + };
  374 + }
  375 +
  376 + if ("onprogress" in xhr) {
  377 + xhr.onprogress = onProgress;
  378 + }
  379 +
  380 + // IE 8 - 9 (XMLHTTPRequest)
  381 + // Opera < 12
  382 + // Firefox < 3.5
  383 + // Firefox 3.5 - 3.6 - ? < 9.0
  384 + // onprogress is not fired sometimes or delayed
  385 + // see also #64 (significant lag in IE 11)
  386 + if ("onreadystatechange" in xhr) {
  387 + xhr.onreadystatechange = function (event) {
  388 + onReadyStateChange(event);
  389 + };
  390 + }
  391 +
  392 + if ("contentType" in xhr || !("ontimeout" in XMLHttpRequest.prototype)) {
  393 + url += (url.indexOf("?") === -1 ? "?" : "&") + "padding=true";
  394 + }
  395 + xhr.open(method, url, true);
  396 +
  397 + if ("readyState" in xhr) {
  398 + // workaround for Opera 12 issue with "progress" events
  399 + // #91 (XMLHttpRequest onprogress not fired for streaming response in Edge 14-15-?)
  400 + timeout = setTimeout(function () {
  401 + onTimeout();
  402 + }, 0);
  403 + }
  404 + };
  405 + XHRWrapper.prototype.abort = function () {
  406 + this._abort(false);
  407 + };
  408 + XHRWrapper.prototype.getResponseHeader = function (name) {
  409 + return this._contentType;
  410 + };
  411 + XHRWrapper.prototype.setRequestHeader = function (name, value) {
  412 + var xhr = this._xhr;
  413 + if ("setRequestHeader" in xhr) {
  414 + xhr.setRequestHeader(name, value);
  415 + }
  416 + };
  417 + XHRWrapper.prototype.getAllResponseHeaders = function () {
  418 + // XMLHttpRequest#getAllResponseHeaders returns null for CORS requests in Firefox 3.6.28
  419 + return this._xhr.getAllResponseHeaders != undefined ? this._xhr.getAllResponseHeaders() || "" : "";
  420 + };
  421 + XHRWrapper.prototype.send = function () {
  422 + // loading indicator in Safari < ? (6), Chrome < 14, Firefox
  423 + // https://bugzilla.mozilla.org/show_bug.cgi?id=736723
  424 + if ((!("ontimeout" in XMLHttpRequest.prototype) || (!("sendAsBinary" in XMLHttpRequest.prototype) && !("mozAnon" in XMLHttpRequest.prototype))) &&
  425 + document != undefined &&
  426 + document.readyState != undefined &&
  427 + document.readyState !== "complete") {
  428 + var that = this;
  429 + that._sendTimeout = setTimeout(function () {
  430 + that._sendTimeout = 0;
  431 + that.send();
  432 + }, 4);
  433 + return;
  434 + }
  435 +
  436 + var xhr = this._xhr;
  437 + // withCredentials should be set after "open" for Safari and Chrome (< 19 ?)
  438 + if ("withCredentials" in xhr) {
  439 + xhr.withCredentials = this.withCredentials;
  440 + }
  441 + try {
  442 + // xhr.send(); throws "Not enough arguments" in Firefox 3.0
  443 + xhr.send(undefined);
  444 + } catch (error1) {
  445 + // Safari 5.1.7, Opera 12
  446 + throw error1;
  447 + }
  448 + };
  449 +
  450 + function toLowerCase(name) {
  451 + return name.replace(/[A-Z]/g, function (c) {
  452 + return String.fromCharCode(c.charCodeAt(0) + 0x20);
  453 + });
  454 + }
  455 +
  456 + function HeadersPolyfill(all) {
  457 + // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example
  458 + var map = Object.create(null);
  459 + var array = all.split("\r\n");
  460 + for (var i = 0; i < array.length; i += 1) {
  461 + var line = array[i];
  462 + var parts = line.split(": ");
  463 + var name = parts.shift();
  464 + var value = parts.join(": ");
  465 + map[toLowerCase(name)] = value;
  466 + }
  467 + this._map = map;
  468 + }
  469 + HeadersPolyfill.prototype.get = function (name) {
  470 + return this._map[toLowerCase(name)];
  471 + };
  472 +
  473 + if (XMLHttpRequest != null && XMLHttpRequest.HEADERS_RECEIVED == null) { // IE < 9, Firefox 3.6
  474 + XMLHttpRequest.HEADERS_RECEIVED = 2;
  475 + }
  476 +
  477 + function XHRTransport() {
  478 + }
  479 +
  480 + XHRTransport.prototype.open = function (xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {
  481 + xhr.open("GET", url);
  482 + var offset = 0;
  483 + xhr.onprogress = function () {
  484 + var responseText = xhr.responseText;
  485 + var chunk = responseText.slice(offset);
  486 + offset += chunk.length;
  487 + onProgressCallback(chunk);
  488 + };
  489 + xhr.onerror = function (event) {
  490 + event.preventDefault();
  491 + onFinishCallback(new Error("NetworkError"));
  492 + };
  493 + xhr.onload = function () {
  494 + onFinishCallback(null);
  495 + };
  496 + xhr.onabort = function () {
  497 + onFinishCallback(null);
  498 + };
  499 + xhr.onreadystatechange = function () {
  500 + if (xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED) {
  501 + var status = xhr.status;
  502 + var statusText = xhr.statusText;
  503 + var contentType = xhr.getResponseHeader("Content-Type");
  504 + var headers = xhr.getAllResponseHeaders();
  505 + onStartCallback(status, statusText, contentType, new HeadersPolyfill(headers));
  506 + }
  507 + };
  508 + xhr.withCredentials = withCredentials;
  509 + for (var name in headers) {
  510 + if (Object.prototype.hasOwnProperty.call(headers, name)) {
  511 + xhr.setRequestHeader(name, headers[name]);
  512 + }
  513 + }
  514 + xhr.send();
  515 + return xhr;
  516 + };
  517 +
  518 + function HeadersWrapper(headers) {
  519 + this._headers = headers;
  520 + }
  521 + HeadersWrapper.prototype.get = function (name) {
  522 + return this._headers.get(name);
  523 + };
  524 +
  525 + function FetchTransport() {
  526 + }
  527 +
  528 + FetchTransport.prototype.open = function (xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {
  529 + var reader = null;
  530 + var controller = new AbortController();
  531 + var signal = controller.signal;
  532 + var textDecoder = new TextDecoder();
  533 + fetch(url, {
  534 + headers: headers,
  535 + credentials: withCredentials ? "include" : "same-origin",
  536 + signal: signal,
  537 + cache: "no-store"
  538 + }).then(function (response) {
  539 + reader = response.body.getReader();
  540 + onStartCallback(response.status, response.statusText, response.headers.get("Content-Type"), new HeadersWrapper(response.headers));
  541 + // see https://github.com/promises-aplus/promises-spec/issues/179
  542 + return new Promise(function (resolve, reject) {
  543 + var readNextChunk = function () {
  544 + reader.read().then(function (result) {
  545 + if (result.done) {
  546 + //Note: bytes in textDecoder are ignored
  547 + resolve(undefined);
  548 + } else {
  549 + var chunk = textDecoder.decode(result.value, {stream: true});
  550 + onProgressCallback(chunk);
  551 + readNextChunk();
  552 + }
  553 + })["catch"](function (error) {
  554 + reject(error);
  555 + });
  556 + };
  557 + readNextChunk();
  558 + });
  559 + })["catch"](function (error) {
  560 + if (error.name === "AbortError") {
  561 + return undefined;
  562 + } else {
  563 + return error;
  564 + }
  565 + }).then(function (error) {
  566 + onFinishCallback(error);
  567 + });
  568 + return {
  569 + abort: function () {
  570 + if (reader != null) {
  571 + reader.cancel(); // https://bugzilla.mozilla.org/show_bug.cgi?id=1583815
  572 + }
  573 + controller.abort();
  574 + }
  575 + };
  576 + };
  577 +
  578 + function EventTarget() {
  579 + this._listeners = Object.create(null);
  580 + }
  581 +
  582 + function throwError(e) {
  583 + setTimeout(function () {
  584 + throw e;
  585 + }, 0);
  586 + }
  587 +
  588 + EventTarget.prototype.dispatchEvent = function (event) {
  589 + event.target = this;
  590 + var typeListeners = this._listeners[event.type];
  591 + if (typeListeners != undefined) {
  592 + var length = typeListeners.length;
  593 + for (var i = 0; i < length; i += 1) {
  594 + var listener = typeListeners[i];
  595 + try {
  596 + if (typeof listener.handleEvent === "function") {
  597 + listener.handleEvent(event);
  598 + } else {
  599 + listener.call(this, event);
  600 + }
  601 + } catch (e) {
  602 + throwError(e);
  603 + }
  604 + }
  605 + }
  606 + };
  607 + EventTarget.prototype.addEventListener = function (type, listener) {
  608 + type = String(type);
  609 + var listeners = this._listeners;
  610 + var typeListeners = listeners[type];
  611 + if (typeListeners == undefined) {
  612 + typeListeners = [];
  613 + listeners[type] = typeListeners;
  614 + }
  615 + var found = false;
  616 + for (var i = 0; i < typeListeners.length; i += 1) {
  617 + if (typeListeners[i] === listener) {
  618 + found = true;
  619 + }
  620 + }
  621 + if (!found) {
  622 + typeListeners.push(listener);
  623 + }
  624 + };
  625 + EventTarget.prototype.removeEventListener = function (type, listener) {
  626 + type = String(type);
  627 + var listeners = this._listeners;
  628 + var typeListeners = listeners[type];
  629 + if (typeListeners != undefined) {
  630 + var filtered = [];
  631 + for (var i = 0; i < typeListeners.length; i += 1) {
  632 + if (typeListeners[i] !== listener) {
  633 + filtered.push(typeListeners[i]);
  634 + }
  635 + }
  636 + if (filtered.length === 0) {
  637 + delete listeners[type];
  638 + } else {
  639 + listeners[type] = filtered;
  640 + }
  641 + }
  642 + };
  643 +
  644 + function Event(type) {
  645 + this.type = type;
  646 + this.target = undefined;
  647 + }
  648 +
  649 + function MessageEvent(type, options) {
  650 + Event.call(this, type);
  651 + this.data = options.data;
  652 + this.lastEventId = options.lastEventId;
  653 + }
  654 +
  655 + MessageEvent.prototype = Object.create(Event.prototype);
  656 +
  657 + function ConnectionEvent(type, options) {
  658 + Event.call(this, type);
  659 + this.status = options.status;
  660 + this.statusText = options.statusText;
  661 + this.headers = options.headers;
  662 + }
  663 +
  664 + ConnectionEvent.prototype = Object.create(Event.prototype);
  665 +
  666 + function ErrorEvent(type, options) {
  667 + Event.call(this, type);
  668 + this.error = options.error;
  669 + }
  670 +
  671 + ErrorEvent.prototype = Object.create(Event.prototype);
  672 +
  673 + var WAITING = -1;
  674 + var CONNECTING = 0;
  675 + var OPEN = 1;
  676 + var CLOSED = 2;
  677 +
  678 + var AFTER_CR = -1;
  679 + var FIELD_START = 0;
  680 + var FIELD = 1;
  681 + var VALUE_START = 2;
  682 + var VALUE = 3;
  683 +
  684 + var contentTypeRegExp = /^text\/event\-stream(;.*)?$/i;
  685 +
  686 + var MINIMUM_DURATION = 1000;
  687 + var MAXIMUM_DURATION = 18000000;
  688 +
  689 + var parseDuration = function (value, def) {
  690 + var n = value == null ? def : parseInt(value, 10);
  691 + if (n !== n) {
  692 + n = def;
  693 + }
  694 + return clampDuration(n);
  695 + };
  696 + var clampDuration = function (n) {
  697 + return Math.min(Math.max(n, MINIMUM_DURATION), MAXIMUM_DURATION);
  698 + };
  699 +
  700 + var fire = function (that, f, event) {
  701 + try {
  702 + if (typeof f === "function") {
  703 + f.call(that, event);
  704 + }
  705 + } catch (e) {
  706 + throwError(e);
  707 + }
  708 + };
  709 +
  710 + function EventSourcePolyfill(url, options) {
  711 + EventTarget.call(this);
  712 + options = options || {};
  713 +
  714 + this.onopen = undefined;
  715 + this.onmessage = undefined;
  716 + this.onerror = undefined;
  717 +
  718 + this.url = undefined;
  719 + this.readyState = undefined;
  720 + this.withCredentials = undefined;
  721 + this.headers = undefined;
  722 +
  723 + this._close = undefined;
  724 +
  725 + start(this, url, options);
  726 + }
  727 +
  728 + function getBestXHRTransport() {
  729 + return (XMLHttpRequest != undefined && ("withCredentials" in XMLHttpRequest.prototype)) || XDomainRequest == undefined
  730 + ? new XMLHttpRequest()
  731 + : new XDomainRequest();
  732 + }
  733 +
  734 + var isFetchSupported = fetch != undefined && Response != undefined && "body" in Response.prototype;
  735 +
  736 + function start(es, url, options) {
  737 + url = String(url);
  738 + var withCredentials = Boolean(options.withCredentials);
  739 + var lastEventIdQueryParameterName = options.lastEventIdQueryParameterName || "lastEventId";
  740 +
  741 + var initialRetry = clampDuration(1000);
  742 + var heartbeatTimeout = parseDuration(options.heartbeatTimeout, 45000);
  743 +
  744 + var lastEventId = "";
  745 + var retry = initialRetry;
  746 + var wasActivity = false;
  747 + var textLength = 0;
  748 + var headers = options.headers || {};
  749 + var TransportOption = options.Transport;
  750 + var xhr = isFetchSupported && TransportOption == undefined ? undefined : new XHRWrapper(TransportOption != undefined ? new TransportOption() : getBestXHRTransport());
  751 + var transport = TransportOption != null && typeof TransportOption !== "string" ? new TransportOption() : (xhr == undefined ? new FetchTransport() : new XHRTransport());
  752 + var abortController = undefined;
  753 + var timeout = 0;
  754 + var currentState = WAITING;
  755 + var dataBuffer = "";
  756 + var lastEventIdBuffer = "";
  757 + var eventTypeBuffer = "";
  758 +
  759 + var textBuffer = "";
  760 + var state = FIELD_START;
  761 + var fieldStart = 0;
  762 + var valueStart = 0;
  763 +
  764 + var onStart = function (status, statusText, contentType, headers) {
  765 + if (currentState === CONNECTING) {
  766 + if (status === 200 && contentType != undefined && contentTypeRegExp.test(contentType)) {
  767 + currentState = OPEN;
  768 + wasActivity = Date.now();
  769 + retry = initialRetry;
  770 + es.readyState = OPEN;
  771 + var event = new ConnectionEvent("open", {
  772 + status: status,
  773 + statusText: statusText,
  774 + headers: headers
  775 + });
  776 + es.dispatchEvent(event);
  777 + fire(es, es.onopen, event);
  778 + } else {
  779 + var message = "";
  780 + if (status !== 200) {
  781 + if (statusText) {
  782 + statusText = statusText.replace(/\s+/g, " ");
  783 + }
  784 + message = "EventSource's response has a status " + status + " " + statusText + " that is not 200. Aborting the connection.";
  785 + } else {
  786 + message = "EventSource's response has a Content-Type specifying an unsupported type: " + (contentType == undefined ? "-" : contentType.replace(/\s+/g, " ")) + ". Aborting the connection.";
  787 + }
  788 + close();
  789 + var event = new ConnectionEvent("error", {
  790 + status: status,
  791 + statusText: statusText,
  792 + headers: headers
  793 + });
  794 + es.dispatchEvent(event);
  795 + fire(es, es.onerror, event);
  796 + console.error(message);
  797 + }
  798 + }
  799 + };
  800 +
  801 + var onProgress = function (textChunk) {
  802 + if (currentState === OPEN) {
  803 + var n = -1;
  804 + for (var i = 0; i < textChunk.length; i += 1) {
  805 + var c = textChunk.charCodeAt(i);
  806 + if (c === "\n".charCodeAt(0) || c === "\r".charCodeAt(0)) {
  807 + n = i;
  808 + }
  809 + }
  810 + var chunk = (n !== -1 ? textBuffer : "") + textChunk.slice(0, n + 1);
  811 + textBuffer = (n === -1 ? textBuffer : "") + textChunk.slice(n + 1);
  812 + if (textChunk !== "") {
  813 + wasActivity = Date.now();
  814 + textLength += textChunk.length;
  815 + }
  816 + for (var position = 0; position < chunk.length; position += 1) {
  817 + var c = chunk.charCodeAt(position);
  818 + if (state === AFTER_CR && c === "\n".charCodeAt(0)) {
  819 + state = FIELD_START;
  820 + } else {
  821 + if (state === AFTER_CR) {
  822 + state = FIELD_START;
  823 + }
  824 + if (c === "\r".charCodeAt(0) || c === "\n".charCodeAt(0)) {
  825 + if (state !== FIELD_START) {
  826 + if (state === FIELD) {
  827 + valueStart = position + 1;
  828 + }
  829 + var field = chunk.slice(fieldStart, valueStart - 1);
  830 + var value = chunk.slice(valueStart + (valueStart < position && chunk.charCodeAt(valueStart) === " ".charCodeAt(0) ? 1 : 0), position);
  831 + if (field === "data") {
  832 + dataBuffer += "\n";
  833 + dataBuffer += value;
  834 + } else if (field === "id") {
  835 + lastEventIdBuffer = value;
  836 + } else if (field === "event") {
  837 + eventTypeBuffer = value;
  838 + } else if (field === "retry") {
  839 + initialRetry = parseDuration(value, initialRetry);
  840 + retry = initialRetry;
  841 + } else if (field === "heartbeatTimeout") {
  842 + heartbeatTimeout = parseDuration(value, heartbeatTimeout);
  843 + if (timeout !== 0) {
  844 + clearTimeout(timeout);
  845 + timeout = setTimeout(function () {
  846 + onTimeout();
  847 + }, heartbeatTimeout);
  848 + }
  849 + }
  850 + }
  851 + if (state === FIELD_START) {
  852 + if (dataBuffer !== "") {
  853 + lastEventId = lastEventIdBuffer;
  854 + if (eventTypeBuffer === "") {
  855 + eventTypeBuffer = "message";
  856 + }
  857 + var event = new MessageEvent(eventTypeBuffer, {
  858 + data: dataBuffer.slice(1),
  859 + lastEventId: lastEventIdBuffer
  860 + });
  861 + es.dispatchEvent(event);
  862 + if (eventTypeBuffer === "open") {
  863 + fire(es, es.onopen, event);
  864 + } else if (eventTypeBuffer === "message") {
  865 + fire(es, es.onmessage, event);
  866 + } else if (eventTypeBuffer === "error") {
  867 + fire(es, es.onerror, event);
  868 + }
  869 + if (currentState === CLOSED) {
  870 + return;
  871 + }
  872 + }
  873 + dataBuffer = "";
  874 + eventTypeBuffer = "";
  875 + }
  876 + state = c === "\r".charCodeAt(0) ? AFTER_CR : FIELD_START;
  877 + } else {
  878 + if (state === FIELD_START) {
  879 + fieldStart = position;
  880 + state = FIELD;
  881 + }
  882 + if (state === FIELD) {
  883 + if (c === ":".charCodeAt(0)) {
  884 + valueStart = position + 1;
  885 + state = VALUE_START;
  886 + }
  887 + } else if (state === VALUE_START) {
  888 + state = VALUE;
  889 + }
  890 + }
  891 + }
  892 + }
  893 + }
  894 + };
  895 +
  896 + var onFinish = function (error) {
  897 + if (currentState === OPEN || currentState === CONNECTING) {
  898 + currentState = WAITING;
  899 + if (timeout !== 0) {
  900 + clearTimeout(timeout);
  901 + timeout = 0;
  902 + }
  903 + timeout = setTimeout(function () {
  904 + onTimeout();
  905 + }, retry);
  906 + retry = clampDuration(Math.min(initialRetry * 16, retry * 2));
  907 +
  908 + es.readyState = CONNECTING;
  909 + var event = new ErrorEvent("error", {error: error});
  910 + es.dispatchEvent(event);
  911 + fire(es, es.onerror, event);
  912 + if (error != undefined) {
  913 + console.error(error);
  914 + }
  915 + }
  916 + };
  917 +
  918 + var close = function () {
  919 + currentState = CLOSED;
  920 + if (abortController != undefined) {
  921 + abortController.abort();
  922 + abortController = undefined;
  923 + }
  924 + if (timeout !== 0) {
  925 + clearTimeout(timeout);
  926 + timeout = 0;
  927 + }
  928 + es.readyState = CLOSED;
  929 + };
  930 +
  931 + var onTimeout = function () {
  932 + timeout = 0;
  933 +
  934 + if (currentState !== WAITING) {
  935 + if (!wasActivity && abortController != undefined) {
  936 + onFinish(new Error("No activity within " + heartbeatTimeout + " milliseconds." + " " + (currentState === CONNECTING ? "No response received." : textLength + " chars received.") + " " + "Reconnecting."));
  937 + if (abortController != undefined) {
  938 + abortController.abort();
  939 + abortController = undefined;
  940 + }
  941 + } else {
  942 + var nextHeartbeat = Math.max((wasActivity || Date.now()) + heartbeatTimeout - Date.now(), 1);
  943 + wasActivity = false;
  944 + timeout = setTimeout(function () {
  945 + onTimeout();
  946 + }, nextHeartbeat);
  947 + }
  948 + return;
  949 + }
  950 +
  951 + wasActivity = false;
  952 + textLength = 0;
  953 + timeout = setTimeout(function () {
  954 + onTimeout();
  955 + }, heartbeatTimeout);
  956 +
  957 + currentState = CONNECTING;
  958 + dataBuffer = "";
  959 + eventTypeBuffer = "";
  960 + lastEventIdBuffer = lastEventId;
  961 + textBuffer = "";
  962 + fieldStart = 0;
  963 + valueStart = 0;
  964 + state = FIELD_START;
  965 +
  966 + // https://bugzilla.mozilla.org/show_bug.cgi?id=428916
  967 + // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.
  968 + var requestURL = url;
  969 + if (url.slice(0, 5) !== "data:" && url.slice(0, 5) !== "blob:") {
  970 + if (lastEventId !== "") {
  971 + // Remove the lastEventId parameter if it's already part of the request URL.
  972 + var i = url.indexOf("?");
  973 + requestURL = i === -1 ? url : url.slice(0, i + 1) + url.slice(i + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function (p, paramName) {
  974 + return paramName === lastEventIdQueryParameterName ? '' : p;
  975 + });
  976 + // Append the current lastEventId to the request URL.
  977 + requestURL += (url.indexOf("?") === -1 ? "?" : "&") + lastEventIdQueryParameterName +"=" + encodeURIComponent(lastEventId);
  978 + }
  979 + }
  980 + var withCredentials = es.withCredentials;
  981 + var requestHeaders = {};
  982 + requestHeaders["Accept"] = "text/event-stream";
  983 + var headers = es.headers;
  984 + if (headers != undefined) {
  985 + for (var name in headers) {
  986 + if (Object.prototype.hasOwnProperty.call(headers, name)) {
  987 + requestHeaders[name] = headers[name];
  988 + }
  989 + }
  990 + }
  991 + try {
  992 + abortController = transport.open(xhr, onStart, onProgress, onFinish, requestURL, withCredentials, requestHeaders);
  993 + } catch (error) {
  994 + close();
  995 + throw error;
  996 + }
  997 + };
  998 +
  999 + es.url = url;
  1000 + es.readyState = CONNECTING;
  1001 + es.withCredentials = withCredentials;
  1002 + es.headers = headers;
  1003 + es._close = close;
  1004 +
  1005 + onTimeout();
  1006 + }
  1007 +
  1008 + EventSourcePolyfill.prototype = Object.create(EventTarget.prototype);
  1009 + EventSourcePolyfill.prototype.CONNECTING = CONNECTING;
  1010 + EventSourcePolyfill.prototype.OPEN = OPEN;
  1011 + EventSourcePolyfill.prototype.CLOSED = CLOSED;
  1012 + EventSourcePolyfill.prototype.close = function () {
  1013 + this._close();
  1014 + };
  1015 +
  1016 + EventSourcePolyfill.CONNECTING = CONNECTING;
  1017 + EventSourcePolyfill.OPEN = OPEN;
  1018 + EventSourcePolyfill.CLOSED = CLOSED;
  1019 + EventSourcePolyfill.prototype.withCredentials = undefined;
  1020 +
  1021 + var R = NativeEventSource
  1022 + if (XMLHttpRequest != undefined && (NativeEventSource == undefined || !("withCredentials" in NativeEventSource.prototype))) {
  1023 + // Why replace a native EventSource ?
  1024 + // https://bugzilla.mozilla.org/show_bug.cgi?id=444328
  1025 + // https://bugzilla.mozilla.org/show_bug.cgi?id=831392
  1026 + // https://code.google.com/p/chromium/issues/detail?id=260144
  1027 + // https://code.google.com/p/chromium/issues/detail?id=225654
  1028 + // ...
  1029 + R = EventSourcePolyfill;
  1030 + }
  1031 +
  1032 + (function (factory) {
  1033 + if (typeof module === "object" && typeof module.exports === "object") {
  1034 + var v = factory(exports);
  1035 + if (v !== undefined) module.exports = v;
  1036 + }
  1037 + else if (typeof define === "function" && define.amd) {
  1038 + define(["exports"], factory);
  1039 + }
  1040 + else {
  1041 + factory(global);
  1042 + }
  1043 + })(function (exports) {
  1044 + exports.EventSourcePolyfill = EventSourcePolyfill;
  1045 + exports.NativeEventSource = NativeEventSource;
  1046 + exports.EventSource = R;
  1047 + });
  1048 +}(typeof globalThis === 'undefined' ? (typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : this) : globalThis));
  1 +/** @license
  2 + * eventsource.js
  3 + * Available under MIT License (MIT)
  4 + * https://github.com/Yaffle/EventSource/
  5 + */
  6 +!function(e){"use strict";var r,H=e.setTimeout,N=e.clearTimeout,j=e.XMLHttpRequest,o=e.XDomainRequest,t=e.ActiveXObject,n=e.EventSource,i=e.document,w=e.Promise,d=e.fetch,a=e.Response,h=e.TextDecoder,s=e.TextEncoder,p=e.AbortController;function c(){this.bitsNeeded=0,this.codePoint=0}"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==j&&null!=t&&(j=function(){return new t("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),c.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,i=this.codePoint,a=0;a<e.length;a+=1){var s=e[a];0!==o&&(s<128||191<s||!t(i<<6|63&s,o-6,n(o,i)))&&(o=0,i=65533,r+=String.fromCharCode(i)),0===o?(i=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(i,o,n(o,i))||(o=0,i=65533)):(o-=6,i=i<<6|63&s),0===o&&(i<=65535?r+=String.fromCharCode(i):r=(r+=String.fromCharCode(55296+(i-65535-1>>10)))+String.fromCharCode(56320+(i-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=i,r};function u(){}null!=h&&null!=s&&function(){try{return"test"===(new h).decode((new s).encode("test"),{stream:!0})}catch(e){}return!1}()||(h=c);function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=u,this.onload=u,this.onerror=u,this.onreadystatechange=u,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=u}function l(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function f(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),i=o.shift(),o=o.join(": ");t[l(i)]=o}this._map=t}function P(){}function y(e){this._headers=e}function L(){}function M(){this._listeners=Object.create(null)}function b(e){H(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function $(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function q(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function F(e,t){v.call(this,e),this.error=t.error}I.prototype.open=function(e,t){this._abort(!0);var o=this,i=this._xhr,a=1,n=0,r=(this._abort=function(e){0!==o._sendTimeout&&(N(o._sendTimeout),o._sendTimeout=0),1!==a&&2!==a&&3!==a||(a=4,i.onload=u,i.onerror=u,i.onabort=u,i.onprogress=u,i.onreadystatechange=u,i.abort(),0!==n&&(N(n),n=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),a=0},function(){if(1===a){var t=0,n="",r=void 0;if("contentType"in i)t=200,n="OK",r=i.contentType;else try{t=i.status,n=i.statusText,r=i.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(a=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),s=function(){if(r(),2===a||3===a){a=3;var e="";try{e=i.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:u}),s(),1===a||2===a||3===a){if(a=4,0!==n&&(N(n),n=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}},l=function(){n=H(function(){l()},500),3===i.readyState&&s()};"onload"in i&&(i.onload=function(e){c("load",e)}),"onerror"in i&&(i.onerror=function(e){c("error",e)}),"onabort"in i&&(i.onabort=function(e){c("abort",e)}),"onprogress"in i&&(i.onprogress=s),"onreadystatechange"in i&&(i.onreadystatechange=function(e){e=e,null!=i&&(4===i.readyState?"onload"in i&&"onerror"in i&&"onabort"in i||c(""===i.responseText?"error":"load",e):3===i.readyState?"onprogress"in i||s():2===i.readyState&&r())}),!("contentType"in i)&&"ontimeout"in j.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),i.open(e,t,!0),"readyState"in i&&(n=H(function(){l()},0))},I.prototype.abort=function(){this._abort(!1)},I.prototype.getResponseHeader=function(e){return this._contentType},I.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},I.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},I.prototype.send=function(){var e;if("ontimeout"in j.prototype&&("sendAsBinary"in j.prototype||"mozAnon"in j.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(e){throw e}}else(e=this)._sendTimeout=H(function(){e._sendTimeout=0,e.send()},4)},f.prototype.get=function(e){return this._map[l(e)]},null!=j&&null==j.HEADERS_RECEIVED&&(j.HEADERS_RECEIVED=2),P.prototype.open=function(o,i,t,n,e,r,a){o.open("GET",e);var s,c=0;for(s in o.onprogress=function(){var e=o.responseText.slice(c);c+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===j.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),i(e,t,n,new f(r)))},o.withCredentials=r,a)Object.prototype.hasOwnProperty.call(a,s)&&o.setRequestHeader(s,a[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},L.prototype.open=function(e,t,o,n,r,i,a){var s=null,c=new p,l=c.signal,u=new h;return d(r,{headers:a,credentials:i?"include":"same-origin",signal:l,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new w(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=u.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){if("AbortError"!==e.name)return e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),c.abort()}}},M.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){b(e)}}},M.prototype.addEventListener=function(e,t){e=String(e);for(var n=this._listeners,r=n[e],o=(null==r&&(n[e]=r=[]),!1),i=0;i<r.length;i+=1)r[i]===t&&(o=!0);o||r.push(t)},M.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],i=0;i<r.length;i+=1)r[i]!==t&&o.push(r[i]);0===o.length?delete n[e]:n[e]=o}},$.prototype=Object.create(v.prototype),q.prototype=Object.create(v.prototype),F.prototype=Object.create(v.prototype);var X=-1,G=0,V=1,B=2,k=-1,z=0,K=1,J=2,W=3,Y=/^text\/event\-stream(;.*)?$/i,E=1e3,m=18e6,Q=function(e,t){e=null==e?t:parseInt(e,10);return U(e=e!=e?t:e)},U=function(e){return Math.min(Math.max(e,E),m)},Z=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}};function g(e,t){function i(e,t,n,r){var o;m===G&&(200===e&&null!=n&&Y.test(n)?(m=V,y=Date.now(),f=d,c.readyState=V,o=new q("open",{status:e,statusText:t,headers:r}),c.dispatchEvent(o),Z(c,c.onopen,o)):(200!==e?t=t&&t.replace(/\s+/g," "):null!=n&&n.replace(/\s+/g," "),O(),o=new q("error",{status:e,statusText:t,headers:r}),c.dispatchEvent(o),Z(c,c.onerror,o)))}function a(e){if(m===V){for(var t=-1,n=0;n<e.length;n+=1)(a=e.charCodeAt(n))!=="\n".charCodeAt(0)&&a!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?S:"")+e.slice(0,t+1);S=(-1===t?S:"")+e.slice(t+1),""!==e&&(y=Date.now(),v+=e.length);for(var o=0;o<r.length;o+=1){var i,a=r.charCodeAt(o);if(x===k&&a==="\n".charCodeAt(0))x=z;else if(x===k&&(x=z),a==="\r".charCodeAt(0)||a==="\n".charCodeAt(0)){if(x!==z&&(x===K&&(R=o+1),s=r.slice(A,R-1),i=r.slice(R+(R<o&&r.charCodeAt(R)===" ".charCodeAt(0)?1:0),o),"data"===s?C=C+"\n"+i:"id"===s?T=i:"event"===s?_=i:"retry"===s?(d=Q(i,d),f=d):"heartbeatTimeout"===s&&(h=Q(i,h),0!==E&&(N(E),E=H(function(){D()},h)))),x===z){if(""!==C){p=T;var s=new $(_=""===_?"message":_,{data:C.slice(1),lastEventId:T});if(c.dispatchEvent(s),"open"===_?Z(c,c.onopen,s):"message"===_?Z(c,c.onmessage,s):"error"===_&&Z(c,c.onerror,s),m===B)return}_=C=""}x=a==="\r".charCodeAt(0)?k:z}else x===z&&(A=o,x=K),x===K?a===":".charCodeAt(0)&&(R=o+1,x=J):x===J&&(x=W)}}}function s(e){m!==V&&m!==G||(m=X,0!==E&&(N(E),E=0),E=H(function(){D()},f),f=U(Math.min(16*d,2*f)),c.readyState=G,e=new F("error",{error:e}),c.dispatchEvent(e),Z(c,c.onerror,e))}var c,l,u,d,h,p,f,y,v,n,g,w,b,E,m,C,T,_,S,x,A,R,O,D;M.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,c=this,l=e,e=t,l=String(l),t=Boolean(e.withCredentials),u=e.lastEventIdQueryParameterName||"lastEventId",d=U(1e3),h=Q(e.heartbeatTimeout,45e3),p="",f=d,y=!1,v=0,n=e.headers||{},e=e.Transport,g=ee&&null==e?void 0:new I(new(null!=e?e:null!=j&&"withCredentials"in j.prototype||null==o?j:o)),w=new(null!=e&&"string"!=typeof e?e:null==g?L:P),b=void 0,m=X,S=_=T=C="",x=z,R=A=E=0,O=function(){m=B,null!=b&&(b.abort(),b=void 0),0!==E&&(N(E),E=0),c.readyState=B},D=function(){if(E=0,m!==X)y||null==b?(e=Math.max((y||Date.now())+h-Date.now(),1),y=!1,E=H(function(){D()},e)):(s(new Error("No activity within "+h+" milliseconds. "+(m===G?"No response received.":v+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0));else{y=!1,v=0,E=H(function(){D()},h),m=G,T=p,S=_=C="",R=A=0,x=z;var e=l,t=("data:"!==l.slice(0,5)&&"blob:"!==l.slice(0,5)&&""!==p&&(e=-1===(t=l.indexOf("?"))?l:l.slice(0,t+1)+l.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===u?"":e}),e+=(-1===l.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(p)),c.withCredentials),n={Accept:"text/event-stream"},r=c.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{b=w.open(g,i,a,s,e,t,n)}catch(e){throw O(),e}}},c.url=l,c.readyState=G,c.withCredentials=t,c.headers=n,c._close=O,D()}var ee=null!=d&&null!=a&&"body"in a.prototype;(g.prototype=Object.create(M.prototype)).CONNECTING=G,g.prototype.OPEN=V,g.prototype.CLOSED=B,g.prototype.close=function(){this._close()},g.CONNECTING=G,g.OPEN=V,g.CLOSED=B,g.prototype.withCredentials=void 0;var C=n;null==j||null!=n&&"withCredentials"in n.prototype||(C=g),a=function(e){e.EventSourcePolyfill=g,e.NativeEventSource=n,e.EventSource=C},"object"==typeof module&&"object"==typeof module.exports?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(e)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:this:globalThis);