solid-ui 2.4.21-ec6f98e0 → 2.4.22

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 (244) hide show
  1. package/LICENSE.md +0 -0
  2. package/README.md +8 -8
  3. package/dist/index.html +0 -0
  4. package/dist/main.js +161 -132
  5. package/dist/main.js.map +1 -1
  6. package/lib/acl/access-controller.d.ts +0 -0
  7. package/lib/acl/access-controller.d.ts.map +0 -0
  8. package/lib/acl/access-controller.js +2 -2
  9. package/lib/acl/access-controller.js.map +1 -1
  10. package/lib/acl/access-groups.d.ts +1 -1
  11. package/lib/acl/access-groups.d.ts.map +0 -0
  12. package/lib/acl/access-groups.js +1 -1
  13. package/lib/acl/access-groups.js.map +1 -1
  14. package/lib/acl/acl-control.d.ts +2 -2
  15. package/lib/acl/acl-control.d.ts.map +0 -0
  16. package/lib/acl/acl-control.js +5 -5
  17. package/lib/acl/acl-control.js.map +1 -1
  18. package/lib/acl/acl.d.ts +1 -1
  19. package/lib/acl/acl.d.ts.map +0 -0
  20. package/lib/acl/acl.js +1 -1
  21. package/lib/acl/acl.js.map +1 -1
  22. package/lib/acl/add-agent-buttons.d.ts +1 -1
  23. package/lib/acl/add-agent-buttons.d.ts.map +0 -0
  24. package/lib/acl/add-agent-buttons.js +1 -1
  25. package/lib/acl/add-agent-buttons.js.map +1 -1
  26. package/lib/acl/index.d.ts +0 -0
  27. package/lib/acl/index.d.ts.map +0 -0
  28. package/lib/acl/index.js +0 -0
  29. package/lib/acl/index.js.map +0 -0
  30. package/lib/acl/styles.d.ts +1 -1
  31. package/lib/acl/styles.d.ts.map +0 -0
  32. package/lib/acl/styles.js +1 -1
  33. package/lib/acl/styles.js.map +1 -1
  34. package/lib/acl/types.d.ts +0 -0
  35. package/lib/acl/types.d.ts.map +0 -0
  36. package/lib/acl/types.js +0 -0
  37. package/lib/acl/types.js.map +0 -0
  38. package/lib/chat/bookmarks.js +0 -0
  39. package/lib/chat/bookmarks.js.map +0 -0
  40. package/lib/chat/chatLogic.js +0 -0
  41. package/lib/chat/chatLogic.js.map +0 -0
  42. package/lib/chat/dateFolder.js +0 -0
  43. package/lib/chat/dateFolder.js.map +0 -0
  44. package/lib/chat/infinite.js +0 -0
  45. package/lib/chat/infinite.js.map +1 -1
  46. package/lib/chat/message.js +0 -0
  47. package/lib/chat/message.js.map +0 -0
  48. package/lib/chat/messageTools.js +0 -0
  49. package/lib/chat/messageTools.js.map +0 -0
  50. package/lib/chat/thread.js +0 -0
  51. package/lib/chat/thread.js.map +0 -0
  52. package/lib/create/create.d.ts +0 -0
  53. package/lib/create/create.d.ts.map +0 -0
  54. package/lib/create/create.js +0 -0
  55. package/lib/create/create.js.map +0 -0
  56. package/lib/create/index.d.ts +0 -0
  57. package/lib/create/index.d.ts.map +0 -0
  58. package/lib/create/index.js +0 -0
  59. package/lib/create/index.js.map +0 -0
  60. package/lib/create/types.d.ts +0 -0
  61. package/lib/create/types.d.ts.map +0 -0
  62. package/lib/create/types.js +0 -0
  63. package/lib/create/types.js.map +0 -0
  64. package/lib/debug.d.ts +0 -0
  65. package/lib/debug.d.ts.map +0 -0
  66. package/lib/debug.js +0 -0
  67. package/lib/debug.js.map +0 -0
  68. package/lib/folders.js +0 -0
  69. package/lib/folders.js.map +0 -0
  70. package/lib/footer/index.d.ts +0 -0
  71. package/lib/footer/index.d.ts.map +0 -0
  72. package/lib/footer/index.js +0 -0
  73. package/lib/footer/index.js.map +0 -0
  74. package/lib/footer/styleMap.d.ts +0 -0
  75. package/lib/footer/styleMap.d.ts.map +0 -0
  76. package/lib/footer/styleMap.js +0 -0
  77. package/lib/footer/styleMap.js.map +0 -0
  78. package/lib/header/empty-profile.d.ts +0 -0
  79. package/lib/header/empty-profile.d.ts.map +0 -0
  80. package/lib/header/empty-profile.js +0 -0
  81. package/lib/header/empty-profile.js.map +0 -0
  82. package/lib/header/index.d.ts +0 -0
  83. package/lib/header/index.d.ts.map +0 -0
  84. package/lib/header/index.js +0 -0
  85. package/lib/header/index.js.map +0 -0
  86. package/lib/header/styleMap.d.ts +0 -0
  87. package/lib/header/styleMap.d.ts.map +0 -0
  88. package/lib/header/styleMap.js +0 -0
  89. package/lib/header/styleMap.js.map +0 -0
  90. package/lib/iconBase.d.ts +0 -0
  91. package/lib/iconBase.d.ts.map +1 -1
  92. package/lib/iconBase.js +2 -2
  93. package/lib/iconBase.js.map +1 -1
  94. package/lib/icons/solid_logo.d.ts +0 -0
  95. package/lib/icons/solid_logo.d.ts.map +0 -0
  96. package/lib/icons/solid_logo.js +0 -0
  97. package/lib/icons/solid_logo.js.map +0 -0
  98. package/lib/index.d.ts +0 -0
  99. package/lib/index.d.ts.map +0 -0
  100. package/lib/index.js +1 -1
  101. package/lib/index.js.map +1 -1
  102. package/lib/jss/index.d.ts +2 -2
  103. package/lib/jss/index.d.ts.map +0 -0
  104. package/lib/jss/index.js +2 -2
  105. package/lib/jss/index.js.map +1 -1
  106. package/lib/log.d.ts +0 -0
  107. package/lib/log.d.ts.map +0 -0
  108. package/lib/log.js +0 -0
  109. package/lib/log.js.map +0 -0
  110. package/lib/login/login.d.ts +57 -57
  111. package/lib/login/login.d.ts.map +1 -1
  112. package/lib/login/login.js +74 -72
  113. package/lib/login/login.js.map +1 -1
  114. package/lib/matrix/index.d.ts +0 -0
  115. package/lib/matrix/index.d.ts.map +0 -0
  116. package/lib/matrix/index.js +0 -0
  117. package/lib/matrix/index.js.map +0 -0
  118. package/lib/matrix/matrix.d.ts +0 -0
  119. package/lib/matrix/matrix.d.ts.map +0 -0
  120. package/lib/matrix/matrix.js +0 -0
  121. package/lib/matrix/matrix.js.map +0 -0
  122. package/lib/matrix/types.d.ts +0 -0
  123. package/lib/matrix/types.d.ts.map +0 -0
  124. package/lib/matrix/types.js +0 -0
  125. package/lib/matrix/types.js.map +0 -0
  126. package/lib/media/index.d.ts +0 -0
  127. package/lib/media/index.d.ts.map +0 -0
  128. package/lib/media/index.js +0 -0
  129. package/lib/media/index.js.map +0 -0
  130. package/lib/media/media-capture.d.ts +0 -0
  131. package/lib/media/media-capture.d.ts.map +0 -0
  132. package/lib/media/media-capture.js +0 -0
  133. package/lib/media/media-capture.js.map +0 -0
  134. package/lib/messageArea.js +0 -0
  135. package/lib/messageArea.js.map +0 -0
  136. package/lib/noun_Camera_1618446_000000.js +0 -0
  137. package/lib/noun_Camera_1618446_000000.js.map +0 -0
  138. package/lib/ns.js +0 -0
  139. package/lib/ns.js.map +0 -0
  140. package/lib/pad.d.ts +0 -0
  141. package/lib/pad.d.ts.map +0 -0
  142. package/lib/pad.js +0 -0
  143. package/lib/pad.js.map +0 -0
  144. package/lib/participation.d.ts +0 -0
  145. package/lib/participation.d.ts.map +0 -0
  146. package/lib/participation.js +1 -1
  147. package/lib/participation.js.map +1 -1
  148. package/lib/preferences.js +0 -0
  149. package/lib/preferences.js.map +0 -0
  150. package/lib/signup/config-default.js +0 -0
  151. package/lib/signup/config-default.js.map +0 -0
  152. package/lib/signup/signup.js +0 -0
  153. package/lib/signup/signup.js.map +0 -0
  154. package/lib/stories/decorators.js +0 -0
  155. package/lib/stories/decorators.js.map +0 -0
  156. package/lib/style.js +0 -0
  157. package/lib/style.js.map +0 -0
  158. package/lib/table.js +0 -0
  159. package/lib/table.js.map +0 -0
  160. package/lib/tabs.d.ts +1 -1
  161. package/lib/tabs.d.ts.map +1 -1
  162. package/lib/tabs.js +5 -3
  163. package/lib/tabs.js.map +1 -1
  164. package/lib/typings.d.js +0 -0
  165. package/lib/typings.d.js.map +0 -0
  166. package/lib/utils/headerFooterHelpers.d.ts +0 -0
  167. package/lib/utils/headerFooterHelpers.d.ts.map +0 -0
  168. package/lib/utils/headerFooterHelpers.js +0 -0
  169. package/lib/utils/headerFooterHelpers.js.map +0 -0
  170. package/lib/utils/index.js +0 -0
  171. package/lib/utils/index.js.map +0 -0
  172. package/lib/utils/label.d.ts +0 -0
  173. package/lib/utils/label.d.ts.map +0 -0
  174. package/lib/utils/label.js +0 -0
  175. package/lib/utils/label.js.map +0 -0
  176. package/lib/versionInfo.d.ts +0 -0
  177. package/lib/versionInfo.d.ts.map +0 -0
  178. package/lib/versionInfo.js +13 -13
  179. package/lib/versionInfo.js.map +1 -1
  180. package/lib/widgets/buttons/iconLinks.d.ts +0 -0
  181. package/lib/widgets/buttons/iconLinks.d.ts.map +0 -0
  182. package/lib/widgets/buttons/iconLinks.js +0 -0
  183. package/lib/widgets/buttons/iconLinks.js.map +0 -0
  184. package/lib/widgets/buttons.d.ts +0 -0
  185. package/lib/widgets/buttons.d.ts.map +0 -0
  186. package/lib/widgets/buttons.js +0 -0
  187. package/lib/widgets/buttons.js.map +0 -0
  188. package/lib/widgets/dragAndDrop.js +0 -0
  189. package/lib/widgets/dragAndDrop.js.map +0 -0
  190. package/lib/widgets/error.d.ts +0 -0
  191. package/lib/widgets/error.d.ts.map +0 -0
  192. package/lib/widgets/error.js +0 -0
  193. package/lib/widgets/error.js.map +0 -0
  194. package/lib/widgets/forms/autocomplete/autocompleteBar.d.ts +0 -0
  195. package/lib/widgets/forms/autocomplete/autocompleteBar.d.ts.map +0 -0
  196. package/lib/widgets/forms/autocomplete/autocompleteBar.js +0 -0
  197. package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +0 -0
  198. package/lib/widgets/forms/autocomplete/autocompleteField.d.ts +0 -0
  199. package/lib/widgets/forms/autocomplete/autocompleteField.d.ts.map +0 -0
  200. package/lib/widgets/forms/autocomplete/autocompleteField.js +0 -0
  201. package/lib/widgets/forms/autocomplete/autocompleteField.js.map +0 -0
  202. package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts +0 -0
  203. package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +0 -0
  204. package/lib/widgets/forms/autocomplete/autocompletePicker.js +0 -0
  205. package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +0 -0
  206. package/lib/widgets/forms/autocomplete/language.d.ts +0 -0
  207. package/lib/widgets/forms/autocomplete/language.d.ts.map +0 -0
  208. package/lib/widgets/forms/autocomplete/language.js +0 -0
  209. package/lib/widgets/forms/autocomplete/language.js.map +1 -1
  210. package/lib/widgets/forms/autocomplete/publicData.d.ts +0 -0
  211. package/lib/widgets/forms/autocomplete/publicData.d.ts.map +0 -0
  212. package/lib/widgets/forms/autocomplete/publicData.js +1 -1
  213. package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
  214. package/lib/widgets/forms/basic.d.ts +0 -0
  215. package/lib/widgets/forms/basic.d.ts.map +0 -0
  216. package/lib/widgets/forms/basic.js +0 -0
  217. package/lib/widgets/forms/basic.js.map +0 -0
  218. package/lib/widgets/forms/comment.d.ts +0 -0
  219. package/lib/widgets/forms/comment.d.ts.map +0 -0
  220. package/lib/widgets/forms/comment.js +0 -0
  221. package/lib/widgets/forms/comment.js.map +0 -0
  222. package/lib/widgets/forms/fieldFunction.d.ts +0 -0
  223. package/lib/widgets/forms/fieldFunction.d.ts.map +0 -0
  224. package/lib/widgets/forms/fieldFunction.js +0 -0
  225. package/lib/widgets/forms/fieldFunction.js.map +0 -0
  226. package/lib/widgets/forms/fieldParams.d.ts +0 -0
  227. package/lib/widgets/forms/fieldParams.d.ts.map +0 -0
  228. package/lib/widgets/forms/fieldParams.js +0 -0
  229. package/lib/widgets/forms/fieldParams.js.map +0 -0
  230. package/lib/widgets/forms/formStyle.d.ts +0 -0
  231. package/lib/widgets/forms/formStyle.d.ts.map +0 -0
  232. package/lib/widgets/forms/formStyle.js +0 -0
  233. package/lib/widgets/forms/formStyle.js.map +0 -0
  234. package/lib/widgets/forms.js +0 -0
  235. package/lib/widgets/forms.js.map +0 -0
  236. package/lib/widgets/index.js +0 -0
  237. package/lib/widgets/index.js.map +0 -0
  238. package/lib/widgets/peoplePicker.js +0 -0
  239. package/lib/widgets/peoplePicker.js.map +0 -0
  240. package/lib/widgets/widgetHelpers.d.ts +0 -0
  241. package/lib/widgets/widgetHelpers.d.ts.map +0 -0
  242. package/lib/widgets/widgetHelpers.js +0 -0
  243. package/lib/widgets/widgetHelpers.js.map +0 -0
  244. package/package.json +8 -8
