@be-link/cls-logger 1.0.1-beta.20 → 1.0.1-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +280 -68
- package/dist/index.esm.js +104 -127
- package/dist/index.js +104 -127
- package/dist/index.umd.js +106 -131
- package/dist/mini/performanceMonitor.d.ts.map +1 -1
- package/dist/mini.esm.js +0 -1
- package/dist/mini.js +0 -1
- package/dist/types.d.ts +9 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/web/performanceMonitor.d.ts.map +1 -1
- package/dist/web.esm.js +103 -126
- package/dist/web.js +103 -126
- package/package.json +3 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BeLinkClsLogger = {}));
|
|
5
|
-
})(this, (function (exports) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('web-vitals')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'web-vitals'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BeLinkClsLogger = {}, global.webVitals));
|
|
5
|
+
})(this, (function (exports, webVitals) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function isPlainObject(value) {
|
|
8
8
|
return Object.prototype.toString.call(value) === '[object Object]';
|
|
@@ -1964,14 +1964,10 @@
|
|
|
1964
1964
|
return '';
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
value,
|
|
1972
|
-
...extra,
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1967
|
+
/**
|
|
1968
|
+
* 安装浏览器性能监控
|
|
1969
|
+
* 使用 Google web-vitals 库实现 Core Web Vitals 指标采集
|
|
1970
|
+
*/
|
|
1975
1971
|
function installBrowserPerformanceMonitor(report, options) {
|
|
1976
1972
|
if (typeof window === 'undefined')
|
|
1977
1973
|
return;
|
|
@@ -1980,145 +1976,100 @@
|
|
|
1980
1976
|
return;
|
|
1981
1977
|
w.__beLinkClsLoggerPerfInstalled__ = true;
|
|
1982
1978
|
const ignoreUrls = [...DEFAULT_IGNORE, ...(options.ignoreUrls ?? [])];
|
|
1983
|
-
//
|
|
1984
|
-
|
|
1979
|
+
// Web Vitals: 使用 Google web-vitals 库
|
|
1980
|
+
// 这个库会自动处理:
|
|
1981
|
+
// - LCP 在用户交互后停止观察
|
|
1982
|
+
// - firstHiddenTime 过滤(页面隐藏后的数据不计入)
|
|
1983
|
+
// - CLS 5秒会话窗口算法
|
|
1984
|
+
// - BFCache 恢复时自动重置指标
|
|
1985
|
+
if (options.webVitals) {
|
|
1986
|
+
// FCP
|
|
1985
1987
|
try {
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
:
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1988
|
+
webVitals.onFCP((metric) => {
|
|
1989
|
+
report(options.reportType, {
|
|
1990
|
+
pagePath: getPagePath(),
|
|
1991
|
+
metric: 'FCP',
|
|
1992
|
+
value: metric.value,
|
|
1993
|
+
unit: 'ms',
|
|
1994
|
+
rating: metric.rating,
|
|
1995
|
+
id: metric.id,
|
|
1996
|
+
navigationType: metric.navigationType,
|
|
1997
|
+
});
|
|
1998
|
+
});
|
|
1995
1999
|
}
|
|
1996
2000
|
catch {
|
|
1997
2001
|
// ignore
|
|
1998
2002
|
}
|
|
1999
|
-
|
|
2000
|
-
// Web Vitals: FCP/LCP/CLS/FID
|
|
2001
|
-
if (options.webVitals && typeof globalThis.PerformanceObserver === 'function') {
|
|
2002
|
-
// FCP
|
|
2003
|
+
// LCP(自动处理用户交互后停止)
|
|
2003
2004
|
try {
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
}
|
|
2014
|
-
catch {
|
|
2015
|
-
// ignore
|
|
2016
|
-
}
|
|
2005
|
+
webVitals.onLCP((metric) => {
|
|
2006
|
+
report(options.reportType, {
|
|
2007
|
+
pagePath: getPagePath(),
|
|
2008
|
+
metric: 'LCP',
|
|
2009
|
+
value: metric.value,
|
|
2010
|
+
unit: 'ms',
|
|
2011
|
+
rating: metric.rating,
|
|
2012
|
+
id: metric.id,
|
|
2013
|
+
navigationType: metric.navigationType,
|
|
2014
|
+
});
|
|
2017
2015
|
});
|
|
2018
|
-
po.observe({ type: 'paint', buffered: true });
|
|
2019
2016
|
}
|
|
2020
2017
|
catch {
|
|
2021
2018
|
// ignore
|
|
2022
2019
|
}
|
|
2023
|
-
//
|
|
2024
|
-
let lastLcp = null;
|
|
2020
|
+
// CLS(自动处理会话窗口)
|
|
2025
2021
|
try {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2022
|
+
webVitals.onCLS((metric) => {
|
|
2023
|
+
report(options.reportType, {
|
|
2024
|
+
pagePath: getPagePath(),
|
|
2025
|
+
metric: 'CLS',
|
|
2026
|
+
value: metric.value,
|
|
2027
|
+
unit: 'score',
|
|
2028
|
+
rating: metric.rating,
|
|
2029
|
+
id: metric.id,
|
|
2030
|
+
navigationType: metric.navigationType,
|
|
2031
|
+
});
|
|
2035
2032
|
});
|
|
2036
|
-
po.observe({ type: 'largest-contentful-paint', buffered: true });
|
|
2037
|
-
const flushLcp = () => {
|
|
2038
|
-
try {
|
|
2039
|
-
if (!lastLcp)
|
|
2040
|
-
return;
|
|
2041
|
-
if (!sampleHit$1(options.sampleRate))
|
|
2042
|
-
return;
|
|
2043
|
-
if (typeof lastLcp.startTime === 'number')
|
|
2044
|
-
reportMetric(report, options.reportType, 'LCP', lastLcp.startTime, { unit: 'ms' });
|
|
2045
|
-
lastLcp = null;
|
|
2046
|
-
}
|
|
2047
|
-
catch {
|
|
2048
|
-
// ignore
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
|
-
window.addEventListener('pagehide', flushLcp, { once: true });
|
|
2052
|
-
document.addEventListener('visibilitychange', () => {
|
|
2053
|
-
if (document.visibilityState === 'hidden')
|
|
2054
|
-
flushLcp();
|
|
2055
|
-
}, { once: true });
|
|
2056
2033
|
}
|
|
2057
2034
|
catch {
|
|
2058
2035
|
// ignore
|
|
2059
2036
|
}
|
|
2060
|
-
//
|
|
2037
|
+
// INP(替代 FID,2024年3月起成为核心指标)
|
|
2061
2038
|
try {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
}
|
|
2072
|
-
catch {
|
|
2073
|
-
// ignore
|
|
2074
|
-
}
|
|
2039
|
+
webVitals.onINP((metric) => {
|
|
2040
|
+
report(options.reportType, {
|
|
2041
|
+
pagePath: getPagePath(),
|
|
2042
|
+
metric: 'INP',
|
|
2043
|
+
value: metric.value,
|
|
2044
|
+
unit: 'ms',
|
|
2045
|
+
rating: metric.rating,
|
|
2046
|
+
id: metric.id,
|
|
2047
|
+
navigationType: metric.navigationType,
|
|
2048
|
+
});
|
|
2075
2049
|
});
|
|
2076
|
-
po.observe({ type: 'layout-shift', buffered: true });
|
|
2077
|
-
const flushCls = () => {
|
|
2078
|
-
try {
|
|
2079
|
-
if (!sampleHit$1(options.sampleRate))
|
|
2080
|
-
return;
|
|
2081
|
-
reportMetric(report, options.reportType, 'CLS', clsValue, { unit: 'score' });
|
|
2082
|
-
}
|
|
2083
|
-
catch {
|
|
2084
|
-
// ignore
|
|
2085
|
-
}
|
|
2086
|
-
};
|
|
2087
|
-
window.addEventListener('pagehide', flushCls, { once: true });
|
|
2088
|
-
document.addEventListener('visibilitychange', () => {
|
|
2089
|
-
if (document.visibilityState === 'hidden')
|
|
2090
|
-
flushCls();
|
|
2091
|
-
}, { once: true });
|
|
2092
2050
|
}
|
|
2093
2051
|
catch {
|
|
2094
2052
|
// ignore
|
|
2095
2053
|
}
|
|
2096
|
-
//
|
|
2054
|
+
// TTFB
|
|
2097
2055
|
try {
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
catch {
|
|
2112
|
-
// ignore
|
|
2113
|
-
}
|
|
2056
|
+
webVitals.onTTFB((metric) => {
|
|
2057
|
+
report(options.reportType, {
|
|
2058
|
+
pagePath: getPagePath(),
|
|
2059
|
+
metric: 'TTFB',
|
|
2060
|
+
value: metric.value,
|
|
2061
|
+
unit: 'ms',
|
|
2062
|
+
rating: metric.rating,
|
|
2063
|
+
id: metric.id,
|
|
2064
|
+
navigationType: metric.navigationType,
|
|
2065
|
+
});
|
|
2114
2066
|
});
|
|
2115
|
-
po.observe({ type: 'first-input', buffered: true });
|
|
2116
2067
|
}
|
|
2117
2068
|
catch {
|
|
2118
2069
|
// ignore
|
|
2119
2070
|
}
|
|
2120
2071
|
}
|
|
2121
|
-
// Resource timing
|
|
2072
|
+
// Resource timing:资源加载耗时(web-vitals 不包含此功能,保留原有实现)
|
|
2122
2073
|
if (options.resourceTiming && typeof globalThis.PerformanceObserver === 'function') {
|
|
2123
2074
|
try {
|
|
2124
2075
|
const po = new PerformanceObserver((list) => {
|
|
@@ -2130,9 +2081,25 @@
|
|
|
2130
2081
|
if (!name || shouldIgnoreUrl(name, ignoreUrls))
|
|
2131
2082
|
continue;
|
|
2132
2083
|
const initiatorType = String(entry?.initiatorType ?? '');
|
|
2133
|
-
//
|
|
2084
|
+
// 关注 fetch/xhr/img/script(同时允许 css/other 但不强制)
|
|
2134
2085
|
if (!['xmlhttprequest', 'fetch', 'img', 'script', 'css'].includes(initiatorType))
|
|
2135
2086
|
continue;
|
|
2087
|
+
// 时序分解(便于定位慢在哪个阶段)
|
|
2088
|
+
const domainLookupStart = entry.domainLookupStart ?? 0;
|
|
2089
|
+
const domainLookupEnd = entry.domainLookupEnd ?? 0;
|
|
2090
|
+
const connectStart = entry.connectStart ?? 0;
|
|
2091
|
+
const connectEnd = entry.connectEnd ?? 0;
|
|
2092
|
+
const requestStart = entry.requestStart ?? 0;
|
|
2093
|
+
const responseStart = entry.responseStart ?? 0;
|
|
2094
|
+
const responseEnd = entry.responseEnd ?? 0;
|
|
2095
|
+
const dns = domainLookupEnd - domainLookupStart;
|
|
2096
|
+
const tcp = connectEnd - connectStart;
|
|
2097
|
+
const ttfb = responseStart - requestStart;
|
|
2098
|
+
const download = responseEnd - responseStart;
|
|
2099
|
+
// 缓存检测:transferSize=0 且 decodedBodySize>0 表示缓存命中
|
|
2100
|
+
const transferSize = entry.transferSize ?? 0;
|
|
2101
|
+
const decodedBodySize = entry.decodedBodySize ?? 0;
|
|
2102
|
+
const cached = transferSize === 0 && decodedBodySize > 0;
|
|
2136
2103
|
const payload = {
|
|
2137
2104
|
pagePath: getPagePath(),
|
|
2138
2105
|
metric: 'resource',
|
|
@@ -2140,16 +2107,26 @@
|
|
|
2140
2107
|
url: truncate$1(name, options.maxTextLength),
|
|
2141
2108
|
startTime: typeof entry?.startTime === 'number' ? entry.startTime : undefined,
|
|
2142
2109
|
duration: typeof entry?.duration === 'number' ? entry.duration : undefined,
|
|
2110
|
+
// 时序分解(跨域资源可能为 0)
|
|
2111
|
+
dns: dns > 0 ? Math.round(dns) : undefined,
|
|
2112
|
+
tcp: tcp > 0 ? Math.round(tcp) : undefined,
|
|
2113
|
+
ttfb: ttfb > 0 ? Math.round(ttfb) : undefined,
|
|
2114
|
+
download: download > 0 ? Math.round(download) : undefined,
|
|
2115
|
+
// 缓存标记
|
|
2116
|
+
cached,
|
|
2143
2117
|
};
|
|
2144
|
-
//
|
|
2145
|
-
if (
|
|
2146
|
-
payload.transferSize =
|
|
2147
|
-
if (typeof entry?.encodedBodySize === 'number')
|
|
2118
|
+
// 尺寸字段(跨域资源可能为 0)
|
|
2119
|
+
if (transferSize > 0)
|
|
2120
|
+
payload.transferSize = transferSize;
|
|
2121
|
+
if (typeof entry?.encodedBodySize === 'number' && entry.encodedBodySize > 0) {
|
|
2148
2122
|
payload.encodedBodySize = entry.encodedBodySize;
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2123
|
+
}
|
|
2124
|
+
if (decodedBodySize > 0)
|
|
2125
|
+
payload.decodedBodySize = decodedBodySize;
|
|
2126
|
+
// 协议和状态
|
|
2127
|
+
if (typeof entry?.nextHopProtocol === 'string' && entry.nextHopProtocol) {
|
|
2152
2128
|
payload.nextHopProtocol = entry.nextHopProtocol;
|
|
2129
|
+
}
|
|
2153
2130
|
if (typeof entry?.responseStatus === 'number')
|
|
2154
2131
|
payload.status = entry.responseStatus;
|
|
2155
2132
|
report(options.reportType, payload);
|
|
@@ -2177,7 +2154,6 @@
|
|
|
2177
2154
|
sampleRate: raw.sampleRate ?? 1,
|
|
2178
2155
|
ignoreUrls: raw.ignoreUrls ?? [],
|
|
2179
2156
|
webVitals: raw.webVitals ?? true,
|
|
2180
|
-
navigationTiming: raw.navigationTiming ?? true,
|
|
2181
2157
|
resourceTiming: raw.resourceTiming ?? true,
|
|
2182
2158
|
maxTextLength: raw.maxTextLength ?? 2000,
|
|
2183
2159
|
};
|
|
@@ -2269,7 +2245,6 @@
|
|
|
2269
2245
|
sampleRate: raw.sampleRate ?? 1,
|
|
2270
2246
|
ignoreUrls: raw.ignoreUrls ?? [],
|
|
2271
2247
|
webVitals: raw.webVitals ?? true,
|
|
2272
|
-
navigationTiming: raw.navigationTiming ?? true,
|
|
2273
2248
|
resourceTiming: raw.resourceTiming ?? true,
|
|
2274
2249
|
maxTextLength: raw.maxTextLength ?? 2000,
|
|
2275
2250
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performanceMonitor.d.ts","sourceRoot":"","sources":["../../src/mini/performanceMonitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEtE,KAAK,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;AA+EzD,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,QAAQ,EAChB,IAAI,GAAE,OAAO,GAAG,yBAAyB,GAAG,SAAc,GACzD,IAAI,
|
|
1
|
+
{"version":3,"file":"performanceMonitor.d.ts","sourceRoot":"","sources":["../../src/mini/performanceMonitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEtE,KAAK,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;AA+EzD,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,QAAQ,EAChB,IAAI,GAAE,OAAO,GAAG,yBAAyB,GAAG,SAAc,GACzD,IAAI,CAgBN"}
|
package/dist/mini.esm.js
CHANGED
|
@@ -1489,7 +1489,6 @@ function installMiniPerformanceMonitor(report, opts = {}) {
|
|
|
1489
1489
|
sampleRate: raw.sampleRate ?? 1,
|
|
1490
1490
|
ignoreUrls: raw.ignoreUrls ?? [],
|
|
1491
1491
|
webVitals: raw.webVitals ?? true,
|
|
1492
|
-
navigationTiming: raw.navigationTiming ?? true,
|
|
1493
1492
|
resourceTiming: raw.resourceTiming ?? true,
|
|
1494
1493
|
maxTextLength: raw.maxTextLength ?? 2000,
|
|
1495
1494
|
};
|
package/dist/mini.js
CHANGED
|
@@ -1512,7 +1512,6 @@ function installMiniPerformanceMonitor(report, opts = {}) {
|
|
|
1512
1512
|
sampleRate: raw.sampleRate ?? 1,
|
|
1513
1513
|
ignoreUrls: raw.ignoreUrls ?? [],
|
|
1514
1514
|
webVitals: raw.webVitals ?? true,
|
|
1515
|
-
navigationTiming: raw.navigationTiming ?? true,
|
|
1516
1515
|
resourceTiming: raw.resourceTiming ?? true,
|
|
1517
1516
|
maxTextLength: raw.maxTextLength ?? 2000,
|
|
1518
1517
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -244,10 +244,16 @@ export interface PerformanceMonitorOptions {
|
|
|
244
244
|
sampleRate?: number;
|
|
245
245
|
/** Web/H5:忽略的资源 url(防止递归/噪声) */
|
|
246
246
|
ignoreUrls?: Array<string | RegExp>;
|
|
247
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* Web/H5:是否采集 Web Vitals(FCP/LCP/CLS/INP/TTFB),默认 true
|
|
249
|
+
* - 使用 Google web-vitals 库实现
|
|
250
|
+
* - LCP 在用户交互后自动停止观察
|
|
251
|
+
* - CLS 使用 5 秒会话窗口算法
|
|
252
|
+
* - INP 替代 FID(2024年3月起成为核心指标)
|
|
253
|
+
* - 自动处理 BFCache 恢复时的指标重置
|
|
254
|
+
* - 上报数据包含 rating 字段:'good' | 'needs-improvement' | 'poor'
|
|
255
|
+
*/
|
|
248
256
|
webVitals?: boolean;
|
|
249
|
-
/** Web/H5:是否采集导航指标(TTFB 等),默认 true */
|
|
250
|
-
navigationTiming?: boolean;
|
|
251
257
|
/** Web/H5:是否采集资源加载耗时(PerformanceResourceTiming),默认 true */
|
|
252
258
|
resourceTiming?: boolean;
|
|
253
259
|
/** 性能指标文本最大长度(超出截断),默认 2000 */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":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EpB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;;;WAIG;QACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,yBAAyB;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performanceMonitor.d.ts","sourceRoot":"","sources":["../../src/web/performanceMonitor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"performanceMonitor.d.ts","sourceRoot":"","sources":["../../src/web/performanceMonitor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAEtE,KAAK,QAAQ,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;AAyNzD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,QAAQ,EAChB,IAAI,GAAE,OAAO,GAAG,yBAAyB,GAAG,SAAc,GACzD,IAAI,CAgBN"}
|