@pendo/agent 2.332.1 → 2.332.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4028,8 +4028,8 @@ let SERVER = '';
4028
4028
  let ASSET_HOST = '';
4029
4029
  let ASSET_PATH = '';
4030
4030
  let DESIGNER_SERVER = '';
4031
- let VERSION = '2.332.1_';
4032
- let PACKAGE_VERSION = '2.332.1';
4031
+ let VERSION = '2.332.2_';
4032
+ let PACKAGE_VERSION = '2.332.2';
4033
4033
  let LOADER = 'xhr';
4034
4034
  /* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
4035
4035
  /**
@@ -41267,6 +41267,12 @@ function TextCapture() {
41267
41267
  }
41268
41268
  }
41269
41269
 
41270
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
41271
+
41272
+ function getDefaultExportFromCjs (x) {
41273
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
41274
+ }
41275
+
41270
41276
  var substitutionRegex = '\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}';
41271
41277
  var skipStepString = '{skipStep:* *(auto|\\d+)\\/}';
41272
41278
  var goToMiddleString = '(?!0)(\\d+)';
@@ -52745,12 +52751,2094 @@ function NetworkCapture() {
52745
52751
  }
52746
52752
  }
52747
52753
 
52748
- var PREDICT_STEP_REGEX = /\$\$predict\$\$/;
52749
- var DRAG_THRESHOLD = 5;
52750
- var STYLE_ID = 'pendo-predict-plugin-styles';
52751
- var GUIDE_BUTTON_IDENTIFIER = 'button:contains("token")';
52752
- var pluginVersion = '1.0.1';
52753
- var getPredictBaseUrl = function (designerServer) { return designerServer.replace('app', 'predict'); };
52754
+ var underscore = {exports: {}};
52755
+
52756
+ (function (module, exports) {
52757
+ /*!
52758
+ * Underscore.js 1.13.6
52759
+ * https://underscorejs.org
52760
+ * (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
52761
+ * Underscore may be freely distributed under the MIT license.
52762
+ */
52763
+
52764
+ (function (global, factory) {
52765
+ module.exports = factory() ;
52766
+ }(commonjsGlobal, (function () {
52767
+
52768
+ // Current version.
52769
+ var VERSION = '1.13.6';
52770
+
52771
+ // Establish the root object, `window` (`self`) in the browser, `global`
52772
+ // on the server, or `this` in some virtual machines. We use `self`
52773
+ // instead of `window` for `WebWorker` support.
52774
+ var root = (typeof self == 'object' && self.self === self && self) ||
52775
+ (typeof commonjsGlobal == 'object' && commonjsGlobal.global === commonjsGlobal && commonjsGlobal) ||
52776
+ Function('return this')() ||
52777
+ {};
52778
+
52779
+ // Save bytes in the minified (but not gzipped) version:
52780
+ var ArrayProto = Array.prototype, ObjProto = Object.prototype;
52781
+ var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
52782
+
52783
+ // Create quick reference variables for speed access to core prototypes.
52784
+ var push = ArrayProto.push,
52785
+ slice = ArrayProto.slice,
52786
+ toString = ObjProto.toString,
52787
+ hasOwnProperty = ObjProto.hasOwnProperty;
52788
+
52789
+ // Modern feature detection.
52790
+ var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',
52791
+ supportsDataView = typeof DataView !== 'undefined' && /\[native code\]/.test(String(DataView));
52792
+
52793
+ // All **ECMAScript 5+** native function implementations that we hope to use
52794
+ // are declared here.
52795
+ var nativeIsArray = Array.isArray,
52796
+ nativeKeys = Object.keys,
52797
+ nativeCreate = Object.create,
52798
+ nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;
52799
+
52800
+ // Create references to these builtin functions because we override them.
52801
+ var _isNaN = isNaN,
52802
+ _isFinite = isFinite;
52803
+
52804
+ // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
52805
+ var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
52806
+ var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
52807
+ 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
52808
+
52809
+ // The largest integer that can be represented exactly.
52810
+ var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
52811
+
52812
+ // Some functions take a variable number of arguments, or a few expected
52813
+ // arguments at the beginning and then a variable number of values to operate
52814
+ // on. This helper accumulates all remaining arguments past the function’s
52815
+ // argument length (or an explicit `startIndex`), into an array that becomes
52816
+ // the last argument. Similar to ES6’s "rest parameter".
52817
+ function restArguments(func, startIndex) {
52818
+ startIndex = startIndex == null ? func.length - 1 : +startIndex;
52819
+ return function() {
52820
+ var length = Math.max(arguments.length - startIndex, 0),
52821
+ rest = Array(length),
52822
+ index = 0;
52823
+ for (; index < length; index++) {
52824
+ rest[index] = arguments[index + startIndex];
52825
+ }
52826
+ switch (startIndex) {
52827
+ case 0: return func.call(this, rest);
52828
+ case 1: return func.call(this, arguments[0], rest);
52829
+ case 2: return func.call(this, arguments[0], arguments[1], rest);
52830
+ }
52831
+ var args = Array(startIndex + 1);
52832
+ for (index = 0; index < startIndex; index++) {
52833
+ args[index] = arguments[index];
52834
+ }
52835
+ args[startIndex] = rest;
52836
+ return func.apply(this, args);
52837
+ };
52838
+ }
52839
+
52840
+ // Is a given variable an object?
52841
+ function isObject(obj) {
52842
+ var type = typeof obj;
52843
+ return type === 'function' || (type === 'object' && !!obj);
52844
+ }
52845
+
52846
+ // Is a given value equal to null?
52847
+ function isNull(obj) {
52848
+ return obj === null;
52849
+ }
52850
+
52851
+ // Is a given variable undefined?
52852
+ function isUndefined(obj) {
52853
+ return obj === void 0;
52854
+ }
52855
+
52856
+ // Is a given value a boolean?
52857
+ function isBoolean(obj) {
52858
+ return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
52859
+ }
52860
+
52861
+ // Is a given value a DOM element?
52862
+ function isElement(obj) {
52863
+ return !!(obj && obj.nodeType === 1);
52864
+ }
52865
+
52866
+ // Internal function for creating a `toString`-based type tester.
52867
+ function tagTester(name) {
52868
+ var tag = '[object ' + name + ']';
52869
+ return function(obj) {
52870
+ return toString.call(obj) === tag;
52871
+ };
52872
+ }
52873
+
52874
+ var isString = tagTester('String');
52875
+
52876
+ var isNumber = tagTester('Number');
52877
+
52878
+ var isDate = tagTester('Date');
52879
+
52880
+ var isRegExp = tagTester('RegExp');
52881
+
52882
+ var isError = tagTester('Error');
52883
+
52884
+ var isSymbol = tagTester('Symbol');
52885
+
52886
+ var isArrayBuffer = tagTester('ArrayBuffer');
52887
+
52888
+ var isFunction = tagTester('Function');
52889
+
52890
+ // Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old
52891
+ // v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
52892
+ var nodelist = root.document && root.document.childNodes;
52893
+ if (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {
52894
+ isFunction = function(obj) {
52895
+ return typeof obj == 'function' || false;
52896
+ };
52897
+ }
52898
+
52899
+ var isFunction$1 = isFunction;
52900
+
52901
+ var hasObjectTag = tagTester('Object');
52902
+
52903
+ // In IE 10 - Edge 13, `DataView` has string tag `'[object Object]'`.
52904
+ // In IE 11, the most common among them, this problem also applies to
52905
+ // `Map`, `WeakMap` and `Set`.
52906
+ var hasStringTagBug = (
52907
+ supportsDataView && hasObjectTag(new DataView(new ArrayBuffer(8)))
52908
+ ),
52909
+ isIE11 = (typeof Map !== 'undefined' && hasObjectTag(new Map));
52910
+
52911
+ var isDataView = tagTester('DataView');
52912
+
52913
+ // In IE 10 - Edge 13, we need a different heuristic
52914
+ // to determine whether an object is a `DataView`.
52915
+ function ie10IsDataView(obj) {
52916
+ return obj != null && isFunction$1(obj.getInt8) && isArrayBuffer(obj.buffer);
52917
+ }
52918
+
52919
+ var isDataView$1 = (hasStringTagBug ? ie10IsDataView : isDataView);
52920
+
52921
+ // Is a given value an array?
52922
+ // Delegates to ECMA5's native `Array.isArray`.
52923
+ var isArray = nativeIsArray || tagTester('Array');
52924
+
52925
+ // Internal function to check whether `key` is an own property name of `obj`.
52926
+ function has$1(obj, key) {
52927
+ return obj != null && hasOwnProperty.call(obj, key);
52928
+ }
52929
+
52930
+ var isArguments = tagTester('Arguments');
52931
+
52932
+ // Define a fallback version of the method in browsers (ahem, IE < 9), where
52933
+ // there isn't any inspectable "Arguments" type.
52934
+ (function() {
52935
+ if (!isArguments(arguments)) {
52936
+ isArguments = function(obj) {
52937
+ return has$1(obj, 'callee');
52938
+ };
52939
+ }
52940
+ }());
52941
+
52942
+ var isArguments$1 = isArguments;
52943
+
52944
+ // Is a given object a finite number?
52945
+ function isFinite$1(obj) {
52946
+ return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));
52947
+ }
52948
+
52949
+ // Is the given value `NaN`?
52950
+ function isNaN$1(obj) {
52951
+ return isNumber(obj) && _isNaN(obj);
52952
+ }
52953
+
52954
+ // Predicate-generating function. Often useful outside of Underscore.
52955
+ function constant(value) {
52956
+ return function() {
52957
+ return value;
52958
+ };
52959
+ }
52960
+
52961
+ // Common internal logic for `isArrayLike` and `isBufferLike`.
52962
+ function createSizePropertyCheck(getSizeProperty) {
52963
+ return function(collection) {
52964
+ var sizeProperty = getSizeProperty(collection);
52965
+ return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;
52966
+ }
52967
+ }
52968
+
52969
+ // Internal helper to generate a function to obtain property `key` from `obj`.
52970
+ function shallowProperty(key) {
52971
+ return function(obj) {
52972
+ return obj == null ? void 0 : obj[key];
52973
+ };
52974
+ }
52975
+
52976
+ // Internal helper to obtain the `byteLength` property of an object.
52977
+ var getByteLength = shallowProperty('byteLength');
52978
+
52979
+ // Internal helper to determine whether we should spend extensive checks against
52980
+ // `ArrayBuffer` et al.
52981
+ var isBufferLike = createSizePropertyCheck(getByteLength);
52982
+
52983
+ // Is a given value a typed array?
52984
+ var typedArrayPattern = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
52985
+ function isTypedArray(obj) {
52986
+ // `ArrayBuffer.isView` is the most future-proof, so use it when available.
52987
+ // Otherwise, fall back on the above regular expression.
52988
+ return nativeIsView ? (nativeIsView(obj) && !isDataView$1(obj)) :
52989
+ isBufferLike(obj) && typedArrayPattern.test(toString.call(obj));
52990
+ }
52991
+
52992
+ var isTypedArray$1 = supportsArrayBuffer ? isTypedArray : constant(false);
52993
+
52994
+ // Internal helper to obtain the `length` property of an object.
52995
+ var getLength = shallowProperty('length');
52996
+
52997
+ // Internal helper to create a simple lookup structure.
52998
+ // `collectNonEnumProps` used to depend on `_.contains`, but this led to
52999
+ // circular imports. `emulatedSet` is a one-off solution that only works for
53000
+ // arrays of strings.
53001
+ function emulatedSet(keys) {
53002
+ var hash = {};
53003
+ for (var l = keys.length, i = 0; i < l; ++i) hash[keys[i]] = true;
53004
+ return {
53005
+ contains: function(key) { return hash[key] === true; },
53006
+ push: function(key) {
53007
+ hash[key] = true;
53008
+ return keys.push(key);
53009
+ }
53010
+ };
53011
+ }
53012
+
53013
+ // Internal helper. Checks `keys` for the presence of keys in IE < 9 that won't
53014
+ // be iterated by `for key in ...` and thus missed. Extends `keys` in place if
53015
+ // needed.
53016
+ function collectNonEnumProps(obj, keys) {
53017
+ keys = emulatedSet(keys);
53018
+ var nonEnumIdx = nonEnumerableProps.length;
53019
+ var constructor = obj.constructor;
53020
+ var proto = (isFunction$1(constructor) && constructor.prototype) || ObjProto;
53021
+
53022
+ // Constructor is a special case.
53023
+ var prop = 'constructor';
53024
+ if (has$1(obj, prop) && !keys.contains(prop)) keys.push(prop);
53025
+
53026
+ while (nonEnumIdx--) {
53027
+ prop = nonEnumerableProps[nonEnumIdx];
53028
+ if (prop in obj && obj[prop] !== proto[prop] && !keys.contains(prop)) {
53029
+ keys.push(prop);
53030
+ }
53031
+ }
53032
+ }
53033
+
53034
+ // Retrieve the names of an object's own properties.
53035
+ // Delegates to **ECMAScript 5**'s native `Object.keys`.
53036
+ function keys(obj) {
53037
+ if (!isObject(obj)) return [];
53038
+ if (nativeKeys) return nativeKeys(obj);
53039
+ var keys = [];
53040
+ for (var key in obj) if (has$1(obj, key)) keys.push(key);
53041
+ // Ahem, IE < 9.
53042
+ if (hasEnumBug) collectNonEnumProps(obj, keys);
53043
+ return keys;
53044
+ }
53045
+
53046
+ // Is a given array, string, or object empty?
53047
+ // An "empty" object has no enumerable own-properties.
53048
+ function isEmpty(obj) {
53049
+ if (obj == null) return true;
53050
+ // Skip the more expensive `toString`-based type checks if `obj` has no
53051
+ // `.length`.
53052
+ var length = getLength(obj);
53053
+ if (typeof length == 'number' && (
53054
+ isArray(obj) || isString(obj) || isArguments$1(obj)
53055
+ )) return length === 0;
53056
+ return getLength(keys(obj)) === 0;
53057
+ }
53058
+
53059
+ // Returns whether an object has a given set of `key:value` pairs.
53060
+ function isMatch(object, attrs) {
53061
+ var _keys = keys(attrs), length = _keys.length;
53062
+ if (object == null) return !length;
53063
+ var obj = Object(object);
53064
+ for (var i = 0; i < length; i++) {
53065
+ var key = _keys[i];
53066
+ if (attrs[key] !== obj[key] || !(key in obj)) return false;
53067
+ }
53068
+ return true;
53069
+ }
53070
+
53071
+ // If Underscore is called as a function, it returns a wrapped object that can
53072
+ // be used OO-style. This wrapper holds altered versions of all functions added
53073
+ // through `_.mixin`. Wrapped objects may be chained.
53074
+ function _$1(obj) {
53075
+ if (obj instanceof _$1) return obj;
53076
+ if (!(this instanceof _$1)) return new _$1(obj);
53077
+ this._wrapped = obj;
53078
+ }
53079
+
53080
+ _$1.VERSION = VERSION;
53081
+
53082
+ // Extracts the result from a wrapped and chained object.
53083
+ _$1.prototype.value = function() {
53084
+ return this._wrapped;
53085
+ };
53086
+
53087
+ // Provide unwrapping proxies for some methods used in engine operations
53088
+ // such as arithmetic and JSON stringification.
53089
+ _$1.prototype.valueOf = _$1.prototype.toJSON = _$1.prototype.value;
53090
+
53091
+ _$1.prototype.toString = function() {
53092
+ return String(this._wrapped);
53093
+ };
53094
+
53095
+ // Internal function to wrap or shallow-copy an ArrayBuffer,
53096
+ // typed array or DataView to a new view, reusing the buffer.
53097
+ function toBufferView(bufferSource) {
53098
+ return new Uint8Array(
53099
+ bufferSource.buffer || bufferSource,
53100
+ bufferSource.byteOffset || 0,
53101
+ getByteLength(bufferSource)
53102
+ );
53103
+ }
53104
+
53105
+ // We use this string twice, so give it a name for minification.
53106
+ var tagDataView = '[object DataView]';
53107
+
53108
+ // Internal recursive comparison function for `_.isEqual`.
53109
+ function eq(a, b, aStack, bStack) {
53110
+ // Identical objects are equal. `0 === -0`, but they aren't identical.
53111
+ // See the [Harmony `egal` proposal](https://wiki.ecmascript.org/doku.php?id=harmony:egal).
53112
+ if (a === b) return a !== 0 || 1 / a === 1 / b;
53113
+ // `null` or `undefined` only equal to itself (strict comparison).
53114
+ if (a == null || b == null) return false;
53115
+ // `NaN`s are equivalent, but non-reflexive.
53116
+ if (a !== a) return b !== b;
53117
+ // Exhaust primitive checks
53118
+ var type = typeof a;
53119
+ if (type !== 'function' && type !== 'object' && typeof b != 'object') return false;
53120
+ return deepEq(a, b, aStack, bStack);
53121
+ }
53122
+
53123
+ // Internal recursive comparison function for `_.isEqual`.
53124
+ function deepEq(a, b, aStack, bStack) {
53125
+ // Unwrap any wrapped objects.
53126
+ if (a instanceof _$1) a = a._wrapped;
53127
+ if (b instanceof _$1) b = b._wrapped;
53128
+ // Compare `[[Class]]` names.
53129
+ var className = toString.call(a);
53130
+ if (className !== toString.call(b)) return false;
53131
+ // Work around a bug in IE 10 - Edge 13.
53132
+ if (hasStringTagBug && className == '[object Object]' && isDataView$1(a)) {
53133
+ if (!isDataView$1(b)) return false;
53134
+ className = tagDataView;
53135
+ }
53136
+ switch (className) {
53137
+ // These types are compared by value.
53138
+ case '[object RegExp]':
53139
+ // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
53140
+ case '[object String]':
53141
+ // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
53142
+ // equivalent to `new String("5")`.
53143
+ return '' + a === '' + b;
53144
+ case '[object Number]':
53145
+ // `NaN`s are equivalent, but non-reflexive.
53146
+ // Object(NaN) is equivalent to NaN.
53147
+ if (+a !== +a) return +b !== +b;
53148
+ // An `egal` comparison is performed for other numeric values.
53149
+ return +a === 0 ? 1 / +a === 1 / b : +a === +b;
53150
+ case '[object Date]':
53151
+ case '[object Boolean]':
53152
+ // Coerce dates and booleans to numeric primitive values. Dates are compared by their
53153
+ // millisecond representations. Note that invalid dates with millisecond representations
53154
+ // of `NaN` are not equivalent.
53155
+ return +a === +b;
53156
+ case '[object Symbol]':
53157
+ return SymbolProto.valueOf.call(a) === SymbolProto.valueOf.call(b);
53158
+ case '[object ArrayBuffer]':
53159
+ case tagDataView:
53160
+ // Coerce to typed array so we can fall through.
53161
+ return deepEq(toBufferView(a), toBufferView(b), aStack, bStack);
53162
+ }
53163
+
53164
+ var areArrays = className === '[object Array]';
53165
+ if (!areArrays && isTypedArray$1(a)) {
53166
+ var byteLength = getByteLength(a);
53167
+ if (byteLength !== getByteLength(b)) return false;
53168
+ if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;
53169
+ areArrays = true;
53170
+ }
53171
+ if (!areArrays) {
53172
+ if (typeof a != 'object' || typeof b != 'object') return false;
53173
+
53174
+ // Objects with different constructors are not equivalent, but `Object`s or `Array`s
53175
+ // from different frames are.
53176
+ var aCtor = a.constructor, bCtor = b.constructor;
53177
+ if (aCtor !== bCtor && !(isFunction$1(aCtor) && aCtor instanceof aCtor &&
53178
+ isFunction$1(bCtor) && bCtor instanceof bCtor)
53179
+ && ('constructor' in a && 'constructor' in b)) {
53180
+ return false;
53181
+ }
53182
+ }
53183
+ // Assume equality for cyclic structures. The algorithm for detecting cyclic
53184
+ // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
53185
+
53186
+ // Initializing stack of traversed objects.
53187
+ // It's done here since we only need them for objects and arrays comparison.
53188
+ aStack = aStack || [];
53189
+ bStack = bStack || [];
53190
+ var length = aStack.length;
53191
+ while (length--) {
53192
+ // Linear search. Performance is inversely proportional to the number of
53193
+ // unique nested structures.
53194
+ if (aStack[length] === a) return bStack[length] === b;
53195
+ }
53196
+
53197
+ // Add the first object to the stack of traversed objects.
53198
+ aStack.push(a);
53199
+ bStack.push(b);
53200
+
53201
+ // Recursively compare objects and arrays.
53202
+ if (areArrays) {
53203
+ // Compare array lengths to determine if a deep comparison is necessary.
53204
+ length = a.length;
53205
+ if (length !== b.length) return false;
53206
+ // Deep compare the contents, ignoring non-numeric properties.
53207
+ while (length--) {
53208
+ if (!eq(a[length], b[length], aStack, bStack)) return false;
53209
+ }
53210
+ } else {
53211
+ // Deep compare objects.
53212
+ var _keys = keys(a), key;
53213
+ length = _keys.length;
53214
+ // Ensure that both objects contain the same number of properties before comparing deep equality.
53215
+ if (keys(b).length !== length) return false;
53216
+ while (length--) {
53217
+ // Deep compare each member
53218
+ key = _keys[length];
53219
+ if (!(has$1(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
53220
+ }
53221
+ }
53222
+ // Remove the first object from the stack of traversed objects.
53223
+ aStack.pop();
53224
+ bStack.pop();
53225
+ return true;
53226
+ }
53227
+
53228
+ // Perform a deep comparison to check if two objects are equal.
53229
+ function isEqual(a, b) {
53230
+ return eq(a, b);
53231
+ }
53232
+
53233
+ // Retrieve all the enumerable property names of an object.
53234
+ function allKeys(obj) {
53235
+ if (!isObject(obj)) return [];
53236
+ var keys = [];
53237
+ for (var key in obj) keys.push(key);
53238
+ // Ahem, IE < 9.
53239
+ if (hasEnumBug) collectNonEnumProps(obj, keys);
53240
+ return keys;
53241
+ }
53242
+
53243
+ // Since the regular `Object.prototype.toString` type tests don't work for
53244
+ // some types in IE 11, we use a fingerprinting heuristic instead, based
53245
+ // on the methods. It's not great, but it's the best we got.
53246
+ // The fingerprint method lists are defined below.
53247
+ function ie11fingerprint(methods) {
53248
+ var length = getLength(methods);
53249
+ return function(obj) {
53250
+ if (obj == null) return false;
53251
+ // `Map`, `WeakMap` and `Set` have no enumerable keys.
53252
+ var keys = allKeys(obj);
53253
+ if (getLength(keys)) return false;
53254
+ for (var i = 0; i < length; i++) {
53255
+ if (!isFunction$1(obj[methods[i]])) return false;
53256
+ }
53257
+ // If we are testing against `WeakMap`, we need to ensure that
53258
+ // `obj` doesn't have a `forEach` method in order to distinguish
53259
+ // it from a regular `Map`.
53260
+ return methods !== weakMapMethods || !isFunction$1(obj[forEachName]);
53261
+ };
53262
+ }
53263
+
53264
+ // In the interest of compact minification, we write
53265
+ // each string in the fingerprints only once.
53266
+ var forEachName = 'forEach',
53267
+ hasName = 'has',
53268
+ commonInit = ['clear', 'delete'],
53269
+ mapTail = ['get', hasName, 'set'];
53270
+
53271
+ // `Map`, `WeakMap` and `Set` each have slightly different
53272
+ // combinations of the above sublists.
53273
+ var mapMethods = commonInit.concat(forEachName, mapTail),
53274
+ weakMapMethods = commonInit.concat(mapTail),
53275
+ setMethods = ['add'].concat(commonInit, forEachName, hasName);
53276
+
53277
+ var isMap = isIE11 ? ie11fingerprint(mapMethods) : tagTester('Map');
53278
+
53279
+ var isWeakMap = isIE11 ? ie11fingerprint(weakMapMethods) : tagTester('WeakMap');
53280
+
53281
+ var isSet = isIE11 ? ie11fingerprint(setMethods) : tagTester('Set');
53282
+
53283
+ var isWeakSet = tagTester('WeakSet');
53284
+
53285
+ // Retrieve the values of an object's properties.
53286
+ function values(obj) {
53287
+ var _keys = keys(obj);
53288
+ var length = _keys.length;
53289
+ var values = Array(length);
53290
+ for (var i = 0; i < length; i++) {
53291
+ values[i] = obj[_keys[i]];
53292
+ }
53293
+ return values;
53294
+ }
53295
+
53296
+ // Convert an object into a list of `[key, value]` pairs.
53297
+ // The opposite of `_.object` with one argument.
53298
+ function pairs(obj) {
53299
+ var _keys = keys(obj);
53300
+ var length = _keys.length;
53301
+ var pairs = Array(length);
53302
+ for (var i = 0; i < length; i++) {
53303
+ pairs[i] = [_keys[i], obj[_keys[i]]];
53304
+ }
53305
+ return pairs;
53306
+ }
53307
+
53308
+ // Invert the keys and values of an object. The values must be serializable.
53309
+ function invert(obj) {
53310
+ var result = {};
53311
+ var _keys = keys(obj);
53312
+ for (var i = 0, length = _keys.length; i < length; i++) {
53313
+ result[obj[_keys[i]]] = _keys[i];
53314
+ }
53315
+ return result;
53316
+ }
53317
+
53318
+ // Return a sorted list of the function names available on the object.
53319
+ function functions(obj) {
53320
+ var names = [];
53321
+ for (var key in obj) {
53322
+ if (isFunction$1(obj[key])) names.push(key);
53323
+ }
53324
+ return names.sort();
53325
+ }
53326
+
53327
+ // An internal function for creating assigner functions.
53328
+ function createAssigner(keysFunc, defaults) {
53329
+ return function(obj) {
53330
+ var length = arguments.length;
53331
+ if (defaults) obj = Object(obj);
53332
+ if (length < 2 || obj == null) return obj;
53333
+ for (var index = 1; index < length; index++) {
53334
+ var source = arguments[index],
53335
+ keys = keysFunc(source),
53336
+ l = keys.length;
53337
+ for (var i = 0; i < l; i++) {
53338
+ var key = keys[i];
53339
+ if (!defaults || obj[key] === void 0) obj[key] = source[key];
53340
+ }
53341
+ }
53342
+ return obj;
53343
+ };
53344
+ }
53345
+
53346
+ // Extend a given object with all the properties in passed-in object(s).
53347
+ var extend = createAssigner(allKeys);
53348
+
53349
+ // Assigns a given object with all the own properties in the passed-in
53350
+ // object(s).
53351
+ // (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
53352
+ var extendOwn = createAssigner(keys);
53353
+
53354
+ // Fill in a given object with default properties.
53355
+ var defaults = createAssigner(allKeys, true);
53356
+
53357
+ // Create a naked function reference for surrogate-prototype-swapping.
53358
+ function ctor() {
53359
+ return function(){};
53360
+ }
53361
+
53362
+ // An internal function for creating a new object that inherits from another.
53363
+ function baseCreate(prototype) {
53364
+ if (!isObject(prototype)) return {};
53365
+ if (nativeCreate) return nativeCreate(prototype);
53366
+ var Ctor = ctor();
53367
+ Ctor.prototype = prototype;
53368
+ var result = new Ctor;
53369
+ Ctor.prototype = null;
53370
+ return result;
53371
+ }
53372
+
53373
+ // Creates an object that inherits from the given prototype object.
53374
+ // If additional properties are provided then they will be added to the
53375
+ // created object.
53376
+ function create(prototype, props) {
53377
+ var result = baseCreate(prototype);
53378
+ if (props) extendOwn(result, props);
53379
+ return result;
53380
+ }
53381
+
53382
+ // Create a (shallow-cloned) duplicate of an object.
53383
+ function clone(obj) {
53384
+ if (!isObject(obj)) return obj;
53385
+ return isArray(obj) ? obj.slice() : extend({}, obj);
53386
+ }
53387
+
53388
+ // Invokes `interceptor` with the `obj` and then returns `obj`.
53389
+ // The primary purpose of this method is to "tap into" a method chain, in
53390
+ // order to perform operations on intermediate results within the chain.
53391
+ function tap(obj, interceptor) {
53392
+ interceptor(obj);
53393
+ return obj;
53394
+ }
53395
+
53396
+ // Normalize a (deep) property `path` to array.
53397
+ // Like `_.iteratee`, this function can be customized.
53398
+ function toPath$1(path) {
53399
+ return isArray(path) ? path : [path];
53400
+ }
53401
+ _$1.toPath = toPath$1;
53402
+
53403
+ // Internal wrapper for `_.toPath` to enable minification.
53404
+ // Similar to `cb` for `_.iteratee`.
53405
+ function toPath(path) {
53406
+ return _$1.toPath(path);
53407
+ }
53408
+
53409
+ // Internal function to obtain a nested property in `obj` along `path`.
53410
+ function deepGet(obj, path) {
53411
+ var length = path.length;
53412
+ for (var i = 0; i < length; i++) {
53413
+ if (obj == null) return void 0;
53414
+ obj = obj[path[i]];
53415
+ }
53416
+ return length ? obj : void 0;
53417
+ }
53418
+
53419
+ // Get the value of the (deep) property on `path` from `object`.
53420
+ // If any property in `path` does not exist or if the value is
53421
+ // `undefined`, return `defaultValue` instead.
53422
+ // The `path` is normalized through `_.toPath`.
53423
+ function get(object, path, defaultValue) {
53424
+ var value = deepGet(object, toPath(path));
53425
+ return isUndefined(value) ? defaultValue : value;
53426
+ }
53427
+
53428
+ // Shortcut function for checking if an object has a given property directly on
53429
+ // itself (in other words, not on a prototype). Unlike the internal `has`
53430
+ // function, this public version can also traverse nested properties.
53431
+ function has(obj, path) {
53432
+ path = toPath(path);
53433
+ var length = path.length;
53434
+ for (var i = 0; i < length; i++) {
53435
+ var key = path[i];
53436
+ if (!has$1(obj, key)) return false;
53437
+ obj = obj[key];
53438
+ }
53439
+ return !!length;
53440
+ }
53441
+
53442
+ // Keep the identity function around for default iteratees.
53443
+ function identity(value) {
53444
+ return value;
53445
+ }
53446
+
53447
+ // Returns a predicate for checking whether an object has a given set of
53448
+ // `key:value` pairs.
53449
+ function matcher(attrs) {
53450
+ attrs = extendOwn({}, attrs);
53451
+ return function(obj) {
53452
+ return isMatch(obj, attrs);
53453
+ };
53454
+ }
53455
+
53456
+ // Creates a function that, when passed an object, will traverse that object’s
53457
+ // properties down the given `path`, specified as an array of keys or indices.
53458
+ function property(path) {
53459
+ path = toPath(path);
53460
+ return function(obj) {
53461
+ return deepGet(obj, path);
53462
+ };
53463
+ }
53464
+
53465
+ // Internal function that returns an efficient (for current engines) version
53466
+ // of the passed-in callback, to be repeatedly applied in other Underscore
53467
+ // functions.
53468
+ function optimizeCb(func, context, argCount) {
53469
+ if (context === void 0) return func;
53470
+ switch (argCount == null ? 3 : argCount) {
53471
+ case 1: return function(value) {
53472
+ return func.call(context, value);
53473
+ };
53474
+ // The 2-argument case is omitted because we’re not using it.
53475
+ case 3: return function(value, index, collection) {
53476
+ return func.call(context, value, index, collection);
53477
+ };
53478
+ case 4: return function(accumulator, value, index, collection) {
53479
+ return func.call(context, accumulator, value, index, collection);
53480
+ };
53481
+ }
53482
+ return function() {
53483
+ return func.apply(context, arguments);
53484
+ };
53485
+ }
53486
+
53487
+ // An internal function to generate callbacks that can be applied to each
53488
+ // element in a collection, returning the desired result — either `_.identity`,
53489
+ // an arbitrary callback, a property matcher, or a property accessor.
53490
+ function baseIteratee(value, context, argCount) {
53491
+ if (value == null) return identity;
53492
+ if (isFunction$1(value)) return optimizeCb(value, context, argCount);
53493
+ if (isObject(value) && !isArray(value)) return matcher(value);
53494
+ return property(value);
53495
+ }
53496
+
53497
+ // External wrapper for our callback generator. Users may customize
53498
+ // `_.iteratee` if they want additional predicate/iteratee shorthand styles.
53499
+ // This abstraction hides the internal-only `argCount` argument.
53500
+ function iteratee(value, context) {
53501
+ return baseIteratee(value, context, Infinity);
53502
+ }
53503
+ _$1.iteratee = iteratee;
53504
+
53505
+ // The function we call internally to generate a callback. It invokes
53506
+ // `_.iteratee` if overridden, otherwise `baseIteratee`.
53507
+ function cb(value, context, argCount) {
53508
+ if (_$1.iteratee !== iteratee) return _$1.iteratee(value, context);
53509
+ return baseIteratee(value, context, argCount);
53510
+ }
53511
+
53512
+ // Returns the results of applying the `iteratee` to each element of `obj`.
53513
+ // In contrast to `_.map` it returns an object.
53514
+ function mapObject(obj, iteratee, context) {
53515
+ iteratee = cb(iteratee, context);
53516
+ var _keys = keys(obj),
53517
+ length = _keys.length,
53518
+ results = {};
53519
+ for (var index = 0; index < length; index++) {
53520
+ var currentKey = _keys[index];
53521
+ results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
53522
+ }
53523
+ return results;
53524
+ }
53525
+
53526
+ // Predicate-generating function. Often useful outside of Underscore.
53527
+ function noop(){}
53528
+
53529
+ // Generates a function for a given object that returns a given property.
53530
+ function propertyOf(obj) {
53531
+ if (obj == null) return noop;
53532
+ return function(path) {
53533
+ return get(obj, path);
53534
+ };
53535
+ }
53536
+
53537
+ // Run a function **n** times.
53538
+ function times(n, iteratee, context) {
53539
+ var accum = Array(Math.max(0, n));
53540
+ iteratee = optimizeCb(iteratee, context, 1);
53541
+ for (var i = 0; i < n; i++) accum[i] = iteratee(i);
53542
+ return accum;
53543
+ }
53544
+
53545
+ // Return a random integer between `min` and `max` (inclusive).
53546
+ function random(min, max) {
53547
+ if (max == null) {
53548
+ max = min;
53549
+ min = 0;
53550
+ }
53551
+ return min + Math.floor(Math.random() * (max - min + 1));
53552
+ }
53553
+
53554
+ // A (possibly faster) way to get the current timestamp as an integer.
53555
+ var now = Date.now || function() {
53556
+ return new Date().getTime();
53557
+ };
53558
+
53559
+ // Internal helper to generate functions for escaping and unescaping strings
53560
+ // to/from HTML interpolation.
53561
+ function createEscaper(map) {
53562
+ var escaper = function(match) {
53563
+ return map[match];
53564
+ };
53565
+ // Regexes for identifying a key that needs to be escaped.
53566
+ var source = '(?:' + keys(map).join('|') + ')';
53567
+ var testRegexp = RegExp(source);
53568
+ var replaceRegexp = RegExp(source, 'g');
53569
+ return function(string) {
53570
+ string = string == null ? '' : '' + string;
53571
+ return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
53572
+ };
53573
+ }
53574
+
53575
+ // Internal list of HTML entities for escaping.
53576
+ var escapeMap = {
53577
+ '&': '&amp;',
53578
+ '<': '&lt;',
53579
+ '>': '&gt;',
53580
+ '"': '&quot;',
53581
+ "'": '&#x27;',
53582
+ '`': '&#x60;'
53583
+ };
53584
+
53585
+ // Function for escaping strings to HTML interpolation.
53586
+ var _escape = createEscaper(escapeMap);
53587
+
53588
+ // Internal list of HTML entities for unescaping.
53589
+ var unescapeMap = invert(escapeMap);
53590
+
53591
+ // Function for unescaping strings from HTML interpolation.
53592
+ var _unescape = createEscaper(unescapeMap);
53593
+
53594
+ // By default, Underscore uses ERB-style template delimiters. Change the
53595
+ // following template settings to use alternative delimiters.
53596
+ var templateSettings = _$1.templateSettings = {
53597
+ evaluate: /<%([\s\S]+?)%>/g,
53598
+ interpolate: /<%=([\s\S]+?)%>/g,
53599
+ escape: /<%-([\s\S]+?)%>/g
53600
+ };
53601
+
53602
+ // When customizing `_.templateSettings`, if you don't want to define an
53603
+ // interpolation, evaluation or escaping regex, we need one that is
53604
+ // guaranteed not to match.
53605
+ var noMatch = /(.)^/;
53606
+
53607
+ // Certain characters need to be escaped so that they can be put into a
53608
+ // string literal.
53609
+ var escapes = {
53610
+ "'": "'",
53611
+ '\\': '\\',
53612
+ '\r': 'r',
53613
+ '\n': 'n',
53614
+ '\u2028': 'u2028',
53615
+ '\u2029': 'u2029'
53616
+ };
53617
+
53618
+ var escapeRegExp = /\\|'|\r|\n|\u2028|\u2029/g;
53619
+
53620
+ function escapeChar(match) {
53621
+ return '\\' + escapes[match];
53622
+ }
53623
+
53624
+ // In order to prevent third-party code injection through
53625
+ // `_.templateSettings.variable`, we test it against the following regular
53626
+ // expression. It is intentionally a bit more liberal than just matching valid
53627
+ // identifiers, but still prevents possible loopholes through defaults or
53628
+ // destructuring assignment.
53629
+ var bareIdentifier = /^\s*(\w|\$)+\s*$/;
53630
+
53631
+ // JavaScript micro-templating, similar to John Resig's implementation.
53632
+ // Underscore templating handles arbitrary delimiters, preserves whitespace,
53633
+ // and correctly escapes quotes within interpolated code.
53634
+ // NB: `oldSettings` only exists for backwards compatibility.
53635
+ function template(text, settings, oldSettings) {
53636
+ if (!settings && oldSettings) settings = oldSettings;
53637
+ settings = defaults({}, settings, _$1.templateSettings);
53638
+
53639
+ // Combine delimiters into one regular expression via alternation.
53640
+ var matcher = RegExp([
53641
+ (settings.escape || noMatch).source,
53642
+ (settings.interpolate || noMatch).source,
53643
+ (settings.evaluate || noMatch).source
53644
+ ].join('|') + '|$', 'g');
53645
+
53646
+ // Compile the template source, escaping string literals appropriately.
53647
+ var index = 0;
53648
+ var source = "__p+='";
53649
+ text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
53650
+ source += text.slice(index, offset).replace(escapeRegExp, escapeChar);
53651
+ index = offset + match.length;
53652
+
53653
+ if (escape) {
53654
+ source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
53655
+ } else if (interpolate) {
53656
+ source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
53657
+ } else if (evaluate) {
53658
+ source += "';\n" + evaluate + "\n__p+='";
53659
+ }
53660
+
53661
+ // Adobe VMs need the match returned to produce the correct offset.
53662
+ return match;
53663
+ });
53664
+ source += "';\n";
53665
+
53666
+ var argument = settings.variable;
53667
+ if (argument) {
53668
+ // Insure against third-party code injection. (CVE-2021-23358)
53669
+ if (!bareIdentifier.test(argument)) throw new Error(
53670
+ 'variable is not a bare identifier: ' + argument
53671
+ );
53672
+ } else {
53673
+ // If a variable is not specified, place data values in local scope.
53674
+ source = 'with(obj||{}){\n' + source + '}\n';
53675
+ argument = 'obj';
53676
+ }
53677
+
53678
+ source = "var __t,__p='',__j=Array.prototype.join," +
53679
+ "print=function(){__p+=__j.call(arguments,'');};\n" +
53680
+ source + 'return __p;\n';
53681
+
53682
+ var render;
53683
+ try {
53684
+ render = new Function(argument, '_', source);
53685
+ } catch (e) {
53686
+ e.source = source;
53687
+ throw e;
53688
+ }
53689
+
53690
+ var template = function(data) {
53691
+ return render.call(this, data, _$1);
53692
+ };
53693
+
53694
+ // Provide the compiled source as a convenience for precompilation.
53695
+ template.source = 'function(' + argument + '){\n' + source + '}';
53696
+
53697
+ return template;
53698
+ }
53699
+
53700
+ // Traverses the children of `obj` along `path`. If a child is a function, it
53701
+ // is invoked with its parent as context. Returns the value of the final
53702
+ // child, or `fallback` if any child is undefined.
53703
+ function result(obj, path, fallback) {
53704
+ path = toPath(path);
53705
+ var length = path.length;
53706
+ if (!length) {
53707
+ return isFunction$1(fallback) ? fallback.call(obj) : fallback;
53708
+ }
53709
+ for (var i = 0; i < length; i++) {
53710
+ var prop = obj == null ? void 0 : obj[path[i]];
53711
+ if (prop === void 0) {
53712
+ prop = fallback;
53713
+ i = length; // Ensure we don't continue iterating.
53714
+ }
53715
+ obj = isFunction$1(prop) ? prop.call(obj) : prop;
53716
+ }
53717
+ return obj;
53718
+ }
53719
+
53720
+ // Generate a unique integer id (unique within the entire client session).
53721
+ // Useful for temporary DOM ids.
53722
+ var idCounter = 0;
53723
+ function uniqueId(prefix) {
53724
+ var id = ++idCounter + '';
53725
+ return prefix ? prefix + id : id;
53726
+ }
53727
+
53728
+ // Start chaining a wrapped Underscore object.
53729
+ function chain(obj) {
53730
+ var instance = _$1(obj);
53731
+ instance._chain = true;
53732
+ return instance;
53733
+ }
53734
+
53735
+ // Internal function to execute `sourceFunc` bound to `context` with optional
53736
+ // `args`. Determines whether to execute a function as a constructor or as a
53737
+ // normal function.
53738
+ function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
53739
+ if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
53740
+ var self = baseCreate(sourceFunc.prototype);
53741
+ var result = sourceFunc.apply(self, args);
53742
+ if (isObject(result)) return result;
53743
+ return self;
53744
+ }
53745
+
53746
+ // Partially apply a function by creating a version that has had some of its
53747
+ // arguments pre-filled, without changing its dynamic `this` context. `_` acts
53748
+ // as a placeholder by default, allowing any combination of arguments to be
53749
+ // pre-filled. Set `_.partial.placeholder` for a custom placeholder argument.
53750
+ var partial = restArguments(function(func, boundArgs) {
53751
+ var placeholder = partial.placeholder;
53752
+ var bound = function() {
53753
+ var position = 0, length = boundArgs.length;
53754
+ var args = Array(length);
53755
+ for (var i = 0; i < length; i++) {
53756
+ args[i] = boundArgs[i] === placeholder ? arguments[position++] : boundArgs[i];
53757
+ }
53758
+ while (position < arguments.length) args.push(arguments[position++]);
53759
+ return executeBound(func, bound, this, this, args);
53760
+ };
53761
+ return bound;
53762
+ });
53763
+
53764
+ partial.placeholder = _$1;
53765
+
53766
+ // Create a function bound to a given object (assigning `this`, and arguments,
53767
+ // optionally).
53768
+ var bind = restArguments(function(func, context, args) {
53769
+ if (!isFunction$1(func)) throw new TypeError('Bind must be called on a function');
53770
+ var bound = restArguments(function(callArgs) {
53771
+ return executeBound(func, bound, context, this, args.concat(callArgs));
53772
+ });
53773
+ return bound;
53774
+ });
53775
+
53776
+ // Internal helper for collection methods to determine whether a collection
53777
+ // should be iterated as an array or as an object.
53778
+ // Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
53779
+ // Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
53780
+ var isArrayLike = createSizePropertyCheck(getLength);
53781
+
53782
+ // Internal implementation of a recursive `flatten` function.
53783
+ function flatten$1(input, depth, strict, output) {
53784
+ output = output || [];
53785
+ if (!depth && depth !== 0) {
53786
+ depth = Infinity;
53787
+ } else if (depth <= 0) {
53788
+ return output.concat(input);
53789
+ }
53790
+ var idx = output.length;
53791
+ for (var i = 0, length = getLength(input); i < length; i++) {
53792
+ var value = input[i];
53793
+ if (isArrayLike(value) && (isArray(value) || isArguments$1(value))) {
53794
+ // Flatten current level of array or arguments object.
53795
+ if (depth > 1) {
53796
+ flatten$1(value, depth - 1, strict, output);
53797
+ idx = output.length;
53798
+ } else {
53799
+ var j = 0, len = value.length;
53800
+ while (j < len) output[idx++] = value[j++];
53801
+ }
53802
+ } else if (!strict) {
53803
+ output[idx++] = value;
53804
+ }
53805
+ }
53806
+ return output;
53807
+ }
53808
+
53809
+ // Bind a number of an object's methods to that object. Remaining arguments
53810
+ // are the method names to be bound. Useful for ensuring that all callbacks
53811
+ // defined on an object belong to it.
53812
+ var bindAll = restArguments(function(obj, keys) {
53813
+ keys = flatten$1(keys, false, false);
53814
+ var index = keys.length;
53815
+ if (index < 1) throw new Error('bindAll must be passed function names');
53816
+ while (index--) {
53817
+ var key = keys[index];
53818
+ obj[key] = bind(obj[key], obj);
53819
+ }
53820
+ return obj;
53821
+ });
53822
+
53823
+ // Memoize an expensive function by storing its results.
53824
+ function memoize(func, hasher) {
53825
+ var memoize = function(key) {
53826
+ var cache = memoize.cache;
53827
+ var address = '' + (hasher ? hasher.apply(this, arguments) : key);
53828
+ if (!has$1(cache, address)) cache[address] = func.apply(this, arguments);
53829
+ return cache[address];
53830
+ };
53831
+ memoize.cache = {};
53832
+ return memoize;
53833
+ }
53834
+
53835
+ // Delays a function for the given number of milliseconds, and then calls
53836
+ // it with the arguments supplied.
53837
+ var delay = restArguments(function(func, wait, args) {
53838
+ return setTimeout$1(function() {
53839
+ return func.apply(null, args);
53840
+ }, wait);
53841
+ });
53842
+
53843
+ // Defers a function, scheduling it to run after the current call stack has
53844
+ // cleared.
53845
+ var defer = partial(delay, _$1, 1);
53846
+
53847
+ // Returns a function, that, when invoked, will only be triggered at most once
53848
+ // during a given window of time. Normally, the throttled function will run
53849
+ // as much as it can, without ever going more than once per `wait` duration;
53850
+ // but if you'd like to disable the execution on the leading edge, pass
53851
+ // `{leading: false}`. To disable execution on the trailing edge, ditto.
53852
+ function throttle(func, wait, options) {
53853
+ var timeout, context, args, result;
53854
+ var previous = 0;
53855
+ if (!options) options = {};
53856
+
53857
+ var later = function() {
53858
+ previous = options.leading === false ? 0 : now();
53859
+ timeout = null;
53860
+ result = func.apply(context, args);
53861
+ if (!timeout) context = args = null;
53862
+ };
53863
+
53864
+ var throttled = function() {
53865
+ var _now = now();
53866
+ if (!previous && options.leading === false) previous = _now;
53867
+ var remaining = wait - (_now - previous);
53868
+ context = this;
53869
+ args = arguments;
53870
+ if (remaining <= 0 || remaining > wait) {
53871
+ if (timeout) {
53872
+ clearTimeout(timeout);
53873
+ timeout = null;
53874
+ }
53875
+ previous = _now;
53876
+ result = func.apply(context, args);
53877
+ if (!timeout) context = args = null;
53878
+ } else if (!timeout && options.trailing !== false) {
53879
+ timeout = setTimeout$1(later, remaining);
53880
+ }
53881
+ return result;
53882
+ };
53883
+
53884
+ throttled.cancel = function() {
53885
+ clearTimeout(timeout);
53886
+ previous = 0;
53887
+ timeout = context = args = null;
53888
+ };
53889
+
53890
+ return throttled;
53891
+ }
53892
+
53893
+ // When a sequence of calls of the returned function ends, the argument
53894
+ // function is triggered. The end of a sequence is defined by the `wait`
53895
+ // parameter. If `immediate` is passed, the argument function will be
53896
+ // triggered at the beginning of the sequence instead of at the end.
53897
+ function debounce(func, wait, immediate) {
53898
+ var timeout, previous, args, result, context;
53899
+
53900
+ var later = function() {
53901
+ var passed = now() - previous;
53902
+ if (wait > passed) {
53903
+ timeout = setTimeout$1(later, wait - passed);
53904
+ } else {
53905
+ timeout = null;
53906
+ if (!immediate) result = func.apply(context, args);
53907
+ // This check is needed because `func` can recursively invoke `debounced`.
53908
+ if (!timeout) args = context = null;
53909
+ }
53910
+ };
53911
+
53912
+ var debounced = restArguments(function(_args) {
53913
+ context = this;
53914
+ args = _args;
53915
+ previous = now();
53916
+ if (!timeout) {
53917
+ timeout = setTimeout$1(later, wait);
53918
+ if (immediate) result = func.apply(context, args);
53919
+ }
53920
+ return result;
53921
+ });
53922
+
53923
+ debounced.cancel = function() {
53924
+ clearTimeout(timeout);
53925
+ timeout = args = context = null;
53926
+ };
53927
+
53928
+ return debounced;
53929
+ }
53930
+
53931
+ // Returns the first function passed as an argument to the second,
53932
+ // allowing you to adjust arguments, run code before and after, and
53933
+ // conditionally execute the original function.
53934
+ function wrap(func, wrapper) {
53935
+ return partial(wrapper, func);
53936
+ }
53937
+
53938
+ // Returns a negated version of the passed-in predicate.
53939
+ function negate(predicate) {
53940
+ return function() {
53941
+ return !predicate.apply(this, arguments);
53942
+ };
53943
+ }
53944
+
53945
+ // Returns a function that is the composition of a list of functions, each
53946
+ // consuming the return value of the function that follows.
53947
+ function compose() {
53948
+ var args = arguments;
53949
+ var start = args.length - 1;
53950
+ return function() {
53951
+ var i = start;
53952
+ var result = args[start].apply(this, arguments);
53953
+ while (i--) result = args[i].call(this, result);
53954
+ return result;
53955
+ };
53956
+ }
53957
+
53958
+ // Returns a function that will only be executed on and after the Nth call.
53959
+ function after(times, func) {
53960
+ return function() {
53961
+ if (--times < 1) {
53962
+ return func.apply(this, arguments);
53963
+ }
53964
+ };
53965
+ }
53966
+
53967
+ // Returns a function that will only be executed up to (but not including) the
53968
+ // Nth call.
53969
+ function before(times, func) {
53970
+ var memo;
53971
+ return function() {
53972
+ if (--times > 0) {
53973
+ memo = func.apply(this, arguments);
53974
+ }
53975
+ if (times <= 1) func = null;
53976
+ return memo;
53977
+ };
53978
+ }
53979
+
53980
+ // Returns a function that will be executed at most one time, no matter how
53981
+ // often you call it. Useful for lazy initialization.
53982
+ var once = partial(before, 2);
53983
+
53984
+ // Returns the first key on an object that passes a truth test.
53985
+ function findKey(obj, predicate, context) {
53986
+ predicate = cb(predicate, context);
53987
+ var _keys = keys(obj), key;
53988
+ for (var i = 0, length = _keys.length; i < length; i++) {
53989
+ key = _keys[i];
53990
+ if (predicate(obj[key], key, obj)) return key;
53991
+ }
53992
+ }
53993
+
53994
+ // Internal function to generate `_.findIndex` and `_.findLastIndex`.
53995
+ function createPredicateIndexFinder(dir) {
53996
+ return function(array, predicate, context) {
53997
+ predicate = cb(predicate, context);
53998
+ var length = getLength(array);
53999
+ var index = dir > 0 ? 0 : length - 1;
54000
+ for (; index >= 0 && index < length; index += dir) {
54001
+ if (predicate(array[index], index, array)) return index;
54002
+ }
54003
+ return -1;
54004
+ };
54005
+ }
54006
+
54007
+ // Returns the first index on an array-like that passes a truth test.
54008
+ var findIndex = createPredicateIndexFinder(1);
54009
+
54010
+ // Returns the last index on an array-like that passes a truth test.
54011
+ var findLastIndex = createPredicateIndexFinder(-1);
54012
+
54013
+ // Use a comparator function to figure out the smallest index at which
54014
+ // an object should be inserted so as to maintain order. Uses binary search.
54015
+ function sortedIndex(array, obj, iteratee, context) {
54016
+ iteratee = cb(iteratee, context, 1);
54017
+ var value = iteratee(obj);
54018
+ var low = 0, high = getLength(array);
54019
+ while (low < high) {
54020
+ var mid = Math.floor((low + high) / 2);
54021
+ if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
54022
+ }
54023
+ return low;
54024
+ }
54025
+
54026
+ // Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.
54027
+ function createIndexFinder(dir, predicateFind, sortedIndex) {
54028
+ return function(array, item, idx) {
54029
+ var i = 0, length = getLength(array);
54030
+ if (typeof idx == 'number') {
54031
+ if (dir > 0) {
54032
+ i = idx >= 0 ? idx : Math.max(idx + length, i);
54033
+ } else {
54034
+ length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
54035
+ }
54036
+ } else if (sortedIndex && idx && length) {
54037
+ idx = sortedIndex(array, item);
54038
+ return array[idx] === item ? idx : -1;
54039
+ }
54040
+ if (item !== item) {
54041
+ idx = predicateFind(slice.call(array, i, length), isNaN$1);
54042
+ return idx >= 0 ? idx + i : -1;
54043
+ }
54044
+ for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
54045
+ if (array[idx] === item) return idx;
54046
+ }
54047
+ return -1;
54048
+ };
54049
+ }
54050
+
54051
+ // Return the position of the first occurrence of an item in an array,
54052
+ // or -1 if the item is not included in the array.
54053
+ // If the array is large and already in sort order, pass `true`
54054
+ // for **isSorted** to use binary search.
54055
+ var indexOf = createIndexFinder(1, findIndex, sortedIndex);
54056
+
54057
+ // Return the position of the last occurrence of an item in an array,
54058
+ // or -1 if the item is not included in the array.
54059
+ var lastIndexOf = createIndexFinder(-1, findLastIndex);
54060
+
54061
+ // Return the first value which passes a truth test.
54062
+ function find(obj, predicate, context) {
54063
+ var keyFinder = isArrayLike(obj) ? findIndex : findKey;
54064
+ var key = keyFinder(obj, predicate, context);
54065
+ if (key !== void 0 && key !== -1) return obj[key];
54066
+ }
54067
+
54068
+ // Convenience version of a common use case of `_.find`: getting the first
54069
+ // object containing specific `key:value` pairs.
54070
+ function findWhere(obj, attrs) {
54071
+ return find(obj, matcher(attrs));
54072
+ }
54073
+
54074
+ // The cornerstone for collection functions, an `each`
54075
+ // implementation, aka `forEach`.
54076
+ // Handles raw objects in addition to array-likes. Treats all
54077
+ // sparse array-likes as if they were dense.
54078
+ function each(obj, iteratee, context) {
54079
+ iteratee = optimizeCb(iteratee, context);
54080
+ var i, length;
54081
+ if (isArrayLike(obj)) {
54082
+ for (i = 0, length = obj.length; i < length; i++) {
54083
+ iteratee(obj[i], i, obj);
54084
+ }
54085
+ } else {
54086
+ var _keys = keys(obj);
54087
+ for (i = 0, length = _keys.length; i < length; i++) {
54088
+ iteratee(obj[_keys[i]], _keys[i], obj);
54089
+ }
54090
+ }
54091
+ return obj;
54092
+ }
54093
+
54094
+ // Return the results of applying the iteratee to each element.
54095
+ function map(obj, iteratee, context) {
54096
+ iteratee = cb(iteratee, context);
54097
+ var _keys = !isArrayLike(obj) && keys(obj),
54098
+ length = (_keys || obj).length,
54099
+ results = Array(length);
54100
+ for (var index = 0; index < length; index++) {
54101
+ var currentKey = _keys ? _keys[index] : index;
54102
+ results[index] = iteratee(obj[currentKey], currentKey, obj);
54103
+ }
54104
+ return results;
54105
+ }
54106
+
54107
+ // Internal helper to create a reducing function, iterating left or right.
54108
+ function createReduce(dir) {
54109
+ // Wrap code that reassigns argument variables in a separate function than
54110
+ // the one that accesses `arguments.length` to avoid a perf hit. (#1991)
54111
+ var reducer = function(obj, iteratee, memo, initial) {
54112
+ var _keys = !isArrayLike(obj) && keys(obj),
54113
+ length = (_keys || obj).length,
54114
+ index = dir > 0 ? 0 : length - 1;
54115
+ if (!initial) {
54116
+ memo = obj[_keys ? _keys[index] : index];
54117
+ index += dir;
54118
+ }
54119
+ for (; index >= 0 && index < length; index += dir) {
54120
+ var currentKey = _keys ? _keys[index] : index;
54121
+ memo = iteratee(memo, obj[currentKey], currentKey, obj);
54122
+ }
54123
+ return memo;
54124
+ };
54125
+
54126
+ return function(obj, iteratee, memo, context) {
54127
+ var initial = arguments.length >= 3;
54128
+ return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);
54129
+ };
54130
+ }
54131
+
54132
+ // **Reduce** builds up a single result from a list of values, aka `inject`,
54133
+ // or `foldl`.
54134
+ var reduce = createReduce(1);
54135
+
54136
+ // The right-associative version of reduce, also known as `foldr`.
54137
+ var reduceRight = createReduce(-1);
54138
+
54139
+ // Return all the elements that pass a truth test.
54140
+ function filter(obj, predicate, context) {
54141
+ var results = [];
54142
+ predicate = cb(predicate, context);
54143
+ each(obj, function(value, index, list) {
54144
+ if (predicate(value, index, list)) results.push(value);
54145
+ });
54146
+ return results;
54147
+ }
54148
+
54149
+ // Return all the elements for which a truth test fails.
54150
+ function reject(obj, predicate, context) {
54151
+ return filter(obj, negate(cb(predicate)), context);
54152
+ }
54153
+
54154
+ // Determine whether all of the elements pass a truth test.
54155
+ function every(obj, predicate, context) {
54156
+ predicate = cb(predicate, context);
54157
+ var _keys = !isArrayLike(obj) && keys(obj),
54158
+ length = (_keys || obj).length;
54159
+ for (var index = 0; index < length; index++) {
54160
+ var currentKey = _keys ? _keys[index] : index;
54161
+ if (!predicate(obj[currentKey], currentKey, obj)) return false;
54162
+ }
54163
+ return true;
54164
+ }
54165
+
54166
+ // Determine if at least one element in the object passes a truth test.
54167
+ function some(obj, predicate, context) {
54168
+ predicate = cb(predicate, context);
54169
+ var _keys = !isArrayLike(obj) && keys(obj),
54170
+ length = (_keys || obj).length;
54171
+ for (var index = 0; index < length; index++) {
54172
+ var currentKey = _keys ? _keys[index] : index;
54173
+ if (predicate(obj[currentKey], currentKey, obj)) return true;
54174
+ }
54175
+ return false;
54176
+ }
54177
+
54178
+ // Determine if the array or object contains a given item (using `===`).
54179
+ function contains(obj, item, fromIndex, guard) {
54180
+ if (!isArrayLike(obj)) obj = values(obj);
54181
+ if (typeof fromIndex != 'number' || guard) fromIndex = 0;
54182
+ return indexOf(obj, item, fromIndex) >= 0;
54183
+ }
54184
+
54185
+ // Invoke a method (with arguments) on every item in a collection.
54186
+ var invoke = restArguments(function(obj, path, args) {
54187
+ var contextPath, func;
54188
+ if (isFunction$1(path)) {
54189
+ func = path;
54190
+ } else {
54191
+ path = toPath(path);
54192
+ contextPath = path.slice(0, -1);
54193
+ path = path[path.length - 1];
54194
+ }
54195
+ return map(obj, function(context) {
54196
+ var method = func;
54197
+ if (!method) {
54198
+ if (contextPath && contextPath.length) {
54199
+ context = deepGet(context, contextPath);
54200
+ }
54201
+ if (context == null) return void 0;
54202
+ method = context[path];
54203
+ }
54204
+ return method == null ? method : method.apply(context, args);
54205
+ });
54206
+ });
54207
+
54208
+ // Convenience version of a common use case of `_.map`: fetching a property.
54209
+ function pluck(obj, key) {
54210
+ return map(obj, property(key));
54211
+ }
54212
+
54213
+ // Convenience version of a common use case of `_.filter`: selecting only
54214
+ // objects containing specific `key:value` pairs.
54215
+ function where(obj, attrs) {
54216
+ return filter(obj, matcher(attrs));
54217
+ }
54218
+
54219
+ // Return the maximum element (or element-based computation).
54220
+ function max(obj, iteratee, context) {
54221
+ var result = -Infinity, lastComputed = -Infinity,
54222
+ value, computed;
54223
+ if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
54224
+ obj = isArrayLike(obj) ? obj : values(obj);
54225
+ for (var i = 0, length = obj.length; i < length; i++) {
54226
+ value = obj[i];
54227
+ if (value != null && value > result) {
54228
+ result = value;
54229
+ }
54230
+ }
54231
+ } else {
54232
+ iteratee = cb(iteratee, context);
54233
+ each(obj, function(v, index, list) {
54234
+ computed = iteratee(v, index, list);
54235
+ if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {
54236
+ result = v;
54237
+ lastComputed = computed;
54238
+ }
54239
+ });
54240
+ }
54241
+ return result;
54242
+ }
54243
+
54244
+ // Return the minimum element (or element-based computation).
54245
+ function min(obj, iteratee, context) {
54246
+ var result = Infinity, lastComputed = Infinity,
54247
+ value, computed;
54248
+ if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
54249
+ obj = isArrayLike(obj) ? obj : values(obj);
54250
+ for (var i = 0, length = obj.length; i < length; i++) {
54251
+ value = obj[i];
54252
+ if (value != null && value < result) {
54253
+ result = value;
54254
+ }
54255
+ }
54256
+ } else {
54257
+ iteratee = cb(iteratee, context);
54258
+ each(obj, function(v, index, list) {
54259
+ computed = iteratee(v, index, list);
54260
+ if (computed < lastComputed || (computed === Infinity && result === Infinity)) {
54261
+ result = v;
54262
+ lastComputed = computed;
54263
+ }
54264
+ });
54265
+ }
54266
+ return result;
54267
+ }
54268
+
54269
+ // Safely create a real, live array from anything iterable.
54270
+ var reStrSymbol = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
54271
+ function toArray(obj) {
54272
+ if (!obj) return [];
54273
+ if (isArray(obj)) return slice.call(obj);
54274
+ if (isString(obj)) {
54275
+ // Keep surrogate pair characters together.
54276
+ return obj.match(reStrSymbol);
54277
+ }
54278
+ if (isArrayLike(obj)) return map(obj, identity);
54279
+ return values(obj);
54280
+ }
54281
+
54282
+ // Sample **n** random values from a collection using the modern version of the
54283
+ // [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
54284
+ // If **n** is not specified, returns a single random element.
54285
+ // The internal `guard` argument allows it to work with `_.map`.
54286
+ function sample(obj, n, guard) {
54287
+ if (n == null || guard) {
54288
+ if (!isArrayLike(obj)) obj = values(obj);
54289
+ return obj[random(obj.length - 1)];
54290
+ }
54291
+ var sample = toArray(obj);
54292
+ var length = getLength(sample);
54293
+ n = Math.max(Math.min(n, length), 0);
54294
+ var last = length - 1;
54295
+ for (var index = 0; index < n; index++) {
54296
+ var rand = random(index, last);
54297
+ var temp = sample[index];
54298
+ sample[index] = sample[rand];
54299
+ sample[rand] = temp;
54300
+ }
54301
+ return sample.slice(0, n);
54302
+ }
54303
+
54304
+ // Shuffle a collection.
54305
+ function shuffle(obj) {
54306
+ return sample(obj, Infinity);
54307
+ }
54308
+
54309
+ // Sort the object's values by a criterion produced by an iteratee.
54310
+ function sortBy(obj, iteratee, context) {
54311
+ var index = 0;
54312
+ iteratee = cb(iteratee, context);
54313
+ return pluck(map(obj, function(value, key, list) {
54314
+ return {
54315
+ value: value,
54316
+ index: index++,
54317
+ criteria: iteratee(value, key, list)
54318
+ };
54319
+ }).sort(function(left, right) {
54320
+ var a = left.criteria;
54321
+ var b = right.criteria;
54322
+ if (a !== b) {
54323
+ if (a > b || a === void 0) return 1;
54324
+ if (a < b || b === void 0) return -1;
54325
+ }
54326
+ return left.index - right.index;
54327
+ }), 'value');
54328
+ }
54329
+
54330
+ // An internal function used for aggregate "group by" operations.
54331
+ function group(behavior, partition) {
54332
+ return function(obj, iteratee, context) {
54333
+ var result = partition ? [[], []] : {};
54334
+ iteratee = cb(iteratee, context);
54335
+ each(obj, function(value, index) {
54336
+ var key = iteratee(value, index, obj);
54337
+ behavior(result, value, key);
54338
+ });
54339
+ return result;
54340
+ };
54341
+ }
54342
+
54343
+ // Groups the object's values by a criterion. Pass either a string attribute
54344
+ // to group by, or a function that returns the criterion.
54345
+ var groupBy = group(function(result, value, key) {
54346
+ if (has$1(result, key)) result[key].push(value); else result[key] = [value];
54347
+ });
54348
+
54349
+ // Indexes the object's values by a criterion, similar to `_.groupBy`, but for
54350
+ // when you know that your index values will be unique.
54351
+ var indexBy = group(function(result, value, key) {
54352
+ result[key] = value;
54353
+ });
54354
+
54355
+ // Counts instances of an object that group by a certain criterion. Pass
54356
+ // either a string attribute to count by, or a function that returns the
54357
+ // criterion.
54358
+ var countBy = group(function(result, value, key) {
54359
+ if (has$1(result, key)) result[key]++; else result[key] = 1;
54360
+ });
54361
+
54362
+ // Split a collection into two arrays: one whose elements all pass the given
54363
+ // truth test, and one whose elements all do not pass the truth test.
54364
+ var partition = group(function(result, value, pass) {
54365
+ result[pass ? 0 : 1].push(value);
54366
+ }, true);
54367
+
54368
+ // Return the number of elements in a collection.
54369
+ function size(obj) {
54370
+ if (obj == null) return 0;
54371
+ return isArrayLike(obj) ? obj.length : keys(obj).length;
54372
+ }
54373
+
54374
+ // Internal `_.pick` helper function to determine whether `key` is an enumerable
54375
+ // property name of `obj`.
54376
+ function keyInObj(value, key, obj) {
54377
+ return key in obj;
54378
+ }
54379
+
54380
+ // Return a copy of the object only containing the allowed properties.
54381
+ var pick = restArguments(function(obj, keys) {
54382
+ var result = {}, iteratee = keys[0];
54383
+ if (obj == null) return result;
54384
+ if (isFunction$1(iteratee)) {
54385
+ if (keys.length > 1) iteratee = optimizeCb(iteratee, keys[1]);
54386
+ keys = allKeys(obj);
54387
+ } else {
54388
+ iteratee = keyInObj;
54389
+ keys = flatten$1(keys, false, false);
54390
+ obj = Object(obj);
54391
+ }
54392
+ for (var i = 0, length = keys.length; i < length; i++) {
54393
+ var key = keys[i];
54394
+ var value = obj[key];
54395
+ if (iteratee(value, key, obj)) result[key] = value;
54396
+ }
54397
+ return result;
54398
+ });
54399
+
54400
+ // Return a copy of the object without the disallowed properties.
54401
+ var omit = restArguments(function(obj, keys) {
54402
+ var iteratee = keys[0], context;
54403
+ if (isFunction$1(iteratee)) {
54404
+ iteratee = negate(iteratee);
54405
+ if (keys.length > 1) context = keys[1];
54406
+ } else {
54407
+ keys = map(flatten$1(keys, false, false), String);
54408
+ iteratee = function(value, key) {
54409
+ return !contains(keys, key);
54410
+ };
54411
+ }
54412
+ return pick(obj, iteratee, context);
54413
+ });
54414
+
54415
+ // Returns everything but the last entry of the array. Especially useful on
54416
+ // the arguments object. Passing **n** will return all the values in
54417
+ // the array, excluding the last N.
54418
+ function initial(array, n, guard) {
54419
+ return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
54420
+ }
54421
+
54422
+ // Get the first element of an array. Passing **n** will return the first N
54423
+ // values in the array. The **guard** check allows it to work with `_.map`.
54424
+ function first(array, n, guard) {
54425
+ if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
54426
+ if (n == null || guard) return array[0];
54427
+ return initial(array, array.length - n);
54428
+ }
54429
+
54430
+ // Returns everything but the first entry of the `array`. Especially useful on
54431
+ // the `arguments` object. Passing an **n** will return the rest N values in the
54432
+ // `array`.
54433
+ function rest(array, n, guard) {
54434
+ return slice.call(array, n == null || guard ? 1 : n);
54435
+ }
54436
+
54437
+ // Get the last element of an array. Passing **n** will return the last N
54438
+ // values in the array.
54439
+ function last(array, n, guard) {
54440
+ if (array == null || array.length < 1) return n == null || guard ? void 0 : [];
54441
+ if (n == null || guard) return array[array.length - 1];
54442
+ return rest(array, Math.max(0, array.length - n));
54443
+ }
54444
+
54445
+ // Trim out all falsy values from an array.
54446
+ function compact(array) {
54447
+ return filter(array, Boolean);
54448
+ }
54449
+
54450
+ // Flatten out an array, either recursively (by default), or up to `depth`.
54451
+ // Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
54452
+ function flatten(array, depth) {
54453
+ return flatten$1(array, depth, false);
54454
+ }
54455
+
54456
+ // Take the difference between one array and a number of other arrays.
54457
+ // Only the elements present in just the first array will remain.
54458
+ var difference = restArguments(function(array, rest) {
54459
+ rest = flatten$1(rest, true, true);
54460
+ return filter(array, function(value){
54461
+ return !contains(rest, value);
54462
+ });
54463
+ });
54464
+
54465
+ // Return a version of the array that does not contain the specified value(s).
54466
+ var without = restArguments(function(array, otherArrays) {
54467
+ return difference(array, otherArrays);
54468
+ });
54469
+
54470
+ // Produce a duplicate-free version of the array. If the array has already
54471
+ // been sorted, you have the option of using a faster algorithm.
54472
+ // The faster algorithm will not work with an iteratee if the iteratee
54473
+ // is not a one-to-one function, so providing an iteratee will disable
54474
+ // the faster algorithm.
54475
+ function uniq(array, isSorted, iteratee, context) {
54476
+ if (!isBoolean(isSorted)) {
54477
+ context = iteratee;
54478
+ iteratee = isSorted;
54479
+ isSorted = false;
54480
+ }
54481
+ if (iteratee != null) iteratee = cb(iteratee, context);
54482
+ var result = [];
54483
+ var seen = [];
54484
+ for (var i = 0, length = getLength(array); i < length; i++) {
54485
+ var value = array[i],
54486
+ computed = iteratee ? iteratee(value, i, array) : value;
54487
+ if (isSorted && !iteratee) {
54488
+ if (!i || seen !== computed) result.push(value);
54489
+ seen = computed;
54490
+ } else if (iteratee) {
54491
+ if (!contains(seen, computed)) {
54492
+ seen.push(computed);
54493
+ result.push(value);
54494
+ }
54495
+ } else if (!contains(result, value)) {
54496
+ result.push(value);
54497
+ }
54498
+ }
54499
+ return result;
54500
+ }
54501
+
54502
+ // Produce an array that contains the union: each distinct element from all of
54503
+ // the passed-in arrays.
54504
+ var union = restArguments(function(arrays) {
54505
+ return uniq(flatten$1(arrays, true, true));
54506
+ });
54507
+
54508
+ // Produce an array that contains every item shared between all the
54509
+ // passed-in arrays.
54510
+ function intersection(array) {
54511
+ var result = [];
54512
+ var argsLength = arguments.length;
54513
+ for (var i = 0, length = getLength(array); i < length; i++) {
54514
+ var item = array[i];
54515
+ if (contains(result, item)) continue;
54516
+ var j;
54517
+ for (j = 1; j < argsLength; j++) {
54518
+ if (!contains(arguments[j], item)) break;
54519
+ }
54520
+ if (j === argsLength) result.push(item);
54521
+ }
54522
+ return result;
54523
+ }
54524
+
54525
+ // Complement of zip. Unzip accepts an array of arrays and groups
54526
+ // each array's elements on shared indices.
54527
+ function unzip(array) {
54528
+ var length = (array && max(array, getLength).length) || 0;
54529
+ var result = Array(length);
54530
+
54531
+ for (var index = 0; index < length; index++) {
54532
+ result[index] = pluck(array, index);
54533
+ }
54534
+ return result;
54535
+ }
54536
+
54537
+ // Zip together multiple lists into a single array -- elements that share
54538
+ // an index go together.
54539
+ var zip = restArguments(unzip);
54540
+
54541
+ // Converts lists into objects. Pass either a single array of `[key, value]`
54542
+ // pairs, or two parallel arrays of the same length -- one of keys, and one of
54543
+ // the corresponding values. Passing by pairs is the reverse of `_.pairs`.
54544
+ function object(list, values) {
54545
+ var result = {};
54546
+ for (var i = 0, length = getLength(list); i < length; i++) {
54547
+ if (values) {
54548
+ result[list[i]] = values[i];
54549
+ } else {
54550
+ result[list[i][0]] = list[i][1];
54551
+ }
54552
+ }
54553
+ return result;
54554
+ }
54555
+
54556
+ // Generate an integer Array containing an arithmetic progression. A port of
54557
+ // the native Python `range()` function. See
54558
+ // [the Python documentation](https://docs.python.org/library/functions.html#range).
54559
+ function range(start, stop, step) {
54560
+ if (stop == null) {
54561
+ stop = start || 0;
54562
+ start = 0;
54563
+ }
54564
+ if (!step) {
54565
+ step = stop < start ? -1 : 1;
54566
+ }
54567
+
54568
+ var length = Math.max(Math.ceil((stop - start) / step), 0);
54569
+ var range = Array(length);
54570
+
54571
+ for (var idx = 0; idx < length; idx++, start += step) {
54572
+ range[idx] = start;
54573
+ }
54574
+
54575
+ return range;
54576
+ }
54577
+
54578
+ // Chunk a single array into multiple arrays, each containing `count` or fewer
54579
+ // items.
54580
+ function chunk(array, count) {
54581
+ if (count == null || count < 1) return [];
54582
+ var result = [];
54583
+ var i = 0, length = array.length;
54584
+ while (i < length) {
54585
+ result.push(slice.call(array, i, i += count));
54586
+ }
54587
+ return result;
54588
+ }
54589
+
54590
+ // Helper function to continue chaining intermediate results.
54591
+ function chainResult(instance, obj) {
54592
+ return instance._chain ? _$1(obj).chain() : obj;
54593
+ }
54594
+
54595
+ // Add your own custom functions to the Underscore object.
54596
+ function mixin(obj) {
54597
+ each(functions(obj), function(name) {
54598
+ var func = _$1[name] = obj[name];
54599
+ _$1.prototype[name] = function() {
54600
+ var args = [this._wrapped];
54601
+ push.apply(args, arguments);
54602
+ return chainResult(this, func.apply(_$1, args));
54603
+ };
54604
+ });
54605
+ return _$1;
54606
+ }
54607
+
54608
+ // Add all mutator `Array` functions to the wrapper.
54609
+ each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
54610
+ var method = ArrayProto[name];
54611
+ _$1.prototype[name] = function() {
54612
+ var obj = this._wrapped;
54613
+ if (obj != null) {
54614
+ method.apply(obj, arguments);
54615
+ if ((name === 'shift' || name === 'splice') && obj.length === 0) {
54616
+ delete obj[0];
54617
+ }
54618
+ }
54619
+ return chainResult(this, obj);
54620
+ };
54621
+ });
54622
+
54623
+ // Add all accessor `Array` functions to the wrapper.
54624
+ each(['concat', 'join', 'slice'], function(name) {
54625
+ var method = ArrayProto[name];
54626
+ _$1.prototype[name] = function() {
54627
+ var obj = this._wrapped;
54628
+ if (obj != null) obj = method.apply(obj, arguments);
54629
+ return chainResult(this, obj);
54630
+ };
54631
+ });
54632
+
54633
+ // Named Exports
54634
+
54635
+ var allExports = {
54636
+ __proto__: null,
54637
+ VERSION: VERSION,
54638
+ restArguments: restArguments,
54639
+ isObject: isObject,
54640
+ isNull: isNull,
54641
+ isUndefined: isUndefined,
54642
+ isBoolean: isBoolean,
54643
+ isElement: isElement,
54644
+ isString: isString,
54645
+ isNumber: isNumber,
54646
+ isDate: isDate,
54647
+ isRegExp: isRegExp,
54648
+ isError: isError,
54649
+ isSymbol: isSymbol,
54650
+ isArrayBuffer: isArrayBuffer,
54651
+ isDataView: isDataView$1,
54652
+ isArray: isArray,
54653
+ isFunction: isFunction$1,
54654
+ isArguments: isArguments$1,
54655
+ isFinite: isFinite$1,
54656
+ isNaN: isNaN$1,
54657
+ isTypedArray: isTypedArray$1,
54658
+ isEmpty: isEmpty,
54659
+ isMatch: isMatch,
54660
+ isEqual: isEqual,
54661
+ isMap: isMap,
54662
+ isWeakMap: isWeakMap,
54663
+ isSet: isSet,
54664
+ isWeakSet: isWeakSet,
54665
+ keys: keys,
54666
+ allKeys: allKeys,
54667
+ values: values,
54668
+ pairs: pairs,
54669
+ invert: invert,
54670
+ functions: functions,
54671
+ methods: functions,
54672
+ extend: extend,
54673
+ extendOwn: extendOwn,
54674
+ assign: extendOwn,
54675
+ defaults: defaults,
54676
+ create: create,
54677
+ clone: clone,
54678
+ tap: tap,
54679
+ get: get,
54680
+ has: has,
54681
+ mapObject: mapObject,
54682
+ identity: identity,
54683
+ constant: constant,
54684
+ noop: noop,
54685
+ toPath: toPath$1,
54686
+ property: property,
54687
+ propertyOf: propertyOf,
54688
+ matcher: matcher,
54689
+ matches: matcher,
54690
+ times: times,
54691
+ random: random,
54692
+ now: now,
54693
+ escape: _escape,
54694
+ unescape: _unescape,
54695
+ templateSettings: templateSettings,
54696
+ template: template,
54697
+ result: result,
54698
+ uniqueId: uniqueId,
54699
+ chain: chain,
54700
+ iteratee: iteratee,
54701
+ partial: partial,
54702
+ bind: bind,
54703
+ bindAll: bindAll,
54704
+ memoize: memoize,
54705
+ delay: delay,
54706
+ defer: defer,
54707
+ throttle: throttle,
54708
+ debounce: debounce,
54709
+ wrap: wrap,
54710
+ negate: negate,
54711
+ compose: compose,
54712
+ after: after,
54713
+ before: before,
54714
+ once: once,
54715
+ findKey: findKey,
54716
+ findIndex: findIndex,
54717
+ findLastIndex: findLastIndex,
54718
+ sortedIndex: sortedIndex,
54719
+ indexOf: indexOf,
54720
+ lastIndexOf: lastIndexOf,
54721
+ find: find,
54722
+ detect: find,
54723
+ findWhere: findWhere,
54724
+ each: each,
54725
+ forEach: each,
54726
+ map: map,
54727
+ collect: map,
54728
+ reduce: reduce,
54729
+ foldl: reduce,
54730
+ inject: reduce,
54731
+ reduceRight: reduceRight,
54732
+ foldr: reduceRight,
54733
+ filter: filter,
54734
+ select: filter,
54735
+ reject: reject,
54736
+ every: every,
54737
+ all: every,
54738
+ some: some,
54739
+ any: some,
54740
+ contains: contains,
54741
+ includes: contains,
54742
+ include: contains,
54743
+ invoke: invoke,
54744
+ pluck: pluck,
54745
+ where: where,
54746
+ max: max,
54747
+ min: min,
54748
+ shuffle: shuffle,
54749
+ sample: sample,
54750
+ sortBy: sortBy,
54751
+ groupBy: groupBy,
54752
+ indexBy: indexBy,
54753
+ countBy: countBy,
54754
+ partition: partition,
54755
+ toArray: toArray,
54756
+ size: size,
54757
+ pick: pick,
54758
+ omit: omit,
54759
+ first: first,
54760
+ head: first,
54761
+ take: first,
54762
+ initial: initial,
54763
+ last: last,
54764
+ rest: rest,
54765
+ tail: rest,
54766
+ drop: rest,
54767
+ compact: compact,
54768
+ flatten: flatten,
54769
+ without: without,
54770
+ uniq: uniq,
54771
+ unique: uniq,
54772
+ union: union,
54773
+ intersection: intersection,
54774
+ difference: difference,
54775
+ unzip: unzip,
54776
+ transpose: unzip,
54777
+ zip: zip,
54778
+ object: object,
54779
+ range: range,
54780
+ chunk: chunk,
54781
+ mixin: mixin,
54782
+ 'default': _$1
54783
+ };
54784
+
54785
+ // Default Export
54786
+
54787
+ // Add all of the Underscore functions to the wrapper object.
54788
+ var _ = mixin(allExports);
54789
+ // Support dotted path shorthands.
54790
+ var originalToPath = _.toPath;
54791
+ _.mixin({
54792
+ toPath: function(path) {
54793
+ return _.isString(path) ? path.split('.') : originalToPath(path);
54794
+ }
54795
+ });
54796
+ // Legacy Node.js API.
54797
+ _._ = _;
54798
+
54799
+ return _;
54800
+
54801
+ })));
54802
+
54803
+ } (underscore));
54804
+
54805
+ var underscoreExports = underscore.exports;
54806
+ var _ = /*@__PURE__*/getDefaultExportFromCjs(underscoreExports);
54807
+
54808
+ var encodeURIComponent = _.isFunction(window.encodeURIComponent) ? window.encodeURIComponent : _.identity;
54809
+
54810
+ var PREDICT_STEP_REGEX = /\$\$predict\$\$/;
54811
+ var DRAG_THRESHOLD = 5;
54812
+ var STYLE_ID = 'pendo-predict-plugin-styles';
54813
+ var GUIDE_BUTTON_IDENTIFIER = 'button:contains("token")';
54814
+ var pluginVersion = '1.0.1';
54815
+ var PREDICT_SANDBOX_PAGE = 'predict-sandbox.html';
54816
+ var getPredictBaseUrl = function (designerServer) { return designerServer.replace('app', 'predict'); };
54817
+ var EXTENSION_ORIGIN_REGEX = /^(chrome|moz|safari-web)-extension:\/\//;
54818
+ /**
54819
+ * When running inside the Pendo Launcher extension, a host page's CSP `frame-src`
54820
+ * blocks embedding predict.pendo.io directly. The extension ships a web-accessible
54821
+ * `predict-sandbox.html` relay (exempt from the page CSP) that we frame instead, passing
54822
+ * the real predict URL via `?target=`. assetHost is the extension origin in that context.
54823
+ */
54824
+ var getFrameWrapperBase = function (pendo) {
54825
+ var _a;
54826
+ var assetHost = ((_a = pendo === null || pendo === void 0 ? void 0 : pendo.getConfigValue) === null || _a === void 0 ? void 0 : _a.call(pendo, 'assetHost')) || '';
54827
+ return EXTENSION_ORIGIN_REGEX.test(assetHost) ? assetHost.replace(/\/$/, '') : '';
54828
+ };
54829
+ /**
54830
+ * Builds the iframe `src`. Outside the extension this is the raw predict URL; inside it,
54831
+ * the predict URL is passed as `?target=` to the extension's web-accessible relay page.
54832
+ */
54833
+ var buildFrameSrc = function (url, wrapperBase) {
54834
+ return wrapperBase ? "".concat(wrapperBase, "/").concat(PREDICT_SANDBOX_PAGE, "?target=").concat(encodeURIComponent(url)) : url;
54835
+ };
54836
+ /**
54837
+ * Target origin for outbound postMessage. When wrapped, the relay frame is same-origin
54838
+ * with the extension (`wrapperBase`), so we address it explicitly rather than broadcasting
54839
+ * with '*' — keeping the auth token off any wildcard. Unwrapped, we post straight to predict.
54840
+ */
54841
+ var getFrameTargetOrigin = function (wrapperBase, predictBaseUrl) { return wrapperBase || predictBaseUrl; };
52754
54842
  var $ = function (id) { return document.getElementById(id); };
