lyco 1.3.6 → 1.3.8

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/dist/index.es.js CHANGED
@@ -1,49 +1,49 @@
1
- import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRandomClassName as r,renderFn as i,renderFnOrArray as a,renderFnOrArrayOrCurry as o,renderFnOrCurry as s}from"./core-B-U2ZJO6.mjs";import{css as c,html as l,nothing as u}from"lit";import{createRef as d,ref as f}from"lit/directives/ref.js";import{styleMap as p}from"lit/directives/style-map.js";const m=typeof window>`u`,h=100;var g=class{constructor(e){this._capacity=e,this.buffer=Array(e)}set(e,t){this.buffer[e%this._capacity]=t}get(e){return this.buffer[e%this._capacity]}clear(){this.buffer.fill(void 0)}get capacity(){return this._capacity}},_=class{constructor(){this.data=new Float64Array}set(e,t){let n=e*3;this.data[n]=t.start,this.data[n+1]=t.end,this.data[n+2]=t.total}get(e){let t=e*3;return t<0||t+2>=this.data.length?{start:0,end:0,total:0}:{start:this.data[t],end:this.data[t+1],total:this.data[t+2]}}initialize(e){this.data=new Float64Array(Math.ceil(e/h)*3),this.data.fill(0)}},v=class{constructor(e,t,n){this._items=[],this._itemSize=50,this._layout=`vertical`,this._preloadCount=5,this._cacheSize=200,this._renderItem=()=>l``,this._containerRef=d(),this._firstVisible=0,this._lastVisible=0,this._positionCache=new Float64Array,this._sizeCache=new Float32Array,this._cacheInitialized=!1,this._totalContentSize=0,this._blockStore=new _,this._recycledNodes=[],this.RECYCLE_POOL_SIZE=20,this._preRenderChunkSize=5,this.CHUNK_SIZE=1e3,this._chunks=new Map,this._visibleChunkIndexes=new Set,this._loadedChunks=new Set,this._estimatedItemHeight=0,this._isLoading=!1,this._hasMore=!1,this._pageSize=50,this._fetchMoreThreshold=.8,this._getItemSize=e=>typeof this._itemSize==`function`?this._itemSize(e):this._itemSize,this._calculateMetrics=()=>{if(this._items.length===0){this._positionCache=new Float64Array,this._sizeCache=new Float32Array,this._blockStore.initialize(0),this._totalContentSize=0,this._cacheInitialized=!0,this._templateBuffer.clear();return}this._positionCache=new Float64Array(this._items.length),this._sizeCache=new Float32Array(this._items.length),this._blockStore.initialize(this._items.length);let e=0,t=0,n=0;for(let r=0;r<this._items.length;r++){let i=this._getItemSize(r);if(this._positionCache[r]=e,this._sizeCache[r]=i,n+=i,(r+1)%h===0||r===this._items.length-1){let a=Math.floor(r/h);this._blockStore.set(a,{start:t,end:e+i,total:n}),t=e+i,n=0}e+=i}this._totalContentSize=e,this._cacheInitialized=!0,this._templateBuffer.clear()},this._findItemIndexByOffset=e=>{if(!this._cacheInitialized||this._items.length===0)return 0;let t=0,n=this._items.length-1,r=0;for(;t<=n;){let i=Math.floor((t+n)/2);this._positionCache[i]<=e?(r=i,t=i+1):n=i-1}return r},this._updateVisibleRange=()=>{if(!this._containerRef.value)return;let e=this._layout===`vertical`,t=e?this._containerRef.value.scrollTop:this._containerRef.value.scrollLeft,n=e?this._containerRef.value.clientHeight:this._containerRef.value.clientWidth;this._firstVisible=Math.floor(t/this._estimatedItemHeight),this._lastVisible=Math.ceil((t+n)/this._estimatedItemHeight),this._checkAndLoadMore(),this.host.requestUpdate()},this._ticking=!1,this._lastUpdate=0,this.FRAME_BUDGET=16,this._scheduleUpdate=async()=>{if(this._ticking)return;let e=performance.now(),t=e-this._lastUpdate;t>=this.FRAME_BUDGET&&(this._ticking=!0,requestAnimationFrame(()=>{this._updateVisibleRange(),this._ticking=!1,this._lastUpdate=performance.now()}))},this.host=e,e.addController(this),this.updateConfig(t,n),this._templateBuffer=new g(this._cacheSize),this._pageSize=t.pageSize??50,this._fetchMoreThreshold=t.fetchMoreThreshold??.8,m||(this._setupObservers(),this._setupResizeObserver(),this._initializeChunks())}_initializeItems(e){this._items=[...e],this._calculateMetrics(),this._initializeChunks(),this.host.requestUpdate()}_updateMetricsForRange(e,t){if(t>this._positionCache.length){let e=new Float64Array(Math.max(t*1.5,1e3));e.set(this._positionCache),this._positionCache=e;let n=new Float32Array(Math.max(t*1.5,1e3));n.set(this._sizeCache),this._sizeCache=n}let n=e===0?0:this._positionCache[e-1]+this._sizeCache[e-1];for(let r=e;r<t;r++){let e=this._getItemSize(r);this._positionCache[r]=n,this._sizeCache[r]=e,n+=e}this._totalContentSize=n,this._updateChunkMetrics()}_setupObservers(){this._intersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&this._preRenderChunk()})},{rootMargin:`50%`}),this._mutationObserver=new MutationObserver(e=>{e.forEach(e=>{e.removedNodes.forEach(e=>{e instanceof HTMLElement&&this._recycledNodes.length<this.RECYCLE_POOL_SIZE&&this._recycledNodes.push(e)})})})}_setupResizeObserver(){this._resizeObserver=new ResizeObserver(e=>{for(let t of e)if(t.target instanceof HTMLElement){let e=t.contentRect.height;e>0&&(this._estimatedItemHeight=e,this._updateChunkMetrics())}})}_initializeChunks(){this._chunks.clear();let e=Math.ceil(this._items.length/this.CHUNK_SIZE);for(let t=0;t<e;t++){let e=t*this.CHUNK_SIZE,n=Math.min(e+this.CHUNK_SIZE,this._items.length);this._chunks.set(t,this._items.slice(e,n))}}_updateChunkMetrics(){if(!this._containerRef.value)return;let e=this._containerRef.value.clientHeight,t=this._items.length*this._estimatedItemHeight;this._blockStore.initialize(Math.ceil(this._items.length/this.CHUNK_SIZE));let n=0;for(let e=0;e<this._chunks.size;e++){let t=Math.min(this.CHUNK_SIZE,this._items.length-e*this.CHUNK_SIZE),r=t*this._estimatedItemHeight;this._blockStore.set(e,{start:n,end:n+r,total:r}),n+=r}this._totalContentSize=t,this._calculateVisibleChunks()}_calculateVisibleChunks(){if(!this._containerRef.value)return;let e=this._containerRef.value.scrollTop,t=this._containerRef.value.clientHeight,n=Math.floor(e/(this.CHUNK_SIZE*this._estimatedItemHeight)),r=Math.ceil((e+t)/(this.CHUNK_SIZE*this._estimatedItemHeight));this._visibleChunkIndexes.clear();for(let e=n;e<=r;e++)this._chunks.has(e)&&this._visibleChunkIndexes.add(e);this._preloadAdjacentChunks(n-1,r+1)}_preloadAdjacentChunks(e,t){for(let n=e;n<=t;n++)n>=0&&n<this._chunks.size&&!this._loadedChunks.has(n)&&requestIdleCallback(()=>{this._loadChunk(n)})}_loadChunk(e){if(this._loadedChunks.has(e))return;let t=e*this.CHUNK_SIZE,n=Math.min(t+this.CHUNK_SIZE,this._items.length),r=this._items.slice(t,n);this._chunks.set(e,r),this._loadedChunks.add(e),this._calculateMetricsForChunk(e)}_calculateMetricsForChunk(e){let t=e*this.CHUNK_SIZE,n=this._chunks.get(e)||[],r=t*this._estimatedItemHeight;for(let e=0;e<n.length;e++){let n=t+e;this._positionCache[n]=r,this._sizeCache[n]=this._estimatedItemHeight,r+=this._estimatedItemHeight}}_preRenderChunk(){this._idleCallbackId&&cancelIdleCallback(this._idleCallbackId),this._idleCallbackId=requestIdleCallback(e=>{let t=this._lastVisible+1,n=0;for(;e.timeRemaining()>0&&n<this._preRenderChunkSize&&t<this._items.length;)this._prerenderItem(t),t++,n++;t<this._items.length&&this._preRenderChunk()})}_prerenderItem(e){let t=e%this._cacheSize;if(!this._templateBuffer.get(t)){let n=this._positionCache[e],r=this._sizeCache[e];if(n!==void 0&&r!==void 0){let i=this._getItemStyle(n,r),a=this._createItemTemplate(this._items[e],e,i);this._templateBuffer.set(t,a)}}}_getItemStyle(e,t){let n=this._layout===`vertical`;return{position:`absolute`,[n?`top`:`left`]:`${e}px`,[n?`height`:`width`]:`${t}px`,width:n?`100%`:`auto`,height:n?`auto`:`100%`,willChange:`transform`,contain:`content`,backfaceVisibility:`hidden`,WebkitFontSmoothing:`subpixel-antialiased`}}_createItemTemplate(e,t,n){let r=this._recycledNodes.pop(),i=`item-${t}`;return l`
2
- ${r?l`<div
1
+ import{AnimationAPI as e,LycoComponent as t,createEventBinder as n,getComponentCount as r,getRandomClassName as i,renderFn as a,renderFnOrArray as o,renderFnOrArrayOrCurry as s,renderFnOrCurry as c}from"./core-bQvrG1od.mjs";import{css as l,html as u,nothing as d,render as f}from"lit";import{createRef as p,ref as m}from"lit/directives/ref.js";import{styleMap as h}from"lit/directives/style-map.js";const g=typeof window>`u`,_=100;var v=class{constructor(e){this._capacity=e,this.buffer=Array(e)}set(e,t){this.buffer[e%this._capacity]=t}get(e){return this.buffer[e%this._capacity]}clear(){this.buffer.fill(void 0)}get capacity(){return this._capacity}},y=class{constructor(){this.data=new Float64Array}set(e,t){let n=e*3;this.data[n]=t.start,this.data[n+1]=t.end,this.data[n+2]=t.total}get(e){let t=e*3;return t<0||t+2>=this.data.length?{start:0,end:0,total:0}:{start:this.data[t],end:this.data[t+1],total:this.data[t+2]}}initialize(e){this.data=new Float64Array(Math.ceil(e/_)*3),this.data.fill(0)}},b=class{constructor(e,t,n){this._items=[],this._itemSize=50,this._layout=`vertical`,this._preloadCount=5,this._cacheSize=200,this._renderItem=()=>u``,this._containerRef=p(),this._firstVisible=0,this._lastVisible=0,this._positionCache=new Float64Array,this._sizeCache=new Float32Array,this._cacheInitialized=!1,this._totalContentSize=0,this._blockStore=new y,this._recycledNodes=[],this.RECYCLE_POOL_SIZE=20,this._preRenderChunkSize=5,this.CHUNK_SIZE=1e3,this._chunks=new Map,this._visibleChunkIndexes=new Set,this._loadedChunks=new Set,this._estimatedItemHeight=0,this._isLoading=!1,this._hasMore=!1,this._pageSize=50,this._fetchMoreThreshold=.8,this._getItemSize=e=>typeof this._itemSize==`function`?this._itemSize(e):this._itemSize,this._calculateMetrics=()=>{if(this._items.length===0){this._positionCache=new Float64Array,this._sizeCache=new Float32Array,this._blockStore.initialize(0),this._totalContentSize=0,this._cacheInitialized=!0,this._templateBuffer.clear();return}this._positionCache=new Float64Array(this._items.length),this._sizeCache=new Float32Array(this._items.length),this._blockStore.initialize(this._items.length);let e=0,t=0,n=0;for(let r=0;r<this._items.length;r++){let i=this._getItemSize(r);if(this._positionCache[r]=e,this._sizeCache[r]=i,n+=i,(r+1)%_===0||r===this._items.length-1){let a=Math.floor(r/_);this._blockStore.set(a,{start:t,end:e+i,total:n}),t=e+i,n=0}e+=i}this._totalContentSize=e,this._cacheInitialized=!0,this._templateBuffer.clear()},this._findItemIndexByOffset=e=>{if(!this._cacheInitialized||this._items.length===0)return 0;let t=0,n=this._items.length-1,r=0;for(;t<=n;){let i=Math.floor((t+n)/2);this._positionCache[i]<=e?(r=i,t=i+1):n=i-1}return r},this._updateVisibleRange=()=>{if(!this._containerRef.value)return;let e=this._layout===`vertical`,t=e?this._containerRef.value.scrollTop:this._containerRef.value.scrollLeft,n=e?this._containerRef.value.clientHeight:this._containerRef.value.clientWidth;this._firstVisible=Math.floor(t/this._estimatedItemHeight),this._lastVisible=Math.ceil((t+n)/this._estimatedItemHeight),this._checkAndLoadMore(),this.host.requestUpdate()},this._ticking=!1,this._lastUpdate=0,this.FRAME_BUDGET=16,this._scheduleUpdate=async()=>{if(this._ticking)return;let e=performance.now(),t=e-this._lastUpdate;t>=this.FRAME_BUDGET&&(this._ticking=!0,requestAnimationFrame(()=>{this._updateVisibleRange(),this._ticking=!1,this._lastUpdate=performance.now()}))},this.host=e,e.addController(this),this.updateConfig(t,n),this._templateBuffer=new v(this._cacheSize),this._pageSize=t.pageSize??50,this._fetchMoreThreshold=t.fetchMoreThreshold??.8,g||(this._setupObservers(),this._setupResizeObserver(),this._initializeChunks())}_initializeItems(e){this._items=[...e],this._calculateMetrics(),this._initializeChunks(),this.host.requestUpdate()}_updateMetricsForRange(e,t){if(t>this._positionCache.length){let e=new Float64Array(Math.max(t*1.5,1e3));e.set(this._positionCache),this._positionCache=e;let n=new Float32Array(Math.max(t*1.5,1e3));n.set(this._sizeCache),this._sizeCache=n}let n=e===0?0:this._positionCache[e-1]+this._sizeCache[e-1];for(let r=e;r<t;r++){let e=this._getItemSize(r);this._positionCache[r]=n,this._sizeCache[r]=e,n+=e}this._totalContentSize=n,this._updateChunkMetrics()}_setupObservers(){this._intersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&this._preRenderChunk()})},{rootMargin:`50%`}),this._mutationObserver=new MutationObserver(e=>{e.forEach(e=>{e.removedNodes.forEach(e=>{e instanceof HTMLElement&&this._recycledNodes.length<this.RECYCLE_POOL_SIZE&&this._recycledNodes.push(e)})})})}_setupResizeObserver(){this._resizeObserver=new ResizeObserver(e=>{for(let t of e)if(t.target instanceof HTMLElement){let e=t.contentRect.height;e>0&&(this._estimatedItemHeight=e,this._updateChunkMetrics())}})}_initializeChunks(){this._chunks.clear();let e=Math.ceil(this._items.length/this.CHUNK_SIZE);for(let t=0;t<e;t++){let e=t*this.CHUNK_SIZE,n=Math.min(e+this.CHUNK_SIZE,this._items.length);this._chunks.set(t,this._items.slice(e,n))}}_updateChunkMetrics(){if(!this._containerRef.value)return;let e=this._containerRef.value.clientHeight,t=this._items.length*this._estimatedItemHeight;this._blockStore.initialize(Math.ceil(this._items.length/this.CHUNK_SIZE));let n=0;for(let e=0;e<this._chunks.size;e++){let t=Math.min(this.CHUNK_SIZE,this._items.length-e*this.CHUNK_SIZE),r=t*this._estimatedItemHeight;this._blockStore.set(e,{start:n,end:n+r,total:r}),n+=r}this._totalContentSize=t,this._calculateVisibleChunks()}_calculateVisibleChunks(){if(!this._containerRef.value)return;let e=this._containerRef.value.scrollTop,t=this._containerRef.value.clientHeight,n=Math.floor(e/(this.CHUNK_SIZE*this._estimatedItemHeight)),r=Math.ceil((e+t)/(this.CHUNK_SIZE*this._estimatedItemHeight));this._visibleChunkIndexes.clear();for(let e=n;e<=r;e++)this._chunks.has(e)&&this._visibleChunkIndexes.add(e);this._preloadAdjacentChunks(n-1,r+1)}_preloadAdjacentChunks(e,t){for(let n=e;n<=t;n++)n>=0&&n<this._chunks.size&&!this._loadedChunks.has(n)&&requestIdleCallback(()=>{this._loadChunk(n)})}_loadChunk(e){if(this._loadedChunks.has(e))return;let t=e*this.CHUNK_SIZE,n=Math.min(t+this.CHUNK_SIZE,this._items.length),r=this._items.slice(t,n);this._chunks.set(e,r),this._loadedChunks.add(e),this._calculateMetricsForChunk(e)}_calculateMetricsForChunk(e){let t=e*this.CHUNK_SIZE,n=this._chunks.get(e)||[],r=t*this._estimatedItemHeight;for(let e=0;e<n.length;e++){let n=t+e;this._positionCache[n]=r,this._sizeCache[n]=this._estimatedItemHeight,r+=this._estimatedItemHeight}}_preRenderChunk(){this._idleCallbackId&&cancelIdleCallback(this._idleCallbackId),this._idleCallbackId=requestIdleCallback(e=>{let t=this._lastVisible+1,n=0;for(;e.timeRemaining()>0&&n<this._preRenderChunkSize&&t<this._items.length;)this._prerenderItem(t),t++,n++;t<this._items.length&&this._preRenderChunk()})}_prerenderItem(e){let t=e%this._cacheSize;if(!this._templateBuffer.get(t)){let n=this._positionCache[e],r=this._sizeCache[e];if(n!==void 0&&r!==void 0){let i=this._getItemStyle(n,r),a=this._createItemTemplate(this._items[e],e,i);this._templateBuffer.set(t,a)}}}_getItemStyle(e,t){let n=this._layout===`vertical`;return{position:`absolute`,[n?`top`:`left`]:`${e}px`,[n?`height`:`width`]:`${t}px`,width:n?`100%`:`auto`,height:n?`auto`:`100%`,willChange:`transform`,contain:`content`,backfaceVisibility:`hidden`,WebkitFontSmoothing:`subpixel-antialiased`}}_createItemTemplate(e,t,n){let r=this._recycledNodes.pop(),i=`item-${t}`;return u`
2
+ ${r?u`<div
3
3
  .key=${i}
4
- style=${p(n)}
4
+ style=${h(n)}
5
5
  data-index=${t}
6
6
  .recycled=${r}
7
7
  >
8
8
  ${this._renderItem(e,t)}
9
- </div>`:l`<div .key=${i} style=${p(n)} data-index=${t}>
9
+ </div>`:u`<div .key=${i} style=${h(n)} data-index=${t}>
10
10
  ${this._renderItem(e,t)}
11
11
  </div>`}
12
- `}hostConnected(){if(m||this.host.updateComplete.then(()=>{this._containerRef.value&&(this._containerRef.value.addEventListener(`scroll`,this._scheduleUpdate),this._calculateMetrics(),this._updateVisibleRange(),this.host.requestUpdate())}),!m&&this._containerRef.value){var e,t,n;(e=this._intersectionObserver)?.observe(this._containerRef.value),(t=this._mutationObserver)?.observe(this._containerRef.value,{childList:!0,subtree:!0,attributes:!0}),(n=this._resizeObserver)?.observe(this._containerRef.value)}}hostDisconnected(){var e,t,n;!m&&this._containerRef.value&&this._containerRef.value.removeEventListener(`scroll`,this._scheduleUpdate),(e=this._intersectionObserver)?.disconnect(),(t=this._mutationObserver)?.disconnect(),(n=this._resizeObserver)?.disconnect(),this._idleCallbackId&&cancelIdleCallback(this._idleCallbackId)}hostUpdated(){!m&&!this._cacheInitialized&&this._containerRef.value&&this._items.length>0&&(this._calculateMetrics(),this._updateVisibleRange(),this.host.requestUpdate())}async updateConfig(e,t){let n=this._itemSize,r=this._cacheSize;this._itemSize=e.itemSize??50,this._layout=e.layout??`vertical`,this._preloadCount=e.preloadCount??5,this._cacheSize=e.cacheSize??200,this._renderItem=t,this._onLoadMore=e.onLoadMore,`items`in e&&this._initializeItems(e.items),this._pageSize=e.pageSize??this._pageSize,this._fetchMoreThreshold=e.fetchMoreThreshold??this._fetchMoreThreshold,r!==this._cacheSize&&(this._templateBuffer=new g(this._cacheSize)),n!==this._itemSize&&(this._calculateMetrics(),this._initializeChunks()),m||this._updateVisibleRange(),this.host.requestUpdate()}async _checkAndLoadMore(){if(!this._onLoadMore||this._isLoading||!this._containerRef.value)return;let e=this._lastVisible,t=this._pageSize||1e3,n=(e+1)%t===0;if(n){console.log(`Reached end of page, loading more...`,{lastVisibleIndex:e,pageSize:t,totalItems:this._items.length}),this._isLoading=!0;try{await this._onLoadMore()}finally{this._isLoading=!1}}}getRenderedItems(){if(!this._renderItem)return[];let e=[],t=new Set;for(let e of this._visibleChunkIndexes){let n=this._chunks.get(e);if(!n)continue;let r=e*this.CHUNK_SIZE;n.forEach((e,n)=>{let i=r+n;i>=this._firstVisible&&i<=this._lastVisible&&t.add(i)})}return Array.from(t).sort((e,t)=>e-t).forEach(t=>{let n=this._getItemStyle(this._positionCache[t]||t*this._estimatedItemHeight,this._sizeCache[t]||this._estimatedItemHeight);e.push(this._createItemTemplate(this._items[t],t,n))}),e}getContainerRef(){return this._containerRef}getTotalContentSize(){return this._totalContentSize}getLayout(){return this._layout}};const y=new WeakMap,b=()=>{if(m)return null;try{let e=document.currentScript;if(e&&`_$litElement$`in e)return e._$litElement$;if(customElements&&window.customElements){let e=document.querySelector(`virtualizer-example`);if(e&&`_$litElement$`in e)return e._$litElement$}}catch(e){console.warn(`Failed to get Lit host:`,e)}return null};function x(e){return e!==null&&typeof e.addController==`function`}function S(e,t){let n=b();if(!x(n)){console.warn(`Virtualizer: Running in fallback mode`);let n=t||e.renderItem||(e=>l`${String(e)}`),r=e.items;return l`
12
+ `}hostConnected(){if(g||this.host.updateComplete.then(()=>{this._containerRef.value&&(this._containerRef.value.addEventListener(`scroll`,this._scheduleUpdate),this._calculateMetrics(),this._updateVisibleRange(),this.host.requestUpdate())}),!g&&this._containerRef.value){var e,t,n;(e=this._intersectionObserver)?.observe(this._containerRef.value),(t=this._mutationObserver)?.observe(this._containerRef.value,{childList:!0,subtree:!0,attributes:!0}),(n=this._resizeObserver)?.observe(this._containerRef.value)}}hostDisconnected(){var e,t,n;!g&&this._containerRef.value&&this._containerRef.value.removeEventListener(`scroll`,this._scheduleUpdate),(e=this._intersectionObserver)?.disconnect(),(t=this._mutationObserver)?.disconnect(),(n=this._resizeObserver)?.disconnect(),this._idleCallbackId&&cancelIdleCallback(this._idleCallbackId)}hostUpdated(){!g&&!this._cacheInitialized&&this._containerRef.value&&this._items.length>0&&(this._calculateMetrics(),this._updateVisibleRange(),this.host.requestUpdate())}async updateConfig(e,t){let n=this._itemSize,r=this._cacheSize;this._itemSize=e.itemSize??50,this._layout=e.layout??`vertical`,this._preloadCount=e.preloadCount??5,this._cacheSize=e.cacheSize??200,this._renderItem=t,this._onLoadMore=e.onLoadMore,`items`in e&&this._initializeItems(e.items),this._pageSize=e.pageSize??this._pageSize,this._fetchMoreThreshold=e.fetchMoreThreshold??this._fetchMoreThreshold,r!==this._cacheSize&&(this._templateBuffer=new v(this._cacheSize)),n!==this._itemSize&&(this._calculateMetrics(),this._initializeChunks()),g||this._updateVisibleRange(),this.host.requestUpdate()}async _checkAndLoadMore(){if(!this._onLoadMore||this._isLoading||!this._containerRef.value)return;let e=this._lastVisible,t=this._pageSize||1e3,n=(e+1)%t===0;if(n){console.log(`Reached end of page, loading more...`,{lastVisibleIndex:e,pageSize:t,totalItems:this._items.length}),this._isLoading=!0;try{await this._onLoadMore()}finally{this._isLoading=!1}}}getRenderedItems(){if(!this._renderItem)return[];let e=[],t=new Set;for(let e of this._visibleChunkIndexes){let n=this._chunks.get(e);if(!n)continue;let r=e*this.CHUNK_SIZE;n.forEach((e,n)=>{let i=r+n;i>=this._firstVisible&&i<=this._lastVisible&&t.add(i)})}return Array.from(t).sort((e,t)=>e-t).forEach(t=>{let n=this._getItemStyle(this._positionCache[t]||t*this._estimatedItemHeight,this._sizeCache[t]||this._estimatedItemHeight);e.push(this._createItemTemplate(this._items[t],t,n))}),e}getContainerRef(){return this._containerRef}getTotalContentSize(){return this._totalContentSize}getLayout(){return this._layout}};const x=new WeakMap,S=()=>{if(g)return null;try{let e=document.currentScript;if(e&&`_$litElement$`in e)return e._$litElement$;if(customElements&&window.customElements){let e=document.querySelector(`virtualizer-example`);if(e&&`_$litElement$`in e)return e._$litElement$}}catch(e){console.warn(`Failed to get Lit host:`,e)}return null};function C(e){return e!==null&&typeof e.addController==`function`}function w(e,t){let n=S();if(!C(n)){console.warn(`Virtualizer: Running in fallback mode`);let n=t||e.renderItem||(e=>u`${String(e)}`),r=e.items;return u`
13
13
  <div style="overflow: auto; height: 100%; position: relative;">
14
14
  <div style="position: relative;">
15
15
  ${r.map((e,t)=>n(e,t))}
16
16
  </div>
17
17
  </div>
18
- `}let r=y.get(n);if(!r){let i=t||e.renderItem||(e=>l`${e}`);r=new v(n,e,i),y.set(n,r)}let i=t=>{r.updateConfig(e,t);let n={position:`relative`,overflow:m?`visible`:`auto`,[r.getLayout()===`vertical`?`height`:`width`]:`100%`,[r.getLayout()===`vertical`?`minHeight`:`minWidth`]:`1px`},i={position:`relative`,[r.getLayout()===`vertical`?`height`:`width`]:`${r.getTotalContentSize()}px`,transform:r.getLayout()===`vertical`?`translateY(0)`:`translateX(0)`};return l`
18
+ `}let r=x.get(n);if(!r){let i=t||e.renderItem||(e=>u`${e}`);r=new b(n,e,i),x.set(n,r)}let i=t=>{r.updateConfig(e,t);let n={position:`relative`,overflow:g?`visible`:`auto`,[r.getLayout()===`vertical`?`height`:`width`]:`100%`,[r.getLayout()===`vertical`?`minHeight`:`minWidth`]:`1px`},i={position:`relative`,[r.getLayout()===`vertical`?`height`:`width`]:`${r.getTotalContentSize()}px`,transform:r.getLayout()===`vertical`?`translateY(0)`:`translateX(0)`};return u`
19
19
  <div
20
- ${f(r.getContainerRef())}
21
- style=${p(n)}
22
- @scroll=${m?u:()=>r.host.requestUpdate()}
20
+ ${m(r.getContainerRef())}
21
+ style=${h(n)}
22
+ @scroll=${g?d:()=>r.host.requestUpdate()}
23
23
  >
24
- <div style=${p(i)}>
24
+ <div style=${h(i)}>
25
25
  ${r.getRenderedItems()}
26
26
  </div>
27
27
  </div>
28
- `};return t===void 0?`renderItem`in e?i(e.renderItem):e=>i(e):i(t)}function C(e,n){if(n===void 0){let t=t=>C(e,t??l``);return t.html=(t,...n)=>C(e,l(t,...n)),t}let r=e?.fadeBg??`rgba(0,0,0,0.7)`,a=e?.zIndex??2e3,o=t(e?.on??{});return l`
28
+ `};return t===void 0?`renderItem`in e?i(e.renderItem):e=>i(e):i(t)}function T(e,t){if(t===void 0){let t=t=>T(e,t??u``);return t.html=(t,...n)=>T(e,u(t,...n)),t}let r=e?.fadeBg??`rgba(0,0,0,0.7)`,i=e?.zIndex??2e3,o=n(e?.on??{});return u`
29
29
  <div
30
- ${f(e=>{e?o.bind(e):o.unbindAll()})}
30
+ ${m(e=>{e?o.bind(e):o.unbindAll()})}
31
31
  style="
32
32
  position: fixed;
33
33
  top: 0; left: 0; right: 0; bottom: 0;
34
34
  background: ${r};
35
- z-index: ${a};
35
+ z-index: ${i};
36
36
  display: flex;
37
37
  justify-content: center;
38
38
  align-items: center;
39
39
  "
40
40
  >
41
- ${i(n)}
41
+ ${a(t)}
42
42
  </div>
43
- `}function w(e,n){let r=t(e?.on??{});return n===void 0?t=>w(e,t??[l``]):l`
43
+ `}function E(e,t){let r=n(e?.on??{});return t===void 0?t=>E(e,t??[u``]):u`
44
44
  <div
45
- ${f(e=>{e?r.bind(e):r.unbindAll()})}
46
45
  .class="${e?.className}"
46
+ ${m(e=>{e?r.bind(e):r.unbindAll()})}
47
47
  style="
48
48
  display: flex;
49
49
  flex-direction: column;
@@ -52,11 +52,11 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
52
52
  ${e?.style??``}
53
53
  "
54
54
  >
55
- ${a(n)}
55
+ ${o(t)}
56
56
  </div>
57
- `}function T(e,n){if(n===void 0){let t=t=>T(e,t??l``);return t.html=(t,...n)=>T(e,l(t,...n)),t}let r=e?.direction??`row`,a=t(e?.on??{});return l`
57
+ `}function D(e,t){if(t===void 0){let t=t=>D(e,t??u``);return t.html=(t,...n)=>D(e,u(t,...n)),t}let r=e?.direction??`row`,i=n(e?.on??{});return u`
58
58
  <div
59
- ${f(e=>{e?a.bind(e):a.unbindAll()})}
59
+ ${m(e=>{e?i.bind(e):i.unbindAll()})}
60
60
  style="
61
61
  display: flex;
62
62
  flex-direction: ${r};
@@ -65,68 +65,68 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
65
65
  ${e?.gap?`gap: ${e.gap};`:``}
66
66
  "
67
67
  >
68
- ${i(n)}
68
+ ${a(t)}
69
69
  </div>
70
- `}function E(e,n){if(n===void 0){let t=t=>E(e,t??l``);return t.html=(t,...n)=>E(e,l(t,...n)),t}let r=t(e?.on??{});return l`
70
+ `}function O(e,t){if(t===void 0){let t=t=>O(e,t??u``);return t.html=(t,...n)=>O(e,u(t,...n)),t}let r=n(e?.on??{});return u`
71
71
  <div
72
- ${f(e=>{e?r.bind(e):r.unbindAll()})}
72
+ ${m(e=>{e?r.bind(e):r.unbindAll()})}
73
73
  style="break-inside: avoid; margin-bottom: 16px;"
74
74
  >
75
- ${i(n)}
75
+ ${a(t)}
76
76
  </div>
77
- `}function D(e,n){if(n===void 0)return t=>D(e,t??[l``]);let r=e?.columns??1,i=t(e?.on??{});return l`
77
+ `}function k(e,t){if(t===void 0)return t=>k(e,t??[u``]);let r=e?.columns??1,i=n(e?.on??{});return u`
78
78
  <div
79
- ${f(e=>{e?i.bind(e):i.unbindAll()})}
79
+ ${m(e=>{e?i.bind(e):i.unbindAll()})}
80
80
  style="
81
81
  display: grid;
82
82
  grid-template-columns: repeat(${r}, 1fr);
83
83
  ${e?.gap?`gap: ${e.gap};`:``}
84
84
  "
85
85
  >
86
- ${a(n)}
86
+ ${o(t)}
87
87
  </div>
88
- `}function O(a,o){if(o===void 0){let e=e=>O(a,e??l``);return e.html=(e,...t)=>O(a,l(e,...t)),e}let s=n(`GridCol`),c=r(`GridCol::grid-col`)+`-lyco-now-`+s,u=a?.gap?`column-gap: ${a.gap};`:``,d=`
88
+ `}function A(e,o){if(o===void 0){let t=t=>A(e,t??u``);return t.html=(t,...n)=>A(e,u(t,...n)),t}let s=r(`GridCol`),c=i(`GridCol::grid-col`)+`-lyco-now-`+s,l=e?.gap?`column-gap: ${e.gap};`:``,d=`
89
89
  .${c} {
90
90
  display: grid;
91
91
  grid-auto-flow: column;
92
- ${u}
92
+ ${l}
93
93
  }
94
- `,p=t(a?.on??{});return e(`GridCol`,l`
94
+ `,f=n(e?.on??{});return t(`GridCol`,u`
95
95
  <style>
96
96
  ${d}
97
97
  </style>
98
98
  <div
99
- ${f(e=>{e?p.bind(e):p.unbindAll()})}
99
+ ${m(e=>{e?f.bind(e):f.unbindAll()})}
100
100
  class="${c}"
101
101
  >
102
- ${i(o)}
102
+ ${a(o)}
103
103
  </div>
104
- `)}function k(e,n){if(n===void 0){let t=t=>k(e,t??l``);return t.html=(t,...n)=>k(e,l(t,...n)),t}let r=t(e?.on??{});return l`
104
+ `)}function j(e,t){if(t===void 0){let t=t=>j(e,t??u``);return t.html=(t,...n)=>j(e,u(t,...n)),t}let r=n(e?.on??{});return u`
105
105
  <div
106
- ${f(e=>{e?r.bind(e):r.unbindAll()})}
106
+ ${m(e=>{e?r.bind(e):r.unbindAll()})}
107
107
  style="${e?.span?`grid-column: span ${e.span};`:``}"
108
108
  >
109
- ${i(n)}
109
+ ${a(t)}
110
110
  </div>
111
- `}function A(a,o){if(o===void 0){let e=e=>A(a,e??l``);return e.html=(e,...t)=>A(a,l(e,...t)),e}let s=n(`GridRow`),c=r(`GridRow::grid-row`)+`-lyco-now-`+s,u=a?.gap?`row-gap: ${a.gap};`:``,d=`
111
+ `}function M(e,o){if(o===void 0){let t=t=>M(e,t??u``);return t.html=(t,...n)=>M(e,u(t,...n)),t}let s=r(`GridRow`),c=i(`GridRow::grid-row`)+`-lyco-now-`+s,l=e?.gap?`row-gap: ${e.gap};`:``,d=`
112
112
  .${c} {
113
113
  display: grid;
114
114
  grid-auto-flow: row;
115
- ${u}
115
+ ${l}
116
116
  }
117
- `,p=t(a?.on??{});return e(`GridRow`,l`
117
+ `,f=n(e?.on??{});return t(`GridRow`,u`
118
118
  <style>
119
119
  ${d}
120
120
  </style>
121
121
  <div
122
- ${f(e=>{e?p.bind(e):p.unbindAll()})}
122
+ ${m(e=>{e?f.bind(e):f.unbindAll()})}
123
123
  class="${c}"
124
124
  >
125
- ${i(o)}
125
+ ${a(o)}
126
126
  </div>
127
- `)}function j(e,n){if(n===void 0)return t=>j(e,t??[l``]);let r=t(e?.on??{});return l`
127
+ `)}function N(e,t){if(t===void 0)return t=>N(e,t??[u``]);let r=n(e?.on??{});return u`
128
128
  <div
129
- ${f(e=>{e?r.bind(e):r.unbindAll()})}
129
+ ${m(e=>{e?r.bind(e):r.unbindAll()})}
130
130
  style="
131
131
  display: flex;
132
132
  flex-direction: row;
@@ -134,9 +134,9 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
134
134
  ${e?.space?`gap: ${e.space};`:``}
135
135
  "
136
136
  >
137
- ${a(n)}
137
+ ${o(t)}
138
138
  </div>
139
- `}function M(a,o){if(o===void 0){let e=e=>M(a,e??l``);return e.html=(e,...t)=>M(a,l(e,...t)),e}let s=a?.columnCount??3,c=a?.gap??`16px`,u=n(`WaterFlow`),d=r(`WaterFlow::waterflow`)+`-lyco-now-${u}`,p=`
139
+ `}function P(e,o){if(o===void 0){let t=t=>P(e,t??u``);return t.html=(t,...n)=>P(e,u(t,...n)),t}let s=e?.columnCount??3,c=e?.gap??`16px`,l=r(`WaterFlow`),d=i(`WaterFlow::waterflow`)+`-lyco-now-${l}`,f=`
140
140
  /* 使用 CSS 类来控制多列布局 */
141
141
  .${d} {
142
142
  column-count: ${s};
@@ -147,20 +147,20 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
147
147
  display: inline-block;
148
148
  width: 100%;
149
149
  }
150
- `,m=t(a?.on??{});return e(`WaterFlow`,l`
150
+ `,p=n(e?.on??{});return t(`WaterFlow`,u`
151
151
  <style>
152
- ${p}
152
+ ${f}
153
153
  </style>
154
154
 
155
155
  <div
156
- ${f(e=>{e?m.bind(e):m.unbindAll()})}
156
+ ${m(e=>{e?p.bind(e):p.unbindAll()})}
157
157
  class="${d}"
158
158
  >
159
- ${i(o)}
159
+ ${a(o)}
160
160
  </div>
161
- `)}function N(e,n){if(n===void 0){let t=t=>N(e,t??l``);return t.html=(t,...n)=>N(e,l(t,...n)),t}let r=e?.gap??`0px`,a=e?.firstHeight??`50%`,o=l``,s=l``;if(typeof n==`function`){var c;let e=(c=n.call)?.call(n,null)??[];o=e[0]??l``,s=e[1]??l``}else o=i(n);let u=t(e?.on??{});return l`
161
+ `)}function F(e,t){if(t===void 0){let t=t=>F(e,t??u``);return t.html=(t,...n)=>F(e,u(t,...n)),t}let r=e?.gap??`0px`,i=e?.firstHeight??`50%`,o=u``,s=u``;if(typeof t==`function`){var c;let e=(c=t.call)?.call(t,null)??[];o=e[0]??u``,s=e[1]??u``}else o=a(t);let l=n(e?.on??{});return u`
162
162
  <div
163
- ${f(e=>{e?u.bind(e):u.unbindAll()})}
163
+ ${m(e=>{e?l.bind(e):l.unbindAll()})}
164
164
  style="
165
165
  display: flex;
166
166
  flex-direction: column;
@@ -169,12 +169,12 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
169
169
  gap: ${r};
170
170
  "
171
171
  >
172
- <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
172
+ <div style="flex: 0 0 ${i}; overflow: auto;">${o}</div>
173
173
  <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
174
174
  </div>
175
- `}function P(e,n){if(n===void 0){let t=t=>P(e,t??l``);return t.html=(t,...n)=>P(e,l(t,...n)),t}let r=e?.gap??`0px`,a=e?.firstWidth??`50%`,o=l``,s=l``;if(typeof n==`function`){var c;let e=(c=n.call)?.call(n,null)??[];o=e[0]??l``,s=e[1]??l``}else o=i(n);let u=t(e?.on??{});return l`
175
+ `}function I(e,t){if(t===void 0){let t=t=>I(e,t??u``);return t.html=(t,...n)=>I(e,u(t,...n)),t}let r=e?.gap??`0px`,i=e?.firstWidth??`50%`,o=u``,s=u``;if(typeof t==`function`){var c;let e=(c=t.call)?.call(t,null)??[];o=e[0]??u``,s=e[1]??u``}else o=a(t);let l=n(e?.on??{});return u`
176
176
  <div
177
- ${f(e=>{e?u.bind(e):u.unbindAll()})}
177
+ ${m(e=>{e?l.bind(e):l.unbindAll()})}
178
178
  style="
179
179
  display: flex;
180
180
  flex-direction: row;
@@ -183,96 +183,96 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
183
183
  gap: ${r};
184
184
  "
185
185
  >
186
- <div style="flex: 0 0 ${a}; overflow: auto;">${o}</div>
186
+ <div style="flex: 0 0 ${i}; overflow: auto;">${o}</div>
187
187
  <div style="flex: 1 1 auto; overflow: auto;">${s}</div>
188
188
  </div>
189
- `}function F(a,o){if(o===void 0){let e=e=>F(a,e??l``);return e.html=(e,...t)=>F(a,l(e,...t)),e}let s=a?.direction??`vertical`,c=a?.height??`100%`,u=a?.width??`100%`,d=a?.customCss??``,p=n(`ScrollBar`),m=a?.className??r(`ScrollBar::scrollbar-container`)+`-lyco-now-`+p,h=s===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,g=`
190
- .${m} {
189
+ `}function L(e,o){if(o===void 0){let t=t=>L(e,t??u``);return t.html=(t,...n)=>L(e,u(t,...n)),t}let s=e?.direction??`vertical`,c=e?.height??`100%`,l=e?.width??`100%`,d=e?.customCss??``,f=r(`ScrollBar`),p=e?.className??i(`ScrollBar::scrollbar-container`)+`-lyco-now-`+f,h=s===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,g=`
190
+ .${p} {
191
191
  ${h};
192
- width: ${u};
192
+ width: ${l};
193
193
  height: ${c};
194
194
  }
195
- .${m}::-webkit-scrollbar {
195
+ .${p}::-webkit-scrollbar {
196
196
  width: 8px;
197
197
  height: 8px;
198
198
  }
199
- .${m}::-webkit-scrollbar-thumb {
199
+ .${p}::-webkit-scrollbar-thumb {
200
200
  background-color: rgba(0, 0, 0, 0.2);
201
201
  border-radius: 4px;
202
202
  }
203
- .${m}::-webkit-scrollbar-track {
203
+ .${p}::-webkit-scrollbar-track {
204
204
  background: rgba(0, 0, 0, 0.05);
205
205
  }
206
206
  ${d}
207
- `,_=t(a?.on??{});return e(`ScrollBar`,l`
207
+ `,_=n(e?.on??{});return t(`ScrollBar`,u`
208
208
  <style>
209
209
  ${g}
210
210
  </style>
211
211
  <div
212
- ${f(e=>{e?_.bind(e):_.unbindAll()})}
213
- class="${m}"
212
+ ${m(e=>{e?_.bind(e):_.unbindAll()})}
213
+ class="${p}"
214
214
  >
215
- ${i(o)}
215
+ ${a(o)}
216
216
  </div>
217
- `)}function I(e,n){if(n===void 0)return t=>I(e,t??[l``]);let r=e?.sidebarWidth??`240px`,i=e?.sidebarPosition??`left`,o=e?.gap??`0px`,s=l``,c=l``;if(typeof n==`function`){var u;let e=(u=n.call)?.call(n,null)??[];s=e[0]??l``,c=e[1]??l``}else c=a(n);let d=t(e?.on??{});return l`
217
+ `)}function R(e,t){if(t===void 0)return t=>R(e,t??[u``]);let r=e?.sidebarWidth??`240px`,i=e?.sidebarPosition??`left`,a=e?.gap??`0px`,s=u``,c=u``;if(typeof t==`function`){var l;let e=(l=t.call)?.call(t,null)??[];s=e[0]??u``,c=e[1]??u``}else c=o(t);let d=n(e?.on??{});return u`
218
218
  <div
219
- ${f(e=>{e?d.bind(e):d.unbindAll()})}
219
+ ${m(e=>{e?d.bind(e):d.unbindAll()})}
220
220
  style="
221
221
  display: flex;
222
222
  flex-direction: ${i===`left`?`row`:`row-reverse`};
223
223
  width: 100%;
224
224
  height: 100%;
225
- gap: ${o};
225
+ gap: ${a};
226
226
  "
227
227
  >
228
228
  <div style="flex: 0 0 ${r}; overflow: auto;">${s}</div>
229
229
  <div style="flex: 1 1 auto; overflow: auto;">${c}</div>
230
230
  </div>
231
- `}function ee(i={},a){if(a===void 0)return e=>ee(i,e??[l``]);let o=n(`Swiper`),{gap:s=`8px`,snapType:c=`mandatory`,height:u=`auto`,width:d=`100%`,className:p=r(`Swiper::swiper`)+`-lyco-now-${o}`,direction:m=`x`,scrollBehavior:h=`smooth`,align:g=`start`,showNavigation:_=!0,navigationPosition:v=`inside`,showPagination:y=!0,paginationType:b=`dots`,autoPlay:x=!1,interval:S=3e3,loop:C=!1,touchEnabled:w=!0,mouseWheel:T=!1,onSlideChange:E,on:D}=i,O=p,k=O+`-container`,A=O+`-slide`,j=O+`-navigation`,M=O+`-pagination`,N;N=a?typeof a==`function`?a():a:[];let P=N.length,[F,I]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,P-1));e.value!==n&&(e.value=n,E?.(n))}]})(),L=e=>{let t=typeof document<`u`?document.querySelector(`.${k}`):null;if(!t)return;let n=t.querySelectorAll(`.${A}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;m===`x`?(o=r.offsetLeft-t.offsetLeft,g===`center`?o-=(a.width-i.width)/2:g===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:h})):(o=r.offsetTop-t.offsetTop,g===`center`?o-=(a.height-i.height)/2:g===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:h})),I(e)},R=()=>{let e=F()+1>=P?C?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?C?P-1:F():F()-1;L(e)},B=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=e.querySelectorAll(`.${A}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(m===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),I(n)},V=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},H=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||m===`x`)&&e.preventDefault()},U=e=>{if(!w)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(m===`x`?a>0?z():R():o>0?z():R()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},W=e=>{T&&(e.preventDefault(),e.deltaY>0?R():z())},te=e=>{if(!x||!e)return;let t,n=()=>{t=setInterval(R,S)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},G=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,B),t.push(()=>e.removeEventListener(`scroll`,B)),w&&(e.addEventListener(`touchstart`,V),e.addEventListener(`touchmove`,H,{passive:!1}),e.addEventListener(`touchend`,U),t.push(()=>e.removeEventListener(`touchstart`,V)),t.push(()=>e.removeEventListener(`touchmove`,H)),t.push(()=>e.removeEventListener(`touchend`,U))),T&&(e.addEventListener(`wheel`,W,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,W)));let n=te(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(G,0);let K=l`
231
+ `}function ee(e={},a){if(a===void 0)return t=>ee(e,t??[u``]);let o=r(`Swiper`),{gap:s=`8px`,snapType:c=`mandatory`,height:l=`auto`,width:d=`100%`,className:f=i(`Swiper::swiper`)+`-lyco-now-${o}`,direction:p=`x`,scrollBehavior:h=`smooth`,align:g=`start`,showNavigation:_=!0,navigationPosition:v=`inside`,showPagination:y=!0,paginationType:b=`dots`,autoPlay:x=!1,interval:S=3e3,loop:C=!1,touchEnabled:w=!0,mouseWheel:T=!1,onSlideChange:E,on:D}=e,O=f,k=O+`-container`,A=O+`-slide`,j=O+`-navigation`,M=O+`-pagination`,N;N=a?typeof a==`function`?a():a:[];let P=N.length,[F,I]=(()=>{let e={value:0};return[()=>e.value,t=>{let n=Math.max(0,Math.min(t,P-1));e.value!==n&&(e.value=n,E?.(n))}]})(),L=e=>{let t=typeof document<`u`?document.querySelector(`.${k}`):null;if(!t)return;let n=t.querySelectorAll(`.${A}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;p===`x`?(o=r.offsetLeft-t.offsetLeft,g===`center`?o-=(a.width-i.width)/2:g===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:h})):(o=r.offsetTop-t.offsetTop,g===`center`?o-=(a.height-i.height)/2:g===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:h})),I(e)},R=()=>{let e=F()+1>=P?C?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?C?P-1:F():F()-1;L(e)},B=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=e.querySelectorAll(`.${A}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(p===`x`){let e=a.left+a.width/2-(o.left+o.width/2);s=Math.abs(e)}else{let e=a.top+a.height/2-(o.top+o.height/2);s=Math.abs(e)}s<r&&(r=s,n=i)}),I(n)},V=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},te=e=>{if(!w)return;let t=e.touches[0],n=e.currentTarget,r=parseFloat(n.dataset.touchStartX||`0`),i=parseFloat(n.dataset.touchStartY||`0`),a=t.clientX-r,o=t.clientY-i;(Math.abs(a)>Math.abs(o)||p===`x`)&&e.preventDefault()},H=e=>{if(!w)return;let t=e.currentTarget,n=parseFloat(t.dataset.touchStartX||`0`),r=parseFloat(t.dataset.touchStartY||`0`);if(!n&&!r)return;let i=e.changedTouches[0],a=i.clientX-n,o=i.clientY-r,s=Math.max(Math.abs(a),Math.abs(o))>30;s&&(p===`x`?a>0?z():R():o>0?z():R()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},U=e=>{T&&(e.preventDefault(),e.deltaY>0?R():z())},W=e=>{if(!x||!e)return;let t,n=()=>{t=setInterval(R,S)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},G=()=>{let e=typeof document<`u`?document.querySelector(`.${k}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,B),t.push(()=>e.removeEventListener(`scroll`,B)),w&&(e.addEventListener(`touchstart`,V),e.addEventListener(`touchmove`,te,{passive:!1}),e.addEventListener(`touchend`,H),t.push(()=>e.removeEventListener(`touchstart`,V)),t.push(()=>e.removeEventListener(`touchmove`,te)),t.push(()=>e.removeEventListener(`touchend`,H))),T&&(e.addEventListener(`wheel`,U,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,U)));let n=W(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(G,0);let K=u`
232
232
  <div class="${M}">
233
- ${Array.from({length:P},(e,t)=>l`
233
+ ${Array.from({length:P},(e,t)=>u`
234
234
  <button
235
235
  class="${t===F()?`active`:``}"
236
236
  @click=${()=>L(t)}
237
237
  ></button>
238
238
  `)}
239
239
  </div>
240
- `,q=l`
240
+ `,q=u`
241
241
  <div class="${M} fraction">
242
242
  <span class="current">${F()+1}</span>
243
243
  <span class="separator">/</span>
244
244
  <span class="total">${P}</span>
245
245
  </div>
246
- `,J=l`
246
+ `,J=u`
247
247
  <div class="${M} progressbar">
248
248
  <div
249
249
  class="progress"
250
250
  style="width: ${P>1?F()/(P-1)*100:0}%"
251
251
  ></div>
252
252
  </div>
253
- `,ne=l`
253
+ `,Y=u`
254
254
  <div class="${j}">
255
255
  <button class="prev" @click=${z}>◀</button>
256
256
  <button class="next" @click=${R}>▶</button>
257
257
  </div>
258
- `,Y=`
258
+ `,ne=`
259
259
  .${O} {
260
260
  position: relative;
261
261
  overflow: hidden;
262
262
  width: ${d};
263
- height: ${u};
263
+ height: ${l};
264
264
  }
265
265
 
266
266
  .${k} {
267
267
  width: 100%;
268
268
  height: 100%;
269
269
  overflow: auto;
270
- scroll-snap-type: ${m+` `+c};
270
+ scroll-snap-type: ${p+` `+c};
271
271
  -webkit-overflow-scrolling: touch;
272
272
  scroll-behavior: ${h};
273
273
  gap: ${s};
274
274
  display: flex;
275
- flex-direction: ${m===`x`?`row`:`column`};
275
+ flex-direction: ${p===`x`?`row`:`column`};
276
276
  }
277
277
 
278
278
  .${A} {
@@ -360,29 +360,29 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
360
360
  background-color: white;
361
361
  transition: width 0.3s;
362
362
  }
363
- `,X=t(D??{});return e(`Swiper`,l`
363
+ `,X=n(D??{});return t(`Swiper`,u`
364
364
  <style>
365
- ${Y}
365
+ ${ne}
366
366
  </style>
367
367
 
368
368
  <div
369
- ${f(e=>{e?X.bind(e):X.unbindAll()})}
369
+ ${m(e=>{e?X.bind(e):X.unbindAll()})}
370
370
  class="${O}"
371
371
  >
372
372
  <div class="${k}">
373
- ${N.map((e,t)=>l`
373
+ ${N.map((e,t)=>u`
374
374
  <div class="${A} --slide-${t}" key=${t}>
375
375
  ${e}
376
376
  </div>
377
377
  `)}
378
378
  </div>
379
379
 
380
- ${_?ne:null}
380
+ ${_?Y:null}
381
381
  ${y&&b===`dots`?K:null}
382
382
  ${y&&b===`fraction`?q:null}
383
383
  ${y&&b===`progressbar`?J:null}
384
384
  </div>
385
- `)}const L={borderRadius:{small:`4px`,medium:`8px`,large:`16px`,full:`9999px`},elevation:{level1:`0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14)`,level2:`0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12)`,level3:`0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10)`,level4:`0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05)`,level5:`0 20px 40px rgba(0,0,0,0.2)`},animation:{standard:`0.2s cubic-bezier(0.4, 0, 0.2, 1)`,emphasized:`0.3s cubic-bezier(0.4, 0, 0.2, 1)`,decelerated:`0.4s cubic-bezier(0, 0, 0.2, 1)`},colors:{primary:`#6750A4`,onPrimary:`#FFFFFF`,primaryContainer:`#EADDFF`,onPrimaryContainer:`#21005E`,secondary:`#625B71`,onSecondary:`#FFFFFF`,secondaryContainer:`#E8DEF8`,onSecondaryContainer:`#1E192B`,surface:`#FEF7FF`,onSurface:`#1C1B1F`,surfaceVariant:`#E7E0EB`,onSurfaceVariant:`#49454E`,error:`#B00020`}};function R(i){let{checked:a=!1,disabled:o=!1,size:s=`medium`,color:c=L.colors.primary,onChange:u,className:d=``,on:p={}}=i??{},m=n(`SwitchInput`),h=r(`SwitchInput::switch`)+`-lyco-now-${m}`,g={small:{width:32,height:16,thumbSize:12},medium:{width:44,height:24,thumbSize:18},large:{width:56,height:32,thumbSize:24}},{width:_,height:v,thumbSize:y}=g[s],b=`
385
+ `)}const z={borderRadius:{small:`4px`,medium:`8px`,large:`16px`,full:`9999px`},elevation:{level1:`0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14)`,level2:`0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12)`,level3:`0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10)`,level4:`0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05)`,level5:`0 20px 40px rgba(0,0,0,0.2)`},animation:{standard:`0.2s cubic-bezier(0.4, 0, 0.2, 1)`,emphasized:`0.3s cubic-bezier(0.4, 0, 0.2, 1)`,decelerated:`0.4s cubic-bezier(0, 0, 0.2, 1)`},colors:{primary:`#6750A4`,onPrimary:`#FFFFFF`,primaryContainer:`#EADDFF`,onPrimaryContainer:`#21005E`,secondary:`#625B71`,onSecondary:`#FFFFFF`,secondaryContainer:`#E8DEF8`,onSecondaryContainer:`#1E192B`,surface:`#FEF7FF`,onSurface:`#1C1B1F`,surfaceVariant:`#E7E0EB`,onSurfaceVariant:`#49454E`,error:`#B00020`}};function B(e){let{checked:a=!1,disabled:o=!1,size:s=`medium`,color:c=z.colors.primary,onChange:l,className:d=``,on:f={}}=e??{},p=r(`SwitchInput`),h=i(`SwitchInput::switch`)+`-lyco-now-${p}`,g={small:{width:32,height:16,thumbSize:12},medium:{width:44,height:24,thumbSize:18},large:{width:56,height:32,thumbSize:24}},{width:_,height:v,thumbSize:y}=g[s],b=`
386
386
  .${h} {
387
387
  display: inline-block;
388
388
  position: relative;
@@ -403,8 +403,8 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
403
403
  left: 0;
404
404
  right: 0;
405
405
  bottom: 0;
406
- background-color: ${o?L.colors.surfaceVariant:L.colors.onSurfaceVariant};
407
- transition: ${L.animation.standard};
406
+ background-color: ${o?z.colors.surfaceVariant:z.colors.onSurfaceVariant};
407
+ transition: ${z.animation.standard};
408
408
  border-radius: ${v}px;
409
409
  opacity: ${o?.38:.5};
410
410
  }
