@citolab/qti-components 7.0.6-next.0 → 7.0.6-next.1

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 (286) hide show
  1. package/cdn/chunk-2F5323DC.js +8 -0
  2. package/cdn/chunk-2WPNLHGH.js +43 -0
  3. package/cdn/chunk-3M77CJJH.js +8 -0
  4. package/cdn/chunk-4DFVJE2A.js +48 -0
  5. package/cdn/chunk-4HKDXRGE.js +5 -0
  6. package/cdn/chunk-5WCOPF7O.js +73 -0
  7. package/cdn/chunk-D4K2EXYX.js +8 -0
  8. package/cdn/chunk-II7AGB2E.js +11 -0
  9. package/cdn/chunk-KUOLGIA5.js +1 -0
  10. package/cdn/chunk-KXRA4DBZ.js +8 -0
  11. package/cdn/chunk-L4TDHAKL.js +24 -0
  12. package/cdn/chunk-LY27H7YF.js +1 -0
  13. package/cdn/chunk-M6AATWPS.js +59 -0
  14. package/cdn/{chunk-L26FOTPN.js → chunk-MFWSHIPH.js} +1 -1
  15. package/cdn/chunk-NAARXANC.js +11 -0
  16. package/cdn/chunk-OEBYNBRS.js +129 -0
  17. package/cdn/chunk-RBATSYIS.js +43 -0
  18. package/cdn/chunk-RM352RXQ.js +5 -0
  19. package/cdn/{chunk-Y63VPWCG.js → chunk-SQDSHH6N.js} +18 -2
  20. package/cdn/chunk-V2RMP73O.js +1 -0
  21. package/cdn/chunk-WI7KK7NI.js +8 -0
  22. package/cdn/chunk-YHB534QY.js +8 -0
  23. package/cdn/chunk-YXST4IEX.js +5 -0
  24. package/cdn/qti-components/index.js +939 -1
  25. package/cdn/qti-item/core/index.global.js +149 -0
  26. package/cdn/qti-item/core/index.js +5 -0
  27. package/cdn/qti-loader/index.js +1 -1
  28. package/cdn/qti-test/components/index.global.js +1 -36
  29. package/cdn/qti-test/components/index.js +1 -1
  30. package/cdn/qti-test/components/styles.js +1 -1
  31. package/cdn/qti-test/components/test-component.abstract.js +1 -1
  32. package/cdn/qti-test/components/test-item-link.js +1 -1
  33. package/cdn/qti-test/components/test-next.js +1 -1
  34. package/cdn/qti-test/components/test-next.spec.global.js +25 -60
  35. package/cdn/qti-test/components/test-next.spec.js +212 -212
  36. package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
  37. package/cdn/qti-test/components/test-prev.js +1 -1
  38. package/cdn/qti-test/components/test-view.js +1 -1
  39. package/cdn/qti-test/core/index.global.js +205 -0
  40. package/cdn/qti-test/core/index.js +1 -0
  41. package/dist/{chunk-3WLCQQN7.js → chunk-2CHF3TMY.js} +2 -2
  42. package/dist/chunk-2CHF3TMY.js.map +1 -0
  43. package/dist/{chunk-JDHBXMKF.js → chunk-2GKDJDI5.js} +2 -2
  44. package/dist/{chunk-L7MBIXEX.js → chunk-3F3DCHHM.js} +2 -2
  45. package/dist/chunk-4YR7ZPE3.js +72 -0
  46. package/dist/{chunk-R4HSV7U7.js → chunk-E3656TSN.js} +2 -2
  47. package/dist/chunk-E3656TSN.js.map +1 -0
  48. package/dist/{chunk-TXRSYXG3.js → chunk-ERLGA6TC.js} +2 -2
  49. package/dist/{chunk-GTYLWGDG.js → chunk-EXJQ3ZUE.js} +2 -2
  50. package/dist/chunk-KI3A6ZT6.js +50 -0
  51. package/dist/chunk-KI3A6ZT6.js.map +1 -0
  52. package/dist/{chunk-ENVUIH2A.js → chunk-KVFH5VBC.js} +5 -5
  53. package/dist/chunk-KVFH5VBC.js.map +1 -0
  54. package/dist/chunk-LJU3MHXE.js +43 -0
  55. package/dist/chunk-LJU3MHXE.js.map +1 -0
  56. package/dist/chunk-MAC76UNI.js +1 -0
  57. package/dist/chunk-NUXEGEMP.js +65 -0
  58. package/dist/chunk-NUXEGEMP.js.map +1 -0
  59. package/dist/chunk-O3GIZH57.js +121 -0
  60. package/dist/chunk-O3GIZH57.js.map +1 -0
  61. package/dist/chunk-QNR4WQAC.js +568 -0
  62. package/dist/chunk-QNR4WQAC.js.map +1 -0
  63. package/dist/chunk-SLMQZKDH.js +568 -0
  64. package/dist/chunk-SLMQZKDH.js.map +1 -0
  65. package/dist/{chunk-VODOQFTJ.js → chunk-TAQAVEQ2.js} +2 -2
  66. package/dist/chunk-TAQAVEQ2.js.map +1 -0
  67. package/dist/chunk-TLPISJ3Z.js +78 -0
  68. package/dist/chunk-TLPISJ3Z.js.map +1 -0
  69. package/dist/chunk-UDWEOEOS.js +50 -0
  70. package/dist/chunk-UDWEOEOS.js.map +1 -0
  71. package/dist/qti-components/index.d.ts +2 -2
  72. package/dist/qti-components/index.js +6157 -94
  73. package/dist/qti-components/index.js.map +1 -1
  74. package/dist/qti-components-jsx.d.ts +83 -83
  75. package/dist/qti-item/{components/item-container.d.ts → core/index.d.ts} +22 -1
  76. package/dist/{chunk-XNBWN7N2.js → qti-item/core/index.js} +20 -9
  77. package/dist/qti-item/core/index.js.map +1 -0
  78. package/dist/qti-loader/index.d.ts +1 -1
  79. package/dist/qti-loader/index.js +22 -4
  80. package/dist/qti-loader/index.js.map +1 -1
  81. package/dist/{qti-simple-choice-DxWcdKHi.d.ts → qti-simple-choice-DB7hqAMS.d.ts} +1 -1
  82. package/dist/qti-test/components/index.d.ts +2 -4
  83. package/dist/qti-test/components/index.js +10 -17
  84. package/dist/qti-test/components/test-component.abstract.d.ts +2 -3
  85. package/dist/qti-test/components/test-component.abstract.js +2 -3
  86. package/dist/qti-test/components/test-item-link.d.ts +2 -3
  87. package/dist/qti-test/components/test-item-link.js +3 -4
  88. package/dist/qti-test/components/test-next.d.ts +2 -3
  89. package/dist/qti-test/components/test-next.js +3 -4
  90. package/dist/qti-test/components/test-next.spec.d.ts +3 -7
  91. package/dist/qti-test/components/test-next.spec.js +11 -31
  92. package/dist/qti-test/components/test-next.spec.js.map +1 -1
  93. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +2 -3
  94. package/dist/qti-test/components/test-paging-buttons-stamp.js +3 -4
  95. package/dist/qti-test/components/test-prev.d.ts +2 -3
  96. package/dist/qti-test/components/test-prev.js +3 -4
  97. package/dist/qti-test/components/test-view.d.ts +2 -3
  98. package/dist/qti-test/components/test-view.js +3 -4
  99. package/dist/qti-test/core/index.d.ts +121 -0
  100. package/dist/qti-test/core/index.js +25 -0
  101. package/dist/test-component.abstract-DWJ0XNiI.d.ts +108 -0
  102. package/dist/test.context-DKSpQHyg.d.ts +93 -0
  103. package/dist/{test-base-BJwG9Ie8.d.ts → test.context-K2w-1mWi.d.ts} +19 -29
  104. package/dist/vscode.html-custom-data.json +21 -21
  105. package/package.json +70 -74
  106. package/cdn/chunk-25BMUTLC.js +0 -1
  107. package/cdn/chunk-3DWLPGTE.js +0 -1
  108. package/cdn/chunk-7BKWTY4S.js +0 -1
  109. package/cdn/chunk-7CQ4ETXL.js +0 -1
  110. package/cdn/chunk-7ENNZNJ4.js +0 -1
  111. package/cdn/chunk-7LGM2TQA.js +0 -1
  112. package/cdn/chunk-DLMFCDQX.js +0 -1
  113. package/cdn/chunk-DPR6SGCZ.js +0 -1
  114. package/cdn/chunk-EQGXFSYL.js +0 -8
  115. package/cdn/chunk-F5VW77RE.js +0 -1
  116. package/cdn/chunk-FNVXN5CO.js +0 -1
  117. package/cdn/chunk-GB7DLBFM.js +0 -0
  118. package/cdn/chunk-GBB54IPA.js +0 -8
  119. package/cdn/chunk-H4A34YRT.js +0 -0
  120. package/cdn/chunk-ITXNNGVQ.js +0 -0
  121. package/cdn/chunk-IV7UP34N.js +0 -5
  122. package/cdn/chunk-IZZ36JQV.js +0 -0
  123. package/cdn/chunk-JNT54FPI.js +0 -1
  124. package/cdn/chunk-JS4S7ZI7.js +0 -1
  125. package/cdn/chunk-LA7TBIPQ.js +0 -0
  126. package/cdn/chunk-POT65ZY7.js +0 -1
  127. package/cdn/chunk-Q7PVZA43.js +0 -5
  128. package/cdn/chunk-QJPHXAUE.js +0 -1
  129. package/cdn/chunk-QP57JHGY.js +0 -11
  130. package/cdn/chunk-RB6CONZW.js +0 -3
  131. package/cdn/chunk-RSRX5JYB.js +0 -1
  132. package/cdn/chunk-TG6AE3DB.js +0 -0
  133. package/cdn/chunk-V6YPUNZC.js +0 -0
  134. package/cdn/chunk-W7X6GNEX.js +0 -902
  135. package/cdn/chunk-ZEX7TYC7.js +0 -8
  136. package/cdn/index.global.js +0 -277
  137. package/cdn/index.js +0 -1
  138. package/cdn/qti-item/components/index.global.js +0 -149
  139. package/cdn/qti-item/components/index.js +0 -1
  140. package/cdn/qti-item/components/item-container.global.js +0 -149
  141. package/cdn/qti-item/components/item-container.js +0 -1
  142. package/cdn/qti-item/index.global.js +0 -149
  143. package/cdn/qti-item/index.js +0 -1
  144. package/cdn/qti-item/qti-item.global.js +0 -114
  145. package/cdn/qti-item/qti-item.js +0 -1
  146. package/cdn/qti-test/components/test-container.global.js +0 -149
  147. package/cdn/qti-test/components/test-container.js +0 -1
  148. package/cdn/qti-test/context/index.global.js +0 -58
  149. package/cdn/qti-test/context/index.js +0 -1
  150. package/cdn/qti-test/context/test.context.global.js +0 -58
  151. package/cdn/qti-test/context/test.context.js +0 -1
  152. package/cdn/qti-test/index.global.js +0 -242
  153. package/cdn/qti-test/index.js +0 -1
  154. package/cdn/qti-test/mixins/index.global.js +0 -1
  155. package/cdn/qti-test/mixins/index.js +0 -1
  156. package/cdn/qti-test/mixins/test-loader.mixin.global.js +0 -1
  157. package/cdn/qti-test/mixins/test-loader.mixin.js +0 -1
  158. package/cdn/qti-test/mixins/test-navigation.mixin.global.js +0 -1
  159. package/cdn/qti-test/mixins/test-navigation.mixin.js +0 -1
  160. package/cdn/qti-test/mixins/test-view.mixin.global.js +0 -1
  161. package/cdn/qti-test/mixins/test-view.mixin.js +0 -1
  162. package/cdn/qti-test/qti-assessment-test/index.global.js +0 -170
  163. package/cdn/qti-test/qti-assessment-test/index.js +0 -1
  164. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +0 -170
  165. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +0 -1
  166. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +0 -170
  167. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +0 -1
  168. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +0 -170
  169. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +0 -1
  170. package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +0 -114
  171. package/cdn/qti-test/qti-assessment-test/qti-test-part.js +0 -1
  172. package/cdn/qti-test/qti-test.global.js +0 -170
  173. package/cdn/qti-test/qti-test.js +0 -1
  174. package/cdn/qti-test/test-base.global.js +0 -170
  175. package/cdn/qti-test/test-base.js +0 -1
  176. package/dist/chunk-37X6KZO3.js +0 -1
  177. package/dist/chunk-3WLCQQN7.js.map +0 -1
  178. package/dist/chunk-3YVIK6LO.js +0 -1
  179. package/dist/chunk-3YVIK6LO.js.map +0 -1
  180. package/dist/chunk-7A6KCSAU.js +0 -44
  181. package/dist/chunk-7A6KCSAU.js.map +0 -1
  182. package/dist/chunk-ENVUIH2A.js.map +0 -1
  183. package/dist/chunk-ENZVY5X6.js +0 -20
  184. package/dist/chunk-ENZVY5X6.js.map +0 -1
  185. package/dist/chunk-EUCEENQQ.js +0 -6253
  186. package/dist/chunk-EUCEENQQ.js.map +0 -1
  187. package/dist/chunk-FNFNAV3G.js +0 -56
  188. package/dist/chunk-FNFNAV3G.js.map +0 -1
  189. package/dist/chunk-GSFDTSLL.js +0 -1
  190. package/dist/chunk-GSFDTSLL.js.map +0 -1
  191. package/dist/chunk-IAFQ5ZPI.js +0 -29
  192. package/dist/chunk-IAFQ5ZPI.js.map +0 -1
  193. package/dist/chunk-LYFMLDNV.js +0 -1
  194. package/dist/chunk-LYFMLDNV.js.map +0 -1
  195. package/dist/chunk-NNPTSZGC.js +0 -1
  196. package/dist/chunk-NNPTSZGC.js.map +0 -1
  197. package/dist/chunk-NQM35JUI.js +0 -1
  198. package/dist/chunk-NQM35JUI.js.map +0 -1
  199. package/dist/chunk-ODUHPWTX.js +0 -65
  200. package/dist/chunk-ODUHPWTX.js.map +0 -1
  201. package/dist/chunk-OGHHCP23.js +0 -36
  202. package/dist/chunk-OGHHCP23.js.map +0 -1
  203. package/dist/chunk-OQZW2B47.js +0 -75
  204. package/dist/chunk-OQZW2B47.js.map +0 -1
  205. package/dist/chunk-OXDOQVRL.js +0 -63
  206. package/dist/chunk-OXDOQVRL.js.map +0 -1
  207. package/dist/chunk-PBSMP6VF.js +0 -128
  208. package/dist/chunk-PBSMP6VF.js.map +0 -1
  209. package/dist/chunk-Q7OPFS4A.js +0 -1
  210. package/dist/chunk-Q7OPFS4A.js.map +0 -1
  211. package/dist/chunk-R4HSV7U7.js.map +0 -1
  212. package/dist/chunk-U3RLYKL5.js +0 -51
  213. package/dist/chunk-U3RLYKL5.js.map +0 -1
  214. package/dist/chunk-VW7VIQBE.js +0 -34
  215. package/dist/chunk-VW7VIQBE.js.map +0 -1
  216. package/dist/chunk-X4ZBUCOD.js +0 -94
  217. package/dist/chunk-X4ZBUCOD.js.map +0 -1
  218. package/dist/chunk-XFHB6KQW.js +0 -1
  219. package/dist/chunk-XFHB6KQW.js.map +0 -1
  220. package/dist/chunk-XNBWN7N2.js.map +0 -1
  221. package/dist/index.d.ts +0 -19
  222. package/dist/index.js +0 -278
  223. package/dist/qti-item/components/index.d.ts +0 -3
  224. package/dist/qti-item/components/index.js +0 -12
  225. package/dist/qti-item/components/index.js.map +0 -1
  226. package/dist/qti-item/components/item-container.js +0 -11
  227. package/dist/qti-item/components/item-container.js.map +0 -1
  228. package/dist/qti-item/index.d.ts +0 -4
  229. package/dist/qti-item/index.js +0 -17
  230. package/dist/qti-item/index.js.map +0 -1
  231. package/dist/qti-item/qti-item.d.ts +0 -25
  232. package/dist/qti-item/qti-item.js +0 -8
  233. package/dist/qti-item/qti-item.js.map +0 -1
  234. package/dist/qti-test/components/test-container.d.ts +0 -37
  235. package/dist/qti-test/components/test-container.js +0 -11
  236. package/dist/qti-test/components/test-container.js.map +0 -1
  237. package/dist/qti-test/context/index.d.ts +0 -6
  238. package/dist/qti-test/context/index.js +0 -11
  239. package/dist/qti-test/context/index.js.map +0 -1
  240. package/dist/qti-test/context/test.context.d.ts +0 -6
  241. package/dist/qti-test/context/test.context.js +0 -10
  242. package/dist/qti-test/context/test.context.js.map +0 -1
  243. package/dist/qti-test/index.d.ts +0 -14
  244. package/dist/qti-test/index.js +0 -72
  245. package/dist/qti-test/index.js.map +0 -1
  246. package/dist/qti-test/mixins/index.d.ts +0 -8
  247. package/dist/qti-test/mixins/index.js +0 -18
  248. package/dist/qti-test/mixins/index.js.map +0 -1
  249. package/dist/qti-test/mixins/test-loader.mixin.d.ts +0 -8
  250. package/dist/qti-test/mixins/test-loader.mixin.js +0 -9
  251. package/dist/qti-test/mixins/test-loader.mixin.js.map +0 -1
  252. package/dist/qti-test/mixins/test-navigation.mixin.d.ts +0 -22
  253. package/dist/qti-test/mixins/test-navigation.mixin.js +0 -8
  254. package/dist/qti-test/mixins/test-navigation.mixin.js.map +0 -1
  255. package/dist/qti-test/mixins/test-view.mixin.d.ts +0 -6
  256. package/dist/qti-test/mixins/test-view.mixin.js +0 -8
  257. package/dist/qti-test/mixins/test-view.mixin.js.map +0 -1
  258. package/dist/qti-test/qti-assessment-test/index.d.ts +0 -6
  259. package/dist/qti-test/qti-assessment-test/index.js +0 -23
  260. package/dist/qti-test/qti-assessment-test/index.js.map +0 -1
  261. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +0 -6
  262. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +0 -10
  263. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +0 -1
  264. package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +0 -6
  265. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +0 -10
  266. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +0 -1
  267. package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +0 -6
  268. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +0 -10
  269. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +0 -1
  270. package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +0 -19
  271. package/dist/qti-test/qti-assessment-test/qti-test-part.js +0 -8
  272. package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +0 -1
  273. package/dist/qti-test/qti-test.d.ts +0 -68
  274. package/dist/qti-test/qti-test.js +0 -16
  275. package/dist/qti-test/qti-test.js.map +0 -1
  276. package/dist/qti-test/test-base.d.ts +0 -6
  277. package/dist/qti-test/test-base.js +0 -10
  278. package/dist/qti-test/test-base.js.map +0 -1
  279. /package/cdn/{chunk-CYJMNT76.js → chunk-22HAPLRD.js} +0 -0
  280. /package/dist/{chunk-JDHBXMKF.js.map → chunk-2GKDJDI5.js.map} +0 -0
  281. /package/dist/{chunk-L7MBIXEX.js.map → chunk-3F3DCHHM.js.map} +0 -0
  282. /package/dist/{chunk-VODOQFTJ.js.map → chunk-4YR7ZPE3.js.map} +0 -0
  283. /package/dist/{chunk-TXRSYXG3.js.map → chunk-ERLGA6TC.js.map} +0 -0
  284. /package/dist/{chunk-GTYLWGDG.js.map → chunk-EXJQ3ZUE.js.map} +0 -0
  285. /package/dist/{chunk-37X6KZO3.js.map → chunk-MAC76UNI.js.map} +0 -0
  286. /package/dist/{index.js.map → qti-test/core/index.js.map} +0 -0
