horse-betting/btc-ui-app-2/node_modules/@angular/common/fesm2022/xhr-CEmSPUGj.mjs
2025-06-19 16:39:08 +05:30

29 lines
720 B
JavaScript
Executable File

/**
* @license Angular v20.0.4
* (c) 2010-2025 Google LLC. https://angular.io/
* License: MIT
*/
function parseCookieValue(cookieStr, name) {
name = encodeURIComponent(name);
for (const cookie of cookieStr.split(';')) {
const eqIndex = cookie.indexOf('=');
const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];
if (cookieName.trim() === name) {
return decodeURIComponent(cookieValue);
}
}
return null;
}
/**
* A wrapper around the `XMLHttpRequest` constructor.
*
* @publicApi
*/
class XhrFactory {
}
export { XhrFactory, parseCookieValue };
//# sourceMappingURL=xhr-CEmSPUGj.mjs.map