52755
54843
  var createElement = function (tag, attrs, parent) {
52756
54844
  if (attrs === void 0) { attrs = {}; }
@@ -52822,7 +54910,7 @@ var buildQueryParams = function (params) {
52822
54910
  return urlParams.toString();
52823
54911
  };
52824
54912
  // ----- Drag & Drop -----
52825
- var setupDragAndDrop = function (handle, container, predictBaseUrl) {
54913
+ var setupDragAndDrop = function (handle, container, frameTargetOrigin) {
52826
54914
  var isDragging = false;
52827
54915
  var hasMoved = false;
52828
54916
  var isCollapsed = false;
@@ -52885,7 +54973,7 @@ var setupDragAndDrop = function (handle, container, predictBaseUrl) {
52885
54973
  document.removeEventListener('mousemove', onMouseMove);
52886
54974
  document.removeEventListener('mouseup', onMouseUp);
52887
54975
  if (!hasMoved && isCollapsed && iframe) {
52888
- (_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage({ type: 'TRIGGER_EXPAND' }, predictBaseUrl);
54976
+ (_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage({ type: 'TRIGGER_EXPAND' }, frameTargetOrigin);
52889
54977
  }
52890
54978
  };
52891
54979
  handle.setCollapsedState = function (collapsed) {
@@ -52905,7 +54993,7 @@ var setupDragAndDrop = function (handle, container, predictBaseUrl) {
52905
54993
  // ----- Explanation Iframe Creation -----
52906
54994
  var createExplanationIframe = function (_a) {
52907
54995
  var _b;
52908
- var analysisId = _a.analysisId, recordId = _a.recordId, configuration = _a.configuration, predictBaseUrl = _a.predictBaseUrl;
54996
+ var analysisId = _a.analysisId, recordId = _a.recordId, configuration = _a.configuration, predictBaseUrl = _a.predictBaseUrl, _c = _a.wrapperBase, wrapperBase = _c === void 0 ? '' : _c;
52909
54997
  var frameId = "frameExplanation-".concat(analysisId);
52910
54998
  (_b = $(frameId)) === null || _b === void 0 ? void 0 : _b.remove();
52911
54999
  var base = "".concat(predictBaseUrl, "/external/analysis/").concat(analysisId, "/prediction/drilldown/").concat(recordId);
@@ -52917,16 +55005,16 @@ var createExplanationIframe = function (_a) {
52917
55005
  loading: 'lazy',
52918
55006
  referrerPolicy: 'strict-origin-when-cross-origin',
52919
55007
  allowFullscreen: true,
52920
- src: "".concat(base, "?").concat(params)
55008
+ src: buildFrameSrc("".concat(base, "?").concat(params), wrapperBase)
52921
55009
  }, document.body);
52922
55010
  };
52923
55011
  // ----- Floating Modal Creation -----
52924
55012
  var createFloatingModal = function (_a) {
52925
55013
  var _b;
52926
- var recordId = _a.recordId, configuration = _a.configuration, predictBaseUrl = _a.predictBaseUrl;
55014
+ var recordId = _a.recordId, configuration = _a.configuration, predictBaseUrl = _a.predictBaseUrl, _c = _a.wrapperBase, wrapperBase = _c === void 0 ? '' : _c;
52927
55015
  var flatIds = (_b = configuration.analysisIds) === null || _b === void 0 ? void 0 : _b.flat(Infinity);
52928
55016
  for (var i = 0; i < flatIds.length; i++) {
52929
- createExplanationIframe({ analysisId: flatIds[i], recordId: recordId, configuration: configuration, predictBaseUrl: predictBaseUrl });
55017
+ createExplanationIframe({ analysisId: flatIds[i], recordId: recordId, configuration: configuration, predictBaseUrl: predictBaseUrl, wrapperBase: wrapperBase });
52930
55018
  }
52931
55019
  var container = createElement('div', { id: 'floatingModalContainer', className: 'floating-modal-container' }, document.body);
52932
55020
  var dragHandle = createElement('div', {
@@ -52942,9 +55030,10 @@ var createFloatingModal = function (_a) {
52942
55030
  referrerPolicy: 'strict-origin-when-cross-origin',
52943
55031
  allowFullscreen: true,
52944
55032
  title: 'Floating Modal',
52945
- src: "".concat(baseUrl, "?").concat(params)
55033
+ src: buildFrameSrc("".concat(baseUrl, "?").concat(params), wrapperBase)
52946
55034
  }, container);
52947
- container.dragHandle = setupDragAndDrop(dragHandle, container, predictBaseUrl);
55035
+ var frameTargetOrigin = getFrameTargetOrigin(wrapperBase, predictBaseUrl);
55036
+ container.dragHandle = setupDragAndDrop(dragHandle, container, frameTargetOrigin);
52948
55037
  return function () {
52949
55038
  var _a, _b;
52950
55039
  (_b = (_a = container.dragHandle) === null || _a === void 0 ? void 0 : _a.cleanup) === null || _b === void 0 ? void 0 : _b.call(_a);
@@ -52957,11 +55046,13 @@ var createFloatingModal = function (_a) {
52957
55046
  };
52958
55047
  };
52959
55048
  var setupMessageListener = function (_a) {
52960
- var token = _a.token, forceAccountId = _a.forceAccountId, cleanup = _a.cleanup, pendo = _a.pendo, predictBaseUrl = _a.predictBaseUrl;
55049
+ var token = _a.token, forceAccountId = _a.forceAccountId, cleanup = _a.cleanup, pendo = _a.pendo, predictBaseUrl = _a.predictBaseUrl, _b = _a.wrapperBase, wrapperBase = _b === void 0 ? '' : _b;
55050
+ var frameTargetOrigin = getFrameTargetOrigin(wrapperBase, predictBaseUrl);
55051
+ var isAllowedOrigin = function (origin) { return origin === predictBaseUrl || (!!wrapperBase && origin === wrapperBase); };
52961
55052
  var messageHandler = function (_a) {
52962
55053
  var _b;
52963
55054
  var origin = _a.origin, data = _a.data;
52964
- if (origin !== predictBaseUrl || !data || typeof data !== 'object')
55055
+ if (!isAllowedOrigin(origin) || !data || typeof data !== 'object')
52965
55056
  return;
52966
55057
  var _c = data, type = _c.type, analysisId = _c.analysisId, height = _c.height, width = _c.width;
52967
55058
  var explanationFrame = $("frameExplanation-".concat(analysisId));
@@ -52994,13 +55085,13 @@ var setupMessageListener = function (_a) {
52994
55085
  }
52995
55086
  var visitorId = (_a = pendo === null || pendo === void 0 ? void 0 : pendo.getVisitorId) === null || _a === void 0 ? void 0 : _a.call(pendo);
52996
55087
  var accountId = forceAccountId !== null && forceAccountId !== void 0 ? forceAccountId : (_b = pendo === null || pendo === void 0 ? void 0 : pendo.getAccountId) === null || _b === void 0 ? void 0 : _b.call(pendo);
52997
- (_c = iframe.contentWindow) === null || _c === void 0 ? void 0 : _c.postMessage({ type: 'TOKEN_RECEIVED', token: token, idToken: idToken, extensionAPIKeys: extensionAPIKeys, visitorId: visitorId, accountId: accountId }, predictBaseUrl);
55088
+ (_c = iframe.contentWindow) === null || _c === void 0 ? void 0 : _c.postMessage({ type: 'TOKEN_RECEIVED', token: token, idToken: idToken, extensionAPIKeys: extensionAPIKeys, visitorId: visitorId, accountId: accountId }, frameTargetOrigin);
52998
55089
  }
52999
55090
  },
53000
55091
  OPEN_EXPLANATION: function () {
53001
55092
  var _a;
53002
55093
  explanationFrame === null || explanationFrame === void 0 ? void 0 : explanationFrame.classList.add('is-visible');
53003
- (_a = explanationFrame === null || explanationFrame === void 0 ? void 0 : explanationFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(data, predictBaseUrl);
55094
+ (_a = explanationFrame === null || explanationFrame === void 0 ? void 0 : explanationFrame.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(data, frameTargetOrigin);
53004
55095
  },
53005
55096
  CLOSE_EXPLANATION: function () { return explanationFrame === null || explanationFrame === void 0 ? void 0 : explanationFrame.classList.remove('is-visible'); },
53006
55097
  AUTH_ERROR_EXPLANATION: function () {
@@ -53075,9 +55166,10 @@ var predictGuidesScript = function (_a) {
53075
55166
  return;
53076
55167
  }
53077
55168
  var predictBaseUrl = getPredictBaseUrl(designerServer);
53078
- log("[predict] predictBaseUrl: ".concat(predictBaseUrl));
53079
- cleanupArray.push(setupMessageListener({ token: token, forceAccountId: configuration === null || configuration === void 0 ? void 0 : configuration.forceAccountId, cleanup: cleanup, pendo: pendo, predictBaseUrl: predictBaseUrl }));
53080
- cleanupArray.push(createFloatingModal({ recordId: recordId, configuration: configuration, predictBaseUrl: predictBaseUrl }));
55169
+ var wrapperBase = getFrameWrapperBase(pendo);
55170
+ log("[predict] predictBaseUrl: ".concat(predictBaseUrl).concat(wrapperBase ? ", wrapping via ".concat(wrapperBase) : ''));
55171
+ cleanupArray.push(setupMessageListener({ token: token, forceAccountId: configuration === null || configuration === void 0 ? void 0 : configuration.forceAccountId, cleanup: cleanup, pendo: pendo, predictBaseUrl: predictBaseUrl, wrapperBase: wrapperBase }));
55172
+ cleanupArray.push(createFloatingModal({ recordId: recordId, configuration: configuration, predictBaseUrl: predictBaseUrl, wrapperBase: wrapperBase }));
53081
55173
  };
53082
55174
 
53083
55175
  const PredictGuides = () => {