@local-logic/sdks-app 1.24.40 → 1.24.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/assets/{Attribution-1Rs_lSaP.js → Attribution-BFX5_TA0.js} +2 -2
  2. package/dist/assets/{Attribution-1Rs_lSaP.js.map → Attribution-BFX5_TA0.js.map} +1 -1
  3. package/dist/assets/{Attribution-legacy-z2BjL7p0.js → Attribution-legacy-CdR3a3DX.js} +2 -2
  4. package/dist/assets/{Attribution-legacy-z2BjL7p0.js.map → Attribution-legacy-CdR3a3DX.js.map} +1 -1
  5. package/dist/assets/{Cluster-BHQcO6iC-xa0oCXAy.js → Cluster-BHQcO6iC-BOZz2skE.js} +2 -2
  6. package/dist/assets/{Cluster-BHQcO6iC-xa0oCXAy.js.map → Cluster-BHQcO6iC-BOZz2skE.js.map} +1 -1
  7. package/dist/assets/{Cluster-BHQcO6iC-legacy-Bybijjfk.js → Cluster-BHQcO6iC-legacy-B_rK_gsZ.js} +2 -2
  8. package/dist/assets/{Cluster-BHQcO6iC-legacy-Bybijjfk.js.map → Cluster-BHQcO6iC-legacy-B_rK_gsZ.js.map} +1 -1
  9. package/dist/assets/{Google-CH7a2yx--ovYZ-h3M.js → Google-CH7a2yx--DwQd7dvh.js} +2 -2
  10. package/dist/assets/{Google-CH7a2yx--ovYZ-h3M.js.map → Google-CH7a2yx--DwQd7dvh.js.map} +1 -1
  11. package/dist/assets/{Google-CH7a2yx--legacy-C6u2uwAw.js → Google-CH7a2yx--legacy-C0xakqb8.js} +2 -2
  12. package/dist/assets/{Google-CH7a2yx--legacy-C6u2uwAw.js.map → Google-CH7a2yx--legacy-C0xakqb8.js.map} +1 -1
  13. package/dist/assets/{Google-CXGCn-oJ-BXFc5F9y.js → Google-CXGCn-oJ-Dh7vAF1i.js} +2 -2
  14. package/dist/assets/{Google-CXGCn-oJ-BXFc5F9y.js.map → Google-CXGCn-oJ-Dh7vAF1i.js.map} +1 -1
  15. package/dist/assets/{Google-CXGCn-oJ-legacy-Bv9lya5C.js → Google-CXGCn-oJ-legacy-B35yyRBB.js} +2 -2
  16. package/dist/assets/{Google-CXGCn-oJ-legacy-Bv9lya5C.js.map → Google-CXGCn-oJ-legacy-B35yyRBB.js.map} +1 -1
  17. package/dist/assets/{Google-D1kMMDIv-CyqUDjcJ.js → Google-D1kMMDIv-CAaNq2xc.js} +2 -2
  18. package/dist/assets/{Google-D1kMMDIv-CyqUDjcJ.js.map → Google-D1kMMDIv-CAaNq2xc.js.map} +1 -1
  19. package/dist/assets/{Google-D1kMMDIv-legacy-DKdnDC4w.js → Google-D1kMMDIv-legacy-CwFf8lIw.js} +2 -2
  20. package/dist/assets/{Google-D1kMMDIv-legacy-DKdnDC4w.js.map → Google-D1kMMDIv-legacy-CwFf8lIw.js.map} +1 -1
  21. package/dist/assets/{Google-DScXSvYv-legacy-BOwywVA7.js → Google-DScXSvYv-legacy-DEJ7UsBu.js} +2 -2
  22. package/dist/assets/{Google-DScXSvYv-legacy-BOwywVA7.js.map → Google-DScXSvYv-legacy-DEJ7UsBu.js.map} +1 -1
  23. package/dist/assets/{Google-DScXSvYv-CMLGBG91.js → Google-DScXSvYv-qp1ruzZ-.js} +2 -2
  24. package/dist/assets/{Google-DScXSvYv-CMLGBG91.js.map → Google-DScXSvYv-qp1ruzZ-.js.map} +1 -1
  25. package/dist/assets/{Google-qvGtRAuh-PwpE9X2p.js → Google-qvGtRAuh-CubndKzb.js} +2 -2
  26. package/dist/assets/{Google-qvGtRAuh-PwpE9X2p.js.map → Google-qvGtRAuh-CubndKzb.js.map} +1 -1
  27. package/dist/assets/{Google-qvGtRAuh-legacy-DzpIwQOn.js → Google-qvGtRAuh-legacy-CDAA2PYJ.js} +2 -2
  28. package/dist/assets/{Google-qvGtRAuh-legacy-DzpIwQOn.js.map → Google-qvGtRAuh-legacy-CDAA2PYJ.js.map} +1 -1
  29. package/dist/assets/{GridGraph-BtocIeP6.js → GridGraph-Ce2K4lJE.js} +2 -2
  30. package/dist/assets/{GridGraph-BtocIeP6.js.map → GridGraph-Ce2K4lJE.js.map} +1 -1
  31. package/dist/assets/{GridGraph-legacy-BjpzUUXY.js → GridGraph-legacy-QpuvSlS4.js} +2 -2
  32. package/dist/assets/{GridGraph-legacy-BjpzUUXY.js.map → GridGraph-legacy-QpuvSlS4.js.map} +1 -1
  33. package/dist/assets/{LeadCapture-C6J4SFYX.js → LeadCapture-DQ_u-trr.js} +2 -2
  34. package/dist/assets/{LeadCapture-C6J4SFYX.js.map → LeadCapture-DQ_u-trr.js.map} +1 -1
  35. package/dist/assets/{LeadCapture-legacy-CvtD-JLs.js → LeadCapture-legacy-9N32vfea.js} +2 -2
  36. package/dist/assets/{LeadCapture-legacy-CvtD-JLs.js.map → LeadCapture-legacy-9N32vfea.js.map} +1 -1
  37. package/dist/assets/{LocalContent-D_By1RQx.js → LocalContent-2pJKWECA.js} +2 -2
  38. package/dist/assets/{LocalContent-D_By1RQx.js.map → LocalContent-2pJKWECA.js.map} +1 -1
  39. package/dist/assets/{LocalContent-legacy-ySWyVUnO.js → LocalContent-legacy-DPfe8JRY.js} +2 -2
  40. package/dist/assets/{LocalContent-legacy-ySWyVUnO.js.map → LocalContent-legacy-DPfe8JRY.js.map} +1 -1
  41. package/dist/assets/{LocalDemographics-DJ2-OAQf.js → LocalDemographics-CCLrxAlH.js} +2 -2
  42. package/dist/assets/{LocalDemographics-DJ2-OAQf.js.map → LocalDemographics-CCLrxAlH.js.map} +1 -1
  43. package/dist/assets/{LocalDemographics-legacy-BdndzMcL.js → LocalDemographics-legacy-BpeV7vKR.js} +2 -2
  44. package/dist/assets/{LocalDemographics-legacy-BdndzMcL.js.map → LocalDemographics-legacy-BpeV7vKR.js.map} +1 -1
  45. package/dist/assets/{Mapbox-B7oionsm-uR5IXeyy.js → Mapbox-B7oionsm-KJ9BTAVS.js} +2 -2
  46. package/dist/assets/{Mapbox-B7oionsm-uR5IXeyy.js.map → Mapbox-B7oionsm-KJ9BTAVS.js.map} +1 -1
  47. package/dist/assets/{Mapbox-B7oionsm-legacy-DbFnvW90.js → Mapbox-B7oionsm-legacy-DOVfzEvQ.js} +2 -2
  48. package/dist/assets/{Mapbox-B7oionsm-legacy-DbFnvW90.js.map → Mapbox-B7oionsm-legacy-DOVfzEvQ.js.map} +1 -1
  49. package/dist/assets/{Mapbox-CIislOVu-_SCNyNvm.js → Mapbox-CIislOVu-CI4DWbq-.js} +2 -2
  50. package/dist/assets/{Mapbox-CIislOVu-_SCNyNvm.js.map → Mapbox-CIislOVu-CI4DWbq-.js.map} +1 -1
  51. package/dist/assets/{Mapbox-CIislOVu-legacy-BFRdB1ZB.js → Mapbox-CIislOVu-legacy-BE7lsxI8.js} +2 -2
  52. package/dist/assets/{Mapbox-CIislOVu-legacy-BFRdB1ZB.js.map → Mapbox-CIislOVu-legacy-BE7lsxI8.js.map} +1 -1
  53. package/dist/assets/{Mapbox-DDJ1gHRb-DEMJ-azB.js → Mapbox-DDJ1gHRb-1dK4LbZk.js} +2 -2
  54. package/dist/assets/{Mapbox-DDJ1gHRb-DEMJ-azB.js.map → Mapbox-DDJ1gHRb-1dK4LbZk.js.map} +1 -1
  55. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-FX0OT-av.js → Mapbox-DDJ1gHRb-legacy-p6YhQitU.js} +2 -2
  56. package/dist/assets/{Mapbox-DDJ1gHRb-legacy-FX0OT-av.js.map → Mapbox-DDJ1gHRb-legacy-p6YhQitU.js.map} +1 -1
  57. package/dist/assets/{Mapbox-DtZmt1D_-CylJOr0s.js → Mapbox-DtZmt1D_-BfV4qnN4.js} +2 -2
  58. package/dist/assets/{Mapbox-DtZmt1D_-CylJOr0s.js.map → Mapbox-DtZmt1D_-BfV4qnN4.js.map} +1 -1
  59. package/dist/assets/{Mapbox-DtZmt1D_-legacy-CEf_t8Ho.js → Mapbox-DtZmt1D_-legacy-Dd0GlX-Y.js} +2 -2
  60. package/dist/assets/{Mapbox-DtZmt1D_-legacy-CEf_t8Ho.js.map → Mapbox-DtZmt1D_-legacy-Dd0GlX-Y.js.map} +1 -1
  61. package/dist/assets/{Mapbox-vp91lH9I-2azJqyBH.js → Mapbox-vp91lH9I-CkAfe1Ca.js} +2 -2
  62. package/dist/assets/{Mapbox-vp91lH9I-2azJqyBH.js.map → Mapbox-vp91lH9I-CkAfe1Ca.js.map} +1 -1
  63. package/dist/assets/{Mapbox-vp91lH9I-legacy-DPw2IdjJ.js → Mapbox-vp91lH9I-legacy-B00zbfjv.js} +2 -2
  64. package/dist/assets/{Mapbox-vp91lH9I-legacy-DPw2IdjJ.js.map → Mapbox-vp91lH9I-legacy-B00zbfjv.js.map} +1 -1
  65. package/dist/assets/{Maptiler-BQliPE7n-fHYr_Sy8.js → Maptiler-BQliPE7n-B4cS19Fa.js} +2 -2
  66. package/dist/assets/{Maptiler-BQliPE7n-fHYr_Sy8.js.map → Maptiler-BQliPE7n-B4cS19Fa.js.map} +1 -1
  67. package/dist/assets/{Maptiler-BQliPE7n-legacy-eo7KI-_O.js → Maptiler-BQliPE7n-legacy-DBnYfT32.js} +2 -2
  68. package/dist/assets/{Maptiler-BQliPE7n-legacy-eo7KI-_O.js.map → Maptiler-BQliPE7n-legacy-DBnYfT32.js.map} +1 -1
  69. package/dist/assets/{Maptiler-BtYYeJoo-CTmdD2ZG.js → Maptiler-BtYYeJoo-Vhp1tVrO.js} +2 -2
  70. package/dist/assets/{Maptiler-BtYYeJoo-CTmdD2ZG.js.map → Maptiler-BtYYeJoo-Vhp1tVrO.js.map} +1 -1
  71. package/dist/assets/{Maptiler-BtYYeJoo-legacy-3OoLRcAt.js → Maptiler-BtYYeJoo-legacy-CHcjlox7.js} +2 -2
  72. package/dist/assets/{Maptiler-BtYYeJoo-legacy-3OoLRcAt.js.map → Maptiler-BtYYeJoo-legacy-CHcjlox7.js.map} +1 -1
  73. package/dist/assets/{Maptiler-Cy2r6w4G-CP-nhmYn.js → Maptiler-Cy2r6w4G-BhmMrh_F.js} +2 -2
  74. package/dist/assets/{Maptiler-Cy2r6w4G-CP-nhmYn.js.map → Maptiler-Cy2r6w4G-BhmMrh_F.js.map} +1 -1
  75. package/dist/assets/{Maptiler-Cy2r6w4G-legacy-ZYpf9l6D.js → Maptiler-Cy2r6w4G-legacy-Dtiu6fim.js} +2 -2
  76. package/dist/assets/{Maptiler-Cy2r6w4G-legacy-ZYpf9l6D.js.map → Maptiler-Cy2r6w4G-legacy-Dtiu6fim.js.map} +1 -1
  77. package/dist/assets/{Maptiler-DJScKW8p-Crd7Z6cV.js → Maptiler-DJScKW8p-B4sYvTN1.js} +2 -2
  78. package/dist/assets/{Maptiler-DJScKW8p-Crd7Z6cV.js.map → Maptiler-DJScKW8p-B4sYvTN1.js.map} +1 -1
  79. package/dist/assets/{Maptiler-DJScKW8p-legacy-CtCw_AMy.js → Maptiler-DJScKW8p-legacy-BfcUaZSe.js} +2 -2
  80. package/dist/assets/{Maptiler-DJScKW8p-legacy-CtCw_AMy.js.map → Maptiler-DJScKW8p-legacy-BfcUaZSe.js.map} +1 -1
  81. package/dist/assets/{Maptiler-DqeshLom-CrkvMF_T.js → Maptiler-DqeshLom-Dj7UvFn7.js} +2 -2
  82. package/dist/assets/{Maptiler-DqeshLom-CrkvMF_T.js.map → Maptiler-DqeshLom-Dj7UvFn7.js.map} +1 -1
  83. package/dist/assets/{Maptiler-DqeshLom-legacy-DDfM5Hzg.js → Maptiler-DqeshLom-legacy-bBrlYN2Q.js} +2 -2
  84. package/dist/assets/{Maptiler-DqeshLom-legacy-DDfM5Hzg.js.map → Maptiler-DqeshLom-legacy-bBrlYN2Q.js.map} +1 -1
  85. package/dist/assets/{MarkerIcon-Bc3X9WQk-MIM92a-D.js → MarkerIcon-Bc3X9WQk-CGChV4D4.js} +2 -2
  86. package/dist/assets/{MarkerIcon-Bc3X9WQk-MIM92a-D.js.map → MarkerIcon-Bc3X9WQk-CGChV4D4.js.map} +1 -1
  87. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-Df6-FiGi.js → MarkerIcon-Bc3X9WQk-legacy-BhBhhwrP.js} +2 -2
  88. package/dist/assets/{MarkerIcon-Bc3X9WQk-legacy-Df6-FiGi.js.map → MarkerIcon-Bc3X9WQk-legacy-BhBhhwrP.js.map} +1 -1
  89. package/dist/assets/{NeighborhoodCard-vYnzmXHM.js → NeighborhoodCard-BaGtTms0.js} +2 -2
  90. package/dist/assets/{NeighborhoodCard-vYnzmXHM.js.map → NeighborhoodCard-BaGtTms0.js.map} +1 -1
  91. package/dist/assets/{NeighborhoodCard-legacy-DFcfelXl.js → NeighborhoodCard-legacy-B9W6aCqR.js} +2 -2
  92. package/dist/assets/{NeighborhoodCard-legacy-DFcfelXl.js.map → NeighborhoodCard-legacy-B9W6aCqR.js.map} +1 -1
  93. package/dist/assets/{NeighborhoodCharacteristics-CKDqcqBD.js → NeighborhoodCharacteristics-D56qnuca.js} +2 -2
  94. package/dist/assets/{NeighborhoodCharacteristics-CKDqcqBD.js.map → NeighborhoodCharacteristics-D56qnuca.js.map} +1 -1
  95. package/dist/assets/{NeighborhoodCharacteristics-legacy-CLa_SgDg.js → NeighborhoodCharacteristics-legacy-DlowZFEG.js} +2 -2
  96. package/dist/assets/{NeighborhoodCharacteristics-legacy-CLa_SgDg.js.map → NeighborhoodCharacteristics-legacy-DlowZFEG.js.map} +1 -1
  97. package/dist/assets/{NeighborhoodDemographics-9bIYm41b.js → NeighborhoodDemographics-C0jX8lOM.js} +2 -2
  98. package/dist/assets/{NeighborhoodDemographics-9bIYm41b.js.map → NeighborhoodDemographics-C0jX8lOM.js.map} +1 -1
  99. package/dist/assets/{NeighborhoodDemographics-legacy-CS8oTDkw.js → NeighborhoodDemographics-legacy-CnNPTNnh.js} +2 -2
  100. package/dist/assets/{NeighborhoodDemographics-legacy-CS8oTDkw.js.map → NeighborhoodDemographics-legacy-CnNPTNnh.js.map} +1 -1
  101. package/dist/assets/{NeighborhoodFeatured-CqLcXNVj.js → NeighborhoodFeatured-Dy3pyH2M.js} +2 -2
  102. package/dist/assets/{NeighborhoodFeatured-CqLcXNVj.js.map → NeighborhoodFeatured-Dy3pyH2M.js.map} +1 -1
  103. package/dist/assets/{NeighborhoodFeatured-legacy-CUYFzaci.js → NeighborhoodFeatured-legacy-BEY92Bli.js} +2 -2
  104. package/dist/assets/{NeighborhoodFeatured-legacy-CUYFzaci.js.map → NeighborhoodFeatured-legacy-BEY92Bli.js.map} +1 -1
  105. package/dist/assets/{NeighborhoodHero-CvvE1ltz.js → NeighborhoodHero-Ccge3SCR.js} +2 -2
  106. package/dist/assets/{NeighborhoodHero-CvvE1ltz.js.map → NeighborhoodHero-Ccge3SCR.js.map} +1 -1
  107. package/dist/assets/{NeighborhoodHero-legacy-D1mVa22Q.js → NeighborhoodHero-legacy-Cb5s0tRe.js} +2 -2
  108. package/dist/assets/{NeighborhoodHero-legacy-D1mVa22Q.js.map → NeighborhoodHero-legacy-Cb5s0tRe.js.map} +1 -1
  109. package/dist/assets/{NeighborhoodHighlights-CZPdH88M.js → NeighborhoodHighlights-BFiTF1H2.js} +2 -2
  110. package/dist/assets/{NeighborhoodHighlights-CZPdH88M.js.map → NeighborhoodHighlights-BFiTF1H2.js.map} +1 -1
  111. package/dist/assets/{NeighborhoodHighlights-legacy-D9U7NrXB.js → NeighborhoodHighlights-legacy-BQJvJ1kW.js} +2 -2
  112. package/dist/assets/{NeighborhoodHighlights-legacy-D9U7NrXB.js.map → NeighborhoodHighlights-legacy-BQJvJ1kW.js.map} +1 -1
  113. package/dist/assets/{NeighborhoodMap-CW5YonYt.js → NeighborhoodMap-Cs2mW6eY.js} +2 -2
  114. package/dist/assets/{NeighborhoodMap-CW5YonYt.js.map → NeighborhoodMap-Cs2mW6eY.js.map} +1 -1
  115. package/dist/assets/{NeighborhoodMap-legacy-DJc98Olx.js → NeighborhoodMap-legacy-ItxtWyNg.js} +2 -2
  116. package/dist/assets/{NeighborhoodMap-legacy-DJc98Olx.js.map → NeighborhoodMap-legacy-ItxtWyNg.js.map} +1 -1
  117. package/dist/assets/{NeighborhoodMarketTrends-C9k7JehA.js → NeighborhoodMarketTrends-BPFS-IP7.js} +3 -3
  118. package/dist/assets/{NeighborhoodMarketTrends-C9k7JehA.js.map → NeighborhoodMarketTrends-BPFS-IP7.js.map} +1 -1
  119. package/dist/assets/{NeighborhoodMarketTrends-legacy-2bMV1Qzk.js → NeighborhoodMarketTrends-legacy-BFUSfWBV.js} +2 -2
  120. package/dist/assets/{NeighborhoodMarketTrends-legacy-2bMV1Qzk.js.map → NeighborhoodMarketTrends-legacy-BFUSfWBV.js.map} +1 -1
  121. package/dist/assets/{NeighborhoodMatch-D1Ih_N5y.js → NeighborhoodMatch-DyGrO6rV.js} +2 -2
  122. package/dist/assets/{NeighborhoodMatch-D1Ih_N5y.js.map → NeighborhoodMatch-DyGrO6rV.js.map} +1 -1
  123. package/dist/assets/{NeighborhoodMatch-legacy-JIbRT5P5.js → NeighborhoodMatch-legacy-Dk7eubJO.js} +2 -2
  124. package/dist/assets/{NeighborhoodMatch-legacy-JIbRT5P5.js.map → NeighborhoodMatch-legacy-Dk7eubJO.js.map} +1 -1
  125. package/dist/assets/{NeighborhoodPropertyValueDrivers-BZqsNnYY.js → NeighborhoodPropertyValueDrivers-CkZQt4Un.js} +2 -2
  126. package/dist/assets/{NeighborhoodPropertyValueDrivers-BZqsNnYY.js.map → NeighborhoodPropertyValueDrivers-CkZQt4Un.js.map} +1 -1
  127. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-DFZzKasL.js → NeighborhoodPropertyValueDrivers-legacy-t-PsDc7H.js} +2 -2
  128. package/dist/assets/{NeighborhoodPropertyValueDrivers-legacy-DFZzKasL.js.map → NeighborhoodPropertyValueDrivers-legacy-t-PsDc7H.js.map} +1 -1
  129. package/dist/assets/{NeighborhoodSchools-vdqXmI6x.js → NeighborhoodSchools-CYj0W8g4.js} +2 -2
  130. package/dist/assets/{NeighborhoodSchools-vdqXmI6x.js.map → NeighborhoodSchools-CYj0W8g4.js.map} +1 -1
  131. package/dist/assets/{NeighborhoodSchools-legacy-DZvrq0M0.js → NeighborhoodSchools-legacy-CIoYquJq.js} +2 -2
  132. package/dist/assets/{NeighborhoodSchools-legacy-DZvrq0M0.js.map → NeighborhoodSchools-legacy-CIoYquJq.js.map} +1 -1
  133. package/dist/assets/{NeighborhoodShowcase-IMXpKRt7.js → NeighborhoodShowcase-CHCSD8YZ.js} +2 -2
  134. package/dist/assets/{NeighborhoodShowcase-IMXpKRt7.js.map → NeighborhoodShowcase-CHCSD8YZ.js.map} +1 -1
  135. package/dist/assets/{NeighborhoodShowcase-legacy-DsybUJu-.js → NeighborhoodShowcase-legacy-DyZTfaNU.js} +2 -2
  136. package/dist/assets/{NeighborhoodShowcase-legacy-DsybUJu-.js.map → NeighborhoodShowcase-legacy-DyZTfaNU.js.map} +1 -1
  137. package/dist/assets/{NoDataContent-C0rYoHx-.js → NoDataContent-CEAzGzUq.js} +2 -2
  138. package/dist/assets/{NoDataContent-C0rYoHx-.js.map → NoDataContent-CEAzGzUq.js.map} +1 -1
  139. package/dist/assets/{NoDataContent-legacy-KJTrIi_f.js → NoDataContent-legacy-DT86maak.js} +2 -2
  140. package/dist/assets/{NoDataContent-legacy-KJTrIi_f.js.map → NoDataContent-legacy-DT86maak.js.map} +1 -1
  141. package/dist/assets/{ResizeWrapper-C7FI0ut2.js → ResizeWrapper-D7ns3o39.js} +2 -2
  142. package/dist/assets/{ResizeWrapper-C7FI0ut2.js.map → ResizeWrapper-D7ns3o39.js.map} +1 -1
  143. package/dist/assets/{ResizeWrapper-legacy-CxGgsSO0.js → ResizeWrapper-legacy-DibF7KTC.js} +2 -2
  144. package/dist/assets/{ResizeWrapper-legacy-CxGgsSO0.js.map → ResizeWrapper-legacy-DibF7KTC.js.map} +1 -1
  145. package/dist/assets/{ScoreCardList-Cpdc2cjx.js → ScoreCardList-BYAr0xig.js} +2 -2
  146. package/dist/assets/{ScoreCardList-Cpdc2cjx.js.map → ScoreCardList-BYAr0xig.js.map} +1 -1
  147. package/dist/assets/{ScoreCardList-legacy-CEYUmBc-.js → ScoreCardList-legacy-Db7k9lb3.js} +2 -2
  148. package/dist/assets/{ScoreCardList-legacy-CEYUmBc-.js.map → ScoreCardList-legacy-Db7k9lb3.js.map} +1 -1
  149. package/dist/assets/{ScoreIcon-t1E2TT1n.js → ScoreIcon-CWGLoE_R.js} +2 -2
  150. package/dist/assets/{ScoreIcon-t1E2TT1n.js.map → ScoreIcon-CWGLoE_R.js.map} +1 -1
  151. package/dist/assets/{ScoreIcon-legacy-DkcfBQiQ.js → ScoreIcon-legacy-DGUI0vRG.js} +2 -2
  152. package/dist/assets/{ScoreIcon-legacy-DkcfBQiQ.js.map → ScoreIcon-legacy-DGUI0vRG.js.map} +1 -1
  153. package/dist/assets/{Testing--n5Ro0Ek-BsPetIU5.js → Testing--n5Ro0Ek-DXRiz8JT.js} +2 -2
  154. package/dist/assets/{Testing--n5Ro0Ek-BsPetIU5.js.map → Testing--n5Ro0Ek-DXRiz8JT.js.map} +1 -1
  155. package/dist/assets/{Testing--n5Ro0Ek-legacy-CsbvD4x2.js → Testing--n5Ro0Ek-legacy-B6FpaP3L.js} +2 -2
  156. package/dist/assets/{Testing--n5Ro0Ek-legacy-CsbvD4x2.js.map → Testing--n5Ro0Ek-legacy-B6FpaP3L.js.map} +1 -1
  157. package/dist/assets/{Testing-BNJwzbRK-BEmMvKs-.js → Testing-BNJwzbRK-VAOz2xBT.js} +2 -2
  158. package/dist/assets/{Testing-BNJwzbRK-BEmMvKs-.js.map → Testing-BNJwzbRK-VAOz2xBT.js.map} +1 -1
  159. package/dist/assets/{Testing-BNJwzbRK-legacy-CyJlRp16.js → Testing-BNJwzbRK-legacy-CcRLjo0P.js} +2 -2
  160. package/dist/assets/{Testing-BNJwzbRK-legacy-CyJlRp16.js.map → Testing-BNJwzbRK-legacy-CcRLjo0P.js.map} +1 -1
  161. package/dist/assets/{Testing-CoRLhmNT-CPD-TUoo.js → Testing-CoRLhmNT-DkH9taDM.js} +2 -2
  162. package/dist/assets/{Testing-CoRLhmNT-CPD-TUoo.js.map → Testing-CoRLhmNT-DkH9taDM.js.map} +1 -1
  163. package/dist/assets/{Testing-CoRLhmNT-legacy-DfgW_o9l.js → Testing-CoRLhmNT-legacy-D75s8djK.js} +2 -2
  164. package/dist/assets/{Testing-CoRLhmNT-legacy-DfgW_o9l.js.map → Testing-CoRLhmNT-legacy-D75s8djK.js.map} +1 -1
  165. package/dist/assets/{Testing-DGUeGxdc-BdjxCDn4.js → Testing-DGUeGxdc-dBjPjKfX.js} +2 -2
  166. package/dist/assets/{Testing-DGUeGxdc-BdjxCDn4.js.map → Testing-DGUeGxdc-dBjPjKfX.js.map} +1 -1
  167. package/dist/assets/{Testing-DGUeGxdc-legacy-BMmCiaA9.js → Testing-DGUeGxdc-legacy-Bo3xf4lS.js} +2 -2
  168. package/dist/assets/{Testing-DGUeGxdc-legacy-BMmCiaA9.js.map → Testing-DGUeGxdc-legacy-Bo3xf4lS.js.map} +1 -1
  169. package/dist/assets/{Testing-DzWAcbhL-D9IV0vyX.js → Testing-DzWAcbhL-CORqap_0.js} +2 -2
  170. package/dist/assets/{Testing-DzWAcbhL-D9IV0vyX.js.map → Testing-DzWAcbhL-CORqap_0.js.map} +1 -1
  171. package/dist/assets/{Testing-DzWAcbhL-legacy-ByYDbJ2R.js → Testing-DzWAcbhL-legacy-C_L0YDrv.js} +2 -2
  172. package/dist/assets/{Testing-DzWAcbhL-legacy-ByYDbJ2R.js.map → Testing-DzWAcbhL-legacy-C_L0YDrv.js.map} +1 -1
  173. package/dist/assets/{TitleHeader-legacy-BLb6gLY8.js → TitleHeader-legacy-Dkn0qrYi.js} +2 -2
  174. package/dist/assets/{TitleHeader-legacy-BLb6gLY8.js.map → TitleHeader-legacy-Dkn0qrYi.js.map} +1 -1
  175. package/dist/assets/{TitleHeader-D5FOkV2k.js → TitleHeader-q22P7nGv.js} +2 -2
  176. package/dist/assets/{TitleHeader-D5FOkV2k.js.map → TitleHeader-q22P7nGv.js.map} +1 -1
  177. package/dist/assets/{Trans-D7Lw95-5.js → Trans-CoQWpfjg.js} +2 -2
  178. package/dist/assets/{Trans-D7Lw95-5.js.map → Trans-CoQWpfjg.js.map} +1 -1
  179. package/dist/assets/{Trans-legacy-CpzDXXlm.js → Trans-legacy-CVX9qUZX.js} +2 -2
  180. package/dist/assets/{Trans-legacy-CpzDXXlm.js.map → Trans-legacy-CVX9qUZX.js.map} +1 -1
  181. package/dist/assets/{ValidateOptions-DO60DBsp.js → ValidateOptions-CBV1N5jv.js} +2 -2
  182. package/dist/assets/{ValidateOptions-DO60DBsp.js.map → ValidateOptions-CBV1N5jv.js.map} +1 -1
  183. package/dist/assets/{ValidateOptions-legacy-3q4kbk3m.js → ValidateOptions-legacy-DSqr0GvA.js} +2 -2
  184. package/dist/assets/{ValidateOptions-legacy-3q4kbk3m.js.map → ValidateOptions-legacy-DSqr0GvA.js.map} +1 -1
  185. package/dist/assets/{dist-DR7fC17q.js → dist-BS0nF9v1.js} +2 -2
  186. package/dist/assets/{dist-DR7fC17q.js.map → dist-BS0nF9v1.js.map} +1 -1
  187. package/dist/assets/{dist-legacy-cfZE5xAd.js → dist-legacy-DvNzEKrH.js} +2 -2
  188. package/dist/assets/{dist-legacy-cfZE5xAd.js.map → dist-legacy-DvNzEKrH.js.map} +1 -1
  189. package/dist/assets/{getMapProviderConfig-CioaIqLl.js → getMapProviderConfig-Bzfs0Sdc.js} +3 -3
  190. package/dist/assets/{getMapProviderConfig-CioaIqLl.js.map → getMapProviderConfig-Bzfs0Sdc.js.map} +1 -1
  191. package/dist/assets/{getMapProviderConfig-legacy-Bvhnps7J.js → getMapProviderConfig-legacy-J1T1rgyn.js} +2 -2
  192. package/dist/assets/{getMapProviderConfig-legacy-Bvhnps7J.js.map → getMapProviderConfig-legacy-J1T1rgyn.js.map} +1 -1
  193. package/dist/assets/{index-Bs6_tEDn.js → index-_e6zO9FA.js} +3 -3
  194. package/dist/assets/{index-Bs6_tEDn.js.map → index-_e6zO9FA.js.map} +1 -1
  195. package/dist/assets/{index-legacy-4jEyS75d.js → index-legacy-D77-aBOf.js} +2 -2
  196. package/dist/assets/{index-legacy-4jEyS75d.js.map → index-legacy-D77-aBOf.js.map} +1 -1
  197. package/dist/assets/{index.es-DqsbUu3C.js → index.es-CWTeuLFE.js} +2 -2
  198. package/dist/assets/{index.es-DqsbUu3C.js.map → index.es-CWTeuLFE.js.map} +1 -1
  199. package/dist/assets/{index.es-legacy-D0YewKKM.js → index.es-legacy-C0a6QEDw.js} +2 -2
  200. package/dist/assets/{index.es-legacy-D0YewKKM.js.map → index.es-legacy-C0a6QEDw.js.map} +1 -1
  201. package/dist/assets/{mapbox-jb8Zev6T-C9a-fLxp.js → mapbox-jb8Zev6T-Ddgqj9VI.js} +2 -2
  202. package/dist/assets/{mapbox-jb8Zev6T-C9a-fLxp.js.map → mapbox-jb8Zev6T-Ddgqj9VI.js.map} +1 -1
  203. package/dist/assets/{mapbox-jb8Zev6T-legacy-C5JRCz3k.js → mapbox-jb8Zev6T-legacy-vMWDQC6s.js} +2 -2
  204. package/dist/assets/{mapbox-jb8Zev6T-legacy-C5JRCz3k.js.map → mapbox-jb8Zev6T-legacy-vMWDQC6s.js.map} +1 -1
  205. package/dist/assets/{maplibre-CUYkxr-D-DB5uPmy7.js → maplibre-CUYkxr-D-C7Skcfn8.js} +2 -2
  206. package/dist/assets/{maplibre-CUYkxr-D-DB5uPmy7.js.map → maplibre-CUYkxr-D-C7Skcfn8.js.map} +1 -1
  207. package/dist/assets/{maplibre-CUYkxr-D-legacy-BrYegJJb.js → maplibre-CUYkxr-D-legacy-CuAPk6TP.js} +2 -2
  208. package/dist/assets/{maplibre-CUYkxr-D-legacy-BrYegJJb.js.map → maplibre-CUYkxr-D-legacy-CuAPk6TP.js.map} +1 -1
  209. package/dist/assets/neighborhood-fallback-CizB5oi9.js.map +1 -1
  210. package/dist/assets/neighborhood-fallback-legacy-Bu1BwGpC.js.map +1 -1
  211. package/dist/assets/sdks-BuksrzcW.js +2 -0
  212. package/dist/assets/sdks-BuksrzcW.js.map +1 -0
  213. package/dist/assets/sdks-legacy-CoLf_W4Z.js +2 -0
  214. package/dist/assets/sdks-legacy-CoLf_W4Z.js.map +1 -0
  215. package/dist/assets/{useDemographicsData-C0C4upsm.js → useDemographicsData-B4it1cPj.js} +2 -2
  216. package/dist/assets/{useDemographicsData-C0C4upsm.js.map → useDemographicsData-B4it1cPj.js.map} +1 -1
  217. package/dist/assets/{useDemographicsData-legacy-DPnr3Jmh.js → useDemographicsData-legacy-BYnQNjDv.js} +2 -2
  218. package/dist/assets/{useDemographicsData-legacy-DPnr3Jmh.js.map → useDemographicsData-legacy-BYnQNjDv.js.map} +1 -1
  219. package/dist/assets/{useGeographies-Dsip5TUe.js → useGeographies-h5AWa9mj.js} +2 -2
  220. package/dist/assets/{useGeographies-Dsip5TUe.js.map → useGeographies-h5AWa9mj.js.map} +1 -1
  221. package/dist/assets/{useGeographies-legacy-CZm4sQ-W.js → useGeographies-legacy-D7XUaxgU.js} +2 -2
  222. package/dist/assets/{useGeographies-legacy-CZm4sQ-W.js.map → useGeographies-legacy-D7XUaxgU.js.map} +1 -1
  223. package/dist/assets/{useIsMobile-D1ppstVc.js → useIsMobile-CEgZCKoT.js} +2 -2
  224. package/dist/assets/{useIsMobile-D1ppstVc.js.map → useIsMobile-CEgZCKoT.js.map} +1 -1
  225. package/dist/assets/{useIsMobile-legacy-BCGf3xRg.js → useIsMobile-legacy-BYXlMXeW.js} +2 -2
  226. package/dist/assets/{useIsMobile-legacy-BCGf3xRg.js.map → useIsMobile-legacy-BYXlMXeW.js.map} +1 -1
  227. package/dist/assets/{useLocation-woeqoUC-.js → useLocation-KxuXzpB1.js} +2 -2
  228. package/dist/assets/{useLocation-woeqoUC-.js.map → useLocation-KxuXzpB1.js.map} +1 -1
  229. package/dist/assets/{useLocation-legacy-CrONniQb.js → useLocation-legacy-TYbGg3Qq.js} +2 -2
  230. package/dist/assets/{useLocation-legacy-CrONniQb.js.map → useLocation-legacy-TYbGg3Qq.js.map} +1 -1
  231. package/dist/assets/{useProfiles-BD0axzG_.js → useProfiles-BMZF6PTl.js} +2 -2
  232. package/dist/assets/{useProfiles-BD0axzG_.js.map → useProfiles-BMZF6PTl.js.map} +1 -1
  233. package/dist/assets/{useProfiles-legacy-xMXLwJ8a.js → useProfiles-legacy-CtdD2AM8.js} +2 -2
  234. package/dist/assets/{useProfiles-legacy-xMXLwJ8a.js.map → useProfiles-legacy-CtdD2AM8.js.map} +1 -1
  235. package/dist/assets/{useSchools-Bp4ifAPV.js → useSchools-Dmfxgddk.js} +2 -2
  236. package/dist/assets/{useSchools-Bp4ifAPV.js.map → useSchools-Dmfxgddk.js.map} +1 -1
  237. package/dist/assets/{useSchools-legacy-CBF47OQq.js → useSchools-legacy-CBA1yga4.js} +2 -2
  238. package/dist/assets/{useSchools-legacy-CBF47OQq.js.map → useSchools-legacy-CBA1yga4.js.map} +1 -1
  239. package/dist/assets/{useScores-C3u-1G5Q.js → useScores-BYEwsLLe.js} +2 -2
  240. package/dist/assets/{useScores-C3u-1G5Q.js.map → useScores-BYEwsLLe.js.map} +1 -1
  241. package/dist/assets/{useScores-legacy-DlQbFEJD.js → useScores-legacy-CCbzbNWr.js} +2 -2
  242. package/dist/assets/{useScores-legacy-DlQbFEJD.js.map → useScores-legacy-CCbzbNWr.js.map} +1 -1
  243. package/dist/index.html +2 -2
  244. package/dist/types/tracking/tracker/index.d.ts.map +1 -1
  245. package/dist/types/tracking/tracker/index.js +15 -0
  246. package/dist/types/tracking/tracker/index.js.map +1 -1
  247. package/dist/types/utils/errorTracker/index.d.ts.map +1 -1
  248. package/dist/types/utils/errorTracker/index.js +7 -8
  249. package/dist/types/utils/errorTracker/index.js.map +1 -1
  250. package/package.json +2 -1
  251. package/dist/assets/sdks-BLrYTJCI.js +0 -2
  252. package/dist/assets/sdks-BLrYTJCI.js.map +0 -1
  253. package/dist/assets/sdks-legacy-BKNGokn5.js +0 -2
  254. package/dist/assets/sdks-legacy-BKNGokn5.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import{a as e,t}from"./rolldown-runtime-C_ttsnZz.js";import{l as r}from"./google-maps-vendor-DvfEEdRU.js";import{$ as n,K as i,Q as o,X as s,Y as a,Z as u,a as c,at as l,ct as h,dt as p,et as f,ft as d,gt as g,ht as m,lt as v,mt as y,nt as b,ot as _,pt as w,q as k,rt as S,st as x,tt as C,ut as E}from"./index-_e6zO9FA.js";var I,O,T,A,R,M,F,N,D,P,L,j,$,U,B,q,z=e(r()),V=(e,t,r,n)=>{const i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);J(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},W={},H=(e,t,r,n)=>{J(r)&&W[r]||(J(r)&&(W[r]=new Date),V(e,t,r,n))},G=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},Z=(e,t,r)=>{e.loadNamespaces(t,G(e,r))},Y=(e,t,r,n)=>{if(J(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Z(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,G(e,n))},J=e=>"string"==typeof e,K=e=>"object"==typeof e&&null!==e,X=(0,z.createContext)(),Q=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},ee=(e,t,r,n)=>e.getFixedT(t,r,n),te=(e,t={})=>{const{i18n:r}=t,{i18n:n,defaultNS:i}=(0,z.useContext)(X)||{},o=r||n||m();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Q),!o){H(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>J(t)?t:K(t)&&J(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}o.options.react?.wait&&H(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...g(),...o.options.react,...t},{useSuspense:a,keyPrefix:u}=s;let c=e||i||o.options?.defaultNS;c=J(c)?[c]:c||["translation"],o.reportNamespaces.addUsedNamespaces?.(c);const l=(o.isInitialized||o.initializedStoreOnce)&&c.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(H(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,o,s)),h=((e,t,r,n)=>(0,z.useCallback)(ee(e,t,r,n),[e,t,r,n]))(o,t.lng||null,"fallback"===s.nsMode?c:c[0],u),p=()=>h,f=()=>ee(o,t.lng||null,"fallback"===s.nsMode?c:c[0],u),[d,v]=(0,z.useState)(p);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const b=((e,t)=>{const r=(0,z.useRef)();return(0,z.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current})(y),_=(0,z.useRef)(!0);(0,z.useEffect)(()=>{const{bindI18n:e,bindI18nStore:r}=s;_.current=!0,l||a||(t.lng?Y(o,t.lng,c,()=>{_.current&&v(f)}):Z(o,c,()=>{_.current&&v(f)})),l&&b&&b!==y&&_.current&&v(f);const n=()=>{_.current&&v(f)};return e&&o?.on(e,n),r&&o?.store.on(r,n),()=>{_.current=!1,o&&e&&e?.split(" ").forEach(e=>o.off(e,n)),r&&o&&r.split(" ").forEach(e=>o.store.off(e,n))}},[o,y]),(0,z.useEffect)(()=>{_.current&&l&&v(p)},[o,u,l]);const w=[d,o,l];if(w.t=d,w.i18n=o,w.ready=l,l)return w;if(!l&&!a)return w;throw new Promise(e=>{t.lng?Y(o,t.lng,c,()=>e()):Z(o,c,()=>e())})},re=(I=new WeakMap,O=new WeakMap,T=new WeakMap,A=new WeakMap,R=new WeakMap,M=new WeakMap,F=new WeakMap,N=new WeakMap,D=new WeakMap,P=new WeakMap,L=new WeakMap,j=new WeakMap,$=new WeakMap,U=new WeakMap,B=new WeakMap,q=new WeakSet,class extends y{constructor(e,t){super(),s(this,q),S(this,I,void 0),S(this,O,void 0),S(this,T,void 0),S(this,A,void 0),S(this,R,void 0),S(this,M,void 0),S(this,F,void 0),S(this,N,void 0),S(this,D,void 0),S(this,P,void 0),S(this,L,void 0),S(this,j,void 0),S(this,$,void 0),S(this,U,void 0),S(this,B,new Set),this.options=t,C(I,this,e),C(N,this,null),C(F,this,o()),this.options.experimental_prefetchInRender||f(F,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(f(O,this).addObserver(this),pe(f(O,this),this.options)?b(q,this,ne).call(this):this.updateResult(),b(q,this,ae).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fe(f(O,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fe(f(O,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,b(q,this,ue).call(this),b(q,this,ce).call(this),f(O,this).removeObserver(this)}setOptions(e){const t=this.options,r=f(O,this);if(this.options=f(I,this).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof v(this.options.enabled,f(O,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");b(q,this,le).call(this),f(O,this).setOptions(this.options),t._defaulted&&!p(this.options,t)&&f(I,this).getQueryCache().notify({type:"observerOptionsUpdated",query:f(O,this),observer:this});const n=this.hasListeners();n&&de(f(O,this),r,this.options,t)&&b(q,this,ne).call(this),this.updateResult(),!n||f(O,this)===r&&v(this.options.enabled,f(O,this))===v(t.enabled,f(O,this))&&E(this.options.staleTime,f(O,this))===E(t.staleTime,f(O,this))||b(q,this,ie).call(this);const i=b(q,this,oe).call(this);!n||f(O,this)===r&&v(this.options.enabled,f(O,this))===v(t.enabled,f(O,this))&&i===f(U,this)||b(q,this,se).call(this,i)}getOptimisticResult(e){const t=f(I,this).getQueryCache().build(f(I,this),e),r=this.createResult(t,e);var n;return n=r,p(this.getCurrentResult(),n)||(C(A,this,r),C(M,this,this.options),C(R,this,f(O,this).state)),r}getCurrentResult(){return f(A,this)}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){f(B,this).add(e)}getCurrentQuery(){return f(O,this)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=f(I,this).defaultQueryOptions(e),r=f(I,this).getQueryCache().build(f(I,this),t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return b(q,this,ne).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),f(A,this)))}createResult(e,t){const r=f(O,this),n=this.options,i=f(A,this),s=f(R,this),u=f(M,this),c=e!==r?e.state:f(T,this),{state:l}=e;let p,d={...l},g=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&pe(e,t),s=i&&de(e,r,t,n);(o||s)&&(d={...d,...a(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:b}=d;p=d.data;let _=!1;if(void 0!==t.placeholderData&&void 0===p&&"pending"===b){let e;i?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=i.data,_=!0):e="function"==typeof t.placeholderData?t.placeholderData(f(L,this)?.state.data,f(L,this)):t.placeholderData,void 0!==e&&(b="success",p=h(i?.data,e,t),g=!0)}if(t.select&&void 0!==p&&!_)if(i&&p===s?.data&&t.select===f(D,this))p=f(P,this);else try{C(D,this,t.select),p=t.select(p),p=h(i?.data,p,t),C(P,this,p),C(N,this,null)}catch(j){C(N,this,j)}f(N,this)&&(m=f(N,this),p=f(P,this),y=Date.now(),b="error");const w="fetching"===d.fetchStatus,k="pending"===b,S="error"===b,x=k&&w,E=void 0!==p,I={status:b,fetchStatus:d.fetchStatus,isPending:k,isSuccess:"success"===b,isError:S,isInitialLoading:x,isLoading:x,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:w,isRefetching:w&&!k,isLoadingError:S&&!E,isPaused:"paused"===d.fetchStatus,isPlaceholderData:g,isRefetchError:S&&E,isStale:ge(e,t),refetch:this.refetch,promise:f(F,this),isEnabled:!1!==v(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},n=()=>{t(C(F,this,I.promise=o()))},i=f(F,this);switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":"error"!==I.status&&I.data===i.value||n();break;case"rejected":"error"===I.status&&I.error===i.reason||n()}}return I}updateResult(){const e=f(A,this),t=this.createResult(f(O,this),this.options);if(C(R,this,f(O,this).state),C(M,this,this.options),void 0!==f(R,this).data&&C(L,this,f(O,this)),p(t,e))return;C(A,this,t);b(q,this,he).call(this,{listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!f(B,this).size)return!0;const n=new Set(r??f(B,this));return this.options.throwOnError&&n.add("error"),Object.keys(f(A,this)).some(t=>{const r=t;return f(A,this)[r]!==e[r]&&n.has(r)})})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&b(q,this,ae).call(this)}});function ne(e){b(q,this,le).call(this);let t=f(O,this).fetch(this.options,e);return e?.throwOnError||(t=t.catch(x)),t}function ie(){b(q,this,ue).call(this);const e=E(this.options.staleTime,f(O,this));if(l||f(A,this).isStale||!_(e))return;const t=w(f(A,this).dataUpdatedAt,e)+1;C(j,this,setTimeout(()=>{f(A,this).isStale||this.updateResult()},t))}function oe(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(f(O,this)):this.options.refetchInterval)??!1}function se(e){b(q,this,ce).call(this),C(U,this,e),!l&&!1!==v(this.options.enabled,f(O,this))&&_(f(U,this))&&0!==f(U,this)&&C($,this,setInterval(()=>{(this.options.refetchIntervalInBackground||n.isFocused())&&b(q,this,ne).call(this)},f(U,this)))}function ae(){b(q,this,ie).call(this),b(q,this,se).call(this,b(q,this,oe).call(this))}function ue(){f(j,this)&&(clearTimeout(f(j,this)),C(j,this,void 0))}function ce(){f($,this)&&(clearInterval(f($,this)),C($,this,void 0))}function le(){const e=f(I,this).getQueryCache().build(f(I,this),this.options);if(e===f(O,this))return;const t=f(O,this);C(O,this,e),C(T,this,e.state),this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function he(e){u.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(f(A,this))}),f(I,this).getQueryCache().notify({query:f(O,this),type:"observerResultsUpdated"})})}function pe(e,t){return function(e,t){return!1!==v(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&fe(e,t,t.refetchOnMount)}function fe(e,t,r){if(!1!==v(t.enabled,e)&&"static"!==E(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&ge(e,t)}return!1}function de(e,t,r,n){return(e!==t||!1===v(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&ge(e,r)}function ge(e,t){return!1!==v(t.enabled,e)&&e.isStaleByTime(E(t.staleTime,e))}var me=k(),ve=z.createContext(!1);ve.Provider;var ye=z.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),be=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function _e(e,t,r){const n=z.useContext(ve),o=z.useContext(ye),s=i(r),a=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(a),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{z.useEffect(()=>{e.clearReset()},[e])})(o);const c=!s.getQueryCache().get(a.queryHash),[h]=z.useState(()=>new t(s,a)),p=h.getOptimisticResult(a),f=!n&&!1!==e.subscribed;if(z.useSyncExternalStore(z.useCallback(e=>{const t=f?h.subscribe(u.batchCalls(e)):x;return h.updateResult(),t},[h,f]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),z.useEffect(()=>{h.setOptions(a)},[a,h]),((e,t)=>e?.suspense&&t.isPending)(a,p))throw be(a,h,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||d(r,[e.error,n])))({result:p,errorResetBoundary:o,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(a,p),a.experimental_prefetchInRender&&!l&&((e,t)=>e.isLoading&&e.isFetching&&!t)(p,n)&&(c?be(a,h,o):s.getQueryCache().get(a.queryHash)?.promise)?.catch(x).finally(()=>{h.updateResult()}),a.notifyOnChangeProps?p:h.trackResult(p)}function we(e,t){return _e(e,re,t)}var ke,Se,xe,Ce=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/RequestError"}},Ee=t((e,t)=>{function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),l=new r(512);function h(e){return u.get(e)||u.set(e,p(e).map(function(e){return e.replace(a,"$2")}))}function p(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}t.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=h(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||i.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),o=!(s=f(n))&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}}),Ie=t((e,t)=>{var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(r)||[],i=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),s=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");t.exports={words:n,upperFirst:i,camelCase:s,pascalCase:e=>i(s(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>i(o(e," ")),titleCase:e=>n(e).map(i).join(" ")}}),Oe=t((e,t)=>{function r(e,t){var r=e.length,n=new Array(r),i={},o=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||u(e[o],o,new Set);return n;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch($m){c=""}throw new Error("Cyclic dependency"+c)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var h=l[--t];u(h,a.get(h),o)}while(t);o.delete(e)}n[--r]=e}}}t.exports=function(e){return r(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},t.exports.array=r}),Te=Ee(),Ae=Ie(),Re=e(Oe()),Me=Object.prototype.toString,Fe=Error.prototype.toString,Ne=RegExp.prototype.toString,De="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Pe=/^Symbol\((.*)\)(.*)$/;function Le(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return De.call(e).replace(Pe,"Symbol($1)");const n=Me.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+Fe.call(e)+"]":"RegExp"===n?Ne.call(e):null}function je(e,t){let r=Le(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=Le(this[e],t);return null!==n?n:r},2)}function $e(e){return null==e?[]:[].concat(e)}var Ue=/\$\{\s*(\w+)\s*\}/g;ke=Symbol.toStringTag;var Be=class{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ke]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],$e(e).forEach(e=>{if(qe.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};Se=Symbol.hasInstance,xe=Symbol.toStringTag;var qe=class e extends Error{static formatError(e,t){const r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(Ue,(e,r)=>je(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(t,r,n,i,o){const s=new Be(t,r,n,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[xe]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,e)}static[Se](e){return Be[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},ze={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=null!=n&&n!==r?` (cast from the value \`${je(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${je(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${je(r,!0)}\``+i}},Ve={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},We={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},He={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ge={isValue:"${path} field must be ${value}"},Ze={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Ye={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Je={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${je(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${je(r,!0)}\``}return qe.formatError(ze.notType,e)}},Ke=(Object.assign(Object.create(null),{mixed:ze,string:Ve,number:We,date:He,object:Ze,array:Ye,boolean:Ge,tuple:Je}),e=>e&&e.__isYupSchema__),Xe=class e{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new e(t,(e,t)=>{var r;let n=s(...e)?i:o;return null!=(r=null==n?void 0:n(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!Ke(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}},Qe="$",et=".",tt=class{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Qe,this.isValue=this.key[0]===et,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Qe:this.isValue?et:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Te.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};tt.prototype.__isYupRef=!0;var rt=e=>null==e;function nt(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},s,a){const{name:u,test:c,params:l,message:h,skipAbsent:p}=e;let{parent:f,context:d,abortEarly:g=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n;const v={value:t,parent:f,context:d};function y(e={}){const n=it(Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},l,e.params),v),s=new qe(qe.formatError(e.message||h,n),t,n.path,e.type||u,n.disableStackTrace);return s.params=n,s}const b=g?s:a;let _={path:r,parent:f,type:u,from:n.from,createError:y,resolve:e=>ot(e,v),options:n,originalValue:i,schema:o};const w=e=>{qe.isError(e)?b(e):e?a(null):b(y())},k=e=>{qe.isError(e)?b(e):s(e)};if(p&&rt(t))return w(!0);let S;try{var x;if(S=c.call(_,t,_),"function"==typeof(null==(x=S)?void 0:x.then)){if(n.sync)throw new Error(`Validation test of type: "${_.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(w,k)}}catch(C){return void k(C)}w(S)}return t.OPTIONS=e,t}function it(e,t){if(!e)return e;for(const r of Object.keys(e))e[r]=ot(e[r],t);return e}function ot(e,t){return tt.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function st(e,t,r,n=r){let i,o,s;return t?((0,Te.forEach)(t,(a,u,c)=>{let l=u?a.slice(1,a.length-1):a,h="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||h){if(h&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=h?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r=r&&r[l],e=e.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}var at=class e extends Set{describe(){const e=[];for(const t of this.values())e.push(tt.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const r of this.values())t.push(e(r));return t}clone(){return new e(this.values())}merge(e,t){const r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}};function ut(e,t=new Map){if(Ke(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=ut(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,ut(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(ut(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=ut(i,t)}return r}function ct(e){if(null==e||!e.length)return;const t=[];let r="",n=!1,i=!1;for(let o=0;o<e.length;o++){const s=e[o];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||n||i?r+=s:r&&(t.push(r),r=""):i=!i:(r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1):(r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0)}return r&&t.push(...r.split(".").filter(Boolean)),t}function lt(e,t){var r;if((null==(r=e.inner)||!r.length)&&e.errors.length)return function(e,t){const r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:ct(r)}))}(e,t);const n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>lt(e,n))}var ht=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new at,this._blacklist=new at,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ze.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=ut(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();return r.spec=Object.assign({},t.spec,r.spec),r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,r,n,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&rt(i))return i;let o=je(e),s=je(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(s!==o?`result of cast: ${s}`:""))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:u},r,e=>{if(e.length)return n(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:s,path:a,options:u}=e,c=e=>{n||(n=!0,t(e,o))},l=e=>{n||(n=!0,r(e,o))},h=i.length,p=[];if(!h)return l([]);let f={value:o,originalValue:s,path:a,options:u,schema:this};for(let d=0;d<i.length;d++){(0,i[d])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--h<=0&&l(p)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){const s=null!=e?e:t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const a="number"==typeof s;let u=r[s];const c=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${n||""}[${a?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),i=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise((r,o)=>n._validate(e,t,(e,t)=>{qe.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new qe(e,t,void 0,void 0,i)):r(t)}))}validateSync(e,t){var r;let n,i=this.resolve(Object.assign({},t,{value:e})),o=null!=(r=null==t?void 0:t.disableStackTrace)?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw qe.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new qe(t,e,void 0,void 0,o);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(qe.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(r){if(qe.isError(r))return!1;throw r}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):ut(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const r=this.clone({nullable:e});return r.internalTests.nullable=nt({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){const r=this.clone({optional:e});return r.internalTests.optionality=nt({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=ze.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=ze.notNull){return this.nullability(!1,e)}required(e=ze.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=ze.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=nt(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=$e(e).map(e=>new tt(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new Xe(n,t):Xe.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=nt({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=ze.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=nt({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=ze.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=nt({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const r=t.OPTIONS.params&&e?it(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(r){if(r instanceof qe)return{issues:lt(r)};throw r}}}}};ht.prototype.__isYupSchema__=!0;for(const ub of["validate","validateSync"])ht.prototype[`${ub}At`]=function(e,t,r={}){const{parent:n,parentPath:i,schema:o}=st(this,e,t,r.context);return o[ub](n&&n[i],Object.assign({},r,{parent:n,path:e}))};for(const ub of["equals","is"])ht.prototype[ub]=ht.prototype.oneOf;for(const ub of["not","nope"])ht.prototype[ub]=ht.prototype.notOneOf;var pt=()=>!0;function ft(e){return new dt(e)}var dt=class extends ht{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:pt},e))}};function gt(){return new mt}ft.prototype=dt.prototype;var mt=class extends ht{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=Ge.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>rt(e)||!0===e})}isFalse(e=Ge.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>rt(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};gt.prototype=mt.prototype;var vt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function yt(e){var t,r;const n=vt.exec(e);return n?{year:bt(n[1]),month:bt(n[2],1)-1,day:bt(n[3],1),hour:bt(n[4]),minute:bt(n[5]),second:bt(n[6]),millisecond:n[7]?bt(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:bt(n[10]),minuteOffset:bt(n[11])}:null}function bt(e,t=0){return Number(e)||t}var _t=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,wt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,kt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,St=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),xt=e=>rt(e)||e===e.trim(),Ct={}.toString();function Et(){return new It}var It=class extends ht{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e))return e;if(Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===Ct?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||ze.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=Ve.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=Ve.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=Ve.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||Ve.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=Ve.email){return this.matches(_t,{name:"email",message:e,excludeEmptyString:!0})}url(e=Ve.url){return this.matches(wt,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Ve.uuid){return this.matches(kt,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(St,{name:"datetime",message:n||Ve.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ve.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const r=yt(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||Ve.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;const t=yt(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=Ve.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:xt})}lowercase(e=Ve.lowercase){return this.transform(e=>rt(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>rt(e)||e===e.toLowerCase()})}uppercase(e=Ve.uppercase){return this.transform(e=>rt(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>rt(e)||e===e.toUpperCase()})}};Et.prototype=It.prototype;function Ot(){return new Tt}var Tt=class extends ht{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!(e=>e!=+e)(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=We.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=We.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=We.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=We.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=We.positive){return this.moreThan(0,e)}negative(e=We.negative){return this.lessThan(0,e)}integer(e=We.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>rt(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>rt(t)?t:Math[e](t))}};Ot.prototype=Tt.prototype;var At=new Date("");function Rt(){return new Mt}var Mt=class e extends ht{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||null===t?t:(t=function(e){const t=yt(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(t),isNaN(t)?e.INVALID_DATE:new Date(t)))})}prepareParam(e,t){let r;if(tt.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=He.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=He.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}};function Ft(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function Nt(e){return(t,r)=>Ft(e,t)-Ft(e,r)}Mt.INVALID_DATE=At,Rt.prototype=Mt.prototype,Rt.INVALID_DATE=At;var Dt=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(i){}return r.isType(n)?n:e};function Pt(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=Pt(n);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Pt(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Pt)}):"optional"in e?e.optional():e}var Lt=e=>"[object Object]"===Object.prototype.toString.call(e);function jt(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}var $t=Nt([]);function Ut(e){return new Bt(e)}var Bt=class extends ht{constructor(e){super({type:"object",check:e=>Lt(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=$t,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),a={},u=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),c=!1;for(const l of s){let e=i[l],r=l in n;if(e){let r,i=n[l];u.path=(t.path?`${t.path}.`:"")+l,e=e.resolve({value:i,context:t.context,parent:a});let o=e instanceof ht?e.spec:void 0,s=null==o?void 0:o.strict;if(null!=o&&o.strip){c=c||l in n;continue}r=t.__validating&&s?n[l]:e.cast(n[l],u),void 0!==r&&(a[l]=r)}else r&&!o&&(a[l]=n[l]);r===l in a&&a[l]===n[l]||(c=!0)}return c?a:n}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!s||!Lt(i))return void n(e,i);o=o||i;let a=[];for(let r of this._nodes){let e=this.fields[r];e&&!tt.isRef(e)&&a.push(e.asNestedTest({options:t,key:r,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[n,i]of Object.entries(this.fields)){const e=r[n];r[n]=void 0===e?i:e}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;const i=this.fields[r];let o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,Te.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(const s of Object.keys(e)){let t=e[s];n.add(s),tt.isRef(t)&&t.isSibling?o(t.path,s):Ke(t)&&"deps"in t&&t.deps.forEach(e=>o(e,s))}return Re.default.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=Nt(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){const e={};for(const[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return Pt(this)}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){const t=[];for(const r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,Te.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return((e,t)=>{const r=[...(0,Te.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,Te.getter)((0,Te.join)(r),!0)(e);return!(!i||!(n in i))})(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(Dt)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Ze.exact,test(e){if(null==e)return!0;const t=jt(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=Ze.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const r=jt(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=Ze.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const r={};for(const n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(Ae.camelCase)}snakeCase(){return this.transformKeys(Ae.snakeCase)}constantCase(){return this.transformKeys(e=>(0,Ae.snakeCase)(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}};function qt(e){return new zt(e)}Ut.prototype=Bt.prototype;var zt=class extends ht{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1;const i=r.map((e,r)=>{const i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){var i;let o=this.innerType,s=null!=(i=t.recursive)?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(i,a)=>{var u;if(!s||!o||!this._typeCheck(a))return void n(i,a);let c=new Array(a.length);for(let r=0;r<a.length;r++){var l;c[r]=o.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e})}this.runTests({value:a,tests:c,originalValue:null!=(u=t.originalValue)?u:e,options:t},r,e=>n(e.concat(i),a))})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(Dt)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Ke(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+je(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=Ye.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||Ye.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||Ye.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}};qt.prototype=zt.prototype;var Vt=class extends ht{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(Je.notType)})}_cast(e,t){const{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1;const o=r.map((e,r)=>{const o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,s)=>{var a;if(!this._typeCheck(s))return void n(o,s);let u=[];for(let[r,n]of i.entries()){var c;u[r]=n.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:s,tests:u,originalValue:null!=(a=t.originalValue)?a:e,options:t},r,e=>n(e.concat(o),s))})}describe(e){const t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}};Vt.prototype;var Wt=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/UnknownError"}},Ht=class extends Error{constructor(e){super(e),this.name="LocalLogicTracking/ValidationError"}},Gt=e=>{if(e instanceof qe)throw new Ht(e.message);if(e instanceof Ce)throw new Ce(e.message);throw new Wt(e.message)},Zt=Ut({event_type:Et().required(),event_version:Et().required().oneOf(["1.0.0"]),isTestEvent:gt(),meta:Ut({user_id:Et(),session_id:Et(),page_load_id:Et(),product_version:Et(),client_id:Et(),product_name:Et().required()}),attributes:Ut({})});var Yt=class{constructor(e){this.requests=(e=>({post:async function(t,r){const n=await fetch(`https://analytics.locallogic.co/track-v2${t}`,{body:JSON.stringify(r),headers:{Accept:"application/json",Authorization:e,"Content-type":"application/json"},method:"POST"});if(!n.ok){let e;try{e=await n.json()}catch(i){}const t=e?.message?e.message:"";if("unauthorized"!==t.toLowerCase())throw new Ce(`Could not post tracking event: ${t}`)}}}))(e)}postEvent(e){const t={...e,meta:{...e.meta,event_time:new Date}};return(r=this.requests,async e=>{const{event_type:t,isTestEvent:n,event_version:i,meta:o,attributes:s}=await Zt.validate(e);try{return await r.post("/record",{params:{event_type:t,event_version:i,isTestEvent:n,meta:o,attributes:s}})}catch(a){if(a instanceof TypeError&&(a.message.toLowerCase().includes("networkerror")||a.message.toLowerCase().includes("load failed")||a.message.toLowerCase().includes("failed to fetch")))return;if(a instanceof DOMException&&a.message.toLowerCase().includes("aborted")||a instanceof TypeError&&a.message.toLowerCase().includes("cancelled")||a instanceof TypeError&&a.message.toLowerCase().includes("annulé"))return;if(a instanceof Ce)return;throw a}})(t);var r}};!function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);o>3&&s&&Object.defineProperty(t,r,s)}([(e,t,r)=>{const n=r.value;return r.value=function(...e){try{const t=n.apply(this,e);return t&&t instanceof Promise?t.catch(e=>{Gt(e)}):t}catch(t){Gt(t)}},r}],Yt.prototype,"postEvent",null);for(var Jt={},Kt={byteLength:function(e){var t=nr(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=nr(e),i=n[0],o=n[1],s=new er(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),a=0,u=o>0?i-4:i;for(r=0;r<u;r+=4)t=Qt[e.charCodeAt(r)]<<18|Qt[e.charCodeAt(r+1)]<<12|Qt[e.charCodeAt(r+2)]<<6|Qt[e.charCodeAt(r+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Qt[e.charCodeAt(r)]<<2|Qt[e.charCodeAt(r+1)]>>4,s[a++]=255&t);1===o&&(t=Qt[e.charCodeAt(r)]<<10|Qt[e.charCodeAt(r+1)]<<4|Qt[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,r=e.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(or(e,s,s+o>a?a:s+o));1===n?(t=e[r-1],i.push(Xt[t>>2]+Xt[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(Xt[t>>10]+Xt[t>>4&63]+Xt[t<<2&63]+"="));return i.join("")}},Xt=[],Qt=[],er="undefined"!=typeof Uint8Array?Uint8Array:Array,tr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rr=0;rr<64;++rr)Xt[rr]=tr[rr],Qt[tr.charCodeAt(rr)]=rr;function nr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function ir(e){return Xt[e>>18&63]+Xt[e>>12&63]+Xt[e>>6&63]+Xt[63&e]}function or(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(ir(n));return i.join("")}Qt["-".charCodeAt(0)]=62,Qt["_".charCodeAt(0)]=63;var sr={read:function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,p=r?-1:1,f=e[t+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},write:function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+h>=1?p/u:p*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*g}};!function(e){const t=Kt,r=sr,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;function u(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new o(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=u(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(s.isView(e))return function(e){if(J(e,o)){const t=new o(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,s)||e&&J(e.buffer,s))return d(e,t,r);if(void 0!==a&&(J(e,a)||e&&J(e.buffer,a)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|g(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?u(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return h(e),u(e<0?0:0|g(e))}function f(e){const t=e.length<0?0:0|g(e.length),r=u(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new o(e):void 0===r?new o(e,t):new o(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function g(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(s.isView(e)||J(e,s))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof o.prototype.indexOf?i?o.prototype.indexOf.call(e,t,r):o.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(t.substr(2*s,2),16);if(K(n))return s;e[r+s]=n}return s}function k(e,t,r,n){return Y(G(t,e.length-r),e,r,n)}function S(e,t,r,n){return Y(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return Y(Z(t),e,r,n)}function C(e,t,r,n){return Y(function(e,t){let r,n,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new o(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,o.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch($m){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,o.prototype),Object.setPrototypeOf(c,o),c.alloc=function(e,t,r){return function(e,t,r){return h(e),e<=0?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}(e,t,r)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(J(e,o)&&(e=c.from(e,e.offset,e.byteLength)),J(t,o)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(J(t,o))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):o.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):v.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(J(e,o)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(s,a),l=this.slice(n,i),h=e.slice(t,r);for(let o=0;o<u;++o)if(l[o]!==h[o]){s=l[o],a=h[o];break}return s<a?-1:a<s?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=t;o<r;++o)i+=X[e[o]];return i}function M(e,t,r){const n=e.slice(t,r);let i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function P(e,t,r,n,i){z(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function $(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=Q(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof o.prototype.copyWithin?this.copyWithin(t,r,n):o.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};const U={};function B(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,i,o)}function V(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),B("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),B("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=q(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}}(Jt);var ar,ur=Jt.Buffer;if("undefined"==typeof window){var cr={hostname:""};ar={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:cr,referrer:""},screen:{width:0,height:0},location:cr,addEventListener:function(){},removeEventListener:function(){}}}else ar=window;function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hr(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void r(c)}a.done?t(u):Promise.resolve(u).then(n,i)}function pr(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){hr(o,n,i,s,a,"next",e)}function a(e){hr(o,n,i,s,a,"throw",e)}s(void 0)})}}function fr(e,t,r){return fr=Sr()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_r(i,r.prototype),i},fr.apply(null,arguments)}function dr(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function gr(){return gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gr.apply(this,arguments)}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mr(e)}function vr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_r(e,t)}function yr(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function br(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _r(e,t){return _r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_r(e,t)}function wr(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function kr(e){var t="function"==typeof Map?new Map:void 0;return kr=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return fr(e,arguments,mr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_r(n,e)},kr(e)}function Sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(rv){}return(Sr=function(){return!!e})()}function xr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lr(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cr(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch($m){o=[6,$m],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function Er(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Ir,Or=Object.defineProperty,Tr=function(e,t,r){return function(e,t,r){return t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":wr(t))?t+"":t,r)},Ar=Object.defineProperty,Rr=function(e,t,r){return function(e,t,r){return t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":wr(t))?t+"":t,r)},Mr=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Mr||{}),Fr={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Nr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Dr={};function Pr(e){if(Dr[e])return Dr[e];var t=globalThis[e],r=t.prototype,n=e in Fr?Fr[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Nr?Nr[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return Dr[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Dr[e]=c:r}catch($m){return r}}var Lr={};function jr(e,t,r){var n,i=e+"."+String(r);if(Lr[i])return Lr[i].call(t);var o=Pr(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Lr[i]=s,s.call(t)):t[r]}var $r={};function Ur(e,t,r){var n=e+"."+String(r);if($r[n])return $r[n].bind(t);var i=Pr(e)[r];return"function"!=typeof i?t[r]:($r[n]=i,i.bind(t))}var Br={childNodes:function(e){return jr("Node",e,"childNodes")},parentNode:function(e){return jr("Node",e,"parentNode")},parentElement:function(e){return jr("Node",e,"parentElement")},textContent:function(e){return jr("Node",e,"textContent")},contains:function(e,t){return Ur("Node",e,"contains")(t)},getRootNode:function(e){return Ur("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?jr("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?jr("Element",e,"shadowRoot"):null},querySelector:function(e,t){return jr("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return jr("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Pr("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch($m){return function(){}}}};function qr(e){return e.nodeType===e.ELEMENT_NODE}function zr(e){var t=e&&"host"in e&&"mode"in e&&Br.host(e)||null;return Boolean(t&&"shadowRoot"in t&&Br.shadowRoot(t)===e)}function Vr(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Wr(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return Hr(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(i){return null}var n}function Hr(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=Wr(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(i){r=e.cssText}return e.styleSheet.href?nn(r,e.styleSheet.href):r}var n=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t?nn(n,t):n}var Gr=function(){function e(){Rr(this,"idNodeMap",new Map),Rr(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Zr(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&Yr(i);return(r[n.toLowerCase()]||u&&r[u])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Yr(e){return e.toLowerCase()}var Jr="__rrweb_original__";function Kr(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Yr(t):null}function Xr(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(o){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Qr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,en=/^(?:[a-z+]+:)?\/\//i,tn=/^www\..*/i,rn=/^(data:)([^,]*),(.*)/i;function nn(e,t){return(e||"").replace(Qr,function(e,r,n,i,o,s){var a,u=n||o||s,c=r||i||"";if(!u)return e;if(en.test(u)||tn.test(u))return"url("+c+u+c+")";if(rn.test(u))return"url("+c+u+c+")";if("/"===u[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+u)+c+")";var l=t.split("/"),h=u.split("/");l.pop();for(var p,f=xr(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function on(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function sn(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=on(e,r),a=s.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var c=on(n[u].textContent,r),l=3;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,l),1));l++);for(;l<c.length;l++){var h=c.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[u-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===c.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[u-1].textContent;if(d&&"string"==typeof d){var g=on(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=on(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}var an,un,cn=1,ln=new RegExp("[^a-z0-9-_:]");function hn(){return cn++}var pn=/^[^ \t\n\r\u000c]+/,fn=/^[, \t\n\r\u000c]+/;var dn=new WeakMap;function gn(e,t){return t&&""!==t.trim()?vn(e,t):t}function mn(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function vn(e,t){var r=dn.get(e);if(r||(r=e.createElement("a"),dn.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function yn(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?gn(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(fn),!(r>=t.length);){var o=n(pn);if(","===o.slice(-1))o=gn(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=gn(e,o);for(var a=!1;;){var u=t.charAt(r);if(""===u){i.push((o+s).trim());break}if(a)")"===u&&(a=!1);else{if(","===u){r+=1,i.push((o+s).trim());break}"("===u&&(a=!0)}s+=u,r+=1}}}return i.join(", ")}(e,n):"style"===r?nn(n,vn(e)):"object"===t&&"data"===r?gn(e,n):n:gn(e,n):n}function bn(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function _n(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&_n(Br.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&_n(Br.parentNode(e),t,r)}function wn(e,t,r,n){var i;if(qr(e)){if(i=e,!Br.childNodes(i).length)return!1}else{if(null===Br.parentElement(e))return!1;i=Br.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(_n(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(o){}return!1}function kn(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,u=t.maskInputOptions,c=void 0===u?{}:u,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,b=t.cssCaptured,_=void 0!==b&&b,w=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Mr.Document,childNodes:[],compatMode:e.compatMode}:{type:Mr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Mr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,u=void 0===a?{}:a,c=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,v=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(o){}return!1}(e,i,o),b=function(e){if(yr(e,HTMLFormElement))return"form";var t=Yr(e.tagName);return ln.test(t)?"div":t}(e),_={},w=e.attributes.length,k=0;k<w;k++){var S=e.attributes[k];bn(b,S.name,S.value)||(_[S.name]=yn(n,b,Yr(S.name),S.value))}if("link"===b&&s){var x=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;x&&(C=Wr(x)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===b&&e.sheet){var E=Wr(e.sheet);E&&(e.childNodes.length>1&&(E=sn(E,e)),_._cssText=E)}if("input"===b||"textarea"===b||"select"===b){var I=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=Zr({element:e,type:Kr(e),tagName:b,value:I,maskInputOptions:u,maskInputFn:c}):O&&(_.checked=O)}"option"===b&&(e.selected&&!u.select?_.selected=!0:delete _.selected);"dialog"===b&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&f)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=Jr in i?i[Jr]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(_.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var T=e.toDataURL(h.type,h.quality),A=n.createElement("canvas");A.width=e.width,A.height=e.height,T!==A.toDataURL(h.type,h.quality)&&(_.rr_dataURL=T)}if("img"===b&&p){an||(an=n.createElement("canvas"),un=an.getContext("2d"));var R=e,M=R.currentSrc||R.getAttribute("src")||"<unknown-src>",F=R.crossOrigin,N=function(){R.removeEventListener("load",N);try{an.width=R.naturalWidth,an.height=R.naturalHeight,un.drawImage(R,0,0),_.rr_dataURL=an.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N));console.warn("Cannot inline img src="+M+"! Error: "+e)}"anonymous"===R.crossOrigin&&(F?_.crossOrigin=F:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?N():R.addEventListener("load",N)}if("audio"===b||"video"===b){var D=_;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}m||(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop));if(y){var P=e.getBoundingClientRect(),L=P.width,j=P.height;_={class:_.class,rr_width:L+"px",rr_height:j+"px"}}"iframe"!==b||d(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(b)&&(r=!0)}catch($){}return{type:Mr.Element,tagName:b,attributes:_,childNodes:[],isSVG:mn(e)||void 0,needBlock:y,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=Br.parentNode(e),a=s&&s.tagName,u="",c="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?u="SCRIPT_PLACEHOLDER":o||(u=Br.textContent(e),c&&u&&(u=nn(u,vn(t.doc))));!c&&!l&&u&&r&&(u=n?n(u,Br.parentElement(e)):u.replace(/[\S]/g,"*"));return{type:Mr.Text,textContent:u||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:_});case e.CDATA_SECTION_NODE:return{type:Mr.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Mr.Comment,textContent:Br.textContent(e)||"",rootId:w};default:return!1}}function Sn(e){return null==e?"":e.toLowerCase()}function xn(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,c=void 0!==u&&u,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,b=t.inlineImages,_=void 0!==b&&b,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,E=void 0===C?5e3:C,I=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,T=void 0===O?5e3:O,A=t.keepIframeSrcFn,R=void 0===A?function(){return!1}:A,M=t.newlyAddedElement,F=void 0!==M&&M,N=t.cssCaptured,D=void 0!==N&&N,P=t.needsMask,L=t.preserveWhiteSpace,j=void 0===L||L;P||(P=wn(e,s,a,void 0===P));var $,U=kn(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:k,keepIframeSrcFn:R,newlyAddedElement:F,cssCaptured:D});if(!U)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===Mr.Comment)return!0;if(e.type===Mr.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Xr(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Sn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Sn(e.attributes.name)||"icon"===Sn(e.attributes.rel)||"apple-touch-icon"===Sn(e.attributes.rel)||"shortcut icon"===Sn(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Sn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Sn(e.attributes.property).match(/^(og|twitter|fb):/)||Sn(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Sn(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Sn(e.attributes.name)||"googlebot"===Sn(e.attributes.name)||"bingbot"===Sn(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Sn(e.attributes.name)||"generator"===Sn(e.attributes.name)||"framework"===Sn(e.attributes.name)||"publisher"===Sn(e.attributes.name)||"progid"===Sn(e.attributes.name)||Sn(e.attributes.property).match(/^article:/)||Sn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Sn(e.attributes.name)||"yandex-verification"===Sn(e.attributes.name)||"csrf-token"===Sn(e.attributes.name)||"p:domain_verify"===Sn(e.attributes.name)||"verify-v1"===Sn(e.attributes.name)||"verification"===Sn(e.attributes.name)||"shopify-checkout-api-token"===Sn(e.attributes.name)))return!0}}return!1}(U,m)||!j&&U.type===Mr.Text&&!U.textContent.replace(/^\s+|\s+$/gm,"").length?-2:hn();var B=Object.assign(U,{id:$});if(n.add(e,B),-2===$)return null;S&&S(e);var q=!c;if(B.type===Mr.Element){q=q&&!B.needBlock,delete B.needBlock;var z=Br.shadowRoot(e);z&&Vr(z)&&(B.isShadowHost=!0)}if((B.type===Mr.Document||B.type===Mr.Element)&&q){m.headWhitespace&&B.type===Mr.Element&&"head"===B.tagName&&(j=!1);var V={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R,cssCaptured:!1};if(B.type===Mr.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else{B.type===Mr.Element&&void 0!==B.attributes._cssText&&"string"==typeof B.attributes._cssText&&(V.cssCaptured=!0);for(var W,H=xr(Array.from(Br.childNodes(e)));!(W=H()).done;){var G=xn(W.value,V);G&&B.childNodes.push(G)}}var Z=null;if(qr(e)&&(Z=Br.shadowRoot(e)))for(var Y,J=xr(Array.from(Br.childNodes(Z)));!(Y=J()).done;){var K=xn(Y.value,V);K&&(Vr(Z)&&(K.isShadow=!0),B.childNodes.push(K))}}var X=Br.parentNode(e);return X&&zr(X)&&Vr(X)&&(B.isShadow=!0),B.type===Mr.Element&&"iframe"===B.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(u){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&x){var r=xn(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});r&&x(e,r)}},E),B.type===Mr.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===Xr(B.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(s){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(I){var t=xn(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:_,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:R});t&&I(e,t)}},T),B}function Cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function En(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return yr(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var In={exports:{}},On=String,Tn=function(){return{isColorSupported:!1,reset:On,bold:On,dim:On,italic:On,underline:On,inverse:On,hidden:On,strikethrough:On,black:On,red:On,green:On,yellow:On,blue:On,magenta:On,cyan:On,white:On,gray:On,bgBlack:On,bgRed:On,bgGreen:On,bgYellow:On,bgBlue:On,bgMagenta:On,bgCyan:On,bgWhite:On}};In.exports=Tn(),In.exports.createColors=Tn;var An=In.exports,Rn=En(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Mn=An,Fn=Rn,Nn=function(e){function t(r,n,i,o,s,a){var u=e.call(this,r)||this;return u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}vr(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Mn.isColorSupported),Fn&&e&&(r=Fn(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=Mn.createColors(!0),l=c.bold,h=c.gray,p=c.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-u)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(kr(Error)),Dn=Nn;Nn.default=Nn;var Pn={};Pn.isClean=Symbol("isClean"),Pn.my=Symbol("my");var Ln={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var jn=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Ln[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Ln[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),$n=jn;jn.default=jn;var Un=$n;function Bn(e,t){new Un(t).stringify(e)}var qn=Bn;Bn.default=Bn;var zn=Pn.isClean,Vn=Pn.my,Wn=Dn,Hn=$n,Gn=qn;function Zn(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":wr(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Zn(e,r)}):("object"===o&&null!==i&&(i=Zn(i)),r[n]=i)}return r}var Yn=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[zn]=!1,this[Vn]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=xr(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Zn(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Wn(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[zn]){this[zn]=!1;for(var e=this;e=e.parent;)e[zn]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Hn).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=xr(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":wr(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":wr(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Gn),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},dr(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Jn=Yn;Yn.default=Yn;var Kn=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=gr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return vr(t,e),dr(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Jn),Xn=Kn;Kn.default=Kn;var Qn=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},ei=Rn.SourceMapConsumer,ti=Rn.SourceMapGenerator,ri=Rn.existsSync,ni=Rn.readFileSync,ii=Rn.dirname,oi=Rn.join;var si=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ii(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ei(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),ur?ur.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":wr(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ii(e),ri(e))return this.mapFile=e,ni(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(yr(t,ei))return ti.fromSourceMap(t).toString();if(yr(t,ti))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=oi(ii(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),ai=si;si.default=si;var ui=Rn.SourceMapConsumer,ci=Rn.SourceMapGenerator,li=Rn.fileURLToPath,hi=Rn.pathToFileURL,pi=Rn.isAbsolute,fi=Rn.resolve,di=Qn,gi=Rn,mi=Dn,vi=ai,yi=Symbol("fromOffsetCache"),bi=Boolean(ui&&ci),_i=Boolean(fi&&pi),wi=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":wr(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!_i||/^\w+:\/\//.test(t.from)||pi(t.from)?this.file=t.from:this.file=fi(t.from)),_i&&bi){var r=new vi(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+di(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":wr(t))){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new mi(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new mi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(hi&&(i.input.url=hi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[yi])t=this[yi];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[yi]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:fi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=pi(a.source)?hi(a.source):new URL(a.source,this.map.consumer().sourceRoot||hi(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!li)throw new Error("file: protocol is not available in this PostCSS build");u.file=li(o)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=gr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},dr(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),ki=wi;wi.default=wi,gi&&gi.registerInput&&gi.registerInput(wi);var Si=Rn.SourceMapConsumer,xi=Rn.SourceMapGenerator,Ci=Rn.dirname,Ei=Rn.relative,Ii=Rn.resolve,Oi=Rn.sep,Ti=Rn.pathToFileURL,Ai=ki,Ri=Boolean(Si&&xi),Mi=Boolean(Ci&&Ii&&Ei&&Oi),Fi=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=xr(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ci(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Si(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Mi&&Ri&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=xi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new xi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new xi({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"!==u.type&&("atrule"!==u.type||u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Ci(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Ci(Ii(r,this.mapOpts.annotation)));var n=Ei(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Ai(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return ur?ur.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ti){var r=Ti(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Oi&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ni=function(e){function t(t){var r=e.call(this,t)||this;return r.type="comment",r}return vr(t,e),t}(Jn),Di=Ni;Ni.default=Ni;var Pi,Li,ji,$i,Ui=Pn.isClean,Bi=Pn.my,qi=Xn,zi=Di;function Vi(e){return e.map(function(e){return e.nodes&&(e.nodes=Vi(e.nodes)),delete e.source,e})}function Wi(e){if(e[Ui]=!1,e.proxyOf.nodes)for(var t,r=xr(e.proxyOf.nodes);!(t=r()).done;){Wi(t.value)}}var Hi=function(e){function t(){return e.apply(this,arguments)||this}vr(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=xr(t);!(n=i()).done;)for(var o,s=n.value,a=xr(this.normalize(s,this.last));!(o=a()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=xr(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=xr(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=xr(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Vi(Pi(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=xr(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,u=xr(e=e.nodes.slice(0));!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new qi(e)]}else if(e.selector)e=[new Li(e)];else if(e.name)e=[new ji(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new zi(e)]}return e.map(function(e){return e[Bi]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ui]&&Wi(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=xr(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=xr(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=xr(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?yr(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?yr(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?yr(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},dr(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Jn);Hi.registerParse=function(e){Pi=e},Hi.registerRule=function(e){Li=e},Hi.registerAtRule=function(e){ji=e},Hi.registerRoot=function(e){$i=e};var Gi=Hi;Hi.default=Hi,Hi.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ji.prototype):"rule"===e.type?Object.setPrototypeOf(e,Li.prototype):"decl"===e.type?Object.setPrototypeOf(e,qi.prototype):"comment"===e.type?Object.setPrototypeOf(e,zi.prototype):"root"===e.type&&Object.setPrototypeOf(e,$i.prototype),e[Bi]=!0,e.nodes&&e.nodes.forEach(function(e){Hi.rebuild(e)})};var Zi,Yi,Ji=function(e){function t(t){var r=e.call(this,gr({type:"document"},t))||this;return r.nodes||(r.nodes=[]),r}return vr(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Zi(new Yi,this,e).stringify()},t}(Gi);Ji.registerLazyResult=function(e){Zi=e},Ji.registerProcessor=function(e){Yi=e};var Ki=Ji;Ji.default=Ji;var Xi=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Qi=Xi;Xi.default=Xi;var eo=Qi,to=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new eo(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},dr(e,[{key:"content",get:function(){return this.css}}]),e}(),ro=to;to.default=to;var no="'".charCodeAt(0),io='"'.charCodeAt(0),oo="\\".charCodeAt(0),so="/".charCodeAt(0),ao="\n".charCodeAt(0),uo=" ".charCodeAt(0),co="\f".charCodeAt(0),lo="\t".charCodeAt(0),ho="\r".charCodeAt(0),po="[".charCodeAt(0),fo="]".charCodeAt(0),go="(".charCodeAt(0),mo=")".charCodeAt(0),vo="{".charCodeAt(0),yo="}".charCodeAt(0),bo=";".charCodeAt(0),_o="*".charCodeAt(0),wo=":".charCodeAt(0),ko="@".charCodeAt(0),So=/[\t\n\f\r "#'()/;[\\\]{}]/g,xo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Co=/.[\r\n"'(/\\]/,Eo=/[\da-f]/i,Io=Gi,Oo=function(e){function t(t){var r=e.call(this,t)||this;return r.type="atrule",r}vr(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Io),To=Oo;Oo.default=Oo,Io.registerAtRule(Oo);var Ao,Ro,Mo=Gi,Fo=function(e){function t(t){var r=e.call(this,t)||this;return r.type="root",r.nodes||(r.nodes=[]),r}vr(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=xr(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Ao(new Ro,this,e).stringify()},t}(Mo);Fo.registerLazyResult=function(e){Ao=e},Fo.registerProcessor=function(e){Ro=e};var No=Fo;Fo.default=Fo,Mo.registerRoot(Fo);var Do={comma:function(e){return Do.split(e,[","],!0)},space:function(e){return Do.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=xr(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Po=Do;Do.default=Do;var Lo=Gi,jo=Po,$o=function(e){function t(t){var r=e.call(this,t)||this;return r.type="rule",r.nodes||(r.nodes=[]),r}return vr(t,e),dr(t,[{key:"selectors",get:function(){return jo.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Lo),Uo=$o;$o.default=$o,Lo.registerRule($o);var Bo=Xn,qo=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case ao:case uo:case lo:case ho:case co:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===uo||r===ao||r===lo||r===ho||r===co);h=["space",p.slice(g,n)],g=n-1;break;case po:case fo:case vo:case yo:case wo:case bo:case mo:var b=String.fromCharCode(r);h=[b,b,g];break;case go:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&l!==no&&l!==io&&l!==uo&&l!==ao&&l!==lo&&l!==co&&l!==ho){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(u=n;p.charCodeAt(u-1)===oo;)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Co.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case no:case io:i=r===no?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(u=n;p.charCodeAt(u-1)===oo;)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case ko:So.lastIndex=g+1,So.test(p),n=0===So.lastIndex?p.length-1:So.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case oo:for(n=g,s=!0;p.charCodeAt(n+1)===oo;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==so&&r!==uo&&r!==ao&&r!==lo&&r!==ho&&r!==co&&(n+=1,Eo.test(p.charAt(n)))){for(;Eo.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===uo&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===so&&p.charCodeAt(g+1)===_o?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(xo.lastIndex=g+1,xo.test(p),n=0===xo.lastIndex?p.length-1:xo.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},zo=Di,Vo=To,Wo=No,Ho=Uo,Go={empty:!0,space:!0};var Zo=function(){function e(e){this.input=e,this.root=new Wo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Vo;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=xr(e.entries());!(i=s()).done;){var a=i.value,u=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new zo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=qo(this.input)},t.decl=function(e,t){var r=new Bo;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ho;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Go[a]||Go[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new Ho;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Yo=Gi,Jo=Zo,Ko=ki;function Xo(e,t){var r=new Jo(new Ko(e,t));try{r.parse()}catch(n){throw n}return r.root}var Qo=Xo;Xo.default=Xo,Yo.registerParse(Xo);var es=Pn.isClean,ts=Pn.my,rs=Fi,ns=qn,is=Gi,os=Ki,ss=ro,as=Qo,us=No,cs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ls={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},hs={Once:!0,postcssPlugin:!0,prepare:!0};function ps(e){return"object"===(void 0===e?"undefined":wr(e))&&"function"==typeof e.then}function fs(e){var t=!1,r=cs[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function ds(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:fs(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function gs(e){return e[es]=!1,e.nodes&&e.nodes.forEach(function(e){return gs(e)}),e}var ms={},vs=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":wr(r))||null===r||"root"!==r.type&&"document"!==r.type)if(yr(r,e)||yr(r,ss))i=gs(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=as;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[ts]&&is.rebuild(i)}else i=gs(r);this.result=new ss(t,i,n),this.helpers=gr({},ms,{postcss:ms,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":wr(e))&&e.prepare?gr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=xr(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":wr(i)))for(var o in i){if(!ls[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!hs[o])if("object"===wr(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return pr(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return Cr(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!ps(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[es])return[3,14];o[es]=!0,s=[ds(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!ps(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Cr(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=xr(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Er(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":wr(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return ps(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ns;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new rs(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=xr(this.plugins);!(e=t()).done;){var r=e.value;if(ps(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[es];)n[es]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=xr(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=xr(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(ps(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[es])return a[es]=!0,void e.push(ds(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[es]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[es]=!0;for(var r,n=xr(fs(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[es]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},dr(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();vs.registerPostcss=function(e){ms=e};var ys=vs;vs.default=vs,us.registerLazyResult(vs),os.registerLazyResult(vs);var bs=Fi,_s=qn,ws=Qo,ks=ro,Ss=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=_s;this.result=new ks(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new bs(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),u=a[0],c=a[1];u&&(this.result.css=u),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},dr(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=ws;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),xs=Ss;Ss.default=Ss;var Cs=xs,Es=ys,Is=Ki,Os=No,Ts=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=xr(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":wr(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":wr(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":wr(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Es(this,e,t):new Cs(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),As=Ts;Ts.default=Ts,Os.registerProcessor(Ts),Is.registerProcessor(Ts);var Rs=Xn,Ms=ai,Fs=Di,Ns=To,Ds=ki,Ps=No,Ls=Uo;function js(e,t){if(Array.isArray(e))return e.map(function(e){return js(e)});var r=e.inputs,n=br(e,["inputs"]);if(r){t=[];for(var i,o=xr(r);!(i=o()).done;){var s=gr({},i.value,{__proto__:Ds.prototype});s.map&&(s.map=gr({},s.map,{__proto__:Ms.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return js(e,t)})),n.source){var a=n.source,u=a.inputId;n.source=br(a,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new Ps(n);if("decl"===n.type)return new Rs(n);if("rule"===n.type)return new Ls(n);if("comment"===n.type)return new Fs(n);if("atrule"===n.type)return new Ns(n);throw new Error("Unknown node type: "+e.type)}var $s=js;js.default=js;var Us=Dn,Bs=Xn,qs=ys,zs=Gi,Vs=As,Ws=qn,Hs=$s,Gs=Ki,Zs=Qi,Ys=Di,Js=To,Ks=ro,Xs=ki,Qs=Qo,ea=Po,ta=Uo,ra=No,na=Jn;function ia(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Vs(t)}ia.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Vs).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ia([i(r)]).process(e,t)},i},ia.stringify=Ws,ia.parse=Qs,ia.fromJSON=Hs,ia.list=ea,ia.comment=function(e){return new Ys(e)},ia.atRule=function(e){return new Js(e)},ia.decl=function(e){return new Bs(e)},ia.rule=function(e){return new ta(e)},ia.root=function(e){return new ra(e)},ia.document=function(e){return new Gs(e)},ia.CssSyntaxError=Us,ia.Declaration=Bs,ia.Container=zs,ia.Processor=Vs,ia.Document=Gs,ia.Comment=Ys,ia.Warning=Zs,ia.AtRule=Js,ia.Result=Ks,ia.Input=Xs,ia.Rule=ta,ia.Root=ra,ia.Node=na,qs.registerPostcss(ia);var oa=ia;ia.default=ia;var sa=Cn(oa);sa.stringify,sa.fromJSON,sa.plugin,sa.parse,sa.list,sa.document,sa.comment,sa.atRule,sa.rule,sa.decl,sa.root,sa.CssSyntaxError,sa.Declaration,sa.Container,sa.Processor,sa.Document,sa.Comment,sa.Warning,sa.AtRule,sa.Result,sa.Input,sa.Rule,sa.Root,sa.Node;var aa=Object.defineProperty,ua=function(e,t,r){return function(e,t,r){return t in e?aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":wr(t))?t+"":t,r)};function ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function la(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return yr(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ha={exports:{}},pa=String,fa=function(){return{isColorSupported:!1,reset:pa,bold:pa,dim:pa,italic:pa,underline:pa,inverse:pa,hidden:pa,strikethrough:pa,black:pa,red:pa,green:pa,yellow:pa,blue:pa,magenta:pa,cyan:pa,white:pa,gray:pa,bgBlack:pa,bgRed:pa,bgGreen:pa,bgYellow:pa,bgBlue:pa,bgMagenta:pa,bgCyan:pa,bgWhite:pa}};ha.exports=fa(),ha.exports.createColors=fa;var da=ha.exports,ga=la(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),ma=da,va=ga,ya=function(e){function t(r,n,i,o,s,a){var u=e.call(this,r)||this;return u.name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}vr(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=ma.isColorSupported),va&&e&&(r=va(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=ma.createColors(!0),l=c.bold,h=c.gray,p=c.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-u)+" | ";if(o===t.line){var c=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+c+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(kr(Error)),ba=ya;ya.default=ya;var _a={};_a.isClean=Symbol("isClean"),_a.my=Symbol("my");var wa={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var ka=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return wa[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=wa[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Sa=ka;ka.default=ka;var xa=Sa;function Ca(e,t){new xa(t).stringify(e)}var Ea=Ca;Ca.default=Ca;var Ia=_a.isClean,Oa=_a.my,Ta=ba,Aa=Sa,Ra=Ea;function Ma(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":wr(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ma(e,r)}):("object"===o&&null!==i&&(i=Ma(i)),r[n]=i)}return r}var Fa=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ia]=!1,this[Oa]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=xr(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Ma(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Ta(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Ia]){this[Ia]=!1;for(var e=this;e=e.parent;)e[Ia]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Aa).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=xr(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return"object"===(void 0===e?"undefined":wr(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":wr(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Ra),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},dr(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Na=Fa;Fa.default=Fa;var Da=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=gr({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return vr(t,e),dr(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Na),Pa=Da;Da.default=Da;var La=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},ja=ga.SourceMapConsumer,$a=ga.SourceMapGenerator,Ua=ga.existsSync,Ba=ga.readFileSync,qa=ga.dirname,za=ga.join;var Va=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=qa(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ja(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),ur?ur.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":wr(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=qa(e),Ua(e))return this.mapFile=e,Ba(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(yr(t,ja))return $a.fromSourceMap(t).toString();if(yr(t,$a))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=za(qa(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Wa=Va;Va.default=Va;var Ha=ga.SourceMapConsumer,Ga=ga.SourceMapGenerator,Za=ga.fileURLToPath,Ya=ga.pathToFileURL,Ja=ga.isAbsolute,Ka=ga.resolve,Xa=La,Qa=ga,eu=ba,tu=Wa,ru=Symbol("fromOffsetCache"),nu=Boolean(Ha&&Ga),iu=Boolean(Ka&&Ja),ou=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":wr(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!iu||/^\w+:\/\//.test(t.from)||Ja(t.from)?this.file=t.from:this.file=Ka(t.from)),iu&&nu){var r=new tu(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Xa(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":wr(t))){var a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new eu(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new eu(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ya&&(i.input.url=Ya(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[ru])t=this[ru];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[ru]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ka(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ja(a.source)?Ya(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ya(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Za)throw new Error("file: protocol is not available in this PostCSS build");u.file=Za(o)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=gr({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},dr(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),su=ou;ou.default=ou,Qa&&Qa.registerInput&&Qa.registerInput(ou);var au=ga.SourceMapConsumer,uu=ga.SourceMapGenerator,cu=ga.dirname,lu=ga.relative,hu=ga.resolve,pu=ga.sep,fu=ga.pathToFileURL,du=su,gu=Boolean(au&&uu),mu=Boolean(cu&&hu&&lu&&pu),vu=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=xr(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||cu(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new au(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),mu&&gu&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=uu.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new uu({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new uu({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"!==u.type&&("atrule"!==u.type||u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?cu(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=cu(hu(r,this.mapOpts.annotation)));var n=lu(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new du(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return ur?ur.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(fu){var r=fu(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===pu&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),yu=function(e){function t(t){var r=e.call(this,t)||this;return r.type="comment",r}return vr(t,e),t}(Na),bu=yu;yu.default=yu;var _u,wu,ku,Su,xu=_a.isClean,Cu=_a.my,Eu=Pa,Iu=bu;function Ou(e){return e.map(function(e){return e.nodes&&(e.nodes=Ou(e.nodes)),delete e.source,e})}function Tu(e){if(e[xu]=!1,e.proxyOf.nodes)for(var t,r=xr(e.proxyOf.nodes);!(t=r()).done;){Tu(t.value)}}var Au=function(e){function t(){return e.apply(this,arguments)||this}vr(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=xr(t);!(n=i()).done;)for(var o,s=n.value,a=xr(this.normalize(s,this.last));!(o=a()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=xr(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=xr(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=xr(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Ou(_u(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=xr(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,u=xr(e=e.nodes.slice(0));!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Eu(e)]}else if(e.selector)e=[new wu(e)];else if(e.name)e=[new ku(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Iu(e)]}return e.map(function(e){return e[Cu]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[xu]&&Tu(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=xr(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=xr(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=xr(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(i){throw t.addToError(i)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?yr(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?yr(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?yr(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},dr(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Na);Au.registerParse=function(e){_u=e},Au.registerRule=function(e){wu=e},Au.registerAtRule=function(e){ku=e},Au.registerRoot=function(e){Su=e};var Ru=Au;Au.default=Au,Au.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ku.prototype):"rule"===e.type?Object.setPrototypeOf(e,wu.prototype):"decl"===e.type?Object.setPrototypeOf(e,Eu.prototype):"comment"===e.type?Object.setPrototypeOf(e,Iu.prototype):"root"===e.type&&Object.setPrototypeOf(e,Su.prototype),e[Cu]=!0,e.nodes&&e.nodes.forEach(function(e){Au.rebuild(e)})};var Mu,Fu,Nu=function(e){function t(t){var r=e.call(this,gr({type:"document"},t))||this;return r.nodes||(r.nodes=[]),r}return vr(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Mu(new Fu,this,e).stringify()},t}(Ru);Nu.registerLazyResult=function(e){Mu=e},Nu.registerProcessor=function(e){Fu=e};var Du=Nu;Nu.default=Nu;var Pu=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Lu=Pu;Pu.default=Pu;var ju=Lu,$u=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new ju(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},dr(e,[{key:"content",get:function(){return this.css}}]),e}(),Uu=$u;$u.default=$u;var Bu="'".charCodeAt(0),qu='"'.charCodeAt(0),zu="\\".charCodeAt(0),Vu="/".charCodeAt(0),Wu="\n".charCodeAt(0),Hu=" ".charCodeAt(0),Gu="\f".charCodeAt(0),Zu="\t".charCodeAt(0),Yu="\r".charCodeAt(0),Ju="[".charCodeAt(0),Ku="]".charCodeAt(0),Xu="(".charCodeAt(0),Qu=")".charCodeAt(0),ec="{".charCodeAt(0),tc="}".charCodeAt(0),rc=";".charCodeAt(0),nc="*".charCodeAt(0),ic=":".charCodeAt(0),oc="@".charCodeAt(0),sc=/[\t\n\f\r "#'()/;[\\\]{}]/g,ac=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,uc=/.[\r\n"'(/\\]/,cc=/[\da-f]/i,lc=Ru,hc=function(e){function t(t){var r=e.call(this,t)||this;return r.type="atrule",r}vr(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(lc),pc=hc;hc.default=hc,lc.registerAtRule(hc);var fc,dc,gc=Ru,mc=function(e){function t(t){var r=e.call(this,t)||this;return r.type="root",r.nodes||(r.nodes=[]),r}vr(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=xr(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new fc(new dc,this,e).stringify()},t}(gc);mc.registerLazyResult=function(e){fc=e},mc.registerProcessor=function(e){dc=e};var vc=mc;mc.default=mc,gc.registerRoot(mc);var yc={comma:function(e){return yc.split(e,[","],!0)},space:function(e){return yc.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=xr(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},bc=yc;yc.default=yc;var _c=Ru,wc=bc,kc=function(e){function t(t){var r=e.call(this,t)||this;return r.type="rule",r.nodes||(r.nodes=[]),r}return vr(t,e),dr(t,[{key:"selectors",get:function(){return wc.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(_c),Sc=kc;kc.default=kc,_c.registerRule(kc);var xc=Pa,Cc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Wu:case Hu:case Zu:case Yu:case Gu:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Hu||r===Wu||r===Zu||r===Yu||r===Gu);h=["space",p.slice(g,n)],g=n-1;break;case Ju:case Ku:case ec:case tc:case ic:case rc:case Qu:var b=String.fromCharCode(r);h=[b,b,g];break;case Xu:if(c=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===c&&l!==Bu&&l!==qu&&l!==Hu&&l!==Wu&&l!==Zu&&l!==Gu&&l!==Yu){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(u=n;p.charCodeAt(u-1)===zu;)u-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||uc.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Bu:case qu:i=r===Bu?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(u=n;p.charCodeAt(u-1)===zu;)u-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case oc:sc.lastIndex=g+1,sc.test(p),n=0===sc.lastIndex?p.length-1:sc.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case zu:for(n=g,s=!0;p.charCodeAt(n+1)===zu;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Vu&&r!==Hu&&r!==Wu&&r!==Zu&&r!==Yu&&r!==Gu&&(n+=1,cc.test(p.charAt(n)))){for(;cc.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Hu&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Vu&&p.charCodeAt(g+1)===nc?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(ac.lastIndex=g+1,ac.test(p),n=0===ac.lastIndex?p.length-1:ac.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Ec=bu,Ic=pc,Oc=vc,Tc=Sc,Ac={empty:!0,space:!0};var Rc=function(){function e(e){this.input=e,this.root=new Oc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Ic;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=xr(e.entries());!(i=s()).done;){var a=i.value,u=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return u}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Ec;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Cc(this.input)},t.decl=function(e,t){var r=new xc;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Tc;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Ac[a]||Ac[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new Tc;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Mc=Ru,Fc=Rc,Nc=su;function Dc(e,t){var r=new Fc(new Nc(e,t));try{r.parse()}catch(n){throw n}return r.root}var Pc=Dc;Dc.default=Dc,Mc.registerParse(Dc);var Lc=_a.isClean,jc=_a.my,$c=vu,Uc=Ea,Bc=Ru,qc=Du,zc=Uu,Vc=Pc,Wc=vc,Hc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Gc={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Zc={Once:!0,postcssPlugin:!0,prepare:!0};function Yc(e){return"object"===(void 0===e?"undefined":wr(e))&&"function"==typeof e.then}function Jc(e){var t=!1,r=Hc[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Kc(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Jc(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Xc(e){return e[Lc]=!1,e.nodes&&e.nodes.forEach(function(e){return Xc(e)}),e}var Qc={},el=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":wr(r))||null===r||"root"!==r.type&&"document"!==r.type)if(yr(r,e)||yr(r,zc))i=Xc(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Vc;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[jc]&&Bc.rebuild(i)}else i=Xc(r);this.result=new zc(t,i,n),this.helpers=gr({},Qc,{postcss:Qc,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":wr(e))&&e.prepare?gr({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(n){console&&console.error&&console.error(n)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=xr(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":wr(i)))for(var o in i){if(!Gc[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Zc[o])if("object"===wr(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return pr(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return Cr(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Yc(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Lc])return[3,14];o[Lc]=!0,s=[Kc(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Yc(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return Cr(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=xr(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Er(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":wr(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Yc(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Uc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new $c(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=xr(this.plugins);!(e=t()).done;){var r=e.value;if(Yc(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Lc];)n[Lc]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=xr(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=xr(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(u){throw this.handleError(u,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Yc(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(h){throw this.handleError(h,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[Lc])return a[Lc]=!0,void e.push(Kc(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Lc]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Lc]=!0;for(var r,n=xr(Jc(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[Lc]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},dr(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();el.registerPostcss=function(e){Qc=e};var tl=el;el.default=el,Wc.registerLazyResult(el),qc.registerLazyResult(el);var rl=vu,nl=Ea,il=Pc,ol=Uu,sl=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=nl;this.result=new ol(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new rl(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),u=a[0],c=a[1];u&&(this.result.css=u),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},dr(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=il;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),al=sl;sl.default=sl;var ul=al,cl=tl,ll=Du,hl=vc,pl=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=xr(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":wr(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":wr(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":wr(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new cl(this,e,t):new ul(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),fl=pl;pl.default=pl,hl.registerProcessor(pl),ll.registerProcessor(pl);var dl=Pa,gl=Wa,ml=bu,vl=pc,yl=su,bl=vc,_l=Sc;function wl(e,t){if(Array.isArray(e))return e.map(function(e){return wl(e)});var r=e.inputs,n=br(e,["inputs"]);if(r){t=[];for(var i,o=xr(r);!(i=o()).done;){var s=gr({},i.value,{__proto__:yl.prototype});s.map&&(s.map=gr({},s.map,{__proto__:gl.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return wl(e,t)})),n.source){var a=n.source,u=a.inputId;n.source=br(a,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new bl(n);if("decl"===n.type)return new dl(n);if("rule"===n.type)return new _l(n);if("comment"===n.type)return new ml(n);if("atrule"===n.type)return new vl(n);throw new Error("Unknown node type: "+e.type)}var kl=wl;wl.default=wl;var Sl=ba,xl=Pa,Cl=tl,El=Ru,Il=fl,Ol=Ea,Tl=kl,Al=Du,Rl=Lu,Ml=bu,Fl=pc,Nl=Uu,Dl=su,Pl=Pc,Ll=bc,jl=Sc,$l=vc,Ul=Na;function Bl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Il(t)}Bl.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{}.LANG&&{}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Il).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Bl([i(r)]).process(e,t)},i},Bl.stringify=Ol,Bl.parse=Pl,Bl.fromJSON=Tl,Bl.list=Ll,Bl.comment=function(e){return new Ml(e)},Bl.atRule=function(e){return new Fl(e)},Bl.decl=function(e){return new xl(e)},Bl.rule=function(e){return new jl(e)},Bl.root=function(e){return new $l(e)},Bl.document=function(e){return new Al(e)},Bl.CssSyntaxError=Sl,Bl.Declaration=xl,Bl.Container=El,Bl.Processor=Il,Bl.Document=Al,Bl.Comment=Ml,Bl.Warning=Rl,Bl.AtRule=Fl,Bl.Result=Nl,Bl.Input=Dl,Bl.Rule=jl,Bl.Root=$l,Bl.Node=Ul,Cl.registerPostcss(Bl);var ql=Bl;Bl.default=Bl;var zl=ca(ql);zl.stringify,zl.fromJSON,zl.plugin,zl.parse,zl.list,zl.document,zl.comment,zl.atRule,zl.rule,zl.decl,zl.root,zl.CssSyntaxError,zl.Declaration,zl.Container,zl.Processor,zl.Document,zl.Comment,zl.Warning,zl.AtRule,zl.Result,zl.Input,zl.Rule,zl.Root,zl.Node;var Vl=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ua(this,"parentElement",null),ua(this,"parentNode",null),ua(this,"ownerDocument"),ua(this,"firstChild",null),ua(this,"lastChild",null),ua(this,"previousSibling",null),ua(this,"nextSibling",null),ua(this,"ELEMENT_NODE",1),ua(this,"TEXT_NODE",3),ua(this,"nodeType"),ua(this,"nodeName"),ua(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!yr(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},dr(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Wl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Hl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Gl={};function Zl(e){if(Gl[e])return Gl[e];var t=globalThis[e],r=t.prototype,n=e in Wl?Wl[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Hl?Hl[e]:void 0,s=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return Gl[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Gl[e]=c:r}catch($m){return r}}var Yl={};function Jl(e,t,r){var n,i=e+"."+String(r);if(Yl[i])return Yl[i].call(t);var o=Zl(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Yl[i]=s,s.call(t)):t[r]}var Kl={};function Xl(e,t,r){var n=e+"."+String(r);if(Kl[n])return Kl[n].bind(t);var i=Zl(e)[r];return"function"!=typeof i?t[r]:(Kl[n]=i,i.bind(t))}function Ql(){return Zl("MutationObserver").constructor}function eh(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch($m){return function(){}}}var th={childNodes:function(e){return Jl("Node",e,"childNodes")},parentNode:function(e){return Jl("Node",e,"parentNode")},parentElement:function(e){return Jl("Node",e,"parentElement")},textContent:function(e){return Jl("Node",e,"textContent")},contains:function(e,t){return Xl("Node",e,"contains")(t)},getRootNode:function(e){return Xl("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Jl("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Jl("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Jl("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Jl("Element",e,"querySelectorAll")(t)},mutationObserver:Ql,patch:eh};function rh(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var nh="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ih={map:{},getId:function(){return console.error(nh),-1},getNode:function(){return console.error(nh),null},removeNodeFromMap:function(){console.error(nh)},has:function(){return console.error(nh),!1},reset:function(){console.error(nh)}};function oh(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();i||!1!==r.leading||(i=u);var c=t-(u-i),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},c))}}function sh(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return sh(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ih=new Proxy(ih,{get:function(e,t,r){return"map"===t&&console.error(nh),Reflect.get(e,t,r)}}));var ah=Date.now;function uh(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=th.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=th.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function ch(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hh(e){return e?e.nodeType===e.ELEMENT_NODE?e:th.parentElement(e):null}function ph(e,t,r,n){if(!e)return!1;var i=hh(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(_n(i,t,n))return!0}catch(o){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function fh(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function dh(e,t){if(zr(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=th.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||dh(n,t))}function gh(e){return Boolean(e.changedTouches)}function mh(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function vh(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function yh(e){return!!e&&(yr(e,Vl)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(th.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ah=function(){return(new Date).getTime()});var bh=function(){function e(){Tr(this,"id",1),Tr(this,"styleIDMap",new WeakMap),Tr(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function _h(e){var t,r=null;return"getRootNode"in e&&(null==(t=th.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&th.host(th.getRootNode(e))&&(r=th.host(th.getRootNode(e))),r}function wh(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=_h(r);)r=t;return r}(e);return th.contains(t,r)}function kh(e){var t=e.ownerDocument;return!!t&&(th.contains(t,e)||wh(e))}var Sh=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Sh||{}),xh=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(xh||{}),Ch=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Ch||{}),Eh=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Eh||{}),Ih=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ih||{}),Oh=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Oh||{}),Th=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Th||{});function Ah(e){return"__ln"in e}var Rh,Mh=function(){function e(){Tr(this,"length",0),Tr(this,"head",null),Tr(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ah(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Ah(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Fh=function(e,t){return e+"@"+t},Nh=function(){function e(){var e=this;Tr(this,"frozen",!1),Tr(this,"locked",!1),Tr(this,"texts",[]),Tr(this,"attributes",[]),Tr(this,"attributeMap",new WeakMap),Tr(this,"removes",[]),Tr(this,"mapRemoves",[]),Tr(this,"movedMap",{}),Tr(this,"addedSet",new Set),Tr(this,"movedSet",new Set),Tr(this,"droppedSet",new Set),Tr(this,"removesSubTreeCache",new Set),Tr(this,"mutationCb"),Tr(this,"blockClass"),Tr(this,"blockSelector"),Tr(this,"maskTextClass"),Tr(this,"maskTextSelector"),Tr(this,"inlineStylesheet"),Tr(this,"maskInputOptions"),Tr(this,"maskTextFn"),Tr(this,"maskInputFn"),Tr(this,"keepIframeSrcFn"),Tr(this,"recordCanvas"),Tr(this,"inlineImages"),Tr(this,"slimDOMOptions"),Tr(this,"dataURLOptions"),Tr(this,"doc"),Tr(this,"mirror"),Tr(this,"iframeManager"),Tr(this,"stylesheetManager"),Tr(this,"shadowDomManager"),Tr(this,"canvasManager"),Tr(this,"processedNodeManager"),Tr(this,"unattachedDoc"),Tr(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Tr(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new Mh,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=th.parentNode(o);if(s&&kh(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var u=s.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&e.addedSet.has(s)&&(a=!0)}var c=zr(s)?e.mirror.getId(_h(o)):e.mirror.getId(s),l=i(o);if(-1===c||-1===l)return n.addNode(o);var h=xn(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){mh(t,e.mirror)&&e.iframeManager.addIframe(t),vh(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),yh(o)&&e.shadowDomManager.addShadowRoot(th.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:c,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=xr(e.movedSet);!(s=a()).done;){var u=s.value;Ph(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(th.parentNode(u))||o(u)}for(var c,l=xr(e.addedSet);!(c=l()).done;){var h=c.value;Lh(e.droppedSet,h)||Ph(e.removesSubTreeCache,h,e.mirror)?Lh(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}for(var p=null;n.length;){var f=null;if(p){var d=e.mirror.getId(th.parentNode(p.value)),g=i(p.value);-1!==d&&-1!==g&&(f=p)}if(!f)for(var m=n.tail;m;){var v=m;if(m=m.previous,v){var y=e.mirror.getId(th.parentNode(v.value));if(-1===i(v.value))continue;if(-1!==y){f=v;break}var b=v.value,_=th.parentNode(b);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=th.host(_);if(-1!==e.mirror.getId(w)){f=v;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}p=f.previous,n.removeNode(f.value),o(f.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=th.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),Tr(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(th.childNodes(t),function(e){return th.textContent(e)||""}).join("");r.attributes.value=Zr({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Kr(t),value:n,maskInputFn:e.maskInputFn})}),Tr(this,"processMutation",function(t){if(!fh(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=th.textContent(t.target);ph(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:wn(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,hh(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=Kr(n);o=Zr({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(ph(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!bn(n.tagName,i))if(a.attributes[i]=yn(e.doc,Yr(n.tagName),Yr(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(v){e.unattachedDoc=e.doc}var u=e.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(var c,l=xr(Array.from(n.style));!(c=l()).done;){var h=c.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==u.style.getPropertyValue(h)||f!==u.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=xr(Array.from(u.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(ph(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=zr(t.target)?e.mirror.getId(th.host(t.target)):e.mirror.getId(t.target);ph(t.target,e.blockClass,e.blockSelector,!1)||fh(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Dh(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||dh(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Fh(n,i)]?Dh(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!zr(t.target)||!Vr(t.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),th.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Tr(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(fh(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Fh(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);ph(t,e.blockClass,e.blockSelector,!1)||(th.childNodes(t).forEach(function(t){return e.genAdds(t)}),yh(t)&&th.childNodes(th.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Dh(e,t){e.delete(t),th.childNodes(t).forEach(function(t){return Dh(e,t)})}function Ph(e,t,r){return 0!==e.size&&function(e,t){var r=th.parentNode(t);return!!r&&e.has(r)}(e,t)}function Lh(e,t){return 0!==e.size&&jh(e,t)}function jh(e,t){var r=th.parentNode(t);return!!r&&(!!e.has(r)||jh(e,r))}var $h=function(e){if(!Rh)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(i){if(Rh&&!0===Rh(i))return;throw i}}},Uh=[];function Bh(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch($m){}return e&&e.target}function qh(e,t){var r=new Nh;Uh.push(r),r.init(e);var n=new(Ql())($h(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function zh(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],c=null;return Object.keys(Ch).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=Yr(e),a=function(e){return function(r){var s=Bh(r);if(!ph(s,i,o,!0)){var a=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Eh.Mouse;break;case"touch":a=Eh.Touch;break;case"pen":a=Eh.Pen}a===Eh.Touch?Ch[e]===Ch.MouseDown?u="TouchStart":Ch[e]===Ch.MouseUp&&(u="TouchEnd"):Eh.Pen}else gh(r)&&(a=Eh.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===Eh.Touch||u.startsWith("Mouse")&&a===Eh.Mouse)&&(a=null)):Ch[e]===Ch.Click&&(a=c,c=null);var l=gh(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;$h(t)(gr({type:Ch[u],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Ch[e]){case Ch.MouseDown:case Ch.MouseUp:s=s.replace("mouse","pointer");break;case Ch.TouchStart:case Ch.TouchEnd:return}u.push(rh(s,a,r))}),$h(function(){u.forEach(function(e){return e()})})}function Vh(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return rh("scroll",$h(oh($h(function(e){var s=Bh(e);if(s&&!ph(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var u=uh(r.defaultView);t({id:a,x:u.left,y:u.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var Wh=["INPUT","TEXTAREA","SELECT"],Hh=new WeakMap;function Gh(e){return function(e,t){if(Kh("CSSGroupingRule")&&yr(e.parentRule,CSSGroupingRule)||Kh("CSSMediaRule")&&yr(e.parentRule,CSSMediaRule)||Kh("CSSSupportsRule")&&yr(e.parentRule,CSSSupportsRule)||Kh("CSSConditionRule")&&yr(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Zh(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Yh(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(th.host(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(n){}return r}}),$h(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function Jh(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=qh(e,e.doc));var i,o,s,a,u,c,l,h,p,f=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],c=oh($h(function(e){var r=Date.now()-o;t(u.map(function(e){return e.timeOffset-=r,e}),e),u=[],o=null}),a),l=$h(oh($h(function(e){var t=Bh(e),r=gh(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=ah()),u.push({x:n,y:s,id:i.getId(t),timeOffset:ah()-o}),c("undefined"!=typeof DragEvent&&yr(e,DragEvent)?xh.Drag:yr(e,MouseEvent)?xh.MouseMove:xh.TouchMove)}),s,{trailing:!1})),h=[rh("mousemove",l,n),rh("touchmove",l,n),rh("drag",l,n)];return $h(function(){h.forEach(function(e){return e()})})}(e),d=zh(e),g=Vh(e),m=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return rh("resize",$h(oh($h(function(){var e=ch(),t=lh();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200)),n)}(e,{win:n}),v=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=Bh(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=th.parentElement(t)),t&&l&&!(Wh.indexOf(l)<0)&&!ph(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=Kr(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(u[l.toLowerCase()]||u[g])&&(p=Zr({element:t,maskInputOptions:u,tagName:l,type:g,value:p,maskInputFn:c})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=Hh.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Hh.set(e,r);var o=n.getId(e);$h(t)(gr({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return rh(e,$h(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return sh(e[0],e[1],{set:function(){$h(p)({target:this,isTrusted:!1})}},!1,g)}))),$h(function(){d.forEach(function(e){return e()})})}(e),y=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,u=i.mirror,c=i.sampling,l=i.doc,h=$h(function(e){return oh($h(function(t){var r=Bh(t);if(r&&!ph(r,s,a,!0)){var n=r.currentTime,i=r.volume,c=r.muted,l=r.playbackRate,h=r.loop;o({type:e,id:u.getId(r),currentTime:n,volume:i,muted:c,playbackRate:l,loop:h})}}),c.media||500)}),p=[rh("play",h(Oh.Play),l),rh("pause",h(Oh.Pause),l),rh("seeked",h(Oh.Seeked),l),rh("volumechange",h(Oh.VolumeChange),l),rh("ratechange",h(Oh.RateChange),l)],$h(function(){p.forEach(function(e){return e()})})),b=function(){},_=function(){},w=function(){},k=function(){};e.recordDOM&&(b=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:$h(function(e,t,o){var s=o[0],a=o[1],u=Zh(t,n,i.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,u,c=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:$h(function(e,t,o){var s=o[0],a=Zh(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:$h(function(e,t,o){var s=o[0],a=Zh(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(u=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:$h(function(e,t,o){var s=o[0],a=Zh(t,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,replaceSync:s}),e.apply(t,o)})}));var l={};Xh("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Xh("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Xh("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Xh("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:$h(function(e,t,o){var s=o[0],a=o[1],u=Zh(t.parentStyleSheet,n,i.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&r({id:c,styleId:l,adds:[{rule:s,index:[].concat(Gh(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:$h(function(e,t,o){var s=o[0],a=Zh(t.parentStyleSheet,n,i.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,removes:[{index:[].concat(Gh(t),[s])}]}),e.apply(t,o)})})}),$h(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=c,a&&(o.CSSStyleSheet.prototype.replace=a),u&&(o.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),_=Yh(e,e.doc),w=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:$h(function(e,t,s){var u,c=s[0],l=s[1],h=s[2];if(i.has(c))return a.apply(t,[c,l,h]);var p=Zh(null==(u=t.parentRule)?void 0:u.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:c,value:l,priority:h},index:Gh(t.parentRule)}),e.apply(t,s)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:$h(function(e,t,s){var a,c=s[0];if(i.has(c))return u.apply(t,[c]);var l=Zh(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:c},index:Gh(t.parentRule)}),e.apply(t,s)})}),$h(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}(e,{win:n}),e.collectFonts&&(k=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=eh(r.fonts,"add",function(e){return function(r){return setTimeout($h(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),$h(function(){i.forEach(function(e){return e()})})}(e)));for(var S,x=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=$h(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],u=e.rangeCount||0,c=0;c<u;c++){var l=e.getRangeAt(c),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;ph(h,n,i,!0)||ph(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),rh("selectionchange",a)}(e),C=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?eh(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(o){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),E=[],I=xr(e.plugins);!(S=I()).done;){var O=S.value;E.push(O.observer(O.callback,n,O.options))}return $h(function(){Uh.forEach(function(e){return e.reset()}),r?.disconnect(),f(),d(),g(),m(),v(),y(),b(),_(),w(),k(),x(),C(),E.forEach(function(e){return e()})})}function Kh(e){return void 0!==window[e]}function Xh(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Qh=function(){function e(e){Tr(this,"iframeIdToRemoteIdMap",new WeakMap),Tr(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),ep=function(){function e(e){Tr(this,"iframes",new WeakMap),Tr(this,"crossOriginIframeMap",new WeakMap),Tr(this,"crossOriginIframeMirror",new Qh(hn)),Tr(this,"crossOriginIframeStyleMirror"),Tr(this,"crossOriginIframeRootIdMap",new WeakMap),Tr(this,"mirror"),Tr(this,"mutationCb"),Tr(this,"wrappedEmit"),Tr(this,"loadListener"),Tr(this,"stylesheetManager"),Tr(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Qh(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Sh.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Sh.IncrementalSnapshot,data:{source:xh.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Sh.Meta:case Sh.Load:case Sh.DomContentLoaded:return!1;case Sh.Plugin:return t;case Sh.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Sh.IncrementalSnapshot:switch(t.data.source){case xh.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case xh.Drag:case xh.TouchMove:case xh.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case xh.ViewportResize:return!1;case xh.MediaInteraction:case xh.MouseInteraction:case xh.Scroll:case xh.CanvasMutation:case xh.Input:return this.replaceIds(t.data,e,["id"]),t;case xh.StyleSheetRule:case xh.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case xh.Font:return t;case xh.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case xh.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=xr(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Th.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),tp=function(){function e(e){Tr(this,"shadowDoms",new WeakSet),Tr(this,"mutationCb"),Tr(this,"scrollCb"),Tr(this,"bypassOptions"),Tr(this,"mirror"),Tr(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Vr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=qh(gr({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Vh(gr({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(th.host(e))),r.restoreHandlers.push(Yh({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(eh(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=th.shadowRoot(this);return o&&kh(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),rp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",np="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ip=0;ip<64;ip++)np[rp.charCodeAt(ip)]=ip;var op=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=rp[r[t]>>2],i+=rp[(3&r[t])<<4|r[t+1]>>4],i+=rp[(15&r[t+1])<<2|r[t+2]>>6],i+=rp[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},sp=new Map;var ap=function(e,t,r){if(e&&(lp(e,t)||"object"===(void 0===e?"undefined":wr(e)))){var n=function(e,t){var r=sp.get(e);return r||(r=new Map,sp.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function up(e,t,r){return yr(e,Array)?e.map(function(e){return up(e,t,r)}):null===e?e:yr(e,Float32Array)||yr(e,Float64Array)||yr(e,Int32Array)||yr(e,Uint32Array)||yr(e,Uint8Array)||yr(e,Uint16Array)||yr(e,Int16Array)||yr(e,Int8Array)||yr(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:yr(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:op(e)}:yr(e,DataView)?{rr_type:e.constructor.name,args:[up(e.buffer,t,r),e.byteOffset,e.byteLength]}:yr(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:yr(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:yr(e,ImageData)?{rr_type:e.constructor.name,args:[up(e.data,t,r),e.width,e.height]}:lp(e,t)||"object"===(void 0===e?"undefined":wr(e))?{rr_type:e.constructor.name,index:ap(e,t,r)}:e}var cp=function(e,t,r){return e.map(function(e){return up(e,t,r)})},lp=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return yr(e,t[r])}))};function hp(e,t,r,n){var i=[];try{var o=eh(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!ph(this,t,r,!0)){var u=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(s[0]&&"object"===wr(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch($m){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function pp(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var c=eh(e,a,function(e){return function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var l=e.apply(this,u);if(ap(l,o,this),"tagName"in this.canvas&&!ph(this.canvas,n,i,!0)){var h={type:t,property:a,args:cp(u,o,this)};r(this.canvas,h)}return l}});u.push(c)}catch($m){var l=sh(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});u.push(l)}},u=[],c=xr(Object.getOwnPropertyNames(e));!(s=c()).done;)a();return u}var fp,dp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",gp="undefined"!=typeof window&&window.Blob&&new Blob([(fp=dp,Uint8Array.from(atob(fp),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function mp(e){var t;try{if(!(t=gp&&(window.URL||window.webkitURL).createObjectURL(gp)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(n){return new Worker("data:text/javascript;base64,"+dp,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var vp,yp,bp,_p=function(){function e(e){var t=this;Tr(this,"pendingCanvasMutations",new Map),Tr(this,"rafStamps",{latestId:0,invokeId:null}),Tr(this,"mirror"),Tr(this,"mutationCb"),Tr(this,"resetObservers"),Tr(this,"frozen",!1),Tr(this,"locked",!1),Tr(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,u=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:u})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=hp(t,r,n,!0),a=new Map,u=new mp;u.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,u=r.height;o.mutationCb({id:t,type:Ih["2D"],commands:[{property:"clearRect",args:[0,0,s,u]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var c,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)c=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){ph(e,r,n,!0)||s.push(e)}),s).forEach(pr(function(e){var t,r,n,o;return Cr(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),c=requestAnimationFrame(p)}};c=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(c)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=hp(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=eh(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return ph(this.canvas,r,n,!0)||setTimeout(function(){var r=cp(u,t,s);e(s.canvas,{type:Ih["2D"],property:o,args:r})},0),i.apply(this,u)}});s.push(a)}catch($m){var u=sh(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Ih["2D"],property:o,args:[t],setter:!0})}});s.push(u)}},s=[],a=xr(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(pp(t.WebGLRenderingContext.prototype,Ih.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(pp(t.WebGL2RenderingContext.prototype,Ih.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,br(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),wp=function(){function e(e){Tr(this,"trackedLinkElements",new WeakSet),Tr(this,"mutationCb"),Tr(this,"adoptedStyleSheetCb"),Tr(this,"styleMirror",new bh),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:Hr(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=xr(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),kp=function(){function e(){Tr(this,"nodeMap",new WeakMap),Tr(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),Sp=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var xp=document.createElement("iframe");document.body.appendChild(xp),Array.from=(null==(Ir=xp.contentWindow)?void 0:Ir.Array.from)||Array.from,document.body.removeChild(xp)}}catch(ab){console.debug("Unable to override Array.from",ab)}var Cp,Ep,Ip=new Gr;function Op(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,f=void 0===p?"rr-mask":p,d=e.maskTextSelector,g=void 0===d?null:d,m=e.inlineStylesheet,v=void 0===m||m,y=e.maskAllInputs,b=e.maskInputOptions,_=e.slimDOMOptions,w=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,E=void 0===C?{}:C,I=e.dataURLOptions,O=void 0===I?{}:I,T=e.mousemoveWait,A=e.recordDOM,R=void 0===A||A,M=e.recordCanvas,F=void 0!==M&&M,N=e.recordCrossOriginIframes,D=void 0!==N&&N,P=e.recordAfter,L=void 0===P?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":P,j=e.userTriggeredOnInput,$=void 0!==j&&j,U=e.collectFonts,B=void 0!==U&&U,q=e.inlineImages,z=void 0!==q&&q,V=e.plugins,W=e.keepIframeSrcFn,H=void 0===W?function(){return!1}:W,G=e.ignoreCSSAttributes,Z=void 0===G?new Set([]):G,Y=e.errorHandler;Rh=Y;var J=!D||window.parent===window,K=!1;if(!J)try{window.parent.document&&(K=!1)}catch(me){K=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!K)return function(){};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),Ip.reset();var X,Q=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},ee=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_,headTitleMutations:"all"===_}:_||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var te=0,re=function(e){for(var t,r=xr(V||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!K&&(e=x(e)),e};vp=function(e,i){var o,s=e;if(s.timestamp=ah(),!(null==(o=Uh[0])?void 0:o.isFrozen())||s.type===Sh.FullSnapshot||s.type===Sh.IncrementalSnapshot&&s.data.source===xh.Mutation||Uh.forEach(function(e){return e.unfreeze()}),J)t?.(re(s),i);else if(K){var a={type:"rrweb",event:re(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===Sh.FullSnapshot)X=s,te=0;else if(s.type===Sh.IncrementalSnapshot){if(s.data.source===xh.Mutation&&s.data.isAttachIframe)return;te++;var u=n&&te>=n,c=r&&s.timestamp-X.timestamp>r;(u||c)&&yp(!0)}};for(var ne,ie=function(e){vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.Mutation},e)})},oe=function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.Scroll},e)})},se=function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.CanvasMutation},e)})},ae=new wp({mutationCb:ie,adoptedStyleSheetCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.AdoptedStyleSheet},e)})}}),ue=new ep({mirror:Ip,mutationCb:ie,stylesheetManager:ae,recordCrossOriginIframes:D,wrappedEmit:vp}),ce=xr(V||[]);!(ne=ce()).done;){var le=ne.value;le.getMirror&&le.getMirror({nodeMirror:Ip,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror})}var he=new kp;bp=new _p({recordCanvas:F,mutationCb:se,win:window,blockClass:o,blockSelector:a,mirror:Ip,sampling:E.canvas,dataURLOptions:O});var pe=new tp({mutationCb:ie,scrollCb:oe,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:w,recordCanvas:F,inlineImages:z,sampling:E,slimDOMOptions:ee,iframeManager:ue,stylesheetManager:ae,canvasManager:bp,keepIframeSrcFn:H,processedNodeManager:he},mirror:Ip});yp=function(e){if(void 0===e&&(e=!1),R){vp({type:Sh.Meta,data:{href:window.location.href,width:lh(),height:ch()}},e),ae.reset(),pe.init(),Uh.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new Gr:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,u=void 0===a?null:a,c=r.maskTextClass,l=void 0===c?"rr-mask":c,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,b=r.maskAllInputs,_=void 0!==b&&b,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,C=r.dataURLOptions,E=r.preserveWhiteSpace,I=r.onSerialize,O=r.onIframeLoad,T=r.iframeLoadTimeout,A=r.onStylesheetLoad,R=r.stylesheetLoadTimeout,M=r.keepIframeSrcFn;return xn(e,{doc:e,mirror:i,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===_?{password:!0}:_,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:C,inlineImages:m,recordCanvas:y,preserveWhiteSpace:E,onSerialize:I,onIframeLoad:O,iframeLoadTimeout:T,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:void 0===M?function(){return!1}:M,newlyAddedElement:!1})}(document,{mirror:Ip,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:Q,maskTextFn:k,maskInputFn:w,slimDOM:ee,dataURLOptions:O,recordCanvas:F,inlineImages:z,onSerialize:function(e){mh(e,Ip)&&ue.addIframe(e),vh(e,Ip)&&ae.trackLinkElement(e),yh(e)&&pe.addShadowRoot(th.shadowRoot(e),document)},onIframeLoad:function(e,t){ue.attachIframe(e,t),pe.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ae.attachLinkElement(e,t)},keepIframeSrcFn:H});if(!t)return console.warn("Failed to snapshot the document");vp({type:Sh.FullSnapshot,data:{node:t,initialOffset:uh(window)}},e),Uh.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ae.adoptStyleSheets(document.adoptedStyleSheets,Ip.getId(document))}};try{var fe=[],de=function(e){var t;return $h(Jh)({mutationCb:ie,mousemoveCb:function(e,t){return vp({type:Sh.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.MouseInteraction},e)})},scrollCb:oe,viewportResizeCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.ViewportResize},e)})},inputCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.Input},e)})},mediaInteractionCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.MediaInteraction},e)})},styleSheetRuleCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.StyleSheetRule},e)})},styleDeclarationCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.StyleDeclaration},e)})},canvasMutationCb:se,fontCb:function(e){return vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.Font},e)})},selectionCb:function(e){vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.Selection},e)})},customElementCb:function(e){vp({type:Sh.IncrementalSnapshot,data:gr({source:xh.CustomElement},e)})},blockClass:o,ignoreClass:c,ignoreSelector:h,maskTextClass:f,maskTextSelector:g,maskInputOptions:Q,inlineStylesheet:v,sampling:E,recordDOM:R,recordCanvas:F,inlineImages:z,userTriggeredOnInput:$,collectFonts:B,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:H,blockSelector:a,slimDOMOptions:ee,dataURLOptions:O,mirror:Ip,iframeManager:ue,stylesheetManager:ae,shadowDomManager:pe,processedNodeManager:he,canvasManager:bp,ignoreCSSAttributes:Z,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return vp({type:Sh.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ue.addLoadListener(function(e){try{fe.push(de(e.contentDocument))}catch(t){console.warn(t)}});var ge=function(){yp(),fe.push(de(document)),Sp=!0};return"interactive"===document.readyState||"complete"===document.readyState?ge():(fe.push(rh("DOMContentLoaded",function(){vp({type:Sh.DomContentLoaded,data:{}}),"DOMContentLoaded"===L&&ge()})),fe.push(rh("load",function(){vp({type:Sh.Load,data:{}}),"load"===L&&ge()},window))),function(){fe.forEach(function(e){try{e()}catch(t){String(t).toLowerCase().includes("cross-origin")||console.warn(t)}}),he.destroy(),Sp=!1,Rh=void 0}}catch(ve){console.warn(ve)}}Op.addCustomEvent=function(e,t){if(!Sp)throw new Error("please add custom event after start recording");vp({type:Sh.Custom,data:{tag:e,payload:t}})},Op.freezePage=function(){Uh.forEach(function(e){return e.freeze()})},Op.takeFullSnapshot=function(e){if(!Sp)throw new Error("please take full snapshot after start recording");yp(e)},Op.mirror=Ip,(Ep=Cp||(Cp={}))[Ep.NotStarted=0]="NotStarted",Ep[Ep.Running=1]="Running",Ep[Ep.Stopped=2]="Stopped",Op.addCustomEvent,Op.freezePage,Op.takeFullSnapshot;var Tp,Ap,Rp,Mp=ar.setImmediate,Fp=Object.prototype.toString,Np=void 0!==Mp?function(e){return Mp(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Tp=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(ab){Tp=function(e,t,r){return e[t]=r,e}}function Dp(e,t){Rp.add(e,t),Ap||(Ap=Np(Rp.drain))}function Pp(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function Lp(){for(var e=0;e<this.chain.length;e++)jp(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function jp(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=Pp(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(ab){r.reject(ab)}}function $p(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Pp(e))?Dp(function(){var n=new qp(r);try{t.call(e,function(){$p.apply(n,arguments)},function(){Up.apply(n,arguments)})}catch(ab){Up.call(n,ab)}}):(r.msg=e,r.state=1,r.chain.length>0&&Dp(Lp,r))}catch(ab){Up.call(new qp(r),ab)}}}function Up(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Dp(Lp,t))}function Bp(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function qp(e){this.def=e,this.triggered=!1}function zp(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Vp(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new zp(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&Dp(Lp,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){$p.call(t,e)},function(e){Up.call(t,e)})}catch(ab){Up.call(t,ab)}}Rp=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=Ap=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Wp,Hp=Tp({},"constructor",Vp,!1);Vp.prototype=Hp,Tp(Hp,"__NPO__",0,!1),Tp(Vp,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),Tp(Vp,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),Tp(Vp,"all",function(e){var t=this;return"[object Array]"!==Fp.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;Bp(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),Tp(Vp,"race",function(e){var t=this;return"[object Array]"!==Fp.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");Bp(t,e,function(e,t){r(t)},n)})}),Wp="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Vp;var Gp={DEBUG:!1,LIB_VERSION:"2.71.1"},Zp=864e5,Yp=8e3,Jp=Array.prototype,Kp=Function.prototype,Xp=Object.prototype,Qp=Jp.slice,ef=Xp.toString,tf=Xp.hasOwnProperty,rf=ar.console,nf=ar.navigator,of=ar.document,sf=ar.opera,af=ar.screen,uf=nf.userAgent,cf=Kp.bind,lf=Jp.forEach,hf=Jp.indexOf,pf=Jp.map,ff=Array.isArray,df={},gf={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},mf={log:function(){if(Gp.DEBUG&&!gf.isUndefined(rf)&&rf)try{rf.log.apply(rf,arguments)}catch(ab){gf.each(arguments,function(e){rf.log(e)})}},warn:function(){if(Gp.DEBUG&&!gf.isUndefined(rf)&&rf){var e=["Mixpanel warning:"].concat(gf.toArray(arguments));try{rf.warn.apply(rf,e)}catch(ab){gf.each(e,function(e){rf.warn(e)})}}},error:function(){if(Gp.DEBUG&&!gf.isUndefined(rf)&&rf){var e=["Mixpanel error:"].concat(gf.toArray(arguments));try{rf.error.apply(rf,e)}catch(ab){gf.each(e,function(e){rf.error(e)})}}},critical:function(){if(!gf.isUndefined(rf)&&rf){var e=["Mixpanel error:"].concat(gf.toArray(arguments));try{rf.error.apply(rf,e)}catch(ab){gf.each(e,function(e){rf.error(e)})}}}},vf=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(mf,arguments)}},yf=function(e){return{log:vf(mf.log,e),error:vf(mf.error,e),critical:vf(mf.critical,e)}},bf=function(e){return function(){try{return e.apply(this,arguments)}catch($m){mf.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Gp.DEBUG&&mf.critical($m)}}},_f=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=bf(t[r]))};gf.bind=function(e,t){var r,n;if(cf&&e.bind===cf)return cf.apply(e,Qp.call(arguments,1));if(!gf.isFunction(e))throw new TypeError;return r=Qp.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Qp.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Qp.call(arguments)));return Object(s)===s?s:o},n},gf.each=function(e,t,r){if(null!=e)if(lf&&e.forEach===lf)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===df)return}else for(var o in e)if(tf.call(e,o)&&t.call(r,e[o],o,e)===df)return},gf.extend=function(e){return gf.each(Qp.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},gf.isArray=ff||function(e){return"[object Array]"===ef.call(e)},gf.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(sv){return!1}},gf.isArguments=function(e){return!(!e||!tf.call(e,"callee"))},gf.toArray=function(e){return e?e.toArray?e.toArray():gf.isArray(e)||gf.isArguments(e)?Qp.call(e):gf.values(e):[]},gf.map=function(e,t,r){if(pf&&e.map===pf)return e.map(t,r);var n=[];return gf.each(e,function(e){n.push(t.call(r,e))}),n},gf.keys=function(e){var t=[];return null===e||gf.each(e,function(e,r){t[t.length]=r}),t},gf.values=function(e){var t=[];return null===e||gf.each(e,function(e){t[t.length]=e}),t},gf.include=function(e,t){var r=!1;return null===e?r:hf&&e.indexOf===hf?-1!=e.indexOf(t):(gf.each(e,function(e){if(r||(r=e===t))return df}),r)},gf.includes=function(e,t){return-1!==e.indexOf(t)},gf.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},gf.isObject=function(e){return e===Object(e)&&!gf.isArray(e)},gf.isEmptyObject=function(e){if(gf.isObject(e)){for(var t in e)if(tf.call(e,t))return!1;return!0}return!1},gf.isUndefined=function(e){return void 0===e},gf.isString=function(e){return"[object String]"==ef.call(e)},gf.isDate=function(e){return"[object Date]"==ef.call(e)},gf.isNumber=function(e){return"[object Number]"==ef.call(e)},gf.isElement=function(e){return!(!e||1!==e.nodeType)},gf.encodeDates=function(e){return gf.each(e,function(t,r){gf.isDate(t)?e[r]=gf.formatDate(t):gf.isObject(t)&&(e[r]=gf.encodeDates(t))}),e},gf.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},gf.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},gf.strip_empty_properties=function(e){var t={};return gf.each(e,function(e,r){gf.isString(e)&&e.length>0&&(t[r]=e)}),t},gf.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):gf.isArray(e)?(r=[],gf.each(e,function(e){r.push(gf.truncate(e,t))})):gf.isObject(e)?(r={},gf.each(e,function(e,n){r[n]=gf.truncate(e,t)})):r=e,r},gf.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",u=0,c=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===ef.apply(h)){for(u=h.length,o=0;o<u;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+c+"]":"["+l.join(",")+"]",i=c,a}for(s in h)tf.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+c+"}":"{"+l.join(",")+"}",i=c,a}};return r("",{"":e})},gf.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},o=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),"-"!==t&&"+"!==t||(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(e=+r,isFinite(e))return e;o("Bad number")},u=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;if("\\"===t)if(s(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(s(),16),isFinite(e));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else{if("string"!=typeof i[t])break;a+=i[t]}else a+=t}o("Bad string")},c=function(){for(;t&&t<=" ";)s()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(s("{"),c(),"}"===t)return s("}"),r;for(;t;){if(e=u(),c(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return s("}"),r;s(","),c()}}o("Bad object")}();case"[":return function(){var e=[];if("["===t){if(s("["),c(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return s("]"),e;s(","),c()}}o("Bad array")}();case'"':return u();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')}()}},function(i){var s;return r=i,e=0,t=" ",s=n(),c(),t&&o("Syntax error"),s}}(),gf.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,c="",l=[];if(!e)return e;e=gf.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[u++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(c=l.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},gf.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},gf.UUID=function(){try{return ar.crypto.randomUUID()}catch(ab){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",gf.map(e,function(e){return e.toString(16)}).join("")}};var wf=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];gf.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<wf.length;t++)if(-1!==e.indexOf(wf[t]))return!0;return!1},gf.HTTPBuildQuery=function(e,t){var r,n,i=[];return gf.isUndefined(t)&&(t="&"),gf.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},gf.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(ab){mf.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},gf.cookie={get:function(e){for(var t=e+"=",r=of.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=gf.JSONDecode(gf.cookie.get(e))||{}}catch(ab){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=Ff(of.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),of.cookie=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=Ff(of.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c;return of.cookie=p,p},remove:function(e,t,r){gf.cookie.set(e,"",-1,t,!1,!1,r)}};var kf=function(e){var t=!0;try{var r="__mplss_"+Af(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(ab){t=!1}return t},Sf=null,xf=function(e,t){return null===Sf||t?Sf=kf(e||ar.localStorage):Sf},Cf=null;function Ef(e,t,r){var n=function(e){mf.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||mf.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(ab){n(ab)}return null},parse:function(t){try{return gf.JSONDecode(e.getItem(t))||{}}catch(ab){}return null},set:function(t,r){try{e.setItem(t,r)}catch(ab){n(ab)}},remove:function(t){try{e.removeItem(t)}catch(ab){n(ab)}}}}gf.localStorage=Ef(ar.localStorage,"localStorage",xf),gf.sessionStorage=Ef(ar.sessionStorage,"sessionStorage",function(e,t){return null===Cf||t?Cf=kf(e||ar.sessionStorage):Cf}),gf.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(ar.event)){var o,s,a=!0;return gf.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else mf.error("No valid element provided to register_event")}}();var If=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');gf.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!of.getElementsByTagName)return[];var n,i,o,s,a,u,c,l,h,p,f=t.split(" "),d=[of];for(u=0;u<f.length;u++)if((n=f[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=of.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,c=0;c<d.length;c++)for(h="*"==o?e(d[c]):d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,c=0;c<s.length;c++)s[c].className&&gf.isString(s[c].className)&&r(s[c],v)&&(d[p++]=s[c])}else{var y=n.match(If);if(y){o=y[1];var b,_=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,c=0;c<d.length;c++)for(h="*"==o?e(d[c]):d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":b=function(e){return e.getAttribute(_)==k};break;case"~":b=function(e){return e.getAttribute(_).match(new RegExp("\\b"+k+"\\b"))};break;case"|":b=function(e){return e.getAttribute(_).match(new RegExp("^"+k+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(_).indexOf(k)};break;case"$":b=function(e){return e.getAttribute(_).lastIndexOf(k)==e.getAttribute(_).length-k.length};break;case"*":b=function(e){return e.getAttribute(_).indexOf(k)>-1};break;default:b=function(e){return e.getAttribute(_)}}for(d=[],p=0,c=0;c<s.length;c++)b(s[c])&&(d[p++]=s[c])}else{for(o=n,s=[],a=0,c=0;c<d.length;c++)for(h=d[c].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return gf.isElement(e)?[e]:gf.isObject(e)&&!gf.isUndefined(e.length)?e:n.call(this,e)}}();var Of=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Tf=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];gf.info={campaignParams:function(e){var t="",r={};return gf.each(Of,function(n){(t=gf.getQueryParam(of.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return gf.each(Tf,function(r){(e=gf.getQueryParam(of.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return gf.extend(gf.info.campaignParams(),gf.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=gf.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=gf.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||gf.includes(e," OPR/")?gf.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":gf.includes(e,"IEMobile")||gf.includes(e,"WPDesktop")?"Internet Explorer Mobile":gf.includes(e,"SamsungBrowser/")?"Samsung Internet":gf.includes(e,"Edge")||gf.includes(e,"Edg/")?"Microsoft Edge":gf.includes(e,"FBIOS")?"Facebook Mobile":gf.includes(e,"Whale/")?"Whale Browser":gf.includes(e,"Chrome")?"Chrome":gf.includes(e,"CriOS")?"Chrome iOS":gf.includes(e,"UCWEB")||gf.includes(e,"UCBrowser")?"UC Browser":gf.includes(e,"FxiOS")?"Firefox iOS":gf.includes(t,"Apple")?gf.includes(e,"Mobile")?"Mobile Safari":"Safari":gf.includes(e,"Android")?"Android Mobile":gf.includes(e,"Konqueror")?"Konqueror":gf.includes(e,"Firefox")?"Firefox":gf.includes(e,"MSIE")||gf.includes(e,"Trident/")?"Internet Explorer":gf.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[gf.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=uf;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return ar.location.href},properties:function(e){return"object"!=typeof e&&(e={}),gf.extend(gf.strip_empty_properties({$os:gf.info.os(),$browser:gf.info.browser(uf,nf.vendor,sf),$referrer:of.referrer,$referring_domain:gf.info.referringDomain(of.referrer),$device:gf.info.device(uf)}),{$current_url:gf.info.currentUrl(),$browser_version:gf.info.browserVersion(uf,nf.vendor,sf),$screen_height:af.height,$screen_width:af.width,mp_lib:"web",$lib_version:Gp.LIB_VERSION,$insert_id:Af(),time:gf.timestamp()/1e3},gf.strip_empty_properties(e))},people_properties:function(){return gf.extend(gf.strip_empty_properties({$os:gf.info.os(),$browser:gf.info.browser(uf,nf.vendor,sf)}),{$browser_version:gf.info.browserVersion(uf,nf.vendor,sf)})},mpPageViewProperties:function(){return gf.strip_empty_properties({current_page_title:of.title,current_domain:ar.location.hostname,current_url_path:ar.location.pathname,current_url_protocol:ar.location.protocol,current_url_search:ar.location.search})}};var Af=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Rf=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Mf=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Ff=function(e){var t=Mf,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Rf);var i=e.match(t);return i?i[0]:""},Nf=function(){},Df=null,Pf=null;"undefined"!=typeof JSON&&(Df=JSON.stringify,Pf=JSON.parse),Df=Df||gf.JSONEncode,Pf=Pf||gf.JSONDecode,gf.info=gf.info,gf.info.browser=gf.info.browser,gf.info.browserVersion=gf.info.browserVersion,gf.info.device=gf.info.device,gf.info.properties=gf.info.properties,gf.isBlockedUA=gf.isBlockedUA,gf.isEmptyObject=gf.isEmptyObject,gf.isObject=gf.isObject,gf.JSONDecode=gf.JSONDecode,gf.JSONEncode=gf.JSONEncode,gf.toArray=gf.toArray,gf.NPO=Vp;var Lf="mixpanelRecordingEvents",jf="mixpanelRecordingRegistry",$f=[Lf,jf],Uf=function(e){this.dbPromise=null,this.storeName=e};Uf.prototype._openDb=function(){return new Wp(function(e,t){var r=ar.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;$f.forEach(function(e){t.createObjectStore(e)})}})},Uf.prototype.init=function(){return ar.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof ar.IDBDatabase?Wp.resolve():Wp.reject(e)})):Wp.reject("indexedDB is not supported in this browser")},Uf.prototype.isInitialized=function(){return!!this.dbPromise},Uf.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Wp(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):Wp.reject(e)}.bind(this))},Uf.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Uf.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Uf.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Uf.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};function Bf(e,t){Xf(!0,e,t)}function qf(e,t){Xf(!1,e,t)}function zf(e,t){return"1"===Kf(e,t)}function Vf(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||ar,r=t.navigator||{},n=!1;return gf.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){gf.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return mf.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Kf(e,t);return r&&mf.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Wf(e){return Qf(e,function(e){return this.get_config(e)})}function Hf(e){return Qf(e,function(e){return this._get_config(e)})}function Gf(e){return Qf(e,function(e){return this._get_config(e)})}function Zf(e,t){Yf(t=t||{}).remove(Jf(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Yf(e){return"localStorage"===(e=e||{}).persistenceType?gf.localStorage:gf.cookie}function Jf(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Kf(e,t){return Yf(t).get(Jf(e,t))}function Xf(e,t,r){gf.isString(t)&&t.length?(Yf(r=r||{}).set(Jf(t,r),e?1:0,gf.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):mf.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Qf(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=Vf(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(ab){mf.error("Unexpected error when checking tracking opt-out status: "+ab)}if(!r)return e.apply(this,arguments);var u=arguments[arguments.length-1];"function"==typeof u&&u(0)}}var ed=yf("lock"),td=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||ar.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Wp};td.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(gf.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,u=this.timeoutMS,c=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>u)return ed.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(h),void m();setTimeout(function(){try{e()}catch(ab){n(ab)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=c.getItem(h);return(!e||e===i)&&(c.setItem(h,i),c.getItem(h)===i||(xf(c,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){c.setItem(l,i),d(g,function(){c.getItem(l)!==i?f(function(){c.getItem(h)===i?d(function(){return!c.getItem(p)},v):m()}):v()})},v=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(h)===i&&c.removeItem(h),c.getItem(l)===i&&c.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!xf(c,!0))throw new Error("localStorage support check failed");m()}catch(ab){n(ab)}},this))};var rd=function(e){this.storage=e||ar.localStorage};rd.prototype.init=function(){return Wp.resolve()},rd.prototype.isInitialized=function(){return!0},rd.prototype.setItem=function(e,t){return new Wp(gf.bind(function(r,n){try{this.storage.setItem(e,Df(t))}catch($m){n($m)}r()},this))},rd.prototype.getItem=function(e){return new Wp(gf.bind(function(t,r){var n;try{n=Pf(this.storage.getItem(e))}catch($m){r($m)}t(n)},this))},rd.prototype.removeItem=function(e){return new Wp(gf.bind(function(t,r){try{this.storage.removeItem(e)}catch($m){r($m)}t()},this))};var nd=yf("batch"),id=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new rd,this.lock=new td(e,{storage:t.sharedLockStorage||ar.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||gf.bind(nd.error,nd),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=gf.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new Wp(function(e){setTimeout(function(){var n=r.apply(t,[o]);i=null,o=[],e(n)},n)})),i}):this.enqueuePersisted=gf.bind(function(e){return this._enqueuePersisted([e])},this)};id.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Wp.resolve():this.queueStorage.init().then(gf.bind(function(){this.initialized=!0},this)).catch(gf.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},id.prototype.enqueue=function(e,t){var r={id:Af(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Wp.resolve(!0))},id.prototype._enqueuePersisted=function(e){var t=gf.bind(function(){return this.ensureInit().then(gf.bind(function(){return this.readFromStorage()},this)).then(gf.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(gf.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(gf.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(gf.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},id.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(gf.bind(function(){return this.readFromStorage()},this)).then(gf.bind(function(r){if(r.length){var n={};gf.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):Wp.resolve(t)};var od=function(e,t){var r=[];return gf.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};id.prototype.removeItemsByID=function(e){var t={};if(gf.each(e,function(e){t[e]=!0}),this.memQueue=od(this.memQueue,t),this.usePersistence){var r=gf.bind(function(){return this.ensureInit().then(gf.bind(function(){return this.readFromStorage()},this)).then(gf.bind(function(e){return e=od(e,t),this.saveToStorage(e)},this)).then(gf.bind(function(){return this.readFromStorage()},this)).then(gf.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(gf.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(gf.bind(function(e){return this.reportError("Error acquiring storage lock",e),!xf(this.lock.storage,!0)&&r().then(gf.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(gf.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Wp.resolve(!0)};var sd=function(e,t){var r=[];return gf.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};id.prototype.updatePayloads=function(e){return this.memQueue=sd(this.memQueue,e),this.usePersistence?this.lock.withLock(gf.bind(function(){return this.ensureInit().then(gf.bind(function(){return this.readFromStorage()},this)).then(gf.bind(function(t){return t=sd(t,e),this.saveToStorage(t)},this)).catch(gf.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(gf.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Wp.resolve(!0)},id.prototype.readFromStorage=function(){return this.ensureInit().then(gf.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(gf.bind(function(e){return e&&(gf.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(gf.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},id.prototype.saveToStorage=function(e){return this.ensureInit().then(gf.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(gf.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},id.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(gf.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Wp.resolve()};var ad=yf("batch"),ud=function(e,t){this.errorReporter=t.errorReporter,this.queue=new id(e,{errorReporter:gf.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};ud.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},ud.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},ud.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},ud.prototype.clear=function(){return this.queue.clear()},ud.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},ud.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},ud.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(gf.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},ud.prototype.sendRequestPromise=function(e,t){return new Wp(gf.bind(function(r){this.sendRequest(e,t,r)},this))},ud.prototype.flush=function(e){if(this.requestInProgress)return ad.log("Flush: Request already in progress"),Wp.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(gf.bind(function(i){var o=i.length===n,s=[],a={};if(gf.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=gf.extend({},t.properties,{mp_sent_by_lib_version:Gp.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Wp.resolve();var u=gf.bind(function(){return this.queue.removeItemsByID(gf.map(i,function(e){return e.id})).then(gf.bind(function(e){return gf.each(i,gf.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),Wp.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Wp.resolve())},this))},this),c=gf.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(gf.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(gf.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(l=ar.navigator.onLine,!gf.isUndefined(l)&&!l)||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Wp.resolve()}if(gf.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var c=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Wp.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),u()}return u()}catch(ab){this.reportError("Error handling API response",ab),this.resetFlush()}var l},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),ad.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(gf.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},ud.prototype.reportError=function(e,t){if(ad.error.apply(ad.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ad.error(t)}};var cd=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},ld=yf("recorder"),hd=ar.CompressionStream,pd={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},fd=new Set([xh.MouseMove,xh.MouseInteraction,xh.Scroll,xh.ViewportResize,xh.Input,xh.TouchMove,xh.MediaInteraction,xh.Drag,xh.Selection]);var dd=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Nf,this._onMaxLengthReached=e.onMaxLengthReached||Nf,this._onBatchSent=e.onBatchSent||Nf,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Zp,this.recordMinMs=0;var t=xf(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Uf(Lf),this.batcher=new ud(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:pd,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};dd.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},dd.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},dd.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},dd.prototype.get_config=function(e){return this.getConfig(e)},dd.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Zp&&(this.recordMaxMs=Zp,ld.critical("record_max_ms cannot be greater than "+Zp+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Yp&&(this.recordMinMs=Yp,ld.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=gf.info.currentUrl(),this.replayStartUrl=gf.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===Sh.IncrementalSnapshot&&fd.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(ab){this.reportError("Unexpected error when starting rrweb recording.",ab)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var n=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)}else ld.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},dd.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(ab){this.reportError("Error with rrweb stopRecording",ab)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},dd.prototype.isRrwebStopped=function(){return null===this._stopRecording},dd.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},dd.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch($m){this.reportError("Error getting tab ID for serialization ",$m),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},dd.deserialize=function(e,t){return new dd(gf.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},dd.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=gf.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");ar.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},dd.prototype._flushEvents=Wf(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<n;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===Sh.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Gp.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),hd){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new hd("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),dd.prototype.reportError=function(e,t){ld.error.apply(ld.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){ld.error(t)}};var gd=function(e){this.idb=new Uf(jf),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};gd.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},gd.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},gd.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Wp.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Wp.resolve())},gd.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return cd(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Wp.resolve(null)},gd.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},gd.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},gd.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Wp.resolve()},gd.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return cd(e)}).map(function(e){return dd.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return Wp.all(t)}.bind(this)).catch(this.handleError.bind(this)):Wp.resolve([])};var md=yf("recorder"),vd=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Op,this.sharedLockStorage=r,this.recordingRegistry=new gd({mixpanelInstance:this.mixpanelInstance,errorReporter:md.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};vd.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){md.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){md.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:gf.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=dd.deserialize(e.activeSerializedRecording,i):this.activeRecording=new dd(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}md.log("Recording already in progress, skipping startRecording.")},vd.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},vd.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},vd.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Wp.resolve()},vd.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Wp.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(md.log("No resumable recording found."),null)}.bind(this))},vd.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},vd.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(vd.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),ar.__mp_recorder=vd;var yd="change",bd="click",_d="hashchange",wd="load",kd="mp_locationchange",Sd="popstate",xd="scrollend",Cd="scroll",Ed="submit",Id="visibilitychange",Od=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Td=["mp-include"],Ad=["mp-no-track"],Rd=Ad.concat(["mp-sensitive"]),Md=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Fd={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Nd={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Dd={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Pd=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Ld=yf("autocapture");function jd(e){for(var t={},r=$d(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function $d(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Ud(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Hd(e));return e}function Bd(e,t,r,n,i,o){var s={$classes:$d(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Yd(e,t,i,o)&&gf.each(Md.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Jd(n)&&(s["$attr-"+t]=n)}});for(var u=1,c=1,l=e;l=Ud(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function qd(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,u=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,l={};gf.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(Zd(p)&&(p=p.parentNode),function(e,t){if(!e||Gd(e,"html")||!Hd(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Ed;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===yd:t.type===bd;case"select":case"textarea":return t.type===yd;default:return t.type===bd}}(p,e)&&Vd(p,e,r,n)&&!Wd(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!Gd(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(gf.each(f,function(t){var i=Yd(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Jd(g)&&g),Wd(t,e,o,s)&&(v=!0),m.push(Bd(t,e,l,u,r,n))},this),!v){var y=of.documentElement;if(h={$event_type:e.type,$host:ar.location.host,$pathname:ar.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,ar.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,ar.innerWidth||0),$pageHeight:of.body.offsetHeight||0,$pageWidth:of.body.offsetWidth||0},gf.each(u,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Jd(t)&&(h["$el_attr__"+e]=t)}}),a&&(b=zd(p,e,r,n))&&b.length&&(h.$el_text=b),e.type===bd&&(gf.each(Od,function(t){t in e&&(h["$"+t]=e[t])}),c&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(Gd(i,"a")||Gd(i,"button")||Gd(i,"input")||Gd(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var b=zd(p,e,r,n);b&&b.length&&(h.$el_text=b)}if(p){if(!Vd(p,e,r,n)||Wd(p,e,o,s))return null;var _=Bd(p,e,l,u,r,n);h.$target=_,h.$el_classes=_.$classes,gf.extend(h,gf.strip_empty_properties({$el_id:_.$id,$el_tag_name:_.$tag_name}))}}}return h}function zd(e,t,r,n){var i="";return Yd(e,t,r,n)&&e.childNodes&&e.childNodes.length&&gf.each(e.childNodes,function(e){Zd(e)&&e.textContent&&(i+=gf.trim(e.textContent).split(/(\s+)/).filter(Jd).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),gf.trim(i)}function Vd(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(ab){return Ld.critical("Error while checking element in allowElementCallback",ab),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(ab){Ld.critical("Error while checking selector: "+o,ab)}}return!1}function Wd(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(ab){return Ld.critical("Error while checking element in blockElementCallback",ab),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(ab){Ld.critical("Error while checking selector: "+o,ab)}}var s=jd(e);for(i=0;i<Ad.length;i++)if(s[Ad[i]])return!0;return!1}function Hd(e){return e&&1===e.nodeType}function Gd(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Zd(e){return e&&3===e.nodeType}function Yd(e,t,r,n){var i;if(!Vd(e,t,r,n))return!1;for(var o=e;o.parentNode&&!Gd(o,"body");o=o.parentNode){var s=jd(o);for(i=0;i<Rd.length;i++)if(s[Rd[i]])return!1}var a=jd(e);for(i=0;i<Td.length;i++)if(a[Td[i]])return!0;if(Gd(e,"input")||Gd(e,"select")||Gd(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var u=e.type||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}var c=e.name||e.id||"";return"string"!=typeof c||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(c.replace(/[^a-zA-Z0-9]/g,""))}function Jd(e){if(null===e||gf.isUndefined(e))return!1;if("string"==typeof e){if(e=gf.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function Kd(e){var t="onscrollend"in ar,r=bf(e),n=xd;if(!t){var i=null;r=bf(function(){clearTimeout(i),i=setTimeout(e,100)}),n=Cd}return{listener:r,eventType:n}}function Xd(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<Pd.length;t++)if(e.hasAttribute(Pd[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");return!!t&&Fd[t.trim().split(/\s+/)[0].toLowerCase()]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Qd(){this.clicks=[]}function eg(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Qd.prototype.isRageClick=function(e,t,r){var n=(r=r||{}).threshold_px||30,i=r.timeout_ms||1e3,o=r.click_count||4,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},eg.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e.target||e.srcElement}},eg.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},eg.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},eg.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch($m){Ld.critical("Error while observing shadow root",$m)}}},eg.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Ld.critical("Shadow DOM observation unavailable: WeakSet not supported"))},eg.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch($m){Ld.critical("Error while disconnecting shadow DOM observer",$m)}this.shadowObservers=[],this.observedShadowRoots=null}};var tg=[yd,"input",Ed,"select","toggle"],rg=[xd],ng=[_d],ig={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function og(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}og.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Nd[t])return!0;if(Xd(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(Xd(r))return!1;if(r.getRootNode&&r.getRootNode()!==of){var i=r.getRootNode();if(i.host&&Xd(i.host))return!1}r=r.parentElement,n++}return!!Dd[t]}(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},og.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},og.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},og.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},og.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},og.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},og.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},og.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;tg.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),ng.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),rg.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,ig)}catch($m){Ld.critical("Error while setting up mutation observer",$m)}if(window.customElements)try{this.shadowDOMObserver=new eg(function(){e.recordChangeEvent()},ig),this.shadowDOMObserver.start()}catch($m){Ld.critical("Error while setting up shadow DOM observer",$m),this.shadowDOMObserver=null}}},og.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch($m){Ld.critical("Error while removing event listener",$m)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch($m){Ld.critical("Error while disconnecting mutation observer",$m)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch($m){Ld.critical("Error while stopping shadow DOM observer",$m)}this.shadowDOMObserver=null}}};var sg="autocapture",ag="full-url",ug="allow_selectors",cg="allow_url_regexes",lg="block_attrs",hg="block_element_callback",pg="block_selectors",fg="block_url_regexes",dg="capture_extra_attrs",gg="capture_text_content",mg="scroll_capture_all",vg="scroll_depth_percent_checkpoints",yg="click",bg="dead_click",_g="input",wg="pageview",kg="rage_click",Sg="scroll",xg="page_leave",Cg="submit",Eg={};Eg[ug]=[],Eg[cg]=[],Eg[lg]=[],Eg[hg]=null,Eg[pg]=[],Eg[fg]=[],Eg[dg]=[],Eg[gg]=!1,Eg[mg]=!1,Eg[vg]=[25,50,75,100],Eg[yg]=!0,Eg[bg]=!0,Eg[_g]=!0,Eg[wg]=ag,Eg[kg]=!0,Eg[Sg]=!0,Eg[xg]=!1,Eg[Cg]=!0;var Ig={$mp_autocapture:!0},Og="$mp_click",Tg="$mp_dead_click",Ag="$mp_rage_click",Rg=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Rg.prototype.init=function(){!function(){try{return!!of.createElement("div").matches}catch(ab){return!1}}()?Ld.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},Rg.prototype.getFullConfig=function(){var e=this.mp.get_config(sg);return e?gf.isObject(e)?gf.extend({},Eg,e):Eg:{}},Rg.prototype.getConfig=function(e){return this.getFullConfig()[e]},Rg.prototype.currentUrlBlocked=function(){var e,t=gf.info.currentUrl(),r=this.getConfig(cg)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(ab){return Ld.critical("Error while checking block URL regex: "+i,ab),!0}}if(!n)return!0}var o=this.getConfig(fg)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(ab){return Ld.critical("Error while checking block URL regex: "+o[e],ab),!0}return!1},Rg.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(sg)?this.getConfig(wg):this.mp.get_config("track_pageview")},Rg.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===Og&&!this.getConfig(yg)||t===Ag&&!this._getClickTrackingConfig(kg)||t===Tg&&!this._getClickTrackingConfig(bg)),n=qd(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(ug),blockAttrs:this.getConfig(lg),blockElementCallback:this.getConfig(hg),blockSelectors:this.getConfig(pg),captureExtraAttrs:this.getConfig(dg),captureTextContent:this.getConfig(gg),capturedForHeatMap:r});n&&(gf.extend(n,Ig),this.mp.track(t,n))}},Rg.prototype.initPageListeners=function(){if(ar.removeEventListener(Sd,this.listenerPopstate),ar.removeEventListener(_d,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(xg)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){ar.dispatchEvent(new Event(kd))},this.listenerHashchange=function(){ar.dispatchEvent(new Event(kd))},ar.addEventListener(Sd,this.listenerPopstate),ar.addEventListener(_d,this.listenerHashchange);var e=ar.history.pushState;"function"==typeof e&&(ar.history.pushState=function(t,r,n){e.call(ar.history,t,r,n),ar.dispatchEvent(new Event(kd))});var t=ar.history.replaceState;"function"==typeof t&&(ar.history.replaceState=function(e,r,n){t.call(ar.history,e,r,n),ar.dispatchEvent(new Event(kd))})}},Rg.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Rg.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(xg)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(of.documentElement.clientHeight,ar.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=gf.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||gf.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(of.documentElement.clientWidth,ar.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Ig);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},Rg.prototype._initScrollDepthTracking=function(){if(ar.removeEventListener(Cd,this.listenerScrollDepth),ar.removeEventListener(xd,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Ld.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(of.documentElement.clientHeight,ar.innerHeight||0);var e=Kd(function(){if(!this.currentUrlBlocked()){var e=Math.max(of.documentElement.clientHeight,ar.innerHeight||0)+ar.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=of.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,ar.addEventListener(e.eventType,this.listenerScrollDepth)}},Rg.prototype.initClickTracking=function(){ar.removeEventListener(bd,this.listenerClick),(this.getConfig(yg)||this.mp.get_config("record_heatmap_data"))&&(Ld.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(yg)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Og)}.bind(this),ar.addEventListener(bd,this.listenerClick))},Rg.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(bg)||this.mp.get_config("record_heatmap_data")?(Ld.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new og(function(e){this.trackDomEvent(e,Tg)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(bg);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),ar.addEventListener(bd,this.listenerDeadClick))):this.stopDeadClickTracking()},Rg.prototype.initInputTracking=function(){ar.removeEventListener(yd,this.listenerChange),this.getConfig(_g)&&(Ld.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(_g)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),ar.addEventListener(yd,this.listenerChange))},Rg.prototype.initPageviewTracking=function(){if(ar.removeEventListener(kd,this.listenerLocationchange),this.pageviewTrackingConfig()){Ld.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Ig)),t&&(e=gf.info.currentUrl()),this.listenerLocationchange=bf(function(){if(!this.currentUrlBlocked()){var t=gf.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===ag?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(Ig)&&(e=t),n&&(this.lastScrollCheckpoint=0,Ld.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),ar.addEventListener(kd,this.listenerLocationchange)}},Rg.prototype.initRageClickTracking=function(){ar.removeEventListener(bd,this.listenerRageClick),(this._getClickTrackingConfig(kg)||this.mp.get_config("record_heatmap_data"))&&(Ld.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Qd),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(kg);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e.pageX,e.pageY,t)&&this.trackDomEvent(e,Ag))}.bind(this),ar.addEventListener(bd,this.listenerRageClick))},Rg.prototype.initScrollTracking=function(){if(ar.removeEventListener(xd,this.listenerScroll),ar.removeEventListener(Cd,this.listenerScroll),this.getConfig(Sg)){Ld.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=Kd(function(){if(this.getConfig(Sg)&&!this.currentUrlBlocked()){var e=this.getConfig(mg),t=(this.getConfig(vg)||[]).slice().sort(function(e,t){return e-t}),r=ar.scrollY,n=gf.extend({$scroll_top:r},Ig);try{var i=of.body.scrollHeight,o=Math.round(r/(i-ar.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(ab){Ld.critical("Error while calculating scroll percentage",ab)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,ar.addEventListener(e.eventType,this.listenerScroll)}},Rg.prototype.initSubmitTracking=function(){ar.removeEventListener(Ed,this.listenerSubmit),this.getConfig(Cg)&&(Ld.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(Cg)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),ar.addEventListener(Ed,this.listenerSubmit))},Rg.prototype.initPageLeaveTracking=function(){if(of.removeEventListener(Id,this.listenerPageLeaveVisibilitychange),ar.removeEventListener(kd,this.listenerPageLeaveLocationchange),ar.removeEventListener(wd,this.listenerPageLoad),this.getConfig(xg)||this.mp.get_config("record_heatmap_data")){Ld.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=gf.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=of.body.scrollHeight}.bind(this),ar.addEventListener(wd,this.listenerPageLoad),this.listenerPageLeaveLocationchange=bf(function(t){if(!this.currentUrlBlocked()){var r=gf.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(of.documentElement.clientHeight,ar.innerHeight||0),this.previousScrollHeight=of.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),ar.addEventListener(kd,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){of.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),of.addEventListener(Id,this.listenerPageLeaveVisibilitychange)}},Rg.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(ar.removeEventListener(bd,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},_f(Rg);var Mg=yf("flags"),Fg="flags",Ng="context",Dg={};Dg[Ng]={};var Pg=function(e){this.fetch=ar.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};Pg.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):Mg.critical("Feature Flags unavailable: missing minimum required APIs")},Pg.prototype.getFullConfig=function(){var e=this.getMpConfig(Fg);return e?gf.isObject(e)?gf.extend({},Dg,e):Dg:{}},Pg.prototype.getConfig=function(e){return this.getFullConfig()[e]},Pg.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Fg)},Pg.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Mg.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Fg);gf.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Ng);return r[Ng]=gf.extend({},n,e),this.setMpConfig(Fg,r),this.fetchFlags()},Pg.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Mg.error("Feature Flags not enabled"),!!this.flags},Pg.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r="00-"+gf.UUID().replace(/-/g,"")+"-"+gf.UUID().replace(/-/g,"").substring(0,16)+"-01";Mg.log("Fetching flags for distinct ID: "+e);var n=gf.extend({distinct_id:e,device_id:t},this.getConfig(Ng)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",Gp.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(ar,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var n=new Map;gf.each(t,function(e,t){n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this.flags=n,this._traceparent=r}.bind(this)).catch(function(e){this.markFetchComplete(),Mg.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),Mg.error(e)}.bind(this)),this.fetchPromise},Pg.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Mg.error("Fetch in progress started time not set, cannot mark fetch complete")},Pg.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return Mg.error(e),t}):new Promise(function(e){Mg.critical("Feature Flags not initialized"),e(t)})},Pg.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return Mg.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Mg.log('No flag found: "'+e+'"'),t)},Pg.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return Mg.error(e),t})},Pg.prototype.getFeatureData=function(e,t){return Mg.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},Pg.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Pg.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return Mg.error(e),t})},Pg.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Mg.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Pg.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},Pg.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},_f(Pg),Pg.prototype.are_flags_ready=Pg.prototype.areFlagsReady,Pg.prototype.get_variant=Pg.prototype.getVariant,Pg.prototype.get_variant_sync=Pg.prototype.getVariantSync,Pg.prototype.get_variant_value=Pg.prototype.getVariantValue,Pg.prototype.get_variant_value_sync=Pg.prototype.getVariantValueSync,Pg.prototype.is_enabled=Pg.prototype.isEnabled,Pg.prototype.is_enabled_sync=Pg.prototype.isEnabledSync,Pg.prototype.update_context=Pg.prototype.updateContext,Pg.prototype.get_feature_data=Pg.prototype.getFeatureData;var Lg=function(){};Lg.prototype.create_properties=function(){},Lg.prototype.event_handler=function(){},Lg.prototype.after_track_handler=function(){},Lg.prototype.init=function(e){return this.mp=e,this},Lg.prototype.track=function(e,t,r,n){var i=this,o=gf.dom_query(e);if(0!==o.length)return gf.each(o,function(e){gf.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0;mf.error("The DOM query ("+e+") returned 0 elements")},Lg.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},Lg.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):gf.extend({},e)};var jg=function(){this.override_event="click"};gf.inherit(jg,Lg),jg.prototype.create_properties=function(e,t){var r=jg.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},jg.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},jg.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var $g=function(){this.override_event="submit"};gf.inherit($g,Lg),$g.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},$g.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Ug="$set",Bg="$set_once",qg="$unset",zg="$add",Vg="$append",Wg="$union",Hg="$remove",Gg={set_action:function(e,t){var r={},n={};return gf.isObject(e)?gf.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ug]=n,r},unset_action:function(e){var t={},r=[];return gf.isArray(e)||(e=[e]),gf.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[qg]=r,t},set_once_action:function(e,t){var r={},n={};return gf.isObject(e)?gf.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Bg]=n,r},union_action:function(e,t){var r={},n={};return gf.isObject(e)?gf.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=gf.isArray(e)?e:[e])},this):n[e]=gf.isArray(t)?t:[t],r[Wg]=n,r},append_action:function(e,t){var r={},n={};return gf.isObject(e)?gf.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Vg]=n,r},remove_action:function(e,t){var r={},n={};return gf.isObject(e)?gf.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Hg]=n,r},delete_action:function(){var e={$delete:""};return e}},Zg=function(){};gf.extend(Zg.prototype,Gg),Zg.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Zg.prototype.set=Gf(function(e,t,r){var n=this.set_action(e,t);return gf.isObject(e)&&(r=t),this._send_request(n,r)}),Zg.prototype.set_once=Gf(function(e,t,r){var n=this.set_once_action(e,t);return gf.isObject(e)&&(r=t),this._send_request(n,r)}),Zg.prototype.unset=Gf(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Zg.prototype.union=Gf(function(e,t,r){gf.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Zg.prototype.delete=Gf(function(e){var t=this.delete_action();return this._send_request(t,e)}),Zg.prototype.remove=Gf(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Zg.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=gf.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Zg.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Zg.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Zg.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Zg.prototype.remove=Zg.prototype.remove,Zg.prototype.set=Zg.prototype.set,Zg.prototype.set_once=Zg.prototype.set_once,Zg.prototype.union=Zg.prototype.union,Zg.prototype.unset=Zg.prototype.unset,Zg.prototype.toString=Zg.prototype.toString;var Yg=function(){};gf.extend(Yg.prototype,Gg),Yg.prototype._init=function(e){this._mixpanel=e},Yg.prototype.set=Hf(function(e,t,r){var n=this.set_action(e,t);return gf.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Ug]=gf.extend({},gf.info.people_properties(),n[Ug]),this._send_request(n,r)}),Yg.prototype.set_once=Hf(function(e,t,r){var n=this.set_once_action(e,t);return gf.isObject(e)&&(r=t),this._send_request(n,r)}),Yg.prototype.unset=Hf(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Yg.prototype.increment=Hf(function(e,t,r){var n={},i={};return gf.isObject(e)?(gf.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void mf.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(gf.isUndefined(t)&&(t=1),i[e]=t),n[zg]=i,this._send_request(n,r)}),Yg.prototype.append=Hf(function(e,t,r){gf.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Yg.prototype.remove=Hf(function(e,t,r){gf.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Yg.prototype.union=Hf(function(e,t,r){gf.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Yg.prototype.track_charge=Hf(function(){mf.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Yg.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Yg.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}mf.error("mixpanel.people.delete_user() requires you to call identify() first")},Yg.prototype.toString=function(){return this._mixpanel.toString()+".people"},Yg.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=gf.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),gf.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),gf.truncate(o,255))},Yg.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Yg.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Yg.prototype._enqueue=function(e){Ug in e?this._mixpanel.persistence._add_to_people_queue(Ug,e):Bg in e?this._mixpanel.persistence._add_to_people_queue(Bg,e):qg in e?this._mixpanel.persistence._add_to_people_queue(qg,e):zg in e?this._mixpanel.persistence._add_to_people_queue(zg,e):Vg in e?this._mixpanel.persistence._add_to_people_queue(Vg,e):Hg in e?this._mixpanel.persistence._add_to_people_queue(Hg,e):Wg in e?this._mixpanel.persistence._add_to_people_queue(Wg,e):mf.error("Invalid call to _enqueue():",e)},Yg.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=gf.extend({},this._mixpanel.persistence.load_queue(e)),s=o;gf.isUndefined(o)||!gf.isObject(o)||gf.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),gf.isUndefined(r)||r(t,n)}))},Yg.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Ug,this.set,e),this._flush_one_queue(Bg,this.set_once,n),this._flush_one_queue(qg,this.unset,o,function(e){return gf.keys(e)}),this._flush_one_queue(zg,this.increment,t),this._flush_one_queue(Wg,this.union,i);var u=this._mixpanel.persistence.load_queue(Vg);if(!gf.isUndefined(u)&&gf.isArray(u)&&u.length)for(var c,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Vg,c),gf.isUndefined(r)||r(e,t)},h=u.length-1;h>=0;h--)u=this._mixpanel.persistence.load_queue(Vg),c=u.pop(),a._mixpanel.persistence.save(),gf.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(Hg);if(!gf.isUndefined(p)&&gf.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Hg,f),gf.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Hg),f=p.pop(),a._mixpanel.persistence.save(),gf.isEmptyObject(f)||a.remove(f,d)},Yg.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Yg.prototype.set=Yg.prototype.set,Yg.prototype.set_once=Yg.prototype.set_once,Yg.prototype.unset=Yg.prototype.unset,Yg.prototype.increment=Yg.prototype.increment,Yg.prototype.append=Yg.prototype.append,Yg.prototype.remove=Yg.prototype.remove,Yg.prototype.union=Yg.prototype.union,Yg.prototype.track_charge=Yg.prototype.track_charge,Yg.prototype.clear_charges=Yg.prototype.clear_charges,Yg.prototype.delete_user=Yg.prototype.delete_user,Yg.prototype.toString=Yg.prototype.toString;var Jg,Kg="__mps",Xg="__mpso",Qg="__mpus",em="__mpa",tm="__mpap",rm="__mpr",nm="__mpu",im="$people_distinct_id",om="__alias",sm="__timers",am=[Kg,Xg,Qg,em,tm,rm,nm,im,om,sm],um=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(mf.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&gf.localStorage.is_supported()?this.storage=gf.localStorage:this.storage=gf.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};um.prototype.properties=function(){var e={};return this.load(),gf.each(this.props,function(t,r){gf.include(am,r)||(e[r]=t)}),e},um.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=gf.extend({},e))}},um.prototype.upgrade=function(){var e,t;this.storage===gf.localStorage?(e=gf.cookie.parse(this.name),gf.cookie.remove(this.name),gf.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===gf.cookie&&(t=gf.localStorage.parse(this.name),gf.localStorage.remove(this.name),t&&this.register_once(t))},um.prototype.save=function(){this.disabled||this.storage.set(this.name,Df(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},um.prototype.load_prop=function(e){return this.load(),this.props[e]},um.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},um.prototype.clear=function(){this.remove(),this.props={}},um.prototype.register_once=function(e,t,r){return!!gf.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),gf.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},um.prototype.register=function(e,t){return!!gf.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),gf.extend(this.props,e),this.save(),!0)},um.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},um.prototype.update_search_keyword=function(e){this.register(gf.info.searchInfo(e))},um.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:gf.info.referringDomain(e)||"$direct"},"")},um.prototype.get_referrer_info=function(){return gf.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},um.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},um.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},um.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},um.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},um.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},um.prototype.get_cross_subdomain=function(){return this.cross_subdomain},um.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},um.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Ug),o=this._get_or_create_queue(Bg),s=this._get_or_create_queue(qg),a=this._get_or_create_queue(zg),u=this._get_or_create_queue(Wg),c=this._get_or_create_queue(Hg,[]),l=this._get_or_create_queue(Vg,[]);r===Kg?(gf.extend(i,n),this._pop_from_people_queue(zg,n),this._pop_from_people_queue(Wg,n),this._pop_from_people_queue(qg,n)):r===Xg?(gf.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(qg,n)):r===Qg?gf.each(n,function(e){gf.each([i,o,a,u],function(t){e in t&&delete t[e]}),gf.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===em?(gf.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(qg,n)):r===nm?(gf.each(n,function(e,t){gf.isArray(e)&&(t in u||(u[t]=[]),gf.each(e,function(e){gf.include(u[t],e)||u[t].push(e)}))}),this._pop_from_people_queue(qg,n)):r===rm?(c.push(n),this._pop_from_people_queue(Vg,n)):r===tm&&(l.push(n),this._pop_from_people_queue(qg,n)),mf.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),mf.log(t),this.save()},um.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];gf.isUndefined(r)||gf.each(t,function(t,n){e===Vg||e===Hg?gf.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},um.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},um.prototype._get_queue_key=function(e){return e===Ug?Kg:e===Bg?Xg:e===qg?Qg:e===zg?em:e===Vg?tm:e===Hg?rm:e===Wg?nm:void mf.error("Invalid queue:",e)},um.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=gf.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},um.prototype.set_event_timer=function(e,t){var r=this.load_prop(sm)||{};r[e]=t,this.props[sm]=r,this.save()},um.prototype.remove_event_timer=function(e){var t=(this.load_prop(sm)||{})[e];return gf.isUndefined(t)||(delete this.props[sm][e],this.save()),t};var cm,lm=function(e,t){throw new Error(e+" not available in this build.")},hm=function(e){return e},pm="mixpanel",fm="base64",dm="$device:",gm=ar.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,mm=!gm&&-1===uf.indexOf("MSIE")&&-1===uf.indexOf("Mozilla"),vm=null;nf.sendBeacon&&(vm=function(){return nf.sendBeacon.apply(nf,arguments)});var ym={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},bm={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:ym,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:fm,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Nf,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Nf,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Zp,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},_m=!1,wm=function(){},km=function(e,t,r){var n,i=r===pm?cm:cm[r];if(i&&0===Jg)n=i;else{if(i&&!gf.isArray(i))return void mf.error("You have already initialized "+r);n=new wm}if(n._cached_groups={},n._init(e,t,r),n.people=new Yg,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=gf.info.campaignParams(null),s={},a=!1;gf.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}return Gp.DEBUG=Gp.DEBUG||n.get_config("debug"),!gf.isUndefined(i)&&gf.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};wm.prototype.init=function(e,t,r){if(gf.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==pm){var n=km(e,t,r);return cm[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},wm.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||bm.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(gf.extend({},bm,n,t,{name:r,token:e,callback_fn:(r===pm?r:pm+"."+r)+"._jsc"})),this._jsc=Nf,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(gf.localStorage.is_supported(!0)&&gm){if(this.init_batchers(),vm&&ar.addEventListener){var i=gf.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);ar.addEventListener("pagehide",function(e){e.persisted&&i()}),ar.addEventListener("visibilitychange",function(){"hidden"===of.visibilityState&&i()})}}else this._batch_requests=!1,mf.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),gf.each(this.get_batcher_configs(),function(e){mf.log("Clearing batch queue "+e.queue_key),gf.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new um(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=gf.UUID();this.get_distinct_id()||this.register_once({distinct_id:dm+o,$device_id:o},""),this.flags=new Pg({getFullApiRoute:gf.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:gf.bind(this.get_config,this),setConfigFunc:gf.bind(this.set_config,this),getPropertyFunc:gf.bind(this.get_property,this),trackingFunc:gf.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Rg(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},wm.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))mf.log("Tab ID initialization skipped due to disable_persistence config");else if(gf.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!gf.sessionStorage.get(r)&&gf.sessionStorage.get(t)||gf.sessionStorage.set(t,"$tab-"+gf.UUID()),gf.sessionStorage.set(r,"1"),this.tab_id=gf.sessionStorage.get(t),ar.addEventListener("beforeunload",function(){gf.sessionStorage.remove(r)})}catch(ab){this.report_error("Error initializing tab id",ab)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},wm.prototype.get_tab_id=function(){return this.tab_id||null},wm.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return mf.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Uf(jf),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(cd(e[r])||e[r].tabId===t)return!0;return!1}).catch(gf.bind(function(e){this.report_error("Error checking recording registry",e)},this))},wm.prototype._check_and_start_session_recording=Wf(function(e){if(ar.MutationObserver){var t=gf.bind(function(e){var t=gf.bind(function(){this._recorder=this._recorder||new ar.__mp_recorder(this),this._recorder.resumeRecording(e)},this);gf.isUndefined(ar.__mp_recorder)?lm(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else mf.critical("Browser does not support MutationObserver; skipping session recording")}),wm.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},wm.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},wm.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},wm.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},wm.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},wm.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},wm.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+gf.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},wm.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},wm.prototype.__get_recorder=function(){return this._recorder},wm.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=gf.info.campaignParams(null);gf.each(e,function(e,t){this.unregister(t)}.bind(this))}},wm.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(of.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(gf.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(of.referrer)},wm.prototype._dom_loaded=function(){gf.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||gf.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},wm.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!_m)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},wm.prototype._prepare_callback=function(e,t){if(gf.isUndefined(e))return null;if(gm){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},wm.prototype._send_request=function(e,t,r,n){var i=!0;if(mm)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!gf.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=gf.extend(o,r||{}),gm||(r.method="GET");var a="POST"===r.method,u=vm&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),gm||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),gf.extend(t,this.get_config("api_extra_query_params")),e+="?"+gf.HTTPBuildQuery(t);var l=this;if("img"in t){var h=of.createElement("img");h.src=e,of.body.appendChild(h)}else if(u){try{i=vm(e,s)}catch($m){l.report_error($m),i=!1}try{n&&n(i?1:0)}catch($m){l.report_error($m)}}else if(gm)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),gf.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState)if(200===p.status){if(n)if(c){var e;try{e=gf.JSONDecode(p.responseText)}catch($m){if(l.report_error($m),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else{var t;if(t=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(c){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch($m){l.report_error($m),i=!1}else{var g=of.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=of.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},wm.prototype._execute_array=function(e){var t,r=[],n=[],i=[];gf.each(e,function(e){e&&(t=e[0],gf.isArray(t)?i.push(e):"function"==typeof e?e.call(this):gf.isArray(e)&&"alias"===t?r.push(e):gf.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){gf.each(e,function(e){if(gf.isArray(e[0])){var r=t;gf.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},wm.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},wm.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},wm.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=gf.bind(function(e){return new ud(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:gf.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:gf.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:gf.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},wm.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,gf.each(this.request_batchers,function(e){e.start()}))},wm.prototype.stop_batch_senders=function(){this._batch_requests=!1,gf.each(this.request_batchers,function(e){e.stop(),e.clear()})},wm.prototype.push=function(e){this._execute_array([e])},wm.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},wm.prototype._encode_data_for_request=function(e){var t=Df(e);return this.get_config("api_payload_format")===fm&&(t=gf.base64Encode(t)),{data:t}},wm.prototype._track_or_batch=function(e,t){var r=gf.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Nf;var a=!0,u=gf.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(mf.log("MIXPANEL REQUEST:"),mf.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):u()}):a=u(),a&&r},wm.prototype.track=Wf(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=Nf),gf.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=gf.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!gf.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?gf.info.marketingParams():{};t=gf.extend({},gf.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");gf.isArray(c)?gf.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}n(0)}}),wm.prototype.set_group=Wf(function(e,t,r){gf.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),wm.prototype.add_group=Wf(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),wm.prototype.remove_group=Wf(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),wm.prototype.track_with_groups=Wf(function(e,t,r,n){var i=gf.extend({},t||{});return gf.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),wm.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},wm.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},wm.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Zg)._init(this,e,t),this._cached_groups[r]=n),n},wm.prototype.track_pageview=Wf(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=gf.extend(gf.info.mpPageViewProperties(),gf.info.campaignParams(),gf.info.clickParams()),i=gf.extend({},n,e);return this.track(r,i)}),wm.prototype.track_links=function(){return this._track_dom.call(this,jg,arguments)},wm.prototype.track_forms=function(){return this._track_dom.call(this,$g,arguments)},wm.prototype.time_event=function(e){gf.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Sm={persistent:!0},xm=function(e){var t;return t=gf.isObject(e)?e:gf.isUndefined(e)?{}:{days:e},gf.extend({},Sm,t)};wm.prototype.register=function(e,t){var r=xm(t);r.persistent?this.persistence.register(e,r.days):gf.extend(this.unpersisted_superprops,e)},wm.prototype.register_once=function(e,t,r){var n=xm(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),gf.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},wm.prototype.unregister=function(e,t){(t=xm(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},wm.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},wm.prototype.identify=function(e,t,r,n,i,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(dm))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(om)&&(this.unregister(om),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},wm.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=gf.UUID();this.register_once({distinct_id:dm+e,$device_id:e},""),this._check_and_start_session_recording()},wm.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},wm.prototype.alias=function(e,t){if(e===this.get_property(im))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return gf.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(om,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},wm.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},wm.prototype.set_config=function(e){gf.isObject(e)&&(gf.extend(this.config,e),e.batch_size&&gf.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Gp.DEBUG=Gp.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},wm.prototype.get_config=function(e){return this.config[e]},wm.prototype._run_hook=function(e){var t=(this.config.hooks[e]||hm).apply(this,Qp.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},wm.prototype.get_property=function(e){return this.persistence.load_prop([e])},wm.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},wm.prototype.toString=function(){var e=this.get_config("name");return e!==pm&&(e=pm+"."+e),e},wm.prototype._event_is_disabled=function(e){return gf.isBlockedUA(uf)||this._flags.disable_all_events||gf.include(this.__disabled_events,e)},wm.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&gf.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!gf.cookie.get("mp_optout")||(gf.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},wm.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},wm.prototype._gdpr_call_func=function(e,t){return t=gf.extend({track:gf.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),gf.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},wm.prototype.opt_in_tracking=function(e){e=gf.extend({enable_persistence:!0},e),this._gdpr_call_func(Bf,e),this._gdpr_update_persistence(e)},wm.prototype.opt_out_tracking=function(e){(e=gf.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(qf,e),this._gdpr_update_persistence(e)},wm.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(zf,e)},wm.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Vf,e)},wm.prototype.clear_opt_in_out_tracking=function(e){e=gf.extend({enable_persistence:!0},e),this._gdpr_call_func(Zf,e),this._gdpr_update_persistence(e)},wm.prototype.report_error=function(e,t){mf.error.apply(mf.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){mf.error(t)}},wm.prototype.init=wm.prototype.init,wm.prototype.reset=wm.prototype.reset,wm.prototype.disable=wm.prototype.disable,wm.prototype.time_event=wm.prototype.time_event,wm.prototype.track=wm.prototype.track,wm.prototype.track_links=wm.prototype.track_links,wm.prototype.track_forms=wm.prototype.track_forms,wm.prototype.track_pageview=wm.prototype.track_pageview,wm.prototype.register=wm.prototype.register,wm.prototype.register_once=wm.prototype.register_once,wm.prototype.unregister=wm.prototype.unregister,wm.prototype.identify=wm.prototype.identify,wm.prototype.alias=wm.prototype.alias,wm.prototype.name_tag=wm.prototype.name_tag,wm.prototype.set_config=wm.prototype.set_config,wm.prototype.get_config=wm.prototype.get_config,wm.prototype.get_api_host=wm.prototype.get_api_host,wm.prototype.get_property=wm.prototype.get_property,wm.prototype.get_distinct_id=wm.prototype.get_distinct_id,wm.prototype.toString=wm.prototype.toString,wm.prototype.opt_out_tracking=wm.prototype.opt_out_tracking,wm.prototype.opt_in_tracking=wm.prototype.opt_in_tracking,wm.prototype.has_opted_out_tracking=wm.prototype.has_opted_out_tracking,wm.prototype.has_opted_in_tracking=wm.prototype.has_opted_in_tracking,wm.prototype.clear_opt_in_out_tracking=wm.prototype.clear_opt_in_out_tracking,wm.prototype.get_group=wm.prototype.get_group,wm.prototype.set_group=wm.prototype.set_group,wm.prototype.add_group=wm.prototype.add_group,wm.prototype.remove_group=wm.prototype.remove_group,wm.prototype.track_with_groups=wm.prototype.track_with_groups,wm.prototype.start_batch_senders=wm.prototype.start_batch_senders,wm.prototype.stop_batch_senders=wm.prototype.stop_batch_senders,wm.prototype.start_session_recording=wm.prototype.start_session_recording,wm.prototype.stop_session_recording=wm.prototype.stop_session_recording,wm.prototype.pause_session_recording=wm.prototype.pause_session_recording,wm.prototype.resume_session_recording=wm.prototype.resume_session_recording,wm.prototype.get_session_recording_properties=wm.prototype.get_session_recording_properties,wm.prototype.get_session_replay_url=wm.prototype.get_session_replay_url,wm.prototype.get_tab_id=wm.prototype.get_tab_id,wm.prototype.DEFAULT_API_ROUTES=ym,wm.prototype.__get_recorder=wm.prototype.__get_recorder,um.prototype.properties=um.prototype.properties,um.prototype.update_search_keyword=um.prototype.update_search_keyword,um.prototype.update_referrer_info=um.prototype.update_referrer_info,um.prototype.get_cross_subdomain=um.prototype.get_cross_subdomain,um.prototype.clear=um.prototype.clear;var Cm={},Em=function(){cm.init=function(e,t,r){if(r)return cm[r]||(cm[r]=Cm[r]=km(e,t,r),cm[r]._loaded()),cm[r];var n=cm;Cm[pm]?n=Cm[pm]:e&&((n=km(e,t,pm))._loaded(),Cm[pm]=n),cm=n,1===Jg&&(ar[pm]=cm),gf.each(Cm,function(e,t){t!==pm&&(cm[t]=e)}),cm._=gf}};var Im=(lm=function(e,t){t()},Jg=0,cm=new wm,Em(),cm.init(),function(){function e(){e.done||(e.done=!0,_m=!0,mm=!1,gf.each(Cm,function(e){e._dom_loaded()}))}if(of.addEventListener)"complete"===of.readyState?e():of.addEventListener("DOMContentLoaded",e,!1);else if(of.attachEvent){of.attachEvent("onreadystatechange",e);var t=!1;try{t=null===ar.frameElement}catch($m){}of.documentElement.doScroll&&t&&function t(){try{of.documentElement.doScroll("left")}catch($m){return void setTimeout(t,1)}e()}()}gf.register_event(ar,"load",e,!0)}(),cm),Om=[];for(let ub=0;ub<256;++ub)Om.push((ub+256).toString(16).slice(1));var Tm=new Uint8Array(16);function Am(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){e=e||{};const n=e.random??e.rng?.()??crypto.getRandomValues(Tm);if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(Om[e[t+0]]+Om[e[t+1]]+Om[e[t+2]]+Om[e[t+3]]+"-"+Om[e[t+4]]+Om[e[t+5]]+"-"+Om[e[t+6]]+Om[e[t+7]]+"-"+Om[e[t+8]]+Om[e[t+9]]+"-"+Om[e[t+10]]+Om[e[t+11]]+Om[e[t+12]]+Om[e[t+13]]+Om[e[t+14]]+Om[e[t+15]]).toLowerCase()}(n)}(e,t,r):crypto.randomUUID()}function Rm(){return Am()}function Mm(){const e=new c;let t=e.getItem("localLogicDevice");return t||(t=function(){let e;try{e=`$device:${Rm()}`}catch(t){e=`$device:default-${Date.now()}-${Math.random().toString(36).substring(2,15)}`}return e}(),e.setItem("localLogicDevice",t)),t}function Fm(){const e=(new Date).toISOString();let t;try{t=`$session:${Rm()}`}catch(r){t=`$session:default-${Date.now()}-${Math.random().toString(36).substring(2,15)}`}return{sessionId:t,startTime:e,endTime:e}}function Nm(){const e=new c,t=new Date,r=e.getItem("localLogicSession");let n;return r?(n=JSON.parse(r),n.endTime&&t.getTime()-new Date(n.endTime).getTime()>=18e5?n=Fm():n.endTime=t.toISOString()):n=Fm(),e.setItem("localLogicSession",JSON.stringify(n)),n.sessionId}var Dm=z.createContext({}),Pm=()=>(0,z.useContext)(Dm);function Lm(e){try{Im.init(e,{track_pageview:!1,persistence:"localStorage"})}catch(t){}}var jm=({children:e,trackingPipelineSettings:t,analyticsSettings:r,attributes:n={},meta:i,flags:o})=>{const s=new Yt(t?.apiKey??"");const[a]=(0,z.useState)({ll_product_name:i.productName,ll_product_version:i.productVersion,ll_client_id:i.clientId,ll_locale:n.locale,ll_location_lat:n.location?.lat,ll_location_lng:n.location?.lng});return(0,me.jsx)(Dm.Provider,{value:{postEvent:({eventType:e,eventAttributes:t})=>{const r={event_type:e,event_version:"1.0.0",meta:{product_version:i.productVersion||"not_defined",product_name:i.productName||"",client_id:i.clientId,device_id:Mm(),session_id:Nm()},attributes:{event_attributes:t,...n}};o?.isDebugMode?console.info("Tracking event:",r):s.postEvent(r)},trackAnalyticsEvent:({eventName:e,eventAttributes:t={}})=>{if(void 0!==r&&"mixpanel"===r.tracker&&(r.printDebugMode&&console.info("Mixpanel Debug:",{event:e,projectToken:r.key,properties:{...t,...a}}),!r.isDebugMode))try{Im.track(e,{...t,...a})}catch(n){}}},children:e})},$m=Object.create,Um=Object.defineProperty,Bm=Object.getOwnPropertyDescriptor,qm=Object.getOwnPropertyNames,zm=Object.getPrototypeOf,Vm=Object.prototype.hasOwnProperty,Wm=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Hm=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=qm(t),s=0,a=o.length;s<a;s++)i=o[s],!Vm.call(e,i)&&i!==r&&Um(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=Bm(t,i))||n.enumerable});return e},Gm=(e,t,r)=>(r=null==e?{}:$m(zm(e)),Hm(!t&&e&&e.__esModule?r:Um(r,"default",{value:e,enumerable:!0}),e)),Zm={dev:"https://api-dev.locallogic.co/v3",qa:"https://api-qa.locallogic.co/v3",prod:"https://api.locallogic.co/v3"},Ym="/geographies",Jm=Wm((e,t)=>{function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new r(512),c=new r(512),l=new r(512);function h(e){return u.get(e)||u.set(e,p(e).map(function(e){return e.replace(a,"$2")}))}function p(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}t.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=h(e);return l.get(e)||l.set(e,function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||i.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),s=f(n),o=!s&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}}),Km=Wm((e,t)=>{var r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(r)||[],i=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),s=e=>n(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");t.exports={words:n,upperFirst:i,camelCase:s,pascalCase:e=>i(s(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>i(o(e," ")),titleCase:e=>n(e).map(i).join(" ")}}),Xm=Wm((e,t)=>{function r(e,t){var r=e.length,n=Array(r),i={},o=r,s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!a.has(e[0])||!a.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||u(e[o],o,new Set);return n;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch{c=""}throw Error("Cyclic dependency"+c)}if(!a.has(e))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=s.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var h=l[--t];u(h,a.get(h),o)}while(t);o.delete(e)}n[--r]=e}}}t.exports=function(e){return r(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},t.exports.array=r}),Qm=Jm(),ev=Km(),tv=Gm(Xm()),rv=Object.prototype.toString,nv=Error.prototype.toString,iv=RegExp.prototype.toString,ov=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",sv=/^Symbol\((.*)\)(.*)$/;function av(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return function(e){return e==+e?0===e&&1/e<0?"-0":""+e:"NaN"}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return ov.call(e).replace(sv,"Symbol($1)");let n=rv.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+nv.call(e)+"]":"RegExp"===n?iv.call(e):null}function uv(e,t){let r=av(e,t);return null===r?JSON.stringify(e,function(e,r){let n=av(this[e],t);return null===n?r:n},2):r}function cv(e){return null==e?[]:[].concat(e)}var lv,hv,pv,fv=/\$\{\s*(\w+)\s*\}/g;lv=Symbol.toStringTag;var dv=class{constructor(e,t,r,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[lv]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],cv(e).forEach(e=>{if(gv.isError(e)){this.errors.push(...e.errors);let t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}};hv=Symbol.hasInstance,pv=Symbol.toStringTag;var gv=class e extends Error{static formatError(e,t){let r=t.label||t.path||"this";return t=Object.assign({},t,{path:r,originalPath:t.path}),"string"==typeof e?e.replace(fv,(e,r)=>uv(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(t,r,n,i,o){let s=new dv(t,r,n,i);if(o)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[pv]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,e)}static[hv](e){return dv[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}},mv={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r?` (cast from the value \`${uv(n,!0)}\`).`:".";return"mixed"===t?`${e} must match the configured type. The validated value was: \`${uv(r,!0)}\``+i:`${e} must be a \`${t}\` type, but the final value was: \`${uv(r,!0)}\``+i}},vv={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},yv={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},bv={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},_v={isValue:"${path} field must be ${value}"},wv={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},kv={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Sv={notType:e=>{let{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${uv(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${uv(r,!0)}\``}return gv.formatError(mv.notType,e)}};Object.assign(Object.create(null),{mixed:mv,string:vv,number:yv,date:bv,object:wv,array:kv,boolean:_v,tuple:Sv});var xv=e=>e&&e.__isYupSchema__,Cv=class e{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:o}=r,s="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new e(t,(e,t)=>(s(...e)?i:o)?.(t)??t)}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(t?.value,t?.parent,t?.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!xv(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}},Ev="$",Iv=".",Ov=class{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ev,this.isValue=this.key[0]===Iv,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Ev:this.isValue?Iv:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Qm.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,t?.parent,t?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};Ov.prototype.__isYupRef=!0;var Tv=e=>null==e;function Av(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},s,a){let{name:u,test:c,params:l,message:h,skipAbsent:p}=e,{parent:f,context:d,abortEarly:g=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=n,v={value:t,parent:f,context:d};function y(e={}){let n=Rv(Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||m},l,e.params),v),s=new gv(gv.formatError(e.message||h,n),t,n.path,e.type||u,n.disableStackTrace);return s.params=n,s}let b,_=g?s:a,w={path:r,parent:f,type:u,from:n.from,createError:y,resolve:e=>Mv(e,v),options:n,originalValue:i,schema:o},k=e=>{gv.isError(e)?_(e):e?a(null):_(y())},S=e=>{gv.isError(e)?_(e):s(e)};if(p&&Tv(t))return k(!0);try{if(b=c.call(w,t,w),"function"==typeof b?.then){if(n.sync)throw Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(b).then(k,S)}}catch(e){return void S(e)}k(b)}return t.OPTIONS=e,t}function Rv(e,t){if(!e)return e;for(let r of Object.keys(e))e[r]=Mv(e[r],t);return e}function Mv(e,t){return Ov.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function Fv(e,t,r,n=r){let i,o,s;return t?((0,Qm.forEach)(t,(a,u,c)=>{let l=u?a.slice(1,a.length-1):a,h="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||h){if(h&&!c)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&p>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r&&(r=r[p]),e=h?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r&&(r=r[l]),e=e.fields[l]}o=l,s=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}var Nv=class e extends Set{describe(){let e=[];for(let t of this.values())e.push(Ov.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new e(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}};function Dv(e,t=new Map){if(xv(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Dv(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(let[n,i]of e.entries())r.set(n,Dv(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(let n of e)r.add(Dv(n,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);r={},t.set(e,r);for(let[n,i]of Object.entries(e))r[n]=Dv(i,t)}return r}function Pv(e){if(null==e||!e.length)return;let t=[],r="",n=!1,i=!1;for(let o=0;o<e.length;o++){let s=e[o];"["!==s||i?"]"!==s||i?'"'!==s?"."!==s||n||i?r+=s:r&&(t.push(r),r=""):i=!i:(r&&(/^\d+$/.test(r)?t.push(r):t.push(r.replace(/^"|"$/g,"")),r=""),n=!1):(r&&(t.push(...r.split(".").filter(Boolean)),r=""),n=!0)}return r&&t.push(...r.split(".").filter(Boolean)),t}function Lv(e,t){var r;if((null==(r=e.inner)||!r.length)&&e.errors.length)return function(e,t){let r=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:Pv(r)}))}(e,t);let n=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Lv(e,n))}var jv=class{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Nv,this._blacklist=new Nv,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(mv.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e?.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Dv(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();return r.spec=Object.assign({},t.spec,r.spec),r.internalTests=Object.assign({},t.internalTests,r.internalTests),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return null==e?!!(this.spec.nullable&&null===e||this.spec.optional&&void 0===e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((t,r)=>r.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){return Object.assign({},e,{from:e.from||[],strict:e.strict??this.spec.strict,abortEarly:e.abortEarly??this.spec.abortEarly,recursive:e.recursive??this.spec.recursive,disableStackTrace:e.disableStackTrace??this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&Tv(i))return i;let o=uv(e),s=uv(i);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". \n\nattempted value: ${o} \n`+(s===o?"":`result of cast: ${s}`))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:u},r,e=>{if(e.length)return n(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:s,path:a,options:u}=e,c=e=>{n||(n=!0,t(e,o))},l=e=>{n||(n=!0,r(e,o))},h=i.length,p=[];if(!h)return l([]);let f={value:o,originalValue:s,path:a,options:u,schema:this};for(let d=0;d<i.length;d++){(0,i[d])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--h<=0&&l(p)})}}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){let s=e??t;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");let a="number"==typeof s,u=r[s],c=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:i[s],key:void 0,[a?"index":"key"]:s,path:a||s.includes(".")?`${n||""}[${a?s:`"${s}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(c)._validate(u,c,t,r)}validate(e,t){let r=this.resolve(Object.assign({},t,{value:e})),n=t?.disableStackTrace??r.spec.disableStackTrace;return new Promise((i,o)=>r._validate(e,t,(e,t)=>{gv.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new gv(e,t,void 0,void 0,n)):i(t)}))}validateSync(e,t){let r,n=this.resolve(Object.assign({},t,{value:e})),i=t?.disableStackTrace??n.spec.disableStackTrace;return n._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw gv.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new gv(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(gv.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(gv.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):Dv(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=Av({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=Av({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=mv.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=mv.notNull){return this.nullability(!1,e)}required(e=mv.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=mv.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=Av(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>!(e.OPTIONS.name===t.name&&(i||e.OPTIONS.test===n.OPTIONS.test))),r.tests.push(n),r}when(e,t){!Array.isArray(e)&&"string"!=typeof e&&(t=e,e=".");let r=this.clone(),n=cv(e).map(e=>new Ov(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new Cv(n,t):Cv.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=Av({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=mv.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=Av({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=mv.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=Av({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){let t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,r)=>r.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{let r=t.OPTIONS.params&&e?Rv(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:r}})}}get"~standard"(){let e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof gv)return{issues:Lv(e)};throw e}}}}};jv.prototype.__isYupSchema__=!0;for(let ub of["validate","validateSync"])jv.prototype[`${ub}At`]=function(e,t,r={}){let{parent:n,parentPath:i,schema:o}=Fv(this,e,t,r.context);return o[ub](n&&n[i],Object.assign({},r,{parent:n,path:e}))};for(let ub of["equals","is"])jv.prototype[ub]=jv.prototype.oneOf;for(let ub of["not","nope"])jv.prototype[ub]=jv.prototype.notOneOf;var $v=()=>!0;var Uv=class extends jv{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:$v},e))}};function Bv(){return new qv}Uv.prototype;var qv=class extends jv{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=_v.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Tv(e)||!0===e})}isFalse(e=_v.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Tv(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};Bv.prototype=qv.prototype;var zv=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Vv(e){let t=zv.exec(e);return t?{year:Wv(t[1]),month:Wv(t[2],1)-1,day:Wv(t[3],1),hour:Wv(t[4]),minute:Wv(t[5]),second:Wv(t[6]),millisecond:t[7]?Wv(t[7].substring(0,3)):0,precision:t[7]?.length??void 0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Wv(t[10]),minuteOffset:Wv(t[11])}:null}function Wv(e,t=0){return Number(e)||t}var Hv=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Gv=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Zv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Yv=RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Jv=e=>Tv(e)||e===e.trim(),Kv={}.toString();function Xv(){return new Qv}var Qv=class extends jv{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;let n=null!=e&&e.toString?e.toString():e;return n===Kv?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||mv.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=vv.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=vv.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=vv.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||vv.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=vv.email){return this.matches(Hv,{name:"email",message:e,excludeEmptyString:!0})}url(e=vv.url){return this.matches(Gv,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=vv.uuid){return this.matches(Zv,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?({message:n="",allowOffset:t=!1,precision:r}=e):n=e),this.matches(Yv,{name:"datetime",message:n||vv.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||vv.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;let r=Vv(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||vv.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||null==r)return!0;let t=Vv(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=vv.trim){return this.transform(e=>null==e?e:e.trim()).test({message:e,name:"trim",test:Jv})}lowercase(e=vv.lowercase){return this.transform(e=>Tv(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Tv(e)||e===e.toLowerCase()})}uppercase(e=vv.uppercase){return this.transform(e=>Tv(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Tv(e)||e===e.toUpperCase()})}};Xv.prototype=Qv.prototype;function ey(){return new ty}var ty=class extends jv{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!(e=>e!=+e)(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(n=n.replace(/\s/g,""),""===n)return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=yv.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=yv.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=yv.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=yv.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=yv.positive){return this.moreThan(0,e)}negative(e=yv.negative){return this.lessThan(0,e)}integer(e=yv.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>Tv(e)?e:0|e)}round(e){let t=["ceil","floor","round","trunc"];if("trunc"===(e=e?.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+t.join(", "));return this.transform(t=>Tv(t)?t:Math[e](t))}};ey.prototype=ty.prototype;var ry=new Date("");function ny(){return new iy}var iy=class e extends jv{constructor(){super({type:"date",check:e=>(e=>"[object Date]"===Object.prototype.toString.call(e))(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||null===t?t:(t=function(e){let t=Vv(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(t),isNaN(t)?e.INVALID_DATE:new Date(t)))})}prepareParam(e,t){let r;if(Ov.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=bv.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=bv.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}};function oy(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function sy(e){return(t,r)=>oy(e,t)-oy(e,r)}iy.INVALID_DATE=ry,ny.prototype=iy.prototype,ny.INVALID_DATE=ry;var ay=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function uy(e){if("fields"in e){let t={};for(let[r,n]of Object.entries(e.fields))t[r]=uy(n);return e.setFields(t)}if("array"===e.type){let t=e.optional();return t.innerType&&(t.innerType=uy(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(uy)}):"optional"in e?e.optional():e}var cy=e=>"[object Object]"===Object.prototype.toString.call(e);function ly(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===r.indexOf(e))}var hy=sy([]);function py(e){return new fy(e)}var fy=class extends jv{constructor(e){super({type:"object",check:e=>cy(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=hy,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let n=this.fields,i=t.stripUnknown??this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),s={},a=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let c of o){let e=n[c],o=c in r;if(e){let n,i=r[c];a.path=(t.path?`${t.path}.`:"")+c,e=e.resolve({value:i,context:t.context,parent:s});let o=e instanceof jv?e.spec:void 0,l=o?.strict;if(null!=o&&o.strip){u||(u=c in r);continue}n=t.__validating&&l?r[c]:e.cast(r[c],a),void 0!==n&&(s[c]=n)}else o&&!i&&(s[c]=r[c]);(o!==c in s||s[c]!==r[c])&&(u=!0)}return u?s:r}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!s||!cy(i))return void n(e,i);o||(o=i);let a=[];for(let r of this._nodes){let e=this.fields[r];!e||Ov.isRef(e)||a.push(e.asNestedTest({options:t,key:r,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){let t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[n,i]of Object.entries(this.fields)){let e=r[n];r[n]=void 0===e?i:e}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;let i=this.fields[r],o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,Qm.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let s of Object.keys(e)){let t=e[s];n.add(s),Ov.isRef(t)&&t.isSibling?o(t.path,s):xv(t)&&"deps"in t&&t.deps.forEach(e=>o(e,s))}return tv.default.array(Array.from(n),r).reverse()}(e,t),r._sortErrors=sy(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){let e={};for(let[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return uy(this)}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){let t=[];for(let r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,Qm.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return((e,t)=>{let r=[...(0,Qm.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,Qm.getter)((0,Qm.join)(r),!0)(e);return!(!i||!(n in i))})(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(ay)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||wv.exact,test(e){if(null==e)return!0;let t=ly(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=wv.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;let r=ly(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=wv.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;let r={};for(let n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(ev.camelCase)}snakeCase(){return this.transformKeys(ev.snakeCase)}constantCase(){return this.transformKeys(e=>(0,ev.snakeCase)(e).toUpperCase())}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(let[i,o]of Object.entries(t.fields)){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}};function dy(e){return new gy(e)}py.prototype=fy.prototype;var gy=class extends jv{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){let i=this.innerType,o=t.recursive??this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(s,a)=>{if(!o||!i||!this._typeCheck(a))return void n(s,a);let u=Array(a.length);for(let r=0;r<a.length;r++)u[r]=i.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:t.originalValue??e});this.runTests({value:a,tests:u,originalValue:t.originalValue??e,options:t},r,e=>n(e.concat(s),a))})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(ay)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!xv(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+uv(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=kv.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t||(t=kv.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t||(t=kv.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null==e?e:e.filter(t))}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}};dy.prototype=gy.prototype;var my=class extends jv{constructor(e){super({type:"tuple",spec:{types:e},check(e){let t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(Sv.notType)})}_cast(e,t){let{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1,o=r.map((e,r)=>{let o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,s)=>{if(!this._typeCheck(s))return void n(o,s);let a=[];for(let[r,n]of i.entries())a[r]=n.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:t.originalValue??e});this.runTests({value:s,tests:a,originalValue:t.originalValue??e,options:t},r,e=>n(e.concat(o),s))})}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}};my.prototype;var vy=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:Xv().optional(),include:Xv().oneOf(["geometry"]),externalId:Xv().optional()}),yy=function(e){return e[e.measures_all=0]="measures_all",e[e.scores_all=1]="scores_all",e}({}),by=RegExp(`(${Object.keys(yy).filter(e=>Number.isNaN(Number(e))).join("|")})`),_y=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:dy().of(Xv().matches(by,"Must be a valid Data category.").required()).required(),radius:ey().max(5e3)}),wy="/demographics",ky=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").optional(),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").optional(),geographyId:Xv().optional(),radius:ey().max(5e3),radiusUnit:Xv().oneOf(["meter","mile"]).optional()}),Sy="/enhanced-pois",xy=function(e){return e.AIRPORTS="airports",e.ALCOHOL="alcohol",e.ART_CULTURE_SCIENCE="art_culture_science",e.BANKS="banks",e.BUS_STOPS="bus_stops",e.CAFES="cafes",e.CAR_FUELING_STATIONS="car_fueling_stations",e.CASINO="casino",e.CLOTHING="clothing",e.COMMON_NEEDS="common_needs",e.CONFERENCE_CENTERS="conference_centers",e.CONVENIENCE_STORES="convenience_stores",e.DAYCARES="daycares",e.DEPARTMENT_STORES="department_stores",e.ENTERTAINMENT="entertainment",e.FITNESS="fitness",e.GROCERIES_SPECIALIZED="groceries_specialized",e.GROCERIES="groceries",e.HEALTH_CARE="health_care",e.HOME_IMPROVEMENT="home_improvement",e.HOSPITALS="hospitals",e.LIBRARIES="libraries",e.NIGHTLIFE="nightlife",e.NON_FOOD_SHOPS="non_food_shops",e.PARKS="parks",e.PERSONAL_CARE="personal_care",e.PET_CARE="pet_care",e.PHARMACIES="pharmacies",e.RAPID_TRANSIT_STATIONS="rapid_transit_stations",e.RESTAURANTS="restaurants",e.RETAIL="retail",e.SHOPS_AND_SERVICES="shops_and_services",e.SPORT_FACILITIES="sport_facilities",e.TRAIN_STATIONS="train_stations",e}({}),Cy=RegExp(`(${Object.values(xy).filter(e=>Number.isNaN(Number(e))).join("|")})`),Ey=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:Xv().optional(),limit:ey().max(500),attemptMinimum:ey().max(500),radius:ey().max(25e3),buffer:ey().max(1e4),include:dy().of(Xv().matches(Cy,"Must be a valid category.").required()).optional()}),Iy=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required()});function Oy(e,t){if(!e)return!1;let r=0;return Object.values(e).forEach(e=>{r+=e?.length||0}),r>=t}var Ty=function(e){return e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care",e}({}),Ay="/pois",Ry=RegExp(`(${Object.keys(Ty).filter(e=>Number.isNaN(Number(e))).join("|")})`),My=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:ey().max(500),attemptMinimum:ey().max(30),radius:ey().max(25e3),include:dy().of(Xv().matches(Ry,"Must be a valid category.").required()).required()}),Fy="/profiles",Ny=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:Xv().optional(),externalId:Xv().optional()}),Dy=function(e){return e[e.pedestrian_friendly=0]="pedestrian_friendly",e[e.cycling_friendly=1]="cycling_friendly",e[e.transit_friendly=2]="transit_friendly",e[e.car_friendly=3]="car_friendly",e[e.parks=4]="parks",e[e.groceries=5]="groceries",e[e.shopping=6]="shopping",e[e.nightlife=7]="nightlife",e[e.restaurants=8]="restaurants",e[e.cafes=9]="cafes",e[e.daycares=10]="daycares",e[e.primary_schools=11]="primary_schools",e[e.high_schools=12]="high_schools",e[e.quiet=13]="quiet",e[e.greenery=14]="greenery",e[e.historic=15]="historic",e[e.vibrant=16]="vibrant",e[e.wellness=17]="wellness",e}({}),Py=RegExp(`(${Object.keys(Dy).filter(e=>Number.isNaN(Number(e))).join("|")})`),Ly=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:dy().of(Xv().required()),geographyLevels:dy().of(Xv().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:Bv(),include:dy().of(Xv().matches(Py,"Must be a valid Score category.").required())}),jy=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:Xv(),limit:ey().positive(),externalId:Xv().optional()}),$y=py({geogId:Xv().required(),limit:ey().optional()}),Uy="/schools",By=py({lat:ey().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),lng:ey().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").when("geogId",{is:e=>"string"==typeof e,then:e=>e.optional(),otherwise:e=>e.required()}),geogId:Xv().optional(),limit:ey().max(30,"Must use a limit between 1 and 30."),attemptMinimum:ey().max(30),radius:ey().max(25e3,"Must use a radius between 1 and 25000."),buffer:ey().max(1e4,"Must use a buffer between 1 and 10000."),include_catchments:Bv()}),qy=py({geogId:Xv().required()}),zy=py({geogId:Xv().required(),intervals:dy().of(Xv().required()),propertyTypes:dy().of(Xv().required())}),Vy="LocalLogicClient/",Wy=class extends Error{constructor({message:e}){super(e),this.name=Vy+this.constructor.name}},Hy=class extends Error{constructor({message:e}){super(e),this.name=Vy+this.constructor.name}},Gy=e=>{throw e instanceof gv?new Wy(e):new Hy(e)},Zy=(e,t,r)=>{let n=r.value;return r.value=function(...e){try{let t=n.apply(this,e);return t&&t instanceof Promise?t.catch(e=>{Gy(e)}):t}catch(e){Gy(e)}},r};function Yy(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var Jy=class{constructor(e,t={locale:"en"}){this.requests=((e,t)=>{let r=Zm[t?.environment||"prod"];return{get:async function(n,i){let o;if(i?.params){let e=Object.entries(i.params).filter(([e,t])=>void 0!==t).reduce((e,[t,r])=>(e[t]=r,e),{});o=new URLSearchParams({...e,...t?.locale&&{language:t?.locale}})}else o=new URLSearchParams({...t?.locale&&{language:t?.locale}});let s=await fetch(`${r}${n}?${o}`,{headers:{Accept:"application/json",Authorization:e,...t?.product&&{"x-ll-sdk-name":t.product}}});return 204===s.status?{data:{},meta:{message:"Received code 204",type:"LocalLogic.API.Success",statusCode:200,counts:{}}}:s.json()}}})(e,t),this.options=t}getLocation(e){return(e=>async t=>{let{lat:r,lng:n}=await Iy.validate(t);return(await e.get("/location",{params:{lat:r,lng:n}})).data})(this.requests)(e)}getPois(e){return(e=>async t=>{let{lat:r,lng:n,limit:i=30,attemptMinimum:o,radius:s,include:a}=await My.validate(t),u=await e.get(Ay,{params:{lat:r,lng:n,limit:a.length>1&&i>30?30:i,radius:s,include:a?.join(",")}});void 0!==o&&!Oy(u?.data||null,o)&&(u=await e.get(Ay,{params:{lat:r,lng:n,limit:o,radius:1e4,include:a?.join(",")}}));let c=a.reduce((e,t)=>({...e,[t]:[]}),{});return u.data||c})(this.requests)(e)}getPoisMetadata(e){return(e=>async t=>{let{lat:r,lng:n,limit:i,radius:o,include:s}=await My.validate(t),a=await e.get(Ay,{params:{lat:r,lng:n,limit:i,radius:o,include:s?.join(",")}}),u=s.reduce((e,t)=>({...e,[t]:0}),{});return a.meta.counts||u})(this.requests)(e)}getScores(e){return(e=>async t=>{let{lat:r,lng:n,include:i,geographyIds:o,geographyLevels:s,locationScoresRounding:a=!0}=await Ly.validate(t);return(await e.get("/scores",{params:{lat:r,lng:n,include:i?.join(","),geography_levels:s?.join(","),geography_ids:o?.join(","),location_scores_rounding:a?".5":"none"}})).data})(this.requests)(e)}getSimilarNeighborhoods(e){return(e=>async t=>{let{lat:r,lng:n,geogId:i,limit:o}=await jy.validate(t),s=await e.get(`/similar-neighborhoods/${i}`,{params:{lat:r,lng:n,limit:o,external_id:t?.externalId}});return s?.data?s.data:{id:i,most_similar:[]}})(this.requests)(e)}getSchools(e){return(e=>async t=>{let{lat:r,lng:n,geogId:i,limit:o,attemptMinimum:s,radius:a,buffer:u,include_catchments:c}=await By.validate(t),l=i?`${Uy}/${i}`:Uy,h={limit:o,include_catchments:c};void 0===i?(h.lat=r,h.lng=n,h.radius=a):h.buffer=u;let p=await e.get(l,{params:h});return void 0===i&&void 0!==s&&!Oy(p?.data||null,s)&&(p=await e.get(Uy,{params:{lat:r,lng:n,limit:s,radius:1e4,include_catchments:c}})),p.data})(this.requests)(e)}getProfiles(e){return(e=>async t=>{let{lat:r,lng:n,geogId:i}=await Ny.validate(t),o=i?`${Fy}/${i}`:Fy;return(await e.get(o,{params:{lat:r,lng:n,external_id:t?.externalId}})).data})(this.requests)(e)}getGeographies(e){return(e=>async t=>{let{lat:r,lng:n,geogId:i}=await vy.validate(t),o=i?`${Ym}/${i}`:Ym,s={lat:r,lng:n,external_id:t?.externalId};return t.include&&(s.include=t.include),(await e.get(o,{params:s})).data})(this.requests)(e)}getDemographics(e){return(e=>async t=>{let{lat:r,lng:n,geographyId:i,radius:o,radiusUnit:s}=await ky.validate(t),a=i?`${wy}/${i}`:wy,u={...(await e.get(a,{params:{lat:r,lng:n,radius:o,radius_unit:s}})).data.attributes},c={inc_home:"avg_household_income",inc_person:"avg_individual_income",prop_renter:"renters",prop_owner:"owners"};return Object.prototype.hasOwnProperty.call(u,"income_stats")&&u.income_stats&&(u.income={label:u.income_stats.label,type:u.income_stats.type,variables:u.income_stats.variables.map(e=>({...e,variable:c[e.variable]}))}),Object.prototype.hasOwnProperty.call(u,"property_tenure")&&u.property_tenure&&(u.housing_tenancy={label:u.property_tenure.label,type:u.property_tenure.type,variables:u.property_tenure.variables.map(e=>({...e,variable:c[e.variable]}))}),u})(this.requests)(e)}getData(e){return(e=>async t=>{let{lat:r,lng:n,radius:i,include:o}=await _y.validate(t),s=await e.get("/data",{params:{lat:r,lng:n,radius:i,include:o?.join(",")}}),a=o.reduce((e,t)=>({...e,[t]:[]}),{});return s.data||a})(this.requests)(e)}getEnhancedPois(e){return(e=>async t=>{let{attemptMinimum:r,include:n,lat:i,lng:o,limit:s=30,buffer:a=0,radius:u,geogId:c}=await Ey.validate(t),l=c?`${Sy}/${c}`:Sy,h={categories:n?.join(","),limit:s};void 0===c?(h.lat=i,h.lng=o,h.radius=u):h.buffer=a;let p=await e.get(l,{params:h});return void 0===c&&void 0!==r&&(p?.data?.results?.length??0)<r&&(p=await e.get(Sy,{params:{categories:n?.join(","),lat:i,lng:o,limit:r,radius:1e4}})),p||{data:{results:[]},meta:{message:"Successfully called v3/enhanced_pois API.",type:"LocalLogic.API.Success",statusCode:200,counts:{returned_count:0,total_count:0,returned_by_category:{[xy.AIRPORTS]:0,[xy.ALCOHOL]:0,[xy.ART_CULTURE_SCIENCE]:0,[xy.BANKS]:0,[xy.BUS_STOPS]:0,[xy.CAFES]:0,[xy.CAR_FUELING_STATIONS]:0,[xy.CASINO]:0,[xy.CLOTHING]:0,[xy.COMMON_NEEDS]:0,[xy.CONFERENCE_CENTERS]:0,[xy.CONVENIENCE_STORES]:0,[xy.DAYCARES]:0,[xy.DEPARTMENT_STORES]:0,[xy.ENTERTAINMENT]:0,[xy.FITNESS]:0,[xy.GROCERIES_SPECIALIZED]:0,[xy.GROCERIES]:0,[xy.HEALTH_CARE]:0,[xy.HOME_IMPROVEMENT]:0,[xy.HOSPITALS]:0,[xy.LIBRARIES]:0,[xy.NIGHTLIFE]:0,[xy.NON_FOOD_SHOPS]:0,[xy.PARKS]:0,[xy.PERSONAL_CARE]:0,[xy.PET_CARE]:0,[xy.PHARMACIES]:0,[xy.RAPID_TRANSIT_STATIONS]:0,[xy.RESTAURANTS]:0,[xy.RETAIL]:0,[xy.SHOPS_AND_SERVICES]:0,[xy.SPORT_FACILITIES]:0,[xy.TRAIN_STATIONS]:0},total_by_category:{[xy.AIRPORTS]:0,[xy.ALCOHOL]:0,[xy.ART_CULTURE_SCIENCE]:0,[xy.BANKS]:0,[xy.BUS_STOPS]:0,[xy.CAFES]:0,[xy.CAR_FUELING_STATIONS]:0,[xy.CASINO]:0,[xy.CLOTHING]:0,[xy.COMMON_NEEDS]:0,[xy.CONFERENCE_CENTERS]:0,[xy.CONVENIENCE_STORES]:0,[xy.DAYCARES]:0,[xy.DEPARTMENT_STORES]:0,[xy.ENTERTAINMENT]:0,[xy.FITNESS]:0,[xy.GROCERIES_SPECIALIZED]:0,[xy.GROCERIES]:0,[xy.HEALTH_CARE]:0,[xy.HOME_IMPROVEMENT]:0,[xy.HOSPITALS]:0,[xy.LIBRARIES]:0,[xy.NIGHTLIFE]:0,[xy.NON_FOOD_SHOPS]:0,[xy.PARKS]:0,[xy.PERSONAL_CARE]:0,[xy.PET_CARE]:0,[xy.PHARMACIES]:0,[xy.RAPID_TRANSIT_STATIONS]:0,[xy.RESTAURANTS]:0,[xy.RETAIL]:0,[xy.SHOPS_AND_SERVICES]:0,[xy.SPORT_FACILITIES]:0,[xy.TRAIN_STATIONS]:0}}}}})(this.requests)(e)}getPropertyValueDrivers(e){return(e=>async t=>{let{geogId:r}=await $y.validate(t),n=await e.get(`/value-drivers/${r}`,{params:{limit:t.limit||-1}}),i=n.data.value_drivers.map(e=>({...e,name:(e.name||"").toLocaleLowerCase(),value_qualifier:(e.value_qualifier||"").toLocaleLowerCase()}));return{...n.data,value_drivers:i}})(this.requests)(e)}getMarketTrends(e){return(e=>async t=>{let{geogId:r}=await qy.validate(t);return(await e.get(`/marketstats/${r}`)).data})(this.requests)(e)}getMarketActivity(e){return(e=>async t=>{let{geogId:r,propertyTypes:n,intervals:i}=await zy.validate(t);return(await e.get(`/market-stats/${r}`,{params:{property_types:n?.join(","),intervals:i?.join(",")}})).data})(this.requests)(e)}};Yy([Zy],Jy.prototype,"getLocation",null),Yy([Zy],Jy.prototype,"getPois",null),Yy([Zy],Jy.prototype,"getPoisMetadata",null),Yy([Zy],Jy.prototype,"getScores",null),Yy([Zy],Jy.prototype,"getSimilarNeighborhoods",null),Yy([Zy],Jy.prototype,"getSchools",null),Yy([Zy],Jy.prototype,"getProfiles",null),Yy([Zy],Jy.prototype,"getGeographies",null),Yy([Zy],Jy.prototype,"getDemographics",null),Yy([Zy],Jy.prototype,"getData",null),Yy([Zy],Jy.prototype,"getEnhancedPois",null),Yy([Zy],Jy.prototype,"getPropertyValueDrivers",null),Yy([Zy],Jy.prototype,"getMarketTrends",null),Yy([Zy],Jy.prototype,"getMarketActivity",null);var Ky=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Xy=/^rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)$/;function Qy(e,t){return 0===t?e:Math.round((r=e+255*t,n=5,i=250,Math.min(Math.max(r,n),i)));var r,n,i}function eb(e,t){const r={};if(Ky.test(e))Object.entries(t).reduce((t,[r,n])=>(t[r]=function(e,t){if(!Ky.test(e))return e;const r=e.match(/\w\w/g);if(!r)return e;const[n,i,o]=r.map(e=>parseInt(e,16));return`#${[Qy(n,t),Qy(i,t),Qy(o,t)].map(e=>Math.round(e).toString(16).padStart(2,"0")).join("")}`.toUpperCase()}(e,n),t),r);else if(Xy.test(e)){const[n,i,o]=e.replace(/[^\d,]/g,"").split(",").map(Number);Object.entries(t).reduce((e,[t,r])=>(e[t]=function(e,t,r,n){return`rgb(${Qy(e,n)}, ${Qy(t,n)}, ${Qy(r,n)})`}(n,i,o,r),e),r)}else Object.entries(t).reduce((t,[r])=>(t[r]=e,t),r);return r}var tb=z.createContext({}),rb=()=>(0,z.useContext)(tb),nb=({appearance:e,apiKey:t,externalId:r,children:n,locale:i,product:o,environment:s})=>{if((0,z.useEffect)(()=>{e?.theme&&document.documentElement.setAttribute("data-theme",e?.theme),function(e){if("object"==typeof e){if("string"==typeof e["--ll-font-family"]&&document.documentElement.style.setProperty("--ll-font-family",e["--ll-font-family"]),"string"==typeof e["--ll-color-primary"]&&(document.documentElement.style.setProperty("--ll-color-primary",e["--ll-color-primary"]),"#008491"!==e["--ll-color-primary"].toUpperCase())){const t=eb(e["--ll-color-primary"],{10:.9,25:.85,50:.22,100:0,200:-.18,300:-.3});Object.entries(t).forEach(([e,t])=>{document.documentElement.style.setProperty(`--ll-colors-primary-${e}`,t)})}if("string"==typeof e["--ll-color-primary-variant1"]&&(document.documentElement.style.setProperty("--ll-color-primary-variant1",e["--ll-color-primary-variant1"]),"#0F766E"!==e["--ll-color-primary-variant1"].toUpperCase())){const t=eb(e["--ll-color-primary-variant1"],{10:.25,25:.23,50:.11,100:0,200:-.1});Object.entries(t).forEach(([e,t])=>{document.documentElement.style.setProperty(`--ll-colors-secondary-${e}`,t)})}}}(e?.variables)},[e?.theme,e?.variables]),!t)throw Error("A valid apiKey must be provided.");const a=((e,t)=>new Jy(e,t))(t,{locale:i,product:o,environment:s});return(0,me.jsx)(tb.Provider,{value:{client:a,locale:i,options:{externalId:r,appearance:e}},children:n})},ib={tracker:"mixpanel",isDebugMode:!1,printDebugMode:!1},ob={localContent:{...ib,key:"14dc84d9ebfcd6747e51e28d2c22b7ad"},localDemographics:{...ib,key:"74b752391c7469929d425547f42b2acd"},neighborhoodMatch:{...ib,key:"e3e3ab8758f5061193fd94149288834d"},neighborhoodWrap:{...ib,key:"e3e0bceff1412922c58657d745f9f663"},neighborhoodShowcase:{...ib,key:"f19a8f4ceca8140edf4a693707160e6f"},neighborhoodFeatured:{...ib,key:"171ab916e9dd5af0d41facbebfca6814"},leadCapture:{...ib,key:"c61e08f2c8f3a7d7ad8eb5ff09780da2"}},sb=function(e){return e.LOCAL_CONTENT="local-content",e.LOCAL_DEMOGRAPHICS="local-demographics",e.NEIGHBORHOOD_HERO="neighborhood-hero",e.NEIGHBORHOOD_MAP="neighborhood-map",e.NEIGHBORHOOD_CHARACTERISTICS="neighborhood-characteristics",e.NEIGHBORHOOD_HIGHLIGHTS="neighborhood-highlights",e.NEIGHBORHOOD_DEMOGRAPHICS="neighborhood-demographics",e.NEIGHBORHOOD_PROPERTY_VALUE_DRIVERS="neighborhood-property-value-drivers",e.NEIGHBORHOOD_MATCH="neighborhood-match",e.NEIGHBORHOOD_MARKET_TRENDS="neighborhood-market-trends",e.NEIGHBORHOOD_SCHOOLS="neighborhood-schools",e.NEIGHBORHOOD_SHOWCASE="neighborhood-showcase",e.NEIGHBORHOOD_FEATURED="neighborhood-featured",e.LEAD_CAPTURE="lead-capture",e}({});export{K as _,jm as a,H as b,qt as c,Et as d,gt as f,X as g,te as h,rb as i,Ut as l,we as m,ob as n,Lm as o,ft as p,nb as r,Pm as s,sb as t,Ot as u,J as v,V as y};
2
+ //# sourceMappingURL=sdks-BuksrzcW.js.map