@vc-shell/framework 1.1.45 → 1.1.47

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 (362) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/core/plugins/modularity/loader.ts +137 -78
  3. package/dist/assets/042c75b764bc78a7.svg +1 -0
  4. package/dist/assets/0ba156439a339f2a.svg +1 -0
  5. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  6. package/dist/assets/0f590f8a94577092.svg +1 -0
  7. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/157b8721e0600ea8.svg +1 -0
  11. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  12. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  13. package/dist/assets/1de63eb118636cce.svg +1 -0
  14. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  15. package/dist/assets/204eaf512fde2023.svg +1 -0
  16. package/dist/assets/2088983edf42e153.svg +1 -0
  17. package/dist/assets/208f810a9321a327.svg +1 -0
  18. package/dist/assets/21220a9d10e6c558.svg +1 -0
  19. package/dist/assets/220db345a102045d.woff2 +0 -0
  20. package/dist/assets/225da11d23968333.svg +1 -0
  21. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  22. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  23. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  24. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  25. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  26. package/dist/assets/2857c513073467da.svg +1 -0
  27. package/dist/assets/2b3be7889467d98f.woff +0 -0
  28. package/dist/assets/2d4e6190eec72737.svg +1 -0
  29. package/dist/assets/2eba973185078bc8.woff +0 -0
  30. package/dist/assets/327511cd4a7ba7f9.woff +0 -0
  31. package/dist/assets/334d3f6bc766c516.woff +0 -0
  32. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  33. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  34. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  35. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  36. package/dist/assets/41275bcb979cb650.svg +1 -0
  37. package/dist/assets/42df4e2d6fa3fd2a.woff2 +0 -0
  38. package/dist/assets/434f7982590e462f.woff +0 -0
  39. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  40. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  41. package/dist/assets/4e43c74354534fb3.svg +1 -0
  42. package/dist/assets/4fe75f5117100705.svg +1 -0
  43. package/dist/assets/52610491f372cb0c.woff2 +0 -0
  44. package/dist/assets/52e261a005074e1b.woff +0 -0
  45. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  46. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  47. package/dist/assets/5b3661be8be679d0.woff2 +0 -0
  48. package/dist/assets/5d96cfcc5bedd917.woff2 +0 -0
  49. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  50. package/dist/assets/617c4736236e199e.woff +0 -0
  51. package/dist/assets/6619e9e10beea0e7.woff2 +0 -0
  52. package/dist/assets/67230f05dc94a265.svg +1 -0
  53. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  54. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  55. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  56. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  57. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  58. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  59. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  60. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  61. package/dist/assets/7d970675c69fca1d.woff +0 -0
  62. package/dist/assets/7eda727273fd98d3.svg +1 -0
  63. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  64. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  65. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  66. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  67. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  68. package/dist/assets/910b0d99b9e26568.svg +1 -0
  69. package/dist/assets/91eee1aa81f72683.woff +0 -0
  70. package/dist/assets/92508f8707159b51.svg +1 -0
  71. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  72. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  73. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  74. package/dist/assets/9d37314695c0b68d.woff +0 -0
  75. package/dist/assets/a18404194e3f9047.svg +1 -0
  76. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  77. package/dist/assets/a47034e65dbcc3d7.woff +0 -0
  78. package/dist/assets/a617e11804bbacb7.woff +0 -0
  79. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  80. package/dist/assets/abf88f301a0730f4.svg +1 -0
  81. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  82. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  83. package/dist/assets/b27767411c8427be.woff +0 -0
  84. package/dist/assets/b291dc35a17511f7.woff +0 -0
  85. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  86. package/dist/assets/b372390551ca2fa1.svg +1 -0
  87. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  88. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  89. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  90. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  91. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  92. package/dist/assets/bfbe205759295eca.woff2 +0 -0
  93. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  94. package/dist/assets/cb32840ce330103f.woff +0 -0
  95. package/dist/assets/d084bda16abe8a56.svg +1 -0
  96. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  97. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  98. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  99. package/dist/assets/d5a5b8630120073d.svg +1 -0
  100. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  101. package/dist/assets/d80b05788e407de7.woff2 +0 -0
  102. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  103. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  104. package/dist/assets/e38acaa1757232e0.svg +1 -0
  105. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  106. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  107. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  108. package/dist/assets/e72bb11356af94c7.svg +1 -0
  109. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  110. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  111. package/dist/assets/f09d89268e4c0317.svg +1 -0
  112. package/dist/assets/f276d55184e05a07.woff +0 -0
  113. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  114. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  115. package/dist/assets/fcb1c1ffb5640194.woff +0 -0
  116. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  117. package/dist/assets/fed13b0d59903483.svg +1 -0
  118. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  119. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  120. package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
  121. package/dist/framework.js +16549 -25875
  122. package/dist/index.css +1 -1
  123. package/dist/index.d.ts +5 -8
  124. package/dist/index.d.ts.map +1 -1
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  127. package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
  128. package/dist/vendor-boolbase-Bgn9I6iN.js +21 -0
  129. package/dist/vendor-cheerio-CleDsuQZ.js +1053 -0
  130. package/dist/vendor-cheerio-select-CVkYl3Z-.js +191 -0
  131. package/dist/vendor-css-select-CtIzVIiG.js +622 -0
  132. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  133. package/dist/vendor-cypress-signalr-mock-CdKwIhWw.js +769 -0
  134. package/dist/vendor-date-fns-CdFbeoHV.js +2989 -0
  135. package/dist/vendor-dom-serializer-CugO0RdN.js +213 -0
  136. package/dist/vendor-dom7-wvIUV9pT.js +529 -0
  137. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  138. package/dist/vendor-domhandler-CL40eeX9.js +311 -0
  139. package/dist/vendor-dompurify-eYFoHPwR.js +528 -0
  140. package/dist/vendor-domutils-D3Y2YQFR.js +386 -0
  141. package/dist/vendor-entities-v26HW8wW.js +363 -0
  142. package/dist/vendor-floating-ui-core-C9uEvi1M.js +349 -0
  143. package/dist/vendor-floating-ui-dom-CZkYGmv4.js +393 -0
  144. package/dist/vendor-floating-ui-utils-Bx3BTd6_.js +259 -0
  145. package/dist/vendor-floating-ui-vue-CLOiVYP7.js +107 -0
  146. package/dist/vendor-headlessui-vue-Dg0Llidi.js +961 -0
  147. package/dist/vendor-htmlparser2-CXL_uhMI.js +735 -0
  148. package/dist/vendor-iconify-vue-D4fihzvl.js +1205 -0
  149. package/dist/vendor-intlify-core-base-Bvt2vJFV.js +1129 -0
  150. package/dist/vendor-intlify-message-compiler-1VxNzq21.js +945 -0
  151. package/dist/vendor-intlify-shared-D7kiPMOG.js +130 -0
  152. package/dist/vendor-iso-639-1-dVGfSUIM.js +781 -0
  153. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  154. package/dist/vendor-linkifyjs-DTu7SY_Y.js +705 -0
  155. package/dist/vendor-lodash-es-CrYlgAi8.js +4816 -0
  156. package/dist/vendor-markdown-it-4AJoRTAg.js +2263 -0
  157. package/dist/vendor-markdown-it-task-lists-Byg1-ms9.js +69 -0
  158. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  159. package/dist/vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js +1105 -0
  160. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js +261 -0
  161. package/dist/vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js +1809 -0
  162. package/dist/vendor-microsoft-applicationinsights-common-CDVnJ6MR.js +1921 -0
  163. package/dist/vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js +4127 -0
  164. package/dist/vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js +1399 -0
  165. package/dist/vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js +572 -0
  166. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +43 -0
  167. package/dist/vendor-microsoft-applicationinsights-web-BRuQAzjU.js +487 -0
  168. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +147 -0
  169. package/dist/vendor-microsoft-signalr-qIrag5xx.js +1761 -0
  170. package/dist/vendor-moment-CwOqp704.js +2589 -0
  171. package/dist/vendor-nevware21-ts-async-FAyg3c9V.js +260 -0
  172. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +853 -0
  173. package/dist/vendor-nth-check-BE7AeBMg.js +45 -0
  174. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  175. package/dist/vendor-parse5-DqztJOGh.js +5747 -0
  176. package/dist/vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js +143 -0
  177. package/dist/vendor-popperjs-core-LGjf7Wza.js +905 -0
  178. package/dist/vendor-prettier-D8C9GG-0.js +4858 -0
  179. package/dist/vendor-prosemirror-commands-BqYcdumy.js +344 -0
  180. package/dist/vendor-prosemirror-dropcursor-zknUsW5x.js +86 -0
  181. package/dist/vendor-prosemirror-gapcursor-DjOZhP78.js +200 -0
  182. package/dist/vendor-prosemirror-history-l8l3CFac.js +248 -0
  183. package/dist/vendor-prosemirror-keymap-C17r08p-.js +62 -0
  184. package/dist/vendor-prosemirror-markdown-WJEDhc-w.js +650 -0
  185. package/dist/vendor-prosemirror-model-BN5TnJD_.js +2736 -0
  186. package/dist/vendor-prosemirror-schema-list-CR0gi7aY.js +87 -0
  187. package/dist/vendor-prosemirror-state-B0bFP8WI.js +821 -0
  188. package/dist/vendor-prosemirror-tables-B1txTKlC.js +1711 -0
  189. package/dist/vendor-prosemirror-transform-Bo7kNPme.js +1507 -0
  190. package/dist/vendor-prosemirror-view--C7TZvmQ.js +3746 -0
  191. package/dist/vendor-punycode-js-CNI-zL6U.js +133 -0
  192. package/dist/vendor-rope-sequence-sEGCUMi8.js +100 -0
  193. package/dist/vendor-semver-BoKYtkQw.js +1021 -0
  194. package/dist/vendor-ssr-window-D4k3p53c.js +133 -0
  195. package/dist/vendor-swiper-CMVLTGu0.js +2825 -0
  196. package/dist/vendor-tippy-js-BGdgwGX-.js +812 -0
  197. package/dist/vendor-tiptap-core-BRY37Sb2.js +2806 -0
  198. package/dist/vendor-tiptap-extension-blockquote-CPd5qv-9.js +43 -0
  199. package/dist/vendor-tiptap-extension-bold-B0GwBNks.js +71 -0
  200. package/dist/vendor-tiptap-extension-bubble-menu-B0sZZld7.js +128 -0
  201. package/dist/vendor-tiptap-extension-bullet-list-CQm4ReOu.js +53 -0
  202. package/dist/vendor-tiptap-extension-code-C8cy6bRj.js +51 -0
  203. package/dist/vendor-tiptap-extension-code-block-BqTchNEf.js +133 -0
  204. package/dist/vendor-tiptap-extension-document-Dka1Uu0g.js +9 -0
  205. package/dist/vendor-tiptap-extension-dropcursor-CFSh-BuE.js +20 -0
  206. package/dist/vendor-tiptap-extension-floating-menu-H8PB4zeI.js +99 -0
  207. package/dist/vendor-tiptap-extension-gapcursor-CzwfD_IT.js +24 -0
  208. package/dist/vendor-tiptap-extension-hard-break-Rm6aVcrK.js +55 -0
  209. package/dist/vendor-tiptap-extension-heading-CavI6u1v.js +54 -0
  210. package/dist/vendor-tiptap-extension-history-WEN1_74D.js +35 -0
  211. package/dist/vendor-tiptap-extension-horizontal-rule-DZkUEL6s.js +58 -0
  212. package/dist/vendor-tiptap-extension-image-B67_mxGM.js +64 -0
  213. package/dist/vendor-tiptap-extension-italic-BshxBFou.js +70 -0
  214. package/dist/vendor-tiptap-extension-link-CJAQIgui.js +262 -0
  215. package/dist/vendor-tiptap-extension-list-item-DF-iMpqO.js +33 -0
  216. package/dist/vendor-tiptap-extension-ordered-list-CN8MF-kN.js +71 -0
  217. package/dist/vendor-tiptap-extension-paragraph-DI577lM5.js +33 -0
  218. package/dist/vendor-tiptap-extension-placeholder-DwAtlfAF.js +52 -0
  219. package/dist/vendor-tiptap-extension-strike-CIty09KN.js +61 -0
  220. package/dist/vendor-tiptap-extension-table-C5nv-GUb.js +213 -0
  221. package/dist/vendor-tiptap-extension-table-cell-DXbBhJW3.js +40 -0
  222. package/dist/vendor-tiptap-extension-table-header-rtggsYXA.js +40 -0
  223. package/dist/vendor-tiptap-extension-table-row-67khjMDt.js +22 -0
  224. package/dist/vendor-tiptap-extension-text-D1OHb_a1.js +8 -0
  225. package/dist/vendor-tiptap-extension-underline-IqWixw3m.js +40 -0
  226. package/dist/vendor-tiptap-markdown-DVxB1hbO.js +825 -0
  227. package/dist/vendor-tiptap-starter-kit-CPH9gu2X.js +29 -0
  228. package/dist/vendor-tiptap-vue-3-CkBe4_xM.js +225 -0
  229. package/dist/vendor-truncate-html-Bx1HJzRq.js +145 -0
  230. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  231. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  232. package/dist/vendor-vee-validate-rules-DDeNM2Gc.js +314 -0
  233. package/dist/vendor-vue-currency-input-DxWnS-HB.js +315 -0
  234. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  235. package/dist/vendor-vue-i18n-DPtOLen3.js +1359 -0
  236. package/dist/vendor-vue3-application-insights-dAGGfA_M.js +69 -0
  237. package/dist/vendor-vue3-touch-events-8Pa3HHlV.js +169 -0
  238. package/dist/vendor-vuepic-vue-datepicker-DglsiNYa.js +4997 -0
  239. package/dist/vendor-vueuse-components-DtK_mxpP.js +219 -0
  240. package/dist/vendor-vueuse-core-cB-c7DzH.js +5129 -0
  241. package/dist/vendor-vueuse-shared-Dg7PMM0z.js +1169 -0
  242. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  243. package/dist/vendor-whatwg-fetch-l0sNRNKZ.js +1 -0
  244. package/package.json +5 -4
  245. package/ui/components/atoms/vc-icon/vc-icon.vue +10 -23
  246. package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +2 -1
  247. package/dist/vendor-boolbase-Cp9L0GAZ.js +0 -25
  248. package/dist/vendor-cheerio-HN9zIPZn.js +0 -3135
  249. package/dist/vendor-cheerio-select-5Ry0HvBq.js +0 -306
  250. package/dist/vendor-css-select-DRIZ9kfZ.js +0 -966
  251. package/dist/vendor-css-what-DuPJ1HEF.js +0 -448
  252. package/dist/vendor-cypress-signalr-mock-BKdBJpdt.js +0 -778
  253. package/dist/vendor-date-fns-515YWkk-.js +0 -6724
  254. package/dist/vendor-dom-serializer-nQMsqjYW.js +0 -286
  255. package/dist/vendor-dom7-CJLPMwy5.js +0 -941
  256. package/dist/vendor-domelementtype-CjSzQey5.js +0 -53
  257. package/dist/vendor-domhandler-9z8cS16a.js +0 -484
  258. package/dist/vendor-dompurify-CRFzu7ib.js +0 -1336
  259. package/dist/vendor-domutils-Bc-Opz-v.js +0 -981
  260. package/dist/vendor-entities-Bfsx4xOQ.js +0 -636
  261. package/dist/vendor-floating-ui-core-wV8u8QP4.js +0 -511
  262. package/dist/vendor-floating-ui-dom-DDnRPs17.js +0 -706
  263. package/dist/vendor-floating-ui-utils-OMIFy1QU.js +0 -296
  264. package/dist/vendor-floating-ui-vue-D-tCDAMm.js +0 -167
  265. package/dist/vendor-fontsource-plus-jakarta-sans.css +0 -1
  266. package/dist/vendor-headlessui-vue-CY9FRgTb.js +0 -83
  267. package/dist/vendor-htmlparser2-B1dhFPOs.js +0 -1426
  268. package/dist/vendor-iconify-vue-DfRGgyNu.js +0 -1840
  269. package/dist/vendor-intlify-core-base-BuknsFQe.js +0 -1876
  270. package/dist/vendor-intlify-message-compiler-CuOQDWx1.js +0 -1508
  271. package/dist/vendor-intlify-shared-Cz4YRMuC.js +0 -241
  272. package/dist/vendor-iso-639-1-BJCk9DvE.js +0 -819
  273. package/dist/vendor-linkify-it-CKUf4vsc.js +0 -830
  274. package/dist/vendor-linkifyjs-BfyGgbCh.js +0 -1756
  275. package/dist/vendor-lodash-es-BySUOlwf.js +0 -18333
  276. package/dist/vendor-markdown-it-D-apazHa.js +0 -6000
  277. package/dist/vendor-markdown-it-task-lists-rxMVH6Ku.js +0 -131
  278. package/dist/vendor-mdurl-BNh2CCgT.js +0 -537
  279. package/dist/vendor-microsoft-applicationinsights-analytics-js-kG3lLg8X.js +0 -1275
  280. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-C0uQkiQq.js +0 -591
  281. package/dist/vendor-microsoft-applicationinsights-channel-js-Dyd_PXA3.js +0 -2153
  282. package/dist/vendor-microsoft-applicationinsights-common-CfmP1_Qr.js +0 -2470
  283. package/dist/vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js +0 -6589
  284. package/dist/vendor-microsoft-applicationinsights-dependencies-js-C56OBFr4.js +0 -1510
  285. package/dist/vendor-microsoft-applicationinsights-properties-js-CBJTBawx.js +0 -761
  286. package/dist/vendor-microsoft-applicationinsights-shims-CX8sJgar.js +0 -70
  287. package/dist/vendor-microsoft-applicationinsights-web-pim2ri-g.js +0 -667
  288. package/dist/vendor-microsoft-dynamicproto-js-CFBBUu9p.js +0 -520
  289. package/dist/vendor-microsoft-signalr-dUnlRsGm.js +0 -3339
  290. package/dist/vendor-moment-Mki5YqAR.js +0 -5679
  291. package/dist/vendor-nevware21-ts-async-CLMApQ9E.js +0 -395
  292. package/dist/vendor-nevware21-ts-utils-e8v8Jty3.js +0 -1160
  293. package/dist/vendor-nth-check-Bx8TxtJt.js +0 -157
  294. package/dist/vendor-orderedmap-dGG6uMFJ.js +0 -137
  295. package/dist/vendor-parse5-Bt2NhSzR.js +0 -8432
  296. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUUtKzf8.js +0 -216
  297. package/dist/vendor-popperjs-core-Cr2byIky.js +0 -1790
  298. package/dist/vendor-prettier-B4PaeWRQ.js +0 -98
  299. package/dist/vendor-prosemirror-commands-BH9lWGpW.js +0 -561
  300. package/dist/vendor-prosemirror-dropcursor-CeyPcxrA.js +0 -146
  301. package/dist/vendor-prosemirror-gapcursor-U8UoUJII.js +0 -236
  302. package/dist/vendor-prosemirror-history-BDaJkvNx.js +0 -414
  303. package/dist/vendor-prosemirror-keymap-BbWvIWmH.js +0 -128
  304. package/dist/vendor-prosemirror-markdown-gB0PXBbz.js +0 -866
  305. package/dist/vendor-prosemirror-model-BZu3WVcD.js +0 -3463
  306. package/dist/vendor-prosemirror-schema-list-Bl9NpKA7.js +0 -158
  307. package/dist/vendor-prosemirror-state-BvL9Pxph.js +0 -1003
  308. package/dist/vendor-prosemirror-tables-17qAnviK.js +0 -2159
  309. package/dist/vendor-prosemirror-transform-CE9VV3qg.js +0 -2156
  310. package/dist/vendor-prosemirror-view-CU2WTHT7.js +0 -5811
  311. package/dist/vendor-punycode-js-iAs5RxMf.js +0 -441
  312. package/dist/vendor-rope-sequence-BdXDKoGt.js +0 -207
  313. package/dist/vendor-semver-CVLMK-S4.js +0 -2702
  314. package/dist/vendor-ssr-window-s6OpKa3O.js +0 -150
  315. package/dist/vendor-swiper-CdiyNHVt.js +0 -5679
  316. package/dist/vendor-tippy-js-DWFe2TfK.js +0 -1647
  317. package/dist/vendor-tiptap-core-NfwGfaQk.js +0 -4910
  318. package/dist/vendor-tiptap-extension-blockquote-jmWBTtsI.js +0 -57
  319. package/dist/vendor-tiptap-extension-bold-p5frh4ak.js +0 -97
  320. package/dist/vendor-tiptap-extension-bubble-menu-KUhZSfrs.js +0 -218
  321. package/dist/vendor-tiptap-extension-bullet-list-COmZRoSB.js +0 -73
  322. package/dist/vendor-tiptap-extension-code-block-DyTARZss.js +0 -221
  323. package/dist/vendor-tiptap-extension-code-jVv6CXpX.js +0 -75
  324. package/dist/vendor-tiptap-extension-document-DssuotYs.js +0 -13
  325. package/dist/vendor-tiptap-extension-dropcursor-BoO0Qv91.js +0 -26
  326. package/dist/vendor-tiptap-extension-floating-menu-CrO8CN5w.js +0 -165
  327. package/dist/vendor-tiptap-extension-gapcursor-KpsWEoMD.js +0 -30
  328. package/dist/vendor-tiptap-extension-hard-break-ldOzhSvf.js +0 -68
  329. package/dist/vendor-tiptap-extension-heading-CKz2llX0.js +0 -77
  330. package/dist/vendor-tiptap-extension-history-DeKZ2VQ9.js +0 -48
  331. package/dist/vendor-tiptap-extension-horizontal-rule-CAjWRyDS.js +0 -92
  332. package/dist/vendor-tiptap-extension-image-ZagcEYuk.js +0 -76
  333. package/dist/vendor-tiptap-extension-italic-CM4xdznY.js +0 -96
  334. package/dist/vendor-tiptap-extension-link-Z-AMC4Ri.js +0 -414
  335. package/dist/vendor-tiptap-extension-list-item-BJi5QpXc.js +0 -37
  336. package/dist/vendor-tiptap-extension-ordered-list-C_TMrfBE.js +0 -97
  337. package/dist/vendor-tiptap-extension-paragraph-CQw0E0Au.js +0 -39
  338. package/dist/vendor-tiptap-extension-placeholder-BBNVKfa_.js +0 -66
  339. package/dist/vendor-tiptap-extension-strike-DUyMYX1Z.js +0 -79
  340. package/dist/vendor-tiptap-extension-table-cell-CoDIMPA5.js +0 -47
  341. package/dist/vendor-tiptap-extension-table-header-DvbGHnmw.js +0 -47
  342. package/dist/vendor-tiptap-extension-table-row-D1uqN5Aj.js +0 -26
  343. package/dist/vendor-tiptap-extension-table-tKS4MOM4.js +0 -354
  344. package/dist/vendor-tiptap-extension-text-DtRBhKB2.js +0 -12
  345. package/dist/vendor-tiptap-extension-underline-DqaSFp_P.js +0 -50
  346. package/dist/vendor-tiptap-markdown-7-PCADTU.js +0 -1017
  347. package/dist/vendor-tiptap-starter-kit-CDSV_Zuu.js +0 -88
  348. package/dist/vendor-tiptap-vue-3-DZg2fjq_.js +0 -268
  349. package/dist/vendor-truncate-html-3qQY0Djo.js +0 -196
  350. package/dist/vendor-uc-micro-jjt6LQ65.js +0 -23
  351. package/dist/vendor-vee-validate-i18n-v_gHjRmD.js +0 -154
  352. package/dist/vendor-vee-validate-rules-DzV3VY3N.js +0 -536
  353. package/dist/vendor-vue-currency-input-DGAkEFBO.js +0 -545
  354. package/dist/vendor-vue-devtools-api-DXYR8qBG.js +0 -169
  355. package/dist/vendor-vue-i18n-Co752uk3.js +0 -1897
  356. package/dist/vendor-vue3-application-insights-CYWFCr_J.js +0 -119
  357. package/dist/vendor-vue3-touch-events-BJEAiSa3.js +0 -416
  358. package/dist/vendor-vuepic-vue-datepicker-BSWXRSiu.js +0 -5019
  359. package/dist/vendor-vueuse-components-l1bL12mE.js +0 -339
  360. package/dist/vendor-vueuse-core-DGcJOmwG.js +0 -7743
  361. package/dist/vendor-vueuse-shared-_mOXsFuM.js +0 -1568
  362. package/dist/vendor-w3c-keyname-BOm2dtJm.js +0 -121
