@ixon-cdk/simulator 1.27.0-next.0 → 1.28.0-next.0
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/3rdpartylicenses.txt +204 -170
- package/dist/chunk-3QVXQNFX.js +1 -0
- package/dist/chunk-AZVFLUTD.js +1 -0
- package/dist/{chunk-WM32XYD4.js → chunk-DJ3HFKJ4.js} +1 -1
- package/dist/chunk-H2LGWVKU.js +1 -0
- package/dist/{chunk-VDJORBYP.js → chunk-POL6ATNF.js} +1 -1
- package/dist/{chunk-ATEOH2EJ.js → chunk-RT3TN3X3.js} +22 -18
- package/dist/chunk-TRH6VHHM.js +5 -0
- package/dist/chunk-WURGEPST.js +1 -0
- package/dist/{chunk-HSTNV2GN.js → chunk-YHGNHUSW.js} +1 -1
- package/dist/features.json +8 -39
- package/dist/i18n/local/de.json +1 -1
- package/dist/i18n/local/en.json +1 -1
- package/dist/i18n/local/es.json +1 -1
- package/dist/i18n/local/fr.json +1 -1
- package/dist/i18n/local/it.json +1 -1
- package/dist/i18n/local/nl.json +1 -1
- package/dist/i18n/local/pl.json +1 -1
- package/dist/index.html +3 -3
- package/dist/main-NH7AIM5D.js +942 -0
- package/dist/polyfills-OWS4VW3D.js +2 -0
- package/dist/styles-UAGNZSXN.css +1 -0
- package/package.json +1 -1
- package/dist/chunk-EFEL2YQJ.js +0 -1
- package/dist/chunk-MZBXIT6T.js +0 -1
- package/dist/chunk-PKI27XVT.js +0 -19
- package/dist/chunk-QLI6N3TT.js +0 -1
- package/dist/chunk-SEDQOSXI.js +0 -1
- package/dist/main-I3G76LOY.js +0 -920
- package/dist/polyfills-TAHKGV5Z.js +0 -2
- package/dist/styles-GOTNE5X2.css +0 -1
|
@@ -46,24 +46,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
46
46
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
47
|
SOFTWARE.
|
|
48
48
|
|
|
49
|
-
--------------------------------------------------------------------------------
|
|
50
|
-
Package: lorem-ipsum
|
|
51
|
-
License: "ISC"
|
|
52
|
-
|
|
53
|
-
Copyright (c) 2012-2020 Nickolas Kenyeres <nickolas@knicklabs.com>
|
|
54
|
-
|
|
55
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
56
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
57
|
-
copyright notice and this permission notice appear in all copies.
|
|
58
|
-
|
|
59
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
60
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
61
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
62
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
63
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
64
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
65
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
-
|
|
67
49
|
--------------------------------------------------------------------------------
|
|
68
50
|
Package: papaparse
|
|
69
51
|
License: "MIT"
|
|
@@ -116,156 +98,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
116
98
|
SOFTWARE.
|
|
117
99
|
|
|
118
100
|
|
|
119
|
-
--------------------------------------------------------------------------------
|
|
120
|
-
Package: entities
|
|
121
|
-
License: "BSD-2-Clause"
|
|
122
|
-
|
|
123
|
-
Copyright (c) Felix Böhm
|
|
124
|
-
All rights reserved.
|
|
125
|
-
|
|
126
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
127
|
-
|
|
128
|
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
129
|
-
|
|
130
|
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
131
|
-
|
|
132
|
-
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
|
133
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
134
|
-
|
|
135
|
-
--------------------------------------------------------------------------------
|
|
136
|
-
Package: markdown-it
|
|
137
|
-
License: "MIT"
|
|
138
|
-
|
|
139
|
-
Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
|
|
140
|
-
|
|
141
|
-
Permission is hereby granted, free of charge, to any person
|
|
142
|
-
obtaining a copy of this software and associated documentation
|
|
143
|
-
files (the "Software"), to deal in the Software without
|
|
144
|
-
restriction, including without limitation the rights to use,
|
|
145
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
146
|
-
copies of the Software, and to permit persons to whom the
|
|
147
|
-
Software is furnished to do so, subject to the following
|
|
148
|
-
conditions:
|
|
149
|
-
|
|
150
|
-
The above copyright notice and this permission notice shall be
|
|
151
|
-
included in all copies or substantial portions of the Software.
|
|
152
|
-
|
|
153
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
154
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
155
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
156
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
157
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
158
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
159
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
160
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
161
|
-
|
|
162
|
-
--------------------------------------------------------------------------------
|
|
163
|
-
Package: uc.micro
|
|
164
|
-
License: "MIT"
|
|
165
|
-
|
|
166
|
-
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
167
|
-
|
|
168
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
169
|
-
a copy of this software and associated documentation files (the
|
|
170
|
-
"Software"), to deal in the Software without restriction, including
|
|
171
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
172
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
173
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
174
|
-
the following conditions:
|
|
175
|
-
|
|
176
|
-
The above copyright notice and this permission notice shall be
|
|
177
|
-
included in all copies or substantial portions of the Software.
|
|
178
|
-
|
|
179
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
180
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
181
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
182
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
183
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
184
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
185
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
186
|
-
|
|
187
|
-
--------------------------------------------------------------------------------
|
|
188
|
-
Package: mdurl
|
|
189
|
-
License: "MIT"
|
|
190
|
-
|
|
191
|
-
Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.
|
|
192
|
-
|
|
193
|
-
Permission is hereby granted, free of charge, to any person
|
|
194
|
-
obtaining a copy of this software and associated documentation
|
|
195
|
-
files (the "Software"), to deal in the Software without
|
|
196
|
-
restriction, including without limitation the rights to use,
|
|
197
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
198
|
-
copies of the Software, and to permit persons to whom the
|
|
199
|
-
Software is furnished to do so, subject to the following
|
|
200
|
-
conditions:
|
|
201
|
-
|
|
202
|
-
The above copyright notice and this permission notice shall be
|
|
203
|
-
included in all copies or substantial portions of the Software.
|
|
204
|
-
|
|
205
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
206
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
207
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
208
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
209
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
210
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
211
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
212
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
213
|
-
|
|
214
|
-
--------------------------------------------------------------------------------
|
|
215
|
-
|
|
216
|
-
.parse() is based on Joyent's node.js `url` code:
|
|
217
|
-
|
|
218
|
-
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
219
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
220
|
-
of this software and associated documentation files (the "Software"), to
|
|
221
|
-
deal in the Software without restriction, including without limitation the
|
|
222
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
223
|
-
sell copies of the Software, and to permit persons to whom the Software is
|
|
224
|
-
furnished to do so, subject to the following conditions:
|
|
225
|
-
|
|
226
|
-
The above copyright notice and this permission notice shall be included in
|
|
227
|
-
all copies or substantial portions of the Software.
|
|
228
|
-
|
|
229
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
230
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
231
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
232
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
233
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
234
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
235
|
-
IN THE SOFTWARE.
|
|
236
|
-
|
|
237
|
-
--------------------------------------------------------------------------------
|
|
238
|
-
Package: linkify-it
|
|
239
|
-
License: "MIT"
|
|
240
|
-
|
|
241
|
-
Copyright (c) 2015 Vitaly Puzrin.
|
|
242
|
-
|
|
243
|
-
Permission is hereby granted, free of charge, to any person
|
|
244
|
-
obtaining a copy of this software and associated documentation
|
|
245
|
-
files (the "Software"), to deal in the Software without
|
|
246
|
-
restriction, including without limitation the rights to use,
|
|
247
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
248
|
-
copies of the Software, and to permit persons to whom the
|
|
249
|
-
Software is furnished to do so, subject to the following
|
|
250
|
-
conditions:
|
|
251
|
-
|
|
252
|
-
The above copyright notice and this permission notice shall be
|
|
253
|
-
included in all copies or substantial portions of the Software.
|
|
254
|
-
|
|
255
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
256
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
257
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
258
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
259
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
260
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
261
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
262
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
263
|
-
|
|
264
|
-
--------------------------------------------------------------------------------
|
|
265
|
-
Package: punycode
|
|
266
|
-
License: "MIT"
|
|
267
|
-
|
|
268
|
-
|
|
269
101
|
--------------------------------------------------------------------------------
|
|
270
102
|
Package: @angular/animations
|
|
271
103
|
License: "MIT"
|
|
@@ -565,7 +397,7 @@ SOFTWARE.
|
|
|
565
397
|
|
|
566
398
|
--------------------------------------------------------------------------------
|
|
567
399
|
Package: gsap
|
|
568
|
-
License: "Standard 'no charge' license: https://gsap.com/standard-license.
|
|
400
|
+
License: "Standard 'no charge' license: https://gsap.com/standard-license."
|
|
569
401
|
|
|
570
402
|
|
|
571
403
|
--------------------------------------------------------------------------------
|
|
@@ -781,6 +613,58 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
781
613
|
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
782
614
|
THIS SOFTWARE.
|
|
783
615
|
|
|
616
|
+
--------------------------------------------------------------------------------
|
|
617
|
+
Package: lorem-ipsum
|
|
618
|
+
License: "MIT"
|
|
619
|
+
|
|
620
|
+
MIT License
|
|
621
|
+
|
|
622
|
+
Copyright (c) 2012-2026 Nickolas Kenyeres <dev@kenyeres.ca>
|
|
623
|
+
|
|
624
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
625
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
626
|
+
in the Software without restriction, including without limitation the rights
|
|
627
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
628
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
629
|
+
furnished to do so, subject to the following conditions:
|
|
630
|
+
|
|
631
|
+
The above copyright notice and this permission notice shall be included in
|
|
632
|
+
all copies or substantial portions of the Software.
|
|
633
|
+
|
|
634
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
635
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
636
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
637
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
638
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
639
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
640
|
+
IN THE SOFTWARE.
|
|
641
|
+
|
|
642
|
+
--------------------------------------------------------------------------------
|
|
643
|
+
Package: expr-eval-fork
|
|
644
|
+
License: "MIT"
|
|
645
|
+
|
|
646
|
+
The MIT License (MIT)
|
|
647
|
+
|
|
648
|
+
Copyright (c) 2015 Matthew Crumley
|
|
649
|
+
|
|
650
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
651
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
652
|
+
in the Software without restriction, including without limitation the rights
|
|
653
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
654
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
655
|
+
furnished to do so, subject to the following conditions:
|
|
656
|
+
|
|
657
|
+
The above copyright notice and this permission notice shall be included in all
|
|
658
|
+
copies or substantial portions of the Software.
|
|
659
|
+
|
|
660
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
661
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
662
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
663
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
664
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
665
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
666
|
+
SOFTWARE.
|
|
667
|
+
|
|
784
668
|
--------------------------------------------------------------------------------
|
|
785
669
|
Package: @angular/cdk
|
|
786
670
|
License: "MIT"
|
|
@@ -833,6 +717,156 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
833
717
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
834
718
|
THE SOFTWARE.
|
|
835
719
|
|
|
720
|
+
--------------------------------------------------------------------------------
|
|
721
|
+
Package: markdown-it
|
|
722
|
+
License: "MIT"
|
|
723
|
+
|
|
724
|
+
Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
|
|
725
|
+
|
|
726
|
+
Permission is hereby granted, free of charge, to any person
|
|
727
|
+
obtaining a copy of this software and associated documentation
|
|
728
|
+
files (the "Software"), to deal in the Software without
|
|
729
|
+
restriction, including without limitation the rights to use,
|
|
730
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
731
|
+
copies of the Software, and to permit persons to whom the
|
|
732
|
+
Software is furnished to do so, subject to the following
|
|
733
|
+
conditions:
|
|
734
|
+
|
|
735
|
+
The above copyright notice and this permission notice shall be
|
|
736
|
+
included in all copies or substantial portions of the Software.
|
|
737
|
+
|
|
738
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
739
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
740
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
741
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
742
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
743
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
744
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
745
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
746
|
+
|
|
747
|
+
--------------------------------------------------------------------------------
|
|
748
|
+
Package: mdurl
|
|
749
|
+
License: "MIT"
|
|
750
|
+
|
|
751
|
+
Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.
|
|
752
|
+
|
|
753
|
+
Permission is hereby granted, free of charge, to any person
|
|
754
|
+
obtaining a copy of this software and associated documentation
|
|
755
|
+
files (the "Software"), to deal in the Software without
|
|
756
|
+
restriction, including without limitation the rights to use,
|
|
757
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
758
|
+
copies of the Software, and to permit persons to whom the
|
|
759
|
+
Software is furnished to do so, subject to the following
|
|
760
|
+
conditions:
|
|
761
|
+
|
|
762
|
+
The above copyright notice and this permission notice shall be
|
|
763
|
+
included in all copies or substantial portions of the Software.
|
|
764
|
+
|
|
765
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
766
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
767
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
768
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
769
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
770
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
771
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
772
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
773
|
+
|
|
774
|
+
--------------------------------------------------------------------------------
|
|
775
|
+
|
|
776
|
+
.parse() is based on Joyent's node.js `url` code:
|
|
777
|
+
|
|
778
|
+
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
779
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
780
|
+
of this software and associated documentation files (the "Software"), to
|
|
781
|
+
deal in the Software without restriction, including without limitation the
|
|
782
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
783
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
784
|
+
furnished to do so, subject to the following conditions:
|
|
785
|
+
|
|
786
|
+
The above copyright notice and this permission notice shall be included in
|
|
787
|
+
all copies or substantial portions of the Software.
|
|
788
|
+
|
|
789
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
790
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
791
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
792
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
793
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
794
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
795
|
+
IN THE SOFTWARE.
|
|
796
|
+
|
|
797
|
+
--------------------------------------------------------------------------------
|
|
798
|
+
Package: uc.micro
|
|
799
|
+
License: "MIT"
|
|
800
|
+
|
|
801
|
+
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
802
|
+
|
|
803
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
804
|
+
a copy of this software and associated documentation files (the
|
|
805
|
+
"Software"), to deal in the Software without restriction, including
|
|
806
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
807
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
808
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
809
|
+
the following conditions:
|
|
810
|
+
|
|
811
|
+
The above copyright notice and this permission notice shall be
|
|
812
|
+
included in all copies or substantial portions of the Software.
|
|
813
|
+
|
|
814
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
815
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
816
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
817
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
818
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
819
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
820
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
821
|
+
|
|
822
|
+
--------------------------------------------------------------------------------
|
|
823
|
+
Package: entities
|
|
824
|
+
License: "BSD-2-Clause"
|
|
825
|
+
|
|
826
|
+
Copyright (c) Felix Böhm
|
|
827
|
+
All rights reserved.
|
|
828
|
+
|
|
829
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
830
|
+
|
|
831
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
832
|
+
|
|
833
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
834
|
+
|
|
835
|
+
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
|
836
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
837
|
+
|
|
838
|
+
--------------------------------------------------------------------------------
|
|
839
|
+
Package: linkify-it
|
|
840
|
+
License: "MIT"
|
|
841
|
+
|
|
842
|
+
Copyright (c) 2015 Vitaly Puzrin.
|
|
843
|
+
|
|
844
|
+
Permission is hereby granted, free of charge, to any person
|
|
845
|
+
obtaining a copy of this software and associated documentation
|
|
846
|
+
files (the "Software"), to deal in the Software without
|
|
847
|
+
restriction, including without limitation the rights to use,
|
|
848
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
849
|
+
copies of the Software, and to permit persons to whom the
|
|
850
|
+
Software is furnished to do so, subject to the following
|
|
851
|
+
conditions:
|
|
852
|
+
|
|
853
|
+
The above copyright notice and this permission notice shall be
|
|
854
|
+
included in all copies or substantial portions of the Software.
|
|
855
|
+
|
|
856
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
857
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
858
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
859
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
860
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
861
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
862
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
863
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
864
|
+
|
|
865
|
+
--------------------------------------------------------------------------------
|
|
866
|
+
Package: punycode.js
|
|
867
|
+
License: "MIT"
|
|
868
|
+
|
|
869
|
+
|
|
836
870
|
--------------------------------------------------------------------------------
|
|
837
871
|
Package: tinycolor2
|
|
838
872
|
License: "MIT"
|
|
@@ -2618,7 +2652,7 @@ License: "MIT"
|
|
|
2618
2652
|
|
|
2619
2653
|
The MIT License
|
|
2620
2654
|
|
|
2621
|
-
Copyright (c) 2010-
|
|
2655
|
+
Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
|
|
2622
2656
|
|
|
2623
2657
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2624
2658
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __create=Object.create;var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__reflectGet=Reflect.get;var __knownSymbol=(name,symbol)=>(symbol=Symbol[name])?symbol:Symbol.for("Symbol."+name),__typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||={})__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a},__spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __objRest=(source,exclude)=>{var target={};for(var prop in source)__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0&&(target[prop]=source[prop]);if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source))exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop)&&(target[prop]=source[prop]);return target};var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var __superGet=(cls,obj,key)=>__reflectGet(__getProtoOf(cls),key,obj);var __async=(__this,__arguments,generator)=>new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}},rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}},step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),__await=function(promise,isYieldStar){this[0]=promise,this[1]=isYieldStar},__asyncGenerator=(__this,__arguments,generator)=>{var resume=(k,v,yes,no)=>{try{var x=generator[k](v),isAwait=(v=x.value)instanceof __await,done=x.done;Promise.resolve(isAwait?v[0]:v).then(y=>isAwait?resume(k==="return"?k:"next",v[1]?{done:y.done,value:y.value}:y,yes,no):yes({value:y,done})).catch(e=>resume("throw",e,yes,no))}catch(e){no(e)}},method=k=>it[k]=x=>new Promise((yes,no)=>resume(k,x,yes,no)),it={};return generator=generator.apply(__this,__arguments),it[__knownSymbol("asyncIterator")]=()=>it,method("next"),method("throw"),method("return"),it},__yieldStar=value=>{var obj=value[__knownSymbol("asyncIterator")],isAwait=!1,method,it={};return obj==null?(obj=value[__knownSymbol("iterator")](),method=k=>it[k]=x=>obj[k](x)):(obj=obj.call(value),method=k=>it[k]=v=>{if(isAwait){if(isAwait=!1,k==="throw")throw v;return v}return isAwait=!0,{done:!1,value:new __await(new Promise(resolve=>{var x=obj[k](v);x instanceof Object||__typeError("Object expected"),resolve(x)}),1)}}),it[__knownSymbol("iterator")]=()=>it,method("next"),"throw"in obj?method("throw"):it.throw=x=>{throw x},"return"in obj&&method("return"),it},__forAwait=(obj,it,method)=>(it=obj[__knownSymbol("asyncIterator")])?it.call(obj):(obj=obj[__knownSymbol("iterator")](),it={},method=(key,fn)=>(fn=obj[key])&&(it[key]=arg=>new Promise((yes,no,done)=>(arg=fn.call(obj,arg),done=arg.done,Promise.resolve(arg.value).then(value=>yes({value,done}),no)))),method("next"),method("return"),it);export{__spreadValues,__spreadProps,__require,__objRest,__commonJS,__export,__toESM,__superGet,__async,__await,__asyncGenerator,__yieldStar,__forAwait};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SettingsModule}from"./chunk-RT3TN3X3.js";import"./chunk-LWBPVBEG.js";import"./chunk-3QVXQNFX.js";export{SettingsModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__async,__asyncGenerator,__await,__commonJS,__export,__forAwait,__objRest,__spreadProps,__spreadValues,__superGet,__toESM,__yieldStar}from"./chunk-EFEL2YQJ.js";var require_events=__commonJS({"node_modules/events/events.js"(exports,module){"use strict";var R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(target,receiver,args){return Function.prototype.apply.call(target,receiver,args)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target))}:ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target)};function ProcessEmitWarning(warning){console&&console.warn&&console.warn(warning)}var NumberIsNaN=Number.isNaN||function(value){return value!==value};function EventEmitter2(){EventEmitter2.init.call(this)}module.exports=EventEmitter2;module.exports.once=once;EventEmitter2.EventEmitter=EventEmitter2;EventEmitter2.prototype._events=void 0;EventEmitter2.prototype._eventsCount=0;EventEmitter2.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(listener){if(typeof listener!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof listener)}Object.defineProperty(EventEmitter2,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!="number"||arg<0||NumberIsNaN(arg))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+arg+".");defaultMaxListeners=arg}});EventEmitter2.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter2.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||NumberIsNaN(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function _getMaxListeners(that){return that._maxListeners===void 0?EventEmitter2.defaultMaxListeners:that._maxListeners}EventEmitter2.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter2.prototype.emit=function(type){for(var args=[],i=1;i<arguments.length;i++)args.push(arguments[i]);var doError=type==="error",events=this._events;if(events!==void 0)doError=doError&&events.error===void 0;else if(!doError)return!1;if(doError){var er;if(args.length>0&&(er=args[0]),er instanceof Error)throw er;var err=new Error("Unhandled error."+(er?" ("+er.message+")":""));throw err.context=er,err}var handler=events[type];if(handler===void 0)return!1;if(typeof handler=="function")ReflectApply(handler,this,args);else for(var len=handler.length,listeners=arrayClone(handler,len),i=0;i<len;++i)ReflectApply(listeners[i],this,args);return!0};function _addListener(target,type,listener,prepend){var m,events,existing;if(checkListener(listener),events=target._events,events===void 0?(events=target._events=Object.create(null),target._eventsCount=0):(events.newListener!==void 0&&(target.emit("newListener",type,listener.listener?listener.listener:listener),events=target._events),existing=events[type]),existing===void 0)existing=events[type]=listener,++target._eventsCount;else if(typeof existing=="function"?existing=events[type]=prepend?[listener,existing]:[existing,listener]:prepend?existing.unshift(listener):existing.push(listener),m=_getMaxListeners(target),m>0&&existing.length>m&&!existing.warned){existing.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+existing.length+" "+String(type)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=target,w.type=type,w.count=existing.length,ProcessEmitWarning(w)}return target}EventEmitter2.prototype.addListener=function(type,listener){return _addListener(this,type,listener,!1)};EventEmitter2.prototype.on=EventEmitter2.prototype.addListener;EventEmitter2.prototype.prependListener=function(type,listener){return _addListener(this,type,listener,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(target,type,listener){var state3={fired:!1,wrapFn:void 0,target,type,listener},wrapped=onceWrapper.bind(state3);return wrapped.listener=listener,state3.wrapFn=wrapped,wrapped}EventEmitter2.prototype.once=function(type,listener){return checkListener(listener),this.on(type,_onceWrap(this,type,listener)),this};EventEmitter2.prototype.prependOnceListener=function(type,listener){return checkListener(listener),this.prependListener(type,_onceWrap(this,type,listener)),this};EventEmitter2.prototype.removeListener=function(type,listener){var list,events,position,i,originalListener;if(checkListener(listener),events=this._events,events===void 0)return this;if(list=events[type],list===void 0)return this;if(list===listener||list.listener===listener)--this._eventsCount===0?this._events=Object.create(null):(delete events[type],events.removeListener&&this.emit("removeListener",type,list.listener||listener));else if(typeof list!="function"){for(position=-1,i=list.length-1;i>=0;i--)if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener,position=i;break}if(position<0)return this;position===0?list.shift():spliceOne(list,position),list.length===1&&(events[type]=list[0]),events.removeListener!==void 0&&this.emit("removeListener",type,originalListener||listener)}return this};EventEmitter2.prototype.off=EventEmitter2.prototype.removeListener;EventEmitter2.prototype.removeAllListeners=function(type){var listeners,events,i;if(events=this._events,events===void 0)return this;if(events.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):events[type]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete events[type]),this;if(arguments.length===0){var keys=Object.keys(events),key;for(i=0;i<keys.length;++i)key=keys[i],key!=="removeListener"&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(listeners=events[type],typeof listeners=="function")this.removeListener(type,listeners);else if(listeners!==void 0)for(i=listeners.length-1;i>=0;i--)this.removeListener(type,listeners[i]);return this};function _listeners(target,type,unwrap){var events=target._events;if(events===void 0)return[];var evlistener=events[type];return evlistener===void 0?[]:typeof evlistener=="function"?unwrap?[evlistener.listener||evlistener]:[evlistener]:unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter2.prototype.listeners=function(type){return _listeners(this,type,!0)};EventEmitter2.prototype.rawListeners=function(type){return _listeners(this,type,!1)};EventEmitter2.listenerCount=function(emitter,type){return typeof emitter.listenerCount=="function"?emitter.listenerCount(type):listenerCount.call(emitter,type)};EventEmitter2.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events!==void 0){var evlistener=events[type];if(typeof evlistener=="function")return 1;if(evlistener!==void 0)return evlistener.length}return 0}EventEmitter2.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(arr,n){for(var copy=new Array(n),i=0;i<n;++i)copy[i]=arr[i];return copy}function spliceOne(list,index){for(;index+1<list.length;index++)list[index]=list[index+1];list.pop()}function unwrapListeners(arr){for(var ret=new Array(arr.length),i=0;i<ret.length;++i)ret[i]=arr[i].listener||arr[i];return ret}function once(emitter,name){return new Promise(function(resolve,reject){function errorListener(err){emitter.removeListener(name,resolver),reject(err)}function resolver(){typeof emitter.removeListener=="function"&&emitter.removeListener("error",errorListener),resolve([].slice.call(arguments))}eventTargetAgnosticAddListener(emitter,name,resolver,{once:!0}),name!=="error"&&addErrorHandlerIfEventEmitter(emitter,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(emitter,handler,flags){typeof emitter.on=="function"&&eventTargetAgnosticAddListener(emitter,"error",handler,flags)}function eventTargetAgnosticAddListener(emitter,name,listener,flags){if(typeof emitter.on=="function")flags.once?emitter.once(name,listener):emitter.on(name,listener);else if(typeof emitter.addEventListener=="function")emitter.addEventListener(name,function wrapListener(arg){flags.once&&emitter.removeEventListener(name,wrapListener),listener(arg)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof emitter)}}});var AbortError=class extends Error{constructor(message){super(message),this.name="AbortError"}};function log(...args){if(args.length>0){let firstArg=String(args[0]);firstArg.includes(":error")?console.error(...args):firstArg.includes(":warning")?console.warn(...args):firstArg.includes(":info")?console.info(...args):firstArg.includes(":verbose")?console.debug(...args):console.debug(...args)}}var debugEnvVariable=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,enabledString,enabledNamespaces=[],skippedNamespaces=[],debuggers=[];debugEnvVariable&&enable(debugEnvVariable);var debugObj=Object.assign(namespace=>createDebugger(namespace),{enable,enabled,disable,log});function enable(namespaces){enabledString=namespaces,enabledNamespaces=[],skippedNamespaces=[];let wildcard=/\*/g,namespaceList=namespaces.split(",").map(ns=>ns.trim().replace(wildcard,".*?"));for(let ns of namespaceList)ns.startsWith("-")?skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`)):enabledNamespaces.push(new RegExp(`^${ns}$`));for(let instance of debuggers)instance.enabled=enabled(instance.namespace)}function enabled(namespace){if(namespace.endsWith("*"))return!0;for(let skipped of skippedNamespaces)if(skipped.test(namespace))return!1;for(let enabledNamespace of enabledNamespaces)if(enabledNamespace.test(namespace))return!0;return!1}function disable(){let result=enabledString||"";return enable(""),result}function createDebugger(namespace){let newDebugger=Object.assign(debug,{enabled:enabled(namespace),destroy,log:debugObj.log,namespace,extend});function debug(...args){newDebugger.enabled&&(args.length>0&&(args[0]=`${namespace} ${args[0]}`),newDebugger.log(...args))}return debuggers.push(newDebugger),newDebugger}function destroy(){let index=debuggers.indexOf(this);return index>=0?(debuggers.splice(index,1),!0):!1}function extend(namespace){let newDebugger=createDebugger(`${this.namespace}:${namespace}`);return newDebugger.log=this.log,newDebugger}var debug_default=debugObj;var TYPESPEC_RUNTIME_LOG_LEVELS=["verbose","info","warning","error"],levelMap={verbose:400,info:300,warning:200,error:100};function patchLogMethod(parent,child){child.log=(...args)=>{parent.log(...args)}}function isTypeSpecRuntimeLogLevel(level){return TYPESPEC_RUNTIME_LOG_LEVELS.includes(level)}function createLoggerContext(options){let registeredLoggers=new Set,logLevelFromEnv=typeof process<"u"&&process.env&&process.env[options.logLevelEnvVarName]||void 0,logLevel,clientLogger=debug_default(options.namespace);clientLogger.log=(...args)=>{debug_default.log(...args)};function contextSetLogLevel(level){if(level&&!isTypeSpecRuntimeLogLevel(level))throw new Error(`Unknown log level '${level}'. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(",")}`);logLevel=level;let enabledNamespaces2=[];for(let logger6 of registeredLoggers)shouldEnable(logger6)&&enabledNamespaces2.push(logger6.namespace);debug_default.enable(enabledNamespaces2.join(","))}logLevelFromEnv&&(isTypeSpecRuntimeLogLevel(logLevelFromEnv)?contextSetLogLevel(logLevelFromEnv):console.error(`${options.logLevelEnvVarName} set to unknown log level '${logLevelFromEnv}'; logging is not enabled. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(", ")}.`));function shouldEnable(logger6){return!!(logLevel&&levelMap[logger6.level]<=levelMap[logLevel])}function createLogger(parent,level){let logger6=Object.assign(parent.extend(level),{level});if(patchLogMethod(parent,logger6),shouldEnable(logger6)){let enabledNamespaces2=debug_default.disable();debug_default.enable(enabledNamespaces2+","+logger6.namespace)}return registeredLoggers.add(logger6),logger6}function contextGetLogLevel(){return logLevel}function contextCreateClientLogger(namespace){let clientRootLogger=clientLogger.extend(namespace);return patchLogMethod(clientLogger,clientRootLogger),{error:createLogger(clientRootLogger,"error"),warning:createLogger(clientRootLogger,"warning"),info:createLogger(clientRootLogger,"info"),verbose:createLogger(clientRootLogger,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:clientLogger}}var context=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),TypeSpecRuntimeLogger=context.logger;function createClientLogger(namespace){return context.createClientLogger(namespace)}function normalizeName(name){return name.toLowerCase()}function*headerIterator(map){for(let entry of map.values())yield[entry.name,entry.value]}var HttpHeadersImpl=class{constructor(rawHeaders){if(this._headersMap=new Map,rawHeaders)for(let headerName of Object.keys(rawHeaders))this.set(headerName,rawHeaders[headerName])}set(name,value){this._headersMap.set(normalizeName(name),{name,value:String(value).trim()})}get(name){var _a3;return(_a3=this._headersMap.get(normalizeName(name)))===null||_a3===void 0?void 0:_a3.value}has(name){return this._headersMap.has(normalizeName(name))}delete(name){this._headersMap.delete(normalizeName(name))}toJSON(options={}){let result={};if(options.preserveCase)for(let entry of this._headersMap.values())result[entry.name]=entry.value;else for(let[normalizedName,entry]of this._headersMap)result[normalizedName]=entry.value;return result}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return headerIterator(this._headersMap)}};function createHttpHeaders(rawHeaders){return new HttpHeadersImpl(rawHeaders)}function generateUUID(){let uuid="";for(let i=0;i<32;i++){let randomNumber=Math.floor(Math.random()*16);i===12?uuid+="4":i===16?uuid+=randomNumber&3|8:uuid+=randomNumber.toString(16),(i===7||i===11||i===15||i===19)&&(uuid+="-")}return uuid}var _a,uuidFunction=typeof((_a=globalThis?.crypto)===null||_a===void 0?void 0:_a.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):generateUUID;function randomUUID(){return uuidFunction()}var PipelineRequestImpl=class{constructor(options){var _a3,_b2,_c2,_d2,_e,_f,_g;this.url=options.url,this.body=options.body,this.headers=(_a3=options.headers)!==null&&_a3!==void 0?_a3:createHttpHeaders(),this.method=(_b2=options.method)!==null&&_b2!==void 0?_b2:"GET",this.timeout=(_c2=options.timeout)!==null&&_c2!==void 0?_c2:0,this.multipartBody=options.multipartBody,this.formData=options.formData,this.disableKeepAlive=(_d2=options.disableKeepAlive)!==null&&_d2!==void 0?_d2:!1,this.proxySettings=options.proxySettings,this.streamResponseStatusCodes=options.streamResponseStatusCodes,this.withCredentials=(_e=options.withCredentials)!==null&&_e!==void 0?_e:!1,this.abortSignal=options.abortSignal,this.onUploadProgress=options.onUploadProgress,this.onDownloadProgress=options.onDownloadProgress,this.requestId=options.requestId||randomUUID(),this.allowInsecureConnection=(_f=options.allowInsecureConnection)!==null&&_f!==void 0?_f:!1,this.enableBrowserStreams=(_g=options.enableBrowserStreams)!==null&&_g!==void 0?_g:!1,this.requestOverrides=options.requestOverrides,this.authSchemes=options.authSchemes}};function createPipelineRequest(options){return new PipelineRequestImpl(options)}var ValidPhaseNames=new Set(["Deserialize","Serialize","Retry","Sign"]),HttpPipeline=class _HttpPipeline{constructor(policies){var _a3;this._policies=[],this._policies=(_a3=policies?.slice(0))!==null&&_a3!==void 0?_a3:[],this._orderedPolicies=void 0}addPolicy(policy,options={}){if(options.phase&&options.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(options.phase&&!ValidPhaseNames.has(options.phase))throw new Error(`Invalid phase name: ${options.phase}`);if(options.afterPhase&&!ValidPhaseNames.has(options.afterPhase))throw new Error(`Invalid afterPhase name: ${options.afterPhase}`);this._policies.push({policy,options}),this._orderedPolicies=void 0}removePolicy(options){let removedPolicies=[];return this._policies=this._policies.filter(policyDescriptor=>options.name&&policyDescriptor.policy.name===options.name||options.phase&&policyDescriptor.options.phase===options.phase?(removedPolicies.push(policyDescriptor.policy),!1):!0),this._orderedPolicies=void 0,removedPolicies}sendRequest(httpClient,request){return this.getOrderedPolicies().reduceRight((next,policy)=>req=>policy.sendRequest(req,next),req=>httpClient.sendRequest(req))(request)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new _HttpPipeline(this._policies)}static create(){return new _HttpPipeline}orderPolicies(){let result=[],policyMap=new Map;function createPhase(name){return{name,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let serializePhase=createPhase("Serialize"),noPhase=createPhase("None"),deserializePhase=createPhase("Deserialize"),retryPhase=createPhase("Retry"),signPhase=createPhase("Sign"),orderedPhases=[serializePhase,noPhase,deserializePhase,retryPhase,signPhase];function getPhase(phase){return phase==="Retry"?retryPhase:phase==="Serialize"?serializePhase:phase==="Deserialize"?deserializePhase:phase==="Sign"?signPhase:noPhase}for(let descriptor of this._policies){let policy=descriptor.policy,options=descriptor.options,policyName=policy.name;if(policyMap.has(policyName))throw new Error("Duplicate policy names not allowed in pipeline");let node={policy,dependsOn:new Set,dependants:new Set};options.afterPhase&&(node.afterPhase=getPhase(options.afterPhase),node.afterPhase.hasAfterPolicies=!0),policyMap.set(policyName,node),getPhase(options.phase).policies.add(node)}for(let descriptor of this._policies){let{policy,options}=descriptor,policyName=policy.name,node=policyMap.get(policyName);if(!node)throw new Error(`Missing node for policy ${policyName}`);if(options.afterPolicies)for(let afterPolicyName of options.afterPolicies){let afterNode=policyMap.get(afterPolicyName);afterNode&&(node.dependsOn.add(afterNode),afterNode.dependants.add(node))}if(options.beforePolicies)for(let beforePolicyName of options.beforePolicies){let beforeNode=policyMap.get(beforePolicyName);beforeNode&&(beforeNode.dependsOn.add(node),node.dependants.add(beforeNode))}}function walkPhase(phase){phase.hasRun=!0;for(let node of phase.policies)if(!(node.afterPhase&&(!node.afterPhase.hasRun||node.afterPhase.policies.size))&&node.dependsOn.size===0){result.push(node.policy);for(let dependant of node.dependants)dependant.dependsOn.delete(node);policyMap.delete(node.policy.name),phase.policies.delete(node)}}function walkPhases(){for(let phase of orderedPhases){if(walkPhase(phase),phase.policies.size>0&&phase!==noPhase){noPhase.hasRun||walkPhase(noPhase);return}phase.hasAfterPolicies&&walkPhase(noPhase)}}let iteration=0;for(;policyMap.size>0;){iteration++;let initialResultLength=result.length;if(walkPhases(),result.length<=initialResultLength&&iteration>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return result}};function createEmptyPipeline(){return HttpPipeline.create()}function isObject(input){return typeof input=="object"&&input!==null&&!Array.isArray(input)&&!(input instanceof RegExp)&&!(input instanceof Date)}function isError(e){if(isObject(e)){let hasName=typeof e.name=="string",hasMessage=typeof e.message=="string";return hasName&&hasMessage}return!1}var custom=Symbol();var RedactedString="REDACTED",defaultAllowedHeaderNames=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],defaultAllowedQueryParameters=["api-version"],Sanitizer=class{constructor({additionalAllowedHeaderNames:allowedHeaderNames=[],additionalAllowedQueryParameters:allowedQueryParameters=[]}={}){allowedHeaderNames=defaultAllowedHeaderNames.concat(allowedHeaderNames),allowedQueryParameters=defaultAllowedQueryParameters.concat(allowedQueryParameters),this.allowedHeaderNames=new Set(allowedHeaderNames.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(allowedQueryParameters.map(p=>p.toLowerCase()))}sanitize(obj){let seen=new Set;return JSON.stringify(obj,(key,value)=>{if(value instanceof Error)return Object.assign(Object.assign({},value),{name:value.name,message:value.message});if(key==="headers")return this.sanitizeHeaders(value);if(key==="url")return this.sanitizeUrl(value);if(key==="query")return this.sanitizeQuery(value);if(key==="body")return;if(key==="response")return;if(key==="operationSpec")return;if(Array.isArray(value)||isObject(value)){if(seen.has(value))return"[Circular]";seen.add(value)}return value},2)}sanitizeUrl(value){if(typeof value!="string"||value===null||value==="")return value;let url2=new URL(value);if(!url2.search)return value;for(let[key]of url2.searchParams)this.allowedQueryParameters.has(key.toLowerCase())||url2.searchParams.set(key,RedactedString);return url2.toString()}sanitizeHeaders(obj){let sanitized={};for(let key of Object.keys(obj))this.allowedHeaderNames.has(key.toLowerCase())?sanitized[key]=obj[key]:sanitized[key]=RedactedString;return sanitized}sanitizeQuery(value){if(typeof value!="object"||value===null)return value;let sanitized={};for(let k of Object.keys(value))this.allowedQueryParameters.has(k.toLowerCase())?sanitized[k]=value[k]:sanitized[k]=RedactedString;return sanitized}};var errorSanitizer=new Sanitizer,RestError=(()=>{class RestError3 extends Error{constructor(message,options={}){super(message),this.name="RestError",this.code=options.code,this.statusCode=options.statusCode,Object.defineProperty(this,"request",{value:options.request,enumerable:!1}),Object.defineProperty(this,"response",{value:options.response,enumerable:!1}),Object.defineProperty(this,custom,{value:()=>`RestError: ${this.message}
|
|
1
|
+
import{__async,__asyncGenerator,__await,__commonJS,__export,__forAwait,__objRest,__spreadProps,__spreadValues,__superGet,__toESM,__yieldStar}from"./chunk-3QVXQNFX.js";var require_events=__commonJS({"node_modules/events/events.js"(exports,module){"use strict";var R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(target,receiver,args){return Function.prototype.apply.call(target,receiver,args)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target))}:ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target)};function ProcessEmitWarning(warning){console&&console.warn&&console.warn(warning)}var NumberIsNaN=Number.isNaN||function(value){return value!==value};function EventEmitter2(){EventEmitter2.init.call(this)}module.exports=EventEmitter2;module.exports.once=once;EventEmitter2.EventEmitter=EventEmitter2;EventEmitter2.prototype._events=void 0;EventEmitter2.prototype._eventsCount=0;EventEmitter2.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(listener){if(typeof listener!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof listener)}Object.defineProperty(EventEmitter2,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!="number"||arg<0||NumberIsNaN(arg))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+arg+".");defaultMaxListeners=arg}});EventEmitter2.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter2.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||NumberIsNaN(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function _getMaxListeners(that){return that._maxListeners===void 0?EventEmitter2.defaultMaxListeners:that._maxListeners}EventEmitter2.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter2.prototype.emit=function(type){for(var args=[],i=1;i<arguments.length;i++)args.push(arguments[i]);var doError=type==="error",events=this._events;if(events!==void 0)doError=doError&&events.error===void 0;else if(!doError)return!1;if(doError){var er;if(args.length>0&&(er=args[0]),er instanceof Error)throw er;var err=new Error("Unhandled error."+(er?" ("+er.message+")":""));throw err.context=er,err}var handler=events[type];if(handler===void 0)return!1;if(typeof handler=="function")ReflectApply(handler,this,args);else for(var len=handler.length,listeners=arrayClone(handler,len),i=0;i<len;++i)ReflectApply(listeners[i],this,args);return!0};function _addListener(target,type,listener,prepend){var m,events,existing;if(checkListener(listener),events=target._events,events===void 0?(events=target._events=Object.create(null),target._eventsCount=0):(events.newListener!==void 0&&(target.emit("newListener",type,listener.listener?listener.listener:listener),events=target._events),existing=events[type]),existing===void 0)existing=events[type]=listener,++target._eventsCount;else if(typeof existing=="function"?existing=events[type]=prepend?[listener,existing]:[existing,listener]:prepend?existing.unshift(listener):existing.push(listener),m=_getMaxListeners(target),m>0&&existing.length>m&&!existing.warned){existing.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+existing.length+" "+String(type)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=target,w.type=type,w.count=existing.length,ProcessEmitWarning(w)}return target}EventEmitter2.prototype.addListener=function(type,listener){return _addListener(this,type,listener,!1)};EventEmitter2.prototype.on=EventEmitter2.prototype.addListener;EventEmitter2.prototype.prependListener=function(type,listener){return _addListener(this,type,listener,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(target,type,listener){var state3={fired:!1,wrapFn:void 0,target,type,listener},wrapped=onceWrapper.bind(state3);return wrapped.listener=listener,state3.wrapFn=wrapped,wrapped}EventEmitter2.prototype.once=function(type,listener){return checkListener(listener),this.on(type,_onceWrap(this,type,listener)),this};EventEmitter2.prototype.prependOnceListener=function(type,listener){return checkListener(listener),this.prependListener(type,_onceWrap(this,type,listener)),this};EventEmitter2.prototype.removeListener=function(type,listener){var list,events,position,i,originalListener;if(checkListener(listener),events=this._events,events===void 0)return this;if(list=events[type],list===void 0)return this;if(list===listener||list.listener===listener)--this._eventsCount===0?this._events=Object.create(null):(delete events[type],events.removeListener&&this.emit("removeListener",type,list.listener||listener));else if(typeof list!="function"){for(position=-1,i=list.length-1;i>=0;i--)if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener,position=i;break}if(position<0)return this;position===0?list.shift():spliceOne(list,position),list.length===1&&(events[type]=list[0]),events.removeListener!==void 0&&this.emit("removeListener",type,originalListener||listener)}return this};EventEmitter2.prototype.off=EventEmitter2.prototype.removeListener;EventEmitter2.prototype.removeAllListeners=function(type){var listeners,events,i;if(events=this._events,events===void 0)return this;if(events.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):events[type]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete events[type]),this;if(arguments.length===0){var keys=Object.keys(events),key;for(i=0;i<keys.length;++i)key=keys[i],key!=="removeListener"&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(listeners=events[type],typeof listeners=="function")this.removeListener(type,listeners);else if(listeners!==void 0)for(i=listeners.length-1;i>=0;i--)this.removeListener(type,listeners[i]);return this};function _listeners(target,type,unwrap){var events=target._events;if(events===void 0)return[];var evlistener=events[type];return evlistener===void 0?[]:typeof evlistener=="function"?unwrap?[evlistener.listener||evlistener]:[evlistener]:unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter2.prototype.listeners=function(type){return _listeners(this,type,!0)};EventEmitter2.prototype.rawListeners=function(type){return _listeners(this,type,!1)};EventEmitter2.listenerCount=function(emitter,type){return typeof emitter.listenerCount=="function"?emitter.listenerCount(type):listenerCount.call(emitter,type)};EventEmitter2.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events!==void 0){var evlistener=events[type];if(typeof evlistener=="function")return 1;if(evlistener!==void 0)return evlistener.length}return 0}EventEmitter2.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(arr,n){for(var copy=new Array(n),i=0;i<n;++i)copy[i]=arr[i];return copy}function spliceOne(list,index){for(;index+1<list.length;index++)list[index]=list[index+1];list.pop()}function unwrapListeners(arr){for(var ret=new Array(arr.length),i=0;i<ret.length;++i)ret[i]=arr[i].listener||arr[i];return ret}function once(emitter,name){return new Promise(function(resolve,reject){function errorListener(err){emitter.removeListener(name,resolver),reject(err)}function resolver(){typeof emitter.removeListener=="function"&&emitter.removeListener("error",errorListener),resolve([].slice.call(arguments))}eventTargetAgnosticAddListener(emitter,name,resolver,{once:!0}),name!=="error"&&addErrorHandlerIfEventEmitter(emitter,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(emitter,handler,flags){typeof emitter.on=="function"&&eventTargetAgnosticAddListener(emitter,"error",handler,flags)}function eventTargetAgnosticAddListener(emitter,name,listener,flags){if(typeof emitter.on=="function")flags.once?emitter.once(name,listener):emitter.on(name,listener);else if(typeof emitter.addEventListener=="function")emitter.addEventListener(name,function wrapListener(arg){flags.once&&emitter.removeEventListener(name,wrapListener),listener(arg)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof emitter)}}});var AbortError=class extends Error{constructor(message){super(message),this.name="AbortError"}};function log(...args){if(args.length>0){let firstArg=String(args[0]);firstArg.includes(":error")?console.error(...args):firstArg.includes(":warning")?console.warn(...args):firstArg.includes(":info")?console.info(...args):firstArg.includes(":verbose")?console.debug(...args):console.debug(...args)}}var debugEnvVariable=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,enabledString,enabledNamespaces=[],skippedNamespaces=[],debuggers=[];debugEnvVariable&&enable(debugEnvVariable);var debugObj=Object.assign(namespace=>createDebugger(namespace),{enable,enabled,disable,log});function enable(namespaces){enabledString=namespaces,enabledNamespaces=[],skippedNamespaces=[];let wildcard=/\*/g,namespaceList=namespaces.split(",").map(ns=>ns.trim().replace(wildcard,".*?"));for(let ns of namespaceList)ns.startsWith("-")?skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`)):enabledNamespaces.push(new RegExp(`^${ns}$`));for(let instance of debuggers)instance.enabled=enabled(instance.namespace)}function enabled(namespace){if(namespace.endsWith("*"))return!0;for(let skipped of skippedNamespaces)if(skipped.test(namespace))return!1;for(let enabledNamespace of enabledNamespaces)if(enabledNamespace.test(namespace))return!0;return!1}function disable(){let result=enabledString||"";return enable(""),result}function createDebugger(namespace){let newDebugger=Object.assign(debug,{enabled:enabled(namespace),destroy,log:debugObj.log,namespace,extend});function debug(...args){newDebugger.enabled&&(args.length>0&&(args[0]=`${namespace} ${args[0]}`),newDebugger.log(...args))}return debuggers.push(newDebugger),newDebugger}function destroy(){let index=debuggers.indexOf(this);return index>=0?(debuggers.splice(index,1),!0):!1}function extend(namespace){let newDebugger=createDebugger(`${this.namespace}:${namespace}`);return newDebugger.log=this.log,newDebugger}var debug_default=debugObj;var TYPESPEC_RUNTIME_LOG_LEVELS=["verbose","info","warning","error"],levelMap={verbose:400,info:300,warning:200,error:100};function patchLogMethod(parent,child){child.log=(...args)=>{parent.log(...args)}}function isTypeSpecRuntimeLogLevel(level){return TYPESPEC_RUNTIME_LOG_LEVELS.includes(level)}function createLoggerContext(options){let registeredLoggers=new Set,logLevelFromEnv=typeof process<"u"&&process.env&&process.env[options.logLevelEnvVarName]||void 0,logLevel,clientLogger=debug_default(options.namespace);clientLogger.log=(...args)=>{debug_default.log(...args)};function contextSetLogLevel(level){if(level&&!isTypeSpecRuntimeLogLevel(level))throw new Error(`Unknown log level '${level}'. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(",")}`);logLevel=level;let enabledNamespaces2=[];for(let logger6 of registeredLoggers)shouldEnable(logger6)&&enabledNamespaces2.push(logger6.namespace);debug_default.enable(enabledNamespaces2.join(","))}logLevelFromEnv&&(isTypeSpecRuntimeLogLevel(logLevelFromEnv)?contextSetLogLevel(logLevelFromEnv):console.error(`${options.logLevelEnvVarName} set to unknown log level '${logLevelFromEnv}'; logging is not enabled. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(", ")}.`));function shouldEnable(logger6){return!!(logLevel&&levelMap[logger6.level]<=levelMap[logLevel])}function createLogger(parent,level){let logger6=Object.assign(parent.extend(level),{level});if(patchLogMethod(parent,logger6),shouldEnable(logger6)){let enabledNamespaces2=debug_default.disable();debug_default.enable(enabledNamespaces2+","+logger6.namespace)}return registeredLoggers.add(logger6),logger6}function contextGetLogLevel(){return logLevel}function contextCreateClientLogger(namespace){let clientRootLogger=clientLogger.extend(namespace);return patchLogMethod(clientLogger,clientRootLogger),{error:createLogger(clientRootLogger,"error"),warning:createLogger(clientRootLogger,"warning"),info:createLogger(clientRootLogger,"info"),verbose:createLogger(clientRootLogger,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:clientLogger}}var context=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),TypeSpecRuntimeLogger=context.logger;function createClientLogger(namespace){return context.createClientLogger(namespace)}function normalizeName(name){return name.toLowerCase()}function*headerIterator(map){for(let entry of map.values())yield[entry.name,entry.value]}var HttpHeadersImpl=class{constructor(rawHeaders){if(this._headersMap=new Map,rawHeaders)for(let headerName of Object.keys(rawHeaders))this.set(headerName,rawHeaders[headerName])}set(name,value){this._headersMap.set(normalizeName(name),{name,value:String(value).trim()})}get(name){var _a3;return(_a3=this._headersMap.get(normalizeName(name)))===null||_a3===void 0?void 0:_a3.value}has(name){return this._headersMap.has(normalizeName(name))}delete(name){this._headersMap.delete(normalizeName(name))}toJSON(options={}){let result={};if(options.preserveCase)for(let entry of this._headersMap.values())result[entry.name]=entry.value;else for(let[normalizedName,entry]of this._headersMap)result[normalizedName]=entry.value;return result}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return headerIterator(this._headersMap)}};function createHttpHeaders(rawHeaders){return new HttpHeadersImpl(rawHeaders)}function generateUUID(){let uuid="";for(let i=0;i<32;i++){let randomNumber=Math.floor(Math.random()*16);i===12?uuid+="4":i===16?uuid+=randomNumber&3|8:uuid+=randomNumber.toString(16),(i===7||i===11||i===15||i===19)&&(uuid+="-")}return uuid}var _a,uuidFunction=typeof((_a=globalThis?.crypto)===null||_a===void 0?void 0:_a.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):generateUUID;function randomUUID(){return uuidFunction()}var PipelineRequestImpl=class{constructor(options){var _a3,_b2,_c2,_d2,_e,_f,_g;this.url=options.url,this.body=options.body,this.headers=(_a3=options.headers)!==null&&_a3!==void 0?_a3:createHttpHeaders(),this.method=(_b2=options.method)!==null&&_b2!==void 0?_b2:"GET",this.timeout=(_c2=options.timeout)!==null&&_c2!==void 0?_c2:0,this.multipartBody=options.multipartBody,this.formData=options.formData,this.disableKeepAlive=(_d2=options.disableKeepAlive)!==null&&_d2!==void 0?_d2:!1,this.proxySettings=options.proxySettings,this.streamResponseStatusCodes=options.streamResponseStatusCodes,this.withCredentials=(_e=options.withCredentials)!==null&&_e!==void 0?_e:!1,this.abortSignal=options.abortSignal,this.onUploadProgress=options.onUploadProgress,this.onDownloadProgress=options.onDownloadProgress,this.requestId=options.requestId||randomUUID(),this.allowInsecureConnection=(_f=options.allowInsecureConnection)!==null&&_f!==void 0?_f:!1,this.enableBrowserStreams=(_g=options.enableBrowserStreams)!==null&&_g!==void 0?_g:!1,this.requestOverrides=options.requestOverrides,this.authSchemes=options.authSchemes}};function createPipelineRequest(options){return new PipelineRequestImpl(options)}var ValidPhaseNames=new Set(["Deserialize","Serialize","Retry","Sign"]),HttpPipeline=class _HttpPipeline{constructor(policies){var _a3;this._policies=[],this._policies=(_a3=policies?.slice(0))!==null&&_a3!==void 0?_a3:[],this._orderedPolicies=void 0}addPolicy(policy,options={}){if(options.phase&&options.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(options.phase&&!ValidPhaseNames.has(options.phase))throw new Error(`Invalid phase name: ${options.phase}`);if(options.afterPhase&&!ValidPhaseNames.has(options.afterPhase))throw new Error(`Invalid afterPhase name: ${options.afterPhase}`);this._policies.push({policy,options}),this._orderedPolicies=void 0}removePolicy(options){let removedPolicies=[];return this._policies=this._policies.filter(policyDescriptor=>options.name&&policyDescriptor.policy.name===options.name||options.phase&&policyDescriptor.options.phase===options.phase?(removedPolicies.push(policyDescriptor.policy),!1):!0),this._orderedPolicies=void 0,removedPolicies}sendRequest(httpClient,request){return this.getOrderedPolicies().reduceRight((next,policy)=>req=>policy.sendRequest(req,next),req=>httpClient.sendRequest(req))(request)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new _HttpPipeline(this._policies)}static create(){return new _HttpPipeline}orderPolicies(){let result=[],policyMap=new Map;function createPhase(name){return{name,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let serializePhase=createPhase("Serialize"),noPhase=createPhase("None"),deserializePhase=createPhase("Deserialize"),retryPhase=createPhase("Retry"),signPhase=createPhase("Sign"),orderedPhases=[serializePhase,noPhase,deserializePhase,retryPhase,signPhase];function getPhase(phase){return phase==="Retry"?retryPhase:phase==="Serialize"?serializePhase:phase==="Deserialize"?deserializePhase:phase==="Sign"?signPhase:noPhase}for(let descriptor of this._policies){let policy=descriptor.policy,options=descriptor.options,policyName=policy.name;if(policyMap.has(policyName))throw new Error("Duplicate policy names not allowed in pipeline");let node={policy,dependsOn:new Set,dependants:new Set};options.afterPhase&&(node.afterPhase=getPhase(options.afterPhase),node.afterPhase.hasAfterPolicies=!0),policyMap.set(policyName,node),getPhase(options.phase).policies.add(node)}for(let descriptor of this._policies){let{policy,options}=descriptor,policyName=policy.name,node=policyMap.get(policyName);if(!node)throw new Error(`Missing node for policy ${policyName}`);if(options.afterPolicies)for(let afterPolicyName of options.afterPolicies){let afterNode=policyMap.get(afterPolicyName);afterNode&&(node.dependsOn.add(afterNode),afterNode.dependants.add(node))}if(options.beforePolicies)for(let beforePolicyName of options.beforePolicies){let beforeNode=policyMap.get(beforePolicyName);beforeNode&&(beforeNode.dependsOn.add(node),node.dependants.add(beforeNode))}}function walkPhase(phase){phase.hasRun=!0;for(let node of phase.policies)if(!(node.afterPhase&&(!node.afterPhase.hasRun||node.afterPhase.policies.size))&&node.dependsOn.size===0){result.push(node.policy);for(let dependant of node.dependants)dependant.dependsOn.delete(node);policyMap.delete(node.policy.name),phase.policies.delete(node)}}function walkPhases(){for(let phase of orderedPhases){if(walkPhase(phase),phase.policies.size>0&&phase!==noPhase){noPhase.hasRun||walkPhase(noPhase);return}phase.hasAfterPolicies&&walkPhase(noPhase)}}let iteration=0;for(;policyMap.size>0;){iteration++;let initialResultLength=result.length;if(walkPhases(),result.length<=initialResultLength&&iteration>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return result}};function createEmptyPipeline(){return HttpPipeline.create()}function isObject(input){return typeof input=="object"&&input!==null&&!Array.isArray(input)&&!(input instanceof RegExp)&&!(input instanceof Date)}function isError(e){if(isObject(e)){let hasName=typeof e.name=="string",hasMessage=typeof e.message=="string";return hasName&&hasMessage}return!1}var custom=Symbol();var RedactedString="REDACTED",defaultAllowedHeaderNames=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],defaultAllowedQueryParameters=["api-version"],Sanitizer=class{constructor({additionalAllowedHeaderNames:allowedHeaderNames=[],additionalAllowedQueryParameters:allowedQueryParameters=[]}={}){allowedHeaderNames=defaultAllowedHeaderNames.concat(allowedHeaderNames),allowedQueryParameters=defaultAllowedQueryParameters.concat(allowedQueryParameters),this.allowedHeaderNames=new Set(allowedHeaderNames.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(allowedQueryParameters.map(p=>p.toLowerCase()))}sanitize(obj){let seen=new Set;return JSON.stringify(obj,(key,value)=>{if(value instanceof Error)return Object.assign(Object.assign({},value),{name:value.name,message:value.message});if(key==="headers")return this.sanitizeHeaders(value);if(key==="url")return this.sanitizeUrl(value);if(key==="query")return this.sanitizeQuery(value);if(key==="body")return;if(key==="response")return;if(key==="operationSpec")return;if(Array.isArray(value)||isObject(value)){if(seen.has(value))return"[Circular]";seen.add(value)}return value},2)}sanitizeUrl(value){if(typeof value!="string"||value===null||value==="")return value;let url2=new URL(value);if(!url2.search)return value;for(let[key]of url2.searchParams)this.allowedQueryParameters.has(key.toLowerCase())||url2.searchParams.set(key,RedactedString);return url2.toString()}sanitizeHeaders(obj){let sanitized={};for(let key of Object.keys(obj))this.allowedHeaderNames.has(key.toLowerCase())?sanitized[key]=obj[key]:sanitized[key]=RedactedString;return sanitized}sanitizeQuery(value){if(typeof value!="object"||value===null)return value;let sanitized={};for(let k of Object.keys(value))this.allowedQueryParameters.has(k.toLowerCase())?sanitized[k]=value[k]:sanitized[k]=RedactedString;return sanitized}};var errorSanitizer=new Sanitizer,RestError=(()=>{class RestError3 extends Error{constructor(message,options={}){super(message),this.name="RestError",this.code=options.code,this.statusCode=options.statusCode,Object.defineProperty(this,"request",{value:options.request,enumerable:!1}),Object.defineProperty(this,"response",{value:options.response,enumerable:!1}),Object.defineProperty(this,custom,{value:()=>`RestError: ${this.message}
|
|
2
2
|
${errorSanitizer.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,enumerable:!1}),Object.setPrototypeOf(this,RestError3.prototype)}}return RestError3.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR",RestError3.PARSE_ERROR="PARSE_ERROR",RestError3})();function isRestError(e){return e instanceof RestError?!0:isError(e)&&e.name==="RestError"}function stringToUint8Array(value,format){switch(format){case"utf-8":return utf8StringToUint8Array(value);case"base64":return base64ToUint8Array(value);case"base64url":return base64UrlToUint8Array(value);case"hex":return hexStringToUint8Array(value)}}function utf8StringToUint8Array(value){return new TextEncoder().encode(value)}function base64ToUint8Array(value){return new Uint8Array([...atob(value)].map(x=>x.charCodeAt(0)))}function base64UrlToUint8Array(value){let base64String=value.replace(/-/g,"+").replace(/_/g,"/");return base64ToUint8Array(base64String)}var hexDigits=new Set("0123456789abcdefABCDEF");function hexStringToUint8Array(value){let bytes=new Uint8Array(value.length/2);for(let i=0;i<value.length/2;++i){let highNibble=value[2*i],lowNibble=value[2*i+1];if(!hexDigits.has(highNibble)||!hexDigits.has(lowNibble))return bytes.slice(0,i);bytes[i]=parseInt(`${highNibble}${lowNibble}`,16)}return bytes}function isNodeReadableStream(x){return!!(x&&typeof x.pipe=="function")}function isWebReadableStream(x){return!!(x&&typeof x.getReader=="function"&&typeof x.tee=="function")}function isBlob(x){return typeof x.stream=="function"}function isBlob2(body2){return(typeof Blob=="function"||typeof Blob=="object")&&body2 instanceof Blob}var FetchHttpClient=class{sendRequest(request){return __async(this,null,function*(){if(new URL(request.url).protocol!=="https:"&&!request.allowInsecureConnection)throw new Error(`Cannot connect to ${request.url} while allowInsecureConnection is false.`);if(request.proxySettings)throw new Error("HTTP proxy is not supported in browser environment");try{return yield makeRequest(request)}catch(e){throw getError(e,request)}})}};function makeRequest(request){return __async(this,null,function*(){let{abortController,abortControllerCleanup}=setupAbortSignal(request);try{let headers=buildFetchHeaders(request.headers),{streaming,body:requestBody}=buildRequestBody(request),requestInit=Object.assign(Object.assign({body:requestBody,method:request.method,headers,signal:abortController.signal},"credentials"in Request.prototype?{credentials:request.withCredentials?"include":"same-origin"}:{}),"cache"in Request.prototype?{cache:"no-store"}:{});streaming&&(requestInit.duplex="half");let response=yield fetch(request.url,Object.assign(Object.assign({},requestInit),request.requestOverrides));return isBlob2(request.body)&&request.onUploadProgress&&request.onUploadProgress({loadedBytes:request.body.size}),buildPipelineResponse(response,request,abortControllerCleanup)}catch(e){throw abortControllerCleanup?.(),e}})}function buildPipelineResponse(httpResponse,request,abortControllerCleanup){return __async(this,null,function*(){var _a3,_b2;let headers=buildPipelineHeaders(httpResponse),response={request,headers,status:httpResponse.status},bodyStream=isWebReadableStream(httpResponse.body)?buildBodyStream(httpResponse.body,{onProgress:request.onDownloadProgress,onEnd:abortControllerCleanup}):httpResponse.body;if(!((_a3=request.streamResponseStatusCodes)===null||_a3===void 0)&&_a3.has(Number.POSITIVE_INFINITY)||!((_b2=request.streamResponseStatusCodes)===null||_b2===void 0)&&_b2.has(response.status))if(request.enableBrowserStreams)response.browserStreamBody=bodyStream??void 0;else{let responseStream=new Response(bodyStream);response.blobBody=responseStream.blob(),abortControllerCleanup?.()}else{let responseStream=new Response(bodyStream);response.bodyAsText=yield responseStream.text(),abortControllerCleanup?.()}return response})}function setupAbortSignal(request){let abortController=new AbortController,abortControllerCleanup,abortListener;if(request.abortSignal){if(request.abortSignal.aborted)throw new AbortError("The operation was aborted. Request has already been canceled.");abortListener=event=>{event.type==="abort"&&abortController.abort()},request.abortSignal.addEventListener("abort",abortListener),abortControllerCleanup=()=>{var _a3;abortListener&&((_a3=request.abortSignal)===null||_a3===void 0||_a3.removeEventListener("abort",abortListener))}}return request.timeout>0&&setTimeout(()=>{abortController.abort()},request.timeout),{abortController,abortControllerCleanup}}function getError(e,request){var _a3;return e&&e?.name==="AbortError"?e:new RestError(`Error sending request: ${e.message}`,{code:(_a3=e?.code)!==null&&_a3!==void 0?_a3:RestError.REQUEST_SEND_ERROR,request})}function buildFetchHeaders(pipelineHeaders){let headers=new Headers;for(let[name,value]of pipelineHeaders)headers.append(name,value);return headers}function buildPipelineHeaders(httpResponse){let responseHeaders=createHttpHeaders();for(let[name,value]of httpResponse.headers)responseHeaders.set(name,value);return responseHeaders}function buildRequestBody(request){let body2=typeof request.body=="function"?request.body():request.body;if(isNodeReadableStream(body2))throw new Error("Node streams are not supported in browser environment.");return isWebReadableStream(body2)?{streaming:!0,body:buildBodyStream(body2,{onProgress:request.onUploadProgress})}:{streaming:!1,body:body2}}function buildBodyStream(readableStream,options={}){let loadedBytes=0,{onProgress,onEnd}=options;if(isTransformStreamSupported(readableStream))return readableStream.pipeThrough(new TransformStream({transform(chunk,controller){if(chunk===null){controller.terminate();return}controller.enqueue(chunk),loadedBytes+=chunk.length,onProgress&&onProgress({loadedBytes})},flush(){onEnd?.()}}));{let _a3,reader=readableStream.getReader();return new ReadableStream({pull(controller){return __async(this,null,function*(){var _a4;let{done,value}=yield reader.read();if(done||!value){onEnd?.(),controller.close(),reader.releaseLock();return}loadedBytes+=(_a4=value?.length)!==null&&_a4!==void 0?_a4:0,controller.enqueue(value),onProgress&&onProgress({loadedBytes})})},cancel(reason){return onEnd?.(),reader.cancel(reason)}})}}function createFetchHttpClient(){return new FetchHttpClient}function isTransformStreamSupported(readableStream){return readableStream.pipeThrough!==void 0&&self.TransformStream!==void 0}function createDefaultHttpClient(){return createFetchHttpClient()}var logger=createClientLogger("ts-http-runtime");var logPolicyName="logPolicy";function logPolicy(options={}){var _a3;let logger6=(_a3=options.logger)!==null&&_a3!==void 0?_a3:logger.info,sanitizer=new Sanitizer({additionalAllowedHeaderNames:options.additionalAllowedHeaderNames,additionalAllowedQueryParameters:options.additionalAllowedQueryParameters});return{name:logPolicyName,sendRequest(request,next){return __async(this,null,function*(){if(!logger6.enabled)return next(request);logger6(`Request: ${sanitizer.sanitize(request)}`);let response=yield next(request);return logger6(`Response status code: ${response.status}`),logger6(`Headers: ${sanitizer.sanitize(response.headers)}`),response})}}}var redirectPolicyName="redirectPolicy",allowedRedirect=["GET","HEAD"];function redirectPolicy(options={}){let{maxRetries=20}=options;return{name:redirectPolicyName,sendRequest(request,next){return __async(this,null,function*(){let response=yield next(request);return handleRedirect(next,response,maxRetries)})}}}function handleRedirect(next,response,maxRetries,currentRetries=0){return __async(this,null,function*(){let{request,status,headers}=response,locationHeader=headers.get("location");if(locationHeader&&(status===300||status===301&&allowedRedirect.includes(request.method)||status===302&&allowedRedirect.includes(request.method)||status===303&&request.method==="POST"||status===307)&¤tRetries<maxRetries){let url2=new URL(locationHeader,request.url);request.url=url2.toString(),status===303&&(request.method="GET",request.headers.delete("Content-Length"),delete request.body),request.headers.delete("Authorization");let res=yield next(request);return handleRedirect(next,res,maxRetries,currentRetries+1)}return response})}function getHeaderName(){return"x-ms-useragent"}function getUserAgentHeaderName(){return getHeaderName()}var UserAgentHeaderName=getUserAgentHeaderName();var decompressResponsePolicyName="decompressResponsePolicy";function decompressResponsePolicy(){throw new Error("decompressResponsePolicy is not supported in browser environment")}function getRandomIntegerInclusive(min,max){return min=Math.ceil(min),max=Math.floor(max),Math.floor(Math.random()*(max-min+1))+min}function calculateRetryDelay(retryAttempt,config){let exponentialDelay=config.retryDelayInMs*Math.pow(2,retryAttempt),clampedDelay=Math.min(config.maxRetryDelayInMs,exponentialDelay);return{retryAfterInMs:clampedDelay/2+getRandomIntegerInclusive(0,clampedDelay/2)}}var StandardAbortMessage="The operation was aborted.";function delay(delayInMs,value,options){return new Promise((resolve,reject)=>{let timer,onAborted,rejectOnAbort=()=>reject(new AbortError(options?.abortErrorMsg?options?.abortErrorMsg:StandardAbortMessage)),removeListeners=()=>{options?.abortSignal&&onAborted&&options.abortSignal.removeEventListener("abort",onAborted)};if(onAborted=()=>(timer&&clearTimeout(timer),removeListeners(),rejectOnAbort()),options?.abortSignal&&options.abortSignal.aborted)return rejectOnAbort();timer=setTimeout(()=>{removeListeners(),resolve(value)},delayInMs),options?.abortSignal&&options.abortSignal.addEventListener("abort",onAborted)})}function parseHeaderValueAsNumber(response,headerName){let value=response.headers.get(headerName);if(!value)return;let valueAsNum=Number(value);if(!Number.isNaN(valueAsNum))return valueAsNum}var RetryAfterHeader="Retry-After",AllRetryAfterHeaders=["retry-after-ms","x-ms-retry-after-ms",RetryAfterHeader];function getRetryAfterInMs(response){if(response&&[429,503].includes(response.status))try{for(let header of AllRetryAfterHeaders){let retryAfterValue=parseHeaderValueAsNumber(response,header);if(retryAfterValue===0||retryAfterValue)return retryAfterValue*(header===RetryAfterHeader?1e3:1)}let retryAfterHeader=response.headers.get(RetryAfterHeader);if(!retryAfterHeader)return;let diff=Date.parse(retryAfterHeader)-Date.now();return Number.isFinite(diff)?Math.max(0,diff):void 0}catch(_a3){return}}function isThrottlingRetryResponse(response){return Number.isFinite(getRetryAfterInMs(response))}function throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response}){let retryAfterInMs=getRetryAfterInMs(response);return Number.isFinite(retryAfterInMs)?{retryAfterInMs}:{skipStrategy:!0}}}}var DEFAULT_CLIENT_RETRY_INTERVAL=1e3,DEFAULT_CLIENT_MAX_RETRY_INTERVAL=1e3*64;function exponentialRetryStrategy(options={}){var _a3,_b2;let retryInterval=(_a3=options.retryDelayInMs)!==null&&_a3!==void 0?_a3:DEFAULT_CLIENT_RETRY_INTERVAL,maxRetryInterval=(_b2=options.maxRetryDelayInMs)!==null&&_b2!==void 0?_b2:DEFAULT_CLIENT_MAX_RETRY_INTERVAL;return{name:"exponentialRetryStrategy",retry({retryCount,response,responseError}){let matchedSystemError=isSystemError(responseError),ignoreSystemErrors=matchedSystemError&&options.ignoreSystemErrors,isExponential=isExponentialRetryResponse(response),ignoreExponentialResponse=isExponential&&options.ignoreHttpStatusCodes;return response&&(isThrottlingRetryResponse(response)||!isExponential)||ignoreExponentialResponse||ignoreSystemErrors?{skipStrategy:!0}:responseError&&!matchedSystemError&&!isExponential?{errorToThrow:responseError}:calculateRetryDelay(retryCount,{retryDelayInMs:retryInterval,maxRetryDelayInMs:maxRetryInterval})}}}function isExponentialRetryResponse(response){return!!(response&&response.status!==void 0&&(response.status>=500||response.status===408)&&response.status!==501&&response.status!==505)}function isSystemError(err){return err?err.code==="ETIMEDOUT"||err.code==="ESOCKETTIMEDOUT"||err.code==="ECONNREFUSED"||err.code==="ECONNRESET"||err.code==="ENOENT"||err.code==="ENOTFOUND":!1}var retryPolicyLogger=createClientLogger("ts-http-runtime retryPolicy"),retryPolicyName="retryPolicy";function retryPolicy(strategies,options={maxRetries:3}){let logger6=options.logger||retryPolicyLogger;return{name:retryPolicyName,sendRequest(request,next){return __async(this,null,function*(){var _a4,_b2;let response,responseError,retryCount=-1;retryRequest:for(;;){retryCount+=1,response=void 0,responseError=void 0;try{logger6.info(`Retry ${retryCount}: Attempting to send request`,request.requestId),response=yield next(request),logger6.info(`Retry ${retryCount}: Received a response from request`,request.requestId)}catch(e){if(logger6.error(`Retry ${retryCount}: Received an error from request`,request.requestId),responseError=e,!e||responseError.name!=="RestError")throw e;response=responseError.response}if(!((_a4=request.abortSignal)===null||_a4===void 0)&&_a4.aborted)throw logger6.error(`Retry ${retryCount}: Request aborted.`),new AbortError;if(retryCount>=((_b2=options.maxRetries)!==null&&_b2!==void 0?_b2:3)){if(logger6.info(`Retry ${retryCount}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),responseError)throw responseError;if(response)return response;throw new Error("Maximum retries reached with no response or error to throw")}logger6.info(`Retry ${retryCount}: Processing ${strategies.length} retry strategies.`);strategiesLoop:for(let strategy of strategies){let strategyLogger=strategy.logger||logger6;strategyLogger.info(`Retry ${retryCount}: Processing retry strategy ${strategy.name}.`);let modifiers=strategy.retry({retryCount,response,responseError});if(modifiers.skipStrategy){strategyLogger.info(`Retry ${retryCount}: Skipped.`);continue strategiesLoop}let{errorToThrow,retryAfterInMs,redirectTo}=modifiers;if(errorToThrow)throw strategyLogger.error(`Retry ${retryCount}: Retry strategy ${strategy.name} throws error:`,errorToThrow),errorToThrow;if(retryAfterInMs||retryAfterInMs===0){strategyLogger.info(`Retry ${retryCount}: Retry strategy ${strategy.name} retries after ${retryAfterInMs}`),yield delay(retryAfterInMs,void 0,{abortSignal:request.abortSignal});continue retryRequest}if(redirectTo){strategyLogger.info(`Retry ${retryCount}: Retry strategy ${strategy.name} redirects to ${redirectTo}`),request.url=redirectTo;continue retryRequest}}if(responseError)throw logger6.info("None of the retry strategies could work with the received error. Throwing it."),responseError;if(response)return logger6.info("None of the retry strategies could work with the received response. Returning it."),response}})}}}var defaultRetryPolicyName="defaultRetryPolicy";function defaultRetryPolicy(options={}){var _a3;return{name:defaultRetryPolicyName,sendRequest:retryPolicy([throttlingRetryStrategy(),exponentialRetryStrategy(options)],{maxRetries:(_a3=options.maxRetries)!==null&&_a3!==void 0?_a3:3}).sendRequest}}var _a2,_b,_c,_d,isBrowser=typeof window<"u"&&typeof window.document<"u",isWebWorker=typeof self=="object"&&typeof self?.importScripts=="function"&&(((_a2=self.constructor)===null||_a2===void 0?void 0:_a2.name)==="DedicatedWorkerGlobalScope"||((_b=self.constructor)===null||_b===void 0?void 0:_b.name)==="ServiceWorkerGlobalScope"||((_c=self.constructor)===null||_c===void 0?void 0:_c.name)==="SharedWorkerGlobalScope"),isDeno=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",isBun=typeof Bun<"u"&&typeof Bun.version<"u",isNodeLike=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!(!((_d=globalThis.process.versions)===null||_d===void 0)&&_d.node);var isReactNative=typeof navigator<"u"&&navigator?.product==="ReactNative";var formDataPolicyName="formDataPolicy";function formDataToFormDataMap(formData){var _a3;let formDataMap={};for(let[key,value]of formData.entries())(_a3=formDataMap[key])!==null&&_a3!==void 0||(formDataMap[key]=[]),formDataMap[key].push(value);return formDataMap}function formDataPolicy(){return{name:formDataPolicyName,sendRequest(request,next){return __async(this,null,function*(){if(isNodeLike&&typeof FormData<"u"&&request.body instanceof FormData&&(request.formData=formDataToFormDataMap(request.body),request.body=void 0),request.formData){let contentType2=request.headers.get("Content-Type");contentType2&&contentType2.indexOf("application/x-www-form-urlencoded")!==-1?request.body=wwwFormUrlEncode(request.formData):yield prepareFormData(request.formData,request),request.formData=void 0}return next(request)})}}}function wwwFormUrlEncode(formData){let urlSearchParams=new URLSearchParams;for(let[key,value]of Object.entries(formData))if(Array.isArray(value))for(let subValue of value)urlSearchParams.append(key,subValue.toString());else urlSearchParams.append(key,value.toString());return urlSearchParams.toString()}function prepareFormData(formData,request){return __async(this,null,function*(){let contentType2=request.headers.get("Content-Type");if(contentType2&&!contentType2.startsWith("multipart/form-data"))return;request.headers.set("Content-Type",contentType2??"multipart/form-data");let parts=[];for(let[fieldName,values]of Object.entries(formData))for(let value of Array.isArray(values)?values:[values])if(typeof value=="string")parts.push({headers:createHttpHeaders({"Content-Disposition":`form-data; name="${fieldName}"`}),body:stringToUint8Array(value,"utf-8")});else{if(value==null||typeof value!="object")throw new Error(`Unexpected value for key ${fieldName}: ${value}. Value should be serialized to string first.`);{let fileName=value.name||"blob",headers=createHttpHeaders();headers.set("Content-Disposition",`form-data; name="${fieldName}"; filename="${fileName}"`),headers.set("Content-Type",value.type||"application/octet-stream"),parts.push({headers,body:value})}}request.multipartBody={parts}})}var errorMessage="proxyPolicy is not supported in browser environment";function getDefaultProxySettings(){throw new Error(errorMessage)}function proxyPolicy(){throw new Error(errorMessage)}var agentPolicyName="agentPolicy";function agentPolicy(agent){return{name:agentPolicyName,sendRequest:(req,next)=>__async(null,null,function*(){return req.agent||(req.agent=agent),next(req)})}}var tlsPolicyName="tlsPolicy";function tlsPolicy(tlsSettings){return{name:tlsPolicyName,sendRequest:(req,next)=>__async(null,null,function*(){return req.tlsSettings||(req.tlsSettings=tlsSettings),next(req)})}}function drain(stream){return new Response(stream).blob()}function toBlobPart(source){return __async(this,null,function*(){if(source instanceof Blob||source instanceof Uint8Array)return source;if(isWebReadableStream(source))return drain(source);throw new Error("Unsupported source type. Only Blob, Uint8Array, and ReadableStream are supported in browser.")})}function concat(sources){return __async(this,null,function*(){let parts=[];for(let source of sources)parts.push(yield toBlobPart(typeof source=="function"?source():source));return new Blob(parts)})}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(headers){let result="";for(let[key,value]of headers)result+=`${key}: ${value}\r
|
|
3
3
|
`;return result}function getLength(source){return source instanceof Uint8Array?source.byteLength:isBlob(source)?source.size===-1?void 0:source.size:void 0}function getTotalLength(sources){let total=0;for(let source of sources){let partLength=getLength(source);if(partLength===void 0)return;total+=partLength}return total}function buildRequestBody2(request,parts,boundary){return __async(this,null,function*(){let sources=[stringToUint8Array(`--${boundary}`,"utf-8"),...parts.flatMap(part=>[stringToUint8Array(`\r
|
|
4
4
|
`,"utf-8"),stringToUint8Array(encodeHeaders(part.headers),"utf-8"),stringToUint8Array(`\r
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{require_jszip_min}from"./chunk-POL6ATNF.js";import"./chunk-3QVXQNFX.js";export default require_jszip_min();
|