@streamlayer/feature-advertisement 1.1.0 → 1.1.1-rc.1343

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.
Files changed (77) hide show
  1. package/classic/package.json +5 -0
  2. package/lib/advertisement.d.ts +6 -6
  3. package/lib/advertisement.js +8 -8
  4. package/lib/cjs/advertisement.d.ts +64 -0
  5. package/lib/cjs/advertisement.js +307 -0
  6. package/lib/cjs/index.d.ts +19 -0
  7. package/lib/cjs/index.js +39 -0
  8. package/lib/cjs/package.json +1 -0
  9. package/lib/cjs/units/external-ad.d.ts +58 -0
  10. package/lib/cjs/units/external-ad.js +390 -0
  11. package/lib/cjs/units/external-pause-ad.d.ts +50 -0
  12. package/lib/cjs/units/external-pause-ad.js +253 -0
  13. package/lib/cjs/units/gam.d.ts +16 -0
  14. package/lib/cjs/units/gam.js +104 -0
  15. package/lib/cjs/units/parse-vast-extensions.d.ts +17 -0
  16. package/lib/cjs/units/parse-vast-extensions.js +52 -0
  17. package/lib/cjs/units/pause-ad-card.d.ts +49 -0
  18. package/lib/cjs/units/pause-ad-card.js +136 -0
  19. package/lib/cjs/units/pause-ad.d.ts +16 -0
  20. package/lib/cjs/units/pause-ad.js +52 -0
  21. package/lib/cjs/units/ssai-ad-break.d.ts +21 -0
  22. package/lib/cjs/units/ssai-ad-break.js +11 -0
  23. package/lib/cjs/units/ssai-creative.d.ts +89 -0
  24. package/lib/cjs/units/ssai-creative.js +136 -0
  25. package/lib/cjs/units/ssai-detector.d.ts +180 -0
  26. package/lib/cjs/units/ssai-detector.js +1156 -0
  27. package/lib/cjs/units/ssai-preload.d.ts +20 -0
  28. package/lib/cjs/units/ssai-preload.js +62 -0
  29. package/lib/cjs/units/ssai-providers.d.ts +117 -0
  30. package/lib/cjs/units/ssai-providers.js +263 -0
  31. package/lib/cjs/units/vast-tracker.d.ts +45 -0
  32. package/lib/cjs/units/vast-tracker.js +64 -0
  33. package/lib/classic/_virtual/_rollupPluginBabelHelpers.js +71 -0
  34. package/lib/classic/advertisement.js +331 -0
  35. package/lib/classic/cjs/_virtual/_rollupPluginBabelHelpers.js +77 -0
  36. package/lib/classic/cjs/advertisement.js +333 -0
  37. package/lib/classic/cjs/index.js +47 -0
  38. package/lib/classic/cjs/package.json +1 -0
  39. package/lib/classic/cjs/units/external-ad.js +453 -0
  40. package/lib/classic/cjs/units/external-pause-ad.js +274 -0
  41. package/lib/classic/cjs/units/gam.js +110 -0
  42. package/lib/classic/cjs/units/parse-vast-extensions.js +56 -0
  43. package/lib/classic/cjs/units/pause-ad-card.js +134 -0
  44. package/lib/classic/cjs/units/pause-ad.js +72 -0
  45. package/lib/classic/cjs/units/ssai-ad-break.js +11 -0
  46. package/lib/classic/cjs/units/ssai-creative.js +142 -0
  47. package/lib/classic/cjs/units/ssai-detector.js +1170 -0
  48. package/lib/classic/cjs/units/ssai-preload.js +72 -0
  49. package/lib/classic/cjs/units/ssai-providers.js +299 -0
  50. package/lib/classic/cjs/units/vast-tracker.js +81 -0
  51. package/lib/classic/index.js +28 -0
  52. package/lib/classic/units/external-ad.js +447 -0
  53. package/lib/classic/units/external-pause-ad.js +271 -0
  54. package/lib/classic/units/gam.js +108 -0
  55. package/lib/classic/units/parse-vast-extensions.js +54 -0
  56. package/lib/classic/units/pause-ad-card.js +131 -0
  57. package/lib/classic/units/pause-ad.js +70 -0
  58. package/lib/classic/units/ssai-ad-break.js +9 -0
  59. package/lib/classic/units/ssai-creative.js +140 -0
  60. package/lib/classic/units/ssai-detector.js +1167 -0
  61. package/lib/classic/units/ssai-preload.js +68 -0
  62. package/lib/classic/units/ssai-providers.js +289 -0
  63. package/lib/classic/units/vast-tracker.js +77 -0
  64. package/lib/index.d.ts +13 -13
  65. package/lib/index.js +8 -8
  66. package/lib/units/external-ad.d.ts +2 -2
  67. package/lib/units/external-ad.js +2 -2
  68. package/lib/units/pause-ad.d.ts +1 -1
  69. package/lib/units/pause-ad.js +1 -1
  70. package/lib/units/ssai-ad-break.d.ts +1 -1
  71. package/lib/units/ssai-creative.d.ts +1 -1
  72. package/lib/units/ssai-creative.js +1 -1
  73. package/lib/units/ssai-detector.d.ts +1 -1
  74. package/lib/units/ssai-preload.d.ts +1 -1
  75. package/lib/units/ssai-providers.d.ts +1 -1
  76. package/lib/units/vast-tracker.d.ts +1 -1
  77. package/package.json +41 -8