@@ -416,75 +416,75 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
416
416
  width: ${y}px;
417
417
  left: ${(v-y)/2}px;
418
418
  bottom: ${(v-y)/2}px;
419
- background-color: ${L.colors.surface};
420
- transition: ${L.animation.emphasized};
419
+ background-color: ${z.colors.surface};
420
+ transition: ${z.animation.emphasized};
421
421
  border-radius: 50%;
422
- box-shadow: ${L.elevation.level1};
422
+ box-shadow: ${z.elevation.level1};
423
423
  }
424
424
 
425
425
  .${h} input:checked + .slider {
426
- background-color: ${o?L.colors.surfaceVariant:c};
426
+ background-color: ${o?z.colors.surfaceVariant:c};
427
427
  opacity: ${o?.38:1};
428
428
  }
429
429
 
430
430
  .${h} input:checked + .slider:before {
431
431
  transform: translateX(${_-v}px);
432
- background-color: ${L.colors.onPrimary};
432
+ background-color: ${z.colors.onPrimary};
433
433
  }
434
434
 
435
435
  .${h}:hover .slider:before {
436
- box-shadow: ${o?L.elevation.level1:L.elevation.level2};
436
+ box-shadow: ${o?z.elevation.level1:z.elevation.level2};
437
437
  }
