@slickgrid-universal/binding 5.10.2 → 5.12.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/binding.helper.js +4 -4
- package/dist/cjs/binding.helper.js.map +1 -1
- package/dist/cjs/binding.service.js +8 -6
- package/dist/cjs/binding.service.js.map +1 -1
- package/dist/cjs/bindingEvent.service.js +7 -6
- package/dist/cjs/bindingEvent.service.js.map +1 -1
- package/dist/esm/binding.helper.js +4 -4
- package/dist/esm/binding.helper.js.map +1 -1
- package/dist/esm/binding.service.js +8 -6
- package/dist/esm/binding.service.js.map +1 -1
- package/dist/esm/bindingEvent.service.js +7 -6
- package/dist/esm/bindingEvent.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/binding.helper.d.ts.map +1 -1
- package/dist/types/binding.service.d.ts.map +1 -1
- package/dist/types/bindingEvent.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/binding.helper.ts +18 -6
- package/src/binding.service.ts +30 -10
- package/src/bindingEvent.service.ts +17 -9
|
@@ -28,14 +28,14 @@ class BindingHelper {
|
|
|
28
28
|
const elements = document.querySelectorAll(`${this.querySelectorPrefix}${selector}`);
|
|
29
29
|
// before creating a new observer, first check if the variable already has an associated observer
|
|
30
30
|
// if we can't find an observer then we'll create a new one for it
|
|
31
|
-
let observer = this._observers.find(bind => bind.property === variable);
|
|
31
|
+
let observer = this._observers.find((bind) => bind.property === variable);
|
|
32
32
|
if (!observer) {
|
|
33
33
|
observer = new binding_service_js_1.BindingService({ variable, property });
|
|
34
34
|
}
|
|
35
35
|
// add event(s) binding
|
|
36
36
|
// when having multiple events, we'll loop through through them and add a binding for each
|
|
37
37
|
if (Array.isArray(events)) {
|
|
38
|
-
events.forEach(eventName => observer?.bind(elements, attribute, eventName, callback));
|
|
38
|
+
events.forEach((eventName) => observer?.bind(elements, attribute, eventName, callback));
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
observer?.bind(elements, attribute, events, callback);
|
|
@@ -45,7 +45,7 @@ class BindingHelper {
|
|
|
45
45
|
/** From a DOM element selector, which could be zero or multiple elements, add an event listener */
|
|
46
46
|
bindEventHandler(selector, eventName, callback, options) {
|
|
47
47
|
const elements = document.querySelectorAll(`${this.querySelectorPrefix}${selector}`);
|
|
48
|
-
elements.forEach(elm => {
|
|
48
|
+
elements.forEach((elm) => {
|
|
49
49
|
if (elm?.addEventListener) {
|
|
50
50
|
elm.addEventListener(eventName, callback, options);
|
|
51
51
|
}
|
|
@@ -57,7 +57,7 @@ class BindingHelper {
|
|
|
57
57
|
*/
|
|
58
58
|
setElementAttributeValue(selector, attribute, value) {
|
|
59
59
|
const elements = document.querySelectorAll(`${this.querySelectorPrefix}${selector}`);
|
|
60
|
-
elements.forEach(elm => {
|
|
60
|
+
elements.forEach((elm) => {
|
|
61
61
|
elm.textContent = '';
|
|
62
62
|
if (elm && attribute in elm) {
|
|
63
63
|
elm[attribute] = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.helper.js","sourceRoot":"","sources":["../../src/binding.helper.ts"],"names":[],"mappings":";;;AAAA,6DAAsD;AAEtD,MAAa,aAAa;IAA1B;QACU,eAAU,GAAqB,EAAE,CAAC;QAClC,yBAAoB,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"binding.helper.js","sourceRoot":"","sources":["../../src/binding.helper.ts"],"names":[],"mappings":";;;AAAA,6DAAsD;AAEtD,MAAa,aAAa;IAA1B;QACU,eAAU,GAAqB,EAAE,CAAC;QAClC,yBAAoB,GAAG,EAAE,CAAC;IAgFpC,CAAC;IA9EC,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,oBAAoB,IAAI,EAAE,CAAC;IACzC,CAAC;IACD,IAAI,mBAAmB,CAAC,MAAc;QACpC,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC;IACrC,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,C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AC;IAED,qGAAqG;IACrG,gBAAgB,CACd,QAAgB,EAChB,SAAiB,EACjB,QAA4C,EAC5C,OAA2C;QAE3C,MAAM,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAI,GAAG,IAAI,CAAC,mBAAmB,GAAG,QAAQ,EAAE,CAAC,CAAC;QAExF,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACvB,IAAI,GAAG,EAAE,gBAAgB,EAAE,CAAC;gBAC1B,GAAG,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;YACrD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,wBAAwB,CAA8B,QAAgB,EAAE,SAAiB,EAAE,KAAU;QACnG,MAAM,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAI,GAAG,IAAI,CAAC,mBAAmB,GAAG,QAAQ,EAAE,CAAC,CAAC;QAExF,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACvB,GAAG,CAAC,WAAW,GAAG,EAAE,CAAC;YACrB,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE,CAAC;gBAC5B,GAAG,CAAC,SAAoB,CAAC,GAAG,KAAK,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAlFD,sCAkFC"}
|
|
@@ -15,7 +15,9 @@ class BindingService {
|
|
|
15
15
|
this._binding = binding;
|
|
16
16
|
this._property = binding.property || '';
|
|
17
17
|
this._elementBindings = [];
|
|
18
|
-
if (binding.property &&
|
|
18
|
+
if (binding.property &&
|
|
19
|
+
binding.variable &&
|
|
20
|
+
(binding.variable.hasOwnProperty(binding.property) || binding.property in binding.variable)) {
|
|
19
21
|
this._value = binding.variable[binding.property];
|
|
20
22
|
}
|
|
21
23
|
else {
|
|
@@ -24,7 +26,7 @@ class BindingService {
|
|
|
24
26
|
if (typeof binding.variable === 'object') {
|
|
25
27
|
Object.defineProperty(binding.variable, binding.property, {
|
|
26
28
|
get: this.valueGetter.bind(this),
|
|
27
|
-
set: this.valueSetter.bind(this)
|
|
29
|
+
set: this.valueSetter.bind(this),
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
32
|
}
|
|
@@ -64,7 +66,7 @@ class BindingService {
|
|
|
64
66
|
bind(elements, attribute, eventName, eventCallback) {
|
|
65
67
|
if (elements && elements.forEach) {
|
|
66
68
|
// multiple DOM elements coming from a querySelectorAll() call
|
|
67
|
-
elements.forEach(elm => this.bindSingleElement(elm, attribute, eventName, eventCallback));
|
|
69
|
+
elements.forEach((elm) => this.bindSingleElement(elm, attribute, eventName, eventCallback));
|
|
68
70
|
}
|
|
69
71
|
else if (elements) {
|
|
70
72
|
// single DOM element coming from a querySelector() call
|
|
@@ -76,7 +78,7 @@ class BindingService {
|
|
|
76
78
|
unbind(element, eventName, listener, options, eventUid) {
|
|
77
79
|
if (element) {
|
|
78
80
|
element.removeEventListener(eventName, listener, options);
|
|
79
|
-
const eventIdx = this._boundedEventWithListeners.findIndex(be => be.uid === eventUid);
|
|
81
|
+
const eventIdx = this._boundedEventWithListeners.findIndex((be) => be.uid === eventUid);
|
|
80
82
|
if (eventIdx >= 0) {
|
|
81
83
|
this._boundedEventWithListeners.splice(eventIdx, 1);
|
|
82
84
|
}
|
|
@@ -127,8 +129,8 @@ class BindingService {
|
|
|
127
129
|
/** Generate a UUID version 4 RFC compliant */
|
|
128
130
|
generateUuidV4() {
|
|
129
131
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
|
130
|
-
const r = Math.random() * 16 | 0;
|
|
131
|
-
const v = c === 'x' ? r : (r & 0x3 | 0x8
|
|
132
|
+
const r = (Math.random() * 16) | 0;
|
|
133
|
+
const v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
132
134
|
return v.toString(16);
|
|
133
135
|
});
|
|
134
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.service.js","sourceRoot":"","sources":["../../src/binding.service.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,MAAa,cAAc;IAOzB,YAAY,OAAgB;QANlB,WAAM,GAAQ,IAAI,CAAC;QAGnB,+BAA0B,GAA+B,EAAE,CAAC;QAC5D,qBAAgB,GAAuD,EAAE,CAAC;QAGlF,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;QAC3B,
|
|
1
|
+
{"version":3,"file":"binding.service.js","sourceRoot":"","sources":["../../src/binding.service.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACH,MAAa,cAAc;IAOzB,YAAY,OAAgB;QANlB,WAAM,GAAQ,IAAI,CAAC;QAGnB,+BAA0B,GAA+B,EAAE,CAAC;QAC5D,qBAAgB,GAAuD,EAAE,CAAC;QAGlF,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;QAC3B,IACE,OAAO,CAAC,QAAQ;YAChB,OAAO,CAAC,QAAQ;YAChB,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,EAC3F,CAAC;YACD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE,CA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AE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;YACrG,CAAC;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,OAAO,CAAC,SAAoB,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,8CAA8C;IACpC,cAAc;QACtB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACnE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;YACnC,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;YAC1C,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC;IAES,OAAO,CAAC,KAAU;QAC1B,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;IAC/D,CAAC;CACF;AArKD,wCAqKC"}
|
|
@@ -20,10 +20,11 @@ class BindingEventService {
|
|
|
20
20
|
/** Bind an event listener to any element */
|
|
21
21
|
bind(elementOrElements, eventNameOrNames, listener, listenerOptions, groupName = '') {
|
|
22
22
|
// convert to array for looping in next task
|
|
23
|
-
const eventNames =
|
|
24
|
-
if (elementOrElements
|
|
23
|
+
const eventNames = Array.isArray(eventNameOrNames) ? eventNameOrNames : [eventNameOrNames];
|
|
24
|
+
if (!(elementOrElements instanceof HTMLElement || elementOrElements instanceof DocumentFragment) &&
|
|
25
|
+
elementOrElements?.forEach) {
|
|
25
26
|
// multiple elements to bind to
|
|
26
|
-
elementOrElements.forEach(element => {
|
|
27
|
+
elementOrElements.forEach((element) => {
|
|
27
28
|
for (const eventName of eventNames) {
|
|
28
29
|
element.addEventListener(eventName, listener, listenerOptions);
|
|
29
30
|
this._boundedEvents.push({ element, eventName, listener, groupName });
|
|
@@ -41,7 +42,7 @@ class BindingEventService {
|
|
|
41
42
|
/** Unbind a specific listener that was bounded earlier */
|
|
42
43
|
unbind(elementOrElements, eventNameOrNames, listener) {
|
|
43
44
|
// convert to array for looping in next task
|
|
44
|
-
const elements =
|
|
45
|
+
const elements = Array.isArray(elementOrElements) ? elementOrElements : [elementOrElements];
|
|
45
46
|
const eventNames = Array.isArray(eventNameOrNames) ? eventNameOrNames : [eventNameOrNames];
|
|
46
47
|
for (const eventName of eventNames) {
|
|
47
48
|
for (const element of elements) {
|
|
@@ -52,7 +53,7 @@ class BindingEventService {
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
unbindByEventName(element, eventName) {
|
|
55
|
-
const boundedEvent = this._boundedEvents.find(e => e.element === element && e.eventName === eventName);
|
|
56
|
+
const boundedEvent = this._boundedEvents.find((e) => e.element === element && e.eventName === eventName);
|
|
56
57
|
if (boundedEvent) {
|
|
57
58
|
this.unbind(boundedEvent.element, boundedEvent.eventName, boundedEvent.listener);
|
|
58
59
|
}
|
|
@@ -67,7 +68,7 @@ class BindingEventService {
|
|
|
67
68
|
// Note: we need to loop in reverse order to avoid array reindexing (causing index offset) after a splice is called
|
|
68
69
|
for (let i = this._boundedEvents.length - 1; i >= 0; --i) {
|
|
69
70
|
const boundedEvent = this._boundedEvents[i];
|
|
70
|
-
if (groupNames.some(g => g === boundedEvent.groupName)) {
|
|
71
|
+
if (groupNames.some((g) => g === boundedEvent.groupName)) {
|
|
71
72
|
const { element, eventName, listener } = boundedEvent;
|
|
72
73
|
this.unbind(element, eventName, listener);
|
|
73
74
|
this._boundedEvents.splice(i, 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindingEvent.service.js","sourceRoot":"","sources":["../../src/bindingEvent.service.ts"],"names":[],"m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
25
|
const elements = document.querySelectorAll(`${this.querySelectorPrefix}${selector}`);
|
|
26
26
|
// before creating a new observer, first check if the variable already has an associated observer
|
|
27
27
|
// if we can't find an observer then we'll create a new one for it
|
|
28
|
-
let observer = this._observers.find(bind => bind.property === variable);
|
|
28
|
+
let observer = this._observers.find((bind) => bind.property === variable);
|
|
29
29
|
if (!observer) {
|
|
30
30
|
observer = new BindingService({ variable, property });
|
|
31
31
|
}
|
|
32
32
|
// add event(s) binding
|
|
33
33
|
// when having multiple events, we'll loop through through them and add a binding for each
|
|
34
34
|
if (Array.isArray(events)) {
|
|
35
|
-
events.forEach(eventName => observer?.bind(elements, attribute, eventName, callback));
|
|
35
|
+
events.forEach((eventName) => observer?.bind(elements, attribute, eventName, callback));
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
observer?.bind(elements, attribute, events, callback);
|
|
@@ -42,7 +42,7 @@ export class BindingHelper {
|
|
|
42
42
|
/** From a DOM element selector, which could be zero or multiple elements, add an event listener */
|
|
43
43
|
bindEventHandler(selector, eventName, callback, options) {
|
|
44
44
|
const elements = document.querySelectorAll(`${this.querySelectorPrefix}${selector}`);
|
|
45
|
-
elements.forEach(elm => {
|
|
45
|
+
elements.forEach((elm) => {
|
|
46
46
|
if (elm?.addEventListener) {
|
|
47
47
|
elm.addEventListener(eventName, callback, options);
|
|
48
48
|
}
|
|
@@ -54,7 +54,7 @@ export class BindingHelper {
|
|
|
54
54
|
*/
|
|
55
55
|
setElementAttributeValue(selector, attribute, value) {
|
|
56
56
|
const elements = document.querySelectorAll(`${this.querySelectorPrefix}${selector}`);
|
|
57
|
-
elements.forEach(elm => {
|
|
57
|
+
elements.forEach((elm) => {
|
|
58
58
|
elm.textContent = '';
|
|
59
59
|
if (elm && attribute in elm) {
|
|
60
60
|
elm[attribute] = value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.helper.js","sourceRoot":"","sources":["../../src/binding.helper.ts"],"names":[],"mappings":"AAAA,OA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AE;YACvB,GAAG,CAAC,WAAW,GAAG,EAAE,CAAC;YACrB,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE,CAAC;gBAC5B,GAAG,CAAC,SAAoB,CAAC,GAAG,KAAK,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -12,7 +12,9 @@ export class BindingService {
|
|
|
12
12
|
this._binding = binding;
|
|
13
13
|
this._property = binding.property || '';
|
|
14
14
|
this._elementBindings = [];
|
|
15
|
-
if (binding.property &&
|
|
15
|
+
if (binding.property &&
|
|
16
|
+
binding.variable &&
|
|
17
|
+
(binding.variable.hasOwnProperty(binding.property) || binding.property in binding.variable)) {
|
|
16
18
|
this._value = binding.variable[binding.property];
|
|
17
19
|
}
|
|
18
20
|
else {
|
|
@@ -21,7 +23,7 @@ export class BindingService {
|
|
|
21
23
|
if (typeof binding.variable === 'object') {
|
|
22
24
|
Object.defineProperty(binding.variable, binding.property, {
|
|
23
25
|
get: this.valueGetter.bind(this),
|
|
24
|
-
set: this.valueSetter.bind(this)
|
|
26
|
+
set: this.valueSetter.bind(this),
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
}
|
|
@@ -61,7 +63,7 @@ export class BindingService {
|
|
|
61
63
|
bind(elements, attribute, eventName, eventCallback) {
|
|
62
64
|
if (elements && elements.forEach) {
|
|
63
65
|
// multiple DOM elements coming from a querySelectorAll() call
|
|
64
|
-
elements.forEach(elm => this.bindSingleElement(elm, attribute, eventName, eventCallback));
|
|
66
|
+
elements.forEach((elm) => this.bindSingleElement(elm, attribute, eventName, eventCallback));
|
|
65
67
|
}
|
|
66
68
|
else if (elements) {
|
|
67
69
|
// single DOM element coming from a querySelector() call
|
|
@@ -73,7 +75,7 @@ export class BindingService {
|
|
|
73
75
|
unbind(element, eventName, listener, options, eventUid) {
|
|
74
76
|
if (element) {
|
|
75
77
|
element.removeEventListener(eventName, listener, options);
|
|
76
|
-
const eventIdx = this._boundedEventWithListeners.findIndex(be => be.uid === eventUid);
|
|
78
|
+
const eventIdx = this._boundedEventWithListeners.findIndex((be) => be.uid === eventUid);
|
|
77
79
|
if (eventIdx >= 0) {
|
|
78
80
|
this._boundedEventWithListeners.splice(eventIdx, 1);
|
|
79
81
|
}
|
|
@@ -124,8 +126,8 @@ export class BindingService {
|
|
|
124
126
|
/** Generate a UUID version 4 RFC compliant */
|
|
125
127
|
generateUuidV4() {
|
|
126
128
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
|
127
|
-
const r = Math.random() * 16 | 0;
|
|
128
|
-
const v = c === 'x' ? r : (r & 0x3 | 0x8
|
|
129
|
+
const r = (Math.random() * 16) | 0;
|
|
130
|
+
const v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
129
131
|
return v.toString(16);
|
|
130
132
|
});
|
|
131
133
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.service.js","sourceRoot":"","sources":["../../src/binding.service.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,OAAO,cAAc;IAOzB,YAAY,OAAgB;QANlB,WAAM,GAAQ,IAAI,CAAC;QAGnB,+BAA0B,GAA+B,EAAE,CAAC;QAC5D,qBAAgB,GAAuD,EAAE,CAAC;QAGlF,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;QAC3B,
|
|
1
|
+
{"version":3,"file":"binding.service.js","sourceRoot":"","sources":["../../src/binding.service.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,OAAO,cAAc;IAOzB,YAAY,OAAgB;QANlB,WAAM,GAAQ,IAAI,CAAC;QAGnB,+BAA0B,GAA+B,EAAE,CAAC;QAC5D,qBAAgB,GAAuD,EAAE,CAAC;QAGlF,IA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AAC;IAES,OAAO,CAAC,KAAU;QAC1B,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -17,10 +17,11 @@ export class BindingEventService {
|
|
|
17
17
|
/** Bind an event listener to any element */
|
|
18
18
|
bind(elementOrElements, eventNameOrNames, listener, listenerOptions, groupName = '') {
|
|
19
19
|
// convert to array for looping in next task
|
|
20
|
-
const eventNames =
|
|
21
|
-
if (elementOrElements
|
|
20
|
+
const eventNames = Array.isArray(eventNameOrNames) ? eventNameOrNames : [eventNameOrNames];
|
|
21
|
+
if (!(elementOrElements instanceof HTMLElement || elementOrElements instanceof DocumentFragment) &&
|
|
22
|
+
elementOrElements?.forEach) {
|
|
22
23
|
// multiple elements to bind to
|
|
23
|
-
elementOrElements.forEach(element => {
|
|
24
|
+
elementOrElements.forEach((element) => {
|
|
24
25
|
for (const eventName of eventNames) {
|
|
25
26
|
element.addEventListener(eventName, listener, listenerOptions);
|
|
26
27
|
this._boundedEvents.push({ element, eventName, listener, groupName });
|
|
@@ -38,7 +39,7 @@ export class BindingEventService {
|
|
|
38
39
|
/** Unbind a specific listener that was bounded earlier */
|
|
39
40
|
unbind(elementOrElements, eventNameOrNames, listener) {
|
|
40
41
|
// convert to array for looping in next task
|
|
41
|
-
const elements =
|
|
42
|
+
const elements = Array.isArray(elementOrElements) ? elementOrElements : [elementOrElements];
|
|
42
43
|
const eventNames = Array.isArray(eventNameOrNames) ? eventNameOrNames : [eventNameOrNames];
|
|
43
44
|
for (const eventName of eventNames) {
|
|
44
45
|
for (const element of elements) {
|
|
@@ -49,7 +50,7 @@ export class BindingEventService {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
unbindByEventName(element, eventName) {
|
|
52
|
-
const boundedEvent = this._boundedEvents.find(e => e.element === element && e.eventName === eventName);
|
|
53
|
+
const boundedEvent = this._boundedEvents.find((e) => e.element === element && e.eventName === eventName);
|
|
53
54
|
if (boundedEvent) {
|
|
54
55
|
this.unbind(boundedEvent.element, boundedEvent.eventName, boundedEvent.listener);
|
|
55
56
|
}
|
|
@@ -64,7 +65,7 @@ export class BindingEventService {
|
|
|
64
65
|
// Note: we need to loop in reverse order to avoid array reindexing (causing index offset) after a splice is called
|
|
65
66
|
for (let i = this._boundedEvents.length - 1; i >= 0; --i) {
|
|
66
67
|
const boundedEvent = this._boundedEvents[i];
|
|
67
|
-
if (groupNames.some(g => g === boundedEvent.groupName)) {
|
|
68
|
+
if (groupNames.some((g) => g === boundedEvent.groupName)) {
|
|
68
69
|
const { element, eventName, listener } = boundedEvent;
|
|
69
70
|
this.unbind(element, eventName, listener);
|
|
70
71
|
this._boundedEvents.splice(i, 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindingEvent.service.js","sourceRoot":"","sources":["../../src/bindingEvent.service.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QACY,mBAAc,GAA2B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"bindingEvent.service.js","sourceRoot":"","sources":["../../src/bindingEvent.service.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QACY,mBAAc,GAA2B,EAAE,CAAC;IA8FxD,CAAC;IA5FC,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED,OAAO;QACL,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,4CAA4C;IAC5C,IAAI,CACF,iBAAqF,EACrF,gBAAmC,EACnC,QAA4C,EAC5C,eAAmD,EACnD,SAAS,GAAG,EAAE;QAEd,4CAA4C;QAC5C,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAA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C,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;oBAC1C,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;QACH,CAAC;aAAM,CAAC;YACN,oBAAoB;YACpB,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtC,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,EAA0B,CAAC;gBACvE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;gBACtD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/interfaces.ts","../src/binding.service.ts","../src/binding.helper.ts","../src/bindingEvent.service.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.9.0/node_modules/@types/node/ts5.6/index.d.ts"],"fileIdsList":[[61,101,104],[61,103,104],[61,104,109,139],[61,104,105,110,116,117,124,136,147],[61,104,105,106,116,124],[61,104],[56,57,58,61,104],[61,104,107,148],[61,104,108,109,117,125],[61,104,109,136,144],[61,104,110,112,116,124],[61,103,104,111],[61,104,112,113],[61,104,116],[61,104,114,116],[61,103,104,116],[61,104,116,117,118,136,147],[61,104,116,117,118,131,136,139],[61,99,104,152],[61,99,104,112,116,119,124,136,147],[61,104,116,117,119,120,124,136,144,147],[61,104,119,121,136,144,147],[61,104,116,122],[61,104,123,147,152],[61,104,112,116,124,136],[61,104,125],[61,104,126],[61,103,104,127],[61,101,102,103,104,105,106,107,108,109,110,111,112,113,114,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,153],[61,104,129],[61,104,130],[61,104,116,131,132],[61,104,131,133,148,150],[61,104,116,136,137,138,139],[61,104,136,138],[61,104,136,137],[61,104,139],[61,104,140],[61,101,104,136],[61,104,116,142,143],[61,104,142,143],[61,104,109,124,136,144],[61,104,145],[104],[59,60,61,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,149,150,151,152,153],[61,104,124,146],[61,104,119,130,147],[61,104,109,148],[61,104,136,149],[61,104,123,150],[61,104,151],[61,104,109,116,118,127,136,147,150,152],[61,104,136,153],[61,71,75,104,147],[61,71,104,136,147],[61,66,104],[61,68,71,104,144,147],[61,104,124,144],[61,104,154],[61,66,104,154],[61,68,71,104,124,147],[61,63,64,67,70,104,116,136,147],[61,71,78,104],[61,63,69,104],[61,71,92,93,104],[61,67,71,104,139,147,154],[61,92,104,154],[61,65,66,104,154],[61,71,104],[61,65,66,67,68,69,70,71,72,73,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98,104],[61,71,86,104],[61,71,78,79,104],[61,69,71,79,80,104],[61,70,104],[61,63,66,71,104],[61,71,75,79,80,104],[61,75,104],[61,69,71,74,104,147],[61,63,68,71,78,104],[61,104,136],[61,66,71,92,104,152,154],[52,61,104],[51,61,104],[51,52,53,54,61,104]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7199a225c0460ec025cb9ee2a9c351889ac19b1183feb73bb7ee9adedb1152a2","signature":"76e517a5861481e77057169ea3d3877bbd83581241af208686eae0b364355b22"},{"version":"120fdbf1db80e78de856bc40573ac469694e5ca285769b15763dff6bafbdca95","signature":"565bf07f9dee3cb4297bf900ac49eb9ebe30bcd74f53befa2ff263562f85cc5f"},{"version":"ac022a8e516aa1a091cb0bd025600e5ed808d844f5e6673f056be56477383c7d","signature":"ba888eb1fc647c8ab1f7220d2fc2108fc6632678f773b317fa827c0ef80f4f4c"},{"version":"b839bd9bf8a9174481e2e8fa9be1554a4c8e4e8b58e4394ec7714ae4a4b54e1b","signature":"a701444080c16a20f51bbb75856cb2d23fb74f17e5033a3fc3c7b1ac61ca0c78"},"2b00c462bc8a8e235e31b977e8e2a57800ac37aebfca642d2da6a20736662bc4",{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"613b21ccdf3be6329d56e6caa13b258c842edf8377be7bc9f014ed14cdcfc308","affectsGlobalScope":true,"impliedFormat":1},{"version":"2d1319e6b5d0efd8c5eae07eb864a00102151e8b9afddd2d45db52e9aae002c4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"81184fe8e67d78ac4e5374650f0892d547d665d77da2b2f544b5d84729c4a15d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f52e8dacc97d71dcc96af29e49584353f9c54cb916d132e3e768d8b8129c928d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"a76037255d4e7af8b20d191a4d3ad13236fba352239d3d9d54868a98dbb222f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"875928df2f3e9a3aed4019539a15d04ff6140a06df6cd1b2feb836d22a81eaca","affectsGlobalScope":true,"impliedFormat":1},{"version":"20b97c3368b1a63d2156deea35d03b125bb07908906eb35e0438042a3bbb3e71","impliedFormat":1},{"version":"f65eecc63138013d13fefea9092e83c3043cb52a5e351d22ea194e81021c1cd5","impliedFormat":1},{"version":"4617299caf33afef24b5e074e6d20ce8f510dd212cebd75884ef27c64457a77b","impliedFormat":1},{"version":"fa56be9b96f747e93b895d8dc2aa4fb9f0816743e6e2abb9d60705e88d4743a2","impliedFormat":1},{"version":"8257c55ff6bff6169142a35fce6811b511d857b4ae4f522cdb6ce20fd2116b2c","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"5990bd8b9bc91f6e90269685ff5a154eeda52c18238f89f0101fb4d08cd80476","affectsGlobalScope":true,"impliedFormat":1},{"version":"94c4187083503a74f4544503b5a30e2bd7af0032dc739b0c9a7ce87f8bddc7b9","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"3eb62baae4df08c9173e6903d3ca45942ccec8c3659b0565684a75f3292cffbb","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"a8f06c2382a30b7cb89ad2dfc48fc3b2b490f3dafcd839dadc008e4e5d57031d","impliedFormat":1},{"version":"553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"918d3b03a75858dcd5dbb275f19448b6b9a222aa8fc8471aca38c28a32ecb40f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bd91a2a356600dee28eb0438082d0799a18a974a6537c4410a796bab749813c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a5c09990a37469b0311a92ce8feeb8682e83918723aedbd445bd7a0f510eaaa3","impliedFormat":1},{"version":"ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"89332fc3cc945c8df2bc0aead55230430a0dabd3277c39a43315e00330de97a6","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"171fd8807643c46a9d17e843959abdf10480d57d60d38d061fb44a4c8d4a8cc4","impliedFormat":1}],"root":[[51,55]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"importHelpers":true,"isolatedDeclarations":true,"module":99,"noEmitOnError":true,"noImplicitReturns":true,"outDir":"./esm","preserveConstEnums":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":8},"referencedMap":[[101,1],[102,1],[103,2],[104,3],[105,4],[106,5],[56,6],[59,7],[57,6],[58,6],[107,8],[108,9],[109,10],[110,11],[111,12],[112,13],[113,13],[115,14],[114,15],[116,16],[117,17],[118,18],[100,19],[119,20],[120,21],[121,22],[122,23],[123,24],[124,25],[125,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,32],[133,33],[134,6],[135,6],[136,34],[138,35],[137,36],[139,37],[140,38],[141,39],[142,40],[143,41],[144,42],[145,43],[61,44],[60,6],[154,45],[146,46],[147,47],[148,48],[149,49],[150,50],[151,51],[152,52],[153,53],[62,6],[49,6],[50,6],[9,6],[11,6],[10,6],[2,6],[12,6],[13,6],[14,6],[15,6],[16,6],[17,6],[18,6],[19,6],[3,6],[20,6],[4,6],[21,6],[25,6],[22,6],[23,6],[24,6],[26,6],[27,6],[28,6],[5,6],[29,6],[30,6],[31,6],[32,6],[6,6],[36,6],[33,6],[34,6],[35,6],[37,6],[7,6],[38,6],[43,6],[44,6],[39,6],[40,6],[41,6],[42,6],[8,6],[48,6],[45,6],[46,6],[47,6],[1,6],[78,54],[88,55],[77,54],[98,56],[69,57],[68,58],[97,59],[91,60],[96,61],[71,62],[85,63],[70,64],[94,65],[66,66],[65,59],[95,67],[67,68],[72,69],[73,6],[76,69],[63,6],[99,70],[89,71],[80,72],[81,73],[83,74],[79,75],[82,76],[92,59],[74,77],[75,78],[84,79],[64,80],[87,71],[86,69],[90,6],[93,81],[53,82],[52,83],[54,83],[55,84],[51,6]],"latestChangedDtsFile":"./types/index.d.ts","version":"5.6.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/interfaces.ts","../src/binding.service.ts","../src/binding.helper.ts","../src/bindingEvent.service.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.13.1/node_modules/@types/node/index.d.ts"],"fileIdsList":[[62,102,105],[62,104,105],[105],[62,105,110,140],[62,105,106,111,117,118,125,137,148],[62,105,106,107,117,125],[62,105],[57,58,59,62,105],[62,105,108,149],[62,105,109,110,118,126],[62,105,110,137,145],[62,105,111,113,117,125],[62,104,105,112],[62,105,113,114],[62,105,117],[62,105,115,117],[62,104,105,117],[62,105,117,118,119,137,148],[62,105,117,118,119,132,137,140],[62,100,105,153],[62,100,105,113,117,120,125,137,148],[62,105,117,118,120,121,125,137,145,148],[62,105,120,122,137,145,148],[60,61,62,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,149,150,151,152,153,154],[62,105,117,123],[62,105,124,148],[62,105,113,117,125,137],[62,105,126],[62,105,127],[62,104,105,128],[62,102,103,104,105,106,107,108,109,110,111,112,113,114,115,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,153,154],[62,105,130],[62,105,131],[62,105,117,132,133],[62,105,132,134,149,151],[62,105,117,137,138,139,140],[62,105,137,139],[62,105,137,138],[62,105,140],[62,105,141],[62,102,105,137],[62,105,117,143,144],[62,105,143,144],[62,105,110,125,137,145],[62,105,146],[62,105,125,147],[62,105,120,131,148],[62,105,110,149],[62,105,137,150],[62,105,124,151],[62,105,152],[62,105,110,117,119,128,137,148,151,153],[62,105,137,154],[62,72,76,105,148],[62,72,105,137,148],[62,67,105],[62,69,72,105,145,148],[62,105,125,145],[62,105,155],[62,67,105,155],[62,69,72,105,125,148],[62,64,65,68,71,105,117,137,148],[62,72,79,105],[62,64,70,105],[62,72,93,94,105],[62,68,72,105,140,148,155],[62,93,105,155],[62,66,67,105,155],[62,72,105],[62,66,67,68,69,70,71,72,73,74,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,97,98,99,105],[62,72,87,105],[62,72,79,80,105],[62,70,72,80,81,105],[62,71,105],[62,64,67,72,105],[62,72,76,80,81,105],[62,76,105],[62,70,72,75,105,148],[62,64,69,72,79,105],[62,105,137],[62,67,72,93,105,153,155],[53,62,105],[52,62,105],[52,53,54,55,62,105]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7199a225c0460ec025cb9ee2a9c351889ac19b1183feb73bb7ee9adedb1152a2","signature":"76e517a5861481e77057169ea3d3877bbd83581241af208686eae0b364355b22"},{"version":"9cabac5cd6330251836f548382455aff38c88318d3fadbd467acb7477b4bcf95","signature":"565bf07f9dee3cb4297bf900ac49eb9ebe30bcd74f53befa2ff263562f85cc5f"},{"version":"4921d5016466205c683b813ab0dd86d9111a99ba8bc279d4419eb1f238df4a16","signature":"ba888eb1fc647c8ab1f7220d2fc2108fc6632678f773b317fa827c0ef80f4f4c"},{"version":"95529d5b26e011d55f5147a7490c3a5c030060170a14eee407dc1639ac4be2ea","signature":"a701444080c16a20f51bbb75856cb2d23fb74f17e5033a3fc3c7b1ac61ca0c78"},"2b00c462bc8a8e235e31b977e8e2a57800ac37aebfca642d2da6a20736662bc4",{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"13af9e8fb6757946c48117315866177b95e554d1e773577bb6ca6e40083b6d73","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f550093acc8ad4f64ad1c7e96153615f3351b81919dae5473375b81e1e8f272c","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"fcc4b974b1cf7eca347490f11143ab2f5bc3c449b2073eb4d9494f6a16651e75","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"1cbae62b67f180291d211f0e1045fb923a8ec800cfbf9caa13223d769013dae2","impliedFormat":1},{"version":"553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"92949391eab12082218333a61b9070996f404ad662ff488d48ebb09564963d2b","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1}],"root":[[52,56]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"importHelpers":true,"isolatedDeclarations":true,"module":99,"noEmitOnError":true,"noImplicitReturns":true,"outDir":"./esm","preserveConstEnums":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":8,"verbatimModuleSyntax":true},"referencedMap":[[102,1],[103,1],[104,2],[62,3],[105,4],[106,5],[107,6],[57,7],[60,8],[58,7],[59,7],[108,9],[109,10],[110,11],[111,12],[112,13],[113,14],[114,14],[116,15],[115,16],[117,17],[118,18],[119,19],[101,20],[61,7],[120,21],[121,22],[122,23],[155,24],[123,25],[124,26],[125,27],[126,28],[127,29],[128,30],[129,31],[130,32],[131,33],[132,34],[133,34],[134,35],[135,7],[136,7],[137,36],[139,37],[138,38],[140,39],[141,40],[142,41],[143,42],[144,43],[145,44],[146,45],[147,46],[148,47],[149,48],[150,49],[151,50],[152,51],[153,52],[154,53],[63,7],[50,7],[51,7],[9,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[8,7],[49,7],[46,7],[47,7],[48,7],[1,7],[79,54],[89,55],[78,54],[99,56],[70,57],[69,58],[98,59],[92,60],[97,61],[72,62],[86,63],[71,64],[95,65],[67,66],[66,59],[96,67],[68,68],[73,69],[74,7],[77,69],[64,7],[100,70],[90,71],[81,72],[82,73],[84,74],[80,75],[83,76],[93,59],[75,77],[76,78],[85,79],[65,80],[88,71],[87,69],[91,7],[94,81],[54,82],[53,83],[55,83],[56,84],[52,7]],"latestChangedDtsFile":"./types/index.d.ts","version":"5.7.3"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.helper.d.ts","sourceRoot":"","sources":["../../src/binding.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,qBAAa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAwB;IAC1C,OAAO,CAAC,oBAAoB,CAAM;IAElC,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IACD,IAAI,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAErC;IAED,IAAI,SAAS,IAAI,cAAc,EAAE,CAEhC;IAED,OAAO,IAAI,IAAI;IASf,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"binding.helper.d.ts","sourceRoot":"","sources":["../../src/binding.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EA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AAI;IAYP,gDAAgD;IAChD,MAAM,CACJ,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,kCAAkC,EAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,EACxC,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAUP,0DAA0D;IAC1D,SAAS,IAAI,IAAI;IAUjB;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EACrD,OAAO,EAAE,CAAC,GAAG,IAAI,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GAChC,IAAI;IA6BP,8CAA8C;IAC9C,SAAS,CAAC,cAAc,IAAI,MAAM;IAQlC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;CAGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindingEvent.service.d.ts","sourceRoot":"","sources":["../../src/bindingEvent.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;;;GAIG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,cAAc,EAAE,oBAAoB,EAAE,CAAM;IAEtD,IAAI,aAAa,IAAI,oBAAoB,EAAE,CAE1C;IAED,OAAO,IAAI,IAAI;IAKf,4CAA4C;IAC5C,IAAI,CACF,iBAAiB,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EACrF,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"bindingEvent.service.d.ts","sourceRoot":"","sources":["../../src/bindingEvent.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;;;GAIG;AACH,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,cAAc,EAAE,oBAAoB,EAAE,CAAM;IAEtD,IAAI,aAAa,IAAI,oBAAoB,EAAE,CAE1C;IAED,OAAO,IAAI,IAAI;IAKf,4CAA4C;IAC5C,IAAI,CACF,iBAAiB,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EACrF,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EACnC,QAAQ,EAAE,kCAAkC,EAC5C,eAAe,CAAC,EAAE,OAAO,GAAG,uBAAuB,EACnD,SAAS,SAAK,GACb,IAAI;IAwBP,0DAA0D;IAC1D,MAAM,CACJ,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,EAChD,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EACnC,QAAQ,EAAE,kCAAkC,GAC3C,IAAI;IAcP,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAOrE;;OAEG;IACH,SAAS,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI;CAuB/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slickgrid-universal/binding",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.2",
|
|
4
4
|
"description": "Simple Vanilla Implementation of a Binding Engine & Helper to add properties/events 2 way bindings",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"> 1%",
|
|
38
38
|
"not dead"
|
|
39
39
|
],
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c71e212ea29c1f8722b76e53f1e3210e037cb807"
|
|
41
41
|
}
|
package/src/binding.helper.ts
CHANGED
|
@@ -24,12 +24,19 @@ export class BindingHelper {
|
|
|
24
24
|
this._observers = [];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
addElementBinding<T extends Element = Element>(
|
|
27
|
+
addElementBinding<T extends Element = Element>(
|
|
28
|
+
variable: any,
|
|
29
|
+
property: string,
|
|
30
|
+
selector: string,
|
|
31
|
+
attribute: string,
|
|
32
|
+
events?: string | string[],
|
|
33
|
+
callback?: (val: any) => void
|
|
34
|
+
): void {
|
|
28
35
|
const elements = document.querySelectorAll<T>(`${this.querySelectorPrefix}${selector}`);
|
|
29
36
|
|
|
30
37
|
// before creating a new observer, first check if the variable already has an associated observer
|
|
31
38
|
// if we can't find an observer then we'll create a new one for it
|
|
32
|
-
let observer = this._observers.find(bind => bind.property === variable);
|
|
39
|
+
let observer = this._observers.find((bind) => bind.property === variable);
|
|
33
40
|
if (!observer) {
|
|
34
41
|
observer = new BindingService({ variable, property });
|
|
35
42
|
}
|
|
@@ -37,7 +44,7 @@ export class BindingHelper {
|
|
|
37
44
|
// add event(s) binding
|
|
38
45
|
// when having multiple events, we'll loop through through them and add a binding for each
|
|
39
46
|
if (Array.isArray(events)) {
|
|
40
|
-
events.forEach(eventName => observer?.bind<T>(elements, attribute, eventName, callback));
|
|
47
|
+
events.forEach((eventName) => observer?.bind<T>(elements, attribute, eventName, callback));
|
|
41
48
|
} else {
|
|
42
49
|
observer?.bind<T>(elements, attribute, events, callback);
|
|
43
50
|
}
|
|
@@ -46,10 +53,15 @@ export class BindingHelper {
|
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
/** From a DOM element selector, which could be zero or multiple elements, add an event listener */
|
|
49
|
-
bindEventHandler<T extends Element = Element>(
|
|
56
|
+
bindEventHandler<T extends Element = Element>(
|
|
57
|
+
selector: string,
|
|
58
|
+
eventName: string,
|
|
59
|
+
callback: EventListenerOrEventListenerObject,
|
|
60
|
+
options?: boolean | AddEventListenerOptions
|
|
61
|
+
): void {
|
|
50
62
|
const elements = document.querySelectorAll<T>(`${this.querySelectorPrefix}${selector}`);
|
|
51
63
|
|
|
52
|
-
elements.forEach(elm => {
|
|
64
|
+
elements.forEach((elm) => {
|
|
53
65
|
if (elm?.addEventListener) {
|
|
54
66
|
elm.addEventListener(eventName, callback, options);
|
|
55
67
|
}
|
|
@@ -63,7 +75,7 @@ export class BindingHelper {
|
|
|
63
75
|
setElementAttributeValue<T extends Element = Element>(selector: string, attribute: string, value: any): void {
|
|
64
76
|
const elements = document.querySelectorAll<T>(`${this.querySelectorPrefix}${selector}`);
|
|
65
77
|
|
|
66
|
-
elements.forEach(elm => {
|
|
78
|
+
elements.forEach((elm) => {
|
|
67
79
|
elm.textContent = '';
|
|
68
80
|
if (elm && attribute in elm) {
|
|
69
81
|
elm[attribute as keyof T] = value;
|
package/src/binding.service.ts
CHANGED
|
@@ -17,7 +17,11 @@ export class BindingService {
|
|
|
17
17
|
this._binding = binding;
|
|
18
18
|
this._property = binding.property || '';
|
|
19
19
|
this._elementBindings = [];
|
|
20
|
-
if (
|
|
20
|
+
if (
|
|
21
|
+
binding.property &&
|
|
22
|
+
binding.variable &&
|
|
23
|
+
(binding.variable.hasOwnProperty(binding.property) || binding.property in binding.variable)
|
|
24
|
+
) {
|
|
21
25
|
this._value = binding.variable[binding.property];
|
|
22
26
|
} else {
|
|
23
27
|
this._value = binding.variable;
|
|
@@ -26,7 +30,7 @@ export class BindingService {
|
|
|
26
30
|
if (typeof binding.variable === 'object') {
|
|
27
31
|
Object.defineProperty(binding.variable, binding.property, {
|
|
28
32
|
get: this.valueGetter.bind(this),
|
|
29
|
-
set: this.valueSetter.bind(this)
|
|
33
|
+
set: this.valueSetter.bind(this),
|
|
30
34
|
});
|
|
31
35
|
}
|
|
32
36
|
}
|
|
@@ -70,10 +74,15 @@ export class BindingService {
|
|
|
70
74
|
* 2- when an event is provided, we will replace the DOM element (by an attribute) every time an event is triggered
|
|
71
75
|
* 2.1- we could also provide an extra callback method to execute when the event gets triggered
|
|
72
76
|
*/
|
|
73
|
-
bind<T extends Element = Element>(
|
|
77
|
+
bind<T extends Element = Element>(
|
|
78
|
+
elements: T | NodeListOf<T> | null,
|
|
79
|
+
attribute: string,
|
|
80
|
+
eventName?: string,
|
|
81
|
+
eventCallback?: (val: any) => any
|
|
82
|
+
): this {
|
|
74
83
|
if (elements && (elements as NodeListOf<T>).forEach) {
|
|
75
84
|
// multiple DOM elements coming from a querySelectorAll() call
|
|
76
|
-
(elements as NodeListOf<T>).forEach(elm => this.bindSingleElement(elm, attribute, eventName, eventCallback));
|
|
85
|
+
(elements as NodeListOf<T>).forEach((elm) => this.bindSingleElement(elm, attribute, eventName, eventCallback));
|
|
77
86
|
} else if (elements) {
|
|
78
87
|
// single DOM element coming from a querySelector() call
|
|
79
88
|
this.bindSingleElement(elements as T, attribute, eventName, eventCallback);
|
|
@@ -83,10 +92,16 @@ export class BindingService {
|
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
/** Unbind (remove) an element event listener */
|
|
86
|
-
unbind(
|
|
95
|
+
unbind(
|
|
96
|
+
element: Element | null,
|
|
97
|
+
eventName: string,
|
|
98
|
+
listener: EventListenerOrEventListenerObject,
|
|
99
|
+
options?: boolean | EventListenerOptions,
|
|
100
|
+
eventUid?: string
|
|
101
|
+
): void {
|
|
87
102
|
if (element) {
|
|
88
103
|
element.removeEventListener(eventName, listener, options);
|
|
89
|
-
const eventIdx = this._boundedEventWithListeners.findIndex(be => be.uid === eventUid);
|
|
104
|
+
const eventIdx = this._boundedEventWithListeners.findIndex((be) => be.uid === eventUid);
|
|
90
105
|
if (eventIdx >= 0) {
|
|
91
106
|
this._boundedEventWithListeners.splice(eventIdx, 1);
|
|
92
107
|
}
|
|
@@ -110,7 +125,12 @@ export class BindingService {
|
|
|
110
125
|
* 2- when an event is provided, we will replace the DOM element (by an attribute) every time an event is triggered
|
|
111
126
|
* 2.1- we could also provide an extra callback method to execute when the event gets triggered
|
|
112
127
|
*/
|
|
113
|
-
protected bindSingleElement<T extends Element = Element>(
|
|
128
|
+
protected bindSingleElement<T extends Element = Element>(
|
|
129
|
+
element: T | null,
|
|
130
|
+
attribute: string,
|
|
131
|
+
eventName?: string,
|
|
132
|
+
eventCallback?: (val: any) => any
|
|
133
|
+
): void {
|
|
114
134
|
const binding: ElementBinding<T> | ElementBindingWithListener<T> = { element, attribute };
|
|
115
135
|
if (element) {
|
|
116
136
|
if (eventName) {
|
|
@@ -142,8 +162,8 @@ export class BindingService {
|
|
|
142
162
|
/** Generate a UUID version 4 RFC compliant */
|
|
143
163
|
protected generateUuidV4(): string {
|
|
144
164
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
|
145
|
-
const r = Math.random() * 16 | 0;
|
|
146
|
-
const v = c === 'x' ? r : (r & 0x3 | 0x8
|
|
165
|
+
const r = (Math.random() * 16) | 0;
|
|
166
|
+
const v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
147
167
|
return v.toString(16);
|
|
148
168
|
});
|
|
149
169
|
}
|
|
@@ -151,4 +171,4 @@ export class BindingService {
|
|
|
151
171
|
protected hasData(value: any): boolean {
|
|
152
172
|
return value !== undefined && value !== null && value !== '';
|
|
153
173
|
}
|
|
154
|
-
}
|
|
174
|
+
}
|
|
@@ -20,16 +20,20 @@ export class BindingEventService {
|
|
|
20
20
|
/** Bind an event listener to any element */
|
|
21
21
|
bind(
|
|
22
22
|
elementOrElements: Document | Element | NodeListOf<Element> | Array<Element> | Window,
|
|
23
|
-
eventNameOrNames: string | string[],
|
|
23
|
+
eventNameOrNames: string | string[],
|
|
24
|
+
listener: EventListenerOrEventListenerObject,
|
|
24
25
|
listenerOptions?: boolean | AddEventListenerOptions,
|
|
25
26
|
groupName = ''
|
|
26
27
|
): void {
|
|
27
28
|
// convert to array for looping in next task
|
|
28
|
-
const eventNames =
|
|
29
|
+
const eventNames = Array.isArray(eventNameOrNames) ? eventNameOrNames : [eventNameOrNames];
|
|
29
30
|
|
|
30
|
-
if (
|
|
31
|
+
if (
|
|
32
|
+
!(elementOrElements instanceof HTMLElement || elementOrElements instanceof DocumentFragment) &&
|
|
33
|
+
(elementOrElements as NodeListOf<HTMLElement>)?.forEach
|
|
34
|
+
) {
|
|
31
35
|
// multiple elements to bind to
|
|
32
|
-
(elementOrElements as NodeListOf<HTMLElement>).forEach(element => {
|
|
36
|
+
(elementOrElements as NodeListOf<HTMLElement>).forEach((element) => {
|
|
33
37
|
for (const eventName of eventNames) {
|
|
34
38
|
element.addEventListener(eventName, listener, listenerOptions);
|
|
35
39
|
this._boundedEvents.push({ element, eventName, listener, groupName });
|
|
@@ -39,15 +43,19 @@ export class BindingEventService {
|
|
|
39
43
|
// single elements to bind to
|
|
40
44
|
for (const eventName of eventNames) {
|
|
41
45
|
(elementOrElements as Element).addEventListener(eventName, listener, listenerOptions);
|
|
42
|
-
this._boundedEvents.push({ element:
|
|
46
|
+
this._boundedEvents.push({ element: elementOrElements as Element, eventName, listener, groupName });
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/** Unbind a specific listener that was bounded earlier */
|
|
48
|
-
unbind(
|
|
52
|
+
unbind(
|
|
53
|
+
elementOrElements: Element | NodeListOf<Element>,
|
|
54
|
+
eventNameOrNames: string | string[],
|
|
55
|
+
listener: EventListenerOrEventListenerObject
|
|
56
|
+
): void {
|
|
49
57
|
// convert to array for looping in next task
|
|
50
|
-
const elements =
|
|
58
|
+
const elements = Array.isArray(elementOrElements) ? elementOrElements : [elementOrElements];
|
|
51
59
|
const eventNames = Array.isArray(eventNameOrNames) ? eventNameOrNames : [eventNameOrNames];
|
|
52
60
|
|
|
53
61
|
for (const eventName of eventNames) {
|
|
@@ -60,7 +68,7 @@ export class BindingEventService {
|
|
|
60
68
|
}
|
|
61
69
|
|
|
62
70
|
unbindByEventName(element: Element | Window, eventName: string): void {
|
|
63
|
-
const boundedEvent = this._boundedEvents.find(e => e.element === element && e.eventName === eventName);
|
|
71
|
+
const boundedEvent = this._boundedEvents.find((e) => e.element === element && e.eventName === eventName);
|
|
64
72
|
if (boundedEvent) {
|
|
65
73
|
this.unbind(boundedEvent.element, boundedEvent.eventName, boundedEvent.listener);
|
|
66
74
|
}
|
|
@@ -77,7 +85,7 @@ export class BindingEventService {
|
|
|
77
85
|
// Note: we need to loop in reverse order to avoid array reindexing (causing index offset) after a splice is called
|
|
78
86
|
for (let i = this._boundedEvents.length - 1; i >= 0; --i) {
|
|
79
87
|
const boundedEvent = this._boundedEvents[i];
|
|
80
|
-
if (groupNames.some(g => g === boundedEvent.groupName)) {
|
|
88
|
+
if (groupNames.some((g) => g === boundedEvent.groupName)) {
|
|
81
89
|
const { element, eventName, listener } = boundedEvent;
|
|
82
90
|
this.unbind(element, eventName, listener);
|
|
83
91
|
this._boundedEvents.splice(i, 1);
|