veilkit 0.2.1 → 0.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/CHANGELOG.md +23 -0
- package/README.md +119 -6
- package/assets/demo-button.gif +0 -0
- package/assets/demo-hero.gif +0 -0
- package/assets/demo-presets.gif +0 -0
- package/assets/demo-spinners.gif +0 -0
- package/dist/angular/index.cjs +5 -5
- package/dist/angular/index.cjs.map +1 -1
- package/dist/angular/index.d.cts +2 -2
- package/dist/angular/index.d.ts +2 -2
- package/dist/angular/index.js +5 -5
- package/dist/angular/index.js.map +1 -1
- package/dist/{controller-Ceub9kLC.d.ts → controller-Cmc3Hp1j.d.ts} +1 -1
- package/dist/{controller-B6kFsWzi.d.cts → controller-CzNTbEGd.d.cts} +1 -1
- package/dist/element/index.cjs +14 -14
- package/dist/element/index.cjs.map +1 -1
- package/dist/element/index.js +14 -14
- package/dist/element/index.js.map +1 -1
- package/dist/index.cjs +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -4
- package/dist/index.d.ts +27 -4
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/native/index.d.cts +1 -1
- package/dist/native/index.d.ts +1 -1
- package/dist/react/index.cjs +14 -14
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +14 -2
- package/dist/react/index.d.ts +14 -2
- package/dist/react/index.js +14 -14
- package/dist/react/index.js.map +1 -1
- package/dist/svelte/index.cjs +4 -4
- package/dist/svelte/index.cjs.map +1 -1
- package/dist/svelte/index.d.cts +1 -1
- package/dist/svelte/index.d.ts +1 -1
- package/dist/svelte/index.js +4 -4
- package/dist/svelte/index.js.map +1 -1
- package/dist/themes/index.d.cts +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/{types-CnR-rU97.d.cts → types-D2ryMkLU.d.cts} +25 -2
- package/dist/{types-CnR-rU97.d.ts → types-D2ryMkLU.d.ts} +25 -2
- package/dist/veilkit.min.js +13 -5
- package/dist/vue/index.cjs +3 -3
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.d.cts +1 -1
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.js +3 -3
- package/dist/vue/index.js.map +1 -1
- package/package.json +2 -1
package/dist/native/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react__default from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import { V as VeilThemeName, a as VeilAnimationName } from '../types-
|
|
3
|
+
import { V as VeilThemeName, a as VeilAnimationName } from '../types-D2ryMkLU.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Veilkit - React Native & Expo Adapter (`veilkit/native`)
|
package/dist/native/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react__default from 'react';
|
|
2
2
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
-
import { V as VeilThemeName, a as VeilAnimationName } from '../types-
|
|
3
|
+
import { V as VeilThemeName, a as VeilAnimationName } from '../types-D2ryMkLU.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Veilkit - React Native & Expo Adapter (`veilkit/native`)
|
package/dist/react/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var
|
|
1
|
+
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var O={light:{base:"#e5e7eb",highlight:"rgba(255, 255, 255, 0.7)",radius:"6px",duration:"1.5s",easing:"cubic-bezier(0.4, 0, 0.2, 1)",border:"none",contrast:"#374151"},dark:{base:"#1f2937",highlight:"rgba(255, 255, 255, 0.12)",radius:"6px",duration:"1.5s",easing:"cubic-bezier(0.4, 0, 0.2, 1)",border:"none",contrast:"#f3f4f6"},auto:{base:"var(--veil-auto-base, #e5e7eb)",highlight:"var(--veil-auto-highlight, rgba(255, 255, 255, 0.7))",radius:"6px",duration:"1.5s",easing:"cubic-bezier(0.4, 0, 0.2, 1)",border:"none",contrast:"var(--veil-auto-contrast, #374151)"},glass:{base:"rgba(255, 255, 255, 0.08)",highlight:"rgba(255, 255, 255, 0.25)",radius:"12px",duration:"1.8s",easing:"cubic-bezier(0.25, 1, 0.5, 1)",blur:"12px",border:"1px solid rgba(255, 255, 255, 0.15)",glow:"inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px 0 rgba(0, 0, 0, 0.12)",contrast:"#ffffff"},ios:{base:"rgba(120, 120, 128, 0.18)",highlight:"rgba(255, 255, 255, 0.45)",radius:"10px",duration:"1.4s",easing:"cubic-bezier(0.32, 0.72, 0, 1)",border:"none",contrast:"#1c1c1e"},material:{base:"#e7e0ec",highlight:"#f7f2fa",radius:"12px",duration:"1.6s",easing:"cubic-bezier(0.2, 0, 0, 1)",border:"none",contrast:"#1d1b20"},minimal:{base:"#f1f3f5",highlight:"#ffffff",radius:"4px",duration:"1.4s",easing:"ease-in-out",border:"none",contrast:"#212529"},mono:{base:"#e0e0e0",highlight:"#ffffff",radius:"0px",duration:"1.2s",easing:"linear",border:"1px solid #cccccc",contrast:"#000000"},neon:{base:"#0c0b16",highlight:"rgba(0, 240, 255, 0.5)",radius:"8px",duration:"1.6s",easing:"cubic-bezier(0.4, 0, 0.2, 1)",border:"1px solid rgba(0, 240, 255, 0.3)",glow:"0 0 12px rgba(0, 240, 255, 0.35)",contrast:"#00f0ff"},sunset:{base:"#fed7aa",highlight:"#fff7ed",radius:"8px",duration:"1.7s",easing:"cubic-bezier(0.4, 0, 0.2, 1)",border:"none",glow:"0 0 8px rgba(251, 146, 60, 0.25)",contrast:"#7c2d12"},ocean:{base:"#0f2937",highlight:"rgba(56, 189, 248, 0.45)",radius:"8px",duration:"1.7s",easing:"cubic-bezier(0.4, 0, 0.2, 1)",border:"1px solid rgba(56, 189, 248, 0.2)",glow:"0 0 10px rgba(56, 189, 248, 0.25)",contrast:"#38bdf8"}};function ee(){return ["@keyframes veil-shimmer-ltr{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}","@keyframes veil-shimmer-rtl{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}","@keyframes veil-shimmer-ttb{0%{transform:translateY(-100%)}100%{transform:translateY(100%)}}","@keyframes veil-shimmer-btt{0%{transform:translateY(100%)}100%{transform:translateY(-100%)}}","@keyframes veil-wave{0%{transform:translateX(-120%) scaleX(0.8);opacity:0.3}50%{opacity:0.95}100%{transform:translateX(120%) scaleX(1.2);opacity:0.3}}","@keyframes veil-pulse{0%,100%{opacity:1}50%{opacity:0.38}}","@keyframes veil-blink{0%,49%{opacity:1}50%,99%{opacity:0.2}100%{opacity:1}}","@keyframes veil-breathe{0%,100%{opacity:0.65;transform:scale(0.995)}50%{opacity:1;transform:scale(1.005)}}","@keyframes veil-glass-shine{0%{transform:translate3d(-150%,-150%,0) rotate(35deg);opacity:0.1}40%,60%{opacity:0.85}100%{transform:translate3d(200%,200%,0) rotate(35deg);opacity:0.1}}","@keyframes veil-gradient-flow{0%{transform:translateX(-66.6%)}100%{transform:translateX(0%)}}","@keyframes veil-aurora{0%{transform:translate3d(-20%,-15%,0) rotate(0deg) scale(1);opacity:0.5}50%{transform:translate3d(25%,20%,0) rotate(180deg) scale(1.25);opacity:0.85}100%{transform:translate3d(-20%,-15%,0) rotate(360deg) scale(1);opacity:0.5}}","@keyframes veil-scan-line{0%{transform:translateY(-100%);opacity:0.2}50%{opacity:1}100%{transform:translateY(300%);opacity:0.2}}","@keyframes veil-sparkle{0%,100%{opacity:0.2;transform:scale(0.98)}25%{opacity:0.8;transform:scale(1.02)}50%{opacity:0.3;transform:scale(0.99)}75%{opacity:0.95;transform:scale(1.01)}}","@keyframes veil-neon-glow{0%,100%{opacity:0.45;transform:scale(0.998)}50%{opacity:1;transform:scale(1.002)}}","@keyframes veil-ripple{0%{transform:scale(0.2);opacity:0.9}100%{transform:scale(2.4);opacity:0}}","@keyframes veil-ping-pong{0%,100%{transform:translateX(-100%)}50%{transform:translateX(100%)}}","@keyframes veil-wipe{0%{transform:translateX(-100%) scaleX(0.2);opacity:0.2}50%{transform:translateX(0%) scaleX(1);opacity:0.9}100%{transform:translateX(100%) scaleX(0.2);opacity:0.2}}","@keyframes veil-cascade{0%{transform:translateY(-100%);opacity:0.3}50%{opacity:0.95}100%{transform:translateY(100%);opacity:0.3}}","@keyframes veil-spotlight{0%{transform:translate3d(-100%,-50%,0);opacity:0.15}50%{transform:translate3d(50%,0%,0);opacity:0.85}100%{transform:translate3d(200%,50%,0);opacity:0.15}}","@keyframes veil-rainbow{0%{filter:hue-rotate(0deg);transform:translateX(-50%)}100%{filter:hue-rotate(360deg);transform:translateX(0%)}}","@keyframes veil-heartbeat{0%,100%{transform:scale(1);opacity:0.7}14%{transform:scale(1.025);opacity:1}28%{transform:scale(1);opacity:0.75}42%{transform:scale(1.035);opacity:1}70%{transform:scale(1);opacity:0.7}}","@keyframes veil-liquid{0%,100%{transform:translateX(-100%) scaleY(0.9) skewX(-8deg);opacity:0.4}50%{transform:translateX(100%) scaleY(1.1) skewX(8deg);opacity:0.9}}","@keyframes veil-stripes{0%{transform:translateX(-48px)}100%{transform:translateX(0px)}}","@keyframes veil-halftone{0%,100%{opacity:0.35;transform:scale(0.995)}50%{opacity:0.95;transform:scale(1.005)}}","@keyframes veil-border-glow{0%,100%{opacity:0.5;transform:scale(0.998)}50%{opacity:1;transform:scale(1.002)}}","@keyframes veil-typewriter{0%{transform:scaleX(0.1);transform-origin:left;opacity:0.4}100%{transform:scaleX(1);transform-origin:left;opacity:1}}","@keyframes veil-glitch{0%,100%{transform:translate(0);opacity:0.8}20%{transform:translate(-2px,1px);opacity:0.95}40%{transform:translate(2px,-1px);opacity:0.85}60%{transform:translate(-1px,-1px);opacity:1}80%{transform:translate(1px,2px);opacity:0.9}}","@keyframes veil-pixelate{0%,100%{opacity:0.3;transform:scale(0.99)}25%{opacity:0.75;transform:scale(1)}50%{opacity:0.45;transform:scale(0.995)}75%{opacity:0.9;transform:scale(1.005)}}","@keyframes veil-tilt{0%,100%{transform:perspective(600px) rotateX(0deg) rotateY(0deg);opacity:0.7}50%{transform:perspective(600px) rotateX(4deg) rotateY(-4deg);opacity:1}}","@keyframes veil-diagonal-sweep{0%{transform:translate3d(-100%,-100%,0) rotate(-45deg)}100%{transform:translate3d(150%,150%,0) rotate(-45deg)}}","@keyframes veil-bounce-in{0%,100%{transform:scale(0.985);opacity:0.6}50%{transform:scale(1.015);opacity:1}}","@keyframes veil-fade-slide{0%,100%{transform:translateY(3px);opacity:0.5}50%{transform:translateY(-3px);opacity:1}}",'[data-veil-anim="stagger"]>*{animation-delay:calc(var(--veil-stagger-idx,0)*120ms)!important}'].join("")}var te=false,ie;function ne(i){ie=i;}function $e(){let i=O.light,e=O.dark;return `
|
|
2
2
|
/* === VEILKIT CORE STYLES === */
|
|
3
3
|
:root {
|
|
4
|
-
--veil-base: ${
|
|
5
|
-
--veil-highlight: ${
|
|
6
|
-
--veil-radius: ${
|
|
7
|
-
--veil-duration: ${
|
|
8
|
-
--veil-easing: ${
|
|
4
|
+
--veil-base: ${i.base};
|
|
5
|
+
--veil-highlight: ${i.highlight};
|
|
6
|
+
--veil-radius: ${i.radius};
|
|
7
|
+
--veil-duration: ${i.duration};
|
|
8
|
+
--veil-easing: ${i.easing};
|
|
9
9
|
--veil-direction: ltr;
|
|
10
10
|
--veil-border: none;
|
|
11
11
|
--veil-blur: none;
|
|
12
12
|
--veil-glow: none;
|
|
13
|
-
--veil-contrast: ${
|
|
13
|
+
--veil-contrast: ${i.contrast};
|
|
14
14
|
|
|
15
|
-
--veil-auto-base: ${
|
|
16
|
-
--veil-auto-highlight: ${
|
|
17
|
-
--veil-auto-contrast: ${
|
|
15
|
+
--veil-auto-base: ${i.base};
|
|
16
|
+
--veil-auto-highlight: ${i.highlight};
|
|
17
|
+
--veil-auto-contrast: ${i.contrast};
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@media (prefers-color-scheme: dark) {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* === THEME ATTRIBUTE CLASSES === */
|
|
36
|
-
${Object.entries(
|
|
36
|
+
${Object.entries(O).map(([d,l])=>`[data-veil-theme="${d}"]{--veil-base:${l.base};--veil-highlight:${l.highlight};--veil-radius:${l.radius};--veil-duration:${l.duration};--veil-easing:${l.easing};${l.border?`--veil-border:${l.border};`:""}${l.blur?`--veil-blur:${l.blur};`:""}${l.glow?`--veil-glow:${l.glow};`:""}--veil-contrast:${l.contrast};}`).join("")}
|
|
37
37
|
|
|
38
38
|
/* === BASE SKELETON ELEMENT === */
|
|
39
39
|
.veil-skeleton {
|
|
@@ -508,7 +508,7 @@ ${Object.entries(D).map(([o,l])=>`[data-veil-theme="${o}"]{--veil-base:${l.base}
|
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
${ee()}
|
|
511
|
-
`}function g(t){if(te||typeof document>"u")return;te=true;let e=Te(),o=t||ie;if(typeof document.adoptedStyleSheets<"u"&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype&&!o)try{let r=new CSSStyleSheet;r.replaceSync(e),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];return}catch{}let l=document.createElement("style");l.id="veilkit-styles",o&&l.setAttribute("nonce",o),l.textContent=e,document.head.appendChild(l);}var j={en:{loading:"Loading content, please wait\u2026",loaded:"Content loaded.",progress:"Loading progress",busy:"Busy"},es:{loading:"Cargando contenido, por favor espere\u2026",loaded:"Contenido cargado.",progress:"Progreso de carga",busy:"Ocupado"},fr:{loading:"Chargement du contenu, veuillez patienter\u2026",loaded:"Contenu charg\xE9.",progress:"Progression du chargement",busy:"Occup\xE9"},de:{loading:"Inhalt wird geladen, bitte warten\u2026",loaded:"Inhalt geladen.",progress:"Ladefortschritt",busy:"Besch\xE4ftigt"},ja:{loading:"\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u2026",loaded:"\u8AAD\u307F\u8FBC\u307F\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",progress:"\u8AAD\u307F\u8FBC\u307F\u72B6\u6CC1",busy:"\u51E6\u7406\u4E2D"},zh:{loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\uFF0C\u8BF7\u7A0D\u5019\u2026",loaded:"\u5185\u5BB9\u52A0\u8F7D\u5B8C\u6210\u3002",progress:"\u52A0\u8F7D\u8FDB\u5EA6",busy:"\u5FD9\u788C\u4E2D"},ar:{loading:"\u062C\u0627\u0631\u064A \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631\u2026",loaded:"\u062A\u0645 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649.",progress:"\u062A\u0642\u062F\u0645 \u0627\u0644\u062A\u062D\u0645\u064A\u0644",busy:"\u0645\u0634\u063A\u0648\u0644"}},ae="en",X={};function se(t){ae=t;}function re(t){Object.assign(X,t);}function Re(t){return X[t]?X[t]:(j[ae]||j.en)[t]||j.en[t]||"Loading\u2026"}function le(t,e){t.setAttribute("aria-busy","true");let o=t.querySelector(".veil-sr-only");return o||(o=document.createElement("span"),o.className="veil-sr-only",o.setAttribute("role","status"),o.setAttribute("aria-live","polite"),t.appendChild(o)),o.textContent=e||Re("loading"),o}function oe(t){t.removeAttribute("aria-busy");let e=t.querySelector(".veil-sr-only");e&&e.remove();}var de=react.createContext({theme:"light",animation:"shimmer"});function wt({children:t,theme:e="light",animation:o="shimmer",nonce:l,locale:r,labels:s,antiFlicker:n}){react.useEffect(()=>{l&&ne(l),r&&se(r),s&&re(s),g(l);},[l,r,s]);let i=react.useMemo(()=>({theme:e,animation:o,nonce:l,locale:r,labels:s,antiFlicker:n}),[e,o,l,r,s,n]);return jsxRuntime.jsx(de.Provider,{value:i,children:t})}function O(){return react.useContext(de)}var I=class{delay;minVisible;onShow;onHide;delayTimer=null;minVisibleTimer=null;shownTimestamp=null;isVisible=false;isPending=false;constructor(e={}){this.delay=e.delay!==void 0?e.delay:150,this.minVisible=e.minVisible!==void 0?e.minVisible:300,this.onShow=e.onShow,this.onHide=e.onHide;}start(){if(!(this.isPending||this.isVisible)){if(this.isPending=true,this.delay<=0){this.display();return}this.delayTimer=setTimeout(()=>{this.delayTimer=null,this.isPending&&this.display();},this.delay);}}display(){this.isPending=false,this.isVisible=true,this.shownTimestamp=Date.now(),this.onShow&&this.onShow();}finish(e){if(this.delayTimer){clearTimeout(this.delayTimer),this.delayTimer=null,this.isPending=false,e&&e();return}if(!this.isVisible){this.isPending=false,e&&e();return}let o=this.shownTimestamp?Date.now()-this.shownTimestamp:0,l=Math.max(0,this.minVisible-o);l<=0?(this.hide(),e&&e()):this.minVisibleTimer=setTimeout(()=>{this.minVisibleTimer=null,this.hide(),e&&e();},l);}hide(){this.isVisible=false,this.isPending=false,this.shownTimestamp=null,this.onHide&&this.onHide();}active(){return this.isVisible}destroy(){this.delayTimer&&clearTimeout(this.delayTimer),this.minVisibleTimer&&clearTimeout(this.minVisibleTimer),this.delayTimer=null,this.minVisibleTimer=null,this.isVisible=false,this.isPending=false;}};var F=class{el=null;innerEl=null;currentProgress=0;trickleTimer=null;status="idle";ensureDOM(){this.el||typeof document>"u"||(g(),this.el=document.createElement("div"),this.el.className="veil-progress-bar",this.el.setAttribute("role","progressbar"),this.el.setAttribute("aria-valuemin","0"),this.el.setAttribute("aria-valuemax","100"),this.el.setAttribute("aria-valuenow","0"),this.innerEl=document.createElement("div"),this.innerEl.className="veil-progress-inner",this.innerEl.style.width="0%",this.innerEl.style.opacity="1",this.el.appendChild(this.innerEl),document.body.appendChild(this.el));}start(){this.ensureDOM(),this.status!=="loading"&&(this.status="loading",this.currentProgress=0,this.set(.08),this.innerEl&&(this.innerEl.style.opacity="1",this.innerEl.style.backgroundColor="var(--veil-progress-color, #3b82f6)"),this.trickle());}set(e){this.ensureDOM(),this.currentProgress=Math.min(1,Math.max(0,e));let o=Math.round(this.currentProgress*100);this.innerEl&&(this.innerEl.style.width=`${o}%`),this.el&&this.el.setAttribute("aria-valuenow",String(o));}inc(e){let o=this.currentProgress;o>=1||(typeof e!="number"&&(o>=0&&o<.2?e=.1:o>=.2&&o<.5?e=.04:o>=.5&&o<.8?e=.02:o>=.8&&o<.99?e=.005:e=0),this.set(o+e));}trickle(){this.stopTrickle(),this.trickleTimer=setInterval(()=>{this.currentProgress<.95&&this.inc();},250);}stopTrickle(){this.trickleTimer&&(clearInterval(this.trickleTimer),this.trickleTimer=null);}done(){this.status!=="idle"&&(this.stopTrickle(),this.set(1),this.status="idle",setTimeout(()=>{this.innerEl&&(this.innerEl.style.opacity="0"),setTimeout(()=>{this.el&&(this.el.remove(),this.el=null,this.innerEl=null),this.currentProgress=0;},350);},200));}fail(){this.stopTrickle(),this.status="error",this.innerEl&&(this.innerEl.style.backgroundColor="#ef4444"),this.set(1),setTimeout(()=>this.done(),500);}},w=new F;function ce(t={}){g();let e=!!t.circular,o=t.color||"var(--veil-progress-color, #3b82f6)",l=t.trackColor||"rgba(0, 0, 0, 0.08)";if(e){let i=t.size!==void 0?typeof t.size=="number"?`${t.size}px`:t.size:"48px",a=t.strokeWidth||4,d=document.createElement("div");d.className=`veil-progress-circular ${t.className||""}`.trim(),d.style.width=i,d.style.height=i,d.style.display="inline-flex",d.style.alignItems="center",d.style.justifyContent="center",d.style.position="relative";let p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("viewBox","0 0 48 48"),p.style.width="100%",p.style.height="100%",p.style.transform="rotate(-90deg)";let m=document.createElementNS("http://www.w3.org/2000/svg","circle");m.setAttribute("cx","24"),m.setAttribute("cy","24"),m.setAttribute("r","20"),m.setAttribute("fill","none"),m.setAttribute("stroke",l),m.setAttribute("stroke-width",String(a));let y=document.createElementNS("http://www.w3.org/2000/svg","circle");y.setAttribute("cx","24"),y.setAttribute("cy","24"),y.setAttribute("r","20"),y.setAttribute("fill","none"),y.setAttribute("stroke",o),y.setAttribute("stroke-width",String(a)),y.setAttribute("stroke-linecap","round");let v=2*Math.PI*20;if(y.setAttribute("stroke-dasharray",String(v)),t.value!==void 0){let f=Math.min(100,Math.max(0,t.value)),x=v-f/100*v;y.setAttribute("stroke-dashoffset",String(x)),y.style.transition="stroke-dashoffset 300ms ease";}else y.setAttribute("stroke-dashoffset",String(v*.75)),p.style.animation="veil-spin 1200ms linear infinite";if(p.append(m,y),d.appendChild(p),t.showPercentage&&t.value!==void 0){let f=document.createElement("span");f.style.position="absolute",f.style.fontSize="11px",f.style.fontWeight="600",f.textContent=`${Math.round(t.value)}%`,d.appendChild(f);}return d}let r=t.height!==void 0?typeof t.height=="number"?`${t.height}px`:t.height:"4px",s=document.createElement("div");s.className=`veil-progress-linear ${t.className||""}`.trim(),s.setAttribute("role","progressbar"),s.style.width="100%",s.style.height=r,s.style.backgroundColor=l,s.style.borderRadius="9999px",s.style.overflow="hidden",s.style.position="relative";let n=document.createElement("div");if(n.style.height="100%",n.style.backgroundColor=o,n.style.borderRadius="9999px",t.value!==void 0){let i=Math.min(100,Math.max(0,t.value));s.setAttribute("aria-valuenow",String(i)),n.style.width=`${i}%`,n.style.transition="width 250ms ease";}else n.style.width="35%",n.style.animation="veil-progress-indeterminate 1400ms ease-in-out infinite";return s.appendChild(n),s}var W=class{activeIds=new Set;counter=0;listeners=new Set;start(e){let o=e||`req_${Date.now()}_${Math.random().toString(36).substring(2,7)}`;return this.activeIds.has(o)||(this.activeIds.add(o),this.counter++,this.notify()),o}stop(e){if(e)this.activeIds.has(e)&&(this.activeIds.delete(e),this.counter=Math.max(0,this.counter-1),this.notify());else if(this.counter>0){this.counter--;let o=this.activeIds.values().next().value;o&&this.activeIds.delete(o),this.notify();}}isLoading(){return this.counter>0}getCount(){return this.counter}subscribe(e){return this.listeners.add(e),e(this.isLoading(),this.counter),()=>{this.listeners.delete(e);}}reset(){this.activeIds.clear(),this.counter=0,this.notify();}notify(){let e=this.isLoading();for(let o of this.listeners)o(e,this.counter);}},_=new W;function G(t,e={}){let[o,l]=react.useState(false);return react.useEffect(()=>{let r=new I({delay:e.delay!==void 0?e.delay:150,minVisible:e.minVisible!==void 0?e.minVisible:300,onShow:()=>l(true),onHide:()=>l(false)});return t?r.start():r.finish(),()=>{r.destroy();}},[t,e.delay,e.minVisible]),o}function Mt(t,e={}){let[o,l]=react.useState(false),[r,s]=react.useState(null),[n,i]=react.useState(null),a=G(o,e),d=react.useCallback(async(...p)=>{l(true),i(null);let m=_.start();try{let y=await t(...p);return s(y),y}catch(y){throw i(y),y}finally{_.stop(m),l(false);}},[t]);return {loading:a,rawLoading:o,data:r,error:n,execute:d}}function Nt(){return {start:()=>w.start(),set:t=>w.set(t),inc:t=>w.inc(t),done:()=>w.done(),fail:()=>w.fail()}}var K=0;function ze(){return K===0&&typeof performance<"u"&&(K=performance.now()),K}function R(t=1500){if(typeof performance>"u")return "0ms";let e=performance.now()-ze();return `-${Math.round(e%t)}ms`}function H(t=1500){if(typeof t=="number")return t;if(!t)return 1500;let e=t.trim().toLowerCase();return e.endsWith("ms")?parseFloat(e)||1500:e.endsWith("s")?(parseFloat(e)||1.5)*1e3:parseFloat(e)||1500}var $=null,pe=new Set,me=false;function He(t){for(let e of t){let o=e.target;e.isIntersecting?(o.removeAttribute("data-veil-offscreen"),o.style.removeProperty("--veil-play-state")):(o.setAttribute("data-veil-offscreen","true"),o.style.setProperty("--veil-play-state","paused"));}}function Ve(){me||typeof document>"u"||(me=true,document.addEventListener("visibilitychange",()=>{document.hidden?document.documentElement.setAttribute("data-veil-tab-hidden","true"):document.documentElement.removeAttribute("data-veil-tab-hidden");}));}function ye(t){return typeof window>"u"||typeof IntersectionObserver>"u"?()=>{}:(Ve(),$||($=new IntersectionObserver(He,{rootMargin:"100px 0px",threshold:0})),$.observe(t),pe.add(t),()=>{$&&t&&($.unobserve(t),pe.delete(t));})}function c(t={}){g();let e=document.createElement("div");e.className=`veil-skeleton ${t.className||""}`.trim(),e.setAttribute("aria-hidden","true");let o=t.type||"rect";if(e.setAttribute("data-veil-shape",o),t.animation&&e.setAttribute("data-veil-anim",t.animation),t.direction&&e.setAttribute("data-veil-dir",t.direction),typeof t.theme=="string"&&e.setAttribute("data-veil-theme",t.theme),t.width!==void 0&&(e.style.width=typeof t.width=="number"?`${t.width}px`:t.width),t.height!==void 0&&(e.style.height=typeof t.height=="number"?`${t.height}px`:t.height),t.radius!==void 0&&(e.style.setProperty("--veil-radius",typeof t.radius=="number"?`${t.radius}px`:t.radius),e.style.borderRadius=typeof t.radius=="number"?`${t.radius}px`:t.radius),t.speed!==void 0){let l=H(t.speed);e.style.setProperty("--veil-duration",`${l}ms`),e.style.setProperty("--veil-sync-delay",R(l));}else e.style.setProperty("--veil-sync-delay",R(1500));if(t.style)for(let[l,r]of Object.entries(t.style))e.style[l]=r;return ye(e),e}function b(t=3,e={}){let o=document.createElement("div");o.className=`veil-lines-group ${e.className||""}`.trim(),o.setAttribute("aria-hidden","true");let l=e.gap!==void 0?typeof e.gap=="number"?`${e.gap}px`:e.gap:"0.45rem";o.style.display="flex",o.style.flexDirection="column",o.style.gap=l;let r=["100%","94%","88%","75%"],s=e.lastLineWidth!==void 0?typeof e.lastLineWidth=="number"?`${e.lastLineWidth}px`:e.lastLineWidth:"65%";for(let n=0;n<t;n++){let a=n===t-1?s:r[n%r.length]||"95%",d=c({...e,type:"line",width:a});d.style.setProperty("--veil-stagger-idx",String(n)),o.appendChild(d);}return o}function ue(t,e={}){let o=e.transition||"fade";if(o==="none"){e.onComplete&&e.onComplete();return}if(t.classList.add("veil-revealing"),o==="stagger-children"){let s=Array.from(t.children);s.forEach((i,a)=>{i.classList.add("veil-reveal-fade"),i.style.animationDelay=`${a*60}ms`,e.duration&&(i.style.animationDuration=`${e.duration}ms`);});let n=(e.duration||350)+s.length*60;setTimeout(()=>{t.classList.remove("veil-revealing"),s.forEach(i=>{i.classList.remove("veil-reveal-fade"),i.style.removeProperty("animation-delay"),i.style.removeProperty("animation-duration");}),e.onComplete&&e.onComplete();},n);return}let l=`veil-reveal-${o}`;t.classList.add(l),e.duration&&(t.style.animationDuration=`${e.duration}ms`),e.easing&&(t.style.animationTimingFunction=e.easing);let r=()=>{t.removeEventListener("animationend",r),t.classList.remove("veil-revealing",l),t.style.removeProperty("animation-duration"),t.style.removeProperty("animation-timing-function"),e.onComplete&&e.onComplete();};t.addEventListener("animationend",r);}var V=new Map;function Be(t){if(V.has(t))return V.get(t);if(typeof window<"u"&&window.localStorage)try{let e=localStorage.getItem(`veil_cache_${t}`);if(e){let o=JSON.parse(e);return V.set(t,o),o}}catch{}return null}function Ye(t,e,o=false){if(V.set(t,e),o&&typeof window<"u"&&window.localStorage)try{localStorage.setItem(`veil_cache_${t}`,JSON.stringify(e));}catch{}}function qe(t,e){let o=t.getBoundingClientRect(),l=[];function r(n){if(n.hasAttribute("data-veil-ignore")||e&&n.matches(e))return false;let i=window.getComputedStyle(n);if(i.display==="none"||i.visibility==="hidden"||i.opacity==="0")return false;let a=n.tagName.toLowerCase();return ["img","svg","button","input","textarea","select"].includes(a)||n.hasAttribute("data-veil-shape")?true:Array.from(n.childNodes).some(p=>p.nodeType===Node.TEXT_NODE&&(p.textContent||"").trim().length>0)&&n.children.length===0}function s(n){if(n!==t&&r(n)){let a=n.getBoundingClientRect();if(a.width>2&&a.height>2){let p=window.getComputedStyle(n).borderRadius||"6px",m=n.getAttribute("data-veil-shape"),y="rect";m==="circle"||p==="50%"||p.includes("px")&&parseFloat(p)>=a.width/2?y="circle":(m==="line"||["p","span","h1","h2","h3","h4","h5","h6","a","label"].includes(n.tagName.toLowerCase()))&&(y="line"),l.push({x:Math.round(a.left-o.left),y:Math.round(a.top-o.top),width:Math.round(a.width),height:Math.round(a.height),radius:p,shape:y});}return}let i=Array.from(n.children);for(let a of i)a.hasAttribute("data-veil-ignore")||s(a);}return s(t),{width:Math.round(o.width),height:Math.round(o.height),boxes:l}}function he(t,e={},o={}){let l=document.createElement("div");if(l.className="veil-auto-overlay",l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.pointerEvents="none",l.style.zIndex="5",!e.preserveBackground){let d=window.getComputedStyle(t);l.style.backgroundColor=d.backgroundColor!=="rgba(0, 0, 0, 0)"?d.backgroundColor:"transparent";}function r(d){l.innerHTML="";for(let p=0;p<d.boxes.length;p++){let m=d.boxes[p],y=c({...o,type:m.shape,radius:m.radius});y.style.position="absolute",y.style.left=`${m.x}px`,y.style.top=`${m.y}px`,y.style.width=`${m.width}px`,y.style.height=`${m.height}px`,y.style.setProperty("--veil-stagger-idx",String(p)),l.appendChild(y);}}function s(){let d=qe(t,e.ignoreSelector);d.boxes.length>0&&(r(d),e.cacheKey&&Ye(e.cacheKey,d,e.persistCache));}if(e.cacheKey){let d=Be(e.cacheKey);d&&r(d);}window.getComputedStyle(t).position==="static"&&(t.style.position="relative"),t.appendChild(l),l.children.length===0&&s();let i=null,a=null;return e.observeResize!==false&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(()=>s()),i.observe(t)),e.observeMutations!==false&&typeof MutationObserver<"u"&&(a=new MutationObserver(()=>s()),a.observe(t,{childList:true,subtree:true,attributes:false})),{overlay:l,refresh:s,destroy:()=>{i&&i.disconnect(),a&&a.disconnect(),e.reveal&&e.reveal!=="none"?ue(t,{transition:e.reveal,duration:e.revealDuration,easing:e.revealEasing,onComplete:()=>l.remove()}):l.remove();}}}function Zt({type:t="rect",circle:e,width:o,height:l,radius:r,count:s=1,gap:n="0.5rem",lines:i,lastLineWidth:a="65%",animation:d,theme:p,direction:m,speed:y,className:v="",style:f={},ariaLabel:x="Loading",children:P}){let L=O();react.useEffect(()=>{g(L.nonce);},[L.nonce]);let M=d||L.animation||"shimmer",S=p||L.theme||"light",C=e?"circle":i?"line":t,Q=H(y||1500),Se=typeof window<"u"?R(Q):"0s",E={...f,"--veil-sync-delay":Se};if(y&&(E["--veil-duration"]=`${Q}ms`),o!==void 0&&(E.width=typeof o=="number"?`${o}px`:o),l!==void 0&&(E.height=typeof l=="number"?`${l}px`:l),r!==void 0){let T=typeof r=="number"?`${r}px`:r;E["--veil-radius"]=T,E.borderRadius=T;}e&&(E.borderRadius="50%",E.aspectRatio="1 / 1");let q=i||(s>1?s:1);if(q>1){let T=["100%","94%","88%","75%"],Le=typeof n=="number"?`${n}px`:n;return jsxRuntime.jsxs("div",{className:`veil-lines-group ${v}`.trim(),role:"status","aria-label":x,style:{display:"flex",flexDirection:"column",gap:Le},children:[jsxRuntime.jsx("span",{className:"veil-sr-only",children:x}),Array.from({length:q}).map((dt,N)=>{let Pe=N===q-1?a:T[N%T.length]||"95%";return jsxRuntime.jsx("div",{className:"veil-skeleton","data-veil-shape":"line","data-veil-anim":M,"data-veil-theme":typeof S=="string"?S:void 0,"data-veil-dir":m,"aria-hidden":"true",style:{...E,width:Pe,"--veil-stagger-idx":N}},N)})]})}return jsxRuntime.jsxs("div",{className:`veil-skeleton ${v}`.trim(),"data-veil-shape":C,"data-veil-anim":M,"data-veil-theme":typeof S=="string"?S:void 0,"data-veil-dir":m,role:"status","aria-label":x,style:E,children:[jsxRuntime.jsx("span",{className:"veil-sr-only",children:x}),P]})}function Qt({loading:t,children:e,cacheKey:o,persistCache:l,ignoreSelector:r,observeResize:s=true,observeMutations:n=true,preserveBackground:i=true,reveal:a="fade",revealDuration:d=350,revealEasing:p,delay:m=150,minVisible:y=300,skeletonProps:v}){let f=react.useRef(null),x=G(t,{delay:m,minVisible:y});return react.useEffect(()=>{if(!x||!f.current)return;let P=he(f.current,{cacheKey:o,persistCache:l,ignoreSelector:r,observeResize:s,observeMutations:n,preserveBackground:i,reveal:a,revealDuration:d,revealEasing:p},v);return ()=>{P.destroy();}},[x,o,l,r,s,n,i,a,d,p,v]),jsxRuntime.jsx("div",{ref:f,className:"veil-measure-wrapper","aria-busy":x,style:{position:"relative"},children:e})}function U(t){let e=document.createElement("div");e.className=`veil-preset veil-preset-${t.name} ${t.className||""}`.trim(),e.setAttribute("aria-hidden","true"),e.style.width=t.width!==void 0?typeof t.width=="number"?`${t.width}px`:t.width:"100%",e.style.boxSizing="border-box";let o=t.shape||"rounded",l;o==="pill"?l="9999px":o==="square"?l="4px":o==="sharp"&&(l="0px"),o==="glass"&&(e.style.backdropFilter="blur(10px)",e.style.webkitBackdropFilter="blur(10px)",e.style.background="rgba(255, 255, 255, 0.08)",e.style.border="1px solid rgba(255, 255, 255, 0.18)",e.style.boxShadow="0 8px 32px rgba(0, 0, 0, 0.08)");let r={animation:t.animation,theme:t.theme,direction:t.direction,speed:t.speed,radius:l};switch(t.name){case "card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"rect",height:"180px",radius:l||"8px"}),n=c({...r,type:"heading",width:"70%",height:"24px"}),i=b(2,r),a=c({...r,type:"button",width:"110px",height:"36px"});e.append(s,n,i,a);break}case "product-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="14px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",height:"200px",radius:l||"10px"}),n=c({...r,type:"badge",width:"50px",height:"18px"}),i=c({...r,type:"line",width:"85%",height:"18px"}),a=c({...r,type:"line",width:"40%",height:"22px"}),d=c({...r,type:"button",width:"100%",height:"38px"});e.append(s,n,i,a,d);break}case "product-grid":{let s=t.items||4,n=t.columns||2;e.style.display="grid",e.style.gridTemplateColumns=`repeat(${n}, 1fr)`,e.style.gap="16px";for(let i=0;i<s;i++){let a=U({...t,name:"product-card",width:"100%"});e.appendChild(a);}break}case "list":{let s=t.items||4;e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let n=0;n<s;n++){let i=c({...r,type:"line",width:`${95-n%3*15}%`,height:"18px"});e.appendChild(i);}break}case "list-item":{e.style.display="flex",e.style.alignItems="center",e.style.gap="14px",e.style.padding="10px 0";let s=c({...r,type:"circle",width:"44px",height:"44px"}),n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="6px",n.style.flex="1";let i=c({...r,type:"line",width:"60%",height:"16px"}),a=c({...r,type:"line",width:"40%",height:"12px"});n.append(i,a),e.append(s,n);break}case "table":{let s=t.items||5;e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="12px",e.style.borderRadius=l||"8px",e.style.border="1px solid rgba(0,0,0,0.06)";let n=document.createElement("div");n.style.display="grid",n.style.gridTemplateColumns="2fr 1fr 1fr 1fr",n.style.gap="12px",n.style.paddingBottom="8px",n.style.borderBottom="2px solid rgba(0,0,0,0.08)";for(let i=0;i<4;i++)n.appendChild(c({...r,type:"line",height:"16px"}));e.appendChild(n);for(let i=0;i<s;i++){let a=document.createElement("div");a.style.display="grid",a.style.gridTemplateColumns="2fr 1fr 1fr 1fr",a.style.gap="12px",a.style.padding="8px 0",a.style.borderBottom="1px solid rgba(0,0,0,0.04)";for(let d=0;d<4;d++)a.appendChild(c({...r,type:"line",height:"14px"}));e.appendChild(a);}break}case "profile":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"circle",width:"88px",height:"88px"}),n=c({...r,type:"heading",width:"160px",height:"22px"}),i=b(2,r),a=document.createElement("div");a.style.display="flex",a.style.gap="10px",a.append(c({...r,type:"button",width:"100px",height:"34px"}),c({...r,type:"button",width:"100px",height:"34px"})),e.append(s,n,i,a);break}case "profile-header":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"16px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",height:"140px",radius:"0"}),n=document.createElement("div");n.style.display="flex",n.style.alignItems="flex-end",n.style.gap="16px",n.style.padding="0 20px 20px 20px",n.style.marginTop="-40px";let i=c({...r,type:"circle",width:"80px",height:"80px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(c({...r,type:"heading",width:"140px",height:"20px"}),c({...r,type:"line",width:"200px",height:"14px"})),n.append(i,a),e.append(s,n);break}case "feed-post":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(c({...r,type:"circle",width:"40px",height:"40px"}),c({...r,type:"line",width:"120px",height:"16px"}));let n=b(2,r),i=c({...r,type:"rect",height:"220px",radius:l||"8px"}),a=document.createElement("div");a.style.display="flex",a.style.gap="16px",a.append(c({...r,type:"button",width:"60px",height:"28px"}),c({...r,type:"button",width:"60px",height:"28px"})),e.append(s,n,i,a);break}case "article":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=c({...r,type:"heading",width:"85%",height:"36px"}),n=document.createElement("div");n.style.display="flex",n.style.gap="12px",n.append(c({...r,type:"circle",width:"32px",height:"32px"}),c({...r,type:"line",width:"140px",height:"14px"}));let i=c({...r,type:"rect",height:"260px",radius:l||"10px"}),a=b(4,r),d=b(3,r);e.append(s,n,i,a,d);break}case "comment-thread":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let n=document.createElement("div");n.style.display="flex",n.style.gap="12px",s===1&&(n.style.marginLeft="40px");let i=c({...r,type:"circle",width:"36px",height:"36px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(c({...r,type:"line",width:"120px",height:"14px"}),b(2,r)),n.append(i,a),e.appendChild(n);}break}case "chat":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="16px";let s=[{align:"flex-start",w:"65%"},{align:"flex-end",w:"50%"},{align:"flex-start",w:"80%"},{align:"flex-end",w:"40%"}];for(let n of s){let i=document.createElement("div");i.style.display="flex",i.style.justifyContent=n.align;let a=c({...r,type:"rect",width:n.w,height:"42px",radius:l||"18px"});i.appendChild(a),e.appendChild(i);}break}case "dashboard":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="grid",s.style.gridTemplateColumns="repeat(3, 1fr)",s.style.gap="12px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.padding="16px",a.style.borderRadius=l||"10px",a.style.border="1px solid rgba(0,0,0,0.06)",a.style.display="flex",a.style.flexDirection="column",a.style.gap="8px",a.append(c({...r,type:"line",width:"60%",height:"14px"}),c({...r,type:"heading",width:"80%",height:"28px"})),s.appendChild(a);}let n=c({...r,type:"rect",height:"200px",radius:l||"10px"});e.append(s,n);break}case "form":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";for(let n=0;n<3;n++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.append(c({...r,type:"line",width:"30%",height:"14px"}),c({...r,type:"input",width:"100%",height:"40px"})),e.appendChild(i);}let s=c({...r,type:"button",width:"140px",height:"40px"});e.appendChild(s);break}case "media-card":{e.style.display="flex",e.style.gap="16px",e.style.padding="12px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",width:"140px",height:"90px",radius:l||"8px"}),n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="8px",n.style.flex="1",n.append(c({...r,type:"heading",width:"80%",height:"18px"}),c({...r,type:"line",width:"60%",height:"14px"}),c({...r,type:"line",width:"40%",height:"12px"})),e.append(s,n);break}case "navbar":{e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="space-between",e.style.padding="12px 20px",e.style.borderBottom="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"heading",width:"110px",height:"24px"}),n=document.createElement("div");n.style.display="flex",n.style.gap="18px";for(let a=0;a<4;a++)n.appendChild(c({...r,type:"line",width:"60px",height:"14px"}));let i=c({...r,type:"button",width:"90px",height:"34px"});e.append(s,n,i);break}case "sidebar":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="space-between",e.style.padding="18px 14px",e.style.height="100%",e.style.minHeight="320px",e.style.borderRight="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="16px",s.appendChild(c({...r,type:"heading",width:"100px",height:"22px"}));for(let i=0;i<5;i++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(c({...r,type:"icon",width:"20px",height:"20px"}),c({...r,type:"line",width:"90px",height:"14px"})),s.appendChild(a);}let n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.gap="10px",n.append(c({...r,type:"circle",width:"36px",height:"36px"}),c({...r,type:"line",width:"80px",height:"14px"})),e.append(s,n);break}case "settings-page":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="24px",e.style.padding="24px";let s=c({...r,type:"heading",width:"220px",height:"30px"});e.appendChild(s);for(let n=0;n<3;n++){let i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between",i.style.padding="14px 0",i.style.borderBottom="1px solid rgba(0,0,0,0.06)";let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.append(c({...r,type:"line",width:"160px",height:"16px"}),c({...r,type:"line",width:"240px",height:"12px"}));let d=c({...r,type:"button",width:"50px",height:"28px",radius:"14px"});i.append(a,d),e.appendChild(i);}break}case "product-detail":{e.style.display="grid",e.style.gridTemplateColumns="1fr 1.2fr",e.style.gap="24px",e.style.padding="20px";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="12px";let n=c({...r,type:"rect",height:"280px",radius:l||"12px"}),i=document.createElement("div");i.style.display="flex",i.style.gap="8px";for(let f=0;f<4;f++)i.appendChild(c({...r,type:"rect",width:"60px",height:"60px",radius:"6px"}));s.append(n,i);let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="14px";let d=c({...r,type:"heading",width:"85%",height:"32px"}),p=c({...r,type:"badge",width:"120px",height:"20px"}),m=c({...r,type:"heading",width:"100px",height:"28px"}),y=b(3,r),v=c({...r,type:"button",width:"180px",height:"44px"});a.append(d,p,m,y,v),e.append(s,a);break}case "news-feed":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let n=document.createElement("div");n.style.display="flex",n.style.gap="16px",n.style.paddingBottom="16px",n.style.borderBottom="1px solid rgba(0,0,0,0.06)";let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="8px",i.style.flex="1",i.append(c({...r,type:"badge",width:"80px",height:"16px"}),c({...r,type:"heading",width:"90%",height:"20px"}),b(2,r));let a=c({...r,type:"rect",width:"120px",height:"90px",radius:l||"8px"});n.append(i,a),e.appendChild(n);}break}case "inbox-list":{e.style.display="flex",e.style.flexDirection="column",e.style.border="1px solid rgba(0,0,0,0.06)",e.style.borderRadius=l||"8px";for(let s=0;s<4;s++){let n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.gap="14px",n.style.padding="12px 16px",n.style.borderBottom="1px solid rgba(0,0,0,0.04)";let i=c({...r,type:"icon",width:"18px",height:"18px"}),a=c({...r,type:"line",width:"120px",height:"14px"}),d=c({...r,type:"line",width:"280px",height:"14px"}),p=c({...r,type:"badge",width:"50px",height:"16px"});n.append(i,a,d,p),e.appendChild(n);}break}case "notification-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px";for(let s=0;s<3;s++){let n=document.createElement("div");n.style.display="flex",n.style.alignItems="flex-start",n.style.gap="12px",n.style.padding="12px",n.style.borderRadius=l||"8px",n.style.background="rgba(0,0,0,0.02)";let i=c({...r,type:"circle",width:"10px",height:"10px"});i.style.marginTop="6px";let a=c({...r,type:"circle",width:"38px",height:"38px"}),d=document.createElement("div");d.style.display="flex",d.style.flexDirection="column",d.style.gap="4px",d.style.flex="1",d.append(c({...r,type:"line",width:"75%",height:"14px"}),c({...r,type:"line",width:"40%",height:"12px"})),n.append(i,a,d),e.appendChild(n);}break}case "order-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";for(let s=0;s<2;s++){let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="12px",n.style.padding="16px",n.style.borderRadius=l||"10px",n.style.border="1px solid rgba(0,0,0,0.08)";let i=document.createElement("div");i.style.display="flex",i.style.justifyContent="space-between",i.append(c({...r,type:"line",width:"140px",height:"16px"}),c({...r,type:"badge",width:"80px",height:"22px"}));let a=document.createElement("div");a.style.display="flex",a.style.gap="10px";for(let p=0;p<3;p++)a.appendChild(c({...r,type:"rect",width:"50px",height:"50px",radius:"6px"}));let d=document.createElement("div");d.style.display="flex",d.style.justifyContent="space-between",d.style.alignItems="center",d.append(c({...r,type:"heading",width:"90px",height:"20px"}),c({...r,type:"button",width:"110px",height:"32px"})),n.append(i,a,d),e.appendChild(n);}break}case "kpi-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.style.alignItems="center",s.append(c({...r,type:"line",width:"90px",height:"14px"}),c({...r,type:"icon",width:"20px",height:"20px"}));let n=c({...r,type:"heading",width:"140px",height:"36px"}),i=c({...r,type:"badge",width:"70px",height:"18px"});e.append(s,n,i);break}case "chart-bar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"heading",width:"140px",height:"20px"}),n=document.createElement("div");n.style.display="flex",n.style.alignItems="flex-end",n.style.justifyContent="space-between",n.style.height="140px",n.style.padding="0 10px";let i=["40%","75%","55%","90%","65%","80%","50%"];for(let a of i){let d=c({...r,type:"rect",width:"22px",height:a,radius:"4px"});n.appendChild(d);}e.append(s,n);break}case "chart-line":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"heading",width:"150px",height:"20px"}),n=c({...r,type:"rect",height:"140px",radius:"8px"});e.append(s,n);break}case "chart-pie":{e.style.display="flex",e.style.alignItems="center",e.style.gap="20px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"circle",width:"120px",height:"120px"}),n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="10px",n.style.flex="1";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="8px",a.append(c({...r,type:"circle",width:"12px",height:"12px"}),c({...r,type:"line",width:"90px",height:"14px"})),n.appendChild(a);}e.append(s,n);break}case "search-results":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px";let s=c({...r,type:"input",height:"42px",radius:l||"24px"});e.appendChild(s);for(let n=0;n<3;n++){let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.append(c({...r,type:"line",width:"160px",height:"12px"}),c({...r,type:"heading",width:"70%",height:"20px"}),b(2,r)),e.appendChild(i);}break}case "video-player":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";let s=c({...r,type:"rect",height:"240px",radius:l||"12px"}),n=c({...r,type:"heading",width:"80%",height:"24px"}),i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="space-between";let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(c({...r,type:"circle",width:"40px",height:"40px"}),c({...r,type:"line",width:"120px",height:"14px"}));let d=c({...r,type:"button",width:"100px",height:"36px"});i.append(a,d),e.append(s,n,i);break}case "music-player":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",width:"180px",height:"180px",radius:l||"12px"}),n=c({...r,type:"heading",width:"160px",height:"20px"}),i=c({...r,type:"line",width:"100px",height:"14px"}),a=c({...r,type:"line",width:"100%",height:"6px"}),d=document.createElement("div");d.style.display="flex",d.style.alignItems="center",d.style.gap="20px",d.append(c({...r,type:"icon",width:"24px",height:"24px"}),c({...r,type:"circle",width:"48px",height:"48px"}),c({...r,type:"icon",width:"24px",height:"24px"})),e.append(s,n,i,a,d);break}case "stories-row":{e.style.display="flex",e.style.gap="16px",e.style.overflowX="auto",e.style.padding="8px 0";for(let s=0;s<5;s++){let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.alignItems="center",n.style.gap="6px",n.append(c({...r,type:"circle",width:"60px",height:"60px"}),c({...r,type:"line",width:"48px",height:"10px"})),e.appendChild(n);}break}case "reels":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="flex-end",e.style.height="340px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.1)",e.style.position="relative";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(c({...r,type:"circle",width:"36px",height:"36px"}),c({...r,type:"line",width:"100px",height:"14px"}));let n=b(2,r);e.append(s,n);break}case "tabs":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="flex",s.style.gap="20px",s.style.borderBottom="2px solid rgba(0,0,0,0.06)",s.style.paddingBottom="8px";for(let i=0;i<4;i++)s.appendChild(c({...r,type:"line",width:"70px",height:"16px"}));let n=b(3,r);e.append(s,n);break}case "calendar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.append(c({...r,type:"heading",width:"120px",height:"20px"}),c({...r,type:"line",width:"60px",height:"20px"}));let n=document.createElement("div");n.style.display="grid",n.style.gridTemplateColumns="repeat(7, 1fr)",n.style.gap="8px";for(let i=0;i<28;i++)n.appendChild(c({...r,type:"rect",height:"24px",radius:"4px"}));e.append(s,n);break}case "kanban":{e.style.display="grid",e.style.gridTemplateColumns="repeat(3, 1fr)",e.style.gap="14px";for(let s=0;s<3;s++){let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="10px",n.style.padding="12px",n.style.borderRadius=l||"10px",n.style.background="rgba(0,0,0,0.03)";let i=c({...r,type:"heading",width:"80px",height:"16px"});n.appendChild(i);for(let a=0;a<2;a++){let d=document.createElement("div");d.style.display="flex",d.style.flexDirection="column",d.style.gap="8px",d.style.padding="10px",d.style.borderRadius=l||"6px",d.style.background="#fff",d.style.border="1px solid rgba(0,0,0,0.06)",d.append(c({...r,type:"line",width:"85%",height:"14px"}),c({...r,type:"badge",width:"50px",height:"16px"})),n.appendChild(d);}e.appendChild(n);}break}case "timeline":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px",e.style.padding="10px 0";for(let s=0;s<3;s++){let n=document.createElement("div");n.style.display="flex",n.style.gap="14px";let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.append(c({...r,type:"circle",width:"16px",height:"16px"}),c({...r,type:"rect",width:"2px",height:"40px"}));let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="4px",a.style.flex="1",a.append(c({...r,type:"line",width:"90px",height:"12px"}),c({...r,type:"heading",width:"60%",height:"18px"}),c({...r,type:"line",width:"85%",height:"14px"})),n.append(i,a),e.appendChild(n);}break}case "map-card":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"14px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"rect",height:"160px",radius:"0"}),n=document.createElement("div");n.style.display="flex",n.style.justifyContent="space-between",n.style.alignItems="center",n.style.padding="14px";let i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column",i.style.gap="6px",i.append(c({...r,type:"heading",width:"140px",height:"18px"}),c({...r,type:"line",width:"200px",height:"12px"}));let a=c({...r,type:"button",width:"90px",height:"34px"});n.append(i,a),e.append(s,n);break}case "pricing-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"badge",width:"70px",height:"22px"}),n=c({...r,type:"heading",width:"130px",height:"38px"}),i=c({...r,type:"line",width:"80%",height:"14px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="10px";for(let p=0;p<4;p++){let m=document.createElement("div");m.style.display="flex",m.style.alignItems="center",m.style.gap="8px",m.append(c({...r,type:"icon",width:"16px",height:"16px"}),c({...r,type:"line",width:"70%",height:"14px"})),a.appendChild(m);}let d=c({...r,type:"button",width:"100%",height:"42px"});e.append(s,n,i,a,d);break}case "testimonial":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"14px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=b(3,r),n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.gap="12px",n.append(c({...r,type:"circle",width:"42px",height:"42px"}),c({...r,type:"line",width:"120px",height:"16px"})),e.append(s,n);break}case "faq-accordion":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let s=0;s<3;s++){let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="8px",n.style.padding="14px 16px",n.style.borderRadius=l||"8px",n.style.border="1px solid rgba(0,0,0,0.06)";let i=document.createElement("div");if(i.style.display="flex",i.style.justifyContent="space-between",i.style.alignItems="center",i.append(c({...r,type:"line",width:"75%",height:"16px"}),c({...r,type:"icon",width:"16px",height:"16px"})),n.appendChild(i),s===0){let a=b(2,r);n.appendChild(a);}e.appendChild(n);}break}case "file-explorer":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="12px";for(let s=0;s<5;s++){let n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.gap="10px",n.style.marginLeft=`${s%3*16}px`,n.append(c({...r,type:"icon",width:"16px",height:"16px"}),c({...r,type:"line",width:`${100+s*20}px`,height:"14px"})),e.appendChild(n);}break}case "code-block":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="16px",e.style.borderRadius=l||"8px",e.style.background="rgba(0,0,0,0.05)";let s=["40%","70%","55%","85%","30%","60%"];for(let n of s)e.appendChild(c({...r,type:"line",width:n,height:"12px"}));break}}return e}function h(t){let e=react.useRef(null),o=O();return react.useEffect(()=>{if(g(o.nonce),!e.current)return;let l=U({...t,animation:t.animation||o.animation,theme:t.theme||o.theme});e.current.innerHTML="",e.current.appendChild(l);},[t,o.animation,o.theme,o.nonce]),jsxRuntime.jsx("div",{ref:e,className:`veil-preset-react-wrap ${t.className||""}`.trim()})}var oi=t=>jsxRuntime.jsx(h,{...t,name:"card"}),di=t=>jsxRuntime.jsx(h,{...t,name:"product-card"}),ci=t=>jsxRuntime.jsx(h,{...t,name:"product-grid"}),pi=t=>jsxRuntime.jsx(h,{...t,name:"list"}),mi=t=>jsxRuntime.jsx(h,{...t,name:"list-item"}),yi=t=>jsxRuntime.jsx(h,{...t,name:"table"}),ui=t=>jsxRuntime.jsx(h,{...t,name:"profile"}),hi=t=>jsxRuntime.jsx(h,{...t,name:"feed-post"}),fi=t=>jsxRuntime.jsx(h,{...t,name:"article"}),gi=t=>jsxRuntime.jsx(h,{...t,name:"dashboard"}),vi=t=>jsxRuntime.jsx(h,{...t,name:"form"}),bi=t=>jsxRuntime.jsx(h,{...t,name:"navbar"}),xi=t=>jsxRuntime.jsx(h,{...t,name:"sidebar"}),wi=t=>jsxRuntime.jsx(h,{...t,name:"product-detail"}),ki=t=>jsxRuntime.jsx(h,{...t,name:"news-feed"}),Ci=t=>jsxRuntime.jsx(h,{...t,name:"inbox-list"}),Ei=t=>jsxRuntime.jsx(h,{...t,name:"notification-list"}),Si=t=>jsxRuntime.jsx(h,{...t,name:"order-list"}),Li=t=>jsxRuntime.jsx(h,{...t,name:"kpi-card"}),Pi=t=>jsxRuntime.jsx(h,{...t,name:"chart-bar"}),Ti=t=>jsxRuntime.jsx(h,{...t,name:"chart-line"}),Ri=t=>jsxRuntime.jsx(h,{...t,name:"chart-pie"}),$i=t=>jsxRuntime.jsx(h,{...t,name:"search-results"}),Ai=t=>jsxRuntime.jsx(h,{...t,name:"video-player"}),Mi=t=>jsxRuntime.jsx(h,{...t,name:"music-player"}),Ni=t=>jsxRuntime.jsx(h,{...t,name:"stories-row"}),Di=t=>jsxRuntime.jsx(h,{...t,name:"reels"}),Oi=t=>jsxRuntime.jsx(h,{...t,name:"tabs"}),Ii=t=>jsxRuntime.jsx(h,{...t,name:"calendar"}),zi=t=>jsxRuntime.jsx(h,{...t,name:"kanban"}),Hi=t=>jsxRuntime.jsx(h,{...t,name:"timeline"}),Vi=t=>jsxRuntime.jsx(h,{...t,name:"map-card"}),Bi=t=>jsxRuntime.jsx(h,{...t,name:"pricing-card"}),Yi=t=>jsxRuntime.jsx(h,{...t,name:"testimonial"}),qi=t=>jsxRuntime.jsx(h,{...t,name:"faq-accordion"});function k(t={}){g();let e=t.type||"ring",o=t.size!==void 0?typeof t.size=="number"?`${t.size}px`:t.size:"28px",l=t.color||"var(--veil-progress-color, #3b82f6)",r=t.secondaryColor||"rgba(0, 0, 0, 0.12)",s=t.speed!==void 0?typeof t.speed=="number"?`${t.speed}ms`:t.speed:void 0,n=document.createElement("div");switch(n.className=`veil-spinner veil-spinner-${e} ${t.glass?"veil-spinner-glass":""} ${t.className||""}`.trim(),n.setAttribute("role","status"),n.setAttribute("aria-label",t.label||"Loading"),n.style.width=o,n.style.height=o,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.position="relative",t.glass&&(n.style.borderRadius="50%",n.style.backdropFilter="blur(8px)",n.style.webkitBackdropFilter="blur(8px)",n.style.background="rgba(255, 255, 255, 0.12)",n.style.boxShadow="0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.4)",n.style.border="1px solid rgba(255, 255, 255, 0.25)"),e){case "ring":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border=`3px solid ${r}`,i.style.borderTopColor=l,i.style.animation=`veil-spin ${s||"800ms"} linear infinite`,i.style.boxSizing="border-box",n.appendChild(i);break}case "dual-ring":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border="3px solid transparent",i.style.borderTopColor=l,i.style.borderBottomColor=l,i.style.animation=`veil-spin ${s||"900ms"} cubic-bezier(0.5, 0, 0.5, 1) infinite`,i.style.boxSizing="border-box",n.appendChild(i);break}case "dots":{n.style.gap="4px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.width="28%",a.style.height="28%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${i*160}ms`,n.appendChild(a);}break}case "bars":{n.style.gap="3px";for(let i=0;i<4;i++){let a=document.createElement("div");a.style.width="18%",a.style.height="100%",a.style.borderRadius="2px",a.style.backgroundColor=l,a.style.animation=`veil-bar-wave ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${i*140}ms`,n.appendChild(a);}break}case "pulse":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.animation=`veil-pulse-scale ${s||"1200ms"} ease-out infinite`,n.appendChild(i);break}case "orbit":{let i=document.createElement("div");i.style.width="30%",i.style.height="30%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.position="absolute";let a=document.createElement("div");a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.animation=`veil-spin ${s||"1200ms"} linear infinite`;let d=document.createElement("div");d.style.width="24%",d.style.height="24%",d.style.borderRadius="50%",d.style.backgroundColor=l,d.style.position="absolute",d.style.top="0",d.style.left="38%",a.appendChild(d),n.append(i,a);break}case "wave":{n.style.gap="4px";for(let i=0;i<5;i++){let a=document.createElement("div");a.style.width="12%",a.style.height="80%",a.style.borderRadius="3px",a.style.backgroundColor=l,a.style.animation=`veil-wave-dance ${s||"1100ms"} ease-in-out infinite`,a.style.animationDelay=`${i*110}ms`,n.appendChild(a);}break}case "bounce":{let i=document.createElement("div");i.style.width="60%",i.style.height="60%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.animation=`veil-bounce-ball ${s||"900ms"} cubic-bezier(0.28, 0.84, 0.42, 1) infinite`,n.appendChild(i);break}case "ios-activity":{for(let i=0;i<12;i++){let a=document.createElement("div");a.style.position="absolute",a.style.width="8%",a.style.height="26%",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.transformOrigin="50% 190%",a.style.transform=`rotate(${i*30}deg) translateY(-90%)`,a.style.animation=`veil-ios-fade ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(12-i)*(1e3/12)}ms`,n.appendChild(a);}break}case "glass-orb":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.background=`radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), ${l} 70%)`,i.style.boxShadow=`0 4px 12px ${l}44, inset 0 2px 4px rgba(255,255,255,0.6)`,i.style.animation=`veil-glass-orbit ${s||"1600ms"} ease-in-out infinite`,n.appendChild(i);break}case "morph":{let i=document.createElement("div");i.style.width="80%",i.style.height="80%",i.style.backgroundColor=l,i.style.animation=`veil-morph-shape ${s||"2000ms"} ease-in-out infinite`,n.appendChild(i);break}case "progress-circle":{let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 36 36"),i.style.width="100%",i.style.height="100%",i.style.transform="rotate(-90deg)";let a=document.createElementNS("http://www.w3.org/2000/svg","circle");a.setAttribute("cx","18"),a.setAttribute("cy","18"),a.setAttribute("r","14"),a.setAttribute("fill","none"),a.setAttribute("stroke",r),a.setAttribute("stroke-width","3");let d=document.createElementNS("http://www.w3.org/2000/svg","circle");d.setAttribute("cx","18"),d.setAttribute("cy","18"),d.setAttribute("r","14"),d.setAttribute("fill","none"),d.setAttribute("stroke",l),d.setAttribute("stroke-width","3"),d.setAttribute("stroke-dasharray","88"),d.setAttribute("stroke-dashoffset","25"),d.setAttribute("stroke-linecap","round"),d.style.animation=`veil-spin ${s||"1200ms"} linear infinite`,d.style.transformOrigin="50% 50%",i.append(a,d),n.appendChild(i);break}case "arc-gradient":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.background=`conic-gradient(from 0deg, transparent 20%, ${l} 100%)`,i.style.mask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",i.style.webkitMask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",i.style.animation=`veil-spin ${s||"750ms"} linear infinite`,n.appendChild(i);break}case "pulse-ring":{for(let i=0;i<2;i++){let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.border=`2px solid ${l}`,a.style.animation=`veil-pulse-ring ${s||"1400ms"} cubic-bezier(0, 0.2, 0.8, 1) infinite`,a.style.animationDelay=`${i*700}ms`,n.appendChild(a);}break}case "dots-circle":{for(let i=0;i<8;i++){let a=document.createElement("div");a.style.position="absolute",a.style.width="20%",a.style.height="20%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.transformOrigin="50% 250%",a.style.transform=`rotate(${i*45}deg) translateY(-150%)`,a.style.animation=`veil-fade-seq ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(8-i)*(1e3/8)}ms`,n.appendChild(a);}break}case "grid-dots":{n.style.display="grid",n.style.gridTemplateColumns="repeat(3, 1fr)",n.style.gap="3px";for(let i=0;i<3;i++)for(let a=0;a<3;a++){let d=document.createElement("div");d.style.width="100%",d.style.aspectRatio="1 / 1",d.style.borderRadius="50%",d.style.backgroundColor=l,d.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,d.style.animationDelay=`${(i+a)*110}ms`,n.appendChild(d);}break}case "square-flip":{let i=document.createElement("div");i.style.width="60%",i.style.height="60%",i.style.backgroundColor=l,i.style.borderRadius="4px",i.style.animation=`veil-square-flip ${s||"1200ms"} ease-in-out infinite`,n.appendChild(i);break}case "cube-fold":{n.style.display="grid",n.style.gridTemplateColumns="repeat(2, 1fr)",n.style.gap="2px";for(let i=0;i<4;i++){let a=document.createElement("div");a.style.width="100%",a.style.aspectRatio="1 / 1",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.animation=`veil-cube-fold ${s||"1400ms"} ease-in-out infinite`,a.style.animationDelay=`${i*175}ms`,n.appendChild(a);}break}case "hourglass":{let i=document.createElement("div");i.style.width="65%",i.style.height="65%",i.style.border=`3px solid ${l}`,i.style.borderLeftColor="transparent",i.style.borderRightColor="transparent",i.style.borderRadius="50%",i.style.animation=`veil-hourglass ${s||"1200ms"} cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite`,n.appendChild(i);break}case "infinity":{let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 48 24"),i.style.width="100%",i.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M12,12 C4,12 4,4 12,4 C20,4 28,20 36,20 C44,20 44,12 36,12 C28,12 20,4 12,4"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","3"),a.setAttribute("stroke-dasharray","80"),a.setAttribute("stroke-dashoffset","0"),a.setAttribute("stroke-linecap","round"),a.style.animation=`veil-dash ${s||"1400ms"} linear infinite`,i.appendChild(a),n.appendChild(i);break}case "heartbeat-line":{let i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 50 24"),i.style.width="100%",i.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M0,12 L14,12 L18,3 L24,21 L28,9 L32,15 L36,12 L50,12"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","2.5"),a.setAttribute("stroke-dasharray","60"),a.setAttribute("stroke-dashoffset","60"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.style.animation=`veil-ecg ${s||"1200ms"} ease-in-out infinite`,i.appendChild(a),n.appendChild(i);break}case "equalizer":{n.style.gap="3px";let i=[0,200,100,300];for(let a=0;a<4;a++){let d=document.createElement("div");d.style.width="18%",d.style.height="100%",d.style.borderRadius="2px",d.style.backgroundColor=l,d.style.animation=`veil-eq-bounce ${s||"800ms"} ease-in-out infinite alternate`,d.style.animationDelay=`${i[a]}ms`,n.appendChild(d);}break}case "chasing-dots":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.position="relative",i.style.animation=`veil-spin ${s||"1800ms"} linear infinite`;for(let a=0;a<2;a++){let d=document.createElement("div");d.style.position="absolute",d.style.width="45%",d.style.height="45%",d.style.borderRadius="50%",d.style.backgroundColor=l,d.style.animation=`veil-chase ${s||"1800ms"} ease-in-out infinite`,a===0?(d.style.top="0",d.style.left="0"):(d.style.bottom="0",d.style.right="0",d.style.animationDelay="-900ms"),i.appendChild(d);}n.appendChild(i);break}case "typing":{n.style.gap="4px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-typing ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${i*150}ms`,n.appendChild(a);}break}case "liquid-fill":{let i=document.createElement("div");i.style.width="85%",i.style.height="85%",i.style.borderRadius="50%",i.style.border=`2px solid ${l}`,i.style.position="relative",i.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.backgroundColor=l,a.style.opacity="0.7",a.style.borderRadius="40%",a.style.animation=`veil-liquid-spin ${s||"2000ms"} linear infinite`,i.appendChild(a),n.appendChild(i);break}case "atom":{let i=document.createElement("div");i.style.width="24%",i.style.height="24%",i.style.borderRadius="50%",i.style.backgroundColor=l,i.style.position="absolute",n.appendChild(i);let a=[0,60,120];for(let d of a){let p=document.createElement("div");p.style.position="absolute",p.style.width="100%",p.style.height="45%",p.style.borderRadius="50%",p.style.border=`1.5px solid ${l}`,p.style.transform=`rotate(${d}deg)`,p.style.animation=`veil-atom-spin ${s||"1600ms"} linear infinite`,n.appendChild(p);}break}case "clock":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border=`2.5px solid ${l}`,i.style.position="relative";let a=document.createElement("div");a.style.width="14%",a.style.height="14%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.position="absolute",a.style.top="43%",a.style.left="43%";let d=document.createElement("div");d.style.position="absolute",d.style.width="2px",d.style.height="30%",d.style.backgroundColor=l,d.style.top="20%",d.style.left="calc(50% - 1px)",d.style.transformOrigin="bottom center",d.style.animation=`veil-spin ${s||"3000ms"} linear infinite`;let p=document.createElement("div");p.style.position="absolute",p.style.width="2px",p.style.height="42%",p.style.backgroundColor=l,p.style.top="8%",p.style.left="calc(50% - 1px)",p.style.transformOrigin="bottom center",p.style.animation=`veil-spin ${s||"1000ms"} linear infinite`,i.append(a,d,p),n.appendChild(i);break}case "radar":{let i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.borderRadius="50%",i.style.border=`1.5px solid ${l}`,i.style.position="relative",i.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.background=`conic-gradient(from 0deg, transparent 60%, ${l} 100%)`,a.style.opacity="0.6",a.style.animation=`veil-spin ${s||"1500ms"} linear infinite`,i.appendChild(a),n.appendChild(i);break}case "ellipsis":{n.style.gap="3px";for(let i=0;i<3;i++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-ellipsis ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${i*200}ms`,n.appendChild(a);}break}case "flower":{for(let i=0;i<6;i++){let a=document.createElement("div");a.style.position="absolute",a.style.width="28%",a.style.height="48%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.opacity="0.85",a.style.transformOrigin="50% 100%",a.style.top="2%",a.style.transform=`rotate(${i*60}deg)`,a.style.animation=`veil-flower-bloom ${s||"1600ms"} ease-in-out infinite`,a.style.animationDelay=`${i*120}ms`,n.appendChild(a);}break}}return We(),n}var ve=false;function We(){if(ve||typeof document>"u")return;ve=true;let t=document.createElement("style");t.id="veilkit-spinner-keyframes",t.textContent=`
|
|
511
|
+
`}function f(i){if(te||typeof document>"u")return;te=true;let e=$e(),d=i||ie;if(typeof document.adoptedStyleSheets<"u"&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype&&!d)try{let r=new CSSStyleSheet;r.replaceSync(e),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];return}catch{}let l=document.createElement("style");l.id="veilkit-styles",d&&l.setAttribute("nonce",d),l.textContent=e,document.head.appendChild(l);}var q={en:{loading:"Loading content, please wait\u2026",loaded:"Content loaded.",progress:"Loading progress",busy:"Busy"},es:{loading:"Cargando contenido, por favor espere\u2026",loaded:"Contenido cargado.",progress:"Progreso de carga",busy:"Ocupado"},fr:{loading:"Chargement du contenu, veuillez patienter\u2026",loaded:"Contenu charg\xE9.",progress:"Progression du chargement",busy:"Occup\xE9"},de:{loading:"Inhalt wird geladen, bitte warten\u2026",loaded:"Inhalt geladen.",progress:"Ladefortschritt",busy:"Besch\xE4ftigt"},ja:{loading:"\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059\u2026",loaded:"\u8AAD\u307F\u8FBC\u307F\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",progress:"\u8AAD\u307F\u8FBC\u307F\u72B6\u6CC1",busy:"\u51E6\u7406\u4E2D"},zh:{loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9\uFF0C\u8BF7\u7A0D\u5019\u2026",loaded:"\u5185\u5BB9\u52A0\u8F7D\u5B8C\u6210\u3002",progress:"\u52A0\u8F7D\u8FDB\u5EA6",busy:"\u5FD9\u788C\u4E2D"},ar:{loading:"\u062C\u0627\u0631\u064A \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631\u2026",loaded:"\u062A\u0645 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u062D\u062A\u0648\u0649.",progress:"\u062A\u0642\u062F\u0645 \u0627\u0644\u062A\u062D\u0645\u064A\u0644",busy:"\u0645\u0634\u063A\u0648\u0644"}},ae="en",X={};function se(i){ae=i;}function re(i){Object.assign(X,i);}function Re(i){return X[i]?X[i]:(q[ae]||q.en)[i]||q.en[i]||"Loading\u2026"}function le(i,e){i.setAttribute("aria-busy","true");let d=i.querySelector(".veil-sr-only");return d||(d=document.createElement("span"),d.className="veil-sr-only",d.setAttribute("role","status"),d.setAttribute("aria-live","polite"),i.appendChild(d)),d.textContent=e||Re("loading"),d}function oe(i){i.removeAttribute("aria-busy");let e=i.querySelector(".veil-sr-only");e&&e.remove();}var de=react.createContext({theme:"light",animation:"shimmer"});function St({children:i,theme:e="light",animation:d="shimmer",nonce:l,locale:r,labels:s,antiFlicker:t}){react.useEffect(()=>{l&&ne(l),r&&se(r),s&&re(s),f(l);},[l,r,s]);let n=react.useMemo(()=>({theme:e,animation:d,nonce:l,locale:r,labels:s,antiFlicker:t}),[e,d,l,r,s,t]);return jsxRuntime.jsx(de.Provider,{value:n,children:i})}function L(){return react.useContext(de)}var I=class{delay;minVisible;onShow;onHide;delayTimer=null;minVisibleTimer=null;shownTimestamp=null;isVisible=false;isPending=false;constructor(e={}){this.delay=e.delay!==void 0?e.delay:150,this.minVisible=e.minVisible!==void 0?e.minVisible:300,this.onShow=e.onShow,this.onHide=e.onHide;}start(){if(!(this.isPending||this.isVisible)){if(this.isPending=true,this.delay<=0){this.display();return}this.delayTimer=setTimeout(()=>{this.delayTimer=null,this.isPending&&this.display();},this.delay);}}display(){this.isPending=false,this.isVisible=true,this.shownTimestamp=Date.now(),this.onShow&&this.onShow();}finish(e){if(this.delayTimer){clearTimeout(this.delayTimer),this.delayTimer=null,this.isPending=false,e&&e();return}if(!this.isVisible){this.isPending=false,e&&e();return}let d=this.shownTimestamp?Date.now()-this.shownTimestamp:0,l=Math.max(0,this.minVisible-d);l<=0?(this.hide(),e&&e()):this.minVisibleTimer=setTimeout(()=>{this.minVisibleTimer=null,this.hide(),e&&e();},l);}hide(){this.isVisible=false,this.isPending=false,this.shownTimestamp=null,this.onHide&&this.onHide();}active(){return this.isVisible}destroy(){this.delayTimer&&clearTimeout(this.delayTimer),this.minVisibleTimer&&clearTimeout(this.minVisibleTimer),this.delayTimer=null,this.minVisibleTimer=null,this.isVisible=false,this.isPending=false;}};var F=class{el=null;innerEl=null;currentProgress=0;trickleTimer=null;status="idle";ensureDOM(){this.el||typeof document>"u"||(f(),this.el=document.createElement("div"),this.el.className="veil-progress-bar",this.el.setAttribute("role","progressbar"),this.el.setAttribute("aria-valuemin","0"),this.el.setAttribute("aria-valuemax","100"),this.el.setAttribute("aria-valuenow","0"),this.innerEl=document.createElement("div"),this.innerEl.className="veil-progress-inner",this.innerEl.style.width="0%",this.innerEl.style.opacity="1",this.el.appendChild(this.innerEl),document.body.appendChild(this.el));}start(){this.ensureDOM(),this.status!=="loading"&&(this.status="loading",this.currentProgress=0,this.set(.08),this.innerEl&&(this.innerEl.style.opacity="1",this.innerEl.style.backgroundColor="var(--veil-progress-color, #3b82f6)"),this.trickle());}set(e){this.ensureDOM(),this.currentProgress=Math.min(1,Math.max(0,e));let d=Math.round(this.currentProgress*100);this.innerEl&&(this.innerEl.style.width=`${d}%`),this.el&&this.el.setAttribute("aria-valuenow",String(d));}inc(e){let d=this.currentProgress;d>=1||(typeof e!="number"&&(d>=0&&d<.2?e=.1:d>=.2&&d<.5?e=.04:d>=.5&&d<.8?e=.02:d>=.8&&d<.99?e=.005:e=0),this.set(d+e));}trickle(){this.stopTrickle(),this.trickleTimer=setInterval(()=>{this.currentProgress<.95&&this.inc();},250);}stopTrickle(){this.trickleTimer&&(clearInterval(this.trickleTimer),this.trickleTimer=null);}done(){this.status!=="idle"&&(this.stopTrickle(),this.set(1),this.status="idle",setTimeout(()=>{this.innerEl&&(this.innerEl.style.opacity="0"),setTimeout(()=>{this.el&&(this.el.remove(),this.el=null,this.innerEl=null),this.currentProgress=0;},350);},200));}fail(){this.stopTrickle(),this.status="error",this.innerEl&&(this.innerEl.style.backgroundColor="#ef4444"),this.set(1),setTimeout(()=>this.done(),500);}},w=new F;function ce(i={}){f();let e=!!i.circular,d=i.color||"var(--veil-progress-color, #3b82f6)",l=i.trackColor||"rgba(0, 0, 0, 0.08)";if(e){let n=i.size!==void 0?typeof i.size=="number"?`${i.size}px`:i.size:"48px",a=i.strokeWidth||4,o=document.createElement("div");o.className=`veil-progress-circular ${i.className||""}`.trim(),o.style.width=n,o.style.height=n,o.style.display="inline-flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.position="relative";let p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("viewBox","0 0 48 48"),p.style.width="100%",p.style.height="100%",p.style.transform="rotate(-90deg)";let m=document.createElementNS("http://www.w3.org/2000/svg","circle");m.setAttribute("cx","24"),m.setAttribute("cy","24"),m.setAttribute("r","20"),m.setAttribute("fill","none"),m.setAttribute("stroke",l),m.setAttribute("stroke-width",String(a));let y=document.createElementNS("http://www.w3.org/2000/svg","circle");y.setAttribute("cx","24"),y.setAttribute("cy","24"),y.setAttribute("r","20"),y.setAttribute("fill","none"),y.setAttribute("stroke",d),y.setAttribute("stroke-width",String(a)),y.setAttribute("stroke-linecap","round");let x=2*Math.PI*20;if(y.setAttribute("stroke-dasharray",String(x)),i.value!==void 0){let g=Math.min(100,Math.max(0,i.value)),v=x-g/100*x;y.setAttribute("stroke-dashoffset",String(v)),y.style.transition="stroke-dashoffset 300ms ease";}else y.setAttribute("stroke-dashoffset",String(x*.75)),p.style.animation="veil-spin 1200ms linear infinite";if(p.append(m,y),o.appendChild(p),i.showPercentage&&i.value!==void 0){let g=document.createElement("span");g.style.position="absolute",g.style.fontSize="11px",g.style.fontWeight="600",g.textContent=`${Math.round(i.value)}%`,o.appendChild(g);}return o}let r=i.height!==void 0?typeof i.height=="number"?`${i.height}px`:i.height:"4px",s=document.createElement("div");s.className=`veil-progress-linear ${i.className||""}`.trim(),s.setAttribute("role","progressbar"),s.style.width="100%",s.style.height=r,s.style.backgroundColor=l,s.style.borderRadius="9999px",s.style.overflow="hidden",s.style.position="relative";let t=document.createElement("div");if(t.style.height="100%",t.style.backgroundColor=d,t.style.borderRadius="9999px",i.value!==void 0){let n=Math.min(100,Math.max(0,i.value));s.setAttribute("aria-valuenow",String(n)),t.style.width=`${n}%`,t.style.transition="width 250ms ease";}else t.style.width="35%",t.style.animation="veil-progress-indeterminate 1400ms ease-in-out infinite";return s.appendChild(t),s}var W=class{activeIds=new Set;counter=0;listeners=new Set;start(e){let d=e||`req_${Date.now()}_${Math.random().toString(36).substring(2,7)}`;return this.activeIds.has(d)||(this.activeIds.add(d),this.counter++,this.notify()),d}stop(e){if(e)this.activeIds.has(e)&&(this.activeIds.delete(e),this.counter=Math.max(0,this.counter-1),this.notify());else if(this.counter>0){this.counter--;let d=this.activeIds.values().next().value;d&&this.activeIds.delete(d),this.notify();}}isLoading(){return this.counter>0}getCount(){return this.counter}subscribe(e){return this.listeners.add(e),e(this.isLoading(),this.counter),()=>{this.listeners.delete(e);}}reset(){this.activeIds.clear(),this.counter=0,this.notify();}notify(){let e=this.isLoading();for(let d of this.listeners)d(e,this.counter);}},G=new W;function _(i,e={}){let[d,l]=react.useState(false);return react.useEffect(()=>{let r=new I({delay:e.delay!==void 0?e.delay:150,minVisible:e.minVisible!==void 0?e.minVisible:300,onShow:()=>l(true),onHide:()=>l(false)});return i?r.start():r.finish(),()=>{r.destroy();}},[i,e.delay,e.minVisible]),d}function It(i,e={}){let[d,l]=react.useState(false),[r,s]=react.useState(null),[t,n]=react.useState(null),a=_(d,e),o=react.useCallback(async(...p)=>{l(true),n(null);let m=G.start();try{let y=await i(...p);return s(y),y}catch(y){throw n(y),y}finally{G.stop(m),l(false);}},[i]);return {loading:a,rawLoading:d,data:r,error:t,execute:o}}function Ht(){return {start:()=>w.start(),set:i=>w.set(i),inc:i=>w.inc(i),done:()=>w.done(),fail:()=>w.fail()}}var K=0;function ze(){return K===0&&typeof performance<"u"&&(K=performance.now()),K}function R(i=1500){if(typeof performance>"u")return "0ms";let e=performance.now()-ze();return `-${Math.round(e%i)}ms`}function z(i=1500){if(typeof i=="number")return i;if(!i)return 1500;let e=i.trim().toLowerCase();return e.endsWith("ms")?parseFloat(e)||1500:e.endsWith("s")?(parseFloat(e)||1.5)*1e3:parseFloat(e)||1500}var A=null,pe=new Set,me=false;function Ve(i){for(let e of i){let d=e.target;e.isIntersecting?(d.removeAttribute("data-veil-offscreen"),d.style.removeProperty("--veil-play-state")):(d.setAttribute("data-veil-offscreen","true"),d.style.setProperty("--veil-play-state","paused"));}}function Be(){me||typeof document>"u"||(me=true,document.addEventListener("visibilitychange",()=>{document.hidden?document.documentElement.setAttribute("data-veil-tab-hidden","true"):document.documentElement.removeAttribute("data-veil-tab-hidden");}));}function ye(i){return typeof window>"u"||typeof IntersectionObserver>"u"?()=>{}:(Be(),A||(A=new IntersectionObserver(Ve,{rootMargin:"100px 0px",threshold:0})),A.observe(i),pe.add(i),()=>{A&&i&&(A.unobserve(i),pe.delete(i));})}function c(i={}){f();let e=document.createElement("div");e.className=`veil-skeleton ${i.className||""}`.trim(),e.setAttribute("aria-hidden","true");let d=i.type||"rect";if(e.setAttribute("data-veil-shape",d),i.animation&&e.setAttribute("data-veil-anim",i.animation),i.direction&&e.setAttribute("data-veil-dir",i.direction),typeof i.theme=="string"&&e.setAttribute("data-veil-theme",i.theme),i.width!==void 0&&(e.style.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height!==void 0&&(e.style.height=typeof i.height=="number"?`${i.height}px`:i.height),i.radius!==void 0&&(e.style.setProperty("--veil-radius",typeof i.radius=="number"?`${i.radius}px`:i.radius),e.style.borderRadius=typeof i.radius=="number"?`${i.radius}px`:i.radius),i.speed!==void 0){let l=z(i.speed);e.style.setProperty("--veil-duration",`${l}ms`),e.style.setProperty("--veil-sync-delay",R(l));}else e.style.setProperty("--veil-sync-delay",R(1500));if(i.style)for(let[l,r]of Object.entries(i.style))e.style[l]=r;return ye(e),e}function b(i=3,e={}){let d=document.createElement("div");d.className=`veil-lines-group ${e.className||""}`.trim(),d.setAttribute("aria-hidden","true");let l=e.gap!==void 0?typeof e.gap=="number"?`${e.gap}px`:e.gap:"0.45rem";d.style.display="flex",d.style.flexDirection="column",d.style.gap=l;let r=["100%","94%","88%","75%"],s=e.lastLineWidth!==void 0?typeof e.lastLineWidth=="number"?`${e.lastLineWidth}px`:e.lastLineWidth:"65%";for(let t=0;t<i;t++){let a=t===i-1?s:r[t%r.length]||"95%",o=c({...e,type:"line",width:a});o.style.setProperty("--veil-stagger-idx",String(t)),d.appendChild(o);}return d}function ue(i,e={}){let d=e.transition||"fade";if(d==="none"){e.onComplete&&e.onComplete();return}if(i.classList.add("veil-revealing"),d==="stagger-children"){let s=Array.from(i.children);s.forEach((n,a)=>{n.classList.add("veil-reveal-fade"),n.style.animationDelay=`${a*60}ms`,e.duration&&(n.style.animationDuration=`${e.duration}ms`);});let t=(e.duration||350)+s.length*60;setTimeout(()=>{i.classList.remove("veil-revealing"),s.forEach(n=>{n.classList.remove("veil-reveal-fade"),n.style.removeProperty("animation-delay"),n.style.removeProperty("animation-duration");}),e.onComplete&&e.onComplete();},t);return}let l=`veil-reveal-${d}`;i.classList.add(l),e.duration&&(i.style.animationDuration=`${e.duration}ms`),e.easing&&(i.style.animationTimingFunction=e.easing);let r=()=>{i.removeEventListener("animationend",r),i.classList.remove("veil-revealing",l),i.style.removeProperty("animation-duration"),i.style.removeProperty("animation-timing-function"),e.onComplete&&e.onComplete();};i.addEventListener("animationend",r);}var V=new Map;function Ye(i){if(V.has(i))return V.get(i);if(typeof window<"u"&&window.localStorage)try{let e=localStorage.getItem(`veil_cache_${i}`);if(e){let d=JSON.parse(e);return V.set(i,d),d}}catch{}return null}function je(i,e,d=false){if(V.set(i,e),d&&typeof window<"u"&&window.localStorage)try{localStorage.setItem(`veil_cache_${i}`,JSON.stringify(e));}catch{}}function qe(i,e){let d=i.getBoundingClientRect(),l=[];function r(t){if(t.hasAttribute("data-veil-ignore")||e&&t.matches(e))return false;let n=window.getComputedStyle(t);if(n.display==="none"||n.visibility==="hidden"||n.opacity==="0")return false;let a=t.tagName.toLowerCase();return ["img","svg","button","input","textarea","select"].includes(a)||t.hasAttribute("data-veil-shape")?true:Array.from(t.childNodes).some(p=>p.nodeType===Node.TEXT_NODE&&(p.textContent||"").trim().length>0)&&t.children.length===0}function s(t){if(t!==i&&r(t)){let a=t.getBoundingClientRect();if(a.width>2&&a.height>2){let p=window.getComputedStyle(t).borderRadius||"6px",m=t.getAttribute("data-veil-shape"),y="rect";m==="circle"||p==="50%"||p.includes("px")&&parseFloat(p)>=a.width/2?y="circle":(m==="line"||["p","span","h1","h2","h3","h4","h5","h6","a","label"].includes(t.tagName.toLowerCase()))&&(y="line"),l.push({x:Math.round(a.left-d.left),y:Math.round(a.top-d.top),width:Math.round(a.width),height:Math.round(a.height),radius:p,shape:y});}return}let n=Array.from(t.children);for(let a of n)a.hasAttribute("data-veil-ignore")||s(a);}return s(i),{width:Math.round(d.width),height:Math.round(d.height),boxes:l}}function he(i,e={},d={}){let l=document.createElement("div");if(l.className="veil-auto-overlay",l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.pointerEvents="none",l.style.zIndex="5",!e.preserveBackground){let o=window.getComputedStyle(i);l.style.backgroundColor=o.backgroundColor!=="rgba(0, 0, 0, 0)"?o.backgroundColor:"transparent";}function r(o){l.innerHTML="";for(let p=0;p<o.boxes.length;p++){let m=o.boxes[p],y=c({...d,type:m.shape,radius:m.radius});y.style.position="absolute",y.style.left=`${m.x}px`,y.style.top=`${m.y}px`,y.style.width=`${m.width}px`,y.style.height=`${m.height}px`,y.style.setProperty("--veil-stagger-idx",String(p)),l.appendChild(y);}}function s(){let o=qe(i,e.ignoreSelector);o.boxes.length>0&&(r(o),e.cacheKey&&je(e.cacheKey,o,e.persistCache));}if(e.cacheKey){let o=Ye(e.cacheKey);o&&r(o);}window.getComputedStyle(i).position==="static"&&(i.style.position="relative"),i.appendChild(l),l.children.length===0&&s();let n=null,a=null;return e.observeResize!==false&&typeof ResizeObserver<"u"&&(n=new ResizeObserver(()=>s()),n.observe(i)),e.observeMutations!==false&&typeof MutationObserver<"u"&&(a=new MutationObserver(()=>s()),a.observe(i,{childList:true,subtree:true,attributes:false})),{overlay:l,refresh:s,destroy:()=>{n&&n.disconnect(),a&&a.disconnect(),e.reveal&&e.reveal!=="none"?ue(i,{transition:e.reveal,duration:e.revealDuration,easing:e.revealEasing,onComplete:()=>l.remove()}):l.remove();}}}function ii({type:i="rect",circle:e,width:d,height:l,radius:r,count:s=1,gap:t="0.5rem",lines:n,lastLineWidth:a="65%",animation:o,theme:p,direction:m,speed:y,className:x="",style:g={},ariaLabel:v="Loading",children:T}){let P=L();react.useEffect(()=>{f(P.nonce);},[P.nonce]);let M=o||P.animation||"shimmer",S=p||P.theme||"light",C=e?"circle":n?"line":i,Q=z(y||1500),Pe=typeof window<"u"?R(Q):"0s",E={...g,"--veil-sync-delay":Pe};if(y&&(E["--veil-duration"]=`${Q}ms`),d!==void 0&&(E.width=typeof d=="number"?`${d}px`:d),l!==void 0&&(E.height=typeof l=="number"?`${l}px`:l),r!==void 0){let $=typeof r=="number"?`${r}px`:r;E["--veil-radius"]=$,E.borderRadius=$;}e&&(E.borderRadius="50%",E.aspectRatio="1 / 1");let j=n||(s>1?s:1);if(j>1){let $=["100%","94%","88%","75%"],Le=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsxs("div",{className:`veil-lines-group ${x}`.trim(),role:"status","aria-label":v,style:{display:"flex",flexDirection:"column",gap:Le},children:[jsxRuntime.jsx("span",{className:"veil-sr-only",children:v}),Array.from({length:j}).map((yt,D)=>{let Te=D===j-1?a:$[D%$.length]||"95%";return jsxRuntime.jsx("div",{className:"veil-skeleton","data-veil-shape":"line","data-veil-anim":M,"data-veil-theme":typeof S=="string"?S:void 0,"data-veil-dir":m,"aria-hidden":"true",style:{...E,width:Te,"--veil-stagger-idx":D}},D)})]})}return jsxRuntime.jsxs("div",{className:`veil-skeleton ${x}`.trim(),"data-veil-shape":C,"data-veil-anim":M,"data-veil-theme":typeof S=="string"?S:void 0,"data-veil-dir":m,role:"status","aria-label":v,style:E,children:[jsxRuntime.jsx("span",{className:"veil-sr-only",children:v}),T]})}function ni({loading:i,children:e,cacheKey:d,persistCache:l,ignoreSelector:r,observeResize:s=true,observeMutations:t=true,preserveBackground:n=true,reveal:a="fade",revealDuration:o=350,revealEasing:p,delay:m=150,minVisible:y=300,skeletonProps:x}){let g=react.useRef(null),v=_(i,{delay:m,minVisible:y});return react.useEffect(()=>{if(!v||!g.current)return;let T=he(g.current,{cacheKey:d,persistCache:l,ignoreSelector:r,observeResize:s,observeMutations:t,preserveBackground:n,reveal:a,revealDuration:o,revealEasing:p},x);return ()=>{T.destroy();}},[v,d,l,r,s,t,n,a,o,p,x]),jsxRuntime.jsx("div",{ref:g,className:"veil-measure-wrapper","aria-busy":v,style:{position:"relative"},children:e})}function U(i){let e=document.createElement("div");e.className=`veil-preset veil-preset-${i.name} ${i.className||""}`.trim(),e.setAttribute("aria-hidden","true"),e.style.width=i.width!==void 0?typeof i.width=="number"?`${i.width}px`:i.width:"100%",e.style.boxSizing="border-box";let d=i.shape||"rounded",l;d==="pill"?l="9999px":d==="square"?l="4px":d==="sharp"&&(l="0px"),d==="glass"&&(e.style.backdropFilter="blur(10px)",e.style.webkitBackdropFilter="blur(10px)",e.style.background="rgba(255, 255, 255, 0.08)",e.style.border="1px solid rgba(255, 255, 255, 0.18)",e.style.boxShadow="0 8px 32px rgba(0, 0, 0, 0.08)");let r={animation:i.animation,theme:i.theme,direction:i.direction,speed:i.speed,radius:l};switch(i.name){case "card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"rect",height:"180px",radius:l||"8px"}),t=c({...r,type:"heading",width:"70%",height:"24px"}),n=b(2,r),a=c({...r,type:"button",width:"110px",height:"36px"});e.append(s,t,n,a);break}case "product-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="14px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",height:"200px",radius:l||"10px"}),t=c({...r,type:"badge",width:"50px",height:"18px"}),n=c({...r,type:"line",width:"85%",height:"18px"}),a=c({...r,type:"line",width:"40%",height:"22px"}),o=c({...r,type:"button",width:"100%",height:"38px"});e.append(s,t,n,a,o);break}case "product-grid":{let s=i.items||4,t=i.columns||2;e.style.display="grid",e.style.gridTemplateColumns=`repeat(${t}, 1fr)`,e.style.gap="16px";for(let n=0;n<s;n++){let a=U({...i,name:"product-card",width:"100%"});e.appendChild(a);}break}case "list":{let s=i.items||4;e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let t=0;t<s;t++){let n=c({...r,type:"line",width:`${95-t%3*15}%`,height:"18px"});e.appendChild(n);}break}case "list-item":{e.style.display="flex",e.style.alignItems="center",e.style.gap="14px",e.style.padding="10px 0";let s=c({...r,type:"circle",width:"44px",height:"44px"}),t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="6px",t.style.flex="1";let n=c({...r,type:"line",width:"60%",height:"16px"}),a=c({...r,type:"line",width:"40%",height:"12px"});t.append(n,a),e.append(s,t);break}case "table":{let s=i.items||5;e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="12px",e.style.borderRadius=l||"8px",e.style.border="1px solid rgba(0,0,0,0.06)";let t=document.createElement("div");t.style.display="grid",t.style.gridTemplateColumns="2fr 1fr 1fr 1fr",t.style.gap="12px",t.style.paddingBottom="8px",t.style.borderBottom="2px solid rgba(0,0,0,0.08)";for(let n=0;n<4;n++)t.appendChild(c({...r,type:"line",height:"16px"}));e.appendChild(t);for(let n=0;n<s;n++){let a=document.createElement("div");a.style.display="grid",a.style.gridTemplateColumns="2fr 1fr 1fr 1fr",a.style.gap="12px",a.style.padding="8px 0",a.style.borderBottom="1px solid rgba(0,0,0,0.04)";for(let o=0;o<4;o++)a.appendChild(c({...r,type:"line",height:"14px"}));e.appendChild(a);}break}case "profile":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"circle",width:"88px",height:"88px"}),t=c({...r,type:"heading",width:"160px",height:"22px"}),n=b(2,r),a=document.createElement("div");a.style.display="flex",a.style.gap="10px",a.append(c({...r,type:"button",width:"100px",height:"34px"}),c({...r,type:"button",width:"100px",height:"34px"})),e.append(s,t,n,a);break}case "profile-header":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"16px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",height:"140px",radius:"0"}),t=document.createElement("div");t.style.display="flex",t.style.alignItems="flex-end",t.style.gap="16px",t.style.padding="0 20px 20px 20px",t.style.marginTop="-40px";let n=c({...r,type:"circle",width:"80px",height:"80px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(c({...r,type:"heading",width:"140px",height:"20px"}),c({...r,type:"line",width:"200px",height:"14px"})),t.append(n,a),e.append(s,t);break}case "feed-post":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(c({...r,type:"circle",width:"40px",height:"40px"}),c({...r,type:"line",width:"120px",height:"16px"}));let t=b(2,r),n=c({...r,type:"rect",height:"220px",radius:l||"8px"}),a=document.createElement("div");a.style.display="flex",a.style.gap="16px",a.append(c({...r,type:"button",width:"60px",height:"28px"}),c({...r,type:"button",width:"60px",height:"28px"})),e.append(s,t,n,a);break}case "article":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=c({...r,type:"heading",width:"85%",height:"36px"}),t=document.createElement("div");t.style.display="flex",t.style.gap="12px",t.append(c({...r,type:"circle",width:"32px",height:"32px"}),c({...r,type:"line",width:"140px",height:"14px"}));let n=c({...r,type:"rect",height:"260px",radius:l||"10px"}),a=b(4,r),o=b(3,r);e.append(s,t,n,a,o);break}case "comment-thread":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.gap="12px",s===1&&(t.style.marginLeft="40px");let n=c({...r,type:"circle",width:"36px",height:"36px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.style.flex="1",a.append(c({...r,type:"line",width:"120px",height:"14px"}),b(2,r)),t.append(n,a),e.appendChild(t);}break}case "chat":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="16px";let s=[{align:"flex-start",w:"65%"},{align:"flex-end",w:"50%"},{align:"flex-start",w:"80%"},{align:"flex-end",w:"40%"}];for(let t of s){let n=document.createElement("div");n.style.display="flex",n.style.justifyContent=t.align;let a=c({...r,type:"rect",width:t.w,height:"42px",radius:l||"18px"});n.appendChild(a),e.appendChild(n);}break}case "dashboard":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="grid",s.style.gridTemplateColumns="repeat(3, 1fr)",s.style.gap="12px";for(let n=0;n<3;n++){let a=document.createElement("div");a.style.padding="16px",a.style.borderRadius=l||"10px",a.style.border="1px solid rgba(0,0,0,0.06)",a.style.display="flex",a.style.flexDirection="column",a.style.gap="8px",a.append(c({...r,type:"line",width:"60%",height:"14px"}),c({...r,type:"heading",width:"80%",height:"28px"})),s.appendChild(a);}let t=c({...r,type:"rect",height:"200px",radius:l||"10px"});e.append(s,t);break}case "form":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";for(let t=0;t<3;t++){let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="6px",n.append(c({...r,type:"line",width:"30%",height:"14px"}),c({...r,type:"input",width:"100%",height:"40px"})),e.appendChild(n);}let s=c({...r,type:"button",width:"140px",height:"40px"});e.appendChild(s);break}case "media-card":{e.style.display="flex",e.style.gap="16px",e.style.padding="12px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",width:"140px",height:"90px",radius:l||"8px"}),t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="8px",t.style.flex="1",t.append(c({...r,type:"heading",width:"80%",height:"18px"}),c({...r,type:"line",width:"60%",height:"14px"}),c({...r,type:"line",width:"40%",height:"12px"})),e.append(s,t);break}case "navbar":{e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="space-between",e.style.padding="12px 20px",e.style.borderBottom="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"heading",width:"110px",height:"24px"}),t=document.createElement("div");t.style.display="flex",t.style.gap="18px";for(let a=0;a<4;a++)t.appendChild(c({...r,type:"line",width:"60px",height:"14px"}));let n=c({...r,type:"button",width:"90px",height:"34px"});e.append(s,t,n);break}case "sidebar":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="space-between",e.style.padding="18px 14px",e.style.height="100%",e.style.minHeight="320px",e.style.borderRight="1px solid rgba(0,0,0,0.08)";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="16px",s.appendChild(c({...r,type:"heading",width:"100px",height:"22px"}));for(let n=0;n<5;n++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(c({...r,type:"icon",width:"20px",height:"20px"}),c({...r,type:"line",width:"90px",height:"14px"})),s.appendChild(a);}let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="10px",t.append(c({...r,type:"circle",width:"36px",height:"36px"}),c({...r,type:"line",width:"80px",height:"14px"})),e.append(s,t);break}case "settings-page":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="24px",e.style.padding="24px";let s=c({...r,type:"heading",width:"220px",height:"30px"});e.appendChild(s);for(let t=0;t<3;t++){let n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="space-between",n.style.padding="14px 0",n.style.borderBottom="1px solid rgba(0,0,0,0.06)";let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="6px",a.append(c({...r,type:"line",width:"160px",height:"16px"}),c({...r,type:"line",width:"240px",height:"12px"}));let o=c({...r,type:"button",width:"50px",height:"28px",radius:"14px"});n.append(a,o),e.appendChild(n);}break}case "product-detail":{e.style.display="grid",e.style.gridTemplateColumns="1fr 1.2fr",e.style.gap="24px",e.style.padding="20px";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="12px";let t=c({...r,type:"rect",height:"280px",radius:l||"12px"}),n=document.createElement("div");n.style.display="flex",n.style.gap="8px";for(let g=0;g<4;g++)n.appendChild(c({...r,type:"rect",width:"60px",height:"60px",radius:"6px"}));s.append(t,n);let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="14px";let o=c({...r,type:"heading",width:"85%",height:"32px"}),p=c({...r,type:"badge",width:"120px",height:"20px"}),m=c({...r,type:"heading",width:"100px",height:"28px"}),y=b(3,r),x=c({...r,type:"button",width:"180px",height:"44px"});a.append(o,p,m,y,x),e.append(s,a);break}case "news-feed":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.gap="16px",t.style.paddingBottom="16px",t.style.borderBottom="1px solid rgba(0,0,0,0.06)";let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="8px",n.style.flex="1",n.append(c({...r,type:"badge",width:"80px",height:"16px"}),c({...r,type:"heading",width:"90%",height:"20px"}),b(2,r));let a=c({...r,type:"rect",width:"120px",height:"90px",radius:l||"8px"});t.append(n,a),e.appendChild(t);}break}case "inbox-list":{e.style.display="flex",e.style.flexDirection="column",e.style.border="1px solid rgba(0,0,0,0.06)",e.style.borderRadius=l||"8px";for(let s=0;s<4;s++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="14px",t.style.padding="12px 16px",t.style.borderBottom="1px solid rgba(0,0,0,0.04)";let n=c({...r,type:"icon",width:"18px",height:"18px"}),a=c({...r,type:"line",width:"120px",height:"14px"}),o=c({...r,type:"line",width:"280px",height:"14px"}),p=c({...r,type:"badge",width:"50px",height:"16px"});t.append(n,a,o,p),e.appendChild(t);}break}case "notification-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="flex-start",t.style.gap="12px",t.style.padding="12px",t.style.borderRadius=l||"8px",t.style.background="rgba(0,0,0,0.02)";let n=c({...r,type:"circle",width:"10px",height:"10px"});n.style.marginTop="6px";let a=c({...r,type:"circle",width:"38px",height:"38px"}),o=document.createElement("div");o.style.display="flex",o.style.flexDirection="column",o.style.gap="4px",o.style.flex="1",o.append(c({...r,type:"line",width:"75%",height:"14px"}),c({...r,type:"line",width:"40%",height:"12px"})),t.append(n,a,o),e.appendChild(t);}break}case "order-list":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";for(let s=0;s<2;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="12px",t.style.padding="16px",t.style.borderRadius=l||"10px",t.style.border="1px solid rgba(0,0,0,0.08)";let n=document.createElement("div");n.style.display="flex",n.style.justifyContent="space-between",n.append(c({...r,type:"line",width:"140px",height:"16px"}),c({...r,type:"badge",width:"80px",height:"22px"}));let a=document.createElement("div");a.style.display="flex",a.style.gap="10px";for(let p=0;p<3;p++)a.appendChild(c({...r,type:"rect",width:"50px",height:"50px",radius:"6px"}));let o=document.createElement("div");o.style.display="flex",o.style.justifyContent="space-between",o.style.alignItems="center",o.append(c({...r,type:"heading",width:"90px",height:"20px"}),c({...r,type:"button",width:"110px",height:"32px"})),t.append(n,a,o),e.appendChild(t);}break}case "kpi-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.style.alignItems="center",s.append(c({...r,type:"line",width:"90px",height:"14px"}),c({...r,type:"icon",width:"20px",height:"20px"}));let t=c({...r,type:"heading",width:"140px",height:"36px"}),n=c({...r,type:"badge",width:"70px",height:"18px"});e.append(s,t,n);break}case "chart-bar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"heading",width:"140px",height:"20px"}),t=document.createElement("div");t.style.display="flex",t.style.alignItems="flex-end",t.style.justifyContent="space-between",t.style.height="140px",t.style.padding="0 10px";let n=["40%","75%","55%","90%","65%","80%","50%"];for(let a of n){let o=c({...r,type:"rect",width:"22px",height:a,radius:"4px"});t.appendChild(o);}e.append(s,t);break}case "chart-line":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px",e.style.padding="18px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"heading",width:"150px",height:"20px"}),t=c({...r,type:"rect",height:"140px",radius:"8px"});e.append(s,t);break}case "chart-pie":{e.style.display="flex",e.style.alignItems="center",e.style.gap="20px",e.style.padding="20px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"circle",width:"120px",height:"120px"}),t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="10px",t.style.flex="1";for(let n=0;n<3;n++){let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="8px",a.append(c({...r,type:"circle",width:"12px",height:"12px"}),c({...r,type:"line",width:"90px",height:"14px"})),t.appendChild(a);}e.append(s,t);break}case "search-results":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px";let s=c({...r,type:"input",height:"42px",radius:l||"24px"});e.appendChild(s);for(let t=0;t<3;t++){let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="6px",n.append(c({...r,type:"line",width:"160px",height:"12px"}),c({...r,type:"heading",width:"70%",height:"20px"}),b(2,r)),e.appendChild(n);}break}case "video-player":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="14px";let s=c({...r,type:"rect",height:"240px",radius:l||"12px"}),t=c({...r,type:"heading",width:"80%",height:"24px"}),n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="space-between";let a=document.createElement("div");a.style.display="flex",a.style.alignItems="center",a.style.gap="10px",a.append(c({...r,type:"circle",width:"40px",height:"40px"}),c({...r,type:"line",width:"120px",height:"14px"}));let o=c({...r,type:"button",width:"100px",height:"36px"});n.append(a,o),e.append(s,t,n);break}case "music-player":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.gap="14px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=c({...r,type:"rect",width:"180px",height:"180px",radius:l||"12px"}),t=c({...r,type:"heading",width:"160px",height:"20px"}),n=c({...r,type:"line",width:"100px",height:"14px"}),a=c({...r,type:"line",width:"100%",height:"6px"}),o=document.createElement("div");o.style.display="flex",o.style.alignItems="center",o.style.gap="20px",o.append(c({...r,type:"icon",width:"24px",height:"24px"}),c({...r,type:"circle",width:"48px",height:"48px"}),c({...r,type:"icon",width:"24px",height:"24px"})),e.append(s,t,n,a,o);break}case "stories-row":{e.style.display="flex",e.style.gap="16px",e.style.overflowX="auto",e.style.padding="8px 0";for(let s=0;s<5;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.alignItems="center",t.style.gap="6px",t.append(c({...r,type:"circle",width:"60px",height:"60px"}),c({...r,type:"line",width:"48px",height:"10px"})),e.appendChild(t);}break}case "reels":{e.style.display="flex",e.style.flexDirection="column",e.style.justifyContent="flex-end",e.style.height="340px",e.style.padding="20px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.1)",e.style.position="relative";let s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="10px",s.append(c({...r,type:"circle",width:"36px",height:"36px"}),c({...r,type:"line",width:"100px",height:"14px"}));let t=b(2,r);e.append(s,t);break}case "tabs":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px";let s=document.createElement("div");s.style.display="flex",s.style.gap="20px",s.style.borderBottom="2px solid rgba(0,0,0,0.06)",s.style.paddingBottom="8px";for(let n=0;n<4;n++)s.appendChild(c({...r,type:"line",width:"70px",height:"16px"}));let t=b(3,r);e.append(s,t);break}case "calendar":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px",e.style.padding="16px",e.style.borderRadius=l||"12px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=document.createElement("div");s.style.display="flex",s.style.justifyContent="space-between",s.append(c({...r,type:"heading",width:"120px",height:"20px"}),c({...r,type:"line",width:"60px",height:"20px"}));let t=document.createElement("div");t.style.display="grid",t.style.gridTemplateColumns="repeat(7, 1fr)",t.style.gap="8px";for(let n=0;n<28;n++)t.appendChild(c({...r,type:"rect",height:"24px",radius:"4px"}));e.append(s,t);break}case "kanban":{e.style.display="grid",e.style.gridTemplateColumns="repeat(3, 1fr)",e.style.gap="14px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="10px",t.style.padding="12px",t.style.borderRadius=l||"10px",t.style.background="rgba(0,0,0,0.03)";let n=c({...r,type:"heading",width:"80px",height:"16px"});t.appendChild(n);for(let a=0;a<2;a++){let o=document.createElement("div");o.style.display="flex",o.style.flexDirection="column",o.style.gap="8px",o.style.padding="10px",o.style.borderRadius=l||"6px",o.style.background="#fff",o.style.border="1px solid rgba(0,0,0,0.06)",o.append(c({...r,type:"line",width:"85%",height:"14px"}),c({...r,type:"badge",width:"50px",height:"16px"})),t.appendChild(o);}e.appendChild(t);}break}case "timeline":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="18px",e.style.padding="10px 0";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.gap="14px";let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.alignItems="center",n.append(c({...r,type:"circle",width:"16px",height:"16px"}),c({...r,type:"rect",width:"2px",height:"40px"}));let a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="4px",a.style.flex="1",a.append(c({...r,type:"line",width:"90px",height:"12px"}),c({...r,type:"heading",width:"60%",height:"18px"}),c({...r,type:"line",width:"85%",height:"14px"})),t.append(n,a),e.appendChild(t);}break}case "map-card":{e.style.display="flex",e.style.flexDirection="column",e.style.borderRadius=l||"14px",e.style.overflow="hidden",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"rect",height:"160px",radius:"0"}),t=document.createElement("div");t.style.display="flex",t.style.justifyContent="space-between",t.style.alignItems="center",t.style.padding="14px";let n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.gap="6px",n.append(c({...r,type:"heading",width:"140px",height:"18px"}),c({...r,type:"line",width:"200px",height:"12px"}));let a=c({...r,type:"button",width:"90px",height:"34px"});t.append(n,a),e.append(s,t);break}case "pricing-card":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="24px",e.style.borderRadius=l||"16px",e.style.border="1px solid rgba(0,0,0,0.08)";let s=c({...r,type:"badge",width:"70px",height:"22px"}),t=c({...r,type:"heading",width:"130px",height:"38px"}),n=c({...r,type:"line",width:"80%",height:"14px"}),a=document.createElement("div");a.style.display="flex",a.style.flexDirection="column",a.style.gap="10px";for(let p=0;p<4;p++){let m=document.createElement("div");m.style.display="flex",m.style.alignItems="center",m.style.gap="8px",m.append(c({...r,type:"icon",width:"16px",height:"16px"}),c({...r,type:"line",width:"70%",height:"14px"})),a.appendChild(m);}let o=c({...r,type:"button",width:"100%",height:"42px"});e.append(s,t,n,a,o);break}case "testimonial":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="16px",e.style.padding="20px",e.style.borderRadius=l||"14px",e.style.border="1px solid rgba(0,0,0,0.06)";let s=b(3,r),t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="12px",t.append(c({...r,type:"circle",width:"42px",height:"42px"}),c({...r,type:"line",width:"120px",height:"16px"})),e.append(s,t);break}case "faq-accordion":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="12px";for(let s=0;s<3;s++){let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="8px",t.style.padding="14px 16px",t.style.borderRadius=l||"8px",t.style.border="1px solid rgba(0,0,0,0.06)";let n=document.createElement("div");if(n.style.display="flex",n.style.justifyContent="space-between",n.style.alignItems="center",n.append(c({...r,type:"line",width:"75%",height:"16px"}),c({...r,type:"icon",width:"16px",height:"16px"})),t.appendChild(n),s===0){let a=b(2,r);t.appendChild(a);}e.appendChild(t);}break}case "file-explorer":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.padding="12px";for(let s=0;s<5;s++){let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="10px",t.style.marginLeft=`${s%3*16}px`,t.append(c({...r,type:"icon",width:"16px",height:"16px"}),c({...r,type:"line",width:`${100+s*20}px`,height:"14px"})),e.appendChild(t);}break}case "code-block":{e.style.display="flex",e.style.flexDirection="column",e.style.gap="8px",e.style.padding="16px",e.style.borderRadius=l||"8px",e.style.background="rgba(0,0,0,0.05)";let s=["40%","70%","55%","85%","30%","60%"];for(let t of s)e.appendChild(c({...r,type:"line",width:t,height:"12px"}));break}case "e-commerce-checkout":{e.style.display="grid",e.style.gridTemplateColumns="repeat(auto-fit, minmax(280px, 1fr))",e.style.gap="20px";let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.gap="12px",s.append(c({...r,type:"heading",width:"60%",height:"22px"}),c({...r,type:"input",width:"100%",height:"40px",radius:l||"6px"}),c({...r,type:"input",width:"100%",height:"40px",radius:l||"6px"}),c({...r,type:"input",width:"100%",height:"40px",radius:l||"6px"}));let t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.gap="12px",t.style.padding="16px",t.style.borderRadius=l||"8px",t.style.background="rgba(255,255,255,0.03)",t.append(c({...r,type:"heading",width:"50%",height:"20px"}),c({...r,type:"line",width:"100%",height:"14px"}),c({...r,type:"line",width:"80%",height:"14px"}),c({...r,type:"button",width:"100%",height:"44px",radius:l||"8px"})),e.append(s,t);break}case "social-story":{e.style.display="flex",e.style.flexDirection="column",e.style.width="240px",e.style.height="380px",e.style.borderRadius=l||"16px",e.style.padding="14px",e.style.position="relative",e.style.overflow="hidden",e.style.background="rgba(255,255,255,0.05)";let s=document.createElement("div");s.style.display="flex",s.style.gap="4px",s.style.width="100%";for(let n=0;n<4;n++){let a=c({...r,type:"rect",width:"100%",height:"3px",radius:"2px"});s.appendChild(a);}let t=document.createElement("div");t.style.display="flex",t.style.alignItems="center",t.style.gap="8px",t.style.marginTop="8px",t.append(c({...r,type:"circle",width:"32px",height:"32px"}),c({...r,type:"line",width:"80px",height:"12px"})),e.append(s,t);break}case "hero-banner":{e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.textAlign="center",e.style.gap="14px",e.style.padding="40px 20px";let s=c({...r,type:"badge",width:"110px",height:"24px",radius:"9999px"}),t=c({...r,type:"heading",width:"70%",height:"36px"}),n=c({...r,type:"line",width:"50%",height:"16px"}),a=c({...r,type:"line",width:"40%",height:"16px"}),o=document.createElement("div");o.style.display="flex",o.style.gap="12px",o.style.marginTop="10px",o.append(c({...r,type:"button",width:"140px",height:"44px",radius:l||"8px"}),c({...r,type:"button",width:"120px",height:"44px",radius:l||"8px"})),e.append(s,t,n,a,o);break}}return e}function h(i){let e=react.useRef(null),d=L();return react.useEffect(()=>{if(f(d.nonce),!e.current)return;let l=U({...i,animation:i.animation||d.animation,theme:i.theme||d.theme});e.current.innerHTML="",e.current.appendChild(l);},[i,d.animation,d.theme,d.nonce]),jsxRuntime.jsx("div",{ref:e,className:`veil-preset-react-wrap ${i.className||""}`.trim()})}var mi=i=>jsxRuntime.jsx(h,{...i,name:"card"}),yi=i=>jsxRuntime.jsx(h,{...i,name:"product-card"}),ui=i=>jsxRuntime.jsx(h,{...i,name:"product-grid"}),hi=i=>jsxRuntime.jsx(h,{...i,name:"list"}),gi=i=>jsxRuntime.jsx(h,{...i,name:"list-item"}),fi=i=>jsxRuntime.jsx(h,{...i,name:"table"}),xi=i=>jsxRuntime.jsx(h,{...i,name:"profile"}),bi=i=>jsxRuntime.jsx(h,{...i,name:"feed-post"}),vi=i=>jsxRuntime.jsx(h,{...i,name:"article"}),wi=i=>jsxRuntime.jsx(h,{...i,name:"dashboard"}),ki=i=>jsxRuntime.jsx(h,{...i,name:"form"}),Ci=i=>jsxRuntime.jsx(h,{...i,name:"navbar"}),Ei=i=>jsxRuntime.jsx(h,{...i,name:"sidebar"}),Si=i=>jsxRuntime.jsx(h,{...i,name:"product-detail"}),Pi=i=>jsxRuntime.jsx(h,{...i,name:"news-feed"}),Li=i=>jsxRuntime.jsx(h,{...i,name:"inbox-list"}),Ti=i=>jsxRuntime.jsx(h,{...i,name:"notification-list"}),$i=i=>jsxRuntime.jsx(h,{...i,name:"order-list"}),Ri=i=>jsxRuntime.jsx(h,{...i,name:"kpi-card"}),Ai=i=>jsxRuntime.jsx(h,{...i,name:"chart-bar"}),Ni=i=>jsxRuntime.jsx(h,{...i,name:"chart-line"}),Mi=i=>jsxRuntime.jsx(h,{...i,name:"chart-pie"}),Di=i=>jsxRuntime.jsx(h,{...i,name:"search-results"}),Oi=i=>jsxRuntime.jsx(h,{...i,name:"video-player"}),Ii=i=>jsxRuntime.jsx(h,{...i,name:"music-player"}),Hi=i=>jsxRuntime.jsx(h,{...i,name:"stories-row"}),zi=i=>jsxRuntime.jsx(h,{...i,name:"reels"}),Vi=i=>jsxRuntime.jsx(h,{...i,name:"tabs"}),Bi=i=>jsxRuntime.jsx(h,{...i,name:"calendar"}),Yi=i=>jsxRuntime.jsx(h,{...i,name:"kanban"}),ji=i=>jsxRuntime.jsx(h,{...i,name:"timeline"}),qi=i=>jsxRuntime.jsx(h,{...i,name:"map-card"}),Xi=i=>jsxRuntime.jsx(h,{...i,name:"pricing-card"}),Fi=i=>jsxRuntime.jsx(h,{...i,name:"testimonial"}),Wi=i=>jsxRuntime.jsx(h,{...i,name:"faq-accordion"}),Gi=i=>jsxRuntime.jsx(h,{...i,name:"file-explorer"}),_i=i=>jsxRuntime.jsx(h,{...i,name:"code-block"}),Ki=i=>jsxRuntime.jsx(h,{...i,name:"e-commerce-checkout"}),Ui=i=>jsxRuntime.jsx(h,{...i,name:"social-story"}),Ji=i=>jsxRuntime.jsx(h,{...i,name:"hero-banner"});function k(i={}){f();let e=i.type||"ring",d=i.size!==void 0?typeof i.size=="number"?`${i.size}px`:i.size:"28px",l=i.color||"var(--veil-progress-color, #3b82f6)",r=i.secondaryColor||"rgba(0, 0, 0, 0.12)",s=i.speed!==void 0?typeof i.speed=="number"?`${i.speed}ms`:i.speed:void 0,t=document.createElement("div");switch(t.className=`veil-spinner veil-spinner-${e} ${i.glass?"veil-spinner-glass":""} ${i.className||""}`.trim(),t.setAttribute("role","status"),t.setAttribute("aria-label",i.label||"Loading"),t.style.width=d,t.style.height=d,t.style.display="inline-flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.position="relative",i.glass&&(t.style.borderRadius="50%",t.style.backdropFilter="blur(8px)",t.style.webkitBackdropFilter="blur(8px)",t.style.background="rgba(255, 255, 255, 0.12)",t.style.boxShadow="0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.4)",t.style.border="1px solid rgba(255, 255, 255, 0.25)"),e){case "ring":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.border=`3px solid ${r}`,n.style.borderTopColor=l,n.style.animation=`veil-spin ${s||"800ms"} linear infinite`,n.style.boxSizing="border-box",t.appendChild(n);break}case "dual-ring":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.border="3px solid transparent",n.style.borderTopColor=l,n.style.borderBottomColor=l,n.style.animation=`veil-spin ${s||"900ms"} cubic-bezier(0.5, 0, 0.5, 1) infinite`,n.style.boxSizing="border-box",t.appendChild(n);break}case "dots":{t.style.gap="4px";for(let n=0;n<3;n++){let a=document.createElement("div");a.style.width="28%",a.style.height="28%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${n*160}ms`,t.appendChild(a);}break}case "bars":{t.style.gap="3px";for(let n=0;n<4;n++){let a=document.createElement("div");a.style.width="18%",a.style.height="100%",a.style.borderRadius="2px",a.style.backgroundColor=l,a.style.animation=`veil-bar-wave ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${n*140}ms`,t.appendChild(a);}break}case "pulse":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.backgroundColor=l,n.style.animation=`veil-pulse-scale ${s||"1200ms"} ease-out infinite`,t.appendChild(n);break}case "orbit":{let n=document.createElement("div");n.style.width="30%",n.style.height="30%",n.style.borderRadius="50%",n.style.backgroundColor=l,n.style.position="absolute";let a=document.createElement("div");a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.animation=`veil-spin ${s||"1200ms"} linear infinite`;let o=document.createElement("div");o.style.width="24%",o.style.height="24%",o.style.borderRadius="50%",o.style.backgroundColor=l,o.style.position="absolute",o.style.top="0",o.style.left="38%",a.appendChild(o),t.append(n,a);break}case "wave":{t.style.gap="4px";for(let n=0;n<5;n++){let a=document.createElement("div");a.style.width="12%",a.style.height="80%",a.style.borderRadius="3px",a.style.backgroundColor=l,a.style.animation=`veil-wave-dance ${s||"1100ms"} ease-in-out infinite`,a.style.animationDelay=`${n*110}ms`,t.appendChild(a);}break}case "bounce":{let n=document.createElement("div");n.style.width="60%",n.style.height="60%",n.style.borderRadius="50%",n.style.backgroundColor=l,n.style.animation=`veil-bounce-ball ${s||"900ms"} cubic-bezier(0.28, 0.84, 0.42, 1) infinite`,t.appendChild(n);break}case "ios-activity":{for(let n=0;n<12;n++){let a=document.createElement("div");a.style.position="absolute",a.style.width="8%",a.style.height="26%",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.transformOrigin="50% 190%",a.style.transform=`rotate(${n*30}deg) translateY(-90%)`,a.style.animation=`veil-ios-fade ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(12-n)*(1e3/12)}ms`,t.appendChild(a);}break}case "glass-orb":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.background=`radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), ${l} 70%)`,n.style.boxShadow=`0 4px 12px ${l}44, inset 0 2px 4px rgba(255,255,255,0.6)`,n.style.animation=`veil-glass-orbit ${s||"1600ms"} ease-in-out infinite`,t.appendChild(n);break}case "morph":{let n=document.createElement("div");n.style.width="80%",n.style.height="80%",n.style.backgroundColor=l,n.style.animation=`veil-morph-shape ${s||"2000ms"} ease-in-out infinite`,t.appendChild(n);break}case "progress-circle":{let n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox","0 0 36 36"),n.style.width="100%",n.style.height="100%",n.style.transform="rotate(-90deg)";let a=document.createElementNS("http://www.w3.org/2000/svg","circle");a.setAttribute("cx","18"),a.setAttribute("cy","18"),a.setAttribute("r","14"),a.setAttribute("fill","none"),a.setAttribute("stroke",r),a.setAttribute("stroke-width","3");let o=document.createElementNS("http://www.w3.org/2000/svg","circle");o.setAttribute("cx","18"),o.setAttribute("cy","18"),o.setAttribute("r","14"),o.setAttribute("fill","none"),o.setAttribute("stroke",l),o.setAttribute("stroke-width","3"),o.setAttribute("stroke-dasharray","88"),o.setAttribute("stroke-dashoffset","25"),o.setAttribute("stroke-linecap","round"),o.style.animation=`veil-spin ${s||"1200ms"} linear infinite`,o.style.transformOrigin="50% 50%",n.append(a,o),t.appendChild(n);break}case "arc-gradient":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.background=`conic-gradient(from 0deg, transparent 20%, ${l} 100%)`,n.style.mask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",n.style.webkitMask="radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2.5px))",n.style.animation=`veil-spin ${s||"750ms"} linear infinite`,t.appendChild(n);break}case "pulse-ring":{for(let n=0;n<2;n++){let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.border=`2px solid ${l}`,a.style.animation=`veil-pulse-ring ${s||"1400ms"} cubic-bezier(0, 0.2, 0.8, 1) infinite`,a.style.animationDelay=`${n*700}ms`,t.appendChild(a);}break}case "dots-circle":{for(let n=0;n<8;n++){let a=document.createElement("div");a.style.position="absolute",a.style.width="20%",a.style.height="20%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.transformOrigin="50% 250%",a.style.transform=`rotate(${n*45}deg) translateY(-150%)`,a.style.animation=`veil-fade-seq ${s||"1000ms"} linear infinite`,a.style.animationDelay=`-${(8-n)*(1e3/8)}ms`,t.appendChild(a);}break}case "grid-dots":{t.style.display="grid",t.style.gridTemplateColumns="repeat(3, 1fr)",t.style.gap="3px";for(let n=0;n<3;n++)for(let a=0;a<3;a++){let o=document.createElement("div");o.style.width="100%",o.style.aspectRatio="1 / 1",o.style.borderRadius="50%",o.style.backgroundColor=l,o.style.animation=`veil-dot-bounce ${s||"1200ms"} ease-in-out infinite`,o.style.animationDelay=`${(n+a)*110}ms`,t.appendChild(o);}break}case "square-flip":{let n=document.createElement("div");n.style.width="60%",n.style.height="60%",n.style.backgroundColor=l,n.style.borderRadius="4px",n.style.animation=`veil-square-flip ${s||"1200ms"} ease-in-out infinite`,t.appendChild(n);break}case "cube-fold":{t.style.display="grid",t.style.gridTemplateColumns="repeat(2, 1fr)",t.style.gap="2px";for(let n=0;n<4;n++){let a=document.createElement("div");a.style.width="100%",a.style.aspectRatio="1 / 1",a.style.backgroundColor=l,a.style.borderRadius="2px",a.style.animation=`veil-cube-fold ${s||"1400ms"} ease-in-out infinite`,a.style.animationDelay=`${n*175}ms`,t.appendChild(a);}break}case "hourglass":{let n=document.createElement("div");n.style.width="65%",n.style.height="65%",n.style.border=`3px solid ${l}`,n.style.borderLeftColor="transparent",n.style.borderRightColor="transparent",n.style.borderRadius="50%",n.style.animation=`veil-hourglass ${s||"1200ms"} cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite`,t.appendChild(n);break}case "infinity":{let n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox","0 0 48 24"),n.style.width="100%",n.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M12,12 C4,12 4,4 12,4 C20,4 28,20 36,20 C44,20 44,12 36,12 C28,12 20,4 12,4"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","3"),a.setAttribute("stroke-dasharray","80"),a.setAttribute("stroke-dashoffset","0"),a.setAttribute("stroke-linecap","round"),a.style.animation=`veil-dash ${s||"1400ms"} linear infinite`,n.appendChild(a),t.appendChild(n);break}case "heartbeat-line":{let n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox","0 0 50 24"),n.style.width="100%",n.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M0,12 L14,12 L18,3 L24,21 L28,9 L32,15 L36,12 L50,12"),a.setAttribute("fill","none"),a.setAttribute("stroke",l),a.setAttribute("stroke-width","2.5"),a.setAttribute("stroke-dasharray","60"),a.setAttribute("stroke-dashoffset","60"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.style.animation=`veil-ecg ${s||"1200ms"} ease-in-out infinite`,n.appendChild(a),t.appendChild(n);break}case "equalizer":{t.style.gap="3px";let n=[0,200,100,300];for(let a=0;a<4;a++){let o=document.createElement("div");o.style.width="18%",o.style.height="100%",o.style.borderRadius="2px",o.style.backgroundColor=l,o.style.animation=`veil-eq-bounce ${s||"800ms"} ease-in-out infinite alternate`,o.style.animationDelay=`${n[a]}ms`,t.appendChild(o);}break}case "chasing-dots":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="relative",n.style.animation=`veil-spin ${s||"1800ms"} linear infinite`;for(let a=0;a<2;a++){let o=document.createElement("div");o.style.position="absolute",o.style.width="45%",o.style.height="45%",o.style.borderRadius="50%",o.style.backgroundColor=l,o.style.animation=`veil-chase ${s||"1800ms"} ease-in-out infinite`,a===0?(o.style.top="0",o.style.left="0"):(o.style.bottom="0",o.style.right="0",o.style.animationDelay="-900ms"),n.appendChild(o);}t.appendChild(n);break}case "typing":{t.style.gap="4px";for(let n=0;n<3;n++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-typing ${s||"1000ms"} ease-in-out infinite`,a.style.animationDelay=`${n*150}ms`,t.appendChild(a);}break}case "liquid-fill":{let n=document.createElement("div");n.style.width="85%",n.style.height="85%",n.style.borderRadius="50%",n.style.border=`2px solid ${l}`,n.style.position="relative",n.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.backgroundColor=l,a.style.opacity="0.7",a.style.borderRadius="40%",a.style.animation=`veil-liquid-spin ${s||"2000ms"} linear infinite`,n.appendChild(a),t.appendChild(n);break}case "atom":{let n=document.createElement("div");n.style.width="24%",n.style.height="24%",n.style.borderRadius="50%",n.style.backgroundColor=l,n.style.position="absolute",t.appendChild(n);let a=[0,60,120];for(let o of a){let p=document.createElement("div");p.style.position="absolute",p.style.width="100%",p.style.height="45%",p.style.borderRadius="50%",p.style.border=`1.5px solid ${l}`,p.style.transform=`rotate(${o}deg)`,p.style.animation=`veil-atom-spin ${s||"1600ms"} linear infinite`,t.appendChild(p);}break}case "clock":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.border=`2.5px solid ${l}`,n.style.position="relative";let a=document.createElement("div");a.style.width="14%",a.style.height="14%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.position="absolute",a.style.top="43%",a.style.left="43%";let o=document.createElement("div");o.style.position="absolute",o.style.width="2px",o.style.height="30%",o.style.backgroundColor=l,o.style.top="20%",o.style.left="calc(50% - 1px)",o.style.transformOrigin="bottom center",o.style.animation=`veil-spin ${s||"3000ms"} linear infinite`;let p=document.createElement("div");p.style.position="absolute",p.style.width="2px",p.style.height="42%",p.style.backgroundColor=l,p.style.top="8%",p.style.left="calc(50% - 1px)",p.style.transformOrigin="bottom center",p.style.animation=`veil-spin ${s||"1000ms"} linear infinite`,n.append(a,o,p),t.appendChild(n);break}case "radar":{let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.borderRadius="50%",n.style.border=`1.5px solid ${l}`,n.style.position="relative",n.style.overflow="hidden";let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.borderRadius="50%",a.style.background=`conic-gradient(from 0deg, transparent 60%, ${l} 100%)`,a.style.opacity="0.6",a.style.animation=`veil-spin ${s||"1500ms"} linear infinite`,n.appendChild(a),t.appendChild(n);break}case "ellipsis":{t.style.gap="3px";for(let n=0;n<3;n++){let a=document.createElement("div");a.style.width="24%",a.style.height="24%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.animation=`veil-ellipsis ${s||"1200ms"} ease-in-out infinite`,a.style.animationDelay=`${n*200}ms`,t.appendChild(a);}break}case "flower":{for(let n=0;n<6;n++){let a=document.createElement("div");a.style.position="absolute",a.style.width="28%",a.style.height="48%",a.style.borderRadius="50%",a.style.backgroundColor=l,a.style.opacity="0.85",a.style.transformOrigin="50% 100%",a.style.top="2%",a.style.transform=`rotate(${n*60}deg)`,a.style.animation=`veil-flower-bloom ${s||"1600ms"} ease-in-out infinite`,a.style.animationDelay=`${n*120}ms`,t.appendChild(a);}break}}return Ge(),t}var xe=false;function Ge(){if(xe||typeof document>"u")return;xe=true;let i=document.createElement("style");i.id="veilkit-spinner-keyframes",i.textContent=`
|
|
512
512
|
@keyframes veil-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
|
|
513
513
|
@keyframes veil-dot-bounce { 0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
|
|
514
514
|
@keyframes veil-bar-wave { 0%, 100% { transform: scaleY(0.3); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }
|
|
@@ -580,7 +580,7 @@ ${ee()}
|
|
|
580
580
|
0%, 100% { transform: scale(0.7); opacity: 0.5; }
|
|
581
581
|
50% { transform: scale(1); opacity: 1; }
|
|
582
582
|
}
|
|
583
|
-
`,document.head.appendChild(t);}function Ui(t){let e=react.useRef(null);return react.useEffect(()=>{if(g(),!e.current)return;let o=k(t);e.current.innerHTML="",e.current.appendChild(o);},[t.type,t.size,t.color,t.secondaryColor,t.speed,t.label,t.glass]),jsxRuntime.jsx("div",{ref:e,className:`veil-spinner-wrap ${t.className||""}`.trim(),style:{display:"inline-flex",...t.style}})}function nn(t){let e=react.useRef(null);return react.useEffect(()=>{if(g(),!e.current)return;let o=ce(t);e.current.innerHTML="",e.current.appendChild(o);},[t.value,t.max,t.height,t.color,t.trackColor,t.circular,t.size,t.showPercentage]),jsxRuntime.jsx("div",{ref:e,className:`veil-progress-react ${t.className||""}`.trim()})}function an({color:t="#3b82f6"}){return react.useEffect(()=>{if(typeof window>"u")return;document.documentElement.style.setProperty("--veil-progress-color",t);let e=()=>{w.start();},o=()=>{w.start(),setTimeout(()=>w.done(),300);};return window.addEventListener("beforeunload",e),window.addEventListener("popstate",o),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("popstate",o);}},[t]),null}var A=new Map,J="",Z=class{show(e,o={}){g();let l,r=!e;if(r?l=document.body:typeof e=="string"?(l=document.querySelector(e),l||(l=document.body)):l=e,A.has(l))return A.get(l);let s=document.createElement("div");if(s.className=`veil-overlay ${r?"veil-overlay-fullscreen":""} ${o.className||""}`.trim(),s.setAttribute("role","status"),o.color&&s.style.setProperty("--veil-overlay-bg",o.color),o.blur!==void 0){let n=typeof o.blur=="boolean"?o.blur?"8px":"0px":o.blur;s.style.setProperty("--veil-overlay-blur",n);}if(o.zIndex!==void 0&&(s.style.zIndex=String(o.zIndex)),o.spinner!==false){let n=typeof o.spinner=="string"?o.spinner:"ring",i=k({type:n,size:36});s.appendChild(i);}if(o.message){let n=document.createElement("span");n.className="veil-overlay-message",n.style.fontSize="14px",n.style.fontWeight="500",n.style.color="var(--veil-contrast, #1f2937)",n.textContent=o.message,s.appendChild(n);}return r||window.getComputedStyle(l).position==="static"&&(l.style.position="relative"),le(l,o.message),o.lockScroll&&r&&typeof document<"u"&&(J=document.body.style.overflow,document.body.style.overflow="hidden"),l.appendChild(s),A.set(l,s),s}hide(e){let o,l=!e;l?o=document.body:typeof e=="string"?(o=document.querySelector(e),o||(o=document.body)):o=e;let r=A.get(o);r&&(r.style.opacity="0",setTimeout(()=>{r.remove(),A.delete(o),oe(o),l&&J!==void 0&&(document.body.style.overflow=J);},200));}},Y=new Z;function un({visible:t=false,blur:e=true,opacity:o,color:l,spinner:r=true,message:s,lockScroll:n=false,className:i="",zIndex:a,children:d}){let p=react.useRef(null);return react.useEffect(()=>{if(!p.current)return;let m=p.current;return t?Y.show(m,{blur:e,opacity:o,color:l,spinner:r,message:s,lockScroll:n,className:i,zIndex:a}):Y.hide(m),()=>{Y.hide(m);}},[t,e,o,l,r,s,n,i,a]),jsxRuntime.jsx("div",{ref:p,className:"veil-overlay-target",style:{position:"relative",width:"100%",height:"100%"},children:d})}function ke(t,e={}){g(),nt();let o=e.status||(e.loading?"loading":"idle"),l="",r="",s=t.innerHTML,n=null,i=e.pressFeedback||"press-scale";tt(t,i);function a(){n&&(clearTimeout(n),n=null);}function d(m,y){a();let v=o;if(o=m,e.onStatusChange&&v!==m&&e.onStatusChange(m),m==="idle"){t.classList.remove("veil-btn-loading","veil-btn-success","veil-btn-error","veil-btn-shake","veil-btn-morph"),t.removeAttribute("aria-disabled"),t.removeAttribute("aria-busy"),t.style.width=l,t.style.height=r,t.innerHTML=s;return}if(v==="idle"){let f=t.getBoundingClientRect();l=t.style.width,r=t.style.height,s=t.innerHTML,f.width>0&&(t.style.width=`${f.width}px`),f.height>0&&(t.style.height=`${f.height}px`);}if(m==="loading"){t.classList.add("veil-btn-loading"),t.classList.remove("veil-btn-success","veil-btn-error"),t.setAttribute("aria-disabled","true"),t.setAttribute("aria-busy","true");let f=e.styleType||(e.spinnerPlacement==="replace"?"spinner-replace":e.spinnerPlacement==="end"?"spinner-right":"spinner-left");it(t,f,e,y||e.loadingText);}else if(m==="success"){t.classList.remove("veil-btn-loading","veil-btn-error"),t.classList.add("veil-btn-success"),t.setAttribute("aria-busy","false"),xe(t,"success",y||e.successText||"Success",e.resultAnimation);let f=e.resetAfter!==void 0?e.resetAfter:2e3;f>0&&(n=setTimeout(()=>d("idle"),f));}else if(m==="error"){t.classList.remove("veil-btn-loading","veil-btn-success"),t.classList.add("veil-btn-error"),t.setAttribute("aria-busy","false"),xe(t,"error",y||e.errorText||"Failed",e.resultAnimation);let f=e.resetAfter!==void 0?e.resetAfter:2e3;f>0&&(n=setTimeout(()=>d("idle"),f));}}let p=async m=>{if(o!=="idle"){m.preventDefault(),m.stopPropagation();return}if(e.onClick)try{let y=e.onClick(m);y&&typeof y.then=="function"&&(d("loading"),await y,d("success"));}catch{d("error");}};return t.addEventListener("click",p),e.status?d(e.status):e.loading&&d("loading",e.loadingText),{setStatus:d,setLoading:(m,y)=>d(m?"loading":"idle",y),getStatus:()=>o,destroy:()=>{a(),t.removeEventListener("click",p),d("idle");}}}function tt(t,e){if(e!=="none")if(e==="press-scale"){t.style.transition="transform 100ms ease, box-shadow 150ms ease",t.addEventListener("mousedown",()=>{t.style.transform="scale(0.97)";});let o=()=>{t.style.transform="scale(1)";};t.addEventListener("mouseup",o),t.addEventListener("mouseleave",o);}else e==="ripple"?(t.style.position="relative",t.style.overflow="hidden",t.addEventListener("click",o=>{let l=t.getBoundingClientRect(),r=document.createElement("span"),s=Math.max(l.width,l.height),n=s/2;r.style.width=r.style.height=`${s}px`,r.style.left=`${o.clientX-l.left-n}px`,r.style.top=`${o.clientY-l.top-n}px`,r.className="veil-btn-ripple";let i=t.querySelector(".veil-btn-ripple");i&&i.remove(),t.appendChild(r);})):e==="glow-follow"&&t.addEventListener("mousemove",o=>{let l=t.getBoundingClientRect(),r=o.clientX-l.left,s=o.clientY-l.top;t.style.setProperty("--veil-mouse-x",`${r}px`),t.style.setProperty("--veil-mouse-y",`${s}px`);});}function it(t,e,o,l){let r=o.spinner||"ring",s=l||t.textContent?.trim()||"";switch(t.innerHTML="",e){case "spinner-left":{let n=k({type:r,size:16,color:"currentColor"});n.classList.add("veil-btn-spinner-wrap");let i=document.createElement("span");i.textContent=s,t.append(n,i);break}case "spinner-right":{let n=document.createElement("span");n.textContent=s;let i=k({type:r,size:16,color:"currentColor"});i.classList.add("veil-btn-spinner-wrap"),i.style.marginLeft="8px",i.style.marginRight="0",t.append(n,i);break}case "spinner-replace":{let n=k({type:r,size:20,color:"currentColor"});t.appendChild(n);break}case "dots-after-text":{let n=document.createElement("span");n.textContent=s;let i=document.createElement("span");i.className="veil-btn-typing-dots",i.textContent="...",t.append(n,i);break}case "progress-fill":{let n=document.createElement("div");n.className="veil-btn-progress-bar";let i=o.progress!==void 0?o.progress:60;n.style.width=`${i}%`;let a=document.createElement("span");a.style.position="relative",a.style.zIndex="2",a.textContent=s,t.append(n,a);break}case "shimmer-surface":{let n=document.createElement("span");n.textContent=s,n.style.position="relative",n.style.zIndex="2";let i=document.createElement("div");i.className="veil-btn-shimmer",t.append(n,i);break}case "pulse-glow":{t.classList.add("veil-btn-pulse-glow");let n=document.createElement("span");n.textContent=s,t.appendChild(n);break}case "stripes-progress":{let n=document.createElement("div");n.className="veil-btn-stripes";let i=document.createElement("span");i.style.position="relative",i.style.zIndex="2",i.textContent=s,t.append(n,i);break}case "morph-circle":{t.classList.add("veil-btn-morph");let n=k({type:r,size:20,color:"currentColor"});t.appendChild(n);break}case "slide-text":{let n=document.createElement("span");n.className="veil-btn-slide-wrap";let i=document.createElement("span");i.className="veil-btn-slide-out",i.textContent=s;let a=document.createElement("span");a.className="veil-btn-slide-in",a.textContent=l||"Loading\u2026",n.append(i,a),t.appendChild(n);break}case "border-trace":{let n=document.createElement("span");n.textContent=s,n.style.position="relative",n.style.zIndex="2";let i=document.createElement("div");i.className="veil-btn-border-trace",t.append(n,i);break}case "liquid-fill":{let n=document.createElement("div");n.className="veil-btn-liquid";let i=document.createElement("span");i.style.position="relative",i.style.zIndex="2",i.textContent=s,t.append(n,i);break}case "bounce-dots":{let n=k({type:"dots",size:22,color:"currentColor"}),i=document.createElement("span");i.textContent=s?` ${s}`:"",t.append(n,i);break}case "glass-shine":{t.classList.add("veil-btn-glass-shine");let n=document.createElement("span");n.textContent=s,t.appendChild(n);break}case "neon-pulse":{t.classList.add("veil-btn-neon-pulse");let n=document.createElement("span");n.textContent=s,t.appendChild(n);break}case "skeleton-button":{let n=document.createElement("div");n.className="veil-skeleton",n.setAttribute("data-veil-shape","button"),n.setAttribute("data-veil-anim","shimmer"),n.style.width="100%",n.style.height="100%",t.appendChild(n);break}}}function xe(t,e,o,l="checkmark"){if(t.innerHTML="",t.style.display="inline-flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.gap="8px",e==="error"&&(l==="shake"||l==="cross"||l==="none")&&t.classList.add("veil-btn-shake"),e==="success"&&l==="success-burst"){let i=document.createElement("div");i.className="veil-btn-burst",t.appendChild(i);}let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 24 24"),r.style.width="18px",r.style.height="18px",r.style.stroke="currentColor",r.style.strokeWidth="2.5",r.style.fill="none",r.style.strokeLinecap="round",r.style.strokeLinejoin="round";let s=document.createElementNS("http://www.w3.org/2000/svg","path");e==="success"?s.setAttribute("d","M5 13l4 4L19 7"):s.setAttribute("d","M6 18L18 6M6 6l12 12"),s.style.strokeDasharray="30",s.style.strokeDashoffset="30",s.style.animation="veil-draw 300ms ease forwards",r.appendChild(s);let n=document.createElement("span");n.textContent=o,t.append(r,n);}var we=false;function nt(){if(we||typeof document>"u")return;we=true;let t=document.createElement("style");t.id="veilkit-button-styles",t.textContent=`
|
|
583
|
+
`,document.head.appendChild(i);}function rn(i){let e=react.useRef(null);return react.useEffect(()=>{if(f(),!e.current)return;let d=k(i);e.current.innerHTML="",e.current.appendChild(d);},[i.type,i.size,i.color,i.secondaryColor,i.speed,i.label,i.glass]),jsxRuntime.jsx("div",{ref:e,className:`veil-spinner-wrap ${i.className||""}`.trim(),style:{display:"inline-flex",...i.style}})}function mn(i){let e=react.useRef(null);return react.useEffect(()=>{if(f(),!e.current)return;let d=ce(i);e.current.innerHTML="",e.current.appendChild(d);},[i.value,i.max,i.height,i.color,i.trackColor,i.circular,i.size,i.showPercentage]),jsxRuntime.jsx("div",{ref:e,className:`veil-progress-react ${i.className||""}`.trim()})}function yn({color:i="#3b82f6"}){return react.useEffect(()=>{if(typeof window>"u")return;document.documentElement.style.setProperty("--veil-progress-color",i);let e=()=>{w.start();},d=()=>{w.start(),setTimeout(()=>w.done(),300);};return window.addEventListener("beforeunload",e),window.addEventListener("popstate",d),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("popstate",d);}},[i]),null}var N=new Map,J="",Z=class{show(e,d={}){f();let l,r=!e;if(r?l=document.body:typeof e=="string"?(l=document.querySelector(e),l||(l=document.body)):l=e,N.has(l))return N.get(l);let s=document.createElement("div");if(s.className=`veil-overlay ${r?"veil-overlay-fullscreen":""} ${d.className||""}`.trim(),s.setAttribute("role","status"),d.color&&s.style.setProperty("--veil-overlay-bg",d.color),d.blur!==void 0){let t=typeof d.blur=="boolean"?d.blur?"8px":"0px":d.blur;s.style.setProperty("--veil-overlay-blur",t);}if(d.zIndex!==void 0&&(s.style.zIndex=String(d.zIndex)),d.spinner!==false){let t=typeof d.spinner=="string"?d.spinner:"ring",n=k({type:t,size:36});s.appendChild(n);}if(d.message){let t=document.createElement("span");t.className="veil-overlay-message",t.style.fontSize="14px",t.style.fontWeight="500",t.style.color="var(--veil-contrast, #1f2937)",t.textContent=d.message,s.appendChild(t);}return r||window.getComputedStyle(l).position==="static"&&(l.style.position="relative"),le(l,d.message),d.lockScroll&&r&&typeof document<"u"&&(J=document.body.style.overflow,document.body.style.overflow="hidden"),l.appendChild(s),N.set(l,s),s}hide(e){let d,l=!e;l?d=document.body:typeof e=="string"?(d=document.querySelector(e),d||(d=document.body)):d=e;let r=N.get(d);r&&(r.style.opacity="0",setTimeout(()=>{r.remove(),N.delete(d),oe(d),l&&J!==void 0&&(document.body.style.overflow=J);},200));}},Y=new Z;function Cn({visible:i=false,blur:e=true,opacity:d,color:l,spinner:r=true,message:s,lockScroll:t=false,className:n="",zIndex:a,children:o}){let p=react.useRef(null);return react.useEffect(()=>{if(!p.current)return;let m=p.current;return i?Y.show(m,{blur:e,opacity:d,color:l,spinner:r,message:s,lockScroll:t,className:n,zIndex:a}):Y.hide(m),()=>{Y.hide(m);}},[i,e,d,l,r,s,t,n,a]),jsxRuntime.jsx("div",{ref:p,className:"veil-overlay-target",style:{position:"relative",width:"100%",height:"100%"},children:o})}function ke(i,e={}){f(),at();let d=e.status||(e.loading?"loading":"idle"),l="",r="",s=i.innerHTML,t=null,n=e.pressFeedback||"press-scale";it(i,n);function a(){t&&(clearTimeout(t),t=null);}function o(m,y){a();let x=d;if(d=m,e.onStatusChange&&x!==m&&e.onStatusChange(m),m==="idle"){i.classList.remove("veil-btn-loading","veil-btn-success","veil-btn-error","veil-btn-shake","veil-btn-morph"),i.removeAttribute("aria-disabled"),i.removeAttribute("aria-busy"),i.style.width=l,i.style.height=r,i.innerHTML=s;return}if(x==="idle"){let g=i.getBoundingClientRect();l=i.style.width,r=i.style.height,s=i.innerHTML,g.width>0&&(i.style.width=`${g.width}px`),g.height>0&&(i.style.height=`${g.height}px`);}if(m==="loading"){i.classList.add("veil-btn-loading"),i.classList.remove("veil-btn-success","veil-btn-error"),i.setAttribute("aria-disabled","true"),i.setAttribute("aria-busy","true");let g=e.styleType||(e.spinnerPlacement==="replace"?"spinner-replace":e.spinnerPlacement==="end"?"spinner-right":"spinner-left");nt(i,g,e,y||e.loadingText);}else if(m==="success"){i.classList.remove("veil-btn-loading","veil-btn-error"),i.classList.add("veil-btn-success"),i.setAttribute("aria-busy","false"),ve(i,"success",y||e.successText||"Success",e.resultAnimation);let g=e.resetAfter!==void 0?e.resetAfter:2e3;g>0&&(t=setTimeout(()=>o("idle"),g));}else if(m==="error"){i.classList.remove("veil-btn-loading","veil-btn-success"),i.classList.add("veil-btn-error"),i.setAttribute("aria-busy","false"),ve(i,"error",y||e.errorText||"Failed",e.resultAnimation);let g=e.resetAfter!==void 0?e.resetAfter:2e3;g>0&&(t=setTimeout(()=>o("idle"),g));}}let p=async m=>{if(d!=="idle"){m.preventDefault(),m.stopPropagation();return}if(e.onClick)try{let y=e.onClick(m);y&&typeof y.then=="function"&&(o("loading"),await y,o("success"));}catch{o("error");}};return i.addEventListener("click",p),e.status?o(e.status):e.loading&&o("loading",e.loadingText),{setStatus:o,setLoading:(m,y)=>o(m?"loading":"idle",y),getStatus:()=>d,destroy:()=>{a(),i.removeEventListener("click",p),o("idle");}}}function it(i,e){if(e!=="none")if(e==="press-scale"){i.style.transition="transform 100ms ease, box-shadow 150ms ease",i.addEventListener("mousedown",()=>{i.style.transform="scale(0.97)";});let d=()=>{i.style.transform="scale(1)";};i.addEventListener("mouseup",d),i.addEventListener("mouseleave",d);}else e==="ripple"?(i.style.position="relative",i.style.overflow="hidden",i.addEventListener("click",d=>{let l=i.getBoundingClientRect(),r=document.createElement("span"),s=Math.max(l.width,l.height),t=s/2;r.style.width=r.style.height=`${s}px`,r.style.left=`${d.clientX-l.left-t}px`,r.style.top=`${d.clientY-l.top-t}px`,r.className="veil-btn-ripple";let n=i.querySelector(".veil-btn-ripple");n&&n.remove(),i.appendChild(r);})):e==="glow-follow"&&i.addEventListener("mousemove",d=>{let l=i.getBoundingClientRect(),r=d.clientX-l.left,s=d.clientY-l.top;i.style.setProperty("--veil-mouse-x",`${r}px`),i.style.setProperty("--veil-mouse-y",`${s}px`);});}function nt(i,e,d,l){let r=d.spinner||"ring",s=l||i.textContent?.trim()||"";switch(i.innerHTML="",e){case "spinner-left":{let t=k({type:r,size:16,color:"currentColor"});t.classList.add("veil-btn-spinner-wrap");let n=document.createElement("span");n.textContent=s,i.append(t,n);break}case "spinner-right":{let t=document.createElement("span");t.textContent=s;let n=k({type:r,size:16,color:"currentColor"});n.classList.add("veil-btn-spinner-wrap"),n.style.marginLeft="8px",n.style.marginRight="0",i.append(t,n);break}case "spinner-replace":{let t=k({type:r,size:20,color:"currentColor"});i.appendChild(t);break}case "dots-after-text":{let t=document.createElement("span");t.textContent=s;let n=document.createElement("span");n.className="veil-btn-typing-dots",n.textContent="...",i.append(t,n);break}case "progress-fill":{let t=document.createElement("div");t.className="veil-btn-progress-bar";let n=d.progress!==void 0?d.progress:60;t.style.width=`${n}%`;let a=document.createElement("span");a.style.position="relative",a.style.zIndex="2",a.textContent=s,i.append(t,a);break}case "shimmer-surface":{let t=document.createElement("span");t.textContent=s,t.style.position="relative",t.style.zIndex="2";let n=document.createElement("div");n.className="veil-btn-shimmer",i.append(t,n);break}case "pulse-glow":{i.classList.add("veil-btn-pulse-glow");let t=document.createElement("span");t.textContent=s,i.appendChild(t);break}case "stripes-progress":{let t=document.createElement("div");t.className="veil-btn-stripes";let n=document.createElement("span");n.style.position="relative",n.style.zIndex="2",n.textContent=s,i.append(t,n);break}case "morph-circle":{i.classList.add("veil-btn-morph");let t=k({type:r,size:20,color:"currentColor"});i.appendChild(t);break}case "slide-text":{let t=document.createElement("span");t.className="veil-btn-slide-wrap";let n=document.createElement("span");n.className="veil-btn-slide-out",n.textContent=s;let a=document.createElement("span");a.className="veil-btn-slide-in",a.textContent=l||"Loading\u2026",t.append(n,a),i.appendChild(t);break}case "border-trace":{let t=document.createElement("span");t.textContent=s,t.style.position="relative",t.style.zIndex="2";let n=document.createElement("div");n.className="veil-btn-border-trace",i.append(t,n);break}case "liquid-fill":{let t=document.createElement("div");t.className="veil-btn-liquid";let n=document.createElement("span");n.style.position="relative",n.style.zIndex="2",n.textContent=s,i.append(t,n);break}case "bounce-dots":{let t=k({type:"dots",size:22,color:"currentColor"}),n=document.createElement("span");n.textContent=s?` ${s}`:"",i.append(t,n);break}case "glass-shine":{i.classList.add("veil-btn-glass-shine");let t=document.createElement("span");t.textContent=s,i.appendChild(t);break}case "neon-pulse":{i.classList.add("veil-btn-neon-pulse");let t=document.createElement("span");t.textContent=s,i.appendChild(t);break}case "skeleton-button":{let t=document.createElement("div");t.className="veil-skeleton",t.setAttribute("data-veil-shape","button"),t.setAttribute("data-veil-anim","shimmer"),t.style.width="100%",t.style.height="100%",i.appendChild(t);break}}}function ve(i,e,d,l="checkmark"){if(i.innerHTML="",i.style.display="inline-flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.gap="8px",e==="error"&&(l==="shake"||l==="cross"||l==="none")&&i.classList.add("veil-btn-shake"),e==="success"&&l==="success-burst"){let n=document.createElement("div");n.className="veil-btn-burst",i.appendChild(n);}let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox","0 0 24 24"),r.style.width="18px",r.style.height="18px",r.style.stroke="currentColor",r.style.strokeWidth="2.5",r.style.fill="none",r.style.strokeLinecap="round",r.style.strokeLinejoin="round";let s=document.createElementNS("http://www.w3.org/2000/svg","path");e==="success"?s.setAttribute("d","M5 13l4 4L19 7"):s.setAttribute("d","M6 18L18 6M6 6l12 12"),s.style.strokeDasharray="30",s.style.strokeDashoffset="30",s.style.animation="veil-draw 300ms ease forwards",r.appendChild(s);let t=document.createElement("span");t.textContent=d,i.append(r,t);}var we=false;function at(){if(we||typeof document>"u")return;we=true;let i=document.createElement("style");i.id="veilkit-button-styles",i.textContent=`
|
|
584
584
|
.veil-btn-loading { position: relative; cursor: wait !important; pointer-events: none; }
|
|
585
585
|
.veil-btn-success { background-color: #10b981 !important; color: #fff !important; }
|
|
586
586
|
.veil-btn-error { background-color: #ef4444 !important; color: #fff !important; }
|
|
@@ -656,5 +656,5 @@ ${ee()}
|
|
|
656
656
|
@keyframes veil-liquid-wave { from { transform: scaleY(0.7); } to { transform: scaleY(1); } }
|
|
657
657
|
@keyframes veil-burst { 0% { opacity: 1; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.2); } }
|
|
658
658
|
@keyframes veil-typing-text { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
|
|
659
|
-
`,document.head.appendChild(
|
|
659
|
+
`,document.head.appendChild(i);}function Mn({status:i,loading:e=false,styleType:d="spinner-left",spinner:l="ring",spinnerPlacement:r="start",loadingText:s,successText:t,errorText:n,resetAfter:a=2e3,progress:o,pressFeedback:p="press-scale",resultAnimation:m="checkmark",haptics:y,disabled:x,children:g,className:v="",onStatusChange:T,onClick:P,...M}){let S=react.useRef(null),C=react.useRef(null);return react.useEffect(()=>{if(S.current)return C.current?i!==void 0?C.current.setStatus(i):C.current.setLoading(e,s):C.current=ke(S.current,{status:i,loading:e,styleType:d,spinner:l,spinnerPlacement:r,loadingText:s,successText:t,errorText:n,resetAfter:a,progress:o,pressFeedback:p,resultAnimation:m,haptics:y,onStatusChange:T,onClick:P}),()=>{C.current&&(C.current.destroy(),C.current=null);}},[i,e,d,l,r,s,t,n,a,o,p,m]),jsxRuntime.jsx("button",{ref:S,className:`veil-button ${v}`.trim(),disabled:x||e||i==="loading",...M,children:g})}function Ee(i){f();let e=document.createElement("div");if(e.className=`veil-lazy-img-wrap ${i.className||""}`.trim(),e.style.position="relative",e.style.display="inline-block",e.style.overflow="hidden",i.width&&(e.style.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(e.style.height=typeof i.height=="number"?`${i.height}px`:i.height),i.aspectRatio&&(e.style.aspectRatio=String(i.aspectRatio)),i.radius){let r=typeof i.radius=="number"?`${i.radius}px`:i.radius;e.style.borderRadius=r;}let d=c({animation:i.animation||"shimmer",theme:i.theme,width:"100%",height:"100%",radius:i.radius});d.style.position="absolute",d.style.inset="0",e.appendChild(d);let l=document.createElement("img");return l.alt=i.alt||"",l.className="veil-lazy-img veil-lazy-img-loading",l.style.width="100%",l.style.height="100%",l.style.objectFit="cover",l.style.display="block",l.onload=()=>{l.classList.remove("veil-lazy-img-loading"),l.classList.add("veil-lazy-img-loaded"),d.style.opacity="0",setTimeout(()=>{d.remove();},350),i.onLoad&&i.onLoad();},l.onerror=r=>{i.fallbackSrc&&l.src!==i.fallbackSrc?l.src=i.fallbackSrc:(d.remove(),e.style.backgroundColor="#fee2e2",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.textContent="\u26A0\uFE0F Image failed to load"),i.onError&&i.onError(r);},l.src=i.src,e.appendChild(l),e}function Yn(i){let e=react.useRef(null);return react.useEffect(()=>{if(!e.current)return;let d=Ee(i);e.current.innerHTML="",e.current.appendChild(d);},[i.src,i.alt,i.width,i.height,i.radius,i.aspectRatio]),jsxRuntime.jsx("div",{ref:e,className:`veil-lazy-image-host ${i.className||""}`.trim()})}function Se(i){f();let e=document.createElement("div");e.className=`veil-custom-skeleton ${i.className||""}`.trim(),e.setAttribute("role","status"),e.setAttribute("aria-busy","true"),e.setAttribute("aria-label","Loading content"),i.theme&&typeof i.theme=="string"&&e.setAttribute("data-veil-theme",i.theme),e.style.display="flex",e.style.flexDirection="column",e.style.gap=typeof i.gap=="number"?`${i.gap}px`:i.gap||"12px",e.style.width="100%",i.style&&Object.assign(e.style,i.style);let d={animation:i.animation||"shimmer",theme:i.theme,direction:i.direction},l=i.shape==="pill"?"9999px":i.shape==="square"?"4px":i.shape==="sharp"?"0px":void 0;function r(t){let n=t.count||1,a=t.radius?typeof t.radius=="number"?`${t.radius}px`:t.radius:l;if(t.type==="row"||t.type==="col"||t.type==="card"){let o=document.createElement("div");if(o.className=`veil-layout-${t.type} ${t.className||""}`.trim(),o.style.display="flex",o.style.flexDirection=t.type==="row"?"row":"column",o.style.gap=typeof t.gap=="number"?`${t.gap}px`:t.gap||"12px",o.style.width=t.width?typeof t.width=="number"?`${t.width}px`:t.width:"100%",t.height&&(o.style.height=typeof t.height=="number"?`${t.height}px`:t.height),t.align==="center"?o.style.alignItems="center":t.align==="end"?o.style.alignItems="flex-end":t.align==="between"&&(o.style.justifyContent="space-between"),t.type==="card"&&(o.style.padding="16px",o.style.borderRadius=a||"12px",o.style.background="var(--veil-card-bg, rgba(255, 255, 255, 0.03))",o.style.border="1px solid var(--veil-card-border, rgba(255, 255, 255, 0.08))"),t.style&&Object.assign(o.style,t.style),t.children)for(let p of t.children)o.appendChild(r(p));return o}if(n>1){let o=document.createElement("div");o.style.display="flex",o.style.flexDirection="column",o.style.gap=typeof t.gap=="number"?`${t.gap}px`:t.gap||"8px",o.style.width="100%";for(let p=0;p<n;p++){let m=s(t,a);o.appendChild(m);}return o}return s(t,a)}function s(t,n){let a="rect",o=t.width,p=t.height,m=n;switch(t.type){case "avatar":a="circle",o=o||44,p=p||44,m="50%";break;case "heading":a="heading",o=o||"70%",p=p||24,m=m||"6px";break;case "line":a="line",o=o||"100%",p=p||14,m=m||"4px";break;case "button":a="button",o=o||120,p=p||40,m=m||"8px";break;case "badge":a="badge",o=o||64,p=p||22,m=m||"9999px";break;default:a="rect",o=o||"100%",p=p||160,m=m||"8px";break}return c({...d,type:a,width:o,height:p,radius:m,style:t.style,className:t.className})}for(let t of i.nodes)e.appendChild(r(t));return e}function Jn({config:i,className:e="",style:d}){let l=react.useRef(null),r=L();return react.useEffect(()=>{if(f(r.nonce),!l.current)return;let s=Se({...i,animation:i.animation||r.animation,theme:i.theme||r.theme});l.current.innerHTML="",l.current.appendChild(s);},[i,r.animation,r.theme,r.nonce]),jsxRuntime.jsx("div",{ref:l,className:`veil-custom-skeleton-wrap ${e}`.trim(),style:d})}exports.CustomSkeleton=Jn;exports.LazyImage=Yn;exports.LoadingButton=Mn;exports.Overlay=Cn;exports.ProgressBar=mn;exports.RouteProgress=yn;exports.Skeleton=ii;exports.SkeletonArticle=vi;exports.SkeletonCalendar=Bi;exports.SkeletonCard=mi;exports.SkeletonChartBar=Ai;exports.SkeletonChartLine=Ni;exports.SkeletonChartPie=Mi;exports.SkeletonCheckout=Ki;exports.SkeletonCodeBlock=_i;exports.SkeletonDashboard=wi;exports.SkeletonFaqAccordion=Wi;exports.SkeletonFeedPost=bi;exports.SkeletonFileExplorer=Gi;exports.SkeletonForm=ki;exports.SkeletonHeroBanner=Ji;exports.SkeletonInboxList=Li;exports.SkeletonKanban=Yi;exports.SkeletonKpiCard=Ri;exports.SkeletonList=hi;exports.SkeletonListItem=gi;exports.SkeletonMapCard=qi;exports.SkeletonMusicPlayer=Ii;exports.SkeletonNavbar=Ci;exports.SkeletonNewsFeed=Pi;exports.SkeletonNotificationList=Ti;exports.SkeletonOrderList=$i;exports.SkeletonPreset=h;exports.SkeletonPricingCard=Xi;exports.SkeletonProductCard=yi;exports.SkeletonProductDetail=Si;exports.SkeletonProductGrid=ui;exports.SkeletonProfile=xi;exports.SkeletonReels=zi;exports.SkeletonSearchResults=Di;exports.SkeletonSidebar=Ei;exports.SkeletonSocialStory=Ui;exports.SkeletonStoriesRow=Hi;exports.SkeletonTable=fi;exports.SkeletonTabs=Vi;exports.SkeletonTestimonial=Fi;exports.SkeletonTimeline=ji;exports.SkeletonVideoPlayer=Oi;exports.Spinner=rn;exports.Veil=ni;exports.VeilProvider=St;exports.useDelayedLoading=_;exports.useLoading=It;exports.useProgress=Ht;exports.useVeil=L;//# sourceMappingURL=index.cjs.map
|
|
660
660
|
//# sourceMappingURL=index.cjs.map
|