438
438
 
439
439
  .${h}:active .slider:before {
440
- box-shadow: ${o?L.elevation.level1:L.elevation.level3};
440
+ box-shadow: ${o?z.elevation.level1:z.elevation.level3};
441
441
  width: ${y*1.2}px;
442
442
  }
443
- `,x=t(p);return e(`SwitchInput`,l`
443
+ `,x=n(f);return t(`SwitchInput`,u`
444
444
  <style>
445
445
  ${b}
446
446
  </style>
447
447
  <label
448
448
  class="${h} ${d}"
449
- ${f(e=>{e?x.bind(e):x.unbindAll()})}
449
+ ${m(e=>{e?x.bind(e):x.unbindAll()})}
450
450
  >
451
451
  <input
452
452
  type="checkbox"
453
453
  ?checked=${a}
454
454
  ?disabled=${o}
455
- @change=${e=>{!o&&u&&u(e.target.checked)}}
455
+ @change=${e=>{!o&&l&&l(e.target.checked)}}
456
456
  />
457
457
  <span class="slider"></span>
458
458
  </label>
459
- `)}function z(e,n){let r=e?.top?`top: ${e.top};`:``,a=e?.right?`right: ${e.right};`:``,o=e?.bottom?`bottom: ${e.bottom};`:``,c=e?.left?`left: ${e.left};`:``,u=e?.width?`width: ${e.width};`:``,d=e?.height?`height: ${e.height};`:``,p=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,m=e?.style?e.style:``,h=e?.className?e.className:``,g=t(e?.on??{}),_=e=>l`
459
+ `)}function V(e,t){let r=e?.top?`top: ${e.top};`:``,i=e?.right?`right: ${e.right};`:``,o=e?.bottom?`bottom: ${e.bottom};`:``,s=e?.left?`left: ${e.left};`:``,l=e?.width?`width: ${e.width};`:``,d=e?.height?`height: ${e.height};`:``,f=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,p=e?.style?e.style:``,h=e?.className?e.className:``,g=n(e?.on??{}),_=e=>u`
460
460
  <div
461
- ${f(e=>{e?g.bind(e):g.unbindAll()})}
461
+ ${m(e=>{e?g.bind(e):g.unbindAll()})}
462
462
  class="${h}"
463
463
  style="
464
464
  position: absolute;
465
- ${r} ${a} ${o} ${c}
466
- ${u} ${d}
467
- ${p}
468
- ${m}
465
+ ${r} ${i} ${o} ${s}
466
+ ${l} ${d}
467
+ ${f}
468
+ ${p}
469
469
  "
470
470
  >
471
- ${i(e)}
471
+ ${a(e)}
472
472
  </div>
473
- `;return s(n,_)}function B(e,n){let r=e?.width??`300px`,i=e?.height??`auto`,a=e?.top??`20%`,s=e?.bottom??`auto`,c=e?.left??`50%`,u=e?.right??`auto`,d=c===`auto`?``:`transform: translateX(-50%);`,p=e?.background??`rgba(255, 255, 255, 0.3)`,m=e?.blur??`10px`,h=e?.borderRadius??`12px`,g=e?.padding??`16px`,_=e?.zIndex??1e3,v=t(e?.on??{}),y=e=>l`
473
+ `;return c(t,_)}function te(e,t){let r=e?.width??`300px`,i=e?.height??`auto`,a=e?.top??`20%`,o=e?.bottom??`auto`,c=e?.left??`50%`,l=e?.right??`auto`,d=c===`auto`?``:`transform: translateX(-50%);`,f=e?.background??`rgba(255, 255, 255, 0.3)`,p=e?.blur??`10px`,h=e?.borderRadius??`12px`,g=e?.padding??`16px`,_=e?.zIndex??1e3,v=n(e?.on??{}),y=e=>u`
474
474
  <div
475
- ${f(e=>{e?v.bind(e):v.unbindAll()})}
475
+ ${m(e=>{e?v.bind(e):v.unbindAll()})}
476
476
  style="
477
477
  position: fixed;
478
478
  top: ${a};
479
- bottom: ${s};
479
+ bottom: ${o};
480
480
  left: ${c};
481
- right: ${u};
481
+ right: ${l};
482
482
  ${d}
483
483
  width: ${r};
484
484
  height: ${i};
485
- background: ${p};
486
- backdrop-filter: blur(${m});
487
- -webkit-backdrop-filter: blur(${m});
485
+ background: ${f};
486
+ backdrop-filter: blur(${p});
487
+ -webkit-backdrop-filter: blur(${p});
488
488
  border-radius: ${h};
489
489
  padding: ${g};
490
490
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
@@ -495,14 +495,14 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
495
495
  >
496
496
  ${e}
497
497
  </div>
498
- `;return o(n,void 0,y)}function V(e,n){if(n===void 0)return t=>V(e,t??[l``]);let r=`${100/e.ratio}%`,i=e.maxWidth?`max-width: ${e.maxWidth};`:``,o=e.background?`background: ${e.background};`:``,s=e.overflow??`hidden`,c=t(e.on??{});return l`
498
+ `;return s(t,void 0,y)}function H(e,t){if(t===void 0)return t=>H(e,t??[u``]);let r=`${100/e.ratio}%`,i=e.maxWidth?`max-width: ${e.maxWidth};`:``,a=e.background?`background: ${e.background};`:``,s=e.overflow??`hidden`,c=n(e.on??{});return u`
499
499
  <div
500
- ${f(e=>{e?c.bind(e):c.unbindAll()})}
500
+ ${m(e=>{e?c.bind(e):c.unbindAll()})}
501
501
  style="
502
502
  position: relative;
503
503
  width: 100%;
504
504
  ${i}
505
- ${o}
505
+ ${a}
506
506
  overflow: ${s};
507
507
  "
508
508
  >
@@ -516,26 +516,26 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
516
516
  height: 100%;
517
517
  "
518
518
  >
519
- ${a(n)}
519
+ ${o(t)}
520
520
  </div>
521
521
  </div>
522
- `}function H(a,o){if(o===void 0){let e=e=>H(a,e);return e.html=(e,...t)=>H(a,l(e,...t)),e}let s=n(`AutoFitGrid`),c=r(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+s,u=a?.gap??`16px`,d=`
522
+ `}function U(e,o){if(o===void 0){let t=t=>U(e,t);return t.html=(t,...n)=>U(e,u(t,...n)),t}let s=r(`AutoFitGrid`),c=i(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+s,l=e?.gap??`16px`,d=`
523
523
  .${c} {
524
524
  display: grid;
525
- grid-template-columns: repeat(auto-fit, minmax(${a.minItemWidth}, 1fr));
526
- gap: ${u};
525
+ grid-template-columns: repeat(auto-fit, minmax(${e.minItemWidth}, 1fr));
526
+ gap: ${l};
527
527
  }
528
- `,p=t(a.on??{});return e(`AutoFitGrid`,l`
528
+ `,f=n(e.on??{});return t(`AutoFitGrid`,u`
529
529
  <style>
530
530
  ${d}
531
531
  </style>
532
532
  <div
533
533
  class="${c}"
534
- ${f(e=>{e?p.bind(e):p.unbindAll()})}
534
+ ${m(e=>{e?f.bind(e):f.unbindAll()})}
535
535
  >
536
- ${i(o)}
536
+ ${a(o)}
537
537
  </div>
538
- `)}function U(e,n){if(n===void 0)return t=>U(e,t??[l``]);let r=e?.size??`32px`,i=e?.overlap??`-8px`,o=t(e?.on??{}),s=(e,t)=>l`
538
+ `)}function W(e,t){if(t===void 0)return t=>W(e,t??[u``]);let r=e?.size??`32px`,i=e?.overlap??`-8px`,a=n(e?.on??{}),s=(e,t)=>u`
539
539
  <div
540
540
  style="
541
541
  width: ${r};
@@ -549,92 +549,92 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
549
549
  >
550
550
  ${e}
551
551
  </div>
552
- `;return l`
552
+ `;return u`
553
553
  <div
554
- ${f(e=>{e?o.bind(e):o.unbindAll()})}
554
+ ${m(e=>{e?a.bind(e):a.unbindAll()})}
555
555
  style="display: flex; align-items: center;"
556
556
  >
557
- ${a(n,s)}
557
+ ${o(t,s)}
558
558
  </div>
559
- `}function W(e,n){if(n===void 0){let t=t=>W(e,t??l``);return t.html=(t,...n)=>W(e,l(t,...n)),t}let r=e?.position??`top-right`,a=e?.size??`16px`,o=e?.background??`red`,s=e?.color??`#fff`,[c,u,d,p]=[r.includes(`top`)?`0`:`auto`,r.includes(`right`)?`0`:`auto`,r.includes(`bottom`)?`0`:`auto`,r.includes(`left`)?`0`:`auto`],m=t(e?.on??{});return l`
559
+ `}function G(e,t){if(t===void 0){let t=t=>G(e,t??u``);return t.html=(t,...n)=>G(e,u(t,...n)),t}let r=e?.position??`top-right`,i=e?.size??`16px`,o=e?.background??`red`,s=e?.color??`#fff`,[c,l,d,f]=[r.includes(`top`)?`0`:`auto`,r.includes(`right`)?`0`:`auto`,r.includes(`bottom`)?`0`:`auto`,r.includes(`left`)?`0`:`auto`],p=n(e?.on??{});return u`
560
560
  <div style="position: relative; display: inline-block;">
561
- ${i(n)}
561
+ ${a(t)}
562
562
  <div
563
- ${f(e=>{e?m.bind(e):m.unbindAll()})}
563
+ ${m(e=>{e?p.bind(e):p.unbindAll()})}
564
564
  style="
565
565
  position: absolute;
566
566
  top: ${c};
567
- right: ${u};
567
+ right: ${l};
568
568
  bottom: ${d};
569
- left: ${p};
570
- width: ${a};
571
- height: ${a};
569
+ left: ${f};
570
+ width: ${i};
571
+ height: ${i};
572
572
  background: ${o};
573
573
  color: ${s};
574
- font-size: calc(${a} * 0.6);
574
+ font-size: calc(${i} * 0.6);
575
575
  border-radius: 50%;
576
576
  display: flex;
577
577
  justify-content: center;
578
578
  align-items: center;
579
- transform: translate(${p===`0`?`-50%`:`0`}, ${c===`0`?`-50%`:`0`});
579
+ transform: translate(${f===`0`?`-50%`:`0`}, ${c===`0`?`-50%`:`0`});
580
580
  "
581
581
  >
582
582
  ${e?.content??``}
583
583
  </div>
584
584
  </div>
585
- `}function te(e,t){return e?n=>{typeof e==`function`?e(n):e={value:n},typeof t==`function`?t(n):t={value:n}}:t}function G(e,n){if(!n)return t=>G(e,t??d());let r=t(e?.on??{}),i=te(n,e=>{e?r.bind(e):r.unbindAll()});return l`
585
+ `}function K(e,t){if(!t)return t=>K(e,t??p());let r=n(e?.on??{}),i=e=>{e?(r.bind(e),typeof t==`function`?t(e):t={value:e}):r.unbindAll()};return u`
586
586
  <canvas
587
- ${f(i)}
587
+ ${m(i)}
588
588
  .class=${e?.className}
589
589
  style=${e?.style??``}
590
590
  ></canvas>
591
- `}function K(e,n){if(n===void 0)return t=>K(e,t??[l``]);let r=e?.padding??`16px`,i=e?.borderRadius??`8px`,o=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=e?.background??`#fff`,c=t(e?.on??{});return l`
591
+ `}function q(e,t){if(t===void 0)return t=>q(e,t??[u``]);let r=e?.padding??`16px`,i=e?.borderRadius??`8px`,a=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,s=e?.background??`#fff`,c=n(e?.on??{});return u`
592
592
  <div
593
- ${f(e=>{e?c.bind(e):c.unbindAll()})}
593
+ ${m(e=>{e?c.bind(e):c.unbindAll()})}
594
594
  style="
595
595
  background: ${s};
596
596
  border-radius: ${i};
597
- box-shadow: ${o};
597
+ box-shadow: ${a};
598
598
  padding: ${r};
599
599
  box-sizing: border-box;
600
600
  "
601
601
  >
602
- ${a(n)}
602
+ ${o(t)}
603
603
  </div>
604
- `}function q(e,n){if(n===void 0){let t=t=>q(e,t??l``);return t.html=(t,...n)=>q(e,l(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,a=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=t(e?.on??{});return l`
604
+ `}function J(e,t){if(t===void 0){let t=t=>J(e,t??u``);return t.html=(t,...n)=>J(e,u(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});return u`
605
605
  <div
606
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
606
+ ${m(e=>{e?s.bind(e):s.unbindAll()})}
607
607
  style="
608
608
  display: flex;
609
609
  justify-content: center;
610
610
  align-items: center;
611
- ${r} ${a} ${o}
611
+ ${r} ${i} ${o}
612
612
  "
613
613
  >
614
- ${i(n)}
614
+ ${a(t)}
615
615
  </div>
616
- `}function J(e,n){if(n===void 0)return t=>J(e,t??[l``]);let r=e?.maxWidth??`1024px`,i=e?.padding??`0 16px`,o=e?.background?`background: ${e.background};`:``,s=e?.fullHeight?`height: 100%;`:``,c=t(e?.on??{});return l`
616
+ `}function Y(e,t){if(t===void 0)return t=>Y(e,t??[u``]);let r=e?.maxWidth??`1024px`,i=e?.padding??`0 16px`,a=e?.background?`background: ${e.background};`:``,s=e?.fullHeight?`height: 100%;`:``,c=n(e?.on??{});return u`
617
617
  <div
618
- ${f(e=>{e?c.bind(e):c.unbindAll()})}
618
+ ${m(e=>{e?c.bind(e):c.unbindAll()})}
619
619
  style="
620
620
  width: 100%;
621
621
  max-width: ${r};
622
622
  margin-left: auto;
623
623
  margin-right: auto;
624
624
  padding: ${i};
625
- ${o}
625
+ ${a}
626
626
  ${s}
627
627
  box-sizing: border-box;
628
628
  "
629
629
  >
630
- ${a(n)}
630
+ ${o(t)}
631
631
  </div>
632
- `}function ne(e){let n=e?.orientation??`horizontal`,r=e?.thickness??`1px`,i=e?.color??`#e0e0e0`,a=e?.margin??(n===`horizontal`?`8px 0`:`0 8px`),o=t(e?.on??{}),s=n===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return l`<div
633
- ${f(e=>{e?o.bind(e):o.unbindAll()})}
632
+ `}function ne(e){let t=e?.orientation??`horizontal`,r=e?.thickness??`1px`,i=e?.color??`#e0e0e0`,a=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),o=n(e?.on??{}),s=t===`horizontal`?`width: 100%; height: ${r}; background: ${i}; margin: ${a};`:`width: ${r}; height: 100%; background: ${i}; margin: ${a};`;return u`<div
633
+ ${m(e=>{e?o.bind(e):o.unbindAll()})}
634
634
  style="${s}"
635
- ></div>`}function Y(e,n){if(n===void 0){let t=t=>Y(e,t??l``);return t.html=(t,...n)=>Y(e,l(t,...n)),t}let r=e?.columns??4,a=e?.gap??`24px`,o=e?.background??`#f8f8f8`,s=e?.padding??`40px 16px`,c=t(e?.on??{});return l`
635
+ ></div>`}function X(e,t){if(t===void 0){let t=t=>X(e,t??u``);return t.html=(t,...n)=>X(e,u(t,...n)),t}let r=e?.columns??4,i=e?.gap??`24px`,o=e?.background??`#f8f8f8`,s=e?.padding??`40px 16px`,c=n(e?.on??{});return u`
636
636
  <div
637
- ${f(e=>{e?c.bind(e):c.unbindAll()})}
637
+ ${m(e=>{e?c.bind(e):c.unbindAll()})}
638
638
  style="
639
639
  width: 100%;
640
640
  background: ${o};
@@ -646,37 +646,37 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
646
646
  style="
647
647
  display: grid;
648
648
  grid-template-columns: repeat(${r}, 1fr);
649
- gap: ${a};
649
+ gap: ${i};
650
650
  "
651
651
  >
652
- ${i(n)}
652
+ ${a(t)}
653
653
  </div>
654
654
  <div style="text-align: center; margin-top: 24px; color: #666;">
655
655
  © ${new Date().getFullYear()} Your Company. All rights reserved.
656
656
  </div>
657
657
  </div>
