@slickgrid-universal/utils 4.0.1-alpha.0 → 4.0.2
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/dist/cjs/domUtils.js +241 -0
- package/dist/cjs/domUtils.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/htmlElementPosition.interface.js +3 -0
- package/dist/cjs/types/htmlElementPosition.interface.js.map +1 -0
- package/dist/cjs/types/index.js +19 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/infer.type.js +4 -0
- package/dist/cjs/types/infer.type.js.map +1 -0
- package/dist/cjs/utils.js +3 -4
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/domUtils.js +222 -0
- package/dist/esm/domUtils.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/htmlElementPosition.interface.js +2 -0
- package/dist/esm/types/htmlElementPosition.interface.js.map +1 -0
- package/dist/esm/types/index.js +3 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/infer.type.js +3 -0
- package/dist/esm/types/infer.type.js.map +1 -0
- package/dist/esm/utils.js +3 -4
- package/dist/esm/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/domUtils.d.ts +88 -0
- package/dist/types/domUtils.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/htmlElementPosition.interface.d.ts +7 -0
- package/dist/types/types/htmlElementPosition.interface.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/infer.type.d.ts +2 -0
- package/dist/types/types/infer.type.d.ts.map +1 -0
- package/dist/types/utils.d.ts +3 -4
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.windowScrollPosition = exports.insertAfterElement = exports.htmlEncodeWithPadding = exports.htmlEntityDecode = exports.htmlEncode = exports.findWidthOrDefault = exports.findFirstAttribute = exports.getStyleProp = exports.getInnerSize = exports.getOffset = exports.getOffsetRelativeToParent = exports.getHTMLFromFragment = exports.emptyElement = exports.destroyAllElementProps = exports.createDomElement = exports.calculateAvailableSpace = void 0;
|
|
4
|
+
/** calculate available space for each side of the DOM element */
|
|
5
|
+
function calculateAvailableSpace(element) {
|
|
6
|
+
let bottom = 0;
|
|
7
|
+
let top = 0;
|
|
8
|
+
let left = 0;
|
|
9
|
+
let right = 0;
|
|
10
|
+
const windowHeight = window.innerHeight ?? 0;
|
|
11
|
+
const windowWidth = window.innerWidth ?? 0;
|
|
12
|
+
const scrollPosition = windowScrollPosition();
|
|
13
|
+
const pageScrollTop = scrollPosition.top;
|
|
14
|
+
const pageScrollLeft = scrollPosition.left;
|
|
15
|
+
const elmOffset = getOffset(element);
|
|
16
|
+
if (elmOffset) {
|
|
17
|
+
const elementOffsetTop = elmOffset.top ?? 0;
|
|
18
|
+
const elementOffsetLeft = elmOffset.left ?? 0;
|
|
19
|
+
top = elementOffsetTop - pageScrollTop;
|
|
20
|
+
bottom = windowHeight - (elementOffsetTop - pageScrollTop);
|
|
21
|
+
left = elementOffsetLeft - pageScrollLeft;
|
|
22
|
+
right = windowWidth - (elementOffsetLeft - pageScrollLeft);
|
|
23
|
+
}
|
|
24
|
+
return { top, bottom, left, right };
|
|
25
|
+
}
|
|
26
|
+
exports.calculateAvailableSpace = calculateAvailableSpace;
|
|
27
|
+
/**
|
|
28
|
+
* Create a DOM Element with any optional attributes or properties.
|
|
29
|
+
* It will only accept valid DOM element properties that `createElement` would accept.
|
|
30
|
+
* For example: `createDomElement('div', { className: 'my-css-class' })`,
|
|
31
|
+
* for style or dataset you need to use nested object `{ style: { display: 'none' }}
|
|
32
|
+
* The last argument is to optionally append the created element to a parent container element.
|
|
33
|
+
* @param {String} tagName - html tag
|
|
34
|
+
* @param {Object} options - element properties
|
|
35
|
+
* @param {[Element]} appendToParent - parent element to append to
|
|
36
|
+
*/
|
|
37
|
+
function createDomElement(tagName, elementOptions, appendToParent) {
|
|
38
|
+
const elm = document.createElement(tagName);
|
|
39
|
+
if (elementOptions) {
|
|
40
|
+
Object.keys(elementOptions).forEach((elmOptionKey) => {
|
|
41
|
+
if (elmOptionKey === 'innerHTML') {
|
|
42
|
+
console.warn(`[Slickgrid-Universal] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${tagName}', { innerHTML: 'some html'})", ` +
|
|
43
|
+
`it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);
|
|
44
|
+
}
|
|
45
|
+
const elmValue = elementOptions[elmOptionKey];
|
|
46
|
+
if (typeof elmValue === 'object') {
|
|
47
|
+
Object.assign(elm[elmOptionKey], elmValue);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
elm[elmOptionKey] = elementOptions[elmOptionKey];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
if (appendToParent?.appendChild) {
|
|
55
|
+
appendToParent.appendChild(elm);
|
|
56
|
+
}
|
|
57
|
+
return elm;
|
|
58
|
+
}
|
|
59
|
+
exports.createDomElement = createDomElement;
|
|
60
|
+
/**
|
|
61
|
+
* Loop through all properties of an object and nullify any properties that are instanceof HTMLElement,
|
|
62
|
+
* if we detect an array then use recursion to go inside it and apply same logic
|
|
63
|
+
* @param obj - object containing 1 or more properties with DOM Elements
|
|
64
|
+
*/
|
|
65
|
+
function destroyAllElementProps(obj) {
|
|
66
|
+
if (obj) {
|
|
67
|
+
for (const key of Object.keys(obj)) {
|
|
68
|
+
if (Array.isArray(obj[key])) {
|
|
69
|
+
destroyAllElementProps(obj[key]);
|
|
70
|
+
}
|
|
71
|
+
if (obj[key] instanceof HTMLElement) {
|
|
72
|
+
obj[key] = null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.destroyAllElementProps = destroyAllElementProps;
|
|
78
|
+
/**
|
|
79
|
+
* Empty a DOM element by removing all of its DOM element children leaving with an empty element (basically an empty shell)
|
|
80
|
+
* @return {object} element - updated element
|
|
81
|
+
*/
|
|
82
|
+
function emptyElement(element) {
|
|
83
|
+
while (element?.firstChild) {
|
|
84
|
+
element.removeChild(element.firstChild);
|
|
85
|
+
}
|
|
86
|
+
return element;
|
|
87
|
+
}
|
|
88
|
+
exports.emptyElement = emptyElement;
|
|
89
|
+
/**
|
|
90
|
+
* From a DocumentFragment, get the innerHTML or outerHTML of all child elements.
|
|
91
|
+
* We can get the HTML by looping through all fragment `childNodes`
|
|
92
|
+
*/
|
|
93
|
+
function getHTMLFromFragment(input, type = 'innerHTML') {
|
|
94
|
+
if (input instanceof DocumentFragment) {
|
|
95
|
+
return [].map.call(input.childNodes, (x) => x[type]).join('') || input.textContent || '';
|
|
96
|
+
}
|
|
97
|
+
return input;
|
|
98
|
+
}
|
|
99
|
+
exports.getHTMLFromFragment = getHTMLFromFragment;
|
|
100
|
+
/** Get offset of HTML element relative to a parent element */
|
|
101
|
+
function getOffsetRelativeToParent(parentElm, childElm) {
|
|
102
|
+
if (!parentElm || !childElm) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
const parentPos = parentElm.getBoundingClientRect();
|
|
106
|
+
const childPos = childElm.getBoundingClientRect();
|
|
107
|
+
return {
|
|
108
|
+
top: childPos.top - parentPos.top,
|
|
109
|
+
right: childPos.right - parentPos.right,
|
|
110
|
+
bottom: childPos.bottom - parentPos.bottom,
|
|
111
|
+
left: childPos.left - parentPos.left,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
exports.getOffsetRelativeToParent = getOffsetRelativeToParent;
|
|
115
|
+
/** Get HTML element offset with pure JS */
|
|
116
|
+
function getOffset(elm) {
|
|
117
|
+
if (!elm || !elm.getBoundingClientRect) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
const box = elm.getBoundingClientRect();
|
|
121
|
+
const docElem = document.documentElement;
|
|
122
|
+
let top = 0;
|
|
123
|
+
let left = 0;
|
|
124
|
+
let bottom = 0;
|
|
125
|
+
let right = 0;
|
|
126
|
+
if (box?.top !== undefined && box.left !== undefined) {
|
|
127
|
+
top = box.top + window.pageYOffset - docElem.clientTop;
|
|
128
|
+
left = box.left + window.pageXOffset - docElem.clientLeft;
|
|
129
|
+
right = box.right;
|
|
130
|
+
bottom = box.bottom;
|
|
131
|
+
}
|
|
132
|
+
return { top, left, bottom, right };
|
|
133
|
+
}
|
|
134
|
+
exports.getOffset = getOffset;
|
|
135
|
+
function getInnerSize(elm, type) {
|
|
136
|
+
let size = 0;
|
|
137
|
+
if (elm) {
|
|
138
|
+
const clientSize = type === 'height' ? 'clientHeight' : 'clientWidth';
|
|
139
|
+
const sides = type === 'height' ? ['top', 'bottom'] : ['left', 'right'];
|
|
140
|
+
size = elm[clientSize];
|
|
141
|
+
for (const side of sides) {
|
|
142
|
+
const sideSize = (parseFloat(getStyleProp(elm, `padding-${side}`) || '') || 0);
|
|
143
|
+
size -= sideSize;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return size;
|
|
147
|
+
}
|
|
148
|
+
exports.getInnerSize = getInnerSize;
|
|
149
|
+
/** Get a DOM element style property value by calling getComputedStyle() on the element */
|
|
150
|
+
function getStyleProp(elm, property) {
|
|
151
|
+
if (elm) {
|
|
152
|
+
return window.getComputedStyle(elm).getPropertyValue(property);
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
exports.getStyleProp = getStyleProp;
|
|
157
|
+
function findFirstAttribute(inputElm, attributes) {
|
|
158
|
+
if (inputElm) {
|
|
159
|
+
for (const attribute of attributes) {
|
|
160
|
+
const attrData = inputElm.getAttribute(attribute);
|
|
161
|
+
if (attrData) {
|
|
162
|
+
return attrData;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
exports.findFirstAttribute = findFirstAttribute;
|
|
169
|
+
/**
|
|
170
|
+
* Provide a width as a number or a string and find associated value in valid css style format or use default value when provided (or "auto" otherwise).
|
|
171
|
+
* @param {Number|String} inputWidth - input width, could be a string or number
|
|
172
|
+
* @param {Number | String} defaultValue [defaultValue=auto] - optional default value or use "auto" when nothing is provided
|
|
173
|
+
* @returns {String} string output
|
|
174
|
+
*/
|
|
175
|
+
function findWidthOrDefault(inputWidth, defaultValue = 'auto') {
|
|
176
|
+
return (/^[0-9]+$/i.test(`${inputWidth}`) ? `${+inputWidth}px` : inputWidth) || defaultValue;
|
|
177
|
+
}
|
|
178
|
+
exports.findWidthOrDefault = findWidthOrDefault;
|
|
179
|
+
/**
|
|
180
|
+
* HTML encode using a plain <div>
|
|
181
|
+
* Create a in-memory div, set it's inner text(which a div can encode)
|
|
182
|
+
* then grab the encoded contents back out. The div never exists on the page.
|
|
183
|
+
* @param {String} inputValue - input value to be encoded
|
|
184
|
+
* @return {String}
|
|
185
|
+
*/
|
|
186
|
+
function htmlEncode(inputValue) {
|
|
187
|
+
const val = typeof inputValue === 'string' ? inputValue : String(inputValue);
|
|
188
|
+
const entityMap = {
|
|
189
|
+
'&': '&',
|
|
190
|
+
'<': '<',
|
|
191
|
+
'>': '>',
|
|
192
|
+
'"': '"',
|
|
193
|
+
'\'': ''',
|
|
194
|
+
};
|
|
195
|
+
return (val || '').toString().replace(/[&<>"']/g, (s) => entityMap[s]);
|
|
196
|
+
}
|
|
197
|
+
exports.htmlEncode = htmlEncode;
|
|
198
|
+
/**
|
|
199
|
+
* Decode text into html entity
|
|
200
|
+
* @param string text: input text
|
|
201
|
+
* @param string text: output text
|
|
202
|
+
*/
|
|
203
|
+
function htmlEntityDecode(input) {
|
|
204
|
+
return input.replace(/&#(\d+);/g, (_match, dec) => {
|
|
205
|
+
return String.fromCharCode(dec);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
exports.htmlEntityDecode = htmlEntityDecode;
|
|
209
|
+
/**
|
|
210
|
+
* Encode string to html special char and add html space padding defined
|
|
211
|
+
* @param {string} inputStr - input string
|
|
212
|
+
* @param {number} paddingLength - padding to add
|
|
213
|
+
*/
|
|
214
|
+
function htmlEncodeWithPadding(inputStr, paddingLength) {
|
|
215
|
+
const inputStrLn = inputStr.length;
|
|
216
|
+
let outputStr = htmlEncode(inputStr);
|
|
217
|
+
if (inputStrLn < paddingLength) {
|
|
218
|
+
for (let i = inputStrLn; i < paddingLength; i++) {
|
|
219
|
+
outputStr += ` `;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return outputStr;
|
|
223
|
+
}
|
|
224
|
+
exports.htmlEncodeWithPadding = htmlEncodeWithPadding;
|
|
225
|
+
/** insert an HTML Element after a target Element in the DOM */
|
|
226
|
+
function insertAfterElement(referenceNode, newNode) {
|
|
227
|
+
referenceNode.parentNode?.insertBefore(newNode, referenceNode.nextSibling);
|
|
228
|
+
}
|
|
229
|
+
exports.insertAfterElement = insertAfterElement;
|
|
230
|
+
/**
|
|
231
|
+
* Get the Window Scroll top/left Position
|
|
232
|
+
* @returns
|
|
233
|
+
*/
|
|
234
|
+
function windowScrollPosition() {
|
|
235
|
+
return {
|
|
236
|
+
left: window.pageXOffset || document.documentElement.scrollLeft || 0,
|
|
237
|
+
top: window.pageYOffset || document.documentElement.scrollTop || 0,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
exports.windowScrollPosition = windowScrollPosition;
|
|
241
|
+
//# sourceMappingURL=domUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domUtils.js","sourceRoot":"","sources":["../../src/domUtils.ts"],"names":[],"mappings":";;;AAEA,iEAAiE;AACjE,SAAgB,uBAAuB,CAAC,OAAoB;IAC1D,IAAI,MAAM,GAAG,CAAC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/cjs/index.js
CHANGED
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./domUtils"), exports);
|
|
17
18
|
__exportStar(require("./stripTagsUtil"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
18
20
|
__exportStar(require("./utils"), exports);
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,kDAAgC;AAChC,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"htmlElementPosition.interface.js","sourceRoot":"","sources":["../../../src/types/htmlElementPosition.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./htmlElementPosition.interface"), exports);
|
|
18
|
+
__exportStar(require("./infer.type"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer.type.js","sourceRoot":"","sources":["../../../src/types/infer.type.ts"],"names":[],"mappings":";;AAKA,6CAA6C"}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -21,10 +21,9 @@ function addToArrayWhenNotExists(inputArray, inputItem, itemIdPropName = 'id') {
|
|
|
21
21
|
}
|
|
22
22
|
exports.addToArrayWhenNotExists = addToArrayWhenNotExists;
|
|
23
23
|
/**
|
|
24
|
-
* Simple function
|
|
25
|
-
* this is used in the CSV export
|
|
24
|
+
* Simple function that will return a string with the number of whitespaces asked, mostly used by the CSV export
|
|
26
25
|
* @param {Number} nbSpaces - number of white spaces to create
|
|
27
|
-
* @param {String} spaceChar - optionally provide character to use
|
|
26
|
+
* @param {String} spaceChar - optionally provide a different character to use for the whitespace (e.g. could be override to use " " in html)
|
|
28
27
|
*/
|
|
29
28
|
function addWhiteSpaces(nbSpaces, spaceChar = ' ') {
|
|
30
29
|
let result = '';
|
|
@@ -35,7 +34,7 @@ function addWhiteSpaces(nbSpaces, spaceChar = ' ') {
|
|
|
35
34
|
}
|
|
36
35
|
exports.addWhiteSpaces = addWhiteSpaces;
|
|
37
36
|
/**
|
|
38
|
-
* Remove
|
|
37
|
+
* Remove an item from the array by its index
|
|
39
38
|
* @param array input
|
|
40
39
|
* @param index
|
|
41
40
|
*/
|
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,uBAAuB,CAAU,UAAe,EAAE,SAAY,EAAE,cAAc,GAAG,IAAI;IACnG,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IACvB,IAAI,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,cAAc,IAAI,SAAS,EAAE,CAAC;QAC9E,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAyB,CAAC,KAAK,SAAS,CAAC,cAAyB,CAAC,CAAC,CAAC;IAC3H,CAAC;SAAM,CAAC;QACN,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;QACtB,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAXD,0DAWC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,QAAgB,EAAE,SAAS,GAAG,GAAG;IAC9D,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC;IACtB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAPD,wCAOC;AAED;;;;GAIG;AACH,SAAgB,sBAAsB,CAAI,KAAU,EAAE,KAAa;IACjE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAM,EAAE,CAAS,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,YAAY,CAAC,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC,CAAI,uBAAuB;gBAC7D,MAAM,CAAC,IAAI,CAAC;oBACV,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC;oBACtB,IAAI,EAAE,IAAI,CAAC,IAAI;iBAChB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAjBD,8CAiBC"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/** calculate available space for each side of the DOM element */
|
|
2
|
+
export function calculateAvailableSpace(element) {
|
|
3
|
+
let bottom = 0;
|
|
4
|
+
let top = 0;
|
|
5
|
+
let left = 0;
|
|
6
|
+
let right = 0;
|
|
7
|
+
const windowHeight = window.innerHeight ?? 0;
|
|
8
|
+
const windowWidth = window.innerWidth ?? 0;
|
|
9
|
+
const scrollPosition = windowScrollPosition();
|
|
10
|
+
const pageScrollTop = scrollPosition.top;
|
|
11
|
+
const pageScrollLeft = scrollPosition.left;
|
|
12
|
+
const elmOffset = getOffset(element);
|
|
13
|
+
if (elmOffset) {
|
|
14
|
+
const elementOffsetTop = elmOffset.top ?? 0;
|
|
15
|
+
const elementOffsetLeft = elmOffset.left ?? 0;
|
|
16
|
+
top = elementOffsetTop - pageScrollTop;
|
|
17
|
+
bottom = windowHeight - (elementOffsetTop - pageScrollTop);
|
|
18
|
+
left = elementOffsetLeft - pageScrollLeft;
|
|
19
|
+
right = windowWidth - (elementOffsetLeft - pageScrollLeft);
|
|
20
|
+
}
|
|
21
|
+
return { top, bottom, left, right };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a DOM Element with any optional attributes or properties.
|
|
25
|
+
* It will only accept valid DOM element properties that `createElement` would accept.
|
|
26
|
+
* For example: `createDomElement('div', { className: 'my-css-class' })`,
|
|
27
|
+
* for style or dataset you need to use nested object `{ style: { display: 'none' }}
|
|
28
|
+
* The last argument is to optionally append the created element to a parent container element.
|
|
29
|
+
* @param {String} tagName - html tag
|
|
30
|
+
* @param {Object} options - element properties
|
|
31
|
+
* @param {[Element]} appendToParent - parent element to append to
|
|
32
|
+
*/
|
|
33
|
+
export function createDomElement(tagName, elementOptions, appendToParent) {
|
|
34
|
+
const elm = document.createElement(tagName);
|
|
35
|
+
if (elementOptions) {
|
|
36
|
+
Object.keys(elementOptions).forEach((elmOptionKey) => {
|
|
37
|
+
if (elmOptionKey === 'innerHTML') {
|
|
38
|
+
console.warn(`[Slickgrid-Universal] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${tagName}', { innerHTML: 'some html'})", ` +
|
|
39
|
+
`it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);
|
|
40
|
+
}
|
|
41
|
+
const elmValue = elementOptions[elmOptionKey];
|
|
42
|
+
if (typeof elmValue === 'object') {
|
|
43
|
+
Object.assign(elm[elmOptionKey], elmValue);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
elm[elmOptionKey] = elementOptions[elmOptionKey];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
if (appendToParent?.appendChild) {
|
|
51
|
+
appendToParent.appendChild(elm);
|
|
52
|
+
}
|
|
53
|
+
return elm;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Loop through all properties of an object and nullify any properties that are instanceof HTMLElement,
|
|
57
|
+
* if we detect an array then use recursion to go inside it and apply same logic
|
|
58
|
+
* @param obj - object containing 1 or more properties with DOM Elements
|
|
59
|
+
*/
|
|
60
|
+
export function destroyAllElementProps(obj) {
|
|
61
|
+
if (obj) {
|
|
62
|
+
for (const key of Object.keys(obj)) {
|
|
63
|
+
if (Array.isArray(obj[key])) {
|
|
64
|
+
destroyAllElementProps(obj[key]);
|
|
65
|
+
}
|
|
66
|
+
if (obj[key] instanceof HTMLElement) {
|
|
67
|
+
obj[key] = null;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Empty a DOM element by removing all of its DOM element children leaving with an empty element (basically an empty shell)
|
|
74
|
+
* @return {object} element - updated element
|
|
75
|
+
*/
|
|
76
|
+
export function emptyElement(element) {
|
|
77
|
+
while (element?.firstChild) {
|
|
78
|
+
element.removeChild(element.firstChild);
|
|
79
|
+
}
|
|
80
|
+
return element;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* From a DocumentFragment, get the innerHTML or outerHTML of all child elements.
|
|
84
|
+
* We can get the HTML by looping through all fragment `childNodes`
|
|
85
|
+
*/
|
|
86
|
+
export function getHTMLFromFragment(input, type = 'innerHTML') {
|
|
87
|
+
if (input instanceof DocumentFragment) {
|
|
88
|
+
return [].map.call(input.childNodes, (x) => x[type]).join('') || input.textContent || '';
|
|
89
|
+
}
|
|
90
|
+
return input;
|
|
91
|
+
}
|
|
92
|
+
/** Get offset of HTML element relative to a parent element */
|
|
93
|
+
export function getOffsetRelativeToParent(parentElm, childElm) {
|
|
94
|
+
if (!parentElm || !childElm) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
const parentPos = parentElm.getBoundingClientRect();
|
|
98
|
+
const childPos = childElm.getBoundingClientRect();
|
|
99
|
+
return {
|
|
100
|
+
top: childPos.top - parentPos.top,
|
|
101
|
+
right: childPos.right - parentPos.right,
|
|
102
|
+
bottom: childPos.bottom - parentPos.bottom,
|
|
103
|
+
left: childPos.left - parentPos.left,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
/** Get HTML element offset with pure JS */
|
|
107
|
+
export function getOffset(elm) {
|
|
108
|
+
if (!elm || !elm.getBoundingClientRect) {
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
111
|
+
const box = elm.getBoundingClientRect();
|
|
112
|
+
const docElem = document.documentElement;
|
|
113
|
+
let top = 0;
|
|
114
|
+
let left = 0;
|
|
115
|
+
let bottom = 0;
|
|
116
|
+
let right = 0;
|
|
117
|
+
if (box?.top !== undefined && box.left !== undefined) {
|
|
118
|
+
top = box.top + window.pageYOffset - docElem.clientTop;
|
|
119
|
+
left = box.left + window.pageXOffset - docElem.clientLeft;
|
|
120
|
+
right = box.right;
|
|
121
|
+
bottom = box.bottom;
|
|
122
|
+
}
|
|
123
|
+
return { top, left, bottom, right };
|
|
124
|
+
}
|
|
125
|
+
export function getInnerSize(elm, type) {
|
|
126
|
+
let size = 0;
|
|
127
|
+
if (elm) {
|
|
128
|
+
const clientSize = type === 'height' ? 'clientHeight' : 'clientWidth';
|
|
129
|
+
const sides = type === 'height' ? ['top', 'bottom'] : ['left', 'right'];
|
|
130
|
+
size = elm[clientSize];
|
|
131
|
+
for (const side of sides) {
|
|
132
|
+
const sideSize = (parseFloat(getStyleProp(elm, `padding-${side}`) || '') || 0);
|
|
133
|
+
size -= sideSize;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return size;
|
|
137
|
+
}
|
|
138
|
+
/** Get a DOM element style property value by calling getComputedStyle() on the element */
|
|
139
|
+
export function getStyleProp(elm, property) {
|
|
140
|
+
if (elm) {
|
|
141
|
+
return window.getComputedStyle(elm).getPropertyValue(property);
|
|
142
|
+
}
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
export function findFirstAttribute(inputElm, attributes) {
|
|
146
|
+
if (inputElm) {
|
|
147
|
+
for (const attribute of attributes) {
|
|
148
|
+
const attrData = inputElm.getAttribute(attribute);
|
|
149
|
+
if (attrData) {
|
|
150
|
+
return attrData;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Provide a width as a number or a string and find associated value in valid css style format or use default value when provided (or "auto" otherwise).
|
|
158
|
+
* @param {Number|String} inputWidth - input width, could be a string or number
|
|
159
|
+
* @param {Number | String} defaultValue [defaultValue=auto] - optional default value or use "auto" when nothing is provided
|
|
160
|
+
* @returns {String} string output
|
|
161
|
+
*/
|
|
162
|
+
export function findWidthOrDefault(inputWidth, defaultValue = 'auto') {
|
|
163
|
+
return (/^[0-9]+$/i.test(`${inputWidth}`) ? `${+inputWidth}px` : inputWidth) || defaultValue;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* HTML encode using a plain <div>
|
|
167
|
+
* Create a in-memory div, set it's inner text(which a div can encode)
|
|
168
|
+
* then grab the encoded contents back out. The div never exists on the page.
|
|
169
|
+
* @param {String} inputValue - input value to be encoded
|
|
170
|
+
* @return {String}
|
|
171
|
+
*/
|
|
172
|
+
export function htmlEncode(inputValue) {
|
|
173
|
+
const val = typeof inputValue === 'string' ? inputValue : String(inputValue);
|
|
174
|
+
const entityMap = {
|
|
175
|
+
'&': '&',
|
|
176
|
+
'<': '<',
|
|
177
|
+
'>': '>',
|
|
178
|
+
'"': '"',
|
|
179
|
+
'\'': ''',
|
|
180
|
+
};
|
|
181
|
+
return (val || '').toString().replace(/[&<>"']/g, (s) => entityMap[s]);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Decode text into html entity
|
|
185
|
+
* @param string text: input text
|
|
186
|
+
* @param string text: output text
|
|
187
|
+
*/
|
|
188
|
+
export function htmlEntityDecode(input) {
|
|
189
|
+
return input.replace(/&#(\d+);/g, (_match, dec) => {
|
|
190
|
+
return String.fromCharCode(dec);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Encode string to html special char and add html space padding defined
|
|
195
|
+
* @param {string} inputStr - input string
|
|
196
|
+
* @param {number} paddingLength - padding to add
|
|
197
|
+
*/
|
|
198
|
+
export function htmlEncodeWithPadding(inputStr, paddingLength) {
|
|
199
|
+
const inputStrLn = inputStr.length;
|
|
200
|
+
let outputStr = htmlEncode(inputStr);
|
|
201
|
+
if (inputStrLn < paddingLength) {
|
|
202
|
+
for (let i = inputStrLn; i < paddingLength; i++) {
|
|
203
|
+
outputStr += ` `;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return outputStr;
|
|
207
|
+
}
|
|
208
|
+
/** insert an HTML Element after a target Element in the DOM */
|
|
209
|
+
export function insertAfterElement(referenceNode, newNode) {
|
|
210
|
+
referenceNode.parentNode?.insertBefore(newNode, referenceNode.nextSibling);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Get the Window Scroll top/left Position
|
|
214
|
+
* @returns
|
|
215
|
+
*/
|
|
216
|
+
export function windowScrollPosition() {
|
|
217
|
+
return {
|
|
218
|
+
left: window.pageXOffset || document.documentElement.scrollLeft || 0,
|
|
219
|
+
top: window.pageYOffset || document.documentElement.scrollTop || 0,
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=domUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domUtils.js","sourceRoot":"","sources":["../../src/domUtils.ts"],"names":[],"mappings":"AAEA,iEAAiE;AACjE,MAAM,UAAU,uBAAuB,CAAC,OAAoB;IAC1D,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;IAC3C,MAAM,cAAc,GAAG,oBAAoB,EAAE,CAAC;IAC9C,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC;IACzC,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC;IAC3C,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAErC,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,gBAAgB,GAAG,SAAS,CAA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KAAK,IAAI,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC;YAChD,SAAS,IAAI,QAAQ,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,kBAAkB,CAAC,aAA0B,EAAE,OAAoB;IACjF,aAAa,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;AAC7E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,UAAU,IAAI,CAAC;QACpE,GAAG,EAAE,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,SAAS,IAAI,CAAC;KACnE,CAAC;AACJ,CAAC"}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"htmlElementPosition.interface.js","sourceRoot":"","sources":["../../../src/types/htmlElementPosition.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer.type.js","sourceRoot":"","sources":["../../../src/types/infer.type.ts"],"names":[],"mappings":";AAKA,6CAA6C"}
|
package/dist/esm/utils.js
CHANGED
|
@@ -17,10 +17,9 @@ export function addToArrayWhenNotExists(inputArray, inputItem, itemIdPropName =
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Simple function
|
|
21
|
-
* this is used in the CSV export
|
|
20
|
+
* Simple function that will return a string with the number of whitespaces asked, mostly used by the CSV export
|
|
22
21
|
* @param {Number} nbSpaces - number of white spaces to create
|
|
23
|
-
* @param {String} spaceChar - optionally provide character to use
|
|
22
|
+
* @param {String} spaceChar - optionally provide a different character to use for the whitespace (e.g. could be override to use " " in html)
|
|
24
23
|
*/
|
|
25
24
|
export function addWhiteSpaces(nbSpaces, spaceChar = ' ') {
|
|
26
25
|
let result = '';
|
|
@@ -30,7 +29,7 @@ export function addWhiteSpaces(nbSpaces, spaceChar = ' ') {
|
|
|
30
29
|
return result;
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
33
|
-
* Remove
|
|
32
|
+
* Remove an item from the array by its index
|
|
34
33
|
* @param array input
|
|
35
34
|
* @param index
|
|
36
35
|
*/
|
package/dist/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAU,UAAe,EAAE,SAAY,EAAE,cAAc,GAAG,IAAI;IACnG,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IACvB,IAAI,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,cAAc,IAAI,SAAS,EAAE,CAAC;QAC9E,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAyB,CAAC,KAAK,SAAS,CAAC,c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CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAU,EAAE,YAAY,GAAG,IAAI;IAC/D,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;QAEtB,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;YACvB,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAC,CAAI,uBAAuB;gBAC7D,MAAM,CAAC,IAAI,CAAC;oBACV,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC;oBACtB,IAAI,EAAE,IAAI,CAAC,IAAI;iBAChB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/utils.ts","../src/stripTagsUtil.ts","../src/index.ts","../../../node_modules/.pnpm/@jest+expect-utils@29.7.0/node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../../node_modules/.pnpm/jest-diff@29.7.0/node_modules/jest-diff/build/index.d.ts","../../../node_modules/.pnpm/jest-matcher-utils@29.7.0/node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.d.ts","../../../node_modules/.pnpm/@types+jest@29.5.11/node_modules/@types/jest/index.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"48ade1f34a6fab6861326ad57aa20ae44b23016ec524234db70233e821a4e7ad","signature":"3785d4ef882565329f5a25eed1af7ebd34478003f8736d1afc4a842c22c37bde"},{"version":"093355297ed484a97532442888bcfdaf1207f59adb7031c31570eb960c5b3004","signature":"8acac7e4140e3f3c0579b5ae59fb21b921a67780da3aa050d74de32a6a44767a"},{"version":"434910d080265544fb048b4ea669d67fe43989fd443f2c27447380df78138d6f","signature":"46d7b8d7cf2ac840292bc7416576bb0fa82fb61e7698e3e2acb5c0d25691b1be"},"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"46894b2a21a60f8449ca6b2b7223b7179bba846a61b1434bed77b34b2902c306","affectsGlobalScope":true},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"cc5e65fb1729463665074b9d7163e78a4225b7af7f3a6b3c74492f415166612f","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","e8968b394e4365588f8f89cfff86435258cf10062585c1d2224627ab92acda22","285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"0d832a0650a74aafc276cb3f7bb26bde2e2270a6f87e6c871a64122e9203079b","affectsGlobalScope":true},{"version":"c6f3869f12bb5c3bb8ecd0b050ea20342b89b944eae18d313cde6b0ccc0925d7","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447"],"root":[[51,53]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"importHelpers":true,"module":99,"noEmitOnError":true,"noImplicitReturns":true,"outDir":"./esm","preserveConstEnums":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":8},"fileIdsList":[[56],[58,61],[63],[99],[100,105,133],[101,112,113,120,130,141],[101,102,112,120],[103,142],[104,105,113,121],[105,130,138],[106,108,112,120],[107],[108,109],[112],[110,112],[99,112],[112,113,114,130,141],[112,113,114,127,130,133],[97,100,146],[108,112,115,120,130,141],[112,113,115,116,120,130,138,141],[115,117,130,138,141],[63,64,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],[112,118],[119,141,146],[108,112,120,130],[121],[122],[99,123],[124,140,146],[125],[126],[112,127,128],[127,129,142,144],[100,112,130,131,132,133],[100,130,132],[130,131],[133],[134],[99,130],[112,136,137],[136,137],[105,120,130,138],[139],[120,140],[100,115,126,141],[105,142],[130,143],[119,144],[145],[100,105,112,114,123,130,141,144,146],[130,147],[54,60],[58],[55,59],[57],[74,78,141],[74,130,141],[69],[71,74,138,141],[120,138],[149],[69,149],[71,74,120,141],[66,67,70,73,100,112,130,141],[66,72],[70,74,100,133,141,149],[100,149],[90,100,149],[68,69,149],[74],[68,69,70,71,72,73,74,75,76,78,79,80,81,82,83,84,85,86,87,88,89,91,92,93,94,95,96],[74,81,82],[72,74,82,83],[73],[66,69,74],[74,78,82,83],[78],[72,74,77,141],[66,71,72,74,78,81],[100,130],[69,74,90,100,146,149],[51,52],[51]],"referencedMap":[[57,1],[62,2],[63,3],[64,3],[99,4],[100,5],[101,6],[102,7],[103,8],[104,9],[105,10],[106,11],[107,12],[108,13],[109,13],[111,14],[110,15],[112,16],[113,17],[114,18],[98,19],[115,20],[116,21],[117,22],[149,23],[118,24],[119,25],[120,26],[121,27],[122,28],[123,29],[124,30],[125,31],[126,32],[127,33],[128,33],[129,34],[130,35],[132,36],[131,37],[133,38],[134,39],[135,40],[136,41],[137,42],[138,43],[139,44],[140,45],[141,46],[142,47],[143,48],[144,49],[145,50],[146,51],[147,52],[61,53],[59,54],[60,55],[58,56],[81,57],[88,58],[80,57],[95,59],[72,60],[71,61],[94,62],[89,63],[92,64],[74,65],[73,66],[69,67],[68,68],[91,69],[70,70],[75,71],[79,71],[97,72],[96,71],[83,73],[84,74],[86,75],[82,76],[85,77],[90,62],[77,78],[78,79],[87,80],[67,81],[93,82],[53,83],[52,84]],"exportedModulesMap":[[57,1],[62,2],[63,3],[64,3],[99,4],[100,5],[101,6],[102,7],[103,8],[104,9],[105,10],[106,11],[107,12],[108,13],[109,13],[111,14],[110,15],[112,16],[113,17],[114,18],[98,19],[115,20],[116,21],[117,22],[149,23],[118,24],[119,25],[120,26],[121,27],[122,28],[123,29],[124,30],[125,31],[126,32],[127,33],[128,33],[129,34],[130,35],[132,36],[131,37],[133,38],[134,39],[135,40],[136,41],[137,42],[138,43],[139,44],[140,45],[141,46],[142,47],[143,48],[144,49],[145,50],[146,51],[147,52],[61,53],[59,54],[60,55],[58,56],[81,57],[88,58],[80,57],[95,59],[72,60],[71,61],[94,62],[89,63],[92,64],[74,65],[73,66],[69,67],[68,68],[91,69],[70,70],[75,71],[79,71],[97,72],[96,71],[83,73],[84,74],[86,75],[82,76],[85,77],[90,62],[77,78],[78,79],[87,80],[67,81],[93,82],[53,83]],"semanticDiagnosticsPerFile":[54,57,56,62,63,64,99,100,101,102,103,104,105,106,107,108,109,111,110,112,113,114,98,148,115,116,117,149,118,119,120,121,122,123,124,125,126,127,128,129,130,132,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,65,55,61,59,60,58,49,50,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,1,48,81,88,80,95,72,71,94,89,92,74,73,69,68,91,70,75,76,79,66,97,96,83,84,86,82,85,90,77,78,87,67,93,53,52,51],"latestChangedDtsFile":"./types/index.d.ts"},"version":"5.3.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/types/htmlElementPosition.interface.ts","../src/types/infer.type.ts","../src/types/index.ts","../src/domUtils.ts","../src/utils.ts","../src/stripTagsUtil.ts","../src/index.ts","../../../node_modules/.pnpm/@jest+expect-utils@29.7.0/node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../../node_modules/.pnpm/jest-diff@29.7.0/node_modules/jest-diff/build/index.d.ts","../../../node_modules/.pnpm/jest-matcher-utils@29.7.0/node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.d.ts","../../../node_modules/.pnpm/@types+jest@29.5.11/node_modules/@types/jest/index.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.10.4/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"09324e8053042663cc7d57ead78737e72e80322d31ea01339c0546a2e867fe29","signature":"03e026f9347b0725cdcce9ca95ffad1531c4817cef7232f8b46f91e818e2ac1c"},{"version":"90b3f2a8df960ea2f4931158d40d4f34b48fd5c2bde11867c54b1f3a1667b838","signature":"f6d1687dd09c2736cb87d67db0b793c5f32dc84ff8decd9ab2d75d7db079d056"},"29c4cc501789348f46d7c45a108a58ad5c46a79a5509848f20ab39cdfa3273db",{"version":"5c387b75fe2f4dda0069a5e35eb5e728057d7b5fbb7dd21bb83a53b2093feb06","signature":"e1d24c10948d07d46b60fddf89eacbb406ddede7581370853c927db3a0dbbefa"},{"version":"73c3a09516aa878768522a2909816c6813b0f6e9425b3a60145d7ea004c8df4e","signature":"9e8b68b320f225ac7a7798e50d86765b6a3023cd799e3daa5ed2d3de57961e1b"},{"version":"093355297ed484a97532442888bcfdaf1207f59adb7031c31570eb960c5b3004","signature":"8acac7e4140e3f3c0579b5ae59fb21b921a67780da3aa050d74de32a6a44767a"},{"version":"77b54162a4bcbb9d26f76c22a3e91c0e313c9b466f89410b050d6ecd344ffc0a","signature":"6634fd4ebad5a46b4f60c45a4e1cb0a4254fa802cfab644c7db3a6b26f767b20"},"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"46894b2a21a60f8449ca6b2b7223b7179bba846a61b1434bed77b34b2902c306","affectsGlobalScope":true},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"cc5e65fb1729463665074b9d7163e78a4225b7af7f3a6b3c74492f415166612f","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","e8968b394e4365588f8f89cfff86435258cf10062585c1d2224627ab92acda22","285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"0d832a0650a74aafc276cb3f7bb26bde2e2270a6f87e6c871a64122e9203079b","affectsGlobalScope":true},{"version":"c6f3869f12bb5c3bb8ecd0b050ea20342b89b944eae18d313cde6b0ccc0925d7","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447"],"root":[[51,57]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"importHelpers":true,"module":99,"noEmitOnError":true,"noImplicitReturns":true,"outDir":"./esm","preserveConstEnums":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":8},"fileIdsList":[[60],[62,65],[67],[103],[104,109,137],[105,116,117,124,134,145],[105,106,116,124],[107,146],[108,109,117,125],[109,134,142],[110,112,116,124],[111],[112,113],[116],[114,116],[103,116],[116,117,118,134,145],[116,117,118,131,134,137],[101,104,150],[112,116,119,124,134,145],[116,117,119,120,124,134,142,145],[119,121,134,142,145],[67,68,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152],[116,122],[123,145,150],[112,116,124,134],[125],[126],[103,127],[128,144,150],[129],[130],[116,131,132],[131,133,146,148],[104,116,134,135,136,137],[104,134,136],[134,135],[137],[138],[103,134],[116,140,141],[140,141],[109,124,134,142],[143],[124,144],[104,119,130,145],[109,146],[134,147],[123,148],[149],[104,109,116,118,127,134,145,148,150],[134,151],[58,64],[62],[59,63],[61],[78,82,145],[78,134,145],[73],[75,78,142,145],[124,142],[153],[73,153],[75,78,124,145],[70,71,74,77,104,116,134,145],[70,76],[74,78,104,137,145,153],[104,153],[94,104,153],[72,73,153],[78],[72,73,74,75,76,77,78,79,80,82,83,84,85,86,87,88,89,90,91,92,93,95,96,97,98,99,100],[78,85,86],[76,78,86,87],[77],[70,73,78],[78,82,86,87],[82],[76,78,81,145],[70,75,76,78,82,85],[104,134],[73,78,94,104,150,153],[53],[53,54,55,56],[55],[51,52]],"referencedMap":[[61,1],[66,2],[67,3],[68,3],[103,4],[104,5],[105,6],[106,7],[107,8],[108,9],[109,10],[110,11],[111,12],[112,13],[113,13],[115,14],[114,15],[116,16],[117,17],[118,18],[102,19],[119,20],[120,21],[121,22],[153,23],[122,24],[123,25],[124,26],[125,27],[126,28],[127,29],[128,30],[129,31],[130,32],[131,33],[132,33],[133,34],[134,35],[136,36],[135,37],[137,38],[138,39],[139,40],[140,41],[141,42],[142,43],[143,44],[144,45],[145,46],[146,47],[147,48],[148,49],[149,50],[150,51],[151,52],[65,53],[63,54],[64,55],[62,56],[85,57],[92,58],[84,57],[99,59],[76,60],[75,61],[98,62],[93,63],[96,64],[78,65],[77,66],[73,67],[72,68],[95,69],[74,70],[79,71],[83,71],[101,72],[100,71],[87,73],[88,74],[90,75],[86,76],[89,77],[94,62],[81,78],[82,79],[91,80],[71,81],[97,82],[54,83],[57,84],[56,85],[53,86]],"exportedModulesMap":[[61,1],[66,2],[67,3],[68,3],[103,4],[104,5],[105,6],[106,7],[107,8],[108,9],[109,10],[110,11],[111,12],[112,13],[113,13],[115,14],[114,15],[116,16],[117,17],[118,18],[102,19],[119,20],[120,21],[121,22],[153,23],[122,24],[123,25],[124,26],[125,27],[126,28],[127,29],[128,30],[129,31],[130,32],[131,33],[132,33],[133,34],[134,35],[136,36],[135,37],[137,38],[138,39],[139,40],[140,41],[141,42],[142,43],[143,44],[144,45],[145,46],[146,47],[147,48],[148,49],[149,50],[150,51],[151,52],[65,53],[63,54],[64,55],[62,56],[85,57],[92,58],[84,57],[99,59],[76,60],[75,61],[98,62],[93,63],[96,64],[78,65],[77,66],[73,67],[72,68],[95,69],[74,70],[79,71],[83,71],[101,72],[100,71],[87,73],[88,74],[90,75],[86,76],[89,77],[94,62],[81,78],[82,79],[91,80],[71,81],[97,82],[54,83],[57,84],[53,86]],"semanticDiagnosticsPerFile":[58,61,60,66,67,68,103,104,105,106,107,108,109,110,111,112,113,115,114,116,117,118,102,152,119,120,121,153,122,123,124,125,126,127,128,129,130,131,132,133,134,136,135,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,69,59,65,63,64,62,49,50,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,1,48,85,92,84,99,76,75,98,93,96,78,77,73,72,95,74,79,80,83,70,101,100,87,88,90,86,89,94,81,82,91,71,97,54,57,56,51,53,52,55],"latestChangedDtsFile":"./types/index.d.ts"},"version":"5.3.3"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { HtmlElementPosition, InferDOMType } from './types/index';
|
|
2
|
+
/** calculate available space for each side of the DOM element */
|
|
3
|
+
export declare function calculateAvailableSpace(element: HTMLElement): {
|
|
4
|
+
top: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
right: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Create a DOM Element with any optional attributes or properties.
|
|
11
|
+
* It will only accept valid DOM element properties that `createElement` would accept.
|
|
12
|
+
* For example: `createDomElement('div', { className: 'my-css-class' })`,
|
|
13
|
+
* for style or dataset you need to use nested object `{ style: { display: 'none' }}
|
|
14
|
+
* The last argument is to optionally append the created element to a parent container element.
|
|
15
|
+
* @param {String} tagName - html tag
|
|
16
|
+
* @param {Object} options - element properties
|
|
17
|
+
* @param {[Element]} appendToParent - parent element to append to
|
|
18
|
+
*/
|
|
19
|
+
export declare function createDomElement<T extends keyof HTMLElementTagNameMap, K extends keyof HTMLElementTagNameMap[T]>(tagName: T, elementOptions?: null | {
|
|
20
|
+
[P in K]: InferDOMType<HTMLElementTagNameMap[T][P]>;
|
|
21
|
+
}, appendToParent?: Element): HTMLElementTagNameMap[T];
|
|
22
|
+
/**
|
|
23
|
+
* Loop through all properties of an object and nullify any properties that are instanceof HTMLElement,
|
|
24
|
+
* if we detect an array then use recursion to go inside it and apply same logic
|
|
25
|
+
* @param obj - object containing 1 or more properties with DOM Elements
|
|
26
|
+
*/
|
|
27
|
+
export declare function destroyAllElementProps(obj: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Empty a DOM element by removing all of its DOM element children leaving with an empty element (basically an empty shell)
|
|
30
|
+
* @return {object} element - updated element
|
|
31
|
+
*/
|
|
32
|
+
export declare function emptyElement<T extends Element = Element>(element?: T | null): T | undefined | null;
|
|
33
|
+
/**
|
|
34
|
+
* From a DocumentFragment, get the innerHTML or outerHTML of all child elements.
|
|
35
|
+
* We can get the HTML by looping through all fragment `childNodes`
|
|
36
|
+
*/
|
|
37
|
+
export declare function getHTMLFromFragment(input: DocumentFragment, type?: 'innerHTML' | 'outerHTML'): string;
|
|
38
|
+
/** Get offset of HTML element relative to a parent element */
|
|
39
|
+
export declare function getOffsetRelativeToParent(parentElm: HTMLElement | null, childElm: HTMLElement | null): {
|
|
40
|
+
top: number;
|
|
41
|
+
right: number;
|
|
42
|
+
bottom: number;
|
|
43
|
+
left: number;
|
|
44
|
+
} | undefined;
|
|
45
|
+
/** Get HTML element offset with pure JS */
|
|
46
|
+
export declare function getOffset(elm?: HTMLElement | null): HtmlElementPosition | undefined;
|
|
47
|
+
export declare function getInnerSize(elm: HTMLElement, type: 'height' | 'width'): number;
|
|
48
|
+
/** Get a DOM element style property value by calling getComputedStyle() on the element */
|
|
49
|
+
export declare function getStyleProp(elm: HTMLElement, property: string): string | null;
|
|
50
|
+
export declare function findFirstAttribute(inputElm: Element | null | undefined, attributes: string[]): string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Provide a width as a number or a string and find associated value in valid css style format or use default value when provided (or "auto" otherwise).
|
|
53
|
+
* @param {Number|String} inputWidth - input width, could be a string or number
|
|
54
|
+
* @param {Number | String} defaultValue [defaultValue=auto] - optional default value or use "auto" when nothing is provided
|
|
55
|
+
* @returns {String} string output
|
|
56
|
+
*/
|
|
57
|
+
export declare function findWidthOrDefault(inputWidth?: number | string, defaultValue?: string): string;
|
|
58
|
+
/**
|
|
59
|
+
* HTML encode using a plain <div>
|
|
60
|
+
* Create a in-memory div, set it's inner text(which a div can encode)
|
|
61
|
+
* then grab the encoded contents back out. The div never exists on the page.
|
|
62
|
+
* @param {String} inputValue - input value to be encoded
|
|
63
|
+
* @return {String}
|
|
64
|
+
*/
|
|
65
|
+
export declare function htmlEncode(inputValue: string): string;
|
|
66
|
+
/**
|
|
67
|
+
* Decode text into html entity
|
|
68
|
+
* @param string text: input text
|
|
69
|
+
* @param string text: output text
|
|
70
|
+
*/
|
|
71
|
+
export declare function htmlEntityDecode(input: string): string;
|
|
72
|
+
/**
|
|
73
|
+
* Encode string to html special char and add html space padding defined
|
|
74
|
+
* @param {string} inputStr - input string
|
|
75
|
+
* @param {number} paddingLength - padding to add
|
|
76
|
+
*/
|
|
77
|
+
export declare function htmlEncodeWithPadding(inputStr: string, paddingLength: number): string;
|
|
78
|
+
/** insert an HTML Element after a target Element in the DOM */
|
|
79
|
+
export declare function insertAfterElement(referenceNode: HTMLElement, newNode: HTMLElement): void;
|
|
80
|
+
/**
|
|
81
|
+
* Get the Window Scroll top/left Position
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
export declare function windowScrollPosition(): {
|
|
85
|
+
left: number;
|
|
86
|
+
top: number;
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=domUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domUtils.d.ts","sourceRoot":"","sources":["../../src/domUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MA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E;AAED,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,iBAK9D;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAU5G;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,SAAS,GAAG,MAAM,CAE9F;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAUrD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAItD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAUrF;AAED,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,QAElF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE,CAKrE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"htmlElementPosition.interface.d.ts","sourceRoot":"","sources":["../../../src/types/htmlElementPosition.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer.type.d.ts","sourceRoot":"","sources":["../../../src/types/infer.type.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,CAAC,CAAC,IACxB,CAAC,SAAS,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAC5D,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC"}
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function addToArrayWhenNotExists<T = any>(inputArray: T[], inputItem: T, itemIdPropName?: string): void;
|
|
8
8
|
/**
|
|
9
|
-
* Simple function
|
|
10
|
-
* this is used in the CSV export
|
|
9
|
+
* Simple function that will return a string with the number of whitespaces asked, mostly used by the CSV export
|
|
11
10
|
* @param {Number} nbSpaces - number of white spaces to create
|
|
12
|
-
* @param {String} spaceChar - optionally provide character to use
|
|
11
|
+
* @param {String} spaceChar - optionally provide a different character to use for the whitespace (e.g. could be override to use " " in html)
|
|
13
12
|
*/
|
|
14
13
|
export declare function addWhiteSpaces(nbSpaces: number, spaceChar?: string): string;
|
|
15
14
|
/**
|
|
16
|
-
* Remove
|
|
15
|
+
* Remove an item from the array by its index
|
|
17
16
|
* @param array input
|
|
18
17
|
* @param index
|
|
19
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,cAAc,SAAO,QAWpG;AAED
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,cAAc,SAAO,QAWpG;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,SAAM,GAAG,MAAM,CAOxE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,aAAa,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,EAAE,CAuChE;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,CAqC7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,GAAG,GAAG,CAoBvE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,OAUnC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAK/C;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,GA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AG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAOlD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,YAAY,SAAO,GAAG,GAAG,EAAE,CAiBxE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slickgrid-universal/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Common set of small utilities",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"> 1%",
|
|
44
44
|
"not dead"
|
|
45
45
|
],
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "bcfcd08a502c43be4a17202174f631b064b56571"
|
|
47
47
|
}
|