{fontError}
} ++ Solange die Bilder einer Seite noch nicht fertig geladen sind, wird statt des Inhalts + ein Lade-Symbol angezeigt – verhindert, dass Bilder nachträglich "einpoppen". Wirkt + sich nicht auf das Dashboard aus, nur auf die öffentliche Website. +
+ +
diff --git a/hifi/api/database/migration_page_loader.sql b/hifi/api/database/migration_page_loader.sql
new file mode 100644
index 0000000..cc6666e
--- /dev/null
+++ b/hifi/api/database/migration_page_loader.sql
@@ -0,0 +1,10 @@
+USE hifi_shop;
+
+-- An-/abschaltbarer Lade-Bildschirm: solange die Bilder einer Seite noch nicht fertig geladen
+-- sind, wird statt des Inhalts ein Lade-Symbol gezeigt, damit nichts "einpoppt". Additiv,
+-- nichts wird geloescht.
+-- Hinweis: Auf der Live-Seite reicht stattdessen ein Klick auf "Datenbankstruktur aktualisieren"
+-- unter Admin-Panel -> Einstellungen -> Datenbank.
+
+ALTER TABLE app_settings
+ ADD COLUMN IF NOT EXISTS page_loader_enabled TINYINT(1) NOT NULL DEFAULT 1 AFTER site_font;
diff --git a/hifi/api/database/schema.sql b/hifi/api/database/schema.sql
index ba1f47f..0f0b8c2 100644
--- a/hifi/api/database/schema.sql
+++ b/hifi/api/database/schema.sql
@@ -43,6 +43,7 @@ CREATE TABLE app_settings (
gallery_card_text_x TINYINT UNSIGNED NOT NULL DEFAULT 0,
gallery_card_text_y TINYINT UNSIGNED NOT NULL DEFAULT 100,
site_font VARCHAR(255) NULL,
+ page_loader_enabled TINYINT(1) NOT NULL DEFAULT 1,
mail_host VARCHAR(255) NULL,
mail_port INT NULL,
mail_username VARCHAR(255) NULL,
diff --git a/hifi/api/src/Controllers/SettingsController.php b/hifi/api/src/Controllers/SettingsController.php
index c8a916e..d7623c9 100644
--- a/hifi/api/src/Controllers/SettingsController.php
+++ b/hifi/api/src/Controllers/SettingsController.php
@@ -44,7 +44,7 @@ class SettingsController
'ga_measurement_id', 'ga_property_id', 'google_place_id',
'package_card_theme', 'package_card_layout', 'package_wheel_hint_interval',
'package_card_width', 'package_card_height', 'vehicle_tile_width', 'vehicle_tile_height',
- 'gallery_card_text_x', 'gallery_card_text_y', 'site_font',
+ 'gallery_card_text_x', 'gallery_card_text_y', 'site_font', 'page_loader_enabled',
'mail_host', 'mail_port', 'mail_username', 'mail_encryption',
'mail_from_email', 'mail_from_name', 'mail_notify_email',
'mail_customer_subject', 'mail_customer_body', 'mail_owner_subject', 'mail_owner_body',
diff --git a/hifi/api/src/Controllers/SiteSettingsController.php b/hifi/api/src/Controllers/SiteSettingsController.php
index e61862f..0730ad4 100644
--- a/hifi/api/src/Controllers/SiteSettingsController.php
+++ b/hifi/api/src/Controllers/SiteSettingsController.php
@@ -33,6 +33,7 @@ class SiteSettingsController
'gallery_card_text_x' => 0,
'gallery_card_text_y' => 100,
'site_font' => null,
+ 'page_loader_enabled' => 1,
];
// Entspricht dem, was zuvor hart in Footer.jsx (isOpenNow() + die drei separaten
@@ -51,7 +52,7 @@ class SiteSettingsController
logo_path, logo_dark_path, business_hours, hero_image_path, ga_measurement_id,
package_card_theme, package_card_layout, package_wheel_hint_interval,
package_card_width, package_card_height, vehicle_tile_width, vehicle_tile_height,
- gallery_card_text_x, gallery_card_text_y, site_font';
+ gallery_card_text_x, gallery_card_text_y, site_font, page_loader_enabled';
public static function show(): void
{
@@ -121,6 +122,8 @@ class SiteSettingsController
$siteFont = '';
}
+ $pageLoaderEnabled = !empty($body['page_loader_enabled']) ? 1 : 0;
+
$newHeroImagePath = trim($body['hero_image_path'] ?? '') ?: null;
$newLogoPath = trim($body['logo_path'] ?? '') ?: null;
$newLogoDarkPath = trim($body['logo_dark_path'] ?? '') ?: null;
@@ -151,7 +154,7 @@ class SiteSettingsController
address_city = ?, logo_path = ?, logo_dark_path = ?, business_hours = ?, hero_image_path = ?,
ga_measurement_id = ?, package_card_theme = ?, package_card_layout = ?, package_wheel_hint_interval = ?,
package_card_width = ?, package_card_height = ?, vehicle_tile_width = ?, vehicle_tile_height = ?,
- gallery_card_text_x = ?, gallery_card_text_y = ?, site_font = ?
+ gallery_card_text_x = ?, gallery_card_text_y = ?, site_font = ?, page_loader_enabled = ?
WHERE id = 1'
);
$stmt->execute([
@@ -176,6 +179,7 @@ class SiteSettingsController
$galleryCardTextX,
$galleryCardTextY,
$siteFont ?: null,
+ $pageLoaderEnabled,
]);
Uploads::deleteIfOrphaned($old['hero_image_path'] ?? null, $newHeroImagePath);
diff --git a/hifi/api/src/Support/Schema.php b/hifi/api/src/Support/Schema.php
index 2ca98e9..cc23c98 100644
--- a/hifi/api/src/Support/Schema.php
+++ b/hifi/api/src/Support/Schema.php
@@ -60,6 +60,7 @@ class Schema
gallery_card_text_x TINYINT UNSIGNED NOT NULL DEFAULT 0,
gallery_card_text_y TINYINT UNSIGNED NOT NULL DEFAULT 100,
site_font VARCHAR(255) NULL,
+ page_loader_enabled TINYINT(1) NOT NULL DEFAULT 1,
mail_host VARCHAR(255) NULL,
mail_port INT NULL,
mail_username VARCHAR(255) NULL,
@@ -396,6 +397,7 @@ class Schema
'gallery_card_text_x' => 'TINYINT UNSIGNED NOT NULL DEFAULT 0',
'gallery_card_text_y' => 'TINYINT UNSIGNED NOT NULL DEFAULT 100',
'site_font' => 'VARCHAR(255) NULL',
+ 'page_loader_enabled' => 'TINYINT(1) NOT NULL DEFAULT 1',
'mail_host' => 'VARCHAR(255) NULL',
'mail_port' => 'INT NULL',
'mail_username' => 'VARCHAR(255) NULL',
diff --git a/hifi/assets/index-BbPnpRj7.js b/hifi/assets/index-CjqwSRnf.js
similarity index 74%
rename from hifi/assets/index-BbPnpRj7.js
rename to hifi/assets/index-CjqwSRnf.js
index 191ea27..9724737 100644
--- a/hifi/assets/index-BbPnpRj7.js
+++ b/hifi/assets/index-CjqwSRnf.js
@@ -26,10 +26,10 @@ import{r as v,g as n1,R as dM,D as hM,C as fM,M as pM,a as mM,P as gM,U as xM,b
`+_h+t}var Lh=!1;function Rh(t,e){if(!t||Lh)return"";Lh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
`),i=r.stack.split(`
`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
-`+s[o].replace(" at new "," at ");return t.displayName&&l.includes(" this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(MC.current||z_(),this.shouldReduceMotion=Cm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),hn(this.notifyUpdate),hn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&cC.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:d}=n.accelerate,h=new aC({element:this.current,name:e,keyframes:a,times:l,ease:u,duration:Ht(d)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const r=Eo.has(e);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in zu){const n=zu[e];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):He()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(MC.current||z4(),this.shouldReduceMotion=Cm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),fn(this.notifyUpdate),fn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&cC.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:d}=n.accelerate,h=new aC({element:this.current,name:e,keyframes:a,times:l,ease:u,duration:Ht(d)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const r=Eo.has(e);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in zu){const n=zu[e];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):He()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r 1&&s==this.$to.end(--r);)++s;return s}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:s}=this.frontier[n],i=nN?(E=S,S=null):E=S.sibling;var T=f(b,S,k[N],w);if(T===null){S===null&&(S=E);break}t&&S&&T.alternate===null&&e(b,S),g=i(T,g,N),j===null?C=T:j.sibling=T,j=T,S=E}if(N===k.length)return n(b,S),Ne&&ws(b,N),C;if(S===null){for(;NN?(E=S,S=null):E=S.sibling;var T=f(b,S,k[N],w);if(T===null){S===null&&(S=E);break}t&&S&&T.alternate===null&&e(b,S),g=i(T,g,N),j===null?C=T:j.sibling=T,j=T,S=E}if(N===k.length)return n(b,S),Ne&&ws(b,N),C;if(S===null){for(;Nt*1e3,on=t=>t/1e3,k0=(t,e)=>e?t*(1e3/e):0,AN=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,pD=1e-7,mD=12;function gD(t,e,n,r,s){let i,o,a=0;do o=e+(n-e)/2,i=AN(o,r,s)-t,i>0?n=o:e=o;while(Math.abs(i)>pD&&++a=Iu?1/0:e}function ZD(t,e=100,n){const r=n({...t,keyframes:[0,e]}),s=Math.min(T0(r),Iu);return{type:"keyframes",ease:i=>r.next(s*i).value/e,duration:on(s)}}const Pe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function lm(t,e){return t*Math.sqrt(1-e*e)}const QD=12;function e4(t,e,n){let r=n;for(let s=1;sLb&&(e.x=1),e.yx&&C,T=!1;const L=Array.isArray(w)?w:[w];let H=L.reduce(i(g),{});j===!1&&(H={});const{prevResolvedValues:_={}}=k,z={..._,...H},I=R=>{E=!0,p.has(R)&&(T=!0,p.delete(R)),k.needsAnimating[R]=!0;const M=t.getValue(R);M&&(M.liveStyle=!1)};for(const R in z){const M=H[R],$=_[R];if(m.hasOwnProperty(R))continue;let te=!1;ym(M)&&ym($)?te=!HC(M,$)||N:te=M!==$,te?M!=null?I(R):p.add(R):M!==void 0&&p.has(R)?I(R):k.protectedKeys[R]=!0}k.prevProp=w,k.prevResolvedValues=H,k.isActive&&(m={...m,...H}),(r||s)&&t.blockInitialAnimation&&(E=!1);const O=S&&N;E&&(!O||T)&&f.push(...L.map(R=>{const M={type:g};if(typeof R=="string"&&(r||s)&&!O&&t.manuallyAnimateOnMount&&t.parent){const{parent:$}=t,te=Vs($,R);if($.enteringChildren&&te){const{delayChildren:ae}=te.transition||{};M.delay=uC($.enteringChildren,t,ae)}}return{animation:R,options:M}}))}if(p.size){const b={};if(typeof d.initial!="boolean"){const g=Vs(t,Array.isArray(d.initial)?d.initial[0]:d.initial);g&&g.transition&&(b.transition=g.transition)}p.forEach(g=>{const k=t.getBaseTarget(g),w=t.getValue(g);w&&(w.liveStyle=!0),b[g]=k??null}),f.push({animation:b})}let y=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,s=!1,y?e(f):Promise.resolve()}function l(u,d){var f;if(n[u].isActive===d)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(p=>{var m;return(m=p.animationState)==null?void 0:m.setActive(u,d)}),n[u].isActive=d;const h=a(u);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=zb(),s=!0}}}function cL(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!HC(e,t):!1}function vs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zb(){return{animate:vs(!0),whileInView:vs(),whileHover:vs(),whileTap:vs(),whileDrag:vs(),whileFocus:vs(),exit:vs()}}function Mm(t,e){t.min=e.min,t.max=e.max}function yn(t,e){Mm(t.x,e.x),Mm(t.y,e.y)}function Fb(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const WC=1e-4,uL=1-WC,dL=1+WC,UC=.01,hL=0-UC,fL=0+UC;function St(t){return t.max-t.min}function pL(t,e,n){return Math.abs(t-e)<=n}function Vb(t,e,n,r=.5){t.origin=r,t.originPoint=ge(e.min,e.max,t.origin),t.scale=St(n)/St(e),t.translate=ge(n.min,n.max,t.origin)-t.originPoint,(t.scale>=uL&&t.scale<=dL||isNaN(t.scale))&&(t.scale=1),(t.translate>=hL&&t.translate<=fL||isNaN(t.translate))&&(t.translate=0)}function ya(t,e,n,r){Vb(t.x,e.x,n.x,r?r.originX:void 0),Vb(t.y,e.y,n.y,r?r.originY:void 0)}function $b(t,e,n,r=0){const s=r?ge(n.min,n.max,r):n.min;t.min=s+e.min,t.max=t.min+St(e)}function mL(t,e,n,r){$b(t.x,e.x,n.x,r==null?void 0:r.x),$b(t.y,e.y,n.y,r==null?void 0:r.y)}function Hb(t,e,n,r=0){const s=r?ge(n.min,n.max,r):n.min;t.min=e.min-s,t.max=t.min+St(e)}function Vu(t,e,n,r){Hb(t.x,e.x,n.x,r==null?void 0:r.x),Hb(t.y,e.y,n.y,r==null?void 0:r.y)}function Wb(t,e,n,r,s){return t-=e,t=Fu(t,1/n,r),s!==void 0&&(t=Fu(t,1/s,r)),t}function gL(t,e=0,n=1,r=.5,s,i=t,o=t){if(Kn.test(e)&&(e=parseFloat(e),e=ge(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=ge(i.min,i.max,r);t===i&&(a-=e),t.min=Wb(t.min,e,n,a,s),t.max=Wb(t.max,e,n,a,s)}function Ub(t,e,[n,r,s],i,o){gL(t,e[n],e[r],e[s],e.scale,i,o)}const xL=["x","scaleX","originX"],yL=["y","scaleY","originY"];function Kb(t,e,n,r){Ub(t.x,e,xL,n?n.x:void 0,r?r.x:void 0),Ub(t.y,e,yL,n?n.y:void 0,r?r.y:void 0)}function Gb(t){return t.translate===0&&t.scale===1}function KC(t){return Gb(t.x)&&Gb(t.y)}function qb(t,e){return t.min===e.min&&t.max===e.max}function bL(t,e){return qb(t.x,e.x)&&qb(t.y,e.y)}function Jb(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function GC(t,e){return Jb(t.x,e.x)&&Jb(t.y,e.y)}function Yb(t){return St(t.x)/St(t.y)}function Xb(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Bn(t){return[t("x"),t("y")]}function vL(t,e,n){let r="";const s=t.x.translate/e.x,i=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:d,pathRotation:h,rotateX:f,rotateY:p,skewX:m,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotate(${h}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const kL=B0.length,Zb=t=>typeof t=="string"?parseFloat(t):t,Qb=t=>typeof t=="number"||q.test(t);function wL(t,e,n,r,s,i){s?(t.opacity=ge(0,n.opacity??1,SL(r)),t.opacityExit=ge(e.opacity??1,0,NL(r))):i&&(t.opacity=ge(e.opacity??1,n.opacity??1,r));for(let o=0;o
t*1e3,an=t=>t/1e3,k0=(t,e)=>e?t*(1e3/e):0,AN=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,pD=1e-7,mD=12;function gD(t,e,n,r,s){let i,o,a=0;do o=e+(n-e)/2,i=AN(o,r,s)-t,i>0?n=o:e=o;while(Math.abs(i)>pD&&++a=Iu?1/0:e}function ZD(t,e=100,n){const r=n({...t,keyframes:[0,e]}),s=Math.min(T0(r),Iu);return{type:"keyframes",ease:i=>r.next(s*i).value/e,duration:an(s)}}const Pe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function lm(t,e){return t*Math.sqrt(1-e*e)}const QD=12;function e_(t,e,n){let r=n;for(let s=1;sLb&&(e.x=1),e.yx&&C,T=!1;const L=Array.isArray(w)?w:[w];let H=L.reduce(i(g),{});j===!1&&(H={});const{prevResolvedValues:_={}}=k,z={..._,...H},I=R=>{E=!0,p.has(R)&&(T=!0,p.delete(R)),k.needsAnimating[R]=!0;const M=t.getValue(R);M&&(M.liveStyle=!1)};for(const R in z){const M=H[R],$=_[R];if(m.hasOwnProperty(R))continue;let te=!1;ym(M)&&ym($)?te=!HC(M,$)||N:te=M!==$,te?M!=null?I(R):p.add(R):M!==void 0&&p.has(R)?I(R):k.protectedKeys[R]=!0}k.prevProp=w,k.prevResolvedValues=H,k.isActive&&(m={...m,...H}),(r||s)&&t.blockInitialAnimation&&(E=!1);const O=S&&N;E&&(!O||T)&&f.push(...L.map(R=>{const M={type:g};if(typeof R=="string"&&(r||s)&&!O&&t.manuallyAnimateOnMount&&t.parent){const{parent:$}=t,te=Vs($,R);if($.enteringChildren&&te){const{delayChildren:ae}=te.transition||{};M.delay=uC($.enteringChildren,t,ae)}}return{animation:R,options:M}}))}if(p.size){const b={};if(typeof d.initial!="boolean"){const g=Vs(t,Array.isArray(d.initial)?d.initial[0]:d.initial);g&&g.transition&&(b.transition=g.transition)}p.forEach(g=>{const k=t.getBaseTarget(g),w=t.getValue(g);w&&(w.liveStyle=!0),b[g]=k??null}),f.push({animation:b})}let y=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,s=!1,y?e(f):Promise.resolve()}function l(u,d){var f;if(n[u].isActive===d)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(p=>{var m;return(m=p.animationState)==null?void 0:m.setActive(u,d)}),n[u].isActive=d;const h=a(u);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=zb(),s=!0}}}function cL(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!HC(e,t):!1}function vs(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zb(){return{animate:vs(!0),whileInView:vs(),whileHover:vs(),whileTap:vs(),whileDrag:vs(),whileFocus:vs(),exit:vs()}}function Mm(t,e){t.min=e.min,t.max=e.max}function yn(t,e){Mm(t.x,e.x),Mm(t.y,e.y)}function Fb(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const WC=1e-4,uL=1-WC,dL=1+WC,UC=.01,hL=0-UC,fL=0+UC;function St(t){return t.max-t.min}function pL(t,e,n){return Math.abs(t-e)<=n}function Vb(t,e,n,r=.5){t.origin=r,t.originPoint=ge(e.min,e.max,t.origin),t.scale=St(n)/St(e),t.translate=ge(n.min,n.max,t.origin)-t.originPoint,(t.scale>=uL&&t.scale<=dL||isNaN(t.scale))&&(t.scale=1),(t.translate>=hL&&t.translate<=fL||isNaN(t.translate))&&(t.translate=0)}function ya(t,e,n,r){Vb(t.x,e.x,n.x,r?r.originX:void 0),Vb(t.y,e.y,n.y,r?r.originY:void 0)}function $b(t,e,n,r=0){const s=r?ge(n.min,n.max,r):n.min;t.min=s+e.min,t.max=t.min+St(e)}function mL(t,e,n,r){$b(t.x,e.x,n.x,r==null?void 0:r.x),$b(t.y,e.y,n.y,r==null?void 0:r.y)}function Hb(t,e,n,r=0){const s=r?ge(n.min,n.max,r):n.min;t.min=e.min-s,t.max=t.min+St(e)}function Vu(t,e,n,r){Hb(t.x,e.x,n.x,r==null?void 0:r.x),Hb(t.y,e.y,n.y,r==null?void 0:r.y)}function Wb(t,e,n,r,s){return t-=e,t=Fu(t,1/n,r),s!==void 0&&(t=Fu(t,1/s,r)),t}function gL(t,e=0,n=1,r=.5,s,i=t,o=t){if(Kn.test(e)&&(e=parseFloat(e),e=ge(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=ge(i.min,i.max,r);t===i&&(a-=e),t.min=Wb(t.min,e,n,a,s),t.max=Wb(t.max,e,n,a,s)}function Ub(t,e,[n,r,s],i,o){gL(t,e[n],e[r],e[s],e.scale,i,o)}const xL=["x","scaleX","originX"],yL=["y","scaleY","originY"];function Kb(t,e,n,r){Ub(t.x,e,xL,n?n.x:void 0,r?r.x:void 0),Ub(t.y,e,yL,n?n.y:void 0,r?r.y:void 0)}function Gb(t){return t.translate===0&&t.scale===1}function KC(t){return Gb(t.x)&&Gb(t.y)}function qb(t,e){return t.min===e.min&&t.max===e.max}function bL(t,e){return qb(t.x,e.x)&&qb(t.y,e.y)}function Jb(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function GC(t,e){return Jb(t.x,e.x)&&Jb(t.y,e.y)}function Yb(t){return St(t.x)/St(t.y)}function Xb(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Bn(t){return[t("x"),t("y")]}function vL(t,e,n){let r="";const s=t.x.translate/e.x,i=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:d,pathRotation:h,rotateX:f,rotateY:p,skewX:m,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotate(${h}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const kL=B0.length,Zb=t=>typeof t=="string"?parseFloat(t):t,Qb=t=>typeof t=="number"||q.test(t);function wL(t,e,n,r,s,i){s?(t.opacity=ge(0,n.opacity??1,SL(r)),t.opacityExit=ge(e.opacity??1,0,NL(r))):i&&(t.opacity=ge(e.opacity??1,n.opacity??1,r));for(let o=0;o
-1&&l.updateNodeAt(u,d,h,p,e)||l.updateNextNode(u,d,h,e,f,s)||l.addNode(u,d,h,e,s),s+=u.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==_s)&&(o&&this.protectLocalComposition(e,o),VE(this.contentDOM,this.children,e),ho&&t6(this.dom))}localCompositionInfo(e,n){let{from:r,to:s}=e.state.selection;if(!(e.state.selection instanceof Z)||r{t.state==s&&fr(t)},50)}function Hk(t,e){let n=t.state.doc.resolve(e);if(!(ot||DE)&&n.parent.inlineContent){let s=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),o=(i.top+i.bottom)/2;if(o>s.top&&o