@redocly/openapi-docs 3.15.0-next.3 → 3.15.0-next.4
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/redocly-openapi-docs.min.js +240 -116
- package/lib/models/group.js +1 -1
- package/lib/models/types.d.ts +1 -0
- package/lib/services/menu/builder.js +1 -1
- package/lib/services/menu/tags.js +2 -2
- package/lib/services/types.d.ts +1 -0
- package/lib/types/open-api.d.ts +2 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2025 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: 3.15.0-next.
|
|
5
|
+
* Version: 3.15.0-next.4
|
|
6
6
|
**/function SU(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jU(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var a=function r(){var n=!1;try{n=this instanceof r}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var OU={exports:{}},Wy={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -284,6 +284,7 @@ Error generating stack: `+C.message+`
|
|
|
284
284
|
--tag-badge-border-width: 2px;
|
|
285
285
|
--tag-badge-border-color: var(--border-color-secondary); // @presenter Color
|
|
286
286
|
--tag-border-color-focused: var(--color-blue-4); // @presenter Color
|
|
287
|
+
--tag-close-button-bg-color-focus: var(--color-warm-grey-4); // @presenter Color
|
|
287
288
|
|
|
288
289
|
/**
|
|
289
290
|
* @tokens Tag spacing
|
|
@@ -330,6 +331,7 @@ Error generating stack: `+C.message+`
|
|
|
330
331
|
--tag-icon-width: 14px; // @presenter Spacing
|
|
331
332
|
--tag-icon-height: 14px; // @presenter Spacing
|
|
332
333
|
|
|
334
|
+
|
|
333
335
|
/**
|
|
334
336
|
* @tokens Tag colors
|
|
335
337
|
*/
|
|
@@ -425,8 +427,7 @@ Error generating stack: `+C.message+`
|
|
|
425
427
|
--tag-border-color-hover: var(--color-info-border-hover); // @presenter Color
|
|
426
428
|
}
|
|
427
429
|
|
|
428
|
-
.tag-purple
|
|
429
|
-
.tag-head {
|
|
430
|
+
.tag-purple {
|
|
430
431
|
--tag-color: var(--color-purple-7); // @presenter Color
|
|
431
432
|
--tag-bg-color: var(--color-purple-1); // @presenter Color
|
|
432
433
|
--tag-border-color: var(--color-purple-4); // @presenter Color
|
|
@@ -537,109 +538,125 @@ Error generating stack: `+C.message+`
|
|
|
537
538
|
* @tokens Operation tag colors
|
|
538
539
|
*/
|
|
539
540
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
--tag-operation-color-post: #1e65f5; // @presenter Color
|
|
547
|
-
--tag-operation-bg-color-post: #e2ebfe; // @presenter Color
|
|
548
|
-
|
|
549
|
-
--tag-operation-color-put: #f5901d; // @presenter Color
|
|
550
|
-
--tag-operation-bg-color-put: #fef1e2; // @presenter Color
|
|
551
|
-
|
|
552
|
-
--tag-operation-color-patch: #f5c31d; // @presenter Color
|
|
553
|
-
--tag-operation-bg-color-patch: #fdf6dd; // @presenter Color
|
|
554
|
-
|
|
555
|
-
--tag-operation-color-head: #5b4ccc; // @presenter Color
|
|
556
|
-
--tag-operation-bg-color-head: #e6e1fe; // @presenter Color
|
|
557
|
-
|
|
558
|
-
--tag-operation-color-options: #1a1c21; // @presenter Color
|
|
559
|
-
--tag-operation-bg-color-options: #ededf2; // @presenter Color
|
|
560
|
-
|
|
561
|
-
--tag-operation-color-deprecated: var(--text-color-disabled); // @presenter Color
|
|
562
|
-
|
|
563
|
-
--tag-action-color-receive: #4db144; // @presenter Color
|
|
564
|
-
--tag-action-color-sub: #4db144; // @presenter Color
|
|
565
|
-
--tag-action-color-cons: #4db144; // @presenter Color
|
|
566
|
-
|
|
567
|
-
--tag-action-color-send: #4144f6; // @presenter Color
|
|
568
|
-
--tag-action-color-pub: #4144f6; // @presenter Color
|
|
569
|
-
--tag-action-color-publish: #4144f6; // @presenter Color
|
|
570
|
-
|
|
571
|
-
--tag-action-color-channel: #F0870E; // @presenter Color
|
|
572
|
-
--tag-action-color-topic: #F0870E; // @presenter Color
|
|
573
|
-
--tag-action-color-queue: #D72E81; // @presenter Color
|
|
574
|
-
--tag-action-color-exchange: #9B51E0; // @presenter Color
|
|
541
|
+
.tag-head {
|
|
542
|
+
--tag-color: #6355CA; // @presenter Color
|
|
543
|
+
--tag-bg-color: #ECEBFA; // @presenter Color
|
|
544
|
+
--tag-bg-color-hover: #E0DEF7; // @presenter Color
|
|
545
|
+
}
|
|
575
546
|
|
|
576
547
|
.tag-delete {
|
|
577
|
-
|
|
548
|
+
--tag-color: #e70b46; // @presenter Color
|
|
549
|
+
--tag-bg-color: #fee2e9; // @presenter Color
|
|
550
|
+
--tag-bg-color-hover: #fdd3dd; // @presenter Color
|
|
578
551
|
}
|
|
579
552
|
|
|
580
553
|
.tag-get {
|
|
581
|
-
|
|
554
|
+
--tag-color: #25b869; // @presenter Color
|
|
555
|
+
--tag-bg-color: #e5faef; // @presenter Color
|
|
556
|
+
--tag-bg-color-hover: #D4F7E5; // @presenter Color
|
|
582
557
|
}
|
|
583
558
|
|
|
584
559
|
.tag-post {
|
|
585
|
-
|
|
560
|
+
--tag-color: #1e65f5; // @presenter Color
|
|
561
|
+
--tag-bg-color: #e2ebfe; // @presenter Color
|
|
562
|
+
--tag-bg-color-hover: #CEDDFD; // @presenter Color
|
|
586
563
|
}
|
|
587
564
|
|
|
588
565
|
.tag-put {
|
|
589
|
-
|
|
566
|
+
--tag-color: #f5901d; // @presenter Color
|
|
567
|
+
--tag-bg-color: #fef1e2; // @presenter Color
|
|
568
|
+
--tag-bg-color-hover: #FDE2C4; // @presenter Color
|
|
590
569
|
}
|
|
591
|
-
|
|
570
|
+
|
|
592
571
|
.tag-patch {
|
|
593
|
-
|
|
572
|
+
--tag-color: #f5c31d; // @presenter Color
|
|
573
|
+
--tag-bg-color: #fdf6dd; // @presenter Color
|
|
574
|
+
--tag-bg-color-hover: #FCF0C5; // @presenter Color
|
|
594
575
|
}
|
|
595
576
|
|
|
596
577
|
.tag-http-deprecated {
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
.tag-receive {
|
|
601
|
-
--tag-color: var(--tag-action-color-receive); // @presenter Color
|
|
578
|
+
--tag-color: var(--text-color-disabled); // @presenter Color
|
|
602
579
|
}
|
|
603
580
|
|
|
604
581
|
.tag-send {
|
|
605
|
-
|
|
582
|
+
--tag-color: #4144F6; // @presenter Color
|
|
583
|
+
--tag-bg-color: #ECECFE; // @presenter Color
|
|
584
|
+
--tag-bg-color-hover: #CFCFFC; // @presenter Color
|
|
606
585
|
}
|
|
607
586
|
|
|
608
587
|
.tag-pub {
|
|
609
|
-
|
|
588
|
+
--tag-color: #4144F6; // @presenter Color
|
|
589
|
+
--tag-bg-color: #ECECFE; // @presenter Color
|
|
590
|
+
--tag-bg-color-hover: #CFCFFC; // @presenter Color
|
|
610
591
|
}
|
|
611
592
|
|
|
612
|
-
.tag-
|
|
613
|
-
|
|
593
|
+
.tag-publish {
|
|
594
|
+
--tag-color: #4144F6; // @presenter Color
|
|
595
|
+
--tag-bg-color: #ECECFE; // @presenter Color
|
|
596
|
+
--tag-bg-color-hover: #CFCFFC; // @presenter Color
|
|
614
597
|
}
|
|
615
598
|
|
|
616
|
-
.tag-
|
|
617
|
-
|
|
599
|
+
.tag-receive {
|
|
600
|
+
--tag-color: #4db144; // @presenter Color
|
|
601
|
+
--tag-bg-color: #E5FDE2; // @presenter Color
|
|
602
|
+
--tag-bg-color-hover: #D4FCCF; // @presenter Color
|
|
618
603
|
}
|
|
619
604
|
|
|
620
|
-
.tag-
|
|
621
|
-
|
|
605
|
+
.tag-sub {
|
|
606
|
+
--tag-color: #4db144; // @presenter Color
|
|
607
|
+
--tag-bg-color: #E5FDE2; // @presenter Color
|
|
608
|
+
--tag-bg-color-hover: #D4FCCF; // @presenter Color
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.tag-cons {
|
|
612
|
+
--tag-color: #4db144; // @presenter Color
|
|
613
|
+
--tag-bg-color: #E5FDE2; // @presenter Color
|
|
614
|
+
--tag-bg-color-hover: #D4FCCF; // @presenter Color
|
|
622
615
|
}
|
|
623
616
|
|
|
624
617
|
.tag-channel {
|
|
625
|
-
|
|
618
|
+
--tag-color: #F0870E; // @presenter Color
|
|
619
|
+
--tag-bg-color: #FDF1E2; // @presenter Color
|
|
620
|
+
--tag-bg-color-hover: #FBE1C1; // @presenter Color
|
|
626
621
|
}
|
|
627
622
|
|
|
628
623
|
.tag-topic {
|
|
629
|
-
|
|
624
|
+
--tag-color: #F0870E; // @presenter Color
|
|
625
|
+
--tag-bg-color: #FDF1E2; // @presenter Color
|
|
626
|
+
--tag-bg-color-hover: #FBE1C1; // @presenter Color
|
|
630
627
|
}
|
|
631
628
|
|
|
632
629
|
.tag-queue {
|
|
633
|
-
|
|
630
|
+
--tag-color: #D72E81; // @presenter Color
|
|
631
|
+
--tag-bg-color: #FAE5F0; // @presenter Color
|
|
632
|
+
--tag-bg-color-hover: #F7D4E6; // @presenter Color
|
|
634
633
|
}
|
|
635
634
|
|
|
636
635
|
.tag-exchange {
|
|
637
|
-
|
|
636
|
+
--tag-color: #9B51E0; // @presenter Color
|
|
637
|
+
--tag-bg-color: #F0E5FA; // @presenter Color
|
|
638
|
+
--tag-bg-color-hover: #E6D4F7; // @presenter Color
|
|
638
639
|
}
|
|
639
640
|
|
|
640
641
|
// shorten alias for exchange tag:
|
|
641
642
|
.tag-exch {
|
|
642
|
-
|
|
643
|
+
--tag-color: #9B51E0; // @presenter Color
|
|
644
|
+
--tag-bg-color: #F0E5FA; // @presenter Color
|
|
645
|
+
--tag-bg-color-hover: #E6D4F7; // @presenter Color
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @tokens Tag variants
|
|
650
|
+
*/
|
|
651
|
+
|
|
652
|
+
.tag-variant-filled {
|
|
653
|
+
--tag-border-color: transparent;
|
|
654
|
+
--tag-border-color-hover: transparent;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.tag-variant-outline {
|
|
658
|
+
--tag-bg-color: transparent;
|
|
659
|
+
--tag-bg-color-hover: transparent;
|
|
643
660
|
}
|
|
644
661
|
|
|
645
662
|
// @tokens End
|
|
@@ -3626,43 +3643,11 @@ Error generating stack: `+C.message+`
|
|
|
3626
3643
|
--checkbox-border-color-disabled: var(--border-color-primary);
|
|
3627
3644
|
--checkbox-content-color-inverse: var(--color-warm-grey-1);
|
|
3628
3645
|
`,f9e=Ue`
|
|
3646
|
+
--tag-close-button-bg-color-focus: var(--color-warm-grey-6); // @presenter Color
|
|
3647
|
+
|
|
3629
3648
|
--tag-border-color-focused: var(--color-blue-8); // @presenter Color
|
|
3630
3649
|
--tag-badge-border-color: var(--border-color-secondary);
|
|
3631
3650
|
|
|
3632
|
-
--tag-operation-color-delete: #fa82a2; // @presenter Color
|
|
3633
|
-
--tag-operation-bg-color-delete: #77214C; // @presenter Color
|
|
3634
|
-
|
|
3635
|
-
--tag-operation-color-get: #68cc97; // @presenter Color
|
|
3636
|
-
--tag-operation-bg-color-get: #1F4D2D; // @presenter Color
|
|
3637
|
-
|
|
3638
|
-
--tag-operation-color-post: #90b0f0; // @presenter Color
|
|
3639
|
-
--tag-operation-bg-color-post: #233061; // @presenter Color
|
|
3640
|
-
|
|
3641
|
-
--tag-operation-color-put: #e0a663; // @presenter Color
|
|
3642
|
-
--tag-operation-bg-color-put: #612729; // @presenter Color
|
|
3643
|
-
|
|
3644
|
-
--tag-operation-color-patch: #e0c363; // @presenter Color
|
|
3645
|
-
--tag-operation-bg-color-patch: #5C3721; // @presenter Color
|
|
3646
|
-
|
|
3647
|
-
--tag-operation-color-head: #e6e1fe; // @presenter Color
|
|
3648
|
-
--tag-operation-bg-color-head: #5b4ccc; // @presenter Color
|
|
3649
|
-
|
|
3650
|
-
--tag-operation-color-options: #1a1c21; // @presenter Color
|
|
3651
|
-
--tag-operation-bg-color-options: #2a2b33; // @presenter Color
|
|
3652
|
-
|
|
3653
|
-
--tag-action-color-receive: #88CF82; // @presenter Color
|
|
3654
|
-
--tag-action-color-sub: #88CF82; // @presenter Color
|
|
3655
|
-
--tag-action-color-cons: #88CF82; // @presenter Color
|
|
3656
|
-
|
|
3657
|
-
--tag-action-color-send: #7779F8; // @presenter Color
|
|
3658
|
-
--tag-action-color-pub: #7779F8; // @presenter Color
|
|
3659
|
-
--tag-action-color-publish: #7779F8; // @presenter Color
|
|
3660
|
-
|
|
3661
|
-
--tag-action-color-channel: #F5AD5B; // @presenter Color
|
|
3662
|
-
--tag-action-color-topic: #F5AD5B; // @presenter Color
|
|
3663
|
-
--tag-action-color-queue: #F7A7CF; // @presenter Color
|
|
3664
|
-
--tag-action-color-exchange: #C79CF2; // @presenter Color
|
|
3665
|
-
|
|
3666
3651
|
.tag-grey,
|
|
3667
3652
|
.tag-draft,
|
|
3668
3653
|
.tag-schema,
|
|
@@ -3670,6 +3655,7 @@ Error generating stack: `+C.message+`
|
|
|
3670
3655
|
--tag-color: var(--color-warm-grey-8); // @presenter Color
|
|
3671
3656
|
--tag-bg-color: var(--color-warm-grey-4); // @presenter Color
|
|
3672
3657
|
--tag-bg-color-hover: var(--color-warm-grey-5); // @presenter Color
|
|
3658
|
+
--tag-close-button-bg-color-hover: var(--color-warm-grey-5); // @presenter Color
|
|
3673
3659
|
}
|
|
3674
3660
|
|
|
3675
3661
|
.tag-red {
|
|
@@ -3677,6 +3663,7 @@ Error generating stack: `+C.message+`
|
|
|
3677
3663
|
--tag-bg-color: var(--color-red-1); // @presenter Color
|
|
3678
3664
|
--tag-border-color: var(--color-red-8); // @presenter Color
|
|
3679
3665
|
--tag-border-color-hover: var(--color-red-6); // @presenter Color
|
|
3666
|
+
--tag-close-button-bg-color-hover: var(--color-red-2); // @presenter Color
|
|
3680
3667
|
}
|
|
3681
3668
|
|
|
3682
3669
|
.tag-green {
|
|
@@ -3685,6 +3672,7 @@ Error generating stack: `+C.message+`
|
|
|
3685
3672
|
--tag-border-color: var(--color-green-3); // @presenter Color
|
|
3686
3673
|
--tag-border-color-hover: var(--color-green-5); // @presenter Color
|
|
3687
3674
|
--tag-bg-color-hover: var(--color-green-2); // @presenter Color
|
|
3675
|
+
--tag-close-button-bg-color-hover: var(--color-green-2); // @presenter Color
|
|
3688
3676
|
}
|
|
3689
3677
|
|
|
3690
3678
|
.tag-blue {
|
|
@@ -3692,6 +3680,7 @@ Error generating stack: `+C.message+`
|
|
|
3692
3680
|
--tag-bg-color: var(--color-blue-1); // @presenter Color
|
|
3693
3681
|
--tag-border-color-hover: var(--color-blue-5); // @presenter Color
|
|
3694
3682
|
--tag-bg-color-hover: var(--color-blue-2); // @presenter Color
|
|
3683
|
+
--tag-close-button-bg-color-hover: var(--color-blue-2); // @presenter Color
|
|
3695
3684
|
}
|
|
3696
3685
|
|
|
3697
3686
|
.tag-magenta,
|
|
@@ -3699,14 +3688,15 @@ Error generating stack: `+C.message+`
|
|
|
3699
3688
|
--tag-color: var(--color-magenta-4); // @presenter Color
|
|
3700
3689
|
--tag-bg-color: var(--color-magenta-1); // @presenter Color
|
|
3701
3690
|
--tag-bg-color-hover: var(--color-magenta-2); // @presenter Color
|
|
3691
|
+
--tag-close-button-bg-color-hover: var(--color-magenta-2); // @presenter Color
|
|
3702
3692
|
}
|
|
3703
3693
|
|
|
3704
|
-
.tag-purple
|
|
3705
|
-
.tag-head {
|
|
3694
|
+
.tag-purple {
|
|
3706
3695
|
--tag-color: var(--color-purple-7); // @presenter Color
|
|
3707
3696
|
--tag-bg-color: var(--color-purple-1); // @presenter Color
|
|
3708
3697
|
--tag-bg-color-hover: var(--color-purple-2); // @presenter Color
|
|
3709
3698
|
--tag-border-color-hover: var(--color-purple-5); // @presenter Color
|
|
3699
|
+
--tag-close-button-bg-color-hover: var(--color-purple-2); // @presenter Color
|
|
3710
3700
|
}
|
|
3711
3701
|
|
|
3712
3702
|
.tag-carrot {
|
|
@@ -3714,12 +3704,14 @@ Error generating stack: `+C.message+`
|
|
|
3714
3704
|
--tag-bg-color: var(--color-carrot-1); // @presenter Color
|
|
3715
3705
|
--tag-bg-color-hover: var(--color-carrot-2); // @presenter Color
|
|
3716
3706
|
--tag-border-color: var(--color-carrot-4); // @presenter Color
|
|
3707
|
+
--tag-close-button-bg-color-hover: var(--color-carrot-2); // @presenter Color
|
|
3717
3708
|
}
|
|
3718
3709
|
|
|
3719
3710
|
.tag-raspberry {
|
|
3720
3711
|
--tag-color: var(--color-raspberry-7); // @presenter Color
|
|
3721
3712
|
--tag-bg-color: var(--color-raspberry-1); // @presenter Color
|
|
3722
3713
|
--tag-bg-color-hover: var(--color-raspberry-2); // @presenter Color
|
|
3714
|
+
--tag-close-button-bg-color-hover: var(--color-raspberry-2); // @presenter Color
|
|
3723
3715
|
}
|
|
3724
3716
|
|
|
3725
3717
|
.tag-orange {
|
|
@@ -3728,6 +3720,7 @@ Error generating stack: `+C.message+`
|
|
|
3728
3720
|
--tag-bg-color-hover: var(--color-orange-2); // @presenter Color
|
|
3729
3721
|
--tag-border-color: var(--color-orange-3); // @presenter Color
|
|
3730
3722
|
--tag-border-color-hover: var(--color-orange-5); // @presenter Color
|
|
3723
|
+
--tag-close-button-bg-color-hover: var(--color-orange-2); // @presenter Color
|
|
3731
3724
|
}
|
|
3732
3725
|
|
|
3733
3726
|
.tag-grass {
|
|
@@ -3736,6 +3729,7 @@ Error generating stack: `+C.message+`
|
|
|
3736
3729
|
--tag-color: var(--color-grass-7); // @presenter Color
|
|
3737
3730
|
--tag-border-color: var(--color-grass-3); // @presenter Color
|
|
3738
3731
|
--tag-border-color-hover: var(--color-grass-5); // @presenter Color
|
|
3732
|
+
--tag-close-button-bg-color-hover: var(--color-grass-2); // @presenter Color
|
|
3739
3733
|
}
|
|
3740
3734
|
|
|
3741
3735
|
.tag-persian-green {
|
|
@@ -3744,6 +3738,7 @@ Error generating stack: `+C.message+`
|
|
|
3744
3738
|
--tag-bg-color-hover: var(--color-persian-green-2); // @presenter Color
|
|
3745
3739
|
--tag-border-color: var(--color-persian-green-3); // @presenter Color
|
|
3746
3740
|
--tag-border-color-hover: var(--color-persian-green-5); // @presenter Color
|
|
3741
|
+
--tag-close-button-bg-color-hover: var(--color-persian-green-2); // @presenter Color
|
|
3747
3742
|
}
|
|
3748
3743
|
|
|
3749
3744
|
.tag-turquoise,
|
|
@@ -3752,6 +3747,7 @@ Error generating stack: `+C.message+`
|
|
|
3752
3747
|
--tag-bg-color: var(--color-turquoise-1); // @presenter Color
|
|
3753
3748
|
--tag-bg-color-hover: var(--color-turquoise-2); // @presenter Color
|
|
3754
3749
|
--tag-border-color: var(--color-turquoise-4); // @presenter Color
|
|
3750
|
+
--tag-close-button-bg-color-hover: var(--color-turquoise-2); // @presenter Color
|
|
3755
3751
|
}
|
|
3756
3752
|
|
|
3757
3753
|
.tag-sky {
|
|
@@ -3759,6 +3755,7 @@ Error generating stack: `+C.message+`
|
|
|
3759
3755
|
--tag-bg-color: var(--color-sky-1); // @presenter Color
|
|
3760
3756
|
--tag-border-color: var(--color-sky-4); // @presenter Color
|
|
3761
3757
|
--tag-bg-color-hover: var(--color-sky-2); // @presenter Color
|
|
3758
|
+
--tag-close-button-bg-color-hover: var(--color-sky-2); // @presenter Color
|
|
3762
3759
|
}
|
|
3763
3760
|
|
|
3764
3761
|
.tag-blueberry {
|
|
@@ -3766,6 +3763,7 @@ Error generating stack: `+C.message+`
|
|
|
3766
3763
|
--tag-bg-color: var(--color-blueberry-1); // @presenter Color
|
|
3767
3764
|
--tag-border-color-hover: var(--color-blueberry-5); // @presenter Color
|
|
3768
3765
|
--tag-bg-color-hover: var(--color-blueberry-2); // @presenter Color
|
|
3766
|
+
--tag-close-button-bg-color-hover: var(--color-blueberry-2); // @presenter Color
|
|
3769
3767
|
}
|
|
3770
3768
|
|
|
3771
3769
|
.tag-warning,
|
|
@@ -3773,6 +3771,7 @@ Error generating stack: `+C.message+`
|
|
|
3773
3771
|
--tag-color: var(--color-warning-active); // @presenter Color
|
|
3774
3772
|
--tag-bg-color: var(--color-warning-bg); // @presenter Color
|
|
3775
3773
|
--tag-bg-color-hover: var(--color-warning-bg-hover); // @presenter Color
|
|
3774
|
+
--tag-close-button-bg-color-hover: var(--color-warning-hover); // @presenter Color
|
|
3776
3775
|
}
|
|
3777
3776
|
|
|
3778
3777
|
.tag-processing,
|
|
@@ -3780,6 +3779,7 @@ Error generating stack: `+C.message+`
|
|
|
3780
3779
|
--tag-color: var(--color-info-active); // @presenter Color
|
|
3781
3780
|
--tag-bg-color: var(--color-info-bg); // @presenter Color
|
|
3782
3781
|
--tag-bg-color-hover: var(--color-info-bg-hover); // @presenter Color
|
|
3782
|
+
--tag-close-button-bg-color-hover: var(--color-info-hover); // @presenter Color
|
|
3783
3783
|
}
|
|
3784
3784
|
|
|
3785
3785
|
.tag-error,
|
|
@@ -3787,6 +3787,7 @@ Error generating stack: `+C.message+`
|
|
|
3787
3787
|
--tag-color: var(--color-error-active); // @presenter Color
|
|
3788
3788
|
--tag-bg-color: var(--color-error-bg); // @presenter Color
|
|
3789
3789
|
--tag-bg-color-hover: var(--color-error-bg-hover); // @presenter Color
|
|
3790
|
+
--tag-close-button-bg-color-hover: var(--color-error-hover); // @presenter Color
|
|
3790
3791
|
}
|
|
3791
3792
|
|
|
3792
3793
|
.tag-success,
|
|
@@ -3794,12 +3795,127 @@ Error generating stack: `+C.message+`
|
|
|
3794
3795
|
--tag-color: var(--color-success-active); // @presenter Color
|
|
3795
3796
|
--tag-bg-color: var(--color-success-bg); // @presenter Color
|
|
3796
3797
|
--tag-bg-color-hover: var(--color-success-bg-hover); // @presenter Color
|
|
3798
|
+
--tag-close-button-bg-color-hover: var(--color-success-bg-hover); // @presenter Color
|
|
3797
3799
|
}
|
|
3798
3800
|
|
|
3799
3801
|
.tag-link {
|
|
3800
3802
|
--tag-color: var(--color-info-active); // @presenter Color
|
|
3801
3803
|
--tag-bg-color: var(--color-info-bg); // @presenter Color
|
|
3802
3804
|
--tag-bg-color-hover: var(--color-info-bg-hover); // @presenter Color
|
|
3805
|
+
--tag-close-button-bg-color-hover: var(--color-info-hover); // @presenter Color
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
.tag-delete {
|
|
3809
|
+
--tag-color: #fa82a2; // @presenter Color
|
|
3810
|
+
--tag-bg-color: #47252E; // @presenter Color
|
|
3811
|
+
--tag-bg-color-hover: #653441; // @presenter Color
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
.tag-get {
|
|
3815
|
+
--tag-color: #68cc97; // @presenter Color
|
|
3816
|
+
--tag-bg-color: #1F3D2D; // @presenter Color
|
|
3817
|
+
--tag-bg-color-hover: #34654B; // @presenter Color
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3820
|
+
.tag-post {
|
|
3821
|
+
--tag-color: #90b0f0; // @presenter Color
|
|
3822
|
+
--tag-bg-color: #2B3447; // @presenter Color
|
|
3823
|
+
--tag-bg-color-hover: #3A465F; // @presenter Color
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
.tag-put {
|
|
3827
|
+
--tag-color: #e0a663; // @presenter Color
|
|
3828
|
+
--tag-bg-color: #3D2D1B; // @presenter Color
|
|
3829
|
+
--tag-bg-color-hover: #674C2D; // @presenter Color
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
.tag-patch {
|
|
3833
|
+
--tag-color: #e0c363; // @presenter Color
|
|
3834
|
+
--tag-bg-color: #3D351B; // @presenter Color
|
|
3835
|
+
--tag-bg-color-hover: #67592D; // @presenter Color
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
.tag-head {
|
|
3839
|
+
--tag-color: var(--color-purple-7); // @presenter Color
|
|
3840
|
+
--tag-bg-color: #312B5A; // @presenter Color
|
|
3841
|
+
--tag-bg-color-hover: #413875; // @presenter Color
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3844
|
+
.tag-channel {
|
|
3845
|
+
--tag-color: #F5AD5B; // @presenter Color
|
|
3846
|
+
--tag-bg-color: #4A3721; // @presenter Color
|
|
3847
|
+
--tag-bg-color-hover: #64492B; // @presenter Color
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
.tag-topic {
|
|
3851
|
+
--tag-color: #F5AD5B; // @presenter Color
|
|
3852
|
+
--tag-bg-color: #4A3721; // @presenter Color
|
|
3853
|
+
--tag-bg-color-hover: #64492B; // @presenter Color
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
.tag-send {
|
|
3857
|
+
--tag-color: #7779F8; // @presenter Color
|
|
3858
|
+
--tag-bg-color: #272754; // @presenter Color
|
|
3859
|
+
--tag-bg-color-hover: #373776; // @presenter Color
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
.tag-pub {
|
|
3863
|
+
--tag-color: #7779F8; // @presenter Color
|
|
3864
|
+
--tag-bg-color: #272754; // @presenter Color
|
|
3865
|
+
--tag-bg-color-hover: #373776; // @presenter Color
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
.tag-publish {
|
|
3869
|
+
--tag-color: #7779F8; // @presenter Color
|
|
3870
|
+
--tag-bg-color: #272754; // @presenter Color
|
|
3871
|
+
--tag-bg-color-hover: #373776; // @presenter Color
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
.tag-receive {
|
|
3875
|
+
--tag-color: #88CF82; // @presenter Color
|
|
3876
|
+
--tag-bg-color: #23421F; // @presenter Color
|
|
3877
|
+
--tag-bg-color-hover: #305A2A; // @presenter Color
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
.tag-sub {
|
|
3881
|
+
--tag-color: #88CF82; // @presenter Color
|
|
3882
|
+
--tag-bg-color: #23421F; // @presenter Color
|
|
3883
|
+
--tag-bg-color-hover: #305A2A; // @presenter Color
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
.tag-cons {
|
|
3887
|
+
--tag-color: #88CF82; // @presenter Color
|
|
3888
|
+
--tag-bg-color: #23421F; // @presenter Color
|
|
3889
|
+
--tag-bg-color-hover: #305A2A; // @presenter Color
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
.tag-exchange {
|
|
3893
|
+
--tag-color: #C79CF2; // @presenter Color
|
|
3894
|
+
--tag-bg-color: #472669; // @presenter Color
|
|
3895
|
+
--tag-bg-color-hover: #5C3187; // @presenter Color
|
|
3896
|
+
}
|
|
3897
|
+
|
|
3898
|
+
// shorten alias for exchange tag:
|
|
3899
|
+
.tag-exch {
|
|
3900
|
+
--tag-color: #C79CF2; // @presenter Color
|
|
3901
|
+
--tag-bg-color: #472669; // @presenter Color
|
|
3902
|
+
--tag-bg-color-hover: #5C3187; // @presenter Color
|
|
3903
|
+
}
|
|
3904
|
+
|
|
3905
|
+
.tag-queue {
|
|
3906
|
+
--tag-color: #F7A7CF; // @presenter Color
|
|
3907
|
+
--tag-bg-color: #622242; // @presenter Color
|
|
3908
|
+
--tag-bg-color-hover: #882F5C; // @presenter Color
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
.tag-variant-filled {
|
|
3912
|
+
--tag-border-color: transparent;
|
|
3913
|
+
--tag-border-color-hover: transparent;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
.tag-variant-outline {
|
|
3917
|
+
--tag-bg-color: transparent;
|
|
3918
|
+
--tag-bg-color-hover: transparent;
|
|
3803
3919
|
}
|
|
3804
3920
|
`,g9e=Ue`
|
|
3805
3921
|
--status-code-border: 1px solid var(--layer-color-accent);
|
|
@@ -5933,8 +6049,8 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ka.PHP});p.len
|
|
|
5933
6049
|
`).trim():""}function pee(e,t){return`
|
|
5934
6050
|
`+e.map(({name:a,value:r})=>(t?.indent||"")+`${a} = "${r}"`).join(`,
|
|
5935
6051
|
`)+`
|
|
5936
|
-
`}const mv=1,uqe=function(e,t,{target:a,client:r}){const n=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},t),i=new Ns({indentation:n.indent,variablesPrefix:n.variablesPrefix,lang:Ka.R}),o=e.method.toUpperCase(),s=e.securityOAuth2ExtraCalls?.[0];if(n.showBoilerplate&&i.push("library(httr)").blank(),s){const p="oauth2_",h=new pl(s).convert(a,r,{...n,variablesPrefix:p,showBoilerplate:!1}),g=`${p}data_req`;i.push(h),s.flowType==="deviceAuthorization"?xGe(i,{tokenUrl:s.tokenUrl??"YOUR_TOKEN_URL",clientId:s.clientId??"YOUR_CLIENT_ID",level:0,responseVariable:g}):(i.push(`access_token = content(${g}, "parsed")$access_token`),i.blank()),e.allHeaders.Authorization='paste("Bearer", access_token)'}let l,c="";if(e?.postData)switch(bn(e?.postData?.mimeType)){case ft.URL_ENCODED:{l="form",c=i.var("body");const p=pee(e.postData.params,n);i.push(`${c} <- list(${p})`).blank();break}case ft.JSON:{l="json",c=i.var("body");const p=dee(e.postData.jsonObj,n);i.push(`${c} = '${p}'`).blank();break}case ft.MULTIPART:{l="multipart",c=i.var("body");const p=pee(e.postData.params,n);i.push(`${c} <- list(${p})`).blank();break}default:e.postData?.text&&(c=i.var("body"),l="raw",i.push(`${c} = ${dee(e.postData?.text)}`).blank())}Cc(e,i),Object.keys({...e.pathParameters,...e.serverVariables}).length&&i.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const u=dl(e,i);i.push(`url = ${u}`).blank();const d=i.var("data_req");if(i.push(`${d} <- ${o}(`),i.push(mv,"url,"),e.basicAuth){const{username:p,password:h}=e.basicAuth;i.push(mv,`authenticate("${p}", "${h}")`)}if(Object.keys(e.allHeaders).length){const p=`${Object.keys(e.allHeaders).map(h=>`"${h}" = ${e.allHeaders[h].startsWith("paste")?e.allHeaders[h]:`"${e.allHeaders[h]}"`}`).join(", ")}`;p&&i.push(mv,`add_headers(${p}),`)}return c&&(i.push(mv,`body = ${c},`),i.push(mv,`encode = "${l}",`)),i.push(mv,"verbose()"),i.push(")"),n.printBody&&i.blank().push(`content(${d}${l==="raw"?', "text"':""})`),i.join()},dqe={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:uqe},_0={javascript:OGe,node:PGe,python:_Ge,shell:RGe,java8:DGe,java:VGe,csharp:UGe,csharpNewtonsoft:YGe,go:eqe,php:iqe,ruby:cqe,r:dqe};function hee(e,t){if(e[t.name]===void 0)return e[t.name]=t.value,e;if(e[t.name]instanceof Array)return e[t.name].push(t.value),e;const a=[e[t.name],t.value];return e[t.name]=a,e}class pl{request;constructor(t){const a={...t};this.request=this.prepare({...a,httpVersion:a.httpVersion||"HTTP/1.1",queryString:a.queryString||[],headers:a.headers||[],cookies:a.cookies||[],postData:a.postData?{...a.postData,jsonObj:void 0,paramsObj:void 0}:void 0,bodySize:0,headersSize:0,queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},uriObj:{},fullUrl:"",pathParameters:a.pathParameters||{},serverVariables:a.serverVariables||{}})}prepare(t){if(t.queryString&&t.queryString.length&&(t.queryObj=t.queryString.reduce(hee,{})),t.headers&&t.headers.length){const n=/^HTTP\/2/;t.headersObj=t.headers.reduce(function(i,o){let s=o.name;return t.httpVersion.match(n)&&(s=s.toLowerCase()),i[s]=o.value,i},{})}t.cookies&&t.cookies.length&&(t.cookiesObj=t.cookies.reduceRight(function(n,i){return n[i.name]=i.value,n},{}));const a=t.cookies.map(function(n){return encodeURIComponent(n.name)+"="+encodeURIComponent(n.value)});if(a.length&&(t.allHeaders.cookie=a.join("; ")),t.postData)switch(bn(t.postData.mimeType)){case"multipart/mixed":case"multipart/related":case ft.MULTIPART:case"multipart/alternative":break;case ft.URL_ENCODED:t.postData?.params?(t.postData.paramsObj=t.postData.params.reduce(hee,{}),t.postData.text=j0.stringify(t.postData.paramsObj)):t.postData.text="";break;case"text/json":case"text/x-json":case ft.JSON:case"application/x-json":if(t.postData.text)try{t.postData.jsonObj=JSON.parse(t.postData.text)}catch{t.postData.mimeType="text/plain"}break}if(t.allHeaders=Object.assign(t.allHeaders,t.headersObj),t.uriObj=bL(t.url,!0),!t.uriObj)return{...t,uriObj:{protocol:"",path:"",queryObj:{},query:{}}};if(t.queryObj)for(const[n,i]of Object.entries(t.queryObj))t.uriObj.searchParams.has(n,i)||t.uriObj.searchParams.set(n,i);t.uriObj.query=Object.fromEntries(t.uriObj.searchParams.entries()),t.queryObj=t.uriObj.query,t.uriObj.path=t.uriObj.pathname=qL(t.uriObj.pathname);const r=new URL(t.uriObj.toString());return r.search="",t.url=qL(r.toString()),t.uriObj.search&&(t.uriObj.path=t.uriObj.pathname+"?"+t.uriObj.search),t.fullUrl=qL(t.uriObj.toString()),t}convert(t,a,r){!r&&a&&(r=a);const n=this._matchTarget(t,a);if(n){const i=n(this.request,r,{target:t,client:a});return i.length===1?i[0]:i}throw new Error("Cannot match target")}_matchTarget(t,a){return Object.prototype.hasOwnProperty.call(_0,t)?typeof a=="string"&&typeof _0[t][a]=="function"?_0[t][a]:_0[t][_0[t].info.default]:!1}}function gh(e,t,a){try{return $He(e,t,a)}catch(r){return console.error(`Error sampling schema: ${r.message}`),null}}function pqe(e,t){return e.find(a=>{const r=a.schemes.map(n=>n.id);return LVe(r,t||[])})}function hqe(e,{exampleName:t="",skipOptionalParameters:a=!1,withOAuth2Call:r=!1,spec:n,generatedPayloadSamplesMaxDepth:i=8,pathParams:o={},properties:s={},activeMimeName:l=""},{environment:c,requestValues:u,activeSecuritySchemeIds:d}){const p=c.server,h=e.servers.find(ae=>ae.url===p)||e.servers[0],g=pqe(e.security,d),{securityHeaders:k,securityCookies:v,securityQueries:m,securityOAuth2ExtraCalls:b,basicAuth:x}=fqe(g||e.security?.[0],r,c),j=e?.requestBody?.content&&vh(e.requestBody.content,l),w={skipNonRequired:a,skipReadOnly:!0,maxSampleDepth:i,quiet:!0},S=u;let O=!1;const M=e.parameters.filter(ae=>ae.in==="header").filter(ae=>!(a&&!ae.required)).map(ae=>({name:ae.name,value:S.header?.[ae.name]||aQ("header",ae.name)||ae.serverValues?.[p]?.example||ae.example||Ej(ae,gh(ae.schema.rawSchema,w,n))})).map(ae=>(j?.name&&ae.name.toLowerCase()==="content-type"&&(O=!0,ae.value=j.name),ae)).concat(k);!O&&j?.name&&M.unshift({name:"Content-Type",value:j?.name});const T=e.parameters.filter(ae=>ae.in==="cookie").filter(ae=>!(a&&!ae.required)).map(ae=>j0.parse(Ej(ae,ae.serverValues?.[p]?.example||ae.example||gh(ae.schema.rawSchema,w,n)))).reduce((ae,W)=>{for(const[he,Y]of Object.entries(W))ae.push({name:he,value:String(S.cookie?.[he]||Y)});return ae},[]).concat(v),B=e.parameters.filter(ae=>ae.in==="query").filter(ae=>!(a&&!ae.required)).map(ae=>j0.parse(Ej(ae,ae.serverValues?.[p]?.example||ae.example||gh(ae.schema.rawSchema,w,n)))).reduce((ae,W)=>{for(const[he,Y]of Object.entries(W))ae.push({name:he,value:jZ(S.query?.[he])&&JSON.stringify(OZ(S.query?.[he]))||String(S.query?.[he]||Y)});return ae},[]).concat(m),G=h?.url.replace(/\/$/,""),D=e.path.replace(/^\//,""),U=`${G}/${D}`,I=e.parameters.filter(ae=>ae.in==="path").reduce((ae,W)=>{const{in:he,name:Y}=W;return ae[Y]=S.path?.[Y]||W.serverValues?.[p]?.example||W.example||o[Y]||aQ(he,Y),ae},{}),X=j?.name.toLowerCase(),re=X===ft.MULTIPART||X===ft.URL_ENCODED,le=re?j?.formExamples?.[t]:j?.examples?.[t],ie=re?j?.formExamples||{}:j?.examples||{},[me]=Object.values(ie),F=le?.serverValues?.[p]?.value||me?.serverValues?.[p]?.value,N=ae=>!ae||typeof ae!="object"||!j?.schema?.rawSchema?null:gh(kqe(j.schema.rawSchema,ae),{...w,format:"xml"},n),J=(()=>{if(S?.body)return S.body;if(X===ft.XML){const ae=N(F)||N(le?.value)||N(me?.value);if(ae)return ae;if(j?.schema)return gh(j.schema.rawSchema,{...w,format:"xml"},n)}else{const ae=j?.schema&&gh(j.schema.rawSchema,{...w,format:"json"},n);return F||le?.value||me?.value||ae}return""})();let $="",P=[];switch(bn(X)){case ft.JSON:$=JSON.stringify(VB(J,s));break;case ft.XML:$=J;break;case ft.URL_ENCODED:case ft.MULTIPART:$=j0.stringify(VB(J,s)),P=mee(VB(J,s));break;default:$=String(J||"")}const R=$?{mimeType:j?.name||ft.OCTET_STREAM,text:$,params:P}:void 0,V=e.responses.map(ae=>ae.code);return{method:e.httpVerb,url:U,httpVersion:"HTTP/1.1",cookies:T,headers:M,queryString:B,postData:R,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:b,basicAuth:x,pathParameters:I,serverVariables:c,allResponseCodes:V}}const ql={withImports:!0,withComments:!1},Wj={curl:{code:"shell",defaultTarget:"curl",defaultOptions:{...ql,short:!0}},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:{...ql,withImports:!1}},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:{...ql}},Python:{code:"python",defaultTarget:"requests",defaultOptions:{...ql}},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:{...ql}},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:{...ql}},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:{...ql}},"C#+Newtonsoft":{code:"csharpNewtonsoft",defaultTarget:"httpclient",defaultOptions:{...ql}},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:{...ql}},PHP:{code:"php",defaultTarget:"curl",defaultOptions:{...ql}},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:{...ql}},R:{code:"r",defaultTarget:"httr",defaultOptions:{...ql}}};function mqe({lang:e,operation:t,exampleName:a,pathParams:r,properties:n,options:i={},environment:o,translate:s}){try{const{skipOptionalParameters:l,withOAuth2Call:c,spec:u,generatedPayloadSamplesMaxDepth:d,store:p,activeMimeName:h}=i,g=hqe(t,{exampleName:a,pathParams:r,properties:n,skipOptionalParameters:l,withOAuth2Call:c,spec:u,generatedPayloadSamplesMaxDepth:d,activeMimeName:h},{environment:o,requestValues:p.requestValues,activeSecuritySchemeIds:p.activeSecuritySchemeIds}),k=new pl(g);return Wj[e]?k.convert(Wj[e].code,Wj[e].defaultTarget,{...Wj[e].defaultOptions,...i}):s("openapi.unsupportedLanguage","Language is not supported.")}catch(l){return console.error(l),s("openapi.failedToGenerateCodeSample","Failed to generate code sample.")}}function fqe(e,t,a){const r={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0},n=a?.server;for(const i of e?.schemes||[]){const o=CVe(i.id,a),s=n&&i.serverValues&&i.serverValues[n],l={access_token:s?.["x-defaultAccessToken"]||i["x-defaultAccessToken"],token_type:s?.["x-defaultTokenType"]||i["x-defaultTokenType"],client_id:s?.["x-defaultClientId"]||i["x-defaultClientId"],client_secret:s?.["x-defaultClientSecret"]||i["x-defaultClientSecret"]},c=s?.["x-defaultUsername"]||i["x-defaultUsername"],u=s?.["x-defaultPassword"]||i["x-defaultPassword"],d=s&&"scopes"in s?s.scopes||[]:i.scopes||[];switch(i.type){case"openIdConnect":r.securityHeaders?.push({name:"Authorization",value:l.access_token?`${l.token_type||"Bearer"} ${l.access_token}`:o.token?`${l.token_type||o.token.token_type||"Bearer"} ${o.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const p=l.access_token?`${l.token_type||"Bearer"} ${l.access_token}`:o.token?`${o.token.token_type||"Bearer"} ${o.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";i.flows.deviceAuthorization&&t?r.securityOAuth2ExtraCalls.push(gqe(i.flows.deviceAuthorization,d)):i.flows.clientCredentials&&t?r.securityOAuth2ExtraCalls.push(bqe(i.flows.clientCredentials,d,{client_id:l.client_id||o.client_id,client_secret:l.client_secret||o.client_secret})):i.flows.password&&t&&r.securityOAuth2ExtraCalls.push(vqe(i.flows.password,d,{...o,client_id:l.client_id||o.client_id,client_secret:l.client_secret||o.client_secret})),r.securityHeaders?.push({name:"Authorization",value:p});break}case"apiKey":{const p=l.access_token||o.raw||"YOUR_API_KEY_HERE";i.in==="header"&&r.securityHeaders?.push({name:i.name,value:p}),i.in==="cookie"&&r.securityCookies.push({name:i.name,value:p}),i.in==="query"&&r.securityQueries.push({name:i.name,value:p});break}case"http":if(i.scheme==="basic")r.basicAuth={username:c||o.username||`<${pv.toSnakeCase("Username")}>`,password:u||o.password||`<${pv.toSnakeCase("Password")}>`};else{const p=l?.access_token||o.token?.access_token||`<YOUR_${i.bearerFormat||"TOKEN"}_HERE>`;r.securityHeaders?.push({name:"Authorization",value:`${Zj(i.scheme||"bearer")} ${p}`})}break}}return r}function gqe(e,t){const a=e["x-defaultClientId"]??"YOUR_CLIENT_ID",{tokenUrl:r,deviceAuthorizationUrl:n}=e;return{method:"POST",url:n,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:ft.URL_ENCODED},{name:"Accept",value:ft.JSON}],queryString:[],postData:{mimeType:ft.URL_ENCODED,text:"",params:[{name:"client_id",value:a},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(HB)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[],flowType:"deviceAuthorization",tokenUrl:r,clientId:a}}function vqe(e,t,a){const{tokenUrl:r}=e,n=a.client_id??"YOUR_CLIENT_ID";return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:ft.URL_ENCODED},{name:"Accept",value:ft.JSON}],queryString:[],postData:{mimeType:ft.URL_ENCODED,text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:n},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:a.username||"<username>"},{name:"password",value:a.password||"<password>"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(HB)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[],flowType:"password",tokenUrl:r,clientId:n}}function bqe(e,t,a){const{tokenUrl:r}=e,n=a.client_id??"YOUR_CLIENT_ID";return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:ft.URL_ENCODED},{name:"Accept",value:ft.JSON}],queryString:[],postData:{mimeType:ft.URL_ENCODED,text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:n},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(HB)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[],flowType:"clientCredentials",tokenUrl:r,clientId:n}}function VB(e,t){if(e){if(rs(e))return Object.keys(e).length>0&&Object.keys(t).length===0?e:cv(e,t,{arrayMerge:Kj});try{return cv(JSON.parse(e),t,{arrayMerge:Kj})}catch{return!1}}return!1}function mee(e,t=""){const a=[];for(const[r,n]of Object.entries(e)){const i=t?`${t}[${r}]`:r;if(typeof n=="object"&&n!==null)a.push(...mee(n,i));else{const o=Array.isArray(e)&&typeof n=="string"&&t?t:i;a.push({name:o,value:String(n)})}}return a}function HB(e){return e!==void 0}function Zj(e){return e.charAt(0).toUpperCase()+e.slice(1)}function kqe(e,t){if(!e||typeof e!="object"||!t||typeof t!="object")return e;const a=JSON.parse(JSON.stringify(e));function r(n,i){if(!(!n||!i||typeof n!="object"||typeof i!="object")&&n.properties){for(const o in n.properties)if(i[o]!==void 0){const s=n.properties[o],l=i[o];if(s.type==="object"&&typeof l=="object"&&!Array.isArray(l))r(s,l);else if(s.type==="array"&&Array.isArray(l)&&l.length>0){const c=l[0];s.items&&s.items.properties&&r(s.items,c)}else s.example=l}}}return r(a,t),a}function fee({parser:e,info:{encoding:t,schema:a},schema:r,mime:n,options:{isRequestType:i,onlyRequiredInSamples:o,generatedSamplesMaxDepth:s,format:l="json"}}){const c={skipReadOnly:i,skipWriteOnly:!i,skipNonRequired:i&&o,maxSampleDepth:s,quiet:!0,format:l};let u={};if(r&&r.oneOf)for(const d of r.oneOf){const p=gh(d.rawSchema,c,e.definition);p!==null&&(r.discriminatorProp&&typeof p=="object"&&p&&p[r.discriminatorProp]&&(p[r.discriminatorProp]=d.title),u[d.title]=O0({parser:e,infoOrRef:{value:p},mime:n,encoding:t}))}else if(r){const d=gh(a,c,e.definition);d!==null?u={default:O0({parser:e,infoOrRef:{value:d},mime:n,encoding:t})}:u={default:{value:null,rawValue:"null"}}}else u={default:{value:null,rawValue:"null"}};return u}function gee(e,t,a,r,n,{operation:i,type:o,response:s,absolutePointer:l=""}){let c,u;const d=r.schema&&Jm({parser:e,schemaOrRef:r.schema,pointer:"",absolutePointer:Lr.join(l,["content",t,"schema"]),options:n,deps:{operation:i,type:o,response:s}}),{onlyRequiredInSamples:p,generatedSamplesMaxDepth:h}=n,{encoding:g,examples:k,example:v}=r;return n.unstable_skipSamples||(k!==void 0?c=zZ(k,m=>O0({parser:e,infoOrRef:m,mime:t,encoding:g})):v!==void 0?c={default:O0({parser:e,infoOrRef:{value:e.deref(v).resolved},mime:t,encoding:g})}:SL(t)||KZ(t)?c=fee({parser:e,info:r,schema:d,mime:t,options:{isRequestType:a,onlyRequiredInSamples:p,generatedSamplesMaxDepth:h,format:KZ(t)?"xml":"json"}}):(VZ(t)||uVe(t))&&(u=fee({parser:e,info:r,schema:d,mime:t,options:{isRequestType:a,onlyRequiredInSamples:p,generatedSamplesMaxDepth:h}}))),{examples:c,schema:d,name:t,isRequestType:a,formExamples:u,onlyRequiredInSamples:p,operation:i}}function FB({parser:e,info:t,isRequestType:a,options:r,data:{operation:n,type:i,response:o,absolutePointer:s=""}}){const l=Object.keys(t).map(u=>gee(e,u,a,t[u],r,{operation:n,type:i,response:o,absolutePointer:s})),c=l.filter(u=>!!u.examples||!!u.formExamples).length>0;return{mediaTypes:l,isRequestType:a,hasSample:c,operation:n}}function vh(e,t){return t&&e.mediaTypes.find(a=>a.name===t)||e.mediaTypes[0]||{}}function yqe(e,t){if(!e.in){if(e.deps.type==="request"&&e.deps.operation?.requestBody?.content?.mediaTypes)return e.deps.operation?.requestBody?.content?.mediaTypes.length>1?e.deps.operation?.requestBody?.content&&vh(e.deps.operation.requestBody.content,t).name:void 0;if(e.deps.type==="response"&&e.deps.response?.content?.mediaTypes)return e.deps.response?.content?.mediaTypes.length>1?e.deps.response?.content&&vh(e.deps.response.content,t).name:void 0}}function xqe(e,t){if(!e)return"";const a={t:e.deps.type,in:e.in||e.deps.in,c:e.deps.type==="response"?e.deps.response?.code:void 0,cb:e.deps.operation?.isCallback?e.deps.operation.callbackId:void 0,ct:yqe(e,t),path:e.fieldFullPath};return j0.stringify(a,{encode:!1,sort:!1})}function Gi(e="",t="",a="/"){return e.endsWith(a)&&e!==a&&(e=e.slice(0,-a.length)),t.startsWith(a)&&(t=t.slice(a.length)),!e||!t||e===a?e+t:e+a+t}function Rd(e,t){return e=y0(e),(`/${e}#`+Gi(e,t)).toLowerCase()}function vee(e,t,a){if(t.operations.length===0)return[];const r=[],n=[];for(const i of t.operations){const o=DZ(i,e),s={id:o,type:"operation",parent:e,operationDefinition:i,depth:a,name:NZ(i),httpVerb:i.httpVerb,path:i.pathName,items:[],isWebhook:i.isWebhook,operationId:i.operationId,badges:i["x-badges"]||[],href:GB({id:o}),deprecated:!!i.deprecated,[Es]:i[Es]||e?.[Es]};i.isWebhook?n.push(s):r.push(s)}return[...r.sort((i,o)=>Number(i.deprecated)-Number(o.deprecated)),...n.sort((i,o)=>Number(i.deprecated)-Number(o.deprecated))]}function GB({id:e}){return y0(`/${e}`.toLowerCase())}function E0(e,t,a){let r;a?.id&&(e==="schema"||e==="mcp")?r=Gi(a.id,sv(t.name)):r=t.id||sv(t.name);const n=t["x-displayName"]||t.name,i=t.level||1,o=t.isSchema,s=t.ast||void 0,l=AL(fi(t,"description")||""),c=t.items||[],u=t.externalDocs;return{id:r.toLowerCase(),type:e,parent:a,name:n,level:i,depth:0,isSchema:o,description:l,items:c,ast:s,externalDocs:u,href:GB({id:r}),[Es]:t[Es]||a?.[Es]}}function wqe(e){return{}}function zqe(e,t,a,r,n,i,o,s){const{resolved:l}=e.deref(a),c=[];for(const u of Object.keys(l)){const d=l[u],p=Object.keys(d).filter(BZ);for(const h of p){const g=d[h],k=UB(e,{...g,pathName:u,pointer:Lr.join(r,["callbacks",t,h]),httpVerb:h,pathParameters:d.parameters||[],pathServers:d.servers},o,n,i,{isCallback:!0,id:Gi(t,h)});c.push(k)}}return{name:t,operations:c}}function Sqe({parser:e,infoOrRef:t,options:a,isEvent:r,operation:n}){const{resolved:i}=e.deref(t),o=fi(i,"description")||"",s=i.required;let l;const c=!r,u=YZ(i);return u!==void 0&&(l=FB({parser:e,info:u,isRequestType:c,options:a,data:{operation:n,type:"request",absolutePointer:t.$ref||Lr.join(n.pointer,["requestBody"])}})),{description:o,required:s,content:l}}function qB(e=[],t){return e.map(a=>jqe({requirement:a,parser:t})).filter(({schemes:a})=>a.length>0)}function jqe({requirement:e,parser:t}){const a=t.definition.components&&t.definition.components.securitySchemes||{};return{schemes:Object.keys(e||{}).map(r=>{const n=t.deref(a[r]).resolved,i=e[r]||[];if(n)return{...n,id:r,sectionId:r,scopes:i}}).filter(Boolean)}}function Oqe({parser:e,code:t,defaultAsError:a,infoOrRef:r,options:n,isEvent:i,operation:o}){const s=!!i,{resolved:l}=e.deref(r),c={code:t};l["x-summary"]!==void 0?(c.summary=fi(l,"x-summary"),c.description=fi(l,"description")||""):(c.summary=fi(l,"description")||"",c.description=""),c.type=LZ(t,a);const u=l.headers,d=r.$ref||Lr.join(o?.pointer||"",["responses",t]);u!==void 0&&(c.headers=Object.keys(u).map(h=>{const g=u[h];return hh(e,{...g,name:h},Lr.join(d,["headers",h]),n,{operation:o,type:"response",response:c})}));const p=YZ(l);return p!==void 0&&(c.content=FB({parser:e,info:p,isRequestType:s,options:n,data:{operation:o,type:"response",response:c,absolutePointer:d}})),c}function Cqe(e){return e.lang==="Payload"&&"requestBodyContent"in e}function UB(e,t,a,r,n,i,o,s){const l=t.isWebhook,c={operationDefinition:t,parent:a,pointer:t.pointer,description:fi(t,"description"),externalDocs:t.externalDocs,deprecated:!!t.deprecated,httpVerb:t.httpVerb,operationId:t.operationId,path:t.pathName,isWebhook:l,isCallback:!!i?.isCallback,isEvent:i?.isCallback||l,name:NZ(t),defaultExampleName:t.defaultSampleName,[Es]:t[Es]||a?.[Es],type:"operation",callbackId:i?.id,href:n,get callbacks(){return Object.keys(t.callbacks||[]).map(h=>zqe(e,h,t.callbacks?.[h],c.pointer,r,n,a))},get responses(){let h=!1;return Object.keys(t.responses||[]).filter(g=>g==="default"?!0:(LZ(g)==="success"&&(h=!0),sVe(g))).map(g=>Oqe({parser:e,code:g,defaultAsError:h,infoOrRef:t.responses[g],options:r,isEvent:c.isEvent,operation:c}))},get parameters(){return Aqe(e,t,c,r,p)}};if(i?.isCallback)c.security=qB(t.security,e),c.servers=w0("",t.servers||t.pathServers||[]),c.id=ku(n);else{c.id=DZ(t,a),c.href=c.href||GB(c),c.security=qB(t.security||e.definition.security,e);const h=t.servers||(t.pathServers?.length?t.pathServers:null)||e.definition.servers||[];c.servers=w0(e.definitionUrl,JB(h,r.mockServer))}r.showExtensions&&(c.extensions=OL(t,r.showExtensions)),c.requestBody=t.requestBody?Sqe({parser:e,infoOrRef:t.requestBody,options:r,operation:c,isEvent:c.isEvent}):void 0;const u=c.requestBody?.content;c.payload={lang:"Payload",source:"",requestBodyContent:u?.hasSample?u:void 0},c.definitionSamples=t["x-codeSamples"]||[],c.badges=t["x-badges"]?.map(({name:h,color:g,position:k})=>({name:h,color:g||"var(--color-info-base)",position:k||"after"}))||[],c.hasSamples=u?.hasSample||c.definitionSamples.length>0,c.hideReplay=t["x-hideReplay"]===!0;const d=wqe()||{},p=s||d.requestValues||{};return BVe(c,p),c}function Aqe(e,t,a,r,n){let i=kVe(e,t.pathParameters,t.parameters,{pathPointer:Lr.dirName(a.pointer),operationPointer:a.pointer}).map(({paramOrRef:o,pointer:s})=>{const l=hh(e,o,s,r,{operation:a,type:"request"});return NVe(l,n),l});return r.sortRequiredPropsFirst&&(i=ZZ(i)),QZ(i)}function JB(e,t){if(!t)return e;const a={url:t.url,description:t.description};switch(t.position){case"first":return[a,...e];case"last":return[...e,a];case"replace":return[a];default:return e}}const bee=e=>{t(e);for(const a of e.walk())t(a),a?.children?.length&&bee(a);function t(a){a?.location&&delete a.location,a.tag===void 0&&delete a.tag}return e.type==="document"&&e?.children?.length?e?.children:e};function WB(e,t,a){const r=Fm(e)?bee($r.parse(e)):$r.Ast.fromJSON(JSON.stringify(e?.result)),n=[];let i;const o=(c,u,d=n,p,h)=>{c=JKe(c);let g;p.attributes.id?g=p.attributes.id:(g=h?`${h}/${sv(c)}`:`section/${sv(c)}`,p.attributes.id=g);const k={id:g.toLowerCase(),name:c,level:u,items:[],ast:[p]};return d.push(k),k},s=(c,u)=>{c[c.length-1]?.ast?.push(u)},l=c=>{const u=yee(c)||"",d=t&&t.type==="tag"?t.id:void 0;c.type==="heading"&&c.attributes.level===1?i=o(u,c.attributes.level,void 0,c,d):c.attributes.level?o(u,c.attributes.level,i?.items,c,i?.id??d):i?.items?.length?s(i?.items,c):n?.length&&s(n,c)};if(Array.isArray(r))for(const c of r)l(c);else l(r);return kee(t,n,a)}function kee(e,t,a=1){return t.map(r=>{const n=E0("section",r,e);return n.depth=a,r.items&&(n.items=kee(n,r.items,a+1)),n})}function yee(e){if(typeof e?.attributes?.content=="string")return e.attributes?.content;if(e?.children)return yee(e.children[0])}const xee=["tools"];function wee(e,t,a,r,n){let i;if(r===void 0?i=Object.keys(t):i=r.tags,!Array.isArray(i))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const o=i.map(l=>t[l]?(t[l].used=!0,t[l]):(console.warn(`Non-existing tag "${l}" is added to the group "${r?.name}"`),null)),s=[];for(const l of o){if(!l)continue;const c=E0("tag",l,a);if(c.depth=MZ+1,l.name===""){const p=[...WB(fi(l,"description")||"",c,c.depth+1),...vee(void 0,l,c.depth+1)];s.push(...p);continue}const u=Mqe({definition:e.definition,tag:l,parent:c,schemaDefinitionsTagName:n.schemaDefinitionsTagName}),d=Tqe(e.definition,l,c);c.items=[...u,...d,...WB(fi(l,"description")||"",c,c.depth+1),...vee(c,l,c.depth+1)],s.push(c)}return s.filter(({name:l,items:c})=>l!==k0||c.length>0)}function Pqe(e,t,a,r,n){const i=[];for(const o of a){const s=E0("group",o,t);s.depth=MZ,s.items=wee(e,r,s,o,n),i.push(s)}return i}function Mqe({definition:e,tag:t,parent:a,schemaDefinitionsTagName:r}){const n=r?[r]:[];return Object.entries(e.components?.schemas||{}).map(([i,o])=>{if(!(o["x-tags"]||n).includes(t.name))return null;const s=E0("schema",{name:i,"x-displayName":`${o.title||i}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${i}" /%}`,isSchema:!0,level:2},a);return s.depth=a.depth+1,s}).filter(Boolean)}function Tqe(e,t,a){const r=[];for(const n of xee)if(e["x-mcp"]?.[n]){const i=zee(n),o=[i];for(const s of e["x-mcp"]?.[n]||[])if((s.tags?.length?s.tags:o).includes(t.name)){const l=Gi(a.id,sv(s.name)),c=E0("mcp",{name:s.name,"x-displayName":s.title||s.name,description:`${s.description||""}
|
|
5937
|
-
{% mcp${i.slice(0,-1)} toolName="${s.name}" id="${l}" /%}`,isSchema:!0,level:2},a);c.depth=a.depth+1,r.push(c)}}return r}function _qe(e,t){const{definition:a}=e,r={},n=a["x-webhooks"]||a.webhooks,i=a["x-mcp"];for(const o of t||[])r[o.name]={...o,operations:[]};return a.paths&&ZB(e,a.paths,r),n&&ZB(e,n,r,!0),i&&Eqe(i,r),r}function Eqe(e,t){for(const a of xee)if(e[a])for(const r of e[a]){const n=r.tags&&r.tags.length?r.tags:[zee(a)];for(const i of n){let o=t[i];o===void 0&&(o={name:i,operations:[],used:!0},t[i]=o)}}}function ZB(e,t,a,r){for(const n of Object.keys(t||{})){const i=t[n],o=Object.keys(i).filter(BZ);for(const s of o){const l=i[s];if(i.$ref){const{resolved:u}=e.deref(i);ZB(e,{[n]:u},a,r);continue}let c=l?.tags;(!c||!c.length)&&(c=r?[k0]:[""]);for(const u of c){let d=a[u];d===void 0&&(d={name:u,operations:[]},a[u]=d),!d["x-traitTag"]&&d.operations.push({...l,pathName:n,pointer:Lr.compile(["paths",n,s]),httpVerb:s,pathParameters:i.parameters||[],pathServers:i.servers,isWebhook:!!r})}}}}function zee(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Rqe(e,t){const{definition:a}=e,{schemaDefinitionsTagName:r}=t,n=[{id:"",name:a?.info?.["x-seo"]?.title||a?.info?.title||"Overview",href:"/",depth:1,level:1,type:"section",infoDefinition:a.info,items:[]}],i=[...a.tags||[]];if(i.some(l=>l.name===k0)||i.push({name:k0}),!i.find(l=>l?.name===r)&&r&&i.push({name:r}),a["x-mcp"])for(const l of["Tools","Resources","Prompts"])a["x-mcp"][l]&&(i.find(c=>c?.name===l)||i.push({name:l}));const o=_qe(e,i),s=a["x-tagGroups"];return n.push(...WB(fi(a.info,"description")||"",void 0,1)),s&&s.length>0?n.push(...Pqe(e,void 0,s,o,t)):n.push(...wee(e,o,void 0,void 0,t)),n}function Lqe(e,t){const a=Rqe(e,t),r=HKe(a||[],"items");return{contentItems:a,flatItems:r}}const QB={},Bqe=Symbol((QB?"production":void 0)!=="production"?"RESET":"");function Nqe(e,t){let a=null;const r=new Map,n=new Set,i=s=>{let l;if(t===void 0)l=r.get(s);else for(const[u,d]of r)if(t(u,s)){l=d;break}if(l!==void 0)if(a?.(l[1],s))i.remove(s);else return l[0];const c=e(s);return r.set(s,[c,Date.now()]),o("CREATE",s,c),c},o=(s,l,c)=>{for(const u of n)u({type:s,param:l,atom:c})};return i.unstable_listen=s=>(n.add(s),()=>{n.delete(s)}),i.getParams=()=>r.keys(),i.remove=s=>{{if(!r.has(s))return;const[l]=r.get(s);r.delete(s),o("REMOVE",s,l)}},i.setShouldRemove=s=>{if(a=s,!!a)for(const[l,[c,u]]of r)a(u,l)&&(r.delete(l),o("REMOVE",l,c))},i}const See=e=>typeof e?.then=="function";function jee(e=()=>{try{return window.localStorage}catch(a){(QB?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(a);return}},t){var a;let r,n;const i={getItem:(l,c)=>{var u,d;const p=g=>{if(g=g||"",r!==g){try{n=JSON.parse(g,void 0)}catch{return c}r=g}return n},h=(d=(u=e())==null?void 0:u.getItem(l))!=null?d:null;return See(h)?h.then(p):p(h)},setItem:(l,c)=>{var u;return(u=e())==null?void 0:u.setItem(l,JSON.stringify(c,void 0))},removeItem:l=>{var c;return(c=e())==null?void 0:c.removeItem(l)}},o=l=>(c,u,d)=>l(c,p=>{let h;try{h=JSON.parse(p||"")}catch{h=d}u(h)});let s;try{s=(a=e())==null?void 0:a.subscribe}catch{}return!s&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(s=(l,c)=>{if(!(e()instanceof window.Storage))return()=>{};const u=d=>{d.storageArea===e()&&d.key===l&&c(d.newValue)};return window.addEventListener("storage",u),()=>{window.removeEventListener("storage",u)}}),s&&(i.subscribe=o(s)),i}const Dqe=jee();function Oee(e,t,a=Dqe,r){const n=hi(t);return(QB?"production":void 0)!=="production"&&(n.debugPrivate=!0),n.onMount=i=>{i(a.getItem(e,t));let o;return a.subscribe&&(o=a.subscribe(e,i,t)),o},hi(i=>i(n),(i,o,s)=>{const l=typeof s=="function"?s(i(n)):s;return l===Bqe?(o(n,t),a.removeItem(e)):See(l)?l.then(c=>(o(n,c),a.setItem(e,c))):(o(n,l),a.setItem(e,l))})}function $qe(e,t){const a=K.useMemo(()=>hi(null,(r,n,...i)=>e(r,n,...i)),[e]);return Xy(a)}const Iqe=()=>$qe(K.useCallback((e,t)=>t,[]))(),Le=typeof Z=="function"?Z:Z.default,Kqe=({className:e,style:t,handleClear:a})=>f.jsx("button",{className:e,style:t,onClick:a,children:"\u2715"}),Vqe=K.memo(Kqe),Hqe=Le(Vqe)`
|
|
6052
|
+
`}const mv=1,uqe=function(e,t,{target:a,client:r}){const n=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},t),i=new Ns({indentation:n.indent,variablesPrefix:n.variablesPrefix,lang:Ka.R}),o=e.method.toUpperCase(),s=e.securityOAuth2ExtraCalls?.[0];if(n.showBoilerplate&&i.push("library(httr)").blank(),s){const p="oauth2_",h=new pl(s).convert(a,r,{...n,variablesPrefix:p,showBoilerplate:!1}),g=`${p}data_req`;i.push(h),s.flowType==="deviceAuthorization"?xGe(i,{tokenUrl:s.tokenUrl??"YOUR_TOKEN_URL",clientId:s.clientId??"YOUR_CLIENT_ID",level:0,responseVariable:g}):(i.push(`access_token = content(${g}, "parsed")$access_token`),i.blank()),e.allHeaders.Authorization='paste("Bearer", access_token)'}let l,c="";if(e?.postData)switch(bn(e?.postData?.mimeType)){case ft.URL_ENCODED:{l="form",c=i.var("body");const p=pee(e.postData.params,n);i.push(`${c} <- list(${p})`).blank();break}case ft.JSON:{l="json",c=i.var("body");const p=dee(e.postData.jsonObj,n);i.push(`${c} = '${p}'`).blank();break}case ft.MULTIPART:{l="multipart",c=i.var("body");const p=pee(e.postData.params,n);i.push(`${c} <- list(${p})`).blank();break}default:e.postData?.text&&(c=i.var("body"),l="raw",i.push(`${c} = ${dee(e.postData?.text)}`).blank())}Cc(e,i),Object.keys({...e.pathParameters,...e.serverVariables}).length&&i.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const u=dl(e,i);i.push(`url = ${u}`).blank();const d=i.var("data_req");if(i.push(`${d} <- ${o}(`),i.push(mv,"url,"),e.basicAuth){const{username:p,password:h}=e.basicAuth;i.push(mv,`authenticate("${p}", "${h}")`)}if(Object.keys(e.allHeaders).length){const p=`${Object.keys(e.allHeaders).map(h=>`"${h}" = ${e.allHeaders[h].startsWith("paste")?e.allHeaders[h]:`"${e.allHeaders[h]}"`}`).join(", ")}`;p&&i.push(mv,`add_headers(${p}),`)}return c&&(i.push(mv,`body = ${c},`),i.push(mv,`encode = "${l}",`)),i.push(mv,"verbose()"),i.push(")"),n.printBody&&i.blank().push(`content(${d}${l==="raw"?', "text"':""})`),i.join()},dqe={info:{key:"r",title:"R",extname:".r",default:"httr"},httr:uqe},_0={javascript:OGe,node:PGe,python:_Ge,shell:RGe,java8:DGe,java:VGe,csharp:UGe,csharpNewtonsoft:YGe,go:eqe,php:iqe,ruby:cqe,r:dqe};function hee(e,t){if(e[t.name]===void 0)return e[t.name]=t.value,e;if(e[t.name]instanceof Array)return e[t.name].push(t.value),e;const a=[e[t.name],t.value];return e[t.name]=a,e}class pl{request;constructor(t){const a={...t};this.request=this.prepare({...a,httpVersion:a.httpVersion||"HTTP/1.1",queryString:a.queryString||[],headers:a.headers||[],cookies:a.cookies||[],postData:a.postData?{...a.postData,jsonObj:void 0,paramsObj:void 0}:void 0,bodySize:0,headersSize:0,queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},uriObj:{},fullUrl:"",pathParameters:a.pathParameters||{},serverVariables:a.serverVariables||{}})}prepare(t){if(t.queryString&&t.queryString.length&&(t.queryObj=t.queryString.reduce(hee,{})),t.headers&&t.headers.length){const n=/^HTTP\/2/;t.headersObj=t.headers.reduce(function(i,o){let s=o.name;return t.httpVersion.match(n)&&(s=s.toLowerCase()),i[s]=o.value,i},{})}t.cookies&&t.cookies.length&&(t.cookiesObj=t.cookies.reduceRight(function(n,i){return n[i.name]=i.value,n},{}));const a=t.cookies.map(function(n){return encodeURIComponent(n.name)+"="+encodeURIComponent(n.value)});if(a.length&&(t.allHeaders.cookie=a.join("; ")),t.postData)switch(bn(t.postData.mimeType)){case"multipart/mixed":case"multipart/related":case ft.MULTIPART:case"multipart/alternative":break;case ft.URL_ENCODED:t.postData?.params?(t.postData.paramsObj=t.postData.params.reduce(hee,{}),t.postData.text=j0.stringify(t.postData.paramsObj)):t.postData.text="";break;case"text/json":case"text/x-json":case ft.JSON:case"application/x-json":if(t.postData.text)try{t.postData.jsonObj=JSON.parse(t.postData.text)}catch{t.postData.mimeType="text/plain"}break}if(t.allHeaders=Object.assign(t.allHeaders,t.headersObj),t.uriObj=bL(t.url,!0),!t.uriObj)return{...t,uriObj:{protocol:"",path:"",queryObj:{},query:{}}};if(t.queryObj)for(const[n,i]of Object.entries(t.queryObj))t.uriObj.searchParams.has(n,i)||t.uriObj.searchParams.set(n,i);t.uriObj.query=Object.fromEntries(t.uriObj.searchParams.entries()),t.queryObj=t.uriObj.query,t.uriObj.path=t.uriObj.pathname=qL(t.uriObj.pathname);const r=new URL(t.uriObj.toString());return r.search="",t.url=qL(r.toString()),t.uriObj.search&&(t.uriObj.path=t.uriObj.pathname+"?"+t.uriObj.search),t.fullUrl=qL(t.uriObj.toString()),t}convert(t,a,r){!r&&a&&(r=a);const n=this._matchTarget(t,a);if(n){const i=n(this.request,r,{target:t,client:a});return i.length===1?i[0]:i}throw new Error("Cannot match target")}_matchTarget(t,a){return Object.prototype.hasOwnProperty.call(_0,t)?typeof a=="string"&&typeof _0[t][a]=="function"?_0[t][a]:_0[t][_0[t].info.default]:!1}}function gh(e,t,a){try{return $He(e,t,a)}catch(r){return console.error(`Error sampling schema: ${r.message}`),null}}function pqe(e,t){return e.find(a=>{const r=a.schemes.map(n=>n.id);return LVe(r,t||[])})}function hqe(e,{exampleName:t="",skipOptionalParameters:a=!1,withOAuth2Call:r=!1,spec:n,generatedPayloadSamplesMaxDepth:i=8,pathParams:o={},properties:s={},activeMimeName:l=""},{environment:c,requestValues:u,activeSecuritySchemeIds:d}){const p=c.server,h=e.servers.find(ae=>ae.url===p)||e.servers[0],g=pqe(e.security,d),{securityHeaders:k,securityCookies:v,securityQueries:m,securityOAuth2ExtraCalls:b,basicAuth:x}=fqe(g||e.security?.[0],r,c),j=e?.requestBody?.content&&vh(e.requestBody.content,l),w={skipNonRequired:a,skipReadOnly:!0,maxSampleDepth:i,quiet:!0},S=u;let O=!1;const M=e.parameters.filter(ae=>ae.in==="header").filter(ae=>!(a&&!ae.required)).map(ae=>({name:ae.name,value:S.header?.[ae.name]||aQ("header",ae.name)||ae.serverValues?.[p]?.example||ae.example||Ej(ae,gh(ae.schema.rawSchema,w,n))})).map(ae=>(j?.name&&ae.name.toLowerCase()==="content-type"&&(O=!0,ae.value=j.name),ae)).concat(k);!O&&j?.name&&M.unshift({name:"Content-Type",value:j?.name});const T=e.parameters.filter(ae=>ae.in==="cookie").filter(ae=>!(a&&!ae.required)).map(ae=>j0.parse(Ej(ae,ae.serverValues?.[p]?.example||ae.example||gh(ae.schema.rawSchema,w,n)))).reduce((ae,W)=>{for(const[he,Y]of Object.entries(W))ae.push({name:he,value:String(S.cookie?.[he]||Y)});return ae},[]).concat(v),B=e.parameters.filter(ae=>ae.in==="query").filter(ae=>!(a&&!ae.required)).map(ae=>j0.parse(Ej(ae,ae.serverValues?.[p]?.example||ae.example||gh(ae.schema.rawSchema,w,n)))).reduce((ae,W)=>{for(const[he,Y]of Object.entries(W))ae.push({name:he,value:jZ(S.query?.[he])&&JSON.stringify(OZ(S.query?.[he]))||String(S.query?.[he]||Y)});return ae},[]).concat(m),G=h?.url.replace(/\/$/,""),D=e.path.replace(/^\//,""),U=`${G}/${D}`,I=e.parameters.filter(ae=>ae.in==="path").reduce((ae,W)=>{const{in:he,name:Y}=W;return ae[Y]=S.path?.[Y]||W.serverValues?.[p]?.example||W.example||o[Y]||aQ(he,Y),ae},{}),X=j?.name.toLowerCase(),re=X===ft.MULTIPART||X===ft.URL_ENCODED,le=re?j?.formExamples?.[t]:j?.examples?.[t],ie=re?j?.formExamples||{}:j?.examples||{},[me]=Object.values(ie),F=le?.serverValues?.[p]?.value||me?.serverValues?.[p]?.value,N=ae=>!ae||typeof ae!="object"||!j?.schema?.rawSchema?null:gh(kqe(j.schema.rawSchema,ae),{...w,format:"xml"},n),J=(()=>{if(S?.body)return S.body;if(X===ft.XML){const ae=N(F)||N(le?.value)||N(me?.value);if(ae)return ae;if(j?.schema)return gh(j.schema.rawSchema,{...w,format:"xml"},n)}else{const ae=j?.schema&&gh(j.schema.rawSchema,{...w,format:"json"},n);return F||le?.value||me?.value||ae}return""})();let $="",P=[];switch(bn(X)){case ft.JSON:$=JSON.stringify(VB(J,s));break;case ft.XML:$=J;break;case ft.URL_ENCODED:case ft.MULTIPART:$=j0.stringify(VB(J,s)),P=mee(VB(J,s));break;default:$=String(J||"")}const R=$?{mimeType:j?.name||ft.OCTET_STREAM,text:$,params:P}:void 0,V=e.responses.map(ae=>ae.code);return{method:e.httpVerb,url:U,httpVersion:"HTTP/1.1",cookies:T,headers:M,queryString:B,postData:R,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:b,basicAuth:x,pathParameters:I,serverVariables:c,allResponseCodes:V}}const ql={withImports:!0,withComments:!1},Wj={curl:{code:"shell",defaultTarget:"curl",defaultOptions:{...ql,short:!0}},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:{...ql,withImports:!1}},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:{...ql}},Python:{code:"python",defaultTarget:"requests",defaultOptions:{...ql}},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:{...ql}},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:{...ql}},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:{...ql}},"C#+Newtonsoft":{code:"csharpNewtonsoft",defaultTarget:"httpclient",defaultOptions:{...ql}},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:{...ql}},PHP:{code:"php",defaultTarget:"curl",defaultOptions:{...ql}},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:{...ql}},R:{code:"r",defaultTarget:"httr",defaultOptions:{...ql}}};function mqe({lang:e,operation:t,exampleName:a,pathParams:r,properties:n,options:i={},environment:o,translate:s}){try{const{skipOptionalParameters:l,withOAuth2Call:c,spec:u,generatedPayloadSamplesMaxDepth:d,store:p,activeMimeName:h}=i,g=hqe(t,{exampleName:a,pathParams:r,properties:n,skipOptionalParameters:l,withOAuth2Call:c,spec:u,generatedPayloadSamplesMaxDepth:d,activeMimeName:h},{environment:o,requestValues:p.requestValues,activeSecuritySchemeIds:p.activeSecuritySchemeIds}),k=new pl(g);return Wj[e]?k.convert(Wj[e].code,Wj[e].defaultTarget,{...Wj[e].defaultOptions,...i}):s("openapi.unsupportedLanguage","Language is not supported.")}catch(l){return console.error(l),s("openapi.failedToGenerateCodeSample","Failed to generate code sample.")}}function fqe(e,t,a){const r={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0},n=a?.server;for(const i of e?.schemes||[]){const o=CVe(i.id,a),s=n&&i.serverValues&&i.serverValues[n],l={access_token:s?.["x-defaultAccessToken"]||i["x-defaultAccessToken"],token_type:s?.["x-defaultTokenType"]||i["x-defaultTokenType"],client_id:s?.["x-defaultClientId"]||i["x-defaultClientId"],client_secret:s?.["x-defaultClientSecret"]||i["x-defaultClientSecret"]},c=s?.["x-defaultUsername"]||i["x-defaultUsername"],u=s?.["x-defaultPassword"]||i["x-defaultPassword"],d=s&&"scopes"in s?s.scopes||[]:i.scopes||[];switch(i.type){case"openIdConnect":r.securityHeaders?.push({name:"Authorization",value:l.access_token?`${l.token_type||"Bearer"} ${l.access_token}`:o.token?`${l.token_type||o.token.token_type||"Bearer"} ${o.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const p=l.access_token?`${l.token_type||"Bearer"} ${l.access_token}`:o.token?`${o.token.token_type||"Bearer"} ${o.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";i.flows.deviceAuthorization&&t?r.securityOAuth2ExtraCalls.push(gqe(i.flows.deviceAuthorization,d)):i.flows.clientCredentials&&t?r.securityOAuth2ExtraCalls.push(bqe(i.flows.clientCredentials,d,{client_id:l.client_id||o.client_id,client_secret:l.client_secret||o.client_secret})):i.flows.password&&t&&r.securityOAuth2ExtraCalls.push(vqe(i.flows.password,d,{...o,client_id:l.client_id||o.client_id,client_secret:l.client_secret||o.client_secret})),r.securityHeaders?.push({name:"Authorization",value:p});break}case"apiKey":{const p=l.access_token||o.raw||"YOUR_API_KEY_HERE";i.in==="header"&&r.securityHeaders?.push({name:i.name,value:p}),i.in==="cookie"&&r.securityCookies.push({name:i.name,value:p}),i.in==="query"&&r.securityQueries.push({name:i.name,value:p});break}case"http":if(i.scheme==="basic")r.basicAuth={username:c||o.username||`<${pv.toSnakeCase("Username")}>`,password:u||o.password||`<${pv.toSnakeCase("Password")}>`};else{const p=l?.access_token||o.token?.access_token||`<YOUR_${i.bearerFormat||"TOKEN"}_HERE>`;r.securityHeaders?.push({name:"Authorization",value:`${Zj(i.scheme||"bearer")} ${p}`})}break}}return r}function gqe(e,t){const a=e["x-defaultClientId"]??"YOUR_CLIENT_ID",{tokenUrl:r,deviceAuthorizationUrl:n}=e;return{method:"POST",url:n,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:ft.URL_ENCODED},{name:"Accept",value:ft.JSON}],queryString:[],postData:{mimeType:ft.URL_ENCODED,text:"",params:[{name:"client_id",value:a},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(HB)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[],flowType:"deviceAuthorization",tokenUrl:r,clientId:a}}function vqe(e,t,a){const{tokenUrl:r}=e,n=a.client_id??"YOUR_CLIENT_ID";return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:ft.URL_ENCODED},{name:"Accept",value:ft.JSON}],queryString:[],postData:{mimeType:ft.URL_ENCODED,text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:n},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:a.username||"<username>"},{name:"password",value:a.password||"<password>"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(HB)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[],flowType:"password",tokenUrl:r,clientId:n}}function bqe(e,t,a){const{tokenUrl:r}=e,n=a.client_id??"YOUR_CLIENT_ID";return{method:"POST",url:e.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:ft.URL_ENCODED},{name:"Accept",value:ft.JSON}],queryString:[],postData:{mimeType:ft.URL_ENCODED,text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:n},{name:"client_secret",value:a.client_secret||"YOUR_CLIENT_SECRET"},t.length?{name:"scope",value:t.join(" ")}:void 0].filter(HB)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[],flowType:"clientCredentials",tokenUrl:r,clientId:n}}function VB(e,t){if(e){if(rs(e))return Object.keys(e).length>0&&Object.keys(t).length===0?e:cv(e,t,{arrayMerge:Kj});try{return cv(JSON.parse(e),t,{arrayMerge:Kj})}catch{return!1}}return!1}function mee(e,t=""){const a=[];for(const[r,n]of Object.entries(e)){const i=t?`${t}[${r}]`:r;if(typeof n=="object"&&n!==null)a.push(...mee(n,i));else{const o=Array.isArray(e)&&typeof n=="string"&&t?t:i;a.push({name:o,value:String(n)})}}return a}function HB(e){return e!==void 0}function Zj(e){return e.charAt(0).toUpperCase()+e.slice(1)}function kqe(e,t){if(!e||typeof e!="object"||!t||typeof t!="object")return e;const a=JSON.parse(JSON.stringify(e));function r(n,i){if(!(!n||!i||typeof n!="object"||typeof i!="object")&&n.properties){for(const o in n.properties)if(i[o]!==void 0){const s=n.properties[o],l=i[o];if(s.type==="object"&&typeof l=="object"&&!Array.isArray(l))r(s,l);else if(s.type==="array"&&Array.isArray(l)&&l.length>0){const c=l[0];s.items&&s.items.properties&&r(s.items,c)}else s.example=l}}}return r(a,t),a}function fee({parser:e,info:{encoding:t,schema:a},schema:r,mime:n,options:{isRequestType:i,onlyRequiredInSamples:o,generatedSamplesMaxDepth:s,format:l="json"}}){const c={skipReadOnly:i,skipWriteOnly:!i,skipNonRequired:i&&o,maxSampleDepth:s,quiet:!0,format:l};let u={};if(r&&r.oneOf)for(const d of r.oneOf){const p=gh(d.rawSchema,c,e.definition);p!==null&&(r.discriminatorProp&&typeof p=="object"&&p&&p[r.discriminatorProp]&&(p[r.discriminatorProp]=d.title),u[d.title]=O0({parser:e,infoOrRef:{value:p},mime:n,encoding:t}))}else if(r){const d=gh(a,c,e.definition);d!==null?u={default:O0({parser:e,infoOrRef:{value:d},mime:n,encoding:t})}:u={default:{value:null,rawValue:"null"}}}else u={default:{value:null,rawValue:"null"}};return u}function gee(e,t,a,r,n,{operation:i,type:o,response:s,absolutePointer:l=""}){let c,u;const d=r.schema&&Jm({parser:e,schemaOrRef:r.schema,pointer:"",absolutePointer:Lr.join(l,["content",t,"schema"]),options:n,deps:{operation:i,type:o,response:s}}),{onlyRequiredInSamples:p,generatedSamplesMaxDepth:h}=n,{encoding:g,examples:k,example:v}=r;return n.unstable_skipSamples||(k!==void 0?c=zZ(k,m=>O0({parser:e,infoOrRef:m,mime:t,encoding:g})):v!==void 0?c={default:O0({parser:e,infoOrRef:{value:e.deref(v).resolved},mime:t,encoding:g})}:SL(t)||KZ(t)?c=fee({parser:e,info:r,schema:d,mime:t,options:{isRequestType:a,onlyRequiredInSamples:p,generatedSamplesMaxDepth:h,format:KZ(t)?"xml":"json"}}):(VZ(t)||uVe(t))&&(u=fee({parser:e,info:r,schema:d,mime:t,options:{isRequestType:a,onlyRequiredInSamples:p,generatedSamplesMaxDepth:h}}))),{examples:c,schema:d,name:t,isRequestType:a,formExamples:u,onlyRequiredInSamples:p,operation:i}}function FB({parser:e,info:t,isRequestType:a,options:r,data:{operation:n,type:i,response:o,absolutePointer:s=""}}){const l=Object.keys(t).map(u=>gee(e,u,a,t[u],r,{operation:n,type:i,response:o,absolutePointer:s})),c=l.filter(u=>!!u.examples||!!u.formExamples).length>0;return{mediaTypes:l,isRequestType:a,hasSample:c,operation:n}}function vh(e,t){return t&&e.mediaTypes.find(a=>a.name===t)||e.mediaTypes[0]||{}}function yqe(e,t){if(!e.in){if(e.deps.type==="request"&&e.deps.operation?.requestBody?.content?.mediaTypes)return e.deps.operation?.requestBody?.content?.mediaTypes.length>1?e.deps.operation?.requestBody?.content&&vh(e.deps.operation.requestBody.content,t).name:void 0;if(e.deps.type==="response"&&e.deps.response?.content?.mediaTypes)return e.deps.response?.content?.mediaTypes.length>1?e.deps.response?.content&&vh(e.deps.response.content,t).name:void 0}}function xqe(e,t){if(!e)return"";const a={t:e.deps.type,in:e.in||e.deps.in,c:e.deps.type==="response"?e.deps.response?.code:void 0,cb:e.deps.operation?.isCallback?e.deps.operation.callbackId:void 0,ct:yqe(e,t),path:e.fieldFullPath};return j0.stringify(a,{encode:!1,sort:!1})}function Gi(e="",t="",a="/"){return e.endsWith(a)&&e!==a&&(e=e.slice(0,-a.length)),t.startsWith(a)&&(t=t.slice(a.length)),!e||!t||e===a?e+t:e+a+t}function Rd(e,t){return e=y0(e),(`/${e}#`+Gi(e,t)).toLowerCase()}function vee(e,t,a){if(t.operations.length===0)return[];const r=[],n=[];for(const i of t.operations){const o=DZ(i,e),s={id:o,type:"operation",parent:e,operationDefinition:i,depth:a,name:NZ(i),httpVerb:i.httpVerb,path:i.pathName,items:[],isWebhook:i.isWebhook,operationId:i.operationId,badges:i["x-badges"]||[],href:GB({id:o}),deprecated:!!i.deprecated,[Es]:i[Es]||e?.[Es]};i.isWebhook?n.push(s):r.push(s)}return[...r.sort((i,o)=>Number(i.deprecated)-Number(o.deprecated)),...n.sort((i,o)=>Number(i.deprecated)-Number(o.deprecated))]}function GB({id:e}){return y0(`/${e}`.toLowerCase())}function E0(e,t,a){let r;a?.id&&(e==="schema"||e==="mcp")?r=Gi(a.id,sv(t.name)):r=t.id||sv(t.name);const n=t["x-displayName"]||t.name,i=t.level||1,o=t.isSchema,s=t.ast||void 0,l=AL(fi(t,"description")||""),c=t.items||[],u=t.externalDocs;return{id:r.toLowerCase(),type:e,parent:a,name:n,level:i,depth:0,isSchema:o,description:l,items:c,ast:s,externalDocs:u,href:GB({id:r}),[Es]:t[Es]||a?.[Es],keywords:e==="tag"?t["x-keywords"]:void 0}}function wqe(e){return{}}function zqe(e,t,a,r,n,i,o,s){const{resolved:l}=e.deref(a),c=[];for(const u of Object.keys(l)){const d=l[u],p=Object.keys(d).filter(BZ);for(const h of p){const g=d[h],k=UB(e,{...g,pathName:u,pointer:Lr.join(r,["callbacks",t,h]),httpVerb:h,pathParameters:d.parameters||[],pathServers:d.servers},o,n,i,{isCallback:!0,id:Gi(t,h)});c.push(k)}}return{name:t,operations:c}}function Sqe({parser:e,infoOrRef:t,options:a,isEvent:r,operation:n}){const{resolved:i}=e.deref(t),o=fi(i,"description")||"",s=i.required;let l;const c=!r,u=YZ(i);return u!==void 0&&(l=FB({parser:e,info:u,isRequestType:c,options:a,data:{operation:n,type:"request",absolutePointer:t.$ref||Lr.join(n.pointer,["requestBody"])}})),{description:o,required:s,content:l}}function qB(e=[],t){return e.map(a=>jqe({requirement:a,parser:t})).filter(({schemes:a})=>a.length>0)}function jqe({requirement:e,parser:t}){const a=t.definition.components&&t.definition.components.securitySchemes||{};return{schemes:Object.keys(e||{}).map(r=>{const n=t.deref(a[r]).resolved,i=e[r]||[];if(n)return{...n,id:r,sectionId:r,scopes:i}}).filter(Boolean)}}function Oqe({parser:e,code:t,defaultAsError:a,infoOrRef:r,options:n,isEvent:i,operation:o}){const s=!!i,{resolved:l}=e.deref(r),c={code:t};l["x-summary"]!==void 0?(c.summary=fi(l,"x-summary"),c.description=fi(l,"description")||""):(c.summary=fi(l,"description")||"",c.description=""),c.type=LZ(t,a);const u=l.headers,d=r.$ref||Lr.join(o?.pointer||"",["responses",t]);u!==void 0&&(c.headers=Object.keys(u).map(h=>{const g=u[h];return hh(e,{...g,name:h},Lr.join(d,["headers",h]),n,{operation:o,type:"response",response:c})}));const p=YZ(l);return p!==void 0&&(c.content=FB({parser:e,info:p,isRequestType:s,options:n,data:{operation:o,type:"response",response:c,absolutePointer:d}})),c}function Cqe(e){return e.lang==="Payload"&&"requestBodyContent"in e}function UB(e,t,a,r,n,i,o,s){const l=t.isWebhook,c={operationDefinition:t,parent:a,pointer:t.pointer,description:fi(t,"description"),externalDocs:t.externalDocs,deprecated:!!t.deprecated,httpVerb:t.httpVerb,operationId:t.operationId,path:t.pathName,isWebhook:l,isCallback:!!i?.isCallback,isEvent:i?.isCallback||l,name:NZ(t),defaultExampleName:t.defaultSampleName,[Es]:t[Es]||a?.[Es],type:"operation",callbackId:i?.id,href:n,get callbacks(){return Object.keys(t.callbacks||[]).map(h=>zqe(e,h,t.callbacks?.[h],c.pointer,r,n,a))},get responses(){let h=!1;return Object.keys(t.responses||[]).filter(g=>g==="default"?!0:(LZ(g)==="success"&&(h=!0),sVe(g))).map(g=>Oqe({parser:e,code:g,defaultAsError:h,infoOrRef:t.responses[g],options:r,isEvent:c.isEvent,operation:c}))},get parameters(){return Aqe(e,t,c,r,p)}};if(i?.isCallback)c.security=qB(t.security,e),c.servers=w0("",t.servers||t.pathServers||[]),c.id=ku(n);else{c.id=DZ(t,a),c.href=c.href||GB(c),c.security=qB(t.security||e.definition.security,e);const h=t.servers||(t.pathServers?.length?t.pathServers:null)||e.definition.servers||[];c.servers=w0(e.definitionUrl,JB(h,r.mockServer))}r.showExtensions&&(c.extensions=OL(t,r.showExtensions)),c.requestBody=t.requestBody?Sqe({parser:e,infoOrRef:t.requestBody,options:r,operation:c,isEvent:c.isEvent}):void 0;const u=c.requestBody?.content;c.payload={lang:"Payload",source:"",requestBodyContent:u?.hasSample?u:void 0},c.definitionSamples=t["x-codeSamples"]||[],c.badges=t["x-badges"]?.map(({name:h,color:g,position:k})=>({name:h,color:g||"var(--color-info-base)",position:k||"after"}))||[],c.hasSamples=u?.hasSample||c.definitionSamples.length>0,c.hideReplay=t["x-hideReplay"]===!0;const d=wqe()||{},p=s||d.requestValues||{};return BVe(c,p),c}function Aqe(e,t,a,r,n){let i=kVe(e,t.pathParameters,t.parameters,{pathPointer:Lr.dirName(a.pointer),operationPointer:a.pointer}).map(({paramOrRef:o,pointer:s})=>{const l=hh(e,o,s,r,{operation:a,type:"request"});return NVe(l,n),l});return r.sortRequiredPropsFirst&&(i=ZZ(i)),QZ(i)}function JB(e,t){if(!t)return e;const a={url:t.url,description:t.description};switch(t.position){case"first":return[a,...e];case"last":return[...e,a];case"replace":return[a];default:return e}}const bee=e=>{t(e);for(const a of e.walk())t(a),a?.children?.length&&bee(a);function t(a){a?.location&&delete a.location,a.tag===void 0&&delete a.tag}return e.type==="document"&&e?.children?.length?e?.children:e};function WB(e,t,a){const r=Fm(e)?bee($r.parse(e)):$r.Ast.fromJSON(JSON.stringify(e?.result)),n=[];let i;const o=(c,u,d=n,p,h)=>{c=JKe(c);let g;p.attributes.id?g=p.attributes.id:(g=h?`${h}/${sv(c)}`:`section/${sv(c)}`,p.attributes.id=g);const k={id:g.toLowerCase(),name:c,level:u,items:[],ast:[p]};return d.push(k),k},s=(c,u)=>{c[c.length-1]?.ast?.push(u)},l=c=>{const u=yee(c)||"",d=t&&t.type==="tag"?t.id:void 0;c.type==="heading"&&c.attributes.level===1?i=o(u,c.attributes.level,void 0,c,d):c.attributes.level?o(u,c.attributes.level,i?.items,c,i?.id??d):i?.items?.length?s(i?.items,c):n?.length&&s(n,c)};if(Array.isArray(r))for(const c of r)l(c);else l(r);return kee(t,n,a)}function kee(e,t,a=1){return t.map(r=>{const n=E0("section",r,e);return n.depth=a,r.items&&(n.items=kee(n,r.items,a+1)),n})}function yee(e){if(typeof e?.attributes?.content=="string")return e.attributes?.content;if(e?.children)return yee(e.children[0])}const xee=["tools"];function wee(e,t,a,r,n){let i;if(r===void 0?i=Object.keys(t):i=r.tags,!Array.isArray(i))return console.warn("Unexpected values of tags. Check tags or x-tagGroups in your definition."),[];const o=i.map(l=>t[l]?(t[l].used=!0,t[l]):(console.warn(`Non-existing tag "${l}" is added to the group "${r?.name}"`),null)),s=[];for(const l of o){if(!l)continue;const c=E0("tag",l,a);if(c.depth=MZ+1,l.name===""){const p=[...WB(fi(l,"description")||"",c,c.depth+1),...vee(void 0,l,c.depth+1)];s.push(...p);continue}const u=Mqe({definition:e.definition,tag:l,parent:c,schemaDefinitionsTagName:n.schemaDefinitionsTagName}),d=Tqe(e.definition,l,c);c.items=[...u,...d,...WB(fi(l,"description")||"",c,c.depth+1),...vee(c,l,c.depth+1)],s.push(c)}return s.filter(({name:l,items:c})=>l!==k0||c.length>0)}function Pqe(e,t,a,r,n){const i=[];for(const o of a){const s=E0("group",o,t);s.depth=MZ,s.items=wee(e,r,s,o,n),i.push(s)}return i}function Mqe({definition:e,tag:t,parent:a,schemaDefinitionsTagName:r}){const n=r?[r]:[];return Object.entries(e.components?.schemas||{}).map(([i,o])=>{if(!(o["x-tags"]||n).includes(t.name))return null;const s=E0("schema",{name:i,"x-displayName":`${o.title||i}`,description:`{% schemaDefinition showWriteOnly="true" schemaRef="#/components/schemas/${i}" /%}`,isSchema:!0,level:2},a);return s.depth=a.depth+1,s}).filter(Boolean)}function Tqe(e,t,a){const r=[];for(const n of xee)if(e["x-mcp"]?.[n]){const i=zee(n),o=[i];for(const s of e["x-mcp"]?.[n]||[])if((s.tags?.length?s.tags:o).includes(t.name)){const l=Gi(a.id,sv(s.name)),c=E0("mcp",{name:s.name,"x-displayName":s.title||s.name,description:`${s.description||""}
|
|
6053
|
+
{% mcp${i.slice(0,-1)} toolName="${s.name}" id="${l}" /%}`,isSchema:!0,level:2},a);c.depth=a.depth+1,r.push(c)}}return r}function _qe(e,t){const{definition:a}=e,r={},n=a["x-webhooks"]||a.webhooks,i=a["x-mcp"];for(const o of t||[])r[o.name]={...o,operations:[]};return a.paths&&ZB(e,a.paths,r),n&&ZB(e,n,r,!0),i&&Eqe(i,r),r}function Eqe(e,t){for(const a of xee)if(e[a])for(const r of e[a]){const n=r.tags&&r.tags.length?r.tags:[zee(a)];for(const i of n){let o=t[i];o===void 0&&(o={name:i,operations:[],used:!0},t[i]=o)}}}function ZB(e,t,a,r){for(const n of Object.keys(t||{})){const i=t[n],o=Object.keys(i).filter(BZ);for(const s of o){const l=i[s];if(i.$ref){const{resolved:u}=e.deref(i);ZB(e,{[n]:u},a,r);continue}let c=l?.tags;(!c||!c.length)&&(c=r?[k0]:[""]);for(const u of c){let d=a[u];d===void 0&&(d={name:u,operations:[]},a[u]=d),!d["x-traitTag"]&&d.operations.push({...l,pathName:n,pointer:Lr.compile(["paths",n,s]),httpVerb:s,pathParameters:i.parameters||[],pathServers:i.servers,isWebhook:!!r,keywords:l["x-keywords"]})}}}}function zee(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Rqe(e,t){const{definition:a}=e,{schemaDefinitionsTagName:r}=t,n=[{id:"",name:a?.info?.["x-seo"]?.title||a?.info?.title||"Overview",href:"/",depth:1,level:1,type:"section",infoDefinition:a.info,items:[],keywords:a["x-keywords"]}],i=[...a.tags||[]];if(i.some(l=>l.name===k0)||i.push({name:k0}),!i.find(l=>l?.name===r)&&r&&i.push({name:r}),a["x-mcp"])for(const l of["Tools","Resources","Prompts"])a["x-mcp"][l]&&(i.find(c=>c?.name===l)||i.push({name:l}));const o=_qe(e,i),s=a["x-tagGroups"];return n.push(...WB(fi(a.info,"description")||"",void 0,1)),s&&s.length>0?n.push(...Pqe(e,void 0,s,o,t)):n.push(...wee(e,o,void 0,void 0,t)),n}function Lqe(e,t){const a=Rqe(e,t),r=HKe(a||[],"items");return{contentItems:a,flatItems:r}}const QB={},Bqe=Symbol((QB?"production":void 0)!=="production"?"RESET":"");function Nqe(e,t){let a=null;const r=new Map,n=new Set,i=s=>{let l;if(t===void 0)l=r.get(s);else for(const[u,d]of r)if(t(u,s)){l=d;break}if(l!==void 0)if(a?.(l[1],s))i.remove(s);else return l[0];const c=e(s);return r.set(s,[c,Date.now()]),o("CREATE",s,c),c},o=(s,l,c)=>{for(const u of n)u({type:s,param:l,atom:c})};return i.unstable_listen=s=>(n.add(s),()=>{n.delete(s)}),i.getParams=()=>r.keys(),i.remove=s=>{{if(!r.has(s))return;const[l]=r.get(s);r.delete(s),o("REMOVE",s,l)}},i.setShouldRemove=s=>{if(a=s,!!a)for(const[l,[c,u]]of r)a(u,l)&&(r.delete(l),o("REMOVE",l,c))},i}const See=e=>typeof e?.then=="function";function jee(e=()=>{try{return window.localStorage}catch(a){(QB?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(a);return}},t){var a;let r,n;const i={getItem:(l,c)=>{var u,d;const p=g=>{if(g=g||"",r!==g){try{n=JSON.parse(g,void 0)}catch{return c}r=g}return n},h=(d=(u=e())==null?void 0:u.getItem(l))!=null?d:null;return See(h)?h.then(p):p(h)},setItem:(l,c)=>{var u;return(u=e())==null?void 0:u.setItem(l,JSON.stringify(c,void 0))},removeItem:l=>{var c;return(c=e())==null?void 0:c.removeItem(l)}},o=l=>(c,u,d)=>l(c,p=>{let h;try{h=JSON.parse(p||"")}catch{h=d}u(h)});let s;try{s=(a=e())==null?void 0:a.subscribe}catch{}return!s&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(s=(l,c)=>{if(!(e()instanceof window.Storage))return()=>{};const u=d=>{d.storageArea===e()&&d.key===l&&c(d.newValue)};return window.addEventListener("storage",u),()=>{window.removeEventListener("storage",u)}}),s&&(i.subscribe=o(s)),i}const Dqe=jee();function Oee(e,t,a=Dqe,r){const n=hi(t);return(QB?"production":void 0)!=="production"&&(n.debugPrivate=!0),n.onMount=i=>{i(a.getItem(e,t));let o;return a.subscribe&&(o=a.subscribe(e,i,t)),o},hi(i=>i(n),(i,o,s)=>{const l=typeof s=="function"?s(i(n)):s;return l===Bqe?(o(n,t),a.removeItem(e)):See(l)?l.then(c=>(o(n,c),a.setItem(e,c))):(o(n,l),a.setItem(e,l))})}function $qe(e,t){const a=K.useMemo(()=>hi(null,(r,n,...i)=>e(r,n,...i)),[e]);return Xy(a)}const Iqe=()=>$qe(K.useCallback((e,t)=>t,[]))(),Le=typeof Z=="function"?Z:Z.default,Kqe=({className:e,style:t,handleClear:a})=>f.jsx("button",{className:e,style:t,onClick:a,children:"\u2715"}),Vqe=K.memo(Kqe),Hqe=Le(Vqe)`
|
|
5938
6054
|
z-index: 1;
|
|
5939
6055
|
position: absolute;
|
|
5940
6056
|
right: 24px;
|
|
@@ -6083,7 +6199,7 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ka.PHP});p.len
|
|
|
6083
6199
|
height: ${({size:e})=>e||"16px"};
|
|
6084
6200
|
width: ${({size:e})=>e||"16px"};
|
|
6085
6201
|
cursor: pointer;
|
|
6086
|
-
`;function Ul({children:e,color:t,icon:a,active:r,closable:n,tabIndex:i,onClick:o,onKeyDown:s,onClose:l,size:c,borderless:u,withStatusDot:d,statusDotColor:p="var(--tag-status-dot-color-default)",maxLength:h,textTransform:g,variant:k="filled",...
|
|
6202
|
+
`;function Ul({children:e,color:t,icon:a,active:r,closable:n,tabIndex:i,onClick:o,onKeyDown:s,onClose:l,size:c,borderless:u,withStatusDot:d,statusDotColor:p="var(--tag-status-dot-color-default)",maxLength:h,textTransform:g,variant:k="filled",selectable:v,...m}){const b=(S,O)=>S.length<=O?S:S.slice(0,O)+"...",x=S=>{if(typeof S=="string")return S;if(typeof S=="number")return S.toString();if(Bt.isValidElement(S)){const O=S.props;if(typeof O.children=="string")return O.children}return""},j=(S,O)=>{if(typeof S=="string")return b(S,O);if(typeof S=="number"){const M=S.toString();return M.length>O?b(M,O):S}if(Bt.isValidElement(S)){if(x(S).length<=O)return S;const M=S.props;if(typeof M.children=="string")return Bt.cloneElement(S,{...M,children:b(M.children,O)})}return S},w=()=>h?typeof e=="string"?b(e,h):Bt.isValidElement(e)?j(e,h):e:e;return f.jsxs(eUe,{tabIndex:i,"data-component-name":"Tag/Tag",borderless:u,color:t,size:c,onClick:o,onKeyDown:s,hasCloseButton:n,textTransform:g,variant:k,selectable:v,...m,children:[d?f.jsx(tUe,{color:p}):a||null,f.jsx(Aee,{children:w()}),n&&f.jsx(Xqe,{onClick:S=>{l?.(S)},children:f.jsx(Ds,{})}),r&&f.jsx(aUe,{})]})}const Aee=Z.div`
|
|
6087
6203
|
display: inline-flex;
|
|
6088
6204
|
align-items: center;
|
|
6089
6205
|
justify-content: center;
|
|
@@ -6097,11 +6213,17 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ka.PHP});p.len
|
|
|
6097
6213
|
justify-content: center;
|
|
6098
6214
|
align-self: stretch;
|
|
6099
6215
|
border-radius: 0 var(--tag-border-radius) var(--tag-border-radius) 0;
|
|
6216
|
+
margin: calc(-1 * var(--tag-border-width));
|
|
6217
|
+
padding: var(--tag-border-width);
|
|
6100
6218
|
|
|
6101
6219
|
&:hover {
|
|
6102
6220
|
background: var(--tag-close-button-bg-color-hover);
|
|
6103
6221
|
}
|
|
6104
|
-
|
|
6222
|
+
|
|
6223
|
+
&:focus-visible {
|
|
6224
|
+
background: var(--tag-close-button-bg-color-focus);
|
|
6225
|
+
}
|
|
6226
|
+
`,eUe=Z.div.attrs(({className:e,color:t,size:a,variant:r})=>({className:[e,"tag-default",t&&`tag-${t}`,a&&`tag-size-${a}`,`tag-variant-${r||"filled"}`].filter(Boolean).join(" ")}))`
|
|
6105
6227
|
display: inline-flex;
|
|
6106
6228
|
align-items: center;
|
|
6107
6229
|
justify-content: center;
|
|
@@ -6126,8 +6248,8 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ka.PHP});p.len
|
|
|
6126
6248
|
${({textTransform:e})=>`text-transform: ${e?`${e}`:"var(--tag-text-transform)"};`}
|
|
6127
6249
|
|
|
6128
6250
|
color: var(--tag-color);
|
|
6129
|
-
background-color:
|
|
6130
|
-
${({borderless:e
|
|
6251
|
+
background-color: var(--tag-bg-color);
|
|
6252
|
+
${({borderless:e})=>e?"":"border: var(--tag-border-width) var(--tag-border-style) var(--tag-border-color);"}
|
|
6131
6253
|
border-radius: var(--tag-border-radius);
|
|
6132
6254
|
|
|
6133
6255
|
svg {
|
|
@@ -6135,16 +6257,18 @@ ${n.indent}`,variablesPrefix:n.variablesPrefix,capitalize:!0,lang:Ka.PHP});p.len
|
|
|
6135
6257
|
height: var(--tag-icon-height);
|
|
6136
6258
|
}
|
|
6137
6259
|
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6260
|
+
${({selectable:e})=>e&&Ue`
|
|
6261
|
+
&:hover {
|
|
6262
|
+
background-color: var(--tag-bg-color-hover);
|
|
6263
|
+
border-color: var(--tag-border-color-hover);
|
|
6264
|
+
}
|
|
6142
6265
|
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6266
|
+
&:focus-visible {
|
|
6267
|
+
outline: 1px solid var(--tag-border-color-focused);
|
|
6268
|
+
outline-offset: 2px;
|
|
6269
|
+
border-radius: var(--tag-border-radius-focused);
|
|
6270
|
+
}
|
|
6271
|
+
`};
|
|
6148
6272
|
`,tUe=Z.div`
|
|
6149
6273
|
display: inline-block;
|
|
6150
6274
|
width: var(--tag-badge-size);
|
|
@@ -10177,7 +10301,7 @@ ${i.message}`,location:r.child("description")})}}}}),Fue=e=>({Info:{leave(t){if(
|
|
|
10177
10301
|
font-size: var(--page-404-description-font-size);
|
|
10178
10302
|
line-height: var(--page-404-description-line-height);
|
|
10179
10303
|
font-weight: var(--page-404-description-font-weight);
|
|
10180
|
-
`;async function Qkt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await Fkt(e||t);try{$Qe(r)}catch{}return r}const Ykt=({options:e,definitionUrl:t,disableTelemetry:a,definition:r,activeSampleLanguage:n,children:i})=>{const[o,s]=K.useState(),[l,c]=K.useState(!0),[u,d]=K.useState(null),[p,h]=K.useState(e||{});K.useEffect(()=>{async function k(){c(!0);try{const v=await Hkt();h({...e,...v}),d(await Qkt(r,t,e))}catch(v){s(v.message)}}k()},[r,t,e]);const g=K.useMemo(()=>{if(u)return{definition:u,options:p,definitionUrl:t,activeSampleLanguage:n}},IQe([u,t,p]));return K.useEffect(()=>{g&&c(!1)},[g]),o?f.jsx(qkt,{description:o||"Please check path to your OpenAPI description"}):g?l?cl(e?.hideLoading,!1)?null:f.jsx(Grt,{color:"--loading-spinner-color"}):K.isValidElement(i)?K.cloneElement(i,{store:g}):null:null};function Xkt({definition:e,definitionUrl:t,disableTelemetry:a=!1,options:r={},activeItemId:n,activeSampleLanguage:i,activeDeepLink:o,router:s}){return f.jsx(Ykt,{definition:e,definitionUrl:t,disableTelemetry:a,options:r,activeItemId:n,activeSampleLanguage:i,activeDeepLink:o,children:f.jsx(ere,{withCommonStyles:!0,router:s||"hash"})})}function eyt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function tyt(e){const t=eyt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function ayt(e,t=document.querySelector("redoc")){KU.hydrateRoot(t,f.jsx(ere,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function ehe(e,t={},a=nR("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,disableTelemetry:n,...i}={...t,...tyt(a)};let o,s;typeof e=="string"?o=e:typeof e=="object"&&(s=e),KU.createRoot(a).render(K.createElement(Xkt,{definition:s,definitionUrl:o,disableTelemetry:n,options:i,router:r??"hash"},["Loading..."]))}const ryt="3.15.0-next.
|
|
10304
|
+
`;async function Qkt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await Fkt(e||t);try{$Qe(r)}catch{}return r}const Ykt=({options:e,definitionUrl:t,disableTelemetry:a,definition:r,activeSampleLanguage:n,children:i})=>{const[o,s]=K.useState(),[l,c]=K.useState(!0),[u,d]=K.useState(null),[p,h]=K.useState(e||{});K.useEffect(()=>{async function k(){c(!0);try{const v=await Hkt();h({...e,...v}),d(await Qkt(r,t,e))}catch(v){s(v.message)}}k()},[r,t,e]);const g=K.useMemo(()=>{if(u)return{definition:u,options:p,definitionUrl:t,activeSampleLanguage:n}},IQe([u,t,p]));return K.useEffect(()=>{g&&c(!1)},[g]),o?f.jsx(qkt,{description:o||"Please check path to your OpenAPI description"}):g?l?cl(e?.hideLoading,!1)?null:f.jsx(Grt,{color:"--loading-spinner-color"}):K.isValidElement(i)?K.cloneElement(i,{store:g}):null:null};function Xkt({definition:e,definitionUrl:t,disableTelemetry:a=!1,options:r={},activeItemId:n,activeSampleLanguage:i,activeDeepLink:o,router:s}){return f.jsx(Ykt,{definition:e,definitionUrl:t,disableTelemetry:a,options:r,activeItemId:n,activeSampleLanguage:i,activeDeepLink:o,children:f.jsx(ere,{withCommonStyles:!0,router:s||"hash"})})}function eyt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function tyt(e){const t=eyt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function ayt(e,t=document.querySelector("redoc")){KU.hydrateRoot(t,f.jsx(ere,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function ehe(e,t={},a=nR("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,disableTelemetry:n,...i}={...t,...tyt(a)};let o,s;typeof e=="string"?o=e:typeof e=="object"&&(s=e),KU.createRoot(a).render(K.createElement(Xkt,{definition:s,definitionUrl:o,disableTelemetry:n,options:i,router:r??"hash"},["Loading..."]))}const ryt="3.15.0-next.4",nyt="d5c1aad1";function iyt(){const e=nR("redoc");if(!e)return;const t=e.getAttribute("spec-url");if(t){const a=e.getAttribute("disable-telemetry")==="true";ehe(t,{disableTelemetry:a},e)}}iyt();var the={exports:{}};/*!
|
|
10181
10305
|
|
|
10182
10306
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
10183
10307
|
<http://stuartk.com/jszip>
|
|
@@ -10218,7 +10342,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
10218
10342
|
background-color: ${({selected:e,disabled:t})=>t?"var(--switch-knob-bg-color-disabled)":e?"var(--switch-knob-bg-color-selected)":"var(--switch-knob-bg-color)"};
|
|
10219
10343
|
transform: ${({selected:e})=>e?"translateX(var(--switch-knob-width))":"translateX(0)"};
|
|
10220
10344
|
transition: var(--switch-knob-transition);
|
|
10221
|
-
`;function pyt(e){const{id:t,listboxId:a,onlyIcon:r,icon:n,customIcon:i,selectedOptions:o,placeholder:s,stickyValue:l,multiple:c,searchable:u,clearable:d,clearHandler:p,searchHandler:h,clickHandler:g,searchValue:k,inputBlurHandler:v,inputFocusHandler:m}=e,b=K.useRef(null),x=U=>{h?.(U),b.current?.focus()},j=U=>{U.key==="Backspace"&&!k&&o.length&&(p?.(o[o.length-1]),b.current?.focus())},w=U=>{g?.(U)},S=U=>{m?.(U),b.current?.focus()},O=U=>{v?.(U)},M=U=>{U.stopPropagation(),p?.()},T=o.map((U,I)=>f.jsx(fyt,{closable:!0,onClose:()=>{p?.(U),b.current?.focus()},children:U.label||U.value||U.element},I)),B=f.jsx(gyt,{value:k||(!c&&!l&&o.length?o[0].label||o[0].value:""),placeholder:k||c&&o.length?"":l||s,onChange:x,onKeyDown:j,onBlur:O,ref:U=>{U&&(b.current=U,e.inputRef&&(typeof e.inputRef=="function"?e.inputRef(U):e.inputRef.current=U))},width:c?!k&&o.length?"10px":"auto":"100%",tabIndex:0,onFocus:U=>{U.stopPropagation()},onMouseDown:U=>{U.preventDefault()}}),G=o.length?o[0].label||o[0].element||o[0].value:f.jsx(nhe,{children:s}),D=o.length?T:f.jsx(nhe,{children:s});return f.jsxs(hyt,{...e,id:t,onFocus:S,onClick:w,role:"button","aria-haspopup":"listbox","aria-controls":a,"aria-owns":a,"aria-label":"Select option",children:[!r&&f.jsxs(f.Fragment,{children:[f.jsx(myt,{children:c?u?f.jsxs(f.Fragment,{children:[T,B]}):D:u?B:G}),!!(d&&o.length)&&f.jsx(at,{size:"small",variant:"text",icon:f.jsx(Ds,{}),onClick:M})]}),i||n]})}const hyt=Z.div`
|
|
10345
|
+
`;function pyt(e){const{id:t,listboxId:a,onlyIcon:r,icon:n,customIcon:i,selectedOptions:o,placeholder:s,stickyValue:l,multiple:c,searchable:u,clearable:d,clearHandler:p,searchHandler:h,clickHandler:g,searchValue:k,inputBlurHandler:v,inputFocusHandler:m}=e,b=K.useRef(null),x=U=>{h?.(U),b.current?.focus()},j=U=>{U.key==="Backspace"&&!k&&o.length&&(p?.(o[o.length-1]),b.current?.focus())},w=U=>{g?.(U)},S=U=>{m?.(U),b.current?.focus()},O=U=>{v?.(U)},M=U=>{U.stopPropagation(),p?.()},T=o.map((U,I)=>f.jsx(fyt,{closable:!0,tabIndex:0,onClose:()=>{p?.(U),b.current?.focus()},children:U.label||U.value||U.element},I)),B=f.jsx(gyt,{value:k||(!c&&!l&&o.length?o[0].label||o[0].value:""),placeholder:k||c&&o.length?"":l||s,onChange:x,onKeyDown:j,onBlur:O,ref:U=>{U&&(b.current=U,e.inputRef&&(typeof e.inputRef=="function"?e.inputRef(U):e.inputRef.current=U))},width:c?!k&&o.length?"10px":"auto":"100%",tabIndex:0,onFocus:U=>{U.stopPropagation()},onMouseDown:U=>{U.preventDefault()}}),G=o.length?o[0].label||o[0].element||o[0].value:f.jsx(nhe,{children:s}),D=o.length?T:f.jsx(nhe,{children:s});return f.jsxs(hyt,{...e,id:t,onFocus:S,onClick:w,role:"button","aria-haspopup":"listbox","aria-controls":a,"aria-owns":a,"aria-label":"Select option",children:[!r&&f.jsxs(f.Fragment,{children:[f.jsx(myt,{children:c?u?f.jsxs(f.Fragment,{children:[T,B]}):D:u?B:G}),!!(d&&o.length)&&f.jsx(at,{size:"small",variant:"text",icon:f.jsx(Ds,{}),onClick:M})]}),i||n]})}const hyt=Z.div`
|
|
10222
10346
|
width: 100%;
|
|
10223
10347
|
display: flex;
|
|
10224
10348
|
align-items: center;
|
|
@@ -11571,7 +11695,7 @@ html body {
|
|
|
11571
11695
|
align-self: flex-end;
|
|
11572
11696
|
padding-top: var(--spacing-xxs);
|
|
11573
11697
|
gap: var(--spacing-xs);
|
|
11574
|
-
`;function Bx({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return f.jsx(sxe,{variable:e,onSave:o,onCancel:a,...r,children:f.jsx(Lx,{children:f.jsx(X3t,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function bM(e){var t=new Error(e);return t.source="ulid",t}var sI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Nx=sI.length,lxe=Math.pow(2,48)-1,o_t=10,s_t=16;function l_t(e){var t=Math.floor(e()*Nx);return t===Nx&&(t=Nx-1),sI.charAt(t)}function c_t(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>lxe)throw bM("cannot encode time greater than "+lxe);if(e<0)throw bM("time must be positive");if(Number.isInteger(e)===!1)throw bM("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%Nx,r=sI.charAt(a)+r,e=(e-a)/Nx;return r}function u_t(e,t){for(var a="";e>0;e--)a=l_t(t)+a;return a}function d_t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw bM("secure crypto unusable, insecure Math.random not allowed")}function p_t(e){return e||(e=d_t()),function(t){return isNaN(t)&&(t=Date.now()),c_t(t,o_t)+u_t(s_t,e)}}var kM=p_t(),h_t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Tf="1.9.0",cxe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function m_t(e){var t=new Set([e]),a=new Set,r=e.match(cxe);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(cxe);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var f_t=m_t(Tf),g_t=Tf.split(".")[0],Dx=Symbol.for("opentelemetry.js.api."+g_t),$x=h_t;function Ix(e,t,a,r){var n;r===void 0&&(r=!1);var i=$x[Dx]=(n=$x[Dx])!==null&&n!==void 0?n:{version:Tf};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Tf){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Tf);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Tf+"."),!0}function _f(e){var t,a,r=(t=$x[Dx])===null||t===void 0?void 0:t.version;if(!(!r||!f_t(r)))return(a=$x[Dx])===null||a===void 0?void 0:a[e]}function Kx(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Tf+".");var a=$x[Dx];a&&delete a[e]}var v_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},b_t=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},k_t=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("verbose",this._namespace,t)},e})();function Vx(e,t,a){var r=_f("diag");if(r)return a.unshift(t),r[e].apply(r,b_t([],v_t(a),!1))}var jl;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(jl||(jl={}));function y_t(e,t){e<jl.NONE?e=jl.NONE:e>jl.ALL&&(e=jl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",jl.ERROR),warn:a("warn",jl.WARN),info:a("info",jl.INFO),debug:a("debug",jl.DEBUG),verbose:a("verbose",jl.VERBOSE)}}var x_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},w_t=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},z_t="diag",Zu=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=_f("diag");if(s)return s[n].apply(s,w_t([],x_t(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:jl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=_f("diag"),d=y_t((s=i.logLevel)!==null&&s!==void 0?s:jl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return Ix("diag",d,a,!0)};a.setLogger=r,a.disable=function(){Kx(z_t,a)},a.createComponentLogger=function(n){return new k_t(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),S_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},j_t=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O_t=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=S_t(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=j_t(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),C_t=Symbol("BaggageEntryMetadata"),A_t=Zu.instance();function P_t(e){return e===void 0&&(e={}),new O_t(new Map(Object.entries(e)))}function M_t(e){return typeof e!="string"&&(A_t.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:C_t,toString:function(){return e}}}function lI(e){return Symbol.for(e)}var T_t=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),$b=new T_t,Ef=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),__t=(function(){function e(){}return e.prototype.createGauge=function(t,a){return V_t},e.prototype.createHistogram=function(t,a){return H_t},e.prototype.createCounter=function(t,a){return K_t},e.prototype.createUpDownCounter=function(t,a){return F_t},e.prototype.createObservableGauge=function(t,a){return q_t},e.prototype.createObservableCounter=function(t,a){return G_t},e.prototype.createObservableUpDownCounter=function(t,a){return U_t},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),yM=(function(){function e(){}return e})(),E_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(yM),R_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(yM),L_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(yM),B_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(yM),cI=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),N_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(cI),D_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(cI),$_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(cI),I_t=new __t,K_t=new E_t,V_t=new L_t,H_t=new B_t,F_t=new R_t,G_t=new N_t,q_t=new D_t,U_t=new $_t,J_t={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},W_t={set:function(e,t,a){e!=null&&(e[t]=a)}},Z_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Q_t=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Y_t=(function(){function e(){}return e.prototype.active=function(){return $b},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,Q_t([r],Z_t(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),X_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},eEt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},uI="context",tEt=new Y_t,xM=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Ix(uI,t,Zu.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,eEt([t,a,r],X_t(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return _f(uI)||tEt},e.prototype.disable=function(){this._getContextManager().disable(),Kx(uI,Zu.instance())},e})(),ip;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(ip||(ip={}));var uxe="0000000000000000",dxe="00000000000000000000000000000000",pxe={traceId:dxe,spanId:uxe,traceFlags:ip.NONE},Hx=(function(){function e(t){t===void 0&&(t=pxe),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),dI=lI("OpenTelemetry Context Key SPAN");function pI(e){return e.getValue(dI)||void 0}function aEt(){return pI(xM.getInstance().active())}function hI(e,t){return e.setValue(dI,t)}function rEt(e){return e.deleteValue(dI)}function nEt(e,t){return hI(e,new Hx(t))}function hxe(e){var t;return(t=pI(e))===null||t===void 0?void 0:t.spanContext()}var iEt=/^([0-9a-f]{32})$/i,oEt=/^[0-9a-f]{16}$/i;function mxe(e){return iEt.test(e)&&e!==dxe}function sEt(e){return oEt.test(e)&&e!==uxe}function wM(e){return mxe(e.traceId)&&sEt(e.spanId)}function lEt(e){return new Hx(e)}var mI=xM.getInstance(),fxe=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=mI.active());var n=!!a?.root;if(n)return new Hx;var i=r&&hxe(r);return cEt(i)&&wM(i)?new Hx(i):new Hx},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??mI.active(),c=this.startSpan(t,i,l),u=hI(l,c);return mI.with(u,s,void 0,c)}},e})();function cEt(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var uEt=new fxe,dEt=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):uEt},e})(),pEt=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new fxe},e})(),hEt=new pEt,gxe=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new dEt(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:hEt},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),zM;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(zM||(zM={}));var fI;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(fI||(fI={}));var Fx;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Fx||(Fx={}));var qc=xM.getInstance(),jr=Zu.instance(),mEt=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return I_t},e})(),fEt=new mEt,gI="metrics",gEt=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Ix(gI,t,Zu.instance())},e.prototype.getMeterProvider=function(){return _f(gI)||fEt},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){Kx(gI,Zu.instance())},e})(),vEt=gEt.getInstance(),bEt=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),vI=lI("OpenTelemetry Baggage Key");function vxe(e){return e.getValue(vI)||void 0}function kEt(){return vxe(xM.getInstance().active())}function yEt(e,t){return e.setValue(vI,t)}function xEt(e){return e.deleteValue(vI)}var bI="propagation",wEt=new bEt,zEt=(function(){function e(){this.createBaggage=P_t,this.getBaggage=vxe,this.getActiveBaggage=kEt,this.setBaggage=yEt,this.deleteBaggage=xEt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Ix(bI,t,Zu.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=W_t),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=J_t),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Kx(bI,Zu.instance())},e.prototype._getGlobalPropagator=function(){return _f(bI)||wEt},e})(),Gx=zEt.getInstance(),kI="trace",SEt=(function(){function e(){this._proxyTracerProvider=new gxe,this.wrapSpanContext=lEt,this.isSpanContextValid=wM,this.deleteSpan=rEt,this.getSpan=pI,this.getActiveSpan=aEt,this.getSpanContext=hxe,this.setSpan=hI,this.setSpanContext=nEt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=Ix(kI,this._proxyTracerProvider,Zu.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return _f(kI)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){Kx(kI,Zu.instance()),this._proxyTracerProvider=new gxe},e})(),Ol=SEt.getInstance();const bxe=lI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function jEt(e){return e.setValue(bxe,!0)}function yI(e){return e.getValue(bxe)===!0}const OEt="=",xI=";",wI=",",zI="baggage",CEt=180,AEt=4096,PEt=8192;function MEt(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?wI:""}${a}`;return r.length>PEt?t:r},"")}function TEt(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=xI+a.metadata.toString()),r})}function _Et(e){const t=e.split(xI);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(OEt);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=M_t(t.join(xI))),{key:n,value:i,metadata:o}}class EEt{inject(t,a,r){const n=Gx.getBaggage(t);if(!n||yI(t))return;const i=TEt(n).filter(s=>s.length<=AEt).slice(0,CEt),o=MEt(i);o.length>0&&r.set(a,zI,o)}extract(t,a,r){const n=r.get(a,zI),i=Array.isArray(n)?n.join(wI):n;if(!i)return t;const o={};return i.length===0||(i.split(wI).forEach(s=>{const l=_Et(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Gx.setBaggage(t,Gx.createBaggage(o))}fields(){return[zI]}}function SM(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!REt(a)){jr.warn(`Invalid attribute key: ${a}`);continue}if(!kxe(r)){jr.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function REt(e){return typeof e=="string"&&e.length>0}function kxe(e){return e==null?!0:Array.isArray(e)?LEt(e):yxe(e)}function LEt(e){let t;for(const a of e)if(a!=null){if(!t){if(yxe(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function yxe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function BEt(){return e=>{jr.error(NEt(e))}}function NEt(e){return typeof e=="string"?e:JSON.stringify(DEt(e))}function DEt(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let $Et=BEt();function Ib(e){try{$Et(e)}catch{}}const Kb=performance,IEt="2.0.1",SI="exception.message",KEt="exception.stacktrace",jI="exception.type",xxe="service.name",VEt="service.version",OI="telemetry.sdk.language",HEt="webjs",CI="telemetry.sdk.name",AI="telemetry.sdk.version",FEt="process.runtime.name",PI={[CI]:"opentelemetry",[FEt]:"browser",[OI]:HEt,[AI]:IEt},GEt=9,qEt=6,UEt=Math.pow(10,qEt),jM=Math.pow(10,GEt);function Vb(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*UEt);return[a,r]}function wxe(){let e=Kb.timeOrigin;if(typeof e!="number"){const t=Kb;e=t.timing&&t.timing.fetchStart}return e}function JEt(e){const t=Vb(wxe()),a=Vb(typeof e=="number"?e:Kb.now());return jxe(t,a)}function WEt(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=jM),[a,r]}function ZEt(e){return e[0]*jM+e[1]}function zxe(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Sxe(e){return zxe(e)||typeof e=="number"||e instanceof Date}function jxe(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=jM&&(a[1]-=jM,a[0]+=1),a}var Qu;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Qu||(Qu={}));class QEt{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){jr.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){jr.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const MI="[_0-9a-z-*/]",YEt=`[a-z]${MI}{0,255}`,XEt=`[a-z0-9]${MI}{0,240}@[a-z]${MI}{0,13}`,e4t=new RegExp(`^(?:${YEt}|${XEt})$`),t4t=/^[ -~]{0,255}[!-~]$/,a4t=/,|=/;function r4t(e){return e4t.test(e)}function n4t(e){return t4t.test(e)&&!a4t.test(e)}const Oxe=32,i4t=512,Cxe=",",Axe="=";class yF{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+Axe+this.get(a)),t),[]).join(Cxe)}_parse(t){t.length>i4t||(this._internalState=t.split(Cxe).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(Axe);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);r4t(o)&&n4t(s)&&a.set(o,s)}return a},new Map),this._internalState.size>Oxe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Oxe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new yF;return t._internalState=new Map(this._internalState),t}}const TI="traceparent",_I="tracestate",o4t="00",s4t="(?!ff)[\\da-f]{2}",l4t="(?![0]{32})[\\da-f]{32}",c4t="(?![0]{16})[\\da-f]{16}",u4t="[\\da-f]{2}",d4t=new RegExp(`^\\s?(${s4t})-(${l4t})-(${c4t})-(${u4t})(-.*)?\\s?$`);function p4t(e){const t=d4t.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class h4t{inject(t,a,r){const n=Ol.getSpanContext(t);if(!n||yI(t)||!wM(n))return;const i=`${o4t}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||ip.NONE).toString(16)}`;r.set(a,TI,i),n.traceState&&r.set(a,_I,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,TI);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=p4t(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,_I);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new yF(typeof l=="string"?l:void 0)}return Ol.setSpanContext(t,o)}fields(){return[TI,_I]}}const m4t="[object Object]",f4t="[object Null]",g4t="[object Undefined]",v4t=Function.prototype,Pxe=v4t.toString,b4t=Pxe.call(Object),k4t=Object.getPrototypeOf,Mxe=Object.prototype,Txe=Mxe.hasOwnProperty,Rf=Symbol?Symbol.toStringTag:void 0,_xe=Mxe.toString;function Exe(e){if(!y4t(e)||x4t(e)!==m4t)return!1;const t=k4t(e);if(t===null)return!0;const a=Txe.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Pxe.call(a)===b4t}function y4t(e){return e!=null&&typeof e=="object"}function x4t(e){return e==null?e===void 0?g4t:f4t:Rf&&Rf in Object(e)?w4t(e):z4t(e)}function w4t(e){const t=Txe.call(e,Rf),a=e[Rf];let r=!1;try{e[Rf]=void 0,r=!0}catch{}const n=_xe.call(e);return r&&(t?e[Rf]=a:delete e[Rf]),n}function z4t(e){return _xe.call(e)}const S4t=20;function j4t(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=Rxe(t,e.shift(),0,a);return t}function EI(e){return OM(e)?e.slice():e}function Rxe(e,t,a=0,r){let n;if(!(a>S4t)){if(a++,CM(e)||CM(t)||Bxe(t))n=EI(t);else if(OM(e)){if(n=e.slice(),OM(t))for(let i=0,o=t.length;i<o;i++)n.push(EI(t[i]));else if(qx(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=EI(t[l])}}}else if(qx(e))if(qx(t)){if(!O4t(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(CM(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(Lxe(e,l,r)||Lxe(t,l,r))delete n[l];else{if(qx(u)&&qx(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=Rxe(n[l],c,a,r)}}}}else n=t;return n}}function Lxe(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function OM(e){return Array.isArray(e)}function Bxe(e){return typeof e=="function"}function qx(e){return!CM(e)&&!OM(e)&&!Bxe(e)&&typeof e=="object"}function CM(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function O4t(e,t){return!(!Exe(e)||!Exe(t))}class C4t{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class A4t{_callback;_that;_isCalled=!1;_deferred=new C4t;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function P4t(){return"unknown_service"}const Ux=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class iE{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new iE({});return a._rawAttributes=Dxe(t),a._asyncAttributesPending=t.filter(([r,n])=>Ux(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(Ux(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=Dxe(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,Ux(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&jr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(Ux(r)){jr.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:iE.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function Nxe(e){return iE.FromAttributeList(Object.entries(e))}function M4t(){return Nxe({[xxe]:P4t(),[OI]:PI[OI],[CI]:PI[CI],[AI]:PI[AI]})}function Dxe(e){return e.map(([t,a])=>Ux(a)?[t,a.catch(r=>{jr.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const T4t="exception";class _4t{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Fx.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Kb.now(),this._performanceOffset=a-(this._performanceStartTime+wxe()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return jr.warn(`Invalid attribute key: ${t}`),this;if(!kxe(a))return jr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return jr.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&jr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Sxe(a)&&(Sxe(r)||(r=a),a=void 0);const i=SM(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(jr.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){jr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=WEt(this.startTime,this.endTime),this._duration[0]<0&&(jr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&jr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Kb.now())return JEt(t+this._performanceOffset);if(typeof t=="number")return Vb(t);if(t instanceof Date)return Vb(t.getTime());if(zxe(t))return t;if(this._startTimeProvided)return Vb(Date.now());const a=Kb.now()-this._performanceStartTime;return jxe(this.startTime,Vb(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[SI]=t:t&&(t.code?r[jI]=t.code.toString():t.name&&(r[jI]=t.name),t.message&&(r[SI]=t.message),t.stack&&(r[KEt]=t.stack)),r[jI]||r[SI]?this.addEvent(T4t,r,a):jr.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);jr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(jr.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Hb;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Hb||(Hb={}));class AM{shouldSample(){return{decision:Hb.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Fb{shouldSample(){return{decision:Hb.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class PM{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Ib(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Fb),this._remoteParentSampled=t.remoteParentSampled??new Fb,this._remoteParentNotSampled=t.remoteParentNotSampled??new AM,this._localParentSampled=t.localParentSampled??new Fb,this._localParentNotSampled=t.localParentNotSampled??new AM}shouldSample(t,a,r,n,i,o){const s=Ol.getSpanContext(t);return!s||!wM(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&ip.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&ip.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class $xe{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:mxe(a)&&this._accumulate(a)<this._upperBound?Hb.RECORD_AND_SAMPLED:Hb.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const Ixe=1;function Kxe(){return{sampler:Vxe(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Vxe(){const e="parentbased_always_on";switch(e){case"always_on":return new Fb;case"always_off":return new AM;case"parentbased_always_on":return new PM({root:new Fb});case"parentbased_always_off":return new PM({root:new AM});case"traceidratio":return new $xe(Hxe());case"parentbased_traceidratio":return new PM({root:new $xe(Hxe())});default:return jr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new PM({root:new Fb})}}function Hxe(){return jr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Ixe}.`),Ixe}const E4t=128,R4t=1/0;function L4t(e){const t={sampler:Vxe()},a=Kxe(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function B4t(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??E4t,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??R4t,Object.assign({},e,{spanLimits:t})}class N4t{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new A4t(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(jr.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&ip.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&jr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(jr.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);qc.with(jEt(qc.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Qu.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{Ib(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,Ib(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class D4t extends N4t{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{Ib(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{Ib(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const $4t=8,I4t=16;class K4t{generateTraceId=Fxe(I4t);generateSpanId=Fxe($4t)}const MM=Array(32);function Fxe(e){return function(){for(let t=0;t<e*2;t++)MM[t]=Math.floor(Math.random()*16)+48,MM[t]>=58&&(MM[t]+=39);return String.fromCharCode.apply(null,MM.slice(0,e*2))}}class V4t{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=L4t(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new K4t,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=qc.active()){a.root&&(r=Ol.deleteSpan(r));const n=Ol.getSpan(r);if(yI(r))return jr.debug("Instrumentation suppressed, returning Noop Span"),Ol.wrapSpanContext(pxe);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Ol.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??fI.INTERNAL,d=(a.links??[]).map(m=>({context:m.context,attributes:SM(m.attributes)})),p=SM(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const g=h.decision===zM.RECORD_AND_SAMPLED?ip.SAMPLED:ip.NONE,k={traceId:l,spanId:o,traceFlags:g,traceState:c};if(h.decision===zM.NOT_RECORD)return jr.debug("Recording is off, propagating context in a non-recording span"),Ol.wrapSpanContext(k);const v=SM(Object.assign(p,h.attributes));return new _4t({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:k,name:t,kind:u,links:d,parentSpanContext:s,attributes:v,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??qc.active(),c=this.startSpan(t,i,l),u=Ol.setSpan(l,c);return qc.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class H4t{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{Ib(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var Lf;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Lf||(Lf={}));class F4t{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=j4t({},Kxe(),B4t(t));this._resource=a.resource??M4t(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new H4t(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new V4t({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=Lf.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==Lf.timeout&&(i=Lf.resolved,n(i))}).catch(s=>{clearTimeout(o),i=Lf.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==Lf.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class G4t{_enabled=!1;_currentContext=$b;_bindFunction(t=$b,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=$b,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=$b,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||$b;try{return a.call(r,...n)}finally{this._currentContext=i}}}function q4t(e){if(e!==null){if(e===void 0){const t=new G4t;t.enable(),qc.setGlobalContextManager(t);return}e.enable(),qc.setGlobalContextManager(e)}}function U4t(e){if(e!==null){if(e===void 0){Gx.setGlobalPropagator(new QEt({propagators:[new h4t,new EEt]}));return}Gx.setGlobalPropagator(e)}}class J4t extends F4t{constructor(t={}){super(t)}register(t={}){Ol.setGlobalTracerProvider(this),U4t(t.propagator),q4t(t.contextManager)}}class W4t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Gxe extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function Z4t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Q4t(e){if(e!=null)return()=>e}function Y4t(e,t,a){return{timeoutMillis:Z4t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function X4t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class eRt{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function tRt(e){return new eRt(e.concurrencyLimit)}function aRt(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function rRt(){return{handleResponse(e){e==null||!aRt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||jr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class nRt{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=jr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Qu.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Qu.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Qu.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Qu.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Qu.FAILED,error:new Gxe("Export failed with retryable status")}):a({code:Qu.FAILED,error:new Gxe("Export failed with unknown error")})},n=>a({code:Qu.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function iRt(e,t){return new nRt(e.transport,e.serializer,rRt(),e.promiseHandler,t.timeout)}function qxe(e,t,a){return iRt({transport:a,serializer:t,promiseHandler:tRt(e)},{timeout:e.timeoutMillis})}function Uxe(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Jxe(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=Uxe(e.charCodeAt(r)),i=Uxe(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function Wxe(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function oRt(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function sRt(e){const t=Wxe(e);return oRt(t)}function lRt(e){return Wxe(e).toString()}const cRt=typeof BigInt<"u"?lRt:ZEt;function Zxe(e){return e}function uRt(e){if(e!==void 0)return Jxe(e)}const dRt={encodeHrTime:sRt,encodeSpanContext:Jxe,encodeOptionalSpanContext:uRt};function pRt(e){return e===void 0?dRt:{encodeHrTime:cRt,encodeSpanContext:Zxe,encodeOptionalSpanContext:Zxe}}function hRt(e){return{attributes:TM(e.attributes),droppedAttributesCount:0}}function mRt(e){return{name:e.name,version:e.version}}function TM(e){return Object.keys(e).map(t=>Qxe(t,e[t]))}function Qxe(e,t){return{key:e,value:Yxe(t)}}function Yxe(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Yxe)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>Qxe(a,r))}}:{}}function fRt(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:TM(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>vRt(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>gRt(i,t)),droppedLinksCount:e.droppedLinksCount}}function gRt(e,t){return{attributes:e.attributes?TM(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function vRt(e,t){return{attributes:e.attributes?TM(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function bRt(e,t){const a=pRt(t);return{resourceSpans:yRt(e,a)}}function kRt(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function yRt(e,t){const a=kRt(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(g=>fRt(g,t));l.push({scope:mRt(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:hRt(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const xRt={serializeRequest:e=>{const t=bRt(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},wRt=5,zRt=1e3,SRt=5e3,jRt=1.5,Xxe=.2;function ORt(){return Math.random()*(2*Xxe)-Xxe}class CRt{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=wRt,o=zRt;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,SRt)+ORt(),0);o=o*jRt;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function ewe(e){return new CRt(e.transport)}function ARt(e){return[429,502,503,504].includes(e)}function PRt(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class MRt{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(jr.debug("XHR success"),r({status:"success"})):n.status&&ARt(n.status)?r({status:"retryable",retryInMillis:PRt(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function TRt(e){return new MRt(e)}class _Rt{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(jr.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function ERt(e){return new _Rt(e)}function RRt(e,t){return qxe(e,t,ewe({transport:TRt(e)}))}function LRt(e,t){return qxe(e,t,ewe({transport:ERt({url:e.url,blobType:e.headers()["Content-Type"]})}))}function BRt(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):jr.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function NRt(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function DRt(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function $Rt(e,t,a){return{...Y4t(e,t,a),headers:NRt(BRt(e.headers),t.headers,a.headers),url:DRt(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function IRt(e,t){return{...X4t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function KRt(e,t,a){return $Rt({url:e.url,timeoutMillis:e.timeoutMillis,headers:Q4t(e.headers),concurrencyLimit:e.concurrencyLimit},{},IRt(a,t))}function VRt(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=KRt(e,a,r);return n?RRt(i,t):LRt(i,t)}class HRt extends W4t{constructor(t={}){super(VRt(t,xRt,"v1/traces",{"Content-Type":"application/json"}))}}class twe{emit(t){}}const FRt=new twe;class GRt{getLogger(t,a,r){return new twe}}const awe=new GRt;class qRt{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):FRt}}class rwe{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new qRt(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:awe}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const URt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},_M=Symbol.for("io.opentelemetry.js.api.logs"),Jx=URt;function JRt(e,t,a){return r=>r===e?t:a}const nwe=1;class xF{constructor(){this._proxyLoggerProvider=new rwe}static getInstance(){return this._instance||(this._instance=new xF),this._instance}setGlobalLoggerProvider(t){return Jx[_M]?this.getLoggerProvider():(Jx[_M]=JRt(nwe,t,awe),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=Jx[_M])===null||t===void 0?void 0:t.call(Jx,nwe))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete Jx[_M],this._proxyLoggerProvider=new rwe}}const WRt=xF.getInstance();function ZRt(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function QRt(e){e.forEach(t=>t.disable())}function YRt(e){const t=e.tracerProvider||Ol.getTracerProvider(),a=e.meterProvider||vEt.getMeterProvider(),r=e.loggerProvider||WRt.getLoggerProvider(),n=e.instrumentations?.flat()??[];return ZRt(n,t,a,r),()=>{QRt(n)}}class iwe{span=void 0;constructor(t){this.span=t}error(t){this.span&&(this.span.setStatus(Fx.ERROR,t.message),this.span.recordException(t),this.span.end())}setAttribute(t,a){this.span&&this.span.setAttribute(t,a)}end(){this.span&&(this.span.setStatus(Fx.OK),this.span.end())}}class XRt{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":kM(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=Ol.setSpan(qc.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startStepSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),root:!1},qc.active());return{end:()=>r.end(),setAttribute:(n,i)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(n)}`,i)},setStatus:(n,i)=>r.setStatus({code:n,message:i}),recordException:n=>r.recordException(n)}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startRootSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a)},qc.active()),n=Ol.setSpan(qc.active(),r);return{end:()=>r.end(),setAttribute:(i,o)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>r.setStatus({code:i,message:o}),recordException:i=>r.recordException(i),context:n}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startTrace(t){const a=this.startStepSpan(t);if(a)return new iwe(a)}startRootTrace(t){const a=this.startRootSpan(t);if(a)return{traceApi:new iwe(a),context:a.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class eLt extends XRt{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${kM()}`,r=Nxe({[xxe]:t.serviceName,[VEt]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new J4t({resource:r,spanProcessors:[new D4t(new HRt({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),YRt({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class tLt{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new eLt,this.traceApi={startStep:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startTrace(r)},startRoot:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startRootTrace(r)}}}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,collectorTraceUrl:t.otel.collectorTraceUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}startStepSpan(t,a){const r=this.constructCloudEvent(t,a);return this.otelClient.startStepSpan(r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${kM()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${kM()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function aLt(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const rLt=aLt(),nLt=K.createContext(rLt);function Yu(){const e=K.useContext(nLt);return Nhe(e)}function iLt(e,t){const{apps:{apiId:a}}=ur(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=Yu();r.set(e?.corsProxyUrl??qxt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const owe=K.createContext({});function RI(){return K.useContext(owe)||{}}const oLt="0.18.0-next.3",sLt={version:oLt};class lLt{client;_isInitialized=!1;constructor(){this.client=new tLt}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:sLt.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const LI=new lLt;function Ra(){const{telemetry:e}=RI();return LI.isInitialized||LI.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{LI.sendEvent(t,a)}}}const ys=800;function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function cLt(e,t){if(Bf(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function swe(e){var t=cLt(e,"string");return Bf(t)=="symbol"?t:t+""}function Wx(e,t,a){return(t=swe(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function lwe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,r)}return a}function ta(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?lwe(Object(a),!0).forEach(function(r){Wx(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):lwe(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function uLt(e){if(Array.isArray(e))return e}function dLt(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,n,i,o,s=[],l=!0,c=!1;try{if(i=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=i.call(a)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function BI(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function cwe(e,t){if(e){if(typeof e=="string")return BI(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?BI(e,t):void 0}}function pLt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11698
|
+
`;function Bx({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return f.jsx(sxe,{variable:e,onSave:o,onCancel:a,...r,children:f.jsx(Lx,{children:f.jsx(X3t,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function bM(e){var t=new Error(e);return t.source="ulid",t}var sI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Nx=sI.length,lxe=Math.pow(2,48)-1,o_t=10,s_t=16;function l_t(e){var t=Math.floor(e()*Nx);return t===Nx&&(t=Nx-1),sI.charAt(t)}function c_t(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>lxe)throw bM("cannot encode time greater than "+lxe);if(e<0)throw bM("time must be positive");if(Number.isInteger(e)===!1)throw bM("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%Nx,r=sI.charAt(a)+r,e=(e-a)/Nx;return r}function u_t(e,t){for(var a="";e>0;e--)a=l_t(t)+a;return a}function d_t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw bM("secure crypto unusable, insecure Math.random not allowed")}function p_t(e){return e||(e=d_t()),function(t){return isNaN(t)&&(t=Date.now()),c_t(t,o_t)+u_t(s_t,e)}}var kM=p_t(),h_t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Tf="1.9.0",cxe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function m_t(e){var t=new Set([e]),a=new Set,r=e.match(cxe);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(cxe);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var f_t=m_t(Tf),g_t=Tf.split(".")[0],Dx=Symbol.for("opentelemetry.js.api."+g_t),$x=h_t;function Ix(e,t,a,r){var n;r===void 0&&(r=!1);var i=$x[Dx]=(n=$x[Dx])!==null&&n!==void 0?n:{version:Tf};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Tf){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Tf);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Tf+"."),!0}function _f(e){var t,a,r=(t=$x[Dx])===null||t===void 0?void 0:t.version;if(!(!r||!f_t(r)))return(a=$x[Dx])===null||a===void 0?void 0:a[e]}function Kx(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Tf+".");var a=$x[Dx];a&&delete a[e]}var v_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},b_t=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},k_t=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Vx("verbose",this._namespace,t)},e})();function Vx(e,t,a){var r=_f("diag");if(r)return a.unshift(t),r[e].apply(r,b_t([],v_t(a),!1))}var jl;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(jl||(jl={}));function y_t(e,t){e<jl.NONE?e=jl.NONE:e>jl.ALL&&(e=jl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",jl.ERROR),warn:a("warn",jl.WARN),info:a("info",jl.INFO),debug:a("debug",jl.DEBUG),verbose:a("verbose",jl.VERBOSE)}}var x_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},w_t=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},z_t="diag",Zu=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=_f("diag");if(s)return s[n].apply(s,w_t([],x_t(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:jl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=_f("diag"),d=y_t((s=i.logLevel)!==null&&s!==void 0?s:jl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return Ix("diag",d,a,!0)};a.setLogger=r,a.disable=function(){Kx(z_t,a)},a.createComponentLogger=function(n){return new k_t(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),S_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},j_t=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O_t=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=S_t(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=j_t(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),C_t=Symbol("BaggageEntryMetadata"),A_t=Zu.instance();function P_t(e){return e===void 0&&(e={}),new O_t(new Map(Object.entries(e)))}function M_t(e){return typeof e!="string"&&(A_t.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:C_t,toString:function(){return e}}}function lI(e){return Symbol.for(e)}var T_t=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),$b=new T_t,Ef=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),__t=(function(){function e(){}return e.prototype.createGauge=function(t,a){return V_t},e.prototype.createHistogram=function(t,a){return H_t},e.prototype.createCounter=function(t,a){return K_t},e.prototype.createUpDownCounter=function(t,a){return F_t},e.prototype.createObservableGauge=function(t,a){return q_t},e.prototype.createObservableCounter=function(t,a){return G_t},e.prototype.createObservableUpDownCounter=function(t,a){return U_t},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),yM=(function(){function e(){}return e})(),E_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(yM),R_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(yM),L_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(yM),B_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(yM),cI=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),N_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(cI),D_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(cI),$_t=(function(e){Ef(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(cI),I_t=new __t,K_t=new E_t,V_t=new L_t,H_t=new B_t,F_t=new R_t,G_t=new N_t,q_t=new D_t,U_t=new $_t,J_t={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},W_t={set:function(e,t,a){e!=null&&(e[t]=a)}},Z_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Q_t=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Y_t=(function(){function e(){}return e.prototype.active=function(){return $b},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,Q_t([r],Z_t(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),X_t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},eEt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},uI="context",tEt=new Y_t,xM=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Ix(uI,t,Zu.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,eEt([t,a,r],X_t(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return _f(uI)||tEt},e.prototype.disable=function(){this._getContextManager().disable(),Kx(uI,Zu.instance())},e})(),ip;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(ip||(ip={}));var uxe="0000000000000000",dxe="00000000000000000000000000000000",pxe={traceId:dxe,spanId:uxe,traceFlags:ip.NONE},Hx=(function(){function e(t){t===void 0&&(t=pxe),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),dI=lI("OpenTelemetry Context Key SPAN");function pI(e){return e.getValue(dI)||void 0}function aEt(){return pI(xM.getInstance().active())}function hI(e,t){return e.setValue(dI,t)}function rEt(e){return e.deleteValue(dI)}function nEt(e,t){return hI(e,new Hx(t))}function hxe(e){var t;return(t=pI(e))===null||t===void 0?void 0:t.spanContext()}var iEt=/^([0-9a-f]{32})$/i,oEt=/^[0-9a-f]{16}$/i;function mxe(e){return iEt.test(e)&&e!==dxe}function sEt(e){return oEt.test(e)&&e!==uxe}function wM(e){return mxe(e.traceId)&&sEt(e.spanId)}function lEt(e){return new Hx(e)}var mI=xM.getInstance(),fxe=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=mI.active());var n=!!a?.root;if(n)return new Hx;var i=r&&hxe(r);return cEt(i)&&wM(i)?new Hx(i):new Hx},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??mI.active(),c=this.startSpan(t,i,l),u=hI(l,c);return mI.with(u,s,void 0,c)}},e})();function cEt(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var uEt=new fxe,dEt=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):uEt},e})(),pEt=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new fxe},e})(),hEt=new pEt,gxe=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new dEt(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:hEt},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),zM;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(zM||(zM={}));var fI;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(fI||(fI={}));var Fx;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Fx||(Fx={}));var qc=xM.getInstance(),jr=Zu.instance(),mEt=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return I_t},e})(),fEt=new mEt,gI="metrics",gEt=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Ix(gI,t,Zu.instance())},e.prototype.getMeterProvider=function(){return _f(gI)||fEt},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){Kx(gI,Zu.instance())},e})(),vEt=gEt.getInstance(),bEt=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),vI=lI("OpenTelemetry Baggage Key");function vxe(e){return e.getValue(vI)||void 0}function kEt(){return vxe(xM.getInstance().active())}function yEt(e,t){return e.setValue(vI,t)}function xEt(e){return e.deleteValue(vI)}var bI="propagation",wEt=new bEt,zEt=(function(){function e(){this.createBaggage=P_t,this.getBaggage=vxe,this.getActiveBaggage=kEt,this.setBaggage=yEt,this.deleteBaggage=xEt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Ix(bI,t,Zu.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=W_t),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=J_t),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Kx(bI,Zu.instance())},e.prototype._getGlobalPropagator=function(){return _f(bI)||wEt},e})(),Gx=zEt.getInstance(),kI="trace",SEt=(function(){function e(){this._proxyTracerProvider=new gxe,this.wrapSpanContext=lEt,this.isSpanContextValid=wM,this.deleteSpan=rEt,this.getSpan=pI,this.getActiveSpan=aEt,this.getSpanContext=hxe,this.setSpan=hI,this.setSpanContext=nEt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=Ix(kI,this._proxyTracerProvider,Zu.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return _f(kI)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){Kx(kI,Zu.instance()),this._proxyTracerProvider=new gxe},e})(),Ol=SEt.getInstance();const bxe=lI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function jEt(e){return e.setValue(bxe,!0)}function yI(e){return e.getValue(bxe)===!0}const OEt="=",xI=";",wI=",",zI="baggage",CEt=180,AEt=4096,PEt=8192;function MEt(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?wI:""}${a}`;return r.length>PEt?t:r},"")}function TEt(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=xI+a.metadata.toString()),r})}function _Et(e){const t=e.split(xI);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(OEt);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=M_t(t.join(xI))),{key:n,value:i,metadata:o}}class EEt{inject(t,a,r){const n=Gx.getBaggage(t);if(!n||yI(t))return;const i=TEt(n).filter(s=>s.length<=AEt).slice(0,CEt),o=MEt(i);o.length>0&&r.set(a,zI,o)}extract(t,a,r){const n=r.get(a,zI),i=Array.isArray(n)?n.join(wI):n;if(!i)return t;const o={};return i.length===0||(i.split(wI).forEach(s=>{const l=_Et(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Gx.setBaggage(t,Gx.createBaggage(o))}fields(){return[zI]}}function SM(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!REt(a)){jr.warn(`Invalid attribute key: ${a}`);continue}if(!kxe(r)){jr.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function REt(e){return typeof e=="string"&&e.length>0}function kxe(e){return e==null?!0:Array.isArray(e)?LEt(e):yxe(e)}function LEt(e){let t;for(const a of e)if(a!=null){if(!t){if(yxe(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function yxe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function BEt(){return e=>{jr.error(NEt(e))}}function NEt(e){return typeof e=="string"?e:JSON.stringify(DEt(e))}function DEt(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let $Et=BEt();function Ib(e){try{$Et(e)}catch{}}const Kb=performance,IEt="2.0.1",SI="exception.message",KEt="exception.stacktrace",jI="exception.type",xxe="service.name",VEt="service.version",OI="telemetry.sdk.language",HEt="webjs",CI="telemetry.sdk.name",AI="telemetry.sdk.version",FEt="process.runtime.name",PI={[CI]:"opentelemetry",[FEt]:"browser",[OI]:HEt,[AI]:IEt},GEt=9,qEt=6,UEt=Math.pow(10,qEt),jM=Math.pow(10,GEt);function Vb(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*UEt);return[a,r]}function wxe(){let e=Kb.timeOrigin;if(typeof e!="number"){const t=Kb;e=t.timing&&t.timing.fetchStart}return e}function JEt(e){const t=Vb(wxe()),a=Vb(typeof e=="number"?e:Kb.now());return jxe(t,a)}function WEt(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=jM),[a,r]}function ZEt(e){return e[0]*jM+e[1]}function zxe(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Sxe(e){return zxe(e)||typeof e=="number"||e instanceof Date}function jxe(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=jM&&(a[1]-=jM,a[0]+=1),a}var Qu;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Qu||(Qu={}));class QEt{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){jr.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){jr.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const MI="[_0-9a-z-*/]",YEt=`[a-z]${MI}{0,255}`,XEt=`[a-z0-9]${MI}{0,240}@[a-z]${MI}{0,13}`,e4t=new RegExp(`^(?:${YEt}|${XEt})$`),t4t=/^[ -~]{0,255}[!-~]$/,a4t=/,|=/;function r4t(e){return e4t.test(e)}function n4t(e){return t4t.test(e)&&!a4t.test(e)}const Oxe=32,i4t=512,Cxe=",",Axe="=";class yF{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+Axe+this.get(a)),t),[]).join(Cxe)}_parse(t){t.length>i4t||(this._internalState=t.split(Cxe).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(Axe);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);r4t(o)&&n4t(s)&&a.set(o,s)}return a},new Map),this._internalState.size>Oxe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Oxe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new yF;return t._internalState=new Map(this._internalState),t}}const TI="traceparent",_I="tracestate",o4t="00",s4t="(?!ff)[\\da-f]{2}",l4t="(?![0]{32})[\\da-f]{32}",c4t="(?![0]{16})[\\da-f]{16}",u4t="[\\da-f]{2}",d4t=new RegExp(`^\\s?(${s4t})-(${l4t})-(${c4t})-(${u4t})(-.*)?\\s?$`);function p4t(e){const t=d4t.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class h4t{inject(t,a,r){const n=Ol.getSpanContext(t);if(!n||yI(t)||!wM(n))return;const i=`${o4t}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||ip.NONE).toString(16)}`;r.set(a,TI,i),n.traceState&&r.set(a,_I,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,TI);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=p4t(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,_I);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new yF(typeof l=="string"?l:void 0)}return Ol.setSpanContext(t,o)}fields(){return[TI,_I]}}const m4t="[object Object]",f4t="[object Null]",g4t="[object Undefined]",v4t=Function.prototype,Pxe=v4t.toString,b4t=Pxe.call(Object),k4t=Object.getPrototypeOf,Mxe=Object.prototype,Txe=Mxe.hasOwnProperty,Rf=Symbol?Symbol.toStringTag:void 0,_xe=Mxe.toString;function Exe(e){if(!y4t(e)||x4t(e)!==m4t)return!1;const t=k4t(e);if(t===null)return!0;const a=Txe.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&Pxe.call(a)===b4t}function y4t(e){return e!=null&&typeof e=="object"}function x4t(e){return e==null?e===void 0?g4t:f4t:Rf&&Rf in Object(e)?w4t(e):z4t(e)}function w4t(e){const t=Txe.call(e,Rf),a=e[Rf];let r=!1;try{e[Rf]=void 0,r=!0}catch{}const n=_xe.call(e);return r&&(t?e[Rf]=a:delete e[Rf]),n}function z4t(e){return _xe.call(e)}const S4t=20;function j4t(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=Rxe(t,e.shift(),0,a);return t}function EI(e){return OM(e)?e.slice():e}function Rxe(e,t,a=0,r){let n;if(!(a>S4t)){if(a++,CM(e)||CM(t)||Bxe(t))n=EI(t);else if(OM(e)){if(n=e.slice(),OM(t))for(let i=0,o=t.length;i<o;i++)n.push(EI(t[i]));else if(qx(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=EI(t[l])}}}else if(qx(e))if(qx(t)){if(!O4t(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(CM(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(Lxe(e,l,r)||Lxe(t,l,r))delete n[l];else{if(qx(u)&&qx(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=Rxe(n[l],c,a,r)}}}}else n=t;return n}}function Lxe(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function OM(e){return Array.isArray(e)}function Bxe(e){return typeof e=="function"}function qx(e){return!CM(e)&&!OM(e)&&!Bxe(e)&&typeof e=="object"}function CM(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function O4t(e,t){return!(!Exe(e)||!Exe(t))}class C4t{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class A4t{_callback;_that;_isCalled=!1;_deferred=new C4t;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function P4t(){return"unknown_service"}const Ux=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class iE{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new iE({});return a._rawAttributes=Dxe(t),a._asyncAttributesPending=t.filter(([r,n])=>Ux(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(Ux(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=Dxe(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,Ux(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&jr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(Ux(r)){jr.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:iE.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function Nxe(e){return iE.FromAttributeList(Object.entries(e))}function M4t(){return Nxe({[xxe]:P4t(),[OI]:PI[OI],[CI]:PI[CI],[AI]:PI[AI]})}function Dxe(e){return e.map(([t,a])=>Ux(a)?[t,a.catch(r=>{jr.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const T4t="exception";class _4t{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:Fx.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Kb.now(),this._performanceOffset=a-(this._performanceStartTime+wxe()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return jr.warn(`Invalid attribute key: ${t}`),this;if(!kxe(a))return jr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return jr.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&jr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),Sxe(a)&&(Sxe(r)||(r=a),a=void 0);const i=SM(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(jr.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){jr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=WEt(this.startTime,this.endTime),this._duration[0]<0&&(jr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&jr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Kb.now())return JEt(t+this._performanceOffset);if(typeof t=="number")return Vb(t);if(t instanceof Date)return Vb(t.getTime());if(zxe(t))return t;if(this._startTimeProvided)return Vb(Date.now());const a=Kb.now()-this._performanceStartTime;return jxe(this.startTime,Vb(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[SI]=t:t&&(t.code?r[jI]=t.code.toString():t.name&&(r[jI]=t.name),t.message&&(r[SI]=t.message),t.stack&&(r[KEt]=t.stack)),r[jI]||r[SI]?this.addEvent(T4t,r,a):jr.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);jr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(jr.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Hb;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Hb||(Hb={}));class AM{shouldSample(){return{decision:Hb.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Fb{shouldSample(){return{decision:Hb.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class PM{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Ib(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Fb),this._remoteParentSampled=t.remoteParentSampled??new Fb,this._remoteParentNotSampled=t.remoteParentNotSampled??new AM,this._localParentSampled=t.localParentSampled??new Fb,this._localParentNotSampled=t.localParentNotSampled??new AM}shouldSample(t,a,r,n,i,o){const s=Ol.getSpanContext(t);return!s||!wM(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&ip.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&ip.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class $xe{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:mxe(a)&&this._accumulate(a)<this._upperBound?Hb.RECORD_AND_SAMPLED:Hb.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const Ixe=1;function Kxe(){return{sampler:Vxe(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Vxe(){const e="parentbased_always_on";switch(e){case"always_on":return new Fb;case"always_off":return new AM;case"parentbased_always_on":return new PM({root:new Fb});case"parentbased_always_off":return new PM({root:new AM});case"traceidratio":return new $xe(Hxe());case"parentbased_traceidratio":return new PM({root:new $xe(Hxe())});default:return jr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new PM({root:new Fb})}}function Hxe(){return jr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Ixe}.`),Ixe}const E4t=128,R4t=1/0;function L4t(e){const t={sampler:Vxe()},a=Kxe(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function B4t(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??E4t,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??R4t,Object.assign({},e,{spanLimits:t})}class N4t{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new A4t(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(jr.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&ip.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&jr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(jr.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);qc.with(jEt(qc.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Qu.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{Ib(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,Ib(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class D4t extends N4t{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{Ib(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{Ib(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const $4t=8,I4t=16;class K4t{generateTraceId=Fxe(I4t);generateSpanId=Fxe($4t)}const MM=Array(32);function Fxe(e){return function(){for(let t=0;t<e*2;t++)MM[t]=Math.floor(Math.random()*16)+48,MM[t]>=58&&(MM[t]+=39);return String.fromCharCode.apply(null,MM.slice(0,e*2))}}class V4t{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=L4t(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new K4t,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=qc.active()){a.root&&(r=Ol.deleteSpan(r));const n=Ol.getSpan(r);if(yI(r))return jr.debug("Instrumentation suppressed, returning Noop Span"),Ol.wrapSpanContext(pxe);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Ol.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??fI.INTERNAL,d=(a.links??[]).map(m=>({context:m.context,attributes:SM(m.attributes)})),p=SM(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const g=h.decision===zM.RECORD_AND_SAMPLED?ip.SAMPLED:ip.NONE,k={traceId:l,spanId:o,traceFlags:g,traceState:c};if(h.decision===zM.NOT_RECORD)return jr.debug("Recording is off, propagating context in a non-recording span"),Ol.wrapSpanContext(k);const v=SM(Object.assign(p,h.attributes));return new _4t({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:k,name:t,kind:u,links:d,parentSpanContext:s,attributes:v,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??qc.active(),c=this.startSpan(t,i,l),u=Ol.setSpan(l,c);return qc.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class H4t{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{Ib(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var Lf;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Lf||(Lf={}));class F4t{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=j4t({},Kxe(),B4t(t));this._resource=a.resource??M4t(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new H4t(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new V4t({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=Lf.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==Lf.timeout&&(i=Lf.resolved,n(i))}).catch(s=>{clearTimeout(o),i=Lf.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==Lf.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class G4t{_enabled=!1;_currentContext=$b;_bindFunction(t=$b,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=$b,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=$b,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||$b;try{return a.call(r,...n)}finally{this._currentContext=i}}}function q4t(e){if(e!==null){if(e===void 0){const t=new G4t;t.enable(),qc.setGlobalContextManager(t);return}e.enable(),qc.setGlobalContextManager(e)}}function U4t(e){if(e!==null){if(e===void 0){Gx.setGlobalPropagator(new QEt({propagators:[new h4t,new EEt]}));return}Gx.setGlobalPropagator(e)}}class J4t extends F4t{constructor(t={}){super(t)}register(t={}){Ol.setGlobalTracerProvider(this),U4t(t.propagator),q4t(t.contextManager)}}class W4t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Gxe extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function Z4t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Q4t(e){if(e!=null)return()=>e}function Y4t(e,t,a){return{timeoutMillis:Z4t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function X4t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class eRt{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function tRt(e){return new eRt(e.concurrencyLimit)}function aRt(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function rRt(){return{handleResponse(e){e==null||!aRt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||jr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class nRt{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=jr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Qu.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Qu.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Qu.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Qu.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Qu.FAILED,error:new Gxe("Export failed with retryable status")}):a({code:Qu.FAILED,error:new Gxe("Export failed with unknown error")})},n=>a({code:Qu.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function iRt(e,t){return new nRt(e.transport,e.serializer,rRt(),e.promiseHandler,t.timeout)}function qxe(e,t,a){return iRt({transport:a,serializer:t,promiseHandler:tRt(e)},{timeout:e.timeoutMillis})}function Uxe(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Jxe(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=Uxe(e.charCodeAt(r)),i=Uxe(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function Wxe(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function oRt(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function sRt(e){const t=Wxe(e);return oRt(t)}function lRt(e){return Wxe(e).toString()}const cRt=typeof BigInt<"u"?lRt:ZEt;function Zxe(e){return e}function uRt(e){if(e!==void 0)return Jxe(e)}const dRt={encodeHrTime:sRt,encodeSpanContext:Jxe,encodeOptionalSpanContext:uRt};function pRt(e){return e===void 0?dRt:{encodeHrTime:cRt,encodeSpanContext:Zxe,encodeOptionalSpanContext:Zxe}}function hRt(e){return{attributes:TM(e.attributes),droppedAttributesCount:0}}function mRt(e){return{name:e.name,version:e.version}}function TM(e){return Object.keys(e).map(t=>Qxe(t,e[t]))}function Qxe(e,t){return{key:e,value:Yxe(t)}}function Yxe(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Yxe)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>Qxe(a,r))}}:{}}function fRt(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:TM(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>vRt(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>gRt(i,t)),droppedLinksCount:e.droppedLinksCount}}function gRt(e,t){return{attributes:e.attributes?TM(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function vRt(e,t){return{attributes:e.attributes?TM(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function bRt(e,t){const a=pRt(t);return{resourceSpans:yRt(e,a)}}function kRt(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function yRt(e,t){const a=kRt(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(g=>fRt(g,t));l.push({scope:mRt(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:hRt(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const xRt={serializeRequest:e=>{const t=bRt(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},wRt=5,zRt=1e3,SRt=5e3,jRt=1.5,Xxe=.2;function ORt(){return Math.random()*(2*Xxe)-Xxe}class CRt{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=wRt,o=zRt;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,SRt)+ORt(),0);o=o*jRt;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function ewe(e){return new CRt(e.transport)}function ARt(e){return[429,502,503,504].includes(e)}function PRt(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class MRt{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(jr.debug("XHR success"),r({status:"success"})):n.status&&ARt(n.status)?r({status:"retryable",retryInMillis:PRt(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function TRt(e){return new MRt(e)}class _Rt{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(jr.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function ERt(e){return new _Rt(e)}function RRt(e,t){return qxe(e,t,ewe({transport:TRt(e)}))}function LRt(e,t){return qxe(e,t,ewe({transport:ERt({url:e.url,blobType:e.headers()["Content-Type"]})}))}function BRt(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):jr.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function NRt(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function DRt(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function $Rt(e,t,a){return{...Y4t(e,t,a),headers:NRt(BRt(e.headers),t.headers,a.headers),url:DRt(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function IRt(e,t){return{...X4t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function KRt(e,t,a){return $Rt({url:e.url,timeoutMillis:e.timeoutMillis,headers:Q4t(e.headers),concurrencyLimit:e.concurrencyLimit},{},IRt(a,t))}function VRt(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=KRt(e,a,r);return n?RRt(i,t):LRt(i,t)}class HRt extends W4t{constructor(t={}){super(VRt(t,xRt,"v1/traces",{"Content-Type":"application/json"}))}}class twe{emit(t){}}const FRt=new twe;class GRt{getLogger(t,a,r){return new twe}}const awe=new GRt;class qRt{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):FRt}}class rwe{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new qRt(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:awe}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const URt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},_M=Symbol.for("io.opentelemetry.js.api.logs"),Jx=URt;function JRt(e,t,a){return r=>r===e?t:a}const nwe=1;class xF{constructor(){this._proxyLoggerProvider=new rwe}static getInstance(){return this._instance||(this._instance=new xF),this._instance}setGlobalLoggerProvider(t){return Jx[_M]?this.getLoggerProvider():(Jx[_M]=JRt(nwe,t,awe),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=Jx[_M])===null||t===void 0?void 0:t.call(Jx,nwe))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete Jx[_M],this._proxyLoggerProvider=new rwe}}const WRt=xF.getInstance();function ZRt(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function QRt(e){e.forEach(t=>t.disable())}function YRt(e){const t=e.tracerProvider||Ol.getTracerProvider(),a=e.meterProvider||vEt.getMeterProvider(),r=e.loggerProvider||WRt.getLoggerProvider(),n=e.instrumentations?.flat()??[];return ZRt(n,t,a,r),()=>{QRt(n)}}class iwe{span=void 0;constructor(t){this.span=t}error(t){this.span&&(this.span.setStatus(Fx.ERROR,t.message),this.span.recordException(t),this.span.end())}setAttribute(t,a){this.span&&this.span.setAttribute(t,a)}end(){this.span&&(this.span.setStatus(Fx.OK),this.span.end())}}class XRt{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":kM(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=Ol.setSpan(qc.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startStepSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),root:!1},qc.active());return{end:()=>r.end(),setAttribute:(n,i)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(n)}`,i)},setStatus:(n,i)=>r.setStatus({code:n,message:i}),recordException:n=>r.recordException(n)}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startRootSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a)},qc.active()),n=Ol.setSpan(qc.active(),r);return{end:()=>r.end(),setAttribute:(i,o)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>r.setStatus({code:i,message:o}),recordException:i=>r.recordException(i),context:n}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startTrace(t){const a=this.startStepSpan(t);if(a)return new iwe(a)}startRootTrace(t){const a=this.startRootSpan(t);if(a)return{traceApi:new iwe(a),context:a.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class eLt extends XRt{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${kM()}`,r=Nxe({[xxe]:t.serviceName,[VEt]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new J4t({resource:r,spanProcessors:[new D4t(new HRt({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),YRt({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class tLt{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new eLt,this.traceApi={startStep:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startTrace(r)},startRoot:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startRootTrace(r)}}}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,collectorTraceUrl:t.otel.collectorTraceUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}startStepSpan(t,a){const r=this.constructCloudEvent(t,a);return this.otelClient.startStepSpan(r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${kM()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${kM()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function aLt(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const rLt=aLt(),nLt=K.createContext(rLt);function Yu(){const e=K.useContext(nLt);return Nhe(e)}function iLt(e,t){const{apps:{apiId:a}}=ur(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=Yu();r.set(e?.corsProxyUrl??qxt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const owe=K.createContext({});function RI(){return K.useContext(owe)||{}}const oLt="0.18.0-next.4",sLt={version:oLt};class lLt{client;_isInitialized=!1;constructor(){this.client=new tLt}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:sLt.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const LI=new lLt;function Ra(){const{telemetry:e}=RI();return LI.isInitialized||LI.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{LI.sendEvent(t,a)}}}const ys=800;function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function cLt(e,t){if(Bf(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function swe(e){var t=cLt(e,"string");return Bf(t)=="symbol"?t:t+""}function Wx(e,t,a){return(t=swe(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function lwe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,r)}return a}function ta(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?lwe(Object(a),!0).forEach(function(r){Wx(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):lwe(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function uLt(e){if(Array.isArray(e))return e}function dLt(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,n,i,o,s=[],l=!0,c=!1;try{if(i=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;l=!1}else for(;!(l=(r=i.call(a)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function BI(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function cwe(e,t){if(e){if(typeof e=="string")return BI(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?BI(e,t):void 0}}function pLt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11575
11699
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function op(e,t){return uLt(e)||dLt(e,t)||cwe(e,t)||pLt()}function hLt(e,t){if(e==null)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;a[r]=e[r]}return a}function sp(e,t){if(e==null)return{};var a,r,n=hLt(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var mLt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fLt(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,g=sp(e,mLt),k=K.useState(s!==void 0?s:a),v=op(k,2),m=v[0],b=v[1],x=K.useState(l!==void 0?l:n),j=op(x,2),w=j[0],S=j[1],O=K.useState(h!==void 0?h:o),M=op(O,2),T=M[0],B=M[1],G=K.useCallback(function(ie,me){typeof c=="function"&&c(ie,me),B(ie)},[c]),D=K.useCallback(function(ie,me){var F;typeof u=="function"&&(F=u(ie,me)),b(F!==void 0?F:ie)},[u]),U=K.useCallback(function(){typeof p=="function"&&p(),S(!0)},[p]),I=K.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),X=s!==void 0?s:m,re=l!==void 0?l:w,le=h!==void 0?h:T;return ta(ta({},g),{},{inputValue:X,menuIsOpen:re,onChange:G,onInputChange:D,onMenuClose:I,onMenuOpen:U,value:le})}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},sa.apply(null,arguments)}function gLt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uwe(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,swe(r.key),r)}}function vLt(e,t,a){return t&&uwe(e.prototype,t),a&&uwe(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function NI(e,t){return NI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},NI(e,t)}function bLt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NI(e,t)}function EM(e){return EM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EM(e)}function dwe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dwe=function(){return!!e})()}function kLt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yLt(e,t){if(t&&(Bf(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kLt(e)}function xLt(e){var t=dwe();return function(){var a,r=EM(e);if(t){var n=EM(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return yLt(this,a)}}function wLt(e){if(Array.isArray(e))return BI(e)}function zLt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SLt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11576
11700
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DI(e){return wLt(e)||zLt(e)||cwe(e)||SLt()}function jLt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function OLt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var CLt=(function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(OLt(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=jLt(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e})(),Ko="-ms-",RM="-moz-",Or="-webkit-",pwe="comm",$I="rule",II="decl",ALt="@import",hwe="@keyframes",PLt=Math.abs,LM=String.fromCharCode,MLt=Object.assign;function TLt(e,t){return uo(e,0)^45?(((t<<2^uo(e,0))<<2^uo(e,1))<<2^uo(e,2))<<2^uo(e,3):0}function mwe(e){return e.trim()}function _Lt(e,t){return(e=t.exec(e))?e[0]:e}function Rr(e,t,a){return e.replace(t,a)}function KI(e,t){return e.indexOf(t)}function uo(e,t){return e.charCodeAt(t)|0}function Zx(e,t,a){return e.slice(t,a)}function Xu(e){return e.length}function VI(e){return e.length}function BM(e,t){return t.push(e),e}function ELt(e,t){return e.map(t).join("")}var NM=1,Gb=1,fwe=0,Us=0,ki=0,qb="";function DM(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:NM,column:Gb,length:o,return:""}}function Qx(e,t){return MLt(DM("",null,null,"",null,null,0),e,{length:-e.length},t)}function RLt(){return ki}function LLt(){return ki=Us>0?uo(qb,--Us):0,Gb--,ki===10&&(Gb=1,NM--),ki}function Cl(){return ki=Us<fwe?uo(qb,Us++):0,Gb++,ki===10&&(Gb=1,NM++),ki}function ed(){return uo(qb,Us)}function $M(){return Us}function Yx(e,t){return Zx(qb,e,t)}function Xx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gwe(e){return NM=Gb=1,fwe=Xu(qb=e),Us=0,[]}function vwe(e){return qb="",e}function IM(e){return mwe(Yx(Us-1,HI(e===91?e+2:e===40?e+1:e)))}function BLt(e){for(;(ki=ed())&&ki<33;)Cl();return Xx(e)>2||Xx(ki)>3?"":" "}function NLt(e,t){for(;--t&&Cl()&&!(ki<48||ki>102||ki>57&&ki<65||ki>70&&ki<97););return Yx(e,$M()+(t<6&&ed()==32&&Cl()==32))}function HI(e){for(;Cl();)switch(ki){case e:return Us;case 34:case 39:e!==34&&e!==39&&HI(ki);break;case 40:e===41&&HI(e);break;case 92:Cl();break}return Us}function DLt(e,t){for(;Cl()&&e+ki!==57&&!(e+ki===84&&ed()===47););return"/*"+Yx(t,Us-1)+"*"+LM(e===47?e:Cl())}function $Lt(e){for(;!Xx(ed());)Cl();return Yx(e,Us)}function ILt(e){return vwe(KM("",null,null,null,[""],e=gwe(e),0,[0],e))}function KM(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,g=0,k=1,v=1,m=1,b=0,x="",j=n,w=i,S=r,O=x;v;)switch(g=b,b=Cl()){case 40:if(g!=108&&uo(O,d-1)==58){KI(O+=Rr(IM(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=IM(b);break;case 9:case 10:case 13:case 32:O+=BLt(g);break;case 92:O+=NLt($M()-1,7);continue;case 47:switch(ed()){case 42:case 47:BM(KLt(DLt(Cl(),$M()),t,a),l);break;default:O+="/"}break;case 123*k:s[c++]=Xu(O)*m;case 125*k:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:h>0&&Xu(O)-d&&BM(h>32?kwe(O+";",r,a,d-1):kwe(Rr(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(BM(S=bwe(O,t,a,c,u,n,s,x,j=[],w=[],d),i),b===123)if(u===0)KM(O,t,S,S,j,i,d,s,w);else switch(p===99&&uo(O,3)===110?100:p){case 100:case 109:case 115:KM(e,S,S,r&&BM(bwe(e,S,S,0,0,n,s,x,n,j=[],d),w),n,w,d,s,r?j:w);break;default:KM(O,S,S,S,[""],w,0,s,w)}}c=u=h=0,k=m=1,x=O="",d=o;break;case 58:d=1+Xu(O),h=g;default:if(k<1){if(b==123)--k;else if(b==125&&k++==0&&LLt()==125)continue}switch(O+=LM(b),b*k){case 38:m=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Xu(O)-1)*m,m=1;break;case 64:ed()===45&&(O+=IM(Cl())),p=ed(),u=d=Xu(x=O+=$Lt($M())),b++;break;case 45:g===45&&Xu(O)==2&&(k=0)}}return i}function bwe(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=VI(p),g=0,k=0,v=0;g<r;++g)for(var m=0,b=Zx(e,d+1,d=PLt(k=o[g])),x=e;m<h;++m)(x=mwe(k>0?p[m]+" "+b:Rr(b,/&\f/g,p[m])))&&(l[v++]=x);return DM(e,t,a,n===0?$I:s,l,c,u)}function KLt(e,t,a){return DM(e,t,a,pwe,LM(RLt()),Zx(e,2,-2),0)}function kwe(e,t,a,r){return DM(e,t,a,II,Zx(e,0,r),Zx(e,r+1,-1),r)}function Ub(e,t){for(var a="",r=VI(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function VLt(e,t,a,r){switch(e.type){case ALt:case II:return e.return=e.return||e.value;case pwe:return"";case hwe:return e.return=e.value+"{"+Ub(e.children,r)+"}";case $I:e.value=e.props.join(",")}return Xu(a=Ub(e.children,r))?e.return=e.value+"{"+a+"}":""}function HLt(e){var t=VI(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function FLt(e){return function(t){t.root||(t=t.return)&&e(t)}}function GLt(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var qLt=function(e,t,a){for(var r=0,n=0;r=n,n=ed(),r===38&&n===12&&(t[a]=1),!Xx(n);)Cl();return Yx(e,Us)},ULt=function(e,t){var a=-1,r=44;do switch(Xx(r)){case 0:r===38&&ed()===12&&(t[a]=1),e[a]+=qLt(Us-1,t,a);break;case 2:e[a]+=IM(r);break;case 4:if(r===44){e[++a]=ed()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=LM(r)}while(r=Cl());return e},JLt=function(e,t){return vwe(ULt(gwe(e),t))},ywe=new WeakMap,WLt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ywe.get(a))&&!r){ywe.set(e,!0);for(var n=[],i=JLt(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},ZLt=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function xwe(e,t){switch(TLt(e,t)){case 5103:return Or+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Or+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Or+e+RM+e+Ko+e+e;case 6828:case 4268:return Or+e+Ko+e+e;case 6165:return Or+e+Ko+"flex-"+e+e;case 5187:return Or+e+Rr(e,/(\w+).+(:[^]+)/,Or+"box-$1$2"+Ko+"flex-$1$2")+e;case 5443:return Or+e+Ko+"flex-item-"+Rr(e,/flex-|-self/,"")+e;case 4675:return Or+e+Ko+"flex-line-pack"+Rr(e,/align-content|flex-|-self/,"")+e;case 5548:return Or+e+Ko+Rr(e,"shrink","negative")+e;case 5292:return Or+e+Ko+Rr(e,"basis","preferred-size")+e;case 6060:return Or+"box-"+Rr(e,"-grow","")+Or+e+Ko+Rr(e,"grow","positive")+e;case 4554:return Or+Rr(e,/([^-])(transform)/g,"$1"+Or+"$2")+e;case 6187:return Rr(Rr(Rr(e,/(zoom-|grab)/,Or+"$1"),/(image-set)/,Or+"$1"),e,"")+e;case 5495:case 3959:return Rr(e,/(image-set\([^]*)/,Or+"$1$`$1");case 4968:return Rr(Rr(e,/(.+:)(flex-)?(.*)/,Or+"box-pack:$3"+Ko+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Or+e+e;case 4095:case 3583:case 4068:case 2532:return Rr(e,/(.+)-inline(.+)/,Or+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xu(e)-1-t>6)switch(uo(e,t+1)){case 109:if(uo(e,t+4)!==45)break;case 102:return Rr(e,/(.+:)(.+)-([^]+)/,"$1"+Or+"$2-$3$1"+RM+(uo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~KI(e,"stretch")?xwe(Rr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(uo(e,t+1)!==115)break;case 6444:switch(uo(e,Xu(e)-3-(~KI(e,"!important")&&10))){case 107:return Rr(e,":",":"+Or)+e;case 101:return Rr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Or+(uo(e,14)===45?"inline-":"")+"box$3$1"+Or+"$2$3$1"+Ko+"$2box$3")+e}break;case 5936:switch(uo(e,t+11)){case 114:return Or+e+Ko+Rr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Or+e+Ko+Rr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Or+e+Ko+Rr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Or+e+Ko+e+e}return e}var QLt=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case II:e.return=xwe(e.value,e.length);break;case hwe:return Ub([Qx(e,{value:Rr(e.value,"@","@"+Or)})],r);case $I:if(e.length)return ELt(e.props,function(n){switch(_Lt(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ub([Qx(e,{props:[Rr(n,/:(read-\w+)/,":"+RM+"$1")]})],r);case"::placeholder":return Ub([Qx(e,{props:[Rr(n,/:(plac\w+)/,":"+Or+"input-$1")]}),Qx(e,{props:[Rr(n,/:(plac\w+)/,":"+RM+"$1")]}),Qx(e,{props:[Rr(n,/:(plac\w+)/,Ko+"input-$1")]})],r)}return""})}},YLt=[QLt],XLt=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(g){var k=g.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||YLt,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var k=g.getAttribute("data-emotion").split(" "),v=1;v<k.length;v++)n[k[v]]=!0;o.push(g)});var s,l=[WLt,ZLt];{var c,u=[VLt,FLt(function(g){c.insert(g)})],d=HLt(l.concat(r,u)),p=function(g){return Ub(ILt(g),d)};s=function(g,k,v,m){c=v,p(g?g+"{"+k.styles+"}":k.styles),m&&(h.inserted[k.name]=!0)}}var h={key:t,sheet:new CLt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},eBt=!0;function tBt(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var wwe=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||eBt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},aBt=function(e,t,a){wwe(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function rBt(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nBt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},iBt=/[A-Z]|^ms/g,oBt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zwe=function(e){return e.charCodeAt(1)===45},Swe=function(e){return e!=null&&typeof e!="boolean"},FI=GLt(function(e){return zwe(e)?e:e.replace(iBt,"-$&").toLowerCase()}),jwe=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(oBt,function(a,r,n){return td={name:r,styles:n,next:td},r})}return nBt[e]!==1&&!zwe(e)&&typeof t=="number"&&t!==0?t+"px":t};function ew(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return td={name:a.name,styles:a.styles,next:td},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)td={name:r.name,styles:r.styles,next:td},r=r.next;var n=a.styles+";";return n}return sBt(e,t,a)}case"function":{if(e!==void 0){var i=td,o=a(e);return td=i,ew(e,t,o)}break}}return a}function sBt(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=ew(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")Swe(o)&&(r+=FI(i)+":"+jwe(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)Swe(o[s])&&(r+=FI(i)+":"+jwe(i,o[s])+";");else{var l=ew(e,t,o);switch(i){case"animation":case"animationName":{r+=FI(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Owe=/label:\s*([^\s;\n{]+)\s*(;|$)/g,td,Cwe=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";td=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=ew(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=ew(a,t,e[o]),r&&(n+=i[o]);Owe.lastIndex=0;for(var s="",l;(l=Owe.exec(n))!==null;)s+="-"+l[1];var c=rBt(n)+s;return{name:c,styles:n,next:td}},lBt=function(e){return e()},cBt=$m.useInsertionEffect?$m.useInsertionEffect:!1,uBt=cBt||lBt,GI={}.hasOwnProperty,dBt=K.createContext(typeof HTMLElement<"u"?XLt({key:"css"}):null),pBt=function(e){return K.forwardRef(function(t,a){var r=K.useContext(dBt);return e(t,r,a)})},hBt=K.createContext({}),qI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mBt=function(e,t){var a={};for(var r in t)GI.call(t,r)&&(a[r]=t[r]);return a[qI]=e,a},fBt=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return wwe(t,a,r),uBt(function(){return aBt(t,a,r)}),null},gBt=pBt(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[qI],i=[r],o="";typeof e.className=="string"?o=tBt(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Cwe(i,void 0,K.useContext(hBt));o+=t.key+"-"+s.name;var l={};for(var c in e)GI.call(e,c)&&c!=="css"&&c!==qI&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(fBt,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),Yt=function(e,t){var a=arguments;if(t==null||!GI.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=gBt,n[1]=mBt(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function UI(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Cwe(t)}var vBt=function(){var e=UI.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function bBt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const kBt=Math.min,yBt=Math.max,VM=Math.round,HM=Math.floor,FM=e=>({x:e,y:e});function xBt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Awe(e){return Mwe(e)?(e.nodeName||"").toLowerCase():"#document"}function lp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pwe(e){var t;return(t=(Mwe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mwe(e){return e instanceof Node||e instanceof lp(e).Node}function wBt(e){return e instanceof Element||e instanceof lp(e).Element}function JI(e){return e instanceof HTMLElement||e instanceof lp(e).HTMLElement}function Twe(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lp(e).ShadowRoot}function _we(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=WI(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function zBt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function SBt(e){return["html","body","#document"].includes(Awe(e))}function WI(e){return lp(e).getComputedStyle(e)}function jBt(e){if(Awe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Twe(e)&&e.host||Pwe(e);return Twe(t)?t.host:t}function Ewe(e){const t=jBt(e);return SBt(t)?e.ownerDocument?e.ownerDocument.body:e.body:JI(t)&&_we(t)?t:Ewe(t)}function GM(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Ewe(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=lp(n);return i?t.concat(o,o.visualViewport||[],_we(n)?n:[],o.frameElement&&a?GM(o.frameElement):[]):t.concat(n,GM(n,[],a))}function OBt(e){const t=WI(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=JI(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=VM(a)!==i||VM(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function ZI(e){return wBt(e)?e:e.contextElement}function Rwe(e){const t=ZI(e);if(!JI(t))return FM(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=OBt(t);let o=(i?VM(a.width):a.width)/r,s=(i?VM(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const CBt=FM(0);function ABt(e){const t=lp(e);return!zBt()||!t.visualViewport?CBt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PBt(e,t,a){return!1}function Lwe(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=ZI(e);let o=FM(1);t&&(o=Rwe(e));const s=PBt()?ABt(i):FM(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=lp(i),h=r;let g=p.frameElement;for(;g&&r&&h!==p;){const k=Rwe(g),v=g.getBoundingClientRect(),m=WI(g),b=v.left+(g.clientLeft+parseFloat(m.paddingLeft))*k.x,x=v.top+(g.clientTop+parseFloat(m.paddingTop))*k.y;l*=k.x,c*=k.y,u*=k.x,d*=k.y,l+=b,c+=x,g=lp(g).frameElement}}return xBt({width:u,height:d,x:l,y:c})}function MBt(e,t){let a=null,r;const n=Pwe(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=HM(u),g=HM(n.clientWidth-(c+d)),k=HM(n.clientHeight-(u+p)),v=HM(c),m={rootMargin:-h+"px "+-g+"px "+-k+"px "+-v+"px",threshold:yBt(0,kBt(1,l))||1};let b=!0;function x(j){const w=j[0].intersectionRatio;if(w!==l){if(!b)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}b=!1}try{a=new IntersectionObserver(x,{...m,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,m)}a.observe(e)}return o(!0),i}function TBt(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ZI(e),u=n||i?[...c?GM(c):[],...GM(t)]:[];u.forEach(m=>{n&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});const d=c&&s?MBt(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(m=>{let[b]=m;b&&b.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let g,k=l?Lwe(e):null;l&&v();function v(){const m=Lwe(e);k&&(m.x!==k.x||m.y!==k.y||m.width!==k.width||m.height!==k.height)&&a(),k=m,g=requestAnimationFrame(v)}return a(),()=>{u.forEach(m=>{n&&m.removeEventListener("scroll",a),i&&m.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(g)}}var QI=K.useLayoutEffect,_Bt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],qM=function(){};function EBt(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function RBt(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(EBt(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Bwe=function(e){return HBt(e)?e.filter(Boolean):Bf(e)==="object"&&e!==null?[e]:[]},Nwe=function(e){var t=sp(e,_Bt);return ta({},t)},Un=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function UM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function LBt(e){return UM(e)?window.innerHeight:e.clientHeight}function Dwe(e){return UM(e)?window.pageYOffset:e.scrollTop}function JM(e,t){if(UM(e)){window.scrollTo(0,t);return}e.scrollTop=t}function BBt(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function NBt(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function WM(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:qM,n=Dwe(e),i=t-n,o=10,s=0;function l(){s+=o;var c=NBt(s,n,i,a);JM(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function $we(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?JM(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&JM(e,Math.max(t.offsetTop-n,0))}function DBt(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Iwe(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function $Bt(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Kwe=!1,IBt={get passive(){return Kwe=!0}},ZM=typeof window<"u"?window:{};ZM.addEventListener&&ZM.removeEventListener&&(ZM.addEventListener("p",qM,IBt),ZM.removeEventListener("p",qM,!1));var KBt=Kwe;function VBt(e){return e!=null}function HBt(e){return Array.isArray(e)}function QM(e,t,a){return e?t:a}var FBt=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=op(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=op(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},GBt=["children","innerProps"],qBt=["children","innerProps"];function UBt(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=BBt(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,g=p.height,k=p.top,v=a.offsetParent.getBoundingClientRect(),m=v.top,b=o?window.innerHeight:LBt(l),x=Dwe(l),j=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),S=m-w,O=b-k,M=S+x,T=d-x-k,B=h-b+x+j,G=x+k-w,D=160;switch(n){case"auto":case"bottom":if(O>=g)return{placement:"bottom",maxHeight:t};if(T>=g&&!o)return i&&WM(l,B,D),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&WM(l,B,D);var U=o?O-j:T-j;return{placement:"bottom",maxHeight:U}}if(n==="auto"||o){var I=t,X=o?S:M;return X>=r&&(I=Math.min(X-j-s,t)),{placement:"top",maxHeight:I}}if(n==="bottom")return i&&JM(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(S>=g)return{placement:"top",maxHeight:t};if(M>=g&&!o)return i&&WM(l,G,D),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&S>=r){var re=t;return(!o&&M>=r||o&&S>=r)&&(re=o?S-w:M-w),i&&WM(l,G,D),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function JBt(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Vwe=function(e){return e==="auto"?"bottom":e},WBt=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return ta((a={label:"menu"},Wx(a,JBt(r),"100%"),Wx(a,"position","absolute"),Wx(a,"width","100%"),Wx(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},Hwe=K.createContext(null),ZBt=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(Hwe)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=op(d,2),h=p[0],g=p[1],k=K.useState(null),v=op(k,2),m=v[0],b=v[1],x=s.spacing.controlHeight;return QI(function(){var j=u.current;if(j){var w=i==="fixed",S=o&&!w,O=UBt({maxHeight:r,menuEl:j,minHeight:a,placement:n,shouldScroll:S,isFixedPosition:w,controlHeight:x});g(O.maxHeight),b(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:ta(ta({},e),{},{placement:m||Vwe(n),maxHeight:h})})},QBt=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return Yt("div",sa({},Un(e,"menu",{menu:!0}),{ref:a},r),t)},YBt=QBt,XBt=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return ta({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},eNt=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return Yt("div",sa({},Un(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},Fwe=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return ta({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},tNt=Fwe,aNt=Fwe,rNt=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=sp(e,GBt);return Yt("div",sa({},Un(ta(ta({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},nNt=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=sp(e,qBt);return Yt("div",sa({},Un(ta(ta({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},iNt=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},oNt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(Vwe(i)),u=op(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),g=K.useState(null),k=op(g,2),v=k[0],m=k[1],b=K.useCallback(function(){if(r){var S=DBt(r),O=o==="fixed"?0:window.pageYOffset,M=S[d]+O;(M!==v?.offset||S.left!==v?.rect.left||S.width!==v?.rect.width)&&m({offset:M,rect:S})}},[r,o,d,v?.offset,v?.rect.left,v?.rect.width]);QI(function(){b()},[b]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=TBt(r,s.current,b,{elementResize:"ResizeObserver"in window}))},[r,b]);QI(function(){x()},[x]);var j=K.useCallback(function(S){s.current=S,x()},[x]);if(!t&&o!=="fixed"||!v)return null;var w=Yt("div",sa({ref:j},Un(ta(ta({},e),{},{offset:v.offset,position:o,rect:v.rect}),"menuPortal",{"menu-portal":!0}),n),a);return Yt(Hwe.Provider,{value:h},t?uj.createPortal(w,t):w)},sNt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},lNt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return Yt("div",sa({},Un(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},cNt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return ta({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},uNt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return Yt("div",sa({},Un(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},dNt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},pNt=function(e){var t=e.children,a=e.innerProps;return Yt("div",sa({},Un(e,"indicatorsContainer",{indicators:!0}),a),t)},Gwe,hNt=["size"],mNt=["innerProps","isRtl","size"],fNt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qwe=function(e){var t=e.size,a=sp(e,hNt);return Yt("svg",sa({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:fNt},a))},YI=function(e){return Yt(qwe,sa({size:20},e),Yt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Uwe=function(e){return Yt(qwe,sa({size:20},e),Yt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Jwe=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return ta({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},gNt=Jwe,vNt=function(e){var t=e.children,a=e.innerProps;return Yt("div",sa({},Un(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||Yt(Uwe,null))},bNt=Jwe,kNt=function(e){var t=e.children,a=e.innerProps;return Yt("div",sa({},Un(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||Yt(YI,null))},yNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return ta({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},xNt=function(e){var t=e.innerProps;return Yt("span",sa({},t,Un(e,"indicatorSeparator",{"indicator-separator":!0})))},wNt=vBt(Gwe||(Gwe=bBt([`
|
|
11577
11701
|
0%, 80%, 100% { opacity: 0; }
|