@@ -0,0 +1,8 @@
1
+ import{b as m,c as a}from"./chunk-MFWSHIPH.js";import{a as l}from"./chunk-KUOLGIA5.js";import{a as i,b as o}from"./chunk-5WCOPF7O.js";import{a as s,d as r}from"./chunk-4DFVJE2A.js";import{e}from"./chunk-VI2WKTN4.js";var t=class extends l{constructor(){super();this.itemId=null;this.addEventListener("click",()=>this._requestItem(this.itemId))}render(){return r` <slot></slot> `}};t.styles=s`
2
+ :host {
3
+ ${m};
4
+ }
5
+ :host([disabled]) {
6
+ ${a};
7
+ }
8
+ `,e([o({type:String,attribute:"item-id"})],t.prototype,"itemId",2),t=e([i("test-item-link")],t);export{t as a};
@@ -0,0 +1,43 @@
1
+ import{a as B}from"./chunk-KUOLGIA5.js";import{a as Y,b as L}from"./chunk-5WCOPF7O.js";import{d as W,f as H,g as V,h as m}from"./chunk-4DFVJE2A.js";import{e as A,f as x}from"./chunk-VI2WKTN4.js";var b=["this"],j=["+","-","!"],X=["=","+","-","*","/","%","^","==","!=",">","<",">=","<=","||","&&","??","&","===","!==","|","|>"],G={"!":0,":":0,",":0,")":0,"]":0,"}":0,"|>":1,"?":2,"??":3,"||":4,"&&":5,"|":6,"^":7,"&":8,"!=":9,"==":9,"!==":9,"===":9,">=":10,">":10,"<=":10,"<":10,"+":11,"-":11,"%":12,"/":12,"*":12,"(":13,"[":13,".":13,"{":13},C=13;var ne=["==","!=","<=",">=","||","&&","??","|>"],se=["===","!=="],i;(function(t){t[t.STRING=1]="STRING",t[t.IDENTIFIER=2]="IDENTIFIER",t[t.DOT=3]="DOT",t[t.COMMA=4]="COMMA",t[t.COLON=5]="COLON",t[t.INTEGER=6]="INTEGER",t[t.DECIMAL=7]="DECIMAL",t[t.OPERATOR=8]="OPERATOR",t[t.GROUPER=9]="GROUPER",t[t.KEYWORD=10]="KEYWORD",t[t.ARROW=11]="ARROW"})(i||(i={}));var g=(t,e,r=0)=>({kind:t,value:e,precedence:r}),ie=t=>t===9||t===10||t===13||t===32,q=t=>t===95||t===36||(t&=-33,65<=t&&t<=90),ae=t=>q(t)||R(t),oe=t=>b.indexOf(t)!==-1,ue=t=>t===34||t===39,R=t=>48<=t&&t<=57,he=t=>t===43||t===45||t===42||t===47||t===33||t===38||t===37||t===60||t===61||t===62||t===63||t===94||t===124,ce=t=>t===40||t===41||t===91||t===93||t===123||t===125,le=t=>t.replace(/\\(.)/g,(e,r)=>{switch(r){case"n":return`
2
+ `;case"r":return"\r";case"t":return" ";case"b":return"\b";case"f":return"\f";default:return r}}),N=class{constructor(e){x(this,"_input");x(this,"_index",-1);x(this,"_tokenStart",0);x(this,"_next");this._input=e,this._advance()}nextToken(){for(;ie(this._next);)this._advance(!0);if(ue(this._next))return this._tokenizeString();if(q(this._next))return this._tokenizeIdentOrKeyword();if(R(this._next))return this._tokenizeNumber();if(this._next===46)return this._tokenizeDot();if(this._next===44)return this._tokenizeComma();if(this._next===58)return this._tokenizeColon();if(he(this._next))return this._tokenizeOperator();if(ce(this._next))return this._tokenizeGrouper();if(this._advance(),this._next!==void 0)throw new Error(`Expected end of input, got ${this._next}`)}_advance(e){this._index++,this._index<this._input.length?(this._next=this._input.charCodeAt(this._index),e===!0&&(this._tokenStart=this._index)):this._next=void 0}_getValue(e=0){let r=this._input.substring(this._tokenStart,this._index+e);return e===0&&this._clearValue(),r}_clearValue(){this._tokenStart=this._index}_tokenizeString(){let e="unterminated string",r=this._next;for(this._advance(!0);this._next!==r;){if(this._next===void 0)throw new Error(e);if(this._next===92&&(this._advance(),this._next===void 0))throw new Error(e);this._advance()}let n=g(i.STRING,le(this._getValue()));return this._advance(),n}_tokenizeIdentOrKeyword(){do this._advance();while(ae(this._next));let e=this._getValue(),r=oe(e)?i.KEYWORD:i.IDENTIFIER;return g(r,e)}_tokenizeNumber(){do this._advance();while(R(this._next));return this._next===46?this._tokenizeDot():g(i.INTEGER,this._getValue())}_tokenizeDot(){return this._advance(),R(this._next)?this._tokenizeFraction():(this._clearValue(),g(i.DOT,".",C))}_tokenizeComma(){return this._advance(!0),g(i.COMMA,",")}_tokenizeColon(){return this._advance(!0),g(i.COLON,":")}_tokenizeFraction(){do this._advance();while(R(this._next));return g(i.DECIMAL,this._getValue())}_tokenizeOperator(){this._advance();let e=this._getValue(2);if(se.indexOf(e)!==-1)this._advance(),this._advance();else{if(e=this._getValue(1),e==="=>")return this._advance(),g(i.ARROW,e);ne.indexOf(e)!==-1&&this._advance()}return e=this._getValue(),g(i.OPERATOR,e,G[e])}_tokenizeGrouper(){let e=String.fromCharCode(this._next),r=g(i.GROUPER,e,G[e]);return this._advance(!0),r}};var $=(t,e)=>new k(t,e).parse(),k=class{constructor(e,r){x(this,"_kind");x(this,"_tokenizer");x(this,"_ast");x(this,"_token");x(this,"_value");this._tokenizer=new N(e),this._ast=r}parse(){return this._advance(),this._parseExpression()}_advance(e,r){if(!this._matches(e,r))throw new Error(`Expected kind ${e} (${r}), was ${this._token?.kind} (${this._token?.value})`);let n=this._tokenizer.nextToken();this._token=n,this._kind=n?.kind,this._value=n?.value}_matches(e,r){return!(e&&this._kind!==e||r&&this._value!==r)}_parseExpression(){if(!this._token)return this._ast.empty();let e=this._parseUnary();return e===void 0?void 0:this._parsePrecedence(e,0)}_parsePrecedence(e,r){if(e===void 0)throw new Error("Expected left to be defined.");for(;this._token;)if(this._matches(i.GROUPER,"(")){let n=this._parseArguments();e=this._ast.invoke(e,void 0,n)}else if(this._matches(i.GROUPER,"[")){let n=this._parseIndex();e=this._ast.index(e,n)}else if(this._matches(i.DOT)){this._advance();let n=this._parseUnary();e=this._makeInvokeOrGetter(e,n)}else{if(this._matches(i.KEYWORD))break;if(this._matches(i.OPERATOR)&&this._token.precedence>=r)e=this._value==="?"?this._parseTernary(e):this._parseBinary(e,this._token);else break}return e}_makeInvokeOrGetter(e,r){if(r===void 0)throw new Error("expected identifier");if(r.type==="ID")return this._ast.getter(e,r.value);if(r.type==="Invoke"&&r.receiver.type==="ID"){let n=r.receiver;return this._ast.invoke(e,n.value,r.arguments)}else throw new Error(`expected identifier: ${r}`)}_parseBinary(e,r){if(X.indexOf(r.value)===-1)throw new Error(`unknown operator: ${r.value}`);this._advance();let n=this._parseUnary();for(;(this._kind===i.OPERATOR||this._kind===i.DOT||this._kind===i.GROUPER)&&this._token.precedence>r.precedence;)n=this._parsePrecedence(n,this._token.precedence);return this._ast.binary(e,r.value,n)}_parseUnary(){if(this._matches(i.OPERATOR)){let e=this._value;if(this._advance(),e==="+"||e==="-"){if(this._matches(i.INTEGER))return this._parseInteger(e);if(this._matches(i.DECIMAL))return this._parseDecimal(e)}if(j.indexOf(e)===-1)throw new Error(`unexpected token: ${e}`);let r=this._parsePrecedence(this._parsePrimary(),C);return this._ast.unary(e,r)}return this._parsePrimary()}_parseTernary(e){this._advance(i.OPERATOR,"?");let r=this._parseExpression();this._advance(i.COLON);let n=this._parseExpression();return this._ast.ternary(e,r,n)}_parsePrimary(){switch(this._kind){case i.KEYWORD:let e=this._value;if(e==="this")return this._advance(),this._ast.id(e);throw b.indexOf(e)!==-1?new Error(`unexpected keyword: ${e}`):new Error(`unrecognized keyword: ${e}`);case i.IDENTIFIER:return this._parseInvokeOrIdentifier();case i.STRING:return this._parseString();case i.INTEGER:return this._parseInteger();case i.DECIMAL:return this._parseDecimal();case i.GROUPER:return this._value==="("?this._parseParenOrFunction():this._value==="{"?this._parseMap():this._value==="["?this._parseList():void 0;case i.COLON:throw new Error('unexpected token ":"');default:return}}_parseList(){let e=[];do{if(this._advance(),this._matches(i.GROUPER,"]"))break;e.push(this._parseExpression())}while(this._matches(i.COMMA));return this._advance(i.GROUPER,"]"),this._ast.list(e)}_parseMap(){let e={};do{if(this._advance(),this._matches(i.GROUPER,"}"))break;let r=this._value;(this._matches(i.STRING)||this._matches(i.IDENTIFIER))&&this._advance(),this._advance(i.COLON),e[r]=this._parseExpression()}while(this._matches(i.COMMA));return this._advance(i.GROUPER,"}"),this._ast.map(e)}_parseInvokeOrIdentifier(){let e=this._value;if(e==="true")return this._advance(),this._ast.literal(!0);if(e==="false")return this._advance(),this._ast.literal(!1);if(e==="null")return this._advance(),this._ast.literal(null);if(e==="undefined")return this._advance(),this._ast.literal(void 0);let r=this._parseIdentifier(),n=this._parseArguments();return n?this._ast.invoke(r,void 0,n):r}_parseIdentifier(){if(!this._matches(i.IDENTIFIER))throw new Error(`expected identifier: ${this._value}`);let e=this._value;return this._advance(),this._ast.id(e)}_parseArguments(){if(!this._matches(i.GROUPER,"("))return;let e=[];do{if(this._advance(),this._matches(i.GROUPER,")"))break;let r=this._parseExpression();e.push(r)}while(this._matches(i.COMMA));return this._advance(i.GROUPER,")"),e}_parseIndex(){this._advance();let e=this._parseExpression();return this._advance(i.GROUPER,"]"),e}_parseParenOrFunction(){let e=this._parseArguments();if(this._matches(i.ARROW)){this._advance();let r=this._parseExpression(),n=e?.map(s=>s.value)??[];return this._ast.arrowFunction(n,r)}else return this._ast.paren(e[0])}_parseString(){let e=this._ast.literal(this._value);return this._advance(),e}_parseInteger(e=""){let r=this._ast.literal(parseInt(`${e}${this._value}`,10));return this._advance(),r}_parseDecimal(e=""){let r=this._ast.literal(parseFloat(`${e}${this._value}`));return this._advance(),r}};var pe={"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,">":(t,e)=>t>e,">=":(t,e)=>t>=e,"<":(t,e)=>t<e,"<=":(t,e)=>t<=e,"||":(t,e)=>t||e,"&&":(t,e)=>t&&e,"??":(t,e)=>t??e,"|":(t,e)=>e(t),"|>":(t,e)=>e(t)},_e={"+":t=>t,"-":t=>-t,"!":t=>!t},P=class{empty(){return{type:"Empty",evaluate(e){return e},getIds(e){return e}}}literal(e){return{type:"Literal",value:e,evaluate(r){return this.value},getIds(r){return r}}}id(e){return{type:"ID",value:e,evaluate(r){return this.value==="this"?r:r?.[this.value]},getIds(r){return r.push(this.value),r}}}unary(e,r){let n=_e[e];return{type:"Unary",operator:e,child:r,evaluate(s){return n(this.child.evaluate(s))},getIds(s){return this.child.getIds(s)}}}binary(e,r,n){let s=pe[r];return{type:"Binary",operator:r,left:e,right:n,evaluate(o){if(this.operator==="="){if(this.left.type!=="ID"&&this.left.type!=="Getter"&&this.left.type!=="Index")throw new Error(`Invalid assignment target: ${this.left}`);let a=this.right.evaluate(o),u,h;return this.left.type==="Getter"?(u=this.left.receiver.evaluate(o),h=this.left.name):this.left.type==="Index"?(u=this.left.receiver.evaluate(o),h=this.left.argument.evaluate(o)):this.left.type==="ID"&&(u=o,h=this.left.value),u===void 0?void 0:u[h]=a}return s(this.left.evaluate(o),this.right.evaluate(o))},getIds(o){return this.left.getIds(o),this.right.getIds(o),o}}}getter(e,r){return{type:"Getter",receiver:e,name:r,evaluate(n){return this.receiver.evaluate(n)?.[this.name]},getIds(n){return this.receiver.getIds(n),n}}}invoke(e,r,n){if(r!=null&&typeof r!="string")throw new Error("method not a string");return{type:"Invoke",receiver:e,method:r,arguments:n,evaluate(s){let o=this.receiver.evaluate(s),a=this.method?o:s?.this??s,u=this.method?o?.[r]:o,l=(this.arguments??[]).map(c=>c?.evaluate(s));return u?.apply?.(a,l)},getIds(s){return this.receiver.getIds(s),this.arguments?.forEach(o=>o?.getIds(s)),s}}}paren(e){return e}index(e,r){return{type:"Index",receiver:e,argument:r,evaluate(n){return this.receiver.evaluate(n)?.[this.argument.evaluate(n)]},getIds(n){return this.receiver.getIds(n),n}}}ternary(e,r,n){return{type:"Ternary",condition:e,trueExpr:r,falseExpr:n,evaluate(s){return this.condition.evaluate(s)?this.trueExpr.evaluate(s):this.falseExpr.evaluate(s)},getIds(s){return this.condition.getIds(s),this.trueExpr.getIds(s),this.falseExpr.getIds(s),s}}}map(e){return{type:"Map",entries:e,evaluate(r){let n={};if(e&&this.entries)for(let s in e){let o=this.entries[s];o&&(n[s]=o.evaluate(r))}return n},getIds(r){if(e&&this.entries)for(let n in e){let s=this.entries[n];s&&s.getIds(r)}return r}}}list(e){return{type:"List",items:e,evaluate(r){return this.items?.map(n=>n?.evaluate(r))},getIds(r){return this.items?.forEach(n=>n?.getIds(r)),r}}}arrowFunction(e,r){return{type:"ArrowFunction",params:e,body:r,evaluate(n){let s=this.params,o=this.body;return function(...a){let u=Object.fromEntries(s.map((l,c)=>[l,a[c]])),h=new Proxy(n??{},{set(l,c,p){return u.hasOwnProperty(c)&&(u[c]=p),l[c]=p},get(l,c){return u.hasOwnProperty(c)?u[c]:l[c]}});return o.evaluate(h)}},getIds(n){return this.body.getIds(n).filter(s=>!this.params.includes(s))}}}};var U=null,Q={boundAttributeSuffix:m.M,marker:m.P,markerMatch:m.A,HTML_RESULT:m.C,getTemplateHtml:m.L,overrideDirectiveResolve:(t,e)=>class extends t{_$AS(r,n){return e(this,n)}},patchDirectiveResolve:(t,e)=>{if(t.prototype._$AS!==e){U??(U=t.prototype._$AS.name);for(let r=t.prototype;r!==Object.prototype;r=Object.getPrototypeOf(r))if(r.hasOwnProperty(U))return void(r[U]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(t,e){t._$litDirective$=e},getAttributePartCommittedValue:(t,e,r)=>{let n=H;return t.j=s=>n=s,t._$AI(e,t,r),n},connectedDisconnectable:t=>({...t,_$AU:!0}),resolveDirective:m.V,AttributePart:m.H,PropertyPart:m.B,BooleanAttributePart:m.N,EventPart:m.U,ElementPart:m.F,TemplateInstance:m.R,isIterable:m.D,ChildPart:m.I};var{AttributePart:de,PropertyPart:fe,BooleanAttributePart:me,EventPart:ve}=Q,F=new P,z=new Map,J=t=>t.replace(/-(-|\w)/g,(e,r)=>r.toUpperCase()),D=(t,e)=>{let r=z.get(t);if(r===void 0){if(z.has(t))return;if(t=t.trim(),t.startsWith("{{")&&t.endsWith("}}")){let n=t.substring(2,t.length-2).trim();r=new k(n,F).parse(),z.set(t,r)}}return r?.evaluate(e)},Ee=(t,e,r,n)=>{let s=t.getAttribute("if");if(s!==null&&D(s,e))return S(t,e,r,n)},Z=/(?<!\\){{(.*?)(?:(?<!\\)}})/g,K=t=>/(?:\\{{)|(?:\\}})/g.test(t),T=t=>t.replaceAll(/\\{{/g,"{{").replace(/\\}}/g,"}}"),xe=(t,e,r,n)=>{let s=t.getAttribute("repeat");if(s!==null){let o=D(s,e);if(!o[Symbol.iterator])return V;let a=w(t),u=-1,h=[];for(let l of o){u++;let c=Object.create(e);c.item=l,c.index=u,c.this=e.this??e;let p=[];for(let f of a.parts){let d=f.update(c,r,n);f.type===1?p.push(...d):p.push(d)}let _={_$litType$:a,values:p};h.push(_)}return h}},te={if:Ee,repeat:xe},re=(t,e=te,r={},n)=>{let o=w(t).renderers;if(n){let u=w(n).renderers,h=o.super;h!==void 0?r={...o,...r,super:(l,c,p)=>(p={...u,...p,super:(_,f,d)=>S(n,_,f,d)},h(l,c,p))}:(r={...u,...o,...r},t=n)}else r={...o,...r};return a=>S(t,a,e,r)};var S=(t,e,r=te,n={})=>{let s=w(t),o=[];for(let u of s.parts){let h=u.update(e,r,n);u.type===1?o.push(...h):o.push(h)}return{_$litType$:s,values:o}},ee=new Map,w=t=>{let e=ee.get(t);return e===void 0&&ee.set(t,e=ge(t)),e},ge=t=>{let e={h:void 0,el:t.cloneNode(!0),parts:[],renderers:{}},r=document.createTreeWalker(e.el.content,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT|NodeFilter.SHOW_COMMENT),n=r.currentNode,s=-1,o=[];for(;(n=r.nextNode())!==null;)if(n.nodeType===Node.ELEMENT_NODE){s++;let a=n;if(a.tagName==="TEMPLATE"){let h=a.getAttribute("type"),l=a.getAttribute("name"),c=a.getAttribute("call");if(c!==null||h!==null||l!==null){a.parentNode.insertBefore(document.createComment(""),a),o.push(a);let p;if(c!==null){let _=c.trim(),f=_.startsWith("{{")&&_.endsWith("}}");p=(d,E,v)=>{let y=a.getAttribute("data"),M=y===null?void 0:D(y,d);return(f?D(_,d):v[c])?.(M,E,v)}}else h!==null?p=(_,f,d)=>{let E=f[h];return E?.(a,_,f,d)}:(l==="super"?e.renderers.super=(_,f,d)=>{let E=d.super,v=w(a);return d={...d,...v.renderers},E(_,f,d)}:e.renderers[l]=(_,f,d)=>S(a,_,f,d),p=(_,f,d)=>{let E=d[l];return E?.(_,f,d)});e.parts.push({type:2,index:s,update:p});continue}}let u=a.getAttributeNames();for(let h of u){let l=a.getAttribute(h),c=l.split(Z);if(c.length===1){K(l)&&a.setAttribute(h,T(l));continue}a.removeAttribute(h);let p=h,_=de,f=h[0];f==="."?(p=J(h.substring(1)),_=fe):f==="?"?(p=h.substring(1),_=me):f==="@"&&(p=J(h.substring(1)),_=ve);let d=[T(c[0])],E=[];for(let v=1;v<c.length;v+=2){let y=c[v];E.push($(y,F)),d.push(T(c[v+1]))}e.parts.push({type:1,index:s,name:p,strings:d,ctor:_,update:(v,y,M)=>E.map(I=>I.evaluate(v))})}}else if(n.nodeType===Node.TEXT_NODE){let a=n,u=a.textContent,h=u.split(Z);h.length>1?a.textContent=T(h[0]):K(u)&&(a.textContent=T(u));for(let l=1;l<h.length;l+=2){let c=h[l],p=$(c,F);e.parts.push({type:2,index:++s,update:(f,d)=>p.evaluate(f)});let _=new Text(h[l+1].replace("\\{{","{{"));a.parentNode.insertBefore(_,a.nextSibling),a.parentNode.insertBefore(document.createComment(""),a.nextSibling),a=_,r.currentNode=_}}for(let a of o)a.remove();return e};var O=class extends B{constructor(){super();this.maxDisplayedItems=2;this.skipOnCategory="dep-informational";this._internals.ariaLabel="pagination"}createRenderRoot(){return this}render(){let r=this._testContext.items.reduce((u,h)=>{let c=h.category?.split(" ").includes(this.skipOnCategory)?"i":u.counter++;return u.result.push({...h,newIndex:c}),u},{counter:0,result:[]}).result,n=r.findIndex(u=>u.identifier===this._testContext.navItemId),s=Math.max(0,n-this.maxDisplayedItems),o=Math.min(r.length,n+this.maxDisplayedItems+1),a=r.slice(s,o);return W`
3
+ ${a.map(u=>{let h=u.variables.find(I=>I.identifier=="SCORE"),l=parseInt(h?.value?.toString()),c=u.variables.find(I=>I.identifier==="completionStatus")?.value,p=u.category!==this.skipOnCategory?"regular":"info",_=this._testContext.navItemId===u.identifier,f=this._testContext.view==="scorer"&&p=="regular"&&l!==void 0&&!isNaN(l)&&l>0,d=this._testContext.view==="scorer"&&p=="regular"&&l!==void 0&&!isNaN(l)&&l<=0,E=this._testContext.view==="candidate"&&c==="completed"&&u.category!==this.skipOnCategory,v={...u,type:p,active:_,correct:f,incorrect:d,answered:E},y=this.firstElementChild;return re(y)({item:v})})}
4
+ `}};A([L({type:Number,attribute:"max-displayed-items"})],O.prototype,"maxDisplayedItems",2),A([L({type:String,attribute:"skip-on-category"})],O.prototype,"skipOnCategory",2),O=A([Y("test-paging-buttons-stamp")],O);export{O as a};
5
+ /*! Bundled license information:
6
+
7
+ jexpr/lib/constants.js:
8
+ (*
9
+ * @license
10
+ * Portions Copyright (c) 2013, the Dart project authors.
11
+ *)
12
+
13
+ jexpr/lib/tokenizer.js:
14
+ (*
15
+ * @license
16
+ * Portions Copyright (c) 2013, the Dart project authors.
17
+ *)
18
+
19
+ jexpr/lib/parser.js:
20
+ (*
21
+ * @license
22
+ * Portions Copyright (c) 2013, the Dart project authors.
23
+ *)
24
+
25
+ jexpr/lib/ast_factory.js:
26
+ (*
27
+ * @license
28
+ * Portions Copyright (c) 2013, the Dart project authors.
29
+ *)
30
+
31
+ jexpr/lib/eval.js:
32
+ (*
33
+ * @license
34
+ * Portions Copyright (c) 2013, the Dart project authors.
35
+ *)
36
+
37
+ lit-html/node/private-ssr-support.js:
38
+ (**
39
+ * @license
40
+ * Copyright 2019 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ *)
43
+ */
@@ -0,0 +1,8 @@
1
+ import{b as m,c as o}from"./chunk-MFWSHIPH.js";import{a as r}from"./chunk-KUOLGIA5.js";import{a as l}from"./chunk-5WCOPF7O.js";import{a as i,d as n}from"./chunk-4DFVJE2A.js";import{e as s}from"./chunk-VI2WKTN4.js";var t=class extends r{constructor(){super(),this._internals.role="button",this._internals.ariaLabel="Next item",this.addEventListener("click",e=>{e.preventDefault(),this.disabled||this._requestItem(this.items[this.itemIndex+1].identifier)})}willUpdate(e){super.willUpdate(e),e.has("_testContext")&&(this.disabled=!this._testElement?.el||this.itemIndex<0||this.itemIndex>=this.items.length-1)}render(){return n`<slot></slot>`}};t.styles=i`
2
+ :host {
3
+ ${m};
4
+ }
5
+ :host([disabled]) {
6
+ ${o};
7
+ }
8
+ `,t=s([l("test-next")],t);export{t as a};
@@ -0,0 +1,48 @@
1
+ var x=globalThis,L=x.ShadowRoot&&(x.ShadyCSS===void 0||x.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,j=Symbol(),G=new WeakMap,R=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==j)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(L&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=G.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&G.set(e,t))}return t}toString(){return this.cssText}},Q=r=>new R(typeof r=="string"?r:r+"",void 0,j),At=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,s,a)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[a+1],r[0]);return new R(e,r,j)},F=(r,t)=>{if(L)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),s=x.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},I=L||x.CSSStyleSheet===void 0?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return Q(e)})(r):r;var tt=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBrailleLabel="",this.ariaBrailleRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}};var et=new WeakMap,P=r=>{let t=et.get(r);return t===void 0&&et.set(r,t=new Map),t},yt=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(P(this)).map(([t,e])=>({name:t,value:e}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}get localName(){return this.constructor.__localName}get tagName(){return this.localName?.toUpperCase()}setAttribute(t,e){P(this).set(t,String(e))}removeAttribute(t){P(this).delete(t)}toggleAttribute(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}hasAttribute(t){return P(this).has(t)}attachShadow(t){let e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new tt(this);return this.__internals=t,t}getAttribute(t){return P(this).get(t)??null}};var gt=class extends yt{},it=gt;var St=class{constructor(){this.__definitions=new Map}define(t,e){if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${t}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
2
+ Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);e.__localName=t,this.__definitions.set(t,{ctor:e,observedAttributes:e.observedAttributes??[]})}get(t){return this.__definitions.get(t)?.ctor}},vt=St;var st=new vt;var{is:Et,defineProperty:bt,getOwnPropertyDescriptor:wt,getOwnPropertyNames:Ct,getOwnPropertySymbols:xt,getPrototypeOf:Rt}=Object,p=globalThis;p.customElements??(p.customElements=st);var rt=p.trustedTypes,Pt=rt?rt.emptyScript:"",Tt=p.reactiveElementPolyfillSupport,T=(r,t)=>r,q={toAttribute(r,t){switch(t){case Boolean:r=r?Pt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ot=(r,t)=>!Et(r,t),at={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:ot};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),p.litPropertyMetadata??(p.litPropertyMetadata=new WeakMap);var m=class extends(globalThis.HTMLElement??it){static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=at){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&bt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){let{get:s,set:a}=wt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s?.call(this)},set(o){let u=s?.call(this);a.call(this,o),this.requestUpdate(t,u,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??at}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;let t=Rt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){let e=this.properties,i=[...Ct(e),...xt(e)];for(let s of i)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)e.unshift(I(s))}else t!==void 0&&e.push(I(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){let i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:q).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let a=i.getPropertyOptions(s),o=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:q;this._$Em=s,this[s]=o.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ot)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[s,a]of i)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[T("elementProperties")]=new Map,m[T("finalized")]=new Map,Tt?.({ReactiveElement:m}),(p.reactiveElementVersions??(p.reactiveElementVersions=[])).push("2.0.4");var b=globalThis,k=b.trustedTypes,nt=k?k.createPolicy("lit-html",{createHTML:r=>r}):void 0,Z="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,J="?"+$,Mt=`<${J}>`,g=b.document===void 0?{createTreeWalker:()=>({})}:document,H=()=>g.createComment(""),U=r=>r===null||typeof r!="object"&&typeof r!="function",X=Array.isArray,pt=r=>X(r)||typeof r?.[Symbol.iterator]=="function",K=`[
3
+ \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ht=/-->/g,lt=/>/g,A=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ct=/'/g,dt=/"/g,_t=/^(?:script|style|textarea|title)$/i,Y=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Xt=Y(1),Yt=Y(2),Gt=Y(3),S=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),ut=new WeakMap,y=g.createTreeWalker(g,129);function mt(r,t){if(!X(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nt!==void 0?nt.createHTML(t):t}var $t=(r,t)=>{let e=r.length-1,i=[],s,a=t===2?"<svg>":t===3?"<math>":"",o=M;for(let u=0;u<e;u++){let n=r[u],l,d,h=-1,_=0;for(;_<n.length&&(o.lastIndex=_,d=o.exec(n),d!==null);)_=o.lastIndex,o===M?d[1]==="!--"?o=ht:d[1]!==void 0?o=lt:d[2]!==void 0?(_t.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=A):d[3]!==void 0&&(o=A):o===A?d[0]===">"?(o=s??M,h=-1):d[1]===void 0?h=-2:(h=o.lastIndex-d[2].length,l=d[1],o=d[3]===void 0?A:d[3]==='"'?dt:ct):o===dt||o===ct?o=A:o===ht||o===lt?o=M:(o=A,s=void 0);let f=o===A&&r[u+1].startsWith("/>")?" ":"";a+=o===M?n+Mt:h>=0?(i.push(l),n.slice(0,h)+Z+n.slice(h)+$+f):n+$+(h===-2?u:f)}return[mt(r,a+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},N=class r{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let a=0,o=0,u=t.length-1,n=this.parts,[l,d]=$t(t,e);if(this.el=r.createElement(l,i),y.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=y.nextNode())!==null&&n.length<u;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(Z)){let _=d[o++],f=s.getAttribute(h).split($),O=/([.?@])?(.*)/.exec(_);n.push({type:1,index:a,name:O[2],strings:f,ctor:O[1]==="."?V:O[1]==="?"?B:O[1]==="@"?z:E}),s.removeAttribute(h)}else h.startsWith($)&&(n.push({type:6,index:a}),s.removeAttribute(h));if(_t.test(s.tagName)){let h=s.textContent.split($),_=h.length-1;if(_>0){s.textContent=k?k.emptyScript:"";for(let f=0;f<_;f++)s.append(h[f],H()),y.nextNode(),n.push({type:2,index:++a});s.append(h[_],H())}}}else if(s.nodeType===8)if(s.data===J)n.push({type:2,index:a});else{let h=-1;for(;(h=s.data.indexOf($,h+1))!==-1;)n.push({type:7,index:a}),h+=$.length-1}a++}}static createElement(t,e){let i=g.createElement("template");return i.innerHTML=t,i}};function v(r,t,e=r,i){if(t===S)return t;let s=i!==void 0?e._$Co?.[i]:e._$Cl,a=U(t)?void 0:t._$litDirective$;return s?.constructor!==a&&(s?._$AO?.(!1),a===void 0?s=void 0:(s=new a(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=v(r,s._$AS(r,t.values),s,i)),t}var D=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??g).importNode(e,!0);y.currentNode=s;let a=y.nextNode(),o=0,u=0,n=i[0];for(;n!==void 0;){if(o===n.index){let l;n.type===2?l=new w(a,a.nextSibling,this,t):n.type===1?l=new n.ctor(a,n.name,n.strings,this,t):n.type===6&&(l=new W(a,this,t)),this._$AV.push(l),n=i[++u]}o!==n?.index&&(a=y.nextNode(),o++)}return y.currentNode=g,s}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},w=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),U(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==S&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&U(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=N.createElement(mt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{let a=new D(s,this),o=a.u(this.options);a.p(e),this.T(o),this._$AH=a}}_$AC(t){let e=ut.get(t.strings);return e===void 0&&ut.set(t.strings,e=new N(t)),e}k(t){X(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,s=0;for(let a of t)s===e.length?e.push(i=new r(this.O(H()),this.O(H()),this,this.options)):i=e[s],i._$AI(a),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,a){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,s){let a=this.strings,o=!1;if(a===void 0)t=v(this,t,e,0),o=!U(t)||t!==this._$AH&&t!==S,o&&(this._$AH=t);else{let u=t,n,l;for(t=a[0],n=0;n<a.length-1;n++)l=v(this,u[i+n],e,n),l===S&&(l=this._$AH[n]),o||(o=!U(l)||l!==this._$AH[n]),l===c?t=c:t!==c&&(t+=(l??"")+a[n+1]),this._$AH[n]=l}o&&!s&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},V=class extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},B=class extends E{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},z=class extends E{constructor(t,e,i,s,a){super(t,e,i,s,a),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===S)return;let i=this._$AH,s=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==c&&(i===c||s);s&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},W=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}},Qt={M:Z,P:$,A:J,C:1,L:$t,R:D,D:pt,V:v,I:w,H:E,N:B,U:z,B:V,F:W},Ht=b.litHtmlPolyfillSupport;Ht?.(N,w),(b.litHtmlVersions??(b.litHtmlVersions=[])).push("3.2.1");var ft=(r,t,e)=>{let i=e?.renderBefore??t,s=i._$litPart$;if(s===void 0){let a=e?.renderBefore??null;i._$litPart$=s=new w(t.insertBefore(H(),a),a,void 0,e??{})}return s._$AI(r),s};var C=class extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;let t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ft(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return S}};C._$litElement$=!0,C.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:C});var Ut=globalThis.litElementPolyfillSupport;Ut?.({LitElement:C});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");export{At as a,q as b,ot as c,Xt as d,Yt as e,S as f,c as g,Qt as h,ft as i,C as j};
5
+ /*! Bundled license information:
6
+
7
+ @lit/reactive-element/node/css-tag.js:
8
+ (**
9
+ * @license
10
+ * Copyright 2019 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ *)
13
+
14
+ @lit-labs/ssr-dom-shim/lib/element-internals.js:
15
+ (**
16
+ * @license
17
+ * Copyright 2023 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ *)
20
+
21
+ @lit-labs/ssr-dom-shim/index.js:
22
+ (**
23
+ * @license
24
+ * Copyright 2019 Google LLC
25
+ * SPDX-License-Identifier: BSD-3-Clause
26
+ *)
27
+
28
+ lit-html/node/lit-html.js:
29
+ (**
30
+ * @license
31
+ * Copyright 2017 Google LLC
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ *)
34
+
35
+ lit-element/lit-element.js:
36
+ (**
37
+ * @license
38
+ * Copyright 2017 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ *)
41
+
42
+ lit-html/node/is-server.js:
43
+ (**
44
+ * @license
45
+ * Copyright 2022 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ *)
48
+ */
@@ -0,0 +1,5 @@
1
+ import{a as M,b as S}from"./chunk-SQDSHH6N.js";import{a as I,c as w}from"./chunk-LVW3MHTI.js";import{a as f,b as V}from"./chunk-V2RMP73O.js";import{a as T,b as g}from"./chunk-M6AATWPS.js";import{a as h,b as i,c as v,f as L}from"./chunk-5WCOPF7O.js";import{d as a,j as l}from"./chunk-4DFVJE2A.js";import{e as t}from"./chunk-VI2WKTN4.js";var u=class extends l{constructor(){super(...arguments);this.testURL=null;this.testDoc=null;this.testXML=null;this.templateContent=null}async handleTestURLChange(){if(this.testURL)try{let n=await w().load(this.testURL);this.testDoc=n.htmlDoc()}catch(n){console.error("Error loading or parsing XML:",n)}}handleTestXMLChange(){if(this.testXML)try{this.testDoc=w().parse(this.testXML).htmlDoc()}catch(n){console.error("Error parsing XML:",n)}}async connectedCallback(){super.connectedCallback(),this.initializeTemplateContent(),this.applyStyles(),this.testURL&&this.handleTestURLChange(),this.testXML&&this.handleTestXMLChange()}initializeTemplateContent(){let n=this.querySelector("template");this.templateContent=n?n.content:a``}applyStyles(){let n=new CSSStyleSheet;n.replaceSync(S),this.shadowRoot.adoptedStyleSheets=[n]}render(){return a`
2
+ ${this.templateContent}
3
+ <slot></slot>
4
+ ${M(this.testDoc,a`<span>Loading...</span>`)}
5
+ `}};t([i({type:String,attribute:"test-url"})],u.prototype,"testURL",2),t([v()],u.prototype,"testDoc",2),t([v()],u.prototype,"testXML",2),t([L("testURL",{waitUntilFirstUpdate:!0})],u.prototype,"handleTestURLChange",1),t([L("testXML",{waitUntilFirstUpdate:!0})],u.prototype,"handleTestXMLChange",1),u=t([h("test-container")],u);var R=o=>{class p extends o{constructor(...s){super(...s),this.addEventListener("qti-assessment-test-connected",()=>{}),this.addEventListener("qti-load-item-request",({detail:e})=>{e.promise=(async()=>(await I().load(`${e.href}`,e.cancelPreviousRequest)).htmlDoc())()}),this.addEventListener("qti-interaction-changed",e=>{}),this.addEventListener("qti-outcome-changed",()=>{})}}return p};var k=o=>{class p extends o{constructor(...s){super(...s),this.addEventListener("qti-request-test-item",({detail:e})=>{if(!e)return;this._clearLoadedItems();let r=this.testElement.el.querySelector(`qti-assessment-item-ref[identifier="${e}"]`),b=this._loadItemRequest(r.href,!1),y=r.closest("qti-test-part").identifier,N=r.closest("qti-assessment-section").identifier;this._testContext={...this._testContext,navPartId:y,navSectionId:N,navItemId:e,navItemLoading:!0},b?b.then(q=>{r.xmlDoc=q,requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("qti-item-connected",{bubbles:!0,composed:!0}))),this._testContext={...this._testContext,navItemLoading:!1}}).catch(q=>console.error("Failed to load item:",q)):console.info("Load item request was not handled:",r.href)}),this.addEventListener("qti-assessment-test-connected",()=>{let e=this._testContext.navItemId;e||(e=this.testElement.el.querySelector("qti-assessment-item-ref").identifier),this.dispatchEvent(new CustomEvent("qti-request-test-item",{detail:e,bubbles:!0,composed:!0}))})}_clearLoadedItems(){let s=this.testElement.el.querySelectorAll("qti-assessment-test qti-assessment-item-ref");Array.from(s).forEach(e=>{e.xmlDoc=null})}_loadItemRequest(s,e=!0){let r=new CustomEvent("qti-load-item-request",{bubbles:!0,composed:!0,detail:{href:s,promise:null,cancelPreviousRequest:e}});return this.dispatchEvent(r),r.detail.promise}}return p};var D=o=>{class p extends o{constructor(...s){super(...s),this._testContext={...this._testContext,view:"candidate"},this.addEventListener("on-test-switch-view",e=>{this._testContext={...this._testContext,view:e.detail},this._updateElementView()}),this.addEventListener("qti-assessment-test-connected",()=>{this._updateElementView()}),this.addEventListener("qti-assessment-item-connected",e=>{this._updateElementView(),this._setCorrectResponseVisibility(e.detail)})}willUpdate(s){super.willUpdate(s),s.has("_testContext")&&this._updateElementView()}_updateElementView(){if(this.testElement&&this.testElement.el){Array.from(this.testElement.el.querySelectorAll("[view]")).forEach(r=>{r.classList.toggle("show",r.getAttribute("view")===this._testContext.view)});let e=this.testElement.el.querySelector(`qti-assessment-item[identifier="${this._testContext.navItemId}"]`);e&&e.showCorrectResponse(this._testContext.view==="scorer")}}_setCorrectResponseVisibility(s){s.showCorrectResponse(this._testContext.view==="scorer")}}return p};var C=class extends l{constructor(){super();this._testContext={items:[],testOutcomeVariables:[]};this.testElement={el:null};this._updateItemInTestContext=n=>{let{identifier:s,variables:e}=n,r=this._testContext.items.find(b=>b?.identifier===s);if(!r){console.warn(`Item IDs between assessment.xml and item.xml should match: ${s} is not found!`);return}r.variables?.length===1?this._updateItemVariablesInTestContext(s,e):n.variables=[...r.variables||[]]};this.addEventListener("qti-assessment-test-connected",n=>{let s=n.detail,e=Array.from(s.querySelectorAll("qti-assessment-item-ref")).map(r=>({href:r.href,identifier:r.identifier,category:r.category,variables:[{identifier:"completionStatus",value:"not_attempted",type:"outcome"}]}));this.testElement={el:s},this._testContext={...this._testContext,items:e}}),this.addEventListener("qti-assessment-item-connected",n=>{this._updateItemInTestContext(n.detail)}),this.addEventListener("qti-outcome-changed",n=>{let s=n.composedPath()[0];this._updateItemVariablesInTestContext(s.identifier,s.variables)})}get context(){return this._testContext}set context(n){n!=null&&(this._testContext={...n},n.items?.forEach(s=>{let e=this._testContext.items.find(r=>r.identifier===s.identifier);e?e.variables=s.variables:this._testContext.items.push(s)}))}_updateItemVariablesInTestContext(n,s){this._testContext={...this._testContext,items:this._testContext.items.map(e=>e.identifier!==n?e:{...e,variables:s.map(r=>{let b=e.variables.find(y=>y.identifier===r.identifier);return b?{...b,...r}:r})})}}connectedCallback(){super.connectedCallback(),this.setAttribute("qti-test","")}};t([v(),T({context:f})],C.prototype,"_testContext",2),t([v(),T({context:V})],C.prototype,"testElement",2);var E=class extends R(k(D(C))){render(){return a`<slot></slot>`}};E=t([h("qti-test")],E);var U={fromAttribute(o){return o==="true"},toAttribute(o){return o?"true":"false"}},m=class extends l{constructor(){super(...arguments);this.weigths=new Map}createRenderRoot(){return this}get assessmentItem(){return this.renderRoot?.querySelector("qti-assessment-item")}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.dispatchEvent(new CustomEvent("qti-assessment-item-ref-connected",{bubbles:!0,composed:!0,detail:{identifier:this.identifier,href:this.href,category:this.category}}))}render(){return a`${this.xmlDoc}`}};t([i({type:String})],m.prototype,"category",2),t([i({type:String})],m.prototype,"identifier",2),t([i({type:Boolean,converter:U})],m.prototype,"required",2),t([i({type:Boolean,converter:U})],m.prototype,"fixed",2),t([i({type:String})],m.prototype,"href",2),t([g({context:f,subscribe:!0})],m.prototype,"_testContext",2),t([i({type:Object,attribute:!1})],m.prototype,"xmlDoc",2);customElements.get("qti-assessment-item-ref")||customElements.define("qti-assessment-item-ref",m);var _={fromAttribute(o){return o==="true"},toAttribute(o){return o?"true":"false"}},c=class extends l{async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.dispatchEvent(new Event("qti-assessment-section-connected",{bubbles:!0,composed:!0}))}render(){return a`<slot name="qti-rubric-block"></slot><slot></slot>`}};t([i({type:String})],c.prototype,"identifier",2),t([i({type:String})],c.prototype,"required",2),t([i({type:Boolean,converter:_})],c.prototype,"fixed",2),t([i({type:String})],c.prototype,"title",2),t([i({type:Boolean,converter:_})],c.prototype,"visible",2),t([i({type:Boolean,converter:_,attribute:"keep-together"})],c.prototype,"keepTogether",2),t([g({context:f,subscribe:!0})],c.prototype,"_testContext",2);customElements.get("qti-assessment-section")||customElements.define("qti-assessment-section",c);var x=class extends l{async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.dispatchEvent(new CustomEvent("qti-assessment-test-connected",{detail:this,bubbles:!0,composed:!0}))}render(){return a` <slot></slot>`}};t([i({type:String})],x.prototype,"identifier",2),t([i({type:String})],x.prototype,"title",2),t([g({context:f,subscribe:!0})],x.prototype,"_testContext",2),x=t([h("qti-assessment-test")],x);var d=class extends l{constructor(){super(...arguments);this.identifier="";this.title="";this.class="";this.NavigationMode="nonlinear";this.submissionMode="individual"}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.dispatchEvent(new Event("qti-test-part-connected",{bubbles:!0,composed:!0}))}render(){return a` <slot></slot>`}};t([i({type:String})],d.prototype,"identifier",2),t([i({type:String})],d.prototype,"title",2),t([i({type:String})],d.prototype,"class",2),t([i({type:String,attribute:"navigation-mode"})],d.prototype,"NavigationMode",2),t([i({type:String,attribute:"submission-mode"})],d.prototype,"submissionMode",2),d=t([h("qti-test-part")],d);customElements.get("qti-test-part")||customElements.define("qti-test-part",d);export{E as a,m as b,c,x as d,d as e};
@@ -0,0 +1,73 @@
1
+ import{b as f,c as m}from"./chunk-4DFVJE2A.js";var g=e=>(r,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(e,r)}):customElements.define(e,r)};var h={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:m},x=(e=h,r,t)=>{let{kind:n,metadata:l}=t,i=globalThis.litPropertyMetadata.get(l);if(i===void 0&&globalThis.litPropertyMetadata.set(l,i=new Map),i.set(t.name,e),n==="accessor"){let{name:o}=t;return{set(a){let s=r.get.call(this);r.set.call(this,a),this.requestUpdate(o,s,e)},init(a){return a!==void 0&&this.P(o,void 0,e),a}}}if(n==="setter"){let{name:o}=t;return function(a){let s=this[o];r.call(this,a),this.requestUpdate(o,s,e)}}throw Error("Unsupported decorator location: "+n)};function y(e){return(r,t)=>typeof t=="object"?x(e,r,t):((n,l,i)=>{let o=l.hasOwnProperty(i);return l.constructor.createProperty(i,o?{...n,wrapped:!0}:n),o?Object.getOwnPropertyDescriptor(l,i):void 0})(e,r,t)}function w(e){return y({...e,state:!0,attribute:!1})}var c=(e,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(e,r,t),t);function O(e,r){return(t,n,l)=>{let i=o=>o.renderRoot?.querySelector(e)??null;if(r){let{get:o,set:a}=typeof n=="object"?t:l??(()=>{let s=Symbol();return{get(){return this[s]},set(d){this[s]=d}}})();return c(t,n,{get(){let s=o.call(this);return s===void 0&&(s=i(this),(s!==null||this.hasUpdated)&&a.call(this,s)),s}})}return c(t,n,{get(){return i(this)}})}}function H(e){return(r,t)=>{let{slot:n,selector:l}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return c(r,t,{get(){let o=this.renderRoot?.querySelector(i),a=o?.assignedElements(e)??[];return l===void 0?a:a.filter(s=>s.matches(l))}})}}function Q(e,r){let t={waitUntilFirstUpdate:!1,...r};return(n,l)=>{let{update:i}=n,o=Array.isArray(e)?e:[e];n.update=function(a){o.forEach(s=>{let d=s;if(a.has(d)){let u=a.get(d),p=this[d];u!==p&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[l](u,p)}}),i.call(this,a)}}}export{g as a,y as b,w as c,O as d,H as e,Q as f};
2
+ /*! Bundled license information:
3
+
4
+ @lit/reactive-element/node/decorators/custom-element.js:
5
+ (**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ *)
10
+
11
+ @lit/reactive-element/node/decorators/property.js:
12
+ (**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ *)
17
+
18
+ @lit/reactive-element/node/decorators/state.js:
19
+ (**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ *)
24
+
25
+ @lit/reactive-element/node/decorators/event-options.js:
26
+ (**
27
+ * @license
28
+ * Copyright 2017 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ *)
31
+
32
+ @lit/reactive-element/node/decorators/base.js:
33
+ (**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ *)
38
+
39
+ @lit/reactive-element/node/decorators/query.js:
40
+ (**
41
+ * @license
42
+ * Copyright 2017 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ *)
45
+
46
+ @lit/reactive-element/node/decorators/query-all.js:
47
+ (**
48
+ * @license
49
+ * Copyright 2017 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ *)
52
+
53
+ @lit/reactive-element/node/decorators/query-async.js:
54
+ (**
55
+ * @license
56
+ * Copyright 2017 Google LLC
57
+ * SPDX-License-Identifier: BSD-3-Clause
58
+ *)
59
+
60
+ @lit/reactive-element/node/decorators/query-assigned-elements.js:
61
+ (**
62
+ * @license
63
+ * Copyright 2021 Google LLC
64
+ * SPDX-License-Identifier: BSD-3-Clause
65
+ *)
66
+
67
+ @lit/reactive-element/node/decorators/query-assigned-nodes.js:
68
+ (**
69
+ * @license
70
+ * Copyright 2017 Google LLC
71
+ * SPDX-License-Identifier: BSD-3-Clause
72
+ *)
73
+ */
@@ -0,0 +1,8 @@
1
+ import{b as m,c as o}from"./chunk-MFWSHIPH.js";import{c as r}from"./chunk-LY27H7YF.js";import{c as l}from"./chunk-OEBYNBRS.js";import{a as i,d as n}from"./chunk-4DFVJE2A.js";import{e as s}from"./chunk-VI2WKTN4.js";var t=class extends r{constructor(){super(),this._internals.role="button",this._internals.ariaLabel="Next item",this.addEventListener("click",e=>{e.preventDefault(),this.disabled||this._requestItem(this.items[this.itemIndex+1].identifier)})}willUpdate(e){super.willUpdate(e),e.has("_testContext")&&(this.disabled=!this._testElement?.el||this.itemIndex<0||this.itemIndex>=this.items.length-1)}render(){return n`<slot></slot>`}};t.styles=i`
2
+ :host {
3
+ ${m};
4
+ }
5
+ :host([disabled]) {
6
+ ${o};
7
+ }
8
+ `,t=s([l("test-next")],t);export{t as a};
@@ -0,0 +1,11 @@
1
+ import{c as s}from"./chunk-LY27H7YF.js";import{c as p,d as n,e as r,h as l}from"./chunk-OEBYNBRS.js";import{d as a}from"./chunk-4DFVJE2A.js";import{e as i}from"./chunk-VI2WKTN4.js";var t=class extends s{constructor(){super(...arguments);this.label="view";this._handleViewOptionsChange=()=>{this.updateViewOptions()};this._viewOptions=t.DEFAULT_VIEW_OPTIONS}connectedCallback(){super.connectedCallback(),this.updateViewOptions()}updateViewOptions(){if(this.viewOptions){let e=this.viewOptions.split(",").map(o=>o.trim());this._viewOptions=e.filter(o=>t.DEFAULT_VIEW_OPTIONS.includes(o))}else this._viewOptions=t.DEFAULT_VIEW_OPTIONS}render(){return a`
2
+ <label part="label" for="viewSelect">${this.label}</label>
3
+ <select
4
+ part="select"
5
+ id="viewSelect"
6
+ .disabled=${this.disabled}
7
+ @change=${e=>{let o=e.target;this._switchView(o.value)}}
8
+ >
9
+ ${this._viewOptions.map(e=>a`<option value="${e}" ?selected=${e===this.view}>${e}</option>`)}
10
+ </select>
11
+ `}};t.DEFAULT_VIEW_OPTIONS=["author","candidate","proctor","scorer","testConstructor","tutor"],i([n({type:String})],t.prototype,"label",2),i([n({type:String,attribute:"view-options"})],t.prototype,"viewOptions",2),i([l("viewOptions",{waitUntilFirstUpdate:!0})],t.prototype,"_handleViewOptionsChange",2),i([r()],t.prototype,"_viewOptions",2),t=i([p("test-view")],t);export{t as a};
@@ -0,0 +1 @@
1
+ import{a as h,b as f}from"./chunk-V2RMP73O.js";import{b as m}from"./chunk-M6AATWPS.js";import{b as p,c,f as u}from"./chunk-5WCOPF7O.js";import{j as d}from"./chunk-4DFVJE2A.js";import{e as n}from"./chunk-VI2WKTN4.js";function b(a){return(l,t)=>{p(a)(l,t);let e=`__${t}`;Object.defineProperty(l,t,{get(){return this[e]},set(r){let o=this[e];if(this[e]=r,o!==r){if(this._internals?.states){let i=t.toLowerCase();r?this._internals.states.add(`--${i}`):this._internals.states.delete(`--${i}`)}if(a.aria&&this._internals){let i=a.aria;r?this._internals[i]="true":this._internals[i]=null}this.requestUpdate(t,o)}},configurable:!0,enumerable:!0})}}var s=class extends d{constructor(){super();this.disabled=!0;this._internals=this.attachInternals()}_handleTestElementChange(t,e){e.el&&(this.disabled=!1)}willUpdate(t){if(t.has("_testContext")){let{items:e=[],navItemId:r}=this._testContext??{};this.itemIndex=e.findIndex(o=>o.identifier===r),this.items=e,this.view=this._testContext?.view}}_switchView(t){this.dispatchEvent(new CustomEvent("on-test-switch-view",{composed:!0,bubbles:!0,detail:t}))}_requestItem(t){this.dispatchEvent(new CustomEvent("qti-request-test-item",{composed:!0,bubbles:!0,detail:t}))}};n([b({type:Boolean,reflect:!0,aria:"ariaDisabled"})],s.prototype,"disabled",2),n([c(),m({context:h,subscribe:!0})],s.prototype,"_testContext",2),n([c(),m({context:f,subscribe:!0})],s.prototype,"_testElement",2),n([u("_testElement")],s.prototype,"_handleTestElementChange",1);export{s as a};
@@ -0,0 +1,8 @@
1
+ import{b as m,c as a}from"./chunk-MFWSHIPH.js";import{c as l}from"./chunk-LY27H7YF.js";import{c as i,d as o}from"./chunk-OEBYNBRS.js";import{a as s,d as r}from"./chunk-4DFVJE2A.js";import{e}from"./chunk-VI2WKTN4.js";var t=class extends l{constructor(){super();this.itemId=null;this.addEventListener("click",()=>this._requestItem(this.itemId))}render(){return r` <slot></slot> `}};t.styles=s`
2
+ :host {
3
+ ${m};
4
+ }
5
+ :host([disabled]) {
6
+ ${a};
7
+ }
8
+ `,e([o({type:String,attribute:"item-id"})],t.prototype,"itemId",2),t=e([i("test-item-link")],t);export{t as a};
@@ -0,0 +1,24 @@
1
+ import{h as l}from"./chunk-4DFVJE2A.js";var{I:T}=l,x=e=>e===null||typeof e!="object"&&typeof e!="function";var h=e=>e.strings===void 0,d=()=>document.createComment(""),D=(e,t,s)=>{let i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(s===void 0){let r=i.insertBefore(d(),o),_=i.insertBefore(d(),o);s=new T(r,_,e,e.options)}else{let r=s._$AB.nextSibling,_=s._$AM,a=_!==e;if(a){let $;s._$AQ?.(e),s._$AM=e,s._$AP!==void 0&&($=e._$AU)!==_._$AU&&s._$AP($)}if(r!==o||a){let $=s._$AA;for(;$!==r;){let v=$.nextSibling;i.insertBefore($,o),$=v}}}return s},E=(e,t,s=e)=>(e._$AI(t,s),e),m={},N=(e,t=m)=>e._$AH=t,B=e=>e._$AH,H=e=>{e._$AP?.(!1,!0);let t=e._$AA,s=e._$AB.nextSibling;for(;t!==s;){let i=t.nextSibling;t.remove(),t=i}};var p={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},C=e=>(...t)=>({_$litDirective$:e,values:t}),A=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this._$Ct=t,this._$AM=s,this._$Ci=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};var n=(e,t)=>{let s=e._$AN;if(s===void 0)return!1;for(let i of s)i._$AO?.(t,!1),n(i,t);return!0},c=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while(s?.size===0)},f=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),M(t)}};function P(e){this._$AN!==void 0?(c(this),this._$AM=e,f(this)):this._$AM=e}function y(e,t=!1,s=0){let i=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)n(i[r],!1),c(i[r]);else i!=null&&(n(i,!1),c(i));else n(this,e)}var M=e=>{e.type==p.CHILD&&(e._$AP??(e._$AP=y),e._$AQ??(e._$AQ=P))},u=class extends A{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),f(this),this.isConnected=t._$AU}_$AO(t,s=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),s&&(n(this,t),c(this))}setValue(t){if(h(this._$Ct))this._$Ct._$AI(t,this);else{let s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};export{x as a,D as b,E as c,N as d,B as e,H as f,p as g,C as h,A as i,u as j};
2
+ /*! Bundled license information:
3
+
4
+ lit-html/node/directive-helpers.js:
5
+ (**
6
+ * @license
7
+ * Copyright 2020 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ *)
10
+
11
+ lit-html/node/directive.js:
12
+ (**
13
+ * @license
14
+ * Copyright 2017 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ *)
17
+
18
+ lit-html/node/async-directive.js:
19
+ (**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ *)
24
+ */
@@ -0,0 +1 @@
1
+ import{b as m,d as p,e as c,h as u}from"./chunk-OEBYNBRS.js";import{j as d}from"./chunk-4DFVJE2A.js";import{e as i}from"./chunk-VI2WKTN4.js";function f(o){return(l,t)=>{p(o)(l,t);let e=`__${t}`;Object.defineProperty(l,t,{get(){return this[e]},set(r){let a=this[e];if(this[e]=r,a!==r){if(this._internals?.states){let n=t.toLowerCase();r?this._internals.states.add(`--${n}`):this._internals.states.delete(`--${n}`)}if(o.aria&&this._internals){let n=o.aria;r?this._internals[n]="true":this._internals[n]=null}this.requestUpdate(t,a)}},configurable:!0,enumerable:!0})}}var x=Symbol("test"),h=Symbol("testElement");var s=class extends d{constructor(){super();this.disabled=!0;this._internals=this.attachInternals()}_handleTestElementChange(t,e){e.el&&(this.disabled=!1)}willUpdate(t){if(t.has("_testContext")){let{items:e=[],navItemId:r}=this._testContext??{};this.itemIndex=e.findIndex(a=>a.identifier===r),this.items=e,this.view=this._testContext?.view}}_switchView(t){this.dispatchEvent(new CustomEvent("on-test-switch-view",{composed:!0,bubbles:!0,detail:t}))}_requestItem(t){this.dispatchEvent(new CustomEvent("qti-request-test-item",{composed:!0,bubbles:!0,detail:t}))}};i([f({type:Boolean,reflect:!0,aria:"ariaDisabled"})],s.prototype,"disabled",2),i([c(),m({context:x,subscribe:!0})],s.prototype,"_testContext",2),i([c(),m({context:h,subscribe:!0})],s.prototype,"_testElement",2),i([u("_testElement")],s.prototype,"_handleTestElementChange",1);export{x as a,h as b,s as c};
@@ -0,0 +1,59 @@
1
+ var a=class extends Event{constructor(t,s,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=s,this.subscribe=o??!1}};var h=class{constructor(t,s,o,e){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,n)),this.unsubscribe=n},this.host=t,s.context!==void 0){let i=s;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=s,this.callback=o,this.subscribe=e??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new a(this.context,this.t,this.subscribe))}};function b({context:r,subscribe:t}){return(s,o)=>{typeof o=="object"?o.addInitializer(function(){new h(this,{context:r,callback:e=>{s.set.call(this,e)},subscribe:t})}):s.constructor.addInitializer(e=>{new h(e,{context:r,callback:i=>{e[o]=i},subscribe:t})})}}var d=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,s=!1){let o=s||!Object.is(t,this.o);this.o=t,o&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[s,{disposer:o}]of this.subscriptions)s(this.o,o)},t!==void 0&&(this.value=t)}addCallback(t,s,o){if(!o)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:s});let{disposer:e}=this.subscriptions.get(t);t(this.value,e)}clearCallbacks(){this.subscriptions.clear()}};var l=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},u=class extends d{constructor(t,s,o){super(s.context!==void 0?s.initialValue:o),this.onContextRequest=e=>{let i=e.composedPath()[0];e.context===this.context&&i!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,i,e.subscribe))},this.onProviderRequest=e=>{let i=e.composedPath()[0];if(e.context!==this.context||i===this.host)return;let n=new Set;for(let[c,{consumerHost:x}]of this.subscriptions)n.has(c)||(n.add(c),x.dispatchEvent(new a(this.context,c,!0)));e.stopPropagation()},this.host=t,s.context!==void 0?this.context=s.context:this.context=s,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new l(this.context))}};function p({context:r}){return(t,s)=>{let o=new WeakMap;if(typeof s=="object")return s.addInitializer(function(){o.set(this,new u(this,{context:r}))}),{get(){return t.get.call(this)},set(e){return o.get(this)?.setValue(e),t.set.call(this,e)},init(e){return o.get(this)?.setValue(e),e}};{t.constructor.addInitializer(n=>{o.set(n,new u(n,{context:r}))});let e=Object.getOwnPropertyDescriptor(t,s),i;if(e===void 0){let n=new WeakMap;i={get(){return n.get(this)},set(c){o.get(this).setValue(c),n.set(this,c)},configurable:!0,enumerable:!0}}else{let n=e.set;i={...e,set(c){o.get(this).setValue(c),n?.call(this,c)}}}return void Object.defineProperty(t,s,i)}}}export{p as a,b};
2
+ /*! Bundled license information:
3
+
4
+ @lit/context/lib/context-request-event.js:
5
+ (**
6
+ * @license
7
+ * Copyright 2021 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ *)
10
+
11
+ @lit/context/lib/controllers/context-consumer.js:
12
+ (**
13
+ * @license
14
+ * Copyright 2021 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ *)
17
+
18
+ @lit/context/lib/decorators/consume.js:
19
+ (**
20
+ * @license
21
+ * Copyright 2022 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ *)
24
+
25
+ @lit/context/lib/create-context.js:
26
+ (**
27
+ * @license
28
+ * Copyright 2021 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ *)
31
+
32
+ @lit/context/lib/value-notifier.js:
33
+ (**
34
+ * @license
35
+ * Copyright 2021 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ *)
38
+
39
+ @lit/context/lib/controllers/context-provider.js:
40
+ (**
41
+ * @license
42
+ * Copyright 2021 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ *)
45
+
46
+ @lit/context/lib/context-root.js:
47
+ (**
48
+ * @license
49
+ * Copyright 2021 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ *)
52
+
53
+ @lit/context/lib/decorators/provide.js:
54
+ (**
55
+ * @license
56
+ * Copyright 2017 Google LLC
57
+ * SPDX-License-Identifier: BSD-3-Clause
58
+ *)
59
+ */
@@ -1,4 +1,4 @@
1
- import{css as r}from"lit";var o=r`
1
+ import{a as r}from"./chunk-4DFVJE2A.js";var o=r`
2
2
  display: inline-flex;