package/dist/main.js CHANGED
@@ -219,7 +219,7 @@ var AccessController = /*#__PURE__*/function () {
219
219
  value: function renderTemporaryStatus(message) {
220
220
  var _this5 = this;
221
221
 
222
- // @@ TODO Introduce better system for error notification to user https://github.com/solid/mashlib/issues/87
222
+ // @@ TODO Introduce better system for error notification to user https://github.com/solidos/mashlib/issues/87
223
223
  this.statusElement.classList.add(this.classes.aclControlBoxStatusRevealed);
224
224
  this.statusElement.innerText = message;
225
225
  this.statusElement.classList.add(this.classes.temporaryStatusInit);
@@ -233,7 +233,7 @@ var AccessController = /*#__PURE__*/function () {
233
233
  }, {
234
234
  key: "renderStatus",
235
235
  value: function renderStatus(message) {
236
- // @@ TODO Introduce better system for error notification to user https://github.com/solid/mashlib/issues/87
236
+ // @@ TODO Introduce better system for error notification to user https://github.com/solidos/mashlib/issues/87
237
237
  this.statusElement.classList.toggle(this.classes.aclControlBoxStatusRevealed, !!message);
238
238
  this.statusElement.innerText = message;
239
239
  }
@@ -555,7 +555,7 @@ var EXPLANATION = {
555
555
 
556
556
  /**
557
557
  * Renders the table of Owners, Editors, Posters, Submitters, Viewers
558
- * for https://github.com/solid/userguide/blob/main/views/sharing/userguide.md
558
+ * for https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md
559
559
  */
560
560
  var AccessGroups = /*#__PURE__*/function () {
561
561
  // @@ was LiveStore but does not need to be connected to web
@@ -1058,7 +1058,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
1058
1058
 
1059
1059
  /**
1060
1060
  * Functions for rendering the ACL User Interface.
1061
- * See https://github.com/solid/userguide/blob/main/views/sharing/userguide.md#view
1061
+ * See https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md#view
1062
1062
  * for a screenshot.
1063
1063
  * @packageDocumentation
1064
1064
  */
@@ -1155,7 +1155,7 @@ function shortNameForFolder(x) {
1155
1155
  if (slash >= 0) {
1156
1156
  str = str.slice(slash + 1);
1157
1157
  } // Return the folder's filename, or '/' if nothing found
1158
- // (but see https://github.com/solid/solid-ui/issues/196
1158
+ // (but see https://github.com/solidos/solid-ui/issues/196
1159
1159
  // regarding whether this happens at the domain root or
1160
1160
  // not)
1161
1161
 
@@ -1168,7 +1168,7 @@ function shortNameForFolder(x) {
1168
1168
  * Presumably the '5' is a version number of some sort,
1169
1169
  * but all we know is it was already called ACLControlBox5
1170
1170
  * when it was introduced into solid-ui in
1171
- * https://github.com/solid/solid-ui/commit/948b874bd93e7bf5160e6e224821b888f07d15f3#diff-4192a29f38a0ababd563b36b47eba5bbR54
1171
+ * https://github.com/solidos/solid-ui/commit/948b874bd93e7bf5160e6e224821b888f07d15f3#diff-4192a29f38a0ababd563b36b47eba5bbR54
1172
1172
  */
1173
1173
 
1174
1174
 
@@ -1285,13 +1285,13 @@ function getDirectory(doc) {
1285
1285
  function isStorage(doc, aclDoc, store) {
1286
1286
  // @@ TODO: The methods used for targetIsStorage are HACKs - it should not be relied upon, and work is
1287
1287
  // @@ underway to standardize a behavior that does not rely upon this hack
1288
- // @@ hopefully fixed as part of https://github.com/solid/data-interoperability-panel/issues/10
1288
+ // @@ hopefully fixed as part of https://github.com/solidos/data-interoperability-panel/issues/10
1289
1289
  return store.holds(doc, ns.rdf('type'), ns.space('Storage'), aclDoc);
1290
1290
  }
1291
1291
 
1292
1292
  function hasProtectedAcl(targetDoc) {
1293
1293
  // @@ TODO: This is hacky way of knowing whether or not a certain ACL file can be removed
1294
- // Hopefully we'll find a better, standardized solution to this - https://github.com/solid/specification/issues/37
1294
+ // Hopefully we'll find a better, standardized solution to this - https://github.com/solidos/specification/issues/37
1295
1295
  return targetDoc.uri === targetDoc.site().uri;
1296
1296
  }
1297
1297
  /** @internal */
@@ -1360,7 +1360,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
1360
1360
 
1361
1361
  /**
1362
1362
  * Non-UI functions for access control.
1363
- * See https://github.com/solid/web-access-control-spec
1363
+ * See https://github.com/solidos/web-access-control-spec
1364
1364
  * for the spec that defines how ACL documents work.
1365
1365
  * @packageDocumentation
1366
1366
  */
@@ -1962,7 +1962,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
1962
1962
 
1963
1963
  /**
1964
1964
  * Renders the Sharing pane's "+" button and the menus behind it,
1965
- * see https://github.com/solid/userguide/blob/main/views/sharing/userguide.md#add
1965
+ * see https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md#add
1966
1966
  */
1967
1967
  var AddAgentButtons = /*#__PURE__*/function () {
1968
1968
  function AddAgentButtons(groupList) {
@@ -2531,7 +2531,7 @@ exports.styles = void 0;
2531
2531
 
2532
2532
  /**
2533
2533
  * Contains CSS styles for the Sharing pane,
2534
- * see https://github.com/solid/userguide/blob/main/views/sharing/userguide.md
2534
+ * see https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md
2535
2535
  * @packageDocumentation
2536
2536
  */
2537
2537
  var styles = {
@@ -7102,11 +7102,11 @@ var _debug = __webpack_require__(/*! ./debug */ "./lib/debug.js");
7102
7102
  *
7103
7103
  * You can also use it if you want to just run a mashlib whhich takes its
7104
7104
  * icons seved by other than github.
7105
- */
7105
+ */
7106
7106
 
7107
7107
  /* eslint-disable multiline-ternary */
7108
7108
  // Do not export. lways us this module to find the icons, as it varies
7109
- var iconsOnGithub = 'https://solid.github.io/solid-ui/src';
7109
+ var iconsOnGithub = 'https://solidos.github.io/solid-ui/src';
7110
7110
  var icons = module.scriptURI // Firefox extension
7111
7111
  ? {
7112
7112
  iconBase: module.scriptURI.slice(0, module.scriptURI.lastIndexOf('/')) + '/icons/',
@@ -7162,7 +7162,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7162
7162
  SOFTWARE.
7163
7163
 
7164
7164
  If you would like to know more about the solid Solid project, please see
7165
- https://github.com/solid/solid
7165
+ https://github.com/solidos/solid
7166
7166
  */
7167
7167
 
7168
7168
  /**
@@ -7436,7 +7436,7 @@ var stylesheetsMap = new Map();
7436
7436
  /**
7437
7437
  * returns a StyleSheet object.
7438
7438
  * See https://cssinjs.org/ for more info about JSS.
7439
- * (despite the name, see https://github.com/solid/solid-ui/issues/199)
7439
+ * (despite the name, see https://github.com/solidos/solid-ui/issues/199)
7440
7440
  */
7441
7441
 
7442
7442
  function getClasses(insertionPoint, styles) {
@@ -7446,7 +7446,7 @@ function getClasses(insertionPoint, styles) {
7446
7446
  /**
7447
7447
  * returns a JSS object.
7448
7448
  * See https://cssinjs.org/ for more info about JSS.
7449
- * (despite the name, see https://github.com/solid/solid-ui/issues/199)
7449
+ * (despite the name, see https://github.com/solidos/solid-ui/issues/199)
7450
7450
  */
7451
7451
 
7452
7452
 
@@ -7783,6 +7783,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
7783
7783
 
7784
7784
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7785
7785
 
7786
+ /* eslint-disable camelcase */
7787
+
7786
7788
  /**
7787
7789
  * Signing in, signing up, profile and preferences reloading
7788
7790
  * Type index management
@@ -7809,10 +7811,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
7809
7811
  */
7810
7812
 
7811
7813
  /**
7812
- * Resolves with the logged in user's WebID
7813
- *
7814
- * @param context
7815
- */
7814
+ * Resolves with the logged in user's WebID
7815
+ *
7816
+ * @param context
7817
+ */
7816
7818
  // used to be logIn
7817
7819
  function ensureLoggedIn(context) {
7818
7820
  var me = _solidLogic.authn.currentUser();
@@ -8006,11 +8008,11 @@ function ensureLoadedProfile(_x3) {
8006
8008
  return _ensureLoadedProfile.apply(this, arguments);
8007
8009
  }
8008
8010
  /**
8009
- * Returns promise of context with arrays of symbols
8010
- *
8011
- * 2016-12-11 change to include forClass arc a la
8012
- * https://github.com/solid/solid/blob/main/proposals/data-discovery.md
8013
- */
8011
+ * Returns promise of context with arrays of symbols
8012
+ *
8013
+ * 2016-12-11 change to include forClass arc a la
8014
+ * https://github.com/solid/solid/blob/main/proposals/data-discovery.md
8015
+ */
8014
8016
 
8015
8017
 
8016
8018
  function _ensureLoadedProfile() {
@@ -8078,8 +8080,8 @@ function findAppInstances(_x4, _x5, _x6) {
8078
8080
  return _findAppInstances.apply(this, arguments);
8079
8081
  }
8080
8082
  /**
8081
- * UI to control registration of instance
8082
- */
8083
+ * UI to control registration of instance
8084
+ */
8083
8085
 
8084
8086
 
8085
8087
  function _findAppInstances() {
@@ -8228,8 +8230,8 @@ function registrationControl(_x7, _x8, _x9) {
8228
8230
  return _registrationControl.apply(this, arguments);
8229
8231
  }
8230
8232
  /**
8231
- * UI to List at all registered things
8232
- */
8233
+ * UI to List at all registered things
8234
+ */
8233
8235
 
8234
8236
 
8235
8237
  function _registrationControl() {
@@ -8455,14 +8457,14 @@ function getDefaultSignInButtonStyle() {
8455
8457
  return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
8456
8458
  }
8457
8459
  /**
8458
- * Bootstrapping identity
8459
- * (Called by `loginStatusBox()`)
8460
- *
8461
- * @param dom
8462
- * @param setUserCallback
8463
- *
8464
- * @returns
8465
- */
8460
+ * Bootstrapping identity
8461
+ * (Called by `loginStatusBox()`)
8462
+ *
8463
+ * @param dom
8464
+ * @param setUserCallback
8465
+ *
8466
+ * @returns
8467
+ */
8466
8468
 
8467
8469
 
8468
8470
  function signInOrSignUpBox(dom, setUserCallback) {
@@ -8540,8 +8542,8 @@ function signInOrSignUpBox(dom, setUserCallback) {
8540
8542
 
8541
8543
  function renderSignInPopup(dom) {
8542
8544
  /**
8543
- * Issuer Menu
8544
- */
8545
+ * Issuer Menu
8546
+ */
8545
8547
  var issuerPopup = dom.createElement('div');
8546
8548
  issuerPopup.setAttribute('style', 'position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;');
8547
8549
  dom.body.appendChild(issuerPopup);
@@ -8555,7 +8557,7 @@ function renderSignInPopup(dom) {
8555
8557
  issuerPopupBoxLabel.setAttribute('style', 'margin-right: 5px; font-weight: 800');
8556
8558
  issuerPopupBoxLabel.innerText = 'Select an identity provider';
8557
8559
  var issuerPopupBoxCloseButton = dom.createElement('button');
8558
- issuerPopupBoxCloseButton.innerHTML = '<img src="https://solid.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">';
8560
+ issuerPopupBoxCloseButton.innerHTML = '<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">';
8559
8561
  issuerPopupBoxCloseButton.setAttribute('style', 'background-color: transparent; border: none;');
8560
8562
  issuerPopupBoxCloseButton.addEventListener('click', function () {
8561
8563
  issuerPopup.remove();
@@ -8608,8 +8610,8 @@ function renderSignInPopup(dom) {
8608
8610
  };
8609
8611
  }();
8610
8612
  /**
8611
- * Text-based idp selection
8612
- */
8613
+ * Text-based idp selection
8614
+ */
8613
8615
 
8614
8616
 
8615
8617
  var issuerTextContainer = dom.createElement('div');
@@ -8636,8 +8638,8 @@ function renderSignInPopup(dom) {
8636
8638
  issuerTextContainer.appendChild(issuerTextInputContainer);
8637
8639
  issuerPopupBox.appendChild(issuerTextContainer);
8638
8640
  /**
8639
- * Button-based idp selection
8640
- */
8641
+ * Button-based idp selection
8642
+ */
8641
8643
 
8642
8644
  var issuerButtonContainer = dom.createElement('div');
8643
8645
  issuerButtonContainer.setAttribute('style', "\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");
@@ -8657,15 +8659,15 @@ function renderSignInPopup(dom) {
8657
8659
  issuerPopupBox.appendChild(issuerButtonContainer);
8658
8660
  }
8659
8661
  /**
8660
- * Login status box
8661
- *
8662
- * A big sign-up/sign in box or a logout box depending on the state
8663
- *
8664
- * @param dom
8665
- * @param listener
8666
- *
8667
- * @returns
8668
- */
8662
+ * Login status box
8663
+ *
8664
+ * A big sign-up/sign in box or a logout box depending on the state
8665
+ *
8666
+ * @param dom
8667
+ * @param listener
8668
+ *
8669
+ * @returns
8670
+ */
8669
8671
 
8670
8672
 
8671
8673
  function loginStatusBox(dom) {
@@ -8826,28 +8828,28 @@ _solidLogic.authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"]
8826
8828
  }, _callee2, null, [[2, 17]]);
8827
8829
  })));
8828
8830
  /**
8829
- * Workspace selection etc
8830
- * See https://github.com/solid/userguide/issues/16
8831
- */
8831
+ * Workspace selection etc
8832
+ * See https://github.com/solidos/userguide/issues/16
8833
+ */
8832
8834
 
8833
8835
  /**
8834
- * Returns a UI object which, if it selects a workspace,
8835
- * will callback(workspace, newBase).
8836
- * See https://github.com/solid/userguide/issues/16 for more info on workspaces.
8837
- *
8838
- * If necessary, will get an account, preference file, etc. In sequence:
8839
- *
8840
- * - If not logged in, log in.
8841
- * - Load preference file
8842
- * - Prompt user for workspaces
8843
- * - Allows the user to just type in a URI by hand
8844
- *
8845
- * Calls back with the workspace and the base URI
8846
- *
8847
- * @param dom
8848
- * @param appDetails
8849
- * @param callbackWS
8850
- */
8836
+ * Returns a UI object which, if it selects a workspace,
8837
+ * will callback(workspace, newBase).
8838
+ * See https://github.com/solidos/userguide/issues/16 for more info on workspaces.
8839
+ *
8840
+ * If necessary, will get an account, preference file, etc. In sequence:
8841
+ *
8842
+ * - If not logged in, log in.
8843
+ * - Load preference file
8844
+ * - Prompt user for workspaces
8845
+ * - Allows the user to just type in a URI by hand
8846
+ *
8847
+ * Calls back with the workspace and the base URI
8848
+ *
8849
+ * @param dom
8850
+ * @param appDetails
8851
+ * @param callbackWS
8852
+ */
8851
8853
 
8852
8854
 
8853
8855
  function selectWorkspace(dom, appDetails, callbackWS) {
@@ -9110,21 +9112,21 @@ function selectWorkspace(dom, appDetails, callbackWS) {
9110
9112
  } // selectWorkspace
9111
9113
 
9112
9114
  /**
9113
- * Creates a new instance of an app.
9114
- *
9115
- * An instance of an app could be e.g. an issue tracker for a given project,
9116
- * or a chess game, or calendar, or a health/fitness record for a person.
9117
- *
9118
- * Note that this use of the term 'app' refers more to entries in the user's
9119
- * type index than to actual software applications that use the personal data
9120
- * to which these entries point.
9121
- *
9122
- * @param dom
9123
- * @param appDetails
9124
- * @param callback
9125
- *
9126
- * @returns A div with a button in it for making a new app instance
9127
- */
9115
+ * Creates a new instance of an app.
9116
+ *
9117
+ * An instance of an app could be e.g. an issue tracker for a given project,
9118
+ * or a chess game, or calendar, or a health/fitness record for a person.
9119
+ *
9120
+ * Note that this use of the term 'app' refers more to entries in the user's
9121
+ * type index than to actual software applications that use the personal data
9122
+ * to which these entries point.
9123
+ *
9124
+ * @param dom
9125
+ * @param appDetails
9126
+ * @param callback
9127
+ *
9128
+ * @returns A div with a button in it for making a new app instance
9129
+ */
9128
9130
 
9129
9131
 
9130
9132
  function newAppInstance(dom, appDetails, callback) {
@@ -11405,7 +11407,7 @@ function participationObject(subject, padDoc, me) {
11405
11407
  });
11406
11408
 
11407
11409
  if (parps.length > 1) {
11408
- // This can happen. https://github.com/solid/chat-pane/issues/71
11410
+ // This can happen. https://github.com/solidos/chat-pane/issues/71
11409
11411
  var candidates = [];
11410
11412
 
11411
11413
  var _iterator = _createForOfIteratorHelper(parps),
@@ -13750,7 +13752,7 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
13750
13752
  /**
13751
13753
  * Use this widget to generate tabs from triples set in the global store.
13752
13754
  *
13753
- * [Here you can see examples of the tabs](https://solid.github.io/solid-ui/examples/tabs/).
13755
+ * [Here you can see examples of the tabs](https://solidos.github.io/solid-ui/examples/tabs/).
13754
13756
  *
13755
13757
  * It assumes that items to use for tabs will be in a collection by default,
13756
13758
  * e.g.:
@@ -13930,7 +13932,9 @@ function tabWidget(options) {
13930
13932
  var selectedTabURI = options.selectedTab.uri;
13931
13933
  var selectedTab1 = Array.from(tabContainer.children) // @ts-ignore
13932
13934
  .find(function (tab) {
13933
- return tab.subject && tab.subject.uri && tab.subject.uri === selectedTabURI;
13935
+ return tab.subject && // @ts-ignore
13936
+ tab.subject.uri && // @ts-ignore
13937
+ tab.subject.uri === selectedTabURI;
13934
13938
  });
13935
13939
  var tab = selectedTab1 || selectedTab0 || tabContainer.children[0];
13936
13940
  var clickMe = tab.firstChild; // @ts-ignore
@@ -13945,7 +13949,7 @@ function tabWidget(options) {
13945
13949
  function addCancelButton(tabContainer) {
13946
13950
  if (tabContainer.dataset.onCloseSet) {
13947
13951
  // @@ TODO: this is only here to make the browser tests work
13948
- // Discussion at https://github.com/solid/solid-ui/pull/110#issuecomment-527080663
13952
+ // Discussion at https://github.com/solidos/solid-ui/pull/110#issuecomment-527080663
13949
13953
  var existingCancelButton = tabContainer.querySelector('.unstyled');
13950
13954
  tabContainer.removeChild(existingCancelButton);
13951
13955
  }
@@ -15188,25 +15192,25 @@ Object.defineProperty(exports, "__esModule", ({
15188
15192
  }));
15189
15193
  exports.versionInfo = void 0;
15190
15194
  var versionInfo = {
15191
- buildTime: '2022-04-11T08:50:54Z',
15192
- commit: 'ec6f98e086b9e3122931c90290abf67866d0611d',
15195
+ buildTime: '2022-04-14T16:35:17Z',
15196
+ commit: 'deb2e922d6e6ae79a8dc9b2702fefa134ba9c14a',
15193
15197
  npmInfo: {
15194
15198
  'solid-ui': '2.4.21',
15195
- npm: '6.14.16',
15196
- ares: '1.18.1',
15199
+ npm: '6.14.13',
15200
+ ares: '1.17.1',
15197
15201
  brotli: '1.0.9',
15198
- cldr: '40.0',
15199
- icu: '70.1',
15200
- llhttp: '2.1.4',
15202
+ cldr: '39.0',
15203
+ icu: '69.1',
15204
+ llhttp: '2.1.3',
15201
15205
  modules: '83',
15202
15206
  napi: '8',
15203
15207
  nghttp2: '1.42.0',
15204
- node: '14.19.1',
15205
- openssl: '1.1.1n',
15206
- tz: '2021a3',
15207
- unicode: '14.0',
15208
- uv: '1.42.0',
15209
- v8: '8.4.371.23-node.85',
15208
+ node: '14.17.3',
15209
+ openssl: '1.1.1k',
15210
+ tz: '2021a',
15211
+ unicode: '13.0',
15212
+ uv: '1.41.0',
15213
+ v8: '8.4.371.23-node.67',
15210
15214
  zlib: '1.2.11'
15211
15215
  }
15212
15216
  };
@@ -20772,7 +20776,7 @@ function queryESCODataByName(_x, _x2, _x3) {
20772
20776
  *
20773
20777
  * Wikidata bug: https://phabricator.wikimedia.org/T283962
20774
20778
  * This will not be needed whn that WDQS bug fixed.
20775
- * This is aptured in https://github.com/solid/solid-ui/issues/403
20779
+ * This is aptured in https://github.com/solidos/solid-ui/issues/403
20776
20780
  */
20777
20781
 
20778
20782
 
@@ -25745,6 +25749,31 @@ function freeze(object, oc) {
25745
25749
  return oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object
25746
25750
  }
25747
25751
 
25752
+ /**
25753
+ * Since we can not rely on `Object.assign` we provide a simplified version
25754
+ * that is sufficient for our needs.
25755
+ *
25756
+ * @param {Object} target
25757
+ * @param {Object | null | undefined} source
25758
+ *
25759
+ * @returns {Object} target
25760
+ * @throws TypeError if target is not an object
25761
+ *
25762
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
25763
+ * @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign
25764
+ */
25765
+ function assign(target, source) {
25766
+ if (target === null || typeof target !== 'object') {
25767
+ throw new TypeError('target is not an object')
25768
+ }
25769
+ for (var key in source) {
25770
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
25771
+ target[key] = source[key]
25772
+ }
25773
+ }
25774
+ return target
25775
+ }
25776
+
25748
25777
  /**
25749
25778
  * All mime types that are allowed as input to `DOMParser.parseFromString`
25750
25779
  *
@@ -25862,6 +25891,7 @@ var NAMESPACE = freeze({
25862
25891
  XMLNS: 'http://www.w3.org/2000/xmlns/',
25863
25892
  })
25864
25893
 
25894
+ exports.assign = assign;
25865
25895
  exports.freeze = freeze;
25866
25896
  exports.MIME_TYPE = MIME_TYPE;
25867
25897
  exports.NAMESPACE = NAMESPACE;
@@ -27396,9 +27426,10 @@ function needNamespaceDefine(node, isHTML, visibleNamespaces) {
27396
27426
  * are serialized as their entity references, so they will be preserved.
27397
27427
  * (In contrast to whitespace literals in the input which are normalized to spaces)
27398
27428
  * @see https://www.w3.org/TR/xml11/#AVNormalize
27429
+ * @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes
27399
27430
  */
27400
27431
  function addSerializedAttribute(buf, qualifiedName, value) {
27401
- buf.push(' ', qualifiedName, '="', value.replace(/[<&"\t\n\r]/g, _xmlEncoder), '"')
27432
+ buf.push(' ', qualifiedName, '="', value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), '"')
27402
27433
  }
27403
27434
 
27404
27435
  function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){
@@ -27543,10 +27574,10 @@ function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){
27543
27574
  * and does not include the CDATA-section-close delimiter, `]]>`.
27544
27575
  *
27545
27576
  * @see https://www.w3.org/TR/xml/#NT-CharData
27577
+ * @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node
27546
27578
  */
27547
27579
  return buf.push(node.data
27548
- .replace(/[<&]/g,_xmlEncoder)
27549
- .replace(/]]>/g, ']]&gt;')
27580
+ .replace(/[<&>]/g,_xmlEncoder)
27550
27581
  );
27551
27582
  case CDATA_SECTION_NODE:
27552
27583
  return buf.push( '<![CDATA[',node.data,']]>');
@@ -65802,7 +65833,7 @@ function offlineTestID() {
65802
65833
  return (0, rdflib_1.sym)($SolidTestEnvironment.username);
65803
65834
  }
65804
65835
  // hack that makes SolidOS work in offline mode by adding the webId directly in html
65805
- // example usage: https://github.com/solid/mashlib/blob/29b8b53c46bf02e0e219f0bacd51b0e9951001dd/test/contact/local.html#L37
65836
+ // example usage: https://github.com/solidos/mashlib/blob/29b8b53c46bf02e0e219f0bacd51b0e9951001dd/test/contact/local.html#L37
65806
65837
  if (typeof document !== 'undefined' &&
65807
65838
  document.location &&
65808
65839
  ('' + document.location).slice(0, 16) === 'http://localhost') {
@@ -66956,7 +66987,7 @@ var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void
66956
66987
  var omitCreds;
66957
66988
  return __generator(this, function (_a) {
66958
66989
  omitCreds = requestInit && requestInit.credentials && requestInit.credentials == 'omit';
66959
- if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solid/solidos/issues/114
66990
+ if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solidos/solidos/issues/114
66960
66991
  // In fact ftech should respect crentials omit itself
66961
66992
  return [2 /*return*/, authSession_1.authSession.fetch(url, requestInit)];
66962
66993
  }
@@ -67187,7 +67218,7 @@ function ensureLoadedPreferences(context) {
67187
67218
  * Resolves with the same context, outputting
67188
67219
  * output: index.public, index.private
67189
67220
  * @@ This is a very bizare function
67190
- * @see https://github.com/solid/solid/blob/main/proposals/data-discovery.md#discoverability
67221
+ * @see https://github.com/solidos/solid/blob/main/proposals/data-discovery.md#discoverability
67191
67222
  */
67192
67223
  function loadIndex(context, isPublic) {
67193
67224
  return __awaiter(this, void 0, void 0, function () {
@@ -67250,7 +67281,7 @@ function loadTypeIndexes(context) {
67250
67281
  exports.loadTypeIndexes = loadTypeIndexes;
67251
67282
  /**
67252
67283
  * Resolves with the same context, outputting
67253
- * @see https://github.com/solid/solid/blob/main/proposals/data-discovery.md#discoverability
67284
+ * @see https://github.com/solidos/solid/blob/main/proposals/data-discovery.md#discoverability
67254
67285
  */
67255
67286
  function ensureTypeIndexes(context, agent) {
67256
67287
  return __awaiter(this, void 0, void 0, function () {
@@ -67278,7 +67309,7 @@ exports.ensureTypeIndexes = ensureTypeIndexes;
67278
67309
  * Many reasons for failing including script not having permission etc
67279
67310
  *
67280
67311
  * Adds its output to the context
67281
- * @see https://github.com/solid/solid/blob/main/proposals/data-discovery.md#discoverability
67312
+ * @see https://github.com/solidos/solid/blob/main/proposals/data-discovery.md#discoverability
67282
67313
  */
67283
67314
  function ensureOneTypeIndex(context, isPublic, agent) {
67284
67315
  return __awaiter(this, void 0, void 0, function () {
@@ -67431,7 +67462,7 @@ function registerInTypeIndex(context, instance, theClass, isPublic, agent // Def
67431
67462
  index = indexes[0];
67432
67463
  registration = (0, uri_1.newThing)(index);
67433
67464
  ins = [
67434
- // See https://github.com/solid/solid/blob/main/proposals/data-discovery.md
67465
+ // See https://github.com/solidos/solid/blob/main/proposals/data-discovery.md
67435
67466
  (0, rdflib_1.st)(registration, exports.ns.rdf('type'), exports.ns.solid('TypeRegistration'), index),
67436
67467
  (0, rdflib_1.st)(registration, exports.ns.solid('forClass'), theClass, index),
67437
67468
  (0, rdflib_1.st)(registration, exports.ns.solid('instance'), instance, index)
@@ -67535,7 +67566,7 @@ var UtilityLogic = /** @class */ (function () {
67535
67566
  });
67536
67567
  });
67537
67568
  };
67538
- // Copied from https://github.com/solid/web-access-control-tests/blob/v3.0.0/test/surface/delete.test.ts#L5
67569
+ // Copied from https://github.com/solidos/web-access-control-tests/blob/v3.0.0/test/surface/delete.test.ts#L5
67539
67570
  UtilityLogic.prototype.setSinglePeerAccess = function (options) {
67540
67571
  return __awaiter(this, void 0, void 0, function () {
67541
67572
  var str, aclDocUrl;
@@ -67623,7 +67654,7 @@ var UtilityLogic = /** @class */ (function () {
67623
67654
  headers: {
67624
67655
  "Content-Type": "text/turtle",
67625
67656
  "If-None-Match": "*",
67626
- Link: '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"', // See https://github.com/solid/node-solid-server/issues/1465
67657
+ Link: '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"', // See https://github.com/solidos/node-solid-server/issues/1465
67627
67658
  },
67628
67659
  body: " ", // work around https://github.com/michielbdejong/community-server/issues/4#issuecomment-776222863
67629
67660
  })];
@@ -76869,8 +76900,9 @@ class LocalJWKSet {
76869
76900
  }
76870
76901
  async getKey(protectedHeader, token) {
76871
76902
  const { alg, kid } = { ...protectedHeader, ...token.header };
76903
+ const kty = getKtyFromAlg(alg);
76872
76904
  const candidates = this._jwks.keys.filter((jwk) => {
76873
- let candidate = jwk.kty === getKtyFromAlg(alg);
76905
+ let candidate = kty === jwk.kty;
76874
76906
  if (candidate && typeof kid === 'string') {
76875
76907
  candidate = kid === jwk.kid;
76876
76908
  }
@@ -78087,21 +78119,15 @@ function lengthAndInput(input) {
78087
78119
  }
78088
78120
  async function concatKdf(secret, bits, value) {
78089
78121
  const iterations = Math.ceil((bits >> 3) / 32);
78090
- let res;
78091
- for (let iter = 1; iter <= iterations; iter++) {
78122
+ const res = new Uint8Array(iterations * 32);
78123
+ for (let iter = 0; iter < iterations; iter++) {
78092
78124
  const buf = new Uint8Array(4 + secret.length + value.length);
78093
- buf.set(uint32be(iter));
78125
+ buf.set(uint32be(iter + 1));
78094
78126
  buf.set(secret, 4);
78095
78127
  buf.set(value, 4 + secret.length);
78096
- if (!res) {
78097
- res = await (0,_runtime_digest_js__WEBPACK_IMPORTED_MODULE_0__["default"])('sha256', buf);
78098
- }
78099
- else {
78100
- res = concat(res, await (0,_runtime_digest_js__WEBPACK_IMPORTED_MODULE_0__["default"])('sha256', buf));
78101
- }
78128
+ res.set(await (0,_runtime_digest_js__WEBPACK_IMPORTED_MODULE_0__["default"])('sha256', buf), iter * 32);
78102
78129
  }
78103
- res = res.slice(0, bits >> 3);
78104
- return res;
78130
+ return res.slice(0, bits >> 3);
78105
78131
  }
78106
78132
 
78107
78133
 
@@ -79316,9 +79342,12 @@ const encode = (input) => {
79316
79342
  return encodeBase64(input).replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_');
79317
79343
  };
79318
79344
  const decodeBase64 = (encoded) => {
79319
- return new Uint8Array(atob(encoded)
79320
- .split('')
79321
- .map((c) => c.charCodeAt(0)));
79345
+ const binary = atob(encoded);
79346
+ const bytes = new Uint8Array(binary.length);
79347
+ for (let i = 0; i < binary.length; i++) {
79348
+ bytes[i] = binary.charCodeAt(i);
79349
+ }
79350
+ return bytes;
79322
79351
  };
79323
79352
  const decode = (input) => {
79324
79353
  let encoded = input;