@vanelsas/baredom 2.4.1 → 2.6.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 +25 -0
- package/README.md +63 -270
- package/custom-elements.json +7373 -0
- package/dist/baredom.d.ts +97 -0
- package/dist/base.js +74 -74
- package/dist/integrity.json +93 -93
- package/dist/x-alert.d.ts +43 -0
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.d.ts +18 -0
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.d.ts +21 -0
- package/dist/x-avatar.js +13 -13
- package/dist/x-badge.d.ts +19 -0
- package/dist/x-badge.js +11 -11
- package/dist/x-bento-grid.d.ts +12 -0
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.d.ts +12 -0
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.d.ts +20 -0
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.d.ts +45 -0
- package/dist/x-button.js +15 -15
- package/dist/x-cancel-dialogue.d.ts +50 -0
- package/dist/x-cancel-dialogue.js +12 -12
- package/dist/x-card.d.ts +39 -0
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.d.ts +48 -0
- package/dist/x-carousel.js +28 -28
- package/dist/x-chart.d.ts +23 -0
- package/dist/x-chart.js +46 -46
- package/dist/x-checkbox.d.ts +45 -0
- package/dist/x-checkbox.js +11 -11
- package/dist/x-chip.d.ts +41 -0
- package/dist/x-chip.js +8 -8
- package/dist/x-collapse.d.ts +42 -0
- package/dist/x-collapse.js +10 -10
- package/dist/x-color-picker.d.ts +47 -0
- package/dist/x-color-picker.js +41 -41
- package/dist/x-combobox.d.ts +47 -0
- package/dist/x-combobox.js +25 -25
- package/dist/x-command-palette.d.ts +46 -0
- package/dist/x-command-palette.js +24 -24
- package/dist/x-container.d.ts +14 -0
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.d.ts +17 -0
- package/dist/x-context-menu.js +18 -18
- package/dist/x-copy.d.ts +51 -0
- package/dist/x-copy.js +20 -20
- package/dist/x-currency-field.d.ts +52 -0
- package/dist/x-currency-field.js +23 -21
- package/dist/x-date-picker.d.ts +20 -0
- package/dist/x-date-picker.js +37 -37
- package/dist/x-divider.d.ts +20 -0
- package/dist/x-divider.js +8 -8
- package/dist/x-drawer.d.ts +44 -0
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.d.ts +42 -0
- package/dist/x-dropdown.js +9 -9
- package/dist/x-fieldset.d.ts +14 -0
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.d.ts +40 -0
- package/dist/x-file-download.js +7 -7
- package/dist/x-file-upload.d.ts +46 -0
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.d.ts +47 -0
- package/dist/x-form-field.js +15 -15
- package/dist/x-form.d.ts +41 -0
- package/dist/x-form.js +9 -9
- package/dist/x-gaussian-blur.d.ts +20 -0
- package/dist/x-gaussian-blur.js +16 -16
- package/dist/x-grid.d.ts +12 -0
- package/dist/x-grid.js +6 -6
- package/dist/x-icon.d.ts +15 -0
- package/dist/x-icon.js +7 -7
- package/dist/x-image.d.ts +48 -0
- package/dist/x-image.js +18 -18
- package/dist/x-kinetic-font.d.ts +48 -0
- package/dist/x-kinetic-font.js +28 -28
- package/dist/x-kinetic-typography.d.ts +27 -0
- package/dist/x-kinetic-typography.js +37 -37
- package/dist/x-liquid-dock.d.ts +47 -0
- package/dist/x-liquid-dock.js +35 -35
- package/dist/x-liquid-fill.d.ts +46 -0
- package/dist/x-liquid-fill.js +40 -40
- package/dist/x-liquid-glass.d.ts +25 -0
- package/dist/x-liquid-glass.js +35 -35
- package/dist/x-menu-item.d.ts +41 -0
- package/dist/x-menu-item.js +10 -10
- package/dist/x-menu.d.ts +42 -0
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.d.ts +21 -0
- package/dist/x-metaball-cursor.js +25 -25
- package/dist/x-modal.d.ts +44 -0
- package/dist/x-modal.js +11 -11
- package/dist/x-morph-stack.d.ts +46 -0
- package/dist/x-morph-stack.js +39 -39
- package/dist/x-navbar.d.ts +46 -0
- package/dist/x-navbar.js +12 -12
- package/dist/x-neural-glow.d.ts +22 -0
- package/dist/x-neural-glow.js +30 -30
- package/dist/x-notification-center.d.ts +42 -0
- package/dist/x-notification-center.js +10 -10
- package/dist/x-organic-divider.d.ts +19 -0
- package/dist/x-organic-divider.js +15 -15
- package/dist/x-organic-progress.d.ts +45 -0
- package/dist/x-organic-progress.js +35 -35
- package/dist/x-organic-shape.d.ts +18 -0
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-pagination.d.ts +45 -0
- package/dist/x-pagination.js +17 -16
- package/dist/x-particle-button.d.ts +47 -0
- package/dist/x-particle-button.js +46 -46
- package/dist/x-popover.d.ts +45 -0
- package/dist/x-popover.js +23 -23
- package/dist/x-progress-circle.d.ts +41 -0
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.d.ts +44 -0
- package/dist/x-progress.js +7 -7
- package/dist/x-radio.d.ts +44 -0
- package/dist/x-radio.js +11 -11
- package/dist/x-ripple-effect.d.ts +42 -0
- package/dist/x-ripple-effect.js +11 -11
- package/dist/x-scroll-parallax.d.ts +45 -0
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.d.ts +46 -0
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.d.ts +56 -0
- package/dist/x-scroll-story.js +33 -33
- package/dist/x-scroll-timeline.d.ts +58 -0
- package/dist/x-scroll-timeline.js +44 -44
- package/dist/x-scroll.d.ts +51 -0
- package/dist/x-scroll.js +39 -39
- package/dist/x-search-field.d.ts +47 -0
- package/dist/x-search-field.js +15 -14
- package/dist/x-select.d.ts +41 -0
- package/dist/x-select.js +10 -10
- package/dist/x-sidebar.d.ts +40 -0
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.d.ts +15 -0
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.d.ts +16 -0
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.d.ts +49 -0
- package/dist/x-slider.js +18 -16
- package/dist/x-soft-body.d.ts +44 -0
- package/dist/x-soft-body.js +20 -20
- package/dist/x-spacer.d.ts +15 -0
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.d.ts +15 -0
- package/dist/x-spinner.js +5 -5
- package/dist/x-splash.d.ts +42 -0
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.d.ts +21 -0
- package/dist/x-stat.js +9 -9
- package/dist/x-stepper.d.ts +42 -0
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.d.ts +44 -0
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.d.ts +40 -0
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.d.ts +50 -0
- package/dist/x-table-cell.js +19 -19
- package/dist/x-table-row.d.ts +43 -0
- package/dist/x-table-row.js +10 -10
- package/dist/x-table.d.ts +124 -0
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.d.ts +71 -0
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.d.ts +48 -0
- package/dist/x-text-area.js +20 -18
- package/dist/x-theme.d.ts +15 -0
- package/dist/x-theme.js +24 -24
- package/dist/x-timeline-item.d.ts +46 -0
- package/dist/x-timeline-item.js +19 -19
- package/dist/x-timeline.d.ts +78 -0
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.d.ts +45 -0
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.d.ts +41 -0
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.d.ts +43 -0
- package/dist/x-tooltip.js +12 -12
- package/dist/x-typography.d.ts +16 -0
- package/dist/x-typography.js +8 -8
- package/dist/x-welcome-tour.d.ts +92 -0
- package/dist/x-welcome-tour.js +58 -58
- package/package.json +506 -392
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// x-kinetic-font.d.ts — auto-generated by generate_types.bb, do not edit
|
|
2
|
+
|
|
3
|
+
export function init(): void;
|
|
4
|
+
|
|
5
|
+
export interface XKineticFontEventMap {
|
|
6
|
+
"x-kinetic-font-spring-activate": CustomEvent<{}>;
|
|
7
|
+
"x-kinetic-font-spring-settle": CustomEvent<{}>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface XKineticFont extends HTMLElement {
|
|
11
|
+
mass: number;
|
|
12
|
+
tension: number;
|
|
13
|
+
mode: string;
|
|
14
|
+
perChar: boolean;
|
|
15
|
+
radius: number;
|
|
16
|
+
intensity: number;
|
|
17
|
+
fontFamily: string;
|
|
18
|
+
friction: number;
|
|
19
|
+
trigger: string;
|
|
20
|
+
text: string;
|
|
21
|
+
|
|
22
|
+
addEventListener<K extends keyof XKineticFontEventMap>(
|
|
23
|
+
type: K,
|
|
24
|
+
listener: (this: XKineticFont, ev: XKineticFontEventMap[K]) => any,
|
|
25
|
+
options?: boolean | AddEventListenerOptions
|
|
26
|
+
): void;
|
|
27
|
+
addEventListener(
|
|
28
|
+
type: string,
|
|
29
|
+
listener: EventListenerOrEventListenerObject,
|
|
30
|
+
options?: boolean | AddEventListenerOptions
|
|
31
|
+
): void;
|
|
32
|
+
removeEventListener<K extends keyof XKineticFontEventMap>(
|
|
33
|
+
type: K,
|
|
34
|
+
listener: (this: XKineticFont, ev: XKineticFontEventMap[K]) => any,
|
|
35
|
+
options?: boolean | EventListenerOptions
|
|
36
|
+
): void;
|
|
37
|
+
removeEventListener(
|
|
38
|
+
type: string,
|
|
39
|
+
listener: EventListenerOrEventListenerObject,
|
|
40
|
+
options?: boolean | EventListenerOptions
|
|
41
|
+
): void;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
"x-kinetic-font": XKineticFont;
|
|
47
|
+
}
|
|
48
|
+
}
|
package/dist/x-kinetic-font.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
null},
|
|
4
|
-
a.getAttribute("intensity"),a.getAttribute("trigger"),a.getAttribute("per-char"),a.getAttribute("font-family"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("friction"),a.getAttribute("radius"),a.getAttribute("tension")]);var b=$APP.M(a);a=$APP.D(b,$APP.Ij);var c=$APP.D(b,
|
|
5
|
-
[
|
|
6
|
-
c===0?a.removeProperty("transform"):a.setProperty("transform","skewX("+$APP.T.g(c.toFixed(1))+"deg)")},
|
|
7
|
-
$APP.k(a,"__xKineticFontLSY");return $APP.n(d)?d:b}();a.__xKineticFontLSY=b;$APP.ja(a,"__xKineticFontSD",function(){var d=$APP.k(a,"__xKineticFontSD");return $APP.n(d)?d:0}()+Math.abs(c));
|
|
8
|
-
"scroll")||$APP.B.i(b,"both"))b=function(){return
|
|
9
|
-
$APP.
|
|
10
|
-
d=$APP.M($APP.k(a,"__xKineticFontRefs")),$APP.D(d,$APP.Hj).textContent=e,a.__xKineticFontCS=null,a.__xKineticFontSpr=[[0,0]];$APP.N(
|
|
11
|
-
144),
|
|
12
|
-
a.removeAttribute("role")):(a.removeAttribute("aria-hidden"),a.setAttribute("role","text"),a.setAttribute("aria-label",c));if(!
|
|
13
|
-
this.getAttribute("text");return $APP.n(b)?b:""},set:function(b){return b==null?this.removeAttribute("text"):this.setAttribute("text",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"trigger",{get:function(){return
|
|
14
|
-
b:"bulge"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"perChar",{get:function(){return this.hasAttribute("per-char")},set:function(b){return $APP.n(b)?this.setAttribute("per-char",""):this.removeAttribute("per-char")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mass",{get:function(){var b=this.getAttribute("mass");return
|
|
15
|
-
this.setAttribute("mass",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"tension",{get:function(){var b=this.getAttribute("tension");return
|
|
16
|
-
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return
|
|
17
|
-
$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"fontFamily",{get:function(){return
|
|
18
|
-
d=document.createElement("div"),e=document.createElement("span");c.textContent=
|
|
19
|
-
function(){var b=$APP.k(this,"__xKineticFontRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xKineticFontRaf=null);
|
|
20
|
-
"per-char-attr",-403667422),
|
|
21
|
-
"opsz-min",-829837010),
|
|
22
|
-
|
|
23
|
-
$APP.zf([$APP.
|
|
24
|
-
1,[$APP.Z,$APP.Y],null),new $APP.
|
|
25
|
-
var
|
|
2
|
+
var x2=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},z2=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(y2,a)?a:"cursor"},C2=function(a){return typeof a==="string"?(a=$APP.We.m($APP.Tf,$APP.ce(function(b){return $APP.I(A2,b)}),a.trim().toLowerCase().split(/\s+/)),$APP.Hc(a)?B2:a):B2},D2=function(a){return typeof a==="string"?(a=a.trim(),$APP.B.i(a,"")?null:a):
|
|
3
|
+
null},E2=function(a,b,c,d,e,g,h){b=c+(g*(b-a)-h*c)/e*d;return[a+b*d,b]},F2=function(a,b){if(a>=b)return 0;a=1-a/b;return a*a},G2=function(a,b,c,d,e,g,h,l,m,p,q){a*=c;d=$APP.I(b,"bulge")?d+a*(e-d):d;g=$APP.I(b,"stretch")?g+a*(h-g):g;l=$APP.I(b,"lean")?m+a*(l-m):m;b=$APP.I(b,"breathe")?p+a*(q-p):p;return[d,g,l,b]},H2=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},S2=function(a){a=$APP.zf([$APP.Fj,$APP.Gk,I2,J2,K2,$APP.Kh,$APP.xl,L2,$APP.Ij,M2],[a.getAttribute("mass"),
|
|
4
|
+
a.getAttribute("intensity"),a.getAttribute("trigger"),a.getAttribute("per-char"),a.getAttribute("font-family"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("friction"),a.getAttribute("radius"),a.getAttribute("tension")]);var b=$APP.M(a);a=$APP.D(b,$APP.Ij);var c=$APP.D(b,M2),d=$APP.D(b,$APP.Fj),e=$APP.D(b,$APP.Gk),g=$APP.D(b,J2),h=$APP.D(b,I2),l=$APP.D(b,K2),m=$APP.D(b,$APP.Kh),p=$APP.D(b,$APP.xl);b=$APP.D(b,L2);return $APP.zf([$APP.tm,N2,O2,$APP.Tm,$APP.xk,P2,$APP.hk,Q2,R2,$APP.Cl],
|
|
5
|
+
[x2(d,1,.1,10),x2(c,170,10,500),C2(p),x2(a,200,20,1E3),x2(e,.5,0,1),g!=null,x2(b,26,1,100),z2(h),D2(l),typeof m==="string"?m:""])},T2=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:a}return b},U2=function(a,b,c){a=a.style;var d=a.setProperty;b="'wght' "+$APP.T.g(b[0].toFixed(1))+", 'wdth' "+$APP.T.g(b[1].toFixed(1))+", 'slnt' "+$APP.T.g(b[2].toFixed(1))+", 'opsz' "+$APP.T.g(b[3].toFixed(1));d.call(a,"font-variation-settings",b);
|
|
6
|
+
c===0?a.removeProperty("transform"):a.setProperty("transform","skewX("+$APP.T.g(c.toFixed(1))+"deg)")},W2=function(a){$APP.n($APP.k(a,"__xKineticFontRaf"))||($APP.n($APP.k(a,"__xKineticFontAct"))||(a.__xKineticFontAct=!0,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-activate",{bubbles:!0,composed:!0,detail:{}}))),$APP.ja(a,"__xKineticFontLF",performance.now()),$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return V2(a)})))},X2=function(a){var b=window.scrollY,c=b-function(){var d=
|
|
7
|
+
$APP.k(a,"__xKineticFontLSY");return $APP.n(d)?d:b}();a.__xKineticFontLSY=b;$APP.ja(a,"__xKineticFontSD",function(){var d=$APP.k(a,"__xKineticFontSD");return $APP.n(d)?d:0}()+Math.abs(c));H2()||W2(a);return null},Y2=function(a){var b=Q2.g($APP.k(a,"__xKineticFontModel")),c={};if($APP.B.i(b,"cursor")||$APP.B.i(b,"both")){var d=function(e){a.__xKineticFontMX=e.clientX;a.__xKineticFontMY=e.clientY;H2()||W2(a);return null};c.move=d;document.addEventListener("pointermove",d,{passive:!0})}if($APP.B.i(b,
|
|
8
|
+
"scroll")||$APP.B.i(b,"both"))b=function(){return X2(a)},c.scroll=b,a.__xKineticFontLSY=window.scrollY,window.addEventListener("scroll",b,{passive:!0});a.__xKineticFontHdl=c},Z2=function(a){var b=$APP.k(a,"__xKineticFontHdl");if($APP.n(b)){var c=$APP.k(b,"move");$APP.n(c)&&document.removeEventListener("pointermove",c);b=$APP.k(b,"scroll");$APP.n(b)&&window.removeEventListener("scroll",b);a.__xKineticFontHdl=null}},j3=function(a,b){var c=$APP.k(a,"__xKineticFontModel");a.__xKineticFontModel=b;if($APP.N($APP.Cl.g(b),
|
|
9
|
+
$APP.Cl.g(c))||$APP.N(P2.g(b),P2.g(c)))if($APP.n(P2.g(b))){var d=$APP.Cl.g(b),e=$APP.M($APP.k(a,"__xKineticFontRefs"));e=$APP.D(e,$APP.Hj);d=$APP.xe(d);var g=$APP.z(d),h=Array(g),l=Array(g);e.textContent="";for(var m=0;;)if(m<g){var p=$APP.pc(d,m),q=document.createElement("span");q.setAttribute("part","char");$APP.B.i(p," ")?(q.setAttribute("data-ws",""),q.innerHTML="\x26nbsp;"):q.textContent=p;e.appendChild(q);h[m]=q;l[m]=[0,0];m+=1}else break;a.__xKineticFontCS=h;a.__xKineticFontSpr=l}else e=$APP.Cl.g(b),
|
|
10
|
+
d=$APP.M($APP.k(a,"__xKineticFontRefs")),$APP.D(d,$APP.Hj).textContent=e,a.__xKineticFontCS=null,a.__xKineticFontSpr=[[0,0]];$APP.N(Q2.g(b),Q2.g(c))&&(Z2(a),Y2(a));c=$APP.M($APP.k(a,"__xKineticFontRefs"));c=$APP.D(c,$APP.Hj);e=R2.g(b);$APP.n(e)?c.style.setProperty("font-family",e):c.style.removeProperty("font-family");c=getComputedStyle(a);c=$APP.zf([$2,a3,b3,c3,d3,e3,f3,g3,h3],[T2(c.getPropertyValue("--x-kinetic-font-slant-max"),0),T2(c.getPropertyValue("--x-kinetic-font-slant-min"),-12),T2(c.getPropertyValue("--x-kinetic-font-opsz-max"),
|
|
11
|
+
144),T2(c.getPropertyValue("--x-kinetic-font-opsz-min"),8),T2(c.getPropertyValue("--x-kinetic-font-weight-min"),100),T2(c.getPropertyValue("--x-kinetic-font-skew-max"),-15),T2(c.getPropertyValue("--x-kinetic-font-width-max"),125),T2(c.getPropertyValue("--x-kinetic-font-width-min"),75),T2(c.getPropertyValue("--x-kinetic-font-weight-max"),900)]);a.__xKineticFontCV=c;c=$APP.Cl.g(b);e=$APP.M($APP.k(a,"__xKineticFontRefs"));$APP.D(e,i3).textContent=c;$APP.B.i(c,"")?(a.setAttribute("aria-hidden","true"),
|
|
12
|
+
a.removeAttribute("role")):(a.removeAttribute("aria-hidden"),a.setAttribute("role","text"),a.setAttribute("aria-label",c));if(!H2())if(c=$APP.k(a,"__xKineticFontCV"),c=G2(0,O2.g(b),$APP.xk.g(b),d3.g(c),h3.g(c),g3.g(c),f3.g(c),a3.g(c),$2.g(c),c3.g(c),b3.g(c)),$APP.n(P2.g(b))){if(a=$APP.k(a,"__xKineticFontCS"),$APP.n(a))for(b=a.length,e=0;;)if(e<b)U2(a[e],c,0),e+=1;else break}else a=$APP.M($APP.k(a,"__xKineticFontRefs")),a=$APP.D(a,$APP.Hj),U2(a,c,0)},k3=function(a){Object.defineProperty(a,"text",{get:function(){var b=
|
|
13
|
+
this.getAttribute("text");return $APP.n(b)?b:""},set:function(b){return b==null?this.removeAttribute("text"):this.setAttribute("text",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"trigger",{get:function(){return z2(this.getAttribute("trigger"))},set:function(b){return b==null?this.removeAttribute("trigger"):this.setAttribute("trigger",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?
|
|
14
|
+
b:"bulge"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"perChar",{get:function(){return this.hasAttribute("per-char")},set:function(b){return $APP.n(b)?this.setAttribute("per-char",""):this.removeAttribute("per-char")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mass",{get:function(){var b=this.getAttribute("mass");return x2(b,1,.1,10)},set:function(b){return b==null?this.removeAttribute("mass"):
|
|
15
|
+
this.setAttribute("mass",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"tension",{get:function(){var b=this.getAttribute("tension");return x2(b,170,10,500)},set:function(b){return b==null?this.removeAttribute("tension"):this.setAttribute("tension",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"friction",{get:function(){var b=this.getAttribute("friction");return x2(b,26,1,100)},set:function(b){return b==null?this.removeAttribute("friction"):this.setAttribute("friction",
|
|
16
|
+
""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return x2(b,.5,0,1)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return x2(b,200,20,1E3)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+
|
|
17
|
+
$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"fontFamily",{get:function(){return D2(this.getAttribute("font-family"))},set:function(b){return b==null?this.removeAttribute("font-family"):this.setAttribute("font-family",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},n3=function(){var a=class extends HTMLElement{};a.observedAttributes=l3;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticFontRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),
|
|
18
|
+
d=document.createElement("div"),e=document.createElement("span");c.textContent=m3;d.setAttribute("part","container");e.setAttribute("class","sr-only");e.setAttribute("part","sr-only");b.appendChild(c);b.appendChild(d);b.appendChild(e);this.__xKineticFontRefs=new $APP.Q(null,3,[$APP.Hi,b,$APP.Hj,d,i3,e],null)}b=S2(this);this.__xKineticFontModel=null;this.__xKineticFontSD=this.__xKineticFontMY=this.__xKineticFontMX=0;this.__xKineticFontAct=!1;j3(this,b);return null};a.prototype.disconnectedCallback=
|
|
19
|
+
function(){var b=$APP.k(this,"__xKineticFontRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xKineticFontRaf=null);Z2(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticFontRefs"))&&(b=S2(this),$APP.N(b,$APP.k(this,"__xKineticFontModel"))&&j3(this,b));return null};k3(a.prototype);return a},o3=function(){$APP.n(customElements.get("x-kinetic-font"))||customElements.define("x-kinetic-font",n3());return null},J2=new $APP.K(null,"per-char-attr",
|
|
20
|
+
"per-char-attr",-403667422),I2=new $APP.K(null,"trigger-raw","trigger-raw",-1649744606),a3=new $APP.K(null,"slnt-min","slnt-min",71363427),f3=new $APP.K(null,"wdth-max","wdth-max",-522030121),e3=new $APP.K(null,"skew-max","skew-max",1543858453),g3=new $APP.K(null,"wdth-min","wdth-min",-986627045),K2=new $APP.K(null,"font-family-raw","font-family-raw",1729457924),P2=new $APP.K(null,"per-char?","per-char?",-1016397834),Q2=new $APP.K(null,"trigger","trigger",103466139),c3=new $APP.K(null,"opsz-min",
|
|
21
|
+
"opsz-min",-829837010),i3=new $APP.K(null,"sr-only","sr-only",-173275148),$2=new $APP.K(null,"slnt-max","slnt-max",1716167520),L2=new $APP.K(null,"friction-raw","friction-raw",-1078184200),b3=new $APP.K(null,"opsz-max","opsz-max",454458088),d3=new $APP.K(null,"wght-min","wght-min",529224020),O2=new $APP.K(null,"modes","modes",-1377787092),h3=new $APP.K(null,"wght-max","wght-max",-514604421),M2=new $APP.K(null,"tension-raw","tension-raw",961657279),R2=new $APP.K(null,"font-family","font-family",-667419874),
|
|
22
|
+
N2=new $APP.K(null,"tension","tension",58343589);var l3="text trigger mode per-char mass tension friction intensity radius font-family".split(" ");
|
|
23
|
+
$APP.zf([$APP.tm,N2,$APP.wj,new $APP.K(null,"perChar","perChar",2082880685),$APP.Tm,$APP.xk,new $APP.K(null,"fontFamily","fontFamily",1493518353),$APP.hk,Q2,$APP.Cl],[new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
|
|
24
|
+
1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-kinetic-font-spring-activate",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null),"x-kinetic-font-spring-settle",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null)]);
|
|
25
|
+
var y2=new $APP.S(null,new $APP.Q(null,3,["scroll",null,"both",null,"cursor",null],null),null),A2=new $APP.S(null,new $APP.Q(null,4,["breathe",null,"lean",null,"bulge",null,"stretch",null],null),null),B2=new $APP.S(null,new $APP.Q(null,1,["bulge",null],null),null);var m3=":host{display:inline-block;box-sizing:border-box;color-scheme:light dark;"+$APP.T.g("--x-kinetic-font-color")+":var(--x-color-text,currentColor);"+$APP.T.g("--x-kinetic-font-family")+":system-ui,sans-serif;"+$APP.T.g("--x-kinetic-font-size")+":2rem;"+$APP.T.g("--x-kinetic-font-weight-min")+":100;"+$APP.T.g("--x-kinetic-font-weight-max")+":900;"+$APP.T.g("--x-kinetic-font-width-min")+":75;"+$APP.T.g("--x-kinetic-font-width-max")+":125;"+$APP.T.g("--x-kinetic-font-slant-min")+":-12;"+$APP.T.g("--x-kinetic-font-slant-max")+
|
|
26
26
|
":0;"+$APP.T.g("--x-kinetic-font-opsz-min")+":8;"+$APP.T.g("--x-kinetic-font-opsz-max")+":144;"+$APP.T.g("--x-kinetic-font-skew-max")+":-15;}[part\x3dcontainer]{color:var("+$APP.T.g("--x-kinetic-font-color")+",currentColor);font-family:var("+$APP.T.g("--x-kinetic-font-family")+",system-ui,sans-serif);font-size:var("+$APP.T.g("--x-kinetic-font-size")+",2rem);line-height:1.2;will-change:font-variation-settings,transform;}[part\x3dchar]{display:inline-block;will-change:font-variation-settings,transform;}[part\x3dchar][data-ws]{white-space:pre;}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}@media(prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3dchar]{font-variation-settings:normal!important;will-change:auto;}}",
|
|
27
|
-
|
|
28
|
-
return $APP.n(Fb)?Fb:0}(),Pa=Math.min(1,Math.abs(Ca)/100),
|
|
29
|
-
"both")?$APP.B.i(v,"scroll")?Pa:0:function(){var Fb=$APP.M($APP.k(a,"__xKineticFontRefs")),
|
|
30
|
-
Ca,e));
|
|
27
|
+
V2=function V2(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xKineticFontModel"),d=$APP.k(a,"__xKineticFontCV"),e=performance.now(),g=Math.min(e-$APP.k(a,"__xKineticFontLF"),100)/1E3,h=$APP.tm.g(c),l=N2.g(c),m=$APP.hk.g(c),p=$APP.xk.g(c),q=$APP.Tm.g(c),v=Q2.g(c);c=O2.g(c);var x=d3.g(d),y=h3.g(d),A=g3.g(d),C=f3.g(d),E=a3.g(d),H=$2.g(d),G=c3.g(d),J=b3.g(d);d=e3.g(d);var R=$APP.I(c,"lean"),aa=$APP.k(a,"__xKineticFontMX"),la=$APP.k(a,"__xKineticFontMY"),Ca=function(){var Fb=$APP.k(a,"__xKineticFontSD");
|
|
28
|
+
return $APP.n(Fb)?Fb:0}(),Pa=Math.min(1,Math.abs(Ca)/100),db=$APP.k(a,"__xKineticFontSpr"),eb=$APP.k(a,"__xKineticFontCS"),pb=eb!=null,Nb=db.length;a.__xKineticFontLF=e;a.__xKineticFontSD=Ca*.85;for(var gb=[!0],ea=0;;)if(ea<Nb){Ca=pb&&($APP.B.i(v,"cursor")||$APP.B.i(v,"both"))?function(){var Fb=eb[ea].getBoundingClientRect(),Xd=aa-(Fb.left+.5*Fb.width);Fb=la-(Fb.top+.5*Fb.height);return Math.max(F2(Math.sqrt(Xd*Xd+Fb*Fb),q),Pa)}():pb&&$APP.B.i(v,"scroll")?Pa:pb||!$APP.B.i(v,"cursor")&&!$APP.B.i(v,
|
|
29
|
+
"both")?$APP.B.i(v,"scroll")?Pa:0:function(){var Fb=$APP.M($APP.k(a,"__xKineticFontRefs")),Xd=$APP.D(Fb,$APP.Hj).getBoundingClientRect();Fb=aa-(Xd.left+.5*Xd.width);Xd=la-(Xd.top+.5*Xd.height);return Math.max(F2(Math.sqrt(Fb*Fb+Xd*Xd),q),Pa)}();var ta=db[ea],Qa=E2(ta[0],Ca,ta[1],g,h,l,m);e=Qa[0];Qa=Qa[1];ta[0]=e;ta[1]=Qa;Math.abs(e-Ca)<.001&&Math.abs(Qa)<.01||(gb[0]=!1);Ca=G2(e,c,p,x,y,A,C,E,H,G,J);e=R?e*p*d:0;pb?U2(eb[ea],Ca,e):(ta=$APP.M($APP.k(a,"__xKineticFontRefs")),ta=$APP.D(ta,$APP.Hj),U2(ta,
|
|
30
|
+
Ca,e));ea+=1}else break;var ac=function(){var Fb=$APP.k(a,"__xKineticFontSD");return $APP.n(Fb)?Fb:0}()>.5;$APP.n(function(){var Fb=gb[0];return $APP.n(Fb)?!ac:Fb}())?(a.__xKineticFontRaf=null,a.__xKineticFontSD=0,$APP.n($APP.k(a,"__xKineticFontAct"))&&(a.__xKineticFontAct=!1,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-settle",{bubbles:!0,composed:!0,detail:{}})))):$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return V2.g?V2.g(a):V2.call(null,a)}))}return null};$APP.ha("baredom.exports.x_kinetic_font.init",o3);export const init=o3;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// x-kinetic-typography.d.ts — auto-generated by generate_types.bb, do not edit
|
|
2
|
+
|
|
3
|
+
export function init(): void;
|
|
4
|
+
|
|
5
|
+
export interface XKineticTypography extends HTMLElement {
|
|
6
|
+
path: string;
|
|
7
|
+
startSize: string;
|
|
8
|
+
animation: string;
|
|
9
|
+
speed: string;
|
|
10
|
+
echoCount: string;
|
|
11
|
+
echoScale: string;
|
|
12
|
+
echoOpacity: string;
|
|
13
|
+
preset: string;
|
|
14
|
+
repeat: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
effect: string;
|
|
17
|
+
echoDelay: string;
|
|
18
|
+
endSize: string;
|
|
19
|
+
direction: string;
|
|
20
|
+
text: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLElementTagNameMap {
|
|
25
|
+
"x-kinetic-typography": XKineticTypography;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
null)},
|
|
4
|
-
a;this.B=null;this.s=2153775104;this.G=2048},
|
|
5
|
-
"string"&&$APP.N("",a.trim())?a.trim():null},
|
|
2
|
+
var rN=function(a,b){return $APP.ba[a]=b},sN=function(a,b){if(a!=null&&a.ra!=null)a=a.ra(a,b);else{var c=sN[$APP.da(a==null?null:a)];if(c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else if(c=sN._,c!=null)a=c.i?c.i(a,b):c.call(null,a,b);else throw $APP.pa("IDrop.-drop",a);}return a},tN=function(a){if(a!=null&&(a.G&262144||$APP.Ob===a.vc)){var b=a.ra(null,1);return $APP.n(b)?b:$APP.Xb}return new $APP.rd(null,function(){a:{var c=1;for(var d=a;;)if(d=$APP.t(d),c>0&&d)--c,d=$APP.Yb(d);else{c=d;break a}c=void 0}return c},
|
|
3
|
+
null)},uN=function(a,b){a.sort(b||$APP.ka)},wN=function(a){var b=vN();const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.ka;uN(c,function(e,g){return d(e.value,g.value)||e.index-g.index});for(b=0;b<a.length;b++)a[b]=c[b].value},vN=function(){return $APP.B.i($APP.Rc,$APP.Rc)?$APP.Rc:function(a,b){var c=$APP.Rc.i?$APP.Rc.i(a,b):$APP.Rc.call(null,a,b);return typeof c==="number"?c:$APP.n(c)?-1:$APP.n($APP.Rc.i?$APP.Rc.i(b,a):$APP.Rc.call(null,b,a))?1:0}},xN=function(a){this.ob=
|
|
4
|
+
a;this.B=null;this.s=2153775104;this.G=2048},yN=function(a){return new xN(a.toLowerCase())},zN=function(){function a(){var d=Math.floor(Math.random()*65536).toString(16);switch(d.length){case 1:return["000",d].join("");case 2:return["00",d].join("");case 3:return["0",d].join("");default:return d}}var b=(16384|4095&Math.floor(Math.random()*65536)).toString(16),c=(32768|16383&Math.floor(Math.random()*65536)).toString(16);return yN([a(),a(),"-",a(),"-",b,"-",c,"-",a(),a(),a()].join(""))},AN=function(a){return typeof a===
|
|
5
|
+
"string"&&$APP.N("",a.trim())?a.trim():null},BN=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},CN=function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches},DN=function(a){var b=$APP.k(a,"__xKineticTypographyAnimate");$APP.n(b)&&(b.remove(),a.__xKineticTypographyAnimate=null)},EN=function(a,b,c,d){var e=BN("animate");c=""+$APP.T.g(c)+"s";b=$APP.B.i(b,"reverse")?"reverse":"normal";e.setAttribute("attributeName","startOffset");e.setAttribute("repeatCount",
|
|
6
6
|
"indefinite");e.setAttribute("dur",c);d>0&&e.setAttribute("begin",""+$APP.T.g(d)+"s");switch(a){case "scroll":e.setAttribute("from",$APP.B.i(b,"reverse")?"100%":"0%");e.setAttribute("to",$APP.B.i(b,"reverse")?"0%":"100%");break;case "bounce":e.setAttribute("values",$APP.B.i(b,"reverse")?"100%;0%;100%":"0%;100%;0%");e.setAttribute("calcMode","spline");e.setAttribute("keySplines","0.42 0 0.58 1;0.42 0 0.58 1");break;case "oscillate":e.setAttribute("values",$APP.B.i(b,"reverse")?"120%;-20%;120%":"-20%;120%;-20%"),
|
|
7
|
-
e.setAttribute("calcMode","spline"),e.setAttribute("keySplines","0.42 0 0.58 1;0.42 0 0.58 1")}return e},
|
|
8
|
-
a.getAttribute("preset"),a.getAttribute("start-size"),a.getAttribute("repeat"),a.getAttribute("effect"),a.getAttribute("echo-delay"),a.getAttribute("echo-count"),a.getAttribute("end-size"),a.getAttribute("direction"),a.getAttribute("echo-opacity"),a.getAttribute("text")]);var c=$APP.M(b),d=$APP.D(c,
|
|
9
|
-
$APP.Fk),E=$APP.D(c,
|
|
10
|
-
parseInt(H.trim(),10);var
|
|
11
|
-
$APP.nh.i(
|
|
12
|
-
"string"){var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-1," · ",null),
|
|
16
|
-
1?
|
|
17
|
-
$APP.pc(
|
|
18
|
-
$APP.w(
|
|
19
|
-
"calc(var(--x-kinetic-typography-font-size) * "+$APP.T.g(
|
|
20
|
-
$APP.r(
|
|
21
|
-
"")?(a.setAttribute("role","presentation"),a.setAttribute("aria-hidden","true")):(a.setAttribute("role","img"),a.setAttribute("aria-label",
|
|
22
|
-
"animation","scroll");
|
|
23
|
-
a.observedAttributes=
|
|
7
|
+
e.setAttribute("calcMode","spline"),e.setAttribute("keySplines","0.42 0 0.58 1;0.42 0 0.58 1")}return e},FN=function(a){var b=$APP.k(a,"__xKineticTypographyEchoEls");if($APP.n(b)){for(var c=b.length,d=0;;)if(d<c)b[d].textEl.remove(),d+=1;else break;a.__xKineticTypographyEchoEls=[]}},$N=function(a){var b=$APP.zf([$APP.Zk,GN,$APP.Wg,HN,$APP.Gj,$APP.Fk,IN,JN,KN,LN,MN,NN,$APP.tj,ON,$APP.Cl],[a.getAttribute("path"),a.getAttribute("echo-scale"),a.getAttribute("animation"),a.getAttribute("font-size"),a.getAttribute("speed"),
|
|
8
|
+
a.getAttribute("preset"),a.getAttribute("start-size"),a.getAttribute("repeat"),a.getAttribute("effect"),a.getAttribute("echo-delay"),a.getAttribute("echo-count"),a.getAttribute("end-size"),a.getAttribute("direction"),a.getAttribute("echo-opacity"),a.getAttribute("text")]);var c=$APP.M(b),d=$APP.D(c,KN),e=$APP.D(c,LN),g=$APP.D(c,MN),h=$APP.D(c,NN),l=$APP.D(c,$APP.tj),m=$APP.D(c,ON),p=$APP.D(c,$APP.Cl),q=$APP.D(c,$APP.Zk),v=$APP.D(c,GN),x=$APP.D(c,$APP.Wg),y=$APP.D(c,HN),A=$APP.D(c,$APP.Gj),C=$APP.D(c,
|
|
9
|
+
$APP.Fk),E=$APP.D(c,IN),H=$APP.D(c,JN),G=typeof p==="string"?p:"",J=AN(q),R=typeof C==="string"?C.trim().toLowerCase():null;var aa=$APP.I(PN,R)?R:"wave";var la=$APP.B.i(aa,"crawl"),Ca=typeof x==="string"?x.trim().toLowerCase():null;var Pa=$APP.I(QN,Ca)?Ca:"scroll";var db=typeof l==="string"?l.trim().toLowerCase():null;var eb=$APP.I(RN,db)?db:"normal";if(typeof A==="string"){var pb=parseFloat(A.trim());var Nb=typeof pb==="number"&&$APP.r(isNaN(pb))&&pb>0?pb:1}else Nb=1;if(typeof H==="string"){var gb=
|
|
10
|
+
parseInt(H.trim(),10);var ea=typeof gb==="number"&&$APP.r(isNaN(gb))&&gb>0?gb:1}else ea=1;if(typeof d==="string"){var ta=$APP.Xf(d.toLowerCase().trim().split(/\s+/));var Qa=$APP.nn.i(ta,SN)}else Qa=$APP.Tf;var ac=AN(E),Fb=AN(h);var Xd=$APP.B.i(aa,"crawl")?null:J!=null?new $APP.Q(null,2,[$APP.Sl,J,TN,"0 0 800 200"],null):$APP.D(UN,aa);var Lv=$APP.n($APP.n(ac)?$APP.n(Fb)?!la:Fb:ac)?$APP.ld.i(Qa,"size-gradient"):Qa,Mv=$APP.I(Lv,"size-gradient")?$APP.nh.i(Lv,"size-pulse"):Lv,g1=$APP.I(Mv,"color-wave")?
|
|
11
|
+
$APP.nh.i(Mv,"color-shift"):Mv;if(typeof v==="string"){var wm=parseFloat(v.trim());var bL=typeof wm==="number"&&$APP.r(isNaN(wm))&&wm>0&&wm<=1?wm:.85}else bL=.85;var h1=$APP.Sl.g(Xd),i1=AN(y),j1=TN.g(Xd),k1=10/$APP.oh.i(Nb,.01);if(la)var Nv=0;else if(typeof g==="string"){var xm=parseInt(g.trim(),10);Nv=typeof xm==="number"&&$APP.r(isNaN(xm))&&xm>=0&&xm<=5?xm:0}else Nv=0;if(typeof e==="string"){var Fq=parseFloat(e.trim());var cL=typeof Fq==="number"&&$APP.r(isNaN(Fq))&&Fq>0?Fq:.3}else cL=.3;if(typeof m===
|
|
12
|
+
"string"){var ym=parseFloat(m.trim());var dL=typeof ym==="number"&&$APP.r(isNaN(ym))&&ym>0&&ym<=1?ym:.5}else dL=.5;var m1=$APP.zf([GN,$APP.Sj,$APP.Wg,HN,$APP.Gj,TN,$APP.Fk,VN,IN,WN,XN,JN,YN,LN,MN,NN,$APP.tj,ON,$APP.Cl],[bL,h1,Pa,i1,Nb,j1,aa,la,ac,g1,k1,ea,J!=null,cL,Nv,Fb,eb,dL,G]);var Sc=$APP.M(m1),hL=$APP.D(Sc,LN),iL=$APP.D(Sc,MN),Ov=$APP.D(Sc,NN),Pv=$APP.D(Sc,$APP.tj),n1=$APP.D(Sc,ON),qh=$APP.D(Sc,$APP.Cl),o1=$APP.D(Sc,GN),Gq=$APP.D(Sc,$APP.Sj),rh=$APP.D(Sc,$APP.Wg),jL=$APP.D(Sc,HN),kL=$APP.D(Sc,
|
|
13
|
+
TN),p1=$APP.D(Sc,VN),zm=$APP.D(Sc,IN),ck=$APP.D(Sc,WN),fi=$APP.D(Sc,XN),Qv=$APP.D(Sc,JN),lL=$APP.k(a,"__xKineticTypographySvg"),q1=$APP.k(a,"__xKineticTypographyPath"),mL=$APP.k(a,"__xKineticTypographyText"),Am=$APP.k(a,"__xKineticTypographyTextPath"),r1=$APP.k(a,"__xKineticTypographySrOnly"),s1=$APP.k(a,"__xKineticTypographyCrawlText"),Rv=a.shadowRoot.querySelector("[part\x3dpath-line]");if($APP.n(p1))a.setAttribute("data-preset","crawl"),s1.textContent=qh,DN(a),FN(a),$APP.N(rh,"none")?a.setAttribute("data-animation",
|
|
14
|
+
rh):a.removeAttribute("data-animation"),$APP.B.i(Pv,"reverse")?a.setAttribute("data-direction","reverse"):a.removeAttribute("data-direction"),$APP.I(ck,"color-shift")?a.setAttribute("data-effect","color-shift"):a.removeAttribute("data-effect");else{a.removeAttribute("data-preset");a.removeAttribute("data-direction");$APP.n(kL)&&lL.setAttribute("viewBox",kL);$APP.n(Gq)&&q1.setAttribute("d",Gq);$APP.n($APP.n(Rv)?Gq:Rv)&&Rv.setAttribute("d",Gq);var Sv=Qv<=1?qh:$APP.Jd($APP.T,tN(ZN.i(new $APP.Zd(null,
|
|
15
|
+
-1," · ",null),Qv>0?new $APP.Zd(null,Qv,qh,null):$APP.Xb))),nL=$APP.I(ck,"size-gradient"),t1=$APP.I(ck,"color-wave"),oL=nL?$APP.n(zm)?$APP.n(Ov)?$APP.N(qh,""):Ov:zm:nL;var u1=$APP.n(oL)?oL:t1&&$APP.N(qh,"");if($APP.n(u1)){Am.textContent="";var Tv=$APP.xe(Sv),gi=$APP.z(Tv),hi=$APP.I(ck,"size-gradient"),Uv=$APP.I(ck,"color-wave"),sh=hi?parseFloat(zm):null,Hq=hi?parseFloat(Ov):null;if(hi){var pL=$APP.n(zm)?zm:"px",v1=/[a-z%]+/;if(typeof pL==="string"){var Iq=v1.exec(pL);var qL=Iq==null?null:Iq.length===
|
|
16
|
+
1?Iq[0]:$APP.xe(Iq)}else throw new TypeError("re-find must match against a string.");var rL=$APP.n(qL)?qL:"px"}else rL=null;for(var sL=rL,tL=Uv?gi>0?fi/gi:0:null,Vv=$APP.t($APP.dg(0,gi)),Wv=null,Xv=0,Jq=0;;)if(Jq<Xv){var ii=Wv.F(null,Jq),Kq=BN("tspan");$APP.n(hi?$APP.n(sh)?Hq:sh:hi)&&Kq.setAttribute("font-size",""+$APP.T.g(sh+(gi>1?ii/(gi-1):0)*(Hq-sh))+$APP.T.g(sL));Uv&&(Kq.style.cssText="animation:xkt-color-wave "+$APP.T.g(fi)+"s ease-in-out infinite;animation-delay:"+$APP.T.g(ii*tL)+"s;");Kq.textContent=
|
|
17
|
+
$APP.pc(Tv,ii);Am.appendChild(Kq);Jq+=1}else{var uL=$APP.t(Vv);if(uL){var Bm=uL;if($APP.Nc(Bm)){var vL=$APP.yb(Bm),w1=$APP.zb(Bm),x1=vL,y1=$APP.z(vL);Vv=w1;Wv=x1;Xv=y1}else{ii=$APP.u(Bm);var Lq=BN("tspan");$APP.n(hi?$APP.n(sh)?Hq:sh:hi)&&Lq.setAttribute("font-size",""+$APP.T.g(sh+(gi>1?ii/(gi-1):0)*(Hq-sh))+$APP.T.g(sL));Uv&&(Lq.style.cssText="animation:xkt-color-wave "+$APP.T.g(fi)+"s ease-in-out infinite;animation-delay:"+$APP.T.g(ii*tL)+"s;");Lq.textContent=$APP.pc(Tv,ii);Am.appendChild(Lq);Vv=
|
|
18
|
+
$APP.w(Bm);Wv=null;Xv=0}Jq=0}else break}}else Am.textContent=Sv;FN(a);if(iL>0){for(var wL=$APP.k(a,"__xKineticTypographyPathId"),xL=[],z1=$APP.N(rh,"none")&&$APP.r(CN()),A1=fi>0?hL/fi*100:5,Yv=0;;)if(Yv<iL){var Mq=Yv+1,dk=document.createElementNS("http://www.w3.org/2000/svg","text"),ek=document.createElementNS("http://www.w3.org/2000/svg","textPath"),B1=Math.pow(n1,Mq),C1=Math.pow(o1,Mq),D1="-"+$APP.T.g(A1*Mq)+"%";dk.setAttribute("part","text-echo");dk.setAttribute("opacity",""+$APP.T.g(B1));dk.setAttribute("font-size",
|
|
19
|
+
"calc(var(--x-kinetic-typography-font-size) * "+$APP.T.g(C1)+")");ek.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+$APP.T.g(wL));ek.setAttribute("href","#"+$APP.T.g(wL));ek.setAttribute("startOffset",D1);ek.textContent=Sv;if(z1){var E1=EN(rh,Pv,fi,hL*Mq);ek.appendChild(E1)}dk.appendChild(ek);lL.appendChild(dk);xL.push({textEl:dk});Yv+=1}else break;a.__xKineticTypographyEchoEls=xL}$APP.n(jL)?mL.style.setProperty("font-size",jL):mL.style.removeProperty("font-size");DN(a);if($APP.N(rh,"none")&&
|
|
20
|
+
$APP.r(CN())){var yL=EN(rh,Pv,fi,0);Am.appendChild(yL);a.__xKineticTypographyAnimate=yL}var Cm=$APP.nh.C(ck,"size-gradient",$APP.uc(["color-wave"]));if($APP.t(Cm)){var F1=a.setAttribute;if($APP.t(Cm)){var zL=$APP.zd.g?$APP.zd.g(Cm):$APP.zd.call(null,Cm);wN(zL);var AL=$APP.Fc($APP.t(zL),$APP.Gc(Cm))}else AL=$APP.Xb;F1.call(a,"data-effect",$APP.Gg(AL))}else a.removeAttribute("data-effect");$APP.N(rh,"none")?a.setAttribute("data-animation",rh):a.removeAttribute("data-animation")}r1.textContent=qh;$APP.B.i(qh,
|
|
21
|
+
"")?(a.setAttribute("role","presentation"),a.setAttribute("aria-hidden","true")):(a.setAttribute("role","img"),a.setAttribute("aria-label",qh))},aO=function(a,b,c,d){Object.defineProperty(a,c,{get:function(){var e=this.getAttribute(b);return $APP.n(e)?e:d},set:function(e){return typeof e==="string"&&$APP.N("",e)?this.setAttribute(b,e):this.removeAttribute(b)},enumerable:!0,configurable:!0})},bO=function(a){aO(a,"text","text","");aO(a,"path","path",null);aO(a,"preset","preset","wave");aO(a,"animation",
|
|
22
|
+
"animation","scroll");aO(a,"speed","speed",""+$APP.T.g(1));aO(a,"direction","direction","normal");aO(a,"effect","effect","none");aO(a,"font-size","fontSize",null);aO(a,"start-size","startSize",null);aO(a,"end-size","endSize",null);aO(a,"repeat","repeat",""+$APP.T.g(1));aO(a,"echo-count","echoCount",""+$APP.T.g(0));aO(a,"echo-delay","echoDelay",""+$APP.T.g(.3));aO(a,"echo-opacity","echoOpacity",""+$APP.T.g(.5));aO(a,"echo-scale","echoScale",""+$APP.T.g(.85))},dO=function(){var a=class extends HTMLElement{};
|
|
23
|
+
a.observedAttributes=cO;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticTypographyInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=BN("svg"),g=BN("defs"),h=BN("path"),l=BN("path"),m=BN("text"),p=BN("textPath"),q=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y="xkt-"+$APP.T.g(zN());c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-kinetic-typography-color:var(--x-color-text,currentColor);--x-kinetic-typography-font-family:system-ui,sans-serif;--x-kinetic-typography-font-size:24px;--x-kinetic-typography-font-weight:400;--x-kinetic-typography-letter-spacing:0;--x-kinetic-typography-opacity:1;--x-kinetic-typography-stroke:none;--x-kinetic-typography-stroke-width:0;--x-kinetic-typography-duration:10s;--x-kinetic-typography-timing:linear;--x-kinetic-typography-color-shift-from:var(--x-color-text,currentColor);--x-kinetic-typography-color-shift-to:var(--x-color-primary,#3b82f6);--x-kinetic-typography-path-stroke:none;--x-kinetic-typography-path-stroke-width:0;--x-kinetic-typography-crawl-perspective:400px;}@media (prefers-color-scheme:dark){:host{--x-kinetic-typography-color:var(--x-color-text,rgba(255,255,255,0.87));}}[part\x3dcontainer]{width:100%;height:100%;position:relative;}[part\x3dsvg]{width:100%;height:100%;overflow:visible;}[part\x3dtext]{fill:var(--x-kinetic-typography-color);font-family:var(--x-kinetic-typography-font-family);font-size:var(--x-kinetic-typography-font-size);font-weight:var(--x-kinetic-typography-font-weight);letter-spacing:var(--x-kinetic-typography-letter-spacing);opacity:var(--x-kinetic-typography-opacity);stroke:var(--x-kinetic-typography-stroke);stroke-width:var(--x-kinetic-typography-stroke-width);}[part\x3dtext-echo]{fill:var(--x-kinetic-typography-color);font-family:var(--x-kinetic-typography-font-family);font-weight:var(--x-kinetic-typography-font-weight);letter-spacing:var(--x-kinetic-typography-letter-spacing);stroke:var(--x-kinetic-typography-stroke);stroke-width:var(--x-kinetic-typography-stroke-width);}@keyframes xkt-opacity-wave{0%,100%{opacity:var(--x-kinetic-typography-opacity);}50%{opacity:0.3;}}@keyframes xkt-size-pulse{0%,100%{font-size:var(--x-kinetic-typography-font-size);}50%{font-size:calc(var(--x-kinetic-typography-font-size) * 1.15);}}@keyframes xkt-spacing-breathe{0%,100%{letter-spacing:var(--x-kinetic-typography-letter-spacing);}50%{letter-spacing:0.15em;}}@keyframes xkt-color-shift{0%,100%{fill:var(--x-kinetic-typography-color-shift-from);}50%{fill:var(--x-kinetic-typography-color-shift-to);}}@keyframes xkt-color-wave{0%,100%{fill:var(--x-kinetic-typography-color-shift-from);}50%{fill:var(--x-kinetic-typography-color-shift-to);}}:host([data-effect~\x3dopacity-wave]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dsize-pulse]) [part\x3dtext]{animation:xkt-size-pulse var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dcolor-shift]) [part\x3dtext]{animation:xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dopacity-wave][data-effect~\x3dcolor-shift]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dopacity-wave][data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dcolor-shift][data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}:host([data-effect~\x3dopacity-wave][data-effect~\x3dcolor-shift][data-effect~\x3dspacing-breathe]) [part\x3dtext]{animation:xkt-opacity-wave var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite,xkt-spacing-breathe var(--x-kinetic-typography-duration) ease-in-out infinite;}[part\x3dpath-line]{fill:none;stroke:var(--x-kinetic-typography-path-stroke);stroke-width:var(--x-kinetic-typography-path-stroke-width);}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dcrawl-viewport]{display:none;}:host([data-preset\x3dcrawl]) [part\x3dsvg]{display:none;}:host([data-preset\x3dcrawl]) [part\x3dcrawl-viewport]{display:block;perspective:var(--x-kinetic-typography-crawl-perspective);height:100%;overflow:hidden;position:relative;}:host([data-preset\x3dcrawl]) [part\x3dcrawl-text]{position:absolute;bottom:0;left:50%;transform:translateX(-50%) rotateX(25deg);transform-origin:50% 100%;text-align:center;font-family:var(--x-kinetic-typography-font-family);font-size:var(--x-kinetic-typography-font-size);font-weight:var(--x-kinetic-typography-font-weight);color:var(--x-kinetic-typography-color);letter-spacing:var(--x-kinetic-typography-letter-spacing);white-space:pre-line;line-height:1.6;width:80%;}@keyframes xkt-crawl{0%{bottom:-100%;opacity:1;}90%{opacity:1;}100%{bottom:200%;opacity:0;}}:host([data-preset\x3dcrawl][data-animation\x3dscroll]) [part\x3dcrawl-text]{animation:xkt-crawl var(--x-kinetic-typography-duration) linear infinite;}:host([data-preset\x3dcrawl][data-animation\x3dscroll][data-direction\x3dreverse]) [part\x3dcrawl-text]{animation-direction:reverse;}:host([data-preset\x3dcrawl][data-effect~\x3dcolor-shift]) [part\x3dcrawl-text]{animation:xkt-crawl var(--x-kinetic-typography-duration) linear infinite,xkt-crawl-color-shift var(--x-kinetic-typography-duration) ease-in-out infinite;}@keyframes xkt-crawl-color-shift{0%,100%{color:var(--x-kinetic-typography-color-shift-from);}50%{color:var(--x-kinetic-typography-color-shift-to);}}@media (prefers-reduced-motion:reduce){:host([data-effect]) [part\x3dtext]{animation:none;}:host([data-preset\x3dcrawl]) [part\x3dcrawl-text]{animation:none;}}";
|
|
24
24
|
d.setAttribute("part","container");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");h.setAttribute("id",y);g.appendChild(h);l.setAttribute("part","path-line");e.appendChild(l);m.setAttribute("part","text");p.setAttribute("href","#"+$APP.T.g(y));m.appendChild(p);e.appendChild(g);e.appendChild(m);v.setAttribute("part","crawl-viewport");x.setAttribute("part","crawl-text");v.appendChild(x);q.classList.add("sr-only");q.setAttribute("part","sr-only");
|
|
25
|
-
d.appendChild(e);d.appendChild(v);d.appendChild(q);b.appendChild(c);b.appendChild(d);this.__xKineticTypographyContainer=d;this.__xKineticTypographySvg=e;this.__xKineticTypographyPath=h;this.__xKineticTypographyText=m;this.__xKineticTypographyTextPath=p;this.__xKineticTypographySrOnly=q;this.__xKineticTypographyPathId=y;this.__xKineticTypographyCrawlViewport=v;this.__xKineticTypographyCrawlText=x;this.__xKineticTypographyEchoEls=[];this.__xKineticTypographyInit=!0}
|
|
26
|
-
function(){
|
|
27
|
-
$APP.Zd.prototype.ra=
|
|
28
|
-
$APP.ye.prototype.ra=
|
|
29
|
-
$APP.
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
$APP.f.oc=$APP.Ob;$APP.f.toString=function(){return this.ob};$APP.f.R=function(a,b){return(a=b!=null?$APP.Ob===b.oc?!0:!1:!1)?this.ob===b.ob:a};$APP.f.S=function(a,b){return $APP.nb(b,['#uuid "',$APP.qa(this.ob),'"'].join(""))};$APP.f.T=function(){this.B==null&&(this.B=$APP.Pb(this.ob));return this.B};$APP.f.Ha=function(a,b){if(b instanceof
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
$APP.zf([$APP.
|
|
36
|
-
[$APP.Z,$APP.Y,$APP.Ik,"start-size"],null),new $APP.
|
|
37
|
-
null),new $APP.
|
|
38
|
-
var
|
|
39
|
-
null),null),
|
|
40
|
-
null),"spiral",new $APP.
|
|
25
|
+
d.appendChild(e);d.appendChild(v);d.appendChild(q);b.appendChild(c);b.appendChild(d);this.__xKineticTypographyContainer=d;this.__xKineticTypographySvg=e;this.__xKineticTypographyPath=h;this.__xKineticTypographyText=m;this.__xKineticTypographyTextPath=p;this.__xKineticTypographySrOnly=q;this.__xKineticTypographyPathId=y;this.__xKineticTypographyCrawlViewport=v;this.__xKineticTypographyCrawlText=x;this.__xKineticTypographyEchoEls=[];this.__xKineticTypographyInit=!0}$N(this);return null};a.prototype.disconnectedCallback=
|
|
26
|
+
function(){DN(this);$APP.n($APP.k(this,"__xKineticTypographySvg"))&&FN(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticTypographyInit"))&&$N(this);return null};bO(a.prototype);return a},eO=function(){$APP.n(customElements.get("x-kinetic-typography"))||customElements.define("x-kinetic-typography",dO());return null};$APP.Ub.prototype.ra=rN(6,function(a,b){return b>0?this.u+b<this.j.length?new $APP.Ub(this.j,this.u+b,null):null:this});
|
|
27
|
+
$APP.Zd.prototype.ra=rN(5,function(a,b){if(this.count===-1)return this;a=this.count-b;return a>0?new $APP.Zd(null,a,this.o,null):null});$APP.O.prototype.ra=rN(4,function(a,b){if(b<this.l){a=b%32;var c=$APP.oe(this,b);b-=a;return $APP.ze?$APP.ze(this,c,b,a):$APP.Be.call(null,this,c,b,a)}return null});
|
|
28
|
+
$APP.ye.prototype.ra=rN(3,function(a,b){a=this.ja+b;if(a<this.node.length)return $APP.ze?$APP.ze(this.ka,this.node,this.u,a):$APP.Be.call(null,this.ka,this.node,this.u,a);var c=this.u+a;if(c<$APP.wa(this.ka)){a=c%32;b=this.ka;var d=$APP.oe(this.ka,c);c-=a;return $APP.ze?$APP.ze(b,d,c,a):$APP.Be.call(null,b,d,c,a)}return null});$APP.Qe.prototype.ra=rN(2,function(a,b){return b<this.O(null)?new $APP.Qe(this.j,this.u+2*b,null):null});
|
|
29
|
+
$APP.Q.prototype.ra=rN(1,function(a,b){a=this.P(null);return a==null?null:sN(a,b)});$APP.ag.prototype.ra=rN(0,function(a,b){return b>0?b<this.l?new $APP.ag(null,this.start+this.step*b,this.end,this.step,this.l-b,null):null:this});
|
|
30
|
+
var ZN=function ZN(a){switch(arguments.length){case 0:return ZN.H();case 1:return ZN.g(arguments[0]);case 2:return ZN.i(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ZN.C(arguments[0],arguments[1],2<c.length?new $APP.Ub(c.slice(2),0,null):null)}};ZN.H=function(){return $APP.Xb};ZN.g=function(a){return new $APP.rd(null,function(){return a},null)};
|
|
31
|
+
ZN.i=function(a,b){return new $APP.rd(null,function(){var c=$APP.t(a),d=$APP.t(b);return c&&d?$APP.od($APP.u(c),$APP.od($APP.u(d),ZN.i($APP.Yb(c),$APP.Yb(d)))):null},null)};ZN.C=function(a,b,c){return new $APP.rd(null,function(){var d=$APP.ae.i($APP.t,$APP.ld.C(c,b,$APP.uc([a])));return $APP.Sd($APP.dd,d)?$APP.$d.i($APP.ae.i($APP.u,d),$APP.Jd(ZN,$APP.ae.i($APP.Yb,d))):null},null)};ZN.J=function(a){var b=$APP.u(a),c=$APP.w(a);a=$APP.u(c);c=$APP.w(c);return this.C(b,a,c)};ZN.N=2;$APP.f=xN.prototype;
|
|
32
|
+
$APP.f.oc=$APP.Ob;$APP.f.toString=function(){return this.ob};$APP.f.R=function(a,b){return(a=b!=null?$APP.Ob===b.oc?!0:!1:!1)?this.ob===b.ob:a};$APP.f.S=function(a,b){return $APP.nb(b,['#uuid "',$APP.qa(this.ob),'"'].join(""))};$APP.f.T=function(){this.B==null&&(this.B=$APP.Pb(this.ob));return this.B};$APP.f.Ha=function(a,b){if(b instanceof xN)return $APP.ka(this.ob,b.ob);throw Error(["Cannot compare ",$APP.qa(this)," to ",$APP.qa(b)].join(""));};
|
|
33
|
+
var ON=new $APP.K(null,"echo-opacity","echo-opacity",-1476699970),IN=new $APP.K(null,"start-size","start-size",-1818812493),VN=new $APP.K(null,"crawl?","crawl?",829918610),GN=new $APP.K(null,"echo-scale","echo-scale",1307207648),LN=new $APP.K(null,"echo-delay","echo-delay",845689658),MN=new $APP.K(null,"echo-count","echo-count",1053271067),TN=new $APP.K(null,"view-box","view-box",-1792199155),JN=new $APP.K(null,"repeat","repeat",832692087),YN=new $APP.K(null,"custom-path?","custom-path?",-1532616839),
|
|
34
|
+
KN=new $APP.K(null,"effect","effect",347343289),XN=new $APP.K(null,"duration-s","duration-s",-1976899627),HN=new $APP.K(null,"font-size","font-size",-1847940346),WN=new $APP.K(null,"effects","effects",-282369292),NN=new $APP.K(null,"end-size","end-size",761612093);var cO="text path preset animation speed direction effect font-size start-size end-size repeat echo-count echo-delay echo-opacity echo-scale".split(" ");
|
|
35
|
+
$APP.zf([$APP.Zk,new $APP.K(null,"startSize","startSize",-1750632892),$APP.Wg,$APP.Gj,new $APP.K(null,"echoCount","echoCount",-1194377974),new $APP.K(null,"echoScale","echoScale",1536204716),new $APP.K(null,"echoOpacity","echoOpacity",-1325258611),$APP.Fk,JN,new $APP.K(null,"fontSize","fontSize",919623033),KN,new $APP.K(null,"echoDelay","echoDelay",-1807132900),new $APP.K(null,"endSize","endSize",674490141),$APP.tj,$APP.Cl],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"path"],null),new $APP.Q(null,2,
|
|
36
|
+
[$APP.Z,$APP.Y,$APP.Ik,"start-size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"echo-count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"echo-scale"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"echo-opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"preset"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"repeat"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"font-size"],
|
|
37
|
+
null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"effect"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"echo-delay"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"end-size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"direction"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"text"],null)]);
|
|
38
|
+
var PN=new $APP.S(null,new $APP.Q(null,8,["spiral",null,"infinity",null,"arc",null,"line",null,"crawl",null,"wave",null,"circle",null,"sine",null],null),null),QN=new $APP.S(null,new $APP.Q(null,4,["none",null,"scroll",null,"bounce",null,"oscillate",null],null),null),RN=new $APP.S(null,new $APP.Q(null,2,["reverse",null,"normal",null],null),null),SN=new $APP.S(null,new $APP.Q(null,6,["spacing-breathe",null,"color-shift",null,"opacity-wave",null,"color-wave",null,"size-gradient",null,"size-pulse",null],
|
|
39
|
+
null),null),UN=new $APP.Q(null,7,["wave",new $APP.Q(null,2,[$APP.Sl,"M0,100 C100,20 200,180 300,100 C400,20 500,180 600,100 C700,20 800,180 800,100",TN,"0 0 800 200"],null),"circle",new $APP.Q(null,2,[$APP.Sl,"M125,10 A115,115 0 1,1 124.99,10",TN,"0 0 250 250"],null),"arc",new $APP.Q(null,2,[$APP.Sl,"M50,350 Q400,10 750,350",TN,"0 0 800 400"],null),"infinity",new $APP.Q(null,2,[$APP.Sl,"M200,200 C200,80 0,80 0,200 C0,320 200,320 200,200 C200,80 400,80 400,200 C400,320 200,320 200,200",TN,"0 0 400 400"],
|
|
40
|
+
null),"spiral",new $APP.Q(null,2,[$APP.Sl,"M250,250 C250,150 350,150 350,250 C350,370 130,370 130,250 C130,110 390,110 390,250 C390,410 90,410 90,250",TN,"0 0 500 500"],null),"sine",new $APP.Q(null,2,[$APP.Sl,"M0,100 C50,0 100,0 150,100 C200,200 250,200 300,100 C350,0 400,0 450,100 C500,200 550,200 600,100 C650,0 700,0 750,100 C800,200 800,150 800,100",TN,"0 0 800 200"],null),"line",new $APP.Q(null,2,[$APP.Sl,"M0,50 L800,50",TN,"0 0 800 100"],null)],null);$APP.ha("baredom.exports.x_kinetic_typography.init",eO);export const init=eO;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// x-liquid-dock.d.ts — auto-generated by generate_types.bb, do not edit
|
|
2
|
+
|
|
3
|
+
export function init(): void;
|
|
4
|
+
|
|
5
|
+
export interface XLiquidDockEventMap {
|
|
6
|
+
"x-liquid-dock-select": CustomEvent<{ index: number; item: any; source: string }>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface XLiquidDock extends HTMLElement {
|
|
10
|
+
rippleScale: number;
|
|
11
|
+
color: string;
|
|
12
|
+
magnetStrength: number;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
threshold: string;
|
|
15
|
+
magnetRadius: number;
|
|
16
|
+
bobIntensity: number;
|
|
17
|
+
rippleSpeed: number;
|
|
18
|
+
gap: number;
|
|
19
|
+
position: string;
|
|
20
|
+
|
|
21
|
+
addEventListener<K extends keyof XLiquidDockEventMap>(
|
|
22
|
+
type: K,
|
|
23
|
+
listener: (this: XLiquidDock, ev: XLiquidDockEventMap[K]) => any,
|
|
24
|
+
options?: boolean | AddEventListenerOptions
|
|
25
|
+
): void;
|
|
26
|
+
addEventListener(
|
|
27
|
+
type: string,
|
|
28
|
+
listener: EventListenerOrEventListenerObject,
|
|
29
|
+
options?: boolean | AddEventListenerOptions
|
|
30
|
+
): void;
|
|
31
|
+
removeEventListener<K extends keyof XLiquidDockEventMap>(
|
|
32
|
+
type: K,
|
|
33
|
+
listener: (this: XLiquidDock, ev: XLiquidDockEventMap[K]) => any,
|
|
34
|
+
options?: boolean | EventListenerOptions
|
|
35
|
+
): void;
|
|
36
|
+
removeEventListener(
|
|
37
|
+
type: string,
|
|
38
|
+
listener: EventListenerOrEventListenerObject,
|
|
39
|
+
options?: boolean | EventListenerOptions
|
|
40
|
+
): void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
"x-liquid-dock": XLiquidDock;
|
|
46
|
+
}
|
|
47
|
+
}
|