@citolab/qti-components 7.0.5 → 7.0.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunk-4DFVJE2A.js +48 -0
- package/cdn/chunk-4I75QSIL.js +8 -0
- package/cdn/chunk-5WCOPF7O.js +73 -0
- package/cdn/chunk-A536ZOJJ.js +43 -0
- package/cdn/chunk-BLKKKK6C.js +11 -0
- package/cdn/chunk-DC2R556M.js +5 -0
- package/cdn/chunk-GALSGMIP.js +5 -0
- package/cdn/chunk-IXSX4SJX.js +1 -0
- package/cdn/chunk-KYOTSBCX.js +1 -0
- package/cdn/chunk-L4TDHAKL.js +24 -0
- package/cdn/chunk-M6AATWPS.js +59 -0
- package/cdn/{chunks/chunk-UIEC4LXR.js → chunk-MFWSHIPH.js} +1 -1
- package/cdn/chunk-QGKK4T2J.js +8 -0
- package/cdn/chunk-ROXN2HIJ.js +8 -0
- package/cdn/{chunks/chunk-CFXQCNG6.js → chunk-SQDSHH6N.js} +18 -2
- package/cdn/chunk-T4A5AZCI.js +939 -0
- package/cdn/index.global.js +71 -71
- package/cdn/index.js +1 -4503
- package/cdn/qti-components/index.global.js +1 -1
- package/cdn/qti-components/index.js +1 -924
- package/cdn/qti-item/core/index.global.js +149 -0
- package/cdn/qti-item/core/index.js +1 -0
- package/cdn/qti-loader/index.js +1 -23
- package/cdn/qti-test/components/index.global.js +1 -36
- package/cdn/qti-test/components/index.js +1 -3598
- package/cdn/qti-test/components/styles.js +1 -17
- package/cdn/qti-test/components/test-component.abstract.js +1 -1
- package/cdn/qti-test/components/test-item-link.js +1 -24
- package/cdn/qti-test/components/test-next.js +1 -24
- package/cdn/qti-test/components/test-next.spec.global.js +1 -234
- package/cdn/qti-test/components/test-next.spec.js +245 -4747
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -3
- package/cdn/qti-test/components/test-prev.js +1 -24
- package/cdn/qti-test/components/test-view.js +1 -11
- package/cdn/qti-test/core/index.global.js +205 -0
- package/cdn/qti-test/core/index.js +1 -0
- package/cdn/qti-transformers/index.js +1 -23
- package/dist/{chunks/chunk-Y6UWSECL.js → chunk-2CHF3TMY.js} +2 -2
- package/dist/chunk-2CHF3TMY.js.map +1 -0
- package/dist/{chunks/chunk-XDMSEAYC.js → chunk-2OA7E3E7.js} +1 -1
- package/dist/chunk-2OA7E3E7.js.map +1 -0
- package/dist/{chunks/chunk-W4B23OIP.js → chunk-3TFUBCJW.js} +4 -4
- package/dist/chunk-3TFUBCJW.js.map +1 -0
- package/dist/{chunks/chunk-6YE2KJ4C.js → chunk-44VE5POH.js} +1 -1
- package/dist/{chunks/chunk-3ROZMGAN.js → chunk-4FH7P7YI.js} +4 -4
- package/dist/chunk-4FH7P7YI.js.map +1 -0
- package/dist/{chunks/chunk-ELDMXTUQ.js → chunk-4YG2FPKK.js} +1 -1
- package/dist/chunk-4YG2FPKK.js.map +1 -0
- package/dist/{chunks/chunk-HWA4A3SR.js → chunk-6SG3NMKU.js} +4 -4
- package/dist/chunk-6SG3NMKU.js.map +1 -0
- package/dist/{chunks/chunk-LKINC6JO.js → chunk-ANLIJZBL.js} +6 -6
- package/dist/chunk-ANLIJZBL.js.map +1 -0
- package/dist/{qti-test/qti-test.js → chunk-CNQYM52B.js} +308 -239
- package/dist/chunk-CNQYM52B.js.map +1 -0
- package/dist/{chunks/chunk-XDFXD3BI.js → chunk-F3NTI6TX.js} +2 -2
- package/dist/chunk-F3NTI6TX.js.map +1 -0
- package/dist/{chunks/chunk-ZEFOMZNY.js → chunk-F7HTXGGH.js} +3 -3
- package/dist/chunk-F7HTXGGH.js.map +1 -0
- package/dist/chunk-MAC76UNI.js +1 -0
- package/dist/{chunks/chunk-PUBGXXTM.js → chunk-OO6JSYLP.js} +4 -4
- package/dist/chunk-OO6JSYLP.js.map +1 -0
- package/dist/{chunks/chunk-LROTNPC2.js → chunk-QYN5S4EM.js} +22 -9
- package/dist/chunk-QYN5S4EM.js.map +1 -0
- package/dist/{chunks/chunk-4O5F7WV7.js → chunk-UB5K44DB.js} +1 -1
- package/dist/chunk-UB5K44DB.js.map +1 -0
- package/dist/{chunks/chunk-3OXGDCSU.js → chunk-UBZPSVSE.js} +83 -35
- package/dist/chunk-UBZPSVSE.js.map +1 -0
- package/dist/index.d.ts +5 -10
- package/dist/index.js +131 -11043
- package/dist/index.js.map +1 -1
- package/dist/qti-components/index.js +94 -6431
- package/dist/qti-components/index.js.map +1 -1
- package/dist/qti-components-jsx.d.ts +83 -83
- package/dist/qti-item/{components/item-container.d.ts → core/index.d.ts} +22 -1
- package/dist/qti-item/core/index.js +13 -0
- package/dist/qti-loader/index.js +6 -287
- package/dist/qti-loader/index.js.map +1 -1
- package/dist/qti-test/components/index.d.ts +1 -3
- package/dist/qti-test/components/index.js +23 -4135
- package/dist/qti-test/components/index.js.map +1 -1
- package/dist/qti-test/components/styles.js +7 -22
- package/dist/qti-test/components/styles.js.map +1 -1
- package/dist/qti-test/components/test-component.abstract.d.ts +1 -2
- package/dist/qti-test/components/test-component.abstract.js +6 -145
- package/dist/qti-test/components/test-component.abstract.js.map +1 -1
- package/dist/qti-test/components/test-item-link.d.ts +1 -2
- package/dist/qti-test/components/test-item-link.js +8 -198
- package/dist/qti-test/components/test-item-link.js.map +1 -1
- package/dist/qti-test/components/test-next.d.ts +1 -2
- package/dist/qti-test/components/test-next.js +8 -205
- package/dist/qti-test/components/test-next.js.map +1 -1
- package/{cdn/qti-test/components/test-container.js → dist/qti-test/components/test-next.spec.css} +224 -1292
- package/dist/qti-test/components/test-next.spec.css.map +1 -0
- package/dist/qti-test/components/test-next.spec.d.ts +3 -6
- package/dist/qti-test/components/test-next.spec.js +141 -11152
- package/dist/qti-test/components/test-next.spec.js.map +1 -1
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +1 -2
- package/dist/qti-test/components/test-paging-buttons-stamp.js +7 -214
- package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -1
- package/dist/qti-test/components/test-prev.d.ts +1 -2
- package/dist/qti-test/components/test-prev.js +8 -205
- package/dist/qti-test/components/test-prev.js.map +1 -1
- package/dist/qti-test/components/test-view.d.ts +1 -2
- package/dist/qti-test/components/test-view.js +7 -205
- package/dist/qti-test/components/test-view.js.map +1 -1
- package/dist/qti-test/core/index.d.ts +121 -0
- package/dist/qti-test/core/index.js +27 -0
- package/dist/qti-transformers/index.js +6 -287
- package/dist/qti-transformers/index.js.map +1 -1
- package/dist/{test-base-BJwG9Ie8.d.ts → test.context-DbSTxKk_.d.ts} +18 -28
- package/dist/vscode.html-custom-data.json +21 -21
- package/package.json +90 -78
- package/cdn/chunks/chunk-4UJBK6JO.js +0 -1
- package/cdn/chunks/chunk-5O3Z7TDV.js +0 -1
- package/cdn/chunks/chunk-65LFT33L.js +0 -8
- package/cdn/chunks/chunk-6D25UFJR.js +0 -8
- package/cdn/chunks/chunk-6UGPNL7M.js +0 -1
- package/cdn/chunks/chunk-CSUKVUZF.js +0 -3
- package/cdn/chunks/chunk-CSY3WI5A.js +0 -1
- package/cdn/chunks/chunk-DAZR7RUI.js +0 -0
- package/cdn/chunks/chunk-EHK76KRT.js +0 -1
- package/cdn/chunks/chunk-EOPEMJS3.js +0 -0
- package/cdn/chunks/chunk-G5O7EN45.js +0 -5
- package/cdn/chunks/chunk-GEFUIFM7.js +0 -0
- package/cdn/chunks/chunk-JLNHEMQG.js +0 -1
- package/cdn/chunks/chunk-LPWIM7QJ.js +0 -902
- package/cdn/chunks/chunk-M3YRM3AV.js +0 -1
- package/cdn/chunks/chunk-M6BOWL2U.js +0 -1
- package/cdn/chunks/chunk-P5IE36FO.js +0 -8
- package/cdn/chunks/chunk-PXH5KN5O.js +0 -1
- package/cdn/chunks/chunk-RBEI6NIF.js +0 -1
- package/cdn/chunks/chunk-SMKIYFFI.js +0 -1
- package/cdn/chunks/chunk-SRLMW23F.js +0 -0
- package/cdn/chunks/chunk-T3YDLD2H.js +0 -11
- package/cdn/chunks/chunk-T6IXJ4W4.js +0 -1
- package/cdn/chunks/chunk-TFAUBGP2.js +0 -0
- package/cdn/chunks/chunk-V44O3GTW.js +0 -0
- package/cdn/chunks/chunk-V6B54FQW.js +0 -5
- package/cdn/chunks/chunk-V6KX6BQN.js +0 -1
- package/cdn/chunks/chunk-VYANBI35.js +0 -1
- package/cdn/chunks/chunk-XUJ7TXHW.js +0 -1
- package/cdn/chunks/chunk-ZIZLFFSG.js +0 -0
- package/cdn/index.css +0 -1
- package/cdn/qti-item/components/index.css +0 -1
- package/cdn/qti-item/components/index.global.js +0 -149
- package/cdn/qti-item/components/index.js +0 -3549
- package/cdn/qti-item/components/item-container.css +0 -1
- package/cdn/qti-item/components/item-container.global.js +0 -149
- package/cdn/qti-item/components/item-container.js +0 -3549
- package/cdn/qti-item/index.css +0 -1
- package/cdn/qti-item/index.global.js +0 -149
- package/cdn/qti-item/index.js +0 -3549
- package/cdn/qti-item/qti-item.global.js +0 -114
- package/cdn/qti-item/qti-item.js +0 -1
- package/cdn/qti-test/components/index.css +0 -1
- package/cdn/qti-test/components/test-container.css +0 -1
- package/cdn/qti-test/components/test-container.global.js +0 -149
- package/cdn/qti-test/context/index.global.js +0 -58
- package/cdn/qti-test/context/index.js +0 -1
- package/cdn/qti-test/context/test.context.global.js +0 -58
- package/cdn/qti-test/context/test.context.js +0 -1
- package/cdn/qti-test/index.css +0 -1
- package/cdn/qti-test/index.global.js +0 -242
- package/cdn/qti-test/index.js +0 -3598
- package/cdn/qti-test/mixins/index.global.js +0 -1
- package/cdn/qti-test/mixins/index.js +0 -23
- package/cdn/qti-test/mixins/test-loader.mixin.global.js +0 -1
- package/cdn/qti-test/mixins/test-loader.mixin.js +0 -23
- package/cdn/qti-test/mixins/test-navigation.mixin.global.js +0 -1
- package/cdn/qti-test/mixins/test-navigation.mixin.js +0 -1
- package/cdn/qti-test/mixins/test-view.mixin.global.js +0 -1
- package/cdn/qti-test/mixins/test-view.mixin.js +0 -1
- package/cdn/qti-test/qti-assessment-test/index.global.js +0 -170
- package/cdn/qti-test/qti-assessment-test/index.js +0 -1
- package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +0 -170
- package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +0 -1
- package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +0 -170
- package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +0 -1
- package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +0 -170
- package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +0 -1
- package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +0 -114
- package/cdn/qti-test/qti-assessment-test/qti-test-part.js +0 -1
- package/cdn/qti-test/qti-test.global.js +0 -170
- package/cdn/qti-test/qti-test.js +0 -23
- package/cdn/qti-test/test-base.global.js +0 -170
- package/cdn/qti-test/test-base.js +0 -1
- package/dist/chunks/chunk-3G2DDBJW.js +0 -44
- package/dist/chunks/chunk-3G2DDBJW.js.map +0 -1
- package/dist/chunks/chunk-3NLCJYSX.js +0 -1
- package/dist/chunks/chunk-3OXGDCSU.js.map +0 -1
- package/dist/chunks/chunk-3ROZMGAN.js.map +0 -1
- package/dist/chunks/chunk-4O5F7WV7.js.map +0 -1
- package/dist/chunks/chunk-AAQCM2FP.js +0 -56
- package/dist/chunks/chunk-AAQCM2FP.js.map +0 -1
- package/dist/chunks/chunk-D3RGDWKP.js +0 -37
- package/dist/chunks/chunk-D3RGDWKP.js.map +0 -1
- package/dist/chunks/chunk-DJLE6EV2.js +0 -36
- package/dist/chunks/chunk-DJLE6EV2.js.map +0 -1
- package/dist/chunks/chunk-ELDMXTUQ.js.map +0 -1
- package/dist/chunks/chunk-EW5CTHAD.js +0 -1
- package/dist/chunks/chunk-HWA4A3SR.js.map +0 -1
- package/dist/chunks/chunk-IKZWK2C5.js +0 -1
- package/dist/chunks/chunk-IP7JSYO6.js +0 -1
- package/dist/chunks/chunk-IP7JSYO6.js.map +0 -1
- package/dist/chunks/chunk-JE6BMXZU.js +0 -94
- package/dist/chunks/chunk-JE6BMXZU.js.map +0 -1
- package/dist/chunks/chunk-JSPJGWGT.js +0 -20
- package/dist/chunks/chunk-JSPJGWGT.js.map +0 -1
- package/dist/chunks/chunk-LKINC6JO.js.map +0 -1
- package/dist/chunks/chunk-LROTNPC2.js.map +0 -1
- package/dist/chunks/chunk-MTMT2RMF.js +0 -63
- package/dist/chunks/chunk-MTMT2RMF.js.map +0 -1
- package/dist/chunks/chunk-NDJZGJUR.js +0 -65
- package/dist/chunks/chunk-NDJZGJUR.js.map +0 -1
- package/dist/chunks/chunk-OE2LFIH2.js +0 -1
- package/dist/chunks/chunk-OE2LFIH2.js.map +0 -1
- package/dist/chunks/chunk-OJ2XGDWK.js +0 -1
- package/dist/chunks/chunk-OJ2XGDWK.js.map +0 -1
- package/dist/chunks/chunk-PUBGXXTM.js.map +0 -1
- package/dist/chunks/chunk-QRCUNRP5.js +0 -75
- package/dist/chunks/chunk-QRCUNRP5.js.map +0 -1
- package/dist/chunks/chunk-S6JJYCO7.js +0 -51
- package/dist/chunks/chunk-S6JJYCO7.js.map +0 -1
- package/dist/chunks/chunk-U3AALKEP.js +0 -1
- package/dist/chunks/chunk-U3AALKEP.js.map +0 -1
- package/dist/chunks/chunk-UCQFSRYF.js +0 -34
- package/dist/chunks/chunk-UCQFSRYF.js.map +0 -1
- package/dist/chunks/chunk-URGVQ64M.js +0 -1
- package/dist/chunks/chunk-URGVQ64M.js.map +0 -1
- package/dist/chunks/chunk-V4FXK4TP.js +0 -128
- package/dist/chunks/chunk-V4FXK4TP.js.map +0 -1
- package/dist/chunks/chunk-W4B23OIP.js.map +0 -1
- package/dist/chunks/chunk-XDFXD3BI.js.map +0 -1
- package/dist/chunks/chunk-XDMSEAYC.js.map +0 -1
- package/dist/chunks/chunk-XPDS72XY.js +0 -29
- package/dist/chunks/chunk-XPDS72XY.js.map +0 -1
- package/dist/chunks/chunk-Y6UWSECL.js.map +0 -1
- package/dist/chunks/chunk-ZEFOMZNY.js.map +0 -1
- package/dist/index-Cvrd4KQA.d.ts +0 -109
- package/dist/qti-item/components/index.d.ts +0 -3
- package/dist/qti-item/components/index.js +0 -3856
- package/dist/qti-item/components/index.js.map +0 -1
- package/dist/qti-item/components/item-container.js +0 -3856
- package/dist/qti-item/components/item-container.js.map +0 -1
- package/dist/qti-item/index.d.ts +0 -4
- package/dist/qti-item/index.js +0 -3869
- package/dist/qti-item/index.js.map +0 -1
- package/dist/qti-item/qti-item.d.ts +0 -25
- package/dist/qti-item/qti-item.js +0 -26
- package/dist/qti-item/qti-item.js.map +0 -1
- package/dist/qti-test/components/test-container.d.ts +0 -37
- package/dist/qti-test/components/test-container.js +0 -3782
- package/dist/qti-test/components/test-container.js.map +0 -1
- package/dist/qti-test/context/index.d.ts +0 -6
- package/dist/qti-test/context/index.js +0 -9
- package/dist/qti-test/context/index.js.map +0 -1
- package/dist/qti-test/context/test.context.d.ts +0 -6
- package/dist/qti-test/context/test.context.js +0 -9
- package/dist/qti-test/context/test.context.js.map +0 -1
- package/dist/qti-test/index.d.ts +0 -14
- package/dist/qti-test/index.js +0 -4746
- package/dist/qti-test/index.js.map +0 -1
- package/dist/qti-test/mixins/index.d.ts +0 -8
- package/dist/qti-test/mixins/index.js +0 -350
- package/dist/qti-test/mixins/index.js.map +0 -1
- package/dist/qti-test/mixins/test-loader.mixin.d.ts +0 -8
- package/dist/qti-test/mixins/test-loader.mixin.js +0 -240
- package/dist/qti-test/mixins/test-loader.mixin.js.map +0 -1
- package/dist/qti-test/mixins/test-navigation.mixin.d.ts +0 -22
- package/dist/qti-test/mixins/test-navigation.mixin.js +0 -64
- package/dist/qti-test/mixins/test-navigation.mixin.js.map +0 -1
- package/dist/qti-test/mixins/test-view.mixin.d.ts +0 -6
- package/dist/qti-test/mixins/test-view.mixin.js +0 -50
- package/dist/qti-test/mixins/test-view.mixin.js.map +0 -1
- package/dist/qti-test/qti-assessment-test/index.d.ts +0 -6
- package/dist/qti-test/qti-assessment-test/index.js +0 -221
- package/dist/qti-test/qti-assessment-test/index.js.map +0 -1
- package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +0 -6
- package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +0 -85
- package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +0 -1
- package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +0 -6
- package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +0 -73
- package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +0 -1
- package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +0 -6
- package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +0 -54
- package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +0 -1
- package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +0 -19
- package/dist/qti-test/qti-assessment-test/qti-test-part.js +0 -62
- package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +0 -1
- package/dist/qti-test/qti-test.d.ts +0 -68
- package/dist/qti-test/qti-test.js.map +0 -1
- package/dist/qti-test/test-base.d.ts +0 -6
- package/dist/qti-test/test-base.js +0 -137
- package/dist/qti-test/test-base.js.map +0 -1
- /package/cdn/{chunks/chunk-6DMSHH5X.js → chunk-22HAPLRD.js} +0 -0
- /package/cdn/{chunks/chunk-5FCXUJAG.js → chunk-LVW3MHTI.js} +0 -0
- /package/cdn/{chunks/chunk-T4HD2C4F.js → chunk-VI2WKTN4.js} +0 -0
- /package/dist/{chunks/chunk-3NLCJYSX.js.map → chunk-44VE5POH.js.map} +0 -0
- /package/dist/{chunks/chunk-6YE2KJ4C.js.map → chunk-MAC76UNI.js.map} +0 -0
- /package/dist/{chunks/chunk-EW5CTHAD.js.map → qti-item/core/index.js.map} +0 -0
- /package/dist/{chunks/chunk-IKZWK2C5.js.map → qti-test/core/index.js.map} +0 -0
|
@@ -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,8 @@
|
|
|
1
|
+
import{b as m,c as a}from"./chunk-MFWSHIPH.js";import{a as l}from"./chunk-KYOTSBCX.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,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,43 @@
|
|
|
1
|
+
import{a as B}from"./chunk-KYOTSBCX.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,11 @@
|
|
|
1
|
+
import{a as s}from"./chunk-KYOTSBCX.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,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-IXSX4SJX.js";import{a as T,b as v}from"./chunk-M6AATWPS.js";import{a as h,b as r,c as x,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([r({type:String,attribute:"test-url"})],u.prototype,"testURL",2),t([x()],u.prototype,"testDoc",2),t([x()],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 i=this.testElement.el.querySelector(`qti-assessment-item-ref[identifier="${e}"]`),b=this._loadItemRequest(i.href,!1),y=i.closest("qti-test-part").identifier,N=i.closest("qti-assessment-section").identifier;this._testContext={...this._testContext,navPartId:y,navSectionId:N,navItemId:e,navItemLoading:!0},b?b.then(q=>{i.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:",i.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 i=new CustomEvent("qti-load-item-request",{bubbles:!0,composed:!0,detail:{href:s,promise:null,cancelPreviousRequest:e}});return this.dispatchEvent(i),i.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(i=>{i.classList.toggle("show",i.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,i=this._testContext.items.find(b=>b?.identifier===s);if(!i){console.warn(`Item IDs between assessment.xml and item.xml should match: ${s} is not found!`);return}i.variables?.length===1?this._updateItemVariablesInTestContext(s,e):n.variables=[...i.variables||[]]};this.addEventListener("qti-assessment-test-connected",n=>{let s=n.detail,e=Array.from(s.querySelectorAll("qti-assessment-item-ref")).map(i=>({href:i.href,identifier:i.identifier,category:i.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(i=>i.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(i=>{let b=e.variables.find(y=>y.identifier===i.identifier);return b?{...b,...i}:i})})}}connectedCallback(){super.connectedCallback(),this.setAttribute("qti-test","")}};t([x(),T({context:f})],C.prototype,"_testContext",2),t([x(),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([r({type:String})],m.prototype,"category",2),t([r({type:String})],m.prototype,"identifier",2),t([r({type:Boolean,converter:U})],m.prototype,"required",2),t([r({type:Boolean,converter:U})],m.prototype,"fixed",2),t([r({type:String})],m.prototype,"href",2),t([v({context:f,subscribe:!0})],m.prototype,"_testContext",2),t([r({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([r({type:String})],c.prototype,"identifier",2),t([r({type:String})],c.prototype,"required",2),t([r({type:Boolean,converter:_})],c.prototype,"fixed",2),t([r({type:String})],c.prototype,"title",2),t([r({type:Boolean,converter:_})],c.prototype,"visible",2),t([r({type:Boolean,converter:_,attribute:"keep-together"})],c.prototype,"keepTogether",2),t([v({context:f,subscribe:!0})],c.prototype,"_testContext",2);customElements.get("qti-assessment-section")||customElements.define("qti-assessment-section",c);var g=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([r({type:String})],g.prototype,"identifier",2),t([r({type:String})],g.prototype,"title",2),t([v({context:f,subscribe:!0})],g.prototype,"_testContext",2),g=t([h("qti-assessment-test")],g);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([r({type:String})],d.prototype,"identifier",2),t([r({type:String})],d.prototype,"title",2),t([r({type:String})],d.prototype,"class",2),t([r({type:String,attribute:"navigation-mode"})],d.prototype,"NavigationMode",2),t([r({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{u as a,E as b,m as c,c as d,g as e,d as f};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as c,b as h}from"./chunk-SQDSHH6N.js";import{a as s}from"./chunk-LVW3MHTI.js";import{a as l,b as p,c as m,f as n}from"./chunk-5WCOPF7O.js";import{d as i,j as o}from"./chunk-4DFVJE2A.js";import{e}from"./chunk-VI2WKTN4.js";var r=class extends o{constructor(){super(...arguments);this.itemURL=null;this.itemDoc=null;this.itemXML=null;this.templateContent=null}async handleItemURLChange(){if(this.itemURL)try{let t=await s().load(this.itemURL);this.itemDoc=t.htmlDoc()}catch(t){console.error("Error loading or parsing XML:",t)}}handleItemXMLChange(){if(this.itemXML)try{this.itemDoc=s().parse(this.itemXML).htmlDoc()}catch(t){console.error("Error parsing XML:",t)}}async connectedCallback(){super.connectedCallback(),this.initializeTemplateContent(),this.applyStyles(),this.itemURL&&this.handleItemURLChange(),this.itemXML&&this.handleItemXMLChange()}initializeTemplateContent(){let t=this.querySelector("template");this.templateContent=t?t.content:i``}applyStyles(){let t=new CSSStyleSheet;t.replaceSync(h),this.shadowRoot.adoptedStyleSheets=[t]}render(){return i`
|
|
2
|
+
${this.templateContent}
|
|
3
|
+
<slot></slot>
|
|
4
|
+
${c(this.itemDoc,i`<span>Loading...</span>`)}
|
|
5
|
+
`}};e([p({type:String,attribute:"item-url"})],r.prototype,"itemURL",2),e([m()],r.prototype,"itemDoc",2),e([m()],r.prototype,"itemXML",2),e([n("itemURL",{waitUntilFirstUpdate:!0})],r.prototype,"handleItemURLChange",1),e([n("itemXML",{waitUntilFirstUpdate:!0})],r.prototype,"handleItemXMLChange",1),r=e([l("item-container")],r);var a=class extends o{render(){return i`<slot></slot>`}};a=e([l("qti-item")],a);export{r as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Symbol("test"),o=Symbol("testElement");export{n as a,o as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h,b as f}from"./chunk-IXSX4SJX.js";import{b as c}from"./chunk-M6AATWPS.js";import{b as p,c as d,f as u}from"./chunk-5WCOPF7O.js";import{j as m}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(s){let o=this[e];if(this[e]=s,o!==s){if(this._internals?.states){let r=t.toLowerCase();s?this._internals.states.add(`--${r}`):this._internals.states.delete(`--${r}`)}if(a.aria&&this._internals){let r=a.aria;s?this._internals[r]="true":this._internals[r]=null}this.requestUpdate(t,o)}},configurable:!0,enumerable:!0})}}var i=class extends m{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:s}=this._testContext??{};this.itemIndex=e.findIndex(o=>o.identifier===s),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"})],i.prototype,"disabled",2),n([d(),c({context:h,subscribe:!0})],i.prototype,"_testContext",2),n([d(),c({context:f,subscribe:!0})],i.prototype,"_testElement",2),n([u("_testElement")],i.prototype,"_handleTestElementChange",1);export{i 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,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
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{b as m,c as o}from"./chunk-MFWSHIPH.js";import{a as r}from"./chunk-KYOTSBCX.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,8 @@
|
|
|
1
|
+
import{b as o,c as m}from"./chunk-MFWSHIPH.js";import{a as r}from"./chunk-KYOTSBCX.js";import{a as n}from"./chunk-5WCOPF7O.js";import{a as i,d as l}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===-1)}render(){return l`<slot></slot>`}};t.styles=i`
|
|
2
|
+
:host {
|
|
3
|
+
${o};
|
|
4
|
+
}
|
|
5
|
+
:host([disabled]) {
|
|
6
|
+
${m};
|
|
7
|
+
}
|
|
8
|
+
`,t=s([n("test-prev")],t);export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var i=`@layer qti-base, qti-components, qti-utilities, qti-variants, qti-extended;
|
|
1
|
+
import{a as b,h as q,j as v}from"./chunk-L4TDHAKL.js";import{f as s}from"./chunk-4DFVJE2A.js";var d=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},n=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??(this.Z=new Promise(t=>this.q=t))}resume(){this.q?.(),this.Z=this.q=void 0}};var m=i=>!b(i)&&typeof i.then=="function",u=1073741823,c=class extends v{constructor(){super(...arguments),this._$Cwt=u,this._$Cbt=[],this._$CK=new d(this),this._$CX=new n}render(...t){return t.find(e=>!m(e))??s}update(t,e){let g=this._$Cbt,p=g.length;this._$Cbt=e;let y=this._$CK,h=this._$CX;this.isConnected||this.disconnected();for(let r=0;r<e.length&&!(r>this._$Cwt);r++){let o=e[r];if(!m(o))return this._$Cwt=r,o;r<p&&o===g[r]||(this._$Cwt=u,p=0,Promise.resolve(o).then(async w=>{for(;h.get();)await h.get();let a=y.deref();if(a!==void 0){let l=a._$Cbt.indexOf(o);l>-1&&l<a._$Cwt&&(a._$Cwt=l,a.setValue(w))}}))}return s}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},B=q(c);var _=`@layer qti-base, qti-components, qti-utilities, qti-variants, qti-extended;
|
|
2
2
|
|
|
3
3
|
:root,
|
|
4
4
|
:host {
|
|
@@ -3520,4 +3520,20 @@ qti-response-declaration {
|
|
|
3520
3520
|
width: 100%;
|
|
3521
3521
|
}
|
|
3522
3522
|
}
|
|
3523
|
-
`;export{
|
|
3523
|
+
`;export{B as a,_ as b};
|
|
3524
|
+
/*! Bundled license information:
|
|
3525
|
+
|
|
3526
|
+
lit-html/node/directives/private-async-helpers.js:
|
|
3527
|
+
(**
|
|
3528
|
+
* @license
|
|
3529
|
+
* Copyright 2021 Google LLC
|
|
3530
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3531
|
+
*)
|
|
3532
|
+
|
|
3533
|
+
lit-html/node/directives/until.js:
|
|
3534
|
+
(**
|
|
3535
|
+
* @license
|
|
3536
|
+
* Copyright 2017 Google LLC
|
|
3537
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3538
|
+
*)
|
|
3539
|
+
*/
|