clientnode 3.0.1143 → 3.0.1145
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/Lock.d.ts +38 -0
- package/dist/Lock.js +1 -0
- package/dist/Semaphore.d.ts +29 -0
- package/dist/Semaphore.js +1 -0
- package/dist/Tools.d.ts +301 -0
- package/dist/Tools.js +1 -0
- package/dist/array.d.ts +150 -0
- package/dist/array.js +1 -0
- package/dist/constants.d.ts +63 -0
- package/dist/constants.js +1 -0
- package/dist/context.d.ts +11 -0
- package/dist/context.js +1 -0
- package/dist/cookie.d.ts +31 -0
- package/dist/cookie.js +1 -0
- package/dist/data-transfer.d.ts +64 -0
- package/dist/data-transfer.js +1 -0
- package/dist/datetime.d.ts +37 -0
- package/dist/datetime.js +1 -0
- package/dist/filesystem.d.ts +127 -0
- package/dist/filesystem.js +1 -0
- package/dist/function.d.ts +20 -0
- package/dist/function.js +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -0
- package/dist/indicators.d.ts +68 -0
- package/dist/indicators.js +1 -0
- package/dist/number.d.ts +35 -0
- package/dist/number.js +1 -0
- package/dist/object.d.ts +221 -0
- package/dist/object.js +1 -0
- package/dist/process.d.ts +22 -0
- package/dist/process.js +1 -0
- package/dist/property-types.js +1 -0
- package/dist/require.d.ts +4 -0
- package/dist/require.js +1 -0
- package/dist/scope.d.ts +18 -0
- package/dist/scope.js +1 -0
- package/dist/string.d.ts +289 -0
- package/dist/string.js +1 -0
- package/dist/test/Lock.d.ts +1 -0
- package/dist/test/Semaphore.d.ts +1 -0
- package/dist/test/Tools.d.ts +1 -0
- package/dist/test/array.d.ts +1 -0
- package/dist/test/cookie.d.ts +1 -0
- package/dist/test/data-transfer.d.ts +1 -0
- package/dist/test/datetime.d.ts +1 -0
- package/dist/test/filesystem.d.ts +1 -0
- package/dist/test/function.d.ts +1 -0
- package/dist/test/indicators.d.ts +1 -0
- package/dist/test/number.d.ts +1 -0
- package/dist/test/object.d.ts +1 -0
- package/dist/test/process.d.ts +1 -0
- package/dist/test/property-types.d.ts +1 -0
- package/dist/test/scope.d.ts +1 -0
- package/dist/test/string.d.ts +1 -0
- package/dist/test/utility.d.ts +1 -0
- package/{testHelper.d.ts → dist/test-helper.d.ts} +5 -24
- package/dist/test-helper.js +1 -0
- package/{type.d.ts → dist/type.d.ts} +3 -7
- package/dist/type.js +1 -0
- package/dist/utility.d.ts +30 -0
- package/dist/utility.js +1 -0
- package/package.json +46 -34
- package/index.d.ts +0 -1694
- package/index.js +0 -1
- package/property-types.js +0 -1
- package/testHelper.js +0 -1
- /package/{property-types.d.ts → dist/property-types.d.ts} +0 -0
package/dist/array.d.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Mapping, Page, PaginateOptions } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* Summarizes given property of given item list.
|
|
4
|
+
* @param data - Array of objects with given property name.
|
|
5
|
+
* @param propertyName - Property name to summarize.
|
|
6
|
+
* @param defaultValue - Value to return if property values doesn't match.
|
|
7
|
+
* @returns Aggregated value.
|
|
8
|
+
*/
|
|
9
|
+
export declare const aggregatePropertyIfEqual: <T = unknown>(data: Array<Mapping<unknown>>, propertyName: string, defaultValue?: T) => T;
|
|
10
|
+
/**
|
|
11
|
+
* Deletes every item witch has only empty attributes for given property names.
|
|
12
|
+
* If given property names are empty each attribute will be considered. The
|
|
13
|
+
* empty string, "null" and "undefined" will be interpreted as empty.
|
|
14
|
+
* @param data - Data to filter.
|
|
15
|
+
* @param propertyNames - Properties to consider.
|
|
16
|
+
* @returns Given data without empty items.
|
|
17
|
+
*/
|
|
18
|
+
export declare const deleteEmptyItems: <T extends Mapping<unknown> = Mapping<unknown>>(data: Array<T>, propertyNames?: Array<string | symbol>) => Array<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Extracts all properties from all items which occur in given property names.
|
|
21
|
+
* @param data - Data where each item should be sliced.
|
|
22
|
+
* @param propertyNames - Property names to extract.
|
|
23
|
+
* @returns Data with sliced items.
|
|
24
|
+
*/
|
|
25
|
+
export declare const extract: <T = Mapping<unknown>>(data: unknown, propertyNames: Array<string>) => Array<T>;
|
|
26
|
+
/**
|
|
27
|
+
* Extracts all values which matches given regular expression.
|
|
28
|
+
* @param data - Data to filter.
|
|
29
|
+
* @param regularExpression - Pattern to match for.
|
|
30
|
+
* @returns Filtered data.
|
|
31
|
+
*/
|
|
32
|
+
export declare const extractIfMatches: (data: unknown, regularExpression: string | RegExp) => Array<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Filters given data if given property is set or not.
|
|
35
|
+
* @param data - Data to filter.
|
|
36
|
+
* @param propertyName - Property name to check for existence.
|
|
37
|
+
* @returns Given data without the items which doesn't have specified property.
|
|
38
|
+
*/
|
|
39
|
+
export declare const extractIfPropertyExists: <T extends Mapping<unknown> = Mapping<unknown>>(data: unknown, propertyName: string) => Array<T>;
|
|
40
|
+
/**
|
|
41
|
+
* Extract given data where specified property value matches given patterns.
|
|
42
|
+
* @param data - Data to filter.
|
|
43
|
+
* @param propertyPattern - Mapping of property names to pattern.
|
|
44
|
+
* @returns Filtered data.
|
|
45
|
+
*/
|
|
46
|
+
export declare const extractIfPropertyMatches: <T = unknown>(data: unknown, propertyPattern: Mapping<RegExp | string>) => Array<T>;
|
|
47
|
+
/**
|
|
48
|
+
* Determines all objects which exists in "first" and in "second".
|
|
49
|
+
* Object key which will be compared are given by "keys". If an empty array is
|
|
50
|
+
* given each key will be compared. If an object is given corresponding initial
|
|
51
|
+
* data key will be mapped to referenced new data key.
|
|
52
|
+
* @param first - Referenced data to check for.
|
|
53
|
+
* @param second - Data to check for existence.
|
|
54
|
+
* @param keys - Keys to define equality.
|
|
55
|
+
* @param strict - The strict parameter indicates whether "null" and
|
|
56
|
+
* "undefined" should be interpreted as equal (takes only effect if given keys
|
|
57
|
+
* aren't empty).
|
|
58
|
+
* @returns Data which does exit in given initial data.
|
|
59
|
+
*/
|
|
60
|
+
export declare const intersect: <T = unknown>(first: unknown, second: unknown, keys?: Array<string> | Mapping<number | string>, strict?: boolean) => Array<T>;
|
|
61
|
+
/**
|
|
62
|
+
* Converts given object into an array.
|
|
63
|
+
* @param object - Target to convert.
|
|
64
|
+
* @returns Generated array.
|
|
65
|
+
*/
|
|
66
|
+
export declare const makeArray: <T = unknown>(object: unknown) => Array<T>;
|
|
67
|
+
/**
|
|
68
|
+
* Creates a list of items within given range.
|
|
69
|
+
* @param range - Array of lower and upper bounds. If only one value is given
|
|
70
|
+
* lower bound will be assumed to be zero. Both integers have to be positive
|
|
71
|
+
* and will be contained in the resulting array. If more than two numbers are
|
|
72
|
+
* provided given range will be returned.
|
|
73
|
+
* @param step - Space between two consecutive values.
|
|
74
|
+
* @param ignoreLastStep - Removes last step.
|
|
75
|
+
* @returns Produced array of integers.
|
|
76
|
+
*/
|
|
77
|
+
export declare const makeRange: (range: number | [number] | [number, number] | Array<number>, step?: number, ignoreLastStep?: boolean) => Array<number>;
|
|
78
|
+
/**
|
|
79
|
+
* Merge the contents of two arrays together into the first array.
|
|
80
|
+
* @param target - Target array.
|
|
81
|
+
* @param source - Source array.
|
|
82
|
+
* @returns Target array with merged given source one.
|
|
83
|
+
*/
|
|
84
|
+
export declare const merge: <T = unknown>(target: Array<T>, source: Array<T>) => Array<T>;
|
|
85
|
+
/**
|
|
86
|
+
* Generates a list if pagination symbols to render a pagination from.
|
|
87
|
+
* @param options - Configure bounds and current page of pagination to
|
|
88
|
+
* determine.
|
|
89
|
+
* @param options.boundaryCount - Indicates where to start pagination within
|
|
90
|
+
* given total range.
|
|
91
|
+
* @param options.disabled - Indicates whether to disable all items.
|
|
92
|
+
* @param options.hideNextButton - Indicates whether to show a jump to next
|
|
93
|
+
* item.
|
|
94
|
+
* @param options.hidePrevButton - Indicates whether to show a jump to previous
|
|
95
|
+
* item.
|
|
96
|
+
* @param options.page - Indicates current visible page.
|
|
97
|
+
* @param options.pageSize - Number of items per page.
|
|
98
|
+
* @param options.showFirstButton - Indicates whether to show a jump to first
|
|
99
|
+
* item.
|
|
100
|
+
* @param options.showLastButton - Indicates whether to show a jump to last
|
|
101
|
+
* item.
|
|
102
|
+
* @param options.siblingCount - Number of sibling page symbols next to current
|
|
103
|
+
* page symbol.
|
|
104
|
+
* @param options.total - Number of all items to paginate.
|
|
105
|
+
* @returns A list of pagination symbols.
|
|
106
|
+
*/
|
|
107
|
+
export declare const paginate: (options?: Partial<PaginateOptions>) => Array<Page>;
|
|
108
|
+
/**
|
|
109
|
+
* Generates all permutations of given iterable.
|
|
110
|
+
* @param data - Array like object.
|
|
111
|
+
* @returns Array of permuted arrays.
|
|
112
|
+
*/
|
|
113
|
+
export declare const permutate: <T = unknown>(data: Array<T>) => Array<Array<T>>;
|
|
114
|
+
/**
|
|
115
|
+
* Generates all lengths permutations of given iterable.
|
|
116
|
+
* @param data - Array like object.
|
|
117
|
+
* @param minimalSubsetLength - Defines how long the minimal subset length
|
|
118
|
+
* should be.
|
|
119
|
+
* @returns Array of permuted arrays.
|
|
120
|
+
*/
|
|
121
|
+
export declare const permutateLength: <T = unknown>(data: Array<T>, minimalSubsetLength?: number) => Array<Array<T>>;
|
|
122
|
+
/**
|
|
123
|
+
* Sums up given property of given item list.
|
|
124
|
+
* @param data - The objects with specified property to sum up.
|
|
125
|
+
* @param propertyName - Property name to sum up its value.
|
|
126
|
+
* @returns The aggregated value.
|
|
127
|
+
*/
|
|
128
|
+
export declare const sumUpProperty: (data: unknown, propertyName: string) => number;
|
|
129
|
+
/**
|
|
130
|
+
* Removes given target on given list.
|
|
131
|
+
* @param list - Array to splice.
|
|
132
|
+
* @param target - Target to remove from given list.
|
|
133
|
+
* @param strict - Indicates whether to fire an exception if given target
|
|
134
|
+
* doesn't exist given list.
|
|
135
|
+
* @returns Item with the appended target.
|
|
136
|
+
*/
|
|
137
|
+
export declare const removeArrayItem: <T = unknown>(list: Array<T>, target: T, strict?: boolean) => Array<T>;
|
|
138
|
+
/**
|
|
139
|
+
* Sorts given object of dependencies in a topological order.
|
|
140
|
+
* @param items - Items to sort.
|
|
141
|
+
* @returns Sorted array of given items respecting their dependencies.
|
|
142
|
+
*/
|
|
143
|
+
export declare const sortTopological: (items: Mapping<Array<string> | string>) => Array<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Makes all values in given iterable unique by removing duplicates (The first
|
|
146
|
+
* occurrences will be left).
|
|
147
|
+
* @param data - Array like object.
|
|
148
|
+
* @returns Sliced version of given object.
|
|
149
|
+
*/
|
|
150
|
+
export declare const unique: <T = unknown>(data: Array<T>) => Array<T>;
|
package/dist/array.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends")):r(e["@babel/runtime/helpers/extends"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__3__){return function(){var __webpack_modules__=[,function(e,r,t){t.d(r,{CLASS_TO_TYPE_MAPPING:function(){return n},PLAIN_OBJECT_PROTOTYPES:function(){return o}});Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined");var n={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},o=[Object.prototype]},function(e,r,t){t.d(r,{isArrayLike:function(){return a},isPlainObject:function(){return i}});var n=t(1),o=t(4);var a=function(e){var r;try{r=Boolean(e)&&e.length}catch(e){return!1}var t,n=(0,o.determineType)(e);if("function"===n||![null,void 0].includes(t=e)&&"object"==typeof t&&t===(null==t?void 0:t.window))return!1;if("array"===n||0===r)return!0;if("number"==typeof r&&r>0)try{return e[r-1],!0}catch(e){}return!1},i=function(e){return null!==e&&"object"==typeof e&&n.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var addDynamicGetterAndSetter=function e(r,t,n,o,a,i){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o={}),void 0===a&&(a=!0),void 0===i&&(i=[Object]),a&&"object"==typeof r)if(Array.isArray(r))for(var s,u=0,l=_createForOfIteratorHelperLoose(r);!(s=l()).done;){var f=s.value;r[u]=e(f,t,n,o,a),u+=1}else if(isMap(r))for(var c,_=_createForOfIteratorHelperLoose(r);!(c=_()).done;){var p=c.value,v=p[0],d=p[1];r.set(v,e(d,t,n,o,a))}else if(isSet(r)){for(var y,b=[],g=_createForOfIteratorHelperLoose(r);!(y=g()).done;){var h=y.value;r.delete(h),b.push(e(h,t,n,o,a))}for(var O=0,m=b;O<m.length;O++){var A=m[O];r.add(A)}}else if(null!==r)for(var I=0,P=Object.entries(r);I<P.length;I++){var j=P[I],x=j[0],E=j[1];r[x]=e(E,t,n,o,a)}if(t||n)for(var L,w,M=function(){var e=w.value;if(null!==r&&"object"==typeof r&&r instanceof e){var a=getProxyHandler(r,o),i=getProxyHandler(r,o);t&&(i.get=function(e,n){return"__target__"===n?r:"__revoke__"===n?function(){return l(),r}:"function"==typeof r[n]?r[n]:t(a.get(u,n),n,r)}),n&&(i.set=function(e,t,o){return a.set(u,t,n(t,o,r))});var s=Proxy.revocable({},i),u=s.proxy,l=s.revoke;return{v:u}}},k=_createForOfIteratorHelperLoose(i);!(w=k()).done;)if(L=M())return L.v;return r},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var n=new Map;return function(e){return JSON.stringify(e,(function e(t,o){if(null!==o&&"object"==typeof o){var a,i;if(n.has(o))return r(null!==(a=n.get(o))&&void 0!==a?a:null,t,o,n);if(n.set(o,null),Array.isArray(o)){i=[];for(var s,u=_createForOfIteratorHelperLoose(o);!(s=u()).done;){var l=s.value;i.push(e(null,l))}}else{i={};for(var f=0,c=Object.entries(o);f<c.length;f++){var _=c[f],p=_[0],v=_[1];i[p]=e(p,v)}}return n.set(o,i),i}return o}),t)}(e)},convertMapToPlainObject=function e(r,t){if(void 0===t&&(t=!0),"object"==typeof r){if(isMap(r)){for(var n,o={},a=_createForOfIteratorHelperLoose(r);!(n=a()).done;){var i=n.value,s=i[0],u=i[1];t&&(u=e(u,t)),["number","string"].includes(typeof s)&&(o[""+s]=u)}return o}if(t)if(isPlainObject(r))for(var l=0,f=Object.entries(r);l<f.length;l++){var c=f[l],_=c[0],p=c[1];r[_]=e(p,t)}else if(Array.isArray(r))for(var v=0,d=0,y=r;d<y.length;d++){var b=y[d];r[v]=e(b,t),v+=1}else if(isSet(r)){for(var g,h=[],O=_createForOfIteratorHelperLoose(r);!(g=O()).done;){var m=g.value;r.delete(m),h.push(e(m,t))}for(var A=0,I=h;A<I.length;A++){var P=I[A];r.add(P)}}}return r},convertPlainObjectToMap=function e(r,t){if(void 0===t&&(t=!0),"object"==typeof r){if(isPlainObject(r)){for(var n=new Map,o=0,a=Object.entries(r);o<a.length;o++){var i=a[o],s=i[0],u=i[1];t&&(r[s]=e(u,t)),n.set(s,r[s])}return n}if(t)if(Array.isArray(r))for(var l=0,f=0,c=r;f<c.length;f++){var _=c[f];r[l]=e(_,t),l+=1}else if(isMap(r))for(var p,v=_createForOfIteratorHelperLoose(r);!(p=v()).done;){var d=p.value,y=d[0],b=d[1];r.set(y,e(b,t))}else if(isSet(r)){for(var g,h=[],O=_createForOfIteratorHelperLoose(r);!(g=O()).done;){var m=g.value;r.delete(m),h.push(e(m,t))}for(var A=0,I=h;A<I.length;A++){var P=I[A];r.add(P)}}}return r},convertSubstringInPlainObject=function e(r,t,n){for(var o=0,a=Object.entries(r);o<a.length;o++){var i=a[o],s=i[0],u=i[1];isPlainObject(u)?r[s]=e(u,t,n):"string"==typeof u&&(r[s]=u.replace(t,n))}return r},copy=function e(r,t,n,o,a,i,s){if(void 0===t&&(t=-1),void 0===n&&(n=VALUE_COPY_SYMBOL),void 0===o&&(o=null),void 0===a&&(a=!1),void 0===i&&(i=[]),void 0===s&&(s=0),null!==r&&"object"==typeof r)if(o){if(r===o)throw new Error("Can't copy because source and destination are identical.");if(!a&&![void 0,null].includes(r)){var u=i.indexOf(r);if(-1!==u)return i[u];i.push(r)}var l=function(r){if(-1!==t&&t<s+1)return n===VALUE_COPY_SYMBOL?r:n;var o=e(r,t,n,null,a,i,s+1);return a||[void 0,null].includes(r)||"object"!=typeof r||i.push(r),o};if(Array.isArray(r))for(var f,c=_createForOfIteratorHelperLoose(r);!(f=c()).done;){var _=f.value;o.push(l(_))}else if(r instanceof Map)for(var p,v=_createForOfIteratorHelperLoose(r);!(p=v()).done;){var d=p.value,y=d[0],b=d[1];o.set(y,l(b))}else if(r instanceof Set)for(var g,h=_createForOfIteratorHelperLoose(r);!(g=h()).done;){var O=g.value;o.add(l(O))}else for(var m=0,A=Object.entries(r);m<A.length;m++){var I=A[m],P=I[0],j=I[1];try{o[P]=l(j)}catch(e){throw new Error('Failed to copy property value object "'+P+'": '+represent(e))}}}else if(r){if(Array.isArray(r))return e(r,t,n,[],a,i,s);if(r instanceof Map)return e(r,t,n,new Map,a,i,s);if(r instanceof Set)return e(r,t,n,new Set,a,i,s);if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){var x=/[^/]*$/.exec(r.toString());return(o=new RegExp(r.source,x?x[0]:void 0)).lastIndex=r.lastIndex,o}return"undefined"!=typeof Blob&&r instanceof Blob?r.slice(0,r.size,r.type):e(r,t,n,{},a,i,s)}return o||r},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return""+e;var r=typeof e;if(["function","object"].includes(r)&&e.toString){var t=_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&eval("Buffer").isBuffer&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,n=[firstValue,secondValue];t<n.length;t++){var o=n[t],a=new FileReader;a.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+represent(r[0])+") !== Blob("+represent(r[1])+")"))},a.readAsDataURL(o)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i13=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i13<_arr4.length;_i13++){var _arr4$_i=_arr4[_i13],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i14];if(0!==options.deep){var r=equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,n=function(e){var r;return"string"==typeof e?"["+t+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(null!=r&&r.then&&promises.push(r.then(n)),"string"==typeof r)return{v:n(r)}}index+=1},_ret2,_i14=0,_arr5=first;_i14<_arr5.length;_i14++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step13.value,r=e[0],t=e[1];if(0!==options.deep){var n=equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!n)return{v:!1};var o=function(e){var t;return"string"==typeof e?"get("+represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(null!=n&&n.then&&promises.push(n.then(o)),"string"==typeof n)return{v:o(n)}}},_ret3,_iterator13=_createForOfIteratorHelperLoose(first),_step13;!(_step13=_iterator13()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step14.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var a=r.value,i=equals(e,a,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof i){if(i){t=!0;break}}else n.push(i)}var s=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+represent(e)+" not found}"};return t?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(r){return e(s(r.some(identity)))}),NOOP)}))),{v:s(!1)})}},_ret4,_iterator14=_createForOfIteratorHelperLoose(first),_step14;!(_step14=_iterator14()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i15],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,a=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=a()).done;){var i=n.value;if(r.toString().startsWith(i)){o=!0;break}}if(o)return 0;if(0!==options.deep){var s=equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!s)return{v:!1};var u=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(null!=s&&s.then&&promises.push(s.then(u)),"string"==typeof s)return{v:u(s)}}},_ret5,_i15=0,_Object$entries7=Object.entries(first);_i15<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i15++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if(!o||"string"==typeof o){e(o);break}}e(!0)}),NOOP)}))}return!!options.returnReasonIfNotEqual&&">>> "+represent(firstValue)+" !== "+represent(secondValue)},evaluateDynamicData=function(e,r,t,n,o){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===n&&(n="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var a=function(e,t){void 0===t&&(t=n);var a=evaluate(e,r,t===o);if(a.error)throw new Error(a.error);return a.result},i=function e(r){if(null!==r&&"object"==typeof r){if(isProxy(r)){for(var t=0,i=[n,o];t<i.length;t++){var s=i[t];if(Object.prototype.hasOwnProperty.call(r,s))return r[s]}r=r.__target__}for(var u=0,l=Object.entries(r);u<l.length;u++){var f=l[u],c=f[0],_=f[1];if([n,o].includes(c))return"undefined"==typeof Proxy?e(a(_)):_;r[c]=e(_)}}return r};r.resolve=i;if(null!==e&&"object"==typeof e){if(Object.prototype.hasOwnProperty.call(e,n))return a(e[n]);if(Object.prototype.hasOwnProperty.call(e,o))return a(e[o],o)}return function e(r){if(null!==r&&"object"==typeof r)for(var t=0,n=Object.entries(r);t<n.length;t++){var o=n[t],a=o[0],i=o[1];if("__target__"!==a&&null!==i&&["function","undefined"].includes(typeof i)){var s=i.__target__;void 0!==s&&(r[a]=s),e(i)}}return r}(i(function e(r){if("object"!=typeof r||null===r||"undefined"==typeof Proxy)return r;for(var t=0,s=Object.entries(r);t<s.length;t++){var u=s[t],l=u[0],f=u[1];if("__target__"!==l&&null!==f&&"object"==typeof f){var c=f;if(e(c),Object.prototype.hasOwnProperty.call(c,n)||Object.prototype.hasOwnProperty.call(c,o)){var _=c;r[l]=new Proxy(c,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,s=[n,o];t<s.length;t++){var u=s[t];if(r===u&&"string"==typeof e[r])return i(a(e[r],u))}var l=i(e);if("toString"===r){var f=a(l);return f[r].bind(f)}if("string"!=typeof r){var c,_=a(l);return null!=(c=_[r])&&c.bind?_[r].bind(_):_[r]}for(var p=0,v=[n,o];p<v.length;p++){var d=v[p];if(Object.prototype.hasOwnProperty.call(e,d))return a(l,d)[r]}return l[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var s=t[r];if(Object.prototype.hasOwnProperty.call(e,s))return Object.getOwnPropertyNames(i(a(e[s],s)))}return Object.getOwnPropertyNames(e)}}),r[l].__target__||(r[l].__target__=_)}}}return r}(e)))},removeKeysInEvaluation=function e(r,t){void 0===t&&(t=["__evaluate__","__execute__"]);for(var n=0,o=Object.entries(r);n<o.length;n++){var a=o[n],i=a[0],s=a[1];!t.includes(i)&&t.some((function(e){return Object.prototype.hasOwnProperty.call(r,e)}))?delete r[i]:isPlainObject(s)&&e(s,t)}return r},extend=function e(r,t){for(var n=!1,o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];var s,u=a;r===IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof r?(n=r,s=t):(s=r,null!==t&&"object"==typeof t?u=[t].concat(u):void 0!==t&&(s=t));for(var l,f=function(r,t){return t===r?r:n&&t&&(isPlainObject(t)||isMap(t))?(o=isMap(t)?r&&isMap(r)?r:new Map:r&&isPlainObject(r)?r:{},e(n,o,t)):t;var o},c=_createForOfIteratorHelperLoose(u);!(l=c()).done;){var _=l.value,p=typeof s,v=typeof _;if(isMap(s)&&(p+=" Map"),isMap(_)&&(v+=" Map"),p===v&&s!==_)if(isMap(s)&&isMap(_))for(var d,y=_createForOfIteratorHelperLoose(_);!(d=y()).done;){var b=d.value,g=b[0],h=b[1];s.set(g,f(s.get(g),h))}else if(null===s||Array.isArray(s)||"object"!=typeof s||null===_||Array.isArray(_)||"object"!=typeof _)s=_;else for(var O=0,m=Object.entries(_);O<m.length;O++){var A=m[O],I=A[0],P=A[1];n===IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(P)||(s[I]=f(s[I],P))}else s=_}return s},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,a=[],i=_createForOfIteratorHelperLoose([].concat(r));!(o=i()).done;){var s=o.value;if("string"==typeof s)for(var u,l=_createForOfIteratorHelperLoose(s.split(n));!(u=l()).done;){var f=u.value;if(f){var c=f.match(/(.*?)(\[[0-9]+\])/g);if(c)for(var _,p=_createForOfIteratorHelperLoose(c);!(_=p()).done;){var v=_.value,d=/(.*?)(\[[0-9]+\])/.exec(v),y=d[1],b=d[2];y&&a.push(y),a.push(b.substring(1,b.length-1))}else a.push(f)}}else a=a.concat(s)}for(var g,h=e,O=_createForOfIteratorHelperLoose(a);!(g=O()).done;){var m=g.value;if(null!==h&&"object"==typeof h){if("string"==typeof m&&Object.prototype.hasOwnProperty.call(h,m))h=h[m];else if(isFunction(m))h=m(h);else if(!t)return}else if(!t)return}return h},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,n){return"[]"!==r.delete||"string"!=typeof n?e[r.delete](n):(delete e[n],!0)},get:function(t,n){return"[]"===r.get&&"string"==typeof n?e[n]:e[r.get](n)},has:function(t,n){return"[]"===r.has?n in e:e[r.has](n)},set:function(t,n,o){return"[]"!==r.set||"string"!=typeof n?e[r.set](n,o):(e[n]=o,!0)}}},mask=function e(r,t){if(!0===(t=_extends({exclude:!1,include:!0},t)).exclude||Array.isArray(t.exclude)&&0===t.exclude.length||!1===t.include||"object"!=typeof r)return{};var n=Array.isArray(t.exclude)?t.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):t.exclude,o=Array.isArray(t.include)?t.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):t.include,a={};if(isPlainObject(o))for(var i=0,s=Object.entries(o);i<s.length;i++){var u=s[i],l=u[0],f=u[1];Object.prototype.hasOwnProperty.call(r,l)&&(!0===f?a[l]=r[l]:(isPlainObject(f)||Array.isArray(f)&&f.length)&&"object"==typeof r[l]&&(a[l]=e(r[l],{include:f})))}else a=r;if(isPlainObject(n)){for(var c=!1,_=_extends({},a),p=0,v=Object.entries(n);p<v.length;p++){var d=v[p],y=d[0],b=d[1];if(Object.prototype.hasOwnProperty.call(_,y))if(!0===b)c=!0,delete _[y];else if((isPlainObject(b)||Array.isArray(b)&&b.length)&&"object"==typeof _[y]){var g=_[y];_[y]=e(_[y],{exclude:b}),_[y]!==g&&(c=!0)}}c&&(a=_)}return a},modifyObject=function e(r,t,n,o,a,i,s,u,l){if(void 0===n&&(n="__remove__"),void 0===o&&(o="__prepend__"),void 0===a&&(a="__append__"),void 0===i&&(i="__"),void 0===s&&(s="__"),void 0===u&&(u=null),void 0===l&&(l=null),isMap(t)&&isMap(r))for(var f,c=_createForOfIteratorHelperLoose(t);!(f=c()).done;){var _=f.value,p=_[0],v=_[1];r.has(p)&&e(r.get(p),v,n,o,a,i,s,t,p)}else if(null!==t&&"object"==typeof t&&null!==r&&"object"==typeof r)for(var d=0,y=Object.entries(t);d<y.length;d++){var b=y[d],g=b[0],h=b[1],O=NaN;if(Array.isArray(r)&&g.startsWith(i)&&g.endsWith(s)&&((O=parseInt(g.substring(i.length,g.length-s.length),10))<0||O>=r.length)&&(O=NaN),[n,o,a].includes(g)||!isNaN(O)){if(Array.isArray(r))if(g===n)for(var m,A=_createForOfIteratorHelperLoose([].concat(h));!(m=A()).done;){var I=m.value;"string"==typeof I&&I.startsWith(i)&&I.endsWith(s)?r.splice(parseInt(I.substring(i.length,I.length-s.length),10),1):r.includes(I)?r.splice(r.indexOf(I),1):"number"==typeof I&&I<r.length&&r.splice(I,1)}else g===a?r=r.concat(h):g===o?r=[].concat(h).concat(r):null!==r[O]&&"object"==typeof r[O]&&null!==h&&"object"==typeof h?extend(!0,e(r[O],h,n,o,a,i,s),r[O],h):r[O]=h;else if(g===n)for(var P,j=_createForOfIteratorHelperLoose([].concat(h));!(P=j()).done;){var x=P.value;"string"==typeof x&&Object.prototype.hasOwnProperty.call(r,x)&&delete r[x]}delete t[g],u&&"string"==typeof l&&delete u[l]}else null!==r&&Object.prototype.hasOwnProperty.call(r,g)&&(r[g]=e(r[g],h,n,o,a,i,s,t,g))}return r},removeKeyPrefixes=function e(r,t){void 0===t&&(t="#");var n=[].concat(t);if(Array.isArray(r))for(var o,a=0,i=_createForOfIteratorHelperLoose(r.slice());!(o=i()).done;){var s=o.value,u=!1;if("string"==typeof s){for(var l,f=_createForOfIteratorHelperLoose(n);!(l=f()).done;){var c=l.value;if(s.startsWith(c+":")){r.splice(a,1),u=!0;break}}if(u)continue}r[a]=e(s,n),a+=1}else if(isSet(r))for(var _,p=_createForOfIteratorHelperLoose(new Set(r));!(_=p()).done;){var v=_.value,d=!1;if("string"==typeof v){for(var y,b=_createForOfIteratorHelperLoose(n);!(y=b()).done;){var g=y.value;if(v.startsWith(g+":")){r.delete(v),d=!0;break}}if(d)continue}e(v,n)}else if(isMap(r))for(var h,O=_createForOfIteratorHelperLoose(new Map(r));!(h=O()).done;){var m=h.value,A=m[0],I=m[1],P=!1;if("string"==typeof A){for(var j,x=_createForOfIteratorHelperLoose(n);!(j=x()).done;){var E=j.value,L=escapeRegularExpressions(E);if(new RegExp("^"+L+"[0-9]*$").test(A)){r.delete(A),P=!0;break}}if(P)continue}r.set(A,e(I,n))}else if(null!==r&&"object"==typeof r)for(var w=0,M=Object.entries(Object.assign({},r));w<M.length;w++){for(var k,S=M[w],T=S[0],F=S[1],N=!1,H=_createForOfIteratorHelperLoose(n);!(k=H()).done;){var R=k.value,V=escapeRegularExpressions(R);if(new RegExp("^"+V+"[0-9]*$").test(T)){delete r[T],N=!0;break}}N||(r[T]=e(F,n))}return r},represent=function e(r,t,n,o,a){if(void 0===t&&(t=" "),void 0===n&&(n=""),void 0===o&&(o="__maximum_number_of_levels_reached__"),void 0===a&&(a=8),0===a)return""+o;if(null===r)return"null";if(void 0===r)return"undefined";if("string"==typeof r)return'"'+r.replace(/\n/g,"\n"+n)+'"';if(isNumeric(r)||"boolean"==typeof r)return""+r;if(Array.isArray(r)){for(var i,s="[",u=!1,l=_createForOfIteratorHelperLoose(r);!(i=l()).done;){u&&(s+=","),s+="\n"+n+t+e(i.value,t,""+n+t,o,a-1),u=!0}return u&&(s+="\n"+n),s+="]"}if(isMap(r)){for(var f,c="",_=!1,p=_createForOfIteratorHelperLoose(r);!(f=p()).done;){var v=f.value,d=v[0],y=v[1];_&&(c+=",\n"+n+t),c+=e(d,t,""+n+t,o,a-1)+" -> "+e(y,t,""+n+t,o,a-1),_=!0}return _||(c="EmptyMap"),c}if(isSet(r)){for(var b,g="{",h=!1,O=_createForOfIteratorHelperLoose(r);!(b=O()).done;){h&&(g+=","),g+="\n"+n+t+e(b.value,t,""+n+t,o,a-1),h=!0}return h?g+="\n"+n+"}":g="EmptySet",g}if(isFunction(r))return"__function__";for(var m,A="{",I=!1,P=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(r).sort());!(m=P()).done;){var j=m.value;I&&(A+=","),A+="\n"+n+t+j+": "+e(r[j],t,""+n+t,o,a-1),I=!0}return I&&(A+="\n"+n),A+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var a=n.value;r.push(a[0])}else if(null!==e)for(var i=0,s=Object.keys(e);i<s.length;i++){var u=s[i];r.push(u)}return r.sort()},unwrapProxy=function e(r,t){if(void 0===t&&(t=new Set),null!==r&&"object"==typeof r){if(t.has(r))return r;try{isFunction(r.__revoke__)&&(isProxy(r)&&(r=r.__target__),r.__revoke__())}catch(e){return r}finally{t.add(r)}if(Array.isArray(r))for(var n,o=0,a=_createForOfIteratorHelperLoose(r);!(n=a()).done;){var i=n.value;r[o]=e(i,t),o+=1}else if(isMap(r))for(var s,u=_createForOfIteratorHelperLoose(r);!(s=u()).done;){var l=s.value,f=l[0],c=l[1];r.set(f,e(c,t))}else if(isSet(r)){for(var _,p=[],v=_createForOfIteratorHelperLoose(r);!(_=v()).done;){var d=_.value;r.delete(d),p.push(e(d,t))}for(var y=0,b=p;y<b.length;y++){var g=b[y];r.add(g)}}else for(var h=0,O=Object.entries(r);h<O.length;h++){var m=O[h],A=m[0],I=m[1];r[A]=e(I,t)}}return r}}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{aggregatePropertyIfEqual:function(){return aggregatePropertyIfEqual},deleteEmptyItems:function(){return deleteEmptyItems},extract:function(){return extract},extractIfMatches:function(){return extractIfMatches},extractIfPropertyExists:function(){return extractIfPropertyExists},extractIfPropertyMatches:function(){return extractIfPropertyMatches},intersect:function(){return intersect},makeArray:function(){return makeArray},makeRange:function(){return makeRange},merge:function(){return merge},paginate:function(){return paginate},permutate:function(){return permutate},permutateLength:function(){return permutateLength},removeArrayItem:function(){return removeArrayItem},sortTopological:function(){return sortTopological},sumUpProperty:function(){return sumUpProperty},unique:function(){return unique}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_indicators__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var aggregatePropertyIfEqual=function(e,r,t){void 0===t&&(t="");var n=t;if(Array.isArray(e)&&e.length&&Object.prototype.hasOwnProperty.call(e[0],r)){n=e[0][r];for(var o=0,a=makeArray(e);o<a.length;o++){if(a[o][r]!==n)return t}}return n},deleteEmptyItems=function(e,r){void 0===r&&(r=[]);for(var t=[],n=0,o=makeArray(e);n<o.length;n++){for(var a=o[n],i=!0,s=0,u=Object.entries(a);s<u.length;s++){var l=u[s],f=l[0],c=l[1];if(!["",null,void 0].includes(c)&&(!r.length||makeArray(r).includes(f))){i=!1;break}}i||t.push(a)}return t},extract=function(e,r){for(var t=[],n=0,o=makeArray(e);n<o.length;n++){for(var a=o[n],i={},s=0,u=makeArray(r);s<u.length;s++){var l=u[s];Object.prototype.hasOwnProperty.call(a,l)&&(i[l]=a[l])}t.push(i)}return t},extractIfMatches=function(e,r){if(!r)return makeArray(e);for(var t=[],n=0,o=makeArray(e);n<o.length;n++){var a=o[n];("string"==typeof r?new RegExp(r):r).test(a)&&t.push(a)}return t},extractIfPropertyExists=function(e,r){if(e&&r){for(var t=[],n=0,o=makeArray(e);n<o.length;n++){for(var a=o[n],i=!1,s=0,u=Object.entries(a);s<u.length;s++){var l=u[s],f=l[0],c=l[1];if(f===r&&![null,void 0].includes(c)){i=!0;break}}i&&t.push(a)}return t}return e},extractIfPropertyMatches=function(e,r){if(e&&r){for(var t=[],n=0,o=makeArray(e);n<o.length;n++){var a=o[n],i=!0;for(var s in r)if(!r[s]||!("string"==typeof r[s]?new RegExp(r[s]):r[s]).test(a[s])){i=!1;break}i&&t.push(a)}return t}return e},intersect=function(e,r,t,n){void 0===t&&(t=[]),void 0===n&&(n=!0);var o=[];r=makeArray(r);for(var a=function(e,r,t,o,a,i){if(i?a&&(t=o):o=t,r[o]!==e[t]&&(n||![null,void 0].includes(r[o])||![null,void 0].includes(e[t])))return!1},i=0,s=makeArray(e);i<s.length;i++){var u=s[i];if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(u))for(var l=0,f=r;l<f.length;l++){var c=f[l],_=!0,p=void 0,v=Array.isArray(t);if((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(t)||v&&t.length?p=!0:(p=!1,t=u),Array.isArray(t))for(var d,y=0,b=_createForOfIteratorHelperLoose(t);!(d=b()).done;){if(!1===a(u,c,y,d.value,v,p)){_=!1;break}y+=1}else for(var g=0,h=Object.entries(t);g<h.length;g++){var O=h[g];if(!1===a(u,c,O[0],O[1],v,p)){_=!1;break}}if(_){o.push(u);break}}else r.includes(u)&&o.push(u)}return o},makeArray=function(e){var r=[];return[null,void 0].includes(e)||((0,_indicators__WEBPACK_IMPORTED_MODULE_1__.isArrayLike)(Object(e))?merge(r,"string"==typeof e?[e]:e):r.push(e)),r},makeRange=function(e,r,t){var n,o;if(void 0===r&&(r=1),void 0===t&&(t=!1),1===(e=[].concat(e)).length)n=0,o=parseInt(""+e[0],10);else{if(2!==e.length)return e;n=parseInt(""+e[0],10),o=parseInt(""+e[1],10)}if(o<n)return[];for(var a=[n];n<=o-r;)n+=r,(!t||n<=o-r)&&a.push(n);return a},merge=function(e,r){Array.isArray(r)||(r=Array.prototype.slice.call(r));for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;e.push(o)}return e},paginate=function(e){void 0===e&&(e={});var r=e,t=r.boundaryCount,n=void 0===t?1:t,o=r.disabled,a=void 0!==o&&o,i=r.hideNextButton,s=void 0!==i&&i,u=r.hidePrevButton,l=void 0!==u&&u,f=r.page,c=void 0===f?1:f,_=r.pageSize,p=void 0===_?5:_,v=r.showFirstButton,d=void 0!==v&&v,y=r.showLastButton,b=void 0!==y&&y,g=r.siblingCount,h=void 0===g?4:g,O=r.total,m=void 0===O?100:O,A="number"!=typeof p||isNaN(p)?m:Math.ceil(m/p),I=makeRange([1,Math.min(n,A)]),P=makeRange([Math.max(A-n+1,n+1),A]),j=Math.max(Math.min(c-h,A-n-2*h-1),n+2),x=Math.min(Math.max(c+h,n+2*h+2),P.length>0?P[0]-2:A-1);return[].concat(d?["first"]:[],l?[]:["previous"],I,j>n+2?["start-ellipsis"]:n+1<A-n?[n+1]:[],makeRange([j,x]),x<A-n-1?["end-ellipsis"]:A-n>n?[A-n]:[],P,s?[]:["next"],b?["last"]:[]).map((function(e){var r;return"number"==typeof e?{disabled:a,page:e,selected:e===c,type:"page"}:_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?c>=A:c<=1),selected:!1,type:e},e.endsWith("-ellipsis")?{}:{page:(null!==(r={first:1,last:A}[e])&&void 0!==r?r:"next"===e)?Math.min(c+1,A):Math.max(c-1,1)})}))},permutate=function(e){var r=[];return function e(t,n){if(void 0===n&&(n=[]),0===t.length)r.push(n);else for(var o=0;o<t.length;o++){var a=t.slice();e(a,n.concat(a.splice(o,1)))}}(e),r},permutateLength=function(e,r){void 0===r&&(r=1);var t=[];if(0===e.length)return t;for(var n=function e(r,n,o){if(0!==r)for(var a=0;a<n.length;a++)e(r-1,n.slice(a+1),o.concat([n[a]]));else o.length>0&&(t[t.length]=o)},o=r;o<e.length;o++)n(o,e,[]);return t.push(e),t},sumUpProperty=function(e,r){var t=0;if(Array.isArray(e)&&e.length)for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var a=n.value;Object.prototype.hasOwnProperty.call(a,r)&&(t+=parseFloat(a[r]||0))}return t},removeArrayItem=function(e,r,t){void 0===t&&(t=!1);var n=e.indexOf(r);if(-1===n){if(t)throw new Error("Given target doesn't exists in given list.")}else e.splice(n,1);return e},sortTopological=function(e){for(var r=[],t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],a=o[0],i=o[1];if(e[a]=[].concat(i),i.length>0)for(var s,u=_createForOfIteratorHelperLoose(makeArray(i));!(s=u()).done;){var l=s.value;r.push([a,l])}else r.push([a])}for(var f=[],c=0,_=r;c<_.length;c++)for(var p,v=_createForOfIteratorHelperLoose(_[c]);!(p=v()).done;){var d=p.value;f.includes(d)||f.push(d)}for(var y=[],b=function e(t,n){if(0!==n.length&&n.includes(t))throw new Error('Cyclic dependency found. "'+t+'" is dependent of itself.\nDependency chain: "'+n.join('" -> "')+'" => "'+t+'".');var o=f.indexOf(t);if(-1!==o){var a;f[o]=null;for(var i=0,s=r;i<s.length;i++){var u=s[i];u[0]===t&&(a=a||n.concat([t]),e(u[1],a))}y.push(t)}},g=0;g<f.length;g++){var h=f[g];if(h){f[g]=null;for(var O,m=_createForOfIteratorHelperLoose(r);!(O=m()).done;){var A=O.value;A[0]===h&&b(A[1],[h])}y.push(h)}}return y},unique=function(e){for(var r,t=[],n=_createForOfIteratorHelperLoose(makeArray(e));!(r=n()).done;){var o=r.value;t.includes(o)||t.push(o)}return t};return __webpack_exports__}()}));
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export { Lock } from './Lock';
|
|
2
|
+
export { Semaphore } from './Semaphore';
|
|
3
|
+
import { Encoding, FirstParameter } from './type';
|
|
4
|
+
export declare const DEFAULT_ENCODING: Encoding;
|
|
5
|
+
export declare const CLOSE_EVENT_NAMES: readonly ["close", "exit", "SIGINT", "SIGTERM", "SIGQUIT", "uncaughtException"];
|
|
6
|
+
export declare const CONSOLE_METHODS: readonly ["debug", "error", "info", "log", "warn"];
|
|
7
|
+
export declare const VALUE_COPY_SYMBOL: unique symbol;
|
|
8
|
+
export declare const IGNORE_NULL_AND_UNDEFINED_SYMBOL: unique symbol;
|
|
9
|
+
export declare const ABBREVIATIONS: Array<string>;
|
|
10
|
+
export declare const ANIMATION_END_EVENT_NAMES = "animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd";
|
|
11
|
+
export declare const CLASS_TO_TYPE_MAPPING: {
|
|
12
|
+
readonly '[object Array]': "array";
|
|
13
|
+
readonly '[object Boolean]': "boolean";
|
|
14
|
+
readonly '[object Date]': "date";
|
|
15
|
+
readonly '[object Error]': "error";
|
|
16
|
+
readonly '[object Function]': "function";
|
|
17
|
+
readonly '[object Map]': "map";
|
|
18
|
+
readonly '[object Number]': "number";
|
|
19
|
+
readonly '[object Object]': "object";
|
|
20
|
+
readonly '[object RegExp]': "regexp";
|
|
21
|
+
readonly '[object Set]': "set";
|
|
22
|
+
readonly '[object String]': "string";
|
|
23
|
+
};
|
|
24
|
+
export declare const KEY_CODES: {
|
|
25
|
+
readonly BACKSPACE: 8;
|
|
26
|
+
readonly COMMA: 188;
|
|
27
|
+
readonly DELETE: 46;
|
|
28
|
+
readonly DOWN: 40;
|
|
29
|
+
readonly END: 35;
|
|
30
|
+
readonly ENTER: 13;
|
|
31
|
+
readonly ESCAPE: 27;
|
|
32
|
+
readonly F1: 112;
|
|
33
|
+
readonly F2: 113;
|
|
34
|
+
readonly F3: 114;
|
|
35
|
+
readonly F4: 115;
|
|
36
|
+
readonly F5: 116;
|
|
37
|
+
readonly F6: 117;
|
|
38
|
+
readonly F7: 118;
|
|
39
|
+
readonly F8: 119;
|
|
40
|
+
readonly F9: 120;
|
|
41
|
+
readonly F10: 121;
|
|
42
|
+
readonly F11: 122;
|
|
43
|
+
readonly F12: 123;
|
|
44
|
+
readonly HOME: 36;
|
|
45
|
+
readonly LEFT: 37;
|
|
46
|
+
readonly NUMPAD_ADD: 107;
|
|
47
|
+
readonly NUMPAD_DECIMAL: 110;
|
|
48
|
+
readonly NUMPAD_DIVIDE: 111;
|
|
49
|
+
readonly NUMPAD_ENTER: 108;
|
|
50
|
+
readonly NUMPAD_MULTIPLY: 106;
|
|
51
|
+
readonly NUMPAD_SUBTRACT: 109;
|
|
52
|
+
readonly PAGE_DOWN: 34;
|
|
53
|
+
readonly PAGE_UP: 33;
|
|
54
|
+
readonly PERIOD: 190;
|
|
55
|
+
readonly RIGHT: 39;
|
|
56
|
+
readonly SPACE: 32;
|
|
57
|
+
readonly TAB: 9;
|
|
58
|
+
readonly UP: 38;
|
|
59
|
+
};
|
|
60
|
+
export declare const LOCALES: Array<string>;
|
|
61
|
+
export declare const PLAIN_OBJECT_PROTOTYPES: Array<FirstParameter<typeof Object.getPrototypeOf>>;
|
|
62
|
+
export declare const SPECIAL_REGEX_SEQUENCES: Array<string>;
|
|
63
|
+
export declare const TRANSITION_END_EVENT_NAMES = "transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/regenerator"],n);else{var r="object"==typeof exports?n(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/regenerator")):n(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/regenerator"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(this,(function(e,n){return function(){var r={13:function(e,n,r){r.d(n,{Lock:function(){return a}});var t=r(18),o=r.n(t),u=r(19),i=r.n(u),a=function(){function e(e){void 0===e&&(e={}),this.locks=e}var n=e.prototype;return n.acquire=function(e,n,r){var t=this;return void 0===r&&(r=!1),new Promise((function(o){var u=function(e){var u,i;n&&(i=n(e));var a=function(n){return r&&t.release(e),o(n),n};return null!=(u=i)&&u.then?i.then(a):(a(e),i)};Object.prototype.hasOwnProperty.call(t.locks,e)?t.locks[e].push(u):(t.locks[e]=[],u(e))}))},n.release=function(){var e=o()(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object.prototype.hasOwnProperty.call(this.locks,n)){e.next=9;break}if(void 0!==(r=this.locks[n].shift())){e.next=6;break}delete this.locks[n],e.next=9;break;case 6:return e.next=8,r(n);case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}(),e}()},14:function(e,n,r){r.d(n,{Semaphore:function(){return t}});var t=function(){function e(e){void 0===e&&(e=2),this.queue=[],this.numberOfResources=e,this.numberOfFreeResources=e}var n=e.prototype;return n.acquire=function(){var e=this;return new Promise((function(n){e.numberOfFreeResources<=0?e.queue.push(n):(e.numberOfFreeResources-=1,n(e.numberOfFreeResources))}))},n.release=function(){var e=this.queue.pop();void 0===e?this.numberOfFreeResources+=1:e(this.numberOfFreeResources)},e}()},18:function(n){n.exports=e},19:function(e){e.exports=n}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var u=t[e]={exports:{}};return r[e](u,u.exports,o),u.exports}o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,{a:n}),n},o.d=function(e,n){for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};o.r(u),o.d(u,{ABBREVIATIONS:function(){return d},ANIMATION_END_EVENT_NAMES:function(){return b},CLASS_TO_TYPE_MAPPING:function(){return E},CLOSE_EVENT_NAMES:function(){return f},CONSOLE_METHODS:function(){return l},DEFAULT_ENCODING:function(){return c},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return p},KEY_CODES:function(){return m},LOCALES:function(){return O},Lock:function(){return i.Lock},PLAIN_OBJECT_PROTOTYPES:function(){return h},SPECIAL_REGEX_SEQUENCES:function(){return _},Semaphore:function(){return a.Semaphore},TRANSITION_END_EVENT_NAMES:function(){return v},VALUE_COPY_SYMBOL:function(){return s}});var i=o(13),a=o(14),c="utf8",f=["close","exit","SIGINT","SIGTERM","SIGQUIT","uncaughtException"],l=["debug","error","info","log","warn"],s=Symbol.for("clientnodeValue"),p=Symbol.for("clientnodeIgnoreNullAndUndefined"),d=["html","id","url","us","de","api","href"],b="animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",E={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},m={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},O=[],h=[Object.prototype],_=["-","[","]","(",")","^","$","*","+",".","{","}"],v="transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd";return u}()}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { $Global, $TStatic, AnyFunction } from './type';
|
|
2
|
+
export declare const determineGlobalContext: (() => $Global);
|
|
3
|
+
export declare let globalContext: $Global;
|
|
4
|
+
export declare const setGlobalContext: (context: $Global) => void;
|
|
5
|
+
export declare const determine$: (() => $TStatic);
|
|
6
|
+
export declare let $: JQueryStatic;
|
|
7
|
+
export declare const MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION: {
|
|
8
|
+
value: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const NOOP: AnyFunction;
|
|
11
|
+
export declare const augment$: (value: $TStatic) => void;
|
package/dist/context.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/construct"),function(){try{return require("jquery")}catch(e){}}());else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/createClass","@babel/runtime/helpers/construct","jquery"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/construct"),function(){try{return require("jquery")}catch(e){}}()):r(e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/createClass"],e["@babel/runtime/helpers/construct"],e.jQuery);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__3__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__9__,__WEBPACK_EXTERNAL_MODULE__12__){return function(){var __webpack_modules__=[function(e,r,t){t.r(r),t.d(r,{$:function(){return p},MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION:function(){return d},NOOP:function(){return v},augment$:function(){return g},determine$:function(){return _},determineGlobalContext:function(){return u},globalContext:function(){return c},setGlobalContext:function(){return f}});var n,o,i,a=t(2),l=t(6),s=t(10);e=t.hmd(e);var u=function(){return"undefined"==typeof globalThis?void 0===window?void 0===t.g?e:t.g.window?t.g.window:t.g:window:globalThis},c=u(),f=function(e){c=e};c.fetch=null!==(n=null!==(o=c.fetch)&&void 0!==o?o:null==(i=(0,l.optionalRequire)("node-fetch"))?void 0:i.default)&&void 0!==n?n:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,l.currentImport)("node-fetch").then((function(e){var t;return null==e?void 0:(t=e).default.apply(t,r)}))};var _=function(){var e=function(){};if(c.$&&null!==c.$)e=c.$;else{if(!c.$&&c.document)try{e=t(12)}catch(e){}if(null==e||"object"==typeof e&&0===Object.keys(e).length){var r,n=null!=(r=c.document)&&r.querySelectorAll?c.document.querySelectorAll.bind(c.document):function(){return null};(e=function(r){var t=null;if("string"==typeof r?t=n(r):Array.isArray(r)?t=r:("object"==typeof HTMLElement&&r instanceof HTMLElement||1===(null==r?void 0:r.nodeType)&&"string"==typeof(null==r?void 0:r.nodeName))&&(t=[r]),t){if(e.fn)for(var o=0,i=Object.entries(e.fn);o<i.length;o++){var l=i[o],s=l[0],u=l[1];t[s]=u.bind(t)}return t.jquery="clientnode",t}return(0,a.isFunction)(r)&&c.document&&c.document.addEventListener("DOMContentLoaded",r),r}).fn={}}}return e.global||(e.global=c),e.global.window&&(!e.document&&e.global.window.document&&(e.document=e.global.window.document),!e.location&&e.global.window.location&&(e.location=e.global.window.location)),e},p=_(),d={value:function(){if(!p.document)return 0;var e,r=p.document.createElement("div");for(e=0;e<10&&(r.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e",0!==r.getElementsByTagName("i").length);e++);if(0===e&&p.global.window.navigator){if(-1!==p.global.window.navigator.appVersion.indexOf("MSIE 10"))return 10;if(![p.global.window.navigator.userAgent.indexOf("Trident"),p.global.window.navigator.userAgent.indexOf("rv:11")].includes(-1))return 11}return e}()},v=p.noop?p.noop:function(){},g=function(e){if((p=e).global||(p.global=c),p.global.window&&(!p.document&&p.global.window.document&&(p.document=p.global.window.document),!p.location&&p.global.window.location&&(p.location=p.global.window.location)),p.fn&&(p.fn.Tools=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return s.default.controller(s.default,r,this)}),p.Tools=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return s.default.controller(s.default,r)},p.Tools.class=s.default,p.fn){var r=p.fn.prop;p.fn.prop=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(n.length<2&&this.length&&["#text","#comment"].includes(this[0].nodeName.toLowerCase())&&e in this[0]){if(0===n.length)return this[0][e];if(1===n.length)return this[0][e]=n[0],this}return r.call.apply(r,[this,e].concat(n))}}};g(p),p.readyException=function(e){if("string"!=typeof e||"canceled"!==e)throw e}},function(e,r,t){t.d(r,{ABBREVIATIONS:function(){return i},CLASS_TO_TYPE_MAPPING:function(){return a},CONSOLE_METHODS:function(){return n},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return o},PLAIN_OBJECT_PROTOTYPES:function(){return l}});var n=["debug","error","info","log","warn"],o=(Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined")),i=["html","id","url","us","de","api","href"],a={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},l=[Object.prototype]},function(e,r,t){t.d(r,{isArrayLike:function(){return a},isFunction:function(){return u},isMap:function(){return s},isNumeric:function(){return i},isPlainObject:function(){return l}});var n=t(1),o=t(4);var i=function(e){var r=(0,o.determineType)(e);return["number","string"].includes(r)&&!isNaN(e-parseFloat(e))},a=function(e){var r;try{r=Boolean(e)&&e.length}catch(e){return!1}var t,n=(0,o.determineType)(e);if("function"===n||![null,void 0].includes(t=e)&&"object"==typeof t&&t===(null==t?void 0:t.window))return!1;if("array"===n||0===r)return!0;if("number"==typeof r&&r>0)try{return e[r-1],!0}catch(e){}return!1},l=function(e){return null!==e&&"object"==typeof e&&n.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},s=function(e){return"map"===(0,o.determineType)(e)},u=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType},extend:function(){return extend}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_indicators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var addDynamicGetterAndSetter=function e(r,t,n,o,i,a){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o={}),void 0===i&&(i=!0),void 0===a&&(a=[Object]),i&&"object"==typeof r)if(Array.isArray(r))for(var l,s=0,u=_createForOfIteratorHelperLoose(r);!(l=u()).done;){var c=l.value;r[s]=e(c,t,n,o,i),s+=1}else if(isMap(r))for(var f,_=_createForOfIteratorHelperLoose(r);!(f=_()).done;){var p=f.value,d=p[0],v=p[1];r.set(d,e(v,t,n,o,i))}else if(isSet(r)){for(var g,m=[],b=_createForOfIteratorHelperLoose(r);!(g=b()).done;){var h=g.value;r.delete(h),m.push(e(h,t,n,o,i))}for(var y=0,O=m;y<O.length;y++){var E=O[y];r.add(E)}}else if(null!==r)for(var A=0,w=Object.entries(r);A<w.length;A++){var P=w[A],N=P[0],x=P[1];r[N]=e(x,t,n,o,i)}if(t||n)for(var j,I,L=function(){var e=I.value;if(null!==r&&"object"==typeof r&&r instanceof e){var i=getProxyHandler(r,o),a=getProxyHandler(r,o);t&&(a.get=function(e,n){return"__target__"===n?r:"__revoke__"===n?function(){return u(),r}:"function"==typeof r[n]?r[n]:t(i.get(s,n),n,r)}),n&&(a.set=function(e,t,o){return i.set(s,t,n(t,o,r))});var l=Proxy.revocable({},a),s=l.proxy,u=l.revoke;return{v:s}}},S=_createForOfIteratorHelperLoose(a);!(I=S()).done;)if(j=L())return j.v;return r},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var n=new Map;return function(e){return JSON.stringify(e,(function e(t,o){if(null!==o&&"object"==typeof o){var i,a;if(n.has(o))return r(null!==(i=n.get(o))&&void 0!==i?i:null,t,o,n);if(n.set(o,null),Array.isArray(o)){a=[];for(var l,s=_createForOfIteratorHelperLoose(o);!(l=s()).done;){var u=l.value;a.push(e(null,u))}}else{a={};for(var c=0,f=Object.entries(o);c<f.length;c++){var _=f[c],p=_[0],d=_[1];a[p]=e(p,d)}}return n.set(o,a),a}return o}),t)}(e)},convertMapToPlainObject=function e(r,t){if(void 0===t&&(t=!0),"object"==typeof r){if(isMap(r)){for(var n,o={},i=_createForOfIteratorHelperLoose(r);!(n=i()).done;){var a=n.value,l=a[0],s=a[1];t&&(s=e(s,t)),["number","string"].includes(typeof l)&&(o[""+l]=s)}return o}if(t)if(isPlainObject(r))for(var u=0,c=Object.entries(r);u<c.length;u++){var f=c[u],_=f[0],p=f[1];r[_]=e(p,t)}else if(Array.isArray(r))for(var d=0,v=0,g=r;v<g.length;v++){var m=g[v];r[d]=e(m,t),d+=1}else if(isSet(r)){for(var b,h=[],y=_createForOfIteratorHelperLoose(r);!(b=y()).done;){var O=b.value;r.delete(O),h.push(e(O,t))}for(var E=0,A=h;E<A.length;E++){var w=A[E];r.add(w)}}}return r},convertPlainObjectToMap=function e(r,t){if(void 0===t&&(t=!0),"object"==typeof r){if(isPlainObject(r)){for(var n=new Map,o=0,i=Object.entries(r);o<i.length;o++){var a=i[o],l=a[0],s=a[1];t&&(r[l]=e(s,t)),n.set(l,r[l])}return n}if(t)if(Array.isArray(r))for(var u=0,c=0,f=r;c<f.length;c++){var _=f[c];r[u]=e(_,t),u+=1}else if(isMap(r))for(var p,d=_createForOfIteratorHelperLoose(r);!(p=d()).done;){var v=p.value,g=v[0],m=v[1];r.set(g,e(m,t))}else if(isSet(r)){for(var b,h=[],y=_createForOfIteratorHelperLoose(r);!(b=y()).done;){var O=b.value;r.delete(O),h.push(e(O,t))}for(var E=0,A=h;E<A.length;E++){var w=A[E];r.add(w)}}}return r},convertSubstringInPlainObject=function e(r,t,n){for(var o=0,i=Object.entries(r);o<i.length;o++){var a=i[o],l=a[0],s=a[1];isPlainObject(s)?r[l]=e(s,t,n):"string"==typeof s&&(r[l]=s.replace(t,n))}return r},copy=function e(r,t,n,o,i,a,l){if(void 0===t&&(t=-1),void 0===n&&(n=VALUE_COPY_SYMBOL),void 0===o&&(o=null),void 0===i&&(i=!1),void 0===a&&(a=[]),void 0===l&&(l=0),null!==r&&"object"==typeof r)if(o){if(r===o)throw new Error("Can't copy because source and destination are identical.");if(!i&&![void 0,null].includes(r)){var s=a.indexOf(r);if(-1!==s)return a[s];a.push(r)}var u=function(r){if(-1!==t&&t<l+1)return n===VALUE_COPY_SYMBOL?r:n;var o=e(r,t,n,null,i,a,l+1);return i||[void 0,null].includes(r)||"object"!=typeof r||a.push(r),o};if(Array.isArray(r))for(var c,f=_createForOfIteratorHelperLoose(r);!(c=f()).done;){var _=c.value;o.push(u(_))}else if(r instanceof Map)for(var p,d=_createForOfIteratorHelperLoose(r);!(p=d()).done;){var v=p.value,g=v[0],m=v[1];o.set(g,u(m))}else if(r instanceof Set)for(var b,h=_createForOfIteratorHelperLoose(r);!(b=h()).done;){var y=b.value;o.add(u(y))}else for(var O=0,E=Object.entries(r);O<E.length;O++){var A=E[O],w=A[0],P=A[1];try{o[w]=u(P)}catch(e){throw new Error('Failed to copy property value object "'+w+'": '+represent(e))}}}else if(r){if(Array.isArray(r))return e(r,t,n,[],i,a,l);if(r instanceof Map)return e(r,t,n,new Map,i,a,l);if(r instanceof Set)return e(r,t,n,new Set,i,a,l);if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){var N=/[^/]*$/.exec(r.toString());return(o=new RegExp(r.source,N?N[0]:void 0)).lastIndex=r.lastIndex,o}return"undefined"!=typeof Blob&&r instanceof Blob?r.slice(0,r.size,r.type):e(r,t,n,{},i,a,l)}return o||r},determineType=function(e){if(void 0===e&&(e=void 0),[null,void 0].includes(e))return""+e;var r=typeof e;if(["function","object"].includes(r)&&e.toString){var t=_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&eval("Buffer").isBuffer&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,n=[firstValue,secondValue];t<n.length;t++){var o=n[t],i=new FileReader;i.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+represent(r[0])+") !== Blob("+represent(r[1])+")"))},i.readAsDataURL(o)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i13=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i13<_arr4.length;_i13++){var _arr4$_i=_arr4[_i13],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i14];if(0!==options.deep){var r=equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,n=function(e){var r;return"string"==typeof e?"["+t+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(null!=r&&r.then&&promises.push(r.then(n)),"string"==typeof r)return{v:n(r)}}index+=1},_ret2,_i14=0,_arr5=first;_i14<_arr5.length;_i14++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step13.value,r=e[0],t=e[1];if(0!==options.deep){var n=equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!n)return{v:!1};var o=function(e){var t;return"string"==typeof e?"get("+represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(null!=n&&n.then&&promises.push(n.then(o)),"string"==typeof n)return{v:o(n)}}},_ret3,_iterator13=_createForOfIteratorHelperLoose(first),_step13;!(_step13=_iterator13()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step14.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var i=r.value,a=equals(e,i,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){t=!0;break}}else n.push(a)}var l=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+represent(e)+" not found}"};return t?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(r){return e(l(r.some(identity)))}),NOOP)}))),{v:l(!1)})}},_ret4,_iterator14=_createForOfIteratorHelperLoose(first),_step14;!(_step14=_iterator14()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i15],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,i=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=i()).done;){var a=n.value;if(r.toString().startsWith(a)){o=!0;break}}if(o)return 0;if(0!==options.deep){var l=equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!l)return{v:!1};var s=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(null!=l&&l.then&&promises.push(l.then(s)),"string"==typeof l)return{v:s(l)}}},_ret5,_i15=0,_Object$entries7=Object.entries(first);_i15<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i15++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if(!o||"string"==typeof o){e(o);break}}e(!0)}),NOOP)}))}return!!options.returnReasonIfNotEqual&&">>> "+represent(firstValue)+" !== "+represent(secondValue)},evaluateDynamicData=function(e,r,t,n,o){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===n&&(n="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var i=function(e,t){void 0===t&&(t=n);var i=evaluate(e,r,t===o);if(i.error)throw new Error(i.error);return i.result},a=function e(r){if(null!==r&&"object"==typeof r){if(isProxy(r)){for(var t=0,a=[n,o];t<a.length;t++){var l=a[t];if(Object.prototype.hasOwnProperty.call(r,l))return r[l]}r=r.__target__}for(var s=0,u=Object.entries(r);s<u.length;s++){var c=u[s],f=c[0],_=c[1];if([n,o].includes(f))return"undefined"==typeof Proxy?e(i(_)):_;r[f]=e(_)}}return r};r.resolve=a;if(null!==e&&"object"==typeof e){if(Object.prototype.hasOwnProperty.call(e,n))return i(e[n]);if(Object.prototype.hasOwnProperty.call(e,o))return i(e[o],o)}return function e(r){if(null!==r&&"object"==typeof r)for(var t=0,n=Object.entries(r);t<n.length;t++){var o=n[t],i=o[0],a=o[1];if("__target__"!==i&&null!==a&&["function","undefined"].includes(typeof a)){var l=a.__target__;void 0!==l&&(r[i]=l),e(a)}}return r}(a(function e(r){if("object"!=typeof r||null===r||"undefined"==typeof Proxy)return r;for(var t=0,l=Object.entries(r);t<l.length;t++){var s=l[t],u=s[0],c=s[1];if("__target__"!==u&&null!==c&&"object"==typeof c){var f=c;if(e(f),Object.prototype.hasOwnProperty.call(f,n)||Object.prototype.hasOwnProperty.call(f,o)){var _=f;r[u]=new Proxy(f,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,l=[n,o];t<l.length;t++){var s=l[t];if(r===s&&"string"==typeof e[r])return a(i(e[r],s))}var u=a(e);if("toString"===r){var c=i(u);return c[r].bind(c)}if("string"!=typeof r){var f,_=i(u);return null!=(f=_[r])&&f.bind?_[r].bind(_):_[r]}for(var p=0,d=[n,o];p<d.length;p++){var v=d[p];if(Object.prototype.hasOwnProperty.call(e,v))return i(u,v)[r]}return u[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var l=t[r];if(Object.prototype.hasOwnProperty.call(e,l))return Object.getOwnPropertyNames(a(i(e[l],l)))}return Object.getOwnPropertyNames(e)}}),r[u].__target__||(r[u].__target__=_)}}}return r}(e)))},removeKeysInEvaluation=function e(r,t){void 0===t&&(t=["__evaluate__","__execute__"]);for(var n=0,o=Object.entries(r);n<o.length;n++){var i=o[n],a=i[0],l=i[1];!t.includes(a)&&t.some((function(e){return Object.prototype.hasOwnProperty.call(r,e)}))?delete r[a]:isPlainObject(l)&&e(l,t)}return r},extend=function e(r,t){for(var n=!1,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];var l,s=i;r===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof r?(n=r,l=t):(l=r,null!==t&&"object"==typeof t?s=[t].concat(s):void 0!==t&&(l=t));for(var u,c=function(r,t){return t===r?r:n&&t&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(t)||(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t))?(o=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(t)?r&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(r)?r:new Map:r&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(r)?r:{},e(n,o,t)):t;var o},f=_createForOfIteratorHelperLoose(s);!(u=f()).done;){var _=u.value,p=typeof l,d=typeof _;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(l)&&(p+=" Map"),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(_)&&(d+=" Map"),p===d&&l!==_)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(l)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(_))for(var v,g=_createForOfIteratorHelperLoose(_);!(v=g()).done;){var m=v.value,b=m[0],h=m[1];l.set(b,c(l.get(b),h))}else if(null===l||Array.isArray(l)||"object"!=typeof l||null===_||Array.isArray(_)||"object"!=typeof _)l=_;else for(var y=0,O=Object.entries(_);y<O.length;y++){var E=O[y],A=E[0],w=E[1];n===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(w)||(l[A]=c(l[A],w))}else l=_}return l},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,i=[],a=_createForOfIteratorHelperLoose([].concat(r));!(o=a()).done;){var l=o.value;if("string"==typeof l)for(var s,u=_createForOfIteratorHelperLoose(l.split(n));!(s=u()).done;){var c=s.value;if(c){var f=c.match(/(.*?)(\[[0-9]+\])/g);if(f)for(var _,p=_createForOfIteratorHelperLoose(f);!(_=p()).done;){var d=_.value,v=/(.*?)(\[[0-9]+\])/.exec(d),g=v[1],m=v[2];g&&i.push(g),i.push(m.substring(1,m.length-1))}else i.push(c)}}else i=i.concat(l)}for(var b,h=e,y=_createForOfIteratorHelperLoose(i);!(b=y()).done;){var O=b.value;if(null!==h&&"object"==typeof h){if("string"==typeof O&&Object.prototype.hasOwnProperty.call(h,O))h=h[O];else if(isFunction(O))h=O(h);else if(!t)return}else if(!t)return}return h},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,n){return"[]"!==r.delete||"string"!=typeof n?e[r.delete](n):(delete e[n],!0)},get:function(t,n){return"[]"===r.get&&"string"==typeof n?e[n]:e[r.get](n)},has:function(t,n){return"[]"===r.has?n in e:e[r.has](n)},set:function(t,n,o){return"[]"!==r.set||"string"!=typeof n?e[r.set](n,o):(e[n]=o,!0)}}},mask=function e(r,t){if(!0===(t=_extends({exclude:!1,include:!0},t)).exclude||Array.isArray(t.exclude)&&0===t.exclude.length||!1===t.include||"object"!=typeof r)return{};var n=Array.isArray(t.exclude)?t.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):t.exclude,o=Array.isArray(t.include)?t.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):t.include,i={};if(isPlainObject(o))for(var a=0,l=Object.entries(o);a<l.length;a++){var s=l[a],u=s[0],c=s[1];Object.prototype.hasOwnProperty.call(r,u)&&(!0===c?i[u]=r[u]:(isPlainObject(c)||Array.isArray(c)&&c.length)&&"object"==typeof r[u]&&(i[u]=e(r[u],{include:c})))}else i=r;if(isPlainObject(n)){for(var f=!1,_=_extends({},i),p=0,d=Object.entries(n);p<d.length;p++){var v=d[p],g=v[0],m=v[1];if(Object.prototype.hasOwnProperty.call(_,g))if(!0===m)f=!0,delete _[g];else if((isPlainObject(m)||Array.isArray(m)&&m.length)&&"object"==typeof _[g]){var b=_[g];_[g]=e(_[g],{exclude:m}),_[g]!==b&&(f=!0)}}f&&(i=_)}return i},modifyObject=function e(r,t,n,o,i,a,l,s,u){if(void 0===n&&(n="__remove__"),void 0===o&&(o="__prepend__"),void 0===i&&(i="__append__"),void 0===a&&(a="__"),void 0===l&&(l="__"),void 0===s&&(s=null),void 0===u&&(u=null),isMap(t)&&isMap(r))for(var c,f=_createForOfIteratorHelperLoose(t);!(c=f()).done;){var _=c.value,p=_[0],d=_[1];r.has(p)&&e(r.get(p),d,n,o,i,a,l,t,p)}else if(null!==t&&"object"==typeof t&&null!==r&&"object"==typeof r)for(var v=0,g=Object.entries(t);v<g.length;v++){var m=g[v],b=m[0],h=m[1],y=NaN;if(Array.isArray(r)&&b.startsWith(a)&&b.endsWith(l)&&((y=parseInt(b.substring(a.length,b.length-l.length),10))<0||y>=r.length)&&(y=NaN),[n,o,i].includes(b)||!isNaN(y)){if(Array.isArray(r))if(b===n)for(var O,E=_createForOfIteratorHelperLoose([].concat(h));!(O=E()).done;){var A=O.value;"string"==typeof A&&A.startsWith(a)&&A.endsWith(l)?r.splice(parseInt(A.substring(a.length,A.length-l.length),10),1):r.includes(A)?r.splice(r.indexOf(A),1):"number"==typeof A&&A<r.length&&r.splice(A,1)}else b===i?r=r.concat(h):b===o?r=[].concat(h).concat(r):null!==r[y]&&"object"==typeof r[y]&&null!==h&&"object"==typeof h?extend(!0,e(r[y],h,n,o,i,a,l),r[y],h):r[y]=h;else if(b===n)for(var w,P=_createForOfIteratorHelperLoose([].concat(h));!(w=P()).done;){var N=w.value;"string"==typeof N&&Object.prototype.hasOwnProperty.call(r,N)&&delete r[N]}delete t[b],s&&"string"==typeof u&&delete s[u]}else null!==r&&Object.prototype.hasOwnProperty.call(r,b)&&(r[b]=e(r[b],h,n,o,i,a,l,t,b))}return r},removeKeyPrefixes=function e(r,t){void 0===t&&(t="#");var n=[].concat(t);if(Array.isArray(r))for(var o,i=0,a=_createForOfIteratorHelperLoose(r.slice());!(o=a()).done;){var l=o.value,s=!1;if("string"==typeof l){for(var u,c=_createForOfIteratorHelperLoose(n);!(u=c()).done;){var f=u.value;if(l.startsWith(f+":")){r.splice(i,1),s=!0;break}}if(s)continue}r[i]=e(l,n),i+=1}else if(isSet(r))for(var _,p=_createForOfIteratorHelperLoose(new Set(r));!(_=p()).done;){var d=_.value,v=!1;if("string"==typeof d){for(var g,m=_createForOfIteratorHelperLoose(n);!(g=m()).done;){var b=g.value;if(d.startsWith(b+":")){r.delete(d),v=!0;break}}if(v)continue}e(d,n)}else if(isMap(r))for(var h,y=_createForOfIteratorHelperLoose(new Map(r));!(h=y()).done;){var O=h.value,E=O[0],A=O[1],w=!1;if("string"==typeof E){for(var P,N=_createForOfIteratorHelperLoose(n);!(P=N()).done;){var x=P.value,j=escapeRegularExpressions(x);if(new RegExp("^"+j+"[0-9]*$").test(E)){r.delete(E),w=!0;break}}if(w)continue}r.set(E,e(A,n))}else if(null!==r&&"object"==typeof r)for(var I=0,L=Object.entries(Object.assign({},r));I<L.length;I++){for(var S,$=L[I],T=$[0],M=$[1],D=!1,R=_createForOfIteratorHelperLoose(n);!(S=R()).done;){var C=S.value,k=escapeRegularExpressions(C);if(new RegExp("^"+k+"[0-9]*$").test(T)){delete r[T],D=!0;break}}D||(r[T]=e(M,n))}return r},represent=function e(r,t,n,o,i){if(void 0===t&&(t=" "),void 0===n&&(n=""),void 0===o&&(o="__maximum_number_of_levels_reached__"),void 0===i&&(i=8),0===i)return""+o;if(null===r)return"null";if(void 0===r)return"undefined";if("string"==typeof r)return'"'+r.replace(/\n/g,"\n"+n)+'"';if(isNumeric(r)||"boolean"==typeof r)return""+r;if(Array.isArray(r)){for(var a,l="[",s=!1,u=_createForOfIteratorHelperLoose(r);!(a=u()).done;){s&&(l+=","),l+="\n"+n+t+e(a.value,t,""+n+t,o,i-1),s=!0}return s&&(l+="\n"+n),l+="]"}if(isMap(r)){for(var c,f="",_=!1,p=_createForOfIteratorHelperLoose(r);!(c=p()).done;){var d=c.value,v=d[0],g=d[1];_&&(f+=",\n"+n+t),f+=e(v,t,""+n+t,o,i-1)+" -> "+e(g,t,""+n+t,o,i-1),_=!0}return _||(f="EmptyMap"),f}if(isSet(r)){for(var m,b="{",h=!1,y=_createForOfIteratorHelperLoose(r);!(m=y()).done;){h&&(b+=","),b+="\n"+n+t+e(m.value,t,""+n+t,o,i-1),h=!0}return h?b+="\n"+n+"}":b="EmptySet",b}if(isFunction(r))return"__function__";for(var O,E="{",A=!1,w=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(r).sort());!(O=w()).done;){var P=O.value;A&&(E+=","),E+="\n"+n+t+P+": "+e(r[P],t,""+n+t,o,i-1),A=!0}return A&&(E+="\n"+n),E+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value;r.push(i[0])}else if(null!==e)for(var a=0,l=Object.keys(e);a<l.length;a++){var s=l[a];r.push(s)}return r.sort()},unwrapProxy=function e(r,t){if(void 0===t&&(t=new Set),null!==r&&"object"==typeof r){if(t.has(r))return r;try{isFunction(r.__revoke__)&&(isProxy(r)&&(r=r.__target__),r.__revoke__())}catch(e){return r}finally{t.add(r)}if(Array.isArray(r))for(var n,o=0,i=_createForOfIteratorHelperLoose(r);!(n=i()).done;){var a=n.value;r[o]=e(a,t),o+=1}else if(isMap(r))for(var l,s=_createForOfIteratorHelperLoose(r);!(l=s()).done;){var u=l.value,c=u[0],f=u[1];r.set(c,e(f,t))}else if(isSet(r)){for(var _,p=[],d=_createForOfIteratorHelperLoose(r);!(_=d()).done;){var v=_.value;r.delete(v),p.push(e(v,t))}for(var g=0,m=p;g<m.length;g++){var b=m[g];r.add(b)}}else for(var h=0,y=Object.entries(r);h<y.length;h++){var O=y[h],E=O[0],A=O[1];r[E]=e(A,t)}}return r}},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{camelCaseToDelimited:function(){return camelCaseToDelimited},capitalize:function(){return capitalize},compressStyleValue:function(){return compressStyleValue},delimitedToCamelCase:function(){return delimitedToCamelCase},format:function(){return format},normalizeDomNodeSelector:function(){return normalizeDomNodeSelector}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var escapeRegularExpressions=function(e,r){if(void 0===r&&(r=[]),1===e.length&&!SPECIAL_REGEX_SEQUENCES.includes(e))return e;r.includes("\\")||e.replace(/\\/g,"\\\\");for(var t,n=_createForOfIteratorHelperLoose(SPECIAL_REGEX_SEQUENCES);!(t=n()).done;){var o=t.value;r.includes(o)||(e=e.replace(new RegExp("\\"+o,"g"),"\\"+o))}return e},convertToValidVariableName=function(e,r){return void 0===r&&(r="0-9a-zA-Z_$"),["class","default"].includes(e)?"_"+e:e.toString().replace(/^[^a-zA-Z_$]+/,"").replace(new RegExp("[^"+r+"]+([a-zA-Z0-9])","g"),(function(e,r){return r.toUpperCase()}))},encodeURIComponentExtended=function(e,r){return void 0===r&&(r=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,r?"%20":"+")},addSeparatorToPath=function(e,r){return void 0===r&&(r="/"),(e=e.trim()).substring(e.length-1)!==r&&e.length?e+r:e},hasPathPrefix=function(e,r,t){var n;(void 0===e&&(e="/admin"),void 0===r)&&(r=(null==(n=$.location)?void 0:n.pathname)||"");return void 0===t&&(t="/"),"string"==typeof e&&(e.endsWith(t)||(e+=t),r===e.substring(0,e.length-t.length)||r.startsWith(e))},getDomainName=function(e,r){var t,n;void 0===e&&(e=(null==(t=$.location)?void 0:t.href)||"");void 0===r&&(r=(null==(n=$.location)?void 0:n.hostname)||"");var o=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return o&&o.length>2&&o[1]&&o[2]?o[2]:r},getPortNumber=function(e,r){var t,n,o;void 0===e&&(e=(null==(n=$.location)?void 0:n.href)||"");void 0===r&&(r=null!=(o=$.location)&&o.port?parseInt($.location.port):null);var i=/^(?:[a-z]*:?\/\/[^/]+?)?(?:[^/]+?):([0-9]+)/i.exec(e);return i&&i.length>1?parseInt(i[1],10):null!==r?r:null!=(t=$.location)&&t.port&&parseInt($.location.port,10)?parseInt($.location.port,10):"https"===getProtocolName(e)?443:80},getProtocolName=function(e,r){var t,n;void 0===e&&(e=(null==(t=$.location)?void 0:t.href)||"");void 0===r&&(r=(null==(n=$.location)?void 0:n.protocol)&&$.location.protocol.substring(0,$.location.protocol.length-1)||"");var o=/^([a-z]+):\/\//i.exec(e);return o&&o.length>1&&o[1]?o[1]:r},getURLParameter=function(e,r,t,n,o,i,a){var l,s,u;(void 0===e&&(e=null),void 0===r&&(r=!1),void 0===t&&(t=null),void 0===n&&(n="$"),void 0===o&&(o="!"),void 0===i&&(i=null),void 0===a)&&(a=null!==(s=null==(u=$.location)?void 0:u.hash)&&void 0!==s?s:"");var c=null!==(l=a)&&void 0!==l?l:"#",f="";if(i)f=i;else if(o&&c.startsWith(o)){var _,p=c.indexOf("#");-1===p?(_=c.substring(o.length),c=""):(_=c.substring(o.length,p),c=c.substring(p));var d=_.indexOf("?");-1!==d&&(f=_.substring(d))}else $.location&&(f=$.location.search||"");var v=t||f,g="&"===v;if(g||"#"===v){var m="";try{m=decodeURIComponent(c)}catch(e){}var b=m.indexOf(n);-1===b?v="":(v=m.substring(b)).startsWith(n)&&(v=v.substring(n.length))}else v.startsWith("?")&&(v=v.substring(1));var h=v?v.split("&"):[];f=f.substring(1),g&&f&&(h=h.concat(f.split("&")));for(var y,O=[],E=_createForOfIteratorHelperLoose(h);!(y=E()).done;){var A=y.value,w=A.split("="),P=void 0;try{P=decodeURIComponent(w[0])}catch(e){P=""}try{A=decodeURIComponent(w[1])}catch(e){A=""}O.push(P),r?Object.prototype.hasOwnProperty.call(O,P)&&Array.isArray(O[P])?O[P].push(A):O[P]=[A]:O[P]=A}return e?Object.prototype.hasOwnProperty.call(O,e)?O[e]:null:O},serviceURLEquals=function(e,r){var t;void 0===r&&(r=(null==(t=$.location)?void 0:t.href)||"");var n=getDomainName(e,""),o=getProtocolName(e,""),i=getPortNumber(e);return!(""!==n&&n!==getDomainName(r)||""!==o&&o!==getProtocolName(r)||null!==i&&i!==getPortNumber(r))},normalizeURL=function(e){return"string"==typeof e?(e=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim()).startsWith("http")?e:"http://"+e:""},representURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},camelCaseToDelimited=function(e,r,t){void 0===r&&(r="-"),void 0===t&&(t=null),t||(t=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);var n=maskForRegularExpression(r);if(_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.length){for(var o,i="",a=_createForOfIteratorHelperLoose(_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);!(o=a()).done;){i&&(i+="|"),i+=o.value.toUpperCase()}e=e.replace(new RegExp("("+i+")("+i+")","g"),"$1"+r+"$2")}return(e=e.replace(new RegExp("([^"+n+"])([A-Z][a-z]+)","g"),"$1"+r+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+r+"$2").toLowerCase()},capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},compressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},decodeHTMLEntities=function(e){if($.document){var r=$.document.createElement("textarea");return r.innerHTML=e,r.value}return null},delimitedToCamelCase=function(e,r,t,n,o){void 0===r&&(r="-"),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=!1);var i,a=maskForRegularExpression(r);if(t||(t=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS),n)i=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.join("|");else{i="";for(var l,s=_createForOfIteratorHelperLoose(t);!(l=s()).done;){var u=l.value;i&&(i+="|"),i+=capitalize(u)+"|"+u}}var c=e.startsWith(r);return c&&(e=e.substring(r.length)),e=e.replace(new RegExp("("+a+")("+i+")("+a+"|$)","g"),(function(e,r,t,n){return r+t.toUpperCase()+n})),o&&(a="(?:"+a+")+"),e=e.replace(new RegExp(a+"([a-zA-Z0-9])","g"),(function(e,r){return r.toUpperCase()})),c&&(e=r+e),e},compile=function(e,r,t,n){var o,i;void 0===r&&(r=[]),void 0===t&&(t=!1),void 0===n&&(n=!0);for(var a,l,s=Object.keys(globalThis),u={error:null,globalNames:s,globalNamesUndefinedList:s.map((function(){})),originalScopeNames:Array.isArray(r)?r:"string"==typeof r?[r]:Object.keys(r),scopeNameMapping:{},scopeNames:[],templateFunction:function(){return null}},c=_createForOfIteratorHelperLoose(u.originalScopeNames);!(a=c()).done;){var f=a.value,_=convertToValidVariableName(f);u.scopeNameMapping[f]=_,u.scopeNames.push(_)}if(0!==MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION.value)if(null!=(o=$.global.Babel)&&o.transform)e=null==(i=$.global.Babel)?void 0:i.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var p="####",d="`"===(e=e.replace(/\\\$/g,p).replace(/^`\$\{([\s\S]+)\}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)\}/g,d+"+($1)+"+d).replace(/^`([\s\S]+)`$/,d+"$1"+d).replace(/\n+/g,"").replace(new RegExp(p,"g"),"\\$")}try{l=_construct(Function,(n?u.globalNames:[]).concat(u.scopeNames,[(t?"":"return ")+e]))}catch(r){u.error='Given expression "'+e+'" could not be compiled width given scope names "'+u.scopeNames.join('", "')+'": '+represent(r)}return l&&(u.templateFunction=n?function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return l.apply(void 0,u.globalNames.concat(r))}:l),u},evaluate=function(e,r,t,n,o){void 0===r&&(r={}),void 0===t&&(t=!1),void 0===n&&(n=!0);var i=compile(e,r,t,n),a=i.error,l=i.originalScopeNames,s=i.scopeNames,u=i.templateFunction,c={compileError:null,error:null,result:null,runtimeError:null};if(a)return c.compileError=c.error=a,c;try{c.result=(o?u.bind(o):u).apply(void 0,l.map((function(e){return r[e]})))}catch(a){c.error=c.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+s.join('", "')+'": '+represent(a)}return c},findNormalizedMatchRange=function(e,r,t,n){void 0===t&&(t=function(e){return(""+e).toLowerCase()}),void 0===n&&(n=["<",">"]);var o=t(r),i=t(e),a="string"==typeof e?e:i;if(i&&o)for(var l=!1,s=0;s<a.length;s+=1)if(l)a.charAt(s)===n[1]&&(l=!1);else if(Array.isArray(n)&&a.charAt(s)===n[0])l=!0;else if(t(a.substring(s)).startsWith(o)){if(1===o.length)return[s,s+1];for(var u=a.length;u>s;u-=1)if(!t(a.substring(s,u)).startsWith(o))return[s,u+1]}return null},fixKnownEncodingErrors=function(e){for(var r=0,t=Object.entries({"Ã\\x84":"Ä","Ã\\x96":"Ö","Ã\\x9c":"Ü","ä":"ä","ö":"ö","ü":"ü","Ã\\x9f":"ß","\\x96":"-"});r<t.length;r++){var n=t[r],o=n[0],i=n[1];e=e.replace(new RegExp(o,"g"),i)}return e},format=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];t.unshift(e);for(var o=0,i=0,a=t;i<a.length;i++){var l=a[i];e=e.replace(new RegExp("\\{"+o+"\\}","gm"),""+l),o+=1}return e},getEditDistance=function(e,r){for(var t=Array(r.length+1).fill(null).map((function(){return Array(e.length+1).fill(null)})),n=0;n<=e.length;n++)t[0][n]=n;for(var o=0;o<=r.length;o++)t[o][0]=o;for(var i=1;i<=r.length;i++)for(var a=1;a<=e.length;a++){var l=e[a-1]===r[i-1]?0:1;t[i][a]=Math.min(t[i][a-1]+1,t[i-1][a]+1,t[i-1][a-1]+l)}return t[r.length][e.length]},maskForRegularExpression=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},lowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},mark=function(e,r,t){if(void 0===t&&(t={}),"string"==typeof e&&null!=r&&r.length){t=_extends({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return(""+e).toLowerCase()},skipTagDelimitedParts:["<",">"]},t),e=e.trim();for(var n,o=[],i=[].concat(r),a=0,l=_createForOfIteratorHelperLoose(i);!(n=l()).done;){var s=n.value;i[a]=t.normalizer(s).trim(),a+=1}for(var u=e,c=0;;){for(var f,_=null,p=null,d=_createForOfIteratorHelperLoose(i);!(f=d()).done;){var v=f.value;(p=findNormalizedMatchRange(u,v,t.normalizer,t.skipTagDelimitedParts))&&(!_||p[0]<_[0])&&(_=p)}if(!_){u.length&&o.push(u);break}_[0]>0&&o.push(e.substring(c,c+_[0])),o.push("string"==typeof t.marker?format(t.marker,e.substring(c+_[0],c+_[1])):t.marker(e.substring(c+_[0],c+_[1]),o)),c+=_[1],u=e.substring(c)}return"string"==typeof t.marker?o.join(""):o}return e},normalizePhoneNumber=function(e,r){if(void 0===r&&(r=!0),"string"==typeof e||"number"==typeof e){var t=(""+e).trim();if(t=t.replace(/^[^0-9]*\+/,"00"),r)return t.replace(/[^0-9]+/g,"");var n="(?:[ /\\-]+)";t=(t=t.replace(new RegExp("^(.+?)"+n+"?\\(0\\)"+n+"?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)"+n+"?\\((.+)\\)"+n+"?(.+)$"),"$1-$2-$3");var o=new RegExp("^(00[0-9]+)"+n+"([0-9]+)"+n+"(.+)$");if(o.test(t))t=t.replace(o,(function(e,r,t,n){return r+"-"+t+"-"+sliceAllExceptNumberAndLastSeperator(n)}));else{var i=function(e,r,t){return r.replace(/ +/,"")+"-"+sliceAllExceptNumberAndLastSeperator(t)};t=(o=/^([0-9 ]+)[/-](.+)$/).test(t)?t.replace(o,i):t.replace(new RegExp("^([0-9]+)"+n+"(.+)$"),i)}return t.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""},normalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?(""+e).trim().replace(/[^0-9]+/g,""):""},parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _evaluate;void 0===scope&&(scope={}),void 0===name&&(name="scope"),serializedObject.endsWith(".json")&&isFileSync(serializedObject)&&(serializedObject=readFileSync(serializedObject,{encoding:DEFAULT_ENCODING})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString(DEFAULT_ENCODING));var result=evaluate(serializedObject,(_evaluate={},_evaluate[name]=scope,_evaluate));return"object"==typeof result.result?result.result:null},representPhoneNumber=function(e){if(["number","string"].includes(determineType(e))&&e){var r=(""+e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(r=(r=r.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,(function(e,r,t,n){return r+(t.length%2==0?t.replace(/([0-9]{2})/g,"$1 "):t.replace(/^([0-9]{3})([0-9]+)$/,(function(e,r,t){return r+" "+t.replace(/([0-9]{2})/g,"$1 ").trim()}))+n).trim()})).trim()}return""},sliceAllExceptNumberAndLastSeperator=function(e){var r=/^(.*[0-9].*)-([0-9]+)$/;return r.test(e)?e.replace(r,(function(e,r,t){return r.replace(/[^0-9]+/g,"")+"-"+t})):e.replace(/[^0-9]+/g,"")},normalizeDomNodeSelector=function(e,r){void 0===r&&(r="");var t="";return r&&(t=r+" "),e.startsWith(t)||e.trim().startsWith("<")||(e=t+e),e.trim()}},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{currentImport:function(){return currentImport},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e,r,t){t.d(r,{makeArray:function(){return a}});t(3);var n=t(2);function o(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return i(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var a=function(e){var r=[];return[null,void 0].includes(e)||((0,n.isArrayLike)(Object(e))?l(r,"string"==typeof e?[e]:e):r.push(e)),r},l=function(e,r){Array.isArray(r)||(r=Array.prototype.slice.call(r));for(var t,n=o(r);!(t=n()).done;){var i=t.value;e.push(i)}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__9__},function(e,r,t){t(7);var n=t(11),o=t.n(n),i=t(8),a=t(1),l=t(0),s=t(2),u=t(4),c=t(5);function f(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return _(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var p=!1,d=function(){function e(r){var t=this;this.$domNode=null,this._bindEventHelper=function(e,r,n){void 0===r&&(r=!1),n||(n=r?"off":"on");var o=(0,l.$)(e[0]);if("object"===(0,u.determineType)(e[1])&&!r){for(var a=0,s=Object.entries(e[1]);a<s.length;a++){var c=s[a],f=c[0],_=c[1];t[n](o,f,_)}return o}return 0===(e=(0,i.makeArray)(e).slice(1)).length&&e.push(""),e[0].includes(".")||(e[0]+="."+t.options.name),o[n].apply(o,e)},r&&(this.$domNode=r),this.options=e._defaultOptions,l.$.global.console||(l.$.global.console={});for(var n,o=f(a.CONSOLE_METHODS);!(n=o()).done;){var s=n.value;s in l.$.global.console||(l.$.global.console[s]=l.NOOP)}}var r=e.prototype;return r.destructor=function(){var e;return null!=(e=l.$.fn)&&e.off&&this.off("*"),this},r.initialize=function(r){return void 0===r&&(r={}),this.options=(0,u.extend)(!0,{},e._defaultOptions,r),this.options.domNodeSelectorPrefix=(0,c.format)(this.options.domNodeSelectorPrefix,(0,c.camelCaseToDelimited)(null===this.options.domNodeSelectorInfix?"":this.options.domNodeSelectorInfix||this.options.name)),this.renderJavaScriptDependentVisibility(),this},e.controller=function(r,t,n){void 0===n&&(n=null),"function"==typeof r&&((r=new r(n))instanceof e||(r=(0,u.extend)(!0,new e,r)));var o,a=(0,i.makeArray)(t);if(a.length&&"string"==typeof a[0]&&a[0]in r)return(0,s.isFunction)(r[a[0]])?(o=r)[a[0]].apply(o,a.slice(1)):r[a[0]];if(0===a.length||"object"==typeof a[0]){var l,c,f=(l=r).initialize.apply(l,a),_=r.options.name||r.constructor.name;return null!=(c=n)&&c.data&&!n.data(_)&&n.data(_,r),f}if(a.length&&"string"==typeof a[0])throw new Error('Method "'+a[0]+'" does not exist on $-extended dom node "'+r+'".')},r.log=function(e,r,t,n){if(void 0===r&&(r=!1),void 0===t&&(t=!1),void 0===n&&(n="info"),this.options.logging||r||["error","critical"].includes(n)){for(var o,i=arguments.length,a=new Array(i>4?i-4:0),u=4;u<i;u++)a[u-4]=arguments[u];if(t?o=e:"string"==typeof e?o=this.options.name+" ("+n+"): "+c.format.apply(void 0,[e].concat(a)):(0,s.isNumeric)(e)||"boolean"==typeof e?o=this.options.name+" ("+n+"): "+e.toString():(this.log(",--------------------------------------------,"),this.log(e,r,!0),this.log("'--------------------------------------------'")),o)if(l.$.global.console&&n in l.$.global.console&&l.$.global.console[n]!==l.NOOP)l.$.global.console[n](o);else{var f;null!=(f=l.$.global.window)&&f.alert&&l.$.global.window.alert(o)}}},r.info=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"info"].concat(t))},r.debug=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"debug"].concat(t))},r.error=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!0,!1,"error"].concat(t))},r.critical=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!0,!1,"warn"].concat(t))},r.warn=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];this.log.apply(this,[e,!1,!1,"warn"].concat(t))},e.show=function(r,t,n){void 0===t&&(t=3),void 0===n&&(n=0);var o="";if("object"===(0,u.determineType)(r)){for(var i=0,a=Object.entries(r);i<a.length;i++){var l=a[i],s=l[0],c=l[1];o+=s.toString()+": ",o+=n<=t?e.show(c,t,n+1):""+c,o+="\n"}return o.trim()}return(o=(""+r).trim())+' (Type: "'+(0,u.determineType)(r)+'")'},e.isEquivalentDOM=function(e,r,t){if(void 0===t&&(t=!1),e===r)return!0;if(e&&r){for(var n=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,o={first:e,second:r},i={first:(0,l.$)("<dummy>"),second:(0,l.$)("<dummy>")},a=0,s=Object.entries(o);a<s.length;a++){var u=s[a],c=u[0],f=u[1];if("string"==typeof f&&(t||f.startsWith("<")&&f.endsWith(">")&&f.length>=3||n.test(f)))i[c]=(0,l.$)("<div>"+f+"</div>");else try{var _=(0,l.$)(f).clone();if(!_.length)return!1;i[c]=(0,l.$)("<div>").append(_)}catch(e){return!1}}if(i.first.length&&i.first.length===i.second.length){i.first=i.first.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode,i.second=i.second.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode;for(var p=0,d=0,v=i.first;d<v.length;d++){if(!v[d].isEqualNode(i.second[p]))return!1;p+=1}return!0}}return!1},r.getPositionRelativeToViewport=function(e){void 0===e&&(e={});var r=(0,u.extend)({bottom:0,left:0,right:0,top:0},e),t=this.$domNode;if(l.$.global.window&&null!=t&&t.length&&t[0]&&"getBoundingClientRect"in t[0]){var n=(0,l.$)(l.$.global.window),o=t[0].getBoundingClientRect();if(o){if(o.top&&o.top+r.top<0)return"above";if(o.left+r.left<0)return"left";var i=n.height();if("number"==typeof i&&i<o.bottom+r.bottom)return"below";var a=n.width();if("number"==typeof a&&a<o.right+r.right)return"right"}}return"in"},e.generateDirectiveSelector=function(e){var r=(0,c.camelCaseToDelimited)(e);return r+", ."+r+", ["+r+"], [data-"+r+"], [x-"+r+"]"+(r.includes("-")?", ["+r.replace(/-/g,"\\:")+"], ["+r.replace(/-/g,"_")+"]":"")},r.removeDirective=function(e){if(null===this.$domNode)return null;var r=(0,c.camelCaseToDelimited)(e);return this.$domNode.removeClass(r).removeAttr(r).removeAttr("data-"+r).removeAttr("x-"+r).removeAttr(r.replace("-",":")).removeAttr(r.replace("-","_"))},r.renderJavaScriptDependentVisibility=function(){!p&&l.$.document&&"filter"in l.$&&"hide"in l.$&&"show"in l.$&&((0,l.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.hideJavaScriptEnabled).filter((function(e,r){return!(0,l.$)(r).data("javaScriptDependentContentHide")})).data("javaScriptDependentContentHide",!0).hide(),(0,l.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.showJavaScriptEnabled).filter((function(e,r){return!(0,l.$)(r).data("javaScriptDependentContentShow")})).data("javaScriptDependentContentShow",!0).show(),p=!0)},e.getNormalizedDirectiveName=function(e){for(var r,t=f(["-",":","_"]);!(r=t()).done;){for(var n,o=r.value,i=!1,a=f(["data"+o,"x"+o]);!(n=a()).done;){var l=n.value;if(e.startsWith(l)){e=e.substring(l.length),i=!0;break}}if(i)break}for(var s,u=f(["-",":","_"]);!(s=u()).done;){var _=s.value;e=(0,c.delimitedToCamelCase)(e,_)}return e},r.getDirectiveValue=function(e){if(null===this.$domNode)return null;for(var r=(0,c.camelCaseToDelimited)(e),t=0,n=[r,"data-"+r,"x-"+r,r.replace("-","\\:")];t<n.length;t++){var o=n[t],i=this.$domNode.attr(o);if("string"==typeof i)return i}return null},r.sliceDomNodeSelectorPrefix=function(e){return this.options.domNodeSelectorPrefix&&e.startsWith(this.options.domNodeSelectorPrefix)?e.substring(this.options.domNodeSelectorPrefix.length).trim():e},e.getDomNodeName=function(e){var r=/^<?([a-zA-Z]+).*>?.*/.exec(e);return r?r[1]:null},r.grabDomNodes=function(e,r){var t=this,n={};if(e)if(r)for(var o=(0,l.$)(r),i=0,a=Object.entries(e);i<a.length;i++){var s=a[i],u=s[0],f=s[1];n[u]=o.find(f)}else for(var _=0,p=Object.entries(e);_<p.length;_++){var d=p[_],v=d[0],g=d[1],m=/, */.exec(g);m&&(e[v]+=g.split(m[0]).map((function(e){return", "+(0,c.normalizeDomNodeSelector)(e,t.options.domNodeSelectorPrefix)})).join("")),n[v]=(0,l.$)((0,c.normalizeDomNodeSelector)(e[v],this.options.domNodeSelectorPrefix))}return this.options.domNodeSelectorPrefix&&(n.parent=(0,l.$)(this.options.domNodeSelectorPrefix)),l.$.global.window&&(n.window=(0,l.$)(l.$.global.window),l.$.document&&(n.document=(0,l.$)(l.$.document))),n},r.fireEvent=function(e,r,t){var n;void 0===r&&(r=!1),void 0===t&&(t=this);for(var o="on"+(0,c.capitalize)(e),i=t,a=arguments.length,s=new Array(a>3?a-3:0),u=3;u<a;u++)s[u-3]=arguments[u];return r||(o in i?i[o].apply(i,s):"_"+o in i&&i["_"+o].apply(i,s)),!i.options||!(o in i.options)||i.options[o]===l.NOOP||(n=i.options[o]).call.apply(n,[this].concat(s))},r.on=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return this._bindEventHelper(r,!1)},r.off=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return this._bindEventHelper(r,!0)},o()(e,[{key:"normalizedClassNames",get:function(){if(this.$domNode){var e="class";this.$domNode.find("*").addBack().each((function(r,t){var n=(0,l.$)(t),o=n.attr(e);o?n.attr(e,(o.split(" ").sort()||[]).join(" ")):n.is("[class]")&&n.removeAttr(e)}))}return this}},{key:"normalizedStyles",get:function(){if(this.$domNode){var e="style";this.$domNode.find("*").addBack().each((function(r,t){var n=(0,l.$)(t),o=n.attr(e);o?n.attr(e,(0,c.compressStyleValue)(((0,c.compressStyleValue)(o).split(";").sort()||[]).map((function(e){return e.trim()})).join(";"))):n.is("[style]")&&n.removeAttr(e)}))}return this}},{key:"style",get:function(){var e={},r=this.$domNode;if(null!=r&&r.length){var t,n;if(null!=(t=l.$.global.window)&&t.getComputedStyle&&(n=l.$.global.window.getComputedStyle(r[0],null))){if("length"in n)for(var o=0;o<n.length;o+=1)e[(0,c.delimitedToCamelCase)(n[o])]=n.getPropertyValue(n[o]);else for(var i=0,a=Object.entries(n);i<a.length;i++){var s=a[i],u=s[0],f=s[1];e[(0,c.delimitedToCamelCase)(u)]=f||n.getPropertyValue(u)}return e}if(n=r[0].style)for(var _ in n)"function"!=typeof n[_]&&(e[_]=n[_])}return e}},{key:"text",get:function(){return this.$domNode?this.$domNode.clone().children().remove().end().text():""}}])}();d._defaultOptions={domNodes:{hideJavaScriptEnabled:".tools-hidden-on-javascript-enabled",showJavaScriptEnabled:".tools-visible-on-javascript-enabled"},domNodeSelectorInfix:"",domNodeSelectorPrefix:"body",logging:!1,name:"Tools"};r.default=d},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e){if(void 0===__WEBPACK_EXTERNAL_MODULE__12__){var r=new Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}e.exports=__WEBPACK_EXTERNAL_MODULE__12__}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.loaded=!0,t.exports}__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(0);return __webpack_exports__}()}));
|
package/dist/cookie.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CookieOptions } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* Deletes a cookie value by given name.
|
|
4
|
+
* @param name - Name to identify requested value.
|
|
5
|
+
*/
|
|
6
|
+
export declare const deleteCookie: (name: string) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Gets a cookie value by given name.
|
|
9
|
+
* @param name - Name to identify requested value.
|
|
10
|
+
* @returns Requested value.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getCookie: (name: string) => string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Sets a cookie key-value-pair.
|
|
15
|
+
* @param name - Name to identify given value.
|
|
16
|
+
* @param value - Value to set.
|
|
17
|
+
* @param givenOptions - Cookie set options.
|
|
18
|
+
* @param givenOptions.domain - Domain to reference with given key-value-pair.
|
|
19
|
+
* @param givenOptions.httpOnly - Indicates if this cookie should be accessible
|
|
20
|
+
* from client or not.
|
|
21
|
+
* @param givenOptions.minimal - Set only minimum number of options.
|
|
22
|
+
* @param givenOptions.numberOfDaysUntilExpiration - Number of days until given
|
|
23
|
+
* key shouldn't be deleted.
|
|
24
|
+
* @param givenOptions.path - Path to reference with given key-value-pair.
|
|
25
|
+
* @param givenOptions.sameSite - Set same site policy to "Lax", "None" or
|
|
26
|
+
* "Strict".
|
|
27
|
+
* @param givenOptions.secure - Indicates if this cookie is only valid for
|
|
28
|
+
* "https" connections.
|
|
29
|
+
* @returns A boolean indicating whether cookie could be set or not.
|
|
30
|
+
*/
|
|
31
|
+
export declare const setCookie: (name: string, value: string, givenOptions?: Partial<CookieOptions>) => boolean;
|