3
3
  align-items: center;
4
4
  cursor: pointer;
@@ -0,0 +1,11 @@
1
+ import{a as s}from"./chunk-KUOLGIA5.js";import{a as p,b as n,c as r,f as l}from"./chunk-5WCOPF7O.js";import{d as a}from"./chunk-4DFVJE2A.js";import{e as i}from"./chunk-VI2WKTN4.js";var t=class extends s{constructor(){super(...arguments);this.label="view";this._handleViewOptionsChange=()=>{this.updateViewOptions()};this._viewOptions=t.DEFAULT_VIEW_OPTIONS}connectedCallback(){super.connectedCallback(),this.updateViewOptions()}updateViewOptions(){if(this.viewOptions){let e=this.viewOptions.split(",").map(o=>o.trim());this._viewOptions=e.filter(o=>t.DEFAULT_VIEW_OPTIONS.includes(o))}else this._viewOptions=t.DEFAULT_VIEW_OPTIONS}render(){return a`
2
+ <label part="label" for="viewSelect">${this.label}</label>
3
+ <select
4
+ part="select"
5
+ id="viewSelect"
6
+ .disabled=${this.disabled}
7
+ @change=${e=>{let o=e.target;this._switchView(o.value)}}
8
+ >
9
+ ${this._viewOptions.map(e=>a`<option value="${e}" ?selected=${e===this.view}>${e}</option>`)}
10
+ </select>
11
+ `}};t.DEFAULT_VIEW_OPTIONS=["author","candidate","proctor","scorer","testConstructor","tutor"],i([n({type:String})],t.prototype,"label",2),i([n({type:String,attribute:"view-options"})],t.prototype,"viewOptions",2),i([l("viewOptions",{waitUntilFirstUpdate:!0})],t.prototype,"_handleViewOptionsChange",2),i([r()],t.prototype,"_viewOptions",2),t=i([p("test-view")],t);export{t as a};
@@ -0,0 +1,129 @@
1
+ import{b as C,c as g}from"./chunk-4DFVJE2A.js";var l=class extends Event{constructor(e,t,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=o??!1}};var p=class{constructor(e,t,o,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,i)=>{this.unsubscribe&&(this.unsubscribe!==i&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,i)),this.unsubscribe=i},this.host=e,t.context!==void 0){let r=t;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=t,this.callback=o,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new l(this.context,this.t,this.subscribe))}};function q({context:n,subscribe:e}){return(t,o)=>{typeof o=="object"?o.addInitializer(function(){new p(this,{context:n,callback:s=>{t.set.call(this,s)},subscribe:e})}):t.constructor.addInitializer(s=>{new p(s,{context:n,callback:r=>{s[o]=r},subscribe:e})})}}var b=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let o=t||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:o}]of this.subscriptions)t(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,t,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:s}=this.subscriptions.get(e);e(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var v=class extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}},f=class extends b{constructor(e,t,o){super(t.context!==void 0?t.initialValue:o),this.onContextRequest=s=>{let r=s.composedPath()[0];s.context===this.context&&r!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,r,s.subscribe))},this.onProviderRequest=s=>{let r=s.composedPath()[0];if(s.context!==this.context||r===this.host)return;let i=new Set;for(let[a,{consumerHost:c}]of this.subscriptions)i.has(a)||(i.add(a),c.dispatchEvent(new l(this.context,a,!0)));s.stopPropagation()},this.host=e,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new v(this.context))}};function w({context:n}){return(e,t)=>{let o=new WeakMap;if(typeof t=="object")return t.addInitializer(function(){o.set(this,new f(this,{context:n}))}),{get(){return e.get.call(this)},set(s){return o.get(this)?.setValue(s),e.set.call(this,s)},init(s){return o.get(this)?.setValue(s),s}};{e.constructor.addInitializer(i=>{o.set(i,new f(i,{context:n}))});let s=Object.getOwnPropertyDescriptor(e,t),r;if(s===void 0){let i=new WeakMap;r={get(){return i.get(this)},set(a){o.get(this).setValue(a),i.set(this,a)},configurable:!0,enumerable:!0}}else{let i=s.set;r={...s,set(a){o.get(this).setValue(a),i?.call(this,a)}}}return void Object.defineProperty(e,t,r)}}}var Y=n=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(n,e)}):customElements.define(n,e)};var R={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:g},U=(n=R,e,t)=>{let{kind:o,metadata:s}=t,r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(t.name,n),o==="accessor"){let{name:i}=t;return{set(a){let c=e.get.call(this);e.set.call(this,a),this.requestUpdate(i,c,n)},init(a){return a!==void 0&&this.P(i,void 0,n),a}}}if(o==="setter"){let{name:i}=t;return function(a){let c=this[i];e.call(this,a),this.requestUpdate(i,c,n)}}throw Error("Unsupported decorator location: "+o)};function E(n){return(e,t)=>typeof t=="object"?U(n,e,t):((o,s,r)=>{let i=s.hasOwnProperty(r);return s.constructor.createProperty(r,i?{...o,wrapped:!0}:o),i?Object.getOwnPropertyDescriptor(s,r):void 0})(n,e,t)}function ot(n){return E({...n,state:!0,attribute:!1})}var d=(n,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(n,e,t),t);function ct(n,e){return(t,o,s)=>{let r=i=>i.renderRoot?.querySelector(n)??null;if(e){let{get:i,set:a}=typeof o=="object"?t:s??(()=>{let c=Symbol();return{get(){return this[c]},set(u){this[c]=u}}})();return d(t,o,{get(){let c=i.call(this);return c===void 0&&(c=r(this),(c!==null||this.hasUpdated)&&a.call(this,c)),c}})}return d(t,o,{get(){return r(this)}})}}function xt(n){return(e,t)=>{let{slot:o,selector:s}=n??{},r="slot"+(o?`[name=${o}]`:":not([name])");return d(e,t,{get(){let i=this.renderRoot?.querySelector(r),a=i?.assignedElements(n)??[];return s===void 0?a:a.filter(c=>c.matches(s))}})}}function Pt(n,e){let t={waitUntilFirstUpdate:!1,...e};return(o,s)=>{let{update:r}=o,i=Array.isArray(n)?n:[n];o.update=function(a){i.forEach(c=>{let u=c;if(a.has(u)){let m=a.get(u),h=this[u];m!==h&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[s](m,h)}}),r.call(this,a)}}}function Lt(n,e){let t;return(o,s)=>{let{connectedCallback:r,disconnectedCallback:i}=o;o.connectedCallback=function(){r.call(this);let a=u=>{let m=Array.from(this.querySelectorAll(n)).concat(Array.from(this.shadowRoot?.querySelectorAll(n)||[]));for(let h of u){let y=Array.from(h.addedNodes).map(x=>x),k=Array.from(h.addedNodes).map(x=>x);h.type==="childList"&&y.find(x=>m.includes(x))&&this[s](y,k)}};t=new MutationObserver(a),t.observe(this,{childList:!0,subtree:!0});let c=Array.from(this.querySelectorAll(n)).concat(Array.from(this.shadowRoot?.querySelectorAll(n)||[]));this[s](Array.from(c),[])},o.disconnectedCallback=function(){i.call(this),t.disconnect()}}}export{w as a,q as b,Y as c,E as d,ot as e,ct as f,xt as g,Pt as h,Lt as i};
2
+ /*! Bundled license information:
3
+
4
+ @lit/context/lib/context-request-event.js:
5
+ (**
6
+ * @license
7
+ * Copyright 2021 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ *)
10
+
11
+ @lit/context/lib/controllers/context-consumer.js:
12
+ (**
13
+ * @license
14
+ * Copyright 2021 Google LLC
15
+ * SPDX-License-Identifier: BSD-3-Clause
16
+ *)
17
+
18
+ @lit/context/lib/decorators/consume.js:
19
+ (**
20
+ * @license
21
+ * Copyright 2022 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ *)
24
+
25
+ @lit/context/lib/create-context.js:
26
+ (**
27
+ * @license
28
+ * Copyright 2021 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ *)
31
+
32
+ @lit/context/lib/value-notifier.js:
33
+ (**
34
+ * @license
35
+ * Copyright 2021 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ *)
38
+
39
+ @lit/context/lib/controllers/context-provider.js:
40
+ (**
41
+ * @license
42
+ * Copyright 2021 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ *)
45
+
46
+ @lit/context/lib/context-root.js:
47
+ (**
48
+ * @license
49
+ * Copyright 2021 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ *)
52
+
53
+ @lit/context/lib/decorators/provide.js:
54
+ (**
55
+ * @license
56
+ * Copyright 2017 Google LLC
57
+ * SPDX-License-Identifier: BSD-3-Clause
58
+ *)
59
+
60
+ @lit/reactive-element/node/decorators/custom-element.js:
61
+ (**
62
+ * @license
63
+ * Copyright 2017 Google LLC
64
+ * SPDX-License-Identifier: BSD-3-Clause
65
+ *)
66
+
67
+ @lit/reactive-element/node/decorators/property.js:
68
+ (**
69
+ * @license
70
+ * Copyright 2017 Google LLC
71
+ * SPDX-License-Identifier: BSD-3-Clause
72
+ *)
73
+
74
+ @lit/reactive-element/node/decorators/state.js:
75
+ (**
76
+ * @license
77
+ * Copyright 2017 Google LLC
78
+ * SPDX-License-Identifier: BSD-3-Clause
79
+ *)
80
+
81
+ @lit/reactive-element/node/decorators/event-options.js:
82
+ (**
83
+ * @license
84
+ * Copyright 2017 Google LLC
85
+ * SPDX-License-Identifier: BSD-3-Clause
86
+ *)
87
+
88
+ @lit/reactive-element/node/decorators/base.js:
89
+ (**
90
+ * @license
91
+ * Copyright 2017 Google LLC
92
+ * SPDX-License-Identifier: BSD-3-Clause
93
+ *)
94
+
95
+ @lit/reactive-element/node/decorators/query.js:
96
+ (**
97
+ * @license
98
+ * Copyright 2017 Google LLC
99
+ * SPDX-License-Identifier: BSD-3-Clause
100
+ *)
101
+
102
+ @lit/reactive-element/node/decorators/query-all.js:
103
+ (**
104
+ * @license
105
+ * Copyright 2017 Google LLC
106
+ * SPDX-License-Identifier: BSD-3-Clause
107
+ *)
108
+
109
+ @lit/reactive-element/node/decorators/query-async.js:
110
+ (**
111
+ * @license
112
+ * Copyright 2017 Google LLC
113
+ * SPDX-License-Identifier: BSD-3-Clause
114
+ *)
115
+
116
+ @lit/reactive-element/node/decorators/query-assigned-elements.js:
117
+ (**
118
+ * @license
119
+ * Copyright 2021 Google LLC
120
+ * SPDX-License-Identifier: BSD-3-Clause
121
+ *)
122
+
123
+ @lit/reactive-element/node/decorators/query-assigned-nodes.js:
124
+ (**
125
+ * @license
126
+ * Copyright 2017 Google LLC
127
+ * SPDX-License-Identifier: BSD-3-Clause
128
+ *)
129
+ */