@@ -1,1275 +0,0 @@
1
- import { d as dynamicProto } from './vendor-microsoft-dynamicproto-js-CFBBUu9p.js';
2
- import { d as dateTimeUtilsDuration, m as msToTimeSpan, u as utlCanUseSessionStorage, a as utlGetSessionStorage, b as utlSetSessionStorage, c as utlRemoveSessionStorage, A as AnalyticsPluginIdentifier, e as createTelemetryItem, E as Event$1, T as Trace, M as Metric, P as PageView, f as PageViewPerformance, g as Exception, s as strNotSpecified, i as isCrossOriginError, R as RemoteDependencyData, h as utlEnableStorage, j as utlDisableStorage, k as utlSetStoragePrefix, l as createDomEvent, n as dataSanitizeString, o as PropertiesPluginIdentifier, p as createDistributedTraceContextFromTrace } from './vendor-microsoft-applicationinsights-common-CfmP1_Qr.js';
3
- import { i as isNullOrUndefined, g as getDocument, a as getPerformance, b as isUndefined, c as isWebWorker, d as arrForEach, e as dumpObj, s as scheduleTimeout, m as mathFloor, f as getNavigator, h as strIndexOf, t as throwError, u as utcNow, o as objDefine, j as isError, k as getWindow, l as hasWindow, n as objDeepFreeze, p as hasHistory, q as getHistory, r as isFunction, v as isArray, w as isString } from './vendor-nevware21-ts-utils-e8v8Jty3.js';
4
- import { g as getLocation, _ as _throwInternal, a as getExceptionName, s as safeGetLogger, b as _warnToConsole, c as getJSON, h as hasJSON, d as safeGetCookieMgr, m as mergeEvtNamespace, e as createUniqueNamespace, f as eventOff, o as onConfigChange, i as createProcessTelemetryContext, I as InstrumentEvent, j as eventOn, k as findAllScripts, l as cfgDfBoolean, n as cfgDfValidate, p as cfgDfString, q as cfgDfMerge, r as cfgDfSet, t as generateW3CId, B as BaseTelemetryPlugin } from './vendor-microsoft-applicationinsights-core-js-Cq4YSEvZ.js';
5
- import { _ as __extendsFn, a as __assignFn, s as strShimUndefined } from './vendor-microsoft-applicationinsights-shims-CX8sJgar.js';
6
-
7
- /*
8
- * Application Insights JavaScript SDK - Web Analytics, 3.3.9
9
- * Copyright (c) Microsoft and contributors. All rights reserved.
10
- */
11
-
12
-
13
- // @skip-file-minify
14
- // ##############################################################
15
- // AUTO GENERATED FILE: This file is Auto Generated during build.
16
- // ##############################################################
17
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18
- // Note: DON'T Export these const from the package as we are still targeting ES5 which can result in a mutable variables that someone could change!!!
19
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20
- var _DYN_TO_STRING = "toString"; // Count: 4
21
- var _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled"; // Count: 3
22
- var _DYN__ADD_HOOK = "_addHook"; // Count: 6
23
- var _DYN_CORE = "core"; // Count: 7
24
- var _DYN_DATA_TYPE = "dataType"; // Count: 8
25
- var _DYN_ENVELOPE_TYPE = "envelopeType"; // Count: 7
26
- var _DYN_DIAG_LOG = "diagLog"; // Count: 13
27
- var _DYN_TRACK = "track"; // Count: 7
28
- var _DYN_TRACK_PAGE_VIEW = "trackPageView"; // Count: 4
29
- var _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit"; // Count: 3
30
- var _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal"; // Count: 7
31
- var _DYN_START_TIME = "startTime"; // Count: 6
32
- var _DYN_PROPERTIES = "properties"; // Count: 5
33
- var _DYN_DURATION = "duration"; // Count: 12
34
- var _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal"; // Count: 3
35
- var _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count: 3
36
- var _DYN_HREF = "href"; // Count: 6
37
- var _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal"; // Count: 2
38
- var _DYN_ERROR = "error"; // Count: 5
39
- var _DYN_LINE_NUMBER = "lineNumber"; // Count: 4
40
- var _DYN_COLUMN_NUMBER = "columnNumber"; // Count: 5
41
- var _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException"; // Count: 3
42
- var _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer"; // Count: 4
43
- var _DYN_OVERRIDE_PAGE_VIEW_D8 = "overridePageViewDuration"; // Count: 2
44
- var _DYN_AUTO_EXCEPTION_INSTR9 = "autoExceptionInstrumented"; // Count: 3
45
- var _DYN_AUTO_TRACK_PAGE_VISI10 = "autoTrackPageVisitTime"; // Count: 2
46
- var _DYN_IS_BROWSER_LINK_TRAC11 = "isBrowserLinkTrackingEnabled"; // Count: 2
47
- var _DYN_LENGTH = "length"; // Count: 5
48
- var _DYN_ENABLE_AUTO_ROUTE_TR12 = "enableAutoRouteTracking"; // Count: 2
49
- var _DYN_ENABLE_UNHANDLED_PRO13 = "enableUnhandledPromiseRejectionTracking"; // Count: 2
50
- var _DYN_AUTO_UNHANDLED_PROMI14 = "autoUnhandledPromiseInstrumented"; // Count: 3
51
- var _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType"; // Count: 5
52
- var _DYN_IS_PERFORMANCE_TIMIN15 = "isPerformanceTimingSupported"; // Count: 2
53
- var _DYN_GET_PERFORMANCE_TIMI16 = "getPerformanceTiming"; // Count: 2
54
- var _DYN_NAVIGATION_START = "navigationStart"; // Count: 4
55
- var _DYN_SHOULD_COLLECT_DURAT17 = "shouldCollectDuration"; // Count: 3
56
- var _DYN_IS_PERFORMANCE_TIMIN18 = "isPerformanceTimingDataReady"; // Count: 2
57
- var _DYN_RESPONSE_START = "responseStart"; // Count: 5
58
- var _DYN_REQUEST_START = "requestStart"; // Count: 3
59
- var _DYN_LOAD_EVENT_END = "loadEventEnd"; // Count: 4
60
- var _DYN_RESPONSE_END = "responseEnd"; // Count: 5
61
- var _DYN_CONNECT_END = "connectEnd"; // Count: 4
62
-
63
- /*
64
- * Application Insights JavaScript SDK - Web Analytics, 3.3.9
65
- * Copyright (c) Microsoft and contributors. All rights reserved.
66
- */
67
-
68
- /**
69
- * Class encapsulates sending page views and page view performance telemetry.
70
- */
71
- var PageViewManager = /** @class */ (function () {
72
- function PageViewManager(appInsights, overridePageViewDuration, core, pageViewPerformanceManager) {
73
- dynamicProto(PageViewManager, this, function (_self) {
74
- var queueTimer = null;
75
- var itemQueue = [];
76
- var pageViewPerformanceSent = false;
77
- var firstPageViewSent = false;
78
- var _logger;
79
- if (core) {
80
- _logger = core.logger;
81
- }
82
- function _flushChannels(isAsync) {
83
- if (core) {
84
- core.flush(isAsync, function () {
85
- // Event flushed, callback added to prevent promise creation
86
- });
87
- }
88
- }
89
- function _startTimer() {
90
- if (!queueTimer) {
91
- queueTimer = scheduleTimeout((function () {
92
- queueTimer = null;
93
- var allItems = itemQueue.slice(0);
94
- var doFlush = false;
95
- itemQueue = [];
96
- arrForEach(allItems, function (item) {
97
- if (!item()) {
98
- // Not processed so rescheduled
99
- itemQueue.push(item);
100
- }
101
- else {
102
- doFlush = true;
103
- }
104
- });
105
- if (itemQueue[_DYN_LENGTH /* @min:%2elength */] > 0) {
106
- _startTimer();
107
- }
108
- if (doFlush) {
109
- // We process at least one item so flush the queue
110
- _flushChannels(true);
111
- }
112
- }), 100);
113
- }
114
- }
115
- function _addQueue(cb) {
116
- itemQueue.push(cb);
117
- _startTimer();
118
- }
119
- _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */] = function (pageView, customProperties) {
120
- var name = pageView.name;
121
- if (isNullOrUndefined(name) || typeof name !== "string") {
122
- var doc = getDocument();
123
- name = pageView.name = doc && doc.title || "";
124
- }
125
- var uri = pageView.uri;
126
- if (isNullOrUndefined(uri) || typeof uri !== "string") {
127
- var location_1 = getLocation();
128
- uri = pageView.uri = location_1 && location_1[_DYN_HREF /* @min:%2ehref */] || "";
129
- }
130
- if (!firstPageViewSent) {
131
- var perf = getPerformance();
132
- // Access the performance timing object
133
- var navigationEntries = (perf && perf[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */] && perf[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */]("navigation"));
134
- // Edge Case the navigation Entries may return an empty array and the timeOrigin is not supported on IE
135
- if (navigationEntries && navigationEntries[0] && !isUndefined(perf.timeOrigin)) {
136
- // Get the value of loadEventStart
137
- var loadEventStart = navigationEntries[0].loadEventStart;
138
- pageView[_DYN_START_TIME /* @min:%2estartTime */] = new Date(perf.timeOrigin + loadEventStart);
139
- }
140
- else {
141
- // calculate the start time manually
142
- var duration_1 = ((customProperties || pageView[_DYN_PROPERTIES /* @min:%2eproperties */] || {})[_DYN_DURATION /* @min:%2eduration */] || 0);
143
- pageView[_DYN_START_TIME /* @min:%2estartTime */] = new Date(new Date().getTime() - duration_1);
144
- }
145
- firstPageViewSent = true;
146
- }
147
- // case 1a. if performance timing is not supported by the browser, send the page view telemetry with the duration provided by the user. If the user
148
- // do not provide the duration, set duration to undefined
149
- // Also this is case 4
150
- if (!pageViewPerformanceManager[_DYN_IS_PERFORMANCE_TIMIN15 /* @min:%2eisPerformanceTimingSupported */]()) {
151
- appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);
152
- _flushChannels(true);
153
- if (!isWebWorker()) {
154
- // no navigation timing (IE 8, iOS Safari 8.4, Opera Mini 8 - see http://caniuse.com/#feat=nav-timing)
155
- _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 25 /* _eInternalMessageId.NavigationTimingNotSupported */, "trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");
156
- }
157
- return;
158
- }
159
- var pageViewSent = false;
160
- var customDuration;
161
- // if the performance timing is supported by the browser, calculate the custom duration
162
- var start = pageViewPerformanceManager[_DYN_GET_PERFORMANCE_TIMI16 /* @min:%2egetPerformanceTiming */]()[_DYN_NAVIGATION_START /* @min:%2enavigationStart */];
163
- if (start > 0) {
164
- customDuration = dateTimeUtilsDuration(start, +new Date);
165
- if (!pageViewPerformanceManager[_DYN_SHOULD_COLLECT_DURAT17 /* @min:%2eshouldCollectDuration */](customDuration)) {
166
- customDuration = undefined;
167
- }
168
- }
169
- // if the user has provided duration, send a page view telemetry with the provided duration. Otherwise, if
170
- // overridePageViewDuration is set to true, send a page view telemetry with the custom duration calculated earlier
171
- var duration;
172
- if (!isNullOrUndefined(customProperties) &&
173
- !isNullOrUndefined(customProperties[_DYN_DURATION /* @min:%2eduration */])) {
174
- duration = customProperties[_DYN_DURATION /* @min:%2eduration */];
175
- }
176
- if (overridePageViewDuration || !isNaN(duration)) {
177
- if (isNaN(duration)) {
178
- // case 3
179
- if (!customProperties) {
180
- customProperties = {};
181
- }
182
- customProperties[_DYN_DURATION /* @min:%2eduration */] = customDuration;
183
- }
184
- // case 2
185
- appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);
186
- _flushChannels(true);
187
- pageViewSent = true;
188
- }
189
- // now try to send the page view performance telemetry
190
- var maxDurationLimit = 60000;
191
- if (!customProperties) {
192
- customProperties = {};
193
- }
194
- // Queue the event for processing
195
- _addQueue(function () {
196
- var processed = false;
197
- try {
198
- if (pageViewPerformanceManager[_DYN_IS_PERFORMANCE_TIMIN18 /* @min:%2eisPerformanceTimingDataReady */]()) {
199
- processed = true;
200
- var pageViewPerformance = {
201
- name: name,
202
- uri: uri
203
- };
204
- pageViewPerformanceManager[_DYN_POPULATE_PAGE_VIEW_P4 /* @min:%2epopulatePageViewPerformanceEvent */](pageViewPerformance);
205
- if (!pageViewPerformance.isValid && !pageViewSent) {
206
- // If navigation timing gives invalid numbers, then go back to "override page view duration" mode.
207
- // That's the best value we can get that makes sense.
208
- customProperties[_DYN_DURATION /* @min:%2eduration */] = customDuration;
209
- appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);
210
- }
211
- else {
212
- if (!pageViewSent) {
213
- customProperties[_DYN_DURATION /* @min:%2eduration */] = pageViewPerformance.durationMs;
214
- appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);
215
- }
216
- if (!pageViewPerformanceSent) {
217
- appInsights[_DYN_SEND_PAGE_VIEW_PERFO3 /* @min:%2esendPageViewPerformanceInternal */](pageViewPerformance, customProperties);
218
- pageViewPerformanceSent = true;
219
- }
220
- }
221
- }
222
- else if (start > 0 && dateTimeUtilsDuration(start, +new Date) > maxDurationLimit) {
223
- // if performance timings are not ready but we exceeded the maximum duration limit, just log a page view telemetry
224
- // with the maximum duration limit. Otherwise, keep waiting until performance timings are ready
225
- processed = true;
226
- if (!pageViewSent) {
227
- customProperties[_DYN_DURATION /* @min:%2eduration */] = maxDurationLimit;
228
- appInsights[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageView, customProperties);
229
- }
230
- }
231
- }
232
- catch (e) {
233
- _throwInternal(_logger, 1 /* eLoggingSeverity.CRITICAL */, 38 /* _eInternalMessageId.TrackPVFailedCalc */, "trackPageView failed on page load calculation: " + getExceptionName(e), { exception: dumpObj(e) });
234
- }
235
- return processed;
236
- });
237
- };
238
- _self.teardown = function (unloadCtx, unloadState) {
239
- if (queueTimer) {
240
- queueTimer.cancel();
241
- queueTimer = null;
242
- var allItems = itemQueue.slice(0);
243
- itemQueue = [];
244
- arrForEach(allItems, function (item) {
245
- if (item()) ;
246
- });
247
- }
248
- };
249
- });
250
- }
251
- // Removed Stub for PageViewManager.prototype.trackPageView.
252
- // Removed Stub for PageViewManager.prototype.teardown.
253
- // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any
254
- // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.
255
- PageViewManager.__ieDyn=1;
256
-
257
- return PageViewManager;
258
- }());
259
-
260
- /*
261
- * Application Insights JavaScript SDK - Web Analytics, 3.3.9
262
- * Copyright (c) Microsoft and contributors. All rights reserved.
263
- */
264
-
265
- var MAX_DURATION_ALLOWED = 3600000; // 1h
266
- var botAgentNames = ["googlebot", "adsbot-google", "apis-google", "mediapartners-google"];
267
- function _isPerformanceTimingSupported() {
268
- var perf = getPerformance();
269
- return perf && !!perf.timing;
270
- }
271
- function _isPerformanceNavigationTimingSupported() {
272
- var perf = getPerformance();
273
- return perf && perf.getEntriesByType && perf.getEntriesByType("navigation")[_DYN_LENGTH /* @min:%2elength */] > 0;
274
- }
275
- function _isPerformanceTimingDataReady() {
276
- var perf = getPerformance();
277
- var timing = perf ? perf.timing : 0;
278
- return timing
279
- && timing.domainLookupStart > 0
280
- && timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */] > 0
281
- && timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */] > 0
282
- && timing[_DYN_REQUEST_START /* @min:%2erequestStart */] > 0
283
- && timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */] > 0
284
- && timing[_DYN_RESPONSE_END /* @min:%2eresponseEnd */] > 0
285
- && timing[_DYN_CONNECT_END /* @min:%2econnectEnd */] > 0
286
- && timing.domLoading > 0;
287
- }
288
- function _getPerformanceTiming() {
289
- if (_isPerformanceTimingSupported()) {
290
- return getPerformance().timing;
291
- }
292
- return null;
293
- }
294
- function _getPerformanceNavigationTiming() {
295
- if (_isPerformanceNavigationTimingSupported()) {
296
- return getPerformance()[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */]("navigation")[0];
297
- }
298
- return null;
299
- }
300
- /**
301
- * This method tells if given durations should be excluded from collection.
302
- */
303
- function _shouldCollectDuration() {
304
- var durations = [];
305
- for (var _i = 0; _i < arguments.length; _i++) {
306
- durations[_i] = arguments[_i];
307
- }
308
- var _navigator = getNavigator() || {};
309
- // a full list of Google crawlers user agent strings - https://support.google.com/webmasters/answer/1061943?hl=en
310
- var userAgent = _navigator.userAgent;
311
- var isGoogleBot = false;
312
- if (userAgent) {
313
- for (var i = 0; i < botAgentNames[_DYN_LENGTH /* @min:%2elength */]; i++) {
314
- isGoogleBot = isGoogleBot || strIndexOf(userAgent.toLowerCase(), botAgentNames[i]) !== -1;
315
- }
316
- }
317
- if (isGoogleBot) {
318
- // Don't report durations for GoogleBot, it is returning invalid values in performance.timing API.
319
- return false;
320
- }
321
- else {
322
- // for other page views, don't report if it's outside of a reasonable range
323
- for (var i = 0; i < durations[_DYN_LENGTH /* @min:%2elength */]; i++) {
324
- if (durations[i] < 0 || durations[i] >= MAX_DURATION_ALLOWED) {
325
- return false;
326
- }
327
- }
328
- }
329
- return true;
330
- }
331
- /**
332
- * Class encapsulates sending page view performance telemetry.
333
- */
334
- var PageViewPerformanceManager = /** @class */ (function () {
335
- function PageViewPerformanceManager(core) {
336
- var _logger = safeGetLogger(core);
337
- dynamicProto(PageViewPerformanceManager, this, function (_self) {
338
- _self[_DYN_POPULATE_PAGE_VIEW_P4 /* @min:%2epopulatePageViewPerformanceEvent */] = function (pageViewPerformance) {
339
- pageViewPerformance.isValid = false;
340
- /*
341
- * http://www.w3.org/TR/navigation-timing/#processing-model
342
- * |-navigationStart
343
- * | |-connectEnd
344
- * | ||-requestStart
345
- * | || |-responseStart
346
- * | || | |-responseEnd
347
- * | || | |
348
- * | || | | |-loadEventEnd
349
- * |---network---||---request---|---response---|---dom---|
350
- * |--------------------------total----------------------|
351
- *
352
- * total = The difference between the load event of the current document is completed and the first recorded timestamp of the performance entry : https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings#duration
353
- * network = Redirect time + App Cache + DNS lookup time + TCP connection time
354
- * request = Request time : https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings#request_time
355
- * response = Response time
356
- * dom = Document load time : https://html.spec.whatwg.org/multipage/dom.html#document-load-timing-info
357
- * = Document processing time : https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing/#document_processing
358
- * + Loading time : https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing/#loading
359
- */
360
- var navigationTiming = _getPerformanceNavigationTiming();
361
- var timing = _getPerformanceTiming();
362
- var total = 0;
363
- var network = 0;
364
- var request = 0;
365
- var response = 0;
366
- var dom = 0;
367
- if (navigationTiming || timing) {
368
- if (navigationTiming) {
369
- total = navigationTiming[_DYN_DURATION /* @min:%2eduration */];
370
- /**
371
- * support both cases:
372
- * - startTime is always zero: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming
373
- * - for older browsers where the startTime is not zero
374
- */
375
- network = navigationTiming[_DYN_START_TIME /* @min:%2estartTime */] === 0 ? navigationTiming[_DYN_CONNECT_END /* @min:%2econnectEnd */] : dateTimeUtilsDuration(navigationTiming[_DYN_START_TIME /* @min:%2estartTime */], navigationTiming[_DYN_CONNECT_END /* @min:%2econnectEnd */]);
376
- request = dateTimeUtilsDuration(navigationTiming.requestStart, navigationTiming[_DYN_RESPONSE_START /* @min:%2eresponseStart */]);
377
- response = dateTimeUtilsDuration(navigationTiming[_DYN_RESPONSE_START /* @min:%2eresponseStart */], navigationTiming[_DYN_RESPONSE_END /* @min:%2eresponseEnd */]);
378
- dom = dateTimeUtilsDuration(navigationTiming.responseEnd, navigationTiming[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);
379
- }
380
- else {
381
- total = dateTimeUtilsDuration(timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */], timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);
382
- network = dateTimeUtilsDuration(timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */], timing[_DYN_CONNECT_END /* @min:%2econnectEnd */]);
383
- request = dateTimeUtilsDuration(timing.requestStart, timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */]);
384
- response = dateTimeUtilsDuration(timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */], timing[_DYN_RESPONSE_END /* @min:%2eresponseEnd */]);
385
- dom = dateTimeUtilsDuration(timing.responseEnd, timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);
386
- }
387
- if (total === 0) {
388
- _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 10 /* _eInternalMessageId.ErrorPVCalc */, "error calculating page view performance.", { total: total, network: network, request: request, response: response, dom: dom });
389
- }
390
- else if (!_self[_DYN_SHOULD_COLLECT_DURAT17 /* @min:%2eshouldCollectDuration */](total, network, request, response, dom)) {
391
- _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 45 /* _eInternalMessageId.InvalidDurationValue */, "Invalid page load duration value. Browser perf data won't be sent.", { total: total, network: network, request: request, response: response, dom: dom });
392
- }
393
- else if (total < mathFloor(network) + mathFloor(request) + mathFloor(response) + mathFloor(dom)) {
394
- // some browsers may report individual components incorrectly so that the sum of the parts will be bigger than total PLT
395
- // in this case, don't report client performance from this page
396
- _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 8 /* _eInternalMessageId.ClientPerformanceMathError */, "client performance math error.", { total: total, network: network, request: request, response: response, dom: dom });
397
- }
398
- else {
399
- pageViewPerformance.durationMs = total;
400
- // // convert to timespans
401
- pageViewPerformance.perfTotal = pageViewPerformance[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(total);
402
- pageViewPerformance.networkConnect = msToTimeSpan(network);
403
- pageViewPerformance.sentRequest = msToTimeSpan(request);
404
- pageViewPerformance.receivedResponse = msToTimeSpan(response);
405
- pageViewPerformance.domProcessing = msToTimeSpan(dom);
406
- pageViewPerformance.isValid = true;
407
- }
408
- }
409
- };
410
- _self[_DYN_GET_PERFORMANCE_TIMI16 /* @min:%2egetPerformanceTiming */] = _getPerformanceTiming;
411
- _self[_DYN_IS_PERFORMANCE_TIMIN15 /* @min:%2eisPerformanceTimingSupported */] = _isPerformanceTimingSupported;
412
- _self[_DYN_IS_PERFORMANCE_TIMIN18 /* @min:%2eisPerformanceTimingDataReady */] = _isPerformanceTimingDataReady;
413
- _self[_DYN_SHOULD_COLLECT_DURAT17 /* @min:%2eshouldCollectDuration */] = _shouldCollectDuration;
414
- });
415
- }
416
- // Removed Stub for PageViewPerformanceManager.prototype.populatePageViewPerformanceEvent.
417
- // Removed Stub for PageViewPerformanceManager.prototype.getPerformanceTiming.
418
- // Removed Stub for PageViewPerformanceManager.prototype.isPerformanceTimingSupported.
419
- // Removed Stub for PageViewPerformanceManager.prototype.isPerformanceTimingDataReady.
420
- // Removed Stub for PageViewPerformanceManager.prototype.shouldCollectDuration.
421
- // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any
422
- // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.
423
- PageViewPerformanceManager.__ieDyn=1;
424
-
425
- return PageViewPerformanceManager;
426
- }());
427
-
428
- /*
429
- * Application Insights JavaScript SDK - Web Analytics, 3.3.9
430
- * Copyright (c) Microsoft and contributors. All rights reserved.
431
- */
432
-
433
- /**
434
- * Used to track page visit durations
435
- */
436
- var PageVisitTimeManager = /** @class */ (function () {
437
- /**
438
- * Creates a new instance of PageVisitTimeManager
439
- * @param pageVisitTimeTrackingHandler - Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)
440
- * @returns {}
441
- */
442
- function PageVisitTimeManager(logger, pageVisitTimeTrackingHandler) {
443
- var prevPageVisitDataKeyName = "prevPageVisitData";
444
- dynamicProto(PageVisitTimeManager, this, function (_self) {
445
- _self[_DYN_TRACK_PREVIOUS_PAGE_1 /* @min:%2etrackPreviousPageVisit */] = function (currentPageName, currentPageUrl) {
446
- try {
447
- // Restart timer for new page view
448
- var prevPageVisitTimeData = restartPageVisitTimer(currentPageName, currentPageUrl);
449
- // If there was a page already being timed, track the visit time for it now.
450
- if (prevPageVisitTimeData) {
451
- pageVisitTimeTrackingHandler(prevPageVisitTimeData.pageName, prevPageVisitTimeData.pageUrl, prevPageVisitTimeData.pageVisitTime);
452
- }
453
- }
454
- catch (e) {
455
- _warnToConsole(logger, "Auto track page visit time failed, metric will not be collected: " + dumpObj(e));
456
- }
457
- };
458
- /**
459
- * Stops timing of current page (if exists) and starts timing for duration of visit to pageName
460
- * @param pageName - Name of page to begin timing visit duration
461
- * @returns {PageVisitData} Page visit data (including duration) of pageName from last call to start or restart, if exists. Null if not.
462
- */
463
- function restartPageVisitTimer(pageName, pageUrl) {
464
- var prevPageVisitData = null;
465
- try {
466
- prevPageVisitData = stopPageVisitTimer();
467
- if (utlCanUseSessionStorage()) {
468
- if (utlGetSessionStorage(logger, prevPageVisitDataKeyName) != null) {
469
- throwError("Cannot call startPageVisit consecutively without first calling stopPageVisit");
470
- }
471
- var currPageVisitDataStr = getJSON().stringify(new PageVisitData(pageName, pageUrl));
472
- utlSetSessionStorage(logger, prevPageVisitDataKeyName, currPageVisitDataStr);
473
- }
474
- }
475
- catch (e) {
476
- _warnToConsole(logger, "Call to restart failed: " + dumpObj(e));
477
- prevPageVisitData = null;
478
- }
479
- return prevPageVisitData;
480
- }
481
- /**
482
- * Stops timing of current page, if exists.
483
- * @returns {PageVisitData} Page visit data (including duration) of pageName from call to start, if exists. Null if not.
484
- */
485
- function stopPageVisitTimer() {
486
- var prevPageVisitData = null;
487
- try {
488
- if (utlCanUseSessionStorage()) {
489
- // Define end time of page's visit
490
- var pageVisitEndTime = utcNow();
491
- // Try to retrieve page name and start time from session storage
492
- var pageVisitDataJsonStr = utlGetSessionStorage(logger, prevPageVisitDataKeyName);
493
- if (pageVisitDataJsonStr && hasJSON()) {
494
- // if previous page data exists, set end time of visit
495
- prevPageVisitData = getJSON().parse(pageVisitDataJsonStr);
496
- prevPageVisitData.pageVisitTime = pageVisitEndTime - prevPageVisitData.pageVisitStartTime;
497
- // Remove data from storage since we already used it
498
- utlRemoveSessionStorage(logger, prevPageVisitDataKeyName);
499
- }
500
- }
501
- }
502
- catch (e) {
503
- _warnToConsole(logger, "Stop page visit timer failed: " + dumpObj(e));
504
- prevPageVisitData = null;
505
- }
506
- return prevPageVisitData;
507
- }
508
- // For backward compatibility
509
- objDefine(_self, "_logger", { g: function () { return logger; } });
510
- objDefine(_self, "pageVisitTimeTrackingHandler", { g: function () { return pageVisitTimeTrackingHandler; } });
511
- });
512
- }
513
- // Removed Stub for PageVisitTimeManager.prototype.trackPreviousPageVisit.
514
- // This is a workaround for an IE bug when using dynamicProto() with classes that don't have any
515
- // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.
516
- PageVisitTimeManager.__ieDyn=1;
517
-
518
- return PageVisitTimeManager;
519
- }());
520
- var PageVisitData = /** @class */ (function () {
521
- function PageVisitData(pageName, pageUrl) {
522
- this.pageVisitStartTime = utcNow();
523
- this.pageName = pageName;
524
- this.pageUrl = pageUrl;
525
- }
526
- return PageVisitData;
527
- }());
528
-
529
- /*
530
- * Application Insights JavaScript SDK - Web Analytics, 3.3.9
531
- * Copyright (c) Microsoft and contributors. All rights reserved.
532
- */
533
-
534
- /**
535
- * Used to record timed events and page views.
536
- */
537
- var Timing = /** @class */ (function () {
538
- function Timing(logger, name) {
539
- var _self = this;
540
- var _events = {};
541
- _self.start = function (name) {
542
- if (typeof _events[name] !== "undefined") {
543
- _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 62 /* _eInternalMessageId.StartCalledMoreThanOnce */, "start was called more than once for this event without calling stop.", { name: name, key: name }, true);
544
- }
545
- _events[name] = +new Date;
546
- };
547
- _self.stop = function (name, url, properties, measurements) {
548
- var start = _events[name];
549
- if (isNaN(start)) {
550
- _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 63 /* _eInternalMessageId.StopCalledWithoutStart */, "stop was called without a corresponding start.", { name: name, key: name }, true);
551
- }
552
- else {
553
- var end = +new Date;
554
- var duration = dateTimeUtilsDuration(start, end);
555
- _self.action(name, url, duration, properties, measurements);
556
- }
557
- delete _events[name];
558
- _events[name] = undefined;
559
- };
560
- }
561
- return Timing;
562
- }());
563
-
564
- /*
565
- * Application Insights JavaScript SDK - Web Analytics, 3.3.9
566
- * Copyright (c) Microsoft and contributors. All rights reserved.
567
- */
568
- /**
569
- * ApplicationInsights.ts
570
- * @copyright Microsoft 2018
571
- */
572
- var _a;
573
- var strEvent = "event";
574
- function _dispatchEvent(target, evnt) {
575
- if (target && target.dispatchEvent && evnt) {
576
- target.dispatchEvent(evnt);
577
- }
578
- }
579
- function _getReason(error) {
580
- if (error && error.reason) {
581
- var reason = error.reason;
582
- if (!isString(reason) && isFunction(reason[_DYN_TO_STRING /* @min:%2etoString */])) {
583
- return reason[_DYN_TO_STRING /* @min:%2etoString */]();
584
- }
585
- return dumpObj(reason);
586
- }
587
- // Pass the original object down which will eventually get evaluated for any message or description
588
- return error || "";
589
- }
590
- var MinMilliSeconds = 60000;
591
- var defaultValues = objDeepFreeze((_a = {
592
- sessionRenewalMs: cfgDfSet(_chkConfigMilliseconds, 30 * 60 * 1000),
593
- sessionExpirationMs: cfgDfSet(_chkConfigMilliseconds, 24 * 60 * 60 * 1000),
594
- disableExceptionTracking: cfgDfBoolean()
595
- },
596
- _a[_DYN_AUTO_TRACK_PAGE_VISI10 /* @min:autoTrackPageVisitTime */] = cfgDfBoolean(),
597
- _a[_DYN_OVERRIDE_PAGE_VIEW_D8 /* @min:overridePageViewDuration */] = cfgDfBoolean(),
598
- _a[_DYN_ENABLE_UNHANDLED_PRO13 /* @min:enableUnhandledPromiseRejectionTracking */] = cfgDfBoolean(),
599
- _a[_DYN_AUTO_UNHANDLED_PROMI14 /* @min:autoUnhandledPromiseInstrumented */] = false,
600
- _a.samplingPercentage = cfgDfValidate(_chkSampling, 100),
601
- _a[_DYN_IS_STORAGE_USE_DISAB0 /* @min:isStorageUseDisabled */] = cfgDfBoolean(),
602
- _a[_DYN_IS_BROWSER_LINK_TRAC11 /* @min:isBrowserLinkTrackingEnabled */] = cfgDfBoolean(),
603
- _a[_DYN_ENABLE_AUTO_ROUTE_TR12 /* @min:enableAutoRouteTracking */] = cfgDfBoolean(),
604
- _a.namePrefix = cfgDfString(),
605
- _a.enableDebug = cfgDfBoolean(),
606
- _a.disableFlushOnBeforeUnload = cfgDfBoolean(),
607
- _a.disableFlushOnUnload = cfgDfBoolean(false, "disableFlushOnBeforeUnload"),
608
- _a.expCfg = cfgDfMerge({ inclScripts: false, expLog: undefined, maxLogs: 50 }),
609
- _a));
610
- function _chkConfigMilliseconds(value, defValue) {
611
- value = value || defValue;
612
- if (value < MinMilliSeconds) {
613
- value = MinMilliSeconds;
614
- }
615
- return +value;
616
- }
617
- function _chkSampling(value) {
618
- return !isNaN(value) && value > 0 && value <= 100;
619
- }
620
- function _updateStorageUsage(extConfig) {
621
- // Not resetting the storage usage as someone may have manually called utlDisableStorage, so this will only
622
- // reset based if the configuration option is provided
623
- if (!isUndefined(extConfig[_DYN_IS_STORAGE_USE_DISAB0 /* @min:%2eisStorageUseDisabled */])) {
624
- if (extConfig[_DYN_IS_STORAGE_USE_DISAB0 /* @min:%2eisStorageUseDisabled */]) {
625
- utlDisableStorage();
626
- }
627
- else {
628
- utlEnableStorage();
629
- }
630
- }
631
- }
632
- var AnalyticsPlugin = /** @class */ (function (_super) {
633
- __extendsFn(AnalyticsPlugin, _super);
634
- function AnalyticsPlugin() {
635
- var _this = _super.call(this) || this;
636
- _this.identifier = AnalyticsPluginIdentifier; // do not change name or priority
637
- _this.priority = 180; // take from reserved priority range 100- 200
638
- _this.autoRoutePVDelay = 500; // ms; Time to wait after a route change before triggering a pageview to allow DOM changes to take place
639
- var _eventTracking;
640
- var _pageTracking;
641
- var _pageViewManager;
642
- var _pageViewPerformanceManager;
643
- var _pageVisitTimeManager;
644
- var _preInitTelemetryInitializers;
645
- var _isBrowserLinkTrackingEnabled;
646
- var _browserLinkInitializerAdded;
647
- var _enableAutoRouteTracking;
648
- var _historyListenerAdded;
649
- var _disableExceptionTracking;
650
- var _autoExceptionInstrumented;
651
- var _enableUnhandledPromiseRejectionTracking;
652
- var _autoUnhandledPromiseInstrumented;
653
- var _extConfig;
654
- var _autoTrackPageVisitTime;
655
- var _expCfg;
656
- // array with max length of 2 that store current url and previous url for SPA page route change trackPageview use.
657
- var _prevUri; // Assigned in the constructor
658
- var _currUri;
659
- var _evtNamespace;
660
- // For testing error hooks only
661
- var _errorHookCnt;
662
- dynamicProto(AnalyticsPlugin, _this, function (_self, _base) {
663
- var _addHook = _base[_DYN__ADD_HOOK /* @min:%2e_addHook */];
664
- _initDefaults();
665
- _self.getCookieMgr = function () {
666
- return safeGetCookieMgr(_self[_DYN_CORE /* @min:%2ecore */]);
667
- };
668
- _self.processTelemetry = function (env, itemCtx) {
669
- _self.processNext(env, itemCtx);
670
- };
671
- _self.trackEvent = function (event, customProperties) {
672
- try {
673
- var telemetryItem = createTelemetryItem(event, Event$1[_DYN_DATA_TYPE /* @min:%2edataType */], Event$1[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);
674
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
675
- }
676
- catch (e) {
677
- _throwInternal(2 /* eLoggingSeverity.WARNING */, 39 /* _eInternalMessageId.TrackTraceFailed */, "trackTrace failed, trace will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
678
- }
679
- };
680
- /**
681
- * Start timing an extended event. Call `stopTrackEvent` to log the event when it ends.
682
- * @param name - A string that identifies this event uniquely within the document.
683
- */
684
- _self.startTrackEvent = function (name) {
685
- try {
686
- _eventTracking.start(name);
687
- }
688
- catch (e) {
689
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 29 /* _eInternalMessageId.StartTrackEventFailed */, "startTrackEvent failed, event will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
690
- }
691
- };
692
- /**
693
- * Log an extended event that you started timing with `startTrackEvent`.
694
- * @param name - The string you used to identify this event in `startTrackEvent`.
695
- * @param properties - map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.
696
- * @param measurements - map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.
697
- */
698
- _self.stopTrackEvent = function (name, properties, measurements) {
699
- try {
700
- _eventTracking.stop(name, undefined, properties, measurements);
701
- }
702
- catch (e) {
703
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 30 /* _eInternalMessageId.StopTrackEventFailed */, "stopTrackEvent failed, event will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
704
- }
705
- };
706
- /**
707
- * @description Log a diagnostic message
708
- * @param trace - the trace message
709
- * @param customProperties - Additional custom properties to include in the event
710
- */
711
- _self.trackTrace = function (trace, customProperties) {
712
- try {
713
- var telemetryItem = createTelemetryItem(trace, Trace[_DYN_DATA_TYPE /* @min:%2edataType */], Trace[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);
714
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
715
- }
716
- catch (e) {
717
- _throwInternal(2 /* eLoggingSeverity.WARNING */, 39 /* _eInternalMessageId.TrackTraceFailed */, "trackTrace failed, trace will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
718
- }
719
- };
720
- /**
721
- * @description Log a numeric value that is not associated with a specific event. Typically
722
- * used to send regular reports of performance indicators. To send single measurement, just
723
- * use the name and average fields of {@link IMetricTelemetry}. If you take measurements
724
- * frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements
725
- * and sending the resulting average at intervals
726
- * @param metric - input object argument. Only name and average are mandatory.
727
- * @param } customProperties additional data used to filter metrics in the
728
- * portal. Defaults to empty.
729
- */
730
- _self.trackMetric = function (metric, customProperties) {
731
- try {
732
- var telemetryItem = createTelemetryItem(metric, Metric[_DYN_DATA_TYPE /* @min:%2edataType */], Metric[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);
733
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
734
- }
735
- catch (e) {
736
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 36 /* _eInternalMessageId.TrackMetricFailed */, "trackMetric failed, metric will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
737
- }
738
- };
739
- /**
740
- * Logs that a page or other item was viewed.
741
- * @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.
742
- * @param customProperties - Additional data used to filter events and metrics. Defaults to empty.
743
- * If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration
744
- */
745
- _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */] = function (pageView, customProperties) {
746
- try {
747
- var inPv = pageView || {};
748
- _pageViewManager[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */](inPv, __assignFn(__assignFn(__assignFn({}, inPv.properties), inPv.measurements), customProperties));
749
- if (_autoTrackPageVisitTime) {
750
- _pageVisitTimeManager[_DYN_TRACK_PREVIOUS_PAGE_1 /* @min:%2etrackPreviousPageVisit */](inPv.name, inPv.uri);
751
- }
752
- }
753
- catch (e) {
754
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 37 /* _eInternalMessageId.TrackPVFailed */, "trackPageView failed, page view will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
755
- }
756
- };
757
- /**
758
- * Create a page view telemetry item and send it to the SDK pipeline through the core.track API
759
- * @param pageView - Page view item to be sent
760
- * @param properties - Custom properties (Part C) that a user can add to the telemetry item
761
- * @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
762
- */
763
- _self[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */] = function (pageView, properties, systemProperties) {
764
- var doc = getDocument();
765
- if (doc) {
766
- pageView.refUri = pageView.refUri === undefined ? doc.referrer : pageView.refUri;
767
- }
768
- if (isNullOrUndefined(pageView[_DYN_START_TIME /* @min:%2estartTime */])) {
769
- // calculate the start time manually
770
- var duration = ((properties || pageView[_DYN_PROPERTIES /* @min:%2eproperties */] || {})[_DYN_DURATION /* @min:%2eduration */] || 0);
771
- pageView[_DYN_START_TIME /* @min:%2estartTime */] = new Date(new Date().getTime() - duration);
772
- }
773
- var telemetryItem = createTelemetryItem(pageView, PageView[_DYN_DATA_TYPE /* @min:%2edataType */], PageView[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties, systemProperties);
774
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
775
- };
776
- /**
777
- * @ignore INTERNAL ONLY
778
- * @param pageViewPerformance
779
- * @param properties
780
- */
781
- _self[_DYN_SEND_PAGE_VIEW_PERFO3 /* @min:%2esendPageViewPerformanceInternal */] = function (pageViewPerformance, properties, systemProperties) {
782
- var telemetryItem = createTelemetryItem(pageViewPerformance, PageViewPerformance[_DYN_DATA_TYPE /* @min:%2edataType */], PageViewPerformance[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties, systemProperties);
783
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
784
- };
785
- /**
786
- * Send browser performance metrics.
787
- * @param pageViewPerformance
788
- * @param customProperties
789
- */
790
- _self.trackPageViewPerformance = function (pageViewPerformance, customProperties) {
791
- var inPvp = pageViewPerformance || {};
792
- try {
793
- _pageViewPerformanceManager[_DYN_POPULATE_PAGE_VIEW_P4 /* @min:%2epopulatePageViewPerformanceEvent */](inPvp);
794
- _self[_DYN_SEND_PAGE_VIEW_PERFO3 /* @min:%2esendPageViewPerformanceInternal */](inPvp, customProperties);
795
- }
796
- catch (e) {
797
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 37 /* _eInternalMessageId.TrackPVFailed */, "trackPageViewPerformance failed, page view will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
798
- }
799
- };
800
- /**
801
- * Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,
802
- * but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view
803
- * and send the event.
804
- * @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.
805
- */
806
- _self.startTrackPage = function (name) {
807
- try {
808
- if (typeof name !== "string") {
809
- var doc = getDocument();
810
- name = doc && doc.title || "";
811
- }
812
- _pageTracking.start(name);
813
- }
814
- catch (e) {
815
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 31 /* _eInternalMessageId.StartTrackFailed */, "startTrackPage failed, page view may not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
816
- }
817
- };
818
- /**
819
- * Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements.
820
- * The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.
821
- * @param name - The string you used as the name in startTrackPage. Defaults to the document title.
822
- * @param url - String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
823
- * @param properties - map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.
824
- * @param measurements - map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.
825
- */
826
- _self.stopTrackPage = function (name, url, properties, measurement) {
827
- try {
828
- if (typeof name !== "string") {
829
- var doc = getDocument();
830
- name = doc && doc.title || "";
831
- }
832
- if (typeof url !== "string") {
833
- var loc = getLocation();
834
- url = loc && loc[_DYN_HREF /* @min:%2ehref */] || "";
835
- }
836
- _pageTracking.stop(name, url, properties, measurement);
837
- if (_autoTrackPageVisitTime) {
838
- _pageVisitTimeManager[_DYN_TRACK_PREVIOUS_PAGE_1 /* @min:%2etrackPreviousPageVisit */](name, url);
839
- }
840
- }
841
- catch (e) {
842
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 32 /* _eInternalMessageId.StopTrackFailed */, "stopTrackPage failed, page view will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
843
- }
844
- };
845
- /**
846
- * @ignore INTERNAL ONLY
847
- * @param exception
848
- * @param properties
849
- * @param systemProperties
850
- */
851
- _self[_DYN_SEND_EXCEPTION_INTER5 /* @min:%2esendExceptionInternal */] = function (exception, customProperties, systemProperties) {
852
- // Adding additional edge cases to handle
853
- // - Not passing anything (null / undefined)
854
- var theError = (exception && (exception.exception || exception[_DYN_ERROR /* @min:%2eerror */])) ||
855
- // - Handle someone calling trackException based of v1 API where the exception was the Error
856
- isError(exception) && exception ||
857
- // - Handles no error being defined and instead of creating a new Error() instance attempt to map so any stacktrace
858
- // is preserved and does not list ApplicationInsights code as the source
859
- { name: (exception && typeof exception), message: exception || strNotSpecified };
860
- // If no exception object was passed assign to an empty object to avoid internal exceptions
861
- exception = exception || {};
862
- var exceptionPartB = new Exception(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), theError, exception[_DYN_PROPERTIES /* @min:%2eproperties */] || customProperties, exception.measurements, exception.severityLevel, exception.id).toInterface();
863
- var doc = getDocument();
864
- if (doc && (_expCfg === null || _expCfg === void 0 ? void 0 : _expCfg.inclScripts)) {
865
- var scriptsInfo = findAllScripts(doc);
866
- exceptionPartB[_DYN_PROPERTIES /* @min:%2eproperties */]["exceptionScripts"] = JSON.stringify(scriptsInfo);
867
- }
868
- if (_expCfg === null || _expCfg === void 0 ? void 0 : _expCfg.expLog) {
869
- var logs = _expCfg.expLog();
870
- if (logs && logs.logs && isArray(logs.logs)) {
871
- exceptionPartB[_DYN_PROPERTIES /* @min:%2eproperties */]["exceptionLog"] = logs.logs.slice(0, _expCfg.maxLogs).join("\n");
872
- }
873
- }
874
- var telemetryItem = createTelemetryItem(exceptionPartB, Exception[_DYN_DATA_TYPE /* @min:%2edataType */], Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties, systemProperties);
875
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
876
- };
877
- /**
878
- * Log an exception you have caught.
879
- *
880
- * @param exception - Object which contains exception to be sent
881
- * @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.
882
- *
883
- * Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.
884
- */
885
- _self.trackException = function (exception, customProperties) {
886
- if (exception && !exception.exception && exception[_DYN_ERROR /* @min:%2eerror */]) {
887
- exception.exception = exception[_DYN_ERROR /* @min:%2eerror */];
888
- }
889
- try {
890
- _self[_DYN_SEND_EXCEPTION_INTER5 /* @min:%2esendExceptionInternal */](exception, customProperties);
891
- }
892
- catch (e) {
893
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 35 /* _eInternalMessageId.TrackExceptionFailed */, "trackException failed, exception will not be collected: " + getExceptionName(e), { exception: dumpObj(e) });
894
- }
895
- };
896
- /**
897
- * @description Custom error handler for Application Insights Analytics
898
- * @param exception
899
- */
900
- _self._onerror = function (exception) {
901
- var error = exception && exception[_DYN_ERROR /* @min:%2eerror */];
902
- var evt = exception && exception.evt;
903
- try {
904
- if (!evt) {
905
- var _window = getWindow();
906
- if (_window) {
907
- evt = _window[strEvent];
908
- }
909
- }
910
- var url = (exception && exception.url) || (getDocument() || {}).URL;
911
- // If no error source is provided assume the default window.onerror handler
912
- var errorSrc = exception.errorSrc || "window.onerror@" + url + ":" + (exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0) + ":" + (exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0);
913
- var properties = {
914
- errorSrc: errorSrc,
915
- url: url,
916
- lineNumber: exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0,
917
- columnNumber: exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0,
918
- message: exception.message
919
- };
920
- if (isCrossOriginError(exception.message, exception.url, exception.lineNumber, exception.columnNumber, exception[_DYN_ERROR /* @min:%2eerror */])) {
921
- _sendCORSException(Exception[_DYN__CREATE_AUTO_EXCEPTI6 /* @min:%2eCreateAutoException */]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.", url, exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0, exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0, error, evt, null, errorSrc), properties);
922
- }
923
- else {
924
- if (!exception.errorSrc) {
925
- exception.errorSrc = errorSrc;
926
- }
927
- _self.trackException({ exception: exception, severityLevel: 3 /* eSeverityLevel.Error */ }, properties);
928
- }
929
- }
930
- catch (e) {
931
- var errorString = error ? (error.name + ", " + error.message) : "null";
932
- _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 11 /* _eInternalMessageId.ExceptionWhileLoggingError */, "_onError threw exception while logging error, error will not be collected: "
933
- + getExceptionName(e), { exception: dumpObj(e), errorString: errorString });
934
- }
935
- };
936
- _self[_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */] = function (telemetryInitializer) {
937
- if (_self[_DYN_CORE /* @min:%2ecore */]) {
938
- // Just add to the core
939
- return _self[_DYN_CORE /* @min:%2ecore */][_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */](telemetryInitializer);
940
- }
941
- // Handle "pre-initialization" telemetry initializers (for backward compatibility)
942
- if (!_preInitTelemetryInitializers) {
943
- _preInitTelemetryInitializers = [];
944
- }
945
- _preInitTelemetryInitializers.push(telemetryInitializer);
946
- };
947
- _self.initialize = function (config, core, extensions, pluginChain) {
948
- if (_self.isInitialized()) {
949
- return;
950
- }
951
- if (isNullOrUndefined(core)) {
952
- throwError("Error initializing");
953
- }
954
- _base.initialize(config, core, extensions, pluginChain);
955
- try {
956
- _evtNamespace = mergeEvtNamespace(createUniqueNamespace(_self.identifier), core.evtNamespace && core.evtNamespace());
957
- if (_preInitTelemetryInitializers) {
958
- arrForEach(_preInitTelemetryInitializers, function (initializer) {
959
- core[_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */](initializer);
960
- });
961
- _preInitTelemetryInitializers = null;
962
- }
963
- _populateDefaults(config);
964
- _pageViewPerformanceManager = new PageViewPerformanceManager(_self[_DYN_CORE /* @min:%2ecore */]);
965
- _pageViewManager = new PageViewManager(_self, _extConfig.overridePageViewDuration, _self[_DYN_CORE /* @min:%2ecore */], _pageViewPerformanceManager);
966
- _pageVisitTimeManager = new PageVisitTimeManager(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), function (pageName, pageUrl, pageVisitTime) { return trackPageVisitTime(pageName, pageUrl, pageVisitTime); });
967
- _eventTracking = new Timing(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), "trackEvent");
968
- _eventTracking.action =
969
- function (name, url, duration, properties, measurements) {
970
- if (!properties) {
971
- properties = {};
972
- }
973
- if (!measurements) {
974
- measurements = {};
975
- }
976
- properties.duration = duration[_DYN_TO_STRING /* @min:%2etoString */]();
977
- _self.trackEvent({ name: name, properties: properties, measurements: measurements });
978
- };
979
- // initialize page view timing
980
- _pageTracking = new Timing(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), "trackPageView");
981
- _pageTracking.action = function (name, url, duration, properties, measurements) {
982
- // duration must be a custom property in order for the collector to extract it
983
- if (isNullOrUndefined(properties)) {
984
- properties = {};
985
- }
986
- properties.duration = duration[_DYN_TO_STRING /* @min:%2etoString */]();
987
- var pageViewItem = {
988
- name: name,
989
- uri: url,
990
- properties: properties,
991
- measurements: measurements
992
- };
993
- _self[_DYN_SEND_PAGE_VIEW_INTER2 /* @min:%2esendPageViewInternal */](pageViewItem, properties);
994
- };
995
- if (hasWindow()) {
996
- _updateExceptionTracking();
997
- _updateLocationChange();
998
- }
999
- }
1000
- catch (e) {
1001
- // resetting the initialized state because of failure
1002
- _self.setInitialized(false);
1003
- throw e;
1004
- }
1005
- };
1006
- _self._doTeardown = function (unloadCtx, unloadState) {
1007
- _pageViewManager && _pageViewManager.teardown(unloadCtx, unloadState);
1008
- // Just register to remove all events associated with this namespace
1009
- eventOff(window, null, null, _evtNamespace);
1010
- _initDefaults();
1011
- };
1012
- _self["_getDbgPlgTargets"] = function () {
1013
- return [_errorHookCnt, _autoExceptionInstrumented];
1014
- };
1015
- function _populateDefaults(config) {
1016
- // it is used for 1DS as well, so config type should be IConfiguration only
1017
- var identifier = _self.identifier;
1018
- var core = _self[_DYN_CORE /* @min:%2ecore */];
1019
- _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(config, function () {
1020
- var ctx = createProcessTelemetryContext(null, config, core);
1021
- _extConfig = ctx.getExtCfg(identifier, defaultValues);
1022
- // make sure auto exception is instrumented only once and it won't be overriden by the following config changes
1023
- _autoExceptionInstrumented = _autoExceptionInstrumented || config[_DYN_AUTO_EXCEPTION_INSTR9 /* @min:%2eautoExceptionInstrumented */] || _extConfig[_DYN_AUTO_EXCEPTION_INSTR9 /* @min:%2eautoExceptionInstrumented */];
1024
- _expCfg = _extConfig.expCfg;
1025
- _autoTrackPageVisitTime = _extConfig[_DYN_AUTO_TRACK_PAGE_VISI10 /* @min:%2eautoTrackPageVisitTime */];
1026
- if (config.storagePrefix) {
1027
- utlSetStoragePrefix(config.storagePrefix);
1028
- }
1029
- _updateStorageUsage(_extConfig);
1030
- // _updateBrowserLinkTracking
1031
- _isBrowserLinkTrackingEnabled = _extConfig[_DYN_IS_BROWSER_LINK_TRAC11 /* @min:%2eisBrowserLinkTrackingEnabled */];
1032
- _addDefaultTelemetryInitializers();
1033
- }));
1034
- }
1035
- /**
1036
- * Log a page visit time
1037
- * @param pageName - Name of page
1038
- * @param pageVisitDuration - Duration of visit to the page in milliseconds
1039
- */
1040
- function trackPageVisitTime(pageName, pageUrl, pageVisitTime) {
1041
- var properties = { PageName: pageName, PageUrl: pageUrl };
1042
- _self.trackMetric({
1043
- name: "PageVisitTime",
1044
- average: pageVisitTime,
1045
- max: pageVisitTime,
1046
- min: pageVisitTime,
1047
- sampleCount: 1
1048
- }, properties);
1049
- }
1050
- function _addDefaultTelemetryInitializers() {
1051
- if (!_browserLinkInitializerAdded && _isBrowserLinkTrackingEnabled) {
1052
- var browserLinkPaths_1 = ["/browserLinkSignalR/", "/__browserLink/"];
1053
- var dropBrowserLinkRequests = function (envelope) {
1054
- if (_isBrowserLinkTrackingEnabled && envelope.baseType === RemoteDependencyData[_DYN_DATA_TYPE /* @min:%2edataType */]) {
1055
- var remoteData = envelope.baseData;
1056
- if (remoteData) {
1057
- for (var i = 0; i < browserLinkPaths_1[_DYN_LENGTH /* @min:%2elength */]; i++) {
1058
- if (remoteData.target && strIndexOf(remoteData.target, browserLinkPaths_1[i]) >= 0) {
1059
- return false;
1060
- }
1061
- }
1062
- }
1063
- }
1064
- return true;
1065
- };
1066
- _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](_self[_DYN_ADD_TELEMETRY_INITIA7 /* @min:%2eaddTelemetryInitializer */](dropBrowserLinkRequests));
1067
- _browserLinkInitializerAdded = true;
1068
- }
1069
- }
1070
- function _sendCORSException(exception, properties) {
1071
- var telemetryItem = createTelemetryItem(exception, Exception[_DYN_DATA_TYPE /* @min:%2edataType */], Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties);
1072
- _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);
1073
- }
1074
- function _updateExceptionTracking() {
1075
- var _window = getWindow();
1076
- var locn = getLocation(true);
1077
- _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extConfig, function () {
1078
- _disableExceptionTracking = _extConfig.disableExceptionTracking;
1079
- if (!_disableExceptionTracking && !_autoExceptionInstrumented && !_extConfig[_DYN_AUTO_EXCEPTION_INSTR9 /* @min:%2eautoExceptionInstrumented */]) {
1080
- // We want to enable exception auto collection and it has not been done so yet
1081
- _addHook(InstrumentEvent(_window, "onerror", {
1082
- ns: _evtNamespace,
1083
- rsp: function (callDetails, message, url, lineNumber, columnNumber, error) {
1084
- if (!_disableExceptionTracking && callDetails.rslt !== true) {
1085
- _self._onerror(Exception[_DYN__CREATE_AUTO_EXCEPTI6 /* @min:%2eCreateAutoException */](message, url, lineNumber, columnNumber, error, callDetails.evt));
1086
- }
1087
- }
1088
- }, false));
1089
- _errorHookCnt++;
1090
- _autoExceptionInstrumented = true;
1091
- }
1092
- }));
1093
- _addUnhandledPromiseRejectionTracking(_window, locn);
1094
- }
1095
- function _updateLocationChange() {
1096
- var win = getWindow();
1097
- var locn = getLocation(true);
1098
- _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extConfig, function () {
1099
- _enableAutoRouteTracking = _extConfig[_DYN_ENABLE_AUTO_ROUTE_TR12 /* @min:%2eenableAutoRouteTracking */] === true;
1100
- /**
1101
- * Create a custom "locationchange" event which is triggered each time the history object is changed
1102
- */
1103
- if (win && _enableAutoRouteTracking && !_historyListenerAdded && hasHistory()) {
1104
- var _history = getHistory();
1105
- if (isFunction(_history.pushState) && isFunction(_history.replaceState) && typeof Event !== strShimUndefined) {
1106
- _addHistoryListener(win, _history, locn);
1107
- }
1108
- }
1109
- }));
1110
- }
1111
- function _getDistributedTraceCtx() {
1112
- var distributedTraceCtx = null;
1113
- if (_self[_DYN_CORE /* @min:%2ecore */] && _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx) {
1114
- distributedTraceCtx = _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx(false);
1115
- }
1116
- if (!distributedTraceCtx) {
1117
- // Fallback when using an older Core and PropertiesPlugin
1118
- var properties = _self[_DYN_CORE /* @min:%2ecore */].getPlugin(PropertiesPluginIdentifier);
1119
- if (properties) {
1120
- var context = properties.plugin.context;
1121
- if (context) {
1122
- distributedTraceCtx = createDistributedTraceContextFromTrace(context.telemetryTrace);
1123
- }
1124
- }
1125
- }
1126
- return distributedTraceCtx;
1127
- }
1128
- /**
1129
- * Create a custom "locationchange" event which is triggered each time the history object is changed
1130
- */
1131
- function _addHistoryListener(win, history, locn) {
1132
- if (_historyListenerAdded) {
1133
- return;
1134
- }
1135
- // Name Prefix is only referenced during the initial initialization and cannot be changed afterwards
1136
- var namePrefix = _extConfig.namePrefix || "";
1137
- function _popstateHandler() {
1138
- if (_enableAutoRouteTracking) {
1139
- _dispatchEvent(win, createDomEvent(namePrefix + "locationchange"));
1140
- }
1141
- }
1142
- function _locationChangeHandler() {
1143
- // We always track the changes (if the handler is installed) to handle the feature being disabled between location changes
1144
- if (_currUri) {
1145
- _prevUri = _currUri;
1146
- _currUri = locn && locn[_DYN_HREF /* @min:%2ehref */] || "";
1147
- }
1148
- else {
1149
- _currUri = locn && locn[_DYN_HREF /* @min:%2ehref */] || "";
1150
- }
1151
- if (_enableAutoRouteTracking) {
1152
- var distributedTraceCtx = _getDistributedTraceCtx();
1153
- if (distributedTraceCtx) {
1154
- distributedTraceCtx.setTraceId(generateW3CId());
1155
- var traceLocationName = "_unknown_";
1156
- if (locn && locn.pathname) {
1157
- traceLocationName = locn.pathname + (locn.hash || "");
1158
- }
1159
- // This populates the ai.operation.name which has a maximum size of 1024 so we need to sanitize it
1160
- distributedTraceCtx.setName(dataSanitizeString(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), traceLocationName));
1161
- }
1162
- scheduleTimeout((function (uri) {
1163
- // todo: override start time so that it is not affected by autoRoutePVDelay
1164
- _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */]({ refUri: uri, properties: { duration: 0 } }); // SPA route change loading durations are undefined, so send 0
1165
- }).bind(_self, _prevUri), _self.autoRoutePVDelay);
1166
- }
1167
- }
1168
- _addHook(InstrumentEvent(history, "pushState", {
1169
- ns: _evtNamespace,
1170
- rsp: function () {
1171
- if (_enableAutoRouteTracking) {
1172
- _dispatchEvent(win, createDomEvent(namePrefix + "pushState"));
1173
- _dispatchEvent(win, createDomEvent(namePrefix + "locationchange"));
1174
- }
1175
- }
1176
- }, true));
1177
- _addHook(InstrumentEvent(history, "replaceState", {
1178
- ns: _evtNamespace,
1179
- rsp: function () {
1180
- if (_enableAutoRouteTracking) {
1181
- _dispatchEvent(win, createDomEvent(namePrefix + "replaceState"));
1182
- _dispatchEvent(win, createDomEvent(namePrefix + "locationchange"));
1183
- }
1184
- }
1185
- }, true));
1186
- eventOn(win, namePrefix + "popstate", _popstateHandler, _evtNamespace);
1187
- eventOn(win, namePrefix + "locationchange", _locationChangeHandler, _evtNamespace);
1188
- _historyListenerAdded = true;
1189
- }
1190
- function _addUnhandledPromiseRejectionTracking(_window, _location) {
1191
- _self[_DYN__ADD_HOOK /* @min:%2e_addHook */](onConfigChange(_extConfig, function () {
1192
- _enableUnhandledPromiseRejectionTracking = _extConfig[_DYN_ENABLE_UNHANDLED_PRO13 /* @min:%2eenableUnhandledPromiseRejectionTracking */] === true;
1193
- _autoExceptionInstrumented = _autoExceptionInstrumented || _extConfig[_DYN_AUTO_UNHANDLED_PROMI14 /* @min:%2eautoUnhandledPromiseInstrumented */];
1194
- if (_enableUnhandledPromiseRejectionTracking && !_autoUnhandledPromiseInstrumented) {
1195
- // We want to enable exception auto collection and it has not been done so yet
1196
- _addHook(InstrumentEvent(_window, "onunhandledrejection", {
1197
- ns: _evtNamespace,
1198
- rsp: function (callDetails, error) {
1199
- if (_enableUnhandledPromiseRejectionTracking && callDetails.rslt !== true) { // handled could be typeof function
1200
- _self._onerror(Exception[_DYN__CREATE_AUTO_EXCEPTI6 /* @min:%2eCreateAutoException */](_getReason(error), _location ? _location[_DYN_HREF /* @min:%2ehref */] : "", 0, 0, error, callDetails.evt));
1201
- }
1202
- }
1203
- }, false));
1204
- _errorHookCnt++;
1205
- _extConfig[_DYN_AUTO_UNHANDLED_PROMI14 /* @min:%2eautoUnhandledPromiseInstrumented */] = _autoUnhandledPromiseInstrumented = true;
1206
- }
1207
- }));
1208
- }
1209
- /**
1210
- * This method will throw exceptions in debug mode or attempt to log the error as a console warning.
1211
- * @param severity - The severity of the log message
1212
- * @param msgId - The log message.
1213
- */
1214
- function _throwInternal(severity, msgId, msg, properties, isUserAct) {
1215
- _self[_DYN_DIAG_LOG /* @min:%2ediagLog */]().throwInternal(severity, msgId, msg, properties, isUserAct);
1216
- }
1217
- function _initDefaults() {
1218
- _eventTracking = null;
1219
- _pageTracking = null;
1220
- _pageViewManager = null;
1221
- _pageViewPerformanceManager = null;
1222
- _pageVisitTimeManager = null;
1223
- _preInitTelemetryInitializers = null;
1224
- _isBrowserLinkTrackingEnabled = false;
1225
- _browserLinkInitializerAdded = false;
1226
- _enableAutoRouteTracking = false;
1227
- _historyListenerAdded = false;
1228
- _disableExceptionTracking = false;
1229
- _autoExceptionInstrumented = false;
1230
- _enableUnhandledPromiseRejectionTracking = false;
1231
- _autoUnhandledPromiseInstrumented = false;
1232
- _autoTrackPageVisitTime = false;
1233
- // array with max length of 2 that store current url and previous url for SPA page route change trackPageview use.
1234
- var location = getLocation(true);
1235
- _prevUri = location && location[_DYN_HREF /* @min:%2ehref */] || "";
1236
- _currUri = null;
1237
- _evtNamespace = null;
1238
- _extConfig = null;
1239
- _errorHookCnt = 0;
1240
- // Define _self.config
1241
- objDefine(_self, "config", {
1242
- g: function () { return _extConfig; }
1243
- });
1244
- }
1245
- // For backward compatibility
1246
- objDefine(_self, "_pageViewManager", { g: function () { return _pageViewManager; } });
1247
- objDefine(_self, "_pageViewPerformanceManager", { g: function () { return _pageViewPerformanceManager; } });
1248
- objDefine(_self, "_pageVisitTimeManager", { g: function () { return _pageVisitTimeManager; } });
1249
- objDefine(_self, "_evtNamespace", { g: function () { return "." + _evtNamespace; } });
1250
- });
1251
- return _this;
1252
- }
1253
- // Removed Stub for AnalyticsPlugin.prototype.getCookieMgr.
1254
- // Removed Stub for AnalyticsPlugin.prototype.processTelemetry.
1255
- // Removed Stub for AnalyticsPlugin.prototype.trackEvent.
1256
- // Removed Stub for AnalyticsPlugin.prototype.startTrackEvent.
1257
- // Removed Stub for AnalyticsPlugin.prototype.stopTrackEvent.
1258
- // Removed Stub for AnalyticsPlugin.prototype.trackTrace.
1259
- // Removed Stub for AnalyticsPlugin.prototype.trackMetric.
1260
- // Removed Stub for AnalyticsPlugin.prototype.trackPageView.
1261
- // Removed Stub for AnalyticsPlugin.prototype.sendPageViewInternal.
1262
- // Removed Stub for AnalyticsPlugin.prototype.sendPageViewPerformanceInternal.
1263
- // Removed Stub for AnalyticsPlugin.prototype.trackPageViewPerformance.
1264
- // Removed Stub for AnalyticsPlugin.prototype.startTrackPage.
1265
- // Removed Stub for AnalyticsPlugin.prototype.stopTrackPage.
1266
- // Removed Stub for AnalyticsPlugin.prototype.sendExceptionInternal.
1267
- // Removed Stub for AnalyticsPlugin.prototype.trackException.
1268
- // Removed Stub for AnalyticsPlugin.prototype._onerror.
1269
- // Removed Stub for AnalyticsPlugin.prototype.addTelemetryInitializer.
1270
- // Removed Stub for AnalyticsPlugin.prototype.initialize.
1271
- AnalyticsPlugin.Version = '3.3.9'; // Not currently used anywhere
1272
- return AnalyticsPlugin;
1273
- }(BaseTelemetryPlugin));
1274
-
1275
- export { AnalyticsPlugin as A };