@apps-in-toss/web-framework 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.rn84.js +168 -144
- package/dist/prebuilt/dev.ios.rn84.js +168 -144
- package/dist/prebuilt/prod.android.rn72.js +540 -145
- package/dist/prebuilt/prod.android.rn84.js +74 -49
- package/dist/prebuilt/prod.ios.rn72.js +540 -145
- package/dist/prebuilt/prod.ios.rn84.js +74 -49
- package/package.json +8 -8
|
@@ -388,6 +388,471 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
390
|
|
|
391
|
+
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js
|
|
392
|
+
function _iterable_to_array_limit(arr, i61) {
|
|
393
|
+
var _i2 = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
394
|
+
if (_i2 == null) return;
|
|
395
|
+
var _arr = [];
|
|
396
|
+
var _n3 = true;
|
|
397
|
+
var _d = false;
|
|
398
|
+
var _s3, _e2;
|
|
399
|
+
try {
|
|
400
|
+
for (_i2 = _i2.call(arr); !(_n3 = (_s3 = _i2.next()).done); _n3 = true) {
|
|
401
|
+
_arr.push(_s3.value);
|
|
402
|
+
if (i61 && _arr.length === i61) break;
|
|
403
|
+
}
|
|
404
|
+
} catch (err) {
|
|
405
|
+
_d = true;
|
|
406
|
+
_e2 = err;
|
|
407
|
+
} finally {
|
|
408
|
+
try {
|
|
409
|
+
if (!_n3 && _i2["return"] != null) _i2["return"]();
|
|
410
|
+
} finally {
|
|
411
|
+
if (_d) throw _e2;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return _arr;
|
|
415
|
+
}
|
|
416
|
+
var init_iterable_to_array_limit = __esm({
|
|
417
|
+
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js"() {
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_sliced_to_array.js
|
|
422
|
+
function _sliced_to_array(arr, i61) {
|
|
423
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i61) || _unsupported_iterable_to_array(arr, i61) || _non_iterable_rest();
|
|
424
|
+
}
|
|
425
|
+
var init_sliced_to_array = __esm({
|
|
426
|
+
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_sliced_to_array.js"() {
|
|
427
|
+
init_array_with_holes();
|
|
428
|
+
init_iterable_to_array_limit();
|
|
429
|
+
init_non_iterable_rest();
|
|
430
|
+
init_unsupported_iterable_to_array();
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
// protocol-virtual-shared:react
|
|
435
|
+
var require_react = __commonJS({
|
|
436
|
+
"protocol-virtual-shared:react"(exports, module) {
|
|
437
|
+
var sharedModule = global.__MICRO_FRONTEND__.__SHARED__["react"];
|
|
438
|
+
if (sharedModule == null) {
|
|
439
|
+
throw new Error("'react' is not registered in the shared registry");
|
|
440
|
+
}
|
|
441
|
+
module.exports = sharedModule.get();
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
// ../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/context.js
|
|
446
|
+
var require_context = __commonJS({
|
|
447
|
+
"../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/context.js"(exports) {
|
|
448
|
+
"use strict";
|
|
449
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
450
|
+
return mod && mod.__esModule ? mod : {
|
|
451
|
+
"default": mod
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
Object.defineProperty(exports, "__esModule", {
|
|
455
|
+
value: true
|
|
456
|
+
});
|
|
457
|
+
exports.useContext = exports.createContext = exports.getStoreContext = void 0;
|
|
458
|
+
var react_1 = __importDefault(require_react());
|
|
459
|
+
var createStore = function(defaultValue) {
|
|
460
|
+
var value = defaultValue;
|
|
461
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
462
|
+
var subscribe = function(l43) {
|
|
463
|
+
listeners.add(l43);
|
|
464
|
+
return function() {
|
|
465
|
+
return listeners.delete(l43);
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
var setValue = function(nextValue) {
|
|
469
|
+
value = nextValue;
|
|
470
|
+
listeners.forEach(function(l43) {
|
|
471
|
+
return l43();
|
|
472
|
+
});
|
|
473
|
+
};
|
|
474
|
+
var getValue = function() {
|
|
475
|
+
return value;
|
|
476
|
+
};
|
|
477
|
+
return {
|
|
478
|
+
subscribe,
|
|
479
|
+
setValue,
|
|
480
|
+
getValue
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
var STORE_CONTEXT = Symbol();
|
|
484
|
+
var getStoreContext = function(context2) {
|
|
485
|
+
var storeContext = context2[STORE_CONTEXT];
|
|
486
|
+
return storeContext;
|
|
487
|
+
};
|
|
488
|
+
exports.getStoreContext = getStoreContext;
|
|
489
|
+
exports.createContext = function(defaultValue) {
|
|
490
|
+
var context2 = react_1.default.createContext(createStore(defaultValue));
|
|
491
|
+
var Provider = function(param) {
|
|
492
|
+
var value = param.value, children = param.children;
|
|
493
|
+
var storeRef = react_1.default.useRef(void 0);
|
|
494
|
+
if (!storeRef.current) {
|
|
495
|
+
storeRef.current = createStore(value);
|
|
496
|
+
}
|
|
497
|
+
var store = storeRef.current;
|
|
498
|
+
react_1.default.useEffect(function() {
|
|
499
|
+
store.setValue(value);
|
|
500
|
+
});
|
|
501
|
+
return react_1.default.createElement(context2.Provider, {
|
|
502
|
+
value: store
|
|
503
|
+
}, children);
|
|
504
|
+
};
|
|
505
|
+
Provider.Provider = Provider;
|
|
506
|
+
Provider[STORE_CONTEXT] = context2;
|
|
507
|
+
return Provider;
|
|
508
|
+
};
|
|
509
|
+
exports.useContext = function(context2) {
|
|
510
|
+
var storeContext = (0, exports.getStoreContext)(context2);
|
|
511
|
+
if (!storeContext) {
|
|
512
|
+
throw new Error("useContext must be used with createContext from react18-use");
|
|
513
|
+
}
|
|
514
|
+
var store = react_1.default.useContext(storeContext);
|
|
515
|
+
return react_1.default.useSyncExternalStore(store.subscribe, store.getValue);
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
|
|
520
|
+
// ../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/use.js
|
|
521
|
+
var require_use = __commonJS({
|
|
522
|
+
"../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/use.js"(exports) {
|
|
523
|
+
"use strict";
|
|
524
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
525
|
+
return mod && mod.__esModule ? mod : {
|
|
526
|
+
"default": mod
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
Object.defineProperty(exports, "__esModule", {
|
|
530
|
+
value: true
|
|
531
|
+
});
|
|
532
|
+
exports.use = exports.setOverride = void 0;
|
|
533
|
+
var react_1 = __importDefault(require_react());
|
|
534
|
+
var context_js_1 = require_context();
|
|
535
|
+
function isContext(usable) {
|
|
536
|
+
return "_currentValue" in usable && "$$typeof" in usable;
|
|
537
|
+
}
|
|
538
|
+
var override;
|
|
539
|
+
var setOverride = function(fn7) {
|
|
540
|
+
override = fn7;
|
|
541
|
+
};
|
|
542
|
+
exports.setOverride = setOverride;
|
|
543
|
+
exports.use = react_1.default.use ? function(usable) {
|
|
544
|
+
if (override) {
|
|
545
|
+
return override(usable);
|
|
546
|
+
}
|
|
547
|
+
var storeContext = (0, context_js_1.getStoreContext)(usable);
|
|
548
|
+
if (storeContext) {
|
|
549
|
+
var store = react_1.default.use(storeContext);
|
|
550
|
+
return react_1.default.useSyncExternalStore(store.subscribe, store.getValue);
|
|
551
|
+
}
|
|
552
|
+
return react_1.default.use(usable);
|
|
553
|
+
} : function(usable) {
|
|
554
|
+
if (override) {
|
|
555
|
+
return override(usable);
|
|
556
|
+
}
|
|
557
|
+
var storeContext = (0, context_js_1.getStoreContext)(usable);
|
|
558
|
+
if (storeContext) {
|
|
559
|
+
var store = react_1.default.useContext(storeContext);
|
|
560
|
+
return react_1.default.useSyncExternalStore(store.subscribe, store.getValue);
|
|
561
|
+
}
|
|
562
|
+
if (isContext(usable)) {
|
|
563
|
+
return react_1.default.useContext(usable);
|
|
564
|
+
}
|
|
565
|
+
if (usable.status === "pending") {
|
|
566
|
+
throw usable;
|
|
567
|
+
} else if (usable.status === "fulfilled") {
|
|
568
|
+
return usable.value;
|
|
569
|
+
} else if (usable.status === "rejected") {
|
|
570
|
+
throw usable.reason;
|
|
571
|
+
} else {
|
|
572
|
+
usable.status = "pending";
|
|
573
|
+
usable.then(function(v21) {
|
|
574
|
+
usable.status = "fulfilled";
|
|
575
|
+
usable.value = v21;
|
|
576
|
+
}, function(e63) {
|
|
577
|
+
usable.status = "rejected";
|
|
578
|
+
usable.reason = e63;
|
|
579
|
+
});
|
|
580
|
+
throw usable;
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
// ../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/memo.js
|
|
587
|
+
var require_memo = __commonJS({
|
|
588
|
+
"../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/memo.js"(exports) {
|
|
589
|
+
"use strict";
|
|
590
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
591
|
+
return mod && mod.__esModule ? mod : {
|
|
592
|
+
"default": mod
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
Object.defineProperty(exports, "__esModule", {
|
|
596
|
+
value: true
|
|
597
|
+
});
|
|
598
|
+
exports.useMemo = void 0;
|
|
599
|
+
var react_1 = __importDefault(require_react());
|
|
600
|
+
var use_js_1 = require_use();
|
|
601
|
+
var context_js_1 = require_context();
|
|
602
|
+
var useMemo11 = function(fn7, deps) {
|
|
603
|
+
var cache = react_1.default.useMemo(function() {
|
|
604
|
+
var subscriptions = /* @__PURE__ */ new Map();
|
|
605
|
+
var storeMap = /* @__PURE__ */ new Map();
|
|
606
|
+
var callback;
|
|
607
|
+
var subscribe = function(cb) {
|
|
608
|
+
callback = cb;
|
|
609
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
610
|
+
try {
|
|
611
|
+
for (var _iterator = storeMap.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
612
|
+
var store = _step.value;
|
|
613
|
+
if (!subscriptions.has(store)) {
|
|
614
|
+
subscriptions.set(store, store.subscribe(function() {
|
|
615
|
+
return callback === null || callback === void 0 ? void 0 : callback();
|
|
616
|
+
}));
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
} catch (err) {
|
|
620
|
+
_didIteratorError = true;
|
|
621
|
+
_iteratorError = err;
|
|
622
|
+
} finally {
|
|
623
|
+
try {
|
|
624
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
625
|
+
_iterator.return();
|
|
626
|
+
}
|
|
627
|
+
} finally {
|
|
628
|
+
if (_didIteratorError) {
|
|
629
|
+
throw _iteratorError;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return function() {
|
|
634
|
+
callback = void 0;
|
|
635
|
+
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
|
|
636
|
+
try {
|
|
637
|
+
for (var _iterator2 = subscriptions.values()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
638
|
+
var unsub = _step2.value;
|
|
639
|
+
unsub();
|
|
640
|
+
}
|
|
641
|
+
} catch (err) {
|
|
642
|
+
_didIteratorError2 = true;
|
|
643
|
+
_iteratorError2 = err;
|
|
644
|
+
} finally {
|
|
645
|
+
try {
|
|
646
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
647
|
+
_iterator2.return();
|
|
648
|
+
}
|
|
649
|
+
} finally {
|
|
650
|
+
if (_didIteratorError2) {
|
|
651
|
+
throw _iteratorError2;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
subscriptions.clear();
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
var getStore = function(storeContext) {
|
|
659
|
+
if (storeMap.has(storeContext)) {
|
|
660
|
+
return storeMap.get(storeContext);
|
|
661
|
+
}
|
|
662
|
+
var store = (react_1.default.use || react_1.default.useContext)(storeContext);
|
|
663
|
+
storeMap.set(storeContext, store);
|
|
664
|
+
if (callback && !subscriptions.has(store)) {
|
|
665
|
+
subscriptions.set(store, store.subscribe(function() {
|
|
666
|
+
return callback === null || callback === void 0 ? void 0 : callback();
|
|
667
|
+
}));
|
|
668
|
+
}
|
|
669
|
+
return store;
|
|
670
|
+
};
|
|
671
|
+
return {
|
|
672
|
+
subscribe,
|
|
673
|
+
getStore
|
|
674
|
+
};
|
|
675
|
+
}, deps);
|
|
676
|
+
return react_1.default.useSyncExternalStore(cache.subscribe, function() {
|
|
677
|
+
try {
|
|
678
|
+
(0, use_js_1.setOverride)(function(usable) {
|
|
679
|
+
var storeContext = (0, context_js_1.getStoreContext)(usable);
|
|
680
|
+
if (!storeContext) {
|
|
681
|
+
throw new Error("use must be used with createContext from react18-use");
|
|
682
|
+
}
|
|
683
|
+
var store = cache.getStore(storeContext);
|
|
684
|
+
return store.getValue();
|
|
685
|
+
});
|
|
686
|
+
return fn7();
|
|
687
|
+
} finally {
|
|
688
|
+
(0, use_js_1.setOverride)(void 0);
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
};
|
|
692
|
+
exports.useMemo = useMemo11;
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
|
|
696
|
+
// ../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/index.js
|
|
697
|
+
var require_cjs = __commonJS({
|
|
698
|
+
"../../../.yarn/__virtual__/react18-use-virtual-3bdab1d9a3/0/cache/react18-use-npm-0.4.1-e77564e043-f72677009c.zip/node_modules/react18-use/dist/cjs/index.js"(exports) {
|
|
699
|
+
"use strict";
|
|
700
|
+
Object.defineProperty(exports, "__esModule", {
|
|
701
|
+
value: true
|
|
702
|
+
});
|
|
703
|
+
exports.useMemo = exports.useContext = exports.createContext = exports.use = void 0;
|
|
704
|
+
var use_js_1 = require_use();
|
|
705
|
+
Object.defineProperty(exports, "use", {
|
|
706
|
+
enumerable: true,
|
|
707
|
+
get: function get() {
|
|
708
|
+
return use_js_1.use;
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
var context_js_1 = require_context();
|
|
712
|
+
Object.defineProperty(exports, "createContext", {
|
|
713
|
+
enumerable: true,
|
|
714
|
+
get: function get() {
|
|
715
|
+
return context_js_1.createContext;
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
Object.defineProperty(exports, "useContext", {
|
|
719
|
+
enumerable: true,
|
|
720
|
+
get: function get() {
|
|
721
|
+
return context_js_1.useContext;
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
var memo_js_1 = require_memo();
|
|
725
|
+
Object.defineProperty(exports, "useMemo", {
|
|
726
|
+
enumerable: true,
|
|
727
|
+
get: function get() {
|
|
728
|
+
return memo_js_1.useMemo;
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
|
|
734
|
+
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_array_without_holes.js
|
|
735
|
+
function _array_without_holes(arr) {
|
|
736
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
737
|
+
}
|
|
738
|
+
var init_array_without_holes = __esm({
|
|
739
|
+
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_array_without_holes.js"() {
|
|
740
|
+
init_array_like_to_array();
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_non_iterable_spread.js
|
|
745
|
+
function _non_iterable_spread() {
|
|
746
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
747
|
+
}
|
|
748
|
+
var init_non_iterable_spread = __esm({
|
|
749
|
+
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_non_iterable_spread.js"() {
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
|
|
753
|
+
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_to_consumable_array.js
|
|
754
|
+
function _to_consumable_array(arr) {
|
|
755
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
756
|
+
}
|
|
757
|
+
var init_to_consumable_array = __esm({
|
|
758
|
+
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_to_consumable_array.js"() {
|
|
759
|
+
init_array_without_holes();
|
|
760
|
+
init_iterable_to_array();
|
|
761
|
+
init_non_iterable_spread();
|
|
762
|
+
init_unsupported_iterable_to_array();
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_type_of.js
|
|
767
|
+
function _type_of(obj) {
|
|
768
|
+
"@swc/helpers - typeof";
|
|
769
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
770
|
+
}
|
|
771
|
+
var init_type_of = __esm({
|
|
772
|
+
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_type_of.js"() {
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
|
|
776
|
+
// ../../../.yarn/__virtual__/use-effect-event-virtual-c44d78afdf/0/cache/use-effect-event-npm-2.0.3-4d432c1f61-8b7eb6f17e.zip/node_modules/use-effect-event/dist/index.cjs
|
|
777
|
+
var require_dist = __commonJS({
|
|
778
|
+
"../../../.yarn/__virtual__/use-effect-event-virtual-c44d78afdf/0/cache/use-effect-event-npm-2.0.3-4d432c1f61-8b7eb6f17e.zip/node_modules/use-effect-event/dist/index.cjs"(exports) {
|
|
779
|
+
"use strict";
|
|
780
|
+
init_to_consumable_array();
|
|
781
|
+
init_type_of();
|
|
782
|
+
Object.defineProperty(exports, "__esModule", {
|
|
783
|
+
value: true
|
|
784
|
+
});
|
|
785
|
+
var React4 = require_react();
|
|
786
|
+
function _interopDefaultCompat(e63) {
|
|
787
|
+
return e63 && (typeof e63 === "undefined" ? "undefined" : _type_of(e63)) == "object" && "default" in e63 ? e63 : {
|
|
788
|
+
default: e63
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
var React__default = /* @__PURE__ */ _interopDefaultCompat(React4);
|
|
792
|
+
var context2 = React__default.default.createContext(true);
|
|
793
|
+
function forbiddenInRender() {
|
|
794
|
+
throw new Error("A function wrapped in useEffectEvent can't be called during rendering.");
|
|
795
|
+
}
|
|
796
|
+
var isInvalidExecutionContextForEventFunction = "use" in React__default.default ? function() {
|
|
797
|
+
try {
|
|
798
|
+
return React__default.default.use(context2);
|
|
799
|
+
} catch (unused) {
|
|
800
|
+
return false;
|
|
801
|
+
}
|
|
802
|
+
} : function() {
|
|
803
|
+
return false;
|
|
804
|
+
};
|
|
805
|
+
function useEffectEvent(fn7) {
|
|
806
|
+
var ref = React__default.default.useRef(forbiddenInRender);
|
|
807
|
+
return React__default.default.useInsertionEffect(function() {
|
|
808
|
+
ref.current = fn7;
|
|
809
|
+
}, [
|
|
810
|
+
fn7
|
|
811
|
+
]), function() {
|
|
812
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
813
|
+
args[_key] = arguments[_key];
|
|
814
|
+
}
|
|
815
|
+
isInvalidExecutionContextForEventFunction() && forbiddenInRender();
|
|
816
|
+
var latestFn = ref.current;
|
|
817
|
+
return latestFn.apply(void 0, _to_consumable_array(args));
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
exports.useEffectEvent = useEffectEvent;
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
|
|
824
|
+
// .granite/react-19-compat.js
|
|
825
|
+
var require_react_19_compat = __commonJS({
|
|
826
|
+
".granite/react-19-compat.js"(exports, module) {
|
|
827
|
+
init_sliced_to_array();
|
|
828
|
+
var React4 = require_react();
|
|
829
|
+
var reactUsePolyfill = require_cjs();
|
|
830
|
+
var reactEffectEventPolyfill = require_dist();
|
|
831
|
+
function useOptimisticPolyfill(passthroughState, reducer2) {
|
|
832
|
+
var _React_useState = _sliced_to_array(React4.useState(passthroughState), 2), optimisticState = _React_useState[0], setOptimisticState = _React_useState[1];
|
|
833
|
+
var lastPassthroughState = React4.useRef(passthroughState);
|
|
834
|
+
if (passthroughState !== lastPassthroughState.current) {
|
|
835
|
+
setOptimisticState(passthroughState);
|
|
836
|
+
lastPassthroughState.current = passthroughState;
|
|
837
|
+
}
|
|
838
|
+
function addOptimistic(action) {
|
|
839
|
+
setOptimisticState(function(current) {
|
|
840
|
+
return reducer2(current, action);
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
return [
|
|
844
|
+
optimisticState,
|
|
845
|
+
addOptimistic
|
|
846
|
+
];
|
|
847
|
+
}
|
|
848
|
+
module.exports = Object.assign(React4, {
|
|
849
|
+
use: reactUsePolyfill.use,
|
|
850
|
+
useEffectEvent: reactEffectEventPolyfill.useEffectEvent,
|
|
851
|
+
useOptimistic: useOptimisticPolyfill
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
});
|
|
855
|
+
|
|
391
856
|
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_async_to_generator.js
|
|
392
857
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
393
858
|
try {
|
|
@@ -557,91 +1022,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
557
1022
|
}
|
|
558
1023
|
});
|
|
559
1024
|
|
|
560
|
-
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js
|
|
561
|
-
function _iterable_to_array_limit(arr, i61) {
|
|
562
|
-
var _i2 = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
563
|
-
if (_i2 == null) return;
|
|
564
|
-
var _arr = [];
|
|
565
|
-
var _n3 = true;
|
|
566
|
-
var _d = false;
|
|
567
|
-
var _s3, _e2;
|
|
568
|
-
try {
|
|
569
|
-
for (_i2 = _i2.call(arr); !(_n3 = (_s3 = _i2.next()).done); _n3 = true) {
|
|
570
|
-
_arr.push(_s3.value);
|
|
571
|
-
if (i61 && _arr.length === i61) break;
|
|
572
|
-
}
|
|
573
|
-
} catch (err) {
|
|
574
|
-
_d = true;
|
|
575
|
-
_e2 = err;
|
|
576
|
-
} finally {
|
|
577
|
-
try {
|
|
578
|
-
if (!_n3 && _i2["return"] != null) _i2["return"]();
|
|
579
|
-
} finally {
|
|
580
|
-
if (_d) throw _e2;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
return _arr;
|
|
584
|
-
}
|
|
585
|
-
var init_iterable_to_array_limit = __esm({
|
|
586
|
-
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js"() {
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
|
|
590
|
-
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_sliced_to_array.js
|
|
591
|
-
function _sliced_to_array(arr, i61) {
|
|
592
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i61) || _unsupported_iterable_to_array(arr, i61) || _non_iterable_rest();
|
|
593
|
-
}
|
|
594
|
-
var init_sliced_to_array = __esm({
|
|
595
|
-
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_sliced_to_array.js"() {
|
|
596
|
-
init_array_with_holes();
|
|
597
|
-
init_iterable_to_array_limit();
|
|
598
|
-
init_non_iterable_rest();
|
|
599
|
-
init_unsupported_iterable_to_array();
|
|
600
|
-
}
|
|
601
|
-
});
|
|
602
|
-
|
|
603
|
-
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_array_without_holes.js
|
|
604
|
-
function _array_without_holes(arr) {
|
|
605
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
606
|
-
}
|
|
607
|
-
var init_array_without_holes = __esm({
|
|
608
|
-
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_array_without_holes.js"() {
|
|
609
|
-
init_array_like_to_array();
|
|
610
|
-
}
|
|
611
|
-
});
|
|
612
|
-
|
|
613
|
-
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_non_iterable_spread.js
|
|
614
|
-
function _non_iterable_spread() {
|
|
615
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
616
|
-
}
|
|
617
|
-
var init_non_iterable_spread = __esm({
|
|
618
|
-
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_non_iterable_spread.js"() {
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_to_consumable_array.js
|
|
623
|
-
function _to_consumable_array(arr) {
|
|
624
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
625
|
-
}
|
|
626
|
-
var init_to_consumable_array = __esm({
|
|
627
|
-
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_to_consumable_array.js"() {
|
|
628
|
-
init_array_without_holes();
|
|
629
|
-
init_iterable_to_array();
|
|
630
|
-
init_non_iterable_spread();
|
|
631
|
-
init_unsupported_iterable_to_array();
|
|
632
|
-
}
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
// ../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_type_of.js
|
|
636
|
-
function _type_of(obj) {
|
|
637
|
-
"@swc/helpers - typeof";
|
|
638
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
639
|
-
}
|
|
640
|
-
var init_type_of = __esm({
|
|
641
|
-
"../../../.yarn/cache/@swc-helpers-npm-0.5.17-303e8d89cf-fe1f33ebb9.zip/node_modules/@swc/helpers/esm/_type_of.js"() {
|
|
642
|
-
}
|
|
643
|
-
});
|
|
644
|
-
|
|
645
1025
|
// ../../../.yarn/cache/tslib-npm-2.8.1-fd69b02284-9c4759110a.zip/node_modules/tslib/tslib.es6.mjs
|
|
646
1026
|
function __generator(thisArg, body) {
|
|
647
1027
|
var _16 = {
|
|
@@ -748,17 +1128,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
748
1128
|
}
|
|
749
1129
|
});
|
|
750
1130
|
|
|
751
|
-
// protocol-virtual-shared:react
|
|
752
|
-
var require_react = __commonJS({
|
|
753
|
-
"protocol-virtual-shared:react"(exports, module) {
|
|
754
|
-
var sharedModule = global.__MICRO_FRONTEND__.__SHARED__["react"];
|
|
755
|
-
if (sharedModule == null) {
|
|
756
|
-
throw new Error("'react' is not registered in the shared registry");
|
|
757
|
-
}
|
|
758
|
-
module.exports = sharedModule.get();
|
|
759
|
-
}
|
|
760
|
-
});
|
|
761
|
-
|
|
762
1131
|
// protocol-virtual-shared:react-native
|
|
763
1132
|
var require_react_native = __commonJS({
|
|
764
1133
|
"protocol-virtual-shared:react-native"(exports, module) {
|
|
@@ -11703,7 +12072,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11703
12072
|
params: params.params
|
|
11704
12073
|
});
|
|
11705
12074
|
}
|
|
11706
|
-
var import_brick_module2, import_brick_module3, import_brick_module4, import_react_native34, import_react_native35, import_react_native36, import_react_native37, MiniAppModule,
|
|
12075
|
+
var import_brick_module2, import_brick_module3, import_brick_module4, import_react_native34, import_react_native35, import_react_native36, import_react_native37, MiniAppModule, TossCoreModule, CommonModule, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage, GAME_CENTER_MIN_VERSION, GET_SERVER_TIME_MIN_VERSION, MIN_VERSION, GoogleAdMob, CommonModule2, INTERNAL__module;
|
|
11707
12076
|
var init_dist5 = __esm({
|
|
11708
12077
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/dist/index.js"() {
|
|
11709
12078
|
"use strict";
|
|
@@ -11742,8 +12111,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11742
12111
|
import_react_native36 = __toESM(require_react_native(), 1);
|
|
11743
12112
|
import_react_native37 = __toESM(require_react_native(), 1);
|
|
11744
12113
|
MiniAppModule = import_brick_module2.BrickModule.get("MiniAppModule");
|
|
11745
|
-
|
|
11746
|
-
|
|
12114
|
+
TossCoreModule = import_brick_module3.BrickModule.get("TossCoreModule");
|
|
12115
|
+
CommonModule = import_brick_module4.BrickModule.get("CommonModule");
|
|
11747
12116
|
UpdateLocationEvent = /* @__PURE__ */ function(GraniteEventDefinition3) {
|
|
11748
12117
|
"use strict";
|
|
11749
12118
|
_inherits(UpdateLocationEvent3, GraniteEventDefinition3);
|
|
@@ -42887,23 +43256,32 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
42887
43256
|
});
|
|
42888
43257
|
|
|
42889
43258
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/spec/MiniAppModule.brick.ts
|
|
43259
|
+
var import_brick_module5, MiniAppModule2;
|
|
42890
43260
|
var init_MiniAppModule_brick = __esm({
|
|
42891
43261
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/spec/MiniAppModule.brick.ts"() {
|
|
42892
43262
|
"use strict";
|
|
43263
|
+
import_brick_module5 = __toESM(require_ait_rn72_brick_module_compat(), 1);
|
|
43264
|
+
MiniAppModule2 = import_brick_module5.BrickModule.get("MiniAppModule");
|
|
42893
43265
|
}
|
|
42894
43266
|
});
|
|
42895
43267
|
|
|
42896
43268
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/spec/TossCoreModule.brick.ts
|
|
43269
|
+
var import_brick_module6, TossCoreModule2;
|
|
42897
43270
|
var init_TossCoreModule_brick = __esm({
|
|
42898
43271
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/spec/TossCoreModule.brick.ts"() {
|
|
42899
43272
|
"use strict";
|
|
43273
|
+
import_brick_module6 = __toESM(require_ait_rn72_brick_module_compat(), 1);
|
|
43274
|
+
TossCoreModule2 = import_brick_module6.BrickModule.get("TossCoreModule");
|
|
42900
43275
|
}
|
|
42901
43276
|
});
|
|
42902
43277
|
|
|
42903
43278
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/spec/CommonModule.brick.ts
|
|
43279
|
+
var import_brick_module7, CommonModule3;
|
|
42904
43280
|
var init_CommonModule_brick = __esm({
|
|
42905
43281
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/spec/CommonModule.brick.ts"() {
|
|
42906
43282
|
"use strict";
|
|
43283
|
+
import_brick_module7 = __toESM(require_ait_rn72_brick_module_compat(), 1);
|
|
43284
|
+
CommonModule3 = import_brick_module7.BrickModule.get("CommonModule");
|
|
42907
43285
|
}
|
|
42908
43286
|
});
|
|
42909
43287
|
|
|
@@ -42914,32 +43292,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
42914
43292
|
function safeSyncPostMessage2(method, params) {
|
|
42915
43293
|
return MiniAppModule2.postMessageSync(method, params, {});
|
|
42916
43294
|
}
|
|
42917
|
-
var import_brick_module5, MiniAppModule2;
|
|
42918
43295
|
var init_postMessage = __esm({
|
|
42919
43296
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/postMessage.ts"() {
|
|
42920
43297
|
"use strict";
|
|
42921
|
-
|
|
42922
|
-
MiniAppModule2 = import_brick_module5.BrickModule.get("MiniAppModule");
|
|
43298
|
+
init_MiniAppModule_brick();
|
|
42923
43299
|
}
|
|
42924
43300
|
});
|
|
42925
43301
|
|
|
42926
43302
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/BedrockModule/commonModule.ts
|
|
42927
|
-
var import_brick_module6, CommonModule3;
|
|
42928
43303
|
var init_commonModule = __esm({
|
|
42929
43304
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/BedrockModule/commonModule.ts"() {
|
|
42930
43305
|
"use strict";
|
|
42931
|
-
|
|
42932
|
-
CommonModule3 = import_brick_module6.BrickModule.get("CommonModule");
|
|
42933
|
-
}
|
|
42934
|
-
});
|
|
42935
|
-
|
|
42936
|
-
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/TossCoreModule/instance.ts
|
|
42937
|
-
var import_brick_module7, TossCoreModule2;
|
|
42938
|
-
var init_instance = __esm({
|
|
42939
|
-
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/TossCoreModule/instance.ts"() {
|
|
42940
|
-
"use strict";
|
|
42941
|
-
import_brick_module7 = __toESM(require_ait_rn72_brick_module_compat(), 1);
|
|
42942
|
-
TossCoreModule2 = import_brick_module7.BrickModule.get("TossCoreModule");
|
|
43306
|
+
init_CommonModule_brick();
|
|
42943
43307
|
}
|
|
42944
43308
|
});
|
|
42945
43309
|
|
|
@@ -42952,7 +43316,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
42952
43316
|
init_CommonModule_brick();
|
|
42953
43317
|
init_postMessage();
|
|
42954
43318
|
init_commonModule();
|
|
42955
|
-
init_instance();
|
|
42956
43319
|
}
|
|
42957
43320
|
});
|
|
42958
43321
|
|
|
@@ -45093,7 +45456,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45093
45456
|
"../user-scripts/dist/index.mjs"() {
|
|
45094
45457
|
"use strict";
|
|
45095
45458
|
e62 = '"use strict";(()=>{var e=document.createElement("style");e.textContent=`\n*:not(input):not(textarea) {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-touch-callout: none;\n}\n`;document.head.appendChild(e);})();\n';
|
|
45096
|
-
t53 = '"use strict";(()=>{var de=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},w=new de,O=()=>Math.random().toString(36).substring(2,15),B=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=O(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(w.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(w.on(`${e}/reject/${r}`,i=>{o(),a(B(i))})),w.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function R(e){return t=>{let r=O(),n=[w.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),w.on(`${e}/onError/${r}`,o=>{t.onError(B(o))})];return w.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{w.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function g(e){return()=>w.getConstant(e)}var ue=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=ue());var Xe=d("closeView"),Ye=d("generateHapticFeedback"),Ze=d("share"),Qe=d("setSecureScreen"),et=d("setScreenAwakeMode"),tt=d("getNetworkStatus"),rt=d("setIosSwipeGestureEnabled"),nt=d("openURL"),ot=d("openPermissionDialog"),st=d("getPermission"),at=d("requestPermission"),it=g("setClipboardText"),ct=g("getClipboardText"),dt=g("fetchContacts"),ut=g("fetchAlbumPhotos"),pt=g("getCurrentLocation"),mt=g("openCamera"),lt=d("appLogin"),gt=d("eventLog"),ft=d("getTossShareLink"),vt=d("setDeviceOrientation"),wt=d("checkoutPayment"),ht=d("saveBase64Data"),Et=d("appsInTossSignTossCert"),bt=d("getGameCenterGameProfile"),At=d("openGameCenterLeaderboard"),_t=d("submitGameCenterLeaderBoardScore"),St=d("getUserKeyForGame"),Ct=d("grantPromotionReward"),It=d("grantPromotionRewardForGame"),Tt=d("getIsTossLoginIntegratedService"),yt=d("getServerTime"),Lt=d("requestReview"),Rt=g("getLocale"),Pt=g("getSchemeUri"),xt=g("getPlatformOS"),Dt=g("getOperationalEnvironment"),Nt=g("getTossAppVersion"),Mt=g("getDeviceId"),Ft=g("getGroupId"),kt=R("contactsViral"),Gt=R("startUpdateLocation"),Ot=R("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},V=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},H=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},q=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var k=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},U=k,W=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var pe=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},h=new pe,te=()=>Math.random().toString(36).substring(2,15),re=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=te(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(h.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(h.on(`${e}/reject/${r}`,i=>{o(),a(re(i))})),h.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function E(e){return t=>{let r=te(),n=[h.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),h.on(`${e}/onError/${r}`,o=>{t.onError(re(o))})];return h.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{h.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>h.getConstant(e)}var Kt={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},me=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,$=e=>["*","x","X"].includes(e),j=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},le=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],ge=(e,t)=>{if($(e)||$(t))return 0;let[r,n]=le(j(e),j(t));return r>n?1:r<n?-1:0},K=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(me);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},J=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=ge(o,s);if(a!==0)return a}return 0},fe=(e,t)=>{let r=K(e),n=K(t),o=r.pop(),s=n.pop(),a=J(r,n);return a!==0?a:o&&s?J(o.split("."),s.split(".")):o?-1:s?1:0};function G(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:fe(r,o)>=0}function X(e){return c("processProductGrant")(e)}var Jt={createOneTimePurchaseOrder:e=>{let t=G({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=G({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?E("requestOneTimePurchase")({options:{sku:i},onEvent:async l=>{if(l.type==="purchased"){let m=await o.processProductGrant({orderId:l.data.orderId});await X({orderId:l.data.orderId,isProductGranted:m}).catch(a)}else s(l)},onError:l=>{a(l)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(m=>{Promise.resolve(o.processProductGrant({orderId:m.orderId})).then(()=>{s({type:"success",data:m})}).catch(f=>{a(f)})}).catch(m=>{a(m)}),r)},createSubscriptionPurchaseOrder:e=>{let t=G({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:u}=n;return E("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async m=>{if(m.type==="purchased"){let f=await u({orderId:m.data.orderId,subscriptionId:m.data.subscriptionId});await X({orderId:m.data.orderId,isProductGranted:f}).catch(s)}else o(m)},onError:m=>{s(m)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},Xt=p("getSafeAreaInsets");var Yt=p("getSafeAreaInsets");var Zt={loadAppsInTossAdMob:Object.assign(E("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(E("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var Qt={getDeploymentId:p("getDeploymentId")},er=p("deploymentId"),tr=p("brandDisplayName"),rr=p("brandIcon"),nr=p("brandPrimaryColor");var or={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},ve=c("requestPermission"),we=c("getPermission"),he=c("openPermissionDialog");function C({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await ve(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>we(e),n.openPermissionDialog=()=>he(e),n}var ar=C({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:V}),cr=C({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:H}),ur=C({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:k}),mr=C({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:q}),gr=C({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:z}),vr=C({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:W}),Ee=c("getPermission"),be=c("openPermissionDialog"),ne=e=>E("updateLocationEvent")({...e,onError:t=>{let r=new U;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ne.getPermission=()=>Ee({name:"geolocation",access:"access"});ne.openPermissionDialog=()=>be({name:"geolocation",access:"access"});var hr=Object.assign(E("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Er=Object.assign(E("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),Ae=c("openURL");function _e(e){let t=Se(e);return Ae(t)}function Se(e){return["http://","https://"].some(r=>e.startsWith(r))?Ce(e):e}function Ce(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var Y="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",Z=15e3,P=null;function _(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Ie(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=_();if(e)return Promise.resolve(e);if(P)return P;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(u),P=null},a=()=>{let l=_();if(l){s(),r(l);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${Y}.`))},u=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${Z}ms.`))},Z);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=Y,document.head.appendChild(o)});return P=t,t}var A=Object.assign(E("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Te=c("tossAdEventLog"),ye=new Set(["1","2"]);function Le(e){return new Promise((t,r)=>{if(!A.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}return A({options:e,onEvent:t,onError:r})})}function Q(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>ye.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Re(e){return Pe(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:Q(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:xe(e)?{resultType:"SUCCESS",success:Q(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Pe(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function xe(e){return!!(e&&typeof e=="object"&&"ads"in e)}function De(){return async(e,t)=>{try{let r=await Le({adGroupId:t.spaceUnitId,sdkId:"108",availableStyleIds:["1","2"]});return Re(r)}catch(r){return{resultType:"FAIL",error:{reason:r instanceof Error?r.message:"Unknown fetchTossAd error"}}}}}var L=null;function Ne(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(_()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Ie().then(a=>{if(a.isInitialized())return;let u={environment:"live",customAdFetcher:De(),opener:_e};a.init(u)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function Me(e,t,r={}){let{callbacks:n}=r,o=s=>{let a=s instanceof Error?s:new Error(String(s));n?.onAdFailedToRender?.({slotId:"",adGroupId:e,adMetadata:{},error:{code:0,message:a.message}})};try{let s=e,a=_();if(!a)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!a.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let i=typeof t=="string"?document.querySelector(t):t;if(!i)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let u={spaceId:s,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:oe(e,r.callbacks)};a.banner.createSlot(i,u)}catch(s){o(s)}}var Fe="16px 20px",ke="20px",Ge="auto",Oe="blackAndWhite",Be="expanded",v="toss-ads-attach",ee="toss-ads-attach-style";function Ve(e){let t=e.ownerDocument;if(!t||t.getElementById(ee))return;let r=t.createElement("style");r.id=ee,r.textContent=`\n .${v} { background: #ffffff; }\n .${v}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${v} { background: #17171c; }\n .${v}.toss-ads-tone-grey { background: #101013; }\n }\n .${v}.toss-ads-theme-light { background: #ffffff; }\n .${v}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${v}.toss-ads-theme-dark { background: #17171c; }\n .${v}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function He(e,t,r={}){let{callbacks:n,theme:o=Ge,tone:s=Oe,variant:a=Be}=r,i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.boxSizing="border-box",i.style.display="flex",i.style.flexDirection="column",i.style.justifyContent="center",i.style.overflow="hidden",a==="card"&&(i.style.padding="0 10px");let u=document.createElement("div");u.classList.add(v),s==="grey"&&u.classList.add("toss-ads-tone-grey"),o==="light"?u.classList.add("toss-ads-theme-light"):o==="dark"&&u.classList.add("toss-ads-theme-dark"),a==="card"&&(u.style.borderRadius="16px",u.style.overflow="hidden"),i.appendChild(u);let l=!1,m=null,f=b=>{let y=b instanceof Error?b:new Error(String(b));n?.onAdFailedToRender?.({slotId:"",adGroupId:e,adMetadata:{},error:{code:0,message:y.message}})},ae=oe(e,n);try{let b=e,y=_();if(!y)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!y.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let F=typeof t=="string"?document.querySelector(t):t;if(!F)throw new Error(`[toss-ad] Failed to find target element: ${t}`);Ve(F),F.appendChild(i),l=!0;let ie={spaceId:b,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:ce=>ce==="1"?Fe:ke,callbacks:ae};m=y.banner.createSlot(u,ie)}catch(b){l&&i.parentNode&&i.parentNode.removeChild(i),f(b)}return{destroy(){m?.destroy(),l&&i.parentNode&&i.parentNode.removeChild(i)}}}function qe(e){let t=_();t?.banner&&t.banner.destroy(e)}function Ue(){let e=_();e?.banner&&e.banner.destroyAll()}function oe(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Te({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var br={initialize:Object.assign(Ne,{isSupported:A.isSupported}),attach:Object.assign(Me,{isSupported:A.isSupported}),attachBanner:Object.assign(He,{isSupported:A.isSupported}),destroy:Object.assign(qe,{isSupported:A.isSupported}),destroyAll:Object.assign(Ue,{isSupported:A.isSupported})},Ar=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),_r=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var x=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var D=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new D,debugLogger:new x};var I=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function N(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),N(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!I.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let l=i.headers.get("ETag"),m=i.headers.get("Last-Modified");l&&s.headers.set("If-None-Match",l),m&&s.headers.set("If-Modified-Since",m);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let u=await r.call(n,s);return a.put(s,u.clone()),u})})();N(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var se=window.__appsInToss.debugLogger;se.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};se.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{I.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!I.test(n.url))return;let a=await s.clone().blob().then(u=>T(u.size/1024,2)).catch(u=>(r({request:n,requestAt:o,error:u}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{I.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var M=[];function We(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){M.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function ze(){if(M.length===0)return;let e=M;M=[];let t=$e(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function $e(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>We(),1e3);setInterval(()=>ze(),3e5);})();\n';
|
|
45459
|
+
t53 = '"use strict";(()=>{var fe=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new fe,q=()=>Math.random().toString(36).substring(2,15),z=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=q(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a(z(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=q(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError(z(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var ve=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=ve());var at=c("closeView"),it=c("generateHapticFeedback"),dt=c("share"),ct=c("setSecureScreen"),ut=c("setScreenAwakeMode"),pt=c("getNetworkStatus"),mt=c("setIosSwipeGestureEnabled"),lt=c("openURL"),gt=c("openPermissionDialog"),ft=c("getPermission"),vt=c("requestPermission"),ht=v("setClipboardText"),wt=v("getClipboardText"),Et=v("fetchContacts"),bt=v("fetchAlbumPhotos"),At=v("getCurrentLocation"),_t=v("openCamera"),Ct=c("appLogin"),St=c("eventLog"),It=c("getTossShareLink"),Tt=c("setDeviceOrientation"),yt=c("checkoutPayment"),Rt=c("saveBase64Data"),Lt=c("appsInTossSignTossCert"),Pt=c("getGameCenterGameProfile"),xt=c("openGameCenterLeaderboard"),Dt=c("submitGameCenterLeaderBoardScore"),Nt=c("getUserKeyForGame"),Mt=c("grantPromotionReward"),Ft=c("grantPromotionRewardForGame"),Gt=c("getIsTossLoginIntegratedService"),Bt=c("getServerTime"),kt=c("requestReview"),Ot=v("getLocale"),Vt=v("getSchemeUri"),Ht=v("getPlatformOS"),Ut=v("getOperationalEnvironment"),Wt=v("getTossAppVersion"),qt=v("getDeviceId"),zt=v("getGroupId"),$t=D("contactsViral"),jt=D("startUpdateLocation"),Kt=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},$=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},j=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=V,X=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Y=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var he=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},b=new he,ie=()=>Math.random().toString(36).substring(2,15),de=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=ie(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(b.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(b.on(`${e}/reject/${r}`,i=>{o(),a(de(i))})),b.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function A(e){return t=>{let r=ie(),n=[b.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),b.on(`${e}/onError/${r}`,o=>{t.onError(de(o))})];return b.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{b.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>b.getConstant(e)}var or={getItem:d("getStorageItem"),setItem:d("setStorageItem"),removeItem:d("removeStorageItem"),clearItems:d("clearItems")},we=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Z=e=>["*","x","X"].includes(e),Q=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ee=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Z(e)||Z(t))return 0;let[r,n]=Ee(Q(e),Q(t));return r>n?1:r<n?-1:0},ee=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(we);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},te=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},Ae=(e,t)=>{let r=ee(e),n=ee(t),o=r.pop(),s=n.pop(),a=te(r,n);return a!==0?a:o&&s?te(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:Ae(r,o)>=0}function re(e){return d("processProductGrant")(e)}var sr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?A("requestOneTimePurchase")({options:{sku:i},onEvent:async l=>{if(l.type==="purchased"){let u=await o.processProductGrant({orderId:l.data.orderId});await re({orderId:l.data.orderId,isProductGranted:u}).catch(a)}else s(l)},onError:l=>{a(l)}}):(d("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:m}=n;return A("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await m({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await re({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:d("iapGetProductItemList"),getPendingOrders:d("getPendingOrders"),getCompletedOrRefundedOrders:d("getCompletedOrRefundedOrders"),completeProductGrant:d("completeProductGrant"),getSubscriptionInfo:d("getSubscriptionInfo")},ar=p("getSafeAreaInsets");var ir=p("getSafeAreaInsets");var dr={loadAppsInTossAdMob:Object.assign(A("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(A("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(d("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var cr={getDeploymentId:p("getDeploymentId")},ur=p("deploymentId"),pr=p("brandDisplayName"),mr=p("brandIcon"),lr=p("brandPrimaryColor");var gr={addAccessoryButton:d("addAccessoryButton"),removeAccessoryButton:d("removeAccessoryButton")},_e=d("requestPermission"),Ce=d("getPermission"),Se=d("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await _e(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Ce(e),n.openPermissionDialog=()=>Se(e),n}var vr=I({handler:e=>d("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:$}),wr=I({handler:e=>d("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:j}),br=I({handler:e=>d("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),_r=I({handler:e=>d("openCamera")(e),permission:{name:"camera",access:"access"},error:K}),Sr=I({handler:e=>d("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Y}),Tr=I({handler:()=>d("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:X}),Ie=d("getPermission"),Te=d("openPermissionDialog"),ce=e=>A("updateLocationEvent")({...e,onError:t=>{let r=new J;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ce.getPermission=()=>Ie({name:"geolocation",access:"access"});ce.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Rr=Object.assign(A("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Lr=Object.assign(A("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function ye(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Re(){P=new WeakMap}var Le=d("openURL");function Pe(e){let t=xe(e);return Le(t)}function xe(e){return["http://","https://"].some(r=>e.startsWith(r))?De(e):e}function De(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var ne="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",oe=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Ne(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(m),N=null},a=()=>{let l=C();if(l){s(),r(l);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${ne}.`))},m=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${oe}ms.`))},oe);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=ne,document.head.appendChild(o)});return N=t,t}var _=Object.assign(A("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Me=d("tossAdEventLog"),Fe=new Set(["1","2"]),ue="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function U(){return new Error(ue)}function Ge(){return{resultType:"FAIL",error:{reason:ue}}}function Be(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(U());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function se(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Fe.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function ke(e){return Oe(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:se(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:Ve(e)?{resultType:"SUCCESS",success:se(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Oe(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function Ve(e){return!!(e&&typeof e=="object"&&"ads"in e)}function He(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Ge();try{let n=await Be({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return ke(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function Ue(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Ne().then(a=>{if(a.isInitialized())return;let m={environment:"live",customAdFetcher:He(),opener:Pe};a.init(m)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw U();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let m=typeof t=="string"?document.querySelector(t):t;if(!m)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let l={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:me(o,r.callbacks)};i.banner.createSlot(m,l)}catch(a){s(a)}}var qe="16px 20px",ze="20px",$e="auto",je="blackAndWhite",Ke="expanded",h="toss-ads-attach",ae="toss-ads-attach-style",pe="data-toss-ads-attach-banner-wrapper";function Je(e){let t=e.ownerDocument;if(!t||t.getElementById(ae))return;let r=t.createElement("style");r.id=ae,r.textContent=`\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Xe(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(pe)==="true"&&e.removeChild(t)})}function Ye(e,t,r={}){let{callbacks:n,theme:o=$e,tone:s=je,variant:a=Ke}=r,i=M(e),m=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},l=me(i,n);try{let u=i;if(u.length===0)throw U();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return ye(R,()=>{let g=document.createElement("div");g.style.width="100%",g.style.height="100%",g.style.boxSizing="border-box",g.style.display="flex",g.style.flexDirection="column",g.style.justifyContent="center",g.style.overflow="hidden",g.setAttribute(pe,"true"),a==="card"&&(g.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),g.appendChild(w);let x=!1,W=null;try{Je(R),Xe(R),R.appendChild(g),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:ge=>ge==="1"?qe:ze,callbacks:l};W=f.banner.createSlot(w,O)}catch(O){throw x&&g.parentNode&&g.parentNode.removeChild(g),O}return{destroy(){W?.destroy(),x&&g.parentNode&&g.parentNode.removeChild(g),x=!1}}})}catch(u){return m(u),{destroy(){}}}}function Ze(e){let t=C();t?.banner&&t.banner.destroy(e)}function Qe(){let e=C();e?.banner&&(e.banner.destroyAll(),Re())}function me(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Me({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Pr={initialize:Object.assign(Ue,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ye,{isSupported:_.isSupported}),destroy:Object.assign(Ze,{isSupported:_.isSupported}),destroyAll:Object.assign(Qe,{isSupported:_.isSupported})},xr=Object.assign(d("getServerTime"),{isSupported:p("getServerTime_isSupported")}),Dr=Object.assign(d("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=d("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var T=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!T.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let l=i.headers.get("ETag"),u=i.headers.get("Last-Modified");l&&s.headers.set("If-None-Match",l),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let m=await r.call(n,s);return a.put(s,m.clone()),m})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var le=window.__appsInToss.debugLogger;le.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};le.log("load_complete",{isNavigationDebugSupported:r,...n})});function y(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:y(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:y(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:y(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{T.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!T.test(n.url))return;let a=await s.clone().blob().then(m=>y(m.size/1024,2)).catch(m=>(r({request:n,requestAt:o,error:m}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{T.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function et(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function tt(){if(k.length===0)return;let e=k;k=[];let t=rt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function rt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>et(),1e3);setInterval(()=>tt(),3e5);})();\n';
|
|
45097
45460
|
}
|
|
45098
45461
|
});
|
|
45099
45462
|
|
|
@@ -46269,6 +46632,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46269
46632
|
}
|
|
46270
46633
|
function noop4() {
|
|
46271
46634
|
}
|
|
46635
|
+
function normalizeAdGroupId(adGroupId) {
|
|
46636
|
+
return adGroupId.trim();
|
|
46637
|
+
}
|
|
46638
|
+
function createInvalidAdGroupIdError() {
|
|
46639
|
+
return new Error(INVALID_AD_GROUP_ID_ERROR_MESSAGE);
|
|
46640
|
+
}
|
|
46272
46641
|
function generateSessionId() {
|
|
46273
46642
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c41) {
|
|
46274
46643
|
var r50 = Math.random() * 16 | 0;
|
|
@@ -46282,7 +46651,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46282
46651
|
return noop4;
|
|
46283
46652
|
}
|
|
46284
46653
|
var onEvent = params.onEvent, onError = params.onError, options = params.options;
|
|
46285
|
-
var adGroupId = options.adGroupId;
|
|
46654
|
+
var adGroupId = normalizeAdGroupId(options.adGroupId);
|
|
46655
|
+
if (adGroupId.length === 0) {
|
|
46656
|
+
params.onError(createInvalidAdGroupIdError());
|
|
46657
|
+
return noop4;
|
|
46658
|
+
}
|
|
46286
46659
|
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
46287
46660
|
spaceUnitId: adGroupId,
|
|
46288
46661
|
sessionId,
|
|
@@ -46352,17 +46725,27 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46352
46725
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46353
46726
|
return noop4;
|
|
46354
46727
|
}
|
|
46728
|
+
var normalizedAdGroupId = normalizeAdGroupId(params.options.adGroupId);
|
|
46729
|
+
if (normalizedAdGroupId.length === 0) {
|
|
46730
|
+
params.onError(createInvalidAdGroupIdError());
|
|
46731
|
+
return noop4;
|
|
46732
|
+
}
|
|
46733
|
+
var normalizedParams = _object_spread_props(_object_spread({}, params), {
|
|
46734
|
+
options: _object_spread_props(_object_spread({}, params.options), {
|
|
46735
|
+
adGroupId: normalizedAdGroupId
|
|
46736
|
+
})
|
|
46737
|
+
});
|
|
46355
46738
|
if (!integratedAdIsSupported()) {
|
|
46356
|
-
return GoogleAdMob.loadAppsInTossAdMob(_object_spread_props(_object_spread({},
|
|
46739
|
+
return GoogleAdMob.loadAppsInTossAdMob(_object_spread_props(_object_spread({}, normalizedParams), {
|
|
46357
46740
|
onEvent: function(event) {
|
|
46358
46741
|
if (event.type === "loaded") {
|
|
46359
46742
|
var _ref;
|
|
46360
46743
|
var _event_data_responseInfo_loadedAdNetworkInfo;
|
|
46361
46744
|
var requestId = generateRequestId();
|
|
46362
|
-
INTG_AD_ADM_FALLBACK_RID_MAP[
|
|
46745
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[normalizedAdGroupId] = requestId;
|
|
46363
46746
|
postEventTracking({
|
|
46364
46747
|
eventName: "LOAD",
|
|
46365
|
-
spaceUnitId:
|
|
46748
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46366
46749
|
requestId,
|
|
46367
46750
|
responseId: event.data.responseInfo.responseId,
|
|
46368
46751
|
mediationType: "ADMOB",
|
|
@@ -46371,14 +46754,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46371
46754
|
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46372
46755
|
});
|
|
46373
46756
|
}
|
|
46374
|
-
return
|
|
46757
|
+
return normalizedParams.onEvent(event);
|
|
46375
46758
|
},
|
|
46376
46759
|
onError: function(error) {
|
|
46377
|
-
var
|
|
46378
|
-
var requestId = (
|
|
46760
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId;
|
|
46761
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[normalizedAdGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId : "";
|
|
46379
46762
|
postEventTracking({
|
|
46380
46763
|
eventName: "FAILED_TO_LOAD",
|
|
46381
|
-
spaceUnitId:
|
|
46764
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46382
46765
|
requestId,
|
|
46383
46766
|
responseId: "",
|
|
46384
46767
|
mediationType: "ADMOB",
|
|
@@ -46386,11 +46769,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46386
46769
|
adSourceName: "",
|
|
46387
46770
|
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46388
46771
|
});
|
|
46389
|
-
return
|
|
46772
|
+
return normalizedParams.onError(error);
|
|
46390
46773
|
}
|
|
46391
46774
|
}));
|
|
46392
46775
|
}
|
|
46393
|
-
var onEvent =
|
|
46776
|
+
var onEvent = normalizedParams.onEvent, onError = normalizedParams.onError, options = normalizedParams.options;
|
|
46394
46777
|
var adGroupId = options.adGroupId;
|
|
46395
46778
|
var referrer2 = getReferrer3();
|
|
46396
46779
|
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
@@ -46418,16 +46801,26 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46418
46801
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46419
46802
|
return noop4;
|
|
46420
46803
|
}
|
|
46804
|
+
var normalizedAdGroupId = normalizeAdGroupId(params.options.adGroupId);
|
|
46805
|
+
if (normalizedAdGroupId.length === 0) {
|
|
46806
|
+
params.onError(createInvalidAdGroupIdError());
|
|
46807
|
+
return noop4;
|
|
46808
|
+
}
|
|
46809
|
+
var normalizedParams = _object_spread_props(_object_spread({}, params), {
|
|
46810
|
+
options: _object_spread_props(_object_spread({}, params.options), {
|
|
46811
|
+
adGroupId: normalizedAdGroupId
|
|
46812
|
+
})
|
|
46813
|
+
});
|
|
46421
46814
|
if (!integratedAdIsSupported()) {
|
|
46422
|
-
return GoogleAdMob.showAppsInTossAdMob(_object_spread_props(_object_spread({},
|
|
46815
|
+
return GoogleAdMob.showAppsInTossAdMob(_object_spread_props(_object_spread({}, normalizedParams), {
|
|
46423
46816
|
onEvent: function(event) {
|
|
46424
|
-
var
|
|
46425
|
-
var requestId = (
|
|
46817
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId;
|
|
46818
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[normalizedAdGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId : "";
|
|
46426
46819
|
switch (event.type) {
|
|
46427
46820
|
case "show":
|
|
46428
46821
|
postEventTracking({
|
|
46429
46822
|
eventName: "SHOW",
|
|
46430
|
-
spaceUnitId:
|
|
46823
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46431
46824
|
requestId,
|
|
46432
46825
|
responseId: "",
|
|
46433
46826
|
mediationType: "ADMOB",
|
|
@@ -46439,7 +46832,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46439
46832
|
case "failedToShow":
|
|
46440
46833
|
postEventTracking({
|
|
46441
46834
|
eventName: "FAILED_TO_SHOW",
|
|
46442
|
-
spaceUnitId:
|
|
46835
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46443
46836
|
requestId,
|
|
46444
46837
|
responseId: "",
|
|
46445
46838
|
mediationType: "ADMOB",
|
|
@@ -46451,7 +46844,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46451
46844
|
case "impression":
|
|
46452
46845
|
postEventTracking({
|
|
46453
46846
|
eventName: "IMP",
|
|
46454
|
-
spaceUnitId:
|
|
46847
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46455
46848
|
requestId,
|
|
46456
46849
|
responseId: "",
|
|
46457
46850
|
mediationType: "ADMOB",
|
|
@@ -46463,7 +46856,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46463
46856
|
case "clicked":
|
|
46464
46857
|
postEventTracking({
|
|
46465
46858
|
eventName: "CLICK",
|
|
46466
|
-
spaceUnitId:
|
|
46859
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46467
46860
|
requestId,
|
|
46468
46861
|
responseId: "",
|
|
46469
46862
|
mediationType: "ADMOB",
|
|
@@ -46475,7 +46868,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46475
46868
|
case "dismissed":
|
|
46476
46869
|
postEventTracking({
|
|
46477
46870
|
eventName: "DISMISS",
|
|
46478
|
-
spaceUnitId:
|
|
46871
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46479
46872
|
requestId,
|
|
46480
46873
|
responseId: "",
|
|
46481
46874
|
mediationType: "ADMOB",
|
|
@@ -46487,7 +46880,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46487
46880
|
case "userEarnedReward":
|
|
46488
46881
|
postEventTracking({
|
|
46489
46882
|
eventName: "USER_EARNED_REWARD",
|
|
46490
|
-
spaceUnitId:
|
|
46883
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46491
46884
|
requestId,
|
|
46492
46885
|
responseId: "",
|
|
46493
46886
|
mediationType: "ADMOB",
|
|
@@ -46497,14 +46890,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46497
46890
|
});
|
|
46498
46891
|
break;
|
|
46499
46892
|
}
|
|
46500
|
-
return
|
|
46893
|
+
return normalizedParams.onEvent(event);
|
|
46501
46894
|
},
|
|
46502
46895
|
onError: function(error) {
|
|
46503
|
-
var
|
|
46504
|
-
var requestId = (
|
|
46896
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId;
|
|
46897
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[normalizedAdGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_normalizedAdGroupId : "";
|
|
46505
46898
|
postEventTracking({
|
|
46506
46899
|
eventName: "FAILED_TO_SHOW",
|
|
46507
|
-
spaceUnitId:
|
|
46900
|
+
spaceUnitId: normalizedAdGroupId,
|
|
46508
46901
|
requestId,
|
|
46509
46902
|
responseId: "",
|
|
46510
46903
|
mediationType: "ADMOB",
|
|
@@ -46512,11 +46905,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46512
46905
|
adSourceName: "",
|
|
46513
46906
|
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46514
46907
|
});
|
|
46515
|
-
return
|
|
46908
|
+
return normalizedParams.onError(error);
|
|
46516
46909
|
}
|
|
46517
46910
|
}));
|
|
46518
46911
|
}
|
|
46519
|
-
var onEvent =
|
|
46912
|
+
var onEvent = normalizedParams.onEvent, onError = normalizedParams.onError, options = normalizedParams.options;
|
|
46520
46913
|
var adGroupId = options.adGroupId;
|
|
46521
46914
|
var referrer2 = getReferrer3();
|
|
46522
46915
|
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
@@ -47490,7 +47883,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47490
47883
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47491
47884
|
}));
|
|
47492
47885
|
}
|
|
47493
|
-
var import_react_native184, import_react178, import_react179, import_react180, import_react181, import_jsx_runtime216, import_react182, import_jsx_runtime217, import_react183, import_react_native190, import_react184, import_react_native192, import_react185, import_react_native194, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native197, import_react191, import_react192, import_react193, import_react_native202, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react194, import_jsx_runtime225, import_jsx_runtime226, import_react_native205, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react195, import_react_native207, import_react196, import_react_native208, import_react197, import_react_native210, import_jsx_runtime230, import_jsx_runtime231, import_react198, import_react199, import_jsx_runtime232, import_jsx_runtime233, import_react200, import_react201, import_react202, import_react203, import_react_native216, import_react204, import_react205, import_jsx_runtime234, import_react206, import_react_native219, import_react207, import_react_native220, import_jsx_runtime235, import_react208, import_react_native221, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION3, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
47886
|
+
var import_react_native184, import_react178, import_react179, import_react180, import_react181, import_jsx_runtime216, import_react182, import_jsx_runtime217, import_react183, import_react_native190, import_react184, import_react_native192, import_react185, import_react_native194, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native197, import_react191, import_react192, import_react193, import_react_native202, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react194, import_jsx_runtime225, import_jsx_runtime226, import_react_native205, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react195, import_react_native207, import_react196, import_react_native208, import_react197, import_react_native210, import_jsx_runtime230, import_jsx_runtime231, import_react198, import_react199, import_jsx_runtime232, import_jsx_runtime233, import_react200, import_react201, import_react202, import_react203, import_react_native216, import_react204, import_react205, import_jsx_runtime234, import_react206, import_react_native219, import_react207, import_react_native220, import_jsx_runtime235, import_react208, import_react_native221, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION3, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
47494
47887
|
var init_dist8 = __esm({
|
|
47495
47888
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47496
47889
|
"use strict";
|
|
@@ -48328,6 +48721,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48328
48721
|
]
|
|
48329
48722
|
});
|
|
48330
48723
|
});
|
|
48724
|
+
INVALID_AD_GROUP_ID_ERROR_MESSAGE = "\uC798\uBABB\uB41C \uC694\uCCAD\uC774\uC5D0\uC694. \uD544\uC694\uD55C \uAC12\uC774 \uBE44\uC5B4 \uC788\uC5B4\uC694.";
|
|
48331
48725
|
sessionId = generateSessionId();
|
|
48332
48726
|
ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48333
48727
|
IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
@@ -48348,8 +48742,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48348
48742
|
ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
48349
48743
|
LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
48350
48744
|
INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
48351
|
-
ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.
|
|
48352
|
-
IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.
|
|
48745
|
+
ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.247.0";
|
|
48746
|
+
IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.247.0";
|
|
48353
48747
|
UNSUPPORTED_ERROR_MESSAGE22 = "This feature is not supported in the current environment";
|
|
48354
48748
|
INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
48355
48749
|
loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
@@ -48856,6 +49250,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48856
49250
|
(0, import_runtime.exposeModule)(__container, "./ServiceEntry", app_exports);
|
|
48857
49251
|
|
|
48858
49252
|
// react-native/src/_app.tsx
|
|
49253
|
+
var import_react_19_compat = __toESM(require_react_19_compat());
|
|
48859
49254
|
init_dist8();
|
|
48860
49255
|
|
|
48861
49256
|
// react-native/context.ts
|