�����JFIF��XX����������    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222�����"����4���������������������������� ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu������������������������������������#ډb���_�N��?�����������wQ���5-�~�I���8���������������������������������TK<5o�Iv-������������������k�_U_������������������������������~b�M��d��������Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�����?_�'ϔ��_�Ջt������������������������=||I �����6�έ"�����D���/[�k�9����Y�8������ds|\���Ҿp6�Ҵ���]��.����6���z<�v��@]�i%������������������������$j��~����g��J>��no����pM[me�i$[�����������s�o�ᘨ�˸ nɜG-�ĨU�ycP���3.DB�li�;���������������������hj���x����7Z^�N�h��������N3u{�:j�����x�힞��#M��&��jL P@��_���� P�������������������&��o8��������9������@Sz���6�t7#O�ߋ �����s}Yf�T������lmr����Z)'N��k�۞p�����w\�T���������������ȯ?�8`���O��i{wﭹW�[�r�� ��Q4F�׊������3m&L�=��h3�������z~��#����\�l :�F,j@�� ʱ�wQT����8�"kJO����6�֚l������������������}����R�>ډK���]��y����&����p�}b������;N�1�m�r$����|��7�>e�@���B�TM*-i�H��g�D�)� E�m�|�ؘbҗ�a���Ҿ����������������t4�����o���G��*oCN�rP���Q��@z,|?W[0���������:�n,j���WiE��W������$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S���������������VN;���}�s?.����� w��9��˟<���Mq4�Wv'������{)0�1mB����V����W[��������8�/<� �%���wT^�5���b��)iM� p�g�N�&ݝ������������VO~��q���u���9��� ����!��J27�����$����O-���! �:���%H��� ـ�������y�ΠM=t{!S�� �oK8�������t<����è��������:a��������[������ա�H���~��w��Qz`�p����o�^ ������Q��n����� �,uu�C��$ ^���,�������8�#��:�6��e�|~�����������!�3��3.�\0�����q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<�����Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y���|�y��� ~�6�@c��1vOp��������Ig�����4��l�OD�����L����� R���c���j�_�uX�6��3?nk��Wy�f;^*B� ��@���~a�`��Eu�������+�����6�L��.ü>��}y���}_�O�6�͐�:�Yr���G�X��kG������l^w����������~㒶sy���Iu�!���� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT����G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2������#I/�׍qz��^t�̔���������b�Yz4x����t�){ OH�����+(E��A&�N�������XT��o��"�XC����'���)}�J�z�p� ����~5�}�^����+�6����w��c��Q�|�Lp�d�H��}�(�.|����k��c4^�����"�����Z?ȕ ��a<�������L�!0�39C� �Eu�����C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf����M}7����]�������s2tcS{�\icTx;�\��7K���P������ʇ Z O-��~�������c>"��?��������P�����E��O�8��@�8��G��Q�g�a�Վ���󁶠��䧘��_%#r�>�����1�z�a���eb��qcP��ѵ��n���#L��� =��׀t� L�7�`�����V����A{�C:�g���e@�����w1 Xp�3�c3�ġ�������p��M"'-�@n4���fG���B3�DJ�8[Jo�ߐ���gK)ƛ��$���� �������8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`�������?��K�����QK�d���������B`�s}�>���`������*�>��,*@J�d�oF*�����弝��O}�k��s��]��y�ߘ�������c1G�V���<=�7��7����6��q�PT��tXԀ�!9*4�4Tހ���3XΛex�46�������Y��D ����� ����BdemDa����\�_l,����G�/���֌7���Y�](�xTt^%�GE�����4�}bT����ڹ�����;��Y)���B�Q��u��>J/J ���⮶.�XԄ��j�ݳ������+E��d ���r�5�_D�����1 ���o�� �B�x�΢�#����<��W�����8���R6�@���g�M�.��� dr�D��>(otU��@�x=��~v���2� ӣ�d�oBd�����3�eO�6�㣷����������ݜ�6��6Y��Qz`����S��{���\P��~z m5{J/L��1������<�e�ͅPu���b�]�ϔ��������'�������f�b� Zpw��c`"��i���BD@:)ִ�:�]��h���v�E��w���T�l�������P����"Ju�}��وV ��J��G6��. J/�Qgl߭�e�����@�z�Zev2u����)]կ���������7x�������s�M�-<ɯ�c��r��v�����@��$�ޮ}lk���a����'����>x��O\�Z������Fu>������ck#��&:��`�$��ai�>2Δ����l���oF[h�������lE�ܺ�Π���k:)���`������� $[6�����9�����kOw�\|�����8}������ބ:��񶐕��������I�A1/���=�2[�,�!��.}gN#�u����b���� ~���������݊��}34q�����d�E��L��������c��$���"�[q�U�硬g^��%B ��z���r�p�������J�ru%v\h�����1Y�ne`������ǥ:g����pQM~�^��Xi� ��`S�:V2������9.�P���V������?B�k�� ��������AEvw%�_�9C�Q����wKekP�ؠ�\������;Io d�{ ߞo�c1eP�����\� `����E=���@K<�Y��������eڼ�J����w����{av�F�'�M�@��������������/J��+9p����|]���������Iw &`���8���&�M�hg���[�{�������Xj���%��Ӓ�������������������$��(�����ʹN�������<>�I���RY�����K2�NPlL�ɀ�)��&e��������B+ь����(������������������� � �JTx����_?EZ� }@���� 6�U���뙢ط�z��dWI��n` D����噥�[��uV��"�G&�����Ú����2�g�}&m���������������������?ċ���"����Om#�������������������������� ��{���������������������ON��"S�X���Ne��ysQ���@�������������Fn��Vg�����dX�~nj����������������������]J�<�K]:����FW���b�������62����������=��5f����JKw����bf�X������������������������55��~J �%^�������:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v�������g�8�1��f2�������������������������4;�V���ǔ�)�������������������9���1\������������������������������c��v�/'Ƞ�w������������������$�4�R-��t����������������������������������� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃�������������������������������������������A��20�c#���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@���� 0!1@AP"#2Q`$3V�%45a6�FRUq����� ������^7ׅ,$n��������+��F�`��2X'��0vM��p�L=�������5��8������u�p~���.�`r�����\����O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;�������S�T���1���i[U�ɵz�]��U)V�S6���3$K{��ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u��!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ����D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v������멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$��JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4��[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ��dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il���d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J���oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.����3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R�=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N������#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%����JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$�I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$����L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)��H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>��dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\��y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~�������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7���ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz���)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)�'��8Ϣ�ٔ���ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'��L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(�}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3��������QT��a�����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3��,#c�co��q�a)*P�t����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O����������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l��O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m����PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q��������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~��|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@�l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`�7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ�����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i�����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0���Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q���nxҍ!U�f�!eh�i�2�m����`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{�/ �?�͟��|1�:�#g��W�>$����d��J��d�B���=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H�����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l�����l�cGs�ځ�������y�Ac������\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6�����N6�q��������N� ���! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td���� ?�����N����a��3��m���C���w��������xA�m�q�m����m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4����r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0�������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ�����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G������Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q��(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9���3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M�����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#y�w��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa�����Q�#� WeF��ŮNj�p�J* mQ�N�����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]���陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv�:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WP�w���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*�� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp��BGv[]�u�Ov����0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND���.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J ��4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R���� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(��>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG���{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/���*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>�e]�����Q�r�:����g�,i"�����ԩA��*M�<�G��b�if��l^M��5�� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f������֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ����˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)���h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������� G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W��I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��B�S�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c����]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪��\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W������6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}������6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@��P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6������m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw��k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ�����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e���R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1�[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN���ĕ���0������� !01@Q"2AaPq3BR�������?�����@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j��ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^����ԯ̾9Z��F��������n��1��� ��]�[��)�'�������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ���&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0���;_���3������� !01"@AQa2Pq#3BR�������?����ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q�� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6�����������4B>��o��](��$B���m�����a�!=���?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{�E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)�����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a��84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b���$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7���k�� 403WebShell
403Webshell
Server IP : 103.30.72.248  /  Your IP : 216.73.216.144
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-CARKG80MF9A 10.0 build 17763 (Windows Server 2019) AMD64
User : IUSR ( 0)
PHP Version : 8.2.7
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/Azure Data Studio/resources/app/extensions/data-workspace/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files/Azure Data Studio/resources/app/extensions/data-workspace/dist/main.js
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e={7437:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(9877),o=n(2357),a=["redmond.corp.microsoft.com","northamerica.corp.microsoft.com","fareast.corp.microsoft.com","ntdev.corp.microsoft.com","wingroup.corp.microsoft.com","southpacific.corp.microsoft.com","wingroup.windeploy.ntdev.microsoft.com","ddnet.microsoft.com","europe.corp.microsoft.com"],s={"common.msftInternal":function(){const e=process.env.USERDNSDOMAIN;if(!e)return!1;const t=e.toLowerCase();return a.some((e=>t===e))}()?1:0},c={};try{const e=n(9072);c["common.adsversion"]=null==e?void 0:e.version}catch(e){}class u{constructor(e,t,n,r){this.reporter=e,this.eventName=t,this.properties=n,this.measurements=r,this.properties=n||{},Object.assign(this.properties,c),this.measurements=r||{},Object.assign(this.measurements,s)}send(){var e;try{null===(e=this.reporter)||void 0===e||e.sendTelemetryEvent(this.eventName,this.properties,this.measurements)}catch(e){const t=e instanceof Error?e.message:e;console.error(`Error sending ${this.eventName} event ${t}`)}}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasurements(e){return Object.assign(this.measurements,e),this}withConnectionInfo(e){return Object.assign(this.properties,{authenticationType:e.authenticationType,providerName:e.providerName}),this}withServerInfo(e){var t,n,r;return Object.assign(this.properties,{connectionType:void 0!==(null==e?void 0:e.isCloud)?e.isCloud?"Azure":"Standalone":"",serverVersion:null!==(t=null==e?void 0:e.serverVersion)&&void 0!==t?t:"",serverEdition:null!==(n=null==e?void 0:e.serverEdition)&&void 0!==n?n:"",serverEngineEdition:null!==(r=null==e?void 0:e.engineEditionId)&&void 0!==r?r:""}),this}}t.default=class{constructor(e,t,n){var r,o;this._telemetryReporter=void 0;try{this._telemetryReporter=new i.default(e,t,n)}catch(t){console.error(`Error initializing TelemetryReporter for '${e}'. ${null!==(o=null===(r=t)||void 0===r?void 0:r.message)&&void 0!==o?o:t}`)}}createViewEvent(e){return new u(this._telemetryReporter,"view",{view:e})}sendViewEvent(e){this.createViewEvent(e).send()}createActionEvent(e,t,n="",r="",i){const o=i?{durationInMs:i}:{};return new u(this._telemetryReporter,"action",{view:e,action:t,target:n,source:r},o)}sendActionEvent(e,t,n="",r="",i){this.createActionEvent(e,t,n,r,i).send()}createTimedAction(e,t,n,r){return new o.TimedAction(this,e,t,n,r)}createMetricsEvent(e,t=""){return new u(this._telemetryReporter,"metrics",{groupName:t},e)}sendMetricsEvent(e,t=""){this.createMetricsEvent(e,t).send()}createErrorEvent(e,t,n="",r=""){return new u(this._telemetryReporter,"error",{view:e,name:t,errorCode:n,errorType:r})}sendErrorEvent(e,t,n="",r=""){this.createErrorEvent(e,t,n,r).send()}createErrorEvent2(e,t,n=void 0,r=!1,i="",o=""){const a={view:e,name:t,errorCode:i,errorType:o};if(n instanceof Error){a.message=!0===r?n.message:"";let e=n.stack||"";if(!0!==r&&n.message){const t=new RegExp(n.message,"g");e=e.replace(t,"<REDACTED: error-message>")}a.stack=e}else a.message=!0===r?null==n?void 0:n.toString():"",a.stack="";return new u(this._telemetryReporter,"error",a)}sendErrorEvent2(e,t,n=void 0,r=!1,i="",o=""){this.createErrorEvent2(e,t,n,r,i,o).send()}createTelemetryEvent(e,t,n){return new u(this._telemetryReporter,e,t,n)}sendTelemetryEvent(e,t,n){this.createTelemetryEvent(e,t,n).send()}dispose(){var e;return r(this,void 0,void 0,(function*(){yield null===(e=this._telemetryReporter)||void 0===e?void 0:e.dispose()}))}}},2357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimedAction=void 0,t.TimedAction=class{constructor(e,t,n,r="",i=""){this.reporter=e,this.view=t,this.action=n,this.target=r,this.source=i,this.properties={},this.measures={},this.start=Date.now()}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasures(e){return Object.assign(this.measures,e),this}send(){this.reporter.createActionEvent(this.view,this.action,this.source,this.target,Date.now()-this.start).withAdditionalProperties(this.properties).withAdditionalMeasurements(this.measures).send()}}},8185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const r=n(7147);t.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync},t.createFileSystemAdapter=function(e){return void 0===e?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}},1107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const n=process.versions.node.split("."),r=parseInt(n[0],10),i=parseInt(n[1],10),o=r>10,a=10===r&&i>=10;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=o||a},5923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;const r=n(1411),i=n(3953),o=n(6913);function a(e={}){return e instanceof o.default?e:new o.default(e)}t.Settings=o.default,t.scandir=function(e,t,n){if("function"==typeof t)return r.read(e,a(),t);r.read(e,a(t),n)},t.scandirSync=function(e,t){const n=a(t);return i.read(e,n)}},1411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;const r=n(6203),i=n(4595),o=n(1107),a=n(6582),s=n(4587);function c(e,t,n){t.fs.readdir(e,{withFileTypes:!0},((r,o)=>{if(null!==r)return l(n,r);const c=o.map((n=>({dirent:n,name:n.name,path:s.joinPathSegments(e,n.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks)return p(n,c);const u=c.map((e=>function(e,t){return n=>{if(!e.dirent.isSymbolicLink())return n(null,e);t.fs.stat(e.path,((r,i)=>null!==r?t.throwErrorOnBrokenSymbolicLink?n(r):n(null,e):(e.dirent=a.fs.createDirentFromStats(e.name,i),n(null,e))))}}(e,t)));i(u,((e,t)=>{if(null!==e)return l(n,e);p(n,t)}))}))}function u(e,t,n){t.fs.readdir(e,((o,c)=>{if(null!==o)return l(n,o);const u=c.map((n=>s.joinPathSegments(e,n,t.pathSegmentSeparator))),d=u.map((e=>n=>r.stat(e,t.fsStatSettings,n)));i(d,((e,r)=>{if(null!==e)return l(n,e);const i=[];c.forEach(((e,n)=>{const o=r[n],s={name:e,path:u[n],dirent:a.fs.createDirentFromStats(e,o)};t.stats&&(s.stats=o),i.push(s)})),p(n,i)}))}))}function l(e,t){e(t)}function p(e,t){e(null,t)}t.read=function(e,t,n){return!t.stats&&o.IS_SUPPORT_READDIR_WITH_FILE_TYPES?c(e,t,n):u(e,t,n)},t.readdirWithFileTypes=c,t.readdir=u},4587:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0,t.joinPathSegments=function(e,t,n){return e.endsWith(n)?e+t:e+n+t}},3953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;const r=n(6203),i=n(1107),o=n(6582),a=n(4587);function s(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n=>{const r={dirent:n,name:n.name,path:a.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(r.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{const e=t.fs.statSync(r.path);r.dirent=o.fs.createDirentFromStats(r.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink)throw e}return r}))}function c(e,t){return t.fs.readdirSync(e).map((n=>{const i=a.joinPathSegments(e,n,t.pathSegmentSeparator),s=r.statSync(i,t.fsStatSettings),c={name:n,path:i,dirent:o.fs.createDirentFromStats(n,s)};return t.stats&&(c.stats=s),c}))}t.read=function(e,t){return!t.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES?s(e,t):c(e,t)},t.readdirWithFileTypes=s,t.readdir=c},6913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1017),i=n(6203),o=n(8185);t.default=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=o.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new i.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}}},322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;class n{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}t.createDirentFromStats=function(e,t){return new n(e,t)}},6582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;const r=n(322);t.fs=r},8980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const r=n(7147);t.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync},t.createFileSystemAdapter=function(e){return void 0===e?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}},6203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;const r=n(2654),i=n(8946),o=n(8328);function a(e={}){return e instanceof o.default?e:new o.default(e)}t.Settings=o.default,t.stat=function(e,t,n){if("function"==typeof t)return r.read(e,a(),t);r.read(e,a(t),n)},t.statSync=function(e,t){const n=a(t);return i.read(e,n)}},2654:(e,t)=>{"use strict";function n(e,t){e(t)}function r(e,t){e(null,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0,t.read=function(e,t,i){t.fs.lstat(e,((o,a)=>null!==o?n(i,o):a.isSymbolicLink()&&t.followSymbolicLink?void t.fs.stat(e,((e,o)=>{if(null!==e)return t.throwErrorOnBrokenSymbolicLink?n(i,e):r(i,a);t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),r(i,o)})):r(i,a)))}},8946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0,t.read=function(e,t){const n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{const n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw e}}},8328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8980);t.default=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return null!=e?e:t}}},5439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const r=n(9346),i=n(215),o=n(4078),a=n(8690);function s(e={}){return e instanceof a.default?e:new a.default(e)}t.Settings=a.default,t.walk=function(e,t,n){if("function"==typeof t)return new r.default(e,s()).read(t);new r.default(e,s(t)).read(n)},t.walkSync=function(e,t){const n=s(t);return new o.default(e,n).read()},t.walkStream=function(e,t){const n=s(t);return new i.default(e,n).read()}},9346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4714);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new r.default(this._root,this._settings),this._storage=new Set}read(e){this._reader.onError((t=>{!function(e,t){e(t)}(e,t)})),this._reader.onEntry((e=>{this._storage.add(e)})),this._reader.onEnd((()=>{!function(e,t){e(null,t)}(e,[...this._storage])})),this._reader.read()}}},215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2781),i=n(4714);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new i.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError((e=>{this._stream.emit("error",e)})),this._reader.onEntry((e=>{this._stream.push(e)})),this._reader.onEnd((()=>{this._stream.push(null)})),this._reader.read(),this._stream}}},4078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9555);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}}},4714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2361),i=n(5923),o=n(373),a=n(6865),s=n(5274);class c extends s.default{constructor(e,t){super(e,t),this._settings=t,this._scandir=i.scandir,this._emitter=new r.EventEmitter,this._queue=o(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)})),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const n={directory:e,base:t};this._queue.push(n,(e=>{null!==e&&this._handleError(e)}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((n,r)=>{if(null!==n)return t(n,void 0);for(const t of r)this._handleEntry(t,e.base);t(null,void 0)}))}_handleError(e){!this._isDestroyed&&a.isFatalError(this._settings,e)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;const n=e.path;void 0!==t&&(e.path=a.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),a.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}t.default=c},6865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0,t.isFatalError=function(e,t){return null===e.errorFilter||!e.errorFilter(t)},t.isAppliedFilter=function(e,t){return null===e||e(t)},t.replacePathSegmentSeparator=function(e,t){return e.split(/[/\\]/).join(t)},t.joinPathSegments=function(e,t,n){return""===e?t:e.endsWith(n)?e+t:e+n+t}},5274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6865);t.default=class{constructor(e,t){this._root=e,this._settings=t,this._root=r.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}},9555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5923),i=n(6865),o=n(5274);class a extends o.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=new Set,this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),[...this._storage]}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{const n=this._scandir(e,this._settings.fsScandirSettings);for(const e of n)this._handleEntry(e,t)}catch(e){this._handleError(e)}}_handleError(e){if(i.isFatalError(this._settings,e))throw e}_handleEntry(e,t){const n=e.path;void 0!==t&&(e.path=i.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,e.path)}_pushToStorage(e){this._storage.add(e)}}t.default=a},8690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1017),i=n(5923);t.default=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new i.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return null!=e?e:t}}},9877:(e,t,n)=>{var r,i,o,a,s=Object.create,c=Object.defineProperty,u=Object.defineProperties,l=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&m(e,n,t[n]);if(f)for(var n of f(t))g.call(t,n)&&m(e,n,t[n]);return e},y=(e,t)=>u(e,p(t)),E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of d(t))!v.call(e,i)&&i!==n&&c(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},S=(e,t,n)=>(n=null!=e?s(h(e)):{},b(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)),T=E(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a="default",s=Object,c=s[i],u=s.assign,l=s.create,p=s.defineProperty,d=c[o],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function v(e){throw new TypeError(e)}function g(e){if(l)return l(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&v("Object prototype may only be an Object:"+e),o[i]=e,new o}var m=(h()||{}).Symbol,_=(h()||{}).Reflect,y=!!_,E="decorate",b="metadata",S="getOwnPropertySymbols",T="iterator",P=u||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])c[o].call(t,i)&&(e[i]=t[i]);return e},C=function(e,t){return(C=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function w(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&v("Class extends value "+String(n)+" is not a constructor or null"),C(e,n),e[i]=null===n?g(n):(r[i]=n[i],new r)}function A(e,t,n,r){void 0===r&&(r=n),l?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=u,e.ObjClass=s,e.ObjCreate=l,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=P,e.__createBindingFn=A,e.__decorateFn=function(e,n,r,i){var o,a=arguments.length,c=a<3?n:null===i?i=s.getOwnPropertyDescriptor(n,r):i;if(y&&typeof _[E]===t)c=_[E](e,n,r,i);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(c=(a<3?o(c):a>3?o(n,r,c):o(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&A(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,i=h()||{};t=P,n=w,r=A,(e=i).__assign||(e.__assign=u||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=i.__assign),__extends||(__extends=i.__extends),__createBinding||(__createBinding=i.__createBinding)},e.__extendsFn=w,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&A(t,e,n);return l?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(y&&_[b]===t)return _[b](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof m===t&&e[m[T]];if(!r)return e;var i,o,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s},e.__restFn=function(e,n){var r={};for(var i in e)d.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&typeof s[S]===t)for(var o=0,a=s[S](e);o<a.length;o++)n.indexOf(a[o])<0&&c.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i},e.__valuesFn=function(e){var n=typeof m===t&&m[T],r=n&&e[n],i=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}:void v(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=g,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=o,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=v,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),P=E(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a=Object,s=a[i],c=a.assign,u=a.create,l=a.defineProperty,p=s[o],d=null;function f(e){return void 0===e&&(e=!0),(!d||!e)&&(typeof globalThis!==r&&globalThis&&(d=globalThis),typeof self!==r&&self&&(d=self),typeof window!==r&&window&&(d=window),typeof global!==r&&global&&(d=global)),d}function h(e){throw new TypeError(e)}function v(e){if(u)return u(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&h("Object prototype may only be an Object:"+e),o[i]=e,new o}(f()||{}).Symbol,(f()||{}).Reflect;var g=function(e,t){return(g=a.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function m(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&h("Class extends value "+String(n)+" is not a constructor or null"),g(e,n),e[i]=null===n?v(n):(r[i]=n[i],new r)}function _(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var y="",E="processTelemetry",b="priority",S="setNextPlugin",T="isInitialized",P="teardown",C="core",w="update",A="disabled",I="_doTeardown",O="processNext",x="resume",R="pause",N="NotificationListener",D="add"+N,k="remove"+N,M="eventsSent",j="eventsDiscarded",L="eventsSendRequest",F="perfEvent",B="toISOString",H="endsWith",U="startsWith",V="indexOf",q="reduce",G="trim",$="toString",z="__proto__",W="constructor",K=l,Y=a.freeze,Q=a.seal,X=a.keys,J=String[i],Z=J[G],ee=J[H],te=J[U],ne=Date[i][B],re=Array.isArray,ie=s[$],oe=p[$],ae=oe.call(a),se=/-([a-z])/g,ce=/([^\w\d_$])/g,ue=/^(\d+[\w\d_$])/,le=Object.getPrototypeOf;function pe(e){if(e){if(le)return le(e);var t=e[z]||e[i]||e[W];if(t)return t}return null}function de(e,t){return typeof e===t}function fe(e){return void 0===e||typeof e===r}function he(e){return null===e||fe(e)}function ve(e){return!he(e)}function ge(e,t){return!(!e||!p.call(e,t))}function me(e){return!(!e||typeof e!==n)}function _e(e){return!(!e||typeof e!==t)}function ye(e){var t=e;return t&&we(t)&&(t=(t=(t=t.replace(se,(function(e,t){return t.toUpperCase()}))).replace(ce,"_")).replace(ue,(function(e,t){return"_"+t}))),t}function Ee(e,t){if(e)for(var n in e)p.call(e,n)&&t.call(e,n,e[n])}function be(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=ee?e[H](t):function(e,t){var n=!1,r=t?t.length:0,i=e?e.length:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,a=r-1;a>=0;a--){if(e[o]!=t[a])return!1;o--}n=!0}return n}(e,t)),n}function Se(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Te(e){return!(!e||"[object Date]"!==ie.call(e))}var Pe=re||function(e){return!(!e||"[object Array]"!==ie.call(e))};function Ce(e){return!(!e||"[object Error]"!==ie.call(e))}function we(e){return"string"==typeof e}function Ae(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function Oe(e){var n=!1;if(e&&"object"==typeof e){var r=le?le(e):pe(e);r?(r[W]&&p.call(r,W)&&(r=r[W]),n=typeof r===t&&oe.call(r)===ae):n=!0}return n}function xe(e){if(e)return ne?e[B]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function Re(e,t,n){var r=e.length;try{for(var i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}catch{}}function Ne(e,t,n){if(e){if(e[V])return e[V](t,n);var r=e.length,i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch{}}return-1}function De(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e.length,o=n||e;r=new Array(i);try{for(var a=0;a<i;a++)a in e&&(r[a]=t.call(o,e[a],e))}catch{}}return r}function ke(e,t,n){var r;if(e){if(e[q])return e[q](t,n);var i=e.length,o=0;if(arguments.length>=3)r=arguments[2];else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r}function Me(e){return e&&(e=Z&&e[G]?e[G]():e.replace?e.replace(/^\s+|\s+$/g,""):e),e}var je=!{toString:null}.propertyIsEnumerable("toString"),Le=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Fe(e){var r=typeof e;if(r!==t&&(r!==n||null===e)&&h("objKeys called on non-object"),!je&&X)return X(e);var i=[];for(var o in e)e&&p.call(e,o)&&i.push(o);if(je)for(var a=Le.length,s=0;s<a;s++)e&&p.call(e,Le[s])&&i.push(Le[s]);return i}function Be(e,t,n,r){if(K)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),K(e,t,i),!0}catch{}return!1}function He(e){return e}function Ue(e){return Y&&Ee(e,(function(e,t){(Pe(t)||me(t))&&Y(t)})),Ve(e)}var Ve=Y||He,qe=Q||He;function Ge(){var e=Date;return e.now?e.now():(new e).getTime()}function $e(e){return Ce(e)?e.name:y}function ze(e,t,n,r,i){var o=n;return e&&(o=e[t])!==n&&(!i||i(o))&&(!r||r(n))&&(o=n,e[t]=o),o}function We(e,t,n){var r;return e?!(r=e[t])&&he(r)&&(r=fe(n)?{}:n,e[t]=r):r=fe(n)?{}:n,r}function Ke(e){return!e}function Ye(e){return!!e}function Qe(e){throw new Error(e)}function Xe(e,t){var n=null,r=null;return _e(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function Je(e,t,n,r,i){e&&t&&n&&(!1!==i||fe(e[t]))&&(e[t]=Xe(n,r))}function Ze(e,t,n,r){return e&&t&&me(e)&&Pe(n)&&Re(n,(function(n){we(n)&&Je(e,n,t,n,r)})),e}function et(e,t,n,r,i,o){var a=arguments,s=a[0]||{},c=a.length,u=!1,l=1;for(c>0&&Ie(s)&&(u=s,s=a[l]||{},l++),me(s)||(s={});l<c;l++){var d=a[l],f=Pe(d),h=me(d);for(var v in d)if(f&&v in d||h&&p.call(d,v)){var g=d[v],m=void 0;if(u&&g&&((m=Pe(g))||Oe(g))){var _=s[v];m?Pe(_)||(_=[]):Oe(_)||(_={}),g=et(u,_,g)}void 0!==g&&(s[v]=g)}}return s}function tt(e){var t={};return Ee(e,(function(e,n){t[e]=n,t[n]=e})),Ue(t)}var nt=tt({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),rt="constructor",it="prototype",ot="function",at="_dynInstFuncs",st="_isDynProxy",ct="_dynClass",ut="_dynInstChk",lt=ut,pt="_dfOpts",dt="_unknown_",ft="__proto__",ht="_dyn"+ft,vt="_dynInstProto",gt="useBaseInst",mt="setInstFuncs",_t=Object,yt=_t.getPrototypeOf,Et=_t.getOwnPropertyNames,bt=0;function St(e,t){return e&&_t[it].hasOwnProperty.call(e,t)}function Tt(e){return e&&(e===_t[it]||e===Array[it])}function Pt(e){return Tt(e)||e===Function[it]}function Ct(e){var t;if(e){if(yt)return yt(e);var n=e[ft]||e[it]||(e[rt]?e[rt][it]:null);t=e[ht]||n,St(e,ht)||(delete e[vt],t=e[ht]=e[vt]||e[ht],e[vt]=n)}return t}function wt(e,t){var n=[];if(Et)n=Et(e);else for(var r in e)"string"==typeof r&&St(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function At(e,t,n){return t!==rt&&typeof e[t]===ot&&(n||St(e,t))}function It(e){throw new TypeError("DynamicProto: "+e)}function Ot(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function xt(e,t,n,r,i){if(!Tt(e)){var o=n[at]=n[at]||{},a=o[t]=o[t]||{};!1!==o[lt]&&(o[lt]=!!i),wt(n,(function(t){At(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!St(e,t)||e[t]&&!e[t][st])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&St(n,ct)){var o=e[at]||{};if((i=(o[n[ct]]||{})[t])||It("Missing ["+t+"] "+ot),!i[ut]&&!1!==o[lt]){for(var a=!St(e,t),s=Ct(e),c=[];a&&s&&!Pt(s)&&!Ot(c,s);){var u=s[t];if(u){a=u===r;break}c.push(s),s=Ct(s)}try{a&&(e[t]=i),i[ut]=1}catch{o[lt]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=Ct(t)[e]),typeof r!==ot&&It("["+e+"] is not a "+ot),r}(t,e,n);return r.apply(this,arguments)};return n[st]=1,n}(e,t)))}))}}function Rt(e,t){return St(e,it)?e.name||t||dt:((e||{})[rt]||{}).name||t||dt}function Nt(e,t,n,r){St(e,it)||It("theClass is an invalid class definition.");var i=e[it];(function(e,t){if(yt){for(var n=[],r=Ct(t);r&&!Pt(r)&&!Ot(n,r);){if(r===e)return!0;n.push(r),r=Ct(r)}return!1}return!0})(i,t)||It("["+Rt(e)+"] is not in class hierarchy of ["+Rt(t)+"]");var o=null;St(i,ct)?o=i[ct]:(o="_dynCls$"+Rt(e,"_")+"$"+bt,bt++,i[ct]=o);var a=Nt[pt],s=!!a[gt];s&&r&&void 0!==r[gt]&&(s=!!r[gt]);var c=function(e){var t={};return wt(e,(function(n){!t[n]&&At(e,n,!1)&&(t[n]=e[n])})),t}(t),u=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[st]&&r){var o=e[at]||{};!1!==o[lt]&&(i=(o[t[ct]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};wt(n,(function(e){o[e]=i(t,n,e)}));for(var a=Ct(e),s=[];a&&!Pt(a)&&!Ot(s,a);)wt(a,(function(e){!o[e]&&At(a,e,!yt)&&(o[e]=i(t,a,e))})),s.push(a),a=Ct(a);return o}(i,t,c,s);n(t,u);var l=!!yt&&!!a[mt];l&&r&&(l=!!r[mt]),xt(i,o,t,c,!1!==l)}Nt[pt]={setInstFuncs:!0,useBaseInst:!0};var Dt="window",kt="document",Mt="navigator",jt="location",Lt="console",Ft="performance",Bt="JSON",Ht="crypto",Ut="msCrypto",Vt="msie",qt="trident/",Gt="XMLHttpRequest",$t=null,zt=null,Wt=!1,Kt=null,Yt=null;function Qt(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[i];r&&(n=t in r)}}catch{}if(!n)try{n=!fe((new e)[t])}catch{}}return n}function Xt(e){var t=f();return t&&t[e]?t[e]:e===Dt&&Jt()?window:null}function Jt(){return Boolean(typeof window===n&&window)}function Zt(){return Jt()?window:Xt(Dt)}function en(){return Boolean(typeof document===n&&document)}function tn(){return en()?document:Xt(kt)}function nn(){return Boolean(typeof navigator===n&&navigator)}function rn(){return nn()?navigator:Xt(Mt)}function on(){return Boolean(typeof history===n&&history)}function an(e){if(e&&Wt){var t=Xt("__mockLocation");if(t)return t}return typeof location===n&&location?location:Xt(jt)}function sn(){return typeof console!==r?console:Xt(Lt)}function cn(){return Xt(Ft)}function un(){return Boolean(typeof JSON===n&&JSON||null!==Xt(Bt))}function ln(){return un()?JSON||Xt(Bt):null}function pn(){return Xt(Ht)}function dn(){return Xt(Ut)}function fn(){var e=rn();if(e&&(e.userAgent!==zt||null===$t)){var t=((zt=e.userAgent)||y).toLowerCase();$t=Se(t,Vt)||Se(t,qt)}return $t}function hn(e){var t=Object[i].toString.call(e),n=y;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":un()&&(n=ln().stringify(e)),t+n}function vn(){var e=!1;try{e=!!Xt(Gt)}catch{}return e}function gn(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(r.name&&r.name===t)return r}return{}}function mn(e){var t=tn();return t&&e?gn(t.querySelectorAll("meta"),e).content:null}function _n(e){var t,n=cn();if(n){var r=n.getEntriesByType("navigation")||[];t=gn((r.length>0?r[0]:{}).serverTiming,e).description}return t}var yn,En=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],bn=null;function Sn(e,t){return function(){var n=arguments,r=Tn(t);if(r){var i=r.listener;i&&i[e]&&i[e].apply(i,n)}}}function Tn(e){var t=bn;return!t&&!0!==e.disableDbgExt&&(t=bn||function(){var e=Xt("Microsoft");return e&&(bn=e.ApplicationInsights),bn}()),t?t.ChromeDbgExt:null}function Pn(e){if(!yn){yn={};for(var t=0;t<En.length;t++)yn[En[t]]=Sn(En[t],e)}return yn}function Cn(e){return e?'"'+e.replace(/\"/g,y)+'"':y}function wn(e,t){var n=sn();if(n){var r="log";n[e]&&(r=e),_e(n[r])&&n[r](t)}}var An=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?"AI: ":"AI (Internal): ")+e;var o=y;un()&&(o=ln().stringify(r));var a=(t?" message:"+Cn(t):y)+(r?" props:"+Cn(o):y);i.message+=a}return e.dataType="MessageData",e}();function In(e,t){return(e||{}).logger||new On(t)}var On=function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};Nt(e,this,(function(e){function i(e,n){var r=t[e];return he(r)?n:r}function o(e,n){var r=Tn(t);r&&r.diagLog&&r.diagLog(e,n)}he(t)&&(t={}),e.consoleLoggingLevel=function(){return i("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return i("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return i("maxMessageLimit",25)},e.enableDebugExceptions=function(){return i("enableDebugExceptions",!1)},e.throwInternal=function(t,n,i,a,s){void 0===s&&(s=!1);var c=new An(n,i,s,a);if(e.enableDebugExceptions())throw hn(c);var u=1===t?"errorToConsole":"warnToConsole";if(fe(c.message))o("throw"+(1===t?"Critical":"Warning"),c);else{var l=e.consoleLoggingLevel();if(s){var p=+c.messageId;!r[p]&&l>=t&&(e[u](c.message),r[p]=!0)}else l>=t&&e[u](c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){wn("warn",e),o("warning",e)},e.errorToConsole=function(e){wn("error",e),o("error",e)},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,i){if(!(n>=e.maxInternalMessageLimit())){var a=!0,s="AITR_"+i.messageId;if(r[s]?a=!1:r[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(i),n++,o(1===t?"error":"warn",i)),n===e.maxInternalMessageLimit())){var c="Internal events throttle limit per PageView reached for this app.",u=new An(23,c,!1);e.queue.push(u),1===t?e.errorToConsole(c):e.warnToConsole(c)}}}}))};function xn(e){return e||new On}function Rn(e,t,n,r,i,o){void 0===o&&(o=!1),(e||new On).throwInternal(t,n,r,i,o)}function Nn(e,t){xn(e).warnToConsole(t)}var Dn="ctx",kn=null,Mn=function(){function e(t,n,r){var i,o=this,a=!1;o.start=Ge(),o.name=t,o.isAsync=r,o.isChildEvt=function(){return!1},_e(n)&&(a=Be(o,"payload",(function(){return!i&&_e(n)&&(i=n(),n=null),i}))),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o[Dn]||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return!0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o[Dn]=o[Dn]||{})[t]=n)},o.complete=function(){var t=0,r=o.getCtx(e.ChildrenContextKey);if(Pe(r))for(var i=0;i<r.length;i++){var s=r[i];s&&(t+=s.time)}o.time=Ge()-o.start,o.exTime=o.time-t,o.complete=function(){},!a&&_e(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),jn=function e(t){this.ctx={},Nt(e,this,(function(e){e.create=function(e,t,n){return new Mn(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&_e(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e[Dn]=e[Dn]||{})[t]=n)},e.getCtx=function(t){return(e[Dn]||{})[t]}}))},Ln="CoreUtils.doPerf";function Fn(e,t,n,r,i){if(e){var o=e;if(_e(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx(Ln);try{if(a=o.create(t(),r,i)){if(s&&a.setCtx&&(a.setCtx(Mn.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Mn.ChildrenContextKey);c||(c=[],s.setCtx(Mn.ChildrenContextKey,c)),c.push(a)}return o.setCtx(Ln,a),n(a)}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&o.fire(a),o.setCtx(Ln,s)}}}return n()}function Bn(){return kn}var Hn=4294967296,Un=4294967295,Vn=!1,qn=123456789,Gn=987654321;function $n(e){e<0&&(e>>>=0),qn=123456789+e&Un,Gn=987654321-e&Un,Vn=!0}function zn(){try{var e=2147483647&Ge();$n((Math.random()*Hn^e)+e)}catch{}}function Wn(e){return e>0?Math.floor(Kn()/Un*(e+1))>>>0:0}function Kn(e){var t=0,n=pn()||dn();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Un),0===t&&fn()&&(Vn||zn(),t=Qn()&Un),0===t&&(t=Math.floor(Hn*Math.random()|0)),e||(t>>>=0),t}function Yn(e){e?$n(e):zn()}function Qn(e){var t=((Gn=36969*(65535&Gn)+(Gn>>16)&Un)<<16)+(65535&(qn=18e3*(65535&qn)+(qn>>16)&Un))>>>0&Un|0;return e||(t>>>=0),t}function Xn(e){void 0===e&&(e=22);for(var t=Kn()>>>0,n=0,r=y;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Kn()<<2&4294967295|3&t)>>>0,n=0);return r}var Jn=l,Zn="2.8.4",er="."+Xn(6),tr=0;function nr(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function rr(e,t){return void 0===t&&(t=!1),ye(e+tr+++(t?"."+Zn:"")+er)}function ir(e){var t={id:rr("_aiData-"+(e||"")+"."+Zn),accept:function(e){return nr(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[ye(n)]:(i&&((o=function(e,t){var n=t[e.id];if(!n){n={};try{nr(t)&&(function(e,t,n){if(Jn)try{return Jn(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch{}return!1}(t,e.id,n)||(t[e.id]=n))}catch{}}return n}(t,e))[ye(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch{}}};return t}var or="toGMTString",ar="toUTCString",sr="cookie",cr="expires",ur="enabled",lr="isCookieUseDisabled",pr="disableCookiesUsage",dr="_ckMgr",fr=null,hr=null,vr=null,gr=tn(),mr={},_r={};function yr(e,t){var n=br[dr]||_r[dr];return n||(n=br[dr]=br(e,t),_r[dr]=n),n}function Er(e){return!e||e.isEnabled()}function br(e,t){var n=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(ze(t,"domain",e.cookieDomain,ve,he),ze(t,"path",e.cookiePath||"/",null,he),he(t[ur])){var n=void 0;fe(e[lr])||(n=!e[lr]),fe(e[pr])||(n=!e[pr]),t[ur]=n}return t}(e||_r),r=n.path||"/",i=n.domain,o=!1!==n[ur],a={isEnabled:function(){var e=o&&Sr(t),n=_r[dr];return e&&n&&a!==n&&(e=Er(n)),e},setEnabled:function(e){o=!1!==e},set:function(e,t,o,s,c){var u=!1;if(Er(a)){var l={},p=Me(t||y),d=p.indexOf(";");if(-1!==d&&(p=Me(t.substring(0,d)),l=Tr(t.substring(d+1))),ze(l,"domain",s||i,Ye,fe),!he(o)){var f=fn();if(fe(l[cr])){var h=Ge()+1e3*o;if(h>0){var v=new Date;v.setTime(h),ze(l,cr,Pr(v,f?or:ar)||Pr(v,f?or:ar)||y,Ye)}}f||ze(l,"max-age",y+o,null,fe)}var g=an();g&&"https:"===g.protocol&&(ze(l,"secure",null,null,fe),null===hr&&(hr=!Ir((rn()||{}).userAgent)),hr&&ze(l,"SameSite","None",null,fe)),ze(l,"path",c||r,null,fe),(n.setCookie||Ar)(e,Cr(p,l)),u=!0}return u},get:function(e){var t=y;return Er(a)&&(t=(n.getCookie||wr)(e)),t},del:function(e,t){var n=!1;return Er(a)&&(n=a.purge(e,t)),n},purge:function(e,r){var i,o=!1;if(Sr(t)){var a=((i={}).path=r||"/",i[cr]="Thu, 01 Jan 1970 00:00:01 GMT",i);fn()||(a["max-age"]="0"),(n.delCookie||Ar)(e,Cr(y,a)),o=!0}return o}};return a[dr]=a,a}function Sr(e){if(null===fr){fr=!1;try{fr=void 0!==(gr||{})[sr]}catch(t){Rn(e,2,68,"Cannot access document.cookie - "+$e(t),{exception:hn(t)})}}return fr}function Tr(e){var t={};return e&&e.length&&Re(Me(e).split(";"),(function(e){if(e=Me(e||y)){var n=e.indexOf("=");-1===n?t[e]=null:t[Me(e.substring(0,n))]=Me(e.substring(n+1))}})),t}function Pr(e,t){return _e(e[t])?e[t]():null}function Cr(e,t){var n=e||y;return Ee(t,(function(e,t){n+="; "+e+(he(t)?y:"="+t)})),n}function wr(e){var t=y;if(gr){var n=gr[sr]||y;vr!==n&&(mr=Tr(n),vr=n),t=Me(mr[e]||y)}return t}function Ar(e,t){gr&&(gr[sr]=e+"="+t)}function Ir(e){return!!we(e)&&!!(Se(e,"CPU iPhone OS 12")||Se(e,"iPad; CPU OS 12")||Se(e,"Macintosh; Intel Mac OS X 10_14")&&Se(e,"Version/")&&Se(e,"Safari")||Se(e,"Macintosh; Intel Mac OS X 10_14")&&be(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Se(e,"Chrome/5")||Se(e,"Chrome/6")||Se(e,"UnrealEngine")&&!Se(e,"Chrome")||Se(e,"UCBrowser/12")||Se(e,"UCBrowser/11"))}var Or="on",xr="attachEvent",Rr="addEventListener",Nr="detachEvent",Dr="removeEventListener",kr="events",Mr="visibilitychange",jr="pagehide",Lr="pageshow",Fr="unload",Br="beforeunload",Hr=rr("aiEvtPageHide"),Ur=rr("aiEvtPageShow"),Vr=/\.[\.]+/g,qr=/[\.]+$/,Gr=1,$r=ir("events"),zr=/^([^.]*)(?:\.(.+)|)/;function Wr(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Kr(e,t){if(t){var n="";Pe(t)?(n="",Re(t,(function(e){(e=Wr(e))&&("."!==e[0]&&(e="."+e),n+=e)}))):n=Wr(t),n&&("."!==n[0]&&(n="."+n),e=(e||"")+n)}var r=zr.exec(e||"")||[];return{type:r[1],ns:(r[2]||"").replace(Vr,".").replace(qr,"").split(".").sort().join(".")}}function Yr(e,t,n){void 0===n&&(n=!0);var r=$r.get(e,kr,{},n),i=r[t];return i||(i=r[t]=[]),i}function Qr(e,t,n,r){e&&t&&t.type&&(e[Dr]?e[Dr](t.type,n,r):e[Nr]&&e[Nr](Or+t.type,n))}function Xr(e,t,n,r){for(var i=t.length;i--;){var o=t[i];o&&(!n.ns||n.ns===o.evtName.ns)&&(!r||r(o))&&(Qr(e,o.evtName,o.handler,o.capture),t.splice(i,1))}}function Jr(e,t){return t?Kr("xx",Pe(t)?[e].concat(t):[e,t]).ns.split("."):e}function Zr(e,t,n,r,i){void 0===i&&(i=!1);var o=!1;if(e)try{var a=Kr(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t.type&&n&&(e[Rr]?(e[Rr](t.type,n,r),i=!0):e[xr]&&(e[xr](Or+t.type,n),i=!0)),i}(e,a,n,i),o&&$r.accept(e)){var s={guid:Gr++,evtName:a,handler:n,capture:i};Yr(e,a.type).push(s)}}catch{}return o}function ei(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var o=Kr(t,r),a=!1;(function(e,t,n){if(t.type)Xr(e,Yr(e,t.type),t,n);else{var r=$r.get(e,kr,{});Ee(r,(function(r,i){Xr(e,i,t,n)})),0===Fe(r).length&&$r.kill(e,kr)}})(e,o,(function(e){return!((!o.ns||n)&&e.handler!==n||(a=!0,0))})),a||Qr(e,o,n,i)}catch{}}function ti(e,t,n,r){return void 0===r&&(r=!1),Zr(e,t,n,null,r)}function ni(e,t,n,r){void 0===r&&(r=!1),ei(e,t,n,null,r)}function ri(e,t,n){var r=!1,i=Zt();i&&(r=Zr(i,e,t,n),r=Zr(i.body,e,t,n)||r);var o=tn();return o&&(r=Zr(o,e,t,n)||r),r}function ii(e,t,n){var r=Zt();r&&(ei(r,e,t,n),ei(r.body,e,t,n));var i=tn();i&&ei(i,e,t,n)}function oi(e,t,n,r){var i=!1;return t&&e&&e.length>0&&Re(e,(function(e){e&&(!n||-1===Ne(n,e))&&(i=ri(e,t,r)||i)})),i}function ai(e,t,n,r){var i=!1;return t&&e&&Pe(e)&&!(i=oi(e,t,n,r))&&n&&n.length>0&&(i=oi(e,t,null,r)),i}function si(e,t,n){e&&Pe(e)&&Re(e,(function(e){e&&ii(e,t,n)}))}var ci,ui=null,li=r;function pi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(vi,(function(e){var t=0|Wn(15);return("x"===e?t:3&t|8).toString(16)}))}function di(){var e=cn();return e&&e.now?e.now():Ge()}function fi(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=y,r=0;r<4;r++)n+=t[15&(e=Kn())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Kn())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}var hi={_canUseCookies:void 0,isTypeof:de,isUndefined:fe,isNullOrUndefined:he,hasOwnProperty:ge,isFunction:_e,isObject:me,isDate:Te,isArray:Pe,isError:Ce,isString:we,isNumber:Ae,isBoolean:Ie,toISOString:xe,arrForEach:Re,arrIndexOf:Ne,arrMap:De,arrReduce:ke,strTrim:Me,objCreate:v,objKeys:Fe,objDefineAccessors:Be,addEventHandler:ri,dateNow:Ge,isIE:fn,disableCookies:_i,newGuid:pi,perfNow:di,newId:Xn,randomValue:Wn,random32:Kn,mwcRandomSeed:Yn,mwcRandom32:Qn,generateW3CId:fi},vi=/[xy]/g,gi={Attach:ti,AttachEvent:ti,Detach:ni,DetachEvent:ni};function mi(e,t){var n=yr(e,t),r=hi._canUseCookies;return null===ui&&(ui=[],ci=r,Be(hi,"_canUseCookies",(function(){return ci}),(function(e){ci=e,Re(ui,(function(t){t.setEnabled(e)}))}))),-1===Ne(ui,n)&&ui.push(n),Ie(r)&&n.setEnabled(r),Ie(ci)&&n.setEnabled(ci),n}function _i(){mi().setEnabled(!1)}var yi=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,Ei="00",bi="ff",Si="00000000000000000000000000000000",Ti="0000000000000000";function Pi(e,t,n){return!(!e||e.length!==t||e===n||!e.match(/^[\da-f]*$/))}function Ci(e,t,n){return Pi(e,t)?e:n}function wi(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Ai(e){if(!e||(Pe(e)&&(e=e[0]||""),!e||!we(e)||e.length>8192))return null;var t=yi.exec(Me(e));return t&&t[1]!==bi&&t[2]!==Si&&t[3]!==Ti?{version:t[1],traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}function Ii(e){return Pi(e,32,Si)}function Oi(e){return Pi(e,16,Ti)}function xi(e){return!!(e&&Pi(e.version,2,bi)&&Pi(e.traceId,32,Si)&&Pi(e.spanId,16,Ti)&&Pi(wi(e.traceFlags),2))}var Ri=ir("plugin");function Ni(e){return Ri.get(e,"state",{},!0)}function Di(e,t){for(var n,r=[],i=null,o=e.getNext();o;){var a=o.getPlugin();a&&(i&&_e(i[S])&&_e(a[E])&&i[S](a),(_e(a[T])?a[T]():(n=Ni(a))[T])||r.push(a),i=a,o=o.getNext())}Re(r,(function(r){var i=e.core();r.initialize(e.getCfg(),i,t,e.getNext()),n=Ni(r),!r[C]&&!n[C]&&(n[C]=i),n[T]=!0,delete n[P]}))}function ki(e){return e.sort((function(e,t){var n=0;if(t){var r=_e(t[E]);_e(e[E])?n=r?e[b]-t[b]:1:r&&(n=-1)}else n=e?1:-1;return n}))}var Mi="TelemetryPluginChain",ji="_hasRun",Li="_getTelCtx",Fi=0;function Bi(e,t,n,r){var i=null,o=[];null!==r&&(i=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return qi([n],t.config||{},t)}(e,n,r):e);var a={_next:function(){var e=i;if(i=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(Re(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Rn(n.logger,2,73,"Unexpected Exception during onComplete - "+hn(e))}})),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return In(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=s(e,null);return o&&!he(o[n])?i=o[n]:t&&!he(t[n])&&(i=t[n]),he(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=a._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&o.push({func:e,self:fe(t)?a.ctx:t,args:n})}}};function s(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t.extensionConfig;o&&e&&(i=o[e])}if(i){if(me(n)&&0!==r){var a=et(!0,n,i);t&&2===r&&Ee(n,(function(e){if(he(a[e])){var n=t[e];he(n)||(a[e]=n)}})),i=a}}else i=n;return i}return a}function Hi(e,t,n,r){var i=Bi(e,t,n,r),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,r){return void 0===e&&(e=null),Pe(e)&&(e=qi(e,t,n,r)),Hi(e||o.getNext(),t,n,r)},o}function Ui(e,t,n){var r=t.config||{},i=Bi(e,r,t,n),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),Pe(e)&&(e=qi(e,r,t,n)),Ui(e||o.getNext(),t,n)},o}function Vi(e,t,n){var r=t.config||{},i=Bi(e,r,t,n).ctx;return i.processNext=function(e){return i.iterate((function(t){_e(t.update)&&t.update(i,e)}))},i.createNew=function(e,n){return void 0===e&&(e=null),Pe(e)&&(e=qi(e,r,t,n)),Vi(e||i.getNext(),t,n)},i}function qi(e,t,n,r){var i=null,o=!r;if(Pe(e)&&e.length>0){var a=null;Re(e,(function(e){if(!o&&r===e&&(o=!0),o&&e&&_e(e.processTelemetry)){var s=function(e,t,n){var r,i=null,o=_e(e.processTelemetry),a=_e(e.setNextPlugin),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,u){c(u=u||function(){var r;return e&&_e(e[Li])&&(r=e[Li]()),r||(r=Hi(s,t,n)),r}(),(function(t){if(!e||!o)return!1;var n=Ni(e);return!n.teardown&&!n[A]&&(a&&e.setNextPlugin(i),e.processTelemetry(r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||u.processNext(r)},unload:function(t,n){c(t,(function(){var r=!1;if(e){var i=Ni(e),o=e[C]||i.core;e&&(!o||o===t[C]())&&!i[P]&&(i[C]=null,i[P]=!0,i[T]=!1,e[P]&&!0===e[P](t,n)&&(r=!0))}return r}),"unload",(function(){}),n.isAsync)||t.processNext(n)},update:function(t,n){c(t,(function(){var r=!1;if(e){var i=Ni(e),o=e[C]||i.core;e&&(!o||o===t[C]())&&!i[P]&&e[w]&&!0===e[w](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t.processNext(n)},_id:r=e?e.identifier+"-"+e.priority+"-"+Fi++:"Unknown-0-"+Fi++,_setNext:function(e){i=e}};function c(t,n,o,a,s){var c=!1,u=e?e.identifier:Mi,l=t[ji];return l||(l=t[ji]={}),t.setNext(i),e&&Fn(t[C](),(function(){return u+":"+o}),(function(){l[r]=!0;try{var e=i?i._id:y;e&&(l[e]=!1),c=n(t)}catch(e){var a=!i||l[i._id];a&&(c=!0),(!i||!a)&&Rn(t.diagLog(),1,73,"Plugin ["+u+"] failed during "+o+" - "+hn(e)+", run flags: "+hn(l))}}),a,s),c}return Ve(s)}(e,t,n);i||(i=s),a&&a._setNext(s),a=s}}))}return r&&!i?qi([r],t,n):i}var Gi="extensionConfig",$i=500;function zi(e,t,n,r){t&&Pe(t)&&t.length>0&&(Re(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<$i&&Qe("Channel has invalid priority - "+e.identifier)})),e.push({queue:Ve(t),chain:qi(t,n,r)}))}function Wi(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){Re(e,(function(e){try{e(t,n)}catch(e){Rn(t.diagLog(),2,73,"Unexpected error calling unload handler - "+hn(e))}})),e=[]}}}var Ki="getPlugin",Yi=function e(){var t,n,r,i,o,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||Hi(null,{},a.core);t=r&&r[Ki]?i.createNew(null,r[Ki]):i.createNew(null,r)}return t}function c(e,t,i){e&&ze(e,Gi,[],null,he),!i&&t&&(i=t.getProcessTelContext().getNext());var o=r;r&&r[Ki]&&(o=r[Ki]()),a.core=t,n=Hi(i,e,t,o)}function u(){t=!1,a.core=null,n=null,r=null,o=[],i=Wi()}u(),Nt(e,a,(function(e){e.initialize=function(e,n,r,i){c(e,n,i),t=!0},e.teardown=function(t,n){var a=e.core;if(a&&(!t||a===t.core())){var s,c=!1,l=t||Ui(null,a,r&&r[Ki]?r[Ki]():r),p=n||{reason:0,isAsync:!1};return e[I]&&!0===e[I](l,p,d)?s=!0:d(),s}function d(){c||(c=!0,i.run(l,n),Re(o,(function(e){e.rm()})),o=[],!0===s&&l.processNext(p),u())}},e.update=function(t,n){var i=e.core;if(i&&(!t||i===t.core())){var o,a=!1,s=t||Vi(null,i,r&&r[Ki]?r[Ki]():r),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,u,l)?o=!0:l(),o}function l(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(Pe(e)?o=o.concat(e):o.push(e))},Je(e,"_addUnloadCb",(function(){return i}),"add")})),a.diagLog=function(e){return s(e).diagLog()},a[T]=function(){return t},a.setInitialized=function(e){t=e},a[S]=function(e){r=e},a.processNext=function(e,t){t?t.processNext(e):r&&_e(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s},Qi=function(e){function t(){var n,r,i=e.call(this)||this;function o(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,o(),Nt(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){Re(r,(function(e,n){if(e.id===t.id)return r.splice(n,1),-1}))}}},e.processTelemetry=function(t,n){for(var i=!1,o=r.length,a=0;a<o;++a){var s=r[a];if(s)try{if(!1===s.fn.apply(null,[t])){i=!0;break}}catch(e){Rn(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+$e(e),{exception:hn(e)},!0)}}i||e.processNext(t,n)},e[I]=function(){o()}})),i}return m(t,e),t}(Yi),Xi="Plugins must provide initialize method",Ji="_notificationManager",Zi="SDK is still unloading...",eo={loggingLevelConsole:1};function to(e,t){return new jn(t)}function no(e,t){var n=!1;return Re(t,(function(t){if(t===e)return n=!0,-1})),n}var ro=function e(){var t,n,r,i,o,a,s,c,u,l,p,d,f,h,g,m,y,E,b,S=0;Nt(e,this,(function(e){function T(){t=!1,e.config=et(!0,{},eo),e.logger=new On(e.config),e._extensions=[],h=new Qi,n=[],r=null,i=null,o=null,a=null,s=null,u=null,c=[],l=null,p=null,d=null,f=!1,g=null,m=rr("AIBaseCore",!0),y=Wi(),b=null}function C(){return Hi(N(),e.config,e)}function w(t,n){var r=function(e,t,n){var r=[],i={};return Re(n,(function(t){(he(t)||he(t.initialize))&&Qe(Xi);var n=t.priority,o=t.identifier;t&&n&&(he(i[n])?i[n]=o:Nn(e,"Two extensions have same priority #"+n+" - "+i[n]+", "+o)),(!n||n<500)&&r.push(t)})),{all:n,core:r}}(e.logger,0,c);u=r.core,s=null;var i=r.all;if(d=Ve(function(e,t,n,r){var i=[];if(e&&Re(e,(function(e){return zi(i,e,n,r)})),t){var o=[];Re(t,(function(e){e.priority>$i&&o.push(e)})),zi(i,o,n,r)}return i}(p,i,t,e)),l){var o=Ne(i,l);-1!==o&&i.splice(o,1),-1!==(o=Ne(u,l))&&u.splice(o,1),l._setQueue(d)}else l=function(e,t){var n;function r(){return Hi(null,t.config,t,null)}function i(e,t,n,r){var i=e?e.length+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&Re(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,a=t.createNew(r);a.onComplete(o),n(a)}else i--})),o()}var o=!1;return(n={identifier:"ChannelControllerPlugin",priority:$i,initialize:function(t,n,r,i){o=!0,Re(e,(function(e){e&&e.queue.length>0&&Di(Hi(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,n){i(e,n||r(),(function(e){e[O](t)}),(function(){n[O](t)}))},update:function(t,n){var r=n||{reason:0};return i(e,t,(function(e){e[O](r)}),(function(){t[O](r)})),!0}})[R]=function(){i(e,r(),(function(e){e.iterate((function(e){e[R]&&e[R]()}))}),null)},n[x]=function(){i(e,r(),(function(e){e.iterate((function(e){e[x]&&e[x]()}))}),null)},n[P]=function(t,n){var r=n||{reason:0,isAsync:!1};return i(e,t,(function(e){e[O](r)}),(function(){t[O](r),o=!1})),!0},n.getChannel=function(t){var n=null;return e&&e.length>0&&Re(e,(function(e){if(e&&e.queue.length>0&&(Re(e.queue,(function(e){if(e.identifier===t)return n=e,-1})),n))return-1})),n},n.flush=function(t,n,o,a){var s=1,c=!1,u=null;function l(){s--,c&&0===s&&(u&&(clearTimeout(u),u=null),n&&n(c),n=null)}return a=a||5e3,i(e,r(),(function(e){e.iterate((function(e){if(e.flush){s++;var n=!1;e.flush(t,(function(){n=!0,l()}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,l()}),a):l())}}))}),(function(){c=!0,l()})),!0},n._setQueue=function(t){e=t},n}(d,e);i.push(l),u.push(l),e._extensions=ki(i),l.initialize(t,e,i),Di(C(),i),e._extensions=Ve(ki(u||[])).slice(),n&&function(t){var n=Vi(N(),e);(!e._updateHook||!0!==e._updateHook(n,t))&&n.processNext(t)}(n)}function I(t){var n=null,r=null;return Re(e._extensions,(function(e){if(e.identifier===t&&e!==l&&e!==h)return r=e,-1})),!r&&l&&(r=l.getChannel(t)),r&&(n={plugin:r,setEnabled:function(e){Ni(r)[A]=!e},isEnabled:function(){var e=Ni(r);return!e[P]&&!e[A]},remove:function(t,n){void 0===t&&(t=!0);var i=[r];F(i,{reason:1,isAsync:t},(function(t){t&&w(e.config,{reason:32,removed:i}),n&&n(t)}))}}),n}function N(){if(!s){var t=(u||[]).slice();-1===Ne(t,h)&&t.push(h),s=qi(ki(t),e.config,e)}return s}function F(t,n,r){if(t&&t.length>0){var i=Ui(qi(t,e.config,e),e);i.onComplete((function(){var e=!1,n=[];Re(c,(function(r,i){no(r,t)?e=!0:n.push(r)})),c=n;var i=[];p&&(Re(p,(function(n,r){var o=[];Re(n,(function(n){no(n,t)?e=!0:o.push(n)})),i.push(o)})),p=i),r&&r(e)})),i.processNext(n)}else r(!1)}function B(){var t=e.logger?e.logger.queue:[];t&&(Re(t,(function(t){var n={name:g||"InternalMessageId: "+t.messageId,iKey:e.config.instrumentationKey,time:xe(new Date),baseType:An.dataType,baseData:{message:t.message}};e.track(n)})),t.length=0)}function H(e,t,n,r){return l?l.flush(e,t,n||6,r):(t&&t(!1),!0)}function U(t){var n=e.logger;n?Rn(n,2,73,t):Qe(t)}T(),e.isInitialized=function(){return t},e.initialize=function(n,i,a,s){f&&Qe(Zi),e.isInitialized()&&Qe("Core should not be initialized more than once"),(!n||he(n.instrumentationKey))&&Qe("Please provide instrumentation key"),r=s,e[Ji]=s,e.config=n||{},function(e){!0===e.disableDbgExt&&E&&(r[k](E),E=null),r&&!E&&!0!==e.disableDbgExt&&(E=Pn(e),r[D](E))}(n),function(t){!t.enablePerfMgr&&o&&(o=null),t.enablePerfMgr&&ze(e.config,"createPerfMgr",to)}(n),n.extensions=he(n.extensions)?[]:n.extensions,function(e){We(e,Gi).NotificationManager=r}(n),a&&(e.logger=a),(c=[]).push.apply(c,_(_([],i),n.extensions)),p=(n||{}).channels,w(n,null),(!d||0===d.length)&&Qe("No channels available"),t=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return d&&Re(d,(function(t){e.push(t.queue)})),Ve(e)},e.track=function(t){ze(t,"iKey",e.config.instrumentationKey,null,Ke),ze(t,"time",xe(new Date),null,Ke),ze(t,"ver","4.0",null,he),!f&&e.isInitialized()?C().processNext(t):n.push(t)},e.getProcessTelContext=C,e.getNotifyMgr=function(){return r||(r=function(){var e;return v(((e={})[D]=function(e){},e[k]=function(e){},e[M]=function(e){},e[j]=function(e,t){},e[L]=function(e,t){},e))}(),e[Ji]=r),r},e[D]=function(e){r&&r[D](e)},e[k]=function(e){r&&r[k](e)},e.getCookieMgr=function(){return a||(a=br(e.config,e.logger)),a},e.setCookieMgr=function(e){a=e},e.getPerfMgr=function(){return!i&&!o&&e.config&&e.config.enablePerfMgr&&_e(e.config.createPerfMgr)&&(o=e.config.createPerfMgr(e,e.getNotifyMgr())),i||o||Bn()},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return n.length},e.releaseQueue=function(){if(t&&n.length>0){var e=n;n=[],Re(e,(function(e){C().processNext(e)}))}},e.pollInternalLogs=function(t){g=t||null;var n=e.config.diagnosticLogInterval;return(!n||!(n>0))&&(n=1e4),S&&clearInterval(S),S=setInterval((function(){B()}),n)},e.stopPollingInternalLogs=function(){S&&(clearInterval(S),S=0,B())},Ze(e,(function(){return h}),["addTelemetryInitializer"]),e.unload=function(n,r,i){void 0===n&&(n=!0),t||Qe("SDK is not initialized"),f&&Qe(Zi);var o={reason:50,isAsync:n,flushComplete:!1},a=Ui(N(),e);function s(t){o.flushComplete=t,f=!0,y.run(a,o),e.stopPollingInternalLogs(),a.processNext(o)}a.onComplete((function(){T(),r&&r(o)}),e),H(n,s,6,i)||s(!1)},e.getPlugin=I,e.addPlugin=function(t,n,r,i){if(!t)return i&&i(!1),void U(Xi);var o=I(t.identifier);if(o&&!n)return i&&i(!1),void U("Plugin ["+t.identifier+"] is already loaded!");var a={reason:16};function s(n){c.push(t),a.added=[t],w(e.config,a),i&&i(!0)}if(o){var u=[o.plugin];F(u,{reason:2,isAsync:!!r},(function(e){e?(a.removed=u,a.reason|=32,s()):i&&i(!1)}))}else s()},e.evtNamespace=function(){return m},e.flush=H,e.getTraceCtx=function(e){return b||(b=function(e){var t={};return{getName:function(){return t.name},setName:function(e){t.name=e},getTraceId:function(){return t.traceId},setTraceId:function(e){Ii(e)&&(t.traceId=e)},getSpanId:function(){return t.spanId},setSpanId:function(e){Oi(e)&&(t.spanId=e)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(e){t.traceFlags=e}}}()),b},e.setTraceCtx=function(e){b=e||null},Je(e,"addUnloadCb",(function(){return y}),"add")}))};function io(e,t,n,r){Re(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch{}}))}var oo=function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;Nt(e,this,(function(e){e[D]=function(t){e.listeners.push(t)},e[k]=function(t){for(var n=Ne(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Ne(e.listeners,t)},e[M]=function(t){io(e.listeners,M,!0,(function(e){e[M](t)}))},e[j]=function(t,n){io(e.listeners,j,!0,(function(e){e[j](t,n)}))},e[L]=function(t,n){io(e.listeners,L,n,(function(e){e[L](t,n)}))},e[F]=function(t){t&&(n||!t.isChildEvt())&&io(e.listeners,F,!1,(function(e){t.isAsync?setTimeout((function(){return e[F](t)}),0):e[F](t)}))}}))},ao=function(e){function t(){var n=e.call(this)||this;return Nt(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}e.initialize=function(e,n,r,i){t.initialize(e,n,r||new On(e),i||new oo(e))},e.track=function(r){Fn(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Qe("Invalid telemetry item")),function(e){he(e.name)&&(n(e),Qe("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return m(t,e),t}(ro),so=tt({CRITICAL:1,WARNING:2}),co=tt({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105,InstrumentationKeyDeprecation:106}),uo="_aiHooks",lo=["req","rsp","hkErr","fnErr"];function po(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function fo(e,t,n,r,i){i>=0&&i<=2&&po(e,(function(e,o){var a=e.cbks,s=a[lo[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s.apply(t.inst,n)}catch(e){var c=t.err;try{var u=a[lo[2]];u&&(t.err=e,u.apply(t.inst,n))}catch{}finally{t.err=c}}}}))}function ho(e,t,n){var r=null;return e&&(ge(e,t)?r=e:n&&(r=ho(pe(e),t,!1))),r}function vo(e,t,n,r){var i=n&&n[uo];if(!i){var o=function(e){return function(){var t=arguments,n=e.h,r={name:e.n,inst:this,ctx:null,set:function(e,n){(t=a([],t))[e]=n,o=a([r],t)}},i=[],o=a([r],t);function a(e,t){return po(t,(function(t){e.push(t)})),e}r.evt=Xt("event"),fo(n,r,o,i,0);var s=e.f;if(s)try{r.rslt=s.apply(this,t)}catch(e){throw r.err=e,fo(n,r,o,i,3),e}return fo(n,r,o,i,1),r.rslt}}(i={i:0,n:t,f:n,h:[]});o[uo]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;po(i.h,(function(t,n){if(t.id===e)return i.h.splice(n,1),1}))}};return i.i++,i.h.push(a),a}function go(e,n,r,i){if(void 0===i&&(i=!0),e&&n&&r){var o=ho(e,n,i);if(o){var a=o[n];if(typeof a===t)return vo(o,n,a,r)}}return null}function mo(e,t,n,r){void 0===r&&(r=!0);var i=null;return po(t,(function(t){var o=go(e,t,n,r);o&&(i||(i=[]),i.push(o))})),i}e.AppInsightsCore=ao,e.BaseCore=ro,e.BaseTelemetryPlugin=Yi,e.CoreUtils=hi,e.DiagnosticLogger=On,e.EventHelper=gi,e.EventsDiscardedReason=nt,e.InstrumentEvent=function(e,t,n,r){if(e&&t&&n){var i=ho(e,t,r)||e;if(i)return vo(i,t,i[t],n)}return null},e.InstrumentFunc=go,e.InstrumentFuncs=mo,e.InstrumentProto=function(e,t,n){return e?go(e[i],t,n,!1):null},e.InstrumentProtos=function(e,t,n){return e?mo(e[i],t,n,!1):null},e.LoggingSeverity=so,e.MinChannelPriorty=100,e.NotificationManager=oo,e.PerfEvent=Mn,e.PerfManager=jn,e.ProcessTelemetryContext=function(e,t,n,r){var i=Hi(e,t,n,r);Ze(this,i,Fe(i))},e.Undefined=li,e._InternalLogMessage=An,e._InternalMessageId=co,e.__getRegisteredEvents=function(e,t,n){var r=[],i=$r.get(e,kr,{},!1),o=Kr(t,n);return Ee(i,(function(e,t){Re(t,(function(e){(!o.type||o.type===e.evtName.type)&&(!o.ns||o.ns==o.ns)&&r.push({name:e.evtName.type+(e.evtName.ns?"."+e.evtName.ns:""),handler:e.handler})}))})),r},e._legacyCookieMgr=mi,e._logInternalMessage=function(e,t,n){xn(e).logInternalMessage(t,n)},e._throwInternal=Rn,e._warnToConsole=Nn,e.addEventHandler=ri,e.addEventListeners=ai,e.addPageHideEventListener=function e(t,n,r){var i=Jr(Hr,r),o=oi([jr],t,n,i);return(!n||-1===Ne(n,Mr))&&(o=oi([Mr],(function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)}),n,i)||o),!o&&n&&(o=e(t,null,r)),o},e.addPageShowEventListener=function e(t,n,r){var i=Jr(Ur,r),o=oi([Lr],t,n,i);return!(o=oi([Mr],(function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)}),n,i)||o)&&n&&(o=e(t,null,r)),o},e.addPageUnloadEventListener=function(e,t,n){return ai([Br,Fr,jr],e,t,n)},e.areCookiesSupported=Sr,e.arrForEach=Re,e.arrIndexOf=Ne,e.arrMap=De,e.arrReduce=ke,e.attachEvent=ti,e.canUseCookies=function(e){return mi(null,e).isEnabled()},e.createClassFromInterface=function(e){return function(){var t=this;e&&Ee(e,(function(e,n){t[e]=n}))}},e.createCookieMgr=br,e.createEnumMap=function(e){var t={};return Ee(e,(function(e,n){t[e]=e,t[n]=e})),Ue(t)},e.createEnumStyle=tt,e.createProcessTelemetryContext=Hi,e.createTraceParent=function(e,t,n,r){return{version:Pi(r,2,bi)?r:Ei,traceId:Ii(e)?e:fi(),spanId:Oi(t)?t:fi().substr(0,16),traceFlags:n>=0&&n<=255?n:1}},e.createUniqueNamespace=rr,e.createUnloadHandlerContainer=Wi,e.createValueMap=function(e){var t={};return Ee(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),Ue(t)},e.dateNow=Ge,e.deepFreeze=Ue,e.deleteCookie=function(e,t){return mi(null,e).del(t)},e.detachEvent=ni,e.disableCookies=_i,e.doPerf=Fn,e.dumpObj=hn,e.eventOff=ei,e.eventOn=Zr,e.findMetaTag=mn,e.findNamedServerTiming=_n,e.findW3cTraceParent=function(){var e="traceparent",t=Ai(mn(e));return t||(t=Ai(_n(e))),t},e.formatTraceParent=function(e){if(e){var t=wi(e.traceFlags);Pi(t,2)||(t="01");var n=e.version||Ei;return"00"!==n&&"ff"!==n&&(n=Ei),"".concat(n,"-").concat(Ci(e.traceId,32,Si),"-").concat(Ci(e.spanId,16,Ti),"-").concat(t)}return""},e.generateW3CId=fi,e.getConsole=sn,e.getCookie=function(e,t){return mi(null,e).get(t)},e.getCrypto=pn,e.getDebugExt=Tn,e.getDebugListener=Pn,e.getDocument=tn,e.getExceptionName=$e,e.getGblPerfMgr=Bn,e.getGlobal=f,e.getGlobalInst=Xt,e.getHistory=function(){return on()?history:Xt("history")},e.getIEVersion=function(e){if(void 0===e&&(e=null),!e){var t=rn()||{};e=t?(t.userAgent||y).toLowerCase():y}var n=(e||y).toLowerCase();if(Se(n,Vt)){var r=tn()||{};return Math.max(parseInt(n.split(Vt)[1]),r.documentMode||0)}if(Se(n,qt)){var i=parseInt(n.split(qt)[1]);if(i)return i+4}return null},e.getJSON=ln,e.getLocation=an,e.getMsCrypto=dn,e.getNavigator=rn,e.getPerformance=cn,e.getSetValue=We,e.getWindow=Zt,e.hasDocument=en,e.hasHistory=on,e.hasJSON=un,e.hasNavigator=nn,e.hasOwnProperty=ge,e.hasWindow=Jt,e.initializePlugins=Di,e.isArray=Pe,e.isBeaconsSupported=function(){return null===Yt&&(Yt=nn()&&Boolean(rn().sendBeacon)),Yt},e.isBoolean=Ie,e.isDate=Te,e.isError=Ce,e.isFetchSupported=function(e){var t=!1;try{t=!!Xt("fetch");var n=Xt("Request");t&&e&&n&&(t=Qt(n,"keepalive"))}catch{}return t},e.isFunction=_e,e.isIE=fn,e.isNotNullOrUndefined=ve,e.isNotTruthy=Ke,e.isNotUndefined=function(e){return!fe(e)},e.isNullOrUndefined=he,e.isNumber=Ae,e.isObject=me,e.isReactNative=function(){var e=rn();return!(!e||!e.product)&&"ReactNative"===e.product},e.isSafari=function(e){if(!e||!we(e)){var t=rn()||{};e=t?(t.userAgent||y).toLowerCase():y}return(e||y).toLowerCase().indexOf("safari")>=0},e.isSampledFlag=function(e){return!!xi(e)&&1==(1&e.traceFlags)},e.isString=we,e.isSymbol=function(e){return"symbol"==typeof e},e.isTruthy=Ye,e.isTypeof=de,e.isUndefined=fe,e.isValidSpanId=Oi,e.isValidTraceId=Ii,e.isValidTraceParent=xi,e.isXhrSupported=vn,e.mergeEvtNamespace=Jr,e.mwcRandom32=Qn,e.mwcRandomSeed=Yn,e.newGuid=pi,e.newId=Xn,e.normalizeJsName=ye,e.objCreate=v,e.objDefineAccessors=Be,e.objExtend=et,e.objForEachKey=Ee,e.objFreeze=Ve,e.objKeys=Fe,e.objSeal=qe,e.objToString=function(e){return ie.call(e)},e.optimizeObject=function(e){return e&&c&&(e=a(c({},e))),e},e.parseTraceParent=Ai,e.perfNow=di,e.proxyAssign=function(e,t,n){if(e&&t&&me(e)&&me(t)){var r=function(r){if(we(r)){var i=t[r];_e(i)?(!n||n(r,!0,t,e))&&(e[r]=Xe(t,r)):(!n||n(r,!1,t,e))&&(ge(e,r)&&delete e[r],Be(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e},e.proxyFunctionAs=Je,e.proxyFunctions=Ze,e.random32=Kn,e.randomValue=Wn,e.removeEventHandler=ii,e.removeEventListeners=si,e.removePageHideEventListener=function(e,t){var n=Jr(Hr,t);si([jr],e,n),si([Mr],null,n)},e.removePageShowEventListener=function(e,t){var n=Jr(Ur,t);si([Lr],e,n),si([Mr],null,n)},e.removePageUnloadEventListener=function(e,t){si([Br,Fr,jr],e,t)},e.safeGetCookieMgr=function(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r[dr]?r[dr]:br(t)}return n||(n=yr(t,(e||{}).logger)),n},e.safeGetLogger=In,e.setCookie=function(e,t,n,r){mi(null,e).set(t,n,null,r)},e.setEnableEnvMocks=function(e){Wt=e},e.setGblPerfMgr=function(e){kn=e},e.setValue=ze,e.sortPlugins=ki,e.strContains=Se,e.strEndsWith=be,e.strFunction=t,e.strObject=n,e.strPrototype=i,e.strStartsWith=function(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=te?e[U](t):function(e,t){var n=!1,r=t?t.length:0;if(e&&r&&e.length>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n},e.strTrim=Me,e.strUndefined=r,e.throwError=Qe,e.toISOString=xe,e.uaDisallowsSameSiteNone=Ir,e.unloadComponents=function(e,t,n,r){var i=0;return function r(){for(;i<e.length;){var o=e[i++];if(o){var a=o._doUnload||o[I];if(_e(a)&&!0===a.call(o,t,n,r))return!0}}}()},e.useXDomainRequest=function(){return null===Kt&&(Kt=typeof XDomainRequest!==r)&&vn()&&(Kt=Kt&&!Qt(Xt(Gt),"withCredentials")),Kt},function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),C=E(((i,a)=>{var s;s=function(){"use strict";var e="constructor",t="prototype",n="function",r="_dynInstFuncs",i="_isDynProxy",o="_dynClass",a="_dynInstChk",s=a,c="_dfOpts",u="_unknown_",l="__proto__",p="_dyn"+l,d="_dynInstProto",f="useBaseInst",h="setInstFuncs",v=Object,g=v.getPrototypeOf,m=v.getOwnPropertyNames,_=0;function y(e,n){return e&&v[t].hasOwnProperty.call(e,n)}function E(e){return e&&(e===v[t]||e===Array[t])}function b(e){return E(e)||e===Function[t]}function S(n){var r;if(n){if(g)return g(n);var i=n[l]||n[t]||(n[e]?n[e][t]:null);r=n[p]||i,y(n,p)||(delete n[d],r=n[p]=n[d]||n[p],n[d]=i)}return r}function T(e,t){var n=[];if(m)n=m(e);else for(var r in e)"string"==typeof r&&y(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function P(t,r,i){return r!==e&&typeof t[r]===n&&(i||y(t,r))}function C(e){throw new TypeError("DynamicProto: "+e)}function w(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function A(e,t,c,u,l){if(!E(e)){var p=c[r]=c[r]||{},d=p[t]=p[t]||{};!1!==p[s]&&(p[s]=!!l),T(c,(function(t){P(c,t,!1)&&c[t]!==u[t]&&(d[t]=c[t],delete c[t],(!y(e,t)||e[t]&&!e[t][i])&&(e[t]=function(e,t){var c=function(){var i=function(e,t,i,c){var u=null;if(e&&y(i,o)){var l=e[r]||{};if((u=(l[i[o]]||{})[t])||C("Missing ["+t+"] "+n),!u[a]&&!1!==l[s]){for(var p=!y(e,t),d=S(e),f=[];p&&d&&!b(d)&&!w(f,d);){var h=d[t];if(h){p=h===c;break}f.push(d),d=S(d)}try{p&&(e[t]=u),u[a]=1}catch{l[s]=!1}}}return u}(this,t,e,c)||function(e,t,r){var i=t[e];return i===r&&(i=S(t)[e]),typeof i!==n&&C("["+e+"] is not a "+n),i}(t,e,c);return i.apply(this,arguments)};return c[i]=1,c}(e,t)))}))}}function I(n,r){return y(n,t)?n.name||r||u:((n||{})[e]||{}).name||r||u}function O(e,n,a,u){y(e,t)||C("theClass is an invalid class definition.");var l=e[t];(function(e,t){if(g){for(var n=[],r=S(t);r&&!b(r)&&!w(n,r);){if(r===e)return!0;n.push(r),r=S(r)}return!1}return!0})(l,n)||C("["+I(e)+"] is not in class hierarchy of ["+I(n)+"]");var p=null;y(l,o)?p=l[o]:(p="_dynCls$"+I(e,"_")+"$"+_,_++,l[o]=p);var d=O[c],v=!!d[f];v&&u&&void 0!==u[f]&&(v=!!u[f]);var m=function(e){var t={};return T(e,(function(n){!t[n]&&P(e,n,!1)&&(t[n]=e[n])})),t}(n),E=function(e,t,n,a){function c(e,t,n){var c=t[n];if(c[i]&&a){var u=e[r]||{};!1!==u[s]&&(c=(u[t[o]]||{})[n]||c)}return function(){return c.apply(e,arguments)}}var u={};T(n,(function(e){u[e]=c(t,n,e)}));for(var l=S(e),p=[];l&&!b(l)&&!w(p,l);)T(l,(function(e){!u[e]&&P(l,e,!g)&&(u[e]=c(t,l,e))})),p.push(l),l=S(l);return u}(l,n,m,v);a(n,E);var x=!!g&&!!d[h];x&&u&&(x=!!u[h]),A(l,p,n,m,!1!==x)}return O[c]={setInstFuncs:!0,useBaseInst:!0},O},"object"==typeof i&&typeof a<"u"?a.exports=s():void 0===(o="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=o)})),w=E(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var i,o,a=(o=r)&&"object"==typeof o&&"default"in o?o.default:o,s=n.createEnumStyle({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),c=n.createEnumStyle({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),u=n.createEnumStyle({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),l=n.createEnumStyle({Normal:1,Critical:2}),p=n.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),d=n.objFreeze(t.__assignFn(t.__assignFn({},n._InternalMessageId),n.createEnumStyle({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),f="3.2.3",h="1DS-Web-JS-"+f,v="withCredentials",g=((i={})[0]=0,i[2]=6,i[1]=1,i[3]=7,i[4098]=6,i[4097]=1,i[4099]=7,i),m=null,_=Boolean(n.getDocument()),y=Boolean(n.getWindow());function E(e){return!(""===e||n.isNullOrUndefined(e))}function b(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function S(){return null===m&&(m=!n.isUndefined(Uint8Array)&&!function(){var e=n.getNavigator();if(!n.isUndefined(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!n.isReactNative()),m}function T(e){return!!(e&&n.isNumber(e)&&e>=1&&e<=4)}function P(e,t,r){if(!t&&!E(t)||"string"!=typeof e)return null;var i=typeof t;if("string"===i||"number"===i||"boolean"===i||n.isArray(t))t={value:t};else if("object"!==i||t.hasOwnProperty("value")){if(n.isNullOrUndefined(t.value)||""===t.value||!n.isString(t.value)&&!n.isNumber(t.value)&&!n.isBoolean(t.value)&&!n.isArray(t.value))return null}else t={value:r?JSON.stringify(t):t};if(n.isArray(t.value)&&!M(t.value))return null;if(!n.isNullOrUndefined(t.kind)){if(n.isArray(t.value)||!k(t.kind))return null;t.value=t.value.toString()}return t}function C(e,t,r){var i=-1;if(!n.isUndefined(e))if(t>0&&(32===t?i=8192:t<=13&&(i=t<<5)),function(e){return e>=0&&e<=9}(r))-1===i&&(i=0),i|=r;else{var o=g[L(e)]||-1;-1!==i&&-1!==o?i|=o:6===o&&(i=o)}return i}function w(){n.safeGetCookieMgr(null).setEnabled(!1)}function A(e,t,r){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).set(e,t,86400*r,null,"/")}function I(e){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).del(e)}function O(e){return n.areCookiesSupported(null)?x(n.safeGetCookieMgr(null),e):""}function x(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function R(e){void 0===e&&(e="D");var t=n.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function N(e,t,r,i,o){var a={},s=!1,c=0,u=arguments.length,l=arguments;for("[object Boolean]"===Object[n.strPrototype].toString.call(l[0])&&(s=l[0],c++);c<u;c++)e=l[c],n.objForEachKey(e,(function(e,t){s&&t&&n.isObject(t)?n.isArray(t)?(a[e]=a[e]||[],n.arrForEach(t,(function(t,r){t&&n.isObject(t)?a[e][r]=N(!0,a[e][r],t):a[e][r]=t}))):a[e]=N(!0,a[e],t):a[e]=t}));return a}var D=n.perfNow;function k(e){return 0===e||e>0&&e<=13||32===e}function M(e){return e.length>0}function j(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=D()}function L(e){var r=0;if(null!=e){var i=typeof e;"string"===i?r=1:"number"===i?r=2:"boolean"===i?r=3:i===t.strShimObject&&(r=4,n.isArray(e)?(r=4096,e.length>0&&(r|=L(e[0]))):n.hasOwnProperty(e,"value")&&(r=8192|L(e.value)))}return r}var F={Version:f,FullVersionString:h,strUndefined:n.strUndefined,strObject:n.strObject,Undefined:n.strUndefined,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,objKeys:n.objKeys,toISOString:n.toISOString,isReactNative:n.isReactNative,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,isFunction:n.isFunction,isArray:n.isArray,isObject:n.isObject,strTrim:n.strTrim,isDocumentObjectAvailable:_,isWindowObjectAvailable:y,isValueAssigned:E,getTenantId:b,isBeaconsSupported:n.isBeaconsSupported,isUint8ArrayAvailable:S,isLatency:T,sanitizeProperty:P,getISOString:n.toISOString,useXDomainRequest:n.useXDomainRequest,getCommonSchemaMetaData:C,cookieAvailable:n.areCookiesSupported,disallowsSameSiteNone:n.uaDisallowsSameSiteNone,setCookie:A,deleteCookie:I,getCookie:O,createGuid:R,extend:N,getTime:D,isValueKind:k,isArrayValid:M,objDefineAccessors:n.objDefineAccessors,addPageUnloadEventListener:n.addPageUnloadEventListener,setProcessTelemetryTimings:j,addEventHandler:n.addEventHandler,getFieldValueType:L,strEndsWith:n.strEndsWith,objForEachKey:n.objForEachKey},B={_canUseCookies:void 0,isTypeof:n.isTypeof,isUndefined:n.isUndefined,isNullOrUndefined:n.isNullOrUndefined,hasOwnProperty:n.hasOwnProperty,isFunction:n.isFunction,isObject:n.isObject,isDate:n.isDate,isArray:n.isArray,isError:n.isError,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,toISOString:n.toISOString,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,strTrim:n.strTrim,objCreate:t.objCreateFn,objKeys:n.objKeys,objDefineAccessors:n.objDefineAccessors,addEventHandler:n.addEventHandler,dateNow:n.dateNow,isIE:n.isIE,disableCookies:w,newGuid:n.newGuid,perfNow:n.perfNow,newId:n.newId,randomValue:n.randomValue,random32:n.random32,mwcRandomSeed:n.mwcRandomSeed,mwcRandom32:n.mwcRandom32,generateW3CId:n.generateW3CId},H="version",U="properties",V=function(e){function r(){var t=e.call(this)||this;return t.pluginVersionStringArr=[],t.pluginVersionString="",a(r,t,(function(e,t){(!e.logger||!e.logger.queue)&&(e.logger=new n.DiagnosticLogger({loggingLevelConsole:1})),e.initialize=function(r,i,o,a){n.doPerf(e,(function(){return"AppInsightsCore.initialize"}),(function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var s=r.propertyStorageOverride;if(s&&(!s.getProperty||!s.setProperty))throw new Error("Invalid property storage override passed.");r.channels&&n.arrForEach(r.channels,(function(t){t&&n.arrForEach(t,(function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}))}))}e.getWParam=function(){return typeof document<"u"?0:-1},i&&n.arrForEach(i,(function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(r,i,o,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,u=n.dumpObj(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),c.throwInternal(1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}}),(function(){return{config:r,extensions:i,logger:o,notificationManager:a}}))},e.track=function(r){n.doPerf(e,(function(){return"AppInsightsCore.track"}),(function(){var n=r;if(n){n.timings=n.timings||{},n.timings.trackStart=D(),T(n.latency)||(n.latency=1);var i=n.ext=n.ext||{};i.sdk=i.sdk||{},i.sdk.ver=h;var o=n.baseData=n.baseData||{};o[U]||(o[U]={});var a=o[U];a[H]||(a[H]=""),""!==e.pluginVersionString&&(a[H]=e.pluginVersionString)}t.track(n)}),(function(){return{item:r}}),!r.sync)}})),t}return t.__extendsFn(r,e),r}(n.AppInsightsCore),q=function(e){function r(){var t=e.call(this)||this;return a(r,t,(function(e,t){e.initialize=function(r,i,o,a){r&&!r.endpointUrl&&(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),e.getWParam=function(){return _?0:-1};try{t.initialize(r,i,o,a)}catch(t){n._throwInternal(e.logger,1,514,"Initialization Failed: "+n.dumpObj(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=h}t.track(n)}})),t}return t.__extendsFn(r,e),r}(n.BaseCore),G=n.isFunction;function $(e,t,n){return function(r){e[t]=r,n()}}var z=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch{}}),0)}}function s(e){0===n&&(r=e,n=1,o())}function c(e){0===n&&(r=e,n=2,o())}a(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){i.push((function(){var i;try{(i=1===n?G(t)?t(r):r:G(a)?a(r):r)instanceof e?i.then(s,c):2!==n||G(a)?s(i):c(i)}catch(e){return void c(e)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!G(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(s,c)}catch(e){c(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&G(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o];a&&G(a.then)?(i++,a.then($(r,o,(function(){0==--i&&e(r)})),n)):r[o]=a}0===i&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&G(i.then)?i.then(e,n):setTimeout((function(){e(i)}),0)},i=0;i<t.length;i++)r(i)}catch(e){n(e)}}))},e}(),W=0,K=[],Y=[],Q=[];function X(){return(new Date).getTime()}var J=function(){function e(t,r){var i=0,o=(t||"<unnamed>")+"."+W;function s(e){var t=n.getGlobal();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+o+"] "+e)}function c(e){r&&r.warnToConsole("ESPromiseScheduler["+o+"] "+e)}W++,a(e,this,(function(e){var t=null,n=0;function r(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,a,u){var l=o+"."+n;n++,a&&(l+="-("+a+")");var p=l+"{"+i+"}";i++;var d,f,h,v={evt:null,tm:X(),id:p,isRunning:!1,isAborted:!1};return v.evt=t?(d=v,f=t,h=new z((function(e,t){var n=X()-f.tm,i=f.id;s("["+l+"] is waiting for ["+i+":"+n+" ms] to complete before starting -- ["+Y.length+"] waiting and ["+K.length+"] running"),d.abort=function(e){d.abort=null,r(Y,l),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){r(Y,l),b(d).then(e,t)}),(function(n){r(Y,l),b(d).then(e,t)}))})),Y.push(d),h):b(v),(t=v).evt._schId=p,v.evt;function g(e){for(var t=X(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var a=null;o.abort?(a="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(a)):a="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",c(a),e.splice(i,1),r--}else i++}}function m(e,n){var i=!1,o=r(K,e);if(o||(o=r(Q,e),i=!0),o){o.to&&(clearTimeout(o.to),o.to=null);var a=X()-o.tm;n?i?c("Timed out event ["+e+"] finally complete -- "+a+" ms"):s("Promise ["+e+"] Complete -- "+a+" ms"):(Q.push(o),c("Event ["+e+"] Timed out and removed -- "+a+" ms"))}else s("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),g(K),g(Y),g(Q)}function _(e,t){return function(n){return m(e,!0),t&&t(n),n}}function y(e,t,n,r){t.then((function(t){return t instanceof z?(s("Event ["+e+"] returned a promise -- waiting"),y(e,t,n,r),t):_(e,n)(t)}),_(e,r))}function E(e,t){var n=e.id;return new z((function(r,i){s("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,m(n,!1),i(new Error(t))};var o=t(n);o instanceof z?(u&&(e.to=setTimeout((function(){m(n,!1),i(new Error("Timed out after ["+u+"] ms"))}),u)),y(n,o,(function(t){s("Event ["+n+"] Resolving after "+(X()-e.tm)+" ms"),r(t)}),i)):(s("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function b(t){var n=X();return t.wTm=n-t.tm,t.tm=n,t.isAborted?z.reject(new Error("["+l+"] was aborted")):(K.push(t),E(t,e))}}}))}return e.incomplete=function(){return K},e.waitingToStart=function(){return Y},e}(),Z=function(){function e(e){var t=this,r={},i=[],o=[];function a(e,t){var a,s=r[e];if(s&&(a=s[t]),!a&&null!==a){if(n.isString(e)&&n.isString(t))if(o.length>0){for(var c=0;c<o.length;c++)if(o[c].handleField(e,t)){a={canHandle:!0,fieldHandler:o[c]};break}}else 0===i.length&&(a={canHandle:!0});if(!a&&null!==a)for(a=null,c=0;c<i.length;c++)if(i[c].handleField(e,t)){a={canHandle:!0,handler:i[c],fieldHandler:null};break}s||(s=r[e]={}),s[t]=a}return a}function s(e,t,r,i,o,a){if(e.handler)return e.handler.property(t,r,o,a);if(!n.isNullOrUndefined(o.kind)){if(4096==(4096&i)||!k(o.kind))return null;o.value=o.value.toString()}return u(e.fieldHandler,t,r,i,o)}function c(e,t,n){return E(n)?{value:n}:null}function u(e,r,i,o,a){if(a&&e){var s=e.getSanitizer(r,i,o,a.kind,a.propertyType);if(s)if(4===o){var l={},p=a.value;n.objForEachKey(p,(function(t,n){var o=r+"."+i;if(E(n)){var a=c(0,0,n);(a=u(e,o,t,L(n),a))&&(l[t]=a.value)}})),a.value=l}else{var d={path:r,name:i,type:o,prop:a,sanitizer:t};a=s.call(t,d)}}return a}e&&o.push(e),t.addSanitizer=function(e){e&&(i.push(e),r={})},t.addFieldSanitizer=function(e){e&&(o.push(e),r={})},t.handleField=function(e,t){var n=a(e,t);return!!n&&n.canHandle},t.value=function(e,t,r,i){var o=a(e,t);if(o&&o.canHandle){if(!o||!o.canHandle)return null;if(o.handler)return o.handler.value(e,t,r,i);if(!n.isString(t)||n.isNullOrUndefined(r)||""===r)return null;var u=null,l=L(r);if(8192==(8192&l)){var p=-8193&l;if(!E((u=r).value)||1!==p&&2!==p&&3!==p&&4096!=(4096&p))return null}else 1===l||2===l||3===l||4096==(4096&l)?u=c(0,0,r):4===l&&(u=c(0,0,i?JSON.stringify(r):r));if(u)return s(o,e,t,l,u,i)}return null},t.property=function(e,t,r,i){var o=a(e,t);if(!o||!o.canHandle||!n.isString(t)||n.isNullOrUndefined(r)||!E(r.value))return null;var c=L(r.value);return 0===c?null:s(o,e,t,c,r,i)}}return e.getFieldType=L,e}();e.BaseTelemetryPlugin=n.BaseTelemetryPlugin,e.DiagnosticLogger=n.DiagnosticLogger,e.EventHelper=n.EventHelper,e.EventsDiscardedReason=n.EventsDiscardedReason,e.InternalAppInsightsCore=n.AppInsightsCore,e.InternalBaseCore=n.BaseCore,e.LoggingSeverity=n.LoggingSeverity,e.MinChannelPriorty=n.MinChannelPriorty,e.NotificationManager=n.NotificationManager,e.PerfEvent=n.PerfEvent,e.PerfManager=n.PerfManager,e.ProcessTelemetryContext=n.ProcessTelemetryContext,e.Undefined=n.strUndefined,e._InternalLogMessage=n._InternalLogMessage,e._InternalMessageId=n._InternalMessageId,e.__getRegisteredEvents=n.__getRegisteredEvents,e._throwInternal=n._throwInternal,e.addEventHandler=n.addEventHandler,e.addEventListeners=n.addEventListeners,e.addPageHideEventListener=n.addPageHideEventListener,e.addPageShowEventListener=n.addPageShowEventListener,e.addPageUnloadEventListener=n.addPageUnloadEventListener,e.areCookiesSupported=n.areCookiesSupported,e.arrForEach=n.arrForEach,e.arrIndexOf=n.arrIndexOf,e.arrMap=n.arrMap,e.arrReduce=n.arrReduce,e.attachEvent=n.attachEvent,e.cookieAvailable=n.areCookiesSupported,e.createCookieMgr=n.createCookieMgr,e.createEnumStyle=n.createEnumStyle,e.createProcessTelemetryContext=n.createProcessTelemetryContext,e.createTraceParent=n.createTraceParent,e.createUniqueNamespace=n.createUniqueNamespace,e.createUnloadHandlerContainer=n.createUnloadHandlerContainer,e.dateNow=n.dateNow,e.detachEvent=n.detachEvent,e.disallowsSameSiteNone=n.uaDisallowsSameSiteNone,e.doPerf=n.doPerf,e.dumpObj=n.dumpObj,e.eventOff=n.eventOff,e.eventOn=n.eventOn,e.findW3cTraceParent=n.findW3cTraceParent,e.formatTraceParent=n.formatTraceParent,e.generateW3CId=n.generateW3CId,e.getConsole=n.getConsole,e.getCrypto=n.getCrypto,e.getDocument=n.getDocument,e.getExceptionName=n.getExceptionName,e.getGlobal=n.getGlobal,e.getGlobalInst=n.getGlobalInst,e.getHistory=n.getHistory,e.getIEVersion=n.getIEVersion,e.getISOString=n.toISOString,e.getJSON=n.getJSON,e.getLocation=n.getLocation,e.getMsCrypto=n.getMsCrypto,e.getNavigator=n.getNavigator,e.getPerformance=n.getPerformance,e.getSetValue=n.getSetValue,e.getWindow=n.getWindow,e.hasDocument=n.hasDocument,e.hasHistory=n.hasHistory,e.hasJSON=n.hasJSON,e.hasNavigator=n.hasNavigator,e.hasOwnProperty=n.hasOwnProperty,e.hasWindow=n.hasWindow,e.isArray=n.isArray,e.isBeaconsSupported=n.isBeaconsSupported,e.isBoolean=n.isBoolean,e.isDate=n.isDate,e.isError=n.isError,e.isFetchSupported=n.isFetchSupported,e.isFunction=n.isFunction,e.isIE=n.isIE,e.isNotTruthy=n.isNotTruthy,e.isNullOrUndefined=n.isNullOrUndefined,e.isNumber=n.isNumber,e.isObject=n.isObject,e.isReactNative=n.isReactNative,e.isSampledFlag=n.isSampledFlag,e.isString=n.isString,e.isTruthy=n.isTruthy,e.isTypeof=n.isTypeof,e.isUndefined=n.isUndefined,e.isValidSpanId=n.isValidSpanId,e.isValidTraceId=n.isValidTraceId,e.isValidTraceParent=n.isValidTraceParent,e.isXhrSupported=n.isXhrSupported,e.mergeEvtNamespace=n.mergeEvtNamespace,e.newGuid=n.newGuid,e.newId=n.newId,e.normalizeJsName=n.normalizeJsName,e.objCreate=n.objCreate,e.objDefineAccessors=n.objDefineAccessors,e.objForEachKey=n.objForEachKey,e.objFreeze=n.objFreeze,e.objKeys=n.objKeys,e.objSeal=n.objSeal,e.optimizeObject=n.optimizeObject,e.parseTraceParent=n.parseTraceParent,e.perfNow=n.perfNow,e.proxyAssign=n.proxyAssign,e.proxyFunctionAs=n.proxyFunctionAs,e.proxyFunctions=n.proxyFunctions,e.random32=n.random32,e.randomValue=n.randomValue,e.removeEventHandler=n.removeEventHandler,e.removeEventListeners=n.removeEventListeners,e.removePageHideEventListener=n.removePageHideEventListener,e.removePageShowEventListener=n.removePageShowEventListener,e.removePageUnloadEventListener=n.removePageUnloadEventListener,e.safeGetCookieMgr=n.safeGetCookieMgr,e.safeGetLogger=n.safeGetLogger,e.setEnableEnvMocks=n.setEnableEnvMocks,e.setValue=n.setValue,e.strContains=n.strContains,e.strEndsWith=n.strEndsWith,e.strFunction=n.strFunction,e.strObject=n.strObject,e.strPrototype=n.strPrototype,e.strStartsWith=n.strStartsWith,e.strTrim=n.strTrim,e.strUndefined=n.strUndefined,e.throwError=n.throwError,e.toISOString=n.toISOString,e.useXDomainRequest=n.useXDomainRequest,e.AppInsightsCore=V,e.BaseCore=q,e.CoreUtils=B,e.ESPromise=z,e.ESPromiseScheduler=J,e.EventLatency=c,e.EventPersistence=l,e.EventPropertyType=u,e.FullVersionString=h,e.TraceLevel=p,e.Utils=F,e.ValueKind=s,e.ValueSanitizer=Z,e.Version=f,e._ExtendedInternalMessageId=d,e.createGuid=R,e.deleteCookie=I,e.disableCookies=w,e.extend=N,e.getCommonSchemaMetaData=C,e.getCookie=O,e.getCookieValue=x,e.getFieldValueType=L,e.getTenantId=b,e.getTime=D,e.isArrayValid=M,e.isChromium=function(){return!!n.getGlobalInst("chrome")},e.isDocumentObjectAvailable=_,e.isLatency=T,e.isUint8ArrayAvailable=S,e.isValueAssigned=E,e.isValueKind=k,e.isWindowObjectAvailable=y,e.openXhr=function(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch{}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,v,n),s.open(e,t,!i),n&&a(s,v,n),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=P,e.setCookie=A,e.setProcessTelemetryTimings=j,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,T(),P(),C()):(i=[t,n(623),n(4719),n(2314)],void 0===(o="function"==typeof(r=c)?r.apply(t,i):r)||(e.exports=o))})),A=E(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a="default",s=Object,c=s[i],u=s.assign,l=s.create,p=s.defineProperty,d=c[o],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function v(e){throw new TypeError(e)}function g(e){if(l)return l(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&v("Object prototype may only be an Object:"+e),o[i]=e,new o}var m=(h()||{}).Symbol,_=(h()||{}).Reflect,y=!!_,E="decorate",b="metadata",S="getOwnPropertySymbols",T="iterator",P=u||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])c[o].call(t,i)&&(e[i]=t[i]);return e},C=function(e,t){return(C=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function w(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&v("Class extends value "+String(n)+" is not a constructor or null"),C(e,n),e[i]=null===n?g(n):(r[i]=n[i],new r)}function A(e,t,n,r){void 0===r&&(r=n),l?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=u,e.ObjClass=s,e.ObjCreate=l,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=P,e.__createBindingFn=A,e.__decorateFn=function(e,n,r,i){var o,a=arguments.length,c=a<3?n:null===i?i=s.getOwnPropertyDescriptor(n,r):i;if(y&&typeof _[E]===t)c=_[E](e,n,r,i);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(c=(a<3?o(c):a>3?o(n,r,c):o(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&A(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,i=h()||{};t=P,n=w,r=A,(e=i).__assign||(e.__assign=u||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=i.__assign),__extends||(__extends=i.__extends),__createBinding||(__createBinding=i.__createBinding)},e.__extendsFn=w,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&A(t,e,n);return l?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(y&&_[b]===t)return _[b](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof m===t&&e[m[T]];if(!r)return e;var i,o,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s},e.__restFn=function(e,n){var r={};for(var i in e)d.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&typeof s[S]===t)for(var o=0,a=s[S](e);o<a.length;o++)n.indexOf(a[o])<0&&c.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i},e.__valuesFn=function(e){var n=typeof m===t&&m[T],r=n&&e[n],i=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}:void v(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=g,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=o,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=v,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),I=E(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var i,o=(i=n)&&"object"==typeof i&&"default"in i?i.default:i,a="REAL_TIME",s="NEAR_REAL_TIME",c="BEST_EFFORT",u="POST",l="drop",p="requeue",d="application/x-json-stream",f="cache-control",h="content-type",v="kill-duration",g="time-delta-millis",m="client-version",_="client-id",y="time-delta-to-apply-millis",E="upload-time",b="apikey",S="AuthMsaDeviceTicket",T="AuthXToken",P="msfpc";function C(e){var t=(e.ext||{}).intweb;return t&&r.isValueAssigned(t[P])?t[P]:null}function w(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=C(e[n]);return t}var A=function(){function e(t,n){var i=n?[].concat(n):[],o=this,a=w(i);o.iKey=function(){return t},o.Msfpc=function(){return a||""},o.count=function(){return i.length},o.events=function(){return i},o.addEvent=function(e){return!!e&&(i.push(e),a||(a=C(e)),!0)},o.split=function(n,o){var s;if(n<i.length){var c=i.length-n;r.isNullOrUndefined(o)||(c=o<c?o:c),s=i.splice(n,c),a=w(i)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}(),I=2e6,O=Math.min(I,65e3),x="metadata",R="f",N=/\./,D=function e(t,n,i,a){var s="data",c="baseData",u=!!a,l=n,p={};o(e,this,(function(e){function n(e,t,o,a,s,c,d){r.objForEachKey(e,(function(e,f){var h=null;if(f||r.isValueAssigned(f)){var v=o,g=e,m=s,_=t;if(u&&!a&&N.test(e)){var y=e.split("."),E=y.length;if(E>1){m&&(m=m.slice());for(var b=0;b<E-1;b++){var S=y[b];_=_[S]=_[S]||{},v+="."+S,m&&m.push(S)}g=y[E-1]}}var T=a&&function(e,t){var n=p[e];return void 0===n&&(e.length>=7&&(n=r.strStartsWith(e,"ext.metadata")||r.strStartsWith(e,"ext.web")),p[e]=n),n}(v);if(h=!T&&l&&l.handleField(v,g)?l.value(v,g,f,i):r.sanitizeProperty(g,f,i)){var P=h.value;if(_[g]=P,c&&c(m,g,h),d&&"object"==typeof P&&!r.isArray(P)){var C=m;C&&(C=C.slice()).push(g),n(f,P,v+"."+g,a,C,c,d)}}}}))}e.createPayload=function(e,t,n,r,i,o){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:o,sendReason:i}},e.appendPayload=function(n,i,o){var a=n&&i&&!n.overflow;return a&&r.doPerf(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=i.events(),a=n.payloadBlob,s=n.numEvents,c=!1,u=[],l=[],p=n.isBeacon,d=p?65e3:3984588,f=p?O:I,h=0,v=0;h<t.length;){var g=t[h];if(g){if(s>=o){n.overflow=i.split(h);break}var m=e.getEventBlob(g);if(m&&m.length<=f){var _=m.length;if(a.length+_>d){n.overflow=i.split(h);break}a&&(a+="\n"),a+=m,++v>20&&(a.substr(0,1),v=0),c=!0,s++}else m?u.push(g):l.push(g),t.splice(h,1),h--}h++}if(u&&u.length>0&&n.sizeExceed.push(A.create(i.iKey(),u)),l&&l.length>0&&n.failedEvts.push(A.create(i.iKey(),l)),c){n.batches.push(i),n.payloadBlob=a,n.numEvents=s;var y=i.iKey();-1===r.arrIndexOf(n.apiKeys,y)&&n.apiKeys.push(y)}}),(function(){return{payload:n,theBatch:{iKey:i.iKey(),evts:i.events()},max:o}})),a},e.getEventBlob=function(e){try{return r.doPerf(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+r.getTenantId(e.iKey);var i={},o=e.ext;o&&(t.ext=i,r.objForEachKey(o,(function(e,t){n(t,i[e]={},"ext."+e,!0,null,null,!0)})));var a=t[s]={};a.baseType=e.baseType;var u=a[c]={};return n(e.baseData,u,c,!1,[c],(function(e,t,n){k(i,e,t,n)}),!0),n(e.data,a,s,!1,[],(function(e,t,n){k(i,e,t,n)}),!0),JSON.stringify(t)}),(function(){return{item:e}}))}catch{return null}}}))};function k(e,t,n,i){if(i&&e){var o=r.getCommonSchemaMetaData(i.value,i.kind,i.propertyType);if(o>-1){var a=e[x];a||(a=e[x]={f:{}});var s=a[R];if(s||(s=a[R]={}),t)for(var c=0;c<t.length;c++){var u=t[c];s[u]||(s[u]={f:{}});var l=s[u][R];l||(l=s[u][R]={}),s=l}s=s[n]={},r.isArray(i.value)?s.a={t:o}:s.t=o}}}function M(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var j,L=function e(){var t={};o(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var i=function(e){var t=[];return e&&r.arrForEach(e,(function(e){t.push(r.strTrim(e))})),t}(e.split(","));if("this-request-only"===n)return i;for(var o=1e3*parseInt(n,10),a=0;a<i.length;++a)t[i[a]]=r.dateNow()+o}catch{return[]}return[]},e.isTenantKilled=function(e){var n=t,i=r.strTrim(e);return void 0!==n[i]&&n[i]>r.dateNow()||(delete n[i],!1)}}))},F=function e(){var t=!0,n=!0,r=!0,i="use-collector-delta",a=!1;o(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){a||(e?(i=e,n=!0,a=!0):n=!1,t=!0)}}))},B="sendAttempt",H="&NoResponseBody=true",U=((j={})[1]=p,j[100]=p,j[200]="sent",j[8004]=l,j[8003]=l,j),V={},q={};function G(e,t,n){V[e]=t,!1!==n&&(q[t]=e)}function $(e){try{return e.responseText}catch{}return""}function z(e,t){var n=!1;if(e&&t){var i=r.objKeys(e);if(i&&i.length>0)for(var o=t.toLowerCase(),a=0;a<i.length;a++){var s=i[a];if(s&&r.hasOwnProperty(t,s)&&s.toLowerCase()===o){n=!0;break}}}return n}function W(e,t,n,r){t&&n&&n.length>0&&(r&&V[t]?(e.hdrs[V[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}G(S,S,!1),G(m,m),G(_,"Client-Id"),G(b,b),G(y,y),G(E,E),G(T,T);var K=function e(t,n,i,a,s){this._responseHandlers=[];var c,p,S,T,C,w,A="?cors=true&"+h.toLowerCase()+"="+d,I=new L,O=!1,x=new F,R=!1,N=0,k=!0,j=[],V={},G=[],K=null,Y=!1,Q=!1,X=!1;o(e,this,(function(e){var o=!0;function L(e,t){for(var n=0,i=null,o=0;null==i&&o<e.length;)1===(n=e[o])?r.useXDomainRequest()?i=F:r.isXhrSupported()&&(i=Z):2===n&&r.isFetchSupported(t)?i=J:R&&3===n&&r.isBeaconsSupported()&&(i=te),o++;return i?{_transport:n,_isSync:t,sendPOST:i}:null}function F(e,t,n){var r=new XDomainRequest;r.open(u,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=$(r);ee(t,200,{},e),de(e)},r.onerror=function(){ee(t,400,{})},r.ontimeout=function(){ee(t,500,{})},r.onprogress=function(){},n?r.send(e.data):s.set((function(){r.send(e.data)}),0)}function J(e,t,n){var i,a=e.urlString,c=!1,l=!1,p=((i={body:e.data,method:u}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,i);n&&(p.keepalive=!0,2===e._sendReason&&(c=!0,a+=H)),o&&(p.credentials="include"),e.headers&&r.objKeys(e.headers).length>0&&(p.headers=e.headers),fetch(a,p).then((function(e){var n={},r="";e.headers&&e.headers.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),l||(l=!0,ee(t,e.status,n,r),de(r))})).catch((function(e){l||(l=!0,ee(t,0,{}))})),c&&!l&&(l=!0,ee(t,200,{})),!l&&e.timeout>0&&s.set((function(){l||(l=!0,ee(t,500,{}))}),e.timeout)}function Z(e,t,n){var i=e.urlString;function a(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var i=t.getResponseHeader(n);i&&(e[n]=r.strTrim(i))}return e}function s(e,n){ee(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(r.isString(e)){var n=r.strTrim(e).split(/[\r\n]+/);r.arrForEach(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var i=r.strTrim(e.substring(0,n)).toLowerCase(),o=r.strTrim(e.substring(n+1));t[i]=o}else t[r.strTrim(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=a(t,e,g),t=a(t,e,v),t=a(t,e,"kill-duration-seconds")),t}(e),n)}n&&e.disableXhrSync&&(n=!1);var c=r.openXhr(u,i,o,!0,n,e.timeout);r.objForEachKey(e.headers,(function(e,t){c.setRequestHeader(e,t)})),c.onload=function(){var e=$(c);s(c,e),de(e)},c.onerror=function(){s(c)},c.ontimeout=function(){s(c)},c.send(e.data)}function ee(e,t,n,i){try{e(t,n,i)}catch(e){r._throwInternal(c.diagLog(),2,518,r.dumpObj(e))}}function te(e,t,n){var i=200,o=e._thePayload,a=e.urlString+H;try{var s=r.getNavigator();if(!s.sendBeacon(a,e.data))if(o){var u=[];r.arrForEach(o.batches,(function(e){if(u&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(a,K.getEventBlob(t[n]))){u.push(e.split(n));break}}else u.push(e.split(0))})),fe(u,8003,o.sendType,!0)}else i=0}catch(e){c.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+r.dumpObj(e)),i=0}finally{ee(t,i,{},"")}}function ne(e){return 2===e||3===e}function re(e){return Q&&ne(e)&&(e=2),e}function ie(){return!O&&N<n}function oe(){var e=G;return G=[],e}function ae(e,t,n){var r=!1;return e&&e.length>0&&!O&&p[t]&&K&&(r=0!==t||ie()&&(n>0||x.allowRequestSending())),r}function se(e){var t={};return e&&r.arrForEach(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function ce(e,n,i,o,a){if(e&&0!==e.length){if(O)return void fe(e,1,o);o=re(o);try{var s=e,u=0!==o;r.doPerf(S,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var c=[],l=null,d=r.getTime(),f=p[o]||(u?p[1]:p[0]),h=(Q||ne(o)||f&&3===f._transport)&&!k&&R&&r.isBeaconsSupported();ae(e,o,n);){var v=e.shift();v&&v.count()>0&&(I.isTenantKilled(v.iKey())?c.push(v):(l=l||K.createPayload(n,i,u,h,a,o),K.appendPayload(l,v,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,le(l,d,r.getTime(),a),d=r.getTime(),l=null):(le(l,d,r.getTime(),a),d=r.getTime(),e=[v].concat(e),l=null)))}l&&le(l,d,r.getTime(),a),e.length>0&&(G=e.concat(G)),fe(c,8004,o)}),(function(){return{batches:se(s),retryCount:n,isTeardown:i,isSynchronous:u,sendReason:a,useSendBeacon:ne(o),sendType:o}}),!u)}catch(e){r._throwInternal(c.diagLog(),2,48,"Unexpected Exception sending batch: "+r.dumpObj(e))}}}function ue(e,t,n){e[t]=e[t]||{},e[t][c.identifier]=n}function le(t,n,o,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var s=!!e.sendHook,u=p[t.sendType];!ne(t.sendType)&&t.isBeacon&&2===t.sendReason&&(u=p[2]||p[3]||u);var l=X;(t.isBeacon||3===u._transport)&&(l=!1);var T=function(e,t){var n={url:A,hdrs:{},useHdrs:!1};t?(n.hdrs=r.extend(n.hdrs,V),n.useHdrs=r.objKeys(n.hdrs).length>0):r.objForEachKey(V,(function(e,t){q[e]?W(n,q[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),W(n,_,"NO_AUTH",t),W(n,m,r.FullVersionString,t);var i="";r.arrForEach(e.apiKeys,(function(e){i.length>0&&(i+=","),i+=e})),W(n,b,i,t),W(n,E,r.dateNow().toString(),t);var o=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return""}(e);if(r.isValueAssigned(o)&&(n.url+="&ext.intweb.msfpc="+o),x.shouldAddClockSkewHeaders()&&W(n,y,x.getClockSkewHeaderValue(),t),S.getWParam){var a=S.getWParam();a>=0&&(n.url+="&w="+a)}for(var s=0;s<j.length;s++)n.url+="&"+j[s].name+"="+j[s].value;return n}(t,l);l=l||T.useHdrs;var P=r.getTime();r.doPerf(S,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var p=0;p<t.batches.length;p++)for(var m=t.batches[p].events(),_=0;_<m.length;_++){var y=m[_];if(Y){var E=y.timings=y.timings||{};ue(E,"sendEventStart",P),ue(E,"serializationStart",n),ue(E,"serializationCompleted",o)}y[B]>0?y[B]++:y[B]=1}fe(t.batches,1e3+(a||0),t.sendType,!0);var b={data:t.payloadBlob,urlString:T.url,headers:T.hdrs,_thePayload:t,_sendReason:a,timeout:C};r.isUndefined(w)||(b.disableXhrSync=!!w),l&&(z(b.headers,f)||(b.headers[f]="no-cache, no-store"),z(b.headers,h)||(b.headers[h]=d));var A=null;u&&(A=function(n){x.firstRequestSent();var o=function(n,o){!function(t,n,o,a){var s=9e3,u=null,l=!1,p=!1;try{var d=!0;if(typeof t!==r.strUndefined){if(n){x.setClockSkew(n[g]);var f=n[v]||n["kill-duration-seconds"];r.arrForEach(I.setKillSwitchTenants(n["kill-tokens"],f),(function(e){r.arrForEach(o.batches,(function(t){if(t.iKey()===e){u=u||[];var n=t.split(0);o.numEvents-=n.count(),u.push(n)}}))}))}if(200==t||204==t)return void(s=200);(!function(e){return!(e>=300&&e<500&&408!=e&&429!=e||501==e||505==e)}(t)||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<i?(l=!0,pe((function(){0===o.sendType&&N--,ce(o.batches,h+1,o.isTeardown,Q?2:o.sendType,5)}),Q,M(h))):(p=!0,Q&&(s=8001)))}}finally{l||(x.setClockSkew(),function(t,n,i,o){try{o&&c._backOffTransmission(),200===n&&(!o&&!t.isSync&&c._clearBackOff(),function(e){if(Y){var t=r.getTime();r.arrForEach(e,(function(e){e&&e.count()>0&&function(e,t){Y&&r.arrForEach(e,(function(e){ue(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),fe(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(N--,5!==i&&e.sendQueuedRequests(t.sendType,i))}}(o,s,a,p)),fe(u,8004,o.sendType)}}(n,o,t,a)},s=t.isTeardown||t.isSync;try{u.sendPOST(n,o,s),e.sendListener&&e.sendListener(b,n,s,t.isBeacon)}catch(e){c.diagLog().warnToConsole("Unexpected exception sending payload. Ex:"+r.dumpObj(e)),ee(o,0,{})}}),r.doPerf(S,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(A)if(0===t.sendType&&N++,s&&!t.isBeacon&&3!==u._transport){var n={data:b.data,urlString:b.urlString,headers:r.extend({},b.headers),timeout:b.timeout,disableXhrSync:b.disableXhrSync},i=!1;r.doPerf(S,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){i=!0,!k&&!e._thePayload&&(e._thePayload=e._thePayload||b._thePayload,e._sendReason=e._sendReason||b._sendReason),A(e)}),t.isSync||t.isTeardown)}catch{i||A(b)}}))}else A(b)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:o,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&fe(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&fe(t.failedEvts,8002,t.sendType)}function pe(e,t,n){t?e():s.set(e,n)}function de(t){var n=e._responseHandlers;try{for(var i=0;i<n.length;i++)try{n[i](t)}catch(e){r._throwInternal(c.diagLog(),1,519,"Response handler failed: "+e)}if(t){var o=JSON.parse(t);r.isValueAssigned(o.webResult)&&r.isValueAssigned(o.webResult[P])&&T.set("MSFPC",o.webResult[P],31536e3)}}catch{}}function fe(e,t,n,i){if(e&&e.length>0&&a){var o=a[function(e){var t=U[e];return r.isValueAssigned(t)||(t="oth",e>=9e3&&e<=9999?t="rspFail":e>=8e3&&e<=8999?t=l:e>=1e3&&e<=1999&&(t="send")),t}(t)];if(o){var s=0!==n;r.doPerf(S,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){pe((function(){try{o.call(a,e,t,s,n)}catch(e){r._throwInternal(c.diagLog(),1,74,"send request notification failed: "+e)}}),i||s,0)}),(function(){return{batches:se(e),reason:t,isSync:s,sendSync:i,sendType:n}}),!s)}}}e.initialize=function(e,t,n,i,a){var s;a||(a={}),A=e+A,X=!!r.isUndefined(a.avoidOptions)||!a.avoidOptions,S=t,T=t.getCookieMgr(),Y=!S.config.disableEventTimings;var u=!!S.config.enableCompoundKey;c=n;var l=a.valueSanitizer,d=a.stringifyObjects;r.isUndefined(a.enableCompoundKey)||(u=!!a.enableCompoundKey),C=a.xhrTimeout,w=a.disableXhrSync,R=!r.isReactNative(),K=new D(S,l,d,u);var f=i,h=a.alwaysUseXhrOverride?i:null,v=a.alwaysUseXhrOverride?i:null;if(!i){k=!1;var g=r.getLocation();g&&g.protocol&&"file:"===g.protocol.toLowerCase()&&(o=!1);var m=[];m=r.isReactNative()?[2,1]:[1,2,3];var _=a.transports;_&&(r.isNumber(_)?m=[_].concat(m):r.isArray(_)&&(m=_.concat(m))),i=L(m,!1),f=L(m,!0),i||c.diagLog().warnToConsole("No available transport to send events")}(s={})[0]=i,s[1]=f||L([1,2,3],!0),s[2]=h||L([3,2],!0)||f||L([1],!0),s[3]=v||L([2,3],!0)||f||L([1],!0),p=s},e._getDbgPlgTargets=function(){return[p[0],I,K,p]},e.addQueryStringParameter=function(e,t){for(var n=0;n<j.length;n++)if(j[n].name===e)return void(j[n].value=t);j.push({name:e,value:t})},e.addHeader=function(e,t){V[e]=t},e.canSendRequest=function(){return ie()&&x.allowRequestSending()},e.sendQueuedRequests=function(e,t){r.isUndefined(e)&&(e=0),Q&&(e=re(e),t=2),ae(G,e,0)&&ce(oe(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!O&&0===N&&0===G.length},e.setUnloading=function(e){Q=e},e.addBatch=function(e){if(e&&e.count()>0){if(I.isTenantKilled(e.iKey()))return!1;G.push(e)}return!0},e.teardown=function(){G.length>0&&ce(oe(),0,!0,2,2)},e.pause=function(){O=!0},e.resume=function(){O=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&(r.isNullOrUndefined(t)&&(t=1),Q&&(t=re(t),n=2),ce([e],0,!1,t,n||0))}}))};function Y(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Q(e){clearTimeout(e)}function X(e,t){return{set:e||Y,clear:t||Q}}var J="eventsDiscarded",Z="overrideInstrumentationKey",ee="maxEventRetryAttempts",te="maxUnloadEventRetryAttempts",ne=function(e){function n(){var t=e.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="3.2.3";var i,u,l,p,d,f,h,v,g=!1,m=[],_=null,y=!1,E=0,b=500,T=0,P=1e4,C={},w=a,I=null,O=null,x=0,R=0,N={},D=-1,k=!0,j=!1,L=6,F=2;return o(n,t,(function(e,t){function n(e){"beforeunload"!==(e||r.getWindow().event).type&&(j=!0,l.setUnloading(j)),z(2,2)}function o(e){j=!1,l.setUnloading(j)}function B(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,k&&(e.ext=r.optimizeObject(e.ext),e.baseData&&(e.baseData=r.optimizeObject(e.baseData)),e.data&&(e.data=r.optimizeObject(e.data))),e.sync)if(x||y)e.latency=3,e.sync=!1;else if(l)return k&&(e=r.optimizeObject(e)),void l.sendSynchronousBatch(A.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,i=T,o=P;4===n&&(i=E,o=b);var a=!1;if(i<o)a=!Q(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),a=!0,function(e,t,n,i){for(;n<=t;){var o=W(e,t,!0);if(o&&o.count()>0){var a=o.split(0,i),s=a.count();if(s>0)return 4===n?E-=s:T-=s,le(J,[a],r.EventsDiscardedReason.QueueFull),!0}n++}return ne(),!1}(e.iKey,e.latency,s,c)&&(a=!Q(e,t))}a&&ue(J,[e],r.EventsDiscardedReason.QueueFull)}function H(e,t,n){var r=re(e,t,n);return l.sendQueuedRequests(t,n),r}function U(){return T>0}function V(){if(D>=0&&re(D,0,f)&&l.sendQueuedRequests(0,f),E>0&&!O&&!y){var e=C[w][2];e>=0&&(O=G((function(){O=null,H(4,0,1),V()}),e))}var t=C[w][1];!I&&!_&&t>=0&&!y&&(U()?I=G((function(){I=null,H(0===R?3:1,0,1),R++,R%=2,V()}),t):R=0)}function q(){i=null,g=!1,m=[],_=null,y=!1,E=0,b=500,T=0,P=1e4,C={},w=a,I=null,O=null,x=0,R=0,u=null,N={},p=void 0,d=0,D=-1,f=null,k=!0,j=!1,L=6,F=2,h=null,v=X(),l=new K(500,2,1,{requeue:se,send:pe,sent:de,drop:fe,rspFail:he,oth:ve},v),ae(),N[4]={batches:[],iKeyMap:{}},N[3]={batches:[],iKeyMap:{}},N[2]={batches:[],iKeyMap:{}},N[1]={batches:[],iKeyMap:{}},ge()}function G(e,t){0===t&&x&&(t=1);var n=1e3;return x&&(n=M(x-1)),v.set(e,t*n)}function $(){return null!==I&&(v.clear(I),I=null,R=0,!0)}function z(e,t){$(),_&&(v.clear(_),_=null),y||H(1,e,t)}function W(e,t,n){var r=N[t];r||(r=N[t=1]);var i=r.iKeyMap[e];return!i&&n&&(i=A.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function Y(t,n){l.canSendRequest()&&!x&&(p>0&&T>p&&(n=!0),n&&null==_&&e.flush(t,null,20))}function Q(e,t){k&&(e=r.optimizeObject(e));var n=e.latency,i=W(e.iKey,n,!0);return!!i.addEvent(e)&&(4!==n?(T++,t&&0===e.sendAttempt&&Y(!e.sync,d>0&&i.count()>=d)):E++,!0)}function ne(){for(var e=0,t=0,n=function(n){var i=N[n];i&&i.batches&&r.arrForEach(i.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},i=1;i<=4;i++)n(i);T=t,E=e}function re(t,n,i){var o=!1,a=0===n;return!a||l.canSendRequest()?r.doPerf(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var i=N[n];i&&i.batches&&i.batches.length>0&&(r.arrForEach(i.batches,(function(t){l.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?E-=t.count():T-=t.count()})),i.batches=[],i.iKeyMap={}),n--}e.length>0&&ue(J,e,r.EventsDiscardedReason.KillSwitch),o&&D>=t&&(D=-1,f=0)}),(function(){return{latency:t,sendType:n,sendReason:i}}),!a):(D=D>=0?Math.min(D,t):t,f=Math.max(f,i)),o}function ie(e,t){H(1,0,t),ne(),oe((function(){e&&e(),m.length>0?_=G((function(){_=null,ie(m.shift(),t)}),0):(_=null,V())}))}function oe(e){l.isCompletelyIdle()?e():_=G((function(){_=null,oe(e)}),.25)}function ae(){(C={})[a]=[2,1,0],C[s]=[6,3,0],C[c]=[18,9,0]}function se(t,n){var i=[],o=L;j&&(o=F),r.arrForEach(t,(function(t){t&&t.count()>0&&r.arrForEach(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(r.setProcessTelemetryTimings(t,e.identifier),B(t,!1)):i.push(t))}))})),i.length>0&&ue(J,i,r.EventsDiscardedReason.NonRetryableStatus),j&&z(2,2)}function ce(t,n){var i=e._notificationManager||{},o=i[t];if(o)try{o.apply(i,n)}catch(n){r._throwInternal(e.diagLog(),1,74,t+" notification failed: "+n)}}function ue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&ce(e,[t].concat(n))}function le(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&r.arrForEach(t,(function(t){t&&t.count()>0&&ce(e,[t.events()].concat(n))}))}function pe(e,t,n){e&&e.length>0&&ce("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function de(e,t){le("eventsSent",e,t),V()}function fe(e,t){le(J,e,t>=8e3&&t<=8999?t-8e3:r.EventsDiscardedReason.Unknown)}function he(e){le(J,e,r.EventsDiscardedReason.NonRetryableStatus),V()}function ve(e,t){le(J,e,r.EventsDiscardedReason.Unknown),V()}function ge(){d=i&&i.disableAutoBatchFlushLimit?0:Math.max(1500,P/6)}q(),e._getDbgPlgTargets=function(){return[l]},e.initialize=function(a,s,c){r.doPerf(s,(function(){return"PostChannel:initialize"}),(function(){var d=s;t.initialize(a,s,c);try{s.addUnloadCb,h=r.mergeEvtNamespace(r.createUniqueNamespace(e.identifier),s.evtNamespace&&s.evtNamespace());var f=e._getTelCtx();a.extensionConfig[e.identifier]=a.extensionConfig[e.identifier]||{},i=f.getExtCfg(e.identifier),v=X(i.setTimeoutOverride,i.clearTimeoutOverride),k=!i.disableOptimizeObj&&r.isChromium(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return i.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(d),i.eventsLimitInMem>0&&(P=i.eventsLimitInMem),i.immediateEventLimit>0&&(b=i.immediateEventLimit),i.autoFlushEventsLimit>0&&(p=i.autoFlushEventsLimit),r.isNumber(i[ee])&&(L=i[ee]),r.isNumber(i[te])&&(F=i[te]),ge(),i.httpXHROverride&&i.httpXHROverride.sendPOST&&(u=i.httpXHROverride),r.isValueAssigned(a.anonCookieName)&&l.addQueryStringParameter("anoncknm",a.anonCookieName),l.sendHook=i.payloadPreprocessor,l.sendListener=i.payloadListener;var g=i.overrideEndpointUrl?i.overrideEndpointUrl:a.endpointUrl;e._notificationManager=a.extensionConfig.NotificationManager,l.initialize(g,e.core,e,u,i);var m=a.disablePageUnloadEvents||[];r.addPageUnloadEventListener(n,m,h),r.addPageHideEventListener(n,m,h),r.addPageShowEventListener(o,a.disablePageShowEvents,h)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{coreConfig:a,core:s,extensions:c}}))},e.processTelemetry=function(t,n){r.setProcessTelemetryTimings(t,e.identifier);var o=(n=e._getTelCtx(n)).getExtCfg(e.identifier),a=!!i.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;!a&&!g&&(i[Z]&&(s.iKey=i[Z]),o&&o[Z]&&(s.iKey=o[Z]),B(s,!0),j?z(2,2):V()),e.processNext(s,n)},e._doTeardown=function(e,t){z(2,2),g=!0,l.teardown(),r.removePageUnloadEventListener(null,h),r.removePageHideEventListener(null,h),r.removePageShowEventListener(null,h),q()},e.setEventQueueLimits=function(e,t){P=e>0?e:1e4,p=t>0?t:0,ge();var n=T>e;if(!n&&d>0)for(var i=1;!n&&i<=3;i++){var o=N[i];o&&o.batches&&r.arrForEach(o.batches,(function(e){e&&e.count()>=d&&(n=!0)}))}Y(!0,n)},e.pause=function(){$(),y=!0,l.pause()},e.resume=function(){y=!1,l.resume(),V()},e.addResponseHandler=function(e){l._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){$(),ae(),w=a,V(),r.objForEachKey(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var i=t[0]/t[1];t[0]=Math.ceil(i)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),C[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!y)if(n=n||1,e)null==_?($(),re(1,0,n),_=G((function(){_=null,ie(t,n)}),0)):m.push(t);else{var r=$();H(1,1,n),null!=t&&t(),r&&V()}},e.setMsaAuthTicket=function(e){l.addHeader(S,e)},e.hasEvents=U,e._setTransmitProfile=function(e){w!==e&&void 0!==C[e]&&($(),w=e,V())},e._backOffTransmission=function(){x<4&&(x++,$(),V())},e._clearBackOff=function(){x&&(x=0,$(),V())},r.objDefineAccessors(e,"_setTimeoutOverride",(function(){return v.set}),(function(e){v=X(e,v.clear)})),r.objDefineAccessors(e,"_clearTimeoutOverride",(function(){return v.clear}),(function(e){v=X(v.set,e)}))})),t}return t.__extendsFn(n,e),n}(r.BaseTelemetryPlugin);e.BE_PROFILE=c,e.NRT_PROFILE=s,e.PostChannel=ne,e.RT_PROFILE=a,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,A(),C(),w()):(i=[t,n(623),n(2314),n(9644)],void 0===(o="function"==typeof(r=c)?r.apply(t,i):r)||(e.exports=o))})),O=E(((e,t)=>{"use strict";var n=function(){function e(){}return e.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.enableDebug&&console.info(e.TAG+t,n)},e.warn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.disableWarnings||console.warn(e.TAG+t,n)},e.enableDebug=!1,e.disableWarnings=!1,e.disableErrors=!1,e.TAG="ApplicationInsights:",e}();t.exports=n})),x=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncScopeManager=e.OpenTelemetryScopeManagerWrapper=void 0;var r=wr(),i=n(2361),o=function(){function e(){}return e.prototype.active=function(){var e=this,n=r.CorrelationContextManager.getCurrentContext();return t(t({},n),{getValue:function(t){return e._activeSymbol?t===e._activeSymbol&&n:(e._activeSymbol=t,n)},setValue:function(){}})},e.prototype.with=function(t,n){var i=t.parentSpanId,o=t.name,a=e._spanToContext(t,i,o);return r.CorrelationContextManager.runWithContext(a,n)()},e.prototype.bind=function(e){return"function"==typeof e?r.CorrelationContextManager.wrapCallback(e):(e instanceof i.EventEmitter&&r.CorrelationContextManager.wrapEmitter(e),e)},e.prototype.enable=function(){return r.CorrelationContextManager.enable(),this},e.prototype.disable=function(){return r.CorrelationContextManager.disable(),this},e._spanToContext=function(e,n,i){var o=n?"|"+e.spanContext().traceId+"."+n+".":e.spanContext().traceId,a=t(t({},e.spanContext()),{traceFlags:e.spanContext().traceFlags});return r.CorrelationContextManager.spanToContextObject(a,o,i)},e}();e.OpenTelemetryScopeManagerWrapper=o,e.AsyncScopeManager=new o})),R=E(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var v=s++;a[v]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var g=s++;a[g]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var _=s++;a[_]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var y=s++,E="v?"+a[p]+a[v]+"?"+a[_]+"?";a[y]="^"+E+"$";var b="[v=\\s]*"+a[d]+a[g]+"?"+a[_]+"?",S=s++;a[S]="^"+b+"$";var T=s++;a[T]="((?:<|>)?=?)";var P=s++;a[P]=a[u]+"|x|X|\\*";var C=s++;a[C]=a[c]+"|x|X|\\*";var w=s++;a[w]="[v=\\s]*("+a[C]+")(?:\\.("+a[C]+")(?:\\.("+a[C]+")(?:"+a[v]+")?"+a[_]+"?)?)?";var A=s++;a[A]="[v=\\s]*("+a[P]+")(?:\\.("+a[P]+")(?:\\.("+a[P]+")(?:"+a[g]+")?"+a[_]+"?)?)?";var I=s++;a[I]="^"+a[T]+"\\s*"+a[w]+"$";var O=s++;a[O]="^"+a[T]+"\\s*"+a[A]+"$";var x=s++;a[x]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=s++;a[R]="(?:~>?)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",o[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[w]+"$";var k=s++;a[k]="^"+a[R]+a[A]+"$";var M=s++;a[M]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[M]+"\\s+",o[j]=new RegExp(a[j],"g");var L=s++;a[L]="^"+a[M]+a[w]+"$";var F=s++;a[F]="^"+a[M]+a[A]+"$";var B=s++;a[B]="^"+a[T]+"\\s*("+b+")$|^$";var H=s++;a[H]="^"+a[T]+"\\s*("+E+")$|^$";var U=s++;a[U]="(\\s*)"+a[T]+"\\s*("+b+"|"+a[w]+")",o[U]=new RegExp(a[U],"g");var V=s++;a[V]="^\\s*("+a[w]+")\\s+-\\s+("+a[w]+")\\s*$";var q=s++;a[q]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var G,$=s++;for(a[$]="(<|>)?=?\\s*\\*",G=0;G<35;G++)n(G,a[G]),o[G]||(o[G]=new RegExp(a[G]));function z(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[S]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[S]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=z,e.valid=function(e,t){var n=z(e,t);return n?n.version:null},e.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),Y(this.major,e.major)||Y(this.minor,e.minor)||Y(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return Y(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=z(e),r=z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=Y;var K=/^[0-9]+$/;function Y(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new W(e,n).compare(new W(t,n))}function X(e,t,n){return Q(e,t,n)>0}function J(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return X(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return Y(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=Q,e.compareLoose=function(e,t){return Q(e,t,!0)},e.rcompare=function(e,t,n){return Q(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=X,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,u,l,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ue(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=X,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=X,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],p=null,d=null;if(l.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[B]:o[H],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[V];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[U],"$1$2$3"),n("comparator trim",e,o[U]),e=(e=(e=e.replace(o[N],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=t?o[B]:o[H],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[F]:o[L];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[O]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),u=c||se(o),l=u||se(a);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},e.satisfies=le,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||X(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[x]);return null==t?null:z(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),N=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makePatchingRequire=void 0;var t=n(1017),r=R(),i=n(8188),o=Object.keys(process.binding("natives")),a=i.prototype.require;e.makePatchingRequire=function(e){var n={};return function(s){var c=a.apply(this,arguments);if(e[s]){var u=i._resolveFilename(s,this);if(n.hasOwnProperty(u))return n[u];var l=void 0;if(o.indexOf(s)<0)try{l=a.call(this,t.join(s,"package.json")).version}catch{return c}else l=process.version.substring(1);var p=l.indexOf("-");p>=0&&(l=l.substring(0,p));for(var d=c,f=0,h=e[s];f<h.length;f++){var v=h[f];r.satisfies(l,v.versionSpecifier)&&(d=v.patch(d,u))}return n[u]=d}return c}}})),D=E(((e,t)=>{t.exports={name:"diagnostic-channel",version:"1.0.0",main:"./dist/src/channel.js",types:"./dist/src/channel.d.ts",scripts:{build:"tsc",lint:"tslint -c tslint.json -p tsconfig.json",clean:"rimraf ./dist",test:"mocha ./dist/tests/**/*.js"},homepage:"https://github.com/Microsoft/node-diagnostic-channel",bugs:{url:"https://github.com/Microsoft/node-diagnostic-channel/issues"},repository:{type:"git",url:"https://github.com/Microsoft/node-diagnostic-channel.git"},description:"Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers",dependencies:{semver:"^5.3.0"},devDependencies:{"@types/mocha":"^2.2.40","@types/node":"~8.0.0",mocha:"^3.2.0",rimraf:"^2.6.1",tslint:"^5.0.0",typescript:"4.1.2"},files:["dist/src/**/*.d.ts","dist/src/**/*.js","LICENSE","README.md","package.json"],license:"MIT"}})),k=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.channel=e.makePatchingRequire=void 0;var t=N(),r=N();Object.defineProperty(e,"makePatchingRequire",{enumerable:!0,get:function(){return r.makePatchingRequire}});var i=function(e){return!0},o=function(){function e(){this.version=D().version,this.subscribers={},this.contextPreservationFunction=function(e){return e},this.knownPatches={},this.currentlyPublishing=!1}return e.prototype.shouldPublish=function(e){var t=this.subscribers[e];return!!t&&t.some((function(e){var t=e.filter;return!t||t(!1)}))},e.prototype.publish=function(e,t){if(!this.currentlyPublishing){var n=this.subscribers[e];if(n){var r={timestamp:Date.now(),data:t};this.currentlyPublishing=!0,n.forEach((function(e){var t=e.listener,n=e.filter;try{n&&n(!0)&&t(r)}catch{}})),this.currentlyPublishing=!1}}},e.prototype.subscribe=function(e,t,n){void 0===n&&(n=i),this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push({listener:t,filter:n})},e.prototype.unsubscribe=function(e,t,n){void 0===n&&(n=i);var r=this.subscribers[e];if(r)for(var o=0;o<r.length;++o)if(r[o].listener===t&&r[o].filter===n)return r.splice(o,1),!0;return!1},e.prototype.reset=function(){var e=this;this.subscribers={},this.contextPreservationFunction=function(e){return e},Object.getOwnPropertyNames(this.knownPatches).forEach((function(t){return delete e.knownPatches[t]}))},e.prototype.bindToContext=function(e){return this.contextPreservationFunction(e)},e.prototype.addContextPreservation=function(e){var t=this.contextPreservationFunction;this.contextPreservationFunction=function(n){return e(t(n))}},e.prototype.registerMonkeyPatch=function(e,t){this.knownPatches[e]||(this.knownPatches[e]=[]),this.knownPatches[e].push(t)},e.prototype.getPatchesObject=function(){return this.knownPatches},e}();global.diagnosticsSource||(global.diagnosticsSource=new o,n(8188).prototype.require=t.makePatchingRequire(global.diagnosticsSource.getPatchesObject())),e.channel=global.diagnosticsSource})),M=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),j=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._globalThis=void 0,e._globalThis="object"==typeof globalThis?globalThis:global})),L=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(j(),e)})),F=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(L(),e)})),B=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="1.0.3"})),H=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isCompatible=e._makeCompatibilityCheck=void 0;var t=B(),n=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function r(e){var t=new Set([e]),r=new Set,i=e.match(n);if(!i)return function(){return!1};var o=+i[1],a=+i[2],s=+i[3];if(null!=i[4])return function(t){return t===e};function c(e){return r.add(e),!1}function u(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var i=e.match(n);if(!i)return c(e);var l=+i[1],p=+i[2],d=+i[3];return null!=i[4]||o!==l?c(e):0===o?a===p&&s<=d?u(e):c(e):a<=p?u(e):c(e)}}e._makeCompatibilityCheck=r,e.isCompatible=r(t.VERSION)})),U=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterGlobal=e.getGlobal=e.registerGlobal=void 0;var t=F(),n=B(),r=H(),i=n.VERSION.split(".")[0],o=Symbol.for("opentelemetry.js.api."+i),a=t._globalThis;e.registerGlobal=function(e,t,r,i){var s;void 0===i&&(i=!1);var c=a[o]=null!==(s=a[o])&&void 0!==s?s:{version:n.VERSION};if(!i&&c[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}return c.version!==n.VERSION?(u=new Error("@opentelemetry/api: All API registration versions must match"),r.error(u.stack||u.message),!1):(c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+n.VERSION+"."),!0)},e.getGlobal=function(e){var t,n,i=null===(t=a[o])||void 0===t?void 0:t.version;if(i&&r.isCompatible(i))return null===(n=a[o])||void 0===n?void 0:n[e]},e.unregisterGlobal=function(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+n.VERSION+".");var r=a[o];r&&delete r[e]}})),V=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagComponentLogger=void 0;var t=U(),n=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("verbose",this._namespace,e)},e}();function r(e,n,r){var i=t.getGlobal("diag");if(i)return r.unshift(n),i[e].apply(i,r)}e.DiagComponentLogger=n})),q=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiagLogLevel=void 0,(t=e.DiagLogLevel||(e.DiagLogLevel={}))[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})),G=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createLogLevelDiagLogger=void 0;var t=q();e.createLogLevelDiagLogger=function(e,n){function r(t,r){var i=n[t];return"function"==typeof i&&e>=r?i.bind(n):function(){}}return e<t.DiagLogLevel.NONE?e=t.DiagLogLevel.NONE:e>t.DiagLogLevel.ALL&&(e=t.DiagLogLevel.ALL),n=n||{},{error:r("error",t.DiagLogLevel.ERROR),warn:r("warn",t.DiagLogLevel.WARN),info:r("info",t.DiagLogLevel.INFO),debug:r("debug",t.DiagLogLevel.DEBUG),verbose:r("verbose",t.DiagLogLevel.VERBOSE)}}})),$=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagAPI=void 0;var t=V(),n=G(),r=q(),i=U(),o=function(){function e(){function e(e){return function(){var t=i.getGlobal("diag");if(t)return t[e].apply(t,arguments)}}var o=this;o.setLogger=function(e,t){var a,s;if(void 0===t&&(t=r.DiagLogLevel.INFO),e===o){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return o.error(null!==(a=c.stack)&&void 0!==a?a:c.message),!1}var u=i.getGlobal("diag"),l=n.createLogLevelDiagLogger(t,e);if(u){var p=null!==(s=(new Error).stack)&&void 0!==s?s:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),l.warn("Current logger will overwrite one already registered from "+p)}return i.registerGlobal("diag",l,o,!0)},o.disable=function(){i.unregisterGlobal("diag",o)},o.createComponentLogger=function(e){return new t.DiagComponentLogger(e)},o.verbose=e("verbose"),o.debug=e("debug"),o.info=e("info"),o.warn=e("warn"),o.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();e.DiagAPI=o})),z=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaggageImpl=void 0;var t=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){return[e[0],e[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=new e(this._entries),i=0,o=t;i<o.length;i++){var a=o[i];r._entries.delete(a)}return r},e.prototype.clear=function(){return new e},e}();e.BaggageImpl=t})),W=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataSymbol=void 0,e.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")})),K=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataFromString=e.createBaggage=void 0;var t=$(),n=z(),r=W(),i=t.DiagAPI.instance();e.createBaggage=function(e){return void 0===e&&(e={}),new n.BaggageImpl(new Map(Object.entries(e)))},e.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(i.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:r.baggageEntryMetadataSymbol,toString:function(){return e}}}})),Y=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Q=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),X=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagConsoleLogger=void 0;var t=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];e.DiagConsoleLogger=function(){function e(e){return function(){var t=arguments;if(console){var n=console[e];if("function"!=typeof n&&(n=console.log),"function"==typeof n)return n.apply(console,t)}}}for(var n=0;n<t.length;n++)this[t[n].n]=e(t[n].c)}})),J=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(X(),e),n(q(),e)})),Z=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultTextMapSetter=e.defaultTextMapGetter=void 0,e.defaultTextMapGetter={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},e.defaultTextMapSetter={set:function(e,t,n){null!=e&&(e[t]=n)}}})),ee=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),te=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ne=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT_CONTEXT=e.createContextKey=void 0,e.createContextKey=function(e){return Symbol.for(e)};e.ROOT_CONTEXT=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}})),re=E((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.NoopContextManager=void 0;var n=ne(),r=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,t([r],i))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();e.NoopContextManager=r})),ie=E((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextAPI=void 0;var n=re(),r=U(),i=$(),o="context",a=new n.NoopContextManager,s=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return r.registerGlobal(o,e,i.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,t([e,n,r],o))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return r.getGlobal(o)||a},e.prototype.disable=function(){this._getContextManager().disable(),r.unregisterGlobal(o,i.DiagAPI.instance())},e}();e.ContextAPI=s})),oe=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TraceFlags=void 0,(t=e.TraceFlags||(e.TraceFlags={}))[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})),ae=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=void 0;var t=oe();e.INVALID_SPANID="0000000000000000",e.INVALID_TRACEID="00000000000000000000000000000000",e.INVALID_SPAN_CONTEXT={traceId:e.INVALID_TRACEID,spanId:e.INVALID_SPANID,traceFlags:t.TraceFlags.NONE}})),se=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NonRecordingSpan=void 0;var t=ae(),n=function(){function e(e){void 0===e&&(e=t.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}();e.NonRecordingSpan=n})),ce=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSpanContext=e.setSpanContext=e.deleteSpan=e.setSpan=e.getSpan=void 0;var t=ne(),n=se(),r=t.createContextKey("OpenTelemetry Context Key SPAN");function i(e){return e.getValue(r)||void 0}function o(e,t){return e.setValue(r,t)}e.getSpan=i,e.setSpan=o,e.deleteSpan=function(e){return e.deleteValue(r)},e.setSpanContext=function(e,t){return o(e,new n.NonRecordingSpan(t))},e.getSpanContext=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.spanContext()}})),ue=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapSpanContext=e.isSpanContextValid=e.isValidSpanId=e.isValidTraceId=void 0;var t=ae(),n=se(),r=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function o(e){return r.test(e)&&e!==t.INVALID_TRACEID}function a(e){return i.test(e)&&e!==t.INVALID_SPANID}e.isValidTraceId=o,e.isValidSpanId=a,e.isSpanContextValid=function(e){return o(e.traceId)&&a(e.spanId)},e.wrapSpanContext=function(e){return new n.NonRecordingSpan(e)}})),le=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracer=void 0;var t=ie(),n=ce(),r=se(),i=ue(),o=t.ContextAPI.getInstance(),a=function(){function e(){}return e.prototype.startSpan=function(e,t,o){if(Boolean(null==t?void 0:t.root))return new r.NonRecordingSpan;var a=o&&n.getSpanContext(o);return function(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags}(a)&&i.isSpanContextValid(a)?new r.NonRecordingSpan(a):new r.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,i){var a,s,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(a=t,c=r):(a=t,s=r,c=i);var u=s??o.active(),l=this.startSpan(e,a,u),p=n.setSpan(u,l);return o.with(p,c,void 0,l)}},e}();e.NoopTracer=a})),pe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracer=void 0;var t=new(le().NoopTracer),n=function(){function e(e,t,n){this._provider=e,this.name=t,this.version=n}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version);return e?(this._delegate=e,this._delegate):t},e}();e.ProxyTracer=n})),de=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracerProvider=void 0;var t=le(),n=function(){function e(){}return e.prototype.getTracer=function(e,n){return new t.NoopTracer},e}();e.NoopTracerProvider=n})),fe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracerProvider=void 0;var t=pe(),n=new(de().NoopTracerProvider),r=function(){function e(){}return e.prototype.getTracer=function(e,n){var r;return null!==(r=this.getDelegateTracer(e,n))&&void 0!==r?r:new t.ProxyTracer(this,e,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:n},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t)},e}();e.ProxyTracerProvider=r})),he=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ve=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SamplingDecision=void 0,(t=e.SamplingDecision||(e.SamplingDecision={}))[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})),ge=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),me=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanKind=void 0,(t=e.SpanKind||(e.SpanKind={}))[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})),_e=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ye=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ee=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanStatusCode=void 0,(t=e.SpanStatusCode||(e.SpanStatusCode={}))[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})),be=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Se=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Te=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Pe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ce=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceAPI=void 0;var t=U(),n=fe(),r=ue(),i=ce(),o=$(),a="trace",s=function(){function e(){this._proxyTracerProvider=new n.ProxyTracerProvider,this.wrapSpanContext=r.wrapSpanContext,this.isSpanContextValid=r.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var n=t.registerGlobal(a,this._proxyTracerProvider,o.DiagAPI.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},e.prototype.getTracerProvider=function(){return t.getGlobal(a)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){t.unregisterGlobal(a,o.DiagAPI.instance()),this._proxyTracerProvider=new n.ProxyTracerProvider},e}();e.TraceAPI=s})),we=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTextMapPropagator=void 0;var t=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}();e.NoopTextMapPropagator=t})),Ae=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deleteBaggage=e.setBaggage=e.getBaggage=void 0;var t=ne().createContextKey("OpenTelemetry Baggage Key");e.getBaggage=function(e){return e.getValue(t)||void 0},e.setBaggage=function(e,n){return e.setValue(t,n)},e.deleteBaggage=function(e){return e.deleteValue(t)}})),Ie=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PropagationAPI=void 0;var t=U(),n=we(),r=Z(),i=Ae(),o=K(),a=$(),s="propagation",c=new n.NoopTextMapPropagator,u=function(){function e(){this.createBaggage=o.createBaggage,this.getBaggage=i.getBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return t.registerGlobal(s,e,a.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=r.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=r.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){t.unregisterGlobal(s,a.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return t.getGlobal(s)||c},e}();e.PropagationAPI=u})),Oe=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.diag=e.propagation=e.trace=e.context=e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=e.isValidSpanId=e.isValidTraceId=e.isSpanContextValid=e.baggageEntryMetadataFromString=void 0,n(M(),e);var r=K();Object.defineProperty(e,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return r.baggageEntryMetadataFromString}}),n(Y(),e),n(Q(),e),n(J(),e),n(Z(),e),n(ee(),e),n(te(),e),n(pe(),e),n(fe(),e),n(he(),e),n(ve(),e),n(ge(),e),n(me(),e),n(_e(),e),n(ye(),e),n(Ee(),e),n(oe(),e),n(be(),e),n(Se(),e),n(Te(),e);var i=ue();Object.defineProperty(e,"isSpanContextValid",{enumerable:!0,get:function(){return i.isSpanContextValid}}),Object.defineProperty(e,"isValidTraceId",{enumerable:!0,get:function(){return i.isValidTraceId}}),Object.defineProperty(e,"isValidSpanId",{enumerable:!0,get:function(){return i.isValidSpanId}});var o=ae();Object.defineProperty(e,"INVALID_SPANID",{enumerable:!0,get:function(){return o.INVALID_SPANID}}),Object.defineProperty(e,"INVALID_TRACEID",{enumerable:!0,get:function(){return o.INVALID_TRACEID}}),Object.defineProperty(e,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return o.INVALID_SPAN_CONTEXT}}),n(ne(),e),n(Pe(),e);var a=ie();e.context=a.ContextAPI.getInstance();var s=Ce();e.trace=s.TraceAPI.getInstance();var c=Ie();e.propagation=c.PropagationAPI.getInstance();var u=$();e.diag=u.DiagAPI.instance(),e.default={trace:e.trace,context:e.context,propagation:e.propagation,diag:e.diag}})),xe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTracingSuppressed=e.unsuppressTracing=e.suppressTracing=void 0;var t=Oe().createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");e.suppressTracing=function(e){return e.setValue(t,!0)},e.unsuppressTracing=function(e){return e.deleteValue(t)},e.isTracingSuppressed=function(e){return!0===e.getValue(t)}})),Re=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR="=",e.BAGGAGE_PROPERTIES_SEPARATOR=";",e.BAGGAGE_ITEMS_SEPARATOR=",",e.BAGGAGE_HEADER="baggage",e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),Ne=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseKeyPairsIntoRecord=e.parsePairKeyValue=e.getKeyPairs=e.serializeKeyPairs=void 0;var t=Oe(),n=Re();e.serializeKeyPairs=e=>e.reduce(((e,t)=>{let r=`${e}${""!==e?n.BAGGAGE_ITEMS_SEPARATOR:""}${t}`;return r.length>n.BAGGAGE_MAX_TOTAL_LENGTH?e:r}),""),e.getKeyPairs=e=>e.getAllEntries().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`)),e.parsePairKeyValue=e=>{let r=e.split(n.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let o=i.split(n.BAGGAGE_KEY_PAIR_SEPARATOR);if(2!==o.length)return;let a,s=decodeURIComponent(o[0].trim()),c=decodeURIComponent(o[1].trim());return r.length>0&&(a=t.baggageEntryMetadataFromString(r.join(n.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:c,metadata:a}},e.parseKeyPairsIntoRecord=t=>"string"!=typeof t||0===t.length?{}:t.split(n.BAGGAGE_ITEMS_SEPARATOR).map((t=>e.parsePairKeyValue(t))).filter((e=>void 0!==e&&e.value.length>0)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})})),De=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpBaggagePropagator=void 0;var t=Oe(),n=xe(),r=Re(),i=Ne();e.HttpBaggagePropagator=class{inject(e,o,a){let s=t.propagation.getBaggage(e);if(!s||n.isTracingSuppressed(e))return;let c=i.getKeyPairs(s).filter((e=>e.length<=r.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS)).slice(0,r.BAGGAGE_MAX_NAME_VALUE_PAIRS),u=i.serializeKeyPairs(c);u.length>0&&a.set(o,r.BAGGAGE_HEADER,u)}extract(e,n,o){let a=o.get(n,r.BAGGAGE_HEADER);if(!a)return e;let s={};return 0===a.length||(a.split(r.BAGGAGE_ITEMS_SEPARATOR).forEach((e=>{let t=i.parsePairKeyValue(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),s[t.key]=e}})),0===Object.entries(s).length)?e:t.propagation.setBaggage(e,t.propagation.createBaggage(s))}fields(){return[r.BAGGAGE_HEADER]}}})),ke=E((e=>{"use strict";function t(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e)if(null!=r){if(!t){if(n(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}(e):n(e))}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.isAttributeValue=e.sanitizeAttributes=void 0,e.sanitizeAttributes=function(e){let n={};if(null==e||"object"!=typeof e)return n;for(let[r,i]of Object.entries(e))t(i)&&(Array.isArray(i)?n[r]=i.slice():n[r]=i);return n},e.isAttributeValue=t})),Me=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loggingErrorHandler=void 0;var t=Oe();e.loggingErrorHandler=function(){return e=>{t.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){let t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach((e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))})),n=Object.getPrototypeOf(n);return t}(e))}(e))}}})),je=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;var t=Me().loggingErrorHandler();e.setGlobalErrorHandler=function(e){t=e},e.globalErrorHandler=e=>{try{t(e)}catch{}}})),Le=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TracesSamplerValues=void 0,(t=e.TracesSamplerValues||(e.TracesSamplerValues={})).AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})),Fe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEnvironment=e.DEFAULT_ENVIRONMENT=void 0;var t=Oe(),n=Le(),r=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function i(e){return r.indexOf(e)>-1}var o=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function a(e){return o.indexOf(e)>-1}function s(e,t,n,r=-1/0,i=1/0){if(typeof n[e]<"u"){let o=Number(n[e]);isNaN(o)||(t[e]=o<r?r:o>i?i:o)}}function c(e,t,n,r=","){let i=n[e];"string"==typeof i&&(t[e]=i.split(r).map((e=>e.trim())))}e.DEFAULT_ENVIRONMENT={CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:t.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:n.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};var u={ALL:t.DiagLogLevel.ALL,VERBOSE:t.DiagLogLevel.VERBOSE,DEBUG:t.DiagLogLevel.DEBUG,INFO:t.DiagLogLevel.INFO,WARN:t.DiagLogLevel.WARN,ERROR:t.DiagLogLevel.ERROR,NONE:t.DiagLogLevel.NONE};function l(e,t,n){let r=n[e];if("string"==typeof r){let n=u[r.toUpperCase()];null!=n&&(t[e]=n)}}e.parseEnvironment=function(t){let n={};for(let r in e.DEFAULT_ENVIRONMENT){let e=r;if("OTEL_LOG_LEVEL"===e)l(e,n,t);else if(i(e))s(e,n,t);else if(a(e))c(e,n,t);else{let r=t[e];typeof r<"u"&&null!==r&&(n[e]=String(r))}}return n}})),Be=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=void 0;var t=n(2037),r=Fe();e.getEnv=function(){let e=r.parseEnvironment(process.env);return Object.assign({HOSTNAME:t.hostname()},r.DEFAULT_ENVIRONMENT,e)}})),He=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBase64=void 0,e.hexToBase64=function(e){let t=e.length,n="";for(let r=0;r<t;r+=2){let t=e.substring(r,r+2),i=parseInt(t,16);n+=String.fromCharCode(i)}return Buffer.from(n,"ascii").toString("base64")}})),Ue=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};var t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,4*n);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString("hex",0,e)}}})),Ve=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.otperformance=void 0;var t=n(4074);e.otperformance=t.performance})),qe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="0.23.0"})),Ge=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RpcGrpcStatusCodeValues=e.MessagingOperationValues=e.MessagingDestinationKindValues=e.HttpFlavorValues=e.NetTransportValues=e.FaasInvokedProviderValues=e.FaasDocumentOperationValues=e.FaasTriggerValues=e.DbCassandraConsistencyLevelValues=e.DbSystemValues=e.SemanticAttributes=void 0,e.SemanticAttributes={DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_METHOD:"rpc.jsonrpc.method",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message"},(t=e.DbSystemValues||(e.DbSystemValues={})).OTHER_SQL="other_sql",t.MSSQL="mssql",t.MYSQL="mysql",t.ORACLE="oracle",t.DB2="db2",t.POSTGRESQL="postgresql",t.REDSHIFT="redshift",t.HIVE="hive",t.CLOUDSCAPE="cloudscape",t.HSQLDB="hsqldb",t.PROGRESS="progress",t.MAXDB="maxdb",t.HANADB="hanadb",t.INGRES="ingres",t.FIRSTSQL="firstsql",t.EDB="edb",t.CACHE="cache",t.ADABAS="adabas",t.FIREBIRD="firebird",t.DERBY="derby",t.FILEMAKER="filemaker",t.INFORMIX="informix",t.INSTANTDB="instantdb",t.INTERBASE="interbase",t.MARIADB="mariadb",t.NETEZZA="netezza",t.PERVASIVE="pervasive",t.POINTBASE="pointbase",t.SQLITE="sqlite",t.SYBASE="sybase",t.TERADATA="teradata",t.VERTICA="vertica",t.H2="h2",t.COLDFUSION="coldfusion",t.CASSANDRA="cassandra",t.HBASE="hbase",t.MONGODB="mongodb",t.REDIS="redis",t.COUCHBASE="couchbase",t.COUCHDB="couchdb",t.COSMOSDB="cosmosdb",t.DYNAMODB="dynamodb",t.NEO4J="neo4j",t.GEODE="geode",t.ELASTICSEARCH="elasticsearch",t.MEMCACHED="memcached",t.COCKROACHDB="cockroachdb",function(e){e.ALL="all",e.EACH_QUORUM="each_quorum",e.QUORUM="quorum",e.LOCAL_QUORUM="local_quorum",e.ONE="one",e.TWO="two",e.THREE="three",e.LOCAL_ONE="local_one",e.ANY="any",e.SERIAL="serial",e.LOCAL_SERIAL="local_serial"}(e.DbCassandraConsistencyLevelValues||(e.DbCassandraConsistencyLevelValues={})),function(e){e.DATASOURCE="datasource",e.HTTP="http",e.PUBSUB="pubsub",e.TIMER="timer",e.OTHER="other"}(e.FaasTriggerValues||(e.FaasTriggerValues={})),function(e){e.INSERT="insert",e.EDIT="edit",e.DELETE="delete"}(e.FaasDocumentOperationValues||(e.FaasDocumentOperationValues={})),function(e){e.AWS="aws",e.AZURE="azure",e.GCP="gcp"}(e.FaasInvokedProviderValues||(e.FaasInvokedProviderValues={})),function(e){e.IP_TCP="ip_tcp",e.IP_UDP="ip_udp",e.IP="ip",e.UNIX="unix",e.PIPE="pipe",e.INPROC="inproc",e.OTHER="other"}(e.NetTransportValues||(e.NetTransportValues={})),function(e){e.HTTP_1_0="1.0",e.HTTP_1_1="1.1",e.HTTP_2_0="2.0",e.SPDY="SPDY",e.QUIC="QUIC"}(e.HttpFlavorValues||(e.HttpFlavorValues={})),function(e){e.QUEUE="queue",e.TOPIC="topic"}(e.MessagingDestinationKindValues||(e.MessagingDestinationKindValues={})),function(e){e.RECEIVE="receive",e.PROCESS="process"}(e.MessagingOperationValues||(e.MessagingOperationValues={})),function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(e.RpcGrpcStatusCodeValues||(e.RpcGrpcStatusCodeValues={}))})),$e=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ge(),e)})),ze=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetrySdkLanguageValues=e.OsTypeValues=e.HostArchValues=e.AwsEcsLaunchtypeValues=e.CloudPlatformValues=e.CloudProviderValues=e.ResourceAttributes=void 0,e.ResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},(t=e.CloudProviderValues||(e.CloudProviderValues={})).AWS="aws",t.AZURE="azure",t.GCP="gcp",function(e){e.AWS_EC2="aws_ec2",e.AWS_ECS="aws_ecs",e.AWS_EKS="aws_eks",e.AWS_LAMBDA="aws_lambda",e.AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",e.AZURE_VM="azure_vm",e.AZURE_CONTAINER_INSTANCES="azure_container_instances",e.AZURE_AKS="azure_aks",e.AZURE_FUNCTIONS="azure_functions",e.AZURE_APP_SERVICE="azure_app_service",e.GCP_COMPUTE_ENGINE="gcp_compute_engine",e.GCP_CLOUD_RUN="gcp_cloud_run",e.GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",e.GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",e.GCP_APP_ENGINE="gcp_app_engine"}(e.CloudPlatformValues||(e.CloudPlatformValues={})),function(e){e.EC2="ec2",e.FARGATE="fargate"}(e.AwsEcsLaunchtypeValues||(e.AwsEcsLaunchtypeValues={})),function(e){e.AMD64="amd64",e.ARM32="arm32",e.ARM64="arm64",e.IA64="ia64",e.PPC32="ppc32",e.PPC64="ppc64",e.X86="x86"}(e.HostArchValues||(e.HostArchValues={})),function(e){e.WINDOWS="windows",e.LINUX="linux",e.DARWIN="darwin",e.FREEBSD="freebsd",e.NETBSD="netbsd",e.OPENBSD="openbsd",e.DRAGONFLYBSD="dragonflybsd",e.HPUX="hpux",e.AIX="aix",e.SOLARIS="solaris",e.Z_OS="z_os"}(e.OsTypeValues||(e.OsTypeValues={})),function(e){e.CPP="cpp",e.DOTNET="dotnet",e.ERLANG="erlang",e.GO="go",e.JAVA="java",e.NODEJS="nodejs",e.PHP="php",e.PYTHON="python",e.RUBY="ruby",e.WEBJS="webjs"}(e.TelemetrySdkLanguageValues||(e.TelemetrySdkLanguageValues={}))})),We=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ze(),e)})),Ke=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n($e(),e),n(We(),e)})),Ye=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDK_INFO=void 0;var t=qe(),n=Ke();e.SDK_INFO={[n.ResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[n.ResourceAttributes.PROCESS_RUNTIME_NAME]:"node",[n.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.TelemetrySdkLanguageValues.NODEJS,[n.ResourceAttributes.TELEMETRY_SDK_VERSION]:t.VERSION}})),Qe=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unrefTimer=void 0,e.unrefTimer=function(e){e.unref()}})),Xe=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Be(),e),n(He(),e),n(Ue(),e),n(Ve(),e),n(Ye(),e),n(Qe(),e)})),Je=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Xe(),e)})),Ze=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=void 0;var t=Je(),n=9,r=Math.pow(10,n);function i(e){let t=e/1e3,i=Math.trunc(t);return[i,Number((t-i).toFixed(n))*r]}function o(){let e=t.otperformance.timeOrigin;if("number"!=typeof e){let n=t.otperformance;e=n.timing&&n.timing.fetchStart}return e}function a(e){let n=i(o()),a=i("number"==typeof e?e:t.otperformance.now()),s=n[0]+a[0],c=n[1]+a[1];return c>r&&(c-=r,s+=1),[s,c]}function s(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}e.hrTime=a,e.timeInputToHrTime=function(e){if(s(e))return e;if("number"==typeof e)return e<o()?a(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")},e.hrTimeDuration=function(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(n-=1,i+=r),[n,i]},e.hrTimeToTimeStamp=function(e){let t=n,r=`${"0".repeat(t)}${e[1]}Z`,i=r.substr(r.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",i)},e.hrTimeToNanoseconds=function(e){return e[0]*r+e[1]},e.hrTimeToMilliseconds=function(e){return Math.round(1e3*e[0]+e[1]/1e6)},e.hrTimeToMicroseconds=function(e){return Math.round(1e6*e[0]+e[1]/1e3)},e.isTimeInputHrTime=s,e.isTimeInput=function(e){return s(e)||"number"==typeof e||e instanceof Date}})),et=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tt=E((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.ExportResultCode=void 0,(t=e.ExportResultCode||(e.ExportResultCode={}))[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})),nt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositePropagator=void 0;var t=Oe();e.CompositePropagator=class{constructor(e={}){var t;this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((e=>"function"==typeof e.fields?e.fields():[])).reduce(((e,t)=>e.concat(t)),[])))}inject(e,n,r){for(let i of this._propagators)try{i.inject(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,n,r){return this._propagators.reduce(((e,i)=>{try{return i.extract(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}return e}),e)}fields(){return this._fields.slice()}}})),rt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateValue=e.validateKey=void 0;var t="[_0-9a-z-*/]",n=new RegExp(`^(?:[a-z]${t}{0,255}|[a-z0-9]${t}{0,240}@[a-z]${t}{0,13})$`),r=/^[ -~]{0,255}[!-~]$/,i=/,|=/;e.validateKey=function(e){return n.test(e)},e.validateValue=function(e){return r.test(e)&&!i.test(e)}})),it=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceState=void 0;var t=rt(),n=class{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce(((e,t)=>(e.push(t+"="+this.get(t)),e)),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(((e,n)=>{let r=n.trim(),i=r.indexOf("=");if(-1!==i){let o=r.slice(0,i),a=r.slice(i+1,n.length);t.validateKey(o)&&t.validateValue(a)&&e.set(o,a)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new n;return e._internalState=new Map(this._internalState),e}};e.TraceState=n})),ot=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpTraceContextPropagator=e.parseTraceParent=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=void 0;var t=Oe(),n=xe(),r=it();e.TRACE_PARENT_HEADER="traceparent",e.TRACE_STATE_HEADER="tracestate";var i=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function o(e){let t=i.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}e.parseTraceParent=o,e.HttpTraceContextPropagator=class{inject(r,i,o){let a=t.trace.getSpanContext(r);if(!a||n.isTracingSuppressed(r)||!t.isSpanContextValid(a))return;let s=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||t.TraceFlags.NONE).toString(16)}`;o.set(i,e.TRACE_PARENT_HEADER,s),a.traceState&&o.set(i,e.TRACE_STATE_HEADER,a.traceState.serialize())}extract(n,i,a){let s=a.get(i,e.TRACE_PARENT_HEADER);if(!s)return n;let c=Array.isArray(s)?s[0]:s;if("string"!=typeof c)return n;let u=o(c);if(!u)return n;u.isRemote=!0;let l=a.get(i,e.TRACE_STATE_HEADER);if(l){let e=Array.isArray(l)?l.join(","):l;u.traceState=new r.TraceState("string"==typeof e?e:void 0)}return t.trace.setSpanContext(n,u)}fields(){return[e.TRACE_PARENT_HEADER,e.TRACE_STATE_HEADER]}}})),at=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),st=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRPCMetadata=e.deleteRPCMetadata=e.setRPCMetadata=e.RPCType=void 0;var t=Oe().createContextKey("OpenTelemetry SDK Context Key RPC_METADATA");(e.RPCType||(e.RPCType={})).HTTP="http",e.setRPCMetadata=function(e,n){return e.setValue(t,n)},e.deleteRPCMetadata=function(e){return e.deleteValue(t)},e.getRPCMetadata=function(e){return e.getValue(t)}})),ct=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOffSampler=void 0;var t=Oe();e.AlwaysOffSampler=class{shouldSample(){return{decision:t.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}})),ut=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOnSampler=void 0;var t=Oe();e.AlwaysOnSampler=class{shouldSample(){return{decision:t.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}})),lt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParentBasedSampler=void 0;var t=Oe(),n=je(),r=ct(),i=ut();e.ParentBasedSampler=class{constructor(e){var t,o,a,s;this._root=e.root,this._root||(n.globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new i.AlwaysOnSampler),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new i.AlwaysOnSampler,this._remoteParentNotSampled=null!==(o=e.remoteParentNotSampled)&&void 0!==o?o:new r.AlwaysOffSampler,this._localParentSampled=null!==(a=e.localParentSampled)&&void 0!==a?a:new i.AlwaysOnSampler,this._localParentNotSampled=null!==(s=e.localParentNotSampled)&&void 0!==s?s:new r.AlwaysOffSampler}shouldSample(e,n,r,i,o,a){let s=t.trace.getSpanContext(e);return s&&t.isSpanContextValid(s)?s.isRemote?s.traceFlags&t.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,a):s.traceFlags&t.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,a):this._localParentNotSampled.shouldSample(e,n,r,i,o,a):this._root.shouldSample(e,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),pt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceIdRatioBasedSampler=void 0;var t=Oe();e.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,n){return{decision:t.isValidTraceId(n)&&this._accumulate(n)<this._upperBound?t.SamplingDecision.RECORD_AND_SAMPLED:t.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t}}})),dt=E((e=>{"use strict";function t(e,t){return"string"==typeof t?e===t:t.test(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.isUrlIgnored=e.urlMatches=void 0,e.urlMatches=t,e.isUrlIgnored=function(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}})),ft=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWrapped=void 0,e.isWrapped=function(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}})),ht=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.baggageUtils=void 0,n(De(),e),n(ke(),e),n(je(),e),n(Me(),e),n(Ze(),e),n(et(),e),n(tt(),e),n(qe(),e),e.baggageUtils=Ne(),n(Je(),e),n(nt(),e),n(ot(),e),n(at(),e),n(st(),e),n(ct(),e),n(ut(),e),n(lt(),e),n(pt(),e),n(xe(),e),n(it(),e),n(Fe(),e),n(Le(),e),n(dt(),e),n(ft(),e),n(qe(),e)})),vt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExceptionEventName=void 0,e.ExceptionEventName="exception"})),gt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0;var t=Oe(),n=ht(),r=Ke(),i=vt();e.Span=class{constructor(e,r,i,o,a,s,c=[],u=n.hrTime()){this.attributes={},this.links=[],this.events=[],this.status={code:t.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=o,this.parentSpanId=s,this.kind=a,this.links=c,this.startTime=n.timeInputToHrTime(u),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return null==r||this._isSpanEnded()?this:0===e.length?(t.diag.warn(`Invalid attribute key: ${e}`),this):n.isAttributeValue(r)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)||(this.attributes[e]=r),this):(t.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,r,i){return this._isSpanEnded()||(this.events.length>=this._spanLimits.eventCountLimit&&(t.diag.warn("Dropping extra events."),this.events.shift()),n.isTimeInput(r)&&(typeof i>"u"&&(i=r),r=void 0),typeof i>"u"&&(i=n.hrTime()),this.events.push({name:e,attributes:r,time:n.timeInputToHrTime(i)})),this}setStatus(e){return this._isSpanEnded()||(this.status=e),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e=n.hrTime()){this._isSpanEnded()?t.diag.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=n.timeInputToHrTime(e),this._duration=n.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&t.diag.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))}isRecording(){return!1===this._ended}recordException(e,o=n.hrTime()){let a={};"string"==typeof e?a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?a[r.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(a[r.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(a[r.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),a[r.SemanticAttributes.EXCEPTION_TYPE]||a[r.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(i.ExceptionEventName,a,o):t.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}_isSpanEnded(){return this._ended&&t.diag.warn("Can not execute the operation on ended Span {traceId: %s, spanId: %s}",this._spanContext.traceId,this._spanContext.spanId),this._ended}}})),mt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildSamplerFromEnv=e.DEFAULT_CONFIG=void 0;var t=Oe(),n=ht(),r=n.getEnv(),i=n.TracesSamplerValues.AlwaysOn;function o(e=n.getEnv()){switch(e.OTEL_TRACES_SAMPLER){case n.TracesSamplerValues.AlwaysOn:return new n.AlwaysOnSampler;case n.TracesSamplerValues.AlwaysOff:return new n.AlwaysOffSampler;case n.TracesSamplerValues.ParentBasedAlwaysOn:return new n.ParentBasedSampler({root:new n.AlwaysOnSampler});case n.TracesSamplerValues.ParentBasedAlwaysOff:return new n.ParentBasedSampler({root:new n.AlwaysOffSampler});case n.TracesSamplerValues.TraceIdRatio:return new n.TraceIdRatioBasedSampler(s(e));case n.TracesSamplerValues.ParentBasedTraceIdRatio:return new n.ParentBasedSampler({root:new n.TraceIdRatioBasedSampler(s(e))});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${i}".`),new n.AlwaysOnSampler}}e.DEFAULT_CONFIG={sampler:o(r),forceFlushTimeoutMillis:3e4,spanLimits:{attributeCountLimit:n.getEnv().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:n.getEnv().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:n.getEnv().OTEL_SPAN_EVENT_COUNT_LIMIT}},e.buildSamplerFromEnv=o;var a=1;function s(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${a}.`),a;let n=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(n)?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${a}.`),a):n<0||n>1?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${a}.`),a):n}})),_t=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeConfig=void 0;var t=mt();e.mergeConfig=function(e){let n={sampler:t.buildSamplerFromEnv()},r=Object.assign({},t.DEFAULT_CONFIG,n,e);return r.spanLimits=Object.assign({},t.DEFAULT_CONFIG.spanLimits,e.spanLimits||{}),r}})),yt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tracer=void 0;var t=Oe(),n=ht(),r=gt(),i=_t();e.Tracer=class{constructor(e,t,r){this._tracerProvider=r;let o=i.mergeConfig(t);this._sampler=o.sampler,this._spanLimits=o.spanLimits,this._idGenerator=t.idGenerator||new n.RandomIdGenerator,this.resource=r.resource,this.instrumentationLibrary=e}startSpan(e,i={},o=t.context.active()){var a,s;if(n.isTracingSuppressed(o))return t.diag.debug("Instrumentation suppressed, returning Noop Span"),t.trace.wrapSpanContext(t.INVALID_SPAN_CONTEXT);let c,u,l,p=function(e,n){if(!e.root)return t.trace.getSpanContext(n)}(i,o),d=this._idGenerator.generateSpanId();p&&t.trace.isSpanContextValid(p)?(c=p.traceId,u=p.traceState,l=p.spanId):c=this._idGenerator.generateTraceId();let f=null!==(a=i.kind)&&void 0!==a?a:t.SpanKind.INTERNAL,h=null!==(s=i.links)&&void 0!==s?s:[],v=n.sanitizeAttributes(i.attributes),g=this._sampler.shouldSample(i.root?t.trace.setSpanContext(o,t.INVALID_SPAN_CONTEXT):o,c,e,f,v,h),m={traceId:c,spanId:d,traceFlags:g.decision===t.SamplingDecision.RECORD_AND_SAMPLED?t.TraceFlags.SAMPLED:t.TraceFlags.NONE,traceState:u};if(g.decision===t.SamplingDecision.NOT_RECORD)return t.diag.debug("Recording is off, propagating context in a non-recording span"),t.trace.wrapSpanContext(m);let _=new r.Span(this,o,e,m,f,l,h,i.startTime);return _.setAttributes(Object.assign(v,g.attributes)),_}startActiveSpan(e,n,r,i){let o,a,s;if(arguments.length<2)return;2===arguments.length?s=n:3===arguments.length?(o=n,s=r):(o=n,a=r,s=i);let c=a??t.context.active(),u=this.startSpan(e,o,c),l=t.trace.setSpan(c,u);return t.context.with(l,s,void 0,u)}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}}})),Et=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultServiceName=void 0,e.defaultServiceName=function(){return`unknown_service:${process.argv0}`}})),bt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detectResources=void 0;var t=At(),r=Oe(),i=n(3837);e.detectResources=async(e={})=>{let n=Object.assign(e),i=await Promise.all((n.detectors||[]).map((async e=>{try{let t=await e.detect(n);return r.diag.debug(`${e.constructor.name} found resource.`,t),t}catch(n){return r.diag.debug(`${e.constructor.name} failed: ${n.message}`),t.Resource.empty()}})));return o(i),i.reduce(((e,t)=>e.merge(t)),t.Resource.empty())};var o=e=>{e.forEach((e=>{if(Object.keys(e.attributes).length>0){let t=i.inspect(e.attributes,{depth:2,breakLength:1/0,sorted:!0,compact:!1});r.diag.verbose(t)}}))}})),St=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.envDetector=void 0;var t=Oe(),n=ht(),r=Ke(),i=xt();e.envDetector=new class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}async detect(e){let o={},a=n.getEnv(),s=a.OTEL_RESOURCE_ATTRIBUTES,c=a.OTEL_SERVICE_NAME;if(s)try{let e=this._parseResourceAttributes(s);Object.assign(o,e)}catch(e){t.diag.debug(`EnvDetector failed: ${e.message}`)}return c&&(o[r.ResourceAttributes.SERVICE_NAME]=c),new i.Resource(o)}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR,-1);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2!==n.length)continue;let[r,i]=n;if(r=r.trim(),i=i.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(r))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(i))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);t[r]=i}return t}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isPrintableString(e)}_isPrintableString(e){for(let t=0;t<e.length;t++){let n=e.charAt(t);if(n<=" "||n>="~")return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}}})),Tt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processDetector=void 0;var t=Oe(),n=Ke(),r=xt();e.processDetector=new class{async detect(e){let t={[n.ResourceAttributes.PROCESS_PID]:process.pid,[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]:process.title||"",[n.ResourceAttributes.PROCESS_COMMAND]:process.argv[1]||"",[n.ResourceAttributes.PROCESS_COMMAND_LINE]:process.argv.join(" ")||""};return this._getResourceAttributes(t,e)}_getResourceAttributes(e,i){return""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]||""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_PATH]||""===e[n.ResourceAttributes.PROCESS_COMMAND]||""===e[n.ResourceAttributes.PROCESS_COMMAND_LINE]?(t.diag.debug("ProcessDetector failed: Unable to find required process resources. "),r.Resource.empty()):new r.Resource(Object.assign({},e))}}})),Pt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(St(),e),n(Tt(),e)})),Ct=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Et(),e),n(bt(),e),n(Pt(),e)})),wt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ct(),e)})),At=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Resource=void 0;var t=Ke(),n=ht(),r=wt(),i=class{constructor(e){this.attributes=e}static empty(){return i.EMPTY}static default(){return new i({[t.ResourceAttributes.SERVICE_NAME]:r.defaultServiceName(),[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE],[t.ResourceAttributes.TELEMETRY_SDK_NAME]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_NAME],[t.ResourceAttributes.TELEMETRY_SDK_VERSION]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_VERSION]})}merge(e){if(!e||!Object.keys(e.attributes).length)return this;let t=Object.assign({},this.attributes,e.attributes);return new i(t)}};e.Resource=i,i.EMPTY=new i({})})),It=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ot=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),xt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(At(),e),n(wt(),e),n(It(),e),n(Ot(),e)})),Rt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSpanProcessor=void 0;var t=ht();e.MultiSpanProcessor=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise((n=>{Promise.all(e).then((()=>{n()})).catch((e=>{t.globalErrorHandler(e||new Error("MultiSpanProcessor: forceFlush failed")),n()}))}))}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise(((t,n)=>{Promise.all(e).then((()=>{t()}),n)}))}}})),Nt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopSpanProcessor=void 0,e.NoopSpanProcessor=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),Dt=E(((e,t)=>{var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Null]",u="[object Object]",l="[object Proxy]",p="[object Undefined]",d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[i]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[a]=h["[object Map]"]=h["[object Number]"]=h[u]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var v,g="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,_=g||m||Function("return this")(),y="object"==typeof e&&e&&!e.nodeType&&e,E=y&&"object"==typeof t&&t&&!t.nodeType&&t,b=E&&E.exports===y,S=b&&g.process,T=function(){try{return E&&E.require&&E.require("util").types||S&&S.binding&&S.binding("util")}catch{}}(),P=T&&T.isTypedArray,C=Array.prototype,w=Function.prototype,A=Object.prototype,I=_["__core-js_shared__"],O=w.toString,x=A.hasOwnProperty,R=(v=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",N=A.toString,D=O.call(Object),k=RegExp("^"+O.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=b?_.Buffer:void 0,j=_.Symbol,L=_.Uint8Array,F=(M&&M.allocUnsafe,function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object)),B=Object.create,H=A.propertyIsEnumerable,U=C.splice,V=j?j.toStringTag:void 0,q=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch{}}(),G=M?M.isBuffer:void 0,$=Math.max,z=Date.now,W=le(_,"Map"),K=le(Object,"create"),Y=function(){function e(){}return function(t){if(!Se(t))return{};if(B)return B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new X(e);this.size=t.size}function ee(e,t,n){(void 0!==n&&!ve(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];(!x.call(e,t)||!ve(r,n)||void 0===n&&!(t in e))&&re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(ve(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Q.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},Q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Q.prototype.get=function(e){var t=this.__data__;if(K){var r=t[e];return r===n?void 0:r}return x.call(t,e)?t[e]:void 0},Q.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:x.call(t,e)},Q.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K&&void 0===t?n:t,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0||(n==t.length-1?t.pop():U.call(t,n,1),--this.size,0))},X.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},X.prototype.has=function(e){return ne(this.__data__,e)>-1},X.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(W||X),string:new Q}},J.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return ue(this,e).get(e)},J.prototype.has=function(e){return ue(this,e).has(e)},J.prototype.set=function(e,t){var n=ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof X){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};var ie=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function oe(e){return null==e?void 0===e?p:c:V&&V in Object(e)?function(e){var t=x.call(e,V),n=e[V];try{e[V]=void 0;var r=!0}catch{}var i=N.call(e);return r&&(t?e[V]=n:delete e[V]),i}(e):function(e){return N.call(e)}(e)}function ae(e){return Te(e)&&oe(e)==i}function se(e,t,n,r,i){e!==t&&ie(t,(function(o,a){if(i||(i=new Z),Se(o))!function(e,t,n,r,i,o,a){var s=fe(e,n),c=fe(t,n),l=a.get(c);if(l)ee(e,n,l);else{var p=o?o(s,c,n+"",e,t,a):void 0,d=void 0===p;if(d){var f=me(c),h=!f&&ye(c),v=!f&&!h&&Pe(c);p=c,f||h||v?me(s)?p=s:function(e){return Te(e)&&_e(e)}(s)?p=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):h?(d=!1,p=function(e,t){return e.slice()}(c)):v?(d=!1,p=function(e,t){var n=function(e){var t=new e.constructor(e.byteLength);return new L(t).set(new L(e)),t}(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}(c)):p=[]:function(e){if(!Te(e)||oe(e)!=u)return!1;var t=F(e);if(null===t)return!0;var n=x.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==D}(c)||ge(c)?(p=s,ge(s)?p=function(e){return function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=void 0;void 0===c&&(c=e[s]),i?re(n,s,c):te(n,s,c)}return n}(e,Ce(e))}(s):(!Se(s)||Ee(s))&&(p=function(e){return"function"!=typeof e.constructor||de(e)?{}:Y(F(e))}(c))):d=!1}d&&(a.set(c,p),i(p,c,r,o,a),a.delete(c)),ee(e,n,p)}}(e,t,a,n,se,r,i);else{var s=r?r(fe(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ee(e,a,s)}}),Ce)}var ce=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:Ae(t),writable:!0})}:Ie;function ue(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Se(e)||function(e){return!!R&&R in e}(e))&&(Ee(e)?k:d).test(function(e){if(null!=e){try{return O.call(e)}catch{}try{return e+""}catch{}}return""}(e))}(n)?n:void 0}function pe(e,t){var n=typeof e;return!!(t=t??r)&&("number"==n||"symbol"!=n&&f.test(e))&&e>-1&&e%1==0&&e<t}function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var he=function(e){var t=0,n=0;return function(){var r=z(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function ve(e,t){return e===t||e!=e&&t!=t}var ge=ae(function(){return arguments}())?ae:function(e){return Te(e)&&x.call(e,"callee")&&!H.call(e,"callee")},me=Array.isArray;function _e(e){return null!=e&&be(e.length)&&!Ee(e)}var ye=G||function(){return!1};function Ee(e){if(!Se(e))return!1;var t=oe(e);return t==a||t==s||t==o||t==l}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Se(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Pe=P?function(e){return function(t){return e(t)}}(P):function(e){return Te(e)&&be(e.length)&&!!h[oe(e)]};function Ce(e){return _e(e)?function(e,t){var n=me(e),r=!n&&ge(e),i=!n&&!r&&ye(e),o=!n&&!r&&!i&&Pe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var u in e)(t||x.call(e,u))&&(!a||!("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||pe(u,c)))&&s.push(u);return s}(e,!0):function(e){if(!Se(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var r in e)"constructor"==r&&(t||!x.call(e,r))||n.push(r);return n}(e)}var we=function(e){return function(e,t){return he(function(e,t,n){return t=$(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=$(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ie),e+"")}((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!Se(n))return!1;var r=typeof t;return!!("number"==r?_e(n)&&pe(t,n.length):"string"==r&&t in n)&&ve(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r)}return t}))}((function(e,t,n){se(e,t,n)}));function Ae(e){return function(){return e}}function Ie(e){return e}t.exports=we})),kt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessorBase=void 0;var t=Oe(),n=ht();e.BatchSpanProcessorBase=class{constructor(e,t){this._exporter=e,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();let r=n.getEnv();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT}forceFlush(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()}onStart(e){}onEnd(e){this._isShutdown||this._addToBuffer(e)}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this.onShutdown())).then((()=>this._flushAll())).then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}_addToBuffer(e){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(e),this._maybeStartTimer())}_flushAll(){return new Promise(((e,t)=>{let n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then((()=>{e()})).catch(t)}))}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(((e,r)=>{let i=setTimeout((()=>{r(new Error("Timeout"))}),this._exportTimeoutMillis);t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export(this._finishedSpans.splice(0,this._maxExportBatchSize),(t=>{var o;clearTimeout(i),t.code===n.ExportResultCode.SUCCESS?e():r(null!==(o=t.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))}))}))}))}_maybeStartTimer(){void 0===this._timer&&(this._timer=setTimeout((()=>{this._flushOneBatch().then((()=>{this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())})).catch((e=>{n.globalErrorHandler(e)}))}),this._scheduledDelayMillis),n.unrefTimer(this._timer))}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}})),Mt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessor=void 0;var t=kt(),n=class extends t.BatchSpanProcessorBase{onShutdown(){}};e.BatchSpanProcessor=n})),jt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Mt(),e)})),Lt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(jt(),e)})),Ft=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTracerProvider=e.ForceFlushState=void 0;var t,n,r=Oe(),i=ht(),o=xt(),a=Wt(),s=mt(),c=Rt(),u=Nt(),l=Dt(),p=Lt();(n=t=e.ForceFlushState||(e.ForceFlushState={}))[n.resolved=0]="resolved",n[n.timeout=1]="timeout",n[n.error=2]="error",n[n.unresolved=3]="unresolved";var d=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=l({},s.DEFAULT_CONFIG,e);this.resource=null!==(t=n.resource)&&void 0!==t?t:o.Resource.empty(),this.resource=o.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let r=this._buildExporterFromEnv();if(void 0!==r){let e=new p.BatchSpanProcessor(r);this.activeSpanProcessor=e}else this.activeSpanProcessor=new u.NoopSpanProcessor}getTracer(e,t){let n=`${e}@${t||""}`;return this._tracers.has(n)||this._tracers.set(n,new a.Tracer({name:e,version:t},this._config,this)),this._tracers.get(n)}addSpanProcessor(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((e=>r.diag.error("Error while trying to shutdown current span processor",e))),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new c.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){r.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&r.context.setGlobalContextManager(e.contextManager),e.propagator&&r.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map((n=>new Promise((r=>{let i,o=setTimeout((()=>{r(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=t.timeout}),e);n.forceFlush().then((()=>{clearTimeout(o),i!==t.timeout&&(i=t.resolved,r(i))})).catch((e=>{clearTimeout(o),i=t.error,r(e)}))}))));return new Promise(((e,r)=>{Promise.all(n).then((n=>{let i=n.filter((e=>e!==t.resolved));i.length>0?r(i):e()})).catch((e=>r([e])))}))}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return null===(t=d._registeredPropagators.get(e))||void 0===t?void 0:t()}_getSpanExporter(e){var t;return null===(t=d._registeredExporters.get(e))||void 0===t?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set(i.getEnv().OTEL_PROPAGATORS)),t=e.map((e=>{let t=this._getPropagator(e);return t||r.diag.warn(`Propagator "${e}" requested through environment variable is unavailable.`),t})).reduce(((e,t)=>(t&&e.push(t),e)),[]);if(0!==t.length)return 1===e.length?t[0]:new i.CompositePropagator({propagators:t})}_buildExporterFromEnv(){let e=i.getEnv().OTEL_TRACES_EXPORTER;if("none"===e)return;let t=this._getSpanExporter(e);return t||r.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};e.BasicTracerProvider=d,d._registeredPropagators=new Map([["tracecontext",()=>new i.HttpTraceContextPropagator],["baggage",()=>new i.HttpBaggagePropagator]]),d._registeredExporters=new Map})),Bt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleSpanExporter=void 0;var t=ht();e.ConsoleSpanExporter=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),Promise.resolve()}_exportInfo(e){return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:t.hrTimeToMicroseconds(e.startTime),duration:t.hrTimeToMicroseconds(e.duration),attributes:e.attributes,status:e.status,events:e.events}}_sendSpans(e,n){for(let t of e)console.log(this._exportInfo(t));if(n)return n({code:t.ExportResultCode.SUCCESS})}}})),Ht=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemorySpanExporter=void 0;var t=ht();e.InMemorySpanExporter=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,n){if(this._stopped)return n({code:t.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout((()=>n({code:t.ExportResultCode.SUCCESS})),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),Ut=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Vt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleSpanProcessor=void 0;var t=Oe(),n=ht();e.SimpleSpanProcessor=class{constructor(e){this._exporter=e,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}forceFlush(){return Promise.resolve()}onStart(e){}onEnd(e){this._isShutdown||t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export([e],(e=>{var t;e.code!==n.ExportResultCode.SUCCESS&&n.globalErrorHandler(null!==(t=e.error)&&void 0!==t?t:new Error(`SimpleSpanProcessor: span export failed (status ${e})`))}))}))}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}}})),qt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),$t=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),zt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Wt=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(yt(),e),n(Ft(),e),n(Lt(),e),n(Bt(),e),n(Ht(),e),n(Ut(),e),n(Vt(),e),n(qt(),e),n(Nt(),e),n(gt(),e),n(Gt(),e),n($t(),e),n(zt(),e)})),Kt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.azureCoreTracing=e.AzureMonitorSymbol=void 0;var t=k();e.AzureMonitorSymbol="Azure_Monitor_Tracer";var n=!1;e.azureCoreTracing={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(r){if(n)return r;try{var i=Wt(),o=Oe(),a=(new i.BasicTracerProvider).getTracer("applicationinsights tracer"),s=r.setTracer;r.setTracer=function(n){var r=n.startSpan;n.startSpan=function(e,n,i){var o=r.call(this,e,n,i),a=o.end;return o.end=function(){var e=a.apply(this,arguments);return t.channel.publish("azure-coretracing",o),e},o},n[e.AzureMonitorSymbol]=!0,s.call(this,n)},o.trace.getSpan(o.context.active()),r.setTracer(a),n=!0}catch{}return r}},e.enable=function(){t.channel.registerMonkeyPatch("@azure/core-tracing",e.azureCoreTracing)}})),Yt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.bunyan=void 0;var t=k();e.bunyan={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(e){var n=e.prototype._emit;return e.prototype._emit=function(e,r){var i=n.apply(this,arguments);if(!r){var o=i;o||(o=n.call(this,e,!0)),t.channel.publish("bunyan",{level:e.level,result:o})}return i},e}},e.enable=function(){t.channel.registerMonkeyPatch("bunyan",e.bunyan)}})),Qt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.console=void 0;var t=k(),r=n(2781);e.console={versionSpecifier:">= 4.0.0",patch:function(e){var n=new r.Writable,i=new r.Writable;n.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n}),!0},i.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n,stderr:!0}),!0};for(var o=new e.Console(n,i),a=function(t){var n=e[t];n&&(e[t]=function(){if(o[t])try{o[t].apply(o,arguments)}catch{}return n.apply(e,arguments)})},s=0,c=["log","info","warn","error","dir","time","timeEnd","trace","assert"];s<c.length;s++)a(c[s]);return e}},e.enable=function(){t.channel.registerMonkeyPatch("console",e.console),n(6206)}})),Xt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongoCore=void 0;var t=k();e.mongoCore={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.Server.prototype.connect;return e.Server.prototype.connect=function(){var e=n.apply(this,arguments),r=this.s.pool.write;this.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=t.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var i=this.s.pool.logout;return this.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=t.channel.bindToContext(arguments[1])),i.apply(this,arguments)},e},e}},e.enable=function(){t.channel.registerMonkeyPatch("mongodb-core",e.mongoCore)}})),Jt=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongo330=e.mongo3=e.mongo2=void 0;var n=k();e.mongo2={versionSpecifier:">= 2.0.0 <= 3.0.5",patch:function(e){var r=e.instrument({operationIdGenerator:{next:function(){return n.channel.bindToContext((function(e){return e()}))}}}),i={};return r.on("started",(function(e){i[e.requestId]||(i[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),r.on("failed",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),e}},e.mongo3={versionSpecifier:"> 3.0.5 < 3.3.0",patch:function(e){var r=e.instrument(),i={},o={};return r.on("started",(function(e){i[e.requestId]||(o[e.requestId]=n.channel.bindToContext((function(e){return e()})),i[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete o[e.requestId])})),r.on("failed",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete o[e.requestId])})),e}},e.mongo330={versionSpecifier:">= 3.3.0 < 4.0.0",patch:function(e){!function(e){var t=e.Server.prototype.connect;e.Server.prototype.connect=function(){var e=t.apply(this,arguments),r=this.s.coreTopology.s.pool.write;this.s.coreTopology.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=n.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var i=this.s.coreTopology.s.pool.logout;return this.s.coreTopology.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=n.channel.bindToContext(arguments[1])),i.apply(this,arguments)},e}}(e);var t=e.instrument(),r={},i={};return t.on("started",(function(e){r[e.requestId]||(i[e.requestId]=n.channel.bindToContext((function(e){return e()})),r[e.requestId]=e)})),t.on("succeeded",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete i[e.requestId])})),t.on("failed",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete i[e.requestId])})),e}},e.enable=function(){n.channel.registerMonkeyPatch("mongodb",e.mongo2),n.channel.registerMonkeyPatch("mongodb",e.mongo3),n.channel.registerMonkeyPatch("mongodb",e.mongo330)}})),Zt=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mysql=void 0;var t=k(),r=n(1017);e.mysql={versionSpecifier:">= 2.0.0 < 3.0.0",patch:function(e,i){var o=function(e,n){return function(n,r){var i=e[n];i&&(e[n]=function(){for(var e=arguments.length-1,n=arguments.length-1;n>=0;--n){if("function"==typeof arguments[n]){e=n;break}if(typeof arguments[n]<"u")break}var o=arguments[e],a={result:null,startTime:null,startDate:null};"function"==typeof o&&(r?(a.startTime=process.hrtime(),a.startDate=new Date,arguments[e]=t.channel.bindToContext(r(a,o))):arguments[e]=t.channel.bindToContext(o));var s=i.apply(this,arguments);return a.result=s,s})}},a=function(e,t){return o(e.prototype)},s=n(5029)(r.dirname(i)+"/lib/Connection");["connect","changeUser","ping","statistics","end"].forEach((function(e){return a(s)(e)})),o(s)("createQuery",(function(e,n){return function(r){var i=process.hrtime(e.startTime),o=1e3*i[0]+i[1]/1e6|0;t.channel.publish("mysql",{query:e.result,callbackArgs:arguments,err:r,duration:o,time:e.startDate}),n.apply(this,arguments)}}));var c=n(3437)(r.dirname(i)+"/lib/Pool");return["_enqueueCallback"].forEach((function(e){return a(c)(e)})),e}},e.enable=function(){t.channel.registerMonkeyPatch("mysql",e.mysql)}})),en=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgresPool1=void 0;var t=k();e.postgresPool1={versionSpecifier:">= 1.0.0 < 3.0.0",patch:function(e){var n=e.prototype.connect;return e.prototype.connect=function(e){return e&&(arguments[0]=t.channel.bindToContext(e)),n.apply(this,arguments)},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg-pool",e.postgresPool1)}})),tn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgres7=e.postgres6=void 0;var t=k(),r=n(2361);e.postgres6={versionSpecifier:"6.*",patch:function(e,n){var i=e.Client.prototype.query,o="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},u=process.hrtime();function l(e){e&&e[o]&&(e=e[o]);var n=t.channel.bindToContext((function(n,i){var o=process.hrtime(u);if(c.result=i&&{rowCount:i.rowCount,command:i.command},c.error=n,c.duration=Math.ceil(1e3*o[0]+o[1]/1e6),t.channel.publish("postgres",c),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,o,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(c.query.preparable={text:e,args:n},a=l(a)):(c.query.text=e,a?a=l(a):n=l(n)):("string"==typeof e.name?c.query.plan=e.name:e.values instanceof Array?c.query.preparable={text:e.text,args:e.values}:c.query.text=e.text,a?a=l(a):n?n=l(n):e.callback=l(e.callback))}catch{return i.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=i.apply(this,arguments)},e}},e.postgres7={versionSpecifier:">=7.* <=8.*",patch:function(e,n){var i=e.Client.prototype.query,o="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c=this,u=!!a,l={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},p=process.hrtime();function d(e){e&&e[o]&&(e=e[o]);var n=t.channel.bindToContext((function(n,i){var o=process.hrtime(p);if(l.result=i&&{rowCount:i.rowCount,command:i.command},l.error=n,l.duration=Math.ceil(1e3*o[0]+o[1]/1e6),t.channel.publish("postgres",l),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,o,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(l.query.preparable={text:e,args:n},a=(u="function"==typeof a)?d(a):a):(l.query.text=e,a?a=(u="function"==typeof a)?d(a):a:n=(u="function"==typeof n)?d(n):n):("string"==typeof e.name?l.query.plan=e.name:e.values instanceof Array?l.query.preparable={text:e.text,args:e.values}:l.query.text=e.text,a?(u="function"==typeof a,a=d(a)):n?n=(u="function"==typeof n)?d(n):n:(u="function"==typeof e.callback,e.callback=u?d(e.callback):e.callback))}catch{return i.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=i.apply(this,arguments),u?s:s.then((function(e){return d()(void 0,e),new c._Promise((function(t,n){t(e)}))})).catch((function(e){return d()(e,void 0),new c._Promise((function(t,n){n(e)}))}))},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg",e.postgres6),t.channel.registerMonkeyPatch("pg",e.postgres7)}})),nn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.redis=void 0;var t=k();e.redis={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.RedisClient.prototype.internal_send_command;return e.RedisClient.prototype.internal_send_command=function(e){if(e){var r=e.callback;if(!r||!r.pubsubBound){var i=this.address,o=process.hrtime(),a=new Date;e.callback=t.channel.bindToContext((function(n,s){var c=process.hrtime(o),u=1e3*c[0]+c[1]/1e6|0;t.channel.publish("redis",{duration:u,address:i,commandObj:e,err:n,result:s,time:a}),"function"==typeof r&&r.apply(this,arguments)})),e.callback.pubsubBound=!0}}return n.call(this,e)},e}},e.enable=function(){t.channel.registerMonkeyPatch("redis",e.redis)}})),rn=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=void 0;var n=k();e.tedious={versionSpecifier:">= 6.0.0 < 9.0.0",patch:function(e){var r=e.Connection.prototype.makeRequest;return e.Connection.prototype.makeRequest=function(){var e,i,o,a=arguments[0];arguments[0].callback=(e=a.callback,i=process.hrtime(),o={query:{},database:{host:null,port:null},result:null,error:null,duration:0},n.channel.bindToContext((function(r,a,s){var c=process.hrtime(i);o=t(t({},o),{database:{host:this.connection.config.server,port:this.connection.config.options.port},result:!r&&{rowCount:a,rows:s},query:{text:this.parametersByName.statement.value},error:r,duration:Math.ceil(1e3*c[0]+c[1]/1e6)}),n.channel.publish("tedious",o),e.call(this,r,a,s)}))),r.apply(this,arguments)},e}},e.enable=function(){n.channel.registerMonkeyPatch("tedious",e.tedious)}})),on=E((e=>{"use strict";var t,n=e&&e.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),r=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.winston2=e.winston3=void 0;var i=k();e.winston3={versionSpecifier:"3.x",patch:function(e){var t=function(e){function t(t,n){var r=e.call(this,n)||this;return r.winston=t,r}return n(t,e),t.prototype.log=function(e,t){var n=e.message,o=e.level,a=e.meta,s=r(e,["message","level","meta"]);o="function"==typeof Symbol.for?e[Symbol.for("level")]:o,n=e instanceof Error?e:n;var c=function(e,t){return null!=e.config.npm.levels[t]?"npm":null!=e.config.syslog.levels[t]?"syslog":"unknown"}(this.winston,o);for(var u in a=a||{},s)s.hasOwnProperty(u)&&(a[u]=s[u]);i.channel.publish("winston",{message:n,level:o,levelKind:c,meta:a}),t()},t}(e.Transport);function o(){var n,r=arguments[0].levels||e.config.npm.levels;for(var i in r)r.hasOwnProperty(i)&&(n=void 0===n||r[i]>r[n]?i:n);this.add(new t(e,{level:n}))}var a=e.createLogger;e.createLogger=function(){var n,r=arguments[0].levels||e.config.npm.levels;for(var i in r)r.hasOwnProperty(i)&&(n=void 0===n||r[i]>r[n]?i:n);var s=a.apply(this,arguments);s.add(new t(e,{level:n}));var c=s.configure;return s.configure=function(){c.apply(this,arguments),o.apply(this,arguments)},s};var s=e.configure;return e.configure=function(){s.apply(this,arguments),o.apply(this,arguments)},e.add(new t(e)),e}},e.winston2={versionSpecifier:"2.x",patch:function(e){var t,n=e.Logger.prototype.log,r=function(n,r,o){var a;return a=t===e.config.npm.levels?"npm":t===e.config.syslog.levels?"syslog":"unknown",i.channel.publish("winston",{level:n,message:r,meta:o,levelKind:a}),r};return e.Logger.prototype.log=function(){return t=this.levels,this.filters&&0!==this.filters.length?this.filters[this.filters.length-1]!==r&&(this.filters=this.filters.filter((function(e){return e!==r})),this.filters.push(r)):this.filters=[r],n.apply(this,arguments)},e}},e.enable=function(){i.channel.registerMonkeyPatch("winston",e.winston2),i.channel.registerMonkeyPatch("winston",e.winston3)}})),an=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=e.pgPool=e.pg=e.winston=e.redis=e.mysql=e.mongodb=e.mongodbCore=e.console=e.bunyan=e.azuresdk=void 0;var t=Kt();e.azuresdk=t;var n=Yt();e.bunyan=n;var r=Qt();e.console=r;var i=Xt();e.mongodbCore=i;var o=Jt();e.mongodb=o;var a=Zt();e.mysql=a;var s=en();e.pgPool=s;var c=tn();e.pg=c;var u=nn();e.redis=u;var l=rn();e.tedious=l;var p=on();e.winston=p,e.enable=function(){n.enable(),r.enable(),i.enable(),o.enable(),a.enable(),c.enable(),s.enable(),u.enable(),p.enable(),t.enable(),l.enable()}})),sn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerContextPreservation=e.IsInitialized=void 0;var t=x(),n=O();e.IsInitialized=!process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL;var r,i,o,a,s="DiagnosticChannel";if(e.IsInitialized){for(a in r=an(),i=(process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES||"").split(","),o={bunyan:r.bunyan,console:r.console,mongodb:r.mongodb,mongodbCore:r.mongodbCore,mysql:r.mysql,redis:r.redis,pg:r.pg,pgPool:r.pgPool,winston:r.winston,azuresdk:r.azuresdk})-1===i.indexOf(a)&&(o[a].enable(),n.info(s,"Subscribed to "+a+" events"));i.length>0&&n.info(s,"Some modules will not be patched",i)}else n.info(s,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");e.registerContextPreservation=function(n){if(e.IsInitialized){var r=k();r.channel.addContextPreservation(n),r.channel.spanContextPropagator=t.AsyncScopeManager}}})),cn=E(((e,t)=>{"use strict";t.exports={requestContextHeader:"request-context",requestContextSourceKey:"appId",requestContextTargetKey:"appId",requestIdHeader:"request-id",parentIdHeader:"x-ms-request-id",rootIdHeader:"x-ms-request-root-id",correlationContextHeader:"correlation-context",traceparentHeader:"traceparent",traceStateHeader:"tracestate"}})),un=E(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n(3685),o=n(5687),a=n(7310),s=n(2057),c=O(),u=cn(),l=function(){function e(){}return e.getCookie=function(t,n){var r="";if(t&&t.length&&"string"==typeof n)for(var i=t+"=",o=n.split(";"),a=0;a<o.length;a++)if(n=o[a],(n=e.trim(n))&&0===n.indexOf(i)){r=n.substring(i.length,o[a].length);break}return r},e.trim=function(e){return"string"==typeof e?e.replace(/^\s+|\s+$/g,""):""},e.int32ArrayToBase64=function(e){var t=function(e,t){return String.fromCharCode(e>>t&255)},n=e.map((function(e){return t(e,24)+t(e,16)+t(e,8)+t(e,0)})).join(""),r=(Buffer.from?Buffer.from(n,"binary"):new Buffer(n,"binary")).toString("base64");return r.substr(0,r.indexOf("="))},e.random32=function(){return 4294967296*Math.random()|0},e.randomu32=function(){return e.random32()+2147483648},e.w3cTraceId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+o+r.substr(16,3)+r.substr(19,12)},e.w3cSpanId=function(){return e.w3cTraceId().substring(16)},e.isValidW3CId=function(e){return 32===e.length&&"00000000000000000000000000000000"!==e},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return e instanceof Error},e.isPrimitive=function(e){var t=typeof e;return"string"===t||"number"===t||"boolean"===t},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=(e/1e3%60).toFixed(7).replace(/0{0,4}$/,""),n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=t.indexOf(".")<2?"0"+t:t,n=n.length<2?"0"+n:n,(i>0?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t},e.extractError=function(e){var t=e;return{message:e.message,code:t.code||t.id||""}},e.extractObject=function(t){return t instanceof Error?e.extractError(t):"function"==typeof t.toJSON?t.toJSON():t},e.validateStringMap=function(t){if("object"==typeof t){var n={};for(var r in t){var i="",o=t[r],a=typeof o;if(e.isPrimitive(o))i=o.toString();else if(null===o||"undefined"===a)i="";else{if("function"===a){c.info("key: "+r+" was function; will not serialize");continue}var s=e.isArray(o)?o:e.extractObject(o);try{i=e.isPrimitive(s)?s:JSON.stringify(s)}catch(e){i=o.constructor.name.toString()+" (Error: "+e.message+")",c.info("key: "+r+", could not be serialized")}}n[r]=i.substring(0,e.MAX_PROPERTY_LENGTH)}return n}c.info("Invalid properties dropped from payload")},e.canIncludeCorrelationHeader=function(e,t){var n=e&&e.config&&e.config.correlationHeaderExcludedDomains;if(!n||0==n.length||!t)return!0;for(var r=0;r<n.length;r++)if(new RegExp(n[r].replace(/\./g,".").replace(/\*/g,".*")).test(a.parse(t).hostname))return!1;return!0},e.getCorrelationContextTarget=function(e,t){var n=e.headers&&e.headers[u.requestContextHeader];if(n)for(var r=n.split(","),i=0;i<r.length;++i){var o=r[i].split("=");if(2==o.length&&o[0]==t)return o[1]}},e.makeRequest=function(t,n,s,u){n&&0===n.indexOf("//")&&(n="https:"+n);var l=a.parse(n),p=r(r({},s),{host:l.hostname,port:l.port,path:l.pathname}),d=void 0;if("https:"===l.protocol&&(d=t.proxyHttpsUrl||void 0),"http:"===l.protocol&&(d=t.proxyHttpUrl||void 0),d){0===d.indexOf("//")&&(d="http:"+d);var f=a.parse(d);"https:"===f.protocol?(c.info("Proxies that use HTTPS are not supported"),d=void 0):p=r(r({},p),{host:f.hostname,port:f.port||"80",path:n,headers:r(r({},p.headers),{Host:l.hostname})})}var h="https:"===l.protocol&&!d;return h&&void 0!==t.httpsAgent?p.agent=t.httpsAgent:h||void 0===t.httpAgent?h&&(p.agent=e.tlsRestrictedAgent):p.agent=t.httpAgent,h?o.request(p,u):i.request(p,u)},e.safeIncludeCorrelationHeader=function(t,n,r){var i;if("string"==typeof r)i=r;else if(r instanceof Array)i=r.join(",");else if(r&&"function"==typeof r.toString)try{i=r.toString()}catch(e){c.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.",e,r)}i?e.addCorrelationIdHeaderFromString(t,n,i):n.setHeader(u.requestContextHeader,u.requestContextSourceKey+"="+t.config.correlationId)},e.dumpObj=function(e){var t=Object.prototype.toString.call(e);return t+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":JSON.stringify(e))},e.addCorrelationIdHeaderFromString=function(e,t,n){var r=n.split(","),i=u.requestContextSourceKey+"=";r.some((function(e){return e.substring(0,i.length)===i}))||t.setHeader(u.requestContextHeader,n+","+u.requestContextSourceKey+"="+e.config.correlationId)},e.MAX_PROPERTY_LENGTH=8192,e.tlsRestrictedAgent=new o.Agent({keepAlive:!0,maxSockets:25,secureOptions:s.SSL_OP_NO_SSLv2|s.SSL_OP_NO_SSLv3|s.SSL_OP_NO_TLSv1|s.SSL_OP_NO_TLSv1_1}),e}();t.exports=l})),ln=E(((e,t)=>{"use strict";var n=un(),r=O(),i=function(){function e(){}return e.queryCorrelationId=function(t,i){var o=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId";if(e.completedLookups.hasOwnProperty(o))i(e.completedLookups[o]);else if(e.pendingLookups[o])e.pendingLookups[o].push(i);else{e.pendingLookups[o]=[i];var a=function(){if(e.pendingLookups[o]){var i={method:"GET",disableAppInsightsAutoCollection:!0};r.info(e.TAG,i);var s=n.makeRequest(t,o,i,(function(n){if(200===n.statusCode){var i="";n.setEncoding("utf-8"),n.on("data",(function(e){i+=e})),n.on("end",(function(){r.info(e.TAG,i);var t=e.correlationIdPrefix+i;e.completedLookups[o]=t,e.pendingLookups[o]&&e.pendingLookups[o].forEach((function(e){return e(t)})),delete e.pendingLookups[o]}))}else n.statusCode>=400&&n.statusCode<500?(e.completedLookups[o]=void 0,delete e.pendingLookups[o]):setTimeout(a,t.correlationIdRetryIntervalMs)}));s&&(s.on("error",(function(t){r.warn(e.TAG,t)})),s.end())}};setTimeout(a,0)}},e.cancelCorrelationIdQuery=function(t,n){var r=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId",i=e.pendingLookups[r];i&&(e.pendingLookups[r]=i.filter((function(e){return e!=n})),0==e.pendingLookups[r].length&&delete e.pendingLookups[r])},e.generateRequestId=function(t){if(t){"."!==(t="|"==t[0]?t:"|"+t)[t.length-1]&&(t+=".");var n=(e.currentRootId++).toString(16);return e.appendSuffix(t,n,"_")}return e.generateRootId()},e.getRootId=function(e){var t=e.indexOf(".");t<0&&(t=e.length);var n="|"===e[0]?1:0;return e.substring(n,t)},e.generateRootId=function(){return"|"+n.w3cTraceId()+"."},e.appendSuffix=function(t,r,i){if(t.length+r.length<e.requestIdMaxLength)return t+r+i;var o=e.requestIdMaxLength-9;if(t.length>o)for(;o>1;--o){var a=t[o-1];if("."===a||"_"===a)break}if(o<=1)return e.generateRootId();for(r=n.randomu32().toString(16);r.length<8;)r="0"+r;return t.substring(0,o)+r+"#"},e.TAG="CorrelationIdManager",e.correlationIdPrefix="cid-v1:",e.w3cEnabled=!0,e.pendingLookups={},e.completedLookups={},e.requestIdMaxLength=1024,e.currentRootId=n.randomu32(),e}();t.exports=i})),pn=E(((e,t)=>{"use strict";var n=un(),r=ln(),i=function(){function e(t,i){if(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,t&&"string"==typeof t)if(t.split(",").length>1)this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16);else{var o=t.trim().split("-"),a=o.length;a>=4?(this.version=o[0],this.traceId=o[1],this.spanId=o[2],this.traceFlag=o[3]):(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^[0-9a-f]{2}$/g)||(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId()),"00"===this.version&&4!==a&&(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),"ff"===this.version&&(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^0[0-9a-f]$/g)||(this.version=e.DEFAULT_VERSION),this.traceFlag.match(/^[0-9a-f]{2}$/g)||(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.traceId=n.w3cTraceId()),e.isValidTraceId(this.traceId)||(this.traceId=n.w3cTraceId()),e.isValidSpanId(this.spanId)||(this.spanId=n.w3cTraceId().substr(0,16),this.traceId=n.w3cTraceId()),this.parentId=this.getBackCompatRequestId()}else if(i){this.parentId=i.slice();var s=r.getRootId(i);e.isValidTraceId(s)||(this.legacyRootId=s,s=n.w3cTraceId()),-1!==i.indexOf("|")&&(i=i.substring(1+i.substring(0,i.length-1).lastIndexOf("."),i.length-1)),this.traceId=s,this.spanId=i}else this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.formatOpenTelemetryTraceFlags=function(e){var t="0"+e.toString(16);return t.substring(t.length-2)},e.prototype.getBackCompatRequestId=function(){return"|"+this.traceId+"."+this.spanId+"."},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.prototype.updateSpanId=function(){this.spanId=n.w3cTraceId().substr(0,16)},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}();t.exports=i})),dn=E(((e,t)=>{"use strict";var n=function(){function e(e){this.fieldmap=[],e&&(this.fieldmap=this.parseHeader(e))}return e.prototype.toString=function(){var e=this.fieldmap;return e&&0!=e.length?e.join(", "):null},e.validateKeyChars=function(e){var t=e.split("@");if(2==t.length){var n=t[0].trim(),r=t[1].trim(),i=Boolean(n.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/)),o=Boolean(r.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/));return i&&o}return 1==t.length&&Boolean(e.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/))},e.prototype.parseHeader=function(t){var n=[],r={},i=t.split(",");if(i.length>32)return null;for(var o=0,a=i;o<a.length;o++){var s=a[o].trim();if(0!==s.length){var c=s.split("=");if(2!==c.length||!e.validateKeyChars(c[0])||r[c[0]])return null;r[c[0]]=!0,n.push(s)}}return n},e.strict=!0,e}();t.exports=n})),fn=E(((e,t)=>{"use strict";t.exports=function(){}})),hn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),vn=E(((e,t)=>{"use strict";t.exports=function(){}})),gn=E(((e,t)=>{"use strict";t.exports=function(){this.applicationVersion="ai.application.ver",this.deviceId="ai.device.id",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceOEMName="ai.device.oemName",this.deviceOSVersion="ai.device.osVersion",this.deviceType="ai.device.type",this.locationIp="ai.location.ip",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.userAccountId="ai.user.accountId",this.userId="ai.user.id",this.userAuthUserId="ai.user.authUserId",this.cloudRole="ai.cloud.role",this.cloudRoleInstance="ai.cloud.roleInstance",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalNodeName="ai.internal.nodeName"}})),mn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){return e.call(this)||this}return r(t,e),t}(vn());t.exports=i})),_n=E(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Measurement=0]="Measurement",r[r.Aggregation=1]="Aggregation",t.exports=n})),yn=E(((e,t)=>{"use strict";var n=_n();t.exports=function(){this.kind=n.Measurement}})),En=E(((e,t)=>{"use strict";t.exports=function(){this.ver=1,this.sampleRate=100,this.tags={}}})),bn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),Sn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),Tn=E(((e,t)=>{"use strict";t.exports=function(){this.hasFullStack=!0,this.parsedStack=[]}})),Pn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t}return r(t,e),t}(fn());t.exports=i})),Cn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t}return r(t,e),t}(fn());t.exports=i})),wn=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(bn());t.exports=i})),An=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),In=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),On=E(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Verbose=0]="Verbose",r[r.Information=1]="Information",r[r.Warning=2]="Warning",r[r.Error=3]="Error",r[r.Critical=4]="Critical",t.exports=n})),xn=E(((e,t)=>{"use strict";t.exports=function(){}})),Rn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AvailabilityData=hn(),e.Base=vn(),e.ContextTagKeys=gn(),e.Data=mn(),e.DataPoint=yn(),e.DataPointType=_n(),e.Domain=fn(),e.Envelope=En(),e.EventData=bn(),e.ExceptionData=Sn(),e.ExceptionDetails=Tn(),e.MessageData=Pn(),e.MetricData=Cn(),e.PageViewData=wn(),e.RemoteDependencyData=An(),e.RequestData=In(),e.SeverityLevel=On(),e.StackFrame=xn()})),Nn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.domainSupportsProperties=e.RemoteDependencyDataConstants=void 0;var t=Rn(),n=function(){function e(){}return e.TYPE_HTTP="Http",e.TYPE_AI="Http (tracked component)",e}();e.RemoteDependencyDataConstants=n,e.domainSupportsProperties=function(e){return"properties"in e||e instanceof t.EventData||e instanceof t.ExceptionData||e instanceof t.MessageData||e instanceof t.MetricData||e instanceof t.PageViewData||e instanceof t.RemoteDependencyData||e instanceof t.RequestData}})),Dn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),kn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Mn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),jn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ln=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Fn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Bn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Hn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Un=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Vn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),qn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),$n=E((e=>{"use strict";var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryType=e.TelemetryTypeString=e.baseTypeToTelemetryType=e.telemetryTypeToBaseType=void 0,e.telemetryTypeToBaseType=function(e){switch(e){case t.Event:return"EventData";case t.Exception:return"ExceptionData";case t.Trace:return"MessageData";case t.Metric:return"MetricData";case t.Request:return"RequestData";case t.Dependency:return"RemoteDependencyData";case t.Availability:return"AvailabilityData";case t.PageView:return"PageViewData"}},e.baseTypeToTelemetryType=function(e){switch(e){case"EventData":return t.Event;case"ExceptionData":return t.Exception;case"MessageData":return t.Trace;case"MetricData":return t.Metric;case"RequestData":return t.Request;case"RemoteDependencyData":return t.Dependency;case"AvailabilityData":return t.Availability;case"PageViewData":return t.PageView}},e.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"},(n=t=e.TelemetryType||(e.TelemetryType={}))[n.Event=0]="Event",n[n.Exception=1]="Exception",n[n.Trace=2]="Trace",n[n.Metric=3]="Metric",n[n.Request=4]="Request",n[n.Dependency=5]="Dependency",n[n.Availability=6]="Availability",n[n.PageView=7]="PageView"})),zn=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Dn(),e),n(kn(),e),n(Mn(),e),n(jn(),e),n(Ln(),e),n(Fn(),e),n(Bn(),e),n(Hn(),e),n(Un(),e),n(Vn(),e),n(qn(),e),n(Gn(),e),n($n(),e)})),Wn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Kn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Yn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Qn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Xn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Jn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Zn=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),er=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tr=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Wn(),e),n(Kn(),e),n(Yn(),e),n(Qn(),e),n(Xn(),e),n(Jn(),e),n(Zn(),e),n(er(),e)})),nr=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Nn(),e),n(Rn(),e),n(zn(),e),n(tr(),e)})),rr=E(((e,t)=>{"use strict";var n=function(){function e(){}return e.prototype.getUrl=function(){return this.url},e.prototype.RequestParser=function(){this.startTime=+new Date},e.prototype._setStatus=function(e,t){var n=+new Date;this.duration=n-this.startTime,this.statusCode=e;var r=this.properties||{};if(t)if("string"==typeof t)r.error=t;else if(t instanceof Error)r.error=t.message;else if("object"==typeof t)for(var i in t)r[i]=t[i]&&t[i].toString&&t[i].toString();this.properties=r},e.prototype._isSuccess=function(){return 0<this.statusCode&&this.statusCode<400},e}();t.exports=n})),ir=E(((e,t)=>{"use strict";var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=n(7310),a=nr(),s=un(),c=cn(),u=rr(),l=ln(),p=dn(),d=pn(),f=function(e){function t(t,n){var r=e.call(this)||this;return t&&(r.method=t.method,r.url=r._getAbsoluteUrl(t),r.startTime=+new Date,r.socketRemoteAddress=t.socket&&t.socket.remoteAddress,r.parseHeaders(t,n),t.connection&&(r.connectionRemoteAddress=t.connection.remoteAddress,r.legacySocketRemoteAddress=t.connection.socket&&t.connection.socket.remoteAddress)),r}return i(t,e),t.prototype.onError=function(e,t){this._setStatus(void 0,e),t&&(this.duration=t)},t.prototype.onResponse=function(e,t){this._setStatus(e.statusCode,void 0),t&&(this.duration=t)},t.prototype.getRequestTelemetry=function(e){var t={id:this.requestId,name:this.method+" "+o.parse(this.url).pathname,url:this.url,source:this.sourceCorrelationId,duration:this.duration,resultCode:this.statusCode?this.statusCode.toString():null,success:this._isSuccess(),properties:this.properties};if(e&&e.time?t.time=e.time:this.startTime&&(t.time=new Date(this.startTime)),e){for(var n in e)t[n]||(t[n]=e[n]);if(e.properties)for(var n in e.properties)t.properties[n]=e.properties[n]}return t},t.prototype.getRequestTags=function(e){var n={};for(var r in e)n[r]=e[r];return n[t.keys.locationIp]=e[t.keys.locationIp]||this._getIp(),n[t.keys.sessionId]=e[t.keys.sessionId]||this._getId("ai_session"),n[t.keys.userId]=e[t.keys.userId]||this._getId("ai_user"),n[t.keys.userAuthUserId]=e[t.keys.userAuthUserId]||this._getId("ai_authUser"),n[t.keys.operationName]=this.getOperationName(e),n[t.keys.operationParentId]=this.getOperationParentId(e),n[t.keys.operationId]=this.getOperationId(e),n},t.prototype.getOperationId=function(e){return e[t.keys.operationId]||this.operationId},t.prototype.getOperationParentId=function(e){return e[t.keys.operationParentId]||this.parentId||this.getOperationId(e)},t.prototype.getOperationName=function(e){return e[t.keys.operationName]||this.method+" "+o.parse(this.url).pathname},t.prototype.getRequestId=function(){return this.requestId},t.prototype.getCorrelationContextHeader=function(){return this.correlationContextHeader},t.prototype.getTraceparent=function(){return this.traceparent},t.prototype.getTracestate=function(){return this.tracestate},t.prototype.getLegacyRootId=function(){return this.legacyRootId},t.prototype._getAbsoluteUrl=function(e){if(!e.headers)return e.url;var t=e.connection?e.connection.encrypted:null,n=o.parse(e.url),r=n.pathname,i=n.search,a=t||"https"==e.headers["x-forwarded-proto"]?"https":"http";return o.format({protocol:a,host:e.headers.host,pathname:r,search:i})},t.prototype._getIp=function(){var e=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/,t=function(t){var n=e.exec(t);if(n)return n[0]},n=t(this.rawHeaders["x-forwarded-for"])||t(this.rawHeaders["x-client-ip"])||t(this.rawHeaders["x-real-ip"])||t(this.connectionRemoteAddress)||t(this.socketRemoteAddress)||t(this.legacySocketRemoteAddress);return!n&&this.connectionRemoteAddress&&this.connectionRemoteAddress.substr&&"::"===this.connectionRemoteAddress.substr(0,2)&&(n="127.0.0.1"),n},t.prototype._getId=function(e){var n=this.rawHeaders&&this.rawHeaders.cookie&&"string"==typeof this.rawHeaders.cookie&&this.rawHeaders.cookie||"";return t.parseId(s.getCookie(e,n))},t.prototype.setBackCompatFromThisTraceContext=function(){this.operationId=this.traceparent.traceId,this.traceparent.legacyRootId&&(this.legacyRootId=this.traceparent.legacyRootId),this.parentId=this.traceparent.parentId,this.traceparent.updateSpanId(),this.requestId=this.traceparent.getBackCompatRequestId()},t.prototype.parseHeaders=function(e,t){if(this.rawHeaders=e.headers||e.rawHeaders,this.userAgent=e.headers&&e.headers["user-agent"],this.sourceCorrelationId=s.getCorrelationContextTarget(e,c.requestContextSourceKey),e.headers){var n=e.headers[c.traceStateHeader]?e.headers[c.traceStateHeader].toString():null,r=e.headers[c.traceparentHeader]?e.headers[c.traceparentHeader].toString():null,i=e.headers[c.requestIdHeader]?e.headers[c.requestIdHeader].toString():null,o=e.headers[c.parentIdHeader]?e.headers[c.parentIdHeader].toString():null,a=e.headers[c.rootIdHeader]?e.headers[c.rootIdHeader].toString():null;this.correlationContextHeader=e.headers[c.correlationContextHeader]?e.headers[c.correlationContextHeader].toString():null,l.w3cEnabled&&(r||n)?(this.traceparent=new d(r?r.toString():null),this.tracestate=r&&n&&new p(n?n.toString():null),this.setBackCompatFromThisTraceContext()):i?l.w3cEnabled?(this.traceparent=new d(null,i),this.setBackCompatFromThisTraceContext()):(this.parentId=i,this.requestId=l.generateRequestId(this.parentId),this.operationId=l.getRootId(this.requestId)):l.w3cEnabled?(this.traceparent=new d,this.traceparent.parentId=o,this.traceparent.legacyRootId=a||o,this.setBackCompatFromThisTraceContext()):(this.parentId=o,this.requestId=l.generateRequestId(a||this.parentId),this.correlationContextHeader=null,this.operationId=l.getRootId(this.requestId)),t&&(this.requestId=t,this.operationId=l.getRootId(this.requestId))}},t.parseId=function(e){var t=e.split("|");return t.length>0?t[0]:""},t.keys=new a.ContextTagKeys,t}(u);t.exports=f})),or=E(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var v=s++;a[v]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var g=s++;a[g]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var _=s++;a[_]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var y=s++,E="v?"+a[p]+a[v]+"?"+a[_]+"?";a[y]="^"+E+"$";var b="[v=\\s]*"+a[d]+a[g]+"?"+a[_]+"?",S=s++;a[S]="^"+b+"$";var T=s++;a[T]="((?:<|>)?=?)";var P=s++;a[P]=a[u]+"|x|X|\\*";var C=s++;a[C]=a[c]+"|x|X|\\*";var w=s++;a[w]="[v=\\s]*("+a[C]+")(?:\\.("+a[C]+")(?:\\.("+a[C]+")(?:"+a[v]+")?"+a[_]+"?)?)?";var A=s++;a[A]="[v=\\s]*("+a[P]+")(?:\\.("+a[P]+")(?:\\.("+a[P]+")(?:"+a[g]+")?"+a[_]+"?)?)?";var I=s++;a[I]="^"+a[T]+"\\s*"+a[w]+"$";var O=s++;a[O]="^"+a[T]+"\\s*"+a[A]+"$";var x=s++;a[x]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=s++;a[R]="(?:~>?)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",o[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[w]+"$";var k=s++;a[k]="^"+a[R]+a[A]+"$";var M=s++;a[M]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[M]+"\\s+",o[j]=new RegExp(a[j],"g");var L=s++;a[L]="^"+a[M]+a[w]+"$";var F=s++;a[F]="^"+a[M]+a[A]+"$";var B=s++;a[B]="^"+a[T]+"\\s*("+b+")$|^$";var H=s++;a[H]="^"+a[T]+"\\s*("+E+")$|^$";var U=s++;a[U]="(\\s*)"+a[T]+"\\s*("+b+"|"+a[w]+")",o[U]=new RegExp(a[U],"g");var V=s++;a[V]="^\\s*("+a[w]+")\\s+-\\s+("+a[w]+")\\s*$";var q=s++;a[q]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var G,$=s++;for(a[$]="(<|>)?=?\\s*\\*",G=0;G<35;G++)n(G,a[G]),o[G]||(o[G]=new RegExp(a[G]));function z(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[S]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[S]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=z,e.valid=function(e,t){var n=z(e,t);return n?n.version:null},e.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),Y(this.major,e.major)||Y(this.minor,e.minor)||Y(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return Y(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=z(e),r=z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=Y;var K=/^[0-9]+$/;function Y(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new W(e,n).compare(new W(t,n))}function X(e,t,n){return Q(e,t,n)>0}function J(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return X(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return Y(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=Q,e.compareLoose=function(e,t){return Q(e,t,!0)},e.rcompare=function(e,t,n){return Q(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=X,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,u,l,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ue(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=X,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=X,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],p=null,d=null;if(l.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[B]:o[H],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[V];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[U],"$1$2$3"),n("comparator trim",e,o[U]),e=(e=(e=e.replace(o[N],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=t?o[B]:o[H],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[F]:o[L];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[O]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),u=c||se(o),l=u||se(a);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},e.satisfies=le,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||X(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[x]);return null==t?null:z(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),ar=E(((e,t)=>{"use strict";function n(e){return"function"==typeof e}var r=console.error.bind(console);function i(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function o(e){e&&e.logger&&(n(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function a(e,t,o){if(e&&e[t]){if(!o)return r("no wrapper function"),void r((new Error).stack);if(n(e[t])&&n(o)){var a=e[t],s=o(a,t);return i(s,"__original",a),i(s,"__unwrap",(function(){e[t]===s&&i(e,t,a)})),i(s,"__wrapped",!0),i(e,t,s),s}r("original object and wrapper must be functions")}else r("no original function "+t+" to wrap")}function s(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void r("no original to unwrap to -- has "+t+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}o.wrap=a,o.massWrap=function(e,t,n){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){a(e,t,n)}))})):r("must provide one or more functions to wrap on modules")},o.unwrap=s,o.massUnwrap=function(e,t){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){s(e,t)}))})):r("must provide one or more functions to unwrap on modules")},t.exports=o})),sr=E(((e,t)=>{"use strict";var n=ar(),r=n.wrap,i=n.unwrap,o="wrap@before";function a(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function s(e,t){var n;return n=e._events&&e._events[t],Array.isArray(n)||(n=n?[n]:[]),n}function c(e,t){if(e){var n=e;if("function"==typeof e)n=t(e);else if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n[r]=t(e[r])}return n}}t.exports=function(e,t,n){if(!(e&&e.on&&e.addListener&&e.removeListener&&e.emit))throw new Error("can only wrap real EEs");if(!t)throw new Error("must have function to run on listener addition");if(!n)throw new Error("must have function to wrap listeners when emitting");function u(e){return function(t,n){var i=s(this,t).slice();try{var a=e.call(this,t,n);return function(e,t,n){var r=s(e,t).filter((function(e){return-1===n.indexOf(e)}));r.length>0&&function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r],a=e[o];if("function"==typeof a)a(i);else if(Array.isArray(a))for(var s=a.length,c=0;c<s;c++)a[c](i)}}(e,r)}(this,t,i),a}finally{this.on.__wrapped||r(this,"on",u),this.addListener.__wrapped||r(this,"addListener",u)}}}e[o]?"function"==typeof e[o]?a(e,o,[e[o],t]):Array.isArray(e[o])&&e[o].push(t):a(e,o,t),e.__wrapped||(r(e,"addListener",u),r(e,"on",u),r(e,"emit",(function(e){return function(t){if(!this._events||!this._events[t])return e.apply(this,arguments);var o=this._events[t];r(this,"removeListener",(function(e){return function(){this._events[t]=o;try{return e.apply(this,arguments)}finally{o=this._events[t],this._events[t]=c(o,n)}}}));try{return this._events[t]=c(o,n),e.apply(this,arguments)}finally{i(this,"removeListener"),this._events[t]=o}}})),a(e,"__unwrap",(function(){i(e,"addListener"),i(e,"on"),i(e,"emit"),delete e[o],delete e.__wrapped})),a(e,"__wrapped",!0))}})),cr=E(((e,t)=>{"use strict";var r=n(3837),i=n(9491),o=sr(),a=n(852),s="cls@contexts",c="error@context",u=process.env.DEBUG_CLS_HOOKED,l=-1;function p(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map,this._indent=0}function d(e){return process.namespaces[e]}function f(e){let t=d(e);i.ok(t,"can't delete nonexistent namespace! \""+e+'"'),i.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function h(...e){u&&process._rawDebug(`${r.format(...e)}`)}t.exports={getNamespace:d,createNamespace:function(e){i.ok(e,"namespace must be given a name."),u&&h(`NS-CREATING NAMESPACE (${e})`);let t=new p(e);return t.id=l,a.createHook({init(n,i,o,s){if(l=a.executionAsyncId(),t.active)t._contexts.set(n,t.active),u&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT [${i}] (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`);else if(0===l){let o=a.triggerAsyncId(),c=t._contexts.get(o);c?(t._contexts.set(n,c),u&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT USING CONTEXT FROM TRIGGERID [${i}] (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)):u&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT MISSING CONTEXT [${i}] (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}if(u&&"PROMISE"===i){h(r.inspect(s,{showHidden:!0}));let a=s.parentId;h(`${" ".repeat(t._indent<0?0:t._indent)}INIT RESOURCE-PROMISE [${i}] (${e}) parentId:${a} asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}},before(n){let i;if(l=a.executionAsyncId(),i=t._contexts.get(n)||t._contexts.get(l),i){if(u){let o=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`),t._indent+=2}t.enter(i)}else if(u){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE MISSING CONTEXT (${e}) asyncId:${n} currentUid:${l} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${r.inspect(t._contexts,{showHidden:!0,depth:2,colors:!0})}`),t._indent+=2}},after(n){let i;if(l=a.executionAsyncId(),i=t._contexts.get(n)||t._contexts.get(l),i){if(u){let o=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`)}t.exit(i)}else if(u){let o=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER MISSING CONTEXT (${e}) asyncId:${n} currentUid:${l} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`)}},destroy(n){if(l=a.executionAsyncId(),u){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}DESTROY (${e}) currentUid:${l} asyncId:${n} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(t._contexts.get(l))}`)}t._contexts.delete(n)}}).enable(),process.namespaces[e]=t,t},destroyNamespace:f,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){f(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},p.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,u&&h(" ".repeat(this._indent<0?0:this._indent)+"CONTEXT-SET KEY:"+e+"="+t+" in ns:"+this.name+" currentUid:"+l+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),t},p.prototype.get=function(e){if(this.active){if(u){let t=a.executionAsyncId(),n=a.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);h(i+"CONTEXT-GETTING KEY:"+e+"="+this.active[e]+" ("+this.name+") currentUid:"+l+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),h(`${i}CONTEXT-GETTING KEY: (${this.name}) ${e}=${this.active[e]} currentUid:${l} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} active:${r.inspect(this.active)}`)}return this.active[e]}if(u){let t=a.currentId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${e}=undefined currentUid:${l} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length}`)}},p.prototype.createContext=function(){let e=Object.create(this.active?this.active:Object.prototype);if(e._ns_name=this.name,e.id=l,u){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-CREATED Context: (${this.name}) currentUid:${l} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} context:${r.inspect(e,{showHidden:!0,depth:2,colors:!0})}`)}return e},p.prototype.run=function(e){let t=this.createContext();this.enter(t);try{if(u){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${l} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} context:${r.inspect(t)}`)}return e(t),t}catch(e){throw e&&(e[c]=t),e}finally{if(u){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN END: (${this.name}) currentUid:${l} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} ${r.inspect(t)}`)}this.exit(t)}},p.prototype.runAndReturn=function(e){let t;return this.run((function(n){t=e(n)})),t},p.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return u&&h("CONTEXT-runPromise BEFORE: ("+this.name+") currentUid:"+l+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(u&&h("CONTEXT-runPromise AFTER then: ("+this.name+") currentUid:"+l+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,u&&h("CONTEXT-runPromise AFTER catch: ("+this.name+") currentUid:"+l+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},p.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},p.prototype.enter=function(e){if(i.ok(e,"context must be provided for entering"),u){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-ENTER: (${this.name}) currentUid:${l} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}this._set.push(this.active),this.active=e},p.prototype.exit=function(e){if(i.ok(e,"context must be provided for exiting"),u){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-EXIT: (${this.name}) currentUid:${l} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}if(this.active===e)return i.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(u&&h("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),i.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(i.ok(t,"can't remove top context"),this._set.splice(t,1))},p.prototype.bindEmitter=function(e){i.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;o(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},p.prototype.fromException=function(e){return e[c]},process.namespaces={}})),ur=E(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=process.nextTick;process.nextTick=function(){if(!t.enabled)return r.apply(process,arguments);let i=new Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];let o=i[0];if("function"!=typeof o)throw new TypeError("callback is not a function");let a=new n,s=--t.counter;return e.init.call(a,s,0,null,null),i[0]=function(){e.pre.call(a,s);let t=!0;try{o.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(a,s,!0),e.destroy.call(null,s)}))}e.post.call(a,s,!1),e.destroy.call(null,s)},r.apply(process,i)}}})),lr=E(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=global.Promise,i=r.prototype.then;function o(t,n,r,i){return"function"!=typeof t?i?function(t){return function(n){return e.destroy.call(null,t),n}}(r):function(t){return function(n){throw e.destroy.call(null,t),n}}(r):function(){e.pre.call(n,r);try{return t.apply(this,arguments)}finally{e.post.call(n,r,!1),e.destroy.call(null,r)}}}r.prototype.then=function(r,a){if(!t.enabled)return i.call(this,r,a);let s=new n,c=--t.counter;return e.init.call(s,c,0,null,null),i.call(this,o(r,s,c,!0),o(a,s,c,!1))}}})),pr=E(((e,t)=>{"use strict";var r=n(9512);function i(){}function o(){}function a(){}var s=new Map,c=new Map,u=new Map,l=null,p=!1;function d(e,t,n,i,o,a,s){let c=r[n],u=r[i];r[n]=function(){if(!t.enabled)return c.apply(r,arguments);let n=new Array(arguments.length);for(let e=0;e<arguments.length;e++)n[e]=arguments[e];let i=n[0];if("function"!=typeof i)throw new TypeError('"callback" argument must be a function');let u,d=new o,f=--t.counter;return e.init.call(d,f,0,null,null),n[0]=function(){l=u,e.pre.call(d,f);let t=!0;try{i.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(d,f,!0),a.delete(u),e.destroy.call(null,f)}))}e.post.call(d,f,!1),l=null,(s||p)&&(p=!1,a.delete(u),e.destroy.call(null,f))},u=c.apply(r,n),a.set(u,f),u},r[i]=function(t){if(l===t&&null!==t)p=!0;else if(a.has(t)){let n=a.get(t);a.delete(t),e.destroy.call(null,n)}u.apply(r,arguments)}}t.exports=function(){d(this._hooks,this._state,"setTimeout","clearTimeout",i,s,!0),d(this._hooks,this._state,"setInterval","clearInterval",o,c,!1),d(this._hooks,this._state,"setImmediate","clearImmediate",a,u,!0),global.setTimeout=r.setTimeout,global.setInterval=r.setInterval,global.setImmediate=r.setImmediate,global.clearTimeout=r.clearTimeout,global.clearInterval=r.clearInterval,global.clearImmediate=r.clearImmediate}})),dr=E(((e,t)=>{t.exports={name:"async-hook-jl",description:"Inspect the life of handle objects in node",version:"1.7.6",author:"Andreas Madsen <amwebdk@gmail.com>",main:"./index.js",scripts:{test:"node ./test/runner.js && eslint ."},repository:{type:"git",url:"git://github.com/jeff-lewis/async-hook-jl.git"},keywords:["async","async hooks","inspect","async wrap"],license:"MIT",dependencies:{"stack-chain":"^1.3.7"},devDependencies:{async:"1.5.x","cli-color":"1.1.x",eslint:"^3.4.0",endpoint:"0.4.x"},engines:{node:"^4.7 || >=6.9 || >=7.3"}}})),fr=E(((e,t)=>{"use strict";var n=process.binding("async_wrap"),r=n.Providers.TIMERWRAP,i={nextTick:ur(),promise:lr(),timers:pr()},o=new Set;function a(){this.enabled=!1,this.counter=0}function s(){let e=this.initFns=[],t=this.preFns=[],n=this.postFns=[],i=this.destroyFns=[];this.init=function(t,n,i,a){if(n!==r)for(let r of e)r(t,this,n,i,a);else o.add(t)},this.pre=function(e){if(!o.has(e))for(let n of t)n(e,this)},this.post=function(e,t){if(!o.has(e))for(let r of n)r(e,this,t)},this.destroy=function(e){if(o.has(e))o.delete(e);else for(let t of i)t(e)}}function c(e,t){let n=e.indexOf(t);-1!==n&&e.splice(n,1)}function u(){this._state=new a,this._hooks=new s,this.version=dr().version,this.providers=n.Providers;for(let e of Object.keys(i))i[e].call(this);process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING")&&console.warn("warning: you are using async-hook-jl which is unstable."),n.setupHooks({init:this._hooks.init,pre:this._hooks.pre,post:this._hooks.post,destroy:this._hooks.destroy})}s.prototype.add=function(e){e.init&&this.initFns.push(e.init),e.pre&&this.preFns.push(e.pre),e.post&&this.postFns.push(e.post),e.destroy&&this.destroyFns.push(e.destroy)},s.prototype.remove=function(e){e.init&&c(this.initFns,e.init),e.pre&&c(this.preFns,e.pre),e.post&&c(this.postFns,e.post),e.destroy&&c(this.destroyFns,e.destroy)},t.exports=u,u.prototype.addHooks=function(e){this._hooks.add(e)},u.prototype.removeHooks=function(e){this._hooks.remove(e)},u.prototype.enable=function(){this._state.enabled=!0,n.enable()},u.prototype.disable=function(){this._state.enabled=!1,n.disable()}})),hr=E(((e,t)=>{t.exports={name:"stack-chain",description:"API for combining call site modifiers",version:"1.3.7",author:"Andreas Madsen <amwebdk@gmail.com>",scripts:{test:"tap ./test/simple"},repository:{type:"git",url:"git://github.com/AndreasMadsen/stack-chain.git"},keywords:["stack","chain","trace","call site","concat","format"],devDependencies:{tap:"2.x.x","uglify-js":"2.5.x"},license:"MIT"}})),vr=E(((e,t)=>{t.exports=function(e,t){var n=[];n.push(function(e){try{return Error.prototype.toString.call(e)}catch(e){try{return"<error: "+e+">"}catch{return"<error>"}}}(e));for(var r=0;r<t.length;r++){var i,o=t[r];try{i=o.toString()}catch(e){try{i="<error: "+e+">"}catch{i="<error>"}}n.push("    at "+i)}return n.join("\n")}})),gr=E(((e,t)=>{var n=vr();function r(){this.extend=new a,this.filter=new a,this.format=new s,this.version=hr().version}var i=!1;r.prototype.callSite=function e(t){t||(t={}),i=!0;var n={};Error.captureStackTrace(n,e);var r=n.stack;return i=!1,r=r.slice(t.slice||0),t.extend&&(r=this.extend._modify(n,r)),t.filter&&(r=this.filter._modify(n,r)),r};var o=new r;function a(){this._modifiers=[]}function s(){this._formater=n,this._previous=void 0}a.prototype._modify=function(e,t){for(var n=0,r=this._modifiers.length;n<r;n++)t=this._modifiers[n](e,t);return t},a.prototype.attach=function(e){this._modifiers.push(e)},a.prototype.deattach=function(e){var t=this._modifiers.indexOf(e);return-1!==t&&(this._modifiers.splice(t,1),!0)},s.prototype.replace=function(e){e?this._formater=e:this.restore()},s.prototype.restore=function(){this._formater=n,this._previous=void 0},s.prototype._backup=function(){this._previous=this._formater},s.prototype._roolback=function(){this._previous===n?this.replace(void 0):this.replace(this._previous),this._previous=void 0},Error.prepareStackTrace&&o.format.replace(Error.prepareStackTrace);var c=!1;function u(e,t){if(i)return t;if(c)return n(e,t);var r=t.concat();r=o.extend._modify(e,r),r=(r=o.filter._modify(e,r)).slice(0,Error.stackTraceLimit),Object.isExtensible(e)&&void 0===Object.getOwnPropertyDescriptor(e,"callSite")&&(e.callSite={original:t,mutated:r}),c=!0;var a=o.format._formater(e,r);return c=!1,a}Object.defineProperty(Error,"prepareStackTrace",{get:function(){return u},set:function(e){e===u?o.format._roolback():(o.format._backup(),o.format.replace(e))}}),Object.defineProperty(Error.prototype,"callSite",{get:function(){return this.stack,this.callSite},set:function(e){Object.defineProperty(this,"callSite",{value:e,writable:!0,configurable:!0})},configurable:!0}),t.exports=o})),mr=E(((e,t)=>{if(global._stackChain){if(global._stackChain.version!==hr().version)throw new Error("Conflicting version of stack-chain found");t.exports=global._stackChain}else t.exports=global._stackChain=gr()})),_r=E(((e,t)=>{"use strict";var n=fr();if(global._asyncHook){if(global._asyncHook.version!==dr().version)throw new Error("Conflicting version of async-hook-jl found");t.exports=global._asyncHook}else mr().filter.attach((function(e,t){return t.filter((function(e){let t=e.getFileName();return!(t&&t.slice(0,__dirname.length)===__dirname)}))})),t.exports=global._asyncHook=new n})),yr=E(((e,t)=>{"use strict";var r=n(3837),i=n(9491),o=sr(),a=_r(),s="cls@contexts",c="error@context",u=[];for(let e in a.providers)u[a.providers[e]]=e;var l,p,d=process.env.DEBUG_CLS_HOOKED,f=-1;function h(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map}function v(e){return process.namespaces[e]}function g(e){let t=v(e);i.ok(t,"can't delete nonexistent namespace! \""+e+'"'),i.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function m(e){process.env.DEBUG&&process._rawDebug(e)}function _(e){return e?"function"==typeof e?e.name?e.name:(e.toString().trim().match(/^function\s*([^\s(]+)/)||[])[1]:e.constructor&&e.constructor.name?e.constructor.name:void 0:e}if(t.exports={getNamespace:v,createNamespace:function(e){i.ok(e,"namespace must be given a name."),d&&m("CREATING NAMESPACE "+e);let t=new h(e);return t.id=f,a.addHooks({init(n,i,o,a,s){f=n,a?(t._contexts.set(n,t._contexts.get(a)),d&&m("PARENTID: "+e+" uid:"+n+" parent:"+a+" provider:"+o)):t._contexts.set(f,t.active),d&&m("INIT "+e+" uid:"+n+" parent:"+a+" provider:"+u[o]+" active:"+r.inspect(t.active,!0))},pre(n,i){f=n;let o=t._contexts.get(n);o?(d&&m(" PRE "+e+" uid:"+n+" handle:"+_(i)+" context:"+r.inspect(o)),t.enter(o)):d&&m(" PRE MISSING CONTEXT "+e+" uid:"+n+" handle:"+_(i))},post(n,i){f=n;let o=t._contexts.get(n);o?(d&&m(" POST "+e+" uid:"+n+" handle:"+_(i)+" context:"+r.inspect(o)),t.exit(o)):d&&m(" POST MISSING CONTEXT "+e+" uid:"+n+" handle:"+_(i))},destroy(n){f=n,d&&m("DESTROY "+e+" uid:"+n+" context:"+r.inspect(t._contexts.get(f))+" active:"+r.inspect(t.active,!0)),t._contexts.delete(n)}}),process.namespaces[e]=t,t},destroyNamespace:g,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){g(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},h.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return d&&m("    SETTING KEY:"+e+"="+t+" in ns:"+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e]=t,t},h.prototype.get=function(e){if(this.active)return d&&m("    GETTING KEY:"+e+"="+this.active[e]+" "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e];d&&m("    GETTING KEY:"+e+"=undefined "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0))},h.prototype.createContext=function(){d&&m("   CREATING Context: "+this.name+" uid:"+f+" len:"+this._set.length+"  active:"+r.inspect(this.active,!0,2,!0));let e=Object.create(this.active?this.active:Object.prototype);return e._ns_name=this.name,e.id=f,d&&m("   CREATED Context: "+this.name+" uid:"+f+" len:"+this._set.length+"  context:"+r.inspect(e,!0,2,!0)),e},h.prototype.run=function(e){let t=this.createContext();this.enter(t);try{return d&&m(" BEFORE RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),e(t),t}catch(e){throw e&&(e[c]=t),e}finally{d&&m(" AFTER RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t)}},h.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},h.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return d&&m(" BEFORE runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(d&&m(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,d&&m(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},h.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},h.prototype.enter=function(e){i.ok(e,"context must be provided for entering"),d&&m("  ENTER "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this._set.push(this.active),this.active=e},h.prototype.exit=function(e){if(i.ok(e,"context must be provided for exiting"),d&&m("  EXIT "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this.active===e)return i.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(d&&m("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),i.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(i.ok(t,"can't remove top context"),this._set.splice(t,1))},h.prototype.bindEmitter=function(e){i.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;o(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},h.prototype.fromException=function(e){return e[c]},process.namespaces={},a._state&&!a._state.enabled&&a.enable(),d)for(p in(l=mr()).filter._modifiers)l.filter.deattach(p)})),Er=E(((e,t)=>{"use strict";var n=or();process&&n.gte(process.versions.node,"8.0.0")?t.exports=cr():t.exports=yr()})),br=E(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var u=s++;a[u]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[l]+")";var h=s++;a[h]="(?:"+a[u]+"|"+a[l]+")";var v=s++;a[v]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var g=s++;a[g]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var m=s++;a[m]="[0-9A-Za-z-]+";var _=s++;a[_]="(?:\\+("+a[m]+"(?:\\."+a[m]+")*))";var y=s++,E="v?"+a[p]+a[v]+"?"+a[_]+"?";a[y]="^"+E+"$";var b="[v=\\s]*"+a[d]+a[g]+"?"+a[_]+"?",S=s++;a[S]="^"+b+"$";var T=s++;a[T]="((?:<|>)?=?)";var P=s++;a[P]=a[u]+"|x|X|\\*";var C=s++;a[C]=a[c]+"|x|X|\\*";var w=s++;a[w]="[v=\\s]*("+a[C]+")(?:\\.("+a[C]+")(?:\\.("+a[C]+")(?:"+a[v]+")?"+a[_]+"?)?)?";var A=s++;a[A]="[v=\\s]*("+a[P]+")(?:\\.("+a[P]+")(?:\\.("+a[P]+")(?:"+a[g]+")?"+a[_]+"?)?)?";var I=s++;a[I]="^"+a[T]+"\\s*"+a[w]+"$";var O=s++;a[O]="^"+a[T]+"\\s*"+a[A]+"$";var x=s++;a[x]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=s++;a[R]="(?:~>?)";var N=s++;a[N]="(\\s*)"+a[R]+"\\s+",o[N]=new RegExp(a[N],"g");var D=s++;a[D]="^"+a[R]+a[w]+"$";var k=s++;a[k]="^"+a[R]+a[A]+"$";var M=s++;a[M]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[M]+"\\s+",o[j]=new RegExp(a[j],"g");var L=s++;a[L]="^"+a[M]+a[w]+"$";var F=s++;a[F]="^"+a[M]+a[A]+"$";var B=s++;a[B]="^"+a[T]+"\\s*("+b+")$|^$";var H=s++;a[H]="^"+a[T]+"\\s*("+E+")$|^$";var U=s++;a[U]="(\\s*)"+a[T]+"\\s*("+b+"|"+a[w]+")",o[U]=new RegExp(a[U],"g");var V=s++;a[V]="^\\s*("+a[w]+")\\s+-\\s+("+a[w]+")\\s*$";var q=s++;a[q]="^\\s*("+a[A]+")\\s+-\\s+("+a[A]+")\\s*$";var G,$=s++;for(a[$]="(<|>)?=?\\s*\\*",G=0;G<35;G++)n(G,a[G]),o[G]||(o[G]=new RegExp(a[G]));function z(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[S]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[S]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=z,e.valid=function(e,t){var n=z(e,t);return n?n.version:null},e.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),Y(this.major,e.major)||Y(this.minor,e.minor)||Y(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return Y(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=z(e),r=z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=Y;var K=/^[0-9]+$/;function Y(e,t){var n=K.test(e),r=K.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function Q(e,t,n){return new W(e,n).compare(new W(t,n))}function X(e,t,n){return Q(e,t,n)>0}function J(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return X(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return Y(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=Q,e.compareLoose=function(e,t){return Q(e,t,!0)},e.rcompare=function(e,t,n){return Q(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=X,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,u,l,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(u)?"<"+(+c+1)+".0.0":se(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+s)).trim()}function ue(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=X,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=X,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var l=t.set[u],p=null,d=null;if(l.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[B]:o[H],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[V];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[U],"$1$2$3"),n("comparator trim",e,o[U]),e=(e=(e=e.replace(o[N],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=t?o[B]:o[H],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[F]:o[L];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[O]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),u=c||se(o),l=u||se(a);return"="===r&&l&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[$],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},e.satisfies=le,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||X(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[x]);return null==t?null:z(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),Sr=E(((e,t)=>{var n,r,i,o,a,s=ar().wrap,c=1,u=2,l=4,p=8,d=[],f=0,h=!1,v=[];function g(e,t){var n=e.length,r=t.length,i=[];if(0===n&&0===r)return i;for(var o=0;o<n;o++)i[o]=e[o];if(0===r)return i;for(var a=0;a<r;a++){var s=!0;for(o=0;o<n;o++)if(e[o].uid===t[a].uid){s=!1;break}s&&i.push(t[a])}return i}function m(e,t){"function"==typeof e.create&&(this.create=e.create,this.flags|=c),"function"==typeof e.before&&(this.before=e.before,this.flags|=u),"function"==typeof e.after&&(this.after=e.after,this.flags|=l),"function"==typeof e.error&&(this.error=e.error,this.flags|=p),this.uid=++f,this.data=void 0===t?null:t}function _(e,t){if("object"!=typeof e||!e)throw new TypeError("callbacks argument must be an object");return e instanceof m?e:new m(e,t)}process._fatalException?(i=!1,n=function(e){var t=d.length;if(i||0===t)return!1;var n=!1;i=!0;for(var r=0;r<t;++r){var a=d[r];if(0!=(a.flags&p)){var s=o&&o[a.uid];n=a.error(s,e)||n}}return i=!1,v.length>0&&(d=v.pop()),o=void 0,n&&!h},r=function(e,t,n){var r=[];h=!0;for(var i=0;i<n;++i){var a=t[i];if(r[a.uid]=a.data,0!=(a.flags&c)){var s=a.create(a.data);void 0!==s&&(r[a.uid]=s)}}return h=!1,function(){o=r,v.push(d),d=g(t,d),h=!0;for(var i=0;i<n;++i)(t[i].flags&u)>0&&t[i].before(this,r[t[i].uid]);h=!1;var a=e.apply(this,arguments);for(h=!0,i=0;i<n;++i)(t[i].flags&l)>0&&t[i].after(this,r[t[i].uid]);return h=!1,d=v.pop(),o=void 0,a}},s(process,"_fatalException",(function(e){return function(t){return n(t)||e(t)}}))):(a=!1,n=function(e){if(a)throw e;for(var t=!1,n=d.length,r=0;r<n;++r){var i=d[r];0!=(i.flags&p)&&(t=i.error(null,e)||t)}if(!t&&h)throw e},r=function(e,t,r){var i=[];h=!0;for(var o=0;o<r;++o){var s=t[o];if(i[s.uid]=s.data,0!=(s.flags&c)){var f=s.create(s.data);void 0!==f&&(i[s.uid]=f)}}return h=!1,function(){var o,s=!1,c=!1;v.push(d),d=g(t,d),h=!0;for(var f=0;f<r;++f)(t[f].flags&u)>0&&t[f].before(this,i[t[f].uid]);h=!1;try{o=e.apply(this,arguments)}catch(e){for(s=!0,f=0;f<r;++f)if(0!=(d[f].flags&p))try{c=d[f].error(i[t[f].uid],e)||c}catch(e){throw a=!0,e}if(!c)throw process.removeListener("uncaughtException",n),process._originalNextTick((function(){process.addListener("uncaughtException",n)})),e}finally{if(!s||c){for(h=!0,f=0;f<r;++f)(t[f].flags&l)>0&&t[f].after(this,i[t[f].uid]);h=!1}d=v.pop()}return o}},process.addListener("uncaughtException",n)),m.prototype.create=void 0,m.prototype.before=void 0,m.prototype.after=void 0,m.prototype.error=void 0,m.prototype.data=void 0,m.prototype.uid=0,m.prototype.flags=0,process.createAsyncListener=_,process.addAsyncListener=function(e,t){var n;n=e instanceof m?e:_(e,t);for(var r=!1,i=0;i<d.length;i++)if(n===d[i]){r=!0;break}return r||d.push(n),n},process.removeAsyncListener=function(e){for(var t=0;t<d.length;t++)if(e===d[t]){d.splice(t,1);break}},t.exports=function(e){var t=d.length;if(0===t)return e;for(var n=d.slice(),i=0;i<t;++i)if(n[i].flags>0)return r(e,n,t);return function(e,t,n){h=!0;for(var r=0;r<n;++r){var i=t[r];i.create&&i.create(i.data)}return h=!1,function(){v.push(d),d=g(t,d);var n=e.apply(this,arguments);return d=v.pop(),n}}(e,n,t)}})),Tr=E(((e,t)=>{"use strict";t.exports=(e,t)=>class extends e{constructor(e){var n,r;super((function(e,o){n=this,r=[function(n){return t(i,!1),e(n)},function(e){return t(i,!1),o(e)}]}));var i=this;try{e.apply(n,r)}catch(e){r[1](e)}return i}}})),Pr=E((()=>{"use strict";if(process.addAsyncListener)throw new Error("Don't require polyfill unless needed");var e=ar(),t=br(),r=e.wrap,i=e.massWrap,o=Sr(),a=n(3837),s=t.gte(process.version,"6.0.0"),c=t.gte(process.version,"7.0.0"),u=t.gte(process.version,"8.0.0"),l=t.gte(process.version,"11.0.0"),p=n(1808);function d(e){return function(){this.on("connection",(function(e){e._handle&&(e._handle.onread=o(e._handle.onread))}));try{return e.apply(this,arguments)}finally{this._handle&&this._handle.onconnection&&(this._handle.onconnection=o(this._handle.onconnection))}}}function f(e){if(e&&e._handle){var t=e._handle;t._originalOnread||(t._originalOnread=t.onread),t.onread=o(t._originalOnread)}}c&&!p._normalizeArgs?p._normalizeArgs=function(e){if(0===e.length)return[{},null];var t=e[0],n={};"object"==typeof t&&null!==t?n=t:function(e){return"string"==typeof e&&!1===function(e){return(e=Number(e))>=0&&e}(e)}(t)?n.path=t:(n.port=t,e.length>1&&"string"==typeof e[1]&&(n.host=e[1]));var r=e[e.length-1];return"function"!=typeof r?[n,null]:[n,r]}:!c&&!p._normalizeConnectArgs&&(p._normalizeConnectArgs=function(e){var t={};"object"==typeof e[0]&&null!==e[0]?t=e[0]:"string"==typeof e[0]&&!1===function(e){return(e=Number(e))>=0&&e}(e[0])?t.path=e[0]:(t.port=e[0],"string"==typeof e[1]&&(t.host=e[1]));var n=e[e.length-1];return"function"==typeof n?[t,n]:[t]}),"_setUpListenHandle"in p.Server.prototype?r(p.Server.prototype,"_setUpListenHandle",d):r(p.Server.prototype,"_listen2",d),r(p.Socket.prototype,"connect",(function(e){return function(){var t;(t=u&&Array.isArray(arguments[0])&&Object.getOwnPropertySymbols(arguments[0]).length>0?arguments[0]:c?p._normalizeArgs(arguments):p._normalizeConnectArgs(arguments))[1]&&(t[1]=o(t[1]));var n=e.apply(this,t);return f(this),n}}));var h=n(3685);r(h.Agent.prototype,"addRequest",(function(e){return function(t){var n=t.onSocket;return t.onSocket=o((function(e){return f(e),n.apply(this,arguments)})),e.apply(this,arguments)}}));var v=n(2081);function g(e){Array.isArray(e.stdio)&&e.stdio.forEach((function(e){e&&e._handle&&(e._handle.onread=o(e._handle.onread),r(e._handle,"close",x))})),e._handle&&(e._handle.onexit=o(e._handle.onexit))}v.ChildProcess?r(v.ChildProcess.prototype,"spawn",(function(e){return function(){var t=e.apply(this,arguments);return g(this),t}})):i(v,["execFile","fork","spawn"],(function(e){return function(){var t=e.apply(this,arguments);return g(t),t}})),process._fatalException||(process._originalNextTick=process.nextTick);var m=[];process._nextDomainTick&&m.push("_nextDomainTick"),process._tickDomainCallback&&m.push("_tickDomainCallback"),i(process,m,O),r(process,"nextTick",x);var _=["setTimeout","setInterval"];global.setImmediate&&_.push("setImmediate");var y=n(9512),E=global.setTimeout===y.setTimeout;i(y,_,x),E&&i(global,_,x);var b=n(9523);i(b,["lookup","resolve","resolve4","resolve6","resolveCname","resolveMx","resolveNs","resolveTxt","resolveSrv","reverse"],O),b.resolveNaptr&&r(b,"resolveNaptr",O);var S,T,P,C=n(7147);i(C,["watch","rename","truncate","chown","fchown","chmod","fchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","watchFile","unwatchFile","exists"],O),C.lchown&&r(C,"lchown",O),C.lchmod&&r(C,"lchmod",O),C.ftruncate&&r(C,"ftruncate",O);try{S=n(9796)}catch{}S&&S.Deflate&&S.Deflate.prototype&&((T=Object.getPrototypeOf(S.Deflate.prototype))._transform?r(T,"_transform",O):T.write&&T.flush&&T.end&&i(T,["write","flush","end"],O));try{P=n(6113)}catch{}P&&(w=["pbkdf2","randomBytes"],l||w.push("pseudoRandomBytes"),i(P,w,O));var w,A,I=!!global.Promise&&"function Promise() { [native code] }"===Promise.toString()&&"function toString() { [native code] }"===Promise.toString.toString();function O(e){var t=function(){var t,n=arguments.length-1;if("function"==typeof arguments[n]){t=Array(arguments.length);for(var r=0;r<arguments.length-1;r++)t[r]=arguments[r];t[n]=o(arguments[n])}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof r&&(r=o(r)),e.call(this,n,r))};case 3:return function(n,r,i){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof i&&(i=o(i)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof a&&(a=o(a)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof s&&(s=o(s)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof c&&(c=o(c)),e.call(this,n,r,i,a,s,c))};default:return t}}function x(e){var t=function(){var t;if("function"==typeof arguments[0]){(t=Array(arguments.length))[0]=o(arguments[0]);for(var n=1;n<arguments.length;n++)t[n]=arguments[n]}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r))};case 3:return function(n,r,i){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a,s,c))};default:return t}}I&&(A=process.addAsyncListener({create:function(){I=!1}}),global.Promise.resolve(!0).then((function(){I=!1})),process.removeAsyncListener(A)),I&&function(){var e=global.Promise;function t(r){if(!(this instanceof t))return e(r);if("function"!=typeof r)return new e(r);var i,o,a=new e((function(e,t){i=this,o=[function(t){return n(a,!1),e(t)},function(e){return n(a,!1),t(e)}]}));a.__proto__=t.prototype;try{r.apply(i,o)}catch(e){o[1](e)}return a}function n(e,t){(!e.__asl_wrapper||t)&&(e.__asl_wrapper=o(i))}function i(t,r,o,a){var s;try{return{returnVal:s=r.call(t,o),error:!1}}catch(e){return{errorVal:e,error:!0}}finally{s instanceof e?a.__asl_wrapper=function(){return(s.__asl_wrapper||i).apply(this,arguments)}:n(a,!0)}}function c(e){return function(){var t=this,n=e.apply(t,Array.prototype.map.call(arguments,(function(e){return"function"!=typeof e?e:o((function(r){var o=(t.__asl_wrapper||i)(this,e,r,n);if(o.error)throw o.errorVal;return o.returnVal}))})));return n.__asl_wrapper=function(e,r,o,a){return t.__asl_wrapper?(t.__asl_wrapper(e,(function(){}),null,n),n.__asl_wrapper(e,r,o,a)):i(e,r,o,a)},n}}a.inherits(t,e),r(e.prototype,"then",c),e.prototype.chain&&r(e.prototype,"chain",c),s?global.Promise=Tr()(e,n):(["all","race","reject","resolve","accept","defer"].forEach((function(n){"function"==typeof e[n]&&(t[n]=e[n])})),global.Promise=t)}()})),Cr=E(((e,t)=>{"use strict";var r=n(9491),i=sr(),o="cls@contexts",a="error@context";function s(e){this.name=e,this.active=null,this._set=[],this.id=null}function c(e){return process.namespaces[e]}function u(e){var t=c(e);r.ok(t,"can't delete nonexistent namespace!"),r.ok(t.id,"don't assign to process.namespaces directly!"),process.removeAsyncListener(t.id),process.namespaces[e]=null}function l(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){u(e)})),process.namespaces=Object.create(null)}process.addAsyncListener||Pr(),s.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,t},s.prototype.get=function(e){if(this.active)return this.active[e]},s.prototype.createContext=function(){return Object.create(this.active)},s.prototype.run=function(e){var t=this.createContext();this.enter(t);try{return e(t),t}catch(e){throw e&&(e[a]=t),e}finally{this.exit(t)}},s.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},s.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());var n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[a]=t),e}finally{n.exit(t)}}},s.prototype.enter=function(e){r.ok(e,"context must be provided for entering"),this._set.push(this.active),this.active=e},s.prototype.exit=function(e){if(r.ok(e,"context must be provided for exiting"),this.active===e)return r.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());var t=this._set.lastIndexOf(e);r.ok(t>=0,"context not currently entered; can't exit"),r.ok(t,"can't remove top context"),this._set.splice(t,1)},s.prototype.bindEmitter=function(e){r.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");var t=this,n="context@"+this.name;i(e,(function(e){!e||(e[o]||(e[o]=Object.create(null)),e[o][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[o])return e;var t=e,n=e[o];return Object.keys(n).forEach((function(e){var r=n[e];t=r.namespace.bind(t,r.context)})),t}))},s.prototype.fromException=function(e){return e[a]},process.namespaces||l(),t.exports={getNamespace:c,createNamespace:function(e){r.ok(e,"namespace must be given a name!");var t=new s(e);return t.id=process.addAsyncListener({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e){e&&t.exit(e)}}),process.namespaces[e]=t,t},destroyNamespace:u,reset:l}})),wr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CorrelationContextManager=void 0;var t=O(),n=sn(),r=pn(),i=dn(),o=ir(),a=function(){function e(){}return e.getCurrentContext=function(){if(!e.enabled)return null;var t=e.session.get(e.CONTEXT_NAME);return void 0===t?null:t},e.generateContextObject=function(e,t,n,r,i,o){return t=t||e,this.enabled?{operation:{name:n,id:e,parentId:t,traceparent:i,tracestate:o},customProperties:new s(r)}:null},e.spanToContextObject=function(t,n,i){var o=new r;return o.traceId=t.traceId,o.spanId=t.spanId,o.traceFlag=r.formatOpenTelemetryTraceFlags(t.traceFlags)||r.DEFAULT_TRACE_FLAG,o.parentId=n,e.generateContextObject(o.traceId,o.parentId,i,null,o)},e.runWithContext=function(t,n){var r;return e.enabled?e.session.bind(n,((r={})[e.CONTEXT_NAME]=t,r))():n()},e.wrapEmitter=function(t){e.enabled&&e.session.bindEmitter(t)},e.wrapCallback=function(t,n){var r;return e.enabled?e.session.bind(t,n?((r={})[e.CONTEXT_NAME]=n,r):void 0):t},e.enable=function(t){if(!this.enabled){if(!this.isNodeVersionCompatible())return void(this.enabled=!1);e.hasEverEnabled||(this.forceClsHooked=t,this.hasEverEnabled=!0,typeof this.cls>"u"&&(!0===e.forceClsHooked||void 0===e.forceClsHooked&&e.shouldUseClsHooked()?this.cls=Er():this.cls=Cr()),e.session=this.cls.createNamespace("AI-CLS-Session"),n.registerContextPreservation((function(t){return e.session.bind(t)}))),this.enabled=!0}},e.startOperation=function(n,a){var s=n&&n.traceContext||null,c=n&&n.traceId?n:null,u=n&&n.headers;if(c){var l=new r("00-"+c.traceId+"-"+c.spanId+"-01"),p=new i(c.traceState?c.traceState.serialize():null);return e.generateContextObject(c.traceId,"|"+c.traceId+"."+c.spanId+".","string"==typeof a?a:"",void 0,l,p)}if(s){l=new r(s.traceparent),p=new i(s.tracestate);var d="object"==typeof a?new o(a):null;return e.generateContextObject(l.traceId,l.parentId,"string"==typeof a?a:d.getOperationName({}),d&&d.getCorrelationContextHeader()||void 0,l,p)}return u?(l=new r(u.traceparent?u.traceparent.toString():null),p=new i(u.tracestate?u.tracestate.toString():null),d=new o(n),e.generateContextObject(l.traceId,l.parentId,d.getOperationName({}),d.getCorrelationContextHeader(),l,p)):(t.warn("startOperation was called with invalid arguments",arguments),null)},e.disable=function(){this.enabled=!1},e.reset=function(){e.hasEverEnabled&&(e.session=null,e.session=this.cls.createNamespace("AI-CLS-Session"))},e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>3||parseInt(e[0])>2&&parseInt(e[1])>2},e.shouldUseClsHooked=function(){var e=process.versions.node.split(".");return parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=2},e.canUseClsHooked=function(){var e=process.versions.node.split("."),t=parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=0,n=parseInt(e[0])<8||parseInt(e[0])<=8&&parseInt(e[1])<2,r=parseInt(e[0])>4||parseInt(e[0])>=4&&parseInt(e[1])>=7;return!(t&&n)&&r},e.enabled=!1,e.hasEverEnabled=!1,e.forceClsHooked=void 0,e.CONTEXT_NAME="ApplicationInsights-Context",e}();e.CorrelationContextManager=a;var s=function(){function e(e){this.props=[],this.addHeaderData(e)}return e.prototype.addHeaderData=function(e){var t=e?e.split(", "):[];this.props=t.map((function(e){var t=e.split("=");return{key:t[0],value:t[1]}})).concat(this.props)},e.prototype.serializeToHeader=function(){return this.props.map((function(e){return e.key+"="+e.value})).join(", ")},e.prototype.getProperty=function(e){for(var t=0;t<this.props.length;++t){var n=this.props[t];if(n.key===e)return n.value}},e.prototype.setProperty=function(n,r){if(e.bannedCharacters.test(n)||e.bannedCharacters.test(r))t.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: "+n+" and value: "+r);else{for(var i=0;i<this.props.length;++i){var o=this.props[i];if(o.key===n)return void(o.value=r)}this.props.push({key:n,value:r})}},e.bannedCharacters=/[,=]/,e}()})),Ar=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i=function(e){var n=e.data.message;r.forEach((function(r){n instanceof Error?r.trackException({exception:n}):(n.lastIndexOf("\n")==n.length-1&&(n=n.substring(0,n.length-1)),r.trackTrace({message:n,severity:e.data.stderr?t.SeverityLevel.Warning:t.SeverityLevel.Information}))}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("console",i),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("console",i)},e.dispose=function(){n.channel.unsubscribe("console",i),r=[]}})),Ir=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i={10:t.SeverityLevel.Verbose,20:t.SeverityLevel.Verbose,30:t.SeverityLevel.Information,40:t.SeverityLevel.Warning,50:t.SeverityLevel.Error,60:t.SeverityLevel.Critical},o=function(e){var t=e.data.result;r.forEach((function(n){var r=i[e.data.level];t instanceof Error?n.trackException({exception:t}):n.trackTrace({message:t,severity:r})}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("bunyan",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("bunyan",o)},e.dispose=function(){n.channel.unsubscribe("bunyan",o),r=[]}})),Or=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i={syslog:function(e){var n={emerg:t.SeverityLevel.Critical,alert:t.SeverityLevel.Critical,crit:t.SeverityLevel.Critical,error:t.SeverityLevel.Error,warning:t.SeverityLevel.Warning,notice:t.SeverityLevel.Information,info:t.SeverityLevel.Information,debug:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},npm:function(e){var n={error:t.SeverityLevel.Error,warn:t.SeverityLevel.Warning,info:t.SeverityLevel.Information,verbose:t.SeverityLevel.Verbose,debug:t.SeverityLevel.Verbose,silly:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},unknown:function(e){return t.SeverityLevel.Information}},o=function(e){var t=e.data.message;r.forEach((function(n){if(t instanceof Error)n.trackException({exception:t,properties:e.data.meta});else{var r=i[e.data.levelKind](e.data.level);n.trackTrace({message:t,severity:r,properties:e.data.meta})}}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("winston",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("winston",o)},e.dispose=function(){n.channel.unsubscribe("winston",o),r=[]}})),xr=E(((e,t)=>{"use strict";var n=sn(),r=function(){function e(t){if(e.INSTANCE)throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");this._client=t,e.INSTANCE=this}return e.prototype.enable=function(e,t){n.IsInitialized&&(Ar().enable(e&&t,this._client),Ir().enable(e,this._client),Or().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1,!1)},e._methodNames=["debug","info","log","warn","error"],e}();t.exports=r})),Rr=E(((e,t)=>{"use strict";var n=function(){function e(t){if(e.INSTANCE)throw new Error("Exception tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t;var n=process.versions.node.split(".");e._canUseUncaughtExceptionMonitor=parseInt(n[0])>13||13===parseInt(n[0])&&parseInt(n[1])>=7}return e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.enable=function(t){var n=this;if(t){if(this._isInitialized=!0,!this._exceptionListenerHandle){var r=function(t,r,i){void 0===i&&(i=new Error(e._FALLBACK_ERROR_MESSAGE)),n._client.trackException({exception:i}),n._client.flush({isAppCrashing:!0}),t&&r&&1===process.listeners(r).length&&(console.error(i),process.exit(1))};e._canUseUncaughtExceptionMonitor?(this._exceptionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle)):(this._exceptionListenerHandle=r.bind(this,!0,e.UNCAUGHT_EXCEPTION_HANDLER_NAME),this._rejectionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.on(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle))}}else this._exceptionListenerHandle&&(e._canUseUncaughtExceptionMonitor?process.removeListener(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle):(process.removeListener(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.removeListener(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle)),this._exceptionListenerHandle=void 0,this._rejectionListenerHandle=void 0,delete this._exceptionListenerHandle,delete this._rejectionListenerHandle)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.INSTANCE=null,e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME="uncaughtExceptionMonitor",e.UNCAUGHT_EXCEPTION_HANDLER_NAME="uncaughtException",e.UNHANDLED_REJECTION_HANDLER_NAME="unhandledRejection",e._RETHROW_EXIT_MESSAGE="Application Insights Rethrow Exception Handler",e._FALLBACK_ERROR_MESSAGE="A promise was rejected without providing an error. Application Insights generated this error stack for you.",e._canUseUncaughtExceptionMonitor=!1,e}();t.exports=n})),Nr=E((e=>{"use strict";var t,n,r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeatMetricName=e.DependencyTypeName=e.SpanAttribute=e.TelemetryTypeStringToQuickPulseDocumentType=e.TelemetryTypeStringToQuickPulseType=e.QuickPulseType=e.QuickPulseDocumentType=e.PerformanceToQuickPulseCounter=e.MetricId=e.PerformanceCounter=e.QuickPulseCounter=e.DEFAULT_LIVEMETRICS_HOST=e.DEFAULT_LIVEMETRICS_ENDPOINT=e.DEFAULT_BREEZE_ENDPOINT=void 0,e.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com",(r=n=e.QuickPulseCounter||(e.QuickPulseCounter={})).COMMITTED_BYTES="\\Memory\\Committed Bytes",r.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",r.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",r.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",r.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",r.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",r.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",r.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",r.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec",function(e){e.PRIVATE_BYTES="\\Process(??APP_WIN32_PROC??)\\Private Bytes",e.AVAILABLE_BYTES="\\Memory\\Available Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.PROCESS_TIME="\\Process(??APP_WIN32_PROC??)\\% Processor Time",e.REQUEST_RATE="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",e.REQUEST_DURATION="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time"}(i=e.PerformanceCounter||(e.PerformanceCounter={})),function(e){e.REQUESTS_DURATION="requests/duration",e.DEPENDENCIES_DURATION="dependencies/duration",e.EXCEPTIONS_COUNT="exceptions/count",e.TRACES_COUNT="traces/count"}(e.MetricId||(e.MetricId={})),e.PerformanceToQuickPulseCounter=((t={})[i.PROCESSOR_TIME]=n.PROCESSOR_TIME,t[i.REQUEST_RATE]=n.REQUEST_RATE,t[i.REQUEST_DURATION]=n.REQUEST_DURATION,t[n.COMMITTED_BYTES]=n.COMMITTED_BYTES,t[n.REQUEST_FAILURE_RATE]=n.REQUEST_FAILURE_RATE,t[n.DEPENDENCY_RATE]=n.DEPENDENCY_RATE,t[n.DEPENDENCY_FAILURE_RATE]=n.DEPENDENCY_FAILURE_RATE,t[n.DEPENDENCY_DURATION]=n.DEPENDENCY_DURATION,t[n.EXCEPTION_RATE]=n.EXCEPTION_RATE,t),e.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"},e.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"},e.TelemetryTypeStringToQuickPulseType={EventData:e.QuickPulseType.Event,ExceptionData:e.QuickPulseType.Exception,MessageData:e.QuickPulseType.Trace,MetricData:e.QuickPulseType.Metric,RequestData:e.QuickPulseType.Request,RemoteDependencyData:e.QuickPulseType.Dependency,AvailabilityData:e.QuickPulseType.Availability,PageViewData:e.QuickPulseType.PageView},e.TelemetryTypeStringToQuickPulseDocumentType={EventData:e.QuickPulseDocumentType.Event,ExceptionData:e.QuickPulseDocumentType.Exception,MessageData:e.QuickPulseDocumentType.Trace,MetricData:e.QuickPulseDocumentType.Metric,RequestData:e.QuickPulseDocumentType.Request,RemoteDependencyData:e.QuickPulseDocumentType.Dependency,AvailabilityData:e.QuickPulseDocumentType.Availability,PageViewData:e.QuickPulseDocumentType.PageView},e.SpanAttribute={HttpHost:"http.host",HttpMethod:"http.method",HttpPort:"http.port",HttpStatusCode:"http.status_code",HttpUrl:"http.url",HttpUserAgent:"http.user_agent",GrpcMethod:"grpc.method",GrpcService:"rpc.service"},e.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc"},e.HeartBeatMetricName="HeartBeat"})),Dr=E(((e,t)=>{"use strict";var r=n(2037),i=Nr(),o=function(){function e(t,n,r){void 0===n&&(n=6e4),void 0===r&&(r=!1),this._lastIntervalRequestExecutionTime=0,this._lastIntervalDependencyExecutionTime=0,e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t,this._collectionInterval=n,this._enableLiveMetricsCounters=r}return e.prototype.enable=function(t,n){var i=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._lastCpus=r.cpus(),this._lastRequests={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},this._lastDependencies={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},this._lastExceptions={totalExceptionCount:e._totalExceptionCount,time:+new Date},"function"==typeof process.cpuUsage&&(this._lastAppCpuUsage=process.cpuUsage()),this._lastHrtime=process.hrtime(),this._collectionInterval=n||this._collectionInterval,this._handle=setInterval((function(){return i.trackPerformance()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countRequest=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalRequestExecutionTime+=r,!1===n&&e._totalFailedRequestCount++,e._totalRequestCount++}},e.countException=function(){e._totalExceptionCount++},e.countDependency=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalDependencyExecutionTime+=r,!1===n&&e._totalFailedDependencyCount++,e._totalDependencyCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPerformance=function(){this._trackCpu(),this._trackMemory(),this._trackNetwork(),this._trackDependencyRate(),this._trackExceptionRate()},e.prototype._trackCpu=function(){var e=r.cpus();if(e&&e.length&&this._lastCpus&&e.length===this._lastCpus.length){for(var t=0,n=0,o=0,a=0,s=0,c=0;e&&c<e.length;c++){var u=e[c],l=this._lastCpus[c],p=(u.model,u.speed,u.times),d=l.times;t+=p.user-d.user||0,n+=p.sys-d.sys||0,o+=p.nice-d.nice||0,a+=p.idle-d.idle||0,s+=p.irq-d.irq||0}var f=void 0;if("function"==typeof process.cpuUsage){var h=process.cpuUsage(),v=process.hrtime(),g=h.user-this._lastAppCpuUsage.user+(h.system-this._lastAppCpuUsage.system)||0;typeof this._lastHrtime<"u"&&2===this._lastHrtime.length&&(f=100*g/((1e6*(v[0]-this._lastHrtime[0])+(v[1]-this._lastHrtime[1])/1e3||0)*e.length)),this._lastAppCpuUsage=h,this._lastHrtime=v}var m=t+n+o+a+s||1;this._client.trackMetric({name:i.PerformanceCounter.PROCESSOR_TIME,value:(m-a)/m*100}),this._client.trackMetric({name:i.PerformanceCounter.PROCESS_TIME,value:f||t/m*100})}this._lastCpus=e},e.prototype._trackMemory=function(){var e=r.freemem(),t=process.memoryUsage().rss,n=r.totalmem()-e;this._client.trackMetric({name:i.PerformanceCounter.PRIVATE_BYTES,value:t}),this._client.trackMetric({name:i.PerformanceCounter.AVAILABLE_BYTES,value:e}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:i.QuickPulseCounter.COMMITTED_BYTES,value:n})},e.prototype._trackNetwork=function(){var t=this._lastRequests,n={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},r=n.totalRequestCount-t.totalRequestCount||0,o=n.totalFailedRequestCount-t.totalFailedRequestCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalRequestExecutionTime-this._lastIntervalRequestExecutionTime)/r||0;if(this._lastIntervalRequestExecutionTime=e._intervalRequestExecutionTime,a>0){var u=r/s,l=o/s;this._client.trackMetric({name:i.PerformanceCounter.REQUEST_RATE,value:u}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:i.PerformanceCounter.REQUEST_DURATION,value:c}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:i.QuickPulseCounter.REQUEST_FAILURE_RATE,value:l})}this._lastRequests=n},e.prototype._trackDependencyRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastDependencies,n={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},r=n.totalDependencyCount-t.totalDependencyCount||0,o=n.totalFailedDependencyCount-t.totalFailedDependencyCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalDependencyExecutionTime-this._lastIntervalDependencyExecutionTime)/r||0;if(this._lastIntervalDependencyExecutionTime=e._intervalDependencyExecutionTime,a>0){var u=r/s,l=o/s;this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_RATE,value:u}),this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_FAILURE_RATE,value:l}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_DURATION,value:c})}this._lastDependencies=n}},e.prototype._trackExceptionRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastExceptions,n={totalExceptionCount:e._totalExceptionCount,time:+new Date},r=n.totalExceptionCount-t.totalExceptionCount||0,o=n.time-t.time;if(o>0){var a=r/(o/1e3);this._client.trackMetric({name:i.QuickPulseCounter.EXCEPTION_RATE,value:a})}this._lastExceptions=n}},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e._totalRequestCount=0,e._totalFailedRequestCount=0,e._totalDependencyCount=0,e._totalFailedDependencyCount=0,e._totalExceptionCount=0,e._intervalDependencyExecutionTime=0,e._intervalRequestExecutionTime=0,e}();t.exports=o})),kr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AggregatedMetricCounter=void 0;e.AggregatedMetricCounter=function(e){this.dimensions=e,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}})),Mr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreaggregatedMetricPropertyNames=void 0,e.PreaggregatedMetricPropertyNames={cloudRoleInstance:"cloud/roleInstance",cloudRoleName:"cloud/roleName",operationSynthetic:"operation/synthetic",requestSuccess:"Request.Success",requestResultCode:"request/resultCode",dependencyType:"Dependency.Type",dependencyTarget:"dependency/target",dependencySuccess:"Dependency.Success",dependencyResultCode:"dependency/resultCode",traceSeverityLevel:"trace/severityLevel"}})),jr=E(((e,t)=>{"use strict";var n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=Nr(),i=kr(),o=Mr(),a=function(){function e(t,n){void 0===n&&(n=6e4),e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,e._dependencyCountersCollection=[],e._requestCountersCollection=[],e._exceptionCountersCollection=[],e._traceCountersCollection=[],this._client=t,this._collectionInterval=n}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._collectionInterval=t||this._collectionInterval,this._handle=setInterval((function(){return n.trackPreAggregatedMetrics()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countException=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._exceptionCountersCollection).totalCount++},e.countTrace=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._traceCountersCollection).totalCount++},e.countRequest=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._requestCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}i.intervalExecutionTime+=r,i.totalCount++}},e.countDependency=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._dependencyCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}i.intervalExecutionTime+=r,i.totalCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPreAggregatedMetrics=function(){this._trackRequestMetrics(),this._trackDependencyMetrics(),this._trackExceptionMetrics(),this._trackTraceMetrics()},e._getAggregatedCounter=function(e,t){for(var n=!1,r=0;r<t.length;r++){if(e===t[r].dimensions)return t[r];if(Object.keys(e).length===Object.keys(t[r].dimensions).length){for(var o in e)if(e[o]!=t[r].dimensions[o]){n=!0;break}if(!n)return t[r];n=!1}}var a=new i.AggregatedMetricCounter(e);return t.push(a),a},e.prototype._trackRequestMetrics=function(){for(var t=0;t<e._requestCountersCollection.length;t++){var n=e._requestCountersCollection[t];n.time=+new Date;var i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/i||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,o>0&&i>0&&this._trackPreAggregatedMetric({name:"Server response time",dimensions:n.dimensions,value:a,count:i,aggregationInterval:o,metricType:r.MetricId.REQUESTS_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackDependencyMetrics=function(){for(var t=0;t<e._dependencyCountersCollection.length;t++){var n=e._dependencyCountersCollection[t];n.time=+new Date;var i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/i||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,o>0&&i>0&&this._trackPreAggregatedMetric({name:"Dependency duration",dimensions:n.dimensions,value:a,count:i,aggregationInterval:o,metricType:r.MetricId.DEPENDENCIES_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackExceptionMetrics=function(){for(var t=0;t<e._exceptionCountersCollection.length;t++){var n=e._exceptionCountersCollection[t],i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Exceptions",dimensions:n.dimensions,value:i,count:i,aggregationInterval:o,metricType:r.MetricId.EXCEPTIONS_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackTraceMetrics=function(){for(var t=0;t<e._traceCountersCollection.length;t++){var n=e._traceCountersCollection[t],i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Traces",dimensions:n.dimensions,value:i,count:i,aggregationInterval:o,metricType:r.MetricId.TRACES_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackPreAggregatedMetric=function(e){var t={};for(var r in e.dimensions)t[o.PreaggregatedMetricPropertyNames[r]]=e.dimensions[r];t=n(n({},t),{"_MS.MetricId":e.metricType,"_MS.AggregationIntervalMs":String(e.aggregationInterval),"_MS.IsAutocollected":"True"});var i={name:e.name,value:e.value,count:e.count,properties:t,kind:"Aggregation"};this._client.trackMetric(i)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();t.exports=a})),Lr=E(((e,t)=>{"use strict";var r=n(2037),i=n(7147),o=n(1017),a=nr(),s=O(),c=function(){function e(e){this.keys=new a.ContextTagKeys,this.tags={},this._loadApplicationContext(e),this._loadDeviceContext(),this._loadInternalContext()}return e.prototype._loadApplicationContext=function(t){if(t=t||o.resolve(__dirname,"../../../../package.json"),!e.appVersion[t]){e.appVersion[t]="unknown";try{var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.appVersion[t]=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.applicationVersion]=e.appVersion[t]},e.prototype._loadDeviceContext=function(){this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=r&&r.hostname(),this.tags[this.keys.deviceOSVersion]=r&&r.type()+" "+r.release(),this.tags[this.keys.cloudRole]=e.DefaultRoleName,this.tags["ai.device.osArchitecture"]=r&&r.arch(),this.tags["ai.device.osPlatform"]=r&&r.platform()},e.prototype._loadInternalContext=function(){var t=o.resolve(__dirname,"../../package.json");if(!e.sdkVersion){e.sdkVersion="unknown";try{var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.sdkVersion=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.internalSdkVersion]="node:"+e.sdkVersion},e.DefaultRoleName="Web",e.appVersion={},e.sdkVersion=null,e}();t.exports=c})),Fr=E(((e,t)=>{"use strict";var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=n(7310),a=nr(),s=un(),c=cn(),u=rr(),l=ln(),p=function(e){function t(n,r){var i=e.call(this)||this;return r&&r.method&&n&&(i.method=r.method,i.url=t._getUrlFromRequestOptions(n,r),i.startTime=+new Date),i}return i(t,e),t.prototype.onError=function(e){this._setStatus(void 0,e)},t.prototype.onResponse=function(e){this._setStatus(e.statusCode,void 0),this.correlationId=s.getCorrelationContextTarget(e,c.requestContextTargetKey)},t.prototype.getDependencyTelemetry=function(e,t){var n=o.parse(this.url);n.search=void 0,n.hash=void 0;var r=this.method.toUpperCase()+" "+n.pathname,i=a.RemoteDependencyDataConstants.TYPE_HTTP,s=n.hostname;n.port&&(s+=":"+n.port),this.correlationId?(i=a.RemoteDependencyDataConstants.TYPE_AI,this.correlationId!==l.correlationIdPrefix&&(s+=" | "+this.correlationId)):i=a.RemoteDependencyDataConstants.TYPE_HTTP;var c={id:t,name:r,data:this.url,duration:this.duration,success:this._isSuccess(),resultCode:this.statusCode?this.statusCode.toString():null,properties:this.properties||{},dependencyTypeName:i,target:s};if(e&&e.time?c.time=e.time:this.startTime&&(c.time=new Date(this.startTime)),e){for(var u in e)c[u]||(c[u]=e[u]);if(e.properties)for(var u in e.properties)c.properties[u]=e.properties[u]}return c},t._getUrlFromRequestOptions=function(e,t){if("string"==typeof e)if(0===e.indexOf("http://")||0===e.indexOf("https://"))e=o.parse(e);else{var n=o.parse(e);e="443"===n.host?o.parse("https://"+e):o.parse("http://"+e)}else{if(e&&"function"==typeof o.URL&&e instanceof o.URL)return o.format(e);var r=e;e={},r&&Object.keys(r).forEach((function(t){e[t]=r[t]}))}if(e.path){var i=o.parse(e.path);e.pathname=i.pathname,e.search=i.search}return e.host&&e.port&&!o.parse("http://"+e.host).port&&e.port&&(e.hostname=e.host,delete e.host),e.protocol=e.protocol||t.agent&&t.agent.protocol||t.protocol||void 0,e.hostname=e.hostname||"localhost",o.format(e)},t}(u);t.exports=p})),Br=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.spanToTelemetryContract=void 0;var n=Oe(),r=Nr();function i(e){var n=t({},e);return Object.keys(r.SpanAttribute).forEach((function(e){delete n[e]})),n}e.spanToTelemetryContract=function(e){var o="|"+e.spanContext().traceId+"."+e.spanContext().spanId+".",a=Math.round(1e3*e._duration[0]+e._duration[1]/1e6),s=e.attributes["peer.address"]?e.attributes["peer.address"].toString():"",c=e.attributes.component?e.attributes.component.toString():"",u=c.toUpperCase()===r.DependencyTypeName.Http||!!e.attributes[r.SpanAttribute.HttpUrl],l=c.toLowerCase()===r.DependencyTypeName.Grpc;if(u){var p=e.attributes[r.SpanAttribute.HttpMethod]||"GET",d=new URL(e.attributes[r.SpanAttribute.HttpUrl].toString()),f=e.attributes[r.SpanAttribute.HttpHost]||d.host,h=e.attributes[r.SpanAttribute.HttpPort]||d.port||null,v=p+" "+(d.pathname||"/"),g=r.DependencyTypeName.Http,m=h?(f+":"+h).toString():f.toString(),_=d.toString(),y=e.attributes[r.SpanAttribute.HttpStatusCode]||e.status.code||0;return{id:o,name:v,dependencyTypeName:g,target:m,data:_,success:y<400,duration:a,url:_,resultCode:String(y),properties:i(e.attributes)}}if(l){p=e.attributes[r.SpanAttribute.GrpcMethod]||"rpc";var E=e.attributes[r.SpanAttribute.GrpcService],b=E?p+" "+E:e.name;return{id:o,duration:a,name:b,target:E.toString(),data:E.toString()||b,url:E.toString()||b,dependencyTypeName:r.DependencyTypeName.Grpc,resultCode:String(e.status.code||0),success:0===e.status.code,properties:i(e.attributes)}}var S=e.name,T=e.links&&e.links.map((function(e){return{operation_Id:e.context.traceId,id:e.context.spanId}}));return{id:o,duration:a,name:S,target:s,data:s||S,url:s||S,dependencyTypeName:e.kind===n.SpanKind.INTERNAL?r.DependencyTypeName.InProc:c||e.name,resultCode:String(e.status.code||0),success:0===e.status.code,properties:t(t({},i(e.attributes)),{"_MS.links":T||void 0})}}})),Hr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=Oe(),n=k(),r=pn(),i=Br(),o=x(),a=[];e.subscriber=function(e){var n=e.data,s=i.spanToTelemetryContract(n),c=n.spanContext(),u=new r;u.traceId=c.traceId,u.spanId=c.spanId,u.traceFlag=r.formatOpenTelemetryTraceFlags(c.traceFlags),u.parentId=n.parentSpanId?"|"+c.traceId+"."+n.parentSpanId+".":null,o.AsyncScopeManager.with(n,(function(){a.forEach((function(e){n.kind===t.SpanKind.SERVER?e.trackRequest(s):(n.kind===t.SpanKind.CLIENT||n.kind===t.SpanKind.INTERNAL)&&e.trackDependency(s)}))}))},e.enable=function(t,r){t?(0===a.length&&n.channel.subscribe("azure-coretracing",e.subscriber),a.push(r)):0===(a=a.filter((function(e){return e!=r}))).length&&n.channel.unsubscribe("azure-coretracing",e.subscriber)}})),Ur=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){"ismaster"!==e.data.event.commandName&&n.forEach((function(t){var n=e.data.startedData&&e.data.startedData.databaseName||"Unknown database";t.trackDependency({target:n,data:e.data.event.commandName,name:e.data.event.commandName,duration:e.data.event.duration,success:e.data.succeeded,resultCode:e.data.succeeded?"0":"1",time:e.data.startedData.time,dependencyTypeName:"mongodb"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("mongodb",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("mongodb",e.subscriber)}})),Vr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query||{},r=n.sql||"Unknown query",i=!e.data.err,o=(n._connection||{}).config||{},a=o.socketPath?o.socketPath:(o.host||"localhost")+":"+o.port;t.trackDependency({target:a,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"mysql"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("mysql",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("mysql",e.subscriber)}})),qr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){"info"!==e.data.commandObj.command&&t.trackDependency({target:e.data.address,name:e.data.commandObj.command,data:e.data.commandObj.command,duration:e.data.duration,success:!e.data.err,resultCode:e.data.err?"1":"0",time:e.data.time,dependencyTypeName:"redis"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("redis",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("redis",e.subscriber)}})),Gr=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query,r=n.preparable&&n.preparable.text||n.plan||n.text||"unknown query",i=!e.data.error,o=e.data.database.host+":"+e.data.database.port;t.trackDependency({target:o,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"postgres"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("postgres",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("postgres",e.subscriber)}})),$r=E(((e,t)=>{"use strict";var r=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=n(3685),o=n(5687),a=O(),s=un(),c=cn(),u=Fr(),l=wr(),p=ln(),d=pn(),f=sn(),h=function(){function e(t){if(e.INSTANCE)throw new Error("Client request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,this._isEnabled&&!this._isInitialized&&this._initialize(),f.IsInitialized&&(Hr().enable(!0,this._client),Ur().enable(e,this._client),Vr().enable(e,this._client),qr().enable(e,this._client),Gr().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=i.request,a=o.request,s=function(n,r){var i=!r[e.disableCollectionRequestOption]&&!n[e.alreadyAutoCollectedFlag];r.headers&&r.headers["user-agent"]&&-1!==r.headers["user-agent"].toString().indexOf("azsdk-js")&&(i=!1),n[e.alreadyAutoCollectedFlag]=!0,n&&r&&i&&(l.CorrelationContextManager.wrapEmitter(n),e.trackRequest(t._client,{options:r,request:n}))};i.request=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var a=n.call.apply(n,r([i,e],t));return s(a,e),a},o.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=a.call.apply(a,r([o,e],t));return s(i,e),i},i.get=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var a=(t=i.request).call.apply(t,r([i,e],n));return a.end(),a},o.get=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=(t=o.request).call.apply(t,r([o,e],n));return a.end(),a}},e.trackRequest=function(t,n){if(n.options&&n.request&&t){var r,i,o=new u(n.options,n.request),f=l.CorrelationContextManager.getCurrentContext();if(f&&f.operation&&f.operation.traceparent&&d.isValidTraceId(f.operation.traceparent.traceId)?(f.operation.traceparent.updateSpanId(),r=f.operation.traceparent.getBackCompatRequestId()):p.w3cEnabled?(i=(v=new d).toString(),r=v.getBackCompatRequestId()):r=f&&f.operation&&f.operation.parentId+e.requestNumber+++".",s.canIncludeCorrelationHeader(t,o.getUrl())&&n.request.getHeader&&n.request.setHeader&&t.config&&t.config.correlationId){var h=n.request.getHeader(c.requestContextHeader);try{s.safeIncludeCorrelationHeader(t,n.request,h)}catch(e){a.warn("Request-Context header could not be set. Correlation of requests may be lost",e)}if(f&&f.operation)try{if(n.request.setHeader(c.requestIdHeader,r),t.config.ignoreLegacyHeaders||(n.request.setHeader(c.parentIdHeader,f.operation.id),n.request.setHeader(c.rootIdHeader,r)),i||f.operation.traceparent)n.request.setHeader(c.traceparentHeader,i||f.operation.traceparent.toString());else if(p.w3cEnabled){var v=(new d).toString();n.request.setHeader(c.traceparentHeader,v)}if(f.operation.tracestate){var g=f.operation.tracestate.toString();g&&n.request.setHeader(c.traceStateHeader,g)}var m=f.customProperties.serializeToHeader();m&&n.request.setHeader(c.correlationContextHeader,m)}catch(e){a.warn("Correlation headers could not be set. Correlation of requests may be lost.",e)}}n.request.on&&(n.request.on("response",(function(e){o.onResponse(e);var i=o.getDependencyTelemetry(n,r);i.contextObjects=i.contextObjects||{},i.contextObjects["http.RequestOptions"]=n.options,i.contextObjects["http.ClientRequest"]=n.request,i.contextObjects["http.ClientResponse"]=e,t.trackDependency(i)})),n.request.on("error",(function(e){o.onError(e);var i=o.getDependencyTelemetry(n,r);i.contextObjects=i.contextObjects||{},i.contextObjects["http.RequestOptions"]=n.options,i.contextObjects["http.ClientRequest"]=n.request,i.contextObjects.Error=e,t.trackDependency(i)})),n.request.on("abort",(function(){o.onError(new Error);var e=o.getDependencyTelemetry(n,r);e.contextObjects=e.contextObjects||{},e.contextObjects["http.RequestOptions"]=n.options,e.contextObjects["http.ClientRequest"]=n.request,t.trackDependency(e)})))}else a.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ",!n.options,!n.request,!t)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.disableCollectionRequestOption="disableAppInsightsAutoCollection",e.requestNumber=1,e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=h})),zr=E(((e,t)=>{"use strict";var r=n(2037),i=Nr(),o=un(),a=Lr(),s=$r(),c=function(){function e(t){this._collectionInterval=9e5,this._vmData={},this._azInst_vmId="",this._azInst_subscriptionId="",this._azInst_osType="",e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._handle=setInterval((function(){return n.trackHeartBeat(t,(function(){}))}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=null)},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackHeartBeat=function(e,t){var n=this,o=!1,s={},c=a.sdkVersion;s.sdk=c,s.osType=r.type(),process.env.WEBSITE_SITE_NAME?(s.appSrv_SiteName=process.env.WEBSITE_SITE_NAME||"",s.appSrv_wsStamp=process.env.WEBSITE_HOME_STAMPNAME||"",s.appSrv_wsHost=process.env.WEBSITE_HOSTNAME||""):process.env.FUNCTIONS_WORKER_RUNTIME?s.azfunction_appId=process.env.WEBSITE_HOSTNAME:e&&(void 0===this._isVM?(o=!0,this._getAzureComputeMetadata(e,(function(){n._isVM&&Object.keys(n._vmData).length>0&&(s.azInst_vmId=n._vmData.vmId||"",s.azInst_subscriptionId=n._vmData.subscriptionId||"",s.azInst_osType=n._vmData.osType||"",n._azInst_vmId=n._vmData.vmId||"",n._azInst_subscriptionId=n._vmData.subscriptionId||"",n._azInst_osType=n._vmData.osType||""),n._client.trackMetric({name:i.HeartBeatMetricName,value:0,properties:s}),t()}))):this._isVM&&(s.azInst_vmId=this._azInst_vmId,s.azInst_subscriptionId=this._azInst_subscriptionId,s.azInst_osType=this._azInst_osType)),o||(this._client.trackMetric({name:i.HeartBeatMetricName,value:0,properties:s}),t())},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.prototype._getAzureComputeMetadata=function(e,t){var n,r=this,i=((n={method:"GET"})[s.disableCollectionRequestOption]=!0,n.headers={Metadata:"True"},n),a=o.makeRequest(e,"http://169.254.169.254/metadata/instance/compute?api-version=2017-12-01&format=json",i,(function(e){if(200===e.statusCode){r._isVM=!0;var n="";e.on("data",(function(e){n+=e})),e.on("end",(function(){r._vmData=r._isJSON(n)?JSON.parse(n):{},t()}))}else t()}));a&&(a.on("error",(function(e){e&&e.message&&e.message.indexOf("ENETUNREACH")>-1&&(r._isVM=!1),t()})),a.end())},e.prototype._isJSON=function(e){try{return JSON.parse(e)&&!!e}catch{return!1}},e}();t.exports=c})),Wr=E(((e,t)=>{"use strict";var r=n(3685),i=n(5687),o=O(),a=un(),s=cn(),c=ir(),u=wr(),l=Dr(),p=function(){function e(t){if(e.INSTANCE)throw new Error("Server request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,(this._isAutoCorrelating||this._isEnabled||l.isEnabled())&&!this._isInitialized&&(this.useAutoCorrelation(this._isAutoCorrelating),this._initialize())},e.prototype.useAutoCorrelation=function(e,t){e&&!this._isAutoCorrelating?u.CorrelationContextManager.enable(t):!e&&this._isAutoCorrelating&&u.CorrelationContextManager.disable(),this._isAutoCorrelating=e},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.isAutoCorrelating=function(){return this._isAutoCorrelating},e.prototype._generateCorrelationContext=function(e){if(this._isAutoCorrelating)return u.CorrelationContextManager.generateContextObject(e.getOperationId(this._client.context.tags),e.getRequestId(),e.getOperationName(this._client.context.tags),e.getCorrelationContextHeader(),e.getTraceparent(),e.getTracestate())},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=function(n){if(n){if("function"!=typeof n)throw new Error("onRequest handler must be a function");return function(r,i){u.CorrelationContextManager.wrapEmitter(r),u.CorrelationContextManager.wrapEmitter(i);var o=r&&!r[e.alreadyAutoCollectedFlag];if(r&&o){var a=new c(r),s=t._generateCorrelationContext(a);u.CorrelationContextManager.runWithContext(s,(function(){t._isEnabled&&(r[e.alreadyAutoCollectedFlag]=!0,e.trackRequest(t._client,{request:r,response:i},a)),"function"==typeof n&&n(r,i)}))}else"function"==typeof n&&n(r,i)}}},o=function(e){var t=e.addListener.bind(e);e.addListener=function(e,r){switch(e){case"request":case"checkContinue":return t(e,n(r));default:return t(e,r)}},e.on=e.addListener},a=r.createServer;r.createServer=function(e,t){if(t&&"function"==typeof t){var r=a(e,n(t));return o(r),r}return r=a(n(e)),o(r),r};var s=i.createServer;i.createServer=function(e,t){var r=s(e,n(t));return o(r),r}},e.trackRequestSync=function(t,n){if(n.request&&n.response&&t){e.addResponseCorrelationIdHeader(t,n.response);var r=u.CorrelationContextManager.getCurrentContext(),i=new c(n.request,r&&r.operation.parentId);r&&(r.operation.id=i.getOperationId(t.context.tags)||r.operation.id,r.operation.name=i.getOperationName(t.context.tags)||r.operation.name,r.operation.parentId=i.getRequestId()||r.operation.parentId,r.customProperties.addHeaderData(i.getCorrelationContextHeader())),e.endRequest(t,i,n,n.duration,n.error)}else o.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ",!n.request,!n.response,!t)},e.trackRequest=function(t,n,r){if(n.request&&n.response&&t){var i=u.CorrelationContextManager.getCurrentContext(),s=r||new c(n.request,i&&i.operation.parentId);a.canIncludeCorrelationHeader(t,s.getUrl())&&e.addResponseCorrelationIdHeader(t,n.response),i&&!r&&(i.operation.id=s.getOperationId(t.context.tags)||i.operation.id,i.operation.name=s.getOperationName(t.context.tags)||i.operation.name,i.operation.parentId=s.getOperationParentId(t.context.tags)||i.operation.parentId,i.customProperties.addHeaderData(s.getCorrelationContextHeader())),n.response.once&&n.response.once("finish",(function(){e.endRequest(t,s,n,null,null)})),n.request.on&&n.request.on("error",(function(r){e.endRequest(t,s,n,null,r)})),n.request.on&&n.request.on("aborted",(function(){e.endRequest(t,s,n,null,"The request has been aborted and the network socket has closed.")}))}else o.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ",!n.request,!n.response,!t)},e.addResponseCorrelationIdHeader=function(e,t){if(e.config&&e.config.correlationId&&t.getHeader&&t.setHeader&&!t.headersSent){var n=t.getHeader(s.requestContextHeader);a.safeIncludeCorrelationHeader(e,t,n)}},e.endRequest=function(e,t,n,r,i){i?t.onError(i,r):t.onResponse(n.response,r);var o=t.getRequestTelemetry(n);if(o.tagOverrides=t.getRequestTags(e.context.tags),n.tagOverrides)for(var a in n.tagOverrides)o.tagOverrides[a]=n.tagOverrides[a];var s=t.getLegacyRootId();s&&(o.properties.ai_legacyRootId=s),o.contextObjects=o.contextObjects||{},o.contextObjects["http.ServerRequest"]=n.request,o.contextObjects["http.ServerResponse"]=n.response,e.trackRequest(o)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1,u.CorrelationContextManager.disable(),this._isAutoCorrelating=!1},e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=p})),Kr=E(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n(2037),o=nr(),a=Nr(),s=un(),c=O(),u=s.w3cTraceId(),l=function(){function e(){}return e.createQuickPulseEnvelope=function(e,t,n,r){var o=i&&"function"==typeof i.hostname&&i.hostname()||"Unknown",a=r.tags&&r.keys&&r.keys.cloudRoleInstance&&r.tags[r.keys.cloudRoleInstance]||o,s=r.tags&&r.keys&&r.keys.cloudRole&&r.tags[r.keys.cloudRole]||null;return{Documents:t.length>0?t:null,InstrumentationKey:n.instrumentationKey||"",Metrics:e.length>0?e:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:r.tags[r.keys.internalSdkVersion],StreamId:u,MachineName:o,Instance:a,RoleName:s}},e.createQuickPulseMetric=function(e){return{Name:e.name,Value:e.value,Weight:e.count||1}},e.telemetryEnvelopeToQuickPulseDocument=function(t){switch(t.data.baseType){case o.TelemetryTypeString.Event:return e.createQuickPulseEventDocument(t);case o.TelemetryTypeString.Exception:return e.createQuickPulseExceptionDocument(t);case o.TelemetryTypeString.Trace:return e.createQuickPulseTraceDocument(t);case o.TelemetryTypeString.Dependency:return e.createQuickPulseDependencyDocument(t);case o.TelemetryTypeString.Request:return e.createQuickPulseRequestDocument(t)}return null},e.createQuickPulseEventDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.name;return r(r({},n),{Name:i})},e.createQuickPulseTraceDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.severityLevel||0;return r(r({},n),{Message:t.data.baseData.message,SeverityLevel:o.SeverityLevel[i]})},e.createQuickPulseExceptionDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.exceptions,o="",a="",s="";return i&&i.length>0&&(i[0].parsedStack&&i[0].parsedStack.length>0?i[0].parsedStack.forEach((function(e){o+=e.assembly+"\n"})):i[0].stack&&i[0].stack.length>0&&(o=i[0].stack),a=i[0].message,s=i[0].typeName),r(r({},n),{Exception:o,ExceptionMessage:a,ExceptionType:s})},e.createQuickPulseRequestDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Success:i.success,Duration:i.duration,ResponseCode:i.responseCode,OperationName:i.name})},e.createQuickPulseDependencyDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Target:i.target,Success:i.success,Duration:i.duration,ResultCode:i.resultCode,CommandName:i.data,OperationName:n.OperationId,DependencyTypeName:i.type})},e.createQuickPulseDocument=function(t){var n,r;return t.data.baseType?(r=a.TelemetryTypeStringToQuickPulseType[t.data.baseType],n=a.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]):c.warn("Document type invalid; not sending live metric document",t.data.baseType),{DocumentType:n,__type:r,OperationId:t.tags[e.keys.operationId],Version:"1.0",Properties:e.aggregateProperties(t)}},e.aggregateProperties=function(e){var t=[],n=e.data.baseData.measurements||{};for(var r in n)if(n.hasOwnProperty(r)){var i={key:r,value:n[r]};t.push(i)}var o=e.data.baseData.properties||{};for(var r in o)o.hasOwnProperty(r)&&(i={key:r,value:o[r]},t.push(i));return t},e.keys=new o.ContextTagKeys,e}();t.exports=l})),Yr=E(((e,t)=>{"use strict";t.exports={getTransmissionTime:function(){return 1e4*(Date.now()+621355968e5)}}})),Qr=E(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=n(5687),a=$r(),s=O(),c=Yr(),u=un(),l="x-ms-qps-service-polling-interval-hint",p="x-ms-qps-service-endpoint-redirect",d=function(){function e(e){this._config=e,this._consecutiveErrors=0}return e.prototype.ping=function(e,t,n){var r=[{name:"x-ms-qps-stream-id",value:e.StreamId},{name:"x-ms-qps-machine-name",value:e.MachineName},{name:"x-ms-qps-role-name",value:e.RoleName},{name:"x-ms-qps-instance-name",value:e.Instance},{name:"x-ms-qps-invariant-version",value:e.InvariantVersion.toString()}];this._submitData(e,t,n,"ping",r)},e.prototype.post=function(e,t,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,this._submitData([e],t,n,"post")];case 1:return r.sent(),[2]}}))}))},e.prototype._submitData=function(e,t,n,s,d){return r(this,void 0,void 0,(function(){var r,f,h,v,g,m=this;return i(this,(function(i){return r=JSON.stringify(e),(v={})[a.disableCollectionRequestOption]=!0,v.host=t&&t.length>0?t:this._config.quickPulseHost,v.method="POST",v.path="/QuickPulseService.svc/"+s+"?ikey="+this._config.instrumentationKey,v.headers=((g={Expect:"100-continue"})["x-ms-qps-transmission-time"]=c.getTransmissionTime(),g["Content-Type"]="application/json",g["Content-Length"]=Buffer.byteLength(r),g),f=v,d&&d.length>0&&d.forEach((function(e){return f.headers[e.name]=e.value})),this._config.httpsAgent?f.agent=this._config.httpsAgent:f.agent=u.tlsRestrictedAgent,(h=o.request(f,(function(e){if(200==e.statusCode){var t="true"===e.headers["x-ms-qps-subscribed"],r=e.headers[p]?e.headers[p].toString():null,i=e.headers[l]?parseInt(e.headers[l].toString()):null;m._consecutiveErrors=0,n(t,e,r,i)}else m._onError("StatusCode:"+e.statusCode+" StatusMessage:"+e.statusMessage),n()}))).on("error",(function(e){m._onError(e),n()})),h.write(r),h.end(),[2]}))}))},e.prototype._onError=function(t){this._consecutiveErrors++;var n="Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:";this._consecutiveErrors%e.MAX_QPS_FAILURES_BEFORE_WARN==0?(n="Live Metrics endpoint could not be reached "+this._consecutiveErrors+" consecutive times. Most recent error:",s.warn(e.TAG,n,t)):s.info(e.TAG,n,t)},e.TAG="QuickPulseSender",e.MAX_QPS_FAILURES_BEFORE_WARN=25,e}();t.exports=d})),Xr=E(((e,t)=>{"use strict";var n=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},r=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},i=O(),o=Kr(),a=Qr(),s=Nr(),c=Lr(),u=function(){function e(e,t){this._isCollectingData=!1,this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0,this._metrics={},this._documents=[],this._collectors=[],this._redirectedHost=null,this._pollingIntervalHint=-1,this.config=e,this.context=t||new c,this._sender=new a(this.config),this._isEnabled=!1}return e.prototype.addCollector=function(e){this._collectors.push(e)},e.prototype.trackMetric=function(e){this._addMetric(e)},e.prototype.addDocument=function(e){var t=o.telemetryEnvelopeToQuickPulseDocument(e);t&&this._documents.push(t)},e.prototype.enable=function(e){e&&!this._isEnabled?(this._isEnabled=!0,this._goQuickPulse()):!e&&this._isEnabled&&(this._isEnabled=!1,clearTimeout(this._handle),this._handle=void 0)},e.prototype.enableCollectors=function(e){this._collectors.forEach((function(t){t.enable(e)}))},e.prototype._addMetric=function(e){var t=e.value,n=e.count||1,r=s.PerformanceToQuickPulseCounter[e.name];r&&(this._metrics[r]?(this._metrics[r].Value=(this._metrics[r].Value*this._metrics[r].Weight+t*n)/(this._metrics[r].Weight+n),this._metrics[r].Weight+=n):(this._metrics[r]=o.createQuickPulseMetric(e),this._metrics[r].Name=r,this._metrics[r].Weight=1))},e.prototype._resetQuickPulseBuffer=function(){delete this._metrics,this._metrics={},this._documents.length=0},e.prototype._goQuickPulse=function(){return n(this,void 0,void 0,(function(){var t,n,i,a,s=this;return r(this,(function(r){switch(r.label){case 0:return t=Object.keys(this._metrics).map((function(e){return s._metrics[e]})),n=o.createQuickPulseEnvelope(t,this._documents.slice(),this.config,this.context),this._resetQuickPulseBuffer(),this._isCollectingData?[4,this._post(n)]:[3,2];case 1:return r.sent(),[3,3];case 2:this._ping(n),r.label=3;case 3:return i=this._pollingIntervalHint>0?this._pollingIntervalHint:e.PING_INTERVAL,a=this._isCollectingData?e.POST_INTERVAL:i,this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,a=e.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(a=e.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),a),this._handle.unref(),[2]}}))}))},e.prototype._ping=function(e){this._sender.ping(e,this._redirectedHost,this._quickPulseDone.bind(this))},e.prototype._post=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this._sender.post(e,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return t.sent(),[2]}}))}))},e.prototype._quickPulseDone=function(e,t,n,r){null!=e?(this._isCollectingData!==e&&(i.info("Live Metrics sending data",e),this.enableCollectors(e)),this._isCollectingData=e,n&&n.length>0&&(this._redirectedHost=n,i.info("Redirecting endpoint to: ",n)),r&&r>0&&(this._pollingIntervalHint=r),t&&t.statusCode<300&&t.statusCode>=200?(this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0):this._lastSendSucceeded=!1):this._lastSendSucceeded=!1},e.MAX_POST_WAIT_TIME=2e4,e.MAX_PING_WAIT_TIME=6e4,e.FALLBACK_INTERVAL=6e4,e.PING_INTERVAL=5e3,e.POST_INTERVAL=1e3,e}();t.exports=u})),Jr=E(((e,t)=>{"use strict";var n=Nr(),r=function(){function e(){}return e.parse=function(t){if(!t)return{};var r=t.split(e._FIELDS_SEPARATOR).reduce((function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var i=r[0].toLowerCase(),o=r[1];t[i]=o}return t}),{});if(Object.keys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix,r.liveendpoint=r.liveendpoint||"https://"+i+"live."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||n.DEFAULT_BREEZE_ENDPOINT,r.liveendpoint=r.liveendpoint||n.DEFAULT_LIVEMETRICS_ENDPOINT}return r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}();t.exports=r})),Zr=E(((e,t)=>{"use strict";var r=ln(),i=Jr(),o=(O(),Nr()),a=n(7310),s=function(){function e(t){var n=this;this.endpointBase=o.DEFAULT_BREEZE_ENDPOINT;var r=process.env[e.ENV_connectionString],s=i.parse(t),c=i.parse(r),u=!s.instrumentationkey&&Object.keys(s).length>0?null:t;this.instrumentationKey=s.instrumentationkey||u||c.instrumentationkey||e._getInstrumentationKey(),e._validateInstrumentationKey(this.instrumentationKey),this.endpointUrl=(s.ingestionendpoint||c.ingestionendpoint||this.endpointBase)+"/v2.1/track",this.maxBatchSize=250,this.maxBatchIntervalMs=15e3,this.disableAppInsights=!1,this.samplingPercentage=100,this.correlationIdRetryIntervalMs=3e4,this.correlationHeaderExcludedDomains=["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.setCorrelationId=function(e){return n.correlationId=e},this.proxyHttpUrl=process.env[e.ENV_http_proxy]||void 0,this.proxyHttpsUrl=process.env[e.ENV_https_proxy]||void 0,this.httpAgent=void 0,this.httpsAgent=void 0,this.profileQueryEndpoint=s.ingestionendpoint||c.ingestionendpoint||process.env[e.ENV_profileQueryEndpoint]||this.endpointBase,this._quickPulseHost=s.liveendpoint||c.liveendpoint||process.env[e.ENV_quickPulseHost]||o.DEFAULT_LIVEMETRICS_HOST,this._quickPulseHost.match(/^https?:\/\//)&&(this._quickPulseHost=a.parse(this._quickPulseHost).host)}return Object.defineProperty(e.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(e){r.cancelCorrelationIdQuery(this,this.setCorrelationId),this._profileQueryEndpoint=e,this.correlationId=r.correlationIdPrefix,r.queryCorrelationId(this,this.setCorrelationId)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickPulseHost",{get:function(){return this._quickPulseHost},set:function(e){this._quickPulseHost=e},enumerable:!1,configurable:!0}),e._getInstrumentationKey=function(){var t=process.env[e.ENV_iKey]||process.env[e.ENV_azurePrefix+e.ENV_iKey]||process.env[e.legacy_ENV_iKey]||process.env[e.ENV_azurePrefix+e.legacy_ENV_iKey];if(!t||""==t)throw new Error("Instrumentation key not found, pass the key in the config to this method or set the key in the environment variable APPINSIGHTS_INSTRUMENTATIONKEY before starting the server");return t},e._validateInstrumentationKey=function(e){return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)},e.ENV_azurePrefix="APPSETTING_",e.ENV_iKey="APPINSIGHTS_INSTRUMENTATIONKEY",e.legacy_ENV_iKey="APPINSIGHTS_INSTRUMENTATION_KEY",e.ENV_profileQueryEndpoint="APPINSIGHTS_PROFILE_QUERY_ENDPOINT",e.ENV_quickPulseHost="APPINSIGHTS_QUICKPULSE_HOST",e.ENV_connectionString="APPLICATIONINSIGHTS_CONNECTION_STRING",e.ENV_nativeMetricsDisablers="APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC",e.ENV_nativeMetricsDisableAll="APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS",e.ENV_http_proxy="http_proxy",e.ENV_https_proxy="https_proxy",e}();t.exports=s})),ei=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AutoCollectNativePerformance=void 0;var r=Zr(),i=Lr(),o=O(),a=function(){function e(t){this._disabledMetrics={},e.INSTANCE&&e.INSTANCE.dispose(),e.INSTANCE=this,this._client=t}return e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>=6},e.prototype.enable=function(t,r,i){var a=this;if(void 0===r&&(r={}),void 0===i&&(i=6e4),e.isNodeVersionCompatible()){if(null==e._metricsAvailable&&t&&!this._isInitialized)try{var s=n(9166);e._emitter=new s,e._metricsAvailable=!0,o.info("Native metrics module successfully loaded!")}catch{return void(e._metricsAvailable=!1)}this._isEnabled=t,this._disabledMetrics=r,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),this._isEnabled&&e._emitter?(e._emitter.enable(!0,i),this._handle||(this._handle=setInterval((function(){return a._trackNativeMetrics()}),i),this._handle.unref())):e._emitter&&(e._emitter.enable(!1),this._handle&&(clearInterval(this._handle),this._handle=void 0))}},e.prototype.dispose=function(){this.enable(!1)},e.parseEnabled=function(e){var n=process.env[r.ENV_nativeMetricsDisableAll],i=process.env[r.ENV_nativeMetricsDisablers];if(n)return{isEnabled:!1,disabledMetrics:{}};if(i){var o=i.split(","),a={};if(o.length>0)for(var s=0,c=o;s<c.length;s++)a[c[s]]=!0;return"object"==typeof e?{isEnabled:!0,disabledMetrics:t(t({},e),a)}:{isEnabled:e,disabledMetrics:a}}return"boolean"==typeof e?{isEnabled:e,disabledMetrics:{}}:{isEnabled:!0,disabledMetrics:e}},e.prototype._trackNativeMetrics=function(){var e=!0;"object"!=typeof this._isEnabled&&(e=this._isEnabled),e&&(this._trackGarbageCollection(),this._trackEventLoop(),this._trackHeapUsage())},e.prototype._trackGarbageCollection=function(){var t;if(!this._disabledMetrics.gc){var n=e._emitter.getGCData();for(var r in n){var o=n[r].metrics,a=r+" Garbage Collection Duration",s=Math.sqrt(o.sumSquares/o.count-Math.pow(o.total/o.count,2))||0;this._client.trackMetric({name:a,value:o.total,count:o.count,max:o.max,min:o.min,stdDev:s,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)})}}},e.prototype._trackEventLoop=function(){var t;if(!this._disabledMetrics.loop){var n=e._emitter.getLoopData().loopUsage;if(0!=n.count){var r=Math.sqrt(n.sumSquares/n.count-Math.pow(n.total/n.count,2))||0;this._client.trackMetric({name:"Event Loop CPU Time",value:n.total,count:n.count,min:n.min,max:n.max,stdDev:r,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)})}}},e.prototype._trackHeapUsage=function(){var e,t,n;if(!this._disabledMetrics.heap){var r=process.memoryUsage(),o=r.heapUsed,a=r.heapTotal,s=r.rss;this._client.trackMetric({name:"Memory Usage (Heap)",value:o,count:1,tagOverrides:(e={},e[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,e)}),this._client.trackMetric({name:"Memory Total (Heap)",value:a,count:1,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)}),this._client.trackMetric({name:"Memory Usage (Non-Heap)",value:s-a,count:1,tagOverrides:(n={},n[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,n)})}},e}();e.AutoCollectNativePerformance=a})),ti=E(((e,t)=>{"use strict";var n=O(),r=function(){function e(e,t,n,r){this._buffer=[],this._lastSend=0,this._isDisabled=e,this._getBatchSize=t,this._getBatchIntervalMs=n,this._sender=r}return e.prototype.setUseDiskRetryCaching=function(e,t,n){this._sender.setDiskRetryMode(e,t,n)},e.prototype.send=function(e){var t=this;if(!this._isDisabled()){if(!e)return void n.warn("Cannot send null/undefined telemetry");if(this._buffer.push(e),this._buffer.length>=this._getBatchSize())return void this.triggerSend(!1);!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout((function(){t._timeoutHandle=null,t.triggerSend(!1)}),this._getBatchIntervalMs()))}},e.prototype.triggerSend=function(e,t){var n=this._buffer.length<1;n||(e?(this._sender.saveOnCrash(this._buffer),"function"==typeof t&&t("data saved on crash")):this._sender.send(this._buffer,t)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,n&&"function"==typeof t&&t("no data to send")},e}();t.exports=r})),ni=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.azureRoleEnvironmentTelemetryProcessor=void 0,e.azureRoleEnvironmentTelemetryProcessor=function(e,t){process.env.WEBSITE_SITE_NAME&&(e.tags[t.keys.cloudRole]=process.env.WEBSITE_SITE_NAME)}})),ri=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSamplingHashCode=e.samplingTelemetryProcessor=void 0;var t=nr();function n(e){var t=2147483647,n=5381;if(!e)return 0;for(;e.length<8;)e+=e;for(var r=0;r<e.length;r++)n=((n<<5)+n|0)+e.charCodeAt(r)|0;return(n=n<=-2147483648?t:Math.abs(n))/t*100}e.samplingTelemetryProcessor=function(e,r){var i=e.sampleRate;return!!(null==i||i>=100||e.data&&t.TelemetryType.Metric===t.baseTypeToTelemetryType(e.data.baseType))||(r.correlationContext&&r.correlationContext.operation?n(r.correlationContext.operation.id)<i:100*Math.random()<i)},e.getSamplingHashCode=n})),ii=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performanceMetricsTelemetryProcessor=void 0;var t=Dr(),n=nr();e.performanceMetricsTelemetryProcessor=function(e,r){switch(r&&r.addDocument(e),e.data.baseType){case n.TelemetryTypeString.Exception:t.countException();break;case n.TelemetryTypeString.Request:var i=e.data.baseData;t.countRequest(i.duration,i.success);break;case n.TelemetryTypeString.Dependency:var o=e.data.baseData;t.countDependency(o.duration,o.success)}return!0}})),oi=E((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.preAggregatedMetricsTelemetryProcessor=void 0;var n=nr(),r=jr(),i=nr();e.preAggregatedMetricsTelemetryProcessor=function(e,o){if(r.isEnabled())switch(e.data.baseType){case i.TelemetryTypeString.Exception:var a=e.data.baseData;a.properties=t(t({},a.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')"});var s={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole]};r.countException(s);break;case i.TelemetryTypeString.Trace:var c=e.data.baseData;c.properties=t(t({},c.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Traces', Ver:'1.1')"});var u={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],traceSeverityLevel:n.SeverityLevel[c.severity]};r.countTrace(u);break;case i.TelemetryTypeString.Request:var l=e.data.baseData;l.properties=t(t({},l.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')"});var p={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],operationSynthetic:e.tags[o.keys.operationSyntheticSource],requestSuccess:l.success,requestResultCode:l.responseCode};r.countRequest(l.duration,p);break;case i.TelemetryTypeString.Dependency:var d=e.data.baseData;d.properties=t(t({},d.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"});var f={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],operationSynthetic:e.tags[o.keys.operationSyntheticSource],dependencySuccess:d.success,dependencyType:d.type,dependencyTarget:d.target,dependencyResultCode:d.resultCode};r.countDependency(d.duration,f)}return!0}})),ai=E((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ni(),e),n(ri(),e),n(ii(),e),n(oi(),e)})),si=E(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=n(7147),a=n(2037),s=n(1017),c=n(9796),u=n(2081),l=O(),p=$r(),d=un(),f=function(){function e(t,n,r){if(this._redirectedHost=null,this._config=t,this._onSuccess=n,this._onError=r,this._enableDiskRetryMode=!1,this._resendInterval=e.WAIT_BETWEEN_RESEND,this._maxBytesOnDisk=e.MAX_BYTES_ON_DISK,this._numConsecutiveFailures=0,this._numConsecutiveRedirects=0,this._resendTimer=null,this._fileCleanupTimer=null,this._tempDir=s.join(a.tmpdir(),e.TEMPDIR_PREFIX+this._config.instrumentationKey),!e.OS_PROVIDES_FILE_PROTECTION)if(e.USE_ICACLS){try{e.OS_PROVIDES_FILE_PROTECTION=o.existsSync(e.ICACLS_PATH)}catch{}e.OS_PROVIDES_FILE_PROTECTION||l.warn(e.TAG,"Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.")}else e.OS_PROVIDES_FILE_PROTECTION=!0}return e.prototype.setDiskRetryMode=function(t,n,r){var i=this;this._enableDiskRetryMode=e.OS_PROVIDES_FILE_PROTECTION&&t,"number"==typeof n&&n>=0&&(this._resendInterval=Math.floor(n)),"number"==typeof r&&r>=0&&(this._maxBytesOnDisk=Math.floor(r)),t&&!e.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,l.warn(e.TAG,"Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout((function(){i._fileCleanupTask()}),e.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref()):this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer)},e.prototype.send=function(t,n){return r(this,void 0,void 0,(function(){var r,o,a,s,u=this;return i(this,(function(i){return t&&(r=this._redirectedHost||this._config.endpointUrl,o={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},a="",t.forEach((function(e){var t=u._stringify(e);"string"==typeof t&&(a+=t+"\n")})),a.length>0&&(a=a.substring(0,a.length-1)),s=Buffer.from?Buffer.from(a):new Buffer(a),c.gzip(s,(function(i,a){var c=a;i?(l.warn(i),c=s,o.headers["Content-Length"]=s.length.toString()):(o.headers["Content-Encoding"]="gzip",o.headers["Content-Length"]=a.length.toString()),l.info(e.TAG,o),o[p.disableCollectionRequestOption]=!0;var f=d.makeRequest(u._config,r,o,(function(r){r.setEncoding("utf-8");var i="";r.on("data",(function(e){i+=e})),r.on("end",(function(){if(u._numConsecutiveFailures=0,u._enableDiskRetryMode)if(200===r.statusCode)u._resendTimer||(u._resendTimer=setTimeout((function(){u._resendTimer=null,u._sendFirstFileOnDisk()}),u._resendInterval),u._resendTimer.unref());else if(u._isRetriable(r.statusCode))try{var o=JSON.parse(i),a=[];o.errors.forEach((function(e){u._isRetriable(e.statusCode)&&a.push(t[e.index])})),a.length>0&&u._storeToDisk(a)}catch{u._storeToDisk(t)}if(307===r.statusCode||308===r.statusCode)if(u._numConsecutiveRedirects++,u._numConsecutiveRedirects<10){var s=r.headers.location?r.headers.location.toString():null;s&&(u._redirectedHost=s,u.send(t,n))}else"function"==typeof n&&n("Error sending telemetry because of circular redirects.");else u._numConsecutiveRedirects=0,"function"==typeof n&&n(i),l.info(e.TAG,i),"function"==typeof u._onSuccess&&u._onSuccess(i)}))}));f.on("error",(function(r){if(u._numConsecutiveFailures++,!u._enableDiskRetryMode||u._numConsecutiveFailures>0&&u._numConsecutiveFailures%e.MAX_CONNECTION_FAILURES_BEFORE_WARN==0){var i="Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:";u._enableDiskRetryMode&&(i="Ingestion endpoint could not be reached "+u._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),l.warn(e.TAG,i,d.dumpObj(r))}else i="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:",l.info(e.TAG,i,d.dumpObj(r));u._onErrorHelper(r),"function"==typeof n&&(r&&n(d.dumpObj(r)),n("Error sending telemetry")),u._enableDiskRetryMode&&u._storeToDisk(t)})),f.write(c),f.end()}))),[2]}))}))},e.prototype.saveOnCrash=function(e){this._enableDiskRetryMode&&this._storeToDiskSync(this._stringify(e))},e.prototype._isRetriable=function(e){return 206===e||408===e||429===e||439===e||500===e||503===e},e.prototype._runICACLS=function(t,n){var r=u.spawn(e.ICACLS_PATH,t,{windowsHide:!0});r.on("error",(function(e){return n(e)})),r.on("close",(function(e,t){return n(0===e?null:new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+e+")"))}))},e.prototype._runICACLSSync=function(t){if(!u.spawnSync)throw new Error("Could not synchronously call ICACLS under current version of Node.js");var n=u.spawnSync(e.ICACLS_PATH,t,{windowsHide:!0});if(n.error)throw n.error;if(0!==n.status)throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+n.status+")")},e.prototype._getACLIdentity=function(t){if(e.ACL_IDENTITY)return t(null,e.ACL_IDENTITY);var n=u.spawn(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]}),r="";n.stdout.on("data",(function(e){return r+=e})),n.on("error",(function(e){return t(e,null)})),n.on("close",(function(n,i){return e.ACL_IDENTITY=r&&r.trim(),t(0===n?null:new Error("Getting ACL identity did not succeed (PS returned code "+n+")"),e.ACL_IDENTITY)}))},e.prototype._getACLIdentitySync=function(){if(e.ACL_IDENTITY)return e.ACL_IDENTITY;if(u.spawnSync){var t=u.spawnSync(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]});if(t.error)throw t.error;if(0!==t.status)throw new Error("Getting ACL identity did not succeed (PS returned code "+t.status+")");return e.ACL_IDENTITY=t.stdout&&t.stdout.toString().trim(),e.ACL_IDENTITY}throw new Error("Could not synchronously get ACL identity under current version of Node.js")},e.prototype._getACLArguments=function(e,t){return[e,"/grant","*S-1-5-32-544:(OI)(CI)F","/grant",t+":(OI)(CI)F","/inheritance:r"]},e.prototype._applyACLRules=function(t,n){var r=this;return e.USE_ICACLS?void 0!==e.ACLED_DIRECTORIES[t]?n(e.ACLED_DIRECTORIES[t]?null:new Error("Setting ACL restrictions did not succeed (cached result)")):(e.ACLED_DIRECTORIES[t]=!1,void this._getACLIdentity((function(i,o){if(i)return e.ACLED_DIRECTORIES[t]=!1,n(i);r._runICACLS(r._getACLArguments(t,o),(function(r){return e.ACLED_DIRECTORIES[t]=!r,n(r)}))}))):n(null)},e.prototype._applyACLRulesSync=function(t){if(e.USE_ICACLS){if(void 0===e.ACLED_DIRECTORIES[t])return this._runICACLSSync(this._getACLArguments(t,this._getACLIdentitySync())),void(e.ACLED_DIRECTORIES[t]=!0);if(!e.ACLED_DIRECTORIES[t])throw new Error("Setting ACL restrictions did not succeed (cached result)")}},e.prototype._confirmDirExists=function(e,t){var n=this;o.lstat(e,(function(r,i){r&&"ENOENT"===r.code?o.mkdir(e,(function(r){r&&"EEXIST"!==r.code?t(r):n._applyACLRules(e,t)})):!r&&i.isDirectory()?n._applyACLRules(e,t):t(r||new Error("Path existed but was not a directory"))}))},e.prototype._getShallowDirectorySize=function(e,t){o.readdir(e,(function(n,r){if(n)return t(n,-1);var i=null,a=0,c=0;if(0!==r.length)for(var u=0;u<r.length;u++)o.stat(s.join(e,r[u]),(function(e,n){c++,e?i=e:n.isFile()&&(a+=n.size),c===r.length&&t(i,i?-1:a)}));else t(null,0)}))},e.prototype._getShallowDirectorySizeSync=function(e){for(var t=o.readdirSync(e),n=0,r=0;r<t.length;r++)n+=o.statSync(s.join(e,t[r])).size;return n},e.prototype._storeToDisk=function(t){var n=this;l.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),this._confirmDirExists(this._tempDir,(function(r){if(r)return l.warn(e.TAG,"Error while checking/creating directory: "+(r&&r.message)),void n._onErrorHelper(r);n._getShallowDirectorySize(n._tempDir,(function(r,i){if(r||i<0)return l.warn(e.TAG,"Error while checking directory size: "+(r&&r.message)),void n._onErrorHelper(r);if(i>n._maxBytesOnDisk)l.warn(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+i);else{var a=(new Date).getTime()+".ai.json",c=s.join(n._tempDir,a);l.info(e.TAG,"saving data to disk at: "+c),o.writeFile(c,n._stringify(t),{mode:384},(function(e){return n._onErrorHelper(e)}))}}))}))},e.prototype._storeToDiskSync=function(t){try{l.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),o.existsSync(this._tempDir)||o.mkdirSync(this._tempDir),this._applyACLRulesSync(this._tempDir);var n=this._getShallowDirectorySizeSync(this._tempDir);if(n>this._maxBytesOnDisk)return void l.info(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+n);var r=(new Date).getTime()+".ai.json",i=s.join(this._tempDir,r);l.info(e.TAG,"saving data before crash to disk at: "+i),o.writeFileSync(i,t,{mode:384})}catch(t){l.warn(e.TAG,"Error while saving data to disk: "+(t&&t.message)),this._onErrorHelper(t)}},e.prototype._sendFirstFileOnDisk=function(){var e=this;o.exists(this._tempDir,(function(t){t&&o.readdir(e._tempDir,(function(t,n){if(t)e._onErrorHelper(t);else if((n=n.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0){var r=n[0],i=s.join(e._tempDir,r);o.readFile(i,(function(t,n){t?e._onErrorHelper(t):o.unlink(i,(function(t){if(t)e._onErrorHelper(t);else try{var r=JSON.parse(n.toString());e.send(r)}catch(e){l.warn("Failed to read persisted file",e)}}))}))}}))}))},e.prototype._onErrorHelper=function(e){"function"==typeof this._onError&&this._onError(e)},e.prototype._stringify=function(e){try{return JSON.stringify(e)}catch(t){l.warn("Failed to serialize payload",t,e)}},e.prototype._fileCleanupTask=function(){var t=this;o.exists(this._tempDir,(function(n){n&&o.readdir(t._tempDir,(function(n,r){n?t._onErrorHelper(n):(r=r.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0&&r.forEach((function(n){var r=new Date(parseInt(n.split(".ai.json")[0]));if(new Date(+new Date-e.FILE_RETEMPTION_PERIOD)>r){var i=s.join(t._tempDir,n);o.unlink(i,(function(e){e&&t._onErrorHelper(e)}))}}))}))}))},e.TAG="Sender",e.ICACLS_PATH=process.env.systemdrive+"/windows/system32/icacls.exe",e.POWERSHELL_PATH=process.env.systemdrive+"/windows/system32/windowspowershell/v1.0/powershell.exe",e.ACLED_DIRECTORIES={},e.ACL_IDENTITY=null,e.WAIT_BETWEEN_RESEND=6e4,e.MAX_BYTES_ON_DISK=52428800,e.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,e.CLEANUP_TIMEOUT=36e5,e.FILE_RETEMPTION_PERIOD=6048e5,e.TEMPDIR_PREFIX="appInsights-node",e.OS_PROVIDES_FILE_PROTECTION=!1,e.USE_ICACLS="Windows_NT"===a.type(),e}();t.exports=f})),ci=E(((e,t)=>{"use strict";var n=nr(),r=un(),i=wr(),o=function(){function e(){}return e.createEnvelope=function(t,i,o,a,s){var c=null;switch(i){case n.TelemetryType.Trace:c=e.createTraceData(t);break;case n.TelemetryType.Dependency:c=e.createDependencyData(t);break;case n.TelemetryType.Event:c=e.createEventData(t);break;case n.TelemetryType.Exception:c=e.createExceptionData(t);break;case n.TelemetryType.Request:c=e.createRequestData(t);break;case n.TelemetryType.Metric:c=e.createMetricData(t);break;case n.TelemetryType.Availability:c=e.createAvailabilityData(t);break;case n.TelemetryType.PageView:c=e.createPageViewData(t)}if(o&&n.domainSupportsProperties(c.baseData)){if(c&&c.baseData)if(c.baseData.properties)for(var u in o)c.baseData.properties[u]||(c.baseData.properties[u]=o[u]);else c.baseData.properties=o;c.baseData.properties=r.validateStringMap(c.baseData.properties)}var l=s&&s.instrumentationKey||"",p=new n.Envelope;return p.data=c,p.iKey=l,p.name="Microsoft.ApplicationInsights."+l.replace(/-/g,"")+"."+c.baseType.substr(0,c.baseType.length-4),p.tags=this.getTags(a,t.tagOverrides),p.time=(new Date).toISOString(),p.ver=1,p.sampleRate=s?s.samplingPercentage:100,i===n.TelemetryType.Metric&&(p.sampleRate=100),p},e.createTraceData=function(e){var t=new n.MessageData;t.message=e.message,t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Information:t.severityLevel=e.severity;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Trace),r.baseData=t,r},e.createDependencyData=function(e){var t=new n.RemoteDependencyData;"string"==typeof e.name&&(t.name=e.name.length>1024?e.name.slice(0,1021)+"...":e.name),t.data=e.data,t.target=e.target,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.type=e.dependencyTypeName,t.properties=e.properties,t.resultCode=e.resultCode?e.resultCode+"":"",e.id?t.id=e.id:t.id=r.w3cTraceId();var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Dependency),i.baseData=t,i},e.createEventData=function(e){var t=new n.EventData;t.name=e.name,t.properties=e.properties,t.measurements=e.measurements;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Event),r.baseData=t,r},e.createExceptionData=function(e){var t=new n.ExceptionData;t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Error:t.severityLevel=e.severity,t.measurements=e.measurements,t.exceptions=[];var i=e.exception.stack,o=new n.ExceptionDetails;o.message=e.exception.message,o.typeName=e.exception.name,o.parsedStack=this.parseStack(i),o.hasFullStack=r.isArray(o.parsedStack)&&o.parsedStack.length>0,t.exceptions.push(o);var a=new n.Data;return a.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Exception),a.baseData=t,a},e.createRequestData=function(e){var t=new n.RequestData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.url=e.url,t.source=e.source,t.duration=r.msToTimeSpan(e.duration),t.responseCode=e.resultCode?e.resultCode+"":"",t.success=e.success,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Request),i.baseData=t,i},e.createMetricData=function(e){var t=new n.MetricData;t.metrics=[];var r=new n.DataPoint;r.count=isNaN(e.count)?1:e.count,r.kind=n.DataPointType.Aggregation,r.max=isNaN(e.max)?e.value:e.max,r.min=isNaN(e.min)?e.value:e.min,r.name=e.name,r.stdDev=isNaN(e.stdDev)?0:e.stdDev,r.value=e.value,t.metrics.push(r),t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Metric),i.baseData=t,i},e.createAvailabilityData=function(e){var t=new n.AvailabilityData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.runLocation=e.runLocation,t.message=e.message,t.measurements=e.measurements,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Availability),i.baseData=t,i},e.createPageViewData=function(e){var t=new n.PageViewData;t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.url=e.url,t.measurements=e.measurements,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.PageView),i.baseData=t,i},e.getTags=function(e,t){var n=i.CorrelationContextManager.getCurrentContext(),r={};if(e&&e.tags)for(var o in e.tags)r[o]=e.tags[o];if(t)for(var o in t)r[o]=t[o];return n&&(r[e.keys.operationId]=r[e.keys.operationId]||n.operation.id,r[e.keys.operationName]=r[e.keys.operationName]||n.operation.name,r[e.keys.operationParentId]=r[e.keys.operationParentId]||n.operation.parentId),r},e.parseStack=function(e){var t=void 0;if("string"==typeof e){var n=e.split("\n");t=[];for(var r=0,i=0,o=0;o<=n.length;o++){var s=n[o];if(a.regex.test(s)){var c=new a(n[o],r++);i+=c.sizeInBytes,t.push(c)}}if(i>32768)for(var u=0,l=t.length-1,p=0,d=u,f=l;u<l;){if((p+=t[u].sizeInBytes+t[l].sizeInBytes)>32768){var h=f-d+1;t.splice(d,h);break}d=u,f=l,u++,l--}}return t},e}(),a=function(){function e(t,n){this.sizeInBytes=0,this.level=n,this.method="<no_method>",this.assembly=r.trim(t);var i=t.match(e.regex);i&&i.length>=5&&(this.method=r.trim(i[2])||this.method,this.fileName=r.trim(i[4])||"<no_filename>",this.line=parseInt(i[5])||0),this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=e.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return e.regex=/^(\s+at)?(.*?)(\@|\s\(|\s)([^\(\n]+):(\d+):(\d+)(\)?)$/,e.baseSize=58,e}();t.exports=o})),ui=E(((e,t)=>{"use strict";var r=n(7310),i=Zr(),o=Lr(),a=nr(),s=ti(),c=ai(),u=wr(),l=si(),p=un(),d=O(),f=ci(),h=function(){function e(e){this._telemetryProcessors=[],this._enableAzureProperties=!1;var t=new i(e);this.config=t,this.context=new o,this.commonProperties={};var n=new l(this.config);this.channel=new s((function(){return t.disableAppInsights}),(function(){return t.maxBatchSize}),(function(){return t.maxBatchIntervalMs}),n)}return e.prototype.trackAvailability=function(e){this.track(e,a.TelemetryType.Availability)},e.prototype.trackPageView=function(e){this.track(e,a.TelemetryType.PageView)},e.prototype.trackTrace=function(e){this.track(e,a.TelemetryType.Trace)},e.prototype.trackMetric=function(e){this.track(e,a.TelemetryType.Metric)},e.prototype.trackException=function(e){e&&e.exception&&!p.isError(e.exception)&&(e.exception=new Error(e.exception.toString())),this.track(e,a.TelemetryType.Exception)},e.prototype.trackEvent=function(e){this.track(e,a.TelemetryType.Event)},e.prototype.trackRequest=function(e){this.track(e,a.TelemetryType.Request)},e.prototype.trackDependency=function(e){e&&!e.target&&e.data&&(e.target=r.parse(e.data).host),this.track(e,a.TelemetryType.Dependency)},e.prototype.flush=function(e){this.channel.triggerSend(!!e&&!!e.isAppCrashing,e?e.callback:void 0)},e.prototype.track=function(e,t){if(e&&a.telemetryTypeToBaseType(t)){var n=f.createEnvelope(e,t,this.commonProperties,this.context,this.config);e.time&&(n.time=e.time.toISOString()),this._enableAzureProperties&&c.azureRoleEnvironmentTelemetryProcessor(n,this.context);var r=this.runTelemetryProcessors(n,e.contextObjects);r=r&&c.samplingTelemetryProcessor(n,{correlationContext:u.CorrelationContextManager.getCurrentContext()}),c.preAggregatedMetricsTelemetryProcessor(n,this.context),r&&(c.performanceMetricsTelemetryProcessor(n,this.quickPulseClient),this.channel.send(n))}else d.warn("track() requires telemetry object and telemetryType to be specified.")},e.prototype.setAutoPopulateAzureProperties=function(e){this._enableAzureProperties=e},e.prototype.addTelemetryProcessor=function(e){this._telemetryProcessors.push(e)},e.prototype.clearTelemetryProcessors=function(){this._telemetryProcessors=[]},e.prototype.runTelemetryProcessors=function(e,t){var n=!0,r=this._telemetryProcessors.length;if(0===r)return n;(t=t||{}).correlationContext=u.CorrelationContextManager.getCurrentContext();for(var i=0;i<r;++i)try{var o=this._telemetryProcessors[i];if(o&&!1===o.apply(null,[e,t])){n=!1;break}}catch(t){n=!0,d.warn("One of telemetry processors failed, telemetry item will be sent.",t,e)}return n&&(e&&e.tags&&(e.tags=p.validateStringMap(e.tags)),e&&e.data&&e.data.baseData&&e.data.baseData.properties&&(e.data.baseData.properties=p.validateStringMap(e.data.baseData.properties))),n},e}();t.exports=h})),li=E(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=ui(),o=Wr(),a=$r(),s=O(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.trackNodeHttpRequestSync=function(e){e&&e.request&&e.response&&e.duration?o.trackRequestSync(this,e):s.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.")},t.prototype.trackNodeHttpRequest=function(e){(e.duration||e.error)&&s.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."),e&&e.request&&e.response?o.trackRequest(this,e):s.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.")},t.prototype.trackNodeHttpDependency=function(e){e&&e.request?a.trackRequest(this,e):s.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.")},t}(i);t.exports=c})),pi=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),di=E((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.Configuration=e.wrapWithCorrelationContext=e.startOperation=e.getCorrelationContext=e.start=e.setup=e.liveMetricsClient=e.defaultClient=e.DistributedTracingModes=void 0;var t,n,r=wr(),i=xr(),o=Rr(),a=Dr(),s=jr(),c=zr(),u=$r(),l=Wr(),p=ln(),d=O(),f=Xr(),h=ei();e.TelemetryClient=li(),e.Contracts=nr(),e.azureFunctionsTypes=pi(),(n=t=e.DistributedTracingModes||(e.DistributedTracingModes={}))[n.AI=0]="AI",n[n.AI_AND_W3C=1]="AI_AND_W3C";var v,g,m,_,y,E,b,S,T,P,C,w=!0,A=!1,I=!0,x=!0,R=!0,N=!1,D=!0,k=!0,M=!0,j=!0,L=!1,F=!0,B=void 0,H=void 0,U=!1;function V(){return e.defaultClient?(U=!0,m.enable(w,A),_.enable(I),y.enable(x),E.enable(R),b.enable(N,e.defaultClient.config),S.enable(F,g),T.useAutoCorrelation(j,v),T.enable(D),P.enable(k),e.liveMetricsClient&&L&&e.liveMetricsClient.enable(L)):d.warn("Start cannot be called before setup"),q}e.setup=function(t){return e.defaultClient?d.info("The default client is already setup"):(e.defaultClient=new e.TelemetryClient(t),m=new i(e.defaultClient),_=new o(e.defaultClient),y=new a(e.defaultClient),E=new s(e.defaultClient),b=new c(e.defaultClient),T=new l(e.defaultClient),P=new u(e.defaultClient),S||(S=new h.AutoCollectNativePerformance(e.defaultClient))),e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(M,B,H),q},e.start=V,e.getCorrelationContext=function(){return j?r.CorrelationContextManager.getCurrentContext():null},e.startOperation=function(e,t){return r.CorrelationContextManager.startOperation(e,t)},e.wrapWithCorrelationContext=function(e,t){return r.CorrelationContextManager.wrapCallback(e,t)};var q=function(){function n(){}return n.setDistributedTracingMode=function(e){return p.w3cEnabled=e===t.AI_AND_W3C,n},n.setAutoCollectConsole=function(e,t){return void 0===t&&(t=!1),w=e,A=t,U&&m.enable(e,t),n},n.setAutoCollectExceptions=function(e){return I=e,U&&_.enable(e),n},n.setAutoCollectPerformance=function(e,t){void 0===t&&(t=!0),x=e;var r=h.AutoCollectNativePerformance.parseEnabled(t);return F=r.isEnabled,g=r.disabledMetrics,U&&(y.enable(e),S.enable(r.isEnabled,r.disabledMetrics)),n},n.setAutoCollectPreAggregatedMetrics=function(e){return R=e,U&&E.enable(e),n},n.setAutoCollectHeartbeat=function(t){return N=t,U&&b.enable(t,e.defaultClient.config),n},n.setAutoCollectRequests=function(e){return D=e,U&&T.enable(e),n},n.setAutoCollectDependencies=function(e){return k=e,U&&P.enable(e),n},n.setAutoDependencyCorrelation=function(e,t){return j=e,v=t,U&&T.useAutoCorrelation(e,t),n},n.setUseDiskRetryCaching=function(t,r,i){return M=t,B=r,H=i,e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(t,r,i),n},n.setInternalLogging=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!0),d.enableDebug=e,d.disableWarnings=!t,n},n.setSendLiveMetrics=function(t){return void 0===t&&(t=!1),e.defaultClient?(!e.liveMetricsClient&&t?(e.liveMetricsClient=new f(e.defaultClient.config,null),C=new a(e.liveMetricsClient,1e3,!0),e.liveMetricsClient.addCollector(C),e.defaultClient.quickPulseClient=e.liveMetricsClient):e.liveMetricsClient&&e.liveMetricsClient.enable(t),L=t,n):(d.warn("Live metrics client cannot be setup without the default client"),n)},n.start=V,n}();e.Configuration=q,e.dispose=function(){p.w3cEnabled=!0,e.defaultClient=null,U=!1,m&&m.dispose(),_&&_.dispose(),y&&y.dispose(),E&&E.dispose(),b&&b.dispose(),S&&S.dispose(),T&&T.dispose(),P&&P.dispose(),e.liveMetricsClient&&(e.liveMetricsClient.enable(!1),L=!1,e.liveMetricsClient=void 0)}})),fi={};((e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(fi,{default:()=>yi}),e.exports=(a=fi,b(c({},"__esModule",{value:!0}),a));var hi=S(n(2037)),vi=S(n(9496)),gi=S(n(5687)),mi=class{constructor(e){this.vscodeAPI=e}getTelemetryLevel(){try{let e=this.vscodeAPI.env.telemetryConfiguration;return e.isUsageEnabled&&e.isErrorsEnabled&&e.isCrashEnabled?"on":e.isErrorsEnabled&&e.isCrashEnabled?"error":"off"}catch{return void 0!==this.vscodeAPI.env.isTelemetryEnabled?this.vscodeAPI.env.isTelemetryEnabled?"on":"off":this.vscodeAPI.workspace.getConfiguration("telemetry").get("enableTelemetry")?"on":"off"}}static applyReplacements(e,t){for(let n of Object.keys(e))for(let r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===e[32]&&"-"===e[41]&&"-"===e[46]&&"-"===e[51]&&"-"===e[56]&&"-"===e[69]}static getInstance(e){return mi._instance||(mi._instance=new mi(e)),mi._instance}},_i=class{constructor(e,t,n,r,i,o){this.extensionId=e,this.extensionVersion=t,this.telemetryAppender=n,this.osShim=r,this.vscodeAPI=i,this.firstParty=!1,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this.firstParty=!!o,this.updateUserOptStatus(),void 0!==i.env.onDidChangeTelemetryEnabled?(this.disposables.push(i.env.onDidChangeTelemetryEnabled((()=>this.updateUserOptStatus()))),this.disposables.push(i.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))):this.disposables.push(i.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))}updateUserOptStatus(){let e=mi.getInstance(this.vscodeAPI).getTelemetryLevel();this.userOptIn="on"===e,this.errorOptIn="error"===e||this.userOptIn,(this.userOptIn||this.errorOptIn)&&this.telemetryAppender.instantiateAppender()}cleanRemoteName(e){if(!e)return"none";let t="other";return["ssh-remote","dev-container","attached-container","wsl","codespaces"].forEach((n=>{0===e.indexOf(`${n}`)&&(t=n)})),t}get extension(){return void 0===this._extension&&(this._extension=this.vscodeAPI.extensions.getExtension(this.extensionId)),this._extension}cloneAndChange(e,t){if(null===e||"object"!=typeof e||"function"!=typeof t)return e;let n={};for(let r in e)n[r]=t(r,e[r]);return n}shouldSendErrorTelemetry(){return!(!1===this.errorOptIn||this.firstParty&&this.vscodeAPI.env.remoteName&&"other"===this.cleanRemoteName(this.vscodeAPI.env.remoteName))}getCommonProperties(){let e={};if(e["common.os"]=this.osShim.platform,e["common.nodeArch"]=this.osShim.architecture,e["common.platformversion"]=(this.osShim.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),e["common.extname"]=this.extensionId,e["common.extversion"]=this.extensionVersion,this.vscodeAPI&&this.vscodeAPI.env){switch(e["common.vscodemachineid"]=this.vscodeAPI.env.machineId,e["common.vscodesessionid"]=this.vscodeAPI.env.sessionId,e["common.vscodeversion"]=this.vscodeAPI.version,e["common.isnewappinstall"]=this.vscodeAPI.env.isNewAppInstall?this.vscodeAPI.env.isNewAppInstall.toString():"false",e["common.product"]=this.vscodeAPI.env.appHost,this.vscodeAPI.env.uiKind){case this.vscodeAPI.UIKind.Web:e["common.uikind"]="web";break;case this.vscodeAPI.UIKind.Desktop:e["common.uikind"]="desktop";break;default:e["common.uikind"]="unknown"}e["common.remotename"]=this.cleanRemoteName(this.vscodeAPI.env.remoteName)}return e}anonymizeFilePaths(e,t){let n;if(null==e)return"";let r=[];""!==this.vscodeAPI.env.appRoot&&r.push(new RegExp(this.vscodeAPI.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")),this.extension&&r.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"));let i=e;if(t){let t=[];for(let i of r)for(;(n=i.exec(e))&&n;)t.push([n.index,i.lastIndex]);let o=/^[\\/]?(node_modules|node_modules\.asar)[\\/]/,a=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-._]+(\\\\|\\|\/))+[\w-._]*/g,s=0;for(i="";(n=a.exec(e))&&n;)n[0]&&!o.test(n[0])&&t.every((([e,t])=>n.index<e||n.index>=t))&&(i+=e.substring(s,n.index)+"<REDACTED: user-file-path>",s=a.lastIndex);s<e.length&&(i+=e.substr(s))}for(let e of r)i=i.replace(e,"");return i}removePropertiesWithPossibleUserInfo(e){if("object"!=typeof e)return;let t={};for(let n of Object.keys(e)){let r=e[n];if(!r)continue;let i=/@[a-zA-Z0-9-.]+/,o=/xox[pbaors]-[a-zA-Z0-9]+-[a-zA-Z0-9-]+?/;/(key|token|sig|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/.test(r.toLowerCase())?t[n]="<REDACTED: secret>":i.test(r)?t[n]="<REDACTED: email>":o.test(r)?t[n]="<REDACTED: token>":t[n]=r}return t}get telemetryLevel(){switch(mi.getInstance(this.vscodeAPI).getTelemetryLevel()){case"on":return"all";case"error":return"error";case"off":return"off"}}internalSendTelemetryEvent(e,t,n,r,i){if((this.userOptIn||i)&&""!==e){if(t=_(_({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!0,!1)}sendRawTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1,!1)}sendDangerousTelemetryEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryEvent(e,t,n,r,!0)}internalSendTelemetryErrorEvent(e,t,n,r,i){if((this.shouldSendErrorTelemetry()||i)&&""!==e){if(t=_(_({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!0,!1)}sendDangerousTelemetryErrorEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryErrorEvent(e,t,n,r,!0)}internalSendTelemetryException(e,t,n,r,i){if((this.shouldSendErrorTelemetry()||i)&&e){if(t=_(_({},t),this.getCommonProperties()),r){let n=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));e.stack&&(e.stack=this.anonymizeFilePaths(e.stack,this.firstParty)),t=this.removePropertiesWithPossibleUserInfo(n)}t=t??{},n=n??{},this.telemetryAppender.logException(e,{properties:t,measurements:n})}}sendTelemetryException(e,t,n){this.internalSendTelemetryException(e,t,n,!0,!1)}sendDangerousTelemetryException(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryException(e,t,n,r,!0)}dispose(){return this.telemetryAppender.flush(),Promise.all(this.disposables.map((e=>e.dispose())))}},yi=class extends _i{constructor(e,t,n,r,i){let o=e=>(async(e,t)=>{let n;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";let t=await Promise.resolve().then((()=>S(di())));t.defaultClient?(n=new t.TelemetryClient(e),n.channel.setUseDiskRetryCaching(!0)):(t.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setUseDiskRetryCaching(!0).start(),n=t.defaultClient),vi&&vi.env&&(n.context.tags[n.context.keys.userId]=vi.env.machineId,n.context.tags[n.context.keys.sessionId]=vi.env.sessionId,n.context.tags[n.context.keys.cloudRole]=vi.env.appName,n.context.tags[n.context.keys.cloudRoleInstance]=vi.env.appName),e&&0===e.indexOf("AIF-")&&(n.config.endpointUrl="https://mobile.events.data.microsoft.com/collect/v1")}catch(e){return Promise.reject("Failed to initialize app insights!\n"+e.message)}return null!=t&&t.length&&function(e,t){e.addTelemetryProcessor((e=>(Array.isArray(e.tags)?e.tags.forEach((e=>mi.applyReplacements(e,t))):e.tags&&mi.applyReplacements(e.tags,t),e.data.baseData&&mi.applyReplacements(e.data.baseData,t),!0)))}(n,t),{logEvent:(e,t)=>{try{null==n||n.trackEvent({name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{try{null==n||n.trackException({exception:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log exception to app insights!\n"+e.message)}},flush:async()=>{try{null==n||n.flush()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,i);mi.shouldUseOneDataSystemSDK(n)&&(o=e=>(async(e,t,n)=>{let r=await(async(e,t,n)=>{let r=await Promise.resolve().then((()=>S(w()))),i=await Promise.resolve().then((()=>S(I()))),o=new r.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(n){s.extensionConfig={};let e={alwaysUseXhrOverride:!0,httpXHROverride:n};s.extensionConfig[a.identifier]=e}let c=t.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer((e=>{!c||(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),o})(e,t,n);return{logEvent:(e,t)=>{try{null==r||r.track({name:e,baseData:{name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{throw new Error("1DS SDK does not support logging exceptions, please use logEvent for exception tracking")},flush:async()=>{try{null==r||r.unload()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,vi,{sendPOST:(e,t)=>{let n={method:"POST",headers:y(_({},e.headers),{"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)})};try{let r=gi.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));r.write(e.data),r.end()}catch{t(0,{})}}}));let a=new class{constructor(e,t){this._instantiationStatus=0,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}logEvent(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):2!==this._instantiationStatus&&this._eventQueue.push({eventName:e,data:t})}logException(e,t){this._telemetryClient?this._telemetryClient.logException(e,t):2!==this._instantiationStatus&&this._exceptionQueue.push({exception:e,data:t})}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.logEvent(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.logException(e,t))),this._exceptionQueue=[]}instantiateAppender(){0===this._instantiationStatus&&(this._instantiationStatus=1,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=2,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=2})))}}(n,o);n&&(0===n.indexOf("AIF-")||mi.shouldUseOneDataSystemSDK(n))&&(r=!0),super(e,t,a,{release:hi.release(),platform:hi.platform(),architecture:hi.arch()},vi,r)}}},5029:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=5029,e.exports=t},3437:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3437,e.exports=t},6744:(e,t,n)=>{"use strict";const r=n(3349),i=n(7529),o=n(8050),a=n(4339),s=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=s.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(s.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};s.parse=(e,t={})=>a(e,t),s.stringify=(e,t={})=>r("string"==typeof e?s.parse(e,t):e,t),s.compile=(e,t={})=>("string"==typeof e&&(e=s.parse(e,t)),i(e,t)),s.expand=(e,t={})=>{"string"==typeof e&&(e=s.parse(e,t));let n=o(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},s.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?s.compile(e,t):s.expand(e,t),e.exports=s},7529:(e,t,n)=>{"use strict";const r=n(2664),i=n(3083);e.exports=(e,t={})=>{let n=(e,o={})=>{let a=i.isInvalidBrace(o),s=!0===e.invalid&&!0===t.escapeInvalid,c=!0===a||!0===s,u=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return u+e.value;if(!0===e.isClose)return u+e.value;if("open"===e.type)return c?u+e.value:"(";if("close"===e.type)return c?u+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":c?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let n=i.reduce(e.nodes),o=r(...n,{...t,wrap:!1,toRegex:!0});if(0!==o.length)return n.length>1&&o.length>1?`(${o})`:o}if(e.nodes)for(let t of e.nodes)l+=n(t,e);return l};return n(e)}},6611:e=>{"use strict";e.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},8050:(e,t,n)=>{"use strict";const r=n(2664),i=n(3349),o=n(3083),a=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?o.flatten(t).map((e=>`{${e}}`)):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return o.flatten(r)};e.exports=(e,t={})=>{let n=void 0===t.rangeLimit?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let u=c,l=c.queue;for(;"brace"!==u.type&&"root"!==u.type&&u.parent;)u=u.parent,l=u.queue;if(e.invalid||e.dollar)return void l.push(a(l.pop(),i(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void l.push(a(l.pop(),["{}"]));if(e.nodes&&e.ranges>0){let s=o.reduce(e.nodes);if(o.exceedsLimit(...s,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=r(...s,t);return 0===c.length&&(c=i(e,t)),l.push(a(l.pop(),c)),void(e.nodes=[])}let p=o.encloseBrace(e),d=e.queue,f=e;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)f=f.parent,d=f.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?d.push(a(d.pop(),n.value)):n.nodes&&s(n,e):l.push(a(l.pop(),d,p)):(1===t&&d.push(""),d.push(""))}return d};return o.flatten(s(e))}},4339:(e,t,n)=>{"use strict";const r=n(3349),{MAX_LENGTH:i,CHAR_BACKSLASH:o,CHAR_BACKTICK:a,CHAR_COMMA:s,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:v,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=n(6611);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let n=t||{},y="number"==typeof n.maxLength?Math.min(i,n.maxLength):i;if(e.length>y)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let E,b={type:"root",input:e,nodes:[]},S=[b],T=b,P=b,C=0,w=e.length,A=0,I=0;const O=()=>e[A++],x=e=>{if("text"===e.type&&"dot"===P.type&&(P.type="text"),!P||"text"!==P.type||"text"!==e.type)return T.nodes.push(e),e.parent=T,e.prev=P,P=e,e;P.value+=e.value};for(x({type:"bos"});A<w;)if(T=S[S.length-1],E=O(),E!==_&&E!==m)if(E!==o)if(E!==h)if(E!==f)if(E!==u)if(E!==l)if(E!==v&&E!==g&&E!==a)if(E!==p)if(E!==d)if(E===s&&I>0){if(T.ranges>0){T.ranges=0;let e=T.nodes.shift();T.nodes=[e,{type:"text",value:r(T)}]}x({type:"comma",value:E}),T.commas++}else if(E===c&&I>0&&0===T.commas){let e=T.nodes;if(0===I||0===e.length){x({type:"text",value:E});continue}if("dot"===P.type){if(T.range=[],P.value+=E,P.type="range",3!==T.nodes.length&&5!==T.nodes.length){T.invalid=!0,T.ranges=0,P.type="text";continue}T.ranges++,T.args=[];continue}if("range"===P.type){e.pop();let t=e[e.length-1];t.value+=P.value+E,P=t,T.ranges--;continue}x({type:"dot",value:E})}else x({type:"text",value:E});else{if("brace"!==T.type){x({type:"text",value:E});continue}let e="close";T=S.pop(),T.close=!0,x({type:e,value:E}),I--,T=S[S.length-1]}else{I++;let e=P.value&&"$"===P.value.slice(-1)||!0===T.dollar;T=x({type:"brace",open:!0,close:!1,dollar:e,depth:I,commas:0,ranges:0,nodes:[]}),S.push(T),x({type:"open",value:E})}else{let e,n=E;for(!0!==t.keepQuotes&&(E="");A<w&&(e=O());)if(e!==o){if(e===n){!0===t.keepQuotes&&(E+=e);break}E+=e}else E+=e+O();x({type:"text",value:E})}else{if("paren"!==T.type){x({type:"text",value:E});continue}T=S.pop(),x({type:"text",value:E}),T=S[S.length-1]}else T=x({type:"paren",nodes:[]}),S.push(T),x({type:"text",value:E});else{let e;for(C++;A<w&&(e=O());)if(E+=e,e!==f)if(e!==o){if(e===h&&(C--,0===C))break}else E+=O();else C++;x({type:"text",value:E})}else x({type:"text",value:"\\"+E});else x({type:"text",value:(t.keepEscaping?E:"")+O()});do{if(T=S.pop(),"root"!==T.type){T.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=S[S.length-1],t=e.nodes.indexOf(T);e.nodes.splice(t,1,...T.nodes)}}while(S.length>0);return x({type:"eos"}),b}},3349:(e,t,n)=>{"use strict";const r=n(3083);e.exports=(e,t={})=>{let n=(e,i={})=>{let o=t.escapeInvalid&&r.isInvalidBrace(i),a=!0===e.invalid&&!0===t.escapeInvalid,s="";if(e.value)return(o||a)&&r.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)s+=n(t);return s};return n(e)}},3083:(e,t)=>{"use strict";t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,n,r=1,i)=>!1!==i&&!(!t.isInteger(e)||!t.isInteger(n))&&(Number(n)-Number(e))/Number(r)>=i,t.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},t.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0),t.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges>>0!=0&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?n(i,t):void 0!==i&&t.push(i)}return t};return n(e),t}},3294:(e,t,n)=>{"use strict";const r=n(5135),i=n(3456),o=n(4954),a=n(4113),s=n(3862),c=n(4426);async function u(e,t){p(e);const n=l(e,i.default,t),r=await Promise.all(n);return c.array.flatten(r)}function l(e,t,n){const i=[].concat(e),o=new s.default(n),a=r.generate(i,o),c=new t(o);return a.map(c.read,c)}function p(e){if(![].concat(e).every((e=>c.string.isString(e)&&!c.string.isEmpty(e))))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}!function(e){e.sync=function(e,t){p(e);const n=l(e,a.default,t);return c.array.flatten(n)},e.stream=function(e,t){p(e);const n=l(e,o.default,t);return c.stream.merge(n)},e.generateTasks=function(e,t){p(e);const n=[].concat(e),i=new s.default(t);return r.generate(n,i)},e.isDynamicPattern=function(e,t){p(e);const n=new s.default(t);return c.pattern.isDynamicPattern(e,n)},e.escapePath=function(e){return p(e),c.path.escape(e)}}(u||(u={})),e.exports=u},5135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const r=n(4426);function i(e,t,n){const i=[],o=r.pattern.getPatternsOutsideCurrentDirectory(e),a=r.pattern.getPatternsInsideCurrentDirectory(e),l=s(o),p=s(a);return i.push(...c(l,t,n)),"."in p?i.push(u(".",a,t,n)):i.push(...c(p,t,n)),i}function o(e){return r.pattern.getPositivePatterns(e)}function a(e,t){return r.pattern.getNegativePatterns(e).concat(t).map(r.pattern.convertToPositivePattern)}function s(e){return e.reduce(((e,t)=>{const n=r.pattern.getBaseDirectory(t);return n in e?e[n].push(t):e[n]=[t],e}),{})}function c(e,t,n){return Object.keys(e).map((r=>u(r,e[r],t,n)))}function u(e,t,n,i){return{dynamic:i,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(r.pattern.convertToNegativePattern))}}t.generate=function(e,t){const n=o(e),s=a(e,t.ignore),c=n.filter((e=>r.pattern.isStaticPattern(e,t))),u=n.filter((e=>r.pattern.isDynamicPattern(e,t))),l=i(c,s,!1),p=i(u,s,!0);return l.concat(p)},t.convertPatternsToTasks=i,t.getPositivePatterns=o,t.getNegativePatternsAsPositive=a,t.groupPatternsByBaseDirectory=s,t.convertPatternGroupsToTasks=c,t.convertPatternGroupToTask=u},3456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9086),i=n(466);class o extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e),r=[];return new Promise(((i,o)=>{const a=this.api(t,e,n);a.once("error",o),a.on("data",(e=>r.push(n.transform(e)))),a.once("end",(()=>i(r)))}))}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}t.default=o},346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4426),i=n(7769);t.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,n){const r=this._getMatcher(t),i=this._getNegativePatternsRe(n);return t=>this._filter(e,t,r,i)}_getMatcher(e){return new i.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,n,i){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;const o=r.path.removeLeadingDotSegment(t.path);return!this._isSkippedByPositivePatterns(o,n)&&this._isSkippedByNegativePatterns(o,i)}_isSkippedByDeep(e,t){return this._settings.deep!==1/0&&this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const n=t.split("/").length;return""===e?n:n-e.split("/").length}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!r.pattern.matchAny(e,t)}}},7026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4426);t.default=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){const n=r.pattern.convertPatternsToRe(e,this._micromatchOptions),i=r.pattern.convertPatternsToRe(t,this._micromatchOptions);return e=>this._filter(e,n,i)}_filter(e,t,n){if(this._settings.unique&&this._isDuplicateEntry(e))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;if(this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;const r=this._settings.baseNameMatch?e.name:e.path,i=this._isMatchToPatterns(r,t)&&!this._isMatchToPatterns(e.path,n);return this._settings.unique&&i&&this._createIndexRecord(e),i}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return!1;const n=r.path.makeAbsolute(this._settings.cwd,e);return r.pattern.matchAny(n,t)}_isMatchToPatterns(e,t){const n=r.path.removeLeadingDotSegment(e);return r.pattern.matchAny(n,t)}}},3046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4426);t.default=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return r.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}},92:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4426);t.default=class{constructor(e,t,n){this._patterns=e,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){const e=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const t of e){const e=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(e);this._storage.push({complete:n.length<=1,pattern:t,segments:e,sections:n})}}_getPatternSegments(e){return r.pattern.getPatternParts(e,this._micromatchOptions).map((e=>r.pattern.isDynamicPattern(e,this._settings)?{dynamic:!0,pattern:e,patternRe:r.pattern.makeRe(e,this._micromatchOptions)}:{dynamic:!1,pattern:e}))}_splitSegmentsIntoSections(e){return r.array.splitWhen(e,(e=>e.dynamic&&r.pattern.hasGlobStar(e.pattern)))}}},7769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(92);class i extends r.default{match(e){const t=e.split("/"),n=t.length,r=this._storage.filter((e=>!e.complete||e.segments.length>n));for(const e of r){const r=e.sections[0];if(!e.complete&&n>r.length)return!0;if(t.every(((t,n)=>{const r=e.segments[n];return!(!r.dynamic||!r.patternRe.test(t))||!r.dynamic&&r.pattern===t})))return!0}return!1}}t.default=i},466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1017),i=n(346),o=n(7026),a=n(3046),s=n(218);t.default=class{constructor(e){this._settings=e,this.errorFilter=new a.default(this._settings),this.entryFilter=new o.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(e){return r.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t="."===e.base?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}},4954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2781),i=n(9086),o=n(466);class a extends o.default{constructor(){super(...arguments),this._reader=new i.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(t,e,n),o=new r.Readable({objectMode:!0,read:()=>{}});return i.once("error",(e=>o.emit("error",e))).on("data",(e=>o.emit("data",n.transform(e)))).once("end",(()=>o.emit("end"))),o.once("close",(()=>i.destroy())),o}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}t.default=a},4113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(112),i=n(466);class o extends i.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(e){const t=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(t,e,n).map(n.transform)}api(e,t,n){return t.dynamic?this._reader.dynamic(e,n):this._reader.static(t.patterns,n)}}t.default=o},218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4426);t.default=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;return this._settings.absolute&&(t=r.path.makeAbsolute(this._settings.cwd,t),t=r.path.unixify(t)),this._settings.markDirectories&&e.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:t}):t}}},2117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1017),i=n(6203),o=n(4426);t.default=class{constructor(e){this._settings=e,this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return r.resolve(this._settings.cwd,e)}_makeEntry(e,t){const n={name:t,path:t,dirent:o.fs.createDirentFromStats(t,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!o.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}},9086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2781),i=n(6203),o=n(5439),a=n(2117);class s extends a.default{constructor(){super(...arguments),this._walkStream=o.walkStream,this._stat=i.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const n=e.map(this._getFullEntryPath,this),i=new r.PassThrough({objectMode:!0});i._write=(r,o,a)=>this._getEntry(n[r],e[r],t).then((e=>{null!==e&&t.entryFilter(e)&&i.push(e),r===n.length-1&&i.end(),a()})).catch(a);for(let e=0;e<n.length;e++)i.write(e);return i}_getEntry(e,t,n){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(n.errorFilter(e))return null;throw e}))}_getStat(e){return new Promise(((t,n)=>{this._stat(e,this._fsStatSettings,((e,r)=>null===e?t(r):n(e)))}))}}t.default=s},112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6203),i=n(5439),o=n(2117);class a extends o.default{constructor(){super(...arguments),this._walkSync=i.walkSync,this._statSync=r.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const n=[];for(const r of e){const e=this._getFullEntryPath(r),i=this._getEntry(e,r,t);null!==i&&t.entryFilter(i)&&n.push(i)}return n}_getEntry(e,t,n){try{const n=this._getStat(e);return this._makeEntry(n,t)}catch(e){if(n.errorFilter(e))return null;throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t.default=a},3862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const r=n(7147),i=n(2037),o=Math.max(i.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync},t.default=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,o),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(e,t){return void 0===e?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}},4825:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0,t.flatten=function(e){return e.reduce(((e,t)=>[].concat(e,t)),[])},t.splitWhen=function(e,t){const n=[[]];let r=0;for(const i of e)t(i)?(r++,n[r]=[]):n[r].push(i);return n}},7843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0,t.isEnoentCodeError=function(e){return"ENOENT"===e.code}},6334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;class n{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}t.createDirentFromStats=function(e,t){return new n(e,t)}},4426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const r=n(4825);t.array=r;const i=n(7843);t.errno=i;const o=n(6334);t.fs=o;const a=n(2003);t.path=a;const s=n(57);t.pattern=s;const c=n(6242);t.stream=c;const u=n(3021);t.string=u},2003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;const r=n(1017),i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;t.unixify=function(e){return e.replace(/\\/g,"/")},t.makeAbsolute=function(e,t){return r.resolve(e,t)},t.escape=function(e){return e.replace(i,"\\$2")},t.removeLeadingDotSegment=function(e){if("."===e.charAt(0)){const t=e.charAt(1);if("/"===t||"\\"===t)return e.slice(2)}return e}},57:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const r=n(1017),i=n(7647),o=n(850),a="\\",s=/[*?]|^!/,c=/\[.*]/,u=/(?:^|[^!*+?@])\(.*\|.*\)/,l=/[!*+?@]\(.*\)/,p=/{.*(?:,|\.\.).*}/;function d(e,t={}){return!f(e,t)}function f(e,t={}){return!!(""!==e&&(!1===t.caseSensitiveMatch||e.includes(a)||s.test(e)||c.test(e)||u.test(e)||!1!==t.extglob&&l.test(e)||!1!==t.braceExpansion&&p.test(e)))}function h(e){return e.startsWith("!")&&"("!==e[1]}function v(e){return!h(e)}function g(e){return e.startsWith("..")||e.startsWith("./..")}function m(e){return e.endsWith("/**")}function _(e){return o.braces(e,{expand:!0,nodupes:!0})}function y(e,t){return o.makeRe(e,t)}t.isStaticPattern=d,t.isDynamicPattern=f,t.convertToPositivePattern=function(e){return h(e)?e.slice(1):e},t.convertToNegativePattern=function(e){return"!"+e},t.isNegativePattern=h,t.isPositivePattern=v,t.getNegativePatterns=function(e){return e.filter(h)},t.getPositivePatterns=function(e){return e.filter(v)},t.getPatternsInsideCurrentDirectory=function(e){return e.filter((e=>!g(e)))},t.getPatternsOutsideCurrentDirectory=function(e){return e.filter(g)},t.isPatternRelatedToParentDirectory=g,t.getBaseDirectory=function(e){return i(e,{flipBackslashes:!1})},t.hasGlobStar=function(e){return e.includes("**")},t.endsWithSlashGlobStar=m,t.isAffectDepthOfReadingPattern=function(e){const t=r.basename(e);return m(e)||d(t)},t.expandPatternsWithBraceExpansion=function(e){return e.reduce(((e,t)=>e.concat(_(t))),[])},t.expandBraceExpansion=_,t.getPatternParts=function(e,t){let{parts:n}=o.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return 0===n.length&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n},t.makeRe=y,t.convertPatternsToRe=function(e,t){return e.map((e=>y(e,t)))},t.matchAny=function(e,t){return t.some((t=>t.test(e)))}},6242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;const r=n(155);function i(e){e.forEach((e=>e.emit("close")))}t.merge=function(e){const t=r(e);return e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))})),t.once("close",(()=>i(e))),t.once("end",(()=>i(e))),t}},3021:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0,t.isString=function(e){return"string"==typeof e},t.isEmpty=function(e){return""===e}},373:(e,t,n)=>{"use strict";var r=n(3650);function i(){}function o(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var r=e.callback,o=e.errorHandler,a=e.value;e.value=null,e.callback=i,e.errorHandler&&o(t,a),r.call(e.context,t,n),e.release(e)}}e.exports=function(e,t,n){if("function"==typeof e&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var a=r(o),s=null,c=null,u=0,l=null,p={push:function(n,r){var o=a.get();o.context=e,o.release=d,o.value=n,o.callback=r||i,o.errorHandler=l,u===p.concurrency||p.paused?c?(c.next=o,c=o):(s=o,c=o,p.saturated()):(u++,t.call(e,o.value,o.worked))},drain:i,saturated:i,pause:function(){p.paused=!0},paused:!1,concurrency:n,running:function(){return u},resume:function(){if(p.paused){p.paused=!1;for(var e=0;e<p.concurrency;e++)u++,d()}},idle:function(){return 0===u&&0===p.length()},length:function(){for(var e=s,t=0;e;)e=e.next,t++;return t},getQueue:function(){for(var e=s,t=[];e;)t.push(e.value),e=e.next;return t},unshift:function(n,r){var o=a.get();o.context=e,o.release=d,o.value=n,o.callback=r||i,u===p.concurrency||p.paused?s?(o.next=s,s=o):(s=o,c=o,p.saturated()):(u++,t.call(e,o.value,o.worked))},empty:i,kill:function(){s=null,c=null,p.drain=i},killAndDrain:function(){s=null,c=null,p.drain(),p.drain=i},error:function(e){l=e}};return p;function d(n){n&&a.release(n);var r=s;r?p.paused?u--:(c===s&&(c=null),s=r.next,r.next=null,t.call(e,r.value,r.worked),null===c&&p.empty()):0==--u&&p.drain()}}},2664:(e,t,n)=>{"use strict";const r=n(3837),i=n(5702),o=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),a=e=>"number"==typeof e||"string"==typeof e&&""!==e,s=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},u=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},l=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},p=(e,t,n,r)=>{if(n)return i(e,t,{wrap:!1,...r});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},d=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return i(e,t,n)},f=(...e)=>new RangeError("Invalid range arguments: "+r.inspect(...e)),h=(e,t,n)=>{if(!0===n.strictRanges)throw f([e,t]);return[]},v=(e,t,n,r={})=>{if(null==t&&a(e))return[e];if(!a(e)||!a(t))return h(e,t,r);if("function"==typeof n)return v(e,t,1,{transform:n});if(o(n))return v(e,t,0,n);let i={...r};return!0===i.capture&&(i.wrap=!0),n=n||i.step||1,s(n)?s(e)&&s(t)?((e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(!0===r.strictRanges)throw f([e,t]);return[]}0===i&&(i=0),0===o&&(o=0);let a=i>o,s=String(e),h=String(t),v=String(n);n=Math.max(Math.abs(n),1);let g=c(s)||c(h)||c(v),m=g?Math.max(s.length,h.length,v.length):0,_=!1===g&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,r),y=r.transform||(e=>t=>!0===e?Number(t):String(t))(_);if(r.toRegex&&1===n)return p(l(e,m),l(t,m),!0,r);let E={negatives:[],positives:[]},b=[],S=0;for(;a?i>=o:i<=o;)!0===r.toRegex&&n>1?E[(T=i)<0?"negatives":"positives"].push(Math.abs(T)):b.push(u(y(i,S),m,_)),i=a?i-n:i+n,S++;var T;return!0===r.toRegex?n>1?((e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n,r=t.capture?"":"?:",i="",o="";return e.positives.length&&(i=e.positives.join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.join("|")})`),n=i&&o?`${i}|${o}`:i||o,t.wrap?`(${r}${n})`:n})(E,r):d(b,null,{wrap:!1,...r}):b})(e,t,n,i):((e,t,n=1,r={})=>{if(!s(e)&&e.length>1||!s(t)&&t.length>1)return h(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),o=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),c=o>a,u=Math.min(o,a),l=Math.max(o,a);if(r.toRegex&&1===n)return p(u,l,!1,r);let f=[],v=0;for(;c?o>=a:o<=a;)f.push(i(o,v)),o=c?o-n:o+n,v++;return!0===r.toRegex?d(f,null,{wrap:!1,options:r}):f})(e,t,Math.max(Math.abs(n),1),i):null==n||o(n)?v(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,i)};e.exports=v},7647:(e,t,n)=>{"use strict";var r=n(9535),i=n(1017).posix.dirname,o="win32"===n(2037).platform(),a=/\\/g,s=/[\{\[].*[\}\]]$/,c=/(^|[^\\])([\{\[]|\([^\)]+$)/,u=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&o&&e.indexOf("/")<0&&(e=e.replace(a,"/")),s.test(e)&&(e+="/"),e+="a";do{e=i(e)}while(r(e)||c.test(e));return e.replace(u,"$1")}},9535:(e,t,n)=>{var r=n(2428),i={"{":"}","(":")","[":"]"},o=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,a=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;e.exports=function(e,t){if("string"!=typeof e||""===e)return!1;if(r(e))return!0;var n,s=o;for(t&&!1===t.strict&&(s=a);n=s.exec(e);){if(n[2])return!0;var c=n.index+n[0].length,u=n[1],l=u?i[u]:null;if(u&&l){var p=e.indexOf(l,c);-1!==p&&(c=p+1)}e=e.slice(c)}return!1}},2428:e=>{e.exports=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}},9924:e=>{"use strict";e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},155:(e,t,n)=>{"use strict";const r=n(2781).PassThrough,i=Array.prototype.slice;function o(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=o(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(r(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}e.exports=function(){const e=[],t=i.call(arguments);let n=!1,a=t[t.length-1];a&&!Array.isArray(a)&&null==a.pipe?t.pop():a={};const s=!1!==a.end,c=!0===a.pipeError;null==a.objectMode&&(a.objectMode=!0),null==a.highWaterMark&&(a.highWaterMark=65536);const u=r(a);function l(){for(let t=0,n=arguments.length;t<n;t++)e.push(o(arguments[t],a));return p(),this}function p(){if(n)return;n=!0;let t=e.shift();if(!t)return void process.nextTick(d);Array.isArray(t)||(t=[t]);let r=t.length+1;function i(){--r>0||(n=!1,p())}function o(e){function t(){e.removeListener("merge2UnpipeEnd",t),e.removeListener("end",t),c&&e.removeListener("error",n),i()}function n(e){u.emit("error",e)}if(e._readableState.endEmitted)return i();e.on("merge2UnpipeEnd",t),e.on("end",t),c&&e.on("error",n),e.pipe(u,{end:!1}),e.resume()}for(let e=0;e<t.length;e++)o(t[e]);i()}function d(){n=!1,u.emit("queueDrain"),s&&u.end()}return u.setMaxListeners(0),u.add=l,u.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")})),t.length&&l.apply(null,t),u}},850:(e,t,n)=>{"use strict";const r=n(3837),i=n(6744),o=n(4812),a=n(3776),s=e=>""===e||"./"===e,c=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,a=new Set,s=0,c=e=>{a.add(e.output),n&&n.onResult&&n.onResult(e)};for(let a=0;a<t.length;a++){let u=o(String(t[a]),{...n,onResult:c},!0),l=u.state.negated||u.state.negatedExtglob;l&&s++;for(let t of e){let e=u(t,!0);(l?!e.isMatch:e.isMatch)&&(l?r.add(e.output):(r.delete(e.output),i.add(e.output)))}}let u=(s===t.length?[...a]:[...i]).filter((e=>!r.has(e)));if(n&&0===u.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return u};c.match=c,c.matcher=(e,t)=>o(e,t),c.any=c.isMatch=(e,t,n)=>o(t,n)(e),c.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],o=c(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),i.push(e.output)}});for(let e of i)o.includes(e)||r.add(e);return[...r]},c.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${r.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>c.contains(e,t,n)));if("string"==typeof t){if(s(e)||s(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...n,contains:!0})},c.matchKeys=(e,t,n)=>{if(!a.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=c(Object.keys(e),t,n),i={};for(let t of r)i[t]=e[t];return i},c.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(r.some((e=>t(e))))return!0}return!1},c.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),n);if(!r.every((e=>t(e))))return!1}return!0},c.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${r.inspect(e)}"`);return[].concat(t).every((t=>o(t,n)(e)))},c.capture=(e,t,n)=>{let r=a.isWindows(n),i=o.makeRe(String(e),{...n,capture:!0}).exec(r?a.toPosixSlashes(t):t);if(i)return i.slice(1).map((e=>void 0===e?"":e))},c.makeRe=(...e)=>o.makeRe(...e),c.scan=(...e)=>o.scan(...e),c.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of i(String(r),t))n.push(o.parse(e,t));return n},c.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:i(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},e.exports=c},4812:(e,t,n)=>{"use strict";e.exports=n(1062)},8056:(e,t,n)=>{"use strict";const r=n(1017),i="\\\\/",o=`[^${i}]`,a="\\.",s="\\/",c="[^/]",u=`(?:${s}|$)`,l=`(?:^|${s})`,p=`${a}{1,2}${u}`,d={DOT_LITERAL:a,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:s,ONE_CHAR:"(?=.)",QMARK:c,END_ANCHOR:u,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${l}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${u})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${s}]`,STAR:`${c}*?`,START_ANCHOR:l},f={...d,SLASH_LITERAL:`[${i}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${a}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${i}])${a}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?f:d}},9530:(e,t,n)=>{"use strict";const r=n(8056),i=n(3776),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=r,l=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>i.escapeRegex(e))).join("..")}return n},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=u[e]||e;const n={...t},d="number"==typeof n.maxLength?Math.min(o,n.maxLength):o;let f=e.length;if(f>d)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${d}`);const h={type:"bos",value:"",output:n.prepend||""},v=[h],g=n.capture?"":"?:",m=i.isWindows(t),_=r.globChars(m),y=r.extglobChars(_),{DOT_LITERAL:E,PLUS_LITERAL:b,SLASH_LITERAL:S,ONE_CHAR:T,DOTS_SLASH:P,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:A,QMARK:I,QMARK_NO_DOT:O,STAR:x,START_ANCHOR:R}=_,N=e=>`(${g}(?:(?!${R}${e.dot?P:E}).)*?)`,D=n.dot?"":C,k=n.dot?I:O;let M=!0===n.bash?N(n):x;n.capture&&(M=`(${M})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const j={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};e=i.removePrefix(e,j),f=e.length;const L=[],F=[],B=[];let H,U=h;const V=()=>j.index===f-1,q=j.peek=(t=1)=>e[j.index+t],G=j.advance=()=>e[++j.index]||"",$=()=>e.slice(j.index+1),z=(e="",t=0)=>{j.consumed+=e,j.index+=t},W=e=>{j.output+=null!=e.output?e.output:e.value,z(e.value)},K=()=>{let e=1;for(;"!"===q()&&("("!==q(2)||"?"===q(3));)G(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},Y=e=>{j[e]++,B.push(e)},Q=e=>{j[e]--,B.pop()},X=e=>{if("globstar"===U.type){const t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||L.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=M,j.output+=U.output)}if(L.length&&"paren"!==e.type&&(L[L.length-1].inner+=e.value),(e.value||e.output)&&W(e),U&&"text"===U.type&&"text"===e.type)return U.value+=e.value,void(U.output=(U.output||"")+e.value);e.prev=U,v.push(e),U=e},J=(e,t)=>{const r={...y[t],conditions:1,inner:""};r.prev=U,r.parens=j.parens,r.output=j.output;const i=(n.capture?"(":"")+r.open;Y("parens"),X({type:e,value:t,output:j.output?"":T}),X({type:"paren",extglob:!0,value:G(),output:i}),L.push(r)},Z=e=>{let t,r=e.close+(n.capture?")":"");if("negate"===e.type){let i=M;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=N(n)),(i!==M||V()||/^\)+$/.test($()))&&(r=e.close=`)$))${i}`),e.inner.includes("*")&&(t=$())&&/^\.[^\\/.]+$/.test(t)&&(r=e.close=`)${t})${i})`),"bos"===e.prev.type&&(j.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:H,output:r}),Q("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,o=e.replace(c,((e,t,n,i,o,a)=>"\\"===i?(r=!0,e):"?"===i?t?t+i+(o?I.repeat(o.length):""):0===a?k+(o?I.repeat(o.length):""):I.repeat(n.length):"."===i?E.repeat(n.length):"*"===i?t?t+i+(o?M:""):M:t?e:`\\${e}`));return!0===r&&(o=!0===n.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),o===e&&!0===n.contains?(j.output=e,j):(j.output=i.wrapOutput(o,j,t),j)}for(;!V();){if(H=G(),"\0"===H)continue;if("\\"===H){const e=q();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){H+="\\",X({type:"text",value:H});continue}const t=/^\\+/.exec($());let r=0;if(t&&t[0].length>2&&(r=t[0].length,j.index+=r,r%2!=0&&(H+="\\")),!0===n.unescape?H=G():H+=G(),0===j.brackets){X({type:"text",value:H});continue}}if(j.brackets>0&&("]"!==H||"["===U.value||"[^"===U.value)){if(!1!==n.posix&&":"===H){const e=U.value.slice(1);if(e.includes("[")&&(U.posix=!0,e.includes(":"))){const e=U.value.lastIndexOf("["),t=U.value.slice(0,e),n=U.value.slice(e+2),r=a[n];if(r){U.value=t+r,j.backtrack=!0,G(),h.output||1!==v.indexOf(U)||(h.output=T);continue}}}("["===H&&":"!==q()||"-"===H&&"]"===q())&&(H=`\\${H}`),"]"!==H||"["!==U.value&&"[^"!==U.value||(H=`\\${H}`),!0===n.posix&&"!"===H&&"["===U.value&&(H="^"),U.value+=H,W({value:H});continue}if(1===j.quotes&&'"'!==H){H=i.escapeRegex(H),U.value+=H,W({value:H});continue}if('"'===H){j.quotes=1===j.quotes?0:1,!0===n.keepQuotes&&X({type:"text",value:H});continue}if("("===H){Y("parens"),X({type:"paren",value:H});continue}if(")"===H){if(0===j.parens&&!0===n.strictBrackets)throw new SyntaxError(p("opening","("));const e=L[L.length-1];if(e&&j.parens===e.parens+1){Z(L.pop());continue}X({type:"paren",value:H,output:j.parens?")":"\\)"}),Q("parens");continue}if("["===H){if(!0!==n.nobracket&&$().includes("]"))Y("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));H=`\\${H}`}X({type:"bracket",value:H});continue}if("]"===H){if(!0===n.nobracket||U&&"bracket"===U.type&&1===U.value.length){X({type:"text",value:H,output:`\\${H}`});continue}if(0===j.brackets){if(!0===n.strictBrackets)throw new SyntaxError(p("opening","["));X({type:"text",value:H,output:`\\${H}`});continue}Q("brackets");const e=U.value.slice(1);if(!0===U.posix||"^"!==e[0]||e.includes("/")||(H=`/${H}`),U.value+=H,W({value:H}),!1===n.literalBrackets||i.hasRegexChars(e))continue;const t=i.escapeRegex(U.value);if(j.output=j.output.slice(0,-U.value.length),!0===n.literalBrackets){j.output+=t,U.value=t;continue}U.value=`(${g}${t}|${U.value})`,j.output+=U.value;continue}if("{"===H&&!0!==n.nobrace){Y("braces");const e={type:"brace",value:H,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};F.push(e),X(e);continue}if("}"===H){const e=F[F.length-1];if(!0===n.nobrace||!e){X({type:"text",value:H,output:H});continue}let t=")";if(!0===e.dots){const e=v.slice(),r=[];for(let t=e.length-1;t>=0&&(v.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=l(r,n),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);e.value=e.output="\\{",H=t="\\}",j.output=n;for(const e of r)j.output+=e.output||e.value}X({type:"brace",value:H,output:t}),Q("braces"),F.pop();continue}if("|"===H){L.length>0&&L[L.length-1].conditions++,X({type:"text",value:H});continue}if(","===H){let e=H;const t=F[F.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),X({type:"comma",value:H,output:e});continue}if("/"===H){if("dot"===U.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",v.pop(),U=h;continue}X({type:"slash",value:H,output:S});continue}if("."===H){if(j.braces>0&&"dot"===U.type){"."===U.value&&(U.output=E);const e=F[F.length-1];U.type="dots",U.output+=H,U.value+=H,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==U.type&&"slash"!==U.type){X({type:"text",value:H,output:E});continue}X({type:"dot",value:H,output:E});continue}if("?"===H){if((!U||"("!==U.value)&&!0!==n.noextglob&&"("===q()&&"?"!==q(2)){J("qmark",H);continue}if(U&&"paren"===U.type){const e=q();let t=H;if("<"===e&&!i.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===U.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test($()))&&(t=`\\${H}`),X({type:"text",value:H,output:t});continue}if(!0!==n.dot&&("slash"===U.type||"bos"===U.type)){X({type:"qmark",value:H,output:O});continue}X({type:"qmark",value:H,output:I});continue}if("!"===H){if(!0!==n.noextglob&&"("===q()&&("?"!==q(2)||!/[!=<:]/.test(q(3)))){J("negate",H);continue}if(!0!==n.nonegate&&0===j.index){K();continue}}if("+"===H){if(!0!==n.noextglob&&"("===q()&&"?"!==q(2)){J("plus",H);continue}if(U&&"("===U.value||!1===n.regex){X({type:"plus",value:H,output:b});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||j.parens>0){X({type:"plus",value:H});continue}X({type:"plus",value:b});continue}if("@"===H){if(!0!==n.noextglob&&"("===q()&&"?"!==q(2)){X({type:"at",extglob:!0,value:H,output:""});continue}X({type:"text",value:H});continue}if("*"!==H){"$"!==H&&"^"!==H||(H=`\\${H}`);const e=s.exec($());e&&(H+=e[0],j.index+=e[0].length),X({type:"text",value:H});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=H,U.output=M,j.backtrack=!0,j.globstar=!0,z(H);continue}let t=$();if(!0!==n.noextglob&&/^\([^?]/.test(t)){J("star",H);continue}if("star"===U.type){if(!0===n.noglobstar){z(H);continue}const r=U.prev,i=r.prev,o="slash"===r.type||"bos"===r.type,a=i&&("star"===i.type||"globstar"===i.type);if(!0===n.bash&&(!o||t[0]&&"/"!==t[0])){X({type:"star",value:H,output:""});continue}const s=j.braces>0&&("comma"===r.type||"brace"===r.type),c=L.length&&("pipe"===r.type||"paren"===r.type);if(!o&&"paren"!==r.type&&!s&&!c){X({type:"star",value:H,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[j.index+4];if(n&&"/"!==n)break;t=t.slice(3),z("/**",3)}if("bos"===r.type&&V()){U.type="globstar",U.value+=H,U.output=N(n),j.output=U.output,j.globstar=!0,z(H);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!a&&V()){j.output=j.output.slice(0,-(r.output+U.output).length),r.output=`(?:${r.output}`,U.type="globstar",U.output=N(n)+(n.strictSlashes?")":"|$)"),U.value+=H,j.globstar=!0,j.output+=r.output+U.output,z(H);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";j.output=j.output.slice(0,-(r.output+U.output).length),r.output=`(?:${r.output}`,U.type="globstar",U.output=`${N(n)}${S}|${S}${e})`,U.value+=H,j.output+=r.output+U.output,j.globstar=!0,z(H+G()),X({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){U.type="globstar",U.value+=H,U.output=`(?:^|${S}|${N(n)}${S})`,j.output=U.output,j.globstar=!0,z(H+G()),X({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-U.output.length),U.type="globstar",U.output=N(n),U.value+=H,j.output+=U.output,j.globstar=!0,z(H);continue}const r={type:"star",value:H,output:M};!0!==n.bash?!U||"bracket"!==U.type&&"paren"!==U.type||!0!==n.regex?(j.index!==j.start&&"slash"!==U.type&&"dot"!==U.type||("dot"===U.type?(j.output+=w,U.output+=w):!0===n.dot?(j.output+=A,U.output+=A):(j.output+=D,U.output+=D),"*"!==q()&&(j.output+=T,U.output+=T)),X(r)):(r.output=H,X(r)):(r.output=".*?","bos"!==U.type&&"slash"!==U.type||(r.output=D+r.output),X(r))}for(;j.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));j.output=i.escapeLast(j.output,"["),Q("brackets")}for(;j.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing",")"));j.output=i.escapeLast(j.output,"("),Q("parens")}for(;j.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","}"));j.output=i.escapeLast(j.output,"{"),Q("braces")}if(!0===n.strictSlashes||"star"!==U.type&&"bracket"!==U.type||X({type:"maybe_slash",value:"",output:`${S}?`}),!0===j.backtrack){j.output="";for(const e of j.tokens)j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix)}return j};d.fastpaths=(e,t)=>{const n={...t},a="number"==typeof n.maxLength?Math.min(o,n.maxLength):o,s=e.length;if(s>a)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${a}`);e=u[e]||e;const c=i.isWindows(t),{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOTS:v,NO_DOTS_SLASH:g,STAR:m,START_ANCHOR:_}=r.globChars(c),y=n.dot?v:h,E=n.dot?g:h,b=n.capture?"":"?:";let S=!0===n.bash?".*?":m;n.capture&&(S=`(${S})`);const T=e=>!0===e.noglobstar?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,P=e=>{switch(e){case"*":return`${y}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${y}${S}${l}${d}${S}`;case"*/*":return`${y}${S}${p}${d}${E}${S}`;case"**":return y+T(n);case"**/*":return`(?:${y}${T(n)}${p})?${E}${d}${S}`;case"**/*.*":return`(?:${y}${T(n)}${p})?${E}${S}${l}${d}${S}`;case"**/.*":return`(?:${y}${T(n)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=P(t[1]);if(!n)return;return n+l+t[2]}}},C=i.removePrefix(e,{negated:!1,prefix:""});let w=P(C);return w&&!0!==n.strictSlashes&&(w+=`${p}?`),w},e.exports=d},1062:(e,t,n)=>{"use strict";const r=n(1017),i=n(5567),o=n(9530),a=n(3776),s=n(8056),c=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map((e=>c(e,t,n))),i=e=>{for(const t of r){const n=t(e);if(n)return n}return!1};return i}const r=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},s=a.isWindows(t),u=r?c.compileRe(e,t):c.makeRe(e,t,!1,!0),l=u.state;delete u.state;let p=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};p=c(o.ignore,e,n)}const d=(n,r=!1)=>{const{isMatch:i,match:a,output:d}=c.test(n,u,t,{glob:e,posix:s}),f={glob:e,state:l,regex:u,posix:s,input:n,output:d,match:a,isMatch:i};return"function"==typeof o.onResult&&o.onResult(f),!1===i?(f.isMatch=!1,!!r&&f):p(n)?("function"==typeof o.onIgnore&&o.onIgnore(f),f.isMatch=!1,!!r&&f):("function"==typeof o.onMatch&&o.onMatch(f),!r||f)};return n&&(d.state=l),d};c.test=(e,t,n,{glob:r,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=n||{},s=o.format||(i?a.toPosixSlashes:null);let u=e===r,l=u&&s?s(e):e;return!1===u&&(l=s?s(e):e,u=l===r),!1!==u&&!0!==o.capture||(u=!0===o.matchBase||!0===o.basename?c.matchBase(e,t,n,i):t.exec(l)),{isMatch:Boolean(u),match:u,output:l}},c.matchBase=(e,t,n,i=a.isWindows(n))=>(t instanceof RegExp?t:c.makeRe(t,n)).test(r.basename(e)),c.isMatch=(e,t,n)=>c(t,n)(e),c.parse=(e,t)=>Array.isArray(e)?e.map((e=>c.parse(e,t))):o(e,{...t,fastpaths:!1}),c.scan=(e,t)=>i(e,t),c.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const i=t||{},o=i.contains?"":"^",a=i.contains?"":"$";let s=`${o}(?:${e.output})${a}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const u=c.toRegex(s,t);return!0===r&&(u.state=e),u},c.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=o.fastpaths(e,t)),i.output||(i=o(e,t)),c.compileRe(i,t,n,r)},c.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},c.constants=s,e.exports=c},5567:(e,t,n)=>{"use strict";const r=n(3776),{CHAR_ASTERISK:i,CHAR_AT:o,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:s,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:v,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:_}=n(8056),y=e=>e===l||e===a,E=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},b=e.length-1,S=!0===n.parts||!0===n.scanToEnd,T=[],P=[],C=[];let w,A,I=e,O=-1,x=0,R=0,N=!1,D=!1,k=!1,M=!1,j=!1,L=!1,F=!1,B=!1,H=!1,U=!1,V=0,q={value:"",depth:0,isGlob:!1};const G=()=>O>=b,$=()=>(w=A,I.charCodeAt(++O));for(;O<b;){let e;if(A=$(),A!==a){if(!0===L||A===p){for(V++;!0!==G()&&(A=$());)if(A!==a)if(A!==p){if(!0!==L&&A===c&&(A=$())===c){if(N=q.isBrace=!0,k=q.isGlob=!0,U=!0,!0===S)continue;break}if(!0!==L&&A===s){if(N=q.isBrace=!0,k=q.isGlob=!0,U=!0,!0===S)continue;break}if(A===g&&(V--,0===V)){L=!1,N=q.isBrace=!0,U=!0;break}}else V++;else F=q.backslashes=!0,$();if(!0===S)continue;break}if(A!==l){if(!0!==n.noext&&!0==(A===h||A===o||A===i||A===v||A===u)&&I.charCodeAt(O+1)===d){if(k=q.isGlob=!0,M=q.isExtglob=!0,U=!0,A===u&&O===x&&(H=!0),!0===S){for(;!0!==G()&&(A=$());)if(A!==a){if(A===m){k=q.isGlob=!0,U=!0;break}}else F=q.backslashes=!0,A=$();continue}break}if(A===i){if(w===i&&(j=q.isGlobstar=!0),k=q.isGlob=!0,U=!0,!0===S)continue;break}if(A===v){if(k=q.isGlob=!0,U=!0,!0===S)continue;break}if(A===f){for(;!0!==G()&&(e=$());)if(e!==a){if(e===_){D=q.isBracket=!0,k=q.isGlob=!0,U=!0;break}}else F=q.backslashes=!0,$();if(!0===S)continue;break}if(!0===n.nonegate||A!==u||O!==x){if(!0!==n.noparen&&A===d){if(k=q.isGlob=!0,!0===S){for(;!0!==G()&&(A=$());)if(A!==d){if(A===m){U=!0;break}}else F=q.backslashes=!0,A=$();continue}break}if(!0===k){if(U=!0,!0===S)continue;break}}else B=q.negated=!0,x++}else{if(T.push(O),P.push(q),q={value:"",depth:0,isGlob:!1},!0===U)continue;if(w===c&&O===x+1){x+=2;continue}R=O+1}}else F=q.backslashes=!0,A=$(),A===p&&(L=!0)}!0===n.noext&&(M=!1,k=!1);let z=I,W="",K="";x>0&&(W=I.slice(0,x),I=I.slice(x),R-=x),z&&!0===k&&R>0?(z=I.slice(0,R),K=I.slice(R)):!0===k?(z="",K=I):z=I,z&&""!==z&&"/"!==z&&z!==I&&y(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),!0===n.unescape&&(K&&(K=r.removeBackslashes(K)),z&&!0===F&&(z=r.removeBackslashes(z)));const Y={prefix:W,input:e,start:x,base:z,glob:K,isBrace:N,isBracket:D,isGlob:k,isExtglob:M,isGlobstar:j,negated:B,negatedExtglob:H};if(!0===n.tokens&&(Y.maxDepth=0,y(A)||P.push(q),Y.tokens=P),!0===n.parts||!0===n.tokens){let t;for(let r=0;r<T.length;r++){const i=t?t+1:x,o=T[r],a=e.slice(i,o);n.tokens&&(0===r&&0!==x?(P[r].isPrefix=!0,P[r].value=W):P[r].value=a,E(P[r]),Y.maxDepth+=P[r].depth),0===r&&""===a||C.push(a),t=o}if(t&&t+1<e.length){const r=e.slice(t+1);C.push(r),n.tokens&&(P[P.length-1].value=r,E(P[P.length-1]),Y.maxDepth+=P[P.length-1].depth)}Y.slashes=T,Y.parts=C}return Y}},3776:(e,t,n)=>{"use strict";const r=n(1017),i="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:c}=n(8056);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(c,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(a,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===r.sep,t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,n,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}},3650:e=>{"use strict";e.exports=function(e){var t=new e,n=t;return{get:function(){var r=t;return r.next?t=r.next:(t=new e,n=t),r.next=null,r},release:function(e){n.next=e,n=e}}}},4595:e=>{e.exports=function(e,t){var n,r,i,o=!0;function a(e){function r(){t&&t(e,n),t=null}o?process.nextTick(r):r()}function s(e,t,i){n[e]=i,(0==--r||t)&&a(t)}Array.isArray(e)?(n=[],r=e.length):(i=Object.keys(e),n={},r=i.length),r?i?i.forEach((function(t){e[t]((function(e,n){s(t,e,n)}))})):e.forEach((function(e,t){e((function(e,n){s(t,e,n)}))})):a(null),o=!1}},5702:(e,t,n)=>{"use strict";const r=n(9924),i=(e,t,n)=>{if(!1===r(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===r(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...n};"boolean"==typeof o.strictZeros&&(o.relaxZeros=!1===o.strictZeros);let c=e+":"+t+"="+String(o.relaxZeros)+String(o.shorthand)+String(o.capture)+String(o.wrap);if(i.cache.hasOwnProperty(c))return i.cache[c].result;let u=Math.min(e,t),l=Math.max(e,t);if(1===Math.abs(u-l)){let n=e+"|"+t;return o.capture?`(${n})`:!1===o.wrap?n:`(?:${n})`}let p=f(e)||f(t),d={min:e,max:t,a:u,b:l},h=[],v=[];return p&&(d.isPadded=p,d.maxLen=String(d.max).length),u<0&&(v=a(l<0?Math.abs(l):1,Math.abs(u),d,o),u=d.a=0),l>=0&&(h=a(u,l,d,o)),d.negatives=v,d.positives=h,d.result=function(e,t,n){let r=s(e,t,"-",!1)||[],i=s(t,e,"",!1)||[],o=s(e,t,"-?",!0)||[];return r.concat(o).concat(i).join("|")}(v,h),!0===o.capture?d.result=`(${d.result})`:!1!==o.wrap&&h.length+v.length>1&&(d.result=`(?:${d.result})`),i.cache[c]=d,d.result};function o(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}(e,t),i=r.length,o="",a=0;for(let e=0;e<i;e++){let[t,n]=r[e];t===n?o+=t:"0"!==t||"9"!==n?o+=`[${s=t}${(c=n)-s==1?"":"-"}${c}]`:a++}var s,c;return a&&(o+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:o,count:[a],digits:i}}function a(e,t,n,r){let i,a=function(e,t){let n=1,r=1,i=l(e,n),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),n+=1,i=l(e,n);for(i=p(t+1,r)-1;e<i&&i<=t;)o.add(i),r+=1,i=p(t+1,r)-1;return o=[...o],o.sort(c),o}(e,t),s=[],u=e;for(let e=0;e<a.length;e++){let t=a[e],c=o(String(u),String(t),r),l="";n.isPadded||!i||i.pattern!==c.pattern?(n.isPadded&&(l=h(t,n,r)),c.string=l+c.pattern+d(c.count),s.push(c),u=t+1,i=c):(i.count.length>1&&i.count.pop(),i.count.push(c.count[0]),i.string=i.pattern+d(i.count),u=t+1)}return s}function s(e,t,n,r,i){let o=[];for(let i of e){let{string:e}=i;r||u(t,"string",e)||o.push(n+e),r&&u(t,"string",e)&&o.push(n+e)}return o}function c(e,t){return e>t?1:t>e?-1:0}function u(e,t,n){return e.some((e=>e[t]===n))}function l(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function p(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function f(e){return/^-?(0+)\d/.test(e)}function h(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}i.cache={},i.clearCache=()=>i.cache={},e.exports=i},3403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,u=n(1017),l=n(7147),p=Object.prototype.toString;function d(e){return void 0!==e}function f(e){return"[object String]"===p.call(e)}function h(e){return JSON.parse(l.readFileSync(e,"utf8"))}function v(e,t){return c&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0],i=t[r],o=e;return"string"==typeof i?o=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(o=String(i)),o}))}function g(e){return function(t,n){for(var r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return r=t,"[object Number]"===p.call(r)?t>=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):v(e[t],i):f(n)?(console.warn("Message "+n+" didn't get externalized correctly."),v(n,i)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function m(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return v(t,n)}function _(e,t){return a[e]=t,t}function y(e){try{return function(e){var t=h(u.join(e,"nls.metadata.json")),n=Object.create(null);for(var r in t){var i=t[r];n[r]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function E(e,t){var n;if(!0===s.languagePackSupport&&void 0!==s.cacheRoot&&void 0!==s.languagePackId&&void 0!==s.translationsConfigFile&&void 0!==s.translationsConfig)try{n=function(e,t){var n,r,i,o=u.join(s.cacheRoot,e.id+"-"+e.hash+".json"),a=!1,c=!1;try{return n=JSON.parse(l.readFileSync(o,{encoding:"utf8",flag:"r"})),r=o,i=new Date,l.utimes(r,i,i,(function(){})),n}catch(e){if("ENOENT"===e.code)c=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),l.unlink(o,(function(e){e&&console.error("Deleting corrupted bundle "+o+" failed.")})),a=!0}}if(n=function(e,t){var n=s.translationsConfig[e.id];if(n){var r=h(n).contents,i=h(u.join(t,"nls.metadata.json")),o=Object.create(null);for(var a in i){var c=i[a],l=r[e.outDir+"/"+a];if(l){for(var p=[],d=0;d<c.keys.length;d++){var v=c.keys[d],g=l[f(v)?v:v.key];void 0===g&&(g=c.messages[d]),p.push(g)}o[a]=p}else o[a]=c.messages}return o}}(e,t),!n||a)return n;if(c)try{l.writeFileSync(o,JSON.stringify(n),{encoding:"utf8",flag:"wx"})}catch(e){if("EEXIST"===e.code)return n;throw e}return n}(e,t)}catch(e){console.log("Load or create bundle failed ",e)}if(!n){if(s.languagePackSupport)return y(t);var r=function(e){for(var t=s.language;t;){var n=u.join(e,"nls.bundle."+t+".json");if(l.existsSync(n))return n;var r=t.lastIndexOf("-");t=r>0?t.substring(0,r):void 0}if(void 0===t&&(n=u.join(e,"nls.bundle.json"),l.existsSync(n)))return n}(t);if(r)try{return h(r)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=y(t)}return n}function b(e){if(!e)return m;var t=u.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),s.messageFormat===r.both||s.messageFormat===r.bundle){var n=function(e){for(var t,n=u.dirname(e);t=u.join(n,"nls.metadata.header.json"),!l.existsSync(t);){var r=u.dirname(n);if(r===n){t=void 0;break}n=r}return t}(e);if(n){var i=u.dirname(n),o=a[i];if(void 0===o)try{var p=JSON.parse(l.readFileSync(n,"utf8"));try{var f=E(p,i);o=_(i,f?{header:p,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),o=_(i,null)}}catch(e){console.error("Failed to read header file",e),o=_(i,null)}if(o){var v=e.substr(i.length+1).replace(/\\/g,"/"),y=o.nlsBundle[v];return void 0===y?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):g(y)}}}if(s.messageFormat===r.both||s.messageFormat===r.file)try{var b=h(function(e){var t;if(s.cacheLanguageResolution&&t);else{if(c||!s.language)t=".nls.json";else for(var n=s.language;n;){var r=".nls."+n+".json";if(l.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}s.cacheLanguageResolution}return e+t}(e));return Array.isArray(b)?g(b):d(b.messages)&&d(b.keys)?g(b.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}!function(e){e.file="file",e.bundle="bundle",e.both="both"}(r=t.MessageFormat||(t.MessageFormat={})),function(e){e.standalone="standalone",e.languagePack="languagePack"}(i=t.BundleFormat||(t.BundleFormat={})),function(e){e.is=function(e){var t=e;return t&&d(t.key)&&d(t.comment)}}(o||(o={})),function(){if(s={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:r.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(s.locale=e.locale.toLowerCase()),void 0===t?s.language=s.locale:"en"!==t&&(s.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(s.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(s.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(s.languagePackId=e._languagePackId),f(e._translationsConfigFile)){s.translationsConfigFile=e._translationsConfigFile;try{s.translationsConfig=h(s.translationsConfigFile)}catch(t){e._corruptedFile&&l.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}}}catch(e){}c="pseudo"===s.locale,a=Object.create(null)}(),t.loadMessageBundle=b,t.config=function(e){return e&&(f(e.locale)&&(s.locale=e.locale.toLowerCase(),s.language=s.locale,a=Object.create(null)),void 0!==e.messageFormat&&(s.messageFormat=e.messageFormat),e.bundleFormat===i.standalone&&!0===s.languagePackSupport&&(s.languagePackSupport=!1)),c="pseudo"===s.locale,b}},9644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>se,BaseCore:()=>le,BaseTelemetryPlugin:()=>Te.i,CoreUtils:()=>re,DiagnosticLogger:()=>v.AQ,ESPromise:()=>he,ESPromiseScheduler:()=>Ee,EventHelper:()=>P.zB,EventLatency:()=>u,EventPersistence:()=>p,EventPropertyType:()=>l,EventsDiscardedReason:()=>we.h,FullVersionString:()=>x,InternalAppInsightsCore:()=>_.F,InternalBaseCore:()=>ce.A,LoggingSeverity:()=>s.X,MinChannelPriorty:()=>Ce.p,NotificationManager:()=>Se.f,PerfEvent:()=>g.zn,PerfManager:()=>g.Jk,ProcessTelemetryContext:()=>Pe.Vi,TraceLevel:()=>d,Undefined:()=>C.jA,Utils:()=>ne,ValueKind:()=>c,ValueSanitizer:()=>be,Version:()=>O,_ExtendedInternalMessageId:()=>f,_InternalLogMessage:()=>v.lQ,_InternalMessageId:()=>s.v,__getRegisteredEvents:()=>w.um,_logInternalMessage:()=>v.L4,_throwInternal:()=>v.kP,_warnToConsole:()=>v.jV,addEventHandler:()=>w.Ib,addEventListeners:()=>w.yw,addPageHideEventListener:()=>w.TJ,addPageShowEventListener:()=>w.nD,addPageUnloadEventListener:()=>w.c9,areCookiesSupported:()=>T.p7,arrForEach:()=>a.tO,arrIndexOf:()=>a.UA,arrMap:()=>a.Mr,arrReduce:()=>a.Xz,attachEvent:()=>w.pZ,cookieAvailable:()=>T.p7,createCookieMgr:()=>T.Nz,createEnumStyle:()=>o.By,createGuid:()=>Y,createProcessTelemetryContext:()=>Pe.CD,createTraceParent:()=>Oe.SU,createUniqueNamespace:()=>Ae.J,createUnloadHandlerContainer:()=>Ie.Y,dateNow:()=>a.m6,deleteCookie:()=>z,detachEvent:()=>w.pD,disableCookies:()=>G,disallowsSameSiteNone:()=>T.UY,doPerf:()=>g.Lm,dumpObj:()=>m.eU,eventOff:()=>w.QY,eventOn:()=>w.XO,extend:()=>Q,findW3cTraceParent:()=>Oe.lq,formatTraceParent:()=>Oe.aR,generateW3CId:()=>P.DO,getCommonSchemaMetaData:()=>q,getConsole:()=>m.dr,getCookie:()=>W,getCookieValue:()=>K,getCrypto:()=>m.MX,getDocument:()=>m.Me,getExceptionName:()=>a.jj,getFieldValueType:()=>te,getGlobal:()=>I.Rd,getGlobalInst:()=>m.a8,getHistory:()=>m.s1,getIEVersion:()=>m.sA,getISOString:()=>a.Y6,getJSON:()=>m.xA,getLocation:()=>m.k$,getMsCrypto:()=>m.gz,getNavigator:()=>m.jW,getPerformance:()=>m.r,getSetValue:()=>a.qK,getTenantId:()=>B,getTime:()=>X,getWindow:()=>m.Jj,hasDocument:()=>m.Nv,hasHistory:()=>m.fE,hasJSON:()=>m.nS,hasNavigator:()=>m.d6,hasOwnProperty:()=>a.nr,hasWindow:()=>m.Ym,isArray:()=>a.kJ,isArrayValid:()=>Z,isBeaconsSupported:()=>m.MF,isBoolean:()=>a.jn,isChromium:()=>ie,isDate:()=>a.J_,isDocumentObjectAvailable:()=>j,isError:()=>a.VZ,isFetchSupported:()=>m.JO,isFunction:()=>a.mf,isIE:()=>m.w1,isLatency:()=>U,isNotTruthy:()=>a.F,isNullOrUndefined:()=>a.le,isNumber:()=>a.hj,isObject:()=>a.Kn,isReactNative:()=>m.b$,isSampledFlag:()=>Oe.Pn,isString:()=>a.HD,isTruthy:()=>a.fQ,isTypeof:()=>a.Ym,isUint8ArrayAvailable:()=>H,isUndefined:()=>a.o8,isValidSpanId:()=>Oe.Lc,isValidTraceId:()=>Oe.jN,isValidTraceParent:()=>Oe.J6,isValueAssigned:()=>F,isValueKind:()=>J,isWindowObjectAvailable:()=>L,isXhrSupported:()=>m.Z3,mergeEvtNamespace:()=>w.jU,newGuid:()=>P.GW,newId:()=>A.pZ,normalizeJsName:()=>a.Gf,objCreate:()=>I.pu,objDefineAccessors:()=>a.l_,objForEachKey:()=>a.rW,objFreeze:()=>a.FL,objKeys:()=>a.FY,objSeal:()=>a.Xi,openXhr:()=>oe,optimizeObject:()=>a.Ax,parseTraceParent:()=>Oe.j_,perfNow:()=>P.Jj,proxyAssign:()=>a.cf,proxyFunctionAs:()=>a.Oi,proxyFunctions:()=>a.Vb,random32:()=>A._l,randomValue:()=>A.az,removeEventHandler:()=>w.C1,removeEventListeners:()=>w.nJ,removePageHideEventListener:()=>w.C9,removePageShowEventListener:()=>w.Yl,removePageUnloadEventListener:()=>w.JA,safeGetCookieMgr:()=>T.JP,safeGetLogger:()=>v.vH,sanitizeProperty:()=>V,setCookie:()=>$,setEnableEnvMocks:()=>m.dI,setProcessTelemetryTimings:()=>ee,setValue:()=>a.sO,strContains:()=>a._Q,strEndsWith:()=>a.Id,strFunction:()=>C.cb,strObject:()=>C.fK,strPrototype:()=>C.hB,strStartsWith:()=>a.xe,strTrim:()=>a.nd,strUndefined:()=>C.jA,throwError:()=>a._y,toISOString:()=>a.Y6,useXDomainRequest:()=>m.cp});var r,i=n(3298),o=n(1785),a=n(3161),s=n(8712),c=(0,o.By)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),u=(0,o.By)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),l=(0,o.By)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),p=(0,o.By)({Normal:1,Critical:2}),d=(0,o.By)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),f=(0,a.FL)((0,i.uc)((0,i.uc)({},s.v),(0,o.By)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),h=n(2314),v=n(4300),g=n(2753),m=n(1167),_=n(8176),y="",E="https://browser.events.data.microsoft.com/OneCollector/1.0/",b="version",S="properties",T=n(8589),P=n(821),C=n(2589),w=n(1318),A=n(395),I=n(8785),O="3.2.13",x="1DS-Web-JS-"+O,R="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",N="withCredentials",D="timeout",k=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),M=null,j=Boolean((0,m.Me)()),L=Boolean((0,m.Jj)());function F(e){return!(e===y||(0,a.le)(e))}function B(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return y}function H(){return null===M&&(M=!(0,a.o8)(Uint8Array)&&!function(){var e=(0,m.jW)();if(!(0,a.o8)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,m.b$)()),M}function U(e){return!!(e&&(0,a.hj)(e)&&e>=1&&e<=4)}function V(e,t,n){if(!t&&!F(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.kJ)(t))t={value:t};else if("object"!==r||C.CY.call(t,"value")){if((0,a.le)(t.value)||t.value===y||!(0,a.HD)(t.value)&&!(0,a.hj)(t.value)&&!(0,a.jn)(t.value)&&!(0,a.kJ)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,a.kJ)(t.value)&&!Z(t.value))return null;if(!(0,a.le)(t.kind)){if((0,a.kJ)(t.value)||!J(t.kind))return null;t.value=t.value.toString()}return t}function q(e,t,n){var r=-1;if(!(0,a.o8)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else{var i=k[te(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function G(){(0,T.JP)(null).setEnabled(!1)}function $(e,t,n){(0,T.p7)(null)&&(0,T.JP)(null).set(e,t,86400*n,null,"/")}function z(e){(0,T.p7)(null)&&(0,T.JP)(null).del(e)}function W(e){return(0,T.p7)(null)?K((0,T.JP)(null),e):y}function K(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||y}function Y(e){void 0===e&&(e="D");var t=(0,P.GW)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,y)),t}function Q(e,t,n,r,i){var o={},s=!1,c=0,u=arguments.length,l=arguments;for("[object Boolean]"===Object[C.hB].toString.call(l[0])&&(s=l[0],c++);c<u;c++)e=l[c],(0,a.rW)(e,(function(e,t){s&&t&&(0,a.Kn)(t)?(0,a.kJ)(t)?(o[e]=o[e]||[],(0,a.tO)(t,(function(t,n){t&&(0,a.Kn)(t)?o[e][n]=Q(!0,o[e][n],t):o[e][n]=t}))):o[e]=Q(!0,o[e],t):o[e]=t}));return o}var X=P.Jj;function J(e){return 0===e||e>0&&e<=13||32===e}function Z(e){return e.length>0}function ee(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=X()}function te(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===C.fK&&(t=4,(0,a.kJ)(e)?(t=4096,e.length>0&&(t|=te(e[0]))):C.CY.call(e,"value")&&(t=8192|te(e.value)))}return t}var ne={Version:O,FullVersionString:x,strUndefined:C.jA,strObject:C.fK,Undefined:C.jA,arrForEach:a.tO,arrIndexOf:a.UA,arrMap:a.Mr,arrReduce:a.Xz,objKeys:a.FY,toISOString:a.Y6,isReactNative:m.b$,isString:a.HD,isNumber:a.hj,isBoolean:a.jn,isFunction:a.mf,isArray:a.kJ,isObject:a.Kn,strTrim:a.nd,isDocumentObjectAvailable:j,isWindowObjectAvailable:L,isValueAssigned:F,getTenantId:B,isBeaconsSupported:m.MF,isUint8ArrayAvailable:H,isLatency:U,sanitizeProperty:V,getISOString:a.Y6,useXDomainRequest:m.cp,getCommonSchemaMetaData:q,cookieAvailable:T.p7,disallowsSameSiteNone:T.UY,setCookie:$,deleteCookie:z,getCookie:W,createGuid:Y,extend:Q,getTime:X,isValueKind:J,isArrayValid:Z,objDefineAccessors:a.l_,addPageUnloadEventListener:w.c9,setProcessTelemetryTimings:ee,addEventHandler:w.Ib,getFieldValueType:te,strEndsWith:a.Id,objForEachKey:a.rW},re={_canUseCookies:void 0,isTypeof:a.Ym,isUndefined:a.o8,isNullOrUndefined:a.le,hasOwnProperty:a.nr,isFunction:a.mf,isObject:a.Kn,isDate:a.J_,isArray:a.kJ,isError:a.VZ,isString:a.HD,isNumber:a.hj,isBoolean:a.jn,toISOString:a.Y6,arrForEach:a.tO,arrIndexOf:a.UA,arrMap:a.Mr,arrReduce:a.Xz,strTrim:a.nd,objCreate:I.pu,objKeys:a.FY,objDefineAccessors:a.l_,addEventHandler:w.Ib,dateNow:a.m6,isIE:m.w1,disableCookies:G,newGuid:P.GW,perfNow:P.Jj,newId:A.pZ,randomValue:A.az,random32:A._l,mwcRandomSeed:A.CN,mwcRandom32:A.F6,generateW3CId:P.DO};function ie(){return!!(0,m.a8)("chrome")}function oe(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,R,r),n&&a(s,N,n),s.open(e,t,!i),n&&a(s,N,n),!i&&o&&a(s,D,o),s}var ae=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,h.default)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new v.AQ({loggingLevelConsole:1})),e.initialize=function(n,r,i,o){(0,g.Lm)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=E);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,a._y)("Invalid property storage override passed."),n.channels&&(0,a.tO)(n.channels,(function(e){e&&(0,a.tO)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||n.enableWParam?0:-1},r&&(0,a.tO)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,i,o),e.pollInternalLogs("InternalLog")}catch(t){var u=e.logger,l=(0,m.eU)(t);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),(0,v.kP)(u,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:r,logger:i,notificationManager:o}}))},e.track=function(n){(0,g.Lm)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=X(),U(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=x;var o=r.baseData=r.baseData||{};o[S]=o[S]||{};var a=o[S];a[b]=a[b]||e.pluginVersionString||y}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(_.F);const se=ae;var ce=n(4770),ue=function(e){function t(){var n=e.call(this)||this;return(0,h.default)(t,n,(function(e,t){e.initialize=function(n,r,i,o){n&&!n.endpointUrl&&(n.endpointUrl=E),e.getWParam=function(){return j||n.enableWParam?0:-1};try{t.initialize(n,r,i,o)}catch(t){(0,v.kP)(e.logger,1,514,"Initialization Failed: "+(0,m.eU)(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=x}t.track(n)}})),n}return(0,i.ne)(t,e),t.__ieDyn=1,t}(ce.A);const le=ue;var pe=a.mf;function de(e,t,n){return function(r){e[t]=r,n()}}var fe=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(e){}}),0)}}function a(e){0===n&&(r=e,n=1,o())}function s(e){0===n&&(r=e,n=2,o())}(0,h.default)(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){i.push((function(){var i;try{(i=1===n?pe(t)?t(r):r:pe(a)?a(r):r)instanceof e?i.then(s,c):2!==n||pe(a)?s(i):c(i)}catch(e){return void c(e)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!pe(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(a,s)}catch(e){s(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&pe(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o];a&&pe(a.then)?(i++,a.then(de(r,o,(function(){0==--i&&e(r)})),n)):r[o]=a}0===i&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&pe(i.then)?i.then(e,n):setTimeout((function(){e(i)}),0)},i=0;i<t.length;i++)r(i)}catch(e){n(e)}}))},e}();const he=fe;var ve=0,ge=[],me=[],_e=[];function ye(){return(new Date).getTime()}const Ee=function(){function e(t,n){var r=0,i=(t||"<unnamed>")+"."+ve;function o(e){var t=(0,I.Rd)();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+i+"] "+e)}function a(e){(0,v.jV)(n,"ESPromiseScheduler["+i+"] "+e)}ve++,(0,h.default)(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,u){var l=i+"."+n;n++,c&&(l+="-("+c+")");var p=l+"{"+r+"}";r++;var d,f,h,v={evt:null,tm:ye(),id:p,isRunning:!1,isAborted:!1};return v.evt=t?(d=v,f=t,h=new he((function(e,t){var n=ye()-f.tm,r=f.id;o("["+l+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+me.length+"] waiting and ["+ge.length+"] running"),d.abort=function(e){d.abort=null,s(me,l),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){s(me,l),b(d).then(e,t)}),(function(n){s(me,l),b(d).then(e,t)}))})),me.push(d),h):b(v),(t=v).evt._schId=p,v.evt;function g(e){for(var t=ye(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var s=null;o.abort?(s="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(s)):s="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",a(s),e.splice(i,1),r--}else i++}}function m(e,n){var r=!1,i=s(ge,e);if(i||(i=s(_e,e),r=!0),i){i.to&&(clearTimeout(i.to),i.to=null);var c=ye()-i.tm;n?r?a("Timed out event ["+e+"] finally complete -- "+c+" ms"):o("Promise ["+e+"] Complete -- "+c+" ms"):(_e.push(i),a("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else o("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),g(ge),g(me),g(_e)}function _(e,t){return function(n){return m(e,!0),t&&t(n),n}}function y(e,t,n,r){t.then((function(t){return t instanceof he?(o("Event ["+e+"] returned a promise -- waiting"),y(e,t,n,r),t):_(e,n)(t)}),_(e,r))}function E(e,t){var n=e.id;return new he((function(r,i){o("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,m(n,!1),i(new Error(t))};var a=t(n);a instanceof he?(u&&(e.to=setTimeout((function(){m(n,!1),i(new Error("Timed out after ["+u+"] ms"))}),u)),y(n,a,(function(t){o("Event ["+n+"] Resolving after "+(ye()-e.tm)+" ms"),r(t)}),i)):(o("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function b(t){var n=ye();return t.wTm=n-t.tm,t.tm=n,t.isAborted?he.reject(new Error("["+l+"] was aborted")):(ge.push(t),E(t,e))}}}))}return e.incomplete=function(){return ge},e.waitingToStart=function(){return me},e}();var be=function(){function e(e){var t=this,n={},r=[],i=[];function o(e,t){var o,s=n[e];if(s&&(o=s[t]),!o&&null!==o){if((0,a.HD)(e)&&(0,a.HD)(t))if(i.length>0){for(var c=0;c<i.length;c++)if(i[c].handleField(e,t)){o={canHandle:!0,fieldHandler:i[c]};break}}else 0===r.length&&(o={canHandle:!0});if(!o&&null!==o)for(o=null,c=0;c<r.length;c++)if(r[c].handleField(e,t)){o={canHandle:!0,handler:r[c],fieldHandler:null};break}s||(s=n[e]={}),s[t]=o}return o}function s(e,t,n,r,i,o){if(e.handler)return e.handler.property(t,n,i,o);if(!(0,a.le)(i.kind)){if(4096==(4096&r)||!J(i.kind))return null;i.value=i.value.toString()}return u(e.fieldHandler,t,n,r,i)}function c(e,t,n){return F(n)?{value:n}:null}function u(e,n,r,i,o){if(o&&e){var s=e.getSanitizer(n,r,i,o.kind,o.propertyType);if(s)if(4===i){var l={},p=o.value;(0,a.rW)(p,(function(t,i){var o=n+"."+r;if(F(i)){var a=c(0,0,i);(a=u(e,o,t,te(i),a))&&(l[t]=a.value)}})),o.value=l}else{var d={path:n,name:r,type:i,prop:o,sanitizer:t};o=s.call(t,d)}}return o}e&&i.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={})},t.addFieldSanitizer=function(e){e&&(i.push(e),n={})},t.handleField=function(e,t){var n=o(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,r){var i=o(e,t);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,t,n,r);if(!(0,a.HD)(t)||(0,a.le)(n)||n===y)return null;var u=null,l=te(n);if(8192==(8192&l)){var p=-8193&l;if(!F((u=n).value)||1!==p&&2!==p&&3!==p&&4096!=(4096&p))return null}else 1===l||2===l||3===l||4096==(4096&l)?u=c(0,0,n):4===l&&(u=c(0,0,r?JSON.stringify(n):n));if(u)return s(i,e,t,l,u,r)}return null},t.property=function(e,t,n,r){var i=o(e,t);if(!i||!i.canHandle)return null;if(!(0,a.HD)(t)||(0,a.le)(n)||!F(n.value))return null;var c=te(n.value);return 0===c?null:s(i,e,t,c,n,r)}}return e.getFieldType=te,e}(),Se=n(6329),Te=n(1549),Pe=n(877),Ce=n(978),we=n(4641),Ae=n(8530),Ie=n(6930),Oe=n(1579)},1785:(e,t,n)=>{"use strict";n.d(t,{By:()=>i,cc:()=>a,uj:()=>o});var r=n(3161);function i(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r._A)(t)}function o(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=e,t[n]=e})),(0,r._A)(t)}function a(e){var t={};return(0,r.rW)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,r._A)(t)}},4641:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var r=(0,n(1785).By)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},8712:(e,t,n)=>{"use strict";n.d(t,{X:()=>E,v:()=>b});var r,i=n(1785),o="Failed",a=o+"MonitorAjax",s="Track",c="Start",u="Stop",l="Event",p="AuthContext",d="Exception",f="Local",h="Session",v="Storage",g="Browser",m="Cannot",_="Buffer",y="InstrumentationKey",E=(0,i.By)({CRITICAL:1,WARNING:2}),b=(0,i.By)(((r={})[g+"DoesNotSupport"+f+v]=0,r[g+m+"Read"+f+v]=1,r[g+m+"Read"+h+v]=2,r[g+m+"Write"+f+v]=3,r[g+m+"Write"+h+v]=4,r[g+o+"RemovalFrom"+f+v]=5,r[g+o+"RemovalFrom"+h+v]=6,r[m+"SendEmptyTelemetry"]=7,r.ClientPerformanceMathError=8,r["ErrorParsingAI"+h+"Cookie"]=9,r.ErrorPVCalc=10,r[d+"WhileLoggingError"]=11,r[o+"AddingTelemetryTo"+_]=12,r[a+"Abort"]=13,r[a+"Dur"]=14,r[a+"Open"]=15,r[a+"RSC"]=16,r[a+"Send"]=17,r[a+"GetCorrelationHeader"]=18,r[o+"ToAddHandlerForOnBeforeUnload"]=19,r[o+"ToSendQueuedTelemetry"]=20,r[o+"ToReportDataLoss"]=21,r["Flush"+o]=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r[h+"RenewalDateIsZero"]=27,r.SenderNotInitialized=28,r[c+s+l+o]=29,r[u+s+l+o]=30,r[c+s+o]=31,r[u+s+o]=32,r.TelemetrySampledAndNotSent=33,r[s+l+o]=34,r[s+d+o]=35,r[s+"Metric"+o]=36,r[s+"PV"+o]=37,r[s+"PV"+o+"Calc"]=38,r[s+"Trace"+o]=39,r["Transmission"+o]=40,r[o+"ToSet"+v+_]=41,r[o+"ToRestore"+v+_]=42,r.InvalidBackendResponse=43,r[o+"ToFixDepricatedValues"]=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r[m+"SerializeObject"]=48,r[m+"SerializeObjectNonSerializable"]=49,r.CircularReferenceDetected=50,r["Clear"+p+o]=51,r[d+"Truncated"]=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r["Set"+p+o]=59,r["Set"+p+o+"AccountName"]=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r["TelemetryInitializer"+o]=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r[h+v+_+"Full"]=67,r[m+"AccessCookie"]=68,r.IdTooLong=69,r.InvalidEvent=70,r[a+"SetRequestHeader"]=71,r["Send"+g+"InfoOnUserInit"]=72,r["Plugin"+d]=73,r["Notification"+d]=74,r.SnippetScriptLoadFailure=99,r["Invalid"+y]=100,r[m+"ParseAiBlobValue"]=101,r.InvalidContentBlob=102,r[s+"PageAction"+l+o]=103,r[o+"AddingCustomDefinedRequestContext"]=104,r["InMemory"+v+_+"Full"]=105,r[y+"Deprecation"]=106,r))},978:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var r=100},8176:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var r=n(3298),i=n(9798),o=n(6474),a=n(4770),s=n(4300),c=n(3161),u=n(9556),l=n(6329),p=n(2753),d=function(e){function t(){var n=e.call(this)||this;return(0,i.Z)(t,n,(function(e,t){function n(t){var n=e[o.tb]();n&&n[u.$F]([t],2)}e[o.VL]=function(e,n,r,i){t[o.VL](e,n,r||new s.AQ(e),i||new l.f(e))},e.track=function(r){(0,p.Lm)(e[u.kl](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,c._y)("Invalid telemetry item")),function(e){(0,c.le)(e[o.I])&&(n(e),(0,c._y)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(a.A)},4770:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(3298),i=n(9798),o=n(8785),a=n(6474),s=n(3161),c=n(9556),u=n(877),l=n(3656),p=500;function d(e,t,n){t&&(0,s.kJ)(t)&&t[a.R5]>0&&(t=t.sort((function(e,t){return e[c.yi]-t[c.yi]})),(0,s.tO)(t,(function(e){e[c.yi]<p&&(0,s._y)("Channel has invalid priority - "+e[a.pZ])})),e[a.MW]({queue:(0,s.FL)(t),chain:(0,u.jV)(t,n[a.TC],n)}))}var f=n(8589),h=n(8530),v=n(7485),g=n(4300),m=n(2753),_=n(1549),y=n(1167),E=function(e){function t(){var n,r,o=e.call(this)||this;function u(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,u(),(0,i.Z)(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[a.MW](t),{remove:function(){(0,s.tO)(r,(function(e,n){if(e.id===t.id)return r[a.cb](n,1),-1}))}}},e[c.hL]=function(t,n){for(var i=!1,o=r[a.R5],c=0;c<o;++c){var u=r[c];if(u)try{if(!1===u.fn[a.ZV](null,[t])){i=!0;break}}catch(e){(0,g.kP)(n[a.mc](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,s.jj)(e),{exception:(0,y.eU)(e)},!0)}}i||e[a.uL](t,n)},e[a.F3]=function(){u()}})),o}return(0,r.ne)(t,e),t.__ieDyn=1,t}(_.i),b=n(6930),S="Plugins must provide initialize method",T="_notificationManager",P="SDK is still unloading...",C={loggingLevelConsole:1};function w(e,t){return new m.Jk(t)}function A(e,t){var n=!1;return(0,s.tO)(t,(function(t){if(t===e)return n=!0,-1})),n}var I=function(){function e(){var t,n,_,y,I,O,x,R,N,D,k,M,j,L,F,B,H,U,V,q,G=0,$=!1;(0,i.Z)(e,this,(function(e){function i(n){if(!G&&!$&&(n||e[a.eZ]&&e[a.eZ].queue[a.R5]>0)){var r=(0,s.v4)(t.diagnosticLogInterval);r&&r>0||(r=1e4),G=setInterval((function(){clearInterval(G),G=0,J()}),r)}return G}function z(){n=!1,t=(0,s.mm)(!0,{},C),e[a.TC]=t,e[a.eZ]=new g.AQ(t),e[a.iC]=[],F=new E,_=[],y=null,I=null,O=null,x=null,R=null,D=null,N=[],k=null,M=null,j=null,L=!1,B=null,H=(0,h.J)("AIBaseCore",!0),U=(0,b.Y)(),q=null}function W(){var n=(0,u.CD)(Q(),t,e);return n[a.Fc](i),n}function K(n){var r=function(e,t,n){var r,i=[],o={};return(0,s.tO)(n,(function(t){((0,s.le)(t)||(0,s.le)(t[a.VL]))&&(0,s._y)(S);var n=t[c.yi],r=t[a.pZ];t&&n&&((0,s.le)(o[n])?o[n]=r:(0,g.jV)(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+r)),(!n||n<500)&&i[a.MW](t)})),(r={all:n})[c.oV]=i,r}(e[a.eZ],0,N);D=r[c.oV],R=null;var o=r.all;if(j=(0,s.FL)(function(e,t,n){var r=[];if(e&&(0,s.tO)(e,(function(e){return d(r,e,n)})),t){var i=[];(0,s.tO)(t,(function(e){e[c.yi]>p&&i[a.MW](e)})),d(r,i,n)}return r}(M,o,e)),k){var f=(0,s.UA)(o,k);-1!==f&&o[a.cb](f,1),-1!==(f=(0,s.UA)(D,k))&&D[a.cb](f,1),k._setQueue(j)}else k=function(e,t){function n(){return(0,u.CD)(null,t[a.TC],t,null)}function r(e,t,n,r){var i=e?e[a.R5]+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[a.R5]>0){var r=e.chain,s=t[a.zV](r);s[a.Fc](o),n(s)}else i--})),o()}var i=!1,o={identifier:"ChannelControllerPlugin",priority:p,initialize:function(t,n,r,o){i=!0,(0,s.tO)(e,(function(e){e&&e.queue[a.R5]>0&&(0,l.bP)((0,u.CD)(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[a.uL](t)}),(function(){i[a.uL](t)}))},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[a.uL](i)}),(function(){t[a.uL](i)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[a.uL](o)}),(function(){t[a.uL](o),i=!1})),!0},getChannel:function(t){var n=null;return e&&e[a.R5]>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[a.R5]>0&&((0,s.tO)(e.queue,(function(e){if(e[a.pZ]===t)return n=e,-1})),n))return-1})),n},flush:function(t,i,o,s){var c=1,u=!1,l=null;function p(){c--,u&&0===c&&(l&&(clearTimeout(l),l=null),i&&i(u),i=null)}return s=s||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[a.kL]){c++;var n=!1;e[a.kL](t,(function(){n=!0,p()}),o)||n||(t&&null==l?l=setTimeout((function(){l=null,p()}),s):p())}}))}),(function(){u=!0,p()})),!0},_setQueue:function(t){e=t}};return o}(j,e);o[a.MW](k),D[a.MW](k),e[a.iC]=(0,l.AA)(o),k[a.VL](t,e,o);var h=W();(0,l.bP)(h,o),e[a.iC]=(0,s.FL)((0,l.AA)(D||[])).slice(),n&&function(t){var n=(0,u.xy)(Q(),e);n[a.Fc](i),e._updateHook&&!0===e._updateHook(n,t)||n[a.uL](t)}(n)}function Y(t){var n,r=null,i=null;return(0,s.tO)(e[a.iC],(function(e){if(e[a.pZ]===t&&e!==k&&e!==F)return i=e,-1})),!i&&k&&(i=k.getChannel(t)),i&&((n={plugin:i})[a.$h]=function(e){(0,l.OY)(i)[c.mE]=!e},n.isEnabled=function(){var e=(0,l.OY)(i);return!e[a.fi]&&!e[c.mE]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[a.d]=e,n);X(r,o,(function(e){e&&K({reason:32,removed:r}),t&&t(e)}))},r=n),r}function Q(){if(!R){var n=(D||[]).slice();-1===(0,s.UA)(n,F)&&n[a.MW](F),R=(0,u.jV)((0,l.AA)(n),t,e)}return R}function X(n,r,o){if(n&&n[a.R5]>0){var c=(0,u.jV)(n,t,e),l=(0,u.Bt)(c,e);l[a.Fc]((function(){var e=!1,t=[];(0,s.tO)(N,(function(r,i){A(r,n)?e=!0:t[a.MW](r)})),N=t;var r=[];M&&((0,s.tO)(M,(function(t,i){var o=[];(0,s.tO)(t,(function(t){A(t,n)?e=!0:o[a.MW](t)})),r[a.MW](o)})),M=r),o&&o(e),i()})),l[a.uL](r)}else o(!1)}function J(){if(e[a.eZ]&&e[a.eZ].queue){var n=e[a.eZ].queue.slice(0);e[a.eZ].queue[a.R5]=0,(0,s.tO)(n,(function(n){var r,i=((r={})[a.I]=B||"InternalMessageId: "+n[a.Gc],r.iKey=(0,s.v4)(t[a.p$]),r.time=(0,s.Y6)(new Date),r.baseType=g.lQ.dataType,r.baseData={message:n[a.gU]},r);e.track(i)}))}}function Z(e,t,n,r){return k?k[a.kL](e,t,n||6,r):(t&&t(!1),!0)}function ee(t){var n=e[a.eZ];n?((0,g.kP)(n,2,73,t),i()):(0,s._y)(t)}z(),e[a.yl]=function(){return n},e[a.VL]=function(i,o,u,l){var p,d;L&&(0,s._y)(P),e[a.yl]()&&(0,s._y)("Core should not be initialized more than once"),t=i||{},e[a.TC]=t,(0,s.le)(i[a.p$])&&(0,s._y)("Please provide instrumentation key"),y=l,e[T]=l,!0===(d=(0,s.v4)(t.disableDbgExt))&&V&&(y[a.n7](V),V=null),y&&!V&&!0!==d&&(V=(0,v.p)(t),y[a.g](V)),!(p=(0,s.v4)(t.enablePerfMgr))&&O&&(O=null),p&&(0,s.qK)(t,c.DN,w),(0,s.qK)(t,c.Zh,{}).NotificationManager=y,u&&(e[a.eZ]=u);var f=(0,s.qK)(t,c.js,[]);(N=[])[a.MW].apply(N,(0,r.$h)((0,r.$h)([],o,!1),f,!1)),M=(0,s.qK)(t,c.Z,[]),K(null),j&&0!==j[a.R5]||(0,s._y)("No "+c.Z+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return j&&(0,s.tO)(j,(function(t){e[a.MW](t.queue)})),(0,s.FL)(e)},e.track=function(n){n.iKey=n.iKey||t[a.p$],n[a.Z_]=n[a.Z_]||(0,s.Y6)(new Date),n.ver=n.ver||"4.0",!L&&e[a.yl]()?W()[a.uL](n):_[a.MW](n)},e[a.SD]=W,e[a.tb]=function(){var t;return y||(y=(0,o.pu)(((t={})[a.g]=function(e){},t[a.n7]=function(e){},t[c.uC]=function(e){},t[c.$F]=function(e,t){},t[c.f_]=function(e,t){},t)),e[T]=y),y},e[a.g]=function(e){y&&y[a.g](e)},e[a.n7]=function(e){y&&y[a.n7](e)},e.getCookieMgr=function(){return x||(x=(0,f.Nz)(t,e[a.eZ])),x},e.setCookieMgr=function(e){x=e},e[c.kl]=function(){if(!I&&!O&&(0,s.v4)(t.enablePerfMgr)){var n=(0,s.v4)(t[c.DN]);(0,s.mf)(n)&&(O=n(e,e[a.tb]()))}return I||O||(0,m.j5)()},e.setPerfMgr=function(e){I=e},e.eventCnt=function(){return _[a.R5]},e.releaseQueue=function(){if(n&&_[a.R5]>0){var e=_;_=[],(0,s.tO)(e,(function(e){W()[a.uL](e)}))}},e.pollInternalLogs=function(e){return B=e||null,$=!1,G&&(clearInterval(G),G=null),i(!0)},e[a.LS]=function(){$=!0,G&&(clearInterval(G),G=0,J())},(0,s.Vb)(e,(function(){return F}),["addTelemetryInitializer"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||(0,s._y)("SDK is not initialized"),L&&(0,s._y)(P);var c=((o={reason:50})[a.d]=t,o.flushComplete=!1,o),l=(0,u.Bt)(Q(),e);function p(t){c.flushComplete=t,L=!0,U.run(l,c),e[a.LS](),l[a.uL](c)}l[a.Fc]((function(){z(),r&&r(c)}),e),J(),Z(t,p,6,i)||p(!1)},e[a.TO]=Y,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void ee(S);var i=Y(e[a.pZ]);if(i&&!t)return r&&r(!1),void ee("Plugin ["+e[a.pZ]+"] is already loaded!");var o={reason:16};function s(t){N[a.MW](e),o.added=[e],K(o),r&&r(!0)}if(i){var c=[i.plugin];X(c,{reason:2,isAsync:!!n},(function(e){e?(o.removed=c,o.reason|=32,s()):r&&r(!1)}))}else s()},e.evtNamespace=function(){return H},e[a.kL]=Z,e.getTraceCtx=function(e){return q||(q=(0,l.Yn)()),q},e.setTraceCtx=function(e){q=e||null},(0,s.Oi)(e,"addUnloadCb",(function(){return U}),"add")}))}return e.__ieDyn=1,e}()},1549:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(9798),i=n(6474),o=n(3161),a=n(9556),s=n(877),c=n(6930),u="getPlugin",l=function(){function e(){var t,n,l,p,d,f=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.CD)(null,{},f[a.oV]);t=l&&l[u]?r[i.zV](null,l[u]):r[i.zV](null,l)}return t}function v(e,t,r){e&&(0,o.sO)(e,a.Zh,[],null,o.le),!r&&t&&(r=t[i.SD]()[i.W2]());var c=l;l&&l[u]&&(c=l[u]()),f[a.oV]=t,n=(0,s.CD)(r,e,t,c)}function g(){t=!1,f[a.oV]=null,n=null,l=null,d=[],p=(0,c.Y)()}g(),(0,r.Z)(e,f,(function(e){e[i.VL]=function(e,n,r,i){v(e,n,i),t=!0},e[i.fi]=function(t,n){var r,c=e[a.oV];if(c&&(!t||c===t[a.oV]())){var f,h=!1,v=t||(0,s.Bt)(null,c,l&&l[u]?l[u]():l),m=n||((r={reason:0})[i.d]=!1,r);return e[i.F3]&&!0===e[i.F3](v,m,_)?f=!0:_(),f}function _(){if(!h){h=!0,p.run(v,n);var e=d;d=[],(0,o.tO)(e,(function(e){e.rm()})),!0===f&&v[i.uL](m),g()}}},e[i.Tu]=function(t,n){var r=e[a.oV];if(r&&(!t||r===t[a.oV]())){var o,c=!1,p=t||(0,s.xy)(null,r,l&&l[u]?l[u]():l),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(p,d,f)?o=!0:f(),o}function f(){c||(c=!0,v(p.getCfg(),p.core(),p[i.W2]()))}},e._addHook=function(e){e&&((0,o.kJ)(e)?d=d.concat(e):d[i.MW](e))},(0,o.Oi)(e,"_addUnloadCb",(function(){return p}),"add")})),f[i.mc]=function(e){return h(e)[i.mc]()},f[i.yl]=function(){return t},f.setInitialized=function(e){t=e},f[i.Jd]=function(e){l=e},f[i.uL]=function(e,t){t?t[i.uL](e):l&&(0,o.mf)(l[a.hL])&&l[a.hL](e,null)},f._getTelCtx=h}return e.__ieDyn=1,e}()},8589:(e,t,n)=>{"use strict";n.d(t,{JP:()=>C,Nz:()=>w,UY:()=>D,kj:()=>S,p7:()=>A});var r=n(6474),i=n(4300),o=n(1167),a=n(3161),s=n(9556),c="toGMTString",u="toUTCString",l="cookie",p="expires",d="enabled",f="isCookieUseDisabled",h="disableCookiesUsage",v="_ckMgr",g=null,m=null,_=null,y=(0,o.Me)(),E={},b={};function S(e,t){var n=w[v]||b[v];return n||(n=w[v]=w(e,t),b[v]=n),n}function T(e){return!e||e.isEnabled()}function P(e,t){return!!(t&&e&&(0,a.kJ)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.ou](t)}function C(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t[r.Lk];n=i[v]?i[v]:w(t)}return n||(n=S(t,(e||{})[r.eZ])),n}function w(e,t){var n,i=function(e){var t=e[r.Lk]=e[r.Lk]||{};if((0,a.sO)(t,"domain",e.cookieDomain,a.BX,a.le),(0,a.sO)(t,"path",e.cookiePath||"/",null,a.le),(0,a.le)(t[d])){var n=void 0;(0,a.o8)(e[f])||(n=!e[f]),(0,a.o8)(e[h])||(n=!e[h]),t[d]=n}return t}(e||b),l=i.path||"/",g=i.domain,_=!1!==i[d],y=((n={isEnabled:function(){var e=_&&A(t),n=b[v];return e&&n&&y!==n&&(e=T(n)),e}})[r.$h]=function(e){_=!1!==e},n.set=function(e,t,n,d,f){var h=!1;if(T(y)&&!function(e,t){return!!(t&&e&&(0,a.kJ)(e.blockedCookies)&&-1!==e.blockedCookies[r.ou](t))||P(e,t)}(i,e)){var v={},_=(0,a.nd)(t||s.qS),E=_[r.ou](";");if(-1!==E&&(_=(0,a.nd)(t[r.zc](0,E)),v=I(t[r.zc](E+1))),(0,a.sO)(v,"domain",d||g,a.fQ,a.o8),!(0,a.le)(n)){var b=(0,o.w1)();if((0,a.o8)(v[p])){var S=(0,a.m6)()+1e3*n;if(S>0){var C=new Date;C.setTime(S),(0,a.sO)(v,p,O(C,b?c:u)||O(C,b?c:u)||s.qS,a.fQ)}}b||(0,a.sO)(v,"max-age",s.qS+n,null,a.o8)}var w=(0,o.k$)();w&&"https:"===w.protocol&&((0,a.sO)(v,"secure",null,null,a.o8),null===m&&(m=!D(((0,o.jW)()||{})[r.qV])),m&&(0,a.sO)(v,"SameSite","None",null,a.o8)),(0,a.sO)(v,"path",f||l,null,a.o8),(i.setCookie||N)(e,x(_,v)),h=!0}return h},n.get=function(e){var t=s.qS;return T(y)&&!P(i,e)&&(t=(i.getCookie||R)(e)),t},n.del=function(e,t){var n=!1;return T(y)&&(n=y.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(A(t)){var c=((r={}).path=n||"/",r[p]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,o.w1)()||(c["max-age"]="0"),(i.delCookie||N)(e,x(s.qS,c)),a=!0}return a},n);return y[v]=y,y}function A(e){if(null===g){g=!1;try{g=void 0!==(y||{})[l]}catch(t){(0,i.kP)(e,2,68,"Cannot access document.cookie - "+(0,a.jj)(t),{exception:(0,o.eU)(t)})}}return g}function I(e){var t={};if(e&&e[r.R5]){var n=(0,a.nd)(e)[r.w6](";");(0,a.tO)(n,(function(e){if(e=(0,a.nd)(e||s.qS)){var n=e[r.ou]("=");-1===n?t[e]=null:t[(0,a.nd)(e[r.zc](0,n))]=(0,a.nd)(e[r.zc](n+1))}}))}return t}function O(e,t){return(0,a.mf)(e[t])?e[t]():null}function x(e,t){var n=e||s.qS;return(0,a.rW)(t,(function(e,t){n+="; "+e+((0,a.le)(t)?s.qS:"="+t)})),n}function R(e){var t=s.qS;if(y){var n=y[l]||s.qS;_!==n&&(E=I(n),_=n),t=(0,a.nd)(E[e]||s.qS)}return t}function N(e,t){y&&(y[l]=e+"="+t)}function D(e){return!(!(0,a.HD)(e)||!(0,a._Q)(e,"CPU iPhone OS 12")&&!(0,a._Q)(e,"iPad; CPU OS 12")&&!((0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a._Q)(e,"Version/")&&(0,a._Q)(e,"Safari"))&&(!(0,a._Q)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Id)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,a._Q)(e,"Chrome/5")&&!(0,a._Q)(e,"Chrome/6")&&(!(0,a._Q)(e,"UnrealEngine")||(0,a._Q)(e,"Chrome"))&&!(0,a._Q)(e,"UCBrowser/12")&&!(0,a._Q)(e,"UCBrowser/11"))}},821:(e,t,n)=>{"use strict";n.d(t,{DO:()=>m,GW:()=>v,Jj:()=>g,Px:()=>h,Tr:()=>_,d8:()=>P,ej:()=>T,kT:()=>C,oF:()=>b,pP:()=>E,vn:()=>S,zB:()=>y});var r,i=n(2589),o=n(8785),a=n(6474),s=n(8589),c=n(1167),u=n(1318),l=n(3161),p=n(9556),d=n(395),f=null,h=i.jA;function v(){var e=m();return e[a.zc](0,8)+"-"+e[a.zc](8,12)+"-"+e[a.zc](12,16)+"-"+e[a.zc](16,20)+"-"+e[a.zc](20)}function g(){var e=(0,c.r)();return e&&e.now?e.now():(0,l.m6)()}function m(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=p.qS,r=0;r<4;r++)n+=t[15&(e=(0,d._l)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&(0,d._l)())|0];return n[a.Jn](0,8)+n[a.Jn](9,4)+"4"+n[a.Jn](13,3)+i+n[a.Jn](16,3)+n[a.Jn](19,12)}var _={_canUseCookies:void 0,isTypeof:l.Ym,isUndefined:l.o8,isNullOrUndefined:l.le,hasOwnProperty:l.nr,isFunction:l.mf,isObject:l.Kn,isDate:l.J_,isArray:l.kJ,isError:l.VZ,isString:l.HD,isNumber:l.hj,isBoolean:l.jn,toISOString:l.Y6,arrForEach:l.tO,arrIndexOf:l.UA,arrMap:l.Mr,arrReduce:l.Xz,strTrim:l.nd,objCreate:o.pu,objKeys:l.FY,objDefineAccessors:l.l_,addEventHandler:u.Ib,dateNow:l.m6,isIE:c.w1,disableCookies:b,newGuid:v,perfNow:g,newId:d.pZ,randomValue:d.az,random32:d._l,mwcRandomSeed:d.CN,mwcRandom32:d.F6,generateW3CId:m},y={Attach:u.pZ,AttachEvent:u.pZ,Detach:u.pD,DetachEvent:u.pD};function E(e,t){var n=(0,s.kj)(e,t),i=_._canUseCookies;return null===f&&(f=[],r=i,(0,l.l_)(_,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,l.tO)(f,(function(t){t[a.$h](e)}))}))),-1===(0,l.UA)(f,n)&&f[a.MW](n),(0,l.jn)(i)&&n[a.$h](i),(0,l.jn)(r)&&n[a.$h](r),n}function b(){E()[a.$h](!1)}function S(e){return E(null,e).isEnabled()}function T(e,t){return E(null,e).get(t)}function P(e,t,n,r){E(null,e).set(t,n,null,r)}function C(e,t){return E(null,e).del(t)}},8530:(e,t,n)=>{"use strict";n.d(t,{J:()=>f,K:()=>h});var r=n(2589),i=n(6474),o=n(3161),a=n(9556),s=n(395),c=r.RJ,u="2.8.15",l="."+(0,s.pZ)(6),p=0;function d(e){return 1===e[i.xv]||9===e[i.xv]||!+e[i.xv]}function f(e,t){return void 0===t&&(t=!1),(0,o.Gf)(e+p+++(t?"."+u:a.qS)+l)}function h(e){var t={id:f("_aiData-"+(e||a.qS)+"."+u),accept:function(e){return d(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[(0,o.Gf)(n)]:(i&&((a=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(e){}}return n}(t,e))[(0,o.Gf)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},7485:(e,t,n)=>{"use strict";n.d(t,{j:()=>u,p:()=>l});var r,i=n(6474),o=n(1167),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function c(e,t){return function(){var n=arguments,r=u(t);if(r){var o=r.listener;o&&o[e]&&o[e][i.ZV](o,n)}}}function u(e){var t,n=s;return n||!0===e.disableDbgExt||(n=s||((t=(0,o.a8)("Microsoft"))&&(s=t.ApplicationInsights),s)),n?n.ChromeDbgExt:null}function l(e){if(!r){r={};for(var t=0;t<a[i.R5];t++)r[a[t]]=c(a[t],e)}return r}},4300:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>f,L4:()=>m,jV:()=>g,kP:()=>v,lQ:()=>p,vH:()=>d});var r=n(9798),i=n(6474),o=n(7485),a=n(1167),s=n(3161),c=n(9556);function u(e){return e?'"'+e[i.i7](/\"/g,c.qS)+'"':c.qS}function l(e,t){var n=(0,a.dr)();if(n){var r="log";n[e]&&(r=e),(0,s.mf)(n[r])&&n[r](t)}}var p=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[i.Gc]=e,o[i.gU]=(n?"AI: ":"AI (Internal): ")+e;var s=c.qS;(0,a.nS)()&&(s=(0,a.xA)().stringify(r));var l=(t?" message:"+u(t):c.qS)+(r?" props:"+u(s):c.qS);o[i.gU]+=l}return e.dataType="MessageData",e}();function d(e,t){return(e||{})[i.eZ]||new f(t)}var f=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,u,d,f,h=0,v={};(0,r.Z)(e,this,(function(e){function r(t,n){if(!(h>=d)){var r=!0,o="AITR_"+n[i.Gc];if(v[o]?r=!1:v[o]=!0,r&&(t<=u&&(e.queue[i.MW](n),h++,g(1===t?"error":"warn",n)),h===d)){var a="Internal events throttle limit per PageView reached for this app.",s=new p(23,a,!1);e.queue[i.MW](s),1===t?e[c.ys](a):e[c.cL](a)}}}function g(e,n){var r=(0,o.j)(t||{});r&&r[i.mc]&&r[i.mc](e,n)}!function(e){n=(0,s.v4)(e.loggingLevelConsole,0),u=(0,s.v4)(e.loggingLevelTelemetry,1),d=(0,s.v4)(e.maxMessageLimit,25),f=(0,s.v4)(e.enableDebug,(0,s.v4)(e[i.Fr],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return d},e[i.Fr]=function(){return f},e.throwInternal=function(t,o,u,l,d){void 0===d&&(d=!1);var h=new p(o,u,d,l);if(f)throw(0,a.eU)(h);var m=1===t?c.ys:c.cL;if((0,s.o8)(h[i.gU]))g("throw"+(1===t?"Critical":"Warning"),h);else{if(d){var _=+h[i.Gc];!v[_]&&n>=t&&(e[m](h[i.gU]),v[_]=!0)}else n>=t&&e[m](h[i.gU]);r(t,h)}},e[c.cL]=function(e){l("warn",e),g("warning",e)},e[c.ys]=function(e){l("error",e),g("error",e)},e.resetInternalMessageCount=function(){h=0,v={}},e[i.jk]=r}))}return e.__ieDyn=1,e}();function h(e){return e||new f}function v(e,t,n,r,i,o){void 0===o&&(o=!1),h(e).throwInternal(t,n,r,i,o)}function g(e,t){h(e)[c.cL](t)}function m(e,t,n){h(e)[i.jk](t,n)}},1167:(e,t,n)=>{"use strict";n.d(t,{G6:()=>Q,JO:()=>J,Jj:()=>N,Kf:()=>ae,MF:()=>X,MX:()=>G,Me:()=>k,Nd:()=>oe,Nu:()=>ie,Nv:()=>D,Ym:()=>R,Z3:()=>ee,a8:()=>x,b$:()=>z,cp:()=>Z,d6:()=>M,dI:()=>O,dr:()=>H,eU:()=>Y,ed:()=>ne,fE:()=>L,gz:()=>$,jW:()=>j,k$:()=>B,nS:()=>V,pI:()=>re,r:()=>U,s1:()=>F,sA:()=>K,w1:()=>W,xA:()=>q});var r=n(2589),i=n(8785),o=n(6474),a=n(3161),s=n(9556),c="window",u="document",l="documentMode",p="navigator",d="history",f="location",h="console",v="performance",g="JSON",m="crypto",_="msCrypto",y="ReactNative",E="msie",b="trident/",S="XMLHttpRequest",T=null,P=null,C=!1,w=null,A=null;function I(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e[r.hB];i&&(n=t in i)}}catch(e){}if(!n)try{var o=new e;n=!(0,a.o8)(o[t])}catch(e){}}return n}function O(e){C=e}function x(e){var t=(0,i.Rd)();return t&&t[e]?t[e]:e===c&&R()?window:null}function R(){return Boolean(typeof window===r.fK&&window)}function N(){return R()?window:x(c)}function D(){return Boolean(typeof document===r.fK&&document)}function k(){return D()?document:x(u)}function M(){return Boolean(typeof navigator===r.fK&&navigator)}function j(){return M()?navigator:x(p)}function L(){return Boolean(typeof history===r.fK&&history)}function F(){return L()?history:x(d)}function B(e){if(e&&C){var t=x("__mockLocation");if(t)return t}return typeof location===r.fK&&location?location:x(f)}function H(){return typeof console!==r.jA?console:x(h)}function U(){return x(v)}function V(){return Boolean(typeof JSON===r.fK&&JSON||null!==x(g))}function q(){return V()?JSON||x(g):null}function G(){return x(m)}function $(){return x(_)}function z(){var e=j();return!(!e||!e.product)&&e.product===y}function W(){var e=j();if(e&&(e[o.qV]!==P||null===T)){var t=((P=e[o.qV])||s.qS)[o.T1]();T=(0,a._Q)(t,E)||(0,a._Q)(t,b)}return T}function K(e){if(void 0===e&&(e=null),!e){var t=j()||{};e=t?(t[o.qV]||s.qS)[o.T1]():s.qS}var n=(e||s.qS)[o.T1]();if((0,a._Q)(n,E)){var r=k()||{};return Math.max(parseInt(n[o.w6](E)[1]),r[l]||0)}if((0,a._Q)(n,b)){var i=parseInt(n[o.w6](b)[1]);if(i)return i+4}return null}function Y(e){var t=Object[r.hB].toString[o._S](e),n=s.qS;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[o.I]+"'":V()&&(n=q().stringify(e)),t+n}function Q(e){if(!e||!(0,a.HD)(e)){var t=j()||{};e=t?(t[o.qV]||s.qS)[o.T1]():s.qS}return(e||s.qS)[o.T1]()[o.ou]("safari")>=0}function X(){return null===A&&(A=M()&&Boolean(j().sendBeacon)),A}function J(e){var t=!1;try{t=!!x("fetch");var n=x("Request");t&&e&&n&&(t=I(n,"keepalive"))}catch(e){}return t}function Z(){return null===w&&(w=typeof XDomainRequest!==r.jA)&&ee()&&(w=w&&!I(x(S),"withCredentials")),w}function ee(){var e=!1;try{e=!!x(S)}catch(e){}return e}function te(e,t){if(e)for(var n=0;n<e[o.R5];n++){var r=e[n];if(r[o.I]&&r[o.I]===t)return r}return{}}function ne(e){var t=k();return t&&e?te(t.querySelectorAll("meta"),e).content:null}function re(e){var t,n=U();if(n){var r=n.getEntriesByType("navigation")||[];t=te((r[o.R5]>0?r[0]:{}).serverTiming,e).description}return t}function ie(e,t){return!!(e&&e.dispatchEvent&&t)&&(e.dispatchEvent(t),!0)}function oe(e,t){var n=null,r={detail:t||null};if((0,a.mf)(CustomEvent))n=new CustomEvent(e,r);else{var i=k();i&&i.createEvent&&(n=i.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r)}return n}function ae(e,t,n){var r=(0,i.Rd)();if(r&&r.CustomEvent)try{return ie(r,oe(e,{cfg:t||null,customDetails:n||null}))}catch(e){}return!1}},1318:(e,t,n)=>{"use strict";n.d(t,{C1:()=>F,C9:()=>$,Ib:()=>L,JA:()=>q,QY:()=>k,TJ:()=>G,XO:()=>D,Yl:()=>W,c9:()=>V,jU:()=>N,nD:()=>z,nJ:()=>U,pD:()=>j,pZ:()=>M,um:()=>I,yw:()=>H});var r=n(6474),i=n(8530),o=n(1167),a=n(3161),s=n(9556),c="on",u="attachEvent",l="addEventListener",p="detachEvent",d="removeEventListener",f="events",h="visibilitychange",v="pagehide",g="pageshow",m="unload",_="beforeunload",y=(0,i.J)("aiEvtPageHide"),E=(0,i.J)("aiEvtPageShow"),b=/\.[\.]+/g,S=/[\.]+$/,T=1,P=(0,i.K)("events"),C=/^([^.]*)(?:\.(.+)|)/;function w(e){return e&&e[r.i7]?e[r.i7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.qS):e}function A(e,t){var n;if(t){var i=s.qS;(0,a.kJ)(t)?(i=s.qS,(0,a.tO)(t,(function(e){(e=w(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=w(t),i&&("."!==i[0]&&(i="."+i),e=(e||s.qS)+i)}var o=C.exec(e||s.qS)||[];return(n={})[r.P6]=o[1],n.ns=(o[2]||s.qS).replace(b,".").replace(S,s.qS)[r.w6](".").sort().join("."),n}function I(e,t,n){var i=[],o=P.get(e,f,{},!1),c=A(t,n);return(0,a.rW)(o,(function(e,t){(0,a.tO)(t,(function(e){var t;c[r.P6]&&c[r.P6]!==e.evtName[r.P6]||c.ns&&c.ns!=c.ns||i[r.MW](((t={})[r.I]=e.evtName[r.P6]+(e.evtName.ns?"."+e.evtName.ns:s.qS),t.handler=e[r.Kn],t))}))})),i}function O(e,t,n){void 0===n&&(n=!0);var r=P.get(e,f,{},n),i=r[t];return i||(i=r[t]=[]),i}function x(e,t,n,i){e&&t&&t[r.P6]&&(e[d]?e[d](t[r.P6],n,i):e[p]&&e[p](c+t[r.P6],n))}function R(e,t,n,i){for(var o=t[r.R5];o--;){var a=t[o];a&&(n.ns&&n.ns!==a.evtName.ns||i&&!i(a)||(x(e,a.evtName,a[r.Kn],a.capture),t[r.cb](o,1)))}}function N(e,t){return t?A("xx",(0,a.kJ)(t)?[e].concat(t):[e,t]).ns[r.w6]("."):e}function D(e,t,n,i,o){var a;void 0===o&&(o=!1);var s=!1;if(e)try{var p=A(t,i);if(s=function(e,t,n,i){var o=!1;return e&&t&&t[r.P6]&&n&&(e[l]?(e[l](t[r.P6],n,i),o=!0):e[u]&&(e[u](c+t[r.P6],n),o=!0)),o}(e,p,n,o),s&&P.accept(e)){var d=((a={guid:T++,evtName:p})[r.Kn]=n,a.capture=o,a);O(e,p.type)[r.MW](d)}}catch(e){}return s}function k(e,t,n,i,o){if(void 0===o&&(o=!1),e)try{var s=A(t,i),c=!1;!function(e,t,n){if(t[r.P6])R(e,O(e,t[r.P6]),t,n);else{var i=P.get(e,f,{});(0,a.rW)(i,(function(r,i){R(e,i,t,n)})),0===(0,a.FY)(i)[r.R5]&&P.kill(e,f)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Kn]!==n||(c=!0,0))})),c||x(e,s,n,o)}catch(e){}}function M(e,t,n,r){return void 0===r&&(r=!1),D(e,t,n,null,r)}function j(e,t,n,r){void 0===r&&(r=!1),k(e,t,n,null,r)}function L(e,t,n){var r=!1,i=(0,o.Jj)();i&&(r=D(i,e,t,n),r=D(i.body,e,t,n)||r);var a=(0,o.Me)();return a&&(r=D(a,e,t,n)||r),r}function F(e,t,n){var r=(0,o.Jj)();r&&(k(r,e,t,n),k(r.body,e,t,n));var i=(0,o.Me)();i&&k(i,e,t,n)}function B(e,t,n,i){var o=!1;return t&&e&&e[r.R5]>0&&(0,a.tO)(e,(function(e){e&&(n&&-1!==(0,a.UA)(n,e)||(o=L(e,t,i)||o))})),o}function H(e,t,n,i){var o=!1;return t&&e&&(0,a.kJ)(e)&&!(o=B(e,t,n,i))&&n&&n[r.R5]>0&&(o=B(e,t,null,i)),o}function U(e,t,n){e&&(0,a.kJ)(e)&&(0,a.tO)(e,(function(e){e&&F(e,t,n)}))}function V(e,t,n){return H([_,m,v],e,t,n)}function q(e,t){U([_,m,v],e,t)}function G(e,t,n){var r=N(y,n),i=B([v],e,t,r);return t&&-1!==(0,a.UA)(t,h)||(i=B([h],(function(t){var n=(0,o.Me)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=G(e,null,n)),i}function $(e,t){var n=N(y,t);U([v],e,n),U([h],null,n)}function z(e,t,n){var r=N(E,n),i=B([g],e,t,r);return!(i=B([h],(function(t){var n=(0,o.Me)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||i)&&t&&(i=z(e,null,n)),i}function W(e,t){var n=N(E,t);U([g],e,n),U([h],null,n)}},3161:(e,t,n)=>{"use strict";n.d(t,{Ax:()=>xe,BX:()=>H,F:()=>Se,FL:()=>ve,FY:()=>pe,Gf:()=>G,HD:()=>J,Hb:()=>k,Id:()=>z,J_:()=>Y,Kn:()=>V,Mr:()=>ae,Mu:()=>M,Oi:()=>Ae,PO:()=>ne,UA:()=>oe,VZ:()=>X,Vb:()=>Ie,Xi:()=>ge,Xz:()=>se,Y6:()=>re,Ym:()=>j,_A:()=>he,_Q:()=>K,_y:()=>Pe,cf:()=>we,fQ:()=>Te,hj:()=>Z,hl:()=>Oe,jj:()=>_e,jn:()=>ee,kJ:()=>Q,l_:()=>de,le:()=>B,m6:()=>me,mf:()=>q,mm:()=>Re,nd:()=>ce,nr:()=>U,o8:()=>L,pT:()=>F,qK:()=>Ee,rW:()=>$,sO:()=>ye,tO:()=>ie,v4:()=>be,xe:()=>W,yk:()=>te});var r=n(2589),i=n(8785),o=n(6474),a=n(9556),s="toISOString",c="endsWith",u="startsWith",l="indexOf",p="map",d="reduce",f="trim",h="toString",v="__proto__",g="constructor",m=r.RJ,_=r.Pw.freeze,y=r.Pw.seal,E=r.Pw.keys,b=String[r.hB],S=b[f],T=b[c],P=b[u],C=Date[r.hB][s],w=Array.isArray,A=r.V4[h],I=r.CY[h],O=I[o._S](r.Pw),x=/-([a-z])/g,R=/([^\w\d_$])/g,N=/^(\d+[\w\d_$])/,D=Object.getPrototypeOf;function k(e){if(e){if(D)return D(e);var t=e[v]||e[r.hB]||e[g];if(t)return t}return null}function M(e){return A[o._S](e)}function j(e,t){return typeof e===t}function L(e){return void 0===e||typeof e===r.jA}function F(e){return!L(e)}function B(e){return null===e||L(e)}function H(e){return!B(e)}function U(e,t){return!(!e||!r.CY[o._S](e,t))}function V(e){return!(!e||typeof e!==r.fK)}function q(e){return!(!e||typeof e!==r.cb)}function G(e){var t=e;return t&&J(t)&&(t=(t=(t=t[o.i7](x,(function(e,t){return t.toUpperCase()})))[o.i7](R,"_"))[o.i7](N,(function(e,t){return"_"+t}))),t}function $(e,t){if(e)for(var n in e)r.CY[o._S](e,n)&&t[o._S](e,n,e[n])}function z(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=T?e[c](t):function(e,t){var n=!1,r=t?t[o.R5]:0,i=e?e[o.R5]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var a=i-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function W(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=P?e[u](t):function(e,t){var n=!1,r=t?t[o.R5]:0;if(e&&r&&e[o.R5]>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n}function K(e,t){return!(!e||!t)&&-1!==e[o.ou](t)}function Y(e){return!(!e||"[object Date]"!==A[o._S](e))}var Q=w||function(e){return!(!e||"[object Array]"!==A[o._S](e))};function X(e){return!(!e||"[object Error]"!==A[o._S](e))}function J(e){return"string"==typeof e}function Z(e){return"number"==typeof e}function ee(e){return"boolean"==typeof e}function te(e){return"symbol"==typeof e}function ne(e){var t=!1;if(e&&"object"==typeof e){var n=D?D(e):k(e);n?(n[g]&&r.CY[o._S](n,g)&&(n=n[g]),t=typeof n===r.cb&&I[o._S](n)===O):t=!0}return t}function re(e){if(e)return C?e[s]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[o.R5]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function ie(e,t,n){var r=e[o.R5];try{for(var i=0;i<r&&(!(i in e)||-1!==t[o._S](n||e,e[i],i,e));i++);}catch(e){}}function oe(e,t,n){if(e){if(e[l])return e[l](t,n);var r=e[o.R5],i=n||0;try{for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(e){}}return-1}function ae(e,t,n){var r;if(e){if(e[p])return e[p](t,n);var i=e[o.R5],a=n||e;r=new Array(i);try{for(var s=0;s<i;s++)s in e&&(r[s]=t[o._S](a,e[s],e))}catch(e){}}return r}function se(e,t,n){var r;if(e){if(e[d])return e[d](t,n);var i=e[o.R5],a=0;if(arguments[o.R5]>=3)r=arguments[2];else{for(;a<i&&!(a in e);)a++;r=e[a++]}for(;a<i;)a in e&&(r=t(r,e[a],a,e)),a++}return r}function ce(e){return e&&(e=S&&e[f]?e[f]():e[o.i7]?e[o.i7](/^\s+|(?=\s)\s+$/g,a.qS):e),e}var ue=!{toString:null}.propertyIsEnumerable("toString"),le=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function pe(e){var t=typeof e;if(t===r.cb||t===r.fK&&null!==e||(0,i.ZU)("objKeys called on non-object"),!ue&&E)return E(e);var n=[];for(var a in e)e&&r.CY[o._S](e,a)&&n[o.MW](a);if(ue)for(var s=le[o.R5],c=0;c<s;c++)e&&r.CY[o._S](e,le[c])&&n[o.MW](le[c]);return n}function de(e,t,n,r){if(m)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),m(e,t,i),!0}catch(e){}return!1}function fe(e){return e}function he(e){return _&&$(e,(function(e,t){(Q(t)||V(t))&&_(t)})),ve(e)}var ve=_||fe,ge=y||fe;function me(){var e=Date;return e.now?e.now():(new e).getTime()}function _e(e){return X(e)?e[o.I]:a.qS}function ye(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function Ee(e,t,n){var r;return e?!(r=e[t])&&B(r)&&(r=L(n)?{}:n,e[t]=r):r=L(n)?{}:n,r}function be(e,t){return B(e)?t:e}function Se(e){return!e}function Te(e){return!!e}function Pe(e){throw new Error(e)}function Ce(e,t){var n=null,r=null;return q(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][o.ZV](r,e)}}function we(e,t,n){if(e&&t&&V(e)&&V(t)){var r=function(r){if(J(r)){var i=t[r];q(i)?n&&!n(r,!0,t,e)||(e[r]=Ce(t,r)):n&&!n(r,!1,t,e)||(U(e,r)&&delete e[r],de(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e}function Ae(e,t,n,r,i){e&&t&&n&&(!1!==i||L(e[t]))&&(e[t]=Ce(n,r))}function Ie(e,t,n,r){return e&&t&&V(e)&&Q(n)&&ie(n,(function(n){J(n)&&Ae(e,n,t,n,r)})),e}function Oe(e){return function(){var t=this;e&&$(e,(function(e,n){t[e]=n}))}}function xe(e){return e&&r.rl&&(e=(0,r.Pw)((0,r.rl)({},e))),e}function Re(e,t,n,i,a,s){var c=arguments,u=c[0]||{},l=c[o.R5],p=!1,d=1;for(l>0&&ee(u)&&(p=u,u=c[d]||{},d++),V(u)||(u={});d<l;d++){var f=c[d],h=Q(f),v=V(f);for(var g in f)if(h&&g in f||v&&r.CY[o._S](f,g)){var m=f[g],_=void 0;if(p&&m&&((_=Q(m))||ne(m))){var y=u[g];_?Q(y)||(y=[]):ne(y)||(y={}),m=Re(p,y,m)}void 0!==m&&(u[g]=m)}}return u}},9556:(e,t,n)=>{"use strict";n.d(t,{$F:()=>f,C$:()=>v,DN:()=>a,Z:()=>i,Zh:()=>c,cL:()=>m,f_:()=>h,hL:()=>l,js:()=>u,kl:()=>_,mE:()=>s,oV:()=>o,qS:()=>r,uC:()=>d,yi:()=>p,ys:()=>g});var r="",i="channels",o="core",a="createPerfMgr",s="disabled",c="extensionConfig",u="extensions",l="processTelemetry",p="priority",d="eventsSent",f="eventsDiscarded",h="eventsSendRequest",v="perfEvent",g="errorToConsole",m="warnToConsole",_="getPerfMgr"},6329:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var r=n(9798),i=n(6474),o=n(3161),a=n(9556);function s(e,t,n,r){(0,o.tO)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var c=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,r.Z)(e,this,(function(e){e[i.g]=function(t){e.listeners[i.MW](t)},e[i.n7]=function(t){for(var n=(0,o.UA)(e[i.dE],t);n>-1;)e.listeners[i.cb](n,1),n=(0,o.UA)(e[i.dE],t)},e[a.uC]=function(t){s(e[i.dE],a.uC,!0,(function(e){e[a.uC](t)}))},e[a.$F]=function(t,n){s(e[i.dE],a.$F,!0,(function(e){e[a.$F](t,n)}))},e[a.f_]=function(t,n){s(e[i.dE],a.f_,n,(function(e){e[a.f_](t,n)}))},e[a.C$]=function(t){t&&(!n&&t[i.PL]()||s(e[i.dE],a.C$,!1,(function(e){t[i.d]?setTimeout((function(){return e[a.C$](t)}),0):e[a.C$](t)})))}}))}return e.__ieDyn=1,e}()},2753:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>d,Lm:()=>h,j5:()=>g,tQ:()=>v,zn:()=>p});var r=n(9798),i=n(6474),o=n(3161),a=n(9556),s="ctx",c="ParentContextKey",u="ChildrenContextKey",l=null,p=function(){function e(t,n,r){var a,l=this,p=!1;l.start=(0,o.m6)(),l[i.I]=t,l[i.d]=r,l[i.PL]=function(){return!1},(0,o.mf)(n)&&(p=(0,o.l_)(l,"payload",(function(){return!a&&(0,o.mf)(n)&&(a=n(),n=null),a}))),l[i.T]=function(t){return t?t===e[c]||t===e[u]?l[t]:(l[s]||{})[t]:null},l[i.wu]=function(t,n){t&&(t===e[c]?(l[t]||(l[i.PL]=function(){return!0}),l[t]=n):t===e[u]?l[t]=n:(l[s]=l[s]||{})[t]=n)},l[i.Km]=function(){var t=0,r=l[i.T](e[u]);if((0,o.kJ)(r))for(var a=0;a<r[i.R5];a++){var s=r[a];s&&(t+=s[i.Z_])}l[i.Z_]=(0,o.m6)()-l.start,l.exTime=l[i.Z_]-t,l[i.Km]=function(){},!p&&(0,o.mf)(n)&&(l.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),d=function(){function e(t){this.ctx={},(0,r.Z)(e,this,(function(e){e.create=function(e,t,n){return new p(e,t,n)},e.fire=function(e){e&&(e[i.Km](),t&&(0,o.mf)(t[a.C$])&&t[a.C$](e))},e[i.wu]=function(t,n){t&&((e[s]=e[s]||{})[t]=n)},e[i.T]=function(t){return(e[s]||{})[t]}}))}return e.__ieDyn=1,e}(),f="CoreUtils.doPerf";function h(e,t,n,r,o){if(e){var s=e;if(s[a.kl]&&(s=s[a.kl]()),s){var l=void 0,d=s[i.T](f);try{if(l=s.create(t(),r,o)){if(d&&l[i.wu]&&(l[i.wu](p[c],d),d[i.T]&&d[i.wu])){var h=d[i.T](p[u]);h||(h=[],d[i.wu](p[u],h)),h[i.MW](l)}return s[i.wu](f,l),n(l)}}catch(e){l&&l[i.wu]&&l[i.wu]("exception",e)}finally{l&&s.fire(l),s[i.wu](f,d)}}}return n()}function v(e){l=e}function g(){return l}},877:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>g,CD:()=>v,Vi:()=>y,jV:()=>_,xy:()=>m});var r=n(6474),i=n(4300),o=n(1167),a=n(3161),s=n(9556),c=n(2753),u=n(3656),l="TelemetryPluginChain",p="_hasRun",d="_getTelCtx",f=0;function h(e,t,n,c){var u=null,l=[];null!==c&&(u=c?function(e,t,n){for(;e;){if(e[r.TO]()===n)return e;e=e[r.W2]()}return _([n],t[r.TC]||{},t)}(e,n,c):e);var p={_next:function(){var e=u;if(u=e?e[r.W2]():null,!e){var t=l;t&&t[r.R5]>0&&((0,a.tO)(t,(function(e){try{e.func[r._S](e.self,e.args)}catch(e){(0,i.kP)(n[r.eZ],2,73,"Unexpected Exception during onComplete - "+(0,o.eU)(e))}})),l=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,i.vH)(n,t)},getCfg:function(){return t},getExtCfg:d,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=d(e,null);return o&&!(0,a.le)(o[n])?i=o[n]:t&&!(0,a.le)(t[n])&&(i=t[n]),(0,a.le)(i)?r:i},hasNext:function(){return!!u},getNext:function(){return u},setNext:function(e){u=e},iterate:function(e){for(var t;t=p._next();){var n=t[r.TO]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&l[r.MW]({func:e,self:(0,a.o8)(t)?p.ctx:t,args:n})}}};function d(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t[s.Zh];o&&e&&(i=o[e])}if(i){if((0,a.Kn)(n)&&0!==r){var c=(0,a.mm)(!0,n,i);t&&2===r&&(0,a.rW)(n,(function(e){if((0,a.le)(c[e])){var n=t[e];(0,a.le)(n)||(c[e]=n)}})),i=c}}else i=n;return i}return p}function v(e,t,n,i){var o=h(e,t,n,i),c=o.ctx;return c[r.uL]=function(e){var t=o._next();return t&&t[s.hL](e,c),!t},c[r.zV]=function(e,i){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=_(e,t,n,i)),v(e||c[r.W2](),t,n,i)},c}function g(e,t,n){var i=t[r.TC]||{},o=h(e,i,t,n),s=o.ctx;return s[r.uL]=function(e){var t=o._next();return t&&t.unload(s,e),!t},s[r.zV]=function(e,n){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=_(e,i,t,n)),g(e||s[r.W2](),t,n)},s}function m(e,t,n){var i=t[r.TC]||{},o=h(e,i,t,n).ctx;return o[r.uL]=function(e){return o.iterate((function(t){(0,a.mf)(t[r.Tu])&&t[r.Tu](o,e)}))},o[r.zV]=function(e,n){return void 0===e&&(e=null),(0,a.kJ)(e)&&(e=_(e,i,t,n)),m(e||o[r.W2](),t,n)},o}function _(e,t,n,h){var g=null,m=!h;if((0,a.kJ)(e)&&e[r.R5]>0){var y=null;(0,a.tO)(e,(function(e){if(m||h!==e||(m=!0),m&&e&&(0,a.mf)(e[s.hL])){var _=function(e,t,n){var h,g=null,m=(0,a.mf)(e[s.hL]),_=(0,a.mf)(e[r.Jd]),y={getPlugin:function(){return e},getNext:function(){return g},processTelemetry:function(i,o){E(o=o||function(){var r;return e&&(0,a.mf)(e[d])&&(r=e[d]()),r||(r=v(y,t,n)),r}(),(function(t){if(!e||!m)return!1;var n=(0,u.OY)(e);return!n[r.fi]&&!n[s.mE]&&(_&&e[r.Jd](g),e[s.hL](i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||o[r.uL](i)},unload:function(t,n){E(t,(function(){var i=!1;if(e){var o=(0,u.OY)(e),a=e[s.oV]||o[s.oV];!e||a&&a!==t.core()||o[r.fi]||(o[s.oV]=null,o[r.fi]=!0,o[r.yl]=!1,e[r.fi]&&!0===e[r.fi](t,n)&&(i=!0))}return i}),"unload",(function(){}),n[r.d])||t[r.uL](n)},update:function(t,n){E(t,(function(){var i=!1;if(e){var o=(0,u.OY)(e),a=e[s.oV]||o[s.oV];!e||a&&a!==t.core()||o[r.fi]||e[r.Tu]&&!0===e[r.Tu](t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t[r.uL](n)},_id:h=e?e[r.pZ]+"-"+e[s.yi]+"-"+f++:"Unknown-0-"+f++,_setNext:function(e){g=e}};function E(t,n,a,u,d){var f=!1,v=e?e[r.pZ]:l,m=t[p];return m||(m=t[p]={}),t.setNext(g),e&&(0,c.Lm)(t[s.oV](),(function(){return v+":"+a}),(function(){m[h]=!0;try{var e=g?g._id:s.qS;e&&(m[e]=!1),f=n(t)}catch(e){var c=!g||m[g._id];c&&(f=!0),g&&c||(0,i.kP)(t[r.mc](),1,73,"Plugin ["+v+"] failed during "+a+" - "+(0,o.eU)(e)+", run flags: "+(0,o.eU)(m))}}),u,d),f}return(0,a.FL)(y)}(e,t,n);g||(g=_),y&&y._setNext(_),y=_}}))}return h&&!g?_([h],t,n):g}var y=function(e,t,n,r){var i=v(e,t,n,r);(0,a.Vb)(this,i,(0,a.FY)(i))}},395:(e,t,n)=>{"use strict";n.d(t,{CN:()=>g,F6:()=>m,_l:()=>v,az:()=>h,pZ:()=>_});var r=n(6474),i=n(1167),o=n(3161),a=n(9556),s=4294967296,c=4294967295,u=!1,l=123456789,p=987654321;function d(e){e<0&&(e>>>=0),l=123456789+e&c,p=987654321-e&c,u=!0}function f(){try{var e=2147483647&(0,o.m6)();d((Math.random()*s^e)+e)}catch(e){}}function h(e){return e>0?Math.floor(v()/c*(e+1))>>>0:0}function v(e){var t=0,n=(0,i.MX)()||(0,i.gz)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,i.w1)()&&(u||f(),t=m()&c),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function g(e){e?d(e):f()}function m(e){var t=((p=36969*(65535&p)+(p>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function _(e){void 0===e&&(e=22);for(var t=v()>>>0,n=0,i=a.qS;i[r.R5]<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(v()<<2&4294967295|3&t)>>>0,n=0);return i}},3656:(e,t,n)=>{"use strict";n.d(t,{AA:()=>p,HD:()=>d,OY:()=>u,Yn:()=>f,bP:()=>l});var r=n(6474),i=n(8530),o=n(3161),a=n(9556),s=n(1579),c=(0,i.K)("plugin");function u(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,i=[],s=null,c=e[r.W2]();c;){var l=c[r.TO]();l&&(s&&(0,o.mf)(s[r.Jd])&&(0,o.mf)(l[a.hL])&&s[r.Jd](l),((0,o.mf)(l[r.yl])?l[r.yl]():(n=u(l))[r.yl])||i[r.MW](l),s=l,c=c[r.W2]())}(0,o.tO)(i,(function(i){var o=e[a.oV]();i[r.VL](e.getCfg(),o,t,e[r.W2]()),n=u(i),i[a.oV]||n[a.oV]||(n[a.oV]=o),n[r.yl]=!0,delete n[r.fi]}))}function p(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,o.mf)(t[a.hL]);(0,o.mf)(e[a.hL])?n=r?e[a.yi]-t[a.yi]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function d(e,t,n,i){var a=0;return function i(){for(;a<e[r.R5];){var s=e[a++];if(s){var c=s._doUnload||s[r.F3];if((0,o.mf)(c)&&!0===c[r._S](s,t,n,i))return!0}}}()}function f(e){var t={};return{getName:function(){return t[r.I]},setName:function(n){e&&e.setName(n),t[r.I]=n},getTraceId:function(){return t[r.nY]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.jN)(n)&&(t[r.nY]=n)},getSpanId:function(){return t[r._d]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.Lc)(n)&&(t[r._d]=n)},getTraceFlags:function(){return t[r.T0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.T0]=n}}}},6930:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(6474),i=n(4300),o=n(1167),a=n(3161);function s(){var e=[];return{add:function(t){t&&e[r.MW](t)},run:function(t,n){(0,a.tO)(e,(function(e){try{e(t,n)}catch(e){(0,i.kP)(t[r.mc](),2,73,"Unexpected error calling unload handler - "+(0,o.eU)(e))}})),e=[]}}}},1579:(e,t,n)=>{"use strict";n.d(t,{J6:()=>E,Lc:()=>y,Pn:()=>b,SU:()=>g,aR:()=>S,jN:()=>_,j_:()=>m,lq:()=>T});var r=n(6474),i=n(821),o=n(1167),a=n(3161),s=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,c="00",u="ff",l="00000000000000000000000000000000",p="0000000000000000",d=1;function f(e,t,n){return!(!e||e[r.R5]!==t||e===n||!e.match(/^[\da-f]*$/))}function h(e,t,n){return f(e,t)?e:n}function v(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.R5]<2;)t="0"+t;return t}function g(e,t,n,o){var a;return(a={})[r.PA]=f(o,2,u)?o:c,a[r.nY]=_(e)?e:(0,i.DO)(),a.spanId=y(t)?t:(0,i.DO)()[r.Jn](0,16),a.traceFlags=n>=0&&n<=255?n:1,a}function m(e){var t;if(!e)return null;if((0,a.kJ)(e)&&(e=e[0]||""),!e||!(0,a.HD)(e)||e[r.R5]>8192)return null;var n=s.exec((0,a.nd)(e));return n&&n[1]!==u&&n[2]!==l&&n[3]!==p?((t={})[r.PA]=n[1],t[r.nY]=n[2],t[r._d]=n[3],t[r.T0]=parseInt(n[4],16),t):null}function _(e){return f(e,32,l)}function y(e){return f(e,16,p)}function E(e){return!!(e&&f(e[r.PA],2,u)&&f(e[r.nY],32,l)&&f(e[r._d],16,p)&&f(v(e[r.T0]),2))}function b(e){return!!E(e)&&(e[r.T0]&d)===d}function S(e){if(e){var t=v(e[r.T0]);f(t,2)||(t="01");var n=e[r.PA]||c;return"00"!==n&&"ff"!==n&&(n=c),"".concat(n,"-").concat(h(e.traceId,32,l),"-").concat(h(e.spanId,16,p),"-").concat(t)}return""}function T(){var e="traceparent",t=m((0,o.ed)(e));return t||(t=m((0,o.pI)(e))),t}},6474:(e,t,n)=>{"use strict";n.d(t,{$h:()=>B,F3:()=>I,Fc:()=>y,Fr:()=>G,Gc:()=>C,I:()=>i,Jd:()=>N,Jn:()=>H,Km:()=>ee,Kn:()=>Y,LS:()=>_,Lk:()=>k,MW:()=>s,P6:()=>K,PA:()=>ie,PL:()=>X,R5:()=>d,SD:()=>v,T:()=>J,T0:()=>re,T1:()=>z,TC:()=>u,TO:()=>E,Tu:()=>O,VL:()=>r,W2:()=>x,ZV:()=>V,Z_:()=>f,_S:()=>W,_d:()=>ne,cb:()=>T,d:()=>A,dE:()=>Q,eZ:()=>p,fi:()=>P,g:()=>g,gU:()=>w,i7:()=>q,iC:()=>S,jk:()=>$,kL:()=>b,mc:()=>R,n7:()=>m,nY:()=>te,ou:()=>M,p$:()=>l,pZ:()=>a,qV:()=>L,tb:()=>o,uL:()=>h,w6:()=>F,wu:()=>Z,xv:()=>U,yl:()=>c,zV:()=>D,zc:()=>j});var r="initialize",i="name",o="getNotifyMgr",a="identifier",s="push",c="isInitialized",u="config",l="instrumentationKey",p="logger",d="length",f="time",h="processNext",v="getProcessTelContext",g="addNotificationListener",m="removeNotificationListener",_="stopPollingInternalLogs",y="onComplete",E="getPlugin",b="flush",S="_extensions",T="splice",P="teardown",C="messageId",w="message",A="isAsync",I="_doTeardown",O="update",x="getNext",R="diagLog",N="setNextPlugin",D="createNew",k="cookieCfg",M="indexOf",j="substring",L="userAgent",F="split",B="setEnabled",H="substr",U="nodeType",V="apply",q="replace",G="enableDebugExceptions",$="logInternalMessage",z="toLowerCase",W="call",K="type",Y="handler",Q="listeners",X="isChildEvt",J="getCtx",Z="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",ie="version"},4719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>o.F,BaseCore:()=>a.A,BaseTelemetryPlugin:()=>s.i,CoreUtils:()=>u.Tr,DiagnosticLogger:()=>_.AQ,EventHelper:()=>u.zB,EventsDiscardedReason:()=>i.h,InstrumentEvent:()=>D,InstrumentFunc:()=>R,InstrumentFuncs:()=>N,InstrumentProto:()=>I,InstrumentProtos:()=>O,LoggingSeverity:()=>b.X,MinChannelPriorty:()=>r.p,NotificationManager:()=>g.f,PerfEvent:()=>m.zn,PerfManager:()=>m.Jk,ProcessTelemetryContext:()=>y.Vi,Undefined:()=>u.Px,_InternalLogMessage:()=>_.lQ,_InternalMessageId:()=>b.v,__getRegisteredEvents:()=>d.um,_legacyCookieMgr:()=>u.pP,_logInternalMessage:()=>_.L4,_throwInternal:()=>_.kP,_warnToConsole:()=>_.jV,addEventHandler:()=>d.Ib,addEventListeners:()=>d.yw,addPageHideEventListener:()=>d.TJ,addPageShowEventListener:()=>d.nD,addPageUnloadEventListener:()=>d.c9,areCookiesSupported:()=>k.p7,arrForEach:()=>l.tO,arrIndexOf:()=>l.UA,arrMap:()=>l.Mr,arrReduce:()=>l.Xz,attachEvent:()=>d.pZ,canUseCookies:()=>u.vn,createClassFromInterface:()=>l.hl,createCookieMgr:()=>k.Nz,createCustomDomEvent:()=>f.Nd,createEnumMap:()=>p.uj,createEnumStyle:()=>p.By,createProcessTelemetryContext:()=>y.CD,createTraceParent:()=>F.SU,createUniqueNamespace:()=>j.J,createUnloadHandlerContainer:()=>L.Y,createValueMap:()=>p.cc,dateNow:()=>l.m6,deepFreeze:()=>l._A,deleteCookie:()=>u.kT,detachEvent:()=>d.pD,disableCookies:()=>u.oF,dispatchEvent:()=>f.Nu,doPerf:()=>m.Lm,dumpObj:()=>f.eU,eventOff:()=>d.QY,eventOn:()=>d.XO,findMetaTag:()=>f.ed,findNamedServerTiming:()=>f.pI,findW3cTraceParent:()=>F.lq,formatTraceParent:()=>F.aR,generateW3CId:()=>u.DO,getConsole:()=>f.dr,getCookie:()=>u.ej,getCrypto:()=>f.MX,getDebugExt:()=>M.j,getDebugListener:()=>M.p,getDocument:()=>f.Me,getExceptionName:()=>l.jj,getGblPerfMgr:()=>m.j5,getGlobal:()=>h.Rd,getGlobalInst:()=>f.a8,getHistory:()=>f.s1,getIEVersion:()=>f.sA,getJSON:()=>f.xA,getLocation:()=>f.k$,getMsCrypto:()=>f.gz,getNavigator:()=>f.jW,getPerformance:()=>f.r,getSetValue:()=>l.qK,getWindow:()=>f.Jj,hasDocument:()=>f.Nv,hasHistory:()=>f.fE,hasJSON:()=>f.nS,hasNavigator:()=>f.d6,hasOwnProperty:()=>l.nr,hasWindow:()=>f.Ym,initializePlugins:()=>E.bP,isArray:()=>l.kJ,isBeaconsSupported:()=>f.MF,isBoolean:()=>l.jn,isDate:()=>l.J_,isError:()=>l.VZ,isFetchSupported:()=>f.JO,isFunction:()=>l.mf,isIE:()=>f.w1,isNotNullOrUndefined:()=>l.BX,isNotTruthy:()=>l.F,isNotUndefined:()=>l.pT,isNullOrUndefined:()=>l.le,isNumber:()=>l.hj,isObject:()=>l.Kn,isPlainObject:()=>l.PO,isReactNative:()=>f.b$,isSafari:()=>f.G6,isSampledFlag:()=>F.Pn,isString:()=>l.HD,isSymbol:()=>l.yk,isTruthy:()=>l.fQ,isTypeof:()=>l.Ym,isUndefined:()=>l.o8,isValidSpanId:()=>F.Lc,isValidTraceId:()=>F.jN,isValidTraceParent:()=>F.J6,isXhrSupported:()=>f.Z3,mergeEvtNamespace:()=>d.jU,mwcRandom32:()=>c.F6,mwcRandomSeed:()=>c.CN,newGuid:()=>u.GW,newId:()=>c.pZ,normalizeJsName:()=>l.Gf,objCreate:()=>h.pu,objDefineAccessors:()=>l.l_,objExtend:()=>l.mm,objForEachKey:()=>l.rW,objFreeze:()=>l.FL,objKeys:()=>l.FY,objSeal:()=>l.Xi,objToString:()=>l.Mu,optimizeObject:()=>l.Ax,parseTraceParent:()=>F.j_,perfNow:()=>u.Jj,proxyAssign:()=>l.cf,proxyFunctionAs:()=>l.Oi,proxyFunctions:()=>l.Vb,random32:()=>c._l,randomValue:()=>c.az,removeEventHandler:()=>d.C1,removeEventListeners:()=>d.nJ,removePageHideEventListener:()=>d.C9,removePageShowEventListener:()=>d.Yl,removePageUnloadEventListener:()=>d.JA,safeGetCookieMgr:()=>k.JP,safeGetLogger:()=>_.vH,sendCustomEvent:()=>f.Kf,setCookie:()=>u.d8,setEnableEnvMocks:()=>f.dI,setGblPerfMgr:()=>m.tQ,setValue:()=>l.sO,sortPlugins:()=>E.AA,strContains:()=>l._Q,strEndsWith:()=>l.Id,strFunction:()=>v.cb,strObject:()=>v.fK,strPrototype:()=>v.hB,strStartsWith:()=>l.xe,strTrim:()=>l.nd,strUndefined:()=>v.jA,throwError:()=>l._y,toISOString:()=>l.Y6,uaDisallowsSameSiteNone:()=>k.UY,unloadComponents:()=>E.HD,useXDomainRequest:()=>f.cp});var r=n(978),i=n(4641),o=n(8176),a=n(4770),s=n(1549),c=n(395),u=n(821),l=n(3161),p=n(1785),d=n(1318),f=n(1167),h=n(8785),v=n(2589),g=n(6329),m=n(2753),_=n(4300),y=n(877),E=n(3656),b=n(8712),S=n(6474),T="_aiHooks",P=["req","rsp","hkErr","fnErr"];function C(e,t){if(e)for(var n=0;n<e[S.R5]&&!t(e[n],n);n++);}function w(e,t,n,r,i){i>=0&&i<=2&&C(e,(function(e,o){var a=e.cbks,s=a[P[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s[S.ZV](t.inst,n)}catch(e){var c=t.err;try{var u=a[P[2]];u&&(t.err=e,u[S.ZV](t.inst,n))}catch(e){}finally{t.err=c}}}}))}function A(e,t,n,r){var i=null;return e&&((0,l.nr)(e,t)?i=e:n&&(i=A((0,l.Hb)(e),t,r,!1))),i}function I(e,t,n){return e?R(e[v.hB],t,n,!1):null}function O(e,t,n){return e?N(e[v.hB],t,n,!1):null}function x(e,t,n,r){var i=n&&n[T];if(!i){var o=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[S.I]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,a=s([i],n)},t),o=[],a=s([i],n);function s(e,t){return C(t,(function(t){e[S.MW](t)})),e}i.evt=(0,f.a8)("event"),w(r,i,a,o,0);var c=e.f;if(c)try{i.rslt=c[S.ZV](this,n)}catch(e){throw i.err=e,w(r,i,a,o,3),e}return w(r,i,a,o,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});o[T]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;C(i.h,(function(t,n){if(t.id===e)return i.h[S.cb](n,1),1}))}};return i.i++,i.h[S.MW](a),a}function R(e,t,n,r,i){if(void 0===r&&(r=!0),e&&t&&n){var o=A(e,t,r,i);if(o){var a=o[t];if(typeof a===v.cb)return x(o,t,a,n)}}return null}function N(e,t,n,r,i){void 0===r&&(r=!0);var o=null;return C(t,(function(t){var a=R(e,t,n,r,i);a&&(o||(o=[]),o[S.MW](a))})),o}function D(e,t,n,r,i){if(e&&t&&n){var o=A(e,t,r,i)||e;if(o)return x(o,t,o[t],n)}return null}var k=n(8589),M=n(7485),j=n(8530),L=n(6930),F=n(1579)},9798:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>F});var i,o="undefined",a="constructor",s="prototype",c="function",u="_dynInstFuncs",l="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,v="_dfOpts",g="_unknown_",m="__proto__",_="_dyn"+m,y="__dynProto$Gbl",E="_dynInstProto",b="useBaseInst",S="setInstFuncs",T=Object,P=T.getPrototypeOf,C=T.getOwnPropertyNames,w=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),A=w[y]||(w[y]={o:(r={},r[S]=!0,r[b]=!0,r),n:1e3});function I(e,t){return e&&T[s].hasOwnProperty.call(e,t)}function O(e){return e&&(e===T[s]||e===Array[s])}function x(e){return O(e)||e===Function[s]}function R(e){var t;if(e){if(P)return P(e);var n=e[m]||e[s]||(e[a]?e[a][s]:null);t=e[_]||n,I(e,_)||(delete e[E],t=e[_]=e[E]||e[_],e[E]=n)}return t}function N(e,t){var n=[];if(C)n=C(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function M(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function j(e,t,n,r,i){if(!O(e)){var o=n[u]=n[u]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),N(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][l])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[u]||{};if((i=(o[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=R(e),l=[];a&&s&&!x(s)&&!M(l,s);){var d=s[t];if(d){a=d===r;break}l.push(s),s=R(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=R(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[l]=1,n}(e,t)))}))}}function L(e,t){return I(e,s)?e.name||t||g:((e||{})[a]||{}).name||t||g}function F(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(P){for(var n=[],r=R(t);r&&!x(r)&&!M(n,r);){if(r===e)return!0;n.push(r),r=R(r)}return!1}return!0})(i,t)||k("["+L(e)+"] not in hierarchy of ["+L(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+L(e,"_")+"$"+A.n,A.n++,i[p]=o);var a=F[v],c=!!a[b];c&&r&&void 0!==r[b]&&(c=!!r[b]);var f=function(e){var t={};return N(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),g=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[l]&&r){var o=e[u]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};N(n,(function(e){o[e]=i(t,n,e)}));for(var a=R(e),s=[];a&&!x(a)&&!M(s,a);)N(a,(function(e){!o[e]&&D(a,e,!P)&&(o[e]=i(t,a,e))})),s.push(a),a=R(a);return o}(i,t,f,c);n(t,g);var m=!!P&&!!a[S];m&&r&&(m=!!r[S]),j(i,o,t,f,!1!==m)}F[v]=A.o},2589:(e,t,n)=>{"use strict";n.d(t,{CY:()=>h,Pw:()=>u,RJ:()=>f,V4:()=>l,ak:()=>c,bO:()=>s,cb:()=>r,fK:()=>i,hB:()=>a,jA:()=>o,rl:()=>p,yu:()=>d});var r="function",i="object",o="undefined",a="prototype",s="hasOwnProperty",c="default",u=Object,l=u[a],p=u.assign,d=u.create,f=u.defineProperty,h=l[s]},8785:(e,t,n)=>{"use strict";n.d(t,{Rd:()=>o,ZU:()=>a,pu:()=>s});var r=n(2589),i=null;function o(e){void 0===e&&(e=!0);var t=!1===e?null:i;return t||(typeof globalThis!==r.jA&&(t=globalThis),t||typeof self===r.jA||(t=self),t||typeof window===r.jA||(t=window),t||typeof global===r.jA||(t=global),i=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.yu;if(t)return t(e);if(null==e)return{};var n=typeof e;function i(){}return n!==r.fK&&n!==r.cb&&a("Object prototype may only be an Object:"+e),i[r.hB]=e,new i}},3298:(e,t,n)=>{"use strict";n.d(t,{$h:()=>P,Cj:()=>b,DJ:()=>y,EU:()=>_,KG:()=>w,Lv:()=>v,V0:()=>m,an:()=>E,hw:()=>C,i9:()=>S,l9:()=>g,m:()=>A,ne:()=>h,uc:()=>d,zg:()=>T});var r=n(2589),i=n(8785),o=((0,i.Rd)()||{}).Symbol,a=((0,i.Rd)()||{}).Reflect,s=!!a,c="decorate",u="metadata",l="getOwnPropertySymbols",p="iterator",d=r.rl||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])r.V4[r.bO].call(t,o)&&(e[o]=t[o]);return e},f=function(e,t){return f=r.Pw.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.bO](n)&&(e[n]=t[n])},f(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==r.cb&&null!==t&&(0,i.ZU)("Class extends value "+String(t)+" is not a constructor or null"),f(e,t),e[r.hB]=null===t?(0,i.pu)(t):(n[r.hB]=t[r.hB],new n)}function v(e,t){var n={};for(var i in e)r.CY.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&typeof r.Pw[l]===r.cb)for(var o=0,a=r.Pw[l](e);o<a.length;o++)t.indexOf(a[o])<0&&r.V4.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function g(e,t,n,i){var o,u=arguments.length,l=u<3?t:null===i?i=r.Pw.getOwnPropertyDescriptor(t,n):i;if(s&&typeof a[c]===r.cb)l=a[c](e,t,n,i);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(l=(u<3?o(l):u>3?o(t,n,l):o(t,n))||l);return u>3&&l&&(0,r.RJ)(t,n,l),l}function m(e,t){return function(n,r){t(n,r,e)}}function _(e,t){if(s&&a[u]===r.cb)return a[u](e,t)}function y(e,t){for(var n in e)n===r.ak||r.CY.call(t,n)||E(t,e,n)}function E(e,t,n,i){void 0===i&&(i=n),r.yu?(0,r.RJ)(e,i,{enumerable:!0,get:function(){return t[n]}}):e[i]=t[n]}function b(e){var t=typeof o===r.cb&&o[p],n=t&&e[t],a=0;return n?n.call(e):e&&"number"==typeof e.length?{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}}:void(0,i.ZU)(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function S(e,t){var n=typeof o===r.cb&&e[o[p]];if(!n)return e;var i,a,s=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)c.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return c}function T(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i}function P(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function C(e,t){return r.RJ?(0,r.RJ)(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==r.ak&&Object.prototype.hasOwnProperty.call(e,n)&&E(t,e,n);return r.yu?(0,r.RJ)(t,r.ak,{enumerable:!0,value:e}):t[r.ak]=e,t}function A(e){return e&&e.__esModule?e:{strDefault:e}}},623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjAssign:()=>r.rl,ObjClass:()=>r.Pw,ObjCreate:()=>r.yu,ObjDefineProperty:()=>r.RJ,ObjHasOwnProperty:()=>r.CY,ObjProto:()=>r.V4,__assignFn:()=>o.uc,__createBindingFn:()=>o.an,__decorateFn:()=>o.l9,__exportStarFn:()=>o.DJ,__exposeGlobalTsLib:()=>a,__extendsFn:()=>o.ne,__importDefaultFn:()=>o.m,__importStarFn:()=>o.KG,__makeTemplateObjectFn:()=>o.hw,__metadataFn:()=>o.EU,__paramFn:()=>o.V0,__readFn:()=>o.i9,__restFn:()=>o.Lv,__spreadArrayFn:()=>o.$h,__spreadArraysFn:()=>o.zg,__valuesFn:()=>o.Cj,getGlobal:()=>i.Rd,objCreateFn:()=>i.pu,strDefault:()=>r.ak,strShimFunction:()=>r.cb,strShimHasOwnProperty:()=>r.bO,strShimObject:()=>r.fK,strShimPrototype:()=>r.hB,strShimUndefined:()=>r.jA,throwTypeError:()=>i.ZU});var r=n(2589),i=n(8785),o=n(3298);function a(){var e,t,n,a,s=(0,i.Rd)()||{};e=s,t=o.uc,n=o.ne,a=o.an,e.__assign||(e.__assign=r.rl||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=a),__assign||(__assign=s.__assign),__extends||(__extends=s.__extends),__createBinding||(__createBinding=s.__createBinding)}},2314:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{default:()=>F});var i,o="undefined",a="constructor",s="prototype",c="function",u="_dynInstFuncs",l="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,v="_dfOpts",g="_unknown_",m="__proto__",_="_dyn"+m,y="__dynProto$Gbl",E="_dynInstProto",b="useBaseInst",S="setInstFuncs",T=Object,P=T.getPrototypeOf,C=T.getOwnPropertyNames,w=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),A=w[y]||(w[y]={o:(r={},r[S]=!0,r[b]=!0,r),n:1e3});function I(e,t){return e&&T[s].hasOwnProperty.call(e,t)}function O(e){return e&&(e===T[s]||e===Array[s])}function x(e){return O(e)||e===Function[s]}function R(e){var t;if(e){if(P)return P(e);var n=e[m]||e[s]||(e[a]?e[a][s]:null);t=e[_]||n,I(e,_)||(delete e[E],t=e[_]=e[E]||e[_],e[E]=n)}return t}function N(e,t){var n=[];if(C)n=C(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function M(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function j(e,t,n,r,i){if(!O(e)){var o=n[u]=n[u]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),N(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][l])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[u]||{};if((i=(o[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=R(e),l=[];a&&s&&!x(s)&&!M(l,s);){var d=s[t];if(d){a=d===r;break}l.push(s),s=R(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=R(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[l]=1,n}(e,t)))}))}}function L(e,t){return I(e,s)?e.name||t||g:((e||{})[a]||{}).name||t||g}function F(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(P){for(var n=[],r=R(t);r&&!x(r)&&!M(n,r);){if(r===e)return!0;n.push(r),r=R(r)}return!1}return!0})(i,t)||k("["+L(e)+"] not in hierarchy of ["+L(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+L(e,"_")+"$"+A.n,A.n++,i[p]=o);var a=F[v],c=!!a[b];c&&r&&void 0!==r[b]&&(c=!!r[b]);var f=function(e){var t={};return N(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),g=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[l]&&r){var o=e[u]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};N(n,(function(e){o[e]=i(t,n,e)}));for(var a=R(e),s=[];a&&!x(a)&&!M(s,a);)N(a,(function(e){!o[e]&&D(a,e,!P)&&(o[e]=i(t,a,e))})),s.push(a),a=R(a);return o}(i,t,f,c);n(t,g);var m=!!P&&!!a[S];m&&r&&(m=!!r[S]),j(i,o,t,f,!1!==m)}F[v]=A.o},3839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFilenameErrorMessage=t.LocalDevInfo=t.SelectTargetPlatform=t.Default=t.SdkLearnMorePlaceholder=t.No=t.YesRecommended=t.LearnMore=t.SdkStyleProject=t.TargetPlatform=t.NameCannotBeEmpty=t.SelectProjectLocation=t.SelectProjectType=t.ProjectDirectoryAlreadyExistErrorShort=t.ProjectDirectoryAlreadyExistError=t.ProjectParentDirectoryNotExistError=t.ProjectLocationPlaceholder=t.ProjectLocationTitle=t.EnterProjectName=t.ProjectNamePlaceholder=t.ProjectNameTitle=t.TypeTitle=t.NewProjectDialogTitle=t.DataWorkspaceOutputChannel=t.DefaultButtonWidth=t.DefaultInputWidth=t.WorkspaceFileExtension=t.Select=t.CreateButtonText=t.OpenButtonText=t.BrowseEllipsisWithIcon=t.BrowseEllipsis=t.BrowseButtonText=t.OkButtonText=t.noProjectProvidingExtensionsInstalled=t.onlyMovingOneFileIsSupported=t.dragAndDropNotSupported=t.openedProjectsUndefinedAfterRefresh=t.gitCloneError=t.gitCloneMessage=t.noPreviousData=t.projectNameNull=t.fileDoesNotExist=t.projectFailedToLoad=t.RestartConfirmation=t.ProviderNotFoundForProjectTypeError=t.AllProjectTypes=t.SelectProjectFileActionName=t.UnknownProjectsError=t.ExtensionActivationError=void 0,t.cssStyles=t.Refresh=t.ProjectSaveLocationKey=t.ProjectConfigurationKey=t.ProjectFileTitle=t.LocalClonePathPlaceholder=t.LocalClonePathTitle=t.GitRepoUrlPlaceholder=t.GitRepoUrlTitle=t.RemoteGitRepo=t.Local=t.ProjectAlreadyOpened=t.WorkspacePlaceholder=t.ProjectFilePlaceholder=t.LocationSelectorTitle=t.Project=t.CloneParentDirectoryNotExistError=t.FileNotExistError=t.OpenExistingDialogTitle=t.tooLongFilenameErrorMessage=t.trailingWhitespaceErrorMessage=t.reservedValueErrorMessage=t.reservedWindowsFilenameErrorMessage=t.invalidFileCharsErrorMessage=t.whitespaceFilenameErrorMessage=t.filenameEndingIsPeriodErrorMessage=void 0;const r=n(2037),i=n(3403).loadMessageBundle(n(1017).join(__dirname,"common/constants.ts"));var o;t.ExtensionActivationError=(e,t)=>i(0,null,e,t.message??t),t.UnknownProjectsError=e=>i(1,null,e.join(r.EOL)),t.SelectProjectFileActionName=i(2,null),t.AllProjectTypes=i(3,null),t.ProviderNotFoundForProjectTypeError=e=>i(4,null,e),t.RestartConfirmation=i(5,null),t.projectFailedToLoad=(e,t)=>i(6,null,e,t),t.fileDoesNotExist=e=>i(7,null,e),t.projectNameNull=i(8,null),t.noPreviousData=e=>i(9,null,e),t.gitCloneMessage=e=>i(10,null,e),t.gitCloneError=i(11,null),t.openedProjectsUndefinedAfterRefresh=i(12,null),t.dragAndDropNotSupported=i(13,null),t.onlyMovingOneFileIsSupported=i(14,null),t.noProjectProvidingExtensionsInstalled=i(15,null),t.OkButtonText=i(16,null),t.BrowseButtonText=i(17,null),t.BrowseEllipsis=i(18,null),t.BrowseEllipsisWithIcon=`$(folder) ${t.BrowseEllipsis}`,t.OpenButtonText=i(19,null),t.CreateButtonText=i(20,null),t.Select=i(21,null),t.WorkspaceFileExtension=".code-workspace",t.DefaultInputWidth="400px",t.DefaultButtonWidth="80px",t.DataWorkspaceOutputChannel="Data Workspace",t.NewProjectDialogTitle=i(22,null),t.TypeTitle=i(23,null),t.ProjectNameTitle=i(24,null),t.ProjectNamePlaceholder=i(25,null),t.EnterProjectName=i(26,null),t.ProjectLocationTitle=i(27,null),t.ProjectLocationPlaceholder=i(28,null),t.ProjectParentDirectoryNotExistError=e=>i(29,null,e),t.ProjectDirectoryAlreadyExistError=(e,t)=>i(30,null,e,t),t.ProjectDirectoryAlreadyExistErrorShort=e=>i(31,null,e),t.SelectProjectType=i(32,null),t.SelectProjectLocation=i(33,null),t.NameCannotBeEmpty=i(34,null),t.TargetPlatform=i(35,null),t.SdkStyleProject=i(36,null),t.LearnMore=i(37,null),t.YesRecommended=i(38,null),t.No=i(39,null),t.SdkLearnMorePlaceholder=i(40,null),t.Default=i(41,null),t.SelectTargetPlatform=i(42,null),t.LocalDevInfo=e=>i(43,null,e),t.undefinedFilenameErrorMessage=i(44,null),t.filenameEndingIsPeriodErrorMessage=i(45,null),t.whitespaceFilenameErrorMessage=i(46,null),t.invalidFileCharsErrorMessage=i(47,null),t.reservedWindowsFilenameErrorMessage=i(48,null),t.reservedValueErrorMessage=i(49,null),t.trailingWhitespaceErrorMessage=i(50,null),t.tooLongFilenameErrorMessage=i(51,null),t.OpenExistingDialogTitle=i(52,null),t.FileNotExistError=(e,t)=>i(53,null,e,t),t.CloneParentDirectoryNotExistError=e=>i(54,null,e),t.Project=i(55,null),t.LocationSelectorTitle=i(56,null),t.ProjectFilePlaceholder=i(57,null),t.WorkspacePlaceholder=i(58,null,t.WorkspaceFileExtension),t.ProjectAlreadyOpened=e=>i(59,null,e),t.Local=i(60,null),t.RemoteGitRepo=i(61,null),t.GitRepoUrlTitle=i(62,null),t.GitRepoUrlPlaceholder=i(63,null),t.LocalClonePathTitle=i(64,null),t.LocalClonePathPlaceholder=i(65,null),t.ProjectFileTitle=i(66,null),t.ProjectConfigurationKey="projects",t.ProjectSaveLocationKey="defaultProjectSaveLocation",t.Refresh=i(67,null),function(e){e.title={"font-size":"18px","font-weight":"600"},e.tableHeader={"text-align":"left","font-weight":"500","font-size":"13px","user-select":"text"},e.tableRow={"border-top":"solid 1px #ccc","border-bottom":"solid 1px #ccc","border-left":"none","border-right":"none"}}(o||(t.cssStyles=o={}))},4120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataWorkspaceExtension=void 0;const r=n(9496),i=n(4079),o=n(8709),a=n(9472),s=n(3839);t.DataWorkspaceExtension=class{constructor(e){this.workspaceService=e}getProjectsInWorkspace(e,t){return this.workspaceService.getProjectsInWorkspace(e,t)}addProjectsToWorkspace(e){return this.workspaceService.addProjectsToWorkspace(e)}showProjectsView(){r.commands.executeCommand("dataworkspace.views.main.focus")}refreshProjectsTree(){this.workspaceService.refreshProjectsTree()}get defaultProjectSaveLocation(){return(0,i.defaultProjectSaveLocation)()}validateWorkspace(){return this.workspaceService.validateWorkspace()}openSpecificProjectNewProjectDialog(e){return this.workspaceService.isProjectProviderAvailable||r.window.showErrorMessage(s.noProjectProvidingExtensionsInstalled),(0,o.openSpecificProjectNewProjectDialog)(e,this.workspaceService)}isValidFilenameCharacter(e){return(0,a.isValidFilenameCharacter)(e)}sanitizeStringForFilename(e){return(0,a.sanitizeStringForFilename)(e)}isValidBasename(e){return(0,a.isValidBasename)(e)}isValidBasenameErrorMessage(e){return(0,a.isValidBasenameErrorMessage)(e)}}},1352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconPathHelper=void 0;class n{static setExtensionContext(e){n.extensionContext=e,n.folder=n.makeIcon("folder",!0),n.refresh=n.makeIcon("refresh",!0)}static makeIcon(e,t=!1){const r="images";return t?{dark:n.extensionContext.asAbsolutePath(`${r}/${e}.svg`),light:n.extensionContext.asAbsolutePath(`${r}/${e}.svg`)}:{dark:n.extensionContext.asAbsolutePath(`${r}/dark/${e}.svg`),light:n.extensionContext.asAbsolutePath(`${r}/light/${e}.svg`)}}}t.IconPathHelper=n},5006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Log=void 0;const r=n(9496),i=n(3839);class o{constructor(){this.output=r.window.createOutputChannel(i.DataWorkspaceOutputChannel)}error(e){this.output.appendLine(`[Error - ${this.now()}] ${e}`),console.error(e)}log(e){this.output.appendLine(`[Info - ${this.now()}] ${e}`)}now(){const e=new Date;return this.padLeft(e.getUTCFullYear()+"",2,"0")+"-"+this.padLeft(e.getUTCMonth()+"",2,"0")+"-"+this.padLeft(e.getUTCDate()+"",2,"0")+" "+this.padLeft(e.getUTCHours()+"",2,"0")+":"+this.padLeft(e.getMinutes()+"",2,"0")+":"+this.padLeft(e.getUTCSeconds()+"",2,"0")+"."+e.getMilliseconds()}padLeft(e,t,n=" "){return n.repeat(Math.max(0,t-e.length))+e}}t.Log=o;const a=new o;t.default=a},9472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidBasenameErrorMessage=t.isValidBasename=t.sanitizeStringForFilename=t.isValidFilenameCharacter=void 0;const r=n(3839),i=n(2037),o=/[\\/:\*\?"<>\|]/g,a=/[\\/]/g,s="win32"===i.platform(),c=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;function u(e){return!(!e||1!==e.length||(o.lastIndex=0,a.lastIndex=0,s&&o.test(e)||!s&&a.test(e)))}function l(e){const t=s?o:a;return e?s&&"."===e[e.length-1]?r.filenameEndingIsPeriodErrorMessage:!e||0===e.length||/^\s+$/.test(e)?r.whitespaceFilenameErrorMessage:(t.lastIndex=0,t.test(e)?r.invalidFileCharsErrorMessage:s&&c.test(e)?r.reservedWindowsFilenameErrorMessage:"."===e||".."===e?r.reservedValueErrorMessage:s&&e.length!==e.trim().length?r.trailingWhitespaceErrorMessage:e.length>255?r.tooLongFilenameErrorMessage:void 0):r.undefinedFilenameErrorMessage}t.isValidFilenameCharacter=u,t.sanitizeStringForFilename=function(e){let t="";for(let n=0;n<e?.length;++n)t+=u(e[n])?e[n]:"_";return t},t.isValidBasename=function(e){return void 0===l(e)},t.isValidBasenameErrorMessage=l},4079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProjectSaveLocation=void 0;const r=n(9496),i=n(7147),o=n(3839);function a(){return r.workspace.getConfiguration(o.ProjectConfigurationKey)[o.ProjectSaveLocationKey]}t.defaultProjectSaveLocation=function(){return void 0!==a()&&null!==a()&&""!==a().trim()&&i.existsSync(a())?r.Uri.file(a()):void 0}},2453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectProviderRegistry=void 0;const r=n(9496),i=n(7633);t.ProjectProviderRegistry=new class{constructor(){this._providers=new Array,this._providerFileExtensionMapping={},this._providerProjectTypeMapping={}}registerProvider(e,t){return this.validateProvider(e),this._providers.push(e),e.supportedProjectTypes.forEach((t=>{this._providerFileExtensionMapping[t.projectFileExtension.toUpperCase()]=e,this._providerProjectTypeMapping[t.id.toUpperCase()]=e})),i.TelemetryReporter.createActionEvent(i.TelemetryViews.ProviderRegistration,i.TelemetryActions.ProviderRegistered).withAdditionalProperties({providerId:t,extensions:e.supportedProjectTypes.map((e=>e.projectFileExtension)).sort().join(", ")}).send(),new r.Disposable((()=>{const t=this._providers.indexOf(e);t>=0&&(this._providers.splice(t,1),e.supportedProjectTypes.forEach((e=>{delete this._providerFileExtensionMapping[e.projectFileExtension.toUpperCase()],delete this._providerProjectTypeMapping[e.id.toUpperCase()]})))}))}get providers(){return this._providers.slice(0)}clear(){this._providers.length=0}validateProvider(e){}getProviderByProjectExtension(e){return e?this._providerFileExtensionMapping[e.toUpperCase()]:void 0}getProviderByProjectType(e){return e?this._providerProjectTypeMapping[e.toUpperCase()]:void 0}}},9564:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0,t.Deferred=class{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}then(e,t){return this.promise.then(e,t)}}},7633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryActions=t.TelemetryViews=t.TelemetryReporter=void 0;const r=n(7437),i=n(8271),o=n(4147);let a=i.getPackageInfo(o);var s,c;t.TelemetryReporter=new r.default(a.name,a.version,a.aiKey),function(e){e.WorkspaceTreePane="WorkspaceTreePane",e.OpenExistingDialog="OpenExistingDialog",e.NewProjectDialog="NewProjectDialog",e.ProviderRegistration="ProviderRegistration"}(s||(t.TelemetryViews=s={})),function(e){e.ProviderRegistered="ProviderRegistered",e.ProjectAddedToWorkspace="ProjectAddedToWorkspace",e.ProjectRemovedFromWorkspace="ProjectRemovedFromWorkspace",e.OpeningProject="OpeningProject",e.NewProjectDialogLaunched="NewProjectDialogLaunched",e.OpenExistingDialogLaunched="OpenExistingDialogLaunched",e.NewProjectDialogCompleted="NewProjectDialogCompleted",e.GitClone="GitClone",e.ProjectsLoaded="ProjectsLoaded"}(c||(t.TelemetryActions=c={}))},8271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMessage=t.showInfoMessageWithLearnMoreLink=t.getAzdataApi=t.getPackageInfo=t.fileExist=t.directoryExist=void 0;const r=n(7147),i=n(9496),o=n(3839);async function a(e){try{return await r.promises.stat(e)}catch(e){if("ENOENT"===e.code)return;throw e}}let s;t.directoryExist=async function(e){const t=await a(e);return!!t&&t.isDirectory()},t.fileExist=async function(e){const t=await a(e);return!!t&&t.isFile()},t.getPackageInfo=function(e){const t=n(5599),r=c();if(e&&(r||t))return{name:r?e.name:t.name,version:e.version,aiKey:e.aiKey}};try{s=n(9072),s?.version||(s=void 0)}catch{}function c(){return s}t.getAzdataApi=c,t.showInfoMessageWithLearnMoreLink=async function(e,t){await i.window.showInformationMessage(e,o.LearnMore)===o.LearnMore&&i.env.openExternal(i.Uri.parse(t))},t.getErrorMessage=function(e){return e instanceof Error?"string"==typeof e.message?e.message:"":"string"==typeof e?e:`${JSON.stringify(e,void 0,"\t")}`}},9360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceTreeDataProvider=void 0;const r=n(9496),i=n(1017),o=n(3839),a=n(7633),s=n(8271),c=n(5006);t.WorkspaceTreeDataProvider=class{constructor(e){this._workspaceService=e,this.dropMimeTypes=["application/vnd.code.tree.workspacetreedataprovider"],this.dragMimeTypes=["application/vnd.code.tree.workspacetreedataprovider"],this._onDidChangeTreeData=new r.EventEmitter,this.onDidChangeTreeData=this._onDidChangeTreeData?.event,this._workspaceService.onDidWorkspaceProjectsChange((()=>this.refresh())),r.window.createTreeView("dataworkspace.views.main",{canSelectMany:!1,treeDataProvider:this,dragAndDropController:this})}async refresh(){c.default.log("Refreshing projects tree"),await this._workspaceService.getProjectsInWorkspace(void 0,!0),this._onDidChangeTreeData?.fire()}getTreeItem(e){return e.treeDataProvider.getTreeItem(e.element)}async getChildren(e){if(e){const t=await e.treeDataProvider.getChildren(e.element);return t?t.map((t=>({treeDataProvider:e.treeDataProvider,element:t}))):[]}{c.default.log("Calling getProjectsInWorkspace() from getChildren()");const t=await this._workspaceService.getProjectsInWorkspace(void 0,!1);await r.commands.executeCommand("setContext","isProjectsViewEmpty",0===t.length);const n=[],u=[],l={};let p=[];for(const r of t)try{const t=await this._workspaceService.getProjectProvider(r);if(this.incrementProjectTypeMetric(l,r),void 0===t){n.push(r.path);continue}const i=await t.getProjectTreeDataProvider(r);i.onDidChangeTreeData&&i.onDidChangeTreeData((e=>{this._onDidChangeTreeData?.fire(e)}));const o=await i.getChildren(e);o?.forEach((e=>{u.push({treeDataProvider:i,element:e})}))}catch(e){p.push({project:r,errorMessage:(0,s.getErrorMessage)(e)}),console.error(e.message)}if(p.length>0)for(let e of p)r.window.showErrorMessage((0,o.projectFailedToLoad)(i.basename(e.project.fsPath),e.errorMessage+(e.errorMessage.endsWith(".")?"":".")));return a.TelemetryReporter.sendMetricsEvent(l,"OpenWorkspaceProjectTypes"),a.TelemetryReporter.sendMetricsEvent({handled:t.length-n.length,unhandled:n.length},"OpenWorkspaceProjectsHandled"),n.length>0&&r.window.showErrorMessage((0,o.UnknownProjectsError)(n)),u}}incrementProjectTypeMetric(e,t){const n=i.extname(t.fsPath);e.hasOwnProperty(n)||(e[n]=0),e[n]++}handleDrag(e,t){const n=e[0].element?.relativeProjectUri?.fsPath?.substring(1);n!==i.basename(e[0].element?.projectFileUri?.fsPath,i.extname(e[0].element?.projectFileUri?.fsPath))&&t.set("application/vnd.code.tree.WorkspaceTreeDataProvider",new r.DataTransferItem(e.map((e=>e.element))))}async handleDrop(e,t){if(!e)return;const n=t.get("application/vnd.code.tree.WorkspaceTreeDataProvider");if(n?.value.length>1)return void r.window.showErrorMessage(o.onlyMovingOneFileIsSupported);const i=n?.value[0].projectFileUri;if(!i)return;const a=await this._workspaceService.getProjectProvider(i);a&&(a?.supportsDragAndDrop&&a.moveFile?(await a.moveFile(i,n?.value[0],e),this.refresh()):r.window.showErrorMessage(o.dragAndDropNotSupported))}}},9640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogBase=void 0;const r=n(8271);t.DialogBase=class{constructor(e,t,n,i=600){this._toDispose=[],this.initDialogPromise=new Promise(((e,t)=>this.initDialogComplete={resolve:e,reject:t})),this.dialogObject=(0,r.getAzdataApi)().window.createModelViewDialog(e,t,i),this.dialogObject.okButton.label=n,this.register(this.dialogObject.cancelButton.onClick((()=>this.onCancelButtonClicked()))),this.register(this.dialogObject.okButton.onClick((()=>this.onOkButtonClicked()))),this.dialogObject.registerCloseValidator((async()=>this.validate()))}async open(){const e=(0,r.getAzdataApi)().window.createTab("");e.registerContent((async e=>this.initialize(e))),this.dialogObject.content=[e],(0,r.getAzdataApi)().window.openDialog(this.dialogObject),await this.initDialogPromise}onCancelButtonClicked(){this.dispose()}async onOkButtonClicked(){await this.onComplete(),this.dispose()}async onComplete(){}dispose(){this._toDispose.forEach((e=>e.dispose()))}register(e){this._toDispose.push(e)}showErrorMessage(e){this.dialogObject.message={text:e,level:(0,r.getAzdataApi)().window.MessageLevel.Error}}getErrorMessage(){return this.dialogObject.message}createHorizontalContainer(e,t){return e.modelBuilder.flexContainer().withItems(t,{CSSStyles:{"margin-right":"5px","margin-bottom":"10px"}}).withLayout({flexFlow:"row",alignItems:"center"}).component()}}},8709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NewProjectDialog=t.openSpecificProjectNewProjectDialog=void 0;const r=n(9496),i=n(1017),o=n(9640),a=n(3839),s=n(8271),c=n(1352),u=n(4079),l=n(7633),p=n(9472);class d{constructor(){this.projectTypeId="",this.projectFileExtension="",this.name="",this.location=""}}t.openSpecificProjectNewProjectDialog=async function(e,t){const n=new f(t,e);return await n.open(),await n.newDialogPromise,n.projectUri};class f extends o.DialogBase{constructor(e,t){super(a.NewProjectDialogTitle,"NewProject",a.CreateButtonText),this.workspaceService=e,this.specificProjectType=t,this.model=new d,this.newDialogPromise=new Promise(((e,t)=>this.newProjectDialogComplete={resolve:e,reject:t})),l.TelemetryReporter.createActionEvent(l.TelemetryViews.NewProjectDialog,l.TelemetryActions.NewProjectDialogLaunched).withAdditionalProperties({isWorkspaceOpen:(void 0!==r.workspace.workspaceFile).toString()}).send()}async validate(){try{return await(0,s.directoryExist)(this.model.location)?await(0,s.directoryExist)(i.join(this.model.location,this.model.name))?(this.showErrorMessage(a.ProjectDirectoryAlreadyExistError(this.model.name,this.model.location)),!1):!1!==await this.workspaceService.validateWorkspace():(this.showErrorMessage(a.ProjectParentDirectoryNotExistError(this.model.location)),!1)}catch(e){return this.showErrorMessage(e?.message?e.message:e),!1}}onCancelButtonClicked(){this.newProjectDialogComplete?.resolve(),this.dispose()}async onComplete(){try{l.TelemetryReporter.createActionEvent(l.TelemetryViews.NewProjectDialog,l.TelemetryActions.NewProjectDialogCompleted).withAdditionalProperties({projectFileExtension:this.model.projectFileExtension,projectTemplateId:this.model.projectTypeId}).send(),this.projectUri=await this.workspaceService.createProject(this.model.name,r.Uri.file(this.model.location),this.model.projectTypeId,this.model.targetPlatform,this.model.sdkStyleProject),this.newProjectDialogComplete?.resolve()}catch(e){l.TelemetryReporter.createErrorEvent2(l.TelemetryViews.NewProjectDialog,l.TelemetryActions.NewProjectDialogCompleted,e).withAdditionalProperties({projectFileExtension:this.model.projectFileExtension,projectTemplateId:this.model.projectTypeId,error:e?.message?e.message:e}).send(),r.window.showErrorMessage(e?.message?e.message:e)}}async initialize(e){let t=await this.workspaceService.getAllProjectTypes();this.specificProjectType&&t.find((e=>e.id===this.specificProjectType?.id))&&(t=[this.specificProjectType]);const n=e.modelBuilder.radioCardGroup().withProps({cards:t.map((e=>({id:e.id,label:e.displayName,icon:e.icon,descriptions:[{textValue:e.displayName,textStyles:{"font-size":"13px","font-weight":"bold"}},{textValue:e.description}]}))),iconHeight:"75px",iconWidth:"75px",cardWidth:"215px",cardHeight:"195px",ariaLabel:a.TypeTitle,width:"500px",iconPosition:"top",selectedCardId:t.length>0?t[0].id:void 0}).component();this.register(n.onSelectionChanged((async e=>{this.model.projectTypeId=e.cardId;const n=t.find((t=>t.id===e.cardId));n?.targetPlatforms?(d.values=n?.targetPlatforms,d.value=this.getDefaultTargetPlatform(n),this.formBuilder?.insertFormItem(this.targetPlatformDropdownFormComponent,3)):(this.formBuilder?.removeFormItem(this.targetPlatformDropdownFormComponent),this.model.targetPlatform=void 0),n?.sdkStyleOption?(f.checked=!0,this.model.sdkStyleProject=!0,n.sdkStyleLearnMoreUrl?(await h.updateProperty("url",n.sdkStyleLearnMoreUrl),v.addItem(h)):v.removeItem(h),this.formBuilder?.addFormItem(this.sdkProjectCheckboxFormComponent)):(this.model.sdkStyleProject=!1,this.formBuilder?.removeFormItem(this.sdkProjectCheckboxFormComponent))})));const i=e.modelBuilder.inputBox().withValidation((e=>(0,p.isValidBasename)(e.value))).withProps({ariaLabel:a.ProjectNameTitle,placeHolder:a.ProjectNamePlaceholder,required:!0,width:a.DefaultInputWidth}).component();this.register(i.onTextChanged((e=>{const t=(0,p.isValidBasenameErrorMessage)(e);return void 0!==t?void i.updateProperty("validationErrorMessage",t):(this.model.name=i.value,i.updateProperty("title",i.value))})));const o=e.modelBuilder.inputBox().withProps({ariaLabel:a.ProjectLocationTitle,placeHolder:a.ProjectLocationPlaceholder,required:!0,width:a.DefaultInputWidth}).component(),s=(0,u.defaultProjectSaveLocation)();o.value=s?.fsPath??r.workspace.workspaceFolders?.[0]?.uri.fsPath,this.register(o.onTextChanged((()=>(this.model.location=o.value,o.updateProperty("title",o.value)))));const l=e.modelBuilder.button().withProps({ariaLabel:a.BrowseButtonText,title:a.BrowseButtonText,iconPath:c.IconPathHelper.folder,height:"16px",width:"18px"}).component();this.register(l.onDidClick((async()=>{let e=await r.window.showOpenDialog({canSelectFiles:!1,canSelectFolders:!0,canSelectMany:!1,defaultUri:o.value?r.Uri.file(o.value):void 0});if(!e||0===e.length)return;const t=e[0].fsPath;o.value=t,this.model.location=t})));const d=e.modelBuilder.dropDown().withProps({values:t[0].targetPlatforms,value:this.getDefaultTargetPlatform(t[0]),ariaLabel:a.TargetPlatform,required:!0,width:a.DefaultInputWidth}).component();this.register(d.onValueChanged((()=>{this.model.targetPlatform=d.value}))),this.targetPlatformDropdownFormComponent={title:a.TargetPlatform,required:!0,component:d};const f=e.modelBuilder.checkBox().withProps({checked:!0,label:a.SdkStyleProject}).component();this.register(f.onChanged((()=>{this.model.sdkStyleProject=f.checked})));const h=e.modelBuilder.hyperlink().withProps({label:a.LearnMore,url:""}).component(),v=e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"baseline"}).withItems([f],{CSSStyles:{flex:"0 0 auto","margin-right":"10px"}}).component();t[0].sdkStyleLearnMoreUrl&&(await h.updateProperty("url",t[0].sdkStyleLearnMoreUrl),v.addItem(h)),this.sdkProjectCheckboxFormComponent={component:v},this.formBuilder=e.modelBuilder.formContainer().withFormItems([{title:a.TypeTitle,component:n},{title:a.ProjectNameTitle,required:!0,component:this.createHorizontalContainer(e,[i])},{title:a.ProjectLocationTitle,required:!0,component:this.createHorizontalContainer(e,[o,l])}]),t[0].targetPlatforms&&this.formBuilder.addFormItem(this.targetPlatformDropdownFormComponent),t[0].sdkStyleOption&&this.formBuilder.addFormItem(this.sdkProjectCheckboxFormComponent),await e.initializeModel(this.formBuilder.component()),this.initDialogComplete?.resolve()}getDefaultTargetPlatform(e){return e.defaultTargetPlatform&&e.targetPlatforms?.includes(e.defaultTargetPlatform)?e.defaultTargetPlatform:void 0}}t.NewProjectDialog=f},3956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNewProjectWithQuickpick=void 0;const r=n(9496),i=n(1017),o=n(3839),a=n(8271),s=n(4079),c=n(9472);t.createNewProjectWithQuickpick=async function(e){const t=(await e.getAllProjectTypes()).map((e=>({label:e.displayName,description:e.description,id:e.id,targetPlatforms:e.targetPlatforms,defaultTargetPlatform:e.defaultTargetPlatform,sdkOption:e.sdkStyleOption,sdkLearnMoreUrl:e.sdkStyleLearnMoreUrl,learnMoreUrl:e.learnMoreUrl}))),n=await r.window.showQuickPick(t,{title:o.SelectProjectType,ignoreFocusOut:!0});if(!n)return;const u=await r.window.showInputBox({title:o.EnterProjectName,validateInput:e=>(0,c.isValidBasenameErrorMessage)(e),ignoreFocusOut:!0});if(!u)return;const l=(0,s.defaultProjectSaveLocation)(),p=[o.BrowseEllipsisWithIcon];r.workspace.workspaceFolders&&p.unshift(r.workspace.workspaceFolders[0].uri.fsPath),l&&p.unshift(l.fsPath);let d,f,h="",v=o.SelectProjectLocation;for(;;){const e=await r.window.showQuickPick(p,{title:v,ignoreFocusOut:!0});if(!e)return;if(e===o.BrowseEllipsisWithIcon){const e=await r.window.showOpenDialog({canSelectFiles:!1,canSelectFolders:!0,canSelectMany:!1,openLabel:o.Select,title:o.SelectProjectLocation,defaultUri:l});if(!e){v=o.SelectProjectLocation;continue}h=e[0].fsPath}else h=e;if(!await(0,a.directoryExist)(i.join(h,u)))break;v=o.ProjectDirectoryAlreadyExistErrorShort(u)}if(n.targetPlatforms){let e=n.targetPlatforms.map((e=>({label:e})));if(n.defaultTargetPlatform){const t=e.findIndex((e=>e.label===n.defaultTargetPlatform));t>-1&&e.splice(t,1),e.unshift({label:n.defaultTargetPlatform,description:o.Default})}const t=await r.window.showQuickPick(e,{title:o.SelectTargetPlatform,ignoreFocusOut:!0});if(!t)return;d=t.label}if(n.sdkOption){const e={iconPath:new r.ThemeIcon("link-external"),tooltip:o.LearnMore},t=r.window.createQuickPick();t.items=[{label:o.YesRecommended},{label:o.No}],t.title=o.SdkStyleProject,t.ignoreFocusOut=!0;const i=[];try{n.sdkLearnMoreUrl&&(t.buttons=[e],t.placeholder=o.SdkLearnMorePlaceholder);let a=new Promise((e=>{i.push(t.onDidHide((()=>{e(void 0)})),t.onDidChangeSelection((t=>{e(t[0].label===o.YesRecommended)}))),n.sdkLearnMoreUrl&&i.push(t.onDidTriggerButton((async()=>{await r.env.openExternal(r.Uri.parse(n.sdkLearnMoreUrl))})))}));t.show(),f=await a,t.hide()}finally{i.forEach((e=>e.dispose()))}if(void 0===f)return}await e.createProject(u,r.Uri.file(h),n.id,d,f),n.learnMoreUrl&&n.defaultTargetPlatform&&(0,a.showInfoMessageWithLearnMoreLink)(o.LocalDevInfo(n.defaultTargetPlatform),n.learnMoreUrl)}},7214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browseForProject=t.OpenExistingDialog=void 0;const r=n(9496),i=n(9640),o=n(3839),a=n(8271),s=n(1352),c=n(7633),u=n(4079);class l extends i.DialogBase{constructor(e){super(o.OpenExistingDialogTitle,"OpenProject",o.OpenButtonText),this.workspaceService=e,c.TelemetryReporter.createActionEvent(c.TelemetryViews.OpenExistingDialog,c.TelemetryActions.OpenExistingDialogLaunched).withAdditionalProperties({isWorkspaceOpen:(void 0!==r.workspace.workspaceFile).toString()}).send()}async validate(){try{return this.localRadioButton?.checked?await this.validateFile(this.filePathTextBox.value,o.Project.toLowerCase()):await this.validateClonePath(this.localClonePathTextBox.value),!1!==await this.workspaceService.validateWorkspace()}catch(e){return this.showErrorMessage(e?.message?e.message:e),!1}}async validateFile(e,t){if(!await(0,a.fileExist)(e))throw new Error(o.FileNotExistError(t,e))}async validateClonePath(e){if(!await(0,a.directoryExist)(e))throw new Error(o.CloneParentDirectoryNotExistError(e))}async onComplete(){try{const e={hasWorkspaceOpen:(void 0!==r.workspace.workspaceFile).toString()};let t;this.remoteGitRepoRadioButton.checked?(c.TelemetryReporter.createActionEvent(c.TelemetryViews.OpenExistingDialog,c.TelemetryActions.GitClone).withAdditionalProperties({selectedTarget:"project"}).send(),t=this.workspaceService.gitCloneProject((this.gitRepoTextBoxComponent?.component).value,this.localClonePathTextBox.value)):(e.cancelled="false",t=this.workspaceService.addProjectsToWorkspace([r.Uri.file(this.filePathTextBox.value)])),c.TelemetryReporter.createActionEvent(c.TelemetryViews.OpenExistingDialog,c.TelemetryActions.OpeningProject).withAdditionalProperties(e).send(),await t}catch(e){r.window.showErrorMessage(e?.message?e.message:e)}}async initialize(e){this.localRadioButton=e.modelBuilder.radioButton().withProps({name:"location",label:o.Local,checked:!0}).component(),this.register(this.localRadioButton.onDidChangeCheckedState((e=>{e&&(this.formBuilder?.removeFormItem(this.gitRepoTextBoxComponent),this.formBuilder?.removeFormItem(this.localClonePathComponent),this.formBuilder?.insertFormItem(this.filePathAndButtonComponent,1))}))),this.remoteGitRepoRadioButton=e.modelBuilder.radioButton().withProps({name:"location",label:o.RemoteGitRepo}).component(),this.locationRadioButtonFormComponent={title:o.LocationSelectorTitle,component:e.modelBuilder.flexContainer().withItems([this.localRadioButton,this.remoteGitRepoRadioButton],{flex:"0 0 auto",CSSStyles:{"margin-right":"15px"}}).withProps({ariaRole:"radiogroup"}).component()},this.register(this.remoteGitRepoRadioButton.onDidChangeCheckedState((e=>{e&&(this.formBuilder?.removeFormItem(this.filePathAndButtonComponent),this.formBuilder?.insertFormItem(this.gitRepoTextBoxComponent,1),this.formBuilder?.insertFormItem(this.localClonePathComponent,2))})));const t=e.modelBuilder.inputBox().withProps({ariaLabel:o.GitRepoUrlTitle,placeHolder:o.GitRepoUrlPlaceholder,required:!0,width:o.DefaultInputWidth}).component();this.register(t.onTextChanged((()=>t.updateProperty("title",this.localClonePathTextBox.value)))),this.gitRepoTextBoxComponent={title:o.GitRepoUrlTitle,component:t},this.localClonePathTextBox=e.modelBuilder.inputBox().withProps({ariaLabel:o.LocalClonePathTitle,placeHolder:o.LocalClonePathPlaceholder,required:!0,width:o.DefaultInputWidth}).component(),this.register(this.localClonePathTextBox.onTextChanged((()=>this.localClonePathTextBox.updateProperty("title",this.localClonePathTextBox.value))));const n=e.modelBuilder.button().withProps({ariaLabel:o.BrowseButtonText,title:o.BrowseButtonText,iconPath:s.IconPathHelper.folder,width:"18px",height:"16px"}).component();this.register(n.onDidClick((async()=>{const e=await r.window.showOpenDialog({canSelectFiles:!1,canSelectFolders:!0,canSelectMany:!1,defaultUri:(0,u.defaultProjectSaveLocation)()});if(!e||0===e.length)return;const t=e[0].fsPath;this.localClonePathTextBox.value=t,this.localClonePathTextBox.updateProperty("title",this.localClonePathTextBox.value)}))),this.localClonePathComponent={title:o.LocalClonePathTitle,component:this.createHorizontalContainer(e,[this.localClonePathTextBox,n]),required:!0},this.filePathTextBox=e.modelBuilder.inputBox().withProps({ariaLabel:o.ProjectFileTitle,placeHolder:o.ProjectFilePlaceholder,required:!0,width:o.DefaultInputWidth}).component(),this.register(this.filePathTextBox.onTextChanged((()=>this.filePathTextBox.updateProperty("title",this.filePathTextBox.value))));const i=e.modelBuilder.button().withProps({ariaLabel:o.BrowseButtonText,title:o.BrowseButtonText,iconPath:s.IconPathHelper.folder,width:"18px",height:"16px"}).component();this.register(i.onDidClick((()=>this.onBrowseButtonClick())));const a=this.createHorizontalContainer(e,[this.filePathTextBox,i]);this.filePathAndButtonComponent={component:a,title:o.ProjectFileTitle,required:!0},this.formBuilder=e.modelBuilder.formContainer().withFormItems([this.locationRadioButtonFormComponent,this.filePathAndButtonComponent]),await e.initializeModel(this.formBuilder?.component()),this.initDialogComplete?.resolve()}async onBrowseButtonClick(){const e=await p(this.workspaceService);e&&(this.filePathTextBox.value=e.fsPath)}}async function p(e){const t={},n=await e.getAllProjectTypes();t[o.AllProjectTypes]=[...new Set(n.map((e=>e.projectFileExtension)))],n.forEach((e=>{t[e.displayName]=[e.projectFileExtension]}));const i=await r.window.showOpenDialog({canSelectFiles:!0,canSelectFolders:!1,canSelectMany:!1,openLabel:o.SelectProjectFileActionName,filters:t,defaultUri:(0,u.defaultProjectSaveLocation)()});return i?.[0]}t.OpenExistingDialog=l,t.browseForProject=p},7476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectDashboard=void 0;const r=n(1017),i=n(9496),o=n(3839),a=n(1352),s=n(8271);t.ProjectDashboard=class{constructor(e,t){this._workspaceService=e,this._treeItem=t}async showDashboard(){const e=this._treeItem.element.project;if(!await(0,s.fileExist)(e.projectFilePath))throw new Error(o.fileDoesNotExist(e.projectFilePath));if(!e.projectFileName)throw new Error(o.projectNameNull);if(this.projectProvider=await this._workspaceService.getProjectProvider(i.Uri.file(e.projectFilePath)),!this.projectProvider)throw new Error(o.ProviderNotFoundForProjectTypeError(e.projectFilePath));await this.createDashboard(e.projectFileName,e.projectFilePath),await this.dashboard.open()}async createDashboard(e,t){this.dashboard=(0,s.getAzdataApi)().window.createModelViewDashboard(e,"ProjectDashboard",{alwaysShowTabs:!1}),this.dashboard.registerTabs((async n=>(this.modelView=n,this.overviewTab={title:"",id:"overview-tab",content:this.createContainer(e,t),toolbar:this.createToolbarContainer(t)},[this.overviewTab])))}createToolbarContainer(e){const t=this.projectProvider.projectToolbarActions,n=[],r=t.length;t.forEach(((e,t)=>{if(this.isProjectAction(e)){const i=this.createButton(e);n.push({component:i,toolbarSeparatorAfter:r-1===t})}else{const i=e.actions.length;e.actions.forEach(((e,o)=>{const a=this.createButton(e);n.push({component:a,toolbarSeparatorAfter:i-1===o||r-1===t})}))}}));const i=this.modelView.modelBuilder.button().withProps({label:o.Refresh,iconPath:a.IconPathHelper.refresh,height:"20px"}).component();return i.onDidClick((()=>{this.rootContainer?.removeItem(this.tableContainer),this.tableContainer=this.createTables(e),this.rootContainer?.addItem(this.tableContainer)})),n.push({component:i}),this.modelView.modelBuilder.toolbarContainer().withToolbarItems(n).component()}isProjectAction(e){return void 0!==e.id}createButton(e){let t=this.modelView.modelBuilder.button().withProps({label:e.id,iconPath:e.icon,height:"20px"}).component();return t.onDidClick((()=>{e.run(this._treeItem)})),t}createContainer(e,t){this.rootContainer=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"100%"}).component();const n=this.createHeader(e,t);return this.tableContainer=this.createTables(t),this.rootContainer.addItem(n),this.rootContainer.addItem(this.tableContainer),this.rootContainer}createHeader(e,t){const n=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"30%"}).component(),o=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"30%"}).component(),a=this.modelView.modelBuilder.text().withProps({value:e,CSSStyles:{"margin-block-start":"20px","margin-block-end":"0px"}}).component();o.addItem(a,{CSSStyles:{"padding-left":"34px","padding-top":"15px","font-size":"36px","font-weight":"400"}});const s=r.dirname(t),c=this.modelView.modelBuilder.text().withProps({value:s,CSSStyles:{"margin-block-start":"20px","margin-block-end":"0px"}}).component();o.addItem(c,{CSSStyles:{"padding-left":"34px","padding-top":"15px","padding-bottom":"50px","font-size":"16px"}});const u=this.projectProvider.image,l=i.Uri.file(u.light.toString()).with({scheme:"vscode-file"});return n.addItem(o,{CSSStyles:{"background-image":`url(${l})`,"background-repeat":"no-repeat","background-position":"85% bottom","background-size":"10%","border-bottom":"solid 1px #ccc",width:"100%",height:"100%"}}),n}createTables(e){const t=this.projectProvider.getDashboardComponents(e),n=this.modelView.modelBuilder.flexContainer().withLayout({flexFlow:"column",width:"100%",height:"auto"}).component();return t.forEach((e=>{const t=this.modelView.modelBuilder.text().withProps({value:e.name,CSSStyles:{"margin-block-start":"30px","margin-block-end":"0px"}}).component();if(n.addItem(t,{CSSStyles:{"padding-left":"25px","padding-bottom":"20px",...o.cssStyles.title}}),0===e.data.length){const t=o.noPreviousData(e.name.toLocaleLowerCase()),r=this.modelView.modelBuilder.text().withProps({value:t}).component();n.addItem(r,{CSSStyles:{"padding-left":"25px","padding-bottom":"20px"}})}else{const t=[];e.columns.forEach((e=>{let n={displayName:e.displayName,valueType:"icon"===e.type?(0,s.getAzdataApi)().DeclarativeDataType.component:(0,s.getAzdataApi)().DeclarativeDataType.string,isReadOnly:!0,width:e.width,headerCssStyles:{border:"none",...o.cssStyles.tableHeader},rowCssStyles:{...o.cssStyles.tableRow}};t.push(n)}));const r=[];e.data.forEach((e=>{const t=[];e.forEach((e=>{if("string"==typeof e)t.push({value:e});else{const n=this.modelView.modelBuilder.image().withProps({iconPath:e.icon,width:"15px",height:"15px",iconHeight:"15px",iconWidth:"15px"}).component(),r=this.modelView.modelBuilder.text().withProps({value:e.text,CSSStyles:{"margin-block-start":"auto","block-size":"auto","margin-block-end":"0px"}}).component(),i=this.modelView.modelBuilder.flexContainer().withItems([n,r],{flex:"0 0 auto",CSSStyles:{"margin-right":"10px"}}).withLayout({flexFlow:"row"}).component();t.push({value:i})}})),r.push(t)}));const i=this.modelView.modelBuilder.declarativeTable().withProps({columns:t,dataValues:r,ariaLabel:e.name,CSSStyles:{"margin-left":"30px"}}).component();n.addItem(i)}})),n}}},3897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceService=void 0;const r=n(9496),i=n(1017),o=n(3839),a=n(3294),s=n(2453),c=n(5006),u=n(7633),l=n(9564),p=n(8271),d="dataworkspace",f="excludedProjects";t.WorkspaceService=class{constructor(){this._onDidWorkspaceProjectsChange=new r.EventEmitter,this.onDidWorkspaceProjectsChange=this._onDidWorkspaceProjectsChange?.event,this.openedProjects=void 0,this._isProjectProviderAvailable=!1,this.getProjectsPromise=void 0,c.default.log("Calling getProjectsInWorkspace() from WorkspaceService constructor"),this.updateIfProjectProviderAvailable(),this.getProjectsInWorkspace(void 0,!0).catch((e=>c.default.error(`Error initializing projects in workspace ${e}`)))}get isProjectProviderAvailable(){return this._isProjectProviderAvailable}updateIfProjectProviderAvailable(){c.default.log(`Checking ${r.extensions.all.length} extensions to see if there is a project provider is available`);const e=(new Date).getTime();this._isProjectProviderAvailable=r.extensions.all.some((e=>e.packageJSON.contributes?.projects?.length>0)),c.default.log(`isProjectProviderAvailable is ${this._isProjectProviderAvailable}. Total time = ${(new Date).getTime()-e}ms`)}async validateWorkspace(){return!((0,p.getAzdataApi)()&&(!r.workspace.workspaceFolders||0===r.workspace.workspaceFolders.length))||await r.window.showWarningMessage(o.RestartConfirmation,{modal:!0},o.OkButtonText)===o.OkButtonText}async addProjectsToWorkspace(e){const t=[];for(const n of e){const e=r.workspace.asRelativePath(n,!1);void 0!==e&&r.Uri.file(e).fsPath!==n.fsPath||t.push(i.dirname(n.path))}t.length>0&&r.workspace.updateWorkspaceFolders(r.workspace.workspaceFolders?.length||0,void 0,...t.map((e=>({uri:r.Uri.file(e)}))));const n=(await this.getProjectsInWorkspace(void 0,!1)).map((e=>e.path));let a=!1;const s=[];for(const t of e)n.includes(t.path)?(s.push(t.fsPath),r.window.showInformationMessage(o.ProjectAlreadyOpened(t.fsPath))):(a=!0,u.TelemetryReporter.createActionEvent(u.TelemetryViews.WorkspaceTreePane,u.TelemetryActions.ProjectAddedToWorkspace).withAdditionalProperties({projectType:i.extname(t.fsPath)}).send());const c=this.getWorkspaceConfigurationValue(f),l=c.filter((t=>!e.find((e=>r.workspace.asRelativePath(e)===t))));c.length!==l.length&&await this.setWorkspaceConfigurationValue(f,l),a&&this._onDidWorkspaceProjectsChange.fire()}async getAllProjectTypes(){await this.ensureProviderExtensionLoaded();const e=[];return s.ProjectProviderRegistry.providers.forEach((t=>{e.push(...t.supportedProjectTypes)})),e}async getProjectsInWorkspace(e,t=!1){c.default.log("Getting projects in workspace");const n=(new Date).getTime();if((t||void 0===this.openedProjects)&&await this.refreshProjectsFromDisk(),void 0===this.openedProjects)throw new Error(o.openedProjectsUndefinedAfterRefresh);return this.excludedProjects=this.getWorkspaceConfigurationValue(f),this.openedProjects=this.openedProjects.filter((e=>!this.excludedProjects?.find((t=>t===r.workspace.asRelativePath(e))))),c.default.log(`Finished looking for projects in workspace. Opened: ${this.openedProjects.length}. Excluded: ${this.excludedProjects.length}. Total time = ${(new Date).getTime()-n}ms`),e?this.openedProjects.filter((t=>t.fsPath.toLowerCase().endsWith(e.toLowerCase()))):this.openedProjects}async refreshProjectsFromDisk(){if(this.getProjectsPromise)return this.getProjectsPromise.promise;this.getProjectsPromise=new l.Deferred;try{const e=r.workspace.workspaceFolders?.map((e=>this.getAllProjectsInFolder(e.uri)))??[],t=(await Promise.all(e)).reduce(((e,t)=>e.concat(t)),[]),n=[...new Set(t.map((e=>e.fsPath)))];this.openedProjects=n.map((e=>r.Uri.file(e))),this.getProjectsPromise.resolve()}catch(e){throw this.getProjectsPromise.reject(e),e}finally{this.getProjectsPromise=void 0}}refreshProjectsTree(){this._onDidWorkspaceProjectsChange.fire()}async getAllProjectsInFolder(e){const t=[...new Set((await this.getAllProjectTypes()).map((e=>e.projectFileExtension)))],n=a.escapePath(e.fsPath.replace(/\\/g,"/")),o=t.length>1?i.posix.join(n,"**",`*.{${t.toString()}}`):i.posix.join(n,"**",`*.${t[0]}`);return(await a(o)).map((e=>r.Uri.file(i.resolve(e))))}async getProjectProvider(e){const t=i.extname(e.path).replace(/\./g,"");return s.ProjectProviderRegistry.getProviderByProjectExtension(t)||await this.ensureProviderExtensionLoaded(t),s.ProjectProviderRegistry.getProviderByProjectExtension(t)}async createProject(e,t,n,r,i){const a=s.ProjectProviderRegistry.getProviderByProjectType(n);if(a){const o=await a.createProject(e,t,n,r,i);return await this.addProjectsToWorkspace([o]),this._onDidWorkspaceProjectsChange.fire(),o}throw new Error(o.ProviderNotFoundForProjectTypeError(n))}async gitCloneProject(e,t){const n=r.extensions.getExtension("vscode.git").exports.getAPI(1),i={location:r.ProgressLocation.Notification,title:o.gitCloneMessage(e),cancellable:!0};try{r.commands.executeCommand("git.showOutput");const o=await r.window.withProgress(i,((r,i)=>n.clone(e,{parentPath:t,progress:r,recursive:!0},i))),a=await this.getAllProjectsInFolder(r.Uri.file(o));await this.addProjectsToWorkspace(a)}catch(e){r.window.showErrorMessage(o.gitCloneError),console.error(e)}}async ensureProviderExtensionLoaded(e=void 0,t=!1){const n=e?e.toUpperCase():void 0;let i;for(i of r.extensions.all){const e=i.packageJSON.contributes&&i.packageJSON.contributes.projects;if(e&&e.length>0)if(n){if(-1!==e.findIndex((e=>e.toUpperCase()===n))){await this.handleProjectProviderExtension(i,t);break}}else await this.handleProjectProviderExtension(i,t)}}async handleProjectProviderExtension(e,t=!1){try{if(!e.isActive)if(t)await e.activate();else{const t=e.packageJSON.contributes?.projects;if(!t)return;for(const n of t)if((await r.workspace.findFiles(`**/*.${n}`)).length>0){await e.activate();break}}}catch(t){c.default.error(o.ExtensionActivationError(e.id,t))}e.isActive&&e.exports&&!s.ProjectProviderRegistry.providers.includes(e.exports)&&s.ProjectProviderRegistry.registerProvider(e.exports,e.id)}async removeProject(e){u.TelemetryReporter.createActionEvent(u.TelemetryViews.WorkspaceTreePane,u.TelemetryActions.ProjectRemovedFromWorkspace).withAdditionalProperties({projectType:i.extname(e.fsPath)}).send();const t=this.getWorkspaceConfigurationValue(f);t.push(r.workspace.asRelativePath(e.fsPath)),await this.setWorkspaceConfigurationValue(f,[...new Set(t)]),this._onDidWorkspaceProjectsChange.fire()}getWorkspaceConfigurationValue(e){return r.workspace.getConfiguration(d).get(e)}async setWorkspaceConfigurationValue(e,t){await r.workspace.getConfiguration(d).update(e,t,r.ConfigurationTarget.Workspace)}}},9166:e=>{"use strict";e.exports=require("applicationinsights-native-metrics")},9072:e=>{"use strict";e.exports=require("azdata")},9496:e=>{"use strict";e.exports=require("vscode")},9491:e=>{"use strict";e.exports=require("assert")},852:e=>{"use strict";e.exports=require("async_hooks")},2081:e=>{"use strict";e.exports=require("child_process")},6206:e=>{"use strict";e.exports=require("console")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},8188:e=>{"use strict";e.exports=require("module")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4074:e=>{"use strict";e.exports=require("perf_hooks")},2781:e=>{"use strict";e.exports=require("stream")},9512:e=>{"use strict";e.exports=require("timers")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"data-workspace","displayName":"Data Workspace","description":"Additional common functionality for database projects","version":"0.5.0","publisher":"Microsoft","preview":true,"license":"https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt","icon":"images/extension.png","aiKey":"29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380","engines":{"vscode":">=1.48.0","azdata":">=1.25.0"},"activationEvents":["onView:dataworkspace.views.main","onCommand:projects.openExisting","onCommand:projects.new"],"main":"./out/main","repository":{"type":"git","url":"https://github.com/Microsoft/azuredatastudio.git"},"capabilities":{"virtualWorkspaces":false,"untrustedWorkspaces":{"supported":true}},"extensionDependencies":[],"contributes":{"configuration":[{"title":"Projects","properties":{"dataworkspace.excludedProjects":{"type":"array","default":[],"description":"%projects.excludedProjectsDescription%"},"projects.defaultProjectSaveLocation":{"type":"string","description":"%projects.defaultProjectSaveLocation%"},"projects.showNotAddedProjectsInWorkspacePrompt":{"type":"boolean","description":"%projects.showNotAddedProjectsInWorkspacePrompt%","default":true}}}],"commands":[{"command":"projects.new","title":"%new-command%","category":"%data-workspace-view-container-name%","icon":"$(add)"},{"command":"projects.openExisting","title":"%open-existing-command%","category":"%data-workspace-view-container-name%","icon":"$(folder-opened)"},{"command":"dataworkspace.refresh","title":"%refresh-workspace-command%","category":"%data-workspace-view-container-name%","icon":"$(refresh)"},{"command":"dataworkspace.close","title":"%close-workspace-command%","category":"","icon":"$(close)"},{"command":"projects.removeProject","title":"%remove-project-command%"},{"command":"projects.manageProject","title":"%manage-project-command%"}],"menus":{"view/title":[{"command":"dataworkspace.refresh","when":"view == dataworkspace.views.main","group":"navigation"},{"command":"dataworkspace.close","when":"view == dataworkspace.views.main && workbenchState == workspace","group":"1_commands"},{"command":"projects.new","when":"view == dataworkspace.views.main","group":"navigation"},{"command":"projects.openExisting","when":"view == dataworkspace.views.main","group":"navigation"}],"commandPalette":[{"command":"projects.new"},{"command":"dataworkspace.refresh","when":"false"},{"command":"dataworkspace.close","when":"false"},{"command":"projects.removeProject","when":"false"},{"command":"projects.openExisting"},{"command":"projects.manageProject","when":"false"}],"view/item/context":[{"command":"projects.manageProject","when":"view == dataworkspace.views.main && viewItem =~ /^(databaseProject.itemType.project|databaseProject.itemType.legacyProject)$/ && azdataAvailable","group":"0_projectsFirst@1"},{"command":"projects.removeProject","when":"view == dataworkspace.views.main && viewItem =~ /^(databaseProject.itemType.project|databaseProject.itemType.legacyProject)$/","group":"9_dbProjectsLast@9"}]},"viewsContainers":{"activitybar":[{"id":"dataworkspace","title":"%data-workspace-view-container-name%","icon":"images/data-workspace.svg"}]},"views":{"dataworkspace":[{"id":"dataworkspace.views.main","name":"%main-view-name%","contextualTitle":"%data-workspace-view-container-name%","icon":"images/data-workspace.svg"}]},"viewsWelcome":[{"view":"dataworkspace.views.main","contents":"%projects-view-no-workspace-content%","when":"workbenchState != workspace"},{"view":"dataworkspace.views.main","contents":"%projects-view-no-project-content%","when":"workbenchState == workspace && isProjectsViewEmpty"}]},"dependencies":{"fast-glob":"^3.2.7","@microsoft/ads-extension-telemetry":"^3.0.1","vscode-nls":"^4.0.0"},"devDependencies":{"@types/mocha":"^7.0.2","@types/sinon":"^9.0.4","mocha":"^7.1.1","should":"^13.2.3","sinon":"^9.0.2","typemoq":"^2.1.0","@microsoft/vscodetestcover":"^1.2.2","@microsoft/azdata-test":"^3.0.3"}}')},5599:e=>{"use strict";e.exports=JSON.parse('{"name":"data-workspace-vscode","publisher":"ms-mssql"}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.deactivate=e.activate=void 0;const t=n(9496),i=n(9360),o=n(3897),a=n(4120),s=n(8709),c=n(7214),u=n(1352),l=n(7476),p=n(8271),d=n(3956),f=n(5006),h=n(7633),v=n(3839);e.activate=async function(e){const n=(new Date).getTime();f.default.log("Starting Data Workspace activate()");const r=(new Date).getTime(),g=(0,p.getAzdataApi)();t.commands.executeCommand("setContext","azdataAvailable",!!g),f.default.log(`Setting azdataAvailable took ${(new Date).getTime()-r}ms`);const m=(new Date).getTime(),_=new o.WorkspaceService;f.default.log(`WorkspaceService constructor took ${(new Date).getTime()-m}ms`);const y=(new Date).getTime(),E=new i.WorkspaceTreeDataProvider(_);e.subscriptions.push(t.workspace.onDidChangeWorkspaceFolders((async()=>{await E.refresh()}))),f.default.log(`WorkspaceTreeDataProvider constructor took ${(new Date).getTime()-y}ms`);const b=(new Date).getTime(),S=new a.DataWorkspaceExtension(_);f.default.log(`DataWorkspaceExtension constructor took ${(new Date).getTime()-b}ms`);const T=(new Date).getTime();e.subscriptions.push(t.commands.registerCommand("projects.new",(async()=>{if(await _.ensureProviderExtensionLoaded(void 0,!0),_.isProjectProviderAvailable)if(g){const e=new s.NewProjectDialog(_);await e.open()}else await(0,d.createNewProjectWithQuickpick)(_);else t.window.showErrorMessage(v.noProjectProvidingExtensionsInstalled)}))),e.subscriptions.push(t.commands.registerCommand("projects.openExisting",(async()=>{if(await _.ensureProviderExtensionLoaded(void 0,!0),_.isProjectProviderAvailable)if(g){const e=new c.OpenExistingDialog(_);await e.open()}else{const e=await(0,c.browseForProject)(_);if(!e)return;await _.addProjectsToWorkspace([e])}else t.window.showErrorMessage(v.noProjectProvidingExtensionsInstalled)}))),e.subscriptions.push(t.commands.registerCommand("dataworkspace.refresh",(async()=>{await E.refresh()}))),e.subscriptions.push(t.commands.registerCommand("dataworkspace.close",(()=>t.commands.executeCommand("workbench.action.closeFolder")))),e.subscriptions.push(t.commands.registerCommand("projects.removeProject",(async e=>{await _.removeProject(t.Uri.file(e.element.project.projectFilePath))}))),e.subscriptions.push(t.commands.registerCommand("projects.manageProject",(async e=>{const t=new l.ProjectDashboard(_,e);await t.showDashboard()}))),f.default.log(`Registering commands took ${(new Date).getTime()-T}ms`),e.subscriptions.push(t.extensions.onDidChange((()=>{_.updateIfProjectProviderAvailable()})));const P=(new Date).getTime();return u.IconPathHelper.setExtensionContext(e),f.default.log(`IconPathHelper took ${(new Date).getTime()-P}ms`),e.subscriptions.push(h.TelemetryReporter),f.default.log(`Finished activating Data Workspace extension. Total time = ${(new Date).getTime()-n}ms`),Promise.resolve(S)},e.deactivate=function(){}})();var i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/b6f7beb01f92adaa4b79b6b6f3ac704e95cafe6e/extensions/data-workspace/dist/main.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit