lyco 1.2.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,7 +1,34 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=s(require(`lit`)),l=s(require(`lit/directives/ref.js`)),u=Symbol(`___LYCO_NULL___`);function d(e){return e?typeof e==`function`?e():e:c.html``}function f(e,t){let n=t??(e=>e);if(e===void 0)return c.html``;if(Array.isArray(e))return e.map((e,t)=>n(d(e),t,!0,!1));if(typeof e!=`function`)return n(d(e),void 0,!1,!1);let r=e();return Array.isArray(r)?r.map((e,t)=>n(d(e),t,!0,!1)):n(d(r),void 0,!1,!0)}function p(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function m(e,t){let n=t??(e=>e),r=e=>n(d(e));return e?r(e):r}function h(e,t,n){let r=t??(e=>e),i=e=>r(f(e,n));return e?i(e):i}const g=e=>({init:!1,prefix:e,className:u}),_={"GridBreakpoint::grid-breakpoint":g(`grid-breakpoint`),"Hidden::hidden-container":g(`hidden-container`),"ListGroup::list-group":g(`list-group`),"ScrollBar::scrollbar-container":g(`scrollbar-container`),"SkeletonLoader::skeleton-shimmer":g(`skeleton-shimmer`),"Swiper::swiper":g(`swiper`),"Table::table":g(`table`),"WaterFlow::waterflow":g(`waterflow`),"AutoFitGrid::auto-fit-grid":g(`auto-fit-grid`),"GridCol::grid-col":g(`grid-col`),"GridRow::grid-row":g(`grid-row`),"List::list":g(`list`)};function v(e){let t=_[e];return t.init||(_[e].init=!0,_[e].className=p(t.prefix)),_[e].className===u?p(t.prefix):_[e].className}const y={all:{value:0}};function b(e){var t;return(t=y[e])?.value||(y[e]={value:0}),y[e].value}function x(e,t){return y.all={value:y.all.value+1},y[e]===void 0?y[e]={value:0}:y[e].value=y[e].value+1,c.html`
2
- <!-- ${e} - ${y[e].value} -->
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=s(require(`lit`)),l=s(require(`lit/directives/ref.js`)),u=s(require(`lit/directives/style-map.js`)),d=typeof window>`u`,f=100;var p=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}},m=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/f)*3),this.data.fill(0)}},h=class{constructor(e,t,n){this._items=[],this._itemSize=50,this._layout=`vertical`,this._preloadCount=5,this._cacheSize=200,this._renderItem=()=>c.html``,this._containerRef=(0,l.createRef)(),this._firstVisible=0,this._lastVisible=0,this._positionCache=new Float64Array,this._sizeCache=new Float32Array,this._cacheInitialized=!1,this._totalContentSize=0,this._blockStore=new m,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)%f===0||r===this._items.length-1){let a=Math.floor(r/f);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 p(this._cacheSize),this._pageSize=t.pageSize??50,this._fetchMoreThreshold=t.fetchMoreThreshold??.8,d||(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 c.html`
2
+ ${r?c.html`<div
3
+ .key=${i}
4
+ style=${(0,u.styleMap)(n)}
5
+ data-index=${t}
6
+ .recycled=${r}
7
+ >
8
+ ${this._renderItem(e,t)}
9
+ </div>`:c.html`<div .key=${i} style=${(0,u.styleMap)(n)} data-index=${t}>
10
+ ${this._renderItem(e,t)}
11
+ </div>`}
12
+ `}hostConnected(){if(d||this.host.updateComplete.then(()=>{this._containerRef.value&&(this._containerRef.value.addEventListener(`scroll`,this._scheduleUpdate),this._calculateMetrics(),this._updateVisibleRange(),this.host.requestUpdate())}),!d&&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;!d&&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(){!d&&!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 p(this._cacheSize)),n!==this._itemSize&&(this._calculateMetrics(),this._initializeChunks()),d||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 g=new WeakMap,_=()=>{if(d)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 v(e){return e!==null&&typeof e.addController==`function`}function y(e,t){let n=_();if(!v(n)){console.warn(`Virtualizer: Running in fallback mode`);let n=t||e.renderItem||(e=>c.html`${String(e)}`),r=e.items;return c.html`
13
+ <div style="overflow: auto; height: 100%; position: relative;">
14
+ <div style="position: relative;">
15
+ ${r.map((e,t)=>n(e,t))}
16
+ </div>
17
+ </div>
18
+ `}let r=g.get(n);if(!r){let i=t||e.renderItem||(e=>c.html`${e}`);r=new h(n,e,i),g.set(n,r)}let i=t=>{r.updateConfig(e,t);let n={position:`relative`,overflow:d?`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 c.html`
19
+ <div
20
+ ${(0,l.ref)(r.getContainerRef())}
21
+ style=${(0,u.styleMap)(n)}
22
+ @scroll=${d?c.nothing:()=>r.host.requestUpdate()}
23
+ >
24
+ <div style=${(0,u.styleMap)(i)}>
25
+ ${r.getRenderedItems()}
26
+ </div>
27
+ </div>
28
+ `};return t===void 0?`renderItem`in e?i(e.renderItem):e=>i(e):i(t)}const b=Symbol(`___LYCO_NULL___`);function x(e){return e?typeof e==`function`?e():e:c.html``}function S(e,t){let n=t??(e=>e);if(e===void 0)return c.html``;if(Array.isArray(e))return e.map((e,t)=>n(x(e),t,!0,!1));if(typeof e!=`function`)return n(x(e),void 0,!1,!1);let r=e();return Array.isArray(r)?r.map((e,t)=>n(x(e),t,!0,!1)):n(x(r),void 0,!1,!0)}function C(e){let t=Math.random().toString(36).substring(2,15);return e?`lyco-${e}-${t}`:`lyco-${t}`}function w(e,t){let n=t??(e=>e),r=e=>n(x(e));return e?r(e):r}function T(e,t,n){let r=t??(e=>e),i=e=>r(S(e,n));return e?i(e):i}const E=e=>({init:!1,prefix:e,className:b}),D={"GridBreakpoint::grid-breakpoint":E(`grid-breakpoint`),"Hidden::hidden-container":E(`hidden-container`),"ListGroup::list-group":E(`list-group`),"ScrollBar::scrollbar-container":E(`scrollbar-container`),"SkeletonLoader::skeleton":E(`skeleton`),"Swiper::swiper":E(`swiper`),"Table::table":E(`table`),"WaterFlow::waterflow":E(`waterflow`),"AutoFitGrid::auto-fit-grid":E(`auto-fit-grid`),"GridCol::grid-col":E(`grid-col`),"GridRow::grid-row":E(`grid-row`),"List::list":E(`list`),"Dialog::dialog":E(`dialog`),"SwitchInput::switch":E(`switch`),"Combobox::combobox":E(`combobox`)};function O(e){let t=D[e];return t.init||(D[e].init=!0,D[e].className=C(t.prefix)),D[e].className===b?C(t.prefix):D[e].className}const k={all:{value:0}};function A(e){var t;return(t=k[e])?.value||(k[e]={value:0}),k[e].value}function j(e,t){return k.all={value:k.all.value+1},k[e]===void 0?k[e]={value:0}:k[e].value=k[e].value+1,c.html`
29
+ <!-- ${e} - ${k[e].value} -->
3
30
  ${t}
4
- `}function S(e,t,n){t.forEach(([t,r])=>{n.has(t)&&e.removeEventListener(t,n.get(t));let i,a;typeof r==`function`?(i=r,a=void 0):(i=r.handler,a=r.options);let o=e=>i(e);e.addEventListener(t,o,a),n.set(t,o)})}function C(e){let t=new Map,n=Object.entries(e);return{bind(e){S(e,n,t)},unbindAll(){t.clear()}}}function w(e,t){if(t===void 0){let t=t=>w(e,t??c.html``);return t.html=(t,...n)=>w(e,(0,c.html)(t,...n)),t}let n=e?.fadeBg??`rgba(0,0,0,0.7)`,r=e?.zIndex??2e3,i=C(e?.on??{});return c.html`
31
+ `}function M(e,t,n){t.forEach(([t,r])=>{if(!r)return;n.has(t)&&e.removeEventListener(t,n.get(t));let i,a;if(typeof r==`function`?(i=r,a=void 0):(i=r.handler,a=r.options),!i)return;let o=e=>i(e);e.addEventListener(t,o,a),n.set(t,o)})}function N(e){let t=new Map,n=Object.entries(e);return{bind(e){M(e,n,t)},unbindAll(){t.clear()}}}function P(e,t){if(t===void 0){let t=t=>P(e,t??c.html``);return t.html=(t,...n)=>P(e,(0,c.html)(t,...n)),t}let n=e?.fadeBg??`rgba(0,0,0,0.7)`,r=e?.zIndex??2e3,i=N(e?.on??{});return c.html`
5
32
  <div
6
33
  ${(0,l.ref)(e=>{e?i.bind(e):i.unbindAll()})}
7
34
  style="
@@ -14,22 +41,23 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
14
41
  align-items: center;
15
42
  "
16
43
  >
17
- ${d(t)}
44
+ ${x(t)}
18
45
  </div>
19
- `}function T(e,t){let n=C(e?.on??{});return t===void 0?t=>T(e,t??[c.html``]):c.html`
46
+ `}function F(e,t){let n=N(e?.on??{});return t===void 0?t=>F(e,t??[c.html``]):c.html`
20
47
  <div
21
48
  ${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
22
49
  .class="${e?.className}"
23
50
  style="
24
51
  display: flex;
25
52
  flex-direction: column;
53
+ ${e?.center?`align-items: center;`:``}
26
54
  ${e?.space?`gap: ${e.space};`:``}
27
55
  ${e?.style??``}
28
56
  "
29
57
  >
30
- ${f(t)}
58
+ ${S(t)}
31
59
  </div>
32
- `}function E(e,t){if(t===void 0){let t=t=>E(e,t??c.html``);return t.html=(t,...n)=>E(e,(0,c.html)(t,...n)),t}let n=e?.direction??`row`,r=C(e?.on??{});return c.html`
60
+ `}function I(e,t){if(t===void 0){let t=t=>I(e,t??c.html``);return t.html=(t,...n)=>I(e,(0,c.html)(t,...n)),t}let n=e?.direction??`row`,r=N(e?.on??{});return c.html`
33
61
  <div
34
62
  ${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
35
63
  style="
@@ -40,16 +68,16 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
40
68
  ${e?.gap?`gap: ${e.gap};`:``}
41
69
  "
42
70
  >
43
- ${d(t)}
71
+ ${x(t)}
44
72
  </div>
45
- `}function D(e,t){if(t===void 0){let t=t=>D(e,t??c.html``);return t.html=(t,...n)=>D(e,(0,c.html)(t,...n)),t}let n=C(e?.on??{});return c.html`
73
+ `}function L(e,t){if(t===void 0){let t=t=>L(e,t??c.html``);return t.html=(t,...n)=>L(e,(0,c.html)(t,...n)),t}let n=N(e?.on??{});return c.html`
46
74
  <div
47
75
  ${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
48
76
  style="break-inside: avoid; margin-bottom: 16px;"
49
77
  >
50
- ${d(t)}
78
+ ${x(t)}
51
79
  </div>
52
- `}function O(e,t){if(t===void 0)return t=>O(e,t??[c.html``]);let n=e?.columns??1,r=C(e?.on??{});return c.html`
80
+ `}function R(e,t){if(t===void 0)return t=>R(e,t??[c.html``]);let n=e?.columns??1,r=N(e?.on??{});return c.html`
53
81
  <div
54
82
  ${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
55
83
  style="
@@ -58,15 +86,15 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
58
86
  ${e?.gap?`gap: ${e.gap};`:``}
59
87
  "
60
88
  >
61
- ${f(t)}
89
+ ${S(t)}
62
90
  </div>
63
- `}function k(e,t){if(t===void 0){let t=t=>k(e,t??c.html``);return t.html=(t,...n)=>k(e,(0,c.html)(t,...n)),t}let n=b(`GridCol`),r=v(`GridCol::grid-col`)+`-lyco-now-`+n,i=e?.gap?`column-gap: ${e.gap};`:``,a=`
91
+ `}function z(e,t){if(t===void 0){let t=t=>z(e,t??c.html``);return t.html=(t,...n)=>z(e,(0,c.html)(t,...n)),t}let n=A(`GridCol`),r=O(`GridCol::grid-col`)+`-lyco-now-`+n,i=e?.gap?`column-gap: ${e.gap};`:``,a=`
64
92
  .${r} {
65
93
  display: grid;
66
94
  grid-auto-flow: column;
67
95
  ${i}
68
96
  }
69
- `,o=C(e?.on??{});return x(`GridCol`,c.html`
97
+ `,o=N(e?.on??{});return j(`GridCol`,c.html`
70
98
  <style>
71
99
  ${a}
72
100
  </style>
@@ -74,22 +102,22 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
74
102
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
75
103
  class="${r}"
76
104
  >
77
- ${d(t)}
105
+ ${x(t)}
78
106
  </div>
79
- `)}function A(e,t){if(t===void 0){let t=t=>A(e,t??c.html``);return t.html=(t,...n)=>A(e,(0,c.html)(t,...n)),t}let n=C(e?.on??{});return c.html`
107
+ `)}function B(e,t){if(t===void 0){let t=t=>B(e,t??c.html``);return t.html=(t,...n)=>B(e,(0,c.html)(t,...n)),t}let n=N(e?.on??{});return c.html`
80
108
  <div
81
109
  ${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
82
110
  style="${e?.span?`grid-column: span ${e.span};`:``}"
83
111
  >
84
- ${d(t)}
112
+ ${x(t)}
85
113
  </div>
86
- `}function j(e,t){if(t===void 0){let t=t=>j(e,t??c.html``);return t.html=(t,...n)=>j(e,(0,c.html)(t,...n)),t}let n=b(`GridRow`),r=v(`GridRow::grid-row`)+`-lyco-now-`+n,i=e?.gap?`row-gap: ${e.gap};`:``,a=`
114
+ `}function V(e,t){if(t===void 0){let t=t=>V(e,t??c.html``);return t.html=(t,...n)=>V(e,(0,c.html)(t,...n)),t}let n=A(`GridRow`),r=O(`GridRow::grid-row`)+`-lyco-now-`+n,i=e?.gap?`row-gap: ${e.gap};`:``,a=`
87
115
  .${r} {
88
116
  display: grid;
89
117
  grid-auto-flow: row;
90
118
  ${i}
91
119
  }
92
- `,o=C(e?.on??{});return x(`GridRow`,c.html`
120
+ `,o=N(e?.on??{});return j(`GridRow`,c.html`
93
121
  <style>
94
122
  ${a}
95
123
  </style>
@@ -97,20 +125,21 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
97
125
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
98
126
  class="${r}"
99
127
  >
100
- ${d(t)}
128
+ ${x(t)}
101
129
  </div>
102
- `)}function M(e,t){if(t===void 0)return t=>M(e,t??[c.html``]);let n=C(e?.on??{});return c.html`
130
+ `)}function H(e,t){if(t===void 0)return t=>H(e,t??[c.html``]);let n=N(e?.on??{});return c.html`
103
131
  <div
104
132
  ${(0,l.ref)(e=>{e?n.bind(e):n.unbindAll()})}
105
133
  style="
106
134
  display: flex;
107
135
  flex-direction: row;
136
+ ${e?.center?`align-items: center;`:``}
108
137
  ${e?.space?`gap: ${e.space};`:``}
109
138
  "
110
139
  >
111
- ${f(t)}
140
+ ${S(t)}
112
141
  </div>
113
- `}function N(e,t){if(t===void 0){let t=t=>N(e,t??c.html``);return t.html=(t,...n)=>N(e,(0,c.html)(t,...n)),t}let n=e?.columnCount??3,r=e?.gap??`16px`,i=b(`WaterFlow`),a=v(`WaterFlow::waterflow`)+`-lyco-now-${i}`,o=`
142
+ `}function U(e,t){if(t===void 0){let t=t=>U(e,t??c.html``);return t.html=(t,...n)=>U(e,(0,c.html)(t,...n)),t}let n=e?.columnCount??3,r=e?.gap??`16px`,i=A(`WaterFlow`),a=O(`WaterFlow::waterflow`)+`-lyco-now-${i}`,o=`
114
143
  /* 使用 CSS 类来控制多列布局 */
115
144
  .${a} {
116
145
  column-count: ${n};
@@ -121,7 +150,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
121
150
  display: inline-block;
122
151
  width: 100%;
123
152
  }
124
- `,s=C(e?.on??{});return x(`WaterFlow`,c.html`
153
+ `,s=N(e?.on??{});return j(`WaterFlow`,c.html`
125
154
  <style>
126
155
  ${o}
127
156
  </style>
@@ -130,9 +159,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
130
159
  ${(0,l.ref)(e=>{e?s.bind(e):s.unbindAll()})}
131
160
  class="${a}"
132
161
  >
133
- ${d(t)}
162
+ ${x(t)}
134
163
  </div>
135
- `)}function P(e,t){if(t===void 0){let t=t=>P(e,t??c.html``);return t.html=(t,...n)=>P(e,(0,c.html)(t,...n)),t}let n=e?.gap??`0px`,r=e?.firstHeight??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=d(t);let s=C(e?.on??{});return c.html`
164
+ `)}function W(e,t){if(t===void 0){let t=t=>W(e,t??c.html``);return t.html=(t,...n)=>W(e,(0,c.html)(t,...n)),t}let n=e?.gap??`0px`,r=e?.firstHeight??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=x(t);let s=N(e?.on??{});return c.html`
136
165
  <div
137
166
  ${(0,l.ref)(e=>{e?s.bind(e):s.unbindAll()})}
138
167
  style="
@@ -146,7 +175,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
146
175
  <div style="flex: 0 0 ${r}; overflow: auto;">${i}</div>
147
176
  <div style="flex: 1 1 auto; overflow: auto;">${a}</div>
148
177
  </div>
149
- `}function F(e,t){if(t===void 0){let t=t=>F(e,t??c.html``);return t.html=(t,...n)=>F(e,(0,c.html)(t,...n)),t}let n=e?.gap??`0px`,r=e?.firstWidth??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=d(t);let s=C(e?.on??{});return c.html`
178
+ `}function G(e,t){if(t===void 0){let t=t=>G(e,t??c.html``);return t.html=(t,...n)=>G(e,(0,c.html)(t,...n)),t}let n=e?.gap??`0px`,r=e?.firstWidth??`50%`,i=c.html``,a=c.html``;if(typeof t==`function`){var o;let e=(o=t.call)?.call(t,null)??[];i=e[0]??c.html``,a=e[1]??c.html``}else i=x(t);let s=N(e?.on??{});return c.html`
150
179
  <div
151
180
  ${(0,l.ref)(e=>{e?s.bind(e):s.unbindAll()})}
152
181
  style="
@@ -160,7 +189,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
160
189
  <div style="flex: 0 0 ${r}; overflow: auto;">${i}</div>
161
190
  <div style="flex: 1 1 auto; overflow: auto;">${a}</div>
162
191
  </div>
163
- `}function I(e,t){if(t===void 0){let t=t=>I(e,t??c.html``);return t.html=(t,...n)=>I(e,(0,c.html)(t,...n)),t}let n=e?.direction??`vertical`,r=e?.height??`100%`,i=e?.width??`100%`,a=e?.customCss??``,o=b(`ScrollBar`),s=e?.className??v(`ScrollBar::scrollbar-container`)+`-lyco-now-`+o,u=n===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,f=`
192
+ `}function K(e,t){if(t===void 0){let t=t=>K(e,t??c.html``);return t.html=(t,...n)=>K(e,(0,c.html)(t,...n)),t}let n=e?.direction??`vertical`,r=e?.height??`100%`,i=e?.width??`100%`,a=e?.customCss??``,o=A(`ScrollBar`),s=e?.className??O(`ScrollBar::scrollbar-container`)+`-lyco-now-`+o,u=n===`horizontal`?`overflow-x: auto; overflow-y: hidden`:`overflow-y: auto; overflow-x: hidden`,d=`
164
193
  .${s} {
165
194
  ${u};
166
195
  width: ${i};
@@ -178,17 +207,17 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
178
207
  background: rgba(0, 0, 0, 0.05);
179
208
  }
180
209
  ${a}
181
- `,p=C(e?.on??{});return x(`ScrollBar`,c.html`
210
+ `,f=N(e?.on??{});return j(`ScrollBar`,c.html`
182
211
  <style>
183
- ${f}
212
+ ${d}
184
213
  </style>
185
214
  <div
186
- ${(0,l.ref)(e=>{e?p.bind(e):p.unbindAll()})}
215
+ ${(0,l.ref)(e=>{e?f.bind(e):f.unbindAll()})}
187
216
  class="${s}"
188
217
  >
189
- ${d(t)}
218
+ ${x(t)}
190
219
  </div>
191
- `)}function L(e,t){if(t===void 0)return t=>L(e,t??[c.html``]);let n=e?.sidebarWidth??`240px`,r=e?.sidebarPosition??`left`,i=e?.gap??`0px`,a=c.html``,o=c.html``;if(typeof t==`function`){var s;let e=(s=t.call)?.call(t,null)??[];a=e[0]??c.html``,o=e[1]??c.html``}else o=f(t);let u=C(e?.on??{});return c.html`
220
+ `)}function q(e,t){if(t===void 0)return t=>q(e,t??[c.html``]);let n=e?.sidebarWidth??`240px`,r=e?.sidebarPosition??`left`,i=e?.gap??`0px`,a=c.html``,o=c.html``;if(typeof t==`function`){var s;let e=(s=t.call)?.call(t,null)??[];a=e[0]??c.html``,o=e[1]??c.html``}else o=S(t);let u=N(e?.on??{});return c.html`
192
221
  <div
193
222
  ${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
194
223
  style="
@@ -202,8 +231,8 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
202
231
  <div style="flex: 0 0 ${n}; overflow: auto;">${a}</div>
203
232
  <div style="flex: 1 1 auto; overflow: auto;">${o}</div>
204
233
  </div>
205
- `}function ee(e={},t){if(t===void 0)return t=>ee(e,t??[c.html``]);let n=b(`Swiper`),{gap:r=`8px`,snapType:i=`mandatory`,height:a=`auto`,width:o=`100%`,className:s=v(`Swiper::swiper`)+`-lyco-now-${n}`,direction:u=`x`,scrollBehavior:d=`smooth`,align:f=`start`,showNavigation:p=!0,navigationPosition:m=`inside`,showPagination:h=!0,paginationType:g=`dots`,autoPlay:_=!1,interval:y=3e3,loop:S=!1,touchEnabled:w=!0,mouseWheel:T=!1,onSlideChange:E,on:D}=e,O=s,k=O+`-container`,A=O+`-slide`,j=O+`-navigation`,M=O+`-pagination`,N;N=t?typeof t==`function`?t():t:[];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;u===`x`?(o=r.offsetLeft-t.offsetLeft,f===`center`?o-=(a.width-i.width)/2:f===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:d})):(o=r.offsetTop-t.offsetTop,f===`center`?o-=(a.height-i.height)/2:f===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:d})),I(e)},R=()=>{let e=F()+1>=P?S?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?S?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(u===`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)||u===`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&&(u===`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())},G=e=>{if(!_||!e)return;let t,n=()=>{t=setInterval(R,y)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},K=()=>{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=G(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(K,0);let q=c.html`
206
- <div class="${M}">
234
+ `}function ee(e={},t){if(t===void 0)return t=>ee(e,t??[c.html``]);let n=A(`Swiper`),{gap:r=`8px`,snapType:i=`mandatory`,height:a=`auto`,width:o=`100%`,className:s=O(`Swiper::swiper`)+`-lyco-now-${n}`,direction:u=`x`,scrollBehavior:d=`smooth`,align:f=`start`,showNavigation:p=!0,navigationPosition:m=`inside`,showPagination:h=!0,paginationType:g=`dots`,autoPlay:_=!1,interval:v=3e3,loop:y=!1,touchEnabled:b=!0,mouseWheel:x=!1,onSlideChange:S,on:C}=e,w=s,T=w+`-container`,E=w+`-slide`,D=w+`-navigation`,k=w+`-pagination`,M;M=t?typeof t==`function`?t():t:[];let P=M.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,S?.(n))}]})(),L=e=>{let t=typeof document<`u`?document.querySelector(`.${T}`):null;if(!t)return;let n=t.querySelectorAll(`.${E}`);if(e<0||e>=n.length)return;let r=n[e],i=r.getBoundingClientRect(),a=t.getBoundingClientRect(),o;u===`x`?(o=r.offsetLeft-t.offsetLeft,f===`center`?o-=(a.width-i.width)/2:f===`end`&&(o-=a.width-i.width),t.scrollTo({left:o,behavior:d})):(o=r.offsetTop-t.offsetTop,f===`center`?o-=(a.height-i.height)/2:f===`end`&&(o-=a.height-i.height),t.scrollTo({top:o,behavior:d})),I(e)},R=()=>{let e=F()+1>=P?y?0:F():F()+1;L(e)},z=()=>{let e=F()-1<0?y?P-1:F():F()-1;L(e)},B=()=>{let e=typeof document<`u`?document.querySelector(`.${T}`):null;if(!e)return;let t=e.querySelectorAll(`.${E}`),n=0,r=1/0;t.forEach((t,i)=>{let a=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s;if(u===`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(!b)return;let t=e.touches[0],n=e.currentTarget;n.dataset.touchStartX=t.clientX.toString(),n.dataset.touchStartY=t.clientY.toString()},H=e=>{if(!b)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)||u===`x`)&&e.preventDefault()},U=e=>{if(!b)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&&(u===`x`?a>0?z():R():o>0?z():R()),delete t.dataset.touchStartX,delete t.dataset.touchStartY},W=e=>{x&&(e.preventDefault(),e.deltaY>0?R():z())},G=e=>{if(!_||!e)return;let t,n=()=>{t=setInterval(R,v)},r=()=>{clearInterval(t)};return e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,n),n(),()=>{clearInterval(t),e.removeEventListener(`mouseenter`,r),e.removeEventListener(`mouseleave`,n)}},K=()=>{let e=typeof document<`u`?document.querySelector(`.${T}`):null;if(!e)return;let t=[];e.addEventListener(`scroll`,B),t.push(()=>e.removeEventListener(`scroll`,B)),b&&(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))),x&&(e.addEventListener(`wheel`,W,{passive:!1}),t.push(()=>e.removeEventListener(`wheel`,W)));let n=G(e);return n&&t.push(n),L(0),()=>t.forEach(e=>e())};typeof window<`u`&&typeof document<`u`&&setTimeout(K,0);let q=c.html`
235
+ <div class="${k}">
207
236
  ${Array.from({length:P},(e,t)=>c.html`
208
237
  <button
209
238
  class="${t===F()?`active`:``}"
@@ -212,32 +241,32 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
212
241
  `)}
213
242
  </div>
214
243
  `,J=c.html`
215
- <div class="${M} fraction">
244
+ <div class="${k} fraction">
216
245
  <span class="current">${F()+1}</span>
217
246
  <span class="separator">/</span>
218
247
  <span class="total">${P}</span>
219
248
  </div>
220
249
  `,te=c.html`
221
- <div class="${M} progressbar">
250
+ <div class="${k} progressbar">
222
251
  <div
223
252
  class="progress"
224
253
  style="width: ${P>1?F()/(P-1)*100:0}%"
225
254
  ></div>
226
255
  </div>
227
- `,Y=c.html`
228
- <div class="${j}">
256
+ `,ne=c.html`
257
+ <div class="${D}">
229
258
  <button class="prev" @click=${z}>◀</button>
230
259
  <button class="next" @click=${R}>▶</button>
231
260
  </div>
232
- `,ne=`
233
- .${O} {
261
+ `,re=`
262
+ .${w} {
234
263
  position: relative;
235
264
  overflow: hidden;
236
265
  width: ${o};
237
266
  height: ${a};
238
267
  }
239
268
 
240
- .${k} {
269
+ .${T} {
241
270
  width: 100%;
242
271
  height: 100%;
243
272
  overflow: auto;
@@ -249,12 +278,12 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
249
278
  flex-direction: ${u===`x`?`row`:`column`};
250
279
  }
251
280
 
252
- .${A} {
281
+ .${E} {
253
282
  scroll-snap-align: ${f};
254
283
  flex-shrink: 0;
255
284
  }
256
285
 
257
- .${j} {
286
+ .${D} {
258
287
  position: absolute;
259
288
  top: 50%;
260
289
  left: 0;
@@ -266,7 +295,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
266
295
  padding: ${m===`outside`?`0 1rem`:`0 0.5rem`};
267
296
  }
268
297
 
269
- .${j} button {
298
+ .${D} button {
270
299
  width: 2.5rem;
271
300
  height: 2.5rem;
272
301
  border-radius: 50%;
@@ -281,11 +310,11 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
281
310
  transition: background-color 0.3s;
282
311
  }
283
312
 
284
- .${j} button:hover {
313
+ .${D} button:hover {
285
314
  background-color: rgba(0, 0, 0, 0.8);
286
315
  }
287
316
 
288
- .${M} {
317
+ .${k} {
289
318
  position: absolute;
290
319
  bottom: 1rem;
291
320
  left: 0;
@@ -295,7 +324,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
295
324
  gap: 0.5rem;
296
325
  align-items: center;
297
326
  }
298
- .${M} button {
327
+ .${k} button {
299
328
  width: 0.75rem;
300
329
  height: 0.75rem;
301
330
  border-radius: 50%;
@@ -304,12 +333,12 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
304
333
  cursor: pointer;
305
334
  transition: background-color 0.3s, transform 0.3s;
306
335
  }
307
- .${M} button.active {
336
+ .${k} button.active {
308
337
  background-color: white;
309
338
  transform: scale(1.2);
310
339
  }
311
340
 
312
- .${M}.fraction {
341
+ .${k}.fraction {
313
342
  position: absolute;
314
343
  bottom: 1rem;
315
344
  left: 50%;
@@ -321,7 +350,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
321
350
  gap: 0.25rem;
322
351
  }
323
352
 
324
- .${M}.progressbar {
353
+ .${k}.progressbar {
325
354
  position: absolute;
326
355
  bottom: 0.5rem;
327
356
  left: 0;
@@ -329,50 +358,124 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
329
358
  height: 0.25rem;
330
359
  background-color: rgba(255, 255, 255, 0.2);
331
360
  }
332
- .${M}.progressbar .progress {
361
+ .${k}.progressbar .progress {
333
362
  height: 100%;
334
363
  background-color: white;
335
364
  transition: width 0.3s;
336
365
  }
337
- `,X=C(D??{});return x(`Swiper`,c.html`
366
+ `,Y=N(C??{});return j(`Swiper`,c.html`
338
367
  <style>
339
- ${ne}
368
+ ${re}
340
369
  </style>
341
370
 
342
371
  <div
343
- ${(0,l.ref)(e=>{e?X.bind(e):X.unbindAll()})}
344
- class="${O}"
372
+ ${(0,l.ref)(e=>{e?Y.bind(e):Y.unbindAll()})}
373
+ class="${w}"
345
374
  >
346
- <div class="${k}">
347
- ${N.map((e,t)=>c.html`
348
- <div class="${A} --slide-${t}" key=${t}>
375
+ <div class="${T}">
376
+ ${M.map((e,t)=>c.html`
377
+ <div class="${E} --slide-${t}" key=${t}>
349
378
  ${e}
350
379
  </div>
351
380
  `)}
352
381
  </div>
353
382
 
354
- ${p?Y:null}
383
+ ${p?ne:null}
355
384
  ${h&&g===`dots`?q:null}
356
385
  ${h&&g===`fraction`?J:null}
357
386
  ${h&&g===`progressbar`?te:null}
358
387
  </div>
359
- `)}function R(e,t){let n=e?.top?`top: ${e.top};`:``,r=e?.right?`right: ${e.right};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,a=e?.left?`left: ${e.left};`:``,o=e?.width?`width: ${e.width};`:``,s=e?.height?`height: ${e.height};`:``,u=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,f=e?.style?e.style:``,p=e?.className?e.className:``,h=C(e?.on??{}),g=e=>c.html`
388
+ `)}const J={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 te(e){let{checked:t=!1,disabled:n=!1,size:r=`medium`,color:i=J.colors.primary,onChange:a,className:o=``,on:s={}}=e??{},u=A(`SwitchInput`),d=O(`SwitchInput::switch`)+`-lyco-now-${u}`,f={small:{width:32,height:16,thumbSize:12},medium:{width:44,height:24,thumbSize:18},large:{width:56,height:32,thumbSize:24}},{width:p,height:m,thumbSize:h}=f[r],g=`
389
+ .${d} {
390
+ display: inline-block;
391
+ position: relative;
392
+ width: ${p}px;
393
+ height: ${m}px;
394
+ cursor: ${n?`not-allowed`:`pointer`};
395
+ }
396
+
397
+ .${d} input {
398
+ opacity: 0;
399
+ width: 0;
400
+ height: 0;
401
+ }
402
+
403
+ .${d} .slider {
404
+ position: absolute;
405
+ top: 0;
406
+ left: 0;
407
+ right: 0;
408
+ bottom: 0;
409
+ background-color: ${n?J.colors.surfaceVariant:J.colors.onSurfaceVariant};
410
+ transition: ${J.animation.standard};
411
+ border-radius: ${m}px;
412
+ opacity: ${n?.38:.5};
413
+ }
414
+
415
+ .${d} .slider:before {
416
+ position: absolute;
417
+ content: "";
418
+ height: ${h}px;
419
+ width: ${h}px;
420
+ left: ${(m-h)/2}px;
421
+ bottom: ${(m-h)/2}px;
422
+ background-color: ${J.colors.surface};
423
+ transition: ${J.animation.emphasized};
424
+ border-radius: 50%;
425
+ box-shadow: ${J.elevation.level1};
426
+ }
427
+
428
+ .${d} input:checked + .slider {
429
+ background-color: ${n?J.colors.surfaceVariant:i};
430
+ opacity: ${n?.38:1};
431
+ }
432
+
433
+ .${d} input:checked + .slider:before {
434
+ transform: translateX(${p-m}px);
435
+ background-color: ${J.colors.onPrimary};
436
+ }
437
+
438
+ .${d}:hover .slider:before {
439
+ box-shadow: ${n?J.elevation.level1:J.elevation.level2};
440
+ }
441
+
442
+ .${d}:active .slider:before {
443
+ box-shadow: ${n?J.elevation.level1:J.elevation.level3};
444
+ width: ${h*1.2}px;
445
+ }
446
+ `,_=N(s);return j(`SwitchInput`,c.html`
447
+ <style>
448
+ ${g}
449
+ </style>
450
+ <label
451
+ class="${d} ${o}"
452
+ ${(0,l.ref)(e=>{e?_.bind(e):_.unbindAll()})}
453
+ >
454
+ <input
455
+ type="checkbox"
456
+ ?checked=${t}
457
+ ?disabled=${n}
458
+ @change=${e=>{!n&&a&&a(e.target.checked)}}
459
+ />
460
+ <span class="slider"></span>
461
+ </label>
462
+ `)}function ne(e,t){let n=e?.top?`top: ${e.top};`:``,r=e?.right?`right: ${e.right};`:``,i=e?.bottom?`bottom: ${e.bottom};`:``,a=e?.left?`left: ${e.left};`:``,o=e?.width?`width: ${e.width};`:``,s=e?.height?`height: ${e.height};`:``,u=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,d=e?.style?e.style:``,f=e?.className?e.className:``,p=N(e?.on??{}),m=e=>c.html`
360
463
  <div
361
- ${(0,l.ref)(e=>{e?h.bind(e):h.unbindAll()})}
362
- class="${p}"
464
+ ${(0,l.ref)(e=>{e?p.bind(e):p.unbindAll()})}
465
+ class="${f}"
363
466
  style="
364
467
  position: absolute;
365
468
  ${n} ${r} ${i} ${a}
366
469
  ${o} ${s}
367
470
  ${u}
368
- ${f}
471
+ ${d}
369
472
  "
370
473
  >
371
- ${d(e)}
474
+ ${x(e)}
372
475
  </div>
373
- `;return m(t,g)}function z(e,t){let n=e?.width??`300px`,r=e?.height??`auto`,i=e?.top??`20%`,a=e?.bottom??`auto`,o=e?.left??`50%`,s=e?.right??`auto`,u=o===`auto`?``:`transform: translateX(-50%);`,d=e?.background??`rgba(255, 255, 255, 0.3)`,f=e?.blur??`10px`,p=e?.borderRadius??`12px`,m=e?.padding??`16px`,g=e?.zIndex??1e3,_=C(e?.on??{}),v=e=>c.html`
476
+ `;return w(t,m)}function re(e,t){let n=e?.width??`300px`,r=e?.height??`auto`,i=e?.top??`20%`,a=e?.bottom??`auto`,o=e?.left??`50%`,s=e?.right??`auto`,u=o===`auto`?``:`transform: translateX(-50%);`,d=e?.background??`rgba(255, 255, 255, 0.3)`,f=e?.blur??`10px`,p=e?.borderRadius??`12px`,m=e?.padding??`16px`,h=e?.zIndex??1e3,g=N(e?.on??{}),_=e=>c.html`
374
477
  <div
375
- ${(0,l.ref)(e=>{e?_.bind(e):_.unbindAll()})}
478
+ ${(0,l.ref)(e=>{e?g.bind(e):g.unbindAll()})}
376
479
  style="
377
480
  position: fixed;
378
481
  top: ${i};
@@ -388,14 +491,14 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
388
491
  border-radius: ${p};
389
492
  padding: ${m};
390
493
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
391
- z-index: ${g};
494
+ z-index: ${h};
392
495
  display: flex;
393
496
  flex-direction: column;
394
497
  "
395
498
  >
396
499
  ${e}
397
500
  </div>
398
- `;return h(t,void 0,v)}function B(e,t){if(t===void 0)return t=>B(e,t??[c.html``]);let n=`${100/e.ratio}%`,r=e.maxWidth?`max-width: ${e.maxWidth};`:``,i=e.background?`background: ${e.background};`:``,a=e.overflow??`hidden`,o=C(e.on??{});return c.html`
501
+ `;return T(t,void 0,_)}function Y(e,t){if(t===void 0)return t=>Y(e,t??[c.html``]);let n=`${100/e.ratio}%`,r=e.maxWidth?`max-width: ${e.maxWidth};`:``,i=e.background?`background: ${e.background};`:``,a=e.overflow??`hidden`,o=N(e.on??{});return c.html`
399
502
  <div
400
503
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
401
504
  style="
@@ -416,16 +519,16 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
416
519
  height: 100%;
417
520
  "
418
521
  >
419
- ${f(t)}
522
+ ${S(t)}
420
523
  </div>
421
524
  </div>
422
- `}function V(e,t){if(t===void 0){let t=t=>V(e,t);return t.html=(t,...n)=>V(e,(0,c.html)(t,...n)),t}let n=b(`AutoFitGrid`),r=v(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+n,i=e?.gap??`16px`,a=`
525
+ `}function X(e,t){if(t===void 0){let t=t=>X(e,t);return t.html=(t,...n)=>X(e,(0,c.html)(t,...n)),t}let n=A(`AutoFitGrid`),r=O(`AutoFitGrid::auto-fit-grid`)+`-lyco-now-`+n,i=e?.gap??`16px`,a=`
423
526
  .${r} {
424
527
  display: grid;
425
528
  grid-template-columns: repeat(auto-fit, minmax(${e.minItemWidth}, 1fr));
426
529
  gap: ${i};
427
530
  }
428
- `,o=C(e.on??{});return x(`AutoFitGrid`,c.html`
531
+ `,o=N(e.on??{});return j(`AutoFitGrid`,c.html`
429
532
  <style>
430
533
  ${a}
431
534
  </style>
@@ -433,9 +536,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
433
536
  class="${r}"
434
537
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
435
538
  >
436
- ${d(t)}
539
+ ${x(t)}
437
540
  </div>
438
- `)}function H(e,t){if(t===void 0)return t=>H(e,t??[c.html``]);let n=e?.size??`32px`,r=e?.overlap??`-8px`,i=C(e?.on??{}),a=(e,t)=>c.html`
541
+ `)}function ie(e,t){if(t===void 0)return t=>ie(e,t??[c.html``]);let n=e?.size??`32px`,r=e?.overlap??`-8px`,i=N(e?.on??{}),a=(e,t)=>c.html`
439
542
  <div
440
543
  style="
441
544
  width: ${n};
@@ -454,19 +557,19 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
454
557
  ${(0,l.ref)(e=>{e?i.bind(e):i.unbindAll()})}
455
558
  style="display: flex; align-items: center;"
456
559
  >
457
- ${f(t,a)}
560
+ ${S(t,a)}
458
561
  </div>
459
- `}function U(e,t){if(t===void 0){let t=t=>U(e,t??c.html``);return t.html=(t,...n)=>U(e,(0,c.html)(t,...n)),t}let n=e?.position??`top-right`,r=e?.size??`16px`,i=e?.background??`red`,a=e?.color??`#fff`,[o,s,u,f]=[n.includes(`top`)?`0`:`auto`,n.includes(`right`)?`0`:`auto`,n.includes(`bottom`)?`0`:`auto`,n.includes(`left`)?`0`:`auto`],p=C(e?.on??{});return c.html`
562
+ `}function Z(e,t){if(t===void 0){let t=t=>Z(e,t??c.html``);return t.html=(t,...n)=>Z(e,(0,c.html)(t,...n)),t}let n=e?.position??`top-right`,r=e?.size??`16px`,i=e?.background??`red`,a=e?.color??`#fff`,[o,s,u,d]=[n.includes(`top`)?`0`:`auto`,n.includes(`right`)?`0`:`auto`,n.includes(`bottom`)?`0`:`auto`,n.includes(`left`)?`0`:`auto`],f=N(e?.on??{});return c.html`
460
563
  <div style="position: relative; display: inline-block;">
461
- ${d(t)}
564
+ ${x(t)}
462
565
  <div
463
- ${(0,l.ref)(e=>{e?p.bind(e):p.unbindAll()})}
566
+ ${(0,l.ref)(e=>{e?f.bind(e):f.unbindAll()})}
464
567
  style="
465
568
  position: absolute;
466
569
  top: ${o};
467
570
  right: ${s};
468
571
  bottom: ${u};
469
- left: ${f};
572
+ left: ${d};
470
573
  width: ${r};
471
574
  height: ${r};
472
575
  background: ${i};
@@ -476,19 +579,19 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
476
579
  display: flex;
477
580
  justify-content: center;
478
581
  align-items: center;
479
- transform: translate(${f===`0`?`-50%`:`0`}, ${o===`0`?`-50%`:`0`});
582
+ transform: translate(${d===`0`?`-50%`:`0`}, ${o===`0`?`-50%`:`0`});
480
583
  "
481
584
  >
482
585
  ${e?.content??``}
483
586
  </div>
484
587
  </div>
485
- `}function W(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function G(e,t){if(!t)return t=>G(e,t??(0,l.createRef)());let n=C(e?.on??{}),r=W(t,e=>{e?n.bind(e):n.unbindAll()});return c.html`
588
+ `}function ae(e,t){return e?n=>{typeof e==`function`?e(n):e.current=n,typeof t==`function`?t(n):t.current=n}:t}function oe(e,t){if(!t)return t=>oe(e,t??(0,l.createRef)());let n=N(e?.on??{}),r=ae(t,e=>{e?n.bind(e):n.unbindAll()});return c.html`
486
589
  <canvas
487
590
  ${(0,l.ref)(r)}
488
591
  .class=${e?.className}
489
592
  style=${e?.style??``}
490
593
  ></canvas>
491
- `}function K(e,t){if(t===void 0)return t=>K(e,t??[c.html``]);let n=e?.padding??`16px`,r=e?.borderRadius??`8px`,i=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,a=e?.background??`#fff`,o=C(e?.on??{});return c.html`
594
+ `}function se(e,t){if(t===void 0)return t=>se(e,t??[c.html``]);let n=e?.padding??`16px`,r=e?.borderRadius??`8px`,i=e?.shadow??`0 2px 8px rgba(0,0,0,0.1)`,a=e?.background??`#fff`,o=N(e?.on??{});return c.html`
492
595
  <div
493
596
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
494
597
  style="
@@ -499,9 +602,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
499
602
  box-sizing: border-box;
500
603
  "
501
604
  >
502
- ${f(t)}
605
+ ${S(t)}
503
606
  </div>
504
- `}function q(e,t){if(t===void 0){let t=t=>q(e,t??c.html``);return t.html=(t,...n)=>q(e,(0,c.html)(t,...n)),t}let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=C(e?.on??{});return c.html`
607
+ `}function Q(e,t){if(t===void 0){let t=t=>Q(e,t??c.html``);return t.html=(t,...n)=>Q(e,(0,c.html)(t,...n)),t}let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=N(e?.on??{});return c.html`
505
608
  <div
506
609
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
507
610
  style="
@@ -511,9 +614,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
511
614
  ${n} ${r} ${i}
512
615
  "
513
616
  >
514
- ${d(t)}
617
+ ${x(t)}
515
618
  </div>
516
- `}function J(e,t){if(t===void 0)return t=>J(e,t??[c.html``]);let n=e?.maxWidth??`1024px`,r=e?.padding??`0 16px`,i=e?.background?`background: ${e.background};`:``,a=e?.fullHeight?`height: 100%;`:``,o=C(e?.on??{});return c.html`
619
+ `}function ce(e,t){if(t===void 0)return t=>ce(e,t??[c.html``]);let n=e?.maxWidth??`1024px`,r=e?.padding??`0 16px`,i=e?.background?`background: ${e.background};`:``,a=e?.fullHeight?`height: 100%;`:``,o=N(e?.on??{});return c.html`
517
620
  <div
518
621
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
519
622
  style="
@@ -527,12 +630,12 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
527
630
  box-sizing: border-box;
528
631
  "
529
632
  >
530
- ${f(t)}
633
+ ${S(t)}
531
634
  </div>
532
- `}function te(e){let t=e?.orientation??`horizontal`,n=e?.thickness??`1px`,r=e?.color??`#e0e0e0`,i=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),a=C(e?.on??{}),o=t===`horizontal`?`width: 100%; height: ${n}; background: ${r}; margin: ${i};`:`width: ${n}; height: 100%; background: ${r}; margin: ${i};`;return c.html`<div
635
+ `}function le(e){let t=e?.orientation??`horizontal`,n=e?.thickness??`1px`,r=e?.color??`#e0e0e0`,i=e?.margin??(t===`horizontal`?`8px 0`:`0 8px`),a=N(e?.on??{}),o=t===`horizontal`?`width: 100%; height: ${n}; background: ${r}; margin: ${i};`:`width: ${n}; height: 100%; background: ${r}; margin: ${i};`;return c.html`<div
533
636
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
534
637
  style="${o}"
535
- ></div>`}function Y(e,t){if(t===void 0){let t=t=>Y(e,t??c.html``);return t.html=(t,...n)=>Y(e,(0,c.html)(t,...n)),t}let n=e?.columns??4,r=e?.gap??`24px`,i=e?.background??`#f8f8f8`,a=e?.padding??`40px 16px`,o=C(e?.on??{});return c.html`
638
+ ></div>`}function ue(e,t){if(t===void 0){let t=t=>ue(e,t??c.html``);return t.html=(t,...n)=>ue(e,(0,c.html)(t,...n)),t}let n=e?.columns??4,r=e?.gap??`24px`,i=e?.background??`#f8f8f8`,a=e?.padding??`40px 16px`,o=N(e?.on??{});return c.html`
536
639
  <div
537
640
  ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
538
641
  style="
@@ -549,13 +652,13 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
549
652
  gap: ${r};
550
653
  "
551
654
  >
552
- ${d(t)}
655
+ ${x(t)}
553
656
  </div>
554
657
  <div style="text-align: center; margin-top: 24px; color: #666;">
555
658
  © ${new Date().getFullYear()} Your Company. All rights reserved.
556
659
  </div>
557
660
  </div>
558
- `}function ne(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function X(e,t){if(t===void 0){let t=t=>X(e,t??c.html``);return t.html=(t,...n)=>X(e,(0,c.html)(t,...n)),t}let n=e.defaultColumns??1,r=e.gap??`16px`,i=b(`GridBreakpoint`),a=e.className??v(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+i,o=Object.entries(e.breakpoints).map(([e,t])=>`@media`+e+`{
661
+ `}function de(e,t){return t?e.map((e,n)=>t(e,n)):t=>e.map((e,n)=>t(e,n))}function fe(e,t){if(t===void 0){let t=t=>fe(e,t??c.html``);return t.html=(t,...n)=>fe(e,(0,c.html)(t,...n)),t}let n=e.defaultColumns??1,r=e.gap??`16px`,i=A(`GridBreakpoint`),a=e.className??O(`GridBreakpoint::grid-breakpoint`)+`-lyco-now-`+i,o=Object.entries(e.breakpoints).map(([e,t])=>`@media`+e+`{
559
662
  `+a+`{ grid-template-columns: repeat(`+t+`, 1fr); }
560
663
  }`).join(`
561
664
  `),s=`
@@ -564,7 +667,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
564
667
  grid-template-columns: repeat(${n}, 1fr);
565
668
  gap: ${r};
566
669
  }
567
- ${o}`,u=C(e?.on??{});return x(`GridBreakpoint`,c.html`
670
+ ${o}`,u=N(e?.on??{});return j(`GridBreakpoint`,c.html`
568
671
  <style>
569
672
  ${s}
570
673
  </style>
@@ -572,9 +675,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
572
675
  ${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
573
676
  class="${a}"
574
677
  >
575
- ${d(t)}
678
+ ${x(t)}
576
679
  </div>
577
- `)}function re(e,t){if(t===void 0)return t=>re(e,t??[c.html``]);let n=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,r=e?.height??`400px`,i=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,a=C(e?.on??{});return c.html`
680
+ `)}function pe(e,t){if(t===void 0)return t=>pe(e,t??[c.html``]);let n=e?.backgroundImage?`background-image: url('${e.backgroundImage}');`:``,r=e?.height??`400px`,i=e?.overlayColor??`rgba(0, 0, 0, 0.3)`,a=N(e?.on??{});return c.html`
578
681
  <div
579
682
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
580
683
  style="
@@ -609,15 +712,15 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
609
712
  box-sizing: border-box;
610
713
  "
611
714
  >
612
- ${f(t)}
715
+ ${S(t)}
613
716
  </div>
614
717
  </div>
615
- `}function Z(e,t){if(t===void 0){let t=t=>Z(e,t??c.html``);return t.html=(t,...n)=>Z(e,(0,c.html)(t,...n)),t}let n=e?.breakpoint??`(max-width: 600px)`,r=e?.mode??`hide`,i=b(`Hidden`),a=e?.className??v(`Hidden::hidden-container`)+`-lyco-now-`+i,o=r===`hide`?`@media ${n} { .${a} { display: none !important; } }`:`@media ${n} { .${a} { display: block !important; } }
718
+ `}function me(e,t){if(t===void 0){let t=t=>me(e,t??c.html``);return t.html=(t,...n)=>me(e,(0,c.html)(t,...n)),t}let n=e?.breakpoint??`(max-width: 600px)`,r=e?.mode??`hide`,i=A(`Hidden`),a=e?.className??O(`Hidden::hidden-container`)+`-lyco-now-`+i,o=r===`hide`?`@media ${n} { .${a} { display: none !important; } }`:`@media ${n} { .${a} { display: block !important; } }
616
719
  @media not ${n} { .${a} { display: none !important; } }`,s=`
617
720
  .${a} {
618
721
  display: block;
619
722
  }
620
- ${o}`,u=C(e?.on??{});return x(`Hidden`,c.html`
723
+ ${o}`,u=N(e?.on??{});return j(`Hidden`,c.html`
621
724
  <style>
622
725
  ${s}
623
726
  </style>
@@ -625,9 +728,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
625
728
  ${(0,l.ref)(e=>{e?u.bind(e):u.unbindAll()})}
626
729
  class="${a}"
627
730
  >
628
- ${d(t)}
731
+ ${x(t)}
629
732
  </div>
630
- `)}function ie(e){return c.html` <li>${f(e)}</li> `}function ae(e,t){let n=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,r=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,i=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,a=b(`List`),o=e?.className??v(`List::list`)+`-lyco-now-${a}`,s=`
733
+ `)}function he(e){return c.html` <li>${S(e)}</li> `}function ge(e,t){let n=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,r=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,i=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,a=A(`List`),o=e?.className??O(`List::list`)+`-lyco-now-${a}`,s=`
631
734
  ul.${o} {
632
735
  list-style: none;
633
736
  margin: 0;
@@ -643,14 +746,14 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
643
746
  }
644
747
  ${r}
645
748
  ${i}
646
- `.toString(),l=e=>x(`List`,c.html`
749
+ `.toString(),l=e=>j(`List`,c.html`
647
750
  <style>
648
751
  ${s}
649
752
  </style>
650
753
  <ul class="${o}">
651
- ${f(e)}
754
+ ${S(e)}
652
755
  </ul>
653
- `);return t===void 0?l:l(t)}function oe(e,t){let n=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,r=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,i=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,a=b(`ListGroup`),o=e?.className??v(`ListGroup::list-group`)+`-lyco-now-`+a,s=(e,t,n,r)=>n?c.html` <li>${e}</li> `:e,u=`
756
+ `);return t===void 0?l:l(t)}function _e(e,t){let n=e?.bordered?`border: 1px solid #ddd; border-radius: 4px`:``,r=e?.striped?`li:nth-child(even) { background: #f9f9f9; }`:``,i=e?.hover?`li:hover { background: #f1f1f1; cursor: pointer; }`:``,a=A(`ListGroup`),o=e?.className??O(`ListGroup::list-group`)+`-lyco-now-`+a,s=(e,t,n,r)=>n?c.html` <li>${e}</li> `:e,u=`
654
757
  ul.${o} {
655
758
  list-style: none;
656
759
  margin: 0;
@@ -666,7 +769,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
666
769
  }
667
770
  ${r}
668
771
  ${i}
669
- `,d=C(e?.on??{}),p=e=>x(`ListGroup`,c.html`
772
+ `,d=N(e?.on??{}),f=e=>j(`ListGroup`,c.html`
670
773
  <style>
671
774
  ${u}
672
775
  </style>
@@ -674,9 +777,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
674
777
  ${(0,l.ref)(e=>{e?d.bind(e):d.unbindAll()})}
675
778
  class="${o}"
676
779
  >
677
- ${f(e,s)}
780
+ ${S(e,s)}
678
781
  </ul>
679
- `);return h(t,p)}function se(e,t){if(t===void 0)return t=>se(e,t??[c.html``]);let n=e?.background??`rgba(0, 0, 0, 0.5)`,r=e?.zIndex??1e3,i=e?.fullScreen!==!1,a=C(e?.on??{});return c.html`
782
+ `);return T(t,f)}function ve(e,t){if(t===void 0)return t=>ve(e,t??[c.html``]);let n=e?.background??`rgba(0, 0, 0, 0.5)`,r=e?.zIndex??1e3,i=e?.fullScreen!==!1,a=N(e?.on??{});return c.html`
680
783
  <div
681
784
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
682
785
  style="
@@ -689,9 +792,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
689
792
  align-items: center;
690
793
  "
691
794
  >
692
- ${f(t)}
795
+ ${S(t)}
693
796
  </div>
694
- `}function Q(e,t){if(t===void 0){let t=t=>Q(e,t??c.html``);return t.html=(t,...n)=>Q(e,(0,c.html)(t,...n)),t}let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=C(e?.on??{});return c.html`
797
+ `}function ye(e,t){if(t===void 0){let t=t=>ye(e,t??c.html``);return t.html=(t,...n)=>ye(e,(0,c.html)(t,...n)),t}let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=N(e?.on??{});return c.html`
695
798
  <div
696
799
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
697
800
  style="
@@ -700,34 +803,31 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
700
803
  overflow: hidden;
701
804
  "
702
805
  >
703
- ${d(t)}
806
+ ${x(t)}
704
807
  </div>
705
- `}function ce(e){let t=e?.width?`width: ${e.width};`:``,n=e?.height?`height: ${e.height};`:``,r=C(e?.on??{});return c.html`<div
808
+ `}function be(e){let t=e?.width?`width: ${e.width};`:``,n=e?.height?`height: ${e.height};`:``,r=N(e?.on??{});return c.html`<div
706
809
  ${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
707
810
  style="${t} ${n}"
708
- ></div>`}function le(e){let t=e?.type??`rect`,n=e?.width??`100%`,r=e?.height??`16px`,i=e?.borderRadius??`4px`,a=e?.animation!==!1,o=b(`SkeletonLoader`),s=e?.className??v(`SkeletonLoader::skeleton-shimmer`)+`-lyco-now-`+o,u=t===`circle`?`border-radius: 50%; width: ${n}; height: ${n}`:`border-radius: ${i}; width: ${n}; height: ${r}`,d=C(e?.on??{});return x(`SkeletonLoader`,c.html`
811
+ ></div>`}function xe(e){let{type:t=`rect`,width:n=`100%`,height:r=`16px`,borderRadius:i=`4px`,animation:a=!0,animationType:o=`shimmer`,bgColor:s=`#eee`,highlightColor:u=`#ddd`,count:d=1,spacing:f=`8px`,direction:p=`vertical`,delay:m=0,autoHide:h=!1,duration:g=2e3,on:_={}}=e??{},v=A(`SkeletonLoader`),y=O(`SkeletonLoader::skeleton`)+`-lyco-now-`+v,b=N(_),x=t===`circle`?`border-radius:50%;width:${n};height:${n}`:`border-radius:${i};width:${n};height:${r}`,S=``,C=``;a&&(o===`shimmer`?(S=`@keyframes ${y}-shimmer { 0% { background-color: ${s}; } 50% { background-color: ${u}; } 100% { background-color: ${s}; } }`,C=`animation:${y}-shimmer 1.2s infinite ease-in-out;`):(S=`@keyframes ${y}-pulse { 0% { opacity:1; } 50% { opacity:0.4; } 100% { opacity:1; } }`,C=`animation:${y}-pulse 1.2s infinite ease-in-out;`));let w=p===`horizontal`?`display:flex;flex-direction:row;gap:${f}`:`display:flex;flex-direction:column;gap:${f}`,T=[];for(let e=0;e<d;e++)T.push(c.html`
812
+ <div
813
+ class="${y}"
814
+ style="${x};background-color:${s};${C};opacity:0;transition:opacity 0.3s"
815
+ ${(0,l.ref)(e=>{e&&b.bind(e)})}
816
+ ></div>
817
+ `);function E(e){let t=Array.from(e.querySelectorAll(`.${y}`));setTimeout(()=>{t.forEach(e=>e.style.opacity=`1`),h&&setTimeout(()=>{t.forEach(e=>e.style.opacity=`0`)},g)},m)}return j(`SkeletonLoader`,c.html`
709
818
  <style>
710
- ${`
711
- @keyframes ${s+`-shimmer`} {
712
- 0% { background-color: #eee; }
713
- 50% { background-color: #ddd; }
714
- 100% { background-color: #eee; }
715
- }
716
- `}
717
- .${s} {
718
- ${u};
719
- background-color: #eee;
720
- ${a?`animation: ${s+`-shimmer`} 1.2s infinite ease-in-out`:``};
721
- }
819
+ ${S}
722
820
  </style>
723
821
  <div
724
- ${(0,l.ref)(e=>{e?d.bind(e):d.unbindAll()})}
725
- class="${s}"
726
- ></div>
727
- `)}function ue(e){let t=C(e?.on??{});return c.html`<div
822
+ style="${w}"
823
+ ${(0,l.ref)(e=>e&&E(e))}
824
+ >
825
+ ${T}
826
+ </div>
827
+ `)}function Se(e){let t=N(e?.on??{});return c.html`<div
728
828
  ${(0,l.ref)(e=>{e?t.bind(e):t.unbindAll()})}
729
829
  style="flex: 1 1 auto;"
730
- ></div>`}function $(e,t){if(t===void 0){let t=t=>$(e,t??c.html``);return t.html=(t,...n)=>$(e,(0,c.html)(t,...n)),t}let n=e?.top?`top: ${e.top};`:``,r=e?.bottom?`bottom: ${e.bottom};`:``,i=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,a=C(e?.on??{});return c.html`
830
+ ></div>`}function Ce(e,t){if(t===void 0){let t=t=>Ce(e,t??c.html``);return t.html=(t,...n)=>Ce(e,(0,c.html)(t,...n)),t}let n=e?.top?`top: ${e.top};`:``,r=e?.bottom?`bottom: ${e.bottom};`:``,i=typeof e?.zIndex==`number`?`z-index: ${e.zIndex};`:``,a=N(e?.on??{});return c.html`
731
831
  <div
732
832
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
733
833
  style="
@@ -736,29 +836,48 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
736
836
  ${i}
737
837
  "
738
838
  >
739
- ${d(t)}
839
+ ${x(t)}
740
840
  </div>
741
- `}function de(e,t){if(t===void 0){let t=t=>de(e,t??c.html``);return t.html=(t,...n)=>de(e,(0,c.html)(t,...n)),t}let n=b(`Table`),r=e?.className??v(`Table::table`)+`-lyco-now-${n}`,i=e?.striped?`
742
- .${r} tr:nth-child(even) { background: #f9f9f9; }
841
+ `}function we(e,t){if(t===void 0){let t=t=>we(e,t??c.html``);return t.html=(t,...n)=>we(e,(0,c.html)(t,...n)),t}let n=A(`Table`),r=e?.className??O(`Table::table`)+`-lyco-now-${n}`,i=e?.striped?`
842
+ .${r} tr:nth-child(even) {
843
+ background: ${J.colors.surface};
844
+ }
743
845
  `:``,a=e?.hover?`
744
- .${r} tr:hover { background: #f1f1f1; }
846
+ .${r} tr:hover {
847
+ background: ${J.colors.primaryContainer};
848
+ cursor: pointer;
849
+ }
745
850
  `:``,o=e?.bordered?`
746
- .${r}, .${r} th, .${r} td { border: 1px solid #ddd; }
851
+ .${r}, .${r} th, .${r} td {
852
+ border: 1px solid ${J.colors.surfaceVariant};
853
+ }
747
854
  `:``,s=`
748
- /* 将表格包裹在带有 _className 的 div 里,使后续 CSS 作用于该 div 下的 table */
749
855
  .${r} table {
750
856
  width: 100%;
751
- border-collapse: collapse;
857
+ border-collapse: separate;
858
+ border-spacing: 0;
859
+ border-radius: ${J.borderRadius.medium};
860
+ overflow: hidden;
861
+ box-shadow: ${J.elevation.level1};
752
862
  }
753
863
  .${r} th,
754
864
  .${r} td {
755
- padding: 8px 12px;
865
+ padding: 16px;
756
866
  text-align: left;
867
+ transition: background ${J.animation.standard};
868
+ }
869
+ .${r} th {
870
+ background: ${J.colors.surfaceVariant};
871
+ color: ${J.colors.onSurfaceVariant};
872
+ font-weight: 500;
873
+ }
874
+ .${r} td {
875
+ border-bottom: 1px solid ${J.colors.surfaceVariant};
757
876
  }
758
877
  ${i}
759
878
  ${a}
760
879
  ${o}
761
- `,u=C(e?.on??{});return x(`Table`,c.html`
880
+ `,u=N(e?.on??{});return j(`Table`,c.html`
762
881
  <style>
763
882
  ${s}
764
883
  </style>
@@ -768,10 +887,10 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
768
887
  class="${r}"
769
888
  >
770
889
  <table>
771
- ${d(t)}
890
+ ${x(t)}
772
891
  </table>
773
892
  </div>
774
- `)}function fe(e,t){let n=e?.direction??`row`,r=C(e?.on??{});return t===void 0?t=>fe(e,t??c.html``):c.html`
893
+ `)}function Te(e,t){let n=e?.direction??`row`,r=N(e?.on??{});return t===void 0?t=>Te(e,t??c.html``):c.html`
775
894
  <div
776
895
  ${(0,l.ref)(e=>{e?r.bind(e):r.unbindAll()})}
777
896
  style="
@@ -783,9 +902,9 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
783
902
  ${e?.justify?`justify-content: ${e.justify};`:``}
784
903
  "
785
904
  >
786
- ${f(t)}
905
+ ${S(t)}
787
906
  </div>
788
- `}function pe(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=C(e?.on??{});if(t===void 0)return t=>pe(e,t??[c.html``]);let o=`flex-start`,s=`flex-start`;switch(e?.align){case`top-right`:o=`flex-end`,s=`flex-start`;break;case`center`:o=`center`,s=`center`;break;case`bottom-left`:o=`flex-start`,s=`flex-end`;break;case`bottom-right`:o=`flex-end`,s=`flex-end`;break;default:o=`flex-start`,s=`flex-start`}return c.html`
907
+ `}function Ee(e,t){let n=e?.width?`width: ${e.width};`:``,r=e?.height?`height: ${e.height};`:``,i=e?.background?`background: ${e.background};`:``,a=N(e?.on??{});if(t===void 0)return t=>Ee(e,t??[c.html``]);let o=`flex-start`,s=`flex-start`;switch(e?.align){case`top-right`:o=`flex-end`,s=`flex-start`;break;case`center`:o=`center`,s=`center`;break;case`bottom-left`:o=`flex-start`,s=`flex-end`;break;case`bottom-right`:o=`flex-end`,s=`flex-end`;break;default:o=`flex-start`,s=`flex-start`}return c.html`
789
908
  <div
790
909
  ${(0,l.ref)(e=>{e?a.bind(e):a.unbindAll()})}
791
910
  style="
@@ -796,7 +915,404 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
796
915
  ${n} ${r} ${i}
797
916
  "
798
917
  >
799
- ${f(t)}
918
+ ${S(t)}
919
+ </div>
920
+ `}function De(e){let{value:t=``,options:n=[],placeholder:r=``,disabled:i=!1,error:a=!1,className:o=``,style:s=``,maxHeight:u=`300px`,onChange:d,onInput:f,onFocus:p,onBlur:m,on:h={},optionRender:g}=e??{},_=A(`Combobox`),v=O(`Combobox::combobox`)+`-lyco-now-${_}`,y=!1,b=null,x=`
921
+ .${v} {
922
+ position: relative;
923
+ width: 100%;
924
+ }
925
+
926
+ .${v} input {
927
+ width: 100%;
928
+ padding: 12px 16px;
929
+ font-size: 16px;
930
+ border: 1px solid ${a?J.colors.error:J.colors.surfaceVariant};
931
+ border-radius: ${J.borderRadius.small};
932
+ color: ${J.colors.onSurface};
933
+ transition: all ${J.animation.standard};
934
+ outline: none;
935
+ box-sizing: border-box;
936
+ }
937
+
938
+ .${v} input:focus {
939
+ border-color: ${J.colors.primary};
940
+ box-shadow: 0 0 0 2px ${J.colors.primaryContainer};
941
+ }
942
+
943
+ .${v} input:disabled {
944
+ background: ${J.colors.surfaceVariant};
945
+ color: ${J.colors.onSurfaceVariant};
946
+ cursor: not-allowed;
947
+ }
948
+
949
+ .${v} .options {
950
+ position: absolute;
951
+ top: 100%;
952
+ left: 0;
953
+ right: 0;
954
+ max-height: ${u};
955
+ overflow-y: auto;
956
+ border: 1px solid ${J.colors.surfaceVariant};
957
+ border-radius: ${J.borderRadius.small};
958
+ box-shadow: ${J.elevation.level2};
959
+ z-index: 1000;
960
+ display: none;
961
+ }
962
+
963
+ .${v} .options.open {
964
+ display: block;
965
+ }
966
+
967
+ .${v} .option {
968
+ padding: 12px 16px;
969
+ cursor: pointer;
970
+ transition: background ${J.animation.standard};
971
+ }
972
+
973
+ .${v} .option:hover {
974
+ background: ${J.colors.primaryContainer};
975
+ }
976
+
977
+ .${v} .option.selected {
978
+ background: ${J.colors.primaryContainer};
979
+ color: ${J.colors.onPrimaryContainer};
980
+ }
981
+ `,S=N(h),C=null,w=()=>{y?C?.classList.remove(`open`):C?.classList.add(`open`),y=!y},T=(e,t)=>{if(b){b.value=e.value;let n=t.currentTarget;Array.from(C?.querySelectorAll(`.selected`)??[]).forEach(e=>e.classList.remove(`selected`)),!n.classList.contains(`selected`)&&n.classList.add(`selected`),d?.(e.value)}w()},E=e=>{let t=e.target;t.closest(`.${v}`)||(y=!1,C?.classList.remove(`open`))};return typeof window<`u`&&document.addEventListener(`click`,E),j(`Combobox`,c.html`
982
+ <style>
983
+ ${x}
984
+ </style>
985
+ <div class="${v} ${o}" style="${s}">
986
+ <input
987
+ ${(0,l.ref)(e=>{e?(b=e,S.bind(e)):S.unbindAll()})}
988
+ type="text"
989
+ .value=${t}
990
+ placeholder=${r}
991
+ ?disabled=${i}
992
+ @focus=${()=>{p?.(),w()}}
993
+ @input=${e=>{let t=e.target;f?.(t.value)}}
994
+ @change=${e=>{let t=e.target;d?.(t.value)}}
995
+ />
996
+ <div
997
+ ${(0,l.ref)(e=>{e&&(C=e)})}
998
+ class="options"
999
+ >
1000
+ ${n.map(e=>c.html`
1001
+ <div
1002
+ class="option ${e.value===(b?.value??t)?`selected`:``}"
1003
+ @click=${t=>T(e,t)}
1004
+ >
1005
+ ${g?g(e):e.label}
1006
+ </div>
1007
+ `)}
1008
+ </div>
1009
+ </div>
1010
+ `)}function Oe(e){let t=Math.min(100,Math.max(0,e?.value??0)),n=Math.min(100,Math.max(0,e?.bufferValue??0)),r=e?.color??`#1976d2`,i=e?.secondaryColor??`#90caf9`,a=e?.backgroundColor??`#e0e0e0`,o=e?.height??`4px`,s=e?.radius??`4px`,u=e?.showLabel??!1,d=e?.labelPosition??`inside`,f=e?.labelColor??(t>50?`white`:r),p=e?.labelFontSize??`12px`,m=e?.striped??!1,h=e?.animated??!1,g=e?.paused??!1,_=e?.transitionDuration??`0.3s`,v=e?.className??``,y=e?.style??``,b=N(e?.on??{}),x=m?`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);
1011
+ background-size: 1rem 1rem;
1012
+ animation: progress-stripes 1s linear infinite;
1013
+ animation-play-state: ${g?`paused`:`running`};`:``;return c.html`
1014
+ <style>
1015
+ ${c.css`
1016
+ @keyframes progress-stripes {
1017
+ from {
1018
+ background-position: 1rem 0;
1019
+ }
1020
+ to {
1021
+ background-position: 0 0;
1022
+ }
1023
+ }
1024
+ `.cssText}
1025
+ </style>
1026
+
1027
+ <div
1028
+ ${(0,l.ref)(e=>{e?b.bind(e):b.unbindAll()})}
1029
+ class="lyco-progress ${v}"
1030
+ role="progressbar"
1031
+ aria-valuemin="0"
1032
+ aria-valuemax="100"
1033
+ aria-valuenow="${t}"
1034
+ style="
1035
+ width: 100%;
1036
+ background: ${a};
1037
+ border-radius: ${s};
1038
+ height: ${o};
1039
+ position: relative;
1040
+ overflow: hidden;
1041
+ display: flex;
1042
+ align-items: center;
1043
+ ${y}
1044
+ "
1045
+ >
1046
+ ${e?.prefixIcon}
1047
+ <!-- 缓冲进度 -->
1048
+ <div
1049
+ style="
1050
+ position: absolute;
1051
+ width: ${n}%;
1052
+ height: 100%;
1053
+ background: ${i};
1054
+ transition: width ${_} ease;
1055
+ "
1056
+ ></div>
1057
+ <!-- 主进度 -->
1058
+ <div
1059
+ style="
1060
+ position: absolute;
1061
+ width: ${t}%;
1062
+ height: 100%;
1063
+ background: ${r};
1064
+ border-radius: ${s};
1065
+ transition: width ${_} ease;
1066
+ ${x}
1067
+ "
1068
+ ></div>
1069
+
1070
+ <!-- 文本标签 -->
1071
+ ${u?c.html`
1072
+ <div
1073
+ style="
1074
+ position: ${d===`inside`?`absolute`:`relative`};
1075
+ ${d===`inside`?`right: 8px; top: 50%; transform: translateY(-50%);`:`margin-left: auto; margin-right: 4px;`}
1076
+ font-size: ${p};
1077
+ color: ${f};
1078
+ z-index: 1;
1079
+ "
1080
+ >
1081
+ ${t}%
1082
+ </div>
1083
+ `:``}
1084
+ ${e?.suffixIcon}
1085
+ </div>
1086
+ `}function ke(e){let{size:t=`24px`,color:n=J.colors.primary,thickness:r=`2px`,speed:i=`1.2s`,className:a=``,opacity:o=1,startAngle:s=0,easing:u=`linear`,reverse:d=!1,style:f=``,on:p={},children:m,svgMode:h=!1,strokeLinecap:g=`butt`,strokeDasharray:_=``}=e??{},v=N(p),y=A(`Spinner`),b=c.html`
1087
+ <div
1088
+ class="${a}"
1089
+ style="display: inline-flex; align-items: center; justify-content: center; width: ${t}; height: ${t}; ${f}"
1090
+ ${(0,l.ref)()}
1091
+ >
1092
+ <div
1093
+ style="
1094
+ width: 100%;
1095
+ height: 100%;
1096
+ border: ${r} solid ${n};
1097
+ border-right-color: transparent;
1098
+ border-radius: 50%;
1099
+ box-sizing: border-box;
1100
+ opacity: ${o};
1101
+ animation: lyco-spin-${y} ${i} ${u} infinite ${d?`reverse`:`normal`};
1102
+ "
1103
+ ></div>
1104
+ </div>
1105
+ <style>
1106
+ ${c.css`
1107
+ @keyframes lyco-spin-${y} {
1108
+ from {
1109
+ transform: rotate(${s}deg);
1110
+ }
1111
+ to {
1112
+ transform: rotate(${s+360}deg);
1113
+ }
1114
+ }
1115
+ `.cssText}
1116
+ </style>
1117
+ `,x=c.html`
1118
+ <div
1119
+ class="${a}"
1120
+ style="display: inline-flex; align-items: center; justify-content: center; width: ${t}; height: ${t}; ${f}"
1121
+ ${(0,l.ref)(e=>{e?v.bind(e):v.unbindAll()})}
1122
+ >
1123
+ <svg
1124
+ width="100%"
1125
+ height="100%"
1126
+ viewBox="0 0 100 100"
1127
+ style="opacity: ${o}; overflow: visible; filter: drop-shadow(${J.elevation.level1});"
1128
+ >
1129
+ <circle
1130
+ cx="50"
1131
+ cy="50"
1132
+ r="45"
1133
+ fill="none"
1134
+ stroke="${n}"
1135
+ style="
1136
+ stroke-width: ${r};
1137
+ stroke-linecap: ${g};
1138
+ stroke-dasharray: ${_};
1139
+ transform-origin: 50% 50%;
1140
+ animation: lyco-svg-spin-${y} ${i} ${u} infinite ${d?`reverse`:`normal`};
1141
+ "
1142
+ ></circle>
1143
+ </svg>
800
1144
  </div>
801
- `}exports.AbsoluteBox=R,exports.AcrylicBar=z,exports.AspectRatio=B,exports.AutoFitGrid=V,exports.AvatarStack=H,exports.Badge=U,exports.Canvas=G,exports.Card=K,exports.Center=q,exports.Column=T,exports.ColumnSplit=P,exports.Container=J,exports.Divider=te,exports.Flex=E,exports.FlowItem=D,exports.FooterLayout=Y,exports.ForEach=ne,exports.Grid=O,exports.GridBreakpoint=X,exports.GridCol=k,exports.GridItem=A,exports.GridRow=j,exports.HeroSection=re,exports.Hidden=Z,exports.LightboxContainer=w,exports.List=ae,exports.ListGroup=oe,exports.ListItem=ie,exports.Overlay=se,exports.PositionContainer=Q,exports.Row=M,exports.RowSplit=F,exports.ScrollBar=I,exports.SideBarContainer=L,exports.SizedBox=ce,exports.SkeletonLoader=le,exports.Spacer=ue,exports.Sticky=$,exports.Swiper=ee,exports.Table=de,exports.WaterFlow=N,exports.Wrap=fe,exports.ZStack=pe;
1145
+ <style>
1146
+ ${c.css`
1147
+ @keyframes lyco-svg-spin-${y} {
1148
+ from {
1149
+ transform: rotate(${s}deg);
1150
+ }
1151
+ to {
1152
+ transform: rotate(${s+360}deg);
1153
+ }
1154
+ }
1155
+ `.cssText}
1156
+ </style>
1157
+ `;return j(`Spinner`,h?x:b)}let $=function(e){return e.Top=`top`,e.Bottom=`bottom`,e.Left=`left`,e.Right=`right`,e}({});function Ae(e,t){let{content:n,placement:r=$.Top,delay:i={show:200,hide:100},offset:a=8,hideOnClick:o=!1,interactive:s=!1,maxWidth:u=`200px`,theme:d=`dark`,className:f=``,style:p=``,zIndex:m=1e3,on:h={},onShow:g,onHide:_}=e,v=N(h),y,b;function S(e){clearTimeout(b),y=window.setTimeout(()=>{T.style.visibility=`visible`,T.style.opacity=`1`,g?.()},i.show)}function C(){clearTimeout(y),b=window.setTimeout(()=>{T.style.visibility=`hidden`,T.style.opacity=`0`,_?.()},i.hide)}let T,E=e=>c.html`
1158
+ <div
1159
+ ${(0,l.ref)(e=>{e?(v.bind(e),T=e.querySelector(`.lyco-tooltip-content`),e.addEventListener(`mouseenter`,()=>S(e)),e.addEventListener(`mouseleave`,()=>C()),o&&e.addEventListener(`click`,()=>C())):v.unbindAll()})}
1160
+ class="lyco-tooltip lyco-tooltip--${d} ${f}"
1161
+ style="position: relative; display: inline-block; ${p}"
1162
+ >
1163
+ ${x(e)}
1164
+ <div
1165
+ class="lyco-tooltip-content"
1166
+ style="
1167
+ position: absolute;
1168
+ max-width: ${u};
1169
+ ${r===$.Top?`bottom: 100%; left: 50%; transform: translateX(-50%)`:``}
1170
+ ${r===$.Bottom?`top: 100%; left: 50%; transform: translateX(-50%)`:``}
1171
+ ${r===$.Left?`right: 100%; top: 50%; transform: translateY(-50%)`:``}
1172
+ ${r===$.Right?`left: 100%; top: 50%; transform: translateY(-50%)`:``}
1173
+ padding: 4px 8px;
1174
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
1175
+ background: ${d===`light`?`white; color: black`:`rgba(0,0,0,0.8); color: white`};
1176
+ border-radius: 4px;
1177
+ font-size: 12px;
1178
+ white-space: normal;
1179
+ width: ${r===$.Left||r===$.Right?u:`auto`};
1180
+ visibility: hidden;
1181
+ opacity: 0;
1182
+ transition: opacity ${i.show}ms;
1183
+ z-index: ${m};
1184
+ margin: ${typeof a==`number`?r===$.Top||r===$.Bottom?`${a}px 0`:`0 ${a}px`:`${a.y}px ${a.x}px`};
1185
+ ${s?`pointer-events: auto`:`pointer-events: none`};
1186
+ "
1187
+ >
1188
+ ${n}
1189
+ </div>
1190
+ </div>
1191
+ `;return w(t,E)}let je=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 Me=typeof window>`u`,Ne=!Me&&`HTMLDialogElement`in window,Pe=e=>`
1192
+ position: fixed;
1193
+ top: 0;
1194
+ left: 0;
1195
+ width: 100%;
1196
+ height: 100%;
1197
+ display: ${e?`flex`:`none`};
1198
+ align-items: center;
1199
+ justify-content: center;
1200
+ z-index: 1000;
1201
+ background: rgba(0,0,0,0.3);
1202
+ `;var Fe=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 Ie(e,t){let n=e?.open??!1,r=e?.onClose,i=e?.className??``,a=e?.style??``,o=N(e?.on?e?.on:{}),s=e?.movable??!1,u=e?.placement??je.Center,d=e?.proxyRef??{value:null},f=null,p=!1,m={x:0,y:0},h=null,g=e?.mask??!0,_=A(`Dialog`),v=O(`Dialog::dialog`)+`-lyco-now-`+_;function y(e){return s?s===`self`?e:s&&`value`in s?s.value:null:null}function b(){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 x(){switch(u){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 b()}}function C(){switch(u){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 w(e,t){if(e.button!==0||(h=y(t),!h||!h.contains(e.target)))return;f=t,f.style.transform=`none`,e.preventDefault(),h.style.cursor=`grabbing`;let n=t.getBoundingClientRect(),{txp:r,typ:i}=C();m={x:e.clientX-(n.left+r/100*n.width),y:e.clientY-(n.top+i/100*n.height)},p=!0,document.addEventListener(`mousemove`,E),document.addEventListener(`mouseup`,D)}function E(e){if(!p||!h||!f)return;let t=f.getBoundingClientRect(),{txp:n,typ:r}=C(),i=e.clientX-m.x-n/100*t.width,a=e.clientY-m.y-r/100*t.height;f.style.left=`${i}px`,f.style.top=`${a}px`}function D(){p=!1,h=null,f=null,document.removeEventListener(`mousemove`,E),document.removeEventListener(`mouseup`,D)}function k(){let e=g?`rgba(0,0,0,0.5)`:`transparent`;return`
1203
+ ${v}::-webkit-backdrop,
1204
+ ${v}::backdrop {
1205
+ background: ${e};
1206
+ transition: opacity ${J.animation.standard};
1207
+ }
1208
+ `}function M(e){let t=null,u=null;return j(`Dialog`,c.html`
1209
+ <div
1210
+ ${(0,l.ref)(e=>{if(e){if(t=e,u){let e=new Fe(t,u);d.value=e,o.bind(t),n?e.showModal():e.close()}}else o.unbindAll()})}
1211
+ @click=${e=>{e.target===e.currentTarget&&r?.()}}
1212
+ style=${Pe(n)}
1213
+ >
1214
+ <div
1215
+ ${(0,l.ref)(e=>{if(e&&(u=e,t)){let e=new Fe(t,u);d.value=e}})}
1216
+ class="${v} ${i}"
1217
+ style="
1218
+ padding: 0;
1219
+ border: none;
1220
+ background: ${J.colors.surface};
1221
+ border-radius: ${J.borderRadius.large};
1222
+ min-width: 300px;
1223
+ ${x()}
1224
+ ${typeof s==`boolean`?``:`cursor: default;`}
1225
+ ${a}
1226
+ "
1227
+ >
1228
+ ${S(e)}
1229
+ </div>
1230
+ </div>
1231
+ `)}function P(e){return Me||!Ne?M(e):j(`Dialog`,c.html`
1232
+ <dialog
1233
+ ${(0,l.ref)(e=>{if(e){d.value=e;let t=e;o.bind(t),requestAnimationFrame(()=>{try{n?t.showModal():t.close()}catch(e){console.warn(`Dialog operation failed:`,e)}})}else o.unbindAll()})}
1234
+ @close=${r}
1235
+ @mousedown=${e=>w(e,e.currentTarget)}
1236
+ style="
1237
+ padding: 0;
1238
+ border: none;
1239
+ background: ${J.colors.surface};
1240
+ border-radius: ${J.borderRadius.large};
1241
+ min-width: 300px;
1242
+ margin: 0;
1243
+ position: fixed;
1244
+ box-shadow: ${J.elevation.level3};
1245
+ transition: transform ${J.animation.emphasized};
1246
+ ${x()}
1247
+ ${typeof s==`boolean`?``:`cursor: default;`}
1248
+ ${a}
1249
+ "
1250
+ >
1251
+ ${S(e)}
1252
+ </dialog>
1253
+ <style>
1254
+ ${k()}
1255
+ </style>
1256
+ `)}return T(t,P)}function Le(e,t){let n=e?.className??``,r=e?.style??``,i=N(e?.on??{}),a=e=>c.html`
1257
+ <div
1258
+ ${(0,l.ref)(e=>{e?i.bind(e):i.unbindAll()})}
1259
+ class="lyco-dialog-actions ${n}"
1260
+ style="
1261
+ display: flex;
1262
+ align-items: center;
1263
+ justify-content: flex-end;
1264
+ padding: 8px 24px;
1265
+ ${r}
1266
+ "
1267
+ >
1268
+ ${S(e)}
1269
+ </div>
1270
+ `;return T(t,a)}function Re(e,t){let n=e?.variant??`text`,r=e?.color??`default`,i=e?.className??``,a=e?.style??``,o=N({click:e?.onClick?t=>{var n;t.preventDefault(),(n=e.onClick)?.call(e,t)}:void 0,...e?.on}),s=e=>c.html`
1271
+ <button
1272
+ ${(0,l.ref)(e=>{e?o.bind(e):o.unbindAll()})}
1273
+ class="lyco-dialog-button ${n} ${r} ${i}"
1274
+ style="
1275
+ padding: 6px 16px;
1276
+ font-size: 14px;
1277
+ border-radius: 4px;
1278
+ cursor: pointer;
1279
+ border: none;
1280
+ outline: none;
1281
+ margin: 0 4px;
1282
+ ${n===`contained`?`background: #1976d2; color: white;`:`background: transparent;`}
1283
+ ${a}
1284
+ "
1285
+ >
1286
+ ${x(e)}
1287
+ </button>
1288
+ `;return w(t,s)}function ze(e,t){let n=e?.className??``,r=e?.style??``,i=N(e?.on??{}),a=e=>c.html`
1289
+ <div
1290
+ class="lyco-dialog-content ${n}"
1291
+ style="
1292
+ background: white;
1293
+ border-radius: 4px;
1294
+ padding: 20px;
1295
+ min-width: 300px;
1296
+ position: relative;
1297
+ ${r}
1298
+ "
1299
+ >
1300
+ ${S(e)}
1301
+ </div>
1302
+ `;return T(t,a)}function Be(e,t){let n=e?.className??``,r=e?.style??``,i=N(e?.on??{}),a=e?.proxyRef??{value:null},o=e=>c.html`
1303
+ <div
1304
+ ${(0,l.ref)(e=>{e?(a.value=e,i.bind(e)):i.unbindAll()})}
1305
+ class="lyco-dialog-title ${n}"
1306
+ style="
1307
+ padding: 16px 24px;
1308
+ font-size: 20px;
1309
+ font-weight: 500;
1310
+ line-height: 1.6;
1311
+ letter-spacing: 0.0075em;
1312
+ ${r}
1313
+ "
1314
+ >
1315
+ ${x(e)}
1316
+ </div>
1317
+ `;return w(t,o)}exports.AbsoluteBox=ne,exports.AcrylicBar=re,exports.AspectRatio=Y,exports.AutoFitGrid=X,exports.AvatarStack=ie,exports.Badge=Z,exports.Canvas=oe,exports.Card=se,exports.Center=Q,exports.Column=F,exports.ColumnSplit=W,exports.Combobox=De,exports.Container=ce,exports.Dialog=Ie,exports.DialogActions=Le,exports.DialogButton=Re,exports.DialogContent=ze,exports.DialogPlacement=je,exports.DialogTitle=Be,exports.Divider=le,exports.Flex=I,exports.FlowItem=L,exports.FooterLayout=ue,exports.ForEach=de,exports.Grid=R,exports.GridBreakpoint=fe,exports.GridCol=z,exports.GridItem=B,exports.GridRow=V,exports.HeroSection=pe,exports.Hidden=me,exports.LightboxContainer=P,exports.List=ge,exports.ListGroup=_e,exports.ListItem=he,exports.Overlay=ve,exports.PositionContainer=ye,exports.Progress=Oe,exports.Row=H,exports.RowSplit=G,exports.ScrollBar=K,exports.SideBarContainer=q,exports.SizedBox=be,exports.SkeletonLoader=xe,exports.Spacer=Se,exports.Spinner=ke,exports.Sticky=Ce,exports.Swiper=ee,exports.SwitchInput=te,exports.Table=we,exports.Virtualizer=y,exports.VirtualizerController=h,exports.WaterFlow=U,exports.WithTooltip=Ae,exports.Wrap=Te,exports.ZStack=Ee;
802
1318
  //# sourceMappingURL=index.cjs.js.map