@jevelin/bridge 2.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +78 -0
  3. package/dist/esm/_virtual/_polyfill-node.buffer.js +1 -0
  4. package/dist/esm/_virtual/_polyfill-node.global.js +1 -0
  5. package/dist/esm/_virtual/browser.js +1 -0
  6. package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js +1 -0
  7. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js +1 -0
  8. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js +1 -0
  9. package/dist/esm/node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js +1 -0
  10. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/native.js +1 -0
  11. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  12. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/rng.js +1 -0
  13. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
  14. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/v4.js +1 -0
  15. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/validate.js +1 -0
  16. package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
  17. package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
  18. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +19 -0
  19. package/dist/esm/packages/teams-js/dts/internal/childCommunication.d.ts +38 -0
  20. package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +151 -0
  21. package/dist/esm/packages/teams-js/dts/internal/communicationUtils.d.ts +20 -0
  22. package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
  23. package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
  24. package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
  25. package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
  26. package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
  27. package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +13 -0
  28. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +101 -0
  29. package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
  30. package/dist/esm/packages/teams-js/dts/internal/idValidation.d.ts +37 -0
  31. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +58 -0
  32. package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
  33. package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
  34. package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
  35. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +80 -0
  36. package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +107 -0
  37. package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +27 -0
  38. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +33 -0
  39. package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +32 -0
  40. package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +411 -0
  41. package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
  42. package/dist/esm/packages/teams-js/dts/internal/urlPattern.d.ts +50 -0
  43. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +226 -0
  44. package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +13 -0
  45. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
  46. package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
  47. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
  48. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
  49. package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
  50. package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
  51. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
  52. package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
  53. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
  54. package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +5 -0
  55. package/dist/esm/packages/teams-js/dts/private/copilot/customTelemetry.d.ts +33 -0
  56. package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +31 -0
  57. package/dist/esm/packages/teams-js/dts/private/copilot/sidePanel.d.ts +75 -0
  58. package/dist/esm/packages/teams-js/dts/private/copilot/sidePanelInterfaces.d.ts +522 -0
  59. package/dist/esm/packages/teams-js/dts/private/copilot/view.d.ts +21 -0
  60. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +472 -0
  61. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +93 -0
  62. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +111 -0
  63. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +48 -0
  64. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForDA.d.ts +75 -0
  65. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +122 -0
  66. package/dist/esm/packages/teams-js/dts/private/externalAppErrorHandling.d.ts +19 -0
  67. package/dist/esm/packages/teams-js/dts/private/files.d.ts +766 -0
  68. package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +50 -0
  69. package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
  70. package/dist/esm/packages/teams-js/dts/private/index.d.ts +29 -0
  71. package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +290 -0
  72. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -0
  73. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +208 -0
  74. package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
  75. package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
  76. package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
  77. package/dist/esm/packages/teams-js/dts/private/nestedAppAuth/nestedAppAuthBridge.d.ts +32 -0
  78. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +32 -0
  79. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +94 -0
  80. package/dist/esm/packages/teams-js/dts/private/plugins.d.ts +94 -0
  81. package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +94 -0
  82. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +303 -0
  83. package/dist/esm/packages/teams-js/dts/private/store.d.ts +128 -0
  84. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
  85. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
  86. package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
  87. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +250 -0
  88. package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetContext.d.ts +121 -0
  89. package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetHosting.d.ts +101 -0
  90. package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
  91. package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +648 -0
  92. package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +41 -0
  93. package/dist/esm/packages/teams-js/dts/public/appId.d.ts +28 -0
  94. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
  95. package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
  96. package/dist/esm/packages/teams-js/dts/public/appPerformanceMetrics.d.ts +24 -0
  97. package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
  98. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +417 -0
  99. package/dist/esm/packages/teams-js/dts/public/badge.d.ts +42 -0
  100. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +54 -0
  101. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +41 -0
  102. package/dist/esm/packages/teams-js/dts/public/call.d.ts +54 -0
  103. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +68 -0
  104. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +35 -0
  105. package/dist/esm/packages/teams-js/dts/public/connectivity.d.ts +52 -0
  106. package/dist/esm/packages/teams-js/dts/public/constants.d.ts +203 -0
  107. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +22 -0
  108. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +22 -0
  109. package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +49 -0
  110. package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +19 -0
  111. package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +25 -0
  112. package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +41 -0
  113. package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +54 -0
  114. package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
  115. package/dist/esm/packages/teams-js/dts/public/externalApp.d.ts +130 -0
  116. package/dist/esm/packages/teams-js/dts/public/featureFlags.d.ts +44 -0
  117. package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +68 -0
  118. package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +33 -0
  119. package/dist/esm/packages/teams-js/dts/public/haptics.d.ts +42 -0
  120. package/dist/esm/packages/teams-js/dts/public/index.d.ts +57 -0
  121. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1321 -0
  122. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +220 -0
  123. package/dist/esm/packages/teams-js/dts/public/location.d.ts +85 -0
  124. package/dist/esm/packages/teams-js/dts/public/mail/handoff.d.ts +48 -0
  125. package/dist/esm/packages/teams-js/dts/public/mail/mail.d.ts +97 -0
  126. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +320 -0
  127. package/dist/esm/packages/teams-js/dts/public/media.d.ts +435 -0
  128. package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
  129. package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
  130. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +187 -0
  131. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +64 -0
  132. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +46 -0
  133. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +64 -0
  134. package/dist/esm/packages/teams-js/dts/public/offlineStorage/drafts.d.ts +104 -0
  135. package/dist/esm/packages/teams-js/dts/public/offlineStorage/inbox.d.ts +86 -0
  136. package/dist/esm/packages/teams-js/dts/public/offlineStorage/offlineStorage.d.ts +258 -0
  137. package/dist/esm/packages/teams-js/dts/public/offlineStorage/outbox.d.ts +112 -0
  138. package/dist/esm/packages/teams-js/dts/public/offlineStorage/sent.d.ts +69 -0
  139. package/dist/esm/packages/teams-js/dts/public/offlineStorage/sync.d.ts +183 -0
  140. package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
  141. package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
  142. package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
  143. package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
  144. package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
  145. package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
  146. package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
  147. package/dist/esm/packages/teams-js/dts/public/people.d.ts +73 -0
  148. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +105 -0
  149. package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
  150. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +240 -0
  151. package/dist/esm/packages/teams-js/dts/public/search.d.ts +90 -0
  152. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +31 -0
  153. package/dist/esm/packages/teams-js/dts/public/security.d.ts +83 -0
  154. package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
  155. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +102 -0
  156. package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
  157. package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +93 -0
  158. package/dist/esm/packages/teams-js/dts/public/shortcutRelay.d.ts +53 -0
  159. package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
  160. package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
  161. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +52 -0
  162. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +79 -0
  163. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +118 -0
  164. package/dist/esm/packages/teams-js/dts/public/uuidObject.d.ts +38 -0
  165. package/dist/esm/packages/teams-js/dts/public/validatedSafeString.d.ts +25 -0
  166. package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
  167. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +212 -0
  168. package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
  169. package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
  170. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +25 -0
  171. package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -0
  172. package/dist/esm/packages/teams-js/src/index.js +1 -0
  173. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
  174. package/dist/esm/packages/teams-js/src/internal/childCommunication.js +1 -0
  175. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -0
  176. package/dist/esm/packages/teams-js/src/internal/communicationUtils.js +1 -0
  177. package/dist/esm/packages/teams-js/src/internal/constants.js +1 -0
  178. package/dist/esm/packages/teams-js/src/internal/deepLinkConstants.js +1 -0
  179. package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -0
  180. package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
  181. package/dist/esm/packages/teams-js/src/internal/emailAddressValidation.js +1 -0
  182. package/dist/esm/packages/teams-js/src/internal/globalVars.js +1 -0
  183. package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -0
  184. package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
  185. package/dist/esm/packages/teams-js/src/internal/idValidation.js +1 -0
  186. package/dist/esm/packages/teams-js/src/internal/internalAPIs.js +1 -0
  187. package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -0
  188. package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -0
  189. package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -0
  190. package/dist/esm/packages/teams-js/src/internal/nestedAppAuthUtils.js +1 -0
  191. package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
  192. package/dist/esm/packages/teams-js/src/internal/profileUtil.js +1 -0
  193. package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
  194. package/dist/esm/packages/teams-js/src/internal/telemetry.js +1 -0
  195. package/dist/esm/packages/teams-js/src/internal/typeCheckUtilities.js +1 -0
  196. package/dist/esm/packages/teams-js/src/internal/urlPattern.js +1 -0
  197. package/dist/esm/packages/teams-js/src/internal/utils.js +1 -0
  198. package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -0
  199. package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -0
  200. package/dist/esm/packages/teams-js/src/internal/videoFrameTick.js +1 -0
  201. package/dist/esm/packages/teams-js/src/internal/videoPerformanceMonitor.js +1 -0
  202. package/dist/esm/packages/teams-js/src/internal/videoPerformanceStatistics.js +1 -0
  203. package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
  204. package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
  205. package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -0
  206. package/dist/esm/packages/teams-js/src/private/constants.js +1 -0
  207. package/dist/esm/packages/teams-js/src/private/conversations.js +1 -0
  208. package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
  209. package/dist/esm/packages/teams-js/src/private/copilot/customTelemetry.js +1 -0
  210. package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
  211. package/dist/esm/packages/teams-js/src/private/copilot/sidePanel.js +1 -0
  212. package/dist/esm/packages/teams-js/src/private/copilot/sidePanelInterfaces.js +1 -0
  213. package/dist/esm/packages/teams-js/src/private/copilot/view.js +1 -0
  214. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -0
  215. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -0
  216. package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -0
  217. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -0
  218. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForDA.js +1 -0
  219. package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -0
  220. package/dist/esm/packages/teams-js/src/private/externalAppErrorHandling.js +1 -0
  221. package/dist/esm/packages/teams-js/src/private/files.js +1 -0
  222. package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
  223. package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
  224. package/dist/esm/packages/teams-js/src/private/interfaces.js +1 -0
  225. package/dist/esm/packages/teams-js/src/private/logs.js +1 -0
  226. package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -0
  227. package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
  228. package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
  229. package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
  230. package/dist/esm/packages/teams-js/src/private/nestedAppAuth/nestedAppAuthBridge.js +1 -0
  231. package/dist/esm/packages/teams-js/src/private/notifications.js +1 -0
  232. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -0
  233. package/dist/esm/packages/teams-js/src/private/plugins.js +1 -0
  234. package/dist/esm/packages/teams-js/src/private/privateAPIs.js +1 -0
  235. package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -0
  236. package/dist/esm/packages/teams-js/src/private/store.js +1 -0
  237. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
  238. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
  239. package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
  240. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -0
  241. package/dist/esm/packages/teams-js/src/private/widgetHosting/widgetHosting.js +1 -0
  242. package/dist/esm/packages/teams-js/src/public/adaptiveCards.js +1 -0
  243. package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
  244. package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
  245. package/dist/esm/packages/teams-js/src/public/appId.js +1 -0
  246. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -0
  247. package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -0
  248. package/dist/esm/packages/teams-js/src/public/appPerformanceMetrics.js +1 -0
  249. package/dist/esm/packages/teams-js/src/public/appWindow.js +1 -0
  250. package/dist/esm/packages/teams-js/src/public/authentication.js +1 -0
  251. package/dist/esm/packages/teams-js/src/public/badge.js +1 -0
  252. package/dist/esm/packages/teams-js/src/public/barCode.js +1 -0
  253. package/dist/esm/packages/teams-js/src/public/calendar.js +1 -0
  254. package/dist/esm/packages/teams-js/src/public/call.js +1 -0
  255. package/dist/esm/packages/teams-js/src/public/chat.js +1 -0
  256. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -0
  257. package/dist/esm/packages/teams-js/src/public/connectivity.js +1 -0
  258. package/dist/esm/packages/teams-js/src/public/constants.js +1 -0
  259. package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
  260. package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
  261. package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
  262. package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
  263. package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
  264. package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
  265. package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
  266. package/dist/esm/packages/teams-js/src/public/emailAddress.js +1 -0
  267. package/dist/esm/packages/teams-js/src/public/externalApp.js +1 -0
  268. package/dist/esm/packages/teams-js/src/public/featureFlags.js +1 -0
  269. package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
  270. package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
  271. package/dist/esm/packages/teams-js/src/public/haptics.js +1 -0
  272. package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -0
  273. package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -0
  274. package/dist/esm/packages/teams-js/src/public/location.js +1 -0
  275. package/dist/esm/packages/teams-js/src/public/mail/handoff.js +1 -0
  276. package/dist/esm/packages/teams-js/src/public/mail/mail.js +1 -0
  277. package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -0
  278. package/dist/esm/packages/teams-js/src/public/media.js +1 -0
  279. package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
  280. package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
  281. package/dist/esm/packages/teams-js/src/public/menus.js +1 -0
  282. package/dist/esm/packages/teams-js/src/public/monetization.js +1 -0
  283. package/dist/esm/packages/teams-js/src/public/navigation.js +1 -0
  284. package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -0
  285. package/dist/esm/packages/teams-js/src/public/offlineStorage/drafts.js +1 -0
  286. package/dist/esm/packages/teams-js/src/public/offlineStorage/inbox.js +1 -0
  287. package/dist/esm/packages/teams-js/src/public/offlineStorage/offlineStorage.js +1 -0
  288. package/dist/esm/packages/teams-js/src/public/offlineStorage/outbox.js +1 -0
  289. package/dist/esm/packages/teams-js/src/public/offlineStorage/sent.js +1 -0
  290. package/dist/esm/packages/teams-js/src/public/offlineStorage/sync.js +1 -0
  291. package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
  292. package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
  293. package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
  294. package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
  295. package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
  296. package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
  297. package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
  298. package/dist/esm/packages/teams-js/src/public/people.js +1 -0
  299. package/dist/esm/packages/teams-js/src/public/profile.js +1 -0
  300. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -0
  301. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -0
  302. package/dist/esm/packages/teams-js/src/public/search.js +1 -0
  303. package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -0
  304. package/dist/esm/packages/teams-js/src/public/security.js +1 -0
  305. package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
  306. package/dist/esm/packages/teams-js/src/public/settings.js +1 -0
  307. package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
  308. package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
  309. package/dist/esm/packages/teams-js/src/public/shortcutRelay.js +1 -0
  310. package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
  311. package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
  312. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -0
  313. package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -0
  314. package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -0
  315. package/dist/esm/packages/teams-js/src/public/uuidObject.js +1 -0
  316. package/dist/esm/packages/teams-js/src/public/validatedSafeString.js +1 -0
  317. package/dist/esm/packages/teams-js/src/public/version.js +1 -0
  318. package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -0
  319. package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
  320. package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
  321. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -0
  322. package/dist/umd/JevelinBridge-manifest.json +642 -0
  323. package/dist/umd/JevelinBridge.js +23119 -0
  324. package/dist/umd/JevelinBridge.js.map +1 -0
  325. package/dist/umd/JevelinBridge.min.js +3 -0
  326. package/dist/umd/JevelinBridge.min.js.LICENSE.txt +8 -0
  327. package/dist/umd/JevelinBridge.min.js.map +1 -0
  328. package/package.json +53 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see JevelinBridge.min.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("JevelinBridge",[],t):"object"==typeof exports?exports.JevelinBridge=t():e.JevelinBridge=t()}(Object("undefined"!=typeof self?self:this),()=>(()=>{var e={48(e,t,n){"use strict";var r=n(991),o=n(318);t.hp=s,t.IS=50;var i=2147483647;function a(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return f(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var o=g(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(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 l(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}function d(e){return u(e),a(e<0?0:0|m(e))}function f(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|v(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}function p(e){for(var t=e.length<0?0:0|m(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=s.prototype,r}function g(e){if(s.isBuffer(e)){var t=0|m(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?a(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}function m(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function v(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))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);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(o)return r?-1:j(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var d=!0,f=0;f<c;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(K(s))return a;e[n+a]=s}return a}function E(e,t,n,r){return G(j(t,e.length-n),e,n,r)}function A(e,t,n,r){return G(z(t),e,n,r)}function I(e,t,n,r){return A(e,t,n,r)}function P(e,t,n,r){return G($(t),e,n,r)}function T(e,t,n,r){return G(q(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function R(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,c,u=e[o],l=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return F(r)}s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,n){return c(e,t,n)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,n){return l(e,t,n)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.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}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(J(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},s.byteLength=v,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var 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},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?R(this,0,e):w.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,o){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),d=0;d<c;++d)if(u[d]!==l[d]){i=u[d],a=l[d];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return I(this,e,t,n);case"base64":return P(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function x(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=W(e[i]);return o}function U(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function _(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=s.prototype,r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(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},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(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},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(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},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(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},s.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=o-1;i>=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),c=a.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var B=/[^+/0-9A-Za-z-_]/g;function V(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function q(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}function $(e){return r.toByteArray(V(e))}function G(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}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}},318(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,d=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},530(e,t,n){e.exports=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(821),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},815(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(530)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},821(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o;function a(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function s(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=r?Math.round(e/r)+"h":i>=n?Math.round(e/n)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var i=Math.abs(e);return i>=o?u(e,i,o,"day"):i>=r?u(e,i,r,"hour"):i>=n?u(e,i,n,"minute"):i>=t?u(e,i,t,"second"):e+" ms"}function u(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return a(e);if("number"===n&&isFinite(e))return t.long?c(e):s(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},991(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],u=i[1],l=new o(c(e,a,u)),d=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[d++]=t>>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){return 3*(t+n)/4-n}function u(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(u(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),(()=>{n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{ActionObjectType:()=>Ge,AppId:()=>Nr,ChannelType:()=>Vt,ChildAppWindow:()=>gm,DialogDimension:()=>Bt,EduType:()=>et,EmailAddress:()=>Th,ErrorCode:()=>Ke,FileOpenPreference:()=>$e,FrameContexts:()=>Lt,HostClientType:()=>Ut,HostName:()=>Nt,LiveShareHost:()=>cS,NotificationTypes:()=>xc,ParentAppWindow:()=>mm,RenderingSurfaces:()=>Dt,SecondaryM365ContentIdName:()=>Je,TaskModuleDimension:()=>Bt,TeamType:()=>Ht,UUID:()=>Cn,UserAuthenticationState:()=>_u,UserSettingTypes:()=>Nc,UserTeamRole:()=>_t,ValidatedSafeString:()=>Ur,ViewerActionTypes:()=>Uc,activateChildProxyingCommunication:()=>Yn,app:()=>i,appEntity:()=>j,appInitialization:()=>Be,appInstallDialog:()=>te,appPerformanceMetrics:()=>ee,authentication:()=>Y,badge:()=>De,barCode:()=>re,calendar:()=>he,call:()=>_e,chat:()=>oe,clipboard:()=>ie,connectivity:()=>Ne,conversations:()=>b,copilot:()=>O,dialog:()=>f,enablePrintCapability:()=>CC,executeDeepLink:()=>LC,externalApp:()=>He,externalAppAuthentication:()=>R,externalAppAuthenticationForCEA:()=>F,externalAppCardActions:()=>k,externalAppCardActionsForCEA:()=>M,externalAppCardActionsForDA:()=>x,externalAppCommands:()=>U,files:()=>N,geoLocation:()=>ce,getAdaptiveCardSchemaVersion:()=>pm,getContext:()=>bC,getCurrentFeatureFlagsState:()=>nr,getMruTabInstances:()=>UC,getTabInstances:()=>xC,haptics:()=>Le,hostEntity:()=>Q,initialize:()=>yC,initializeWithFrameContext:()=>HC,liveShare:()=>ze,location:()=>le,logs:()=>S,mail:()=>me,marketplace:()=>qe,media:()=>ne,meeting:()=>fe,meetingRoom:()=>L,menus:()=>p,messageChannels:()=>D,monetization:()=>pe,navigateBack:()=>jC,navigateCrossDomain:()=>WC,navigateToTab:()=>VC,nestedAppAuth:()=>ae,nestedAppAuthBridge:()=>H,notifications:()=>_,offlineStorage:()=>xe,openFilePreview:()=>Wc,otherAppStateChange:()=>B,overwriteFeatureFlagsState:()=>or,pages:()=>C,people:()=>we,plugins:()=>V,print:()=>SC,profile:()=>ye,registerAppButtonClickHandler:()=>IC,registerAppButtonHoverEnterHandler:()=>PC,registerAppButtonHoverLeaveHandler:()=>TC,registerBackButtonHandler:()=>OC,registerBeforeUnloadHandler:()=>FC,registerChangeSettingsHandler:()=>MC,registerCustomHandler:()=>Bc,registerFocusEnterHandler:()=>kC,registerFullScreenHandler:()=>AC,registerOnLoadHandler:()=>RC,registerOnThemeChangeHandler:()=>EC,registerUserSettingsChangeHandler:()=>Vc,remoteCamera:()=>W,returnFocus:()=>BC,search:()=>Ce,secondaryBrowser:()=>ue,security:()=>Ue,sendCustomEvent:()=>_c,sendCustomMessage:()=>Hc,setFeatureFlagsState:()=>rr,setFrameContext:()=>DC,settings:()=>We,shareDeepLink:()=>NC,sharing:()=>be,shortcutRelay:()=>nt,sidePanelInterfaces:()=>I,stageView:()=>Ae,store:()=>Z,tasks:()=>je,teams:()=>$,teamsCore:()=>ve,thirdPartyCloudStorage:()=>Ve,uploadCustomApp:()=>Dc,version:()=>Zn,videoEffects:()=>G,videoEffectsEx:()=>J,visualMedia:()=>Pe,webStorage:()=>Te,widgetHosting:()=>X});var e={};n.r(e),n.d(e,{_clearTelemetryPort:()=>jr,getTelemetryPort:()=>Vr,isSupported:()=>Wr});var t={};n.r(t),n.d(t,{_clearDataLayerPort:()=>Qr,getDataLayerPort:()=>Jr,isSupported:()=>Kr});var o={};n.r(o),n.d(o,{registerBeforeSuspendOrTerminateHandler:()=>Zr,registerOnResumeHandler:()=>Xr});var i={};n.r(i),n.d(i,{ExpectedFailureReason:()=>ro,FailedReason:()=>no,Messages:()=>to,_initialize:()=>so,_uninitialize:()=>co,getContext:()=>uo,getFrameContext:()=>io,initialize:()=>ao,isInitialized:()=>oo,lifecycle:()=>o,notifyAppLoaded:()=>lo,notifyExpectedFailure:()=>ho,notifyFailure:()=>po,notifySuccess:()=>fo,openLink:()=>wo,registerHostToAppPerformanceMetricsHandler:()=>vo,registerOnContextChangeHandler:()=>mo,registerOnThemeChangeHandler:()=>go});var a={};n.r(a),n.d(a,{isSupported:()=>So,resize:()=>Co});var s={};n.r(s),n.d(s,{isSupported:()=>Eo,open:()=>bo});var c={};n.r(c),n.d(c,{isSupported:()=>To,registerOnMessageFromParent:()=>Po,sendMessageToDialog:()=>Io,sendMessageToParentFromDialog:()=>Ao});var u={};n.r(u),n.d(u,{bot:()=>s,getDialogInfoFromBotUrlDialogInfo:()=>Mo,getDialogInfoFromUrlDialogInfo:()=>ko,isSupported:()=>Fo,open:()=>Oo,parentCommunication:()=>c,submit:()=>Ro});var l={};n.r(l),n.d(l,{isSupported:()=>zo,open:()=>jo});var d={};n.r(d),n.d(d,{bot:()=>l,isSupported:()=>$o,open:()=>qo});var f={};n.r(f),n.d(f,{adaptiveCard:()=>d,initialize:()=>Go,isSupported:()=>Jo,update:()=>a,url:()=>u});var p={};n.r(p),n.d(p,{DisplayMode:()=>Qo,MenuItem:()=>Xo,MenuListType:()=>Zo,initialize:()=>oi,isSupported:()=>di,setNavBarMenu:()=>si,setUpViews:()=>ii,showActionMenu:()=>ui});var h={};n.r(h),n.d(h,{initialize:()=>fi,isSupported:()=>Ai,registerChangeConfigHandler:()=>Ci,registerOnRemoveHandler:()=>vi,registerOnRemoveHandlerHelper:()=>wi,registerOnSaveHandler:()=>gi,registerOnSaveHandlerHelper:()=>mi,setConfig:()=>hi,setValidityState:()=>pi});var g={};n.r(g),n.d(g,{isSupported:()=>na,onClick:()=>Yi,onHoverEnter:()=>ea,onHoverLeave:()=>ta});var m={};n.r(m),n.d(m,{_initialize:()=>ra,isSupported:()=>sa,navigateBack:()=>oa,registerBackButtonHandler:()=>ia,registerBackButtonHandlerHelper:()=>aa});var v={};n.r(v),n.d(v,{isSupported:()=>la,navigateTo:()=>ca,navigateToDefaultPage:()=>ua});var w={};n.r(w),n.d(w,{enterFullscreen:()=>da,exitFullscreen:()=>fa,isSupported:()=>pa});var y={};n.r(y),n.d(y,{getMruTabInstances:()=>ma,getTabInstances:()=>ga,isSupported:()=>va,navigateToTab:()=>ha});var C={};n.r(C),n.d(C,{EnterFocusType:()=>wa,ReturnFocusType:()=>ya,appButton:()=>g,backStack:()=>m,config:()=>h,currentApp:()=>v,fullTrust:()=>w,getConfig:()=>Aa,initializeWithFrameContext:()=>Ea,isSupported:()=>Ra,navigateCrossDomain:()=>Ia,navigateToApp:()=>Pa,registerFocusEnterHandler:()=>Sa,registerFullScreenHandler:()=>Oa,returnFocus:()=>Ca,setCurrentFrame:()=>ba,shareDeepLink:()=>Ta,tabs:()=>y});var S={};n.r(S),n.d(S,{isSupported:()=>Mc,registerGetLogHandler:()=>kc});var b={};n.r(b),n.d(b,{closeConversation:()=>qc,getChatMembers:()=>$c,isSupported:()=>Gc,openConversation:()=>zc});var E={};n.r(E),n.d(E,{isSupported:()=>Zc,sendCustomTelemetryData:()=>Xc});var A={};n.r(A),n.d(A,{getEligibilityInfo:()=>ru,isSupported:()=>nu});var I={};n.r(I),n.d(I,{ContentItemType:()=>iu,CopilotMode:()=>uu,MediaSelectionType:()=>au,SidePanelErrorCode:()=>pu,SidePanelErrorImpl:()=>hu,TeamsContextType:()=>du,TeamsDimensionName:()=>cu,TeamsSessionType:()=>su,TranscriptState:()=>lu,UserConsent:()=>fu});var P={};n.r(P),n.d(P,{copilotSidePanelNotSupportedOnPlatformError:()=>bu,getContent:()=>yu,isResponseAReportableError:()=>wu,isSupported:()=>vu,preCheckUserConsent:()=>Cu,registerUserActionContentSelect:()=>Su});var T={};n.r(T),n.d(T,{closeSidePanel:()=>Fu,isSupported:()=>Ru});var O={};n.r(O),n.d(O,{customTelemetry:()=>E,eligibility:()=>A,sidePanel:()=>P,view:()=>T});var R={};n.r(R),n.d(R,{ActionExecuteInvokeRequestType:()=>Nu,ActionExecuteResponseHandler:()=>Bu,InvokeErrorCode:()=>Hu,InvokeResponseType:()=>Du,OriginalRequestType:()=>Lu,SerializableActionExecuteInvokeRequest:()=>xu,SerializableConnectorParameters:()=>Qu,UserAuthenticationState:()=>_u,authenticateAndResendRequest:()=>qu,authenticateWithConnector:()=>Zu,authenticateWithOauth2:()=>Ju,authenticateWithPowerPlatformConnectorPlugins:()=>Ku,authenticateWithSSO:()=>$u,authenticateWithSSOAndResendRequest:()=>Gu,disconnectConnector:()=>el,getUserAuthenticationStateForConnector:()=>Yu,isActionExecuteResponse:()=>Uu,isInvokeError:()=>Vu,isSupported:()=>tl,validateActionExecuteInvokeRequest:()=>ju});var F={};n.r(F),n.d(F,{authenticateAndResendRequest:()=>al,authenticateWithOauth:()=>il,authenticateWithSSO:()=>ol,authenticateWithSSOAndResendRequest:()=>sl,isSupported:()=>cl,validateInput:()=>ul});var k={};n.r(k),n.d(k,{ActionOpenUrlErrorCode:()=>fl,ActionOpenUrlType:()=>dl,isSupported:()=>gl,processActionOpenUrl:()=>hl,processActionSubmit:()=>pl});var M={};n.r(M),n.d(M,{isSupported:()=>Cl,processActionOpenUrl:()=>wl,processActionSubmit:()=>yl});var x={};n.r(x),n.d(x,{SerializableActionOpenUrlDialogInfo:()=>Ol,isSupported:()=>Pl,processActionOpenUrlDialog:()=>Il});var U={};n.r(U),n.d(U,{isSupported:()=>Ml,processActionCommand:()=>kl});var N={};n.r(N),n.d(N,{CloudStorageProvider:()=>Ul,CloudStorageProviderFileAction:()=>_l,CloudStorageProviderType:()=>Nl,DocumentLibraryAccessType:()=>Dl,FileDownloadStatus:()=>Hl,SpecialDocumentLibraryType:()=>Ll,addCloudStorageFolder:()=>Vl,addCloudStorageProvider:()=>Kl,addCloudStorageProviderFile:()=>Zl,copyMoveFiles:()=>$l,deleteCloudStorageFolder:()=>Wl,deleteCloudStorageProviderFile:()=>Yl,downloadCloudStorageProviderFile:()=>ed,getCloudStorageFolderContents:()=>jl,getCloudStorageFolders:()=>Bl,getExternalProviders:()=>ql,getFileDownloads:()=>Gl,openCloudStorageFile:()=>zl,openDownloadFolder:()=>Jl,registerCloudStorageProviderContentChangeHandler:()=>rd,registerCloudStorageProviderListChangeHandler:()=>nd,removeCloudStorageProvider:()=>Ql,renameCloudStorageProviderFile:()=>Xl,uploadCloudStorageProviderFile:()=>td});var L={};n.r(L),n.d(L,{getPairedMeetingRoomInfo:()=>ad,isSupported:()=>ld,registerMeetingRoomCapabilitiesUpdateHandler:()=>cd,registerMeetingRoomStatesUpdateHandler:()=>ud,sendCommandToPairedMeetingRoom:()=>sd});var D={};n.r(D),n.d(D,{dataLayer:()=>t,isSupported:()=>dd,telemetry:()=>e});var H={};n.r(H),n.d(H,{initialize:()=>md,version:()=>fd});var _={};n.r(_),n.d(_,{isSupported:()=>Id,showNotification:()=>Ad});var B={};n.r(B),n.d(B,{isSupported:()=>Fd,notifyInstallCompleted:()=>Rd,registerAppInstallationHandler:()=>Td,unregisterAppInstallationHandler:()=>Od});var V={};n.r(V),n.d(V,{isSupported:()=>xd,registerPluginMessage:()=>Nd,sendPluginMessage:()=>Ud});var W={};n.r(W),n.d(W,{ControlCommand:()=>Bd,ErrorReason:()=>Vd,SessionTerminatedReason:()=>Wd,getCapableParticipants:()=>jd,isSupported:()=>Zd,registerOnCapableParticipantsChangeHandler:()=>Gd,registerOnDeviceStateChangeHandler:()=>Kd,registerOnErrorHandler:()=>Jd,registerOnSessionStatusChangeHandler:()=>Qd,requestControl:()=>zd,sendControlCommand:()=>qd,terminateSession:()=>$d});var j={};n.r(j),n.d(j,{isSupported:()=>ef,selectAppEntity:()=>Yd});var z={};n.r(z),n.d(z,{getUserJoinedTeams:()=>nf,isSupported:()=>rf});var q={};n.r(q),n.d(q,{getConfigSetting:()=>sf,isSupported:()=>cf,joinedTeams:()=>z});var $={};n.r($),n.d($,{ChannelType:()=>lf,fullTrust:()=>q,getTeamChannels:()=>df,isSupported:()=>pf,refreshSiteUrl:()=>ff});var G={};n.r(G),n.d(G,{EffectChangeType:()=>Ef,EffectFailureReason:()=>Af,VideoFrameFormat:()=>bf,isSupported:()=>Ff,notifySelectedVideoEffectChanged:()=>Pf,registerForVideoEffect:()=>Tf,registerForVideoFrame:()=>If});var J={};n.r(J),n.d(J,{ErrorLevel:()=>ep,frameProcessingTimeoutInMs:()=>Xf,isSupported:()=>cp,notifyFatalError:()=>dp,notifySelectedVideoEffectChanged:()=>ip,registerForVideoEffect:()=>ap,registerForVideoFrame:()=>tp,updatePersonalizedEffects:()=>sp});var K={};n.r(K),n.d(K,{addAndConfigure:()=>yp,getAll:()=>Cp,isSupported:()=>Ap,reconfigure:()=>Sp,remove:()=>Ep,rename:()=>bp});var Q={};n.r(Q),n.d(Q,{AppTypes:()=>Tp,isSupported:()=>Op,tab:()=>K});var Z={};n.r(Z),n.d(Z,{isSupported:()=>Hp,openAppDetail:()=>Np,openFullStore:()=>Up,openInContextStore:()=>Lp,openSpecificStore:()=>Dp});var X={};n.r(X),n.d(X,{callTool:()=>qp,contentSizeChanged:()=>Qp,isSupported:()=>zp,notifyIntrinsicHeight:()=>Kp,openExternal:()=>Xp,registerModalCloseHandler:()=>Yp,requestDisplayMode:()=>Gp,requestModal:()=>Jp,sendFollowUpMessage:()=>$p,setWidgetState:()=>Zp});var Y={};n.r(Y),n.d(Y,{DataResidency:()=>Eh,authenticate:()=>gh,getAuthToken:()=>vh,getUser:()=>yh,notifyFailure:()=>bh,notifySuccess:()=>Sh,registerAuthenticationHandlers:()=>hh});var ee={};n.r(ee),n.d(ee,{isSupported:()=>Ah,registerHostMemoryMetricsHandler:()=>Ih});var te={};n.r(te),n.d(te,{isSupported:()=>Jh,openAppInstallDialog:()=>Gh});var ne={};n.r(ne),n.d(ne,{CameraStartMode:()=>Yh,File:()=>og,FileFormat:()=>Zh,ImageOutputFormats:()=>rg,ImageUriType:()=>ng,Media:()=>ug,MediaControllerEvent:()=>Xh,MediaType:()=>tg,Source:()=>eg,VideoController:()=>dg,captureImage:()=>ig,hasPermission:()=>ag,requestPermission:()=>sg,scanBarCode:()=>hg,selectMedia:()=>fg,viewImages:()=>pg});var re={};n.r(re),n.d(re,{hasPermission:()=>Rg,isSupported:()=>kg,requestPermission:()=>Fg,scanBarCode:()=>Og});var oe={};n.r(oe),n.d(oe,{isSupported:()=>Lg,openChat:()=>xg,openGroupChat:()=>Ng});var ie={};n.r(ie),n.d(ie,{isSupported:()=>Vg,read:()=>Bg,write:()=>_g});var ae={};n.r(ae),n.d(ae,{addNAATrustedOrigins:()=>Yg,canParentManageNAATrustedOrigins:()=>Jg,deleteNAATrustedOrigins:()=>em,getParentOrigin:()=>Gg,isDeeplyNestedAuthSupported:()=>Kg,isNAAChannelRecommended:()=>$g});var se={};n.r(se),n.d(se,{chooseLocation:()=>im,isSupported:()=>sm,showLocation:()=>am});var ce={};n.r(ce),n.d(ce,{getCurrentLocation:()=>um,hasPermission:()=>lm,isSupported:()=>fm,map:()=>se,requestPermission:()=>dm});var ue={};n.r(ue),n.d(ue,{isSupported:()=>ym,open:()=>wm});var le={};n.r(le),n.d(le,{getLocation:()=>Sm,isSupported:()=>Em,showLocation:()=>bm});var de={};n.r(de),n.d(de,{setOptions:()=>Im});var fe={};n.r(fe),n.d(fe,{CallType:()=>km,EventActionSource:()=>xm,MeetingReactionType:()=>Rm,MeetingType:()=>Fm,SharingProtocol:()=>Mm,appShareButton:()=>de,getAppContentStageSharingCapabilities:()=>zm,getAppContentStageSharingState:()=>$m,getAuthenticationTokenForAnonymousUser:()=>Hm,getIncomingClientAudioState:()=>Um,getLiveStreamState:()=>_m,getMeetingDetails:()=>Lm,getMeetingDetailsVerbose:()=>Dm,joinMeeting:()=>Qm,registerLiveStreamChangedHandler:()=>Wm,registerMeetingReactionReceivedHandler:()=>Km,registerRaiseHandStateChangedHandler:()=>Jm,registerSpeakingStateChangeHandler:()=>Gm,requestAppAudioHandling:()=>Zm,requestStartLiveStreaming:()=>Bm,requestStopLiveStreaming:()=>Vm,shareAppContentToStage:()=>jm,stopSharingAppContentToStage:()=>qm,toggleIncomingClientAudio:()=>Nm,updateMicState:()=>ev});var pe={};n.r(pe),n.d(pe,{isSupported:()=>iv,openPurchaseExperience:()=>ov});var he={};n.r(he),n.d(he,{composeMeeting:()=>cv,isSupported:()=>uv,openCalendarItem:()=>sv});var ge={};n.r(ge),n.d(ge,{composeMailWithHandoff:()=>pv,isSupported:()=>hv});var me={};n.r(me),n.d(me,{ComposeMailType:()=>Cv,composeMail:()=>wv,handoff:()=>ge,isSupported:()=>yv,openMailItem:()=>vv});var ve={};n.r(ve),n.d(ve,{enablePrintCapability:()=>bv,isSupported:()=>Ov,print:()=>Ev,registerBeforeUnloadHandler:()=>Pv,registerBeforeUnloadHandlerHelper:()=>Tv,registerOnLoadHandler:()=>Av,registerOnLoadHandlerHelper:()=>Iv});var we={};n.r(we),n.d(we,{isSupported:()=>xv,selectPeople:()=>kv});var ye={};n.r(ye),n.d(ye,{isSupported:()=>Hv,showProfile:()=>Dv});var Ce={};n.r(Ce),n.d(Ce,{closeSearch:()=>$v,isSupported:()=>qv,registerHandlers:()=>jv,unregisterHandlers:()=>zv});var Se={};n.r(Se),n.d(Se,{getContent:()=>Kv,isSupported:()=>Qv});var be={};n.r(be),n.d(be,{SharingAPIMessages:()=>Yv,history:()=>Se,isSupported:()=>aw,shareWebContent:()=>ew});var Ee={};n.r(Ee),n.d(Ee,{close:()=>cw,isSupported:()=>uw});var Ae={};n.r(Ae),n.d(Ae,{StageViewOpenMode:()=>dw,isSupported:()=>pw,open:()=>fw,self:()=>Ee});var Ie={};n.r(Ie),n.d(Ie,{captureImages:()=>vw,isSupported:()=>yw,retrieveImages:()=>ww});var Pe={};n.r(Pe),n.d(Pe,{CameraRestriction:()=>Aw,Source:()=>Iw,hasPermission:()=>Pw,image:()=>Ie,requestPermission:()=>Tw});var Te={};n.r(Te),n.d(Te,{isSupported:()=>Uw,isWebStorageClearedOnUserLogOut:()=>Mw});var Oe={};n.r(Oe),n.d(Oe,{create:()=>Lw,get:()=>Hw,isSupported:()=>Ww,query:()=>_w,remove:()=>Bw,submit:()=>Vw,update:()=>Dw});var Re={};n.r(Re),n.d(Re,{get:()=>zw,getCount:()=>$w,isSupported:()=>Kw,markAsRead:()=>Gw,query:()=>qw,registerOnUpdateHandler:()=>Jw});var Fe={};n.r(Fe),n.d(Fe,{cancel:()=>ey,getSummary:()=>Xw,isSupported:()=>ny,list:()=>Zw,registerOnStatusChangeHandler:()=>ty,retry:()=>Yw});var ke={};n.r(ke),n.d(ke,{get:()=>oy,isSupported:()=>cy,listSince:()=>ay,purge:()=>sy,query:()=>iy});var Me={};n.r(Me),n.d(Me,{ConflictStrategy:()=>dy,SyncState:()=>ly,getStatus:()=>py,isSupported:()=>wy,registerOnConflictHandler:()=>vy,registerOnStatusChangeHandler:()=>my,resolveConflict:()=>gy,setConflictStrategy:()=>hy,trigger:()=>fy});var xe={};n.r(xe),n.d(xe,{RecordBox:()=>Sy,RecordStatus:()=>Cy,drafts:()=>Oe,hasSchema:()=>Ey,inbox:()=>Re,isSupported:()=>Ty,listSchemas:()=>Ay,migrateSchema:()=>Iy,outbox:()=>Fe,registerSchema:()=>by,removeSchema:()=>Py,sent:()=>ke,sync:()=>Me});var Ue={};n.r(Ue),n.d(Ue,{isBiometricAvailable:()=>ky,isSupported:()=>My,reauthenticate:()=>Fy});var Ne={};n.r(Ne),n.d(Ne,{getStatus:()=>Ny,isSupported:()=>Dy,registerOnStatusChange:()=>Ly});var Le={};n.r(Le),n.d(Le,{isSupported:()=>Vy,vibrate:()=>By});var De={};n.r(De),n.d(De,{clear:()=>qy,isSupported:()=>$y,setCount:()=>zy});var He={};n.r(He),n.d(He,{isInstalled:()=>Zy,isSupported:()=>Xy,launch:()=>Ky,open:()=>Qy});var _e={};n.r(_e),n.d(_e,{CallModalities:()=>eC,isSupported:()=>nC,startCall:()=>tC});var Be={};n.r(Be),n.d(Be,{ExpectedFailureReason:()=>ro,FailedReason:()=>no,Messages:()=>to,notifyAppLoaded:()=>oC,notifyExpectedFailure:()=>sC,notifyFailure:()=>aC,notifySuccess:()=>iC});var Ve={};n.r(Ve),n.d(Ve,{getDragAndDropFiles:()=>gC,isSupported:()=>vC});var We={};n.r(We),n.d(We,{getSettings:()=>$C,registerOnRemoveHandler:()=>KC,registerOnSaveHandler:()=>JC,setSettings:()=>GC,setValidityState:()=>qC});var je={};n.r(je),n.d(je,{getDefaultSizeIfNotProvided:()=>rS,startTask:()=>XC,submitTask:()=>eS,updateTask:()=>YC});var ze={};n.r(ze),n.d(ze,{ContainerState:()=>aS,LiveShareHost:()=>cS,UserMeetingRole:()=>iS,isSupported:()=>sS});var qe={};n.r(qe),n.d(qe,{CartStatus:()=>AS,Intent:()=>ES,addOrUpdateCartItems:()=>PS,cartVersion:()=>bS,getCart:()=>IS,isSupported:()=>RS,removeCartItems:()=>TS,updateCartStatus:()=>OS});var $e,Ge,Je,Ke,Qe,Ze,Xe,Ye,et,tt,nt={};function rt(e){return void 0!==(null==e?void 0:e.errorCode)}n.r(nt),n.d(nt,{DISABLE_SHORTCUT_FORWARDING_ATTRIBUTE:()=>JS,enableShortcutRelayCapability:()=>$S,isSupported:()=>GS,resetIsShortcutRelayCapabilityEnabled:()=>qS,setOverridableShortcutHandler:()=>zS}),function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"}($e||($e={})),function(e){e.M365Content="m365content"}(Ge||(Ge={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(Je||(Je={})),function(e){e[e.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",e[e.INTERNAL_ERROR=500]="INTERNAL_ERROR",e[e.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",e[e.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",e[e.NETWORK_ERROR=2e3]="NETWORK_ERROR",e[e.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",e[e.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",e[e.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",e[e.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",e[e.THROTTLE=7e3]="THROTTLE",e[e.USER_ABORT=8e3]="USER_ABORT",e[e.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",e[e.OLD_PLATFORM=9e3]="OLD_PLATFORM",e[e.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",e[e.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(Ke||(Ke={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(Qe||(Qe={})),function(e){e.BCAIS="bcais",e.BCWAF="bcwaf",e.BCWBF="bcwbf"}(Ze||(Ze={})),function(e){e.Faculty="faculty",e.Student="student",e.Other="other"}(Xe||(Xe={})),function(e){e.Adult="adult",e.MinorNoParentalConsentRequired="minorNoParentalConsentRequired",e.MinorWithoutParentalConsent="minorWithoutParentalConsent",e.MinorWithParentalConsent="minorWithParentalConsent",e.NotAdult="notAdult",e.NonAdult="notAdult"}(Ye||(Ye={})),function(e){e.HigherEducation="higherEducation",e.K12="k12",e.Other="other"}(et||(et={})),function(e){e.TextPlain="text/plain",e.TextHtml="text/html",e.ImagePNG="image/png",e.ImageJPEG="image/jpeg"}(tt||(tt={}));const ot=JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"]}');const it="2.0.1",at="2.0.2",st="2.0.3",ct="2.0.4",ut="2.0.1",lt="1.9.0",dt="2.0.0",ft="1.7.0",pt="1.8.0",ht="1.9.0",gt=n.t(ot,2).validOrigins,mt=1500,vt=new URL("https://res.cdn.office.net/teams-js/validDomains/json/validDomains.json"),wt="https",yt="teams.microsoft.com",Ct="The library has not yet been initialized",St="The runtime has not yet been initialized",bt="The runtime version is not supported",Et="The call was not properly started";var At=n(48);const It={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Pt;const Tt=new Uint8Array(16);function Ot(){if(!Pt){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Pt=crypto.getRandomValues.bind(crypto)}return Pt(Tt)}const Rt=[];for(let e=0;e<256;++e)Rt.push((e+256).toString(16).slice(1));function Ft(e,t=0){return(Rt[e[t+0]]+Rt[e[t+1]]+Rt[e[t+2]]+Rt[e[t+3]]+"-"+Rt[e[t+4]]+Rt[e[t+5]]+"-"+Rt[e[t+6]]+Rt[e[t+7]]+"-"+Rt[e[t+8]]+Rt[e[t+9]]+"-"+Rt[e[t+10]]+Rt[e[t+11]]+Rt[e[t+12]]+Rt[e[t+13]]+Rt[e[t+14]]+Rt[e[t+15]]).toLowerCase()}const kt=function(e,t,n){if(It.randomUUID&&!t&&!e)return It.randomUUID();const r=(e=e||{}).random??e.rng?.()??Ot();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Ft(r)},Mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const xt=function(e){return"string"==typeof e&&Mt.test(e)};var Ut,Nt,Lt,Dt,Ht,_t,Bt,Vt;!function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.macos="macos",e.visionOS="visionOS",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(Ut||(Ut={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.places="Places",e.teams="Teams",e.teamsModern="TeamsModern"}(Nt||(Nt={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(Lt||(Lt={})),function(e){e.copilotSidePanel="copilotSidePanel",e.copilotMainPane="copilotMainPane",e.copilotFullScreen="copilotFullScreen"}(Dt||(Dt={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(Ht||(Ht={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(_t||(_t={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(Bt||(Bt={})),function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"}(Vt||(Vt={}));const Wt={errorCode:Ke.NOT_SUPPORTED_ON_PLATFORM},jt={majorVersion:1,minorVersion:5},zt={adaptiveCardSchemaVersion:{majorVersion:1,minorVersion:5}},qt=new Error("Invalid input count: Must supply a valid image count (limit of 10)."),$t=new Error("Invalid response: Received more images than the specified max limit in the response.");function Gt(e){return(t,n)=>{if(!t)throw new Error(e||n)}}function Jt(e,t){if("string"!=typeof e||"string"!=typeof t)return NaN;const n=e.split("."),r=t.split(".");function o(e){return/^\d+$/.test(e)}if(!n.every(o)||!r.every(o))return NaN;for(;n.length<r.length;)n.push("0");for(;r.length<n.length;)r.push("0");for(let e=0;e<n.length;++e)if(Number(n[e])!=Number(r[e]))return Number(n[e])>Number(r[e])?1:-1;return 0}function Kt(){return kt()}function Qt(e){return Object.keys(e).forEach(t=>{null!==e[t]&&void 0!==e[t]&&"object"==typeof e[t]&&Qt(e[t])}),Object.freeze(e)}function Zt(e,t,...n){const r=e(...n);return r.then(e=>{t&&t(void 0,e)}).catch(e=>{t&&t(e)}),r}function Xt(e,t,...n){const r=e(...n);return r.then(()=>{t&&t(null)}).catch(e=>{t&&t(e)}),r}function Yt(e,t,...n){const r=e(...n);return r.then(e=>{t&&t(null,e)}).catch(e=>{t&&t(e,null)}),r}function en(e,t,n){return new Promise((r,o)=>{const i=setTimeout(o,t,n);e().then(e=>{clearTimeout(i),r(e)}).catch(e=>{clearTimeout(i),o(e)})})}function tn(e){const t=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId.toString())+"/"+encodeURIComponent(e.pageId));return e.webUrl&&t.searchParams.append("webUrl",e.webUrl.toString()),(e.chatId||e.channelId||e.subPageId)&&t.searchParams.append("context",JSON.stringify({chatId:e.chatId,channelId:e.channelId,subEntityId:e.subPageId})),t.toString()}function nn(e){return!(Jt(`${e.majorVersion}.${e.minorVersion}`,`${jt.majorVersion}.${jt.minorVersion}`)>=0)}function rn(e){return"https:"===e.protocol}function on(e,t){return new Promise((n,r)=>{if(e||r("MimeType cannot be null or empty."),t||r("Base64 string cannot be null or empty."),e.startsWith("image/")){const r=atob(t),o=new Uint8Array(r.length);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);n(new Blob([o],{type:e}))}const o=At.hp.from(t,"base64").toString();n(new Blob([o],{type:e}))})}function an(e){return new Promise((t,n)=>{0===e.size&&n(new Error("Blob cannot be empty."));const r=new FileReader;r.onloadend=()=>{r.result?t(r.result.toString().split(",")[1]):n(new Error("Failed to read the blob"))},r.onerror=()=>{n(r.error)},r.readAsDataURL(e)})}function sn(){if(cn())throw new Error("window object undefined at SSR check");return window}function cn(){return"undefined"==typeof window}function un(e,t){if(fn(e)||!pn(e)||!hn(e))throw t||new Error("id is not valid.")}function ln(e,t){const n=e.toString().toLocaleLowerCase();if(fn(n))throw t||new Error("Invalid Url");if(n.length>2048)throw t||new Error("Url exceeds the maximum size of 2048 characters");if(!rn(e))throw t||new Error("Url should be a valid https url")}function dn(e){const t=document.createElement("a");return t.href=e,new URL(t.href)}function fn(e){return new RegExp(`${/<script[^>]*>|&lt;script[^&]*&gt;|%3Cscript[^%]*%3E/gi.source}|${/<\/script[^>]*>|&lt;\/script[^&]*&gt;|%3C\/script[^%]*%3E/gi.source}`,"gi").test(e)}function pn(e){return e.length<256&&e.length>4}function hn(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<32||n>126)return!1}return!0}function gn(e){if(!e)throw new Error("id must not be empty");if(!1===xt(e))throw new Error("id must be a valid UUID")}const mn=!!performance&&"now"in performance;function vn(){return mn?performance.now()+performance.timeOrigin:void 0}function wn(e,t=0){if(t>1e3)return!1;if(void 0===e||"boolean"==typeof e||"number"==typeof e||"bigint"==typeof e||"string"==typeof e||null===e)return!0;if(Array.isArray(e))return e.every(e=>wn(e,t+1));return!("object"!=typeof e||"[object Object]"!==Object.prototype.toString.call(e)||Object.getPrototypeOf(e)!==Object.prototype&&null!==Object.getPrototypeOf(e))&&Object.keys(e).every(n=>wn(e[n],t+1))}function yn(e){var t,n;if(!(null===(n=null===(t=e.hostVersionsInfo)||void 0===t?void 0:t.appEligibilityInformation)||void 0===n?void 0:n.ageGroup))return e;const r=e.hostVersionsInfo.appEligibilityInformation.ageGroup;return"nonadult"!==(null==r?void 0:r.toLowerCase())?e:Object.assign(Object.assign({},e),{hostVersionsInfo:Object.assign(Object.assign({},e.hostVersionsInfo),{appEligibilityInformation:Object.assign(Object.assign({},e.hostVersionsInfo.appEligibilityInformation),{ageGroup:Ye.NotAdult})})})}class Cn{constructor(e=Kt()){this.uuid=e,gn(e)}toString(){return this.uuid}serialize(){return this.toString()}}function Sn(e){if(!(e instanceof Cn))throw new Error(`Potential id (${JSON.stringify(e)}) is invalid; it is not an instance of UUID class.`)}class bn{}bn.initializeCalled=!1,bn.initializeCompleted=!1,bn.additionalValidOrigins=[],bn.initializePromise=void 0,bn.isFramelessWindow=!1,bn.frameContext=void 0,bn.hostClientType=void 0,bn.printCapabilityEnabled=!1,bn.teamsJsInstanceId=(new Cn).toString();var En=n(815);const An=new Cn,In=En.debug.formatArgs;En.debug.formatArgs=function(e){e[0]=`(${(new Date).toISOString()}): ${e[0]} [${An.toString()}]`,In.call(this,e)};const Pn=(0,En.debug)("teamsJs");function Tn(e){return Pn.extend(e)}function On(e,t){return`${e}_${t}`}function Rn(e){return/^v\d+_[\w.]+$/.test(e)}var Fn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kn=Tn("runtime"),Mn=4;function xn(e){return e.apiVersion===Mn}const Un={apiVersion:-1,supports:{}};function Nn(e){if(xn(e))return!0;throw-1===e.apiVersion?new Error(St):new Error(bt)}let Ln=Un;const Dn={apiVersion:4,isNAAChannelRecommended:!1,isDeeplyNestedAuthSupported:!1,hostVersionsInfo:zt,isLegacyTeams:!0,supports:{appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{card:{bot:{}},url:{bot:{},parentCommunication:{}},update:{}},interactive:{},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{config:{},backStack:{},fullTrust:{}},remoteCamera:{},teams:{fullTrust:{}},teamsCore:{},video:{sharedFrame:{}}}},Hn=[Ut.desktop,Ut.web,Ut.rigel,Ut.surfaceHub,Ut.teamsRoomsWindows,Ut.teamsRoomsAndroid,Ut.teamsPhones,Ut.teamsDisplays],_n=[Ut.android,Ut.ios,Ut.ipados,Ut.visionOS],Bn=[...Hn,..._n];function Vn(e){let t=e;if(t.apiVersion<Mn&&Wn.forEach(e=>{t.apiVersion===e.versionToUpgradeFrom&&(t=e.upgradeToNextVersion(t))}),xn(t))return t;throw new Error("Received a runtime that could not be upgraded to the latest version")}const Wn=[{versionToUpgradeFrom:1,upgradeToNextVersion:e=>{var t;return{apiVersion:2,hostVersionsInfo:void 0,isLegacyTeams:e.isLegacyTeams,supports:Object.assign(Object.assign({},e.supports),{dialog:e.supports.dialog?{card:void 0,url:e.supports.dialog,update:null===(t=e.supports.dialog)||void 0===t?void 0:t.update}:void 0})}}},{versionToUpgradeFrom:2,upgradeToNextVersion:e=>{const t=e.supports,{appNotification:n}=t,r=Fn(t,["appNotification"]);return Object.assign(Object.assign({},e),{apiVersion:3,supports:r})}},{versionToUpgradeFrom:3,upgradeToNextVersion:e=>{var t,n,r,o,i;return{apiVersion:4,hostVersionsInfo:e.hostVersionsInfo,isNAAChannelRecommended:e.isNAAChannelRecommended,isLegacyTeams:e.isLegacyTeams,supports:Object.assign(Object.assign({},e.supports),{dialog:e.supports.dialog?{card:null===(t=e.supports.dialog)||void 0===t?void 0:t.card,url:{bot:null===(r=null===(n=e.supports.dialog)||void 0===n?void 0:n.url)||void 0===r?void 0:r.bot,parentCommunication:(null===(o=e.supports.dialog)||void 0===o?void 0:o.url)?{}:void 0},update:null===(i=e.supports.dialog)||void 0===i?void 0:i.update}:void 0})}}}],jn="2.1.2",zn={"1.0.0":[{capability:{pages:{appButton:{},tabs:{}},stageView:{}},hostClientTypes:Hn}],"1.9.0":[{capability:{location:{}},hostClientTypes:Bn}],"2.0.0":[{capability:{people:{}},hostClientTypes:Bn},{capability:{sharing:{}},hostClientTypes:[Ut.desktop,Ut.web]}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[Ut.android,Ut.desktop,Ut.ios,Ut.teamsRoomsAndroid,Ut.teamsPhones,Ut.teamsDisplays,Ut.web]},{capability:{webStorage:{}},hostClientTypes:[Ut.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[Ut.android,Ut.ios]}],"2.0.8":[{capability:{sharing:{}},hostClientTypes:[Ut.android,Ut.ios]}],"2.1.1":[{capability:{nestedAppAuth:{}},hostClientTypes:[Ut.android,Ut.ios,Ut.ipados,Ut.visionOS]}],"2.1.2":[]},qn=kn.extend("generateBackCompatRuntimeConfig");function $n(e,t){const n=Object.assign({},e);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&("object"!=typeof t[r]||Array.isArray(t[r])?r in e||(n[r]=t[r]):n[r]=$n(e[r]||{},t[r]));return n}function Gn(e,t,n){qn("generating back compat runtime config for %s",e);let r=Object.assign({},t.supports);qn("Supported capabilities in config before updating based on highestSupportedVersion: %o",r),Object.keys(n).forEach(t=>{Jt(e,t)>=0&&n[t].forEach(e=>{void 0!==bn.hostClientType&&e.hostClientTypes.includes(bn.hostClientType)&&(r=$n(r,e.capability))})});const o={apiVersion:Mn,hostVersionsInfo:zt,isLegacyTeams:!0,supports:r};return qn("Runtime config after updating based on highestSupportedVersion: %o",o),o}const Jn=kn.extend("applyRuntimeConfig");function Kn(e){"string"==typeof e.apiVersion&&(Jn("Trying to apply runtime with string apiVersion, processing as v1: %o",e),e=Object.assign(Object.assign({},e),{apiVersion:1})),Jn("Fast-forwarding runtime %o",e);const t=Vn(e);Jn("Applying runtime %o",t),Ln=Qt(t)}function Qn(e){return null!=e&&void 0!==e.serialize&&"function"==typeof e.serialize}const Zn="2.53.0",Xn={childProxyingCommunication:!1};function Yn(){Xn.childProxyingCommunication=!0}function er(){return Xn.childProxyingCommunication}let tr={disableEnforceOriginMatchForChildResponses:!1};function nr(){return tr}function rr(e){tr=e}function or(e){return rr(Object.assign(Object.assign({},tr),e)),nr()}var ir=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ar=e=>{const{uuid:t}=e,n=ir(e,["uuid"]),r=null==t?void 0:t.toString();return Object.assign(Object.assign({},n),{uuidAsString:r})},sr=e=>{const{uuidAsString:t}=e,n=ir(e,["uuidAsString"]);return Object.assign(Object.assign({},n),{uuid:t?new Cn(t):void 0})},cr=e=>{const{uuidAsString:t}=e,n=ir(e,["uuidAsString"]);return Object.assign(Object.assign({},n),{uuid:t?new Cn(t):void 0})},ur=e=>{const{uuid:t}=e,n=ir(e,["uuid"]),r=null==t?void 0:t.toString();return Object.assign(Object.assign({},n),{uuidAsString:r})};function lr(e){return void 0!==e.uuidAsString?`${e.uuidAsString} (legacy id: ${e.id})`:void 0!==e.uuid?`${e.uuid.toString()} (legacy id: ${e.id})`:`legacy id: ${e.id} (no uuid)`}const dr=Tn("flushMessageQueue");function fr(e,t,n,r){if(e&&t&&0!==n.length)for(;n.length>0;){const o=n.shift();if(o){const n=ar(o);dr("Flushing message %s from %s message queue via postMessage.",lr(n),r),e.postMessage(n,t)}}}const pr=/^[A-Za-z][A-Za-z\d+.-]*:\/\//;function hr(e,t){const n=e.split("."),r=t.split(".");if(r.length!==n.length)return!1;let o=!1;for(let e=0;e<n.length;e++)if(n[e]!==r[e]){if("*"!==n[e])return!1;if(e===n.length-1||o)return!1;o=!0}return!0}class gr{constructor(e,t,n){this.protocol=e,this.host=t,this.logger=n}static canUse(e){return pr.test(e)}static create(e,t){const n=e.split("://");return new gr(n[0],n[1],t.extend("InternalURLPattern"))}test(e){return this.logger("Testing URL %s against pattern protocol: %s, host: %s",e,this.protocol,this.host),e.protocol===`${this.protocol}:`&&(!e.host||hr(this.host,e.host))}}function mr(e){return gr.canUse(e)}function vr(e,t){if(gr.canUse(e))return gr.create(e,t);t("No URL verifier available for pattern: %s",e)}const wr=Tn("internal"),yr=wr.extend("ensureInitializeCalled"),Cr=wr.extend("ensureInitialized");function Sr(){if(!bn.initializeCalled)throw yr(Ct),new Error(Ct)}function br(e,...t){if(!bn.initializeCompleted)throw Cr("%s. initializeCalled: %s",Ct,bn.initializeCalled.toString()),new Error(Ct);if(t&&t.length>0){let e=!1;for(let n=0;n<t.length;n++)if(t[n]===bn.frameContext){e=!0;break}if(!e){const e=`This call is only allowed in following contexts: ${JSON.stringify(t)}. Current context: "${bn.frameContext}".`;throw Cr(e),new Error(e)}}return Nn(e)}function Er(e=it){const t=Jt(bn.clientSupportedSDKVersion,e);return!isNaN(t)&&t>=0}function Ar(){return bn.hostClientType==Ut.android||bn.hostClientType==Ut.ios||bn.hostClientType==Ut.ipados||bn.hostClientType==Ut.visionOS}function Ir(e=it){if(!Ar()){throw{errorCode:Ke.NOT_SUPPORTED_ON_PLATFORM}}if(!Er(e)){throw{errorCode:Ke.OLD_PLATFORM}}}function Pr(e){let t=bn.additionalValidOrigins.concat(e.filter(e=>"string"==typeof e&&mr(e)));const n={};t=t.filter(e=>!n[e]&&(n[e]=!0,!0)),bn.additionalValidOrigins=t}function Tr(e){if(!kr(e))throw new Error(`Potential app id (${e}) is invalid; its length ${e.length} is not within the length limits (${Rr}-${Fr}).`)}function Or(e){if(fn(e))throw new Error(`Potential app id (${e}) is invalid; it contains script tags.`);if(Mr(e))throw new Error(`Potential app id (${e}) is invalid; it contains non-printable characters.`)}const Rr=4,Fr=256;function kr(e){return e.length<Fr&&e.length>Rr}function Mr(e){return[...e].some(e=>{const t=e.charCodeAt(0);return t<32||t>126})}function xr(e){if(!(e instanceof Nr))throw new Error(`Potential app id (${e}) is invalid; it is not an instance of AppId class.`)}class Ur{constructor(e){this.idAsString=e,Or(e)}serialize(){return this.toString()}toString(){return this.idAsString}}class Nr extends Ur{constructor(e){super(e),Tr(e)}toJSON(){return{appIdAsString:this.toString()}}}function Lr(e){return null==e}var Dr=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};let Hr;const _r="v1",Br=Tn("messageChannels.telemetry");function Vr(){return Dr(this,void 0,void 0,function*(){if(Hr)return Br("Returning telemetry port from cache"),Hr;if(!Wr())throw Wt;return Hr=yield ec(On(_r,"messageChannels.telemetry.getTelemetryPort"),"messageChannels.telemetry.getTelemetryPort"),Hr})}function Wr(){var e;return!(!br(Ln)||!(null===(e=Ln.supports.messageChannels)||void 0===e?void 0:e.telemetry))}function jr(){Hr=void 0}var zr=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};let qr;const $r="v1",Gr=Tn("messageChannels.dataLayer");function Jr(){return zr(this,void 0,void 0,function*(){if(qr)return Gr("Returning dataLayer port from cache"),qr;if(!Kr())throw Wt;return qr=yield ec(On($r,"messageChannels.dataLayer.getDataLayerPort"),"messageChannels.dataLayer.getDataLayerPort"),qr})}function Kr(){var e;return!(!br(Ln)||!(null===(e=Ln.supports.messageChannels)||void 0===e?void 0:e.dataLayer))}function Qr(){qr=void 0}function Zr(e){if(!e)throw new Error("[app.lifecycle.registerBeforeSuspendOrTerminateHandler] Handler cannot be null");br(Ln),vs(e)}function Xr(e){if(!e)throw new Error("[app.lifecycle.registerOnResumeHandler] Handler cannot be null");br(Ln),ws(e)}const Yr="v2",eo=Tn("app"),to={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"};var no,ro;function oo(){return bn.initializeCompleted}function io(){return bn.frameContext}function ao(e){return Fi(On(Yr,"app.initialize"),e)}function so(e){Ws.currentWindow=e}function co(){bn.initializeCalled&&(Ya(),bn.initializeCalled=!1,bn.initializeCompleted=!1,bn.initializePromise=void 0,bn.additionalValidOrigins=[],bn.frameContext=void 0,bn.hostClientType=void 0,bn.isFramelessWindow=!1,jr(),Qr(),qs())}function uo(){return new Promise(e=>{Sr(),e($s(On(Yr,"app.getContext"),"getContext"))}).then(e=>yo(e))}function lo(){Sr(),ki(On(Yr,"app.notifyAppLoaded"))}function fo(){return Ui(On(Yr,"app.notifySuccess"))}function po(e){Sr(),xi(On(Yr,"app.notifyFailure"),e)}function ho(e){Sr(),Mi(On(Yr,"app.notifyExpectedFailure"),e)}function go(e){_i(On(Yr,"app.registerOnThemeChangeHandler"),e)}function mo(e){Bi(On(Yr,"app.registerOnContextChangeHandler"),e)}function vo(e){ls(e)}function wo(e){return Vi(On(Yr,"app.openLink"),e)}function yo(e){var t;return{actionInfo:e.actionInfo,app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,messageId:e.messageId,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userClickTimeV2:e.userClickTimeV2,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:Nt.teams,clientType:e.hostClientType?e.hostClientType:Ut.web,features:e.hostFeatures,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId,ancestors:e.hostAncestors},appLaunchId:e.appLaunchId,appId:e.appId?new Nr(e.appId):void 0,manifestVersion:e.manifestVersion},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:bn.frameContext,renderingSurface:e.renderingSurface?e.renderingSurface:void 0,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,isBackgroundLoad:e.isBackgroundLoad,sourceOrigin:e.sourceOrigin},user:{id:null!==(t=e.userObjectId)&&void 0!==t?t:"",displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0,dialogParameters:e.dialogParameters||{}}}function Co(e){No(On(xo,"dialog.update.resize"),e)}function So(){return!(!br(Ln)||!Ln.supports.dialog)&&!!Ln.supports.dialog.update}function bo(e,t,n){Do(On(xo,"dialog.url.bot.open"),e,t,n)}function Eo(){return br(Ln)&&void 0!==(Ln.supports.dialog&&Ln.supports.dialog.url&&Ln.supports.dialog.url.bot)}function Ao(e){if(br(Ln,Lt.task),!To())throw Wt;rc(On(xo,"dialog.url.parentCommunication.sendMessageToParentFromDialog"),"messageForParent",[e])}function Io(e){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!To())throw Wt;rc(On(xo,"dialog.url.parentCommunication.sendMessageToDialog"),"messageForChild",[e])}function Po(e){if(br(Ln,Lt.task),!To())throw Wt;for(rs("messageForChild"),ns(On(xo,"dialog.url.parentCommunication.registerMessageForChildHandler"),"messageForChild",e),Vo.reverse();Vo.length>0;){e(Vo.pop())}}function To(){var e,t;return br(Ln)&&!!(null===(t=null===(e=Ln.supports.dialog)||void 0===e?void 0:e.url)||void 0===t?void 0:t.parentCommunication)}function Oo(e,t,n){Lo(On(xo,"dialog.url.open"),e,t,n)}function Ro(e,t){Ho(On(xo,"dialog.url.submit"),e,t)}function Fo(){return br(Ln)&&void 0!==(Ln.supports.dialog&&Ln.supports.dialog.url)}function ko(e){return{url:e.url,height:e.size?e.size.height:Bt.Small,width:e.size?e.size.width:Bt.Small,title:e.title,fallbackUrl:e.fallbackUrl}}function Mo(e){const t=ko(e);return t.completionBotId=e.completionBotId,t}!function(e){e.AuthFailed="AuthFailed",e.Timeout="Timeout",e.Other="Other"}(no||(no={})),function(e){e.PermissionError="PermissionError",e.NotFound="NotFound",e.Throttling="Throttling",e.Offline="Offline",e.Other="Other"}(ro||(ro={})),eo("teamsjs instance is version %s, starting at %s UTC (%s local)",Zn,(new Date).toISOString(),(new Date).toLocaleString()),function(){if(cn())return;const e=document.getElementsByTagName("script"),t=e&&e[e.length-1]&&e[e.length-1].src,n="Today, teamsjs can only be used from a single script or you may see undefined behavior. This log line is used to help detect cases where teamsjs is loaded multiple times -- it is always written. The presence of the log itself does not indicate a multi-load situation, but multiples of these log lines will. If you would like to use teamjs from more than one script at the same time, please open an issue at https://github.com/OfficeDev/microsoft-teams-library-js/issues";t&&0!==t.length?eo("teamsjs is being used from %s. %s",t,n):eo("teamsjs is being used from a script tag embedded directly in your html. %s",n)}();const xo="v2",Uo="dialog.submit should not be called from FrameContext.content.\nIf dialog.submit was called from inside the dialog, please disregard this message.\nThis issue occurs due to a bug in Teams mobile where the dialog is incorrectly identified as being in the content FrameContext.\nWe are working to resolve this.";function No(e,t){if(br(Ln,Lt.content,Lt.sidePanel,Lt.task,Lt.meetingStage),!So())throw Wt;rc(e,"tasks.updateTask",[t])}function Lo(e,t,n,r){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!Fo())throw Wt;r&&ns(On(xo,"dialog.url.registerMessageForParentHandler"),"messageForParent",r);rc(e,"tasks.startTask",[ko(t)],(e,t)=>{null==n||n({err:e,result:t}),rs("messageForParent")})}function Do(e,t,n,r){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!Eo())throw Wt;r&&ns(On(xo,"dialog.url.bot.registerMessageForParentHandler"),"messageForParent",r);rc(e,"tasks.startTask",[Mo(t)],(e,t)=>{null==n||n({err:e,result:t}),rs("messageForParent")})}function Ho(e,t,n){if(br(Ln,Lt.content,Lt.task),!Fo())throw Wt;bn.frameContext===Lt.content&&console.warn(Uo),rc(e,"tasks.completeTask",[t,n?Array.isArray(n)?n:[n]:[]])}function _o(e){return{card:e.card,height:e.size?e.size.height:Bt.Small,width:e.size?e.size.width:Bt.Small,title:e.title}}function Bo(e){const t=_o(e);return t.completionBotId=e.completionBotId,t}const Vo=[];function Wo(e){bn.frameContext&&(bn.frameContext===Lt.task?Vo.push(e):rs("messageForChild"))}function jo(e,t){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!zo())throw Wt;const n=Bo(e);rc(On(xo,"dialog.adaptiveCard.bot.open"),"tasks.startTask",[n],(e,n)=>{null==t||t({err:e,result:n})})}function zo(){const e=Ln.hostVersionsInfo&&Ln.hostVersionsInfo.adaptiveCardSchemaVersion&&!nn(Ln.hostVersionsInfo.adaptiveCardSchemaVersion);return br(Ln)&&void 0!==(e&&Ln.supports.dialog&&Ln.supports.dialog.card&&Ln.supports.dialog.card.bot)}function qo(e,t){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!$o())throw Wt;const n=_o(e);rc(On(xo,"dialog.adaptiveCard.open"),"tasks.startTask",[n],(e,n)=>{null==t||t({err:e,result:n})})}function $o(){const e=Ln.hostVersionsInfo&&Ln.hostVersionsInfo.adaptiveCardSchemaVersion&&!nn(Ln.hostVersionsInfo.adaptiveCardSchemaVersion);return br(Ln)&&void 0!==(e&&Ln.supports.dialog&&Ln.supports.dialog.card)}function Go(){ns(On(xo,"dialog.registerMessageForChildHandler"),"messageForChild",Wo,!1)}function Jo(){return!(!br(Ln)||!Ln.supports.dialog)}const Ko="v2";var Qo,Zo;!function(e){e[e.ifRoom=0]="ifRoom",e[e.overflowOnly=1]="overflowOnly"}(Qo||(Qo={}));class Xo{constructor(){this.enabled=!0,this.selected=!1}}let Yo,ei,ti,ni,ri;function oi(){ns(On(Ko,"menus.registerNavBarMenuItemPressHandler"),"navBarMenuItemPress",ci,!1),ns(On(Ko,"menus.registerActionMenuItemPressHandler"),"actionMenuItemPress",li,!1),ns(On(Ko,"menus.registerSetModuleViewHandler"),"setModuleView",ai,!1)}function ii(e,t){if(br(Ln),!di())throw Wt;ti=t,rc(On(Ko,"menus.setUpViews"),"setUpViews",[e])}function ai(e){ti&&ti(e)||(br(Ln),rc(On(Ko,"menus.handleViewConfigItemPress"),"viewConfigItemPress",[e]))}function si(e,t){if(br(Ln),!di())throw Wt;Yo=t,rc(On(Ko,"menus.setNavBarMenu"),"setNavBarMenu",[e])}function ci(e){Yo&&Yo(e)||(br(Ln),rc(On(Ko,"menus.handleNavBarMenuItemPress"),"handleNavBarMenuItemPress",[e]))}function ui(e,t){if(br(Ln),!di())throw Wt;ei=t,rc(On(Ko,"menus.showActionMenu"),"showActionMenu",[e])}function li(e){ei&&ei(e)||(br(Ln),rc(On(Ko,"menus.handleActionMenuItemPress"),"handleActionMenuItemPress",[e]))}function di(){return!(!br(Ln)||!Ln.supports.menus)}function fi(){ns(On(Fa,"pages.config.registerSettingsSaveHandler"),"settings.save",yi,!1),ns(On(Fa,"pages.config.registerSettingsRemoveHandler"),"settings.remove",bi,!1)}function pi(e){return _a(On(Fa,"pages.config.setValidityState"),e)}function hi(e){return Va(On(Fa,"pages.config.setConfig"),e)}function gi(e){mi(On(Fa,"pages.config.registerOnSaveHandler"),e,()=>{if(!Lr(e)&&!Ai())throw Wt})}function mi(e,t,n){!Lr(t)&&br(Ln,Lt.settings),n&&n(),ni=t,!Lr(t)&&rc(e,"registerHandler",["save"])}function vi(e){wi(On(Fa,"pages.config.registerOnRemoveHandler"),e,()=>{if(!Lr(e)&&!Ai())throw Wt})}function wi(e,t,n){!Lr(t)&&br(Ln,Lt.remove,Lt.settings),n&&n(),ri=t,!Lr(t)&&rc(e,"registerHandler",["remove"])}function yi(e){const t=new Si(e);ni?ni(t):Es()?Fs("settings.save",[e]):t.notifySuccess()}function Ci(e){is(On(Fa,"pages.config.registerChangeConfigHandler"),"changeSettings",e,[Lt.content],()=>{if(!Ai())throw Wt})}!function(e){e.dropDown="dropDown",e.popOver="popOver"}(Zo||(Zo={}));class Si{constructor(e){this.notified=!1,this.result=e||{}}notifySuccess(){this.ensureNotNotified(),rc(On(Fa,"pages.saveEvent.notifySuccess"),"settings.save.success"),this.notified=!0}notifyFailure(e){this.ensureNotNotified(),rc(On(Fa,"pages.saveEvent.notifyFailure"),"settings.save.failure",[e]),this.notified=!0}ensureNotNotified(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")}}function bi(){const e=new Ei;ri?ri(e):Es()?Fs("settings.remove",[]):e.notifySuccess()}class Ei{constructor(){this.notified=!1}notifySuccess(){this.ensureNotNotified(),rc(On(Fa,"pages.removeEvent.notifySuccess"),"settings.remove.success"),this.notified=!0}notifyFailure(e){this.ensureNotNotified(),rc(On(Fa,"pages.removeEvent.notifyFailure"),"settings.remove.failure",[e]),this.notified=!0}ensureNotNotified(){if(this.notified)throw new Error("The removeEventType may only notify success or failure once.")}}function Ai(){return!(!br(Ln)||!Ln.supports.pages)&&!!Ln.supports.pages.config}class Ii{}class Pi extends Ii{validate(e){return!0}deserialize(e){return e}}var Ti=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Oi=6e4,Ri=Tn("app");function Fi(e,t){if(cn()){return Ri.extend("initialize")("window object undefined at initialization"),Promise.resolve()}return en(()=>Hi(e,t),Oi,new Error("SDK initialization timed out."))}function ki(e){rc(e,to.AppLoaded,[Zn])}function Mi(e,t){rc(e,to.ExpectedFailure,[t.reason,t.message])}function xi(e,t){rc(e,to.Failure,[t.reason,t.message,t.authHeader])}function Ui(e){return Ti(this,void 0,void 0,function*(){if(bn.initializeCompleted)return Li(e);if(!bn.initializePromise)throw new Error(Ct);return bn.initializePromise.then(()=>Li(e))})}function Ni(){var e;return br(Ln)&&!!(null===(e=Ln.supports.app)||void 0===e?void 0:e.notifySuccessResponse)}function Li(e){return Ti(this,void 0,void 0,function*(){return Ni()?Xs(to.Success,[Zn],new Pi,e).then(()=>({hasFinishedSuccessfully:!0})):(rc(e,to.Success,[Zn]),{hasFinishedSuccessfully:"unknown"})})}const Di=Ri.extend("initializeHelper");function Hi(e,t){return new Promise(n=>{bn.initializeCalled||(bn.initializeCalled=!0,Xa(),bn.initializePromise=zs(t,e).then(({context:e,clientType:t,runtimeConfig:n,clientSupportedSDKVersion:r=it})=>{bn.frameContext=e,bn.hostClientType=t,bn.clientSupportedSDKVersion=r;try{Di("Parsing %s",n);let e=JSON.parse(n);if(Di("Checking if %o is a valid runtime object",null!=e?e:"null"),!e||!e.apiVersion)throw new Error("Received runtime config is invalid");e=yn(e),n&&Kn(e)}catch(e){if(!(e instanceof SyntaxError))throw e;try{Di("Attempting to parse %s as an SDK version",n),isNaN(Jt(n,it))||(bn.clientSupportedSDKVersion=n);let e=JSON.parse(r);if(Di("givenRuntimeConfig parsed to %o",null!=e?e:"null"),!e)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");e=yn(e),Kn(e)}catch(e){if(!(e instanceof SyntaxError))throw e;Kn(Gn(bn.clientSupportedSDKVersion,Dn,zn))}}bn.initializeCompleted=!0}),oi(),fi(),Go()),Array.isArray(t)&&Pr(t),void 0!==bn.initializePromise?n(bn.initializePromise):Di("GlobalVars.initializePromise is unexpectedly undefined")})}function _i(e,t){!Lr(t)&&Sr(),as(e,t)}function Bi(e,t){!Lr(t)&&Sr(),ss(e,t)}function Vi(e,t){return new Promise(n=>{br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.task,Lt.stage,Lt.meetingStage),n(Gs(e,"executeDeepLink",t))})}var Wi=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};let ji=[];const zi=Tn("validateOrigin");let qi;function $i(){return Wi(this,void 0,void 0,function*(){qi||(yield Ji())})}function Gi(){return 0===ji.length}function Ji(e=!1){return Wi(this,void 0,void 0,function*(){if(!Gi()&&!e)return ji;if(qi)return qi;if(cn())return ji=gt,gt;{zi("Initiating fetch call to acquire valid origins list from CDN");const e=new AbortController,t=setTimeout(()=>e.abort(),mt);return qi=fetch(vt,{signal:e.signal}).then(e=>{if(clearTimeout(t),!e.ok)throw new Error("Invalid Response from Fetch Call");return zi("Fetch call completed and retrieved valid origins list from CDN"),e.json().then(e=>{if(Ki(JSON.stringify(e)))return ji=e.validOrigins,ji;throw new Error("Valid origins list retrieved from CDN is invalid")})}).catch(e=>("AbortError"===e.name?zi(`validOrigins fetch call to CDN failed due to Timeout of ${mt} ms. Defaulting to fallback list`):zi("validOrigins fetch call to CDN failed with error: %s. Defaulting to fallback list",e),ji=gt,ji)),qi}})}function Ki(e){let t=JSON.parse(e);try{t=JSON.parse(e)}catch(e){return!1}if(!t.validOrigins)return!1;for(const e of t.validOrigins)try{new URL("https://"+e)}catch(t){return zi("isValidOriginsFromCDN call failed to validate origin: %s",e),!1}return!0}function Qi(e,t){let n;try{const t=vr(e,zi);if(!t)return!1;n=t}catch(e){return!1}return n.test(t)}function Zi(e,t){const n=t||Gi()?gt:ji;return Xi(e,n)?Promise.resolve(!0):(zi("Origin %s is not in the local valid origins list, fetching from CDN",e),Ji(t).then(t=>Xi(e,t)))}function Xi(e,t){for(const t of bn.additionalValidOrigins)if(Qi(t,e))return!0;const n=e.host;return rn(e)?!!t.some(e=>hr(e,n))||(zi("Origin %s is invalid because it is not an origin approved by this library or included in the call to app.initialize.\nOrigins approved by this library: %o\nOrigins included in app.initialize: %o",e,t,bn.additionalValidOrigins),!1):(zi("Origin %s is invalid because it is not using https protocol. Protocol being used: %s",e,e.protocol),!1)}function Yi(e){is(On(Fa,"pages.appButton.onClick"),"appButtonClick",e,[Lt.content],()=>{if(!na())throw Wt})}function ea(e){is(On(Fa,"pages.appButton.onHoverEnter"),"appButtonHoverEnter",e,[Lt.content],()=>{if(!na())throw Wt})}function ta(e){is(On(Fa,"pages.appButton.onHoverLeave"),"appButtonHoverLeave",e,[Lt.content],()=>{if(!na())throw Wt})}function na(){return!(!br(Ln)||!Ln.supports.pages)&&!!Ln.supports.pages.appButton}function ra(){Ga()}function oa(){return Ma(On(Fa,"pages.backStack.navigateBack"))}function ia(e){aa(On(Fa,"pages.backStack.registerBackButtonHandler"),e,()=>{if(!Lr(e)&&!sa())throw Wt})}function aa(e,t,n){!Lr(t)&&br(Ln),n&&n(),$a(t),!Lr(t)&&rc(e,"registerHandler",["backButton"])}function sa(){return!(!br(Ln)||!Ln.supports.pages)&&!!Ln.supports.pages.backStack}function ca(e){return new Promise(t=>{if(br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.task,Lt.stage,Lt.meetingStage),!la())throw Wt;t(Ks(On(Fa,"pages.currentApp.navigateTo"),"pages.currentApp.navigateTo",e))})}function ua(){return new Promise(e=>{if(br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.task,Lt.stage,Lt.meetingStage),!la())throw Wt;e(Ks(On(Fa,"pages.currentApp.navigateToDefaultPage"),"pages.currentApp.navigateToDefaultPage"))})}function la(){return!(!br(Ln)||!Ln.supports.pages)&&!!Ln.supports.pages.currentApp}function da(){if(br(Ln,Lt.content),!pa())throw Wt;rc(On(Fa,"pages.fullTrust.enterFullscreen"),"enterFullscreen",[])}function fa(){if(br(Ln,Lt.content),!pa())throw Wt;rc(On(Fa,"pages.fullTrust.exitFullscreen"),"exitFullscreen",[])}function pa(){return!(!br(Ln)||!Ln.supports.pages)&&!!Ln.supports.pages.fullTrust}function ha(e){return xa(On(Fa,"pages.tabs.navigateToTab"),e)}function ga(e){return Na(On(Fa,"pages.tabs.getTabInstances"),e)}function ma(e){return La(On(Fa,"pages.tabs.getMruTabInstances"),e)}function va(){return!(!br(Ln)||!Ln.supports.pages)&&!!Ln.supports.pages.tabs}var wa,ya;function Ca(e){const t=On(Fa,"pages.returnFocus");if(br(Ln),!Ra())throw Wt;if(void 0===e&&rc(t,"returnFocus",[!1]),"boolean"==typeof e)rc(t,"returnFocus",[e]);else switch(e){case ya.PreviousLandmark:case ya.GoToActivityFeed:rc(t,"returnFocus",[!1,e]);break;case ya.NextLandmark:rc(t,"returnFocus",[!0,e])}}function Sa(e){is(On(Fa,"pages.registerFocusEnterHandler"),"focusEnter",e,[],()=>{if(!Ra())throw Wt})}function ba(e){Ha(On(Fa,"pages.setCurrentFrame"),e)}function Ea(e,t,n){$i(),Fi(On(Fa,"pages.initializeWithFrameContext"),n).then(()=>t&&t()),ba(e)}function Aa(){return Ba(On(Fa,"pages.getConfig."))}function Ia(e){return ka(On(Fa,"pages.navigateCrossDomain"),e)}function Pa(e){return new Promise(t=>{if(br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.task,Lt.stage,Lt.meetingStage),!Ra())throw Wt;const n=On(Fa,"pages.navigateToApp");if(Ln.isLegacyTeams){t(Gs(n,"executeDeepLink",tn(Wa(e)?e:ja(e))))}else{t(Gs(n,"pages.navigateToApp",Wa(e)?za(e):e))}})}function Ta(e){return Da(On(Fa,"pages.shareDeepLink"),e)}function Oa(e){is(On(Fa,"pages.registerFullScreenHandler"),"fullScreenChange",e,[],()=>{if(!Lr(e)&&!Ra())throw Wt})}function Ra(){return!(!br(Ln)||!Ln.supports.pages)}$i(),function(e){e[e.PreviousLandmark=0]="PreviousLandmark",e[e.NextLandmark=1]="NextLandmark",e[e.Read=2]="Read",e[e.Compose=3]="Compose"}(wa||(wa={})),function(e){e[e.PreviousLandmark=0]="PreviousLandmark",e[e.NextLandmark=1]="NextLandmark",e[e.GoToActivityFeed=2]="GoToActivityFeed"}(ya||(ya={}));const Fa="v2";function ka(e,t){return new Promise(n=>{if(br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.remove,Lt.task,Lt.stage,Lt.meetingStage),!Ra())throw Wt;n(Js(e,"navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",t))})}function Ma(e){return new Promise(t=>{if(br(Ln),!sa())throw Wt;t(Js(e,"navigateBack","Back navigation is not supported in the current client or context."))})}function xa(e,t){return new Promise(n=>{if(br(Ln),!va())throw Wt;n(Js(e,"navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",t))})}function Ua(e,t){if(br(Ln),!Ra())throw Wt;rc(e,"returnFocus",[t])}function Na(e,t){return new Promise(n=>{if(br(Ln),!va())throw Wt;n($s(e,"getTabInstances",t))})}function La(e,t){return new Promise(n=>{if(br(Ln),!va())throw Wt;n($s(e,"getMruTabInstances",t))})}function Da(e,t){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!Ra())throw Wt;rc(e,"shareDeepLink",[t.subPageId,t.subPageLabel,t.subPageWebUrl])}function Ha(e,t){if(br(Ln,Lt.content),!Ra())throw Wt;rc(e,"setFrameContext",[t])}function _a(e,t){if(br(Ln,Lt.settings,Lt.remove),!Ai())throw Wt;rc(e,"settings.setValidityState",[t])}function Ba(e){return new Promise(t=>{if(br(Ln,Lt.content,Lt.settings,Lt.remove,Lt.sidePanel),!Ra())throw Wt;t($s(e,"settings.getSettings"))})}function Va(e,t){return new Promise(n=>{if(br(Ln,Lt.content,Lt.settings,Lt.sidePanel),!Ai())throw Wt;n(Gs(e,"settings.setSettings",t))})}function Wa(e){return e.appId instanceof Nr}function ja(e){return Object.assign(Object.assign({},e),{appId:new Nr(e.appId),webUrl:e.webUrl?new URL(e.webUrl):void 0})}function za(e){return Object.assign(Object.assign({},e),{appId:e.appId.toString(),webUrl:e.webUrl?e.webUrl.toString():void 0})}let qa;function $a(e){qa=e}function Ga(){ns(On(Fa,"pages.backStack.registerBackButtonPressHandler"),"backButtonPress",Ja,!1)}function Ja(){qa&&qa()||(Es()?Fs("backButtonPress",[]):oa())}var Ka=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Qa=Tn("handlers");class Za{static initializeHandlers(){Za.handlers.themeChange=cs,Za.handlers.contextChange=us,Za.handlers.load=ps,Za.handlers.beforeUnload=ms,Ga()}static uninitializeHandlers(){Za.handlers={},Za.themeChangeHandler=null,Za.beforeUnloadHandler=null,Za.beforeSuspendOrTerminateHandler=null,Za.resumeHandler=null,Za.contextChangeHandler=null}}function Xa(){Za.initializeHandlers()}function Ya(){Za.uninitializeHandlers()}Za.handlers={},Za.themeChangeHandler=null,Za.loadHandler=null,Za.beforeUnloadHandler=null,Za.beforeSuspendOrTerminateHandler=null,Za.resumeHandler=null,Za.hostToAppPerformanceMetricsHandler=null,Za.contextChangeHandler=null;const es=Qa.extend("callHandler");function ts(e,t){const n=Za.handlers[e];if(n){es("Invoking the registered handler for message %s with arguments %o",e,t);return[!0,n.apply(this,t)]}return Es()?(Fs(e,t),[!1,void 0]):(es("Handler for action message %s not found.",e),[!1,void 0])}function ns(e,t,n,r=!0,o=[]){n?(Za.handlers[t]=n,r&&rc(e,"registerHandler",[t,...o])):delete Za.handlers[t]}function rs(e){delete Za.handlers[e]}function os(e){return null!=Za.handlers[e]}function is(e,t,n,r,o){n&&br(Ln,...r),o&&o(),ns(e,t,n)}function as(e,t){Za.themeChangeHandler=t,!Lr(t)&&rc(e,"registerHandler",["themeChange"])}function ss(e,t){Za.contextChangeHandler=t,!Lr(t)&&rc(e,"registerHandler",["contextChange"])}function cs(e){Za.themeChangeHandler&&Za.themeChangeHandler(e),Es()&&Fs("themeChange",[e])}function us(e){Za.contextChangeHandler&&Za.contextChangeHandler(e),Es()&&Fs("contextChange",[e])}function ls(e){Za.hostToAppPerformanceMetricsHandler=e}function ds(e){Za.hostToAppPerformanceMetricsHandler&&Za.hostToAppPerformanceMetricsHandler(e)}function fs(e,t){Za.loadHandler=t,!Lr(t)&&rc(e,"registerHandler",["load"])}function ps(e){const t=hs(e);Za.resumeHandler?(Za.resumeHandler(t),Es()&&Fs("load",[t])):Za.loadHandler&&(Za.loadHandler(e),Es()&&Fs("load",[e]))}function hs(e){return{entityId:e.entityId,contentUrl:new URL(e.contentUrl)}}function gs(e,t){Za.beforeUnloadHandler=t,!Lr(t)&&rc(e,"registerHandler",["beforeUnload"])}function ms(){return Ka(this,void 0,void 0,function*(){const e=()=>{rc(On("v2","handleBeforeUnload"),"readyToUnload",[])};Za.beforeSuspendOrTerminateHandler?(yield Za.beforeSuspendOrTerminateHandler(),Es()?Fs("beforeUnload"):e()):Za.beforeUnloadHandler&&Za.beforeUnloadHandler(e)||(Es()?Fs("beforeUnload"):e())})}function vs(e){Za.beforeSuspendOrTerminateHandler=e,!Lr(e)&&rc(On("v2","registerBeforeSuspendOrTerminateHandler"),"registerHandler",["beforeUnload"])}function ws(e){Za.resumeHandler=e,!Lr(e)&&rc(On("v2","registerOnResumeHandler"),"registerHandler",["load"])}var ys=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Cs=Tn("childProxyingCommunication");class Ss{}function bs(){Ss.window=null,Ss.origin=null,Ss.messageQueue=[]}function Es(){return!!er()&&!!Ss.window}function As(e,t){return!!er()&&(Ss.window&&!Ss.window.closed&&e!==Ss.window||(Ss.window=e,Ss.origin=t),Ss.window&&Ss.window.closed?(Ss.window=null,Ss.origin=null,!1):Ss.window===e)}function Is(e,t,n,r){return ys(this,void 0,void 0,function*(){Ss.window===t&&(fr(Ss.window,Ss.origin,Ss.messageQueue,"child"),Ts(e,n,r))})}Ss.messageQueue=[];const Ps=Cs.extend("handleIncomingMessageFromChild");function Ts(e,t,n){if(void 0===e.data.id||void 0===e.data.func)return;const r=sr(e.data),[o,i]=ts(r.func,r.args);if(o&&void 0!==i)return Ps("Handler called in response to message %s from child. Returning response from handler to child, action: %s.",lr(r),r.func),void Rs(r.id,r.uuid,Array.isArray(i)?i:[i]);Ps("No handler for message %s from child found; relaying message on to parent, action: %s. Relayed message will have a new id.",lr(r),r.func),Os(r,t,n)}function Os(e,t,n){const r=t(On("v2","tasks.startTask"),e.func,e.args,!0,e.teamsJsInstanceId),o=Ss.origin;n(r.uuid,(...t)=>{if(!Ss.window)return;if(!nr().disableEnforceOriginMatchForChildResponses&&o!==Ss.origin)return void Ps("Origin of child window has changed, not sending response back to child window");const n=t.pop();Ps("Message from parent being relayed to child, id: %s",lr(e)),Rs(e.id,e.uuid,t,n)})}function Rs(e,t,n,r){const o=Ss.window,i=ks(e,t,n,r),a=ur(i),s=Ss.origin;o&&s&&(Ps("Sending message %s to %s via postMessage, args = %o",lr(a),"child",a.args),o.postMessage(a,s))}function Fs(e,t){const n=Ss.window,r=Ms(e,t),o=Ss.origin;n&&o?n.postMessage(r,o):Ss.messageQueue.push(r)}function ks(e,t,n,r){return{id:e,uuid:t,args:n||[],isPartialResponse:r}}function Ms(e,t){return{func:e,args:t||[]}}class xs{static storeCallbackInformation(e,t){xs.callbackInformation.set(e,t)}static clearMessages(){xs.callbackInformation.clear()}static deleteMessageInformation(e){xs.callbackInformation.delete(e)}static handleOneWayPerformanceMetrics(e,t,n){const r=e.monotonicTimestamp;r&&n?ds({actionName:e.func,messageDelay:n-r,requestStartedAt:r}):t("Unable to send performance metrics for event %s",e.func)}static handlePerformanceMetrics(e,t,n,r){const o=xs.callbackInformation.get(e);o&&t.monotonicTimestamp&&r?(ds({actionName:o.name,messageDelay:r-t.monotonicTimestamp,requestStartedAt:o.calledAt}),xs.deleteMessageInformation(e)):n("Unable to send performance metrics for callback %s with arguments %o",e.toString(),t.args)}}xs.callbackInformation=new Map;const Us=Tn("nestedAppAuthUtils"),Ns=Us.extend("tryPolyfillWithNestedAppAuthBridge"),Ls="v2";function Ds(e,t,n){var r;const o=Ns;if(bn.isFramelessWindow)return void o("Cannot polyfill nestedAppAuthBridge as current window is frameless");if(!t)return void o("Cannot polyfill nestedAppAuthBridge as current window does not exist");if(t.parent!==t.top)return void o("Default NAA bridge injection not supported in nested iframe. Use standalone NAA bridge instead.");const i=(()=>{try{return JSON.parse(e)}catch(e){return null}})();if(!i||!(null===(r=i.supports)||void 0===r?void 0:r.nestedAppAuth))return void o("Cannot polyfill nestedAppAuthBridge as current hub does not support nested app auth");const a=t;if(a.nestedAppAuthBridge)return void o("nestedAppAuthBridge already exists on current window, skipping polyfill");const s=_s(a,n);s&&(a.nestedAppAuthBridge=s)}const Hs=Us.extend("createNestedAppAuthBridge");function _s(e,t){const n=Hs;if(!e)return n("nestedAppAuthBridge cannot be created as current window does not exist"),null;const{onMessage:r,sendPostMessage:o}=t,i=e=>t=>r(t,e);return{addEventListener:(t,r)=>{"message"===t?e.addEventListener(t,i(r)):n(`Event ${t} is not supported by nestedAppAuthBridge`)},postMessage:e=>{const t=(()=>{try{return JSON.parse(e)}catch(e){return null}})();if(!t||"object"!=typeof t||"NestedAppAuthRequest"!==t.messageType)return void n("Unrecognized data format received by app, message being ignored. Message: %o",e);const r=On(Ls,"nestedAppAuth.execute");o(e,r)},removeEventListener:(t,n)=>{e.removeEventListener(t,i(n))}}}var Bs=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Vs=Tn("communication");class Ws{}class js{}function zs(e,t){if(js.messageListener=e=>dc(e),Ws.currentWindow=Ws.currentWindow||sn(),Ws.parentWindow=Ws.currentWindow.parent!==Ws.currentWindow.self?Ws.currentWindow.parent:Ws.currentWindow.opener,Ws.topWindow=Ws.currentWindow.top,(Ws.parentWindow||e)&&Ws.currentWindow.addEventListener("message",js.messageListener,!1),!Ws.parentWindow){const e=Ws.currentWindow;if(!e.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));bn.isFramelessWindow=!0,e.onNativeMessage=Sc}try{return Ws.parentOrigin="*",Qs(t,"initialize",[Zn,Mn,e]).then(([e,t,n,r])=>(Ds(r,Ws.currentWindow,{onMessage:pc,sendPostMessage:ic}),{context:e,clientType:t,runtimeConfig:n,clientSupportedSDKVersion:r}))}finally{Ws.parentOrigin=null}}function qs(){Ws.currentWindow&&Ws.currentWindow.removeEventListener("message",js.messageListener,!1),Ws.currentWindow=null,Ws.parentWindow=null,Ws.parentOrigin=null,js.parentMessageQueue=[],js.nextMessageId=0,js.callbacks.clear(),js.promiseCallbacks.clear(),js.portCallbacks.clear(),js.legacyMessageIdsToUuidMap={},xs.clearMessages(),bs()}function $s(e,t,...n){return Qs(e,t,n).then(([e])=>e)}function Gs(e,t,...n){return Qs(e,t,n).then(([e,t])=>{if(!e)throw new Error(t)})}function Js(e,t,n,...r){return Qs(e,t,r).then(([e,t])=>{if(!e)throw new Error(t||n)})}function Ks(e,t,...n){return Qs(e,t,n).then(([e,t])=>{if(e)throw e;return t})}function Qs(e,t,n=void 0){if(!Rn(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return new Promise(r=>{r(nc(uc(e,t,n).uuid))})}function Zs(e){return e.map(e=>Qn(e)?e.serialize():e)}function Xs(e,t,n,r,o){var i;return Bs(this,void 0,void 0,function*(){const a=Zs(t),[s]=yield Qs(r,e,a);if(o&&o(s)||!o&&rt(s))throw new Error(`${s.errorCode}, message: ${null!==(i=s.message)&&void 0!==i?i:"None"}`);if(n.validate(s))return n.deserialize(s);throw new Error(`${Ke.INTERNAL_ERROR}, message: Invalid response from host - ${JSON.stringify(s)}`)})}function Ys(e,t,n,r){var o;return Bs(this,void 0,void 0,function*(){const i=Zs(t),[a]=yield Qs(n,e,i);if(r&&r(a)||!r&&rt(a))throw new Error(`${a.errorCode}, message: ${null!==(o=a.message)&&void 0!==o?o:"None"}`);if(void 0!==a)throw new Error(`${Ke.INTERNAL_ERROR}, message: Invalid response from host`)})}function ec(e,t,n=void 0){if(!Rn(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return tc(uc(e,t,n).uuid)}function tc(e){return new Promise((t,n)=>{js.portCallbacks.set(e,(e,r)=>{e instanceof MessagePort?t(e):n(r&&r.length>0?r[0]:new Error("Host responded without port or error details."))})})}function nc(e){return new Promise(t=>{js.promiseCallbacks.set(e,t)})}function rc(e,t,n,r){let o;if(n instanceof Function?r=n:n instanceof Array&&(o=n),!Rn(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);const i=uc(e,t,o);r&&js.callbacks.set(i.uuid,r)}js.parentMessageQueue=[],js.topMessageQueue=[],js.nextMessageId=0,js.callbacks=new Map,js.promiseCallbacks=new Map,js.portCallbacks=new Map,js.legacyMessageIdsToUuidMap={};const oc=Vs.extend("sendNestedAuthRequestToTopWindow");function ic(e,t){const n=oc,r=Ws.topWindow,o=Rc(e,t);return n("Message %s information: %o",lr(o),{actionName:o.func}),sc(r,o)}const ac=Vs.extend("sendRequestToTargetWindowHelper");function sc(e,t){const n=ac,r=Pc(e),o=ar(t);if(bn.isFramelessWindow)Ws.currentWindow&&Ws.currentWindow.nativeInterface&&(n("Sending message %s to %s via framelessPostMessage interface",lr(o),r),Ws.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(o)));else{const i=Ic(e);e&&i?(n("Sending message %s to %s via postMessage",lr(o),r),e.postMessage(o,i)):(n("Adding message %s to %s message queue",lr(o),r),Ac(e).push(t))}return t}const cc=Vs.extend("sendMessageToParentHelper");function uc(e,t,n,r,o){const i=cc,a=Ws.parentWindow,s=Oc(e,t,n,r,o);return xs.storeCallbackInformation(s.uuid,{name:t,calledAt:s.timestamp}),i("Message %s information: %o",lr(s),{actionName:t,args:n}),sc(a,s)}const lc=Vs.extend("processIncomingMessage");function dc(e){return Bs(this,void 0,void 0,function*(){if(!e||!e.data||"object"!=typeof e.data)return void lc("Unrecognized message format received by app, message being ignored. Message: %o",e);const t=e.source||e.originalEvent&&e.originalEvent.source,n=e.origin||e.originalEvent&&e.originalEvent.origin;return gc(t,n).then(r=>{r?(mc(t,n),t!==Ws.parentWindow?As(t,n)&&Is(e,t,uc,(e,t)=>js.callbacks.set(e,t)):Sc(e)):lc("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin, message: %o, source: %o, origin: %o",e,t,n)})})}const fc=Vs.extend("processAuthBridgeMessage");function pc(e,t){var n,r;const o=fc;if(!e||!e.data||"object"!=typeof e.data)return void o("Unrecognized message format received by app, message being ignored. Message: %o",e);const{args:i}=e.data,[,a]=null!=i?i:[],s=(()=>{try{return JSON.parse(a)}catch(e){return null}})();if(!s||"object"!=typeof s||"NestedAppAuthResponse"!==s.messageType)return void o("Unrecognized data format received by app, message being ignored. Message: %o",e);const c=e.source||(null===(n=null==e?void 0:e.originalEvent)||void 0===n?void 0:n.source),u=e.origin||(null===(r=null==e?void 0:e.originalEvent)||void 0===r?void 0:r.origin);c?gc(c,u)?(Ws.topWindow&&!Ws.topWindow.closed&&c!==Ws.topWindow||(Ws.topWindow=c,Ws.topOrigin=u),Ws.topWindow&&Ws.topWindow.closed&&(Ws.topWindow=null,Ws.topOrigin=null),fr(Ws.topWindow,Ws.topOrigin,js.topMessageQueue,"top"),t(a)):o("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin"):o("Message being ignored by app because it is coming for a target that is null")}const hc=Vs.extend("shouldProcessIncomingMessage");function gc(e,t){return Bs(this,void 0,void 0,function*(){if(Ws.currentWindow&&e===Ws.currentWindow)return hc("Should not process message because it is coming from the current window"),!1;if(Ws.currentWindow&&Ws.currentWindow.location&&t&&t===Ws.currentWindow.location.origin)return!0;{let e;try{e=new URL(t)}catch(e){return hc("Message has an invalid origin of %s",t),!1}const n=yield Zi(e);return n||hc("Message has an invalid origin of %s",t),n}})}function mc(e,t){bn.isFramelessWindow||Ws.parentWindow&&!Ws.parentWindow.closed&&e!==Ws.parentWindow||(Ws.parentWindow=e,Ws.parentOrigin=t),Ws.parentWindow&&Ws.parentWindow.closed&&(Ws.parentWindow=null,Ws.parentOrigin=null),fr(Ws.parentWindow,Ws.parentOrigin,js.parentMessageQueue,"parent")}const vc=Vs.extend("handleIncomingMessageFromParent");function wc(e){const t=vc;if(!e.uuid)return js.legacyMessageIdsToUuidMap[e.id];{const t=e.uuid,n=yc(js.callbacks,t);if(n)return n;const r=yc(js.promiseCallbacks,t);if(r)return r;const o=yc(js.portCallbacks,t);if(o)return o}t("Received message %s that failed to produce a callbackId",lr(e))}function yc(e,t){if(t){const n=[...e].find(([e,n])=>e.toString()===t.toString());if(n)return n[0]}}function Cc(e,t){const n=yc(t,e.uuid);n&&t.delete(n),e.uuid?js.legacyMessageIdsToUuidMap={}:delete js.legacyMessageIdsToUuidMap[e.id]}function Sc(e){const t=vc,n=vn();if("id"in e.data&&"number"==typeof e.data.id){const r=e.data,o=cr(r),i=wc(o);if(i){const r=js.callbacks.get(i);t("Received a response from parent for message %s",i.toString()),xs.handlePerformanceMetrics(i,o,t,n),r&&(t("Invoking the registered callback for message %s with arguments %o",i.toString(),o.args),r.apply(null,[...o.args,o.isPartialResponse]),bc(e)||(t("Removing registered callback for message %s",i.toString()),Cc(o,js.callbacks)));const a=js.promiseCallbacks.get(i);a&&(t("Invoking the registered promise callback for message %s with arguments %o",i.toString(),o.args),a(o.args),t("Removing registered promise callback for message %s",i.toString()),Cc(o,js.promiseCallbacks));const s=js.portCallbacks.get(i);if(s){let n;t("Invoking the registered port callback for message %s with arguments %o",i.toString(),o.args),e.ports&&e.ports[0]instanceof MessagePort&&(n=e.ports[0]),s(n,o.args),t("Removing registered port callback for message %s",i.toString()),Cc(o,js.portCallbacks)}o.uuid&&(js.legacyMessageIdsToUuidMap={})}}else if("func"in e.data&&"string"==typeof e.data.func){const r=e.data;xs.handleOneWayPerformanceMetrics(r,t,n),t('Received a message from parent %s, action: "%s"',lr(r),r.func),ts(r.func,r.args)}else t("Received an unknown message: %O",e)}function bc(e){return!0===e.data.isPartialResponse}function Ec(){return Ws.topWindow!==Ws.parentWindow}function Ac(e){return e===Ws.topWindow&&Ec()?js.topMessageQueue:e===Ws.parentWindow?js.parentMessageQueue:[]}function Ic(e){return e===Ws.topWindow&&Ec()?Ws.topOrigin:e===Ws.parentWindow?Ws.parentOrigin:null}function Pc(e){return e===Ws.topWindow&&Ec()?"top":e===Ws.parentWindow?"parent":null}function Tc(e,t){let n;n=Ws.currentWindow.setInterval(()=>{0===Ac(e).length&&(clearInterval(n),t())},100)}function Oc(e,t,n,r,o){const i=js.nextMessageId++,a=new Cn;js.legacyMessageIdsToUuidMap[i]=a;const s=!0===r?o:bn.teamsJsInstanceId;return{id:i,uuid:a,func:t,timestamp:Date.now(),monotonicTimestamp:vn(),args:n||[],apiVersionTag:e,isProxiedFromChild:null!=r&&r,teamsJsInstanceId:s}}function Rc(e,t){const n=js.nextMessageId++,r=new Cn;return js.legacyMessageIdsToUuidMap[n]=r,{id:n,uuid:r,func:"nestedAppAuth.execute",timestamp:Date.now(),monotonicTimestamp:vn(),apiVersionTag:t,args:[],data:e}}const Fc="v1";function kc(e){if(!Lr(e)&&br(Ln),!Lr(e)&&!Mc())throw Wt;e?ns(On(Fc,"log.request"),"log.request",()=>{const t=e();rc(On(Fc,"log.receive"),"log.receive",[t])}):rs("log.request")}function Mc(){return!(!br(Ln)||!Ln.supports.logs)}var xc,Uc,Nc;!function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(xc||(xc={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(Uc||(Uc={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Nc||(Nc={}));const Lc="v1";function Dc(e,t){br(Ln),rc(On(Lc,"uploadCustomApp"),"uploadCustomApp",[e],t||Gt())}function Hc(e,t,n){br(Ln),rc(On(Lc,"sendCustomMessage"),e,t,n)}function _c(e,t){if(br(Ln),!Es())throw new Error("The child window has not yet been initialized or is not present");Fs(e,t)}function Bc(e,t){br(Ln),ns(On(Lc,"registerCustomHandler"),e,(...e)=>t.apply(this,e))}function Vc(e,t){br(Ln),ns(On(Lc,"registerUserSettingsChangeHandler"),"userSettingsChange",t,!0,[e])}function Wc(e){br(Ln,Lt.content,Lt.sidePanel,Lt.task);const t=[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId,e.sizeInBytes,e.messageId,e.callerInfo,e.atpData,e.shareUrl,e.replyChainId];rc(On(Lc,"openFilePreview"),"openFilePreview",t)}const jc="v1";function zc(e){return new Promise(t=>{if(br(Ln,Lt.content),!Gc())throw Wt;const n=Gs(On(jc,"conversations.openConversation"),"conversations.openConversation",{title:e.title,subEntityId:e.subEntityId,conversationId:e.conversationId,channelId:e.channelId,entityId:e.entityId});e.onStartConversation&&ns(On(jc,"conversations.registerStartConversationHandler"),"startConversation",(t,n,r,o)=>{var i;return null===(i=e.onStartConversation)||void 0===i?void 0:i.call(e,{subEntityId:t,conversationId:n,channelId:r,entityId:o})}),e.onCloseConversation&&ns(On(jc,"conversations.registerCloseConversationHandler"),"closeConversation",(t,n,r,o)=>{var i;return null===(i=e.onCloseConversation)||void 0===i?void 0:i.call(e,{subEntityId:t,conversationId:n,channelId:r,entityId:o})}),t(n)})}function qc(){if(br(Ln,Lt.content),!Gc())throw Wt;rc(On(jc,"conversations.closeConversation"),"conversations.closeConversation"),rs("startConversation"),rs("closeConversation")}function $c(){return new Promise(e=>{if(br(Ln),!Gc())throw Wt;e($s(On(jc,"conversations.getChatMember"),"getChatMembers"))})}function Gc(){return!(!br(Ln)||!Ln.supports.conversations)}var Jc=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Kc="v2",Qc=Tn("copilot");function Zc(){var e;return br(Ln)&&!!(null===(e=Ln.supports.copilot)||void 0===e?void 0:e.customTelemetry)}function Xc(e,t){var n;return void 0===t&&(t=null!==(n=vn())&&void 0!==n?n:Date.now()),Jc(this,void 0,void 0,function*(){return br(Ln),Qc("Sending custom telemetry data to host for stage: %s to record timestamp: %s",e,t),Ys("copilot.customTelemetry.sendCustomTelemetryData",[e.toString(),t],On(Kc,"copilot.customTelemetry.sendCustomTelemetryData"))})}var Yc=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const eu="v2",tu=Tn("copilot");function nu(){var e,t;return br(Ln)&&(!!(null===(e=Ln.hostVersionsInfo)||void 0===e?void 0:e.appEligibilityInformation)||!!(null===(t=Ln.supports.copilot)||void 0===t?void 0:t.eligibility))}function ru(e){var t,n,r;return Yc(this,void 0,void 0,function*(){if(br(Ln),!nu())throw new Error(`Error code: ${Wt.errorCode}, message: Not supported on platform`);if((null===(t=Ln.hostVersionsInfo)||void 0===t?void 0:t.appEligibilityInformation)&&!e)return tu("Eligibility information is already available on runtime."),Ln.hostVersionsInfo.appEligibilityInformation;tu("Eligibility information is not available on runtime. Requesting from host.");const o=yield $s(On(eu,"copilot.eligibility.getEligibilityInfo"),"copilot.eligibility.getEligibilityInfo",e);if(rt(o))throw new Error(`Error code: ${o.errorCode}, message: ${null!==(n=o.message)&&void 0!==n?n:"Failed to get eligibility information from the host."}`);if(!ou(o))throw new Error("Error deserializing eligibility information");return"nonadult"===(null===(r=o.ageGroup)||void 0===r?void 0:r.toLowerCase())&&(o.ageGroup=Ye.NotAdult),o})}function ou(e){return void 0!==e.ageGroup&&void 0!==e.cohort&&void 0!==e.userClassification&&void 0!==e.isCopilotEligible&&void 0!==e.isCopilotEnabledRegion&&void 0!==e.isOptedOutByAdmin&&(!e.featureSet||void 0!==e.featureSet.serverFeatures&&void 0!==e.featureSet.uxFeatures)}var iu,au,su,cu,uu,lu,du,fu,pu;!function(e){e.EMAIL="email",e.TEXT="text",e.MEDIA="media",e.CALENDAR_INVITE="calendarInvite",e.WEB_PAGE="webPage",e.MIXED="mixed",e.TEAMS="teams",e.FILE="file"}(iu||(iu={})),function(e){e.IMAGE="image",e.AUDIO="audio",e.VIDEO="video"}(au||(au={})),function(e){e.Private="Private",e.Shared="Shared",e.Recap="Recap",e.RecapCall="RecapCall",e.PrivateViewCall="PrivateViewCall",e.Chat="Chat",e.Compose="Compose"}(su||(su={})),function(e){e.ClientDeviceType="ClientDeviceType",e.ClientRing="ClientRing",e.ClientScenarioName="ClientScenarioName"}(cu||(cu={})),function(e){e.Enabled="enabled",e.Disabled="disabled",e.EnabledWithTranscript="enabledWithTranscript"}(uu||(uu={})),function(e){e.NotStarted="notStarted",e.Active="active",e.Inactive="inactive",e.UnknownFutureValue="unknownFutureValue"}(lu||(lu={})),function(e){e.Chat="Chat",e.Channel="Channel",e.Meeting="Meeting",e.MeetingChat="MeetingChat"}(du||(du={})),function(e){e.Accepted="accepted",e.NotAccepted="not_accepted"}(fu||(fu={})),function(e){e.ConsentNotAccepted="consent_not_accepted",e.PageContentBlockedPolicy="page_content_blocked_policy",e.PageContentBlockedDlp="page_content_blocked_dlp",e.PageContentTypeNotSupportedYet="page_content_type_not_supported_yet",e.PageContentSizeNotSupported="page_content_size_not_supported",e.PageContextChanged="page_context_changed",e.PageContentExtractionFailed="page_content_extraction_failed",e.PageContentSizeNotSupportedPDF="page_content_size_not_supported_pdf",e.NotSupportedOnPlatform="not_supported_on_platform",e.OtherError="other_error"}(pu||(pu={}));class hu extends Error{constructor(e,t){super(t),this.errorCode=e,this.name="SidePanelError"}}var gu=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const mu="v2";function vu(){var e;return br(Ln)&&!!(null===(e=Ln.supports.copilot)||void 0===e?void 0:e.sidePanel)}function wu(e){if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(pu).includes(t.errorCode)&&(void 0===t.message||"string"==typeof t.message)||rt(e)}function yu(e){return gu(this,void 0,void 0,function*(){br(Ln);return Xs("copilot.sidePanel.getContent",e?[new Iu(e)]:[],new Eu,On(mu,"copilot.sidePanel.getContent"),wu)})}function Cu(e){return gu(this,void 0,void 0,function*(){br(Ln);return Xs("copilot.sidePanel.preCheckUserConsent",e?[new Pu(e)]:[],new Au,On(mu,"copilot.sidePanel.preCheckUserConsent"),wu)})}function Su(e){is(On(mu,"copilot.sidePanel.registerUserActionContentSelect"),"copilot.sidePanel.userActionContentSelect",e,[Lt.content],()=>{if(!vu())throw bu})}const bu=new hu(pu.NotSupportedOnPlatform,"This API is not supported on the current platform.");class Eu extends Ii{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class Au extends Ii{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class Iu{constructor(e){this.contentRequest=e}serialize(){return this.contentRequest}}class Pu{constructor(e){this.userConsentRequest=e}serialize(){return this.userConsentRequest}}var Tu=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Ou="v2";function Ru(){var e;return br(Ln)&&!!(null===(e=Ln.supports.copilot)||void 0===e?void 0:e.view)}function Fu(){return Tu(this,void 0,void 0,function*(){br(Ln),yield Xs("copilot.view.closeSidePanel",[],new ku,On(Ou,"copilot.view.closeSidePanel"))})}class ku extends Ii{validate(e){return!0}deserialize(e){return e}}const Mu="v2";class xu{constructor(e){this.invokeRequest=e}serialize(){return this.invokeRequest}}function Uu(e){const t=e;return t.responseType===Du.ActionExecuteInvokeResponse&&void 0!==t.value&&void 0!==t.statusCode&&void 0!==t.type}const Nu="Action.Execute";var Lu,Du,Hu,_u;!function(e){e.ActionExecuteInvokeRequest="ActionExecuteInvokeRequest",e.QueryMessageExtensionRequest="QueryMessageExtensionRequest"}(Lu||(Lu={})),function(e){e.ActionExecuteInvokeResponse="ActionExecuteInvokeResponse",e.QueryMessageExtensionResponse="QueryMessageExtensionResponse"}(Du||(Du={}));class Bu extends Ii{validate(e){return Uu(e)}deserialize(e){return e}}function Vu(e){if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(Hu).includes(t.errorCode)&&(void 0===t.message||"string"==typeof t.message)}function Wu(e){e.requestType===Lu.ActionExecuteInvokeRequest?ju(e):e.requestType===Lu.QueryMessageExtensionRequest&&zu(e)}function ju(e){if(e.type!==Nu){throw{errorCode:Hu.INTERNAL_ERROR,message:`Invalid action type ${e.type}. Action type must be "${Nu}"`}}if(!wn(e.data)){throw{errorCode:Hu.INTERNAL_ERROR,message:`Invalid data type ${typeof e.data}. Data must be a primitive or a plain object.`}}}function zu(e){if(e.commandId.length>64)throw new Error("originalRequestInfo.commandId exceeds the maximum size of 64 characters");if(e.parameters.length>5)throw new Error("originalRequestInfo.parameters exceeds the maximum size of 5");for(const t of e.parameters){if(t.name.length>64)throw new Error("originalRequestInfo.parameters.name exceeds the maximum size of 64 characters");if(t.value.length>512)throw new Error("originalRequestInfo.parameters.value exceeds the maximum size of 512 characters")}}function qu(e,t,n){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;const r=new Nr(e);return Wu(n),Qs(On(Mu,"externalAppAuthentication.authenticateAndResendRequest"),"externalAppAuthentication.authenticateAndResendRequest",[r.toString(),n,t.url.href,t.width,t.height,t.isExternal]).then(([e,t])=>{if(e&&null!=t.responseType)return t;throw t})}function $u(e,t){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;const n=new Nr(e);return Qs(On(Mu,"externalAppAuthentication.authenticateWithSSO"),"externalAppAuthentication.authenticateWithSSO",[n.toString(),t.claims,t.silent]).then(([e,t])=>{if(!e)throw t})}function Gu(e,t,n){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;const r=new Nr(e);return Wu(n),Qs(On(Mu,"externalAppAuthentication.authenticateWithSSOAndResendRequest"),"externalAppAuthentication.authenticateWithSSOAndResendRequest",[r.toString(),n,t.claims,t.silent]).then(([e,t])=>{if(e&&null!=t.responseType)return t;throw t})}function Ju(e,t,n){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;return un(e,new Error("titleId is Invalid.")),un(t,new Error("oauthConfigId is Invalid.")),Qs(On(Mu,"externalAppAuthentication.authenticateWithOauth2"),"externalAppAuthentication.authenticateWithOauth2",[e,t,n.width,n.height,n.isExternal]).then(([e,t])=>{if(!e)throw t})}function Ku(e,t,n){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;return un(e,new Error("titleId is Invalid.")),t&&ln(t),Qs(On(Mu,"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins"),"externalAppAuthentication.authenticateWithPowerPlatformConnectorPlugins",[e,null==t?void 0:t.toString(),null==n?void 0:n.width,null==n?void 0:n.height,null==n?void 0:n.isExternal]).then(([e,t])=>{if(!e)throw t})}!function(e){e.INTERNAL_ERROR="INTERNAL_ERROR"}(Hu||(Hu={}));class Qu{constructor(e){this.param=e}serialize(){var e,t,n;return{connectorId:this.param.connectorId,oAuthConfigId:this.param.oAuthConfigId,traceId:null!==(n=null===(t=null===(e=this.param.traceId)||void 0===e?void 0:e.toString)||void 0===t?void 0:t.call(e))&&void 0!==n?n:this.param.traceId,windowParameters:this.param.windowParameters?Object.assign({},this.param.windowParameters):void 0}}}function Zu(e){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;return un(e.connectorId,new Error("connectorId is Invalid.")),un(e.oAuthConfigId,new Error("oauthConfigId is Invalid.")),Ys("externalAppAuthentication.authenticateWithConnector",[new Qu(e)],On(Mu,"externalAppAuthentication.authenticateWithConnector"),Vu)}!function(e){e.Invalid="Invalid",e.Valid="Valid",e.Expired="Expired"}(_u||(_u={}));class Xu extends Ii{validate(e){return"string"==typeof e&&e in _u}deserialize(e){return e}}function Yu(e){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;return un(e.connectorId,new Error("connectorId is Invalid.")),un(e.oAuthConfigId,new Error("oAuthConfigId is Invalid.")),Xs("externalAppAuthentication.getUserAuthenticationStateForConnector",[new Qu(e)],new Xu,On(Mu,"externalAppAuthentication.getUserAuthenticationStateForConnector"),Vu)}function el(e){if(br(Ln,Lt.content,Lt.sidePanel),!tl())throw Wt;return un(e.connectorId,new Error("connectorId is Invalid.")),un(e.oAuthConfigId,new Error("oauthConfigId is Invalid.")),Ys("externalAppAuthentication.disconnectConnector",[new Qu(e)],On(Mu,"externalAppAuthentication.disconnectConnector"),Vu)}function tl(){return!(!br(Ln)||!Ln.supports.externalAppAuthentication)}var nl=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const rl="v2";function ol(e,t,n){return nl(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!cl())throw Wt;return ul(e,t),Ys("externalAppAuthenticationForCEA.authenticateWithSSO",[e,t,n.authId,n.connectionName,n.claims,n.silent],On(rl,"externalAppAuthenticationForCEA.authenticateWithSSO"),Vu)})}function il(e,t,n){return nl(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!cl())throw Wt;return ul(e,t),Ys("externalAppAuthenticationForCEA.authenticateWithOauth",[e,t,n.url.href,n.width,n.height,n.isExternal],On(rl,"externalAppAuthenticationForCEA.authenticateWithOauth"),Vu)})}function al(e,t,n,r){return nl(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!cl())throw Wt;return ul(e,t),ju(r),Xs("externalAppAuthenticationForCEA.authenticateAndResendRequest",[e,t,new xu(r),n.url.href,n.width,n.height,n.isExternal],new Bu,On(rl,"externalAppAuthenticationForCEA.authenticateAndResendRequest"),Vu)})}function sl(e,t,n,r){return nl(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!cl())throw Wt;return ul(e,t),ju(r),Xs("externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest",[e,t,new xu(r),n.authId,n.connectionName,n.claims,n.silent],new Bu,On(rl,"externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest"),Vu)})}function cl(){return!(!br(Ln)||!Ln.supports.externalAppAuthenticationForCEA)}function ul(e,t){un(t,new Error("conversation id is not valid.")),xr(e)}const ll="v2";var dl,fl;function pl(e,t){if(br(Ln,Lt.content,Lt.sidePanel),!gl())throw Wt;const n=new Nr(e);return Qs(On(ll,"externalAppCardActions.processActionSubmit"),"externalAppCardActions.processActionSubmit",[n.toString(),t]).then(([e,t])=>{if(!e)throw t})}function hl(e,t,n){if(br(Ln,Lt.content,Lt.sidePanel),!gl())throw Wt;const r=new Nr(e);return Qs(On(ll,"externalAppCardActions.processActionOpenUrl"),"externalAppCardActions.processActionOpenUrl",[r.toString(),t.href,n]).then(([e,t])=>{if(e)throw e;return t})}function gl(){return!(!br(Ln)||!Ln.supports.externalAppCardActions)}!function(e){e.DeepLinkDialog="DeepLinkDialog",e.DeepLinkOther="DeepLinkOther",e.DeepLinkStageView="DeepLinkStageView",e.GenericUrl="GenericUrl"}(dl||(dl={})),function(e){e.INTERNAL_ERROR="INTERNAL_ERROR",e.INVALID_LINK="INVALID_LINK",e.NOT_SUPPORTED="NOT_SUPPORTED"}(fl||(fl={}));var ml=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const vl="v2";function wl(e,t,n){return ml(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!Cl())throw Wt;ul(e,t);const[r,o]=yield Qs(On(vl,"externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[e.toString(),t,n.href]);if(r)throw r;return o})}function yl(e,t,n){return ml(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!Cl())throw Wt;ul(e,t);const r=yield $s(On(vl,"externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",e.toString(),t,n);if(r)throw r})}function Cl(){return!(!br(Ln)||!Ln.supports.externalAppCardActionsForCEA)}var Sl;function bl(e){if("object"!=typeof e||null===e)return!1;const t=e;return Object.values(Sl).includes(t.errorCode)&&(void 0===t.message||"string"==typeof t.message)}!function(e){e.INTERNAL_ERROR="INTERNAL_ERROR"}(Sl||(Sl={}));var El=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Al="v2";function Il(e,t,n){return El(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!Pl())throw Wt;return Tl(e,n),Ys("externalAppCardActionsForDA.processActionOpenUrlDialog",[e,new Ol(t),n],On(Al,"externalAppCardActionsForDA.processActionOpenUrlDialog"),bl)})}function Pl(){return!(!br(Ln)||!Ln.supports.externalAppCardActionsForDA)}function Tl(e,t){xr(e),Sn(t)}class Ol{constructor(e){this.info=e}serialize(){const{url:e,title:t,size:n}=this.info;return{url:e.href,title:t,size:n}}}var Rl=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Fl="v2";function kl(e,t,n){return Rl(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.sidePanel),!Ml())throw Wt;const r=new Nr(e),[o,i]=yield Qs(On(Fl,"externalAppCommands.processActionCommand"),"externalAppCommands.processActionCommand",[r.toString(),t,n]);if(o)throw o;return i})}function Ml(){return!(!br(Ln)||!Ln.supports.externalAppCommands)}const xl="v1";var Ul,Nl,Ll,Dl,Hl,_l;function Bl(e,t){if(br(Ln,Lt.content),!e||0===e.length)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!t)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");rc(On(xl,"files.getCloudStorageFolders"),"files.getCloudStorageFolders",[e],t)}function Vl(e,t){if(br(Ln,Lt.content),!e||0===e.length)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");rc(On(xl,"files.addCloudStorageFolder"),"files.addCloudStorageFolder",[e],t)}function Wl(e,t,n){if(br(Ln,Lt.content),!e)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!t)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!n)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");rc(On(xl,"files.deleteCloudStorageFolder"),"files.deleteCloudStorageFolder",[e,t],n)}function jl(e,t,n){if(br(Ln,Lt.content),!e||!t)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!n)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in e&&!e.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");rc(On(xl,"files.getCloudStorageFolderContents"),"files.getCloudStorageFolderContents",[e,t],n)}function zl(e,t,n){if(br(Ln,Lt.content),!e||!t)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(e.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");rc(On(xl,"files.openCloudStorageFile"),"files.openCloudStorageFile",[e,t,n])}function ql(e=!1,t){if(br(Ln,Lt.content),!t)throw new Error("[files.getExternalProviders] Callback cannot be null");rc(On(xl,"files.getExternalProviders"),"files.getExternalProviders",[e],t)}function $l(e,t,n,r,o=!1,i){if(br(Ln,Lt.content),!e||0===e.length)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!t)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!n)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!r)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!i)throw new Error("[files.copyMoveFiles] callback cannot be null");rc(On(xl,"files.copyMoveFiles"),"files.copyMoveFiles",[e,t,n,r,o],i)}function Gl(e){if(br(Ln,Lt.content),!e)throw new Error("[files.getFileDownloads] Callback cannot be null");rc(On(xl,"files.getFileDownloads"),"files.getFileDownloads",[],e)}function Jl(e=void 0,t){if(br(Ln,Lt.content),!t)throw new Error("[files.openDownloadFolder] Callback cannot be null");rc(On(xl,"files.openDownloadFolder"),"files.openDownloadFolder",[e],t)}function Kl(e){if(br(Ln,Lt.content),!e)throw od(Ke.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");rc(On(xl,"files.addCloudStorageProvider"),"files.addCloudStorageProvider",[],e)}function Ql(e,t){if(br(Ln,Lt.content),!t)throw od(Ke.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!e||!e.content)throw od(Ke.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");rc(On(xl,"files.removeCloudStorageProvider"),"files.removeCloudStorageProvider",[e],t)}function Zl(e,t){if(br(Ln,Lt.content),!t)throw od(Ke.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw od(Ke.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");rc(On(xl,"files.addCloudStorageProviderFile"),"files.addCloudStorageProviderFile",[e],t)}function Xl(e,t){if(br(Ln,Lt.content),!t)throw od(Ke.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!e||!e.content)throw od(Ke.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");rc(On(xl,"files.renameCloudStorageProviderFile"),"files.renameCloudStorageProviderFile",[e],t)}function Yl(e,t){if(br(Ln,Lt.content),!t)throw od(Ke.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw od(Ke.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");rc(On(xl,"files.deleteCloudStorageProviderFile"),"files.deleteCloudStorageProviderFile",[e],t)}function ed(e,t){if(br(Ln,Lt.content),!t)throw od(Ke.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw od(Ke.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");rc(On(xl,"files.downloadCloudStorageProviderFile"),"files.downloadCloudStorageProviderFile",[e],t)}function td(e,t){if(br(Ln,Lt.content),!t)throw od(Ke.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(e&&e.content&&e.content.itemList&&e.content.itemList.length>0))throw od(Ke.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!e.content.destinationFolder)throw od(Ke.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");rc(On(xl,"files.uploadCloudStorageProviderFile"),"files.uploadCloudStorageProviderFile",[e],t)}function nd(e){if(br(Ln),!e)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");ns(On(xl,"files.registerCloudStorageProviderListChangeHandler"),"files.cloudStorageProviderListChange",e)}function rd(e){if(br(Ln),!e)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");ns(On(xl,"files.registerCloudStorageProviderContentChangeHandler"),"files.cloudStorageProviderContentChange",e)}function od(e,t){return{errorCode:e,message:t}}!function(e){e.Dropbox="DROPBOX",e.Box="BOX",e.Sharefile="SHAREFILE",e.GoogleDrive="GOOGLEDRIVE",e.Egnyte="EGNYTE",e.SharePoint="SharePoint"}(Ul||(Ul={})),function(e){e[e.Sharepoint=0]="Sharepoint",e[e.WopiIntegration=1]="WopiIntegration",e[e.Google=2]="Google",e[e.OneDrive=3]="OneDrive",e[e.Recent=4]="Recent",e[e.Aggregate=5]="Aggregate",e[e.FileSystem=6]="FileSystem",e[e.Search=7]="Search",e[e.AllFiles=8]="AllFiles",e[e.SharedWithMe=9]="SharedWithMe"}(Nl||(Nl={})),function(e){e.ClassMaterials="classMaterials"}(Ll||(Ll={})),function(e){e.Readonly="readonly"}(Dl||(Dl={})),function(e){e.Downloaded="Downloaded",e.Downloading="Downloading",e.Failed="Failed"}(Hl||(Hl={})),function(e){e.Download="DOWNLOAD",e.Upload="UPLOAD",e.Delete="DELETE"}(_l||(_l={}));const id="v1";function ad(){return new Promise(e=>{if(br(Ln),!ld())throw Wt;e(Ks(On(id,"meetingRoom.getPairedMeetingRoomInfo"),"meetingRoom.getPairedMeetingRoomInfo"))})}function sd(e){return new Promise(t=>{if(!e||0==e.length)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(br(Ln),!ld())throw Wt;t(Ks(On(id,"meetingRoom.sendCommandToPairedMeetingRoom"),"meetingRoom.sendCommandToPairedMeetingRoom",e))})}function cd(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(br(Ln),!ld())throw Wt;ns(On(id,"meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler"),"meetingRoom.meetingRoomCapabilitiesUpdate",t=>{br(Ln),e(t)})}function ud(e){if(!e)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(br(Ln),!ld())throw Wt;ns(On(id,"meetingRoom.registerMeetingRoomStatesUpdateHandler"),"meetingRoom.meetingRoomStatesUpdate",t=>{br(Ln),e(t)})}function ld(){return!(!br(Ln)||!Ln.supports.meetingRoom)}function dd(){return!(!br(Ln)||!Ln.supports.messageChannels)}const fd="1.0.1",pd={onMessage:function(e,t){if(!e||!e.data||"object"!=typeof e.data||null===e.data)return void Sd("Invalid message format, ignoring. Message: %o",e);if(!wd(e.source,e.origin))return void Sd("Message source/origin not allowed, ignoring.");const{args:n}=e.data,[,r]=null!=n?n:[],o=(()=>{try{return JSON.parse(r)}catch(e){return bd("Failed to parse response message:",e),null}})();if(!o||"NestedAppAuthResponse"!==o.messageType)return void Sd("Invalid response format, ignoring. Message: %o",e);t(r)}};let hd=null,gd=!1;function md(e,t,n=!1){if(gd=n,!e)throw new Error("Cannot polyfill nestedAppAuthBridge as the current window does not exist");if(!t)throw new Error("Top origin is required to initialize the Nested App Auth Bridge");try{const e=new URL(t);if("https:"!==e.protocol)throw new Error(`Invalid top origin: ${t}. Only HTTPS origins are allowed.`);hd=e.origin}catch(e){throw new Error(`Failed to initialize bridge: invalid top origin: ${t}`)}const r=e;if(r.nestedAppAuthBridge)return void Sd("Nested App Auth Bridge is already present");const o=vd(r);o&&(r.nestedAppAuthBridge=o)}function vd(e){const t=new WeakMap,{onMessage:n}=pd,r=e=>t=>n(t,e);return{addEventListener:(n,o)=>{if("message"===n){const i=r(o);t.set(o,i),e.addEventListener(n,i)}else Sd(`Event ${n} is not supported by nestedAppAuthBridge`)},postMessage:t=>{if(!e.top)throw new Error("window.top is not available for posting messages");try{const n=JSON.parse(t);if("object"==typeof n&&"NestedAppAuthRequest"===n.messageType){const n=yd(t);if(e===e.top||!hd)return void bd("Not in an embedded iframe; skipping postMessage.");e.top.postMessage(n,hd)}}catch(e){return void bd("Failed to parse message:",e,"Original message:",t)}},removeEventListener:(n,r)=>{const o=t.get(r);o&&(e.removeEventListener(n,o),t.delete(r))}}}function wd(e,t){if(t===hd)try{return"https:"===new URL(t).protocol}catch(e){return bd("Invalid message origin URL:",e),!1}return!1}function yd(e){const t=Date.now();return{id:Cd(),uuid:kt(),func:"nestedAppAuth.execute",timestamp:t,apiVersionTag:"v2_nestedAppAuth.execute",monotonicTimestamp:t,args:[],data:e}}function Cd(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).substring(2,11)}function Sd(...e){gd&&console.log(...e)}function bd(...e){gd&&console.error(...e)}const Ed="v1";function Ad(e){if(br(Ln,Lt.content),!Id())throw Wt;rc(On(Ed,"notifications.showNotification"),"notifications.showNotification",[e])}function Id(){return!(!br(Ln)||!Ln.supports.notifications)}const Pd="v2";function Td(e){if(!Fd())throw new Error(Ke.NOT_SUPPORTED_ON_PLATFORM.toString());if(Lr(e))throw new Error(Ke.INVALID_ARGUMENTS.toString());ns(On(Pd,"otherApp.install"),"otherApp.install",e)}function Od(){if(!Fd())throw new Error(Ke.NOT_SUPPORTED_ON_PLATFORM.toString());rc(On(Pd,"otherApp.unregisterInstall"),"otherApp.unregisterInstall"),rs("otherApp.install")}function Rd(e){if(!Fd())throw new Error(Ke.NOT_SUPPORTED_ON_PLATFORM.toString());return Ys("otherApp.notifyInstallCompleted",[e.toString()],On(Pd,"otherApp.notifyInstallCompleted"))}function Fd(){return!(!br(Ln)||!Ln.supports.otherAppStateChange)}var kd=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Md="v2";function xd(){return br(Ln)&&!!Ln.supports.plugins}function Ud(e){return kd(this,void 0,void 0,function*(){if(br(Ln),!e.func)throw new Error("func is required in PluginMessage.");return Ys("plugins.sendMessage",[new Ld(e)],On(Md,"plugins.sendMessage"))})}function Nd(e){is(On(Md,"plugins.receiveMessage"),"plugins.receiveMessage",(...t)=>{e(Dd(t))},Object.values(Lt),()=>{if(!xd())throw new Error("Receiving plugin messages is not supported in the current host.")})}class Ld{constructor(e){this.message=e}serialize(){return this.message}}function Dd(e){if(1===e.length&&Hd(e[0]))return e[0];const[t,n,r]=e;return{func:"string"==typeof t?t:String(null!=t?t:""),args:n,correlationId:"string"==typeof r?r:void 0}}function Hd(e){if(!e||"object"!=typeof e)return!1;return"string"==typeof e.func}const _d="v1";var Bd,Vd,Wd;function jd(e){if(!e)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;rc(On(_d,"remoteCamera.getCapableParticipants"),"remoteCamera.getCapableParticipants",e)}function zd(e,t){if(!e)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!t)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;rc(On(_d,"remoteCamera.requestControl"),"remoteCamera.requestControl",[e],t)}function qd(e,t){if(!e)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!t)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;rc(On(_d,"remoteCamera.sendControlCommand"),"remoteCamera.sendControlCommand",[e],t)}function $d(e){if(!e)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;rc(On(_d,"remoteCamera.terminateSession"),"remoteCamera.terminateSession",e)}function Gd(e){if(!e)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;ns(On(_d,"remoteCamera.registerOnCapableParticipantsChangeHandler"),"remoteCamera.capableParticipantsChange",e)}function Jd(e){if(!e)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;ns(On(_d,"remoteCamera.registerOnErrorHandler"),"remoteCamera.handlerError",e)}function Kd(e){if(!e)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;ns(On(_d,"remoteCamera.registerOnDeviceStateChangeHandler"),"remoteCamera.deviceStateChange",e)}function Qd(e){if(!e)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(br(Ln,Lt.sidePanel),!Zd())throw Wt;ns(On(_d,"remoteCamera.registerOnSessionStatusChangeHandler"),"remoteCamera.sessionStatusChange",e)}function Zd(){return!(!br(Ln)||!Ln.supports.remoteCamera)}!function(e){e.Reset="Reset",e.ZoomIn="ZoomIn",e.ZoomOut="ZoomOut",e.PanLeft="PanLeft",e.PanRight="PanRight",e.TiltUp="TiltUp",e.TiltDown="TiltDown"}(Bd||(Bd={})),function(e){e[e.CommandResetError=0]="CommandResetError",e[e.CommandZoomInError=1]="CommandZoomInError",e[e.CommandZoomOutError=2]="CommandZoomOutError",e[e.CommandPanLeftError=3]="CommandPanLeftError",e[e.CommandPanRightError=4]="CommandPanRightError",e[e.CommandTiltUpError=5]="CommandTiltUpError",e[e.CommandTiltDownError=6]="CommandTiltDownError",e[e.SendDataError=7]="SendDataError"}(Vd||(Vd={})),function(e){e[e.None=0]="None",e[e.ControlDenied=1]="ControlDenied",e[e.ControlNoResponse=2]="ControlNoResponse",e[e.ControlBusy=3]="ControlBusy",e[e.AckTimeout=4]="AckTimeout",e[e.ControlTerminated=5]="ControlTerminated",e[e.ControllerTerminated=6]="ControllerTerminated",e[e.DataChannelError=7]="DataChannelError",e[e.ControllerCancelled=8]="ControllerCancelled",e[e.ControlDisabled=9]="ControlDisabled",e[e.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"}(Wd||(Wd={}));const Xd="v1";function Yd(e,t,n,r){if(br(Ln,Lt.content),!ef())throw Wt;if(!e||0==e.length)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!r)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");rc(On(Xd,"appEntity.selectAppEntity"),"appEntity.selectAppEntity",[e,t,n],r)}function ef(){return!(!br(Ln)||!Ln.supports.appEntity)}const tf="v1";function nf(e){return new Promise(t=>{if(br(Ln),!rf())throw Wt;if((bn.hostClientType===Ut.android||bn.hostClientType===Ut.teamsRoomsAndroid||bn.hostClientType===Ut.teamsPhones||bn.hostClientType===Ut.teamsDisplays)&&!Er(ut)){const e={errorCode:Ke.OLD_PLATFORM};throw new Error(JSON.stringify(e))}t($s(On(tf,"teams.fullTrust.joinedTeams.getUserJoinedTeams"),"getUserJoinedTeams",e))})}function rf(){return!(!br(Ln)||!Ln.supports.teams)&&(!!Ln.supports.teams.fullTrust&&!!Ln.supports.teams.fullTrust.joinedTeams)}var of=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const af="v1";function sf(e){return of(this,void 0,void 0,function*(){if(br(Ln),!cf())throw Wt;return Xs("getConfigSetting",[e],new Pi,On(af,"teams.fullTrust.getConfigSetting"))})}function cf(){return!(!br(Ln)||!Ln.supports.teams)&&!!Ln.supports.teams.fullTrust}const uf="v1";var lf;function df(e,t){if(br(Ln,Lt.content),!pf())throw Wt;if(!e)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!t)throw new Error("[teams.getTeamChannels] Callback cannot be null");rc(On(uf,"teams.getTeamChannels"),"teams.getTeamChannels",[e],t)}function ff(e,t){if(br(Ln),!pf())throw Wt;if(!e)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!t)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");rc(On(uf,"teams.refreshSiteUrl"),"teams.refreshSiteUrl",[e],t)}function pf(){return!(!br(Ln)||!Ln.supports.teams)}!function(e){e[e.Regular=0]="Regular",e[e.Private=1]="Private",e[e.Shared=2]="Shared"}(lf||(lf={}));class hf{static setTimeout(e,t){const n=performance.now(),r=Kt();return hf.setTimeoutCallbacks[r]={callback:e,timeoutInMs:t,startedAtInMs:n},r}static clearTimeout(e){delete hf.setTimeoutCallbacks[e]}static setInterval(e,t){hf.setTimeout(function n(){e(),hf.setTimeout(n,t)},t)}static tick(){const e=performance.now(),t=[];for(const n in hf.setTimeoutCallbacks){const r=hf.setTimeoutCallbacks[n];e-r.startedAtInMs>=r.timeoutInMs&&t.push(n)}for(const e of t){hf.setTimeoutCallbacks[e].callback(),delete hf.setTimeoutCallbacks[e]}}}hf.setTimeoutCallbacks={};class gf{constructor(e,t){this.reportStatisticsResult=t,this.sampleCount=0,this.distributionBins=new Uint32Array(e)}processStarts(e,t,n,r){hf.tick(),this.suitableForThisSession(e,t,n,r)||this.reportAndResetSession(this.getStatistics(),e,r,t,n),this.start()}processEnds(){const e=performance.now()-this.frameProcessingStartedAt,t=Math.floor(Math.max(0,Math.min(this.distributionBins.length-1,e)));this.distributionBins[t]+=1,this.sampleCount+=1}getStatistics(){return this.currentSession?{effectId:this.currentSession.effectId,effectParam:this.currentSession.effectParam,frameHeight:this.currentSession.frameHeight,frameWidth:this.currentSession.frameWidth,duration:performance.now()-this.currentSession.startedAtInMs,sampleCount:this.sampleCount,distributionBins:this.distributionBins.slice()}:null}start(){this.frameProcessingStartedAt=performance.now()}suitableForThisSession(e,t,n,r){return this.currentSession&&this.currentSession.effectId===e&&this.currentSession.effectParam===r&&this.currentSession.frameWidth===t&&this.currentSession.frameHeight===n}reportAndResetSession(e,t,n,r,o){e&&this.reportStatisticsResult(e),this.resetCurrentSession(this.getNextTimeout(t,this.currentSession),t,n,r,o),this.timeoutId&&hf.clearTimeout(this.timeoutId),this.timeoutId=hf.setTimeout((()=>this.reportAndResetSession(this.getStatistics(),t,n,r,o)).bind(this),this.currentSession.timeoutInMs)}resetCurrentSession(e,t,n,r,o){this.currentSession={startedAtInMs:performance.now(),timeoutInMs:e,effectId:t,effectParam:n,frameWidth:r,frameHeight:o},this.sampleCount=0,this.distributionBins.fill(0)}getNextTimeout(e,t){return t&&t.effectId===e?Math.min(gf.maxSessionTimeoutInMs,2*t.timeoutInMs):gf.initialSessionTimeoutInMs}}gf.initialSessionTimeoutInMs=1e3,gf.maxSessionTimeoutInMs=3e4;const mf="v2";class vf{constructor(e){this.reportPerformanceEvent=e,this.isFirstFrameProcessed=!1,this.frameProcessTimeLimit=100,this.frameProcessingStartedAt=0,this.frameProcessingTimeCost=0,this.processedFrameCount=0,this.performanceStatistics=new gf(vf.distributionBinSize,e=>this.reportPerformanceEvent(On(mf,"videoPerformanceMonitor.performanceDataGenerated"),"video.performance.performanceDataGenerated",[e]))}startMonitorSlowFrameProcessing(){hf.setInterval(()=>{if(0===this.processedFrameCount)return;const e=this.frameProcessingTimeCost/this.processedFrameCount;e>this.frameProcessTimeLimit&&this.reportPerformanceEvent(On(mf,"videoPerformanceMonitor.startMonitorSlowFrameProcessing"),"video.performance.frameProcessingSlow",[e]),this.frameProcessingTimeCost=0,this.processedFrameCount=0},vf.calculateFPSInterval)}setFrameProcessTimeLimit(e){this.frameProcessTimeLimit=e}reportApplyingVideoEffect(e,t){var n,r;(null===(n=this.applyingEffect)||void 0===n?void 0:n.effectId)===e&&(null===(r=this.applyingEffect)||void 0===r?void 0:r.effectParam)===t||(this.applyingEffect={effectId:e,effectParam:t},this.appliedEffect=void 0)}reportVideoEffectChanged(e,t){void 0===this.applyingEffect||this.applyingEffect.effectId!==e&&this.applyingEffect.effectParam!==t||(this.appliedEffect={effectId:e,effectParam:t},this.applyingEffect=void 0,this.isFirstFrameProcessed=!1)}reportStartFrameProcessing(e,t){hf.tick(),this.appliedEffect&&(this.frameProcessingStartedAt=performance.now(),this.performanceStatistics.processStarts(this.appliedEffect.effectId,e,t,this.appliedEffect.effectParam))}reportFrameProcessed(){var e;this.appliedEffect&&(this.processedFrameCount++,this.frameProcessingTimeCost+=performance.now()-this.frameProcessingStartedAt,this.performanceStatistics.processEnds(),this.isFirstFrameProcessed||(this.isFirstFrameProcessed=!0,this.reportPerformanceEvent(On(mf,"videoPerformanceMonitor.reportFrameProcessed"),"video.performance.firstFrameProcessed",[Date.now(),this.appliedEffect.effectId,null===(e=this.appliedEffect)||void 0===e?void 0:e.effectParam])))}reportGettingTextureStream(e){this.gettingTextureStreamStartedAt=performance.now(),this.currentStreamId=e}reportTextureStreamAcquired(){if(void 0!==this.gettingTextureStreamStartedAt){const e=performance.now()-this.gettingTextureStreamStartedAt;this.reportPerformanceEvent(On(mf,"videoPerformanceMonitor.reportTextureStreamAcquired"),"video.performance.textureStreamAcquired",[this.currentStreamId,e])}}}vf.distributionBinSize=1e3,vf.calculateFPSInterval=1e3;var wf=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},yf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Cf="v2",Sf=cn()?void 0:new vf(rc);var bf,Ef,Af;function If(e){if(br(Ln,Lt.sidePanel),!Ff())throw Wt;if(!e.videoFrameHandler||!e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if(ns(On(Cf,"videoEffects.setFrameProcessTimeLimitHandler"),"video.setFrameProcessTimeLimit",e=>null==Sf?void 0:Sf.setFrameProcessTimeLimit(e.timeLimit),!1),Nf())kf(e.videoFrameHandler,e.config);else{if(!Df())throw Wt;xf(e.videoBufferHandler,e.config)}null==Sf||Sf.startMonitorSlowFrameProcessing()}function Pf(e,t){if(br(Ln,Lt.sidePanel),!Ff())throw Wt;rc(On(Cf,"videoEffects.notifySelectedVideoEffectChanged"),"video.videoEffectChanged",[e,t])}function Tf(e){if(br(Ln,Lt.sidePanel),!Ff())throw Wt;ns(On(Cf,"videoEffects.registerEffectParameterChangeHandler"),"video.effectParameterChange",Kf(e,Sf),!1),rc(On(Cf,"videoEffects.registerForVideoEffect"),"video.registerForVideoEffect")}function Of(e){rc(On(Cf,"videoEffects.notifyVideoFrameProcessed"),"video.videoFrameProcessed",[e])}function Rf(e){rc(On(Cf,"videoEffects.notifyError"),"video.notifyError",[e])}function Ff(){return br(Ln)&&!!Ln.supports.video&&(!!Ln.supports.video.mediaStream||!!Ln.supports.video.sharedFrame)}function kf(e,t){if(br(Ln,Lt.sidePanel),!Ff()||!Nf())throw Wt;ns(On(Cf,"videoEffects.startVideoExtensibilityVideoStreamHandler"),"video.startVideoExtensibilityVideoStream",t=>wf(this,void 0,void 0,function*(){const{streamId:n}=t,r=Mf(e,Sf);yield Bf(n,r,Rf,Sf)}),!1),rc(On(Cf,"videoEffects.mediaStream.registerForVideoFrame"),"video.mediaStream.registerForVideoFrame",[t])}function Mf(e,t){return n=>wf(this,void 0,void 0,function*(){const r=n.videoFrame;null==t||t.reportStartFrameProcessing(r.codedWidth,r.codedHeight);const o=yield e(n);return null==t||t.reportFrameProcessed(),o})}function xf(e,t){if(br(Ln,Lt.sidePanel),!Ff()||!Df())throw Wt;ns(On(Cf,"videoEffects.registerForVideoBufferHandler"),"video.newVideoFrame",t=>{if(t){const n=t.timestamp;null==Sf||Sf.reportStartFrameProcessing(t.width,t.height),e(Uf(t),()=>{null==Sf||Sf.reportFrameProcessed(),Of(n)},Rf)}},!1),rc(On(Cf,"videoEffects.registerForVideoFrame"),"video.registerForVideoFrame",[t])}function Uf(e){if("videoFrameBuffer"in e)return e;{const{data:t}=e,n=yf(e,["data"]);return Object.assign(Object.assign({},n),{videoFrameBuffer:t})}}function Nf(){var e;return br(Ln,Lt.sidePanel)&&Lf()&&!!(null===(e=Ln.supports.video)||void 0===e?void 0:e.mediaStream)}function Lf(){var e,t,n,r;return!(!(null===(t=null===(e=sn().chrome)||void 0===e?void 0:e.webview)||void 0===t?void 0:t.getTextureStream)||!(null===(r=null===(n=sn().chrome)||void 0===n?void 0:n.webview)||void 0===r?void 0:r.registerTextureStream))}function Df(){var e;return br(Ln,Lt.sidePanel)&&!!(null===(e=Ln.supports.video)||void 0===e?void 0:e.sharedFrame)}!function(e){e.NV12="NV12"}(bf||(bf={})),function(e){e.EffectChanged="EffectChanged",e.EffectDisabled="EffectDisabled"}(Ef||(Ef={})),function(e){e.InvalidEffectId="InvalidEffectId",e.InitializationFailure="InitializationFailure"}(Af||(Af={}));var Hf=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const _f="v2";function Bf(e,t,n,r){var o,i;return Hf(this,void 0,void 0,function*(){const a=jf();!cn()&&(null===(i=null===(o=window.chrome)||void 0===o?void 0:o.webview)||void 0===i||i.registerTextureStream(e,a)),zf(yield Wf(e,n,r),new qf(n,t),a.writable)})}function Vf(e,t,n,r){var o,i;return Hf(this,void 0,void 0,function*(){const a=jf();!cn()&&(null===(i=null===(o=window.chrome)||void 0===o?void 0:o.webview)||void 0===i||i.registerTextureStream(e,a)),zf(yield Wf(e,n,r),new Jf(n,t),a.writable)})}function Wf(e,t,n){return Hf(this,void 0,void 0,function*(){if(cn())throw Wt;const r=sn().chrome;try{null==n||n.reportGettingTextureStream(e);const t=(yield r.webview.getTextureStream(e)).getVideoTracks();if(0===t.length)throw new Error(`No video track in stream ${e}`);return null==n||n.reportTextureStreamAcquired(),t[0]}catch(n){throw t(`Failed to get video track from stream ${e}, error: ${n}`),new Error(`Internal error: can't get video track from stream ${e}`)}})}function jf(){if(cn())throw Wt;const e=window.MediaStreamTrackGenerator;if(!e)throw Wt;return new e({kind:"video"})}function zf(e,t,n){new(0,sn().MediaStreamTrackProcessor)({track:e}).readable.pipeThrough(new TransformStream(t)).pipeTo(n)}class qf{constructor(e,t){this.notifyError=e,this.videoFrameHandler=t,this.transform=(e,t)=>Hf(this,void 0,void 0,function*(){const n=e.timestamp;if(null!==n)try{const r=yield this.videoFrameHandler({videoFrame:e}),o=new VideoFrame(r,{timestamp:n});t.enqueue(o),e.close(),r.close()}catch(t){e.close(),this.notifyError(t)}else this.notifyError("timestamp of the original video frame is null")})}}class $f{constructor(e,t){if(this.headerBuffer=e,this.notifyError=t,this.ONE_TEXTURE_INPUT_ID=1869900081,this.INVALID_HEADER_ERROR="Invalid video frame header",this.UNSUPPORTED_LAYOUT_ERROR="Unsupported texture layout",this.headerDataView=new Uint32Array(e),this.headerDataView.length<8)throw this.notifyError(this.INVALID_HEADER_ERROR),new Error(this.INVALID_HEADER_ERROR);if(this.headerDataView[0]!==this.ONE_TEXTURE_INPUT_ID)throw this.notifyError(this.UNSUPPORTED_LAYOUT_ERROR),new Error(this.UNSUPPORTED_LAYOUT_ERROR)}get oneTextureLayoutId(){return this.headerDataView[0]}get version(){return this.headerDataView[1]}get frameRowOffset(){return this.headerDataView[2]}get frameFormat(){return this.headerDataView[3]}get frameWidth(){return this.headerDataView[4]}get frameHeight(){return this.headerDataView[5]}get multiStreamHeaderRowOffset(){return this.headerDataView[6]}get multiStreamCount(){return this.headerDataView[7]}}class Gf{constructor(e,t){this.metadataMap=new Map,this.AUDIO_INFERENCE_RESULT_STREAM_ID=828664161,this.ATTRIBUTE_ID_MAP_STREAM_ID=1296320833;const n=new Uint32Array(e);for(let r=0,o=0;r<t;r++){const t=n[o++],r=n[o++],i=n[o++],a=new Uint8Array(e,r,i);this.metadataMap.set(t,a)}}get audioInferenceResult(){return this.metadataMap.get(this.AUDIO_INFERENCE_RESULT_STREAM_ID)}get attributes(){const e=this.metadataMap.get(this.ATTRIBUTE_ID_MAP_STREAM_ID);if(void 0===e)return;const t=new Map,n=new TextDecoder("utf-8");let r=0;const o=e[r]+(e[++r]<<8)+(e[++r]<<16)+(e[++r]<<24);for(let i=0;i<o&&r<e.length-1;i++){const o=e[++r]+(e[++r]<<8)+(e[++r]<<16)+(e[++r]<<24),i=e.findIndex((e,t,n)=>0==e&&t>r),a=n.decode(e.slice(++r,i)),s=this.metadataMap.get(o);void 0!==s&&t.set(a,s);r=i+(4-(i-r)%4-1)}return t}}class Jf{constructor(e,t){this.notifyError=e,this.videoFrameHandler=t,this.shouldDiscardAudioInferenceResult=!1,this.transform=(e,t)=>Hf(this,void 0,void 0,function*(){const n=e.timestamp;if(null!==n)try{const{videoFrame:r,metadata:{audioInferenceResult:o,attributes:i}={}}=yield this.extractVideoFrameAndMetadata(e),a=yield this.videoFrameHandler({videoFrame:r,audioInferenceResult:o,attributes:i}),s=new VideoFrame(a,{timestamp:n});t.enqueue(s),r.close(),e.close(),a.close()}catch(t){e.close(),this.notifyError(t)}else this.notifyError("timestamp of the original video frame is null")}),this.extractVideoFrameAndMetadata=e=>Hf(this,void 0,void 0,function*(){if(cn())throw Wt;if("NV12"!==e.format)throw this.notifyError("Unsupported video frame pixel format"),new Error("Unsupported video frame pixel format");const t={x:0,y:0,width:e.codedWidth,height:2},n=new ArrayBuffer(t.width*t.height*3/2);yield e.copyTo(n,{rect:t});const r=new $f(n,this.notifyError),o={x:0,y:r.multiStreamHeaderRowOffset,width:e.codedWidth,height:e.codedHeight-r.multiStreamHeaderRowOffset},i=new ArrayBuffer(o.width*o.height*3/2);yield e.copyTo(i,{rect:o});const a=new Gf(i,r.multiStreamCount);return{videoFrame:new VideoFrame(e,{timestamp:e.timestamp,visibleRect:{x:0,y:r.frameRowOffset,width:r.frameWidth,height:r.frameHeight}}),metadata:{audioInferenceResult:this.shouldDiscardAudioInferenceResult?void 0:a.audioInferenceResult,attributes:a.attributes}}}),ns(On(_f,"videoEffectsUtils.transformerWithMetadata.constructor"),"video.mediaStream.audioInferenceDiscardStatusChange",({discardAudioInferenceResult:e})=>{this.shouldDiscardAudioInferenceResult=e})}}function Kf(e,t){return(n,r)=>{null==t||t.reportApplyingVideoEffect(n||"",r),e(n,r).then(()=>{null==t||t.reportVideoEffectChanged(n||"",r),rc(On(_f,"videoEffectsUtils.reportVideoEffectChanged"),"video.videoEffectReadiness",[!0,n,void 0,r])}).catch(e=>{const t=e in Af?e:Af.InitializationFailure;rc(On(_f,"videoEffectsUtils.effectFailure"),"video.videoEffectReadiness",[!1,n,t,r])})}}var Qf=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Zf="v2",Xf=2e3,Yf=cn()?void 0:new vf(rc);var ep;function tp(e){var t,n;if(!cp())throw Wt;if(!e.videoFrameHandler||!e.videoBufferHandler)throw new Error("Both videoFrameHandler and videoBufferHandler must be provided");if(br(Ln,Lt.sidePanel)){if(ns(On(Zf,"videoEffectsEX.registerSetFrameProcessTimeLimitHandler"),"video.setFrameProcessTimeLimit",e=>null==Yf?void 0:Yf.setFrameProcessTimeLimit(e),!1),null===(t=Ln.supports.video)||void 0===t?void 0:t.mediaStream)ns(On(Zf,"videoEffectsEX.registerStartVideoExtensibilityVideoStreamHandler"),"video.startVideoExtensibilityVideoStream",t=>Qf(this,void 0,void 0,function*(){const{streamId:n,metadataInTexture:r}=t,o=Yf?rp(e.videoFrameHandler,Yf):e.videoFrameHandler;r?yield Vf(n,o,lp,Yf):yield Bf(n,o,lp,Yf)}),!1),rc(On(Zf,"videoEffectsEX.mediaStream.registerForVideoFrame"),"video.mediaStream.registerForVideoFrame",[e.config]);else{if(!(null===(n=Ln.supports.video)||void 0===n?void 0:n.sharedFrame))throw Wt;ns(On(Zf,"videoEffectsEx.registerNewVideoFrameHandler"),"video.newVideoFrame",t=>{if(t){null==Yf||Yf.reportStartFrameProcessing(t.width,t.height);const n=np(),r=t.timestamp;e.videoBufferHandler(op(t),()=>{n(),null==Yf||Yf.reportFrameProcessed(),up(r)},lp)}},!1),rc(On(Zf,"videoEffectsEx.registerForVideoFrame"),"video.registerForVideoFrame",[e.config])}null==Yf||Yf.startMonitorSlowFrameProcessing()}}function np(){const e=setTimeout(()=>{lp(`Frame not processed in ${Xf}ms`,ep.Warn)},Xf);return function(){clearTimeout(e)}}function rp(e,t){return n=>Qf(this,void 0,void 0,function*(){const r=n.videoFrame;t.reportStartFrameProcessing(r.codedWidth,r.codedHeight);const o=np(),i=yield e(n);return o(),t.reportFrameProcessed(),i})}function op(e){return e.videoFrameBuffer=e.videoFrameBuffer||e.data,delete e.data,e}function ip(e,t,n){if(br(Ln,Lt.sidePanel),!cp())throw Wt;rc(On(Zf,"videoEffectsEx.notifySelectedVideoEffectChanged"),"video.videoEffectChanged",[e,t,n])}function ap(e){if(br(Ln,Lt.sidePanel),!cp())throw Wt;ns(On(Zf,"videoEffectsEx.registerEffectParamterChangeHandler"),"video.effectParameterChange",Kf(e,Yf),!1),rc(On(Zf,"videoEffectsEx.registerForVideoEffect"),"video.registerForVideoEffect")}function sp(e){if(br(Ln,Lt.sidePanel),!Ff())throw Wt;rc(On(Zf,"videoEffectsEx.updatePersonalizedEffects"),"video.personalizedEffectsChanged",[e])}function cp(){return br(Ln),Ff()}function up(e){rc(On(Zf,"videoEffectsEx.notifyVideoFrameProcessed"),"video.videoFrameProcessed",[e])}function lp(e,t=ep.Warn){rc(On(Zf,"videoEffectsEx.notifyError"),"video.notifyError",[e,t])}function dp(e){if(br(Ln),!Ff())throw Wt;lp(e,ep.Fatal)}!function(e){e.Fatal="fatal",e.Warn="warn"}(ep||(ep={}));const fp="v2";class pp extends Ii{validate(e){return"ConfigurableTab"===e.tabType}deserialize(e){return e}}class hp{constructor(e){this.configurableTabInstance=e}serialize(){return this.configurableTabInstance}}class gp{constructor(e){this.hostEntityId=e}serialize(){return this.hostEntityId}}class mp extends Ii{validate(e){return"ConfigurableTab"===e.tabType||"StaticTab"===e.tabType}deserialize(e){return e}}class vp{constructor(e){this.hostEntityTabInstance=e}serialize(){return this.hostEntityTabInstance}}class wp extends Ii{validate(e){const t=new mp;let n=!0;return e.allTabs&&e.allTabs.forEach(e=>{n||(n=t.validate(e))}),n}deserialize(e){return e}}function yp(e,t){if(br(Ln),!Ap())throw new Error(`Error code: ${Ke.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);if(Ip(e.threadId),t&&0===t.length)throw new Error(`Error code: ${Ke.INVALID_ARGUMENTS}, message: App types cannot be an empty array`);return Xs("hostEntity.tab.addAndConfigure",[new gp(e),t],new mp,On(fp,"hostEntity.tab.addAndConfigure"))}function Cp(e){if(br(Ln),!Ap())throw new Error(`Error code: ${Ke.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return Ip(e.threadId),Xs("hostEntity.tab.getAll",[new gp(e)],new wp,On(fp,"hostEntity.tab.getAll"))}function Sp(e,t){if(br(Ln),!Ap())throw new Error(`Error code: ${Ke.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return Pp(e),Ip(t.threadId),Xs("hostEntity.tab.reconfigure",[new hp(e),new gp(t)],new pp,On(fp,"hostEntity.tab.reconfigure"))}function bp(e,t){if(br(Ln),!Ap())throw new Error(`Error code: ${Ke.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return Pp(e),Ip(t.threadId),Xs("hostEntity.tab.rename",[new hp(e),new gp(t)],new pp,On(fp,"hostEntity.tab.rename"))}function Ep(e,t){if(br(Ln),!Ap())throw new Error(`Error code: ${Ke.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return Ip(t.threadId),Pp(e),Xs("hostEntity.tab.remove",[new vp(e),new gp(t)],new Pi,On(fp,"hostEntity.tab.remove"))}function Ap(){var e;return!!(br(Ln)&&Op()&&(null===(e=Ln.supports.hostEntity)||void 0===e?void 0:e.tab))}function Ip(e){if(!e||0==e.length)throw new Error(`Error code: ${Ke.INVALID_ARGUMENTS}, message: ThreadId cannot be null or empty`)}function Pp(e){if(!(null==e?void 0:e.internalTabInstanceId)||0===e.internalTabInstanceId.length)throw new Error(`Error code: ${Ke.INVALID_ARGUMENTS}, message: TabId cannot be null or empty`)}var Tp;function Op(){return!(!br(Ln)||!Ln.supports.hostEntity)}!function(e){e.edu="EDU",e.baseTownhall="BASE_TOWNHALL",e.streamingTownhall="STREAMING_TOWNHALL"}(Tp||(Tp={}));var Rp=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Fp="v2",kp="Invalid store dialog size",Mp="No App Id present, but AppId needed to open AppDetail store",xp="No Collection Id present, but CollectionId needed to open a store specific to a collection";function Up(e){return Rp(this,void 0,void 0,function*(){_p();const{size:t}=null!=e?e:{};return Ys("store.openFullStore",[Bp(t)],On(Fp,"store.openFullStore"))})}function Np(e){return Rp(this,void 0,void 0,function*(){_p();const{size:t,appId:n}=e;if(!(n instanceof Nr))throw new Error(Mp);return Ys("store.openAppDetail",[Bp(t),n],On(Fp,"store.openAppDetail"))})}function Lp(e){return Rp(this,void 0,void 0,function*(){_p();const{size:t,appCapability:n,appMetaCapabilities:r,installationScope:o,filteredOutAppIds:i}=null!=e?e:{};return Ys("store.openInContextStore",[Bp(t),n,r,o,null==i?void 0:i.map(e=>e.toString())],On(Fp,"store.openInContextStore"))})}function Dp(e){return Rp(this,void 0,void 0,function*(){_p();const{size:t,collectionId:n}=e;if(void 0===n)throw new Error(xp);return Ys("store.openSpecificStore",[Bp(t),n],On(Fp,"store.openSpecificStore"))})}function Hp(){return br(Ln)&&!!Ln.supports.store}function _p(){if(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),!Hp())throw Wt}function Bp(e){if(void 0===e)return;const{width:t,height:n}=e;if(void 0!==t&&"number"==typeof t&&t<0)throw new Error(kp);if(void 0!==n&&"number"==typeof n&&n<0)throw new Error(kp);return JSON.stringify(e)}var Vp=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Wp="v1",jp=Tn("widgetHosting");function zp(){return br(Ln)&&!!Ln.supports.widgetHosting}function qp(e,t){return Vp(this,void 0,void 0,function*(){return Sr(),jp("Calling tool with widgetId and input: ",{widgetId:e,input:t}),Xs("widgetHosting.callTool",[new nh(e,t)],new eh,On(Wp,"widgetHosting.callTool"),rt)})}function $p(e,t){return Vp(this,void 0,void 0,function*(){return Sr(),jp("Sending follow-up message with widgetId and prompt: ",{widgetId:e,prompt:t.prompt}),Ys("widgetHosting.sendFollowUpMessage",[new rh(e,t)],On(Wp,"widgetHosting.sendFollowUpMessage"))})}function Gp(e,t){return Vp(this,void 0,void 0,function*(){return Sr(),jp("Requesting display mode with widgetId: ",{widgetId:e,mode:t.mode}),Ys("widgetHosting.requestDisplayMode",[new oh(e,t)],On(Wp,"widgetHosting.requestDisplayMode"))})}function Jp(e,t){return Vp(this,void 0,void 0,function*(){return Sr(),jp("Requesting modal with widgetId and options: ",{widgetId:e,options:t}),Xs("widgetHosting.requestModal",[new ch(e,t)],new th,On(Wp,"widgetHosting.requestModal"),rt)})}function Kp(e,t){Sr(),jp("Notifying intrinsic height with widgetId: ",{widgetId:e,height:t}),Ys("widgetHosting.notifyIntrinsicHeight",[new sh(e,t)],On(Wp,"widgetHosting.notifyIntrinsicHeight"))}function Qp(e,t,n){Sr(),jp("Content size changed with widgetId: ",{widgetId:e,width:t,height:n}),Ys("widgetHosting.contentSizeChanged",[new uh(e,t,n)],On(Wp,"widgetHosting.contentSizeChanged"))}function Zp(e,t){return Vp(this,void 0,void 0,function*(){return Sr(),jp("Setting widget state with widgetId: ",{widgetId:e,state:t}),Ys("widgetHosting.setWidgetState",[new ah(e,t)],On(Wp,"widgetHosting.setWidgetState"))})}function Xp(e,t){Sr(),jp("Opening external URL with widgetId: ",{widgetId:e,href:t.href}),Ys("widgetHosting.openExternal",[new ih(e,t)],On(Wp,"widgetHosting.openExternal"))}function Yp(e){is(On(Wp,"widgetHosting.registerModalCloseHandler"),"widgetHosting.closeWidgetModal",e,[],()=>{if(!zp())throw new Error("Widget Hosting is not supported on this platform")})}class eh extends Ii{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class th extends Ii{validate(e){return null!==e&&"object"==typeof e}deserialize(e){return e}}class nh{constructor(e,t){this.widgetId=e,this.toolInput=t}serialize(){return{widgetId:this.widgetId,name:this.toolInput.name,arguments:this.toolInput.arguments}}}class rh{constructor(e,t){this.widgetId=e,this.args=t}serialize(){return{widgetId:this.widgetId,prompt:this.args.prompt}}}class oh{constructor(e,t){this.widgetId=e,this.args=t}serialize(){return{widgetId:this.widgetId,mode:this.args.mode}}}class ih{constructor(e,t){this.widgetId=e,this.payload=t}serialize(){return{widgetId:this.widgetId,href:this.payload.href}}}class ah{constructor(e,t){this.widgetId=e,this.state=t}serialize(){return{widgetId:this.widgetId,state:this.state}}}class sh{constructor(e,t){this.widgetId=e,this.height=t}serialize(){return{widgetId:this.widgetId,height:this.height}}}class ch{constructor(e,t){this.widgetId=e,this.options=t}serialize(){return{widgetId:this.widgetId,id:this.options.id,title:this.options.title,content:this.options.content,width:this.options.width,height:this.options.height}}}class uh{constructor(e,t,n){this.widgetId=e,this.width=t,this.height=n}serialize(){return{widgetId:this.widgetId,width:this.width,height:this.height}}}var lh=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const dh="v1",fh="v2";let ph;function hh(e){ph=e}function gh(e){const t=void 0!==e,n=t?e:ph;if(!n)throw new Error("No parameters are provided for authentication");br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.remove,Lt.task,Lt.stage,Lt.meetingStage);return mh(n.successCallback||n.failureCallback?On(dh,"authentication.authenticate"):On(fh,"authentication.authenticate"),n).then(e=>{try{return n&&n.successCallback?(n.successCallback(e),""):e}finally{t||(ph=void 0)}}).catch(e=>{try{if(n&&n.failureCallback)return n.failureCallback(e.message),"";throw e}finally{t||(ph=void 0)}})}function mh(e,t){return lh(this,void 0,void 0,function*(){const n=dn(t.url);return ln(n),Qs(e,"authentication.authenticate",[n.href,t.width,t.height,t.isExternal]).then(([e,t])=>{if(e)return t;throw new Error(t)})})}function vh(e){Sr();return wh(e&&(e.successCallback||e.failureCallback)?On(dh,"authentication.getAuthToken"):On(fh,"authentication.getAuthToken"),e).then(t=>e&&e.successCallback?(e.successCallback(t),""):t).catch(t=>{if(e&&e.failureCallback)return e.failureCallback(t.message),"";throw t})}function wh(e,t){return new Promise(n=>{n(Qs(e,"authentication.getAuthToken",[null==t?void 0:t.resources,null==t?void 0:t.claims,null==t?void 0:t.silent,null==t?void 0:t.tenantId]))}).then(([e,t])=>{if(e)return t;throw new Error(t)})}function yh(e){Sr();return Ch(e&&(e.successCallback||e.failureCallback)?On(dh,"authentication.getUser"):On(fh,"authentication.getUser")).then(t=>e&&e.successCallback?(e.successCallback(t),null):t).catch(t=>{const n=`Error returned, code = ${t.errorCode}, message = ${t.message}`;if(e&&e.failureCallback)return e.failureCallback(n),null;throw new Error(n)})}function Ch(e){return new Promise(t=>{t(Qs(e,"authentication.getUser"))}).then(([e,t])=>{if(e)return t;throw t})}function Sh(e,t){br(Ln,Lt.authentication);rc(On(t?dh:fh,"authentication.notifySuccess"),"authentication.authenticate.success",[e]),Tc(Ws.parentWindow,()=>setTimeout(()=>Ws.currentWindow.close(),200))}function bh(e,t){br(Ln,Lt.authentication);rc(On(t?dh:fh,"authentication.notifyFailure"),"authentication.authenticate.failure",[e]),Tc(Ws.parentWindow,()=>setTimeout(()=>Ws.currentWindow.close(),200))}var Eh;function Ah(){return br(Ln)&&!!Ln.supports.appPerformanceMetrics}function Ih(e){br(Ln),ns(On("v2","appPerformanceMetrics.memoryUsageHeartbeat"),"appPerformanceMetrics.memoryUsageHeartbeat",e)}function Ph(e){const t=!e||e.length<=0,n=null==e?void 0:e.indexOf("@"),r=null==e?void 0:e.indexOf(".",n);if(t||-1===n||-1===r)throw new Error("Input email address does not have the correct format.")}!function(e){e.Public="public",e.EUDB="eudb",e.Other="other"}(Eh||(Eh={}));class Th{constructor(e){this.val=e,Ph(e)}toString(){return this.val}}const Oh="/l/app/",Rh="/l/meeting/new",Fh="attendees",kh="startTime",Mh="endTime",xh="subject",Uh="content",Nh="/l/call/0/0",Lh="source",Dh="withVideo",Hh="/l/chat/0/0",_h="users",Bh="topicName",Vh="message";function Wh(e,t,n){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");const r=`${_h}=`+e.map(e=>encodeURIComponent(e)).join(","),o=void 0===t?"":`&${Bh}=${encodeURIComponent(t)}`,i=void 0===n?"":`&${Vh}=${encodeURIComponent(n)}`;return`${wt}://${yt}${Hh}?${r}${o}${i}`}function jh(e,t,n){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");const r=`${_h}=`+e.map(e=>encodeURIComponent(e)).join(","),o=void 0===t?"":`&${Dh}=${encodeURIComponent(t)}`,i=void 0===n?"":`&${Lh}=${encodeURIComponent(n)}`;return`${wt}://${yt}${Nh}?${r}${o}${i}`}function zh(e,t,n,r,o){const i=void 0===e?"":`${Fh}=`+e.map(e=>encodeURIComponent(e)).join(","),a=void 0===t?"":`&${kh}=${encodeURIComponent(t)}`,s=void 0===n?"":`&${Mh}=${encodeURIComponent(n)}`,c=void 0===r?"":`&${xh}=${encodeURIComponent(r)}`,u=void 0===o?"":`&${Uh}=${encodeURIComponent(o)}`;return`${wt}://${yt}${Rh}?${i}${a}${s}${c}${u}`}function qh(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return`${wt}://${yt}${Oh}${encodeURIComponent(e)}`}const $h="v1";function Gh(e){return new Promise(t=>{if(br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.task,Lt.stage,Lt.meetingStage),!Jh())throw new Error("Not supported");const n=On($h,"appInstallDialog.openAppInstallDialog");Ln.isLegacyTeams?t(Gs(n,"executeDeepLink",qh(e.appId))):(rc(n,"appInstallDialog.openAppInstallDialog",[e]),t())})}function Jh(){return!(!br(Ln)||!Ln.supports.appInstallDialog)}const Kh="v1",Qh=Tn("media");var Zh,Xh,Yh,eg,tg,ng,rg;!function(e){e.Base64="base64",e.ID="id"}(Zh||(Zh={}));class og{}function ig(e){if(!e)throw new Error("[captureImage] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),!bn.isFramelessWindow){return void e({errorCode:Ke.NOT_SUPPORTED_ON_PLATFORM},[])}if(!Er(ft)){return void e({errorCode:Ke.OLD_PLATFORM},[])}rc(On(Kh,"media.captureImage"),"captureImage",e)}function ag(){if(br(Ln,Lt.content,Lt.task),!cg())throw Wt;const e=Qe.Media;return new Promise(t=>{t(Ks(On(Kh,"media.hasPermission"),"permissions.has",e))})}function sg(){if(br(Ln,Lt.content,Lt.task),!cg())throw Wt;const e=Qe.Media;return new Promise(t=>{t(Ks(On(Kh,"media.requestPermission"),"permissions.request",e))})}function cg(){return!(!br(Ln)||!Ln.supports.permissions)}class ug extends og{constructor(e){super(),e&&(this.content=e.content,this.format=e.format,this.mimeType=e.mimeType,this.name=e.name,this.preview=e.preview,this.size=e.size)}getMedia(e){if(!e)throw new Error("[get Media] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),!Er(pt)){return void e({errorCode:Ke.OLD_PLATFORM},new Blob)}if(!Eg(this.mimeType,this.format,this.content)){return void e({errorCode:Ke.INVALID_ARGUMENTS},new Blob)}Er("2.0.0")?this.getMediaViaCallback(e):this.getMediaViaHandler(e)}getMediaViaCallback(e){const t={mediaMimeType:this.mimeType,assembleAttachment:[]},n=[this.content];rc(On(Kh,"media.getMedia"),"getMedia",n,function(n){if(e)if(n&&n.error)e(n.error,new Blob);else if(n&&n.mediaChunk)if(n.mediaChunk.chunkSequence<=0){const r=gg(t.assembleAttachment,t.mediaMimeType);e(n.error,null!=r?r:new Blob)}else{const e=mg(n.mediaChunk,t.mediaMimeType);e?t.assembleAttachment.push(e):Qh(`Received a null assemble attachment for when decoding chunk sequence ${n.mediaChunk.chunkSequence}; not including the chunk in the assembled file.`)}else e({errorCode:Ke.INTERNAL_ERROR,message:"data received is null"},new Blob)})}getMediaViaHandler(e){const t=Kt(),n={mediaMimeType:this.mimeType,assembleAttachment:[]},r=[t,this.content];this.content&&!Lr(e)&&rc(On(Kh,"media.getMedia"),"getMedia",r),ns(On(Kh,"media.registerGetMediaRequestHandler"),"getMedia"+t,function(r){if(e){const o=JSON.parse(r);if(o.error)e(o.error,new Blob),rs("getMedia"+t);else if(o.mediaChunk)if(o.mediaChunk.chunkSequence<=0){const r=gg(n.assembleAttachment,n.mediaMimeType);e(o.error,null!=r?r:new Blob),rs("getMedia"+t)}else{const e=mg(o.mediaChunk,n.mediaMimeType);e&&n.assembleAttachment.push(e)}else e({errorCode:Ke.INTERNAL_ERROR,message:"data received is null"},new Blob),rs("getMedia"+t)}})}}class lg{constructor(e){this.controllerCallback=e}notifyEventToHost(e,t){br(Ln,Lt.content,Lt.task);try{Ir(st)}catch(e){return void(t&&t(e))}const n={mediaType:this.getMediaType(),mediaControllerEvent:e};rc(On(Kh,"media.controller"),"media.controller",[n],e=>{t&&t(e)})}stop(e){this.notifyEventToHost(Xh.StopRecording,e)}}class dg extends lg{getMediaType(){return tg.Video}notifyEventToApp(e){if(this.controllerCallback)switch(e){case Xh.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}}}function fg(e,t){if(!t)throw new Error("[select Media] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),!Er(pt)){const e={errorCode:Ke.OLD_PLATFORM};return void t(e,[])}try{vg(e)}catch(e){return void t(e,[])}if(!yg(e)){const e={errorCode:Ke.INVALID_ARGUMENTS};return void t(e,[])}const n=[e];rc(On(Kh,"media.selectMedia"),"selectMedia",n,(n,r,o)=>{var i,a;if(o)return void(wg(e)&&(null===(a=null===(i=null==e?void 0:e.videoProps)||void 0===i?void 0:i.videoController)||void 0===a||a.notifyEventToApp(o)));if(!r)return void t(n,[]);const s=[];for(const e of r)s.push(new ug(e));t(n,s)})}function pg(e,t){if(!t)throw new Error("[view images] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),!Er(pt)){return void t({errorCode:Ke.OLD_PLATFORM})}if(!Ag(e)){return void t({errorCode:Ke.INVALID_ARGUMENTS})}const n=[e];rc(On(Kh,"media.viewImages"),"viewImages",n,t)}function hg(e,t){if(!e)throw new Error("[media.scanBarCode] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),bn.hostClientType===Ut.desktop||bn.hostClientType===Ut.web||bn.hostClientType===Ut.rigel||bn.hostClientType===Ut.teamsRoomsWindows||bn.hostClientType===Ut.teamsRoomsAndroid||bn.hostClientType===Ut.teamsPhones||bn.hostClientType===Ut.teamsDisplays){return void e({errorCode:Ke.NOT_SUPPORTED_ON_PLATFORM},"")}if(!Er(ht)){return void e({errorCode:Ke.OLD_PLATFORM},"")}if(!Ig(t)){return void e({errorCode:Ke.INVALID_ARGUMENTS},"")}rc(On(Kh,"media.scanBarCode"),"media.scanBarCode",[t],e)}function gg(e,t){if(null==e||null==t||e.length<=0)return null;let n=null,r=1;return e.sort((e,t)=>e.sequence>t.sequence?1:-1),e.forEach(e=>{e.sequence==r&&(n=n?new Blob([n,e.file],{type:t}):new Blob([e.file],{type:t}),r++)}),n}function mg(e,t){if(null==e||null==t)return null;const n=atob(e.chunk),r=new Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);const o=new Uint8Array(r),i=new Blob([o],{type:t});return{sequence:e.chunkSequence,file:i}}function vg(e){Sg(e)?Ir(at):bg(e)?Ir(st):Cg(e)&&Ir(ct)}function wg(e){return!(e.mediaType!=tg.Video||!e.videoProps||!e.videoProps.videoController)}function yg(e){return!(null==e||e.maxMediaCount>10)}function Cg(e){var t;return!((null==e?void 0:e.mediaType)!=tg.Image||!(null===(t=null==e?void 0:e.imageProps)||void 0===t?void 0:t.imageOutputFormats))}function Sg(e){return!(!e||e.mediaType!=tg.VideoAndImage&&!e.videoAndImageProps)}function bg(e){return!(!e||e.mediaType!=tg.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function Eg(e,t,n){return null!=e&&null!=t&&t==Zh.ID&&null!=n}function Ag(e){return!(null==e||e.length<=0||e.length>10)}function Ig(e){return!e||!(null===e.timeOutIntervalInSec||null!=e.timeOutIntervalInSec&&e.timeOutIntervalInSec<=0||null!=e.timeOutIntervalInSec&&e.timeOutIntervalInSec>60)}function Pg(e){if(e){if(e.title&&"string"!=typeof e.title)return!1;if(e.setSelected&&"object"!=typeof e.setSelected)return!1;if(e.openOrgWideSearchInChatOrChannel&&"boolean"!=typeof e.openOrgWideSearchInChatOrChannel)return!1;if(e.singleSelect&&"boolean"!=typeof e.singleSelect)return!1}return!0}!function(e){e[e.StartRecording=1]="StartRecording",e[e.StopRecording=2]="StopRecording"}(Xh||(Xh={})),function(e){e[e.Photo=1]="Photo",e[e.Document=2]="Document",e[e.Whiteboard=3]="Whiteboard",e[e.BusinessCard=4]="BusinessCard"}(Yh||(Yh={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(eg||(eg={})),function(e){e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.VideoAndImage=3]="VideoAndImage",e[e.Audio=4]="Audio"}(tg||(tg={})),function(e){e[e.ID=1]="ID",e[e.URL=2]="URL"}(ng||(ng={})),function(e){e[e.IMAGE=1]="IMAGE",e[e.PDF=2]="PDF"}(rg||(rg={}));const Tg="v2";function Og(e){return new Promise(t=>{if(br(Ln,Lt.content,Lt.task),!kg())throw Wt;if(!Ig(e))throw{errorCode:Ke.INVALID_ARGUMENTS};t(Ks(On(Tg,"barCode.scanBarCode"),"media.scanBarCode",e))})}function Rg(){if(br(Ln,Lt.content,Lt.task),!kg())throw Wt;const e=Qe.Media;return new Promise(t=>{t(Ks(On(Tg,"barCode.hasPermission"),"permissions.has",e))})}function Fg(){if(br(Ln,Lt.content,Lt.task),!kg())throw Wt;const e=Qe.Media;return new Promise(t=>{t(Ks(On(Tg,"barCode.requestPermission"),"permissions.request",e))})}function kg(){return!!(br(Ln)&&Ln.supports.barCode&&Ln.supports.permissions)}const Mg="v2";function xg(e){return Ug(On(Mg,"chat.openChat"),e)}function Ug(e,t){return new Promise(n=>{if(br(Ln,Lt.content,Lt.task),!Lg())throw Wt;if(Ln.isLegacyTeams)n(Gs(e,"executeDeepLink",Wh([t.user],void 0,t.message)));else{n(Gs(e,"chat.openChat",{members:[t.user],message:t.message}))}})}function Ng(e){const t=On(Mg,"chat.openGroupChat");return new Promise(n=>{if(e.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(1===e.users.length){const r={user:e.users[0],message:e.message};n(Ug(t,r))}else{if(br(Ln,Lt.content,Lt.task),!Lg())throw Wt;if(Ln.isLegacyTeams)n(Gs(t,"executeDeepLink",Wh(e.users,e.topic,e.message)));else{n(Gs(t,"chat.openChat",{members:e.users,message:e.message,topic:e.topic}))}}})}function Lg(){return!(!br(Ln)||!Ln.supports.chat)}var Dg=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Hg="v2";function _g(e){return Dg(this,void 0,void 0,function*(){if(br(Ln,Lt.content,Lt.meetingStage,Lt.task,Lt.settings,Lt.stage,Lt.sidePanel),!Vg())throw Wt;if(!e.type||!Object.values(tt).includes(e.type))throw new Error(`Blob type ${e.type} is not supported. Supported blob types are ${Object.values(tt)}`);const t=yield an(e),n={mimeType:e.type,content:t};return Ks(On(Hg,"clipboard.write"),"clipboard.writeToClipboard",n)})}function Bg(){return Dg(this,void 0,void 0,function*(){br(Ln,Lt.content,Lt.meetingStage,Lt.task,Lt.settings,Lt.stage,Lt.sidePanel);const e=On(Hg,"clipboard.read");if(!Vg())throw Wt;const t=yield Ks(e,"clipboard.readFromClipboard");if("string"==typeof t){const e=JSON.parse(t);return on(e.mimeType,e.content)}return t})}function Vg(){return bn.isFramelessWindow?!(!br(Ln)||!Ln.supports.clipboard):!!(br(Ln)&&navigator&&navigator.clipboard&&Ln.supports.clipboard)}var Wg=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const jg="v2",zg={validate:e=>Array.isArray(e)||"object"==typeof e,deserialize:e=>e};var qg;function $g(){var e;return null!==(e=br(Ln)&&(Ln.isNAAChannelRecommended||Zg()))&&void 0!==e&&e}function Gg(){return br(Ln),Ws.parentOrigin}function Jg(){var e;return null!==(e=br(Ln)&&Ln.canParentManageNAATrustedOrigins)&&void 0!==e&&e}function Kg(){var e;return null!==(e=br(Ln)&&(Ln.isDeeplyNestedAuthSupported||Qg()))&&void 0!==e&&e}function Qg(){return!!(br(Ln)&&Xg()&&Ln.isLegacyTeams&&Er(jn))}function Zg(){return!!(br(Ln)&&Xg()&&Ln.isLegacyTeams&&Ln.supports.nestedAppAuth)}function Xg(){return bn.hostClientType===Ut.android||bn.hostClientType===Ut.ios||bn.hostClientType===Ut.ipados||bn.hostClientType===Ut.visionOS}function Yg(e){return Wg(this,void 0,void 0,function*(){if(!Jg())throw Wt;const t=e.map(nm);return tm(qg.ADD,t)})}function em(e){return Wg(this,void 0,void 0,function*(){if(!Jg())throw Wt;const t=e.map(nm);return tm(qg.DELETE,t)})}function tm(e,t){return Wg(this,void 0,void 0,function*(){if(window.parent!==window.top)throw new Error("This API is only available in the top-level parent.");if(!Array.isArray(t)||0===t.length)throw new Error(`The '${t}' parameter is required and must be a non-empty array.`);return Xs("nestedAppAuth.manageNAATrustedOrigins",[new rm(e,t)],zg,On(jg,"nestedAppAuth.manageNAATrustedOrigins"))})}function nm(e){try{return new URL(e).origin.toLowerCase()}catch(t){throw new Error(`Invalid origin provided: ${e}`)}}!function(e){e.ADD="ADD",e.DELETE="DELETE"}(qg||(qg={}));class rm{constructor(e,t){this.action=e,this.appOrigins=t}serialize(){return{action:this.action,appOrigins:this.appOrigins}}}const om="v2";function im(){if(br(Ln,Lt.content,Lt.task),!sm())throw Wt;return Ks(On(om,"geoLocation.map.chooseLocation"),"location.getLocation",{allowChooseLocation:!0,showMap:!0})}function am(e){if(br(Ln,Lt.content,Lt.task),!sm())throw Wt;if(!e)throw{errorCode:Ke.INVALID_ARGUMENTS};return Ks(On(om,"geoLocation.showLocation"),"location.showLocation",e)}function sm(){return!!(br(Ln)&&Ln.supports.geoLocation&&Ln.supports.geoLocation.map&&Ln.supports.permissions)}const cm="v2";function um(){if(br(Ln,Lt.content,Lt.task),!fm())throw Wt;return Ks(On(cm,"geoLocation.getCurrentLocation"),"location.getLocation",{allowChooseLocation:!1,showMap:!1})}function lm(){if(br(Ln,Lt.content,Lt.task),!fm())throw Wt;const e=Qe.GeoLocation;return new Promise(t=>{t(Ks(On(cm,"geoLocation.hasPermission"),"permissions.has",e))})}function dm(){if(br(Ln,Lt.content,Lt.task),!fm())throw Wt;const e=Qe.GeoLocation;return new Promise(t=>{t(Ks(On(cm,"geoLocation.requestPermission"),"permissions.request",e))})}function fm(){return!!(br(Ln)&&Ln.supports.geoLocation&&Ln.supports.permissions)}function pm(){return Ln.hostVersionsInfo?Ln.hostVersionsInfo.adaptiveCardSchemaVersion:void 0}const hm="v1";class gm{postMessage(e,t){br(Ln),rc(On(hm,"appWindow.childAppWindow.postMessage"),"messageForChild",[e],t||Gt())}addEventListener(e,t){br(Ln),"message"===e&&ns(On(hm,"appWindow.childAppWindow.addEventListener"),"messageForParent",t)}}class mm{static get Instance(){return this._instance||(this._instance=new this)}postMessage(e,t){br(Ln,Lt.task),rc(On(hm,"appWindow.parentAppWindow.postMessage"),"messageForParent",[e],t||Gt())}addEventListener(e,t){br(Ln,Lt.task),"message"===e&&ns(On(hm,"appWindow.parentAppWindow.addEventListener"),"messageForChild",t)}}const vm="v2";function wm(e){if(br(Ln,Lt.content),!ym())throw Wt;if(!e||!rn(e))throw{errorCode:Ke.INVALID_ARGUMENTS,message:"Invalid Url: Only https URL is allowed"};return Ks(On(vm,"secondaryBrowser.openUrl"),"secondaryBrowser.open",e.toString())}function ym(){return!(!br(Ln)||!Ln.supports.secondaryBrowser)}const Cm="v1";function Sm(e,t){if(!t)throw new Error("[location.getLocation] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),!Er(lt))throw{errorCode:Ke.OLD_PLATFORM};if(!e)throw{errorCode:Ke.INVALID_ARGUMENTS};if(!Em())throw Wt;rc(On(Cm,"location.getLocation"),"location.getLocation",[e],t)}function bm(e,t){if(!t)throw new Error("[location.showLocation] Callback cannot be null");if(br(Ln,Lt.content,Lt.task),!Er(lt))throw{errorCode:Ke.OLD_PLATFORM};if(!e)throw{errorCode:Ke.INVALID_ARGUMENTS};if(!Em())throw Wt;rc(On(Cm,"location.showLocation"),"location.showLocation",[e],t)}function Em(){return!(!br(Ln)||!Ln.supports.location)}const Am="v1";function Im(e){br(Ln,Lt.sidePanel),e.contentUrl&&new URL(e.contentUrl),rc(On(Am,"meeting.appShareButton.setOptions"),"meeting.appShareButton.setOptions",[e])}var Pm=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Tm="v1";var Om,Rm,Fm,km,Mm,xm;function Um(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.getIncomingClientAudioState"),"getIncomingClientAudioState",e)}function Nm(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.toggleIncomingClientAudio"),"toggleIncomingClientAudio",e)}function Lm(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage,Lt.settings,Lt.content),rc(On(Tm,"meeting.getMeetingDetails"),"meeting.getMeetingDetails",e)}function Dm(){var e,t,n;return Pm(this,void 0,void 0,function*(){let r;br(Ln,Lt.sidePanel,Lt.meetingStage,Lt.settings,Lt.content);try{const e=!0;r=yield Ks(On("v2","meeting.getMeetingDetailsVerbose"),"meeting.getMeetingDetails",e)}catch(t){throw new Error(null===(e=null==t?void 0:t.errorCode)||void 0===e?void 0:e.toString())}if(((null===(t=r.details)||void 0===t?void 0:t.type)==km.GroupCall||(null===(n=r.details)||void 0===n?void 0:n.type)==km.OneOnOneCall)&&!r.details.originalCallerInfo)throw new Error(Ke.NOT_SUPPORTED_ON_PLATFORM.toString());return r})}function Hm(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage,Lt.task),rc(On(Tm,"meeting.getAuthenticationTokenForAnonymousUser"),"meeting.getAuthenticationTokenForAnonymousUser",e)}function _m(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");br(Ln,Lt.sidePanel),rc(On(Tm,"meeting.getLiveStreamState"),"meeting.getLiveStreamState",e)}function Bm(e,t,n){if(!e)throw new Error("[request start live streaming] Callback cannot be null");br(Ln,Lt.sidePanel),rc(On(Tm,"meeting.requestStartLiveStreaming"),"meeting.requestStartLiveStreaming",[t,n],e)}function Vm(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");br(Ln,Lt.sidePanel),rc(On(Tm,"meeting.requestStopLiveStreaming"),"meeting.requestStopLiveStreaming",e)}function Wm(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");br(Ln,Lt.sidePanel),ns(On(Tm,"meeting.registerLiveStreamChangedHandler"),"meeting.liveStreamChanged",e)}function jm(e,t,n={sharingProtocol:Mm.Collaborative}){if(!e)throw new Error("[share app content to stage] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.shareAppContentToStage"),"meeting.shareAppContentToStage",[t,n],e)}function zm(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.getAppContentStageSharingCapabilities"),"meeting.getAppContentStageSharingCapabilities",e)}function qm(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.stopSharingAppContentToStage"),"meeting.stopSharingAppContentToStage",e)}function $m(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.getAppContentStageSharingState"),"meeting.getAppContentStageSharingState",e)}function Gm(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),ns(On(Tm,"meeting.registerSpeakingStateChangeHandler"),"meeting.speakingStateChanged",e)}function Jm(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),ns(On(Tm,"meeting.registerRaiseHandStateChangedHandler"),"meeting.raiseHandStateChanged",e)}function Km(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),ns(On(Tm,"meeting.registerMeetingReactionReceivedHandler"),"meeting.meetingReactionReceived",e)}function Qm(e){if(void 0===(null==e?void 0:e.joinWebUrl)||null===(null==e?void 0:e.joinWebUrl))return Promise.reject(new Error("Invalid joinMeetingParams"));br(Ln);const t={joinWebUrl:e.joinWebUrl.href,source:e.source||xm.Other};return Ks(On("v2","meeting.joinMeeting"),"meeting.joinMeeting",t)}function Zm(e,t){if(!t)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!e.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");br(Ln,Lt.sidePanel,Lt.meetingStage),e.isAppHandlingAudio?Xm(e,t):Ym(e,t)}function Xm(e,t){rc(On(Tm,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(n,r)=>{if(n&&null!=r)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(n)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${n.errorCode} ${n.message}`);if("boolean"!=typeof r)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");ns(On(Tm,"meeting.registerMicStateChangeHandler"),"meeting.micStateChanged",t=>Pm(this,void 0,void 0,function*(){try{const n=yield e.micMuteStateChangedCallback(t);tv(n,n.isMicMuted===t.isMicMuted?Om.HostInitiated:Om.AppDeclinedToChange)}catch(e){tv(t,Om.AppFailedToChange)}}));ns(On(Tm,"meeting.registerAudioDeviceSelectionChangedHandler"),"meeting.audioDeviceSelectionChanged",t=>{var n;null===(n=e.audioDeviceSelectionChangedCallback)||void 0===n||n.call(e,t)}),t(r)})}function Ym(e,t){rc(On(Tm,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],(e,n)=>{if(e&&null!=n)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${e.errorCode} ${e.message}`);if("boolean"!=typeof n)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");os("meeting.micStateChanged")&&rs("meeting.micStateChanged"),os("meeting.audioDeviceSelectionChanged")&&rs("meeting.audioDeviceSelectionChanged"),t(n)})}function ev(e){tv(e,Om.AppInitiated)}function tv(e,t){br(Ln,Lt.sidePanel,Lt.meetingStage),rc(On(Tm,"meeting.setMicStateWithReason"),"meeting.updateMicState",[e,t])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(Om||(Om={})),function(e){e.like="like",e.heart="heart",e.laugh="laugh",e.surprised="surprised",e.applause="applause"}(Rm||(Rm={})),function(e){e.Unknown="Unknown",e.Adhoc="Adhoc",e.Scheduled="Scheduled",e.Recurring="Recurring",e.Broadcast="Broadcast",e.MeetNow="MeetNow"}(Fm||(Fm={})),function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(km||(km={})),function(e){e.Collaborative="Collaborative",e.ScreenShare="ScreenShare"}(Mm||(Mm={})),function(e){e.M365CalendarGridContextMenu="m365_calendar_grid_context_menu",e.M365CalendarGridPeek="m365_calendar_grid_peek",e.M365CalendarGridEventCardJoinButton="m365_calendar_grid_event_card_join_button",e.M365CalendarFormRibbonJoinButton="m365_calendar_form_ribbon_join_button",e.M365CalendarFormJoinTeamsMeetingButton="m365_calendar_form_join_teams_meeting_button",e.Other="other"}(xm||(xm={}));const nv="v1",rv="v2";function ov(e,t){let n,r,o="";"function"==typeof e?(n=e,r=t,o=On(nv,"monetization.openPurchaseExperience")):(r=e,o=On(rv,"monetization.openPurchaseExperience"));return br(Ln,Lt.content),Yt(()=>new Promise(e=>{if(!iv())throw Wt;e(Ks(o,"monetization.openPurchaseExperience",r))}),n)}function iv(){return!(!br(Ln)||!Ln.supports.monetization)}const av="v2";function sv(e){return new Promise(t=>{if(br(Ln,Lt.content),!uv())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");t(Gs(On(av,"calendar.openCalendarItem"),"calendar.openCalendarItem",e))})}function cv(e){return new Promise(t=>{if(br(Ln,Lt.content),!uv())throw new Error("Not supported");const n=On(av,"calendar.composeMeeting");Ln.isLegacyTeams?t(Gs(n,"executeDeepLink",zh(e.attendees,e.startTime,e.endTime,e.subject,e.content))):t(Gs(n,"calendar.composeMeeting",e))})}function uv(){return!(!br(Ln)||!Ln.supports.calendar)}const lv="v2";function dv(e){e&&0!==e.length&&e.forEach(e=>{Ph(e)})}function fv(e){if(!e.handoffId||0==e.handoffId.trim().length||""===e.handoffId.trim())throw new Error("handoffId should not be null or empty string.");const t=e.composeMailParams;t.type===Cv.New&&(dv(t.toRecipients),dv(t.ccRecipients),dv(t.bccRecipients))}function pv(e){if(br(Ln,Lt.content),!hv())throw new Error("Not supported");return fv(e),Ys("mail.handoff.composeMail",[new gv(e)],On(lv,"mail.handoff.composeMail"))}function hv(){return!!(br(Ln)&&Ln.supports.mail&&Ln.supports.mail.handoff)}class gv{constructor(e){this.composeMailParamsWithHandoff=e}serialize(){return this.composeMailParamsWithHandoff}}const mv="v2";function vv(e){return new Promise(t=>{if(br(Ln,Lt.content),!yv())throw new Error("Not supported");if(!e.itemId||!e.itemId.trim())throw new Error("Must supply an itemId to openMailItem");t(Gs(On(mv,"mail.openMailItem"),"mail.openMailItem",e))})}function wv(e){return new Promise(t=>{if(br(Ln,Lt.content),!yv())throw new Error("Not supported");t(Gs(On(mv,"mail.composeMail"),"mail.composeMail",e))})}function yv(){return!(!br(Ln)||!Ln.supports.mail)}var Cv;!function(e){e.New="new",e.Reply="reply",e.ReplyAll="replyAll",e.Forward="forward"}(Cv||(Cv={}));const Sv="v2";function bv(){if(!bn.printCapabilityEnabled){if(br(Ln),!Ov())throw Wt;bn.printCapabilityEnabled=!0,document.addEventListener("keydown",e=>{(e.ctrlKey||e.metaKey)&&80===e.keyCode&&(Ev(),e.cancelBubble=!0,e.preventDefault(),e.stopImmediatePropagation())})}}function Ev(){sn().print()}function Av(e){Iv(On(Sv,"teamsAPIs_registerOnLoadHandler"),e,()=>{if(!Lr(e)&&!Ov())throw Wt})}function Iv(e,t,n){!Lr(t)&&br(Ln),!Lr(t)&&n&&n(),fs(e,t)}function Pv(e){Tv(On(Sv,"teamsAPIs_registerBeforeUnloadHandler"),e,()=>{if(!Lr(e)&&!Ov())throw Wt})}function Tv(e,t,n){!Lr(t)&&br(Ln),!Lr(t)&&n&&n(),gs(e,t)}function Ov(){return!(!br(Ln)||!Ln.supports.teamsCore)}const Rv="v1",Fv="v2";function kv(e,t){let n,r;br(Ln,Lt.content,Lt.task,Lt.settings);let o="";return"function"==typeof e?([n,r]=[e,t],o=On(Rv,"people.selectPeople")):(r=e,o=On(Fv,"people.selectPeople")),Zt(Mv,n,o,r)}function Mv(e,t){return new Promise(n=>{if(!Er(dt))throw{errorCode:Ke.OLD_PLATFORM};if(!Pg(t))throw{errorCode:Ke.INVALID_ARGUMENTS};if(!xv())throw Wt;n(Ks(e,"people.selectPeople",t))})}function xv(){return!(!br(Ln)||!Ln.supports.people)}function Uv(e){return e?e.modality&&"string"!=typeof e.modality?[!1,"modality must be a string"]:e.targetElementBoundingRect&&"object"==typeof e.targetElementBoundingRect?e.triggerType&&"string"==typeof e.triggerType?Nv(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function Nv(e){return e?e.displayName&&"string"!=typeof e.displayName?[!1,"displayName must be a string"]:e.identifiers&&"object"==typeof e.identifiers?e.identifiers.AadObjectId||e.identifiers.Smtp||e.identifiers.Upn?e.identifiers.AadObjectId&&"string"!=typeof e.identifiers.AadObjectId?[!1,"AadObjectId identifier must be a string"]:e.identifiers.Smtp&&"string"!=typeof e.identifiers.Smtp?[!1,"Smtp identifier must be a string"]:e.identifiers.Upn&&"string"!=typeof e.identifiers.Upn?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}const Lv="v2";function Dv(e){return br(Ln,Lt.content),new Promise(t=>{const[n,r]=Uv(e);if(!n)throw{errorCode:Ke.INVALID_ARGUMENTS,message:r};const o={modality:e.modality,persona:e.persona,triggerType:e.triggerType,targetRectangle:{x:e.targetElementBoundingRect.x,y:e.targetElementBoundingRect.y,width:e.targetElementBoundingRect.width,height:e.targetElementBoundingRect.height}};t(Ks(On(Lv,"profile.showProfile"),"profile.showProfile",o))})}function Hv(){return!(!br(Ln)||!Ln.supports.profile)}const _v="v2",Bv="search.queryChange",Vv="search.queryClose",Wv="search.queryExecute";function jv(e,t,n){if(br(Ln,Lt.content),!qv())throw Wt;ns(On(_v,"search.registerOnClosedHandler"),Vv,e),ns(On(_v,"search.registerOnExecutedHandler"),Wv,t),n&&ns(On(_v,"search.registerOnChangeHandler"),Bv,n)}function zv(){if(br(Ln,Lt.content),!qv())throw Wt;rc(On(_v,"search.unregisterHandlers"),"search.unregister"),rs(Bv),rs(Vv),rs(Wv)}function qv(){return!(!br(Ln)||!Ln.supports.search)}function $v(){return new Promise(e=>{if(br(Ln,Lt.content),!qv())throw new Error("Not supported");e(Gs(On(_v,"search.closeSearch"),"search.closeSearch"))})}var Gv=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Jv="v2";function Kv(){return Gv(this,void 0,void 0,function*(){if(br(Ln,Lt.sidePanel,Lt.meetingStage),!Qv())throw Wt;return yield Ks(On(Jv,"sharing.history.getContent"),"sharing.history.getContent")})}function Qv(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.sharing)||void 0===e?void 0:e.history)}const Zv="v1",Xv="v2",Yv={shareWebContent:"sharing.shareWebContent"};function ew(e,t){try{nw(e),rw(e),iw(e)}catch(e){return Xt(()=>Promise.reject(e),t)}br(Ln,Lt.content,Lt.sidePanel,Lt.task,Lt.stage,Lt.meetingStage);return Xt(tw,t,On(t?Zv:Xv,"sharing.shareWebContent"),e)}function tw(e,t){return new Promise(n=>{if(!aw())throw Wt;n(Ks(e,Yv.shareWebContent,t))})}function nw(e){if(!(e&&e.content&&e.content.length)){throw{errorCode:Ke.INVALID_ARGUMENTS,message:"Shared content is missing"}}}function rw(e){let t;if(e.content.some(e=>!e.type))throw t={errorCode:Ke.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"},t;if(e.content.some(t=>t.type!==e.content[0].type))throw t={errorCode:Ke.INVALID_ARGUMENTS,message:"Shared content must be of the same type"},t}function ow(e){if("URL"===e.type){if(!e.url)throw{errorCode:Ke.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}else{if("FILE"!==e.type)throw{errorCode:Ke.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(!e.url)throw{errorCode:Ke.INVALID_ARGUMENTS,message:"File URLs are required for File content types"}}}function iw(e){e.content.forEach(ow)}function aw(){return!(!br(Ln)||!Ln.supports.sharing)}const sw="v2";function cw(){return new Promise(e=>{if(br(Ln,Lt.content),!uw())throw Wt;e(Ks(On(sw,"stageView.self.close"),"stageView.self.close"))})}function uw(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.stageView)||void 0===e?void 0:e.self)}const lw="v2";var dw;function fw(e){return new Promise(t=>{if(br(Ln,Lt.content),!pw())throw Wt;if(!e)throw new Error("[stageView.open] Stage view params cannot be null");t(Ks(On(lw,"stageView.open"),"stageView.open",e))})}function pw(){return!(!br(Ln)||!Ln.supports.stageView)}!function(e){e.modal="modal",e.popout="popout",e.popoutWithChat="popoutWithChat"}(dw||(dw={}));const hw=10;var gw=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const mw="v2";function vw(e){return gw(this,void 0,void 0,function*(){br(Ln,Lt.content,Lt.task),Cw(),Sw(e);const t=yield Ks(On(mw,"visualMedia.image.captureImages"),"visualMedia.image.captureImages",e);return bw(e.maxVisualMediaCount,t),t})}function ww(e){return gw(this,void 0,void 0,function*(){br(Ln,Lt.content,Lt.task),Cw(),Sw(e);const t=yield Ks(On(mw,"visualMedia.image.retrieveImages"),"visualMedia.image.retrieveImages",e);return bw(e.maxVisualMediaCount,t),t})}function yw(){return!!(br(Ln)&&Ln.supports.visualMedia&&Ln.supports.visualMedia.image&&Ln.supports.permissions)}function Cw(){if(!yw())throw Wt}function Sw(e){if(!e||e.maxVisualMediaCount>hw||e.maxVisualMediaCount<1)throw qt}function bw(e,t){if(t.length>e)throw $t}const Ew="v2";var Aw,Iw;function Pw(){if(br(Ln,Lt.content,Lt.task),!yw())throw Wt;const e=Qe.Media;return Ks(On(Ew,"visualMedia.hasPermission"),"permissions.has",e)}function Tw(){if(br(Ln,Lt.content,Lt.task),!yw())throw Wt;const e=Qe.Media;return Ks(On(Ew,"visualMedia.requestPermission"),"permissions.request",e)}!function(e){e[e.FrontOrRear=1]="FrontOrRear",e[e.FrontOnly=2]="FrontOnly",e[e.RearOnly=3]="RearOnly"}(Aw||(Aw={})),function(e){e[e.Camera=1]="Camera",e[e.Gallery=2]="Gallery"}(Iw||(Iw={}));var Ow=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};let Rw=null;function Fw(){return Ow(this,void 0,void 0,function*(){return null===Rw&&(Rw=(yield uo()).app.host.name),Rw})}var kw=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};function Mw(){return kw(this,void 0,void 0,function*(){if(br(Ln),!Uw())throw Wt;return!(!Ln.isLegacyTeams||bn.hostClientType!==Ut.android&&bn.hostClientType!==Ut.ios&&bn.hostClientType!==Ut.ipados&&bn.hostClientType!==Ut.visionOS||(yield xw())!==Nt.teams)||(yield $s(On("v2","webStorage.isWebStorageClearedOnUserLogOut"),"webStorage.isWebStorageClearedOnUserLogOut"))})}function xw(){return kw(this,void 0,void 0,function*(){return Fw()})}function Uw(){return br(Ln)&&void 0!==Ln.supports.webStorage}const Nw="v2";function Lw(e,t){if(br(Ln,Lt.content,Lt.task),!Ww())throw Wt;return $s(On(Nw,"offlineStorage.drafts.create"),"offlineStorage.drafts.create",e,t)}function Dw(e,t,n){if(br(Ln,Lt.content,Lt.task),!Ww())throw Wt;return Ks(On(Nw,"offlineStorage.drafts.update"),"offlineStorage.drafts.update",e,t,n)}function Hw(e,t){if(br(Ln,Lt.content,Lt.task),!Ww())throw Wt;return $s(On(Nw,"offlineStorage.drafts.get"),"offlineStorage.drafts.get",e,t)}function _w(e,t){if(br(Ln,Lt.content,Lt.task),!Ww())throw Wt;return $s(On(Nw,"offlineStorage.drafts.query"),"offlineStorage.drafts.query",e,t)}function Bw(e,t){if(br(Ln,Lt.content,Lt.task),!Ww())throw Wt;return Ks(On(Nw,"offlineStorage.drafts.remove"),"offlineStorage.drafts.remove",e,t)}function Vw(e,t){if(br(Ln,Lt.content,Lt.task),!Ww())throw Wt;return Ks(On(Nw,"offlineStorage.drafts.submit"),"offlineStorage.drafts.submit",e,t)}function Ww(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.offlineStorage)||void 0===e?void 0:e.drafts)}const jw="v2";function zw(e,t){if(br(Ln,Lt.content,Lt.task),!Kw())throw Wt;return $s(On(jw,"offlineStorage.inbox.get"),"offlineStorage.inbox.get",e,t)}function qw(e,t){if(br(Ln,Lt.content,Lt.task),!Kw())throw Wt;return $s(On(jw,"offlineStorage.inbox.query"),"offlineStorage.inbox.query",e,t)}function $w(e,t){if(br(Ln,Lt.content,Lt.task),!Kw())throw Wt;return $s(On(jw,"offlineStorage.inbox.getCount"),"offlineStorage.inbox.getCount",e,t)}function Gw(e,t){if(br(Ln,Lt.content,Lt.task),!Kw())throw Wt;return Ks(On(jw,"offlineStorage.inbox.markAsRead"),"offlineStorage.inbox.markAsRead",e,t)}function Jw(e){if(br(Ln,Lt.content,Lt.task),!Kw())throw Wt;ns(On(jw,"offlineStorage.inbox.registerOnUpdateHandler"),"offlineStorage.inbox.onUpdate",e)}function Kw(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.offlineStorage)||void 0===e?void 0:e.inbox)}const Qw="v2";function Zw(e){if(br(Ln,Lt.content,Lt.task),!ny())throw Wt;return $s(On(Qw,"offlineStorage.outbox.list"),"offlineStorage.outbox.list",e)}function Xw(e){if(br(Ln,Lt.content,Lt.task),!ny())throw Wt;return $s(On(Qw,"offlineStorage.outbox.getSummary"),"offlineStorage.outbox.getSummary",e)}function Yw(e,t){if(br(Ln,Lt.content,Lt.task),!ny())throw Wt;return Ks(On(Qw,"offlineStorage.outbox.retry"),"offlineStorage.outbox.retry",e,t)}function ey(e,t){if(br(Ln,Lt.content,Lt.task),!ny())throw Wt;return Ks(On(Qw,"offlineStorage.outbox.cancel"),"offlineStorage.outbox.cancel",e,t)}function ty(e){if(br(Ln,Lt.content,Lt.task),!ny())throw Wt;ns(On(Qw,"offlineStorage.outbox.registerOnStatusChangeHandler"),"offlineStorage.outbox.onStatusChange",e)}function ny(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.offlineStorage)||void 0===e?void 0:e.outbox)}const ry="v2";function oy(e,t){if(br(Ln,Lt.content,Lt.task),!cy())throw Wt;return $s(On(ry,"offlineStorage.sent.get"),"offlineStorage.sent.get",e,t)}function iy(e,t){if(br(Ln,Lt.content,Lt.task),!cy())throw Wt;return $s(On(ry,"offlineStorage.sent.query"),"offlineStorage.sent.query",e,t)}function ay(e,t){if(br(Ln,Lt.content,Lt.task),!cy())throw Wt;return $s(On(ry,"offlineStorage.sent.listSince"),"offlineStorage.sent.listSince",e,t)}function sy(e,t){if(br(Ln,Lt.content,Lt.task),!cy())throw Wt;return $s(On(ry,"offlineStorage.sent.purge"),"offlineStorage.sent.purge",e,t)}function cy(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.offlineStorage)||void 0===e?void 0:e.sent)}const uy="v2";var ly,dy;function fy(){if(br(Ln,Lt.content,Lt.task),!wy())throw Wt;return $s(On(uy,"offlineStorage.sync.trigger"),"offlineStorage.sync.trigger")}function py(){if(br(Ln,Lt.content,Lt.task),!wy())throw Wt;return $s(On(uy,"offlineStorage.sync.getStatus"),"offlineStorage.sync.getStatus")}function hy(e,t){if(br(Ln,Lt.content,Lt.task),!wy())throw Wt;return Ks(On(uy,"offlineStorage.sync.setConflictStrategy"),"offlineStorage.sync.setConflictStrategy",e,t)}function gy(e,t,n){if(br(Ln,Lt.content,Lt.task),!wy())throw Wt;return Ks(On(uy,"offlineStorage.sync.resolveConflict"),"offlineStorage.sync.resolveConflict",e,t,n)}function my(e){if(br(Ln,Lt.content,Lt.task),!wy())throw Wt;ns(On(uy,"offlineStorage.sync.registerOnStatusChangeHandler"),"offlineStorage.sync.onStatusChange",e)}function vy(e){if(br(Ln,Lt.content,Lt.task),!wy())throw Wt;ns(On(uy,"offlineStorage.sync.registerOnConflictHandler"),"offlineStorage.sync.onConflict",e)}function wy(){var e;return br(Ln)&&void 0!==(null===(e=Ln.supports.offlineStorage)||void 0===e?void 0:e.sync)}!function(e){e.Idle="idle",e.Syncing="syncing",e.WaitingForNetwork="waitingForNetwork",e.Error="error"}(ly||(ly={})),function(e){e.ServerWins="serverWins",e.ClientWins="clientWins",e.Manual="manual"}(dy||(dy={}));const yy="v2";var Cy,Sy;function by(e){if(br(Ln,Lt.content,Lt.task),!Ty())throw Wt;return Ks(On(yy,"offlineStorage.registerSchema"),"offlineStorage.registerSchema",e)}function Ey(e){if(br(Ln,Lt.content,Lt.task),!Ty())throw Wt;return $s(On(yy,"offlineStorage.hasSchema"),"offlineStorage.hasSchema",e)}function Ay(){if(br(Ln,Lt.content,Lt.task),!Ty())throw Wt;return $s(On(yy,"offlineStorage.listSchemas"),"offlineStorage.listSchemas")}function Iy(e){if(br(Ln,Lt.content,Lt.task),!Ty())throw Wt;return $s(On(yy,"offlineStorage.migrateSchema"),"offlineStorage.migrateSchema",e)}function Py(e){if(br(Ln,Lt.content,Lt.task),!Ty())throw Wt;return Ks(On(yy,"offlineStorage.removeSchema"),"offlineStorage.removeSchema",e)}function Ty(){return br(Ln)&&void 0!==Ln.supports.offlineStorage}!function(e){e.Draft="draft",e.Pending="pending",e.Syncing="syncing",e.Synced="synced",e.Failed="failed"}(Cy||(Cy={})),function(e){e.Inbox="inbox",e.Drafts="drafts",e.Outbox="outbox",e.Sent="sent"}(Sy||(Sy={}));var Oy=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Ry="v2";function Fy(e){return Oy(this,void 0,void 0,function*(){if(br(Ln),!My())throw Wt;const t=On(Ry,"security.reauthenticate"),n=e?[e]:[],[r]=yield Qs(t,"security.reauthenticate",n);return r})}function ky(){return Oy(this,void 0,void 0,function*(){if(br(Ln),!My())throw Wt;return $s(On(Ry,"security.isBiometricAvailable"),"security.isBiometricAvailable")})}function My(){return br(Ln)&&void 0!==Ln.supports.security}var xy=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Uy="v2";function Ny(){return xy(this,void 0,void 0,function*(){if(br(Ln),!Dy())throw Wt;return $s(On(Uy,"connectivity.getStatus"),"connectivity.getStatus")})}function Ly(){return xy(this,void 0,void 0,function*(){if(br(Ln),!Dy())throw Wt;yield Qs(On(Uy,"connectivity.registerOnStatusChange"),"connectivity.registerOnStatusChange",[])})}function Dy(){return br(Ln)&&void 0!==Ln.supports.connectivity}var Hy=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const _y="v2";function By(e="impact"){return Hy(this,void 0,void 0,function*(){if(br(Ln),!Vy())throw Wt;yield Qs(On(_y,"haptics.vibrate"),"haptics.vibrate",[{type:e}])})}function Vy(){return br(Ln)&&void 0!==Ln.supports.haptics}var Wy=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const jy="v2";function zy(e){return Wy(this,void 0,void 0,function*(){if(br(Ln),!$y())throw Wt;yield Qs(On(jy,"badge.setCount"),"badge.setCount",[e])})}function qy(){return Wy(this,void 0,void 0,function*(){if(br(Ln),!$y())throw Wt;yield Qs(On(jy,"badge.clear"),"badge.clear",[])})}function $y(){return br(Ln)&&void 0!==Ln.supports.badge}var Gy=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};const Jy="v2";function Ky(e){return Gy(this,void 0,void 0,function*(){if(br(Ln),!Xy())throw Wt;return $s(On(Jy,"externalApp.launch"),"externalApp.launch",e)})}function Qy(e){return Gy(this,void 0,void 0,function*(){if(br(Ln),!Xy())throw Wt;return $s(On(Jy,"externalApp.open"),"externalApp.open",e)})}function Zy(e){return Gy(this,void 0,void 0,function*(){if(br(Ln),!Xy())throw Wt;return $s(On(Jy,"externalApp.isInstalled"),"externalApp.isInstalled",e)})}function Xy(){return br(Ln)&&void 0!==Ln.supports.externalApp}const Yy="v2";var eC;function tC(e){const t=On(Yy,"call.startCall");return new Promise(n=>{var r;if(br(Ln,Lt.content,Lt.task),!nC())throw Wt;if(!Ln.isLegacyTeams)return rc(t,"call.startCall",[e],n);n($s(t,"executeDeepLink",jh(e.targets,null===(r=e.requestedModalities)||void 0===r?void 0:r.includes(eC.Video),e.source)).then(e=>{if(!e)throw new Error(Et);return e}))})}function nC(){return!(!br(Ln)||!Ln.supports.call)}!function(e){e.Unknown="unknown",e.Audio="audio",e.Video="video",e.VideoBasedScreenSharing="videoBasedScreenSharing",e.Data="data"}(eC||(eC={}));const rC="v1";function oC(){ki(On(rC,"appInitialization.notifyAppLoaded"))}function iC(){rc(On(rC,"appInitialization.notifySuccess"),to.Success,[Zn])}function aC(e){xi(On(rC,"appInitialization.notifyFailure"),e)}function sC(e){Mi(On(rC,"appInitialization.notifyExpectedFailure"),e)}const cC=Tn("thirdPartyCloudStorage"),uC="v2";class lC{constructor(e,t){this.fileType=e,this.assembleAttachment=t}}let dC=[],fC=null,pC=!0,hC=null;function gC(e,t){if(!t)throw new Error("[getDragAndDropFiles] Callback cannot be null");if(!e||""===e){return void t([],{errorCode:Ke.INVALID_ARGUMENTS})}if(br(Ln,Lt.content,Lt.task),!vC())throw Wt;if(hC)throw hC=null,new Error("getDragAndDropFiles cannot be called twice");hC=t,pC=!0,rc(On(uC,"thirdPartyCloudStorage.getDragAndDropFiles"),"thirdPartyCloudStorage.getDragAndDropFiles",[e],mC)}function mC(e){if(hC)if(e&&e.error)hC([],e.error),hC=null;else if(e&&e.fileChunk)try{pC||0!==e.fileChunk.chunkSequence||(cC("Last chunk is not received or 'endOfFile' value for previous chunk was not set to true"),pC=!0,hC([],{errorCode:Ke.INTERNAL_ERROR,message:"error occurred while receiving data"}),dC=[],hC=null);const t=mg(e.fileChunk,e.fileType);if(t?(fC||(fC=new lC(e.fileType,[])),fC.assembleAttachment.push(t)):(cC(`Received a null assemble attachment for when decoding chunk sequence ${e.fileChunk.chunkSequence}; not including the chunk in the assembled file.`),hC?hC([],{errorCode:Ke.INTERNAL_ERROR,message:"error occurred while receiving data"}):hC=null,dC=[],hC=null,pC=!0),pC=e.fileChunk.endOfFile,e.fileChunk.endOfFile&&fC){const t=gg(fC.assembleAttachment,fC.fileType);if(t){const n=new File([t],e.fileName,{type:t.type});dC.push(n)}e.isLastFile&&hC&&(hC(dC,e.error),dC=[],hC=null,pC=!0),fC=null}}catch(e){hC&&(hC([],{errorCode:Ke.INTERNAL_ERROR,message:e}),dC=[],hC=null,pC=!0)}else hC([],{errorCode:Ke.INTERNAL_ERROR,message:"data received is null"}),dC=[],hC=null,pC=!0}function vC(){return!(!br(Ln)||!Ln.supports.thirdPartyCloudStorage)}const wC="v1";function yC(e,t){Fi(On(wC,"initialize"),t).then(()=>{e&&e()})}function CC(){bv()}function SC(){Ev()}function bC(e){Sr(),rc(On(wC,"getContext"),"getContext",t=>{t.frameContext||(t.frameContext=bn.frameContext),e(t)})}function EC(e){_i(On(wC,"registerOnThemeChangeHandlerHelper"),e)}function AC(e){is(On(wC,"registerFullScreenHandler"),"fullScreenChange",e,[])}function IC(e){is(On(wC,"registerAppButtonClickHandler"),"appButtonClick",e,[Lt.content])}function PC(e){is(On(wC,"registerAppButtonHoverEnterHandler"),"appButtonHoverEnter",e,[Lt.content])}function TC(e){is(On(wC,"registerAppButtonHoverLeaveHandler"),"appButtonHoverLeave",e,[Lt.content])}function OC(e){aa(On(wC,"registerBackButtonHandler"),e)}function RC(e){Iv(On(wC,"registerOnLoadHandler"),e)}function FC(e){Tv(On(wC,"registerBeforeUnloadHandler"),e)}function kC(e){is(On(wC,"registerFocusEnterHandler"),"focusEnter",e,[])}function MC(e){is(On(wC,"registerChangeSettingsHandler"),"changeSettings",e,[Lt.content])}function xC(e,t){br(Ln),Na(On(wC,"getTabInstances"),t).then(t=>{e(t)})}function UC(e,t){br(Ln),La(On(wC,"getMruTabInstances"),t).then(t=>{e(t)})}function NC(e){Da(On(wC,"shareDeepLink"),{subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function LC(e,t){br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.task,Lt.stage,Lt.meetingStage);const n=null!=t?t:Gt();Vi(On(wC,"executeDeepLink"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function DC(e){Ha(On(wC,"setFrameContext"),e)}function HC(e,t,n){Fi(On(wC,"initializeWithFrameContext"),n).then(()=>t&&t()),Ha(On(wC,"setFrameContext"),e)}const _C="v1";function BC(e){Ua(On(_C,"navigation.returnFocus"),e)}function VC(e,t){br(Ln);const n=null!=t?t:Gt();xa(On(_C,"navigation.navigateToTab"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function WC(e,t){br(Ln,Lt.content,Lt.sidePanel,Lt.settings,Lt.remove,Lt.task,Lt.stage,Lt.meetingStage);const n=null!=t?t:Gt();ka(On(_C,"navigation.navigateCrossDomain"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function jC(e){br(Ln);const t=null!=e?e:Gt();Ma(On(_C,"navigation.navigateBack")).then(()=>{t(!0)}).catch(e=>{t(!1,e.message)})}const zC="v1";function qC(e){_a(On(zC,"settings.setValidityState"),e)}function $C(e){br(Ln,Lt.content,Lt.settings,Lt.remove,Lt.sidePanel),Ba(On(zC,"settings.getSettings")).then(t=>{e(t)})}function GC(e,t){br(Ln,Lt.content,Lt.settings,Lt.sidePanel);const n=null!=t?t:Gt();Va(On(zC,"settings.setSettings"),e).then(()=>{n(!0)}).catch(e=>{n(!1,e.message)})}function JC(e){mi(On(zC,"settings.registerOnSaveHandler"),e)}function KC(e){wi(On(zC,"settings.registerOnRemoveHandler"),e)}var QC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZC="v1";function XC(e,t){const n=On(ZC,"tasks.startTask"),r=t?e=>{var n,r;return t(null!==(n=e.err)&&void 0!==n?n:"",null!==(r=e.result)&&void 0!==r?r:"")}:void 0;return void 0===e.card&&void 0===e.url||e.card?(br(Ln,Lt.content,Lt.sidePanel,Lt.meetingStage),rc(n,"tasks.startTask",[e],t)):void 0!==e.completionBotId?Do(n,nS(e),r):Lo(n,tS(e),r),new gm}function YC(e){e=rS(e);const{width:t,height:n}=e,r=QC(e,["width","height"]);if(Object.keys(r).length)throw new Error("resize requires a TaskInfo argument containing only width and height");No(On(ZC,"tasks.updateTask"),e)}function eS(e,t){Ho(On(ZC,"tasks.submitTask"),e,t)}function tS(e){if(void 0===e.url)throw new Error("url property of taskInfo object can't be undefined");return{url:e.url,size:{height:e.height?e.height:Bt.Small,width:e.width?e.width:Bt.Small},title:e.title,fallbackUrl:e.fallbackUrl}}function nS(e){if(void 0===e.url||void 0===e.completionBotId)throw new Error(`Both url ${e.url} and completionBotId ${e.completionBotId} are required for bot url dialog. At least one is undefined.`);return{url:e.url,size:{height:e.height?e.height:Bt.Small,width:e.width?e.width:Bt.Small},title:e.title,fallbackUrl:e.fallbackUrl,completionBotId:e.completionBotId}}function rS(e){return e.height=e.height?e.height:Bt.Small,e.width=e.width?e.width:Bt.Small,e}const oS="v2";var iS,aS;function sS(){return!(!br(Ln,Lt.meetingStage,Lt.sidePanel,Lt.content)||!Ln.supports.interactive)}!function(e){e.guest="Guest",e.attendee="Attendee",e.presenter="Presenter",e.organizer="Organizer"}(iS||(iS={})),function(e){e.added="Added",e.alreadyExists="AlreadyExists",e.conflict="Conflict",e.notFound="NotFound"}(aS||(aS={}));class cS{getFluidTenantInfo(){return uS(),new Promise(e=>{e(Ks(On(oS,"interactive.getFluidTenantInfo"),"interactive.getFluidTenantInfo"))})}getFluidToken(e){return uS(),new Promise(t=>{t(Ks(On(oS,"interactive.getFluidToken"),"interactive.getFluidToken",e))})}getFluidContainerId(){return uS(),new Promise(e=>{e(Ks(On(oS,"interactive.getFluidContainerId"),"interactive.getFluidContainerId"))})}setFluidContainerId(e){return uS(),new Promise(t=>{t(Ks(On(oS,"interactive.setFluidContainerId"),"interactive.setFluidContainerId",e))})}getNtpTime(){return uS(),new Promise(e=>{e(Ks(On(oS,"interactive.getNtpTime"),"interactive.getNtpTime"))})}registerClientId(e){return uS(),new Promise(t=>{t(Ks(On(oS,"interactive.registerClientId"),"interactive.registerClientId",e))})}getClientRoles(e){return uS(),new Promise(t=>{t(Ks(On(oS,"interactive.getClientRoles"),"interactive.getClientRoles",e))})}getClientInfo(e){return uS(),new Promise(t=>{t(Ks(On(oS,"interactive.getClientInfo"),"interactive.getClientInfo",e))})}static create(){return uS(),new cS}}function uS(){if(!sS())throw new Error("LiveShareHost Not supported")}var lS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function dS(e){try{return e.cartItems=fS(e.cartItems),e}catch(e){throw new Error("Error deserializing cart")}}function fS(e){return e.map(e=>{if(e.imageURL){const t=new URL(e.imageURL);e.imageURL=t}return e.accessories&&(e.accessories=fS(e.accessories)),e})}const pS=e=>{try{return e.map(e=>{const{imageURL:t,accessories:n}=e,r=lS(e,["imageURL","accessories"]),o=Object.assign({},r);return t&&(o.imageURL=t.href),n&&(o.accessories=pS(n)),o})}catch(e){throw new Error("Error serializing cart items")}};function hS(e){if(!Array.isArray(e)||0===e.length)throw new Error("cartItems must be a non-empty array");for(const t of e)mS(t),gS(t.accessories)}function gS(e){if(null!=e){if(!Array.isArray(e)||0===e.length)throw new Error("CartItem.accessories must be a non-empty array");for(const t of e){if(t.accessories)throw new Error("Item in CartItem.accessories cannot have accessories");mS(t)}}}function mS(e){if(!e.id)throw new Error("cartItem.id must not be empty");if(!e.name)throw new Error("cartItem.name must not be empty");wS(e.price),yS(e.quantity)}function vS(e){if(null!=e){if(!e)throw new Error("id must not be empty");if(!1===xt(e))throw new Error("id must be a valid UUID")}}function wS(e){if("number"!=typeof e||e<0)throw new Error(`price ${e} must be a number not less than 0`);if(parseFloat(e.toFixed(3))!==e)throw new Error(`price ${e} must have at most 3 decimal places`)}function yS(e){if("number"!=typeof e||e<=0||parseInt(e.toString())!==e)throw new Error(`quantity ${e} must be an integer greater than 0`)}function CS(e){if(!Object.values(AS).includes(e))throw new Error(`cartStatus ${e} is not valid`)}const SS="v2",bS={majorVersion:1,minorVersion:1};var ES,AS;function IS(){if(br(Ln,Lt.content,Lt.task),!RS())throw Wt;return Ks(On(SS,"marketplace.getCart"),"marketplace.getCart",bS).then(dS)}function PS(e){if(br(Ln,Lt.content,Lt.task),!RS())throw Wt;if(!e)throw new Error("addOrUpdateCartItemsParams must be provided");return vS(null==e?void 0:e.cartId),hS(null==e?void 0:e.cartItems),Ks(On(SS,"marketplace.addOrUpdateCartItems"),"marketplace.addOrUpdateCartItems",Object.assign(Object.assign({},e),{cartItems:pS(e.cartItems),cartVersion:bS})).then(dS)}function TS(e){if(br(Ln,Lt.content,Lt.task),!RS())throw Wt;if(!e)throw new Error("removeCartItemsParams must be provided");if(vS(null==e?void 0:e.cartId),!Array.isArray(null==e?void 0:e.cartItemIds)||0===(null==e?void 0:e.cartItemIds.length))throw new Error("cartItemIds must be a non-empty array");return Ks(On(SS,"marketplace.removeCartItems"),"marketplace.removeCartItems",Object.assign(Object.assign({},e),{cartVersion:bS})).then(dS)}function OS(e){if(br(Ln,Lt.content,Lt.task),!RS())throw Wt;if(!e)throw new Error("updateCartStatusParams must be provided");return vS(null==e?void 0:e.cartId),CS(null==e?void 0:e.cartStatus),Ks(On(SS,"marketplace.updateCartStatus"),"marketplace.updateCartStatus",Object.assign(Object.assign({},e),{cartVersion:bS})).then(dS)}function RS(){return!(!br(Ln)||!Ln.supports.marketplace)}!function(e){e.TACAdminUser="TACAdminUser",e.TeamsAdminUser="TeamsAdminUser",e.TeamsEndUser="TeamsEndUser"}(ES||(ES={})),function(e){e.Open="Open",e.Processing="Processing",e.Processed="Processed",e.Closed="Closed",e.Error="Error"}(AS||(AS={}));var FS=function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):o(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})};class kS{constructor(e){this.event=e}serialize(){return{altKey:this.event.altKey,bubbles:this.event.bubbles,cancelBubble:this.event.cancelBubble,charCode:this.event.charCode,code:this.event.code,composed:this.event.composed,ctrlKey:this.event.ctrlKey,defaultPrevented:this.event.defaultPrevented,detail:this.event.detail,eventPhase:this.event.eventPhase,isComposing:this.event.isComposing,isTrusted:this.event.isTrusted,key:this.event.key,keyCode:this.event.keyCode,location:this.event.location,metaKey:this.event.metaKey,repeat:this.event.repeat,returnValue:this.event.returnValue,shiftKey:this.event.shiftKey,timeStamp:this.event.timeStamp,type:this.event.type,which:this.event.which}}}function MS(e){return e.toLowerCase().split("+").sort().join("+")}function xS(e){return[e.ctrlKey&&"ctrl",e.shiftKey&&"shift",e.altKey&&"alt",e.metaKey&&"meta",e.key.toLowerCase()].filter(Boolean).sort().join("+")}function US(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||!!e.key&&"escape"===e.key.toLowerCase()||!!e.key&&/^F\d+$/i.test(e.key)}function NS(e,t){if(US(t)){const n=xS(t);if(e.has(n))return{matchedShortcut:n,isOverridable:BS.has(n)}}return{matchedShortcut:void 0,isOverridable:!1}}function LS(e){VS.clear(),e.shortcuts.forEach(e=>{VS.add(MS(e))}),BS.clear(),e.overridableShortcuts.forEach(e=>{BS.add(MS(e))})}class DS extends Ii{validate(e){return e&&Array.isArray(e.shortcuts)&&Array.isArray(e.overridableShortcuts)}deserialize(e){return e}}function HS(e){ns(On("v2","shortcutRelay.hostShortcutChanged"),"shortcutRelay.hostShortcutChanged",e)}function _S(e){if(e.target.closest(`[${JS}]`))return;const{matchedShortcut:t,isOverridable:n}=NS(VS,e);if(!t)return;if(n&&WS){if(WS(e,{matchedShortcut:t}))return}Ys("shortcutRelay.forwardShortcutEvent",[new kS(e)],On("v2","shortcutRelay.forwardShortcutEvent")),e.preventDefault(),e.stopImmediatePropagation()}const BS=new Set,VS=new Set;let WS,jS=!1;function zS(e){if(!GS())throw Wt;const t=WS;return WS=e,t}function qS(){if(!GS())throw Wt;jS=!1,VS.clear(),BS.clear(),WS=void 0,document.removeEventListener("keydown",_S,{capture:!0})}function $S(){return FS(this,void 0,void 0,function*(){if(!GS())throw Wt;LS(yield Xs("shortcutRelay.getHostShortcuts",[],new DS,On("v2","shortcutRelay.getHostShortcuts"))),jS||document.addEventListener("keydown",_S,{capture:!0}),jS=!0,HS(e=>{LS(e)})})}function GS(){return!(!br(Ln)||!Ln.supports.shortcutRelay)}const JS="data-disable-shortcuts-forwarding"})(),r})());
3
+ //# sourceMappingURL=JevelinBridge.min.js.map