658
- `}function X(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function Z(a,o){if(o===void 0){let e=e=>Z(a,e??l``);return e.html=(e,...t)=>Z(a,l(e,...t)),e}let s=a.defaultColumns??1,c=a.gap??`16px`,u=n(`GridBreakpoint`),d=a.className??r(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+u,p=Object.entries(a.breakpoints).map(([e,t])=>`@media`+e+`{
658
+ `}function re(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function Z(e,o){if(o===void 0){let t=t=>Z(e,t??u``);return t.html=(t,...n)=>Z(e,u(t,...n)),t}let s=e.defaultColumns??1,c=e.gap??`16px`,l=r(`GridBreakpoint`),d=e.className??i(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+l,f=Object.entries(e.breakpoints).map(([e,t])=>`@media`+e+`{
659
659
  `+d+`{ grid-template-columns: repeat(`+t+`, 1fr); }
660
660
  }`).join(`
661
- `),m=`
661
+ `),p=`
662
662
  .${d} {
663
663
  display: grid;
664
664
  grid-template-columns: repeat(${s}, 1fr);
665
665
  gap: ${c};
666
666
  }
667
- ${p}`,h=t(a?.on??{});return e(`GridBreakpoint`,l`
667
+ ${f}`,h=n(e?.on??{});return t(`GridBreakpoint`,u`
668
668
  <style>
669
- ${m}
669
+ ${p}
670
670
  </style>
671
671
  <div
672
- ${f(e=>{e?h.bind(e):h.unbindAll()})}
672
+ ${m(e=>{e?h.bind(e):h.unbindAll()})}
673
673
  class="${d}"
674
674
  >
675
- ${i(o)}
675
+ ${a(o)}
676
676
  </div>
677
- `)}function re(e,n){if(n===void 0)return t=>re(e,t??[l``]);let r=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,i=e?.height??`400px`,o=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,s=t(e?.on??{});return l`
677
+ `)}function ie(e,t){if(t===void 0)return t=>ie(e,t??[u``]);let r=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,i=e?.height??`400px`,a=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,s=n(e?.on??{});return u`
678
678
  <div
679
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
679
+ ${m(e=>{e?s.bind(e):s.unbindAll()})}
680
680
  style="
681
681
  position: relative;
682
682
  width: 100%;
@@ -690,7 +690,7 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
690
690
  style="
691
691
  position: absolute;
692
692
  top: 0; left: 0; right: 0; bottom: 0;
693
- background: ${o};
693
+ background: ${a};
694
694
  "
695
695
  ></div>
696
696
  <div
@@ -709,78 +709,78 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
709
709
  box-sizing: border-box;
710
710
  "
711
711
  >
712
- ${a(n)}
712
+ ${o(t)}
713
713
  </div>
714
714
  </div>
715
- `}function Q(a,o){if(o===void 0){let e=e=>Q(a,e??l``);return e.html=(e,...t)=>Q(a,l(e,...t)),e}let s=a?.breakpoint??`(max-width: 600px)`,c=a?.mode??`hide`,u=n(`Hidden`),d=a?.className??r(`Hidden::hidden-container`)+`-lyco-now-`+u,p=c===`hide`?`@media ${s} { .${d} { display: none !important; } }`:`@media ${s} { .${d} { display: block !important; } }
716
- @media not ${s} { .${d} { display: none !important; } }`,m=`
715
+ `}function Q(e,o){if(o===void 0){let t=t=>Q(e,t??u``);return t.html=(t,...n)=>Q(e,u(t,...n)),t}let s=e?.breakpoint??`(max-width: 600px)`,c=e?.mode??`hide`,l=r(`Hidden`),d=e?.className??i(`Hidden::hidden-container`)+`-lyco-now-`+l,f=c===`hide`?`@media ${s} { .${d} { display: none !important; } }`:`@media ${s} { .${d} { display: block !important; } }
716
+ @media not ${s} { .${d} { display: none !important; } }`,p=`
717
717
  .${d} {
718
718
  display: block;
719
719
  }
720
- ${p}`,h=t(a?.on??{});return e(`Hidden`,l`
720
+ ${f}`,h=n(e?.on??{});return t(`Hidden`,u`
721
721
  <style>
722
- ${m}
722
+ ${p}
723
723
  </style>
724
724
  <div
725
- ${f(e=>{e?h.bind(e):h.unbindAll()})}
725
+ ${m(e=>{e?h.bind(e):h.unbindAll()})}
726
726
  class="${d}"
727
727
  >
728
- ${i(o)}
728
+ ${a(o)}
729
729
  </div>
730
- `)}function ie(e){return l` <li>${a(e)}</li> `}function ae(t,i){let o=t?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,s=t?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,c=t?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,u=n(`List`),d=t?.className??r(`List::list`)+`-lyco-now-${u}`,f=`
730
+ `)}function ae(e){return u` <li>${o(e)}</li> `}function oe(e,n){let a=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,s=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,c=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,l=r(`List`),d=e?.className??i(`List::list`)+`-lyco-now-${l}`,f=`
731
731
  ul.${d} {
732
732
  list-style: none;
733
733
  margin: 0;
734
734
  padding: 0;
735
- ${o};
735
+ ${a};
736
736
  }
737
737
  ul.${d} li {
738
738
  padding: 12px 16px;
739
- ${t?.bordered?`border-bottom: 1px solid #ddd`:``};
739
+ ${e?.bordered?`border-bottom: 1px solid #ddd`:``};
740
740
  }
741
741
  ul.${d} li:last-child {
742
- ${t?.bordered?`border-bottom: none`:``};
742
+ ${e?.bordered?`border-bottom: none`:``};
743
743
  }
744
744
  ${s}
745
745
  ${c}
746
- `.toString(),p=t=>e(`List`,l`
746
+ `.toString(),p=e=>t(`List`,u`
747
747
  <style>
748
748
  ${f}
749
749
  </style>
750
750
  <ul class="${d}">
751
- ${a(t)}
751
+ ${o(e)}
752
752
  </ul>
753
- `);return i===void 0?p:p(i)}function oe(i,s){let c=i?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,u=i?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,d=i?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,p=n(`ListGroup`),m=i?.className??r(`ListGroup::list-group`)+`-lyco-now-`+p,h=(e,t,n,r)=>n?l` <li>${e}</li> `:e,g=`
754
- ul.${m} {
753
+ `);return n===void 0?p:p(n)}function se(e,a){let c=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,l=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,d=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,f=r(`ListGroup`),p=e?.className??i(`ListGroup::list-group`)+`-lyco-now-`+f,h=(e,t,n,r)=>n?u` <li>${e}</li> `:e,g=`
754
+ ul.${p} {
755
755
  list-style: none;
756
756
  margin: 0;
757
757
  padding: 0;
758
758
  ${c};
759
759
  }
760
- ul.${m} li {
760
+ ul.${p} li {
761
761
  padding: 12px 16px;
762
- ${i?.bordered?`border-bottom: 1px solid #ddd`:``};
762
+ ${e?.bordered?`border-bottom: 1px solid #ddd`:``};
763
763
  }
764
- ul.${m} li:last-child {
765
- ${i?.bordered?`border-bottom: none`:``};
764
+ ul.${p} li:last-child {
765
+ ${e?.bordered?`border-bottom: none`:``};
766
766
  }
767
- ${u}
767
+ ${l}
768
768
  ${d}
769
- `,_=t(i?.on??{}),v=t=>e(`ListGroup`,l`
769
+ `,_=n(e?.on??{}),v=e=>t(`ListGroup`,u`
770
770
  <style>
771
771
  ${g}
772
772
  </style>
773
773
  <ul
774
- ${f(e=>{e?_.bind(e):_.unbindAll()})}
775
- class="${m}"
774
+ ${m(e=>{e?_.bind(e):_.unbindAll()})}
775
+ class="${p}"
776
776
  >
777
- ${a(t,h)}
777
+ ${o(e,h)}
778
778
  </ul>
779
- `);return o(s,v)}function se(e,n){if(n===void 0)return t=>se(e,t??[l``]);let r=e?.background??`rgba(0, 0, 0, 0.5)`,i=e?.zIndex??1e3,o=e?.fullScreen!==!1,s=t(e?.on??{});return l`
779
+ `);return s(a,v)}function ce(e,t){if(t===void 0)return t=>ce(e,t??[u``]);let r=e?.background??`rgba(0, 0, 0, 0.5)`,i=e?.zIndex??1e3,a=e?.fullScreen!==!1,s=n(e?.on??{});return u`
780
780
  <div
781
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
781
+ ${m(e=>{e?s.bind(e):s.unbindAll()})}
782
782
  style="
783
- position: ${o?`fixed`:`absolute`};
783
+ position: ${a?`fixed`:`absolute`};
784
784
  top: 0; left: 0; right: 0; bottom: 0;
785
785
  background: ${r};
786
786
  z-index: ${i};
@@ -789,107 +789,107 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
789
789
  align-items: center;
790
790
  "
791
791
  >
792
- ${a(n)}
792
+ ${o(t)}
793
793
  </div>
794
- `}function ce(e,n){if(n===void 0){let t=t=>ce(e,t??l``);return t.html=(t,...n)=>ce(e,l(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,a=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=t(e?.on??{});return l`
794
+ `}function le(e,t){if(t===void 0){let t=t=>le(e,t??u``);return t.html=(t,...n)=>le(e,u(t,...n)),t}let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});return u`
795
795
  <div
796
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
796
+ ${m(e=>{e?s.bind(e):s.unbindAll()})}
797
797
  style="
798
798
  position: relative;
799
- ${r} ${a} ${o}
799
+ ${r} ${i} ${o}
800
800
  overflow: hidden;
801
801
  "
802
802
  >
803
- ${i(n)}
803
+ ${a(t)}
804
804
  </div>
805
- `}function le(e){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=t(e?.on??{});return l`<div
806
- ${f(e=>{e?i.bind(e):i.unbindAll()})}
807
- style="${n} ${r}"
808
- ></div>`}function ue(i){let{type:a=`rect`,width:o=`100%`,height:s=`16px`,borderRadius:c=`4px`,animation:u=!0,animationType:d=`shimmer`,bgColor:p=`#eee`,highlightColor:m=`#ddd`,count:h=1,spacing:g=`8px`,direction:_=`vertical`,delay:v=0,autoHide:y=!1,duration:b=2e3,on:x={}}=i??{},S=n(`SkeletonLoader`),C=r(`SkeletonLoader::skeleton`)+`-lyco-now-`+S,w=t(x),T=a===`circle`?`border-radius:50%;width:${o};height:${o}`:`border-radius:${c};width:${o};height:${s}`,E=``,D=``;u&&(d===`shimmer`?(E=`@keyframes ${C}-shimmer { 0% { background-color: ${p}; } 50% { background-color: ${m}; } 100% { background-color: ${p}; } }`,D=`animation:${C}-shimmer 1.2s infinite ease-in-out;`):(E=`@keyframes ${C}-pulse { 0% { opacity:1; } 50% { opacity:0.4; } 100% { opacity:1; } }`,D=`animation:${C}-pulse 1.2s infinite ease-in-out;`));let O=_===`horizontal`?`display:flex;flex-direction:row;gap:${g}`:`display:flex;flex-direction:column;gap:${g}`,k=[];for(let e=0;e<h;e++)k.push(l`
805
+ `}function ue(e){let t=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=n(e?.on??{});return u`<div
806
+ ${m(e=>{e?i.bind(e):i.unbindAll()})}
807
+ style="${t} ${r}"
808
+ ></div>`}function de(e){let{type:a=`rect`,width:o=`100%`,height:s=`16px`,borderRadius:c=`4px`,animation:l=!0,animationType:d=`shimmer`,bgColor:f=`#eee`,highlightColor:p=`#ddd`,count:h=1,spacing:g=`8px`,direction:_=`vertical`,delay:v=0,autoHide:y=!1,duration:b=2e3,on:x={}}=e??{},S=r(`SkeletonLoader`),C=i(`SkeletonLoader::skeleton`)+`-lyco-now-`+S,w=n(x),T=a===`circle`?`border-radius:50%;width:${o};height:${o}`:`border-radius:${c};width:${o};height:${s}`,E=``,D=``;l&&(d===`shimmer`?(E=`@keyframes ${C}-shimmer { 0% { background-color: ${f}; } 50% { background-color: ${p}; } 100% { background-color: ${f}; } }`,D=`animation:${C}-shimmer 1.2s infinite ease-in-out;`):(E=`@keyframes ${C}-pulse { 0% { opacity:1; } 50% { opacity:0.4; } 100% { opacity:1; } }`,D=`animation:${C}-pulse 1.2s infinite ease-in-out;`));let O=_===`horizontal`?`display:flex;flex-direction:row;gap:${g}`:`display:flex;flex-direction:column;gap:${g}`,k=[];for(let e=0;e<h;e++)k.push(u`
809
809
  <div
810
810
  class="${C}"
811
- style="${T};background-color:${p};${D};opacity:0;transition:opacity 0.3s"
812
- ${f(e=>{e&&w.bind(e)})}
811
+ style="${T};background-color:${f};${D};opacity:0;transition:opacity 0.3s"
812
+ ${m(e=>{e&&w.bind(e)})}
813
813
  ></div>
814
- `);function A(e){let t=Array.from(e.querySelectorAll(`.${C}`));setTimeout(()=>{t.forEach(e=>e.style.opacity=`1`),y&&setTimeout(()=>{t.forEach(e=>e.style.opacity=`0`)},b)},v)}return e(`SkeletonLoader`,l`
814
+ `);function A(e){let t=Array.from(e.querySelectorAll(`.${C}`));setTimeout(()=>{t.forEach(e=>e.style.opacity=`1`),y&&setTimeout(()=>{t.forEach(e=>e.style.opacity=`0`)},b)},v)}return t(`SkeletonLoader`,u`
815
815
  <style>
816
816
  ${E}
817
817
  </style>
818
818
  <div
819
819
  style="${O}"
820
- ${f(e=>e&&A(e))}
820
+ ${m(e=>e&&A(e))}
821
821
  >
822
822
  ${k}
823
823
  </div>
824
- `)}function de(e){let n=t(e?.on??{});return l`<div
825
- ${f(e=>{e?n.bind(e):n.unbindAll()})}
824
+ `)}function fe(e){let t=n(e?.on??{});return u`<div
825
+ ${m(e=>{e?t.bind(e):t.unbindAll()})}
826
826
  style="flex: 1 1 auto;"
827
- ></div>`}function fe(e,n){if(n===void 0){let t=t=>fe(e,t??l``);return t.html=(t,...n)=>fe(e,l(t,...n)),t}let r=e?.top?`top: ${e.top};`:``,a=e?.bottom?`bottom: ${e.bottom};`:``,o=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,s=t(e?.on??{});return l`
827
+ ></div>`}function pe(e,t){if(t===void 0){let t=t=>pe(e,t??u``);return t.html=(t,...n)=>pe(e,u(t,...n)),t}let r=e?.top?`top: ${e.top};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,o=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,s=n(e?.on??{});return u`
828
828
  <div
829
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
829
+ ${m(e=>{e?s.bind(e):s.unbindAll()})}
830
830
  style="
831
831
  position: sticky;
832
- ${r} ${a}
832
+ ${r} ${i}
833
833
  ${o}
834
834
  "
835
835
  >
836
- ${i(n)}
836
+ ${a(t)}
837
837
  </div>
838
- `}function pe(a,o){if(o===void 0){let e=e=>pe(a,e??l``);return e.html=(e,...t)=>pe(a,l(e,...t)),e}let s=n(`Table`),c=a?.className??r(`Table::table`)+`-lyco-now-${s}`,u=a?.striped?`
838
+ `}function me(e,o){if(o===void 0){let t=t=>me(e,t??u``);return t.html=(t,...n)=>me(e,u(t,...n)),t}let s=r(`Table`),c=e?.className??i(`Table::table`)+`-lyco-now-${s}`,l=e?.striped?`
839
839
  .${c} tr:nth-child(even) {
840
- background: ${L.colors.surface};
840
+ background: ${z.colors.surface};
841
841
  }
842
- `:``,d=a?.hover?`
842
+ `:``,d=e?.hover?`
843
843
  .${c} tr:hover {
844
- background: ${L.colors.primaryContainer};
844
+ background: ${z.colors.primaryContainer};
845
845
  cursor: pointer;
846
846
  }
847
- `:``,p=a?.bordered?`
847
+ `:``,f=e?.bordered?`
848
848
  .${c}, .${c} th, .${c} td {
849
- border: 1px solid ${L.colors.surfaceVariant};
849
+ border: 1px solid ${z.colors.surfaceVariant};
850
850
  }
851
- `:``,m=`
851
+ `:``,p=`
852
852
  .${c} table {
853
853
  width: 100%;
854
854
  border-collapse: separate;
855
855
  border-spacing: 0;
856
- border-radius: ${L.borderRadius.medium};
856
+ border-radius: ${z.borderRadius.medium};
857
857
  overflow: hidden;
858
- box-shadow: ${L.elevation.level1};
858
+ box-shadow: ${z.elevation.level1};
859
859
  }
860
860
  .${c} th,
861
861
  .${c} td {
862
862
  padding: 16px;
863
863
  text-align: left;
864
- transition: background ${L.animation.standard};
864
+ transition: background ${z.animation.standard};
865
865
  }
866
866
  .${c} th {
867
- background: ${L.colors.surfaceVariant};
868
- color: ${L.colors.onSurfaceVariant};
867
+ background: ${z.colors.surfaceVariant};
868
+ color: ${z.colors.onSurfaceVariant};
869
869
  font-weight: 500;
870
870
  }
871
871
  .${c} td {
872
- border-bottom: 1px solid ${L.colors.surfaceVariant};
872
+ border-bottom: 1px solid ${z.colors.surfaceVariant};
873
873
  }
874
- ${u}
874
+ ${l}
875
875
  ${d}
876
- ${p}
877
- `,h=t(a?.on??{});return e(`Table`,l`
876
+ ${f}
877
+ `,h=n(e?.on??{});return t(`Table`,u`
878
878
  <style>
879
- ${m}
879
+ ${p}
880
880
  </style>
881
881
 
882
882
  <div
883
- ${f(e=>{e?h.bind(e):h.unbindAll()})}
883
+ ${m(e=>{e?h.bind(e):h.unbindAll()})}
884
884
  class="${c}"
885
885
  >
886
886
  <table>
887
- ${i(o)}
887
+ ${a(o)}
888
888
  </table>
889
889
  </div>
890
- `)}function me(e,n){let r=e?.direction??`row`,i=t(e?.on??{});return n===void 0?t=>me(e,t??l``):l`
890
+ `)}function he(e,t){let r=e?.direction??`row`,i=n(e?.on??{});return t===void 0?t=>he(e,t??u``):u`
891
891
  <div
892
- ${f(e=>{e?i.bind(e):i.unbindAll()})}
892
+ ${m(e=>{e?i.bind(e):i.unbindAll()})}
893
893
  style="
894
894
  display: flex;
895
895
  flex-direction: ${r};
@@ -899,22 +899,34 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
899
899
  ${e?.justify?`justify-content: ${e.justify};`:``}
900
900
  "
901
901
  >
902
- ${a(n)}
902
+ ${o(t)}
903
903
  </div>
904
- `}function he(e,n){let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,o=e?.background?`background: ${e.background};`:``,s=t(e?.on??{});if(n===void 0)return t=>he(e,t??[l``]);let c=`flex-start`,u=`flex-start`;switch(e?.align){case`top-right`:c=`flex-end`,u=`flex-start`;break;case`center`:c=`center`,u=`center`;break;case`bottom-left`:c=`flex-start`,u=`flex-end`;break;case`bottom-right`:c=`flex-end`,u=`flex-end`;break;default:c=`flex-start`,u=`flex-start`}return l`
904
+ `}function ge(e,t){let r=e?.width?`width: ${e.width};`:``,i=e?.height?`height: ${e.height};`:``,a=e?.background?`background: ${e.background};`:``,s=n(e?.on??{});if(t===void 0)return t=>ge(e,t??[u``]);let c=`flex-start`,l=`flex-start`;switch(e?.align){case`top-right`:c=`flex-end`,l=`flex-start`;break;case`center`:c=`center`,l=`center`;break;case`bottom-left`:c=`flex-start`,l=`flex-end`;break;case`bottom-right`:c=`flex-end`,l=`flex-end`;break;default:c=`flex-start`,l=`flex-start`}return u`
905
905
  <div
906
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
906
+ ${m(e=>{e?s.bind(e):s.unbindAll()})}
907
907
  style="
908
908
  position: relative;
909
909
  display: flex;
910
910
  justify-content: ${c};
911
- align-items: ${u};
912
- ${r} ${i} ${o}
911
+ align-items: ${l};
912
+ ${r} ${i} ${a}
913
913
  "
914
914
  >
915
- ${a(n)}
915
+ ${o(t)}
916
916
  </div>
917
- `}function ge(i){let{value:a=``,options:o=[],placeholder:s=``,disabled:c=!1,error:u=!1,className:d=``,style:p=``,maxHeight:m=`300px`,onChange:h,onInput:g,onFocus:_,onBlur:v,on:y={},optionRender:b}=i??{},x=n(`Combobox`),S=r(`Combobox::combobox`)+`-lyco-now-${x}`,C=!1,w=null,T=`
917
+ `}function _e(t,n,r=.1,i={}){let a=Array(t.length).fill(!1),o=`${r*100}vh`,s=`100vw`,c=t.map((t,r)=>u`
918
+ <div
919
+ ${m(o=>{if(o&&!a[r]){let s=new IntersectionObserver((o,s)=>{o.forEach(o=>{if(o.isIntersecting&&!a[r]){let c=o.target;a[r]=!0,f(n(t,r),c),e.applyAnimation(c,i);let l=c.querySelector(`[data-fallback]`);l&&l.remove(),s.unobserve(c)}})},{root:null,rootMargin:`0px`});s.observe(o)}})}
920
+ data-index="${r}"
921
+ style="transition: transform ${i.duration||`1s`} ease;"
922
+ >
923
+ <!-- 占位元素 -->
924
+ <div
925
+ data-fallback
926
+ style="height: ${o}; width: ${s};"
927
+ ></div>
928
+ </div>
929
+ `);return c}function ve(e){let{value:a=``,options:o=[],placeholder:s=``,disabled:c=!1,error:l=!1,className:d=``,style:f=``,maxHeight:p=`300px`,onChange:h,onInput:g,onFocus:_,onBlur:v,on:y={},optionRender:b}=e??{},x=r(`Combobox`),S=i(`Combobox::combobox`)+`-lyco-now-${x}`,C=!1,w=null,T=`
918
930
  .${S} {
919
931
  position: relative;
920
932
  width: 100%;
@@ -924,22 +936,22 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
924
936
  width: 100%;
925
937
  padding: 12px 16px;
926
938
  font-size: 16px;
927
- border: 1px solid ${u?L.colors.error:L.colors.surfaceVariant};
928
- border-radius: ${L.borderRadius.small};
929
- color: ${L.colors.onSurface};
930
- transition: all ${L.animation.standard};
939
+ border: 1px solid ${l?z.colors.error:z.colors.surfaceVariant};
940
+ border-radius: ${z.borderRadius.small};
941
+ color: ${z.colors.onSurface};
942
+ transition: all ${z.animation.standard};
931
943
  outline: none;
932
944
  box-sizing: border-box;
933
945
  }
934
946
 
935
947
  .${S} input:focus {
936
- border-color: ${L.colors.primary};
937
- box-shadow: 0 0 0 2px ${L.colors.primaryContainer};
948
+ border-color: ${z.colors.primary};
949
+ box-shadow: 0 0 0 2px ${z.colors.primaryContainer};
938
950
  }
939
951
 
940
952
  .${S} input:disabled {
941
- background: ${L.colors.surfaceVariant};
942
- color: ${L.colors.onSurfaceVariant};
953
+ background: ${z.colors.surfaceVariant};
954
+ color: ${z.colors.onSurfaceVariant};
943
955
  cursor: not-allowed;
944
956
  }
945
957
 
@@ -948,11 +960,11 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
948
960
  top: 100%;
949
961
  left: 0;
950
962
  right: 0;
951
- max-height: ${m};
963
+ max-height: ${p};
952
964
  overflow-y: auto;
953
- border: 1px solid ${L.colors.surfaceVariant};
954
- border-radius: ${L.borderRadius.small};
955
- box-shadow: ${L.elevation.level2};
965
+ border: 1px solid ${z.colors.surfaceVariant};
966
+ border-radius: ${z.borderRadius.small};
967
+ box-shadow: ${z.elevation.level2};
956
968
  z-index: 1000;
957
969
  display: none;
958
970
  }
@@ -964,24 +976,24 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
964
976
  .${S} .option {
965
977
  padding: 12px 16px;
966
978
  cursor: pointer;
967
- transition: background ${L.animation.standard};
979
+ transition: background ${z.animation.standard};
968
980
  }
969
981
 
970
982
  .${S} .option:hover {
971
- background: ${L.colors.primaryContainer};
983
+ background: ${z.colors.primaryContainer};
972
984
  }
973
985
 
974
986
  .${S} .option.selected {
975
- background: ${L.colors.primaryContainer};
976
- color: ${L.colors.onPrimaryContainer};
987
+ background: ${z.colors.primaryContainer};
988
+ color: ${z.colors.onPrimaryContainer};
977
989
  }
978
- `,E=t(y),D=null,O=()=>{C?D?.classList.remove(`open`):D?.classList.add(`open`),C=!C},k=(e,t)=>{if(w){w.value=e.value;let n=t.currentTarget;Array.from(D?.querySelectorAll(`.selected`)??[]).forEach(e=>e.classList.remove(`selected`)),!n.classList.contains(`selected`)&&n.classList.add(`selected`),h?.(e.value)}O()},A=e=>{let t=e.target;t.closest(`.${S}`)||(C=!1,D?.classList.remove(`open`))};return typeof window<`u`&&document.addEventListener(`click`,A),e(`Combobox`,l`
990
+ `,E=n(y),D=null,O=()=>{C?D?.classList.remove(`open`):D?.classList.add(`open`),C=!C},k=(e,t)=>{if(w){w.value=e.value;let n=t.currentTarget;Array.from(D?.querySelectorAll(`.selected`)??[]).forEach(e=>e.classList.remove(`selected`)),!n.classList.contains(`selected`)&&n.classList.add(`selected`),h?.(e.value)}O()},A=e=>{let t=e.target;t.closest(`.${S}`)||(C=!1,D?.classList.remove(`open`))};return typeof window<`u`&&document.addEventListener(`click`,A),t(`Combobox`,u`
979
991
  <style>
980
992
  ${T}
981
993
  </style>
982
- <div class="${S} ${d}" style="${p}">
994
+ <div class="${S} ${d}" style="${f}">
983
995
  <input
984
- ${f(e=>{e?(w=e,E.bind(e)):E.unbindAll()})}
996
+ ${m(e=>{e?(w=e,E.bind(e)):E.unbindAll()})}
985
997
  type="text"
986
998
  .value=${a}
987
999
  placeholder=${s}
@@ -991,10 +1003,10 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
991
1003
  @change=${e=>{let t=e.target;h?.(t.value)}}
992
1004
  />
993
1005
  <div
994
- ${f(e=>{e&&(D=e)})}
1006
+ ${m(e=>{e&&(D=e)})}
995
1007
  class="options"
996
1008
  >
997
- ${o.map(e=>l`
1009
+ ${o.map(e=>u`
998
1010
  <div
999
1011
  class="option ${e.value===(w?.value??a)?`selected`:``}"
1000
1012
  @click=${t=>k(e,t)}
@@ -1004,12 +1016,12 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1004
1016
  `)}
1005
1017
  </div>
1006
1018
  </div>
1007
- `)}function _e(e){let n=Math.min(100,Math.max(0,e?.value??0)),r=Math.min(100,Math.max(0,e?.bufferValue??0)),i=e?.color??`#1976d2`,a=e?.secondaryColor??`#90caf9`,o=e?.backgroundColor??`#e0e0e0`,s=e?.height??`4px`,u=e?.radius??`4px`,d=e?.showLabel??!1,p=e?.labelPosition??`inside`,m=e?.labelColor??(n>50?`white`:i),h=e?.labelFontSize??`12px`,g=e?.striped??!1,_=e?.animated??!1,v=e?.paused??!1,y=e?.transitionDuration??`0.3s`,b=e?.className??``,x=e?.style??``,S=t(e?.on??{}),C=g?`background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
1019
+ `)}function ye(e){let t=Math.min(100,Math.max(0,e?.value??0)),r=Math.min(100,Math.max(0,e?.bufferValue??0)),i=e?.color??`#1976d2`,a=e?.secondaryColor??`#90caf9`,o=e?.backgroundColor??`#e0e0e0`,s=e?.height??`4px`,c=e?.radius??`4px`,d=e?.showLabel??!1,f=e?.labelPosition??`inside`,p=e?.labelColor??(t>50?`white`:i),h=e?.labelFontSize??`12px`,g=e?.striped??!1,_=e?.animated??!1,v=e?.paused??!1,y=e?.transitionDuration??`0.3s`,b=e?.className??``,x=e?.style??``,S=n(e?.on??{}),C=g?`background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
1008
1020
  background-size: 1rem 1rem;
1009
1021
  animation: progress-stripes 1s linear infinite;
1010
- animation-play-state: ${v?`paused`:`running`};`:``;return l`
1022
+ animation-play-state: ${v?`paused`:`running`};`:``;return u`
1011
1023
  <style>
1012
- ${c`
1024
+ ${l`
1013
1025
  @keyframes progress-stripes {
1014
1026
  from {
1015
1027
  background-position: 1rem 0;
@@ -1022,16 +1034,16 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1022
1034
  </style>
1023
1035
 
1024
1036
  <div
1025
- ${f(e=>{e?S.bind(e):S.unbindAll()})}
1037
+ ${m(e=>{e?S.bind(e):S.unbindAll()})}
1026
1038
  class="lyco-progress ${b}"
1027
1039
  role="progressbar"
1028
1040
  aria-valuemin="0"
1029
1041
  aria-valuemax="100"
1030
- aria-valuenow="${n}"
1042
+ aria-valuenow="${t}"
1031
1043
  style="
1032
1044
  width: 100%;
1033
1045
  background: ${o};
1034
- border-radius: ${u};
1046
+ border-radius: ${c};
1035
1047
  height: ${s};
1036
1048
  position: relative;
1037
1049
  overflow: hidden;
@@ -1055,36 +1067,36 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1055
1067
  <div
1056
1068
  style="
1057
1069
  position: absolute;
1058
- width: ${n}%;
1070
+ width: ${t}%;
1059
1071
  height: 100%;
1060
1072
  background: ${i};
1061
- border-radius: ${u};
1073
+ border-radius: ${c};
1062
1074
  transition: width ${y} ease;
1063
1075
  ${C}
1064
1076
  "
1065
1077
  ></div>
1066
1078
 
1067
1079
  <!-- 文本标签 -->
1068
- ${d?l`
1080
+ ${d?u`
1069
1081
  <div
1070
1082
  style="
1071
- position: ${p===`inside`?`absolute`:`relative`};
1072
- ${p===`inside`?`right: 8px; top: 50%; transform: translateY(-50%);`:`margin-left: auto; margin-right: 4px;`}
1083
+ position: ${f===`inside`?`absolute`:`relative`};
1084
+ ${f===`inside`?`right: 8px; top: 50%; transform: translateY(-50%);`:`margin-left: auto; margin-right: 4px;`}
1073
1085
  font-size: ${h};
1074
- color: ${m};
1086
+ color: ${p};
1075
1087
  z-index: 1;
1076
1088
  "
1077
1089
  >
1078
- ${n}%
1090
+ ${t}%
1079
1091
  </div>
1080
1092
  `:``}
1081
1093
  ${e?.suffixIcon}
1082
1094
  </div>
1083
- `}function ve(r){let{size:i=`24px`,color:a=L.colors.primary,thickness:o=`2px`,speed:s=`1.2s`,className:u=``,opacity:d=1,startAngle:p=0,easing:m=`linear`,reverse:h=!1,style:g=``,on:_={},children:v,svgMode:y=!1,strokeLinecap:b=`butt`,strokeDasharray:x=``}=r??{},S=t(_),C=n(`Spinner`),w=l`
1095
+ `}function be(e){let{size:i=`24px`,color:a=z.colors.primary,thickness:o=`2px`,speed:s=`1.2s`,className:c=``,opacity:d=1,startAngle:f=0,easing:p=`linear`,reverse:h=!1,style:g=``,on:_={},children:v,svgMode:y=!1,strokeLinecap:b=`butt`,strokeDasharray:x=``}=e??{},S=n(_),C=r(`Spinner`),w=u`
1084
1096
  <div
1085
- class="${u}"
1097
+ class="${c}"
1086
1098
  style="display: inline-flex; align-items: center; justify-content: center; width: ${i}; height: ${i}; ${g}"
1087
- ${f()}
1099
+ ${m()}
1088
1100
  >
1089
1101
  <div
1090
1102
  style="
@@ -1095,33 +1107,33 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1095
1107
  border-radius: 50%;
1096
1108
  box-sizing: border-box;
1097
1109
  opacity: ${d};
1098
- animation: lyco-spin-${C} ${s} ${m} infinite ${h?`reverse`:`normal`};
1110
+ animation: lyco-spin-${C} ${s} ${p} infinite ${h?`reverse`:`normal`};
1099
1111
  "
1100
1112
  ></div>
1101
1113
  </div>
1102
1114
  <style>
1103
- ${c`
1115
+ ${l`
1104
1116
  @keyframes lyco-spin-${C} {
1105
1117
  from {
1106
- transform: rotate(${p}deg);
1118
+ transform: rotate(${f}deg);
1107
1119
  }
1108
1120
  to {
1109
- transform: rotate(${p+360}deg);
1121
+ transform: rotate(${f+360}deg);
1110
1122
  }
1111
1123
  }
1112
1124
  `.cssText}
1113
1125
  </style>
1114
- `,T=l`
1126
+ `,T=u`
1115
1127
  <div
1116
- class="${u}"
1128
+ class="${c}"
1117
1129
  style="display: inline-flex; align-items: center; justify-content: center; width: ${i}; height: ${i}; ${g}"
1118
- ${f(e=>{e?S.bind(e):S.unbindAll()})}
1130
+ ${m(e=>{e?S.bind(e):S.unbindAll()})}
1119
1131
  >
1120
1132
  <svg
1121
1133
  width="100%"
1122
1134
  height="100%"
1123
1135
  viewBox="0 0 100 100"
1124
- style="opacity: ${d}; overflow: visible; filter: drop-shadow(${L.elevation.level1});"
1136
+ style="opacity: ${d}; overflow: visible; filter: drop-shadow(${z.elevation.level1});"
1125
1137
  >
1126
1138
  <circle
1127
1139
  cx="50"
@@ -1134,58 +1146,58 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1134
1146
  stroke-linecap: ${b};
1135
1147
  stroke-dasharray: ${x};
1136
1148
  transform-origin: 50% 50%;
1137
- animation: lyco-svg-spin-${C} ${s} ${m} infinite ${h?`reverse`:`normal`};
1149
+ animation: lyco-svg-spin-${C} ${s} ${p} infinite ${h?`reverse`:`normal`};
1138
1150
  "
1139
1151
  ></circle>
1140
1152
  </svg>
1141
1153
  </div>
1142
1154
  <style>
1143
- ${c`
1155
+ ${l`
1144
1156
  @keyframes lyco-svg-spin-${C} {
1145
1157
  from {
1146
- transform: rotate(${p}deg);
1158
+ transform: rotate(${f}deg);
1147
1159
  }
1148
1160
  to {
1149
- transform: rotate(${p+360}deg);
1161
+ transform: rotate(${f+360}deg);
1150
1162
  }
1151
1163
  }
1152
1164
  `.cssText}
1153
1165
  </style>
1154
- `;return e(`Spinner`,y?T:w)}let $=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({});function ye(e,n){let{content:r,placement:a=$.Top,delay:o={show:200,hide:100},offset:c=8,hideOnClick:u=!1,interactive:d=!1,maxWidth:p=`200px`,theme:m=`dark`,className:h=``,style:g=``,zIndex:_=1e3,on:v={},onShow:y,onHide:b}=e,x=t(v),S,C;function w(e){clearTimeout(C),S=window.setTimeout(()=>{E.style.visibility=`visible`,E.style.opacity=`1`,y?.()},o.show)}function T(){clearTimeout(S),C=window.setTimeout(()=>{E.style.visibility=`hidden`,E.style.opacity=`0`,b?.()},o.hide)}let E,D=e=>l`
1166
+ `;return t(`Spinner`,y?T:w)}let $=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({});function xe(e,t){let{content:r,placement:i=$.Top,delay:o={show:200,hide:100},offset:s=8,hideOnClick:l=!1,interactive:d=!1,maxWidth:f=`200px`,theme:p=`dark`,className:h=``,style:g=``,zIndex:_=1e3,on:v={},onShow:y,onHide:b}=e,x=n(v),S,C;function w(e){clearTimeout(C),S=window.setTimeout(()=>{E.style.visibility=`visible`,E.style.opacity=`1`,y?.()},o.show)}function T(){clearTimeout(S),C=window.setTimeout(()=>{E.style.visibility=`hidden`,E.style.opacity=`0`,b?.()},o.hide)}let E,D=e=>u`
1155
1167
  <div
1156
- ${f(e=>{e?(x.bind(e),E=e.querySelector(`.lyco-tooltip-content`),e.addEventListener(`mouseenter`,()=>w(e)),e.addEventListener(`mouseleave`,()=>T()),u&&e.addEventListener(`click`,()=>T())):x.unbindAll()})}
1157
- class="lyco-tooltip lyco-tooltip--${m} ${h}"
1168
+ ${m(e=>{e?(x.bind(e),E=e.querySelector(`.lyco-tooltip-content`),e.addEventListener(`mouseenter`,()=>w(e)),e.addEventListener(`mouseleave`,()=>T()),l&&e.addEventListener(`click`,()=>T())):x.unbindAll()})}
1169
+ class="lyco-tooltip lyco-tooltip--${p} ${h}"
1158
1170
  style="position: relative; display: inline-block; ${g}"
1159
1171
  >
1160
- ${i(e)}
1172
+ ${a(e)}
1161
1173
  <div
1162
1174
  class="lyco-tooltip-content"
1163
1175
  style="
1164
1176
  position: absolute;
1165
- max-width: ${p};
1166
- ${a===$.Top?`bottom: 100%; left: 50%; transform: translateX(-50%)`:``}
1167
- ${a===$.Bottom?`top: 100%; left: 50%; transform: translateX(-50%)`:``}
1168
- ${a===$.Left?`right: 100%; top: 50%; transform: translateY(-50%)`:``}
1169
- ${a===$.Right?`left: 100%; top: 50%; transform: translateY(-50%)`:``}
1177
+ max-width: ${f};
1178
+ ${i===$.Top?`bottom: 100%; left: 50%; transform: translateX(-50%)`:``}
1179
+ ${i===$.Bottom?`top: 100%; left: 50%; transform: translateX(-50%)`:``}
1180
+ ${i===$.Left?`right: 100%; top: 50%; transform: translateY(-50%)`:``}
1181
+ ${i===$.Right?`left: 100%; top: 50%; transform: translateY(-50%)`:``}
1170
1182
  padding: 4px 8px;
1171
1183
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
1172
- background: ${m===`light`?`white; color: black`:`rgba(0,0,0,0.8); color: white`};
1184
+ background: ${p===`light`?`white; color: black`:`rgba(0,0,0,0.8); color: white`};
1173
1185
  border-radius: 4px;
1174
1186
  font-size: 12px;
1175
1187
  white-space: normal;
1176
- width: ${a===$.Left||a===$.Right?p:`auto`};
1188
+ width: ${i===$.Left||i===$.Right?f:`auto`};
1177
1189
  visibility: hidden;
1178
1190
  opacity: 0;
1179
1191
  transition: opacity ${o.show}ms;
1180
1192
  z-index: ${_};
1181
- margin: ${typeof c==`number`?a===$.Top||a===$.Bottom?`${c}px 0`:`0 ${c}px`:`${c.y}px ${c.x}px`};
1193
+ margin: ${typeof s==`number`?i===$.Top||i===$.Bottom?`${s}px 0`:`0 ${s}px`:`${s.y}px ${s.x}px`};
1182
1194
  ${d?`pointer-events: auto`:`pointer-events: none`};
1183
1195
  "
1184
1196
  >
1185
1197
  ${r}
1186
1198
  </div>
1187
1199
  </div>
1188
- `;return s(n,D)}let be=function(e){return e.Center=`center`,e.Left=`left`,e.Right=`right`,e.Top=`top`,e.Bottom=`bottom`,e.TopStart=`top-start`,e.TopEnd=`top-end`,e.BottomStart=`bottom-start`,e.BottomEnd=`bottom-end`,e.LeftStart=`left-start`,e.LeftEnd=`left-end`,e.RightStart=`right-start`,e.RightEnd=`right-end`,e}({});const xe=typeof window>`u`,Se=!xe&&`HTMLDialogElement`in window,Ce=e=>`
1200
+ `;return c(t,D)}let Se=function(e){return e.Center=`center`,e.Left=`left`,e.Right=`right`,e.Top=`top`,e.Bottom=`bottom`,e.TopStart=`top-start`,e.TopEnd=`top-end`,e.BottomStart=`bottom-start`,e.BottomEnd=`bottom-end`,e.LeftStart=`left-start`,e.LeftEnd=`left-end`,e.RightStart=`right-start`,e.RightEnd=`right-end`,e}({});const Ce=typeof window>`u`,we=!Ce&&`HTMLDialogElement`in window,Te=e=>`
1189
1201
  position: fixed;
1190
1202
  top: 0;
1191
1203
  left: 0;
@@ -1196,63 +1208,63 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1196
1208
  justify-content: center;
1197
1209
  z-index: 1000;
1198
1210
  background: rgba(0,0,0,0.3);
1199
- `;var we=class{constructor(e,t){this.isOpen=!1,this.returnValue=``,this.element=e,this.contentElement=t}show(){this.element.style.display=`flex`,this.isOpen=!0}showModal(){this.show()}close(){this.element.style.display=`none`,this.isOpen=!1,this.element.dispatchEvent(new Event(`close`))}get open(){return this.isOpen}getBoundingClientRect(){return this.contentElement.getBoundingClientRect()}get style(){return this.contentElement.style}};function Te(i,s){let c=i?.open??!1,u=i?.onClose,d=i?.className??``,p=i?.style??``,m=t(i?.on?i?.on:{}),h=i?.movable??!1,g=i?.placement??be.Center,_=i?.proxyRef??{value:null},v=null,y=!1,b={x:0,y:0},x=null,S=i?.mask??!0,C=n(`Dialog`),w=r(`Dialog::dialog`)+`-lyco-now-`+C;function T(e){return h?h===`self`?e:h&&`value`in h?h.value:null:null}function E(){if(typeof window>`u`)return``;let e=300,t=150,n=(window.innerWidth-e)/2,r=(window.innerHeight-t)/2;return`left: ${n}px; top: ${r}px;`}function D(){switch(g){case`left`:return`left: 32px; top: 50%;`;case`right`:return`right: 32px; top: 50%;`;case`top`:return`top: 32px; left: 50%;`;case`bottom`:return`bottom: 32px; left: 50%;`;case`top-start`:return`top: 32px; left: 32px;`;case`top-end`:return`top: 32px; right: 32px;`;case`bottom-start`:return`bottom: 32px; left: 32px;`;case`bottom-end`:return`bottom: 32px; right: 32px;`;case`left-start`:return`left: 32px; top: 32px;`;case`left-end`:return`left: 32px; bottom: 32px;`;case`right-start`:return`right: 32px; top: 32px;`;case`right-end`:return`right: 32px; bottom: 32px;`;default:return E()}}function O(){switch(g){case`top-start`:case`top-end`:case`bottom-start`:case`bottom-end`:case`left-start`:case`left-end`:case`right-start`:case`right-end`:return{txp:0,typ:0};case`left`:return{txp:0,typ:-50};case`right`:return{txp:0,typ:-50};case`top`:return{txp:-50,typ:0};case`bottom`:return{txp:-50,typ:0};default:return{txp:-50,typ:-50}}}function k(e,t){if(e.button!==0||(x=T(t),!x||!x.contains(e.target)))return;v=t,v.style.transform=`none`,e.preventDefault(),x.style.cursor=`grabbing`;let n=t.getBoundingClientRect(),{txp:r,typ:i}=O();b={x:e.clientX-(n.left+r/100*n.width),y:e.clientY-(n.top+i/100*n.height)},y=!0,document.addEventListener(`mousemove`,A),document.addEventListener(`mouseup`,j)}function A(e){if(!y||!x||!v)return;let t=v.getBoundingClientRect(),{txp:n,typ:r}=O(),i=e.clientX-b.x-n/100*t.width,a=e.clientY-b.y-r/100*t.height;v.style.left=`${i}px`,v.style.top=`${a}px`}function j(){y=!1,x=null,v=null,document.removeEventListener(`mousemove`,A),document.removeEventListener(`mouseup`,j)}function M(){let e=S?`rgba(0,0,0,0.5)`:`transparent`;return`
1211
+ `;var Ee=class{constructor(e,t){this.isOpen=!1,this.returnValue=``,this.element=e,this.contentElement=t}show(){this.element.style.display=`flex`,this.isOpen=!0}showModal(){this.show()}close(){this.element.style.display=`none`,this.isOpen=!1,this.element.dispatchEvent(new Event(`close`))}get open(){return this.isOpen}getBoundingClientRect(){return this.contentElement.getBoundingClientRect()}get style(){return this.contentElement.style}};function De(e,a){let c=e?.open??!1,l=e?.onClose,d=e?.className??``,f=e?.style??``,p=n(e?.on?e?.on:{}),h=e?.movable??!1,g=e?.placement??Se.Center,_=e?.proxyRef??{value:null},v=null,y=!1,b={x:0,y:0},x=null,S=e?.mask??!0,C=r(`Dialog`),w=i(`Dialog::dialog`)+`-lyco-now-`+C;function T(e){return h?h===`self`?e:h&&`value`in h?h.value:null:null}function E(){if(typeof window>`u`)return``;let e=300,t=150,n=(window.innerWidth-e)/2,r=(window.innerHeight-t)/2;return`left: ${n}px; top: ${r}px;`}function D(){switch(g){case`left`:return`left: 32px; top: 50%;`;case`right`:return`right: 32px; top: 50%;`;case`top`:return`top: 32px; left: 50%;`;case`bottom`:return`bottom: 32px; left: 50%;`;case`top-start`:return`top: 32px; left: 32px;`;case`top-end`:return`top: 32px; right: 32px;`;case`bottom-start`:return`bottom: 32px; left: 32px;`;case`bottom-end`:return`bottom: 32px; right: 32px;`;case`left-start`:return`left: 32px; top: 32px;`;case`left-end`:return`left: 32px; bottom: 32px;`;case`right-start`:return`right: 32px; top: 32px;`;case`right-end`:return`right: 32px; bottom: 32px;`;default:return E()}}function O(){switch(g){case`top-start`:case`top-end`:case`bottom-start`:case`bottom-end`:case`left-start`:case`left-end`:case`right-start`:case`right-end`:return{txp:0,typ:0};case`left`:return{txp:0,typ:-50};case`right`:return{txp:0,typ:-50};case`top`:return{txp:-50,typ:0};case`bottom`:return{txp:-50,typ:0};default:return{txp:-50,typ:-50}}}function k(e,t){if(e.button!==0||(x=T(t),!x||!x.contains(e.target)))return;v=t,v.style.transform=`none`,e.preventDefault(),x.style.cursor=`grabbing`;let n=t.getBoundingClientRect(),{txp:r,typ:i}=O();b={x:e.clientX-(n.left+r/100*n.width),y:e.clientY-(n.top+i/100*n.height)},y=!0,document.addEventListener(`mousemove`,A),document.addEventListener(`mouseup`,j)}function A(e){if(!y||!x||!v)return;let t=v.getBoundingClientRect(),{txp:n,typ:r}=O(),i=e.clientX-b.x-n/100*t.width,a=e.clientY-b.y-r/100*t.height;v.style.left=`${i}px`,v.style.top=`${a}px`}function j(){y=!1,x=null,v=null,document.removeEventListener(`mousemove`,A),document.removeEventListener(`mouseup`,j)}function M(){let e=S?`rgba(0,0,0,0.5)`:`transparent`;return`
1200
1212
  ${w}::-webkit-backdrop,
1201
1213
  ${w}::backdrop {
1202
1214
  background: ${e};
1203
- transition: opacity ${L.animation.standard};
1215
+ transition: opacity ${z.animation.standard};
1204
1216
  }
1205
- `}function N(t){let n=null,r=null;return e(`Dialog`,l`
1217
+ `}function N(e){let n=null,r=null;return t(`Dialog`,u`
1206
1218
  <div
1207
- ${f(e=>{if(e){if(n=e,r){let e=new we(n,r);_.value=e,m.bind(n),c?e.showModal():e.close()}}else m.unbindAll()})}
1208
- @click=${e=>{e.target===e.currentTarget&&u?.()}}
1209
- style=${Ce(c)}
1219
+ ${m(e=>{if(e){if(n=e,r){let e=new Ee(n,r);_.value=e,p.bind(n),c?e.showModal():e.close()}}else p.unbindAll()})}
1220
+ @click=${e=>{e.target===e.currentTarget&&l?.()}}
1221
+ style=${Te(c)}
1210
1222
  >
1211
1223
  <div
1212
- ${f(e=>{if(e&&(r=e,n)){let e=new we(n,r);_.value=e}})}
1224
+ ${m(e=>{if(e&&(r=e,n)){let e=new Ee(n,r);_.value=e}})}
1213
1225
  class="${w} ${d}"
1214
1226
  style="
1215
1227
  padding: 0;
1216
1228
  border: none;
1217
- background: ${L.colors.surface};
1218
- border-radius: ${L.borderRadius.large};
1229
+ background: ${z.colors.surface};
1230
+ border-radius: ${z.borderRadius.large};
1219
1231
  min-width: 300px;
1220
1232
  ${D()}
1221
1233
  ${typeof h==`boolean`?``:`cursor: default;`}
1222
- ${p}
1234
+ ${f}
1223
1235
  "
1224
1236
  >
1225
- ${a(t)}
1237
+ ${o(e)}
1226
1238
  </div>
1227
1239
  </div>
1228
- `)}function P(t){return xe||!Se?N(t):e(`Dialog`,l`
1240
+ `)}function P(e){return Ce||!we?N(e):t(`Dialog`,u`
1229
1241
  <dialog
1230
- ${f(e=>{if(e){_.value=e;let t=e;m.bind(t),requestAnimationFrame(()=>{try{c?t.showModal():t.close()}catch(e){console.warn(`Dialog operation failed:`,e)}})}else m.unbindAll()})}
1231
- @close=${u}
1242
+ ${m(e=>{if(e){_.value=e;let t=e;p.bind(t),requestAnimationFrame(()=>{try{c?t.showModal():t.close()}catch(e){console.warn(`Dialog operation failed:`,e)}})}else p.unbindAll()})}
1243
+ @close=${l}
1232
1244
  @mousedown=${e=>k(e,e.currentTarget)}
1233
1245
  style="
1234
1246
  padding: 0;
1235
1247
  border: none;
1236
- background: ${L.colors.surface};
1237
- border-radius: ${L.borderRadius.large};
1248
+ background: ${z.colors.surface};
1249
+ border-radius: ${z.borderRadius.large};
1238
1250
  min-width: 300px;
1239
1251
  margin: 0;
1240
1252
  position: fixed;
1241
- box-shadow: ${L.elevation.level3};
1242
- transition: transform ${L.animation.emphasized};
1253
+ box-shadow: ${z.elevation.level3};
1254
+ transition: transform ${z.animation.emphasized};
1243
1255
  ${D()}
1244
1256
  ${typeof h==`boolean`?``:`cursor: default;`}
1245
- ${p}
1257
+ ${f}
1246
1258
  "
1247
1259
  >
1248
- ${a(t)}
1260
+ ${o(e)}
1249
1261
  </dialog>
1250
1262
  <style>
1251
1263
  ${M()}
1252
1264
  </style>
1253
- `)}return o(s,P)}function Ee(e,n){let r=e?.className??``,i=e?.style??``,s=t(e?.on??{}),c=e=>l`
1265
+ `)}return s(a,P)}function Oe(e,t){let r=e?.className??``,i=e?.style??``,a=n(e?.on??{}),c=e=>u`
1254
1266
  <div
1255
- ${f(e=>{e?s.bind(e):s.unbindAll()})}
1267
+ ${m(e=>{e?a.bind(e):a.unbindAll()})}
1256
1268
  class="lyco-dialog-actions ${r}"
1257
1269
  style="
1258
1270
  display: flex;
@@ -1262,12 +1274,12 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1262
1274
  ${i}
1263
1275
  "
1264
1276
  >
1265
- ${a(e)}
1277
+ ${o(e)}
1266
1278
  </div>
1267
- `;return o(n,c)}function De(e,n){let r=e?.variant??`text`,a=e?.color??`default`,o=e?.className??``,c=e?.style??``,u=t({click:e?.onClick?t=>{var n;t.preventDefault(),(n=e.onClick)?.call(e,t)}:void 0,...e?.on}),d=e=>l`
1279
+ `;return s(t,c)}function ke(e,t){let r=e?.variant??`text`,i=e?.color??`default`,o=e?.className??``,s=e?.style??``,l=n({click:e?.onClick?t=>{var n;t.preventDefault(),(n=e.onClick)?.call(e,t)}:void 0,...e?.on}),d=e=>u`
1268
1280
  <button
1269
- ${f(e=>{e?u.bind(e):u.unbindAll()})}
1270
- class="lyco-dialog-button ${r} ${a} ${o}"
1281
+ ${m(e=>{e?l.bind(e):l.unbindAll()})}
1282
+ class="lyco-dialog-button ${r} ${i} ${o}"
1271
1283
  style="
1272
1284
  padding: 6px 16px;
1273
1285
  font-size: 14px;
@@ -1277,12 +1289,12 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1277
1289
  outline: none;
1278
1290
  margin: 0 4px;
1279
1291
  ${r===`contained`?`background: #1976d2; color: white;`:`background: transparent;`}
1280
- ${c}
1292
+ ${s}
1281
1293
  "
1282
1294
  >
1283
- ${i(e)}
1295
+ ${a(e)}
1284
1296
  </button>
1285
- `;return s(n,d)}function Oe(e,n){let r=e?.className??``,i=e?.style??``,s=t(e?.on??{}),c=e=>l`
1297
+ `;return c(t,d)}function Ae(e,t){let r=e?.className??``,i=e?.style??``,a=n(e?.on??{}),c=e=>u`
1286
1298
  <div
1287
1299
  class="lyco-dialog-content ${r}"
1288
1300
  style="
@@ -1294,11 +1306,11 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1294
1306
  ${i}
1295
1307
  "
1296
1308
  >
1297
- ${a(e)}
1309
+ ${o(e)}
1298
1310
  </div>
1299
- `;return o(n,c)}function ke(e,n){let r=e?.className??``,a=e?.style??``,o=t(e?.on??{}),c=e?.proxyRef??{value:null},u=e=>l`
1311
+ `;return s(t,c)}function je(e,t){let r=e?.className??``,i=e?.style??``,o=n(e?.on??{}),s=e?.proxyRef??{value:null},l=e=>u`
1300
1312
  <div
1301
- ${f(e=>{e?(c.value=e,o.bind(e)):o.unbindAll()})}
1313
+ ${m(e=>{e?(s.value=e,o.bind(e)):o.unbindAll()})}
1302
1314
  class="lyco-dialog-title ${r}"
1303
1315
  style="
1304
1316
  padding: 16px 24px;
@@ -1306,10 +1318,10 @@ import{LycoComponent as e,createEventBinder as t,getComponentCount as n,getRando
1306
1318
  font-weight: 500;
1307
1319
  line-height: 1.6;
1308
1320
  letter-spacing: 0.0075em;
1309
- ${a}
1321
+ ${i}
1310
1322
  "
1311
1323
  >
1312
- ${i(e)}
1324
+ ${a(e)}
1313
1325
  </div>
1314
- `;return s(n,u)}function Ae(e){return a(e)}export{Ae as $Html,z as AbsoluteBox,B as AcrylicBar,V as AspectRatio,H as AutoFitGrid,U as AvatarStack,W as Badge,G as Canvas,K as Card,q as Center,w as Column,N as ColumnSplit,ge as Combobox,J as Container,Te as Dialog,Ee as DialogActions,De as DialogButton,Oe as DialogContent,be as DialogPlacement,ke as DialogTitle,ne as Divider,T as Flex,E as FlowItem,Y as FooterLayout,X as ForEach,D as Grid,Z as GridBreakpoint,O as GridCol,k as GridItem,A as GridRow,re as HeroSection,Q as Hidden,C as LightboxContainer,ae as List,oe as ListGroup,ie as ListItem,se as Overlay,ce as PositionContainer,_e as Progress,j as Row,P as RowSplit,F as ScrollBar,I as SideBarContainer,le as SizedBox,ue as SkeletonLoader,de as Spacer,ve as Spinner,fe as Sticky,ee as Swiper,R as SwitchInput,pe as Table,S as Virtualizer,v as VirtualizerController,M as WaterFlow,ye as WithTooltip,me as Wrap,he as ZStack};
1326
+ `;return c(t,l)}function Me(e){return o(e)}export{Me as $Html,V as AbsoluteBox,te as AcrylicBar,H as AspectRatio,U as AutoFitGrid,W as AvatarStack,G as Badge,K as Canvas,q as Card,J as Center,E as Column,F as ColumnSplit,ve as Combobox,Y as Container,De as Dialog,Oe as DialogActions,ke as DialogButton,Ae as DialogContent,Se as DialogPlacement,je as DialogTitle,ne as Divider,D as Flex,O as FlowItem,X as FooterLayout,re as ForEach,k as Grid,Z as GridBreakpoint,A as GridCol,j as GridItem,M as GridRow,ie as HeroSection,Q as Hidden,_e as LazyForEach,T as LightboxContainer,oe as List,se as ListGroup,ae as ListItem,ce as Overlay,le as PositionContainer,ye as Progress,N as Row,I as RowSplit,L as ScrollBar,R as SideBarContainer,ue as SizedBox,de as SkeletonLoader,fe as Spacer,be as Spinner,pe as Sticky,ee as Swiper,B as SwitchInput,me as Table,w as Virtualizer,b as VirtualizerController,P as WaterFlow,xe as WithTooltip,he as Wrap,ge as ZStack};
1315
1327
  //# sourceMappingURL=index.es.js.map