@@ -0,0 +1,331 @@
1
+ import { defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/es.array.iterator.js';
3
+ import 'core-js/modules/esnext.iterator.constructor.js';
4
+ import 'core-js/modules/esnext.iterator.for-each.js';
5
+ import 'core-js/modules/esnext.set.difference.v2.js';
6
+ import 'core-js/modules/esnext.set.intersection.v2.js';
7
+ import 'core-js/modules/esnext.set.is-disjoint-from.v2.js';
8
+ import 'core-js/modules/esnext.set.is-subset-of.v2.js';
9
+ import 'core-js/modules/esnext.set.is-superset-of.v2.js';
10
+ import 'core-js/modules/esnext.set.symmetric-difference.v2.js';
11
+ import 'core-js/modules/esnext.set.union.v2.js';
12
+ import 'core-js/modules/web.dom-collections.for-each.js';
13
+ import 'core-js/modules/web.dom-collections.iterator.js';
14
+ import { AbstractFeatureUnit, createSingleStore, eventBus } from '@streamlayer/sdk-web-interfaces/classic';
15
+ import { createLogger } from '@streamlayer/sdk-web-logger/classic';
16
+ import { externalAd } from './units/external-ad.js';
17
+ import { externalPauseAd } from './units/external-pause-ad.js';
18
+ import { pauseAdListStore } from './units/pause-ad.js';
19
+ import { SsaiCreativeCache } from './units/ssai-creative.js';
20
+ import { resolveProvider } from './units/ssai-providers.js';
21
+ import { createSsaiDetector } from './units/ssai-detector.js';
22
+ import { createSsaiAdBreakStore } from './units/ssai-ad-break.js';
23
+ import { preloadCreativeAssets } from './units/ssai-preload.js';
24
+
25
+ class Advertisement extends AbstractFeatureUnit {
26
+ constructor(instance) {
27
+ super();
28
+ _defineProperty(this, "getExternalAd", void 0);
29
+ _defineProperty(this, "getExternalPauseAd", void 0);
30
+ _defineProperty(this, "getPauseAdList", void 0);
31
+ _defineProperty(this, "ssaiAdBreak", createSsaiAdBreakStore());
32
+ _defineProperty(this, "startSsaiMonitoring", void 0);
33
+ _defineProperty(this, "stopSsaiMonitoring", void 0);
34
+ /**
35
+ * Fire the impression tracking pixel for a creative. Called by the UI the
36
+ * moment the bar actually renders the creative, so "impression" means the
37
+ * viewer saw it (not merely that metadata resolved).
38
+ */
39
+ _defineProperty(this, "fireSsaiImpression", void 0);
40
+ /**
41
+ * Fire a named tracking beacon for a creative (`clickThrough`, or any event
42
+ * the creative carries). Lifecycle beacons — `start`, the quartiles and
43
+ * `complete` — are fired automatically by the detector as playback crosses
44
+ * them; this is for the ones only the UI knows about.
45
+ */
46
+ _defineProperty(this, "fireSsaiTracking", void 0);
47
+ /**
48
+ * Fire the companion's `clickTracking` beacons. Exposed for hosts that render
49
+ * the companion banner themselves — the TV overlay has no companion surface,
50
+ * so nothing in this SDK calls it.
51
+ */
52
+ _defineProperty(this, "fireSsaiCompanionClick", void 0);
53
+ /**
54
+ * User-dismissed the current break: hide the bar now and keep it hidden for
55
+ * the rest of this break (a later break/creative shows again).
56
+ */
57
+ _defineProperty(this, "dismissSsaiBreak", void 0);
58
+ /**
59
+ * Read-only timing introspection of the running SSAI monitor (null while no
60
+ * monitor runs). Feeds the demo app's SSAI debug window; safe to poll.
61
+ */
62
+ _defineProperty(this, "getSsaiDebugSnapshot", void 0);
63
+ _defineProperty(this, "externalAdStores", new Map());
64
+ _defineProperty(this, "externalPauseAdStores", new Map());
65
+ _defineProperty(this, "externalPauseAdEnabled", new Map());
66
+ _defineProperty(this, "pauseAdStore", null);
67
+ _defineProperty(this, "pauseAdEnabled", null);
68
+ _defineProperty(this, "ssaiDetector", null);
69
+ _defineProperty(this, "ssaiCache", null);
70
+ _defineProperty(this, "log", void 0);
71
+ _defineProperty(this, "connect", () => {
72
+ this.log.debug('connect');
73
+ });
74
+ _defineProperty(this, "disconnect", () => {
75
+ this.log.debug('disconnect');
76
+ this.stopSsaiMonitoring();
77
+ this.externalAdStores.forEach(store => {
78
+ store.off();
79
+ });
80
+ this.externalAdStores.clear();
81
+ this.externalPauseAdStores.forEach(store => {
82
+ store.off();
83
+ });
84
+ this.externalPauseAdEnabled.forEach(enabled => {
85
+ enabled.off();
86
+ });
87
+ this.externalPauseAdEnabled.clear();
88
+ this.externalPauseAdStores.clear();
89
+ if (this.pauseAdStore) {
90
+ var _this$pauseAdEnabled;
91
+ this.pauseAdStore.$list.off();
92
+ this.pauseAdStore.$index.off();
93
+ (_this$pauseAdEnabled = this.pauseAdEnabled) === null || _this$pauseAdEnabled === void 0 || _this$pauseAdEnabled.off();
94
+ this.pauseAdStore = null;
95
+ this.pauseAdEnabled = null;
96
+ }
97
+ });
98
+ this.log = createLogger('advertisement');
99
+ const externalAdGenerator = externalAd(instance);
100
+ const externalPauseAdGenerator = externalPauseAd(instance);
101
+ const pauseAdGenerator = pauseAdListStore(instance);
102
+ this.fireSsaiImpression = () => undefined;
103
+ this.fireSsaiTracking = () => undefined;
104
+ this.fireSsaiCompanionClick = () => undefined;
105
+ this.dismissSsaiBreak = () => undefined;
106
+ // Stable across start/stop cycles — always answers from the CURRENT detector.
107
+ this.getSsaiDebugSnapshot = () => {
108
+ var _this$ssaiDetector$ge, _this$ssaiDetector;
109
+ return (_this$ssaiDetector$ge = (_this$ssaiDetector = this.ssaiDetector) === null || _this$ssaiDetector === void 0 ? void 0 : _this$ssaiDetector.getDebugSnapshot()) !== null && _this$ssaiDetector$ge !== void 0 ? _this$ssaiDetector$ge : null;
110
+ };
111
+ this.getPauseAdList = options => {
112
+ if (this.pauseAdStore) {
113
+ const $enabled = this.pauseAdEnabled;
114
+ const wasDisabled = $enabled.get() === false;
115
+ $enabled.set(options.$enabled);
116
+ if (wasDisabled && options.$enabled) {
117
+ window.requestAnimationFrame(() => {
118
+ if (this.pauseAdStore) this.pauseAdStore.$list.revalidate();
119
+ });
120
+ }
121
+ return this.pauseAdStore;
122
+ }
123
+ const $enabled = createSingleStore(options.$enabled);
124
+ this.pauseAdEnabled = $enabled;
125
+ this.pauseAdStore = pauseAdGenerator($enabled, options);
126
+ return this.pauseAdStore;
127
+ };
128
+ this.getExternalAd = (adUrl = '') => {
129
+ if (this.externalAdStores.has(adUrl)) {
130
+ const $store = this.externalAdStores.get(adUrl);
131
+ return [$store, adUrl];
132
+ }
133
+ const store = externalAdGenerator(adUrl);
134
+ this.externalAdStores.set(adUrl, store);
135
+ return [store, adUrl];
136
+ };
137
+ this.getExternalPauseAd = (adUrl, options) => {
138
+ var _options$template;
139
+ // Store identity is (template, url): the template selects a DIFFERENT creative
140
+ // from the SAME tag, so the two must not share a store. Required because the
141
+ // cache-hit branch below applies only `$enabled` and drops the rest of `options`.
142
+ const storeKey = `${(_options$template = options.template) !== null && _options$template !== void 0 ? _options$template : 'default'}::${adUrl}`;
143
+ if (this.externalPauseAdStores.has(storeKey)) {
144
+ const $enabled = this.externalPauseAdEnabled.get(storeKey);
145
+ const $store = this.externalPauseAdStores.get(storeKey);
146
+ const shouldRevalidate = $enabled.get() === false && options.$enabled === true;
147
+ $enabled.set(options.$enabled);
148
+ if (shouldRevalidate) {
149
+ window.requestAnimationFrame(() => {
150
+ $store.revalidate();
151
+ });
152
+ }
153
+ // The 2nd element MUST stay the BARE url — `ExposedPauseAd` compares it to
154
+ // `vastUrlRef.current` (index.tsx:121) to scope store errors to the selected tag.
155
+ return [$store, adUrl];
156
+ }
157
+ const $enabled = createSingleStore(options.$enabled);
158
+ const store = externalPauseAdGenerator(adUrl, $enabled, options);
159
+ this.externalPauseAdEnabled.set(storeKey, $enabled);
160
+ this.externalPauseAdStores.set(storeKey, store);
161
+ return [store, adUrl];
162
+ };
163
+ this.startSsaiMonitoring = options => {
164
+ this.stopSsaiMonitoring();
165
+ const provider = resolveProvider(options.provider);
166
+ const cache = new SsaiCreativeCache(provider);
167
+ this.ssaiCache = cache;
168
+ this.fireSsaiImpression = creativeId => {
169
+ cache.fireImpressionById(creativeId);
170
+ };
171
+ this.fireSsaiTracking = (creativeId, event) => {
172
+ cache.fireTrackingById(creativeId, event);
173
+ };
174
+ this.fireSsaiCompanionClick = creativeId => {
175
+ cache.fireCompanionClickById(creativeId);
176
+ };
177
+ // Creative ids whose artwork preload has completed. Tracked apart from the
178
+ // cache: `peek` alone would let the bar show with a logo still in flight.
179
+ const preloadedIds = new Set();
180
+ /**
181
+ * Resolve + warm a creative the moment its id shows up in the manifest —
182
+ * typically seconds before its break starts, since the playhead trails the
183
+ * live edge. By break start the sync fast-path in `loadCreative` then flips
184
+ * the store straight to 'ready'. Failure here is only a debug note: the
185
+ * break may still be minutes away, and `loadCreative` retries (and warns)
186
+ * when the ad actually starts.
187
+ */
188
+ const prefetchCreative = creativeId => {
189
+ cache.resolve(creativeId).then(creative => preloadCreativeAssets(creative)).then(() => {
190
+ preloadedIds.add(creativeId);
191
+ }).catch(error => {
192
+ this.log.debug(error, 'ssai creative prefetch failed');
193
+ });
194
+ };
195
+ const publishReady = (range, creative) => {
196
+ this.ssaiAdBreak.set({
197
+ creativeId: range.creativeId,
198
+ creative,
199
+ status: 'ready',
200
+ startMs: range.startMs,
201
+ durationSec: range.durationSec
202
+ });
203
+ // "loaded" = metadata resolved. Impression (eventBus + pixel) fires
204
+ // from the UI when the bar is actually rendered, not here.
205
+ eventBus.emit('ssaiAdBreak', {
206
+ action: 'vastLoaded',
207
+ payload: {
208
+ creativeId: creative.creativeId,
209
+ advertiser: creative.advertiser,
210
+ clickThroughUrl: creative.clickThroughUrl
211
+ }
212
+ });
213
+ };
214
+ const loadCreative = range => {
215
+ // Fast path: prefetched at discovery, artwork warm — go straight to
216
+ // 'ready'. Skipping the 'detecting' hop matters for pods in particular:
217
+ // it momentarily empties the store, which the UI renders as the bar
218
+ // starting to close between two back-to-back ads.
219
+ const prefetched = cache.peek(range.creativeId);
220
+ if (prefetched && preloadedIds.has(range.creativeId)) {
221
+ publishReady(range, prefetched);
222
+ return;
223
+ }
224
+ this.ssaiAdBreak.set({
225
+ creativeId: range.creativeId,
226
+ status: 'detecting',
227
+ startMs: range.startMs,
228
+ durationSec: range.durationSec
229
+ });
230
+ cache.resolve(range.creativeId)
231
+ // Warm the artwork BEFORE flipping to 'ready', so the bar fades in with
232
+ // its logo already decoded instead of popping it in mid-animation. Capped
233
+ // internally, so a slow image host delays nothing.
234
+ .then(creative => preloadCreativeAssets(creative).then(() => {
235
+ preloadedIds.add(range.creativeId);
236
+ return creative;
237
+ })).then(creative => {
238
+ const current = this.ssaiAdBreak.get();
239
+ // Re-checked after the preload as well as the fetch: the break can end
240
+ // while either is in flight.
241
+ if (!current || current.creativeId !== range.creativeId) {
242
+ return;
243
+ }
244
+ publishReady(range, creative);
245
+ }).catch(error => {
246
+ this.log.warn(error, 'ssai creative resolution failed');
247
+ });
248
+ };
249
+ this.ssaiDetector = createSsaiDetector({
250
+ player: options.player,
251
+ videoRef: options.videoRef,
252
+ manifestUrl: options.manifestUrl,
253
+ onAdDiscovered: creativeId => {
254
+ this.log.debug({
255
+ creativeId
256
+ }, 'ssai ad discovered, prefetching creative');
257
+ prefetchCreative(creativeId);
258
+ },
259
+ onBreakStart: range => {
260
+ this.log.debug({
261
+ creativeId: range.creativeId
262
+ }, 'ssai break start');
263
+ eventBus.emit('ssaiAdBreak', {
264
+ action: 'breakStart',
265
+ payload: {
266
+ creativeId: range.creativeId
267
+ }
268
+ });
269
+ loadCreative(range);
270
+ },
271
+ onCreativeChange: range => {
272
+ this.log.debug({
273
+ creativeId: range.creativeId
274
+ }, 'ssai creative change');
275
+ loadCreative(range);
276
+ },
277
+ onAdEnding: range => {
278
+ const current = this.ssaiAdBreak.get();
279
+ // Only a bar currently showing this creative has anything to wind
280
+ // down — a dismissed or still-resolving break stays as it is.
281
+ if (!current || current.creativeId !== range.creativeId || current.status !== 'ready') {
282
+ return;
283
+ }
284
+ this.ssaiAdBreak.set(_objectSpread2(_objectSpread2({}, current), {}, {
285
+ status: 'ending'
286
+ }));
287
+ },
288
+ onProgress: (range, event) => {
289
+ this.log.debug({
290
+ creativeId: range.creativeId,
291
+ event
292
+ }, 'ssai progress');
293
+ cache.fireTrackingById(range.creativeId, event);
294
+ },
295
+ onBreakEnd: () => {
296
+ this.log.debug('ssai break end');
297
+ const current = this.ssaiAdBreak.get();
298
+ eventBus.emit('ssaiAdBreak', {
299
+ action: 'breakEnd',
300
+ payload: {
301
+ creativeId: current === null || current === void 0 ? void 0 : current.creativeId
302
+ }
303
+ });
304
+ this.ssaiAdBreak.set(null);
305
+ }
306
+ });
307
+ this.dismissSsaiBreak = () => {
308
+ var _this$ssaiDetector2;
309
+ (_this$ssaiDetector2 = this.ssaiDetector) === null || _this$ssaiDetector2 === void 0 || _this$ssaiDetector2.dismissActiveBreak();
310
+ this.ssaiAdBreak.set(null);
311
+ };
312
+ };
313
+ this.stopSsaiMonitoring = () => {
314
+ if (this.ssaiDetector) {
315
+ this.ssaiDetector.destroy();
316
+ this.ssaiDetector = null;
317
+ }
318
+ if (this.ssaiCache) {
319
+ this.ssaiCache.destroy();
320
+ this.ssaiCache = null;
321
+ }
322
+ this.fireSsaiImpression = () => undefined;
323
+ this.fireSsaiTracking = () => undefined;
324
+ this.fireSsaiCompanionClick = () => undefined;
325
+ this.dismissSsaiBreak = () => undefined;
326
+ this.ssaiAdBreak.set(null);
327
+ };
328
+ }
329
+ }
330
+
331
+ export { Advertisement };
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+
3
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
4
+ try {
5
+ var i = n[a](c),
6
+ u = i.value;
7
+ } catch (n) {
8
+ return void e(n);
9
+ }
10
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
11
+ }
12
+ function _asyncToGenerator(n) {
13
+ return function () {
14
+ var t = this,
15
+ e = arguments;
16
+ return new Promise(function (r, o) {
17
+ var a = n.apply(t, e);
18
+ function _next(n) {
19
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
20
+ }
21
+ function _throw(n) {
22
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
23
+ }
24
+ _next(void 0);
25
+ });
26
+ };
27
+ }
28
+ function _defineProperty(e, r, t) {
29
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
30
+ value: t,
31
+ enumerable: true,
32
+ configurable: true,
33
+ writable: true
34
+ }) : e[r] = t, e;
35
+ }
36
+ function ownKeys(e, r) {
37
+ var t = Object.keys(e);
38
+ if (Object.getOwnPropertySymbols) {
39
+ var o = Object.getOwnPropertySymbols(e);
40
+ r && (o = o.filter(function (r) {
41
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
42
+ })), t.push.apply(t, o);
43
+ }
44
+ return t;
45
+ }
46
+ function _objectSpread2(e) {
47
+ for (var r = 1; r < arguments.length; r++) {
48
+ var t = null != arguments[r] ? arguments[r] : {};
49
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
50
+ _defineProperty(e, r, t[r]);
51
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
52
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
53
+ });
54
+ }
55
+ return e;
56
+ }
57
+ function _toPrimitive(t, r) {
58
+ if ("object" != typeof t || !t) return t;
59
+ if (typeof Symbol === "function" && t instanceof Symbol) return t;
60
+ var e = t[Symbol.toPrimitive];
61
+ if (void 0 !== e) {
62
+ var i = e.call(t, r);
63
+ if ("object" != typeof i) return i;
64
+ throw new TypeError("@@toPrimitive must return a primitive value.");
65
+ }
66
+ return ("string" === r ? String : Number)(t);
67
+ }
68
+ function _toPropertyKey(t) {
69
+ var i = _toPrimitive(t, "string");
70
+ return "symbol" == typeof i ? i : i + "";
71
+ }
72
+
73
+ exports.asyncToGenerator = _asyncToGenerator;
74
+ exports.defineProperty = _defineProperty;
75
+ exports.objectSpread2 = _objectSpread2;
76
+ exports.toPrimitive = _toPrimitive;
77
+ exports.toPropertyKey = _toPropertyKey;