| @@ -1 +1,3 @@ | ||
| 1 | -(()=>{"use strict";const t=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),e=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}},n="@media only screen and (min-width: 1025px)",o="@media only screen and (max-width: 1024px)",i="@media only screen and (max-width: 640px)";window.React;const a=t=>{const n=e(t);return n?`url('${n.replace(/['"()]/g,"")}')`:"none"},r=(e,n)=>t(n)?`${e}: ${n};`:"",s=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},l=e=>{const{position:n="center center",xPosition:o=0,yPosition:i=0,attachment:a="",repeat:r="no-repeat",size:s="cover",customSize:l="0px"}=e||{},c=e=>"initial"!==e||t(e);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${o} ${i}`:n};`:""}\n\t\t${a&&c(a)?`background-attachment: ${a};`:""}\n\t\t${c(r)?`background-repeat: ${r};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},c=(e={})=>e?{desktop:t(e.url)?`background-image: ${a(e.url)}; ${l(e?.desktop)}`:"",tablet:t(e.url)?l(e?.tablet):"",mobile:t(e.url)?l(e?.mobile):""}:"",M=(n,a,s=!1)=>{const{type:l="color",color:M,gradient:d,img:u,video:p}=n||{},$="color"===l?r("background",M):"gradient"===l?(e=>{const{type:n="linear",radialType:o="ellipse",colors:i=[],centerPositions:a={x:0,y:0},angel:s=0}=e||{};if(t(e)){const t=i?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${s}deg, ${t})`;return r("background","radial"===n?`radial-gradient(${o} at ${a?.x}% ${a?.y}%,${t})`:e)}return""})(d):"image"===l?c(u).desktop:"",m="image"===l?c(u).tablet:"",y="image"===l?c(u).mobile:"",j=s?`${a}:hover`:a;return`\n\t\t${"video"===l?((t,n)=>{const{url:o,loop:i}=t||{},a=document.querySelector(n),r=a?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!r&&a&&o){const t=e(o);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),a.appendChild(s)}}return s.loop=i,s.play(),`${n} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(p,a):""}\n\n\t\t${$?`${j}{\n\t\t\t${$}\n\t\t}`:""}\n\n\t\t${m?`${o} {\n\t\t\t${j}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${y?`${i} {\n\t\t\t${j}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},d=(e,n,o=!1)=>{const{isEnabled:i,colors:a,opacity:s=1,blend:l,filter:c="",blur:d=0,brightness:u=100,contrast:p=100,saturation:$=100,hue:m=0,position:y={top:0,right:0,bottom:0,left:0},zIndex:j=-1}=e||{},N=`${100!==u?`brightness(${u}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==$?`saturate(${$}%)`:""} ${0!==d?`blur(${d}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,b=`${c}: ${c?N:""}; -webkit-${c}: ${c?N:""};`,L=o?`${n}:hover::after`:`${n}::after`;return i?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${t(y.top)?y.top:0};\n\t\t\tright:${t(y.right)?y.right:0};\n\t\t\tbottom:${t(y.bottom)?y.bottom:0};\n\t\t\tleft:${t(y.left)?y.left:0};\n\t\t\tz-index:${j};\n\t\t}\n\t\t${M(a,L,!1)}\n\t\t${L}{\n\t\t\t${r("opacity",s)}\n\t\t\t${r("mix-blend-mode",l)}\n\t\t\t${b}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},u=(e,n,a=!1)=>{const s=(e,n="desktop")=>{if(!t(e))return"";const{skew:o,scale:i,rotate:a,offset:s,flipX:l,flipY:c}=e,{threeDRotate:M}=a||{},{isProportion:d}=i||{},u=[];return t(o)&&(t(o?.[n]?.x)&&u.push(`skewX(${o[n].x}deg)`),t(o?.[n]?.y)&&u.push(`skewY(${o[n].y}deg)`)),d?t(i?.[n]?.scale)&&u.push(`scale(${i[n].scale})`):(t(i?.[n]?.x)&&u.push(`scaleX(${i[n].x})`),t(i?.[n]?.y)&&u.push(`scaleY(${i[n].y})`)),t(a)&&(t(a?.[n]?.z)&&u.push(`rotateZ(${a[n].z}deg)`),M&&(t(a?.[n]?.x)&&u.push(`rotateX(${a[n].x}deg)`),t(a?.[n]?.y)&&u.push(`rotateY(${a[n].y}deg)`))),t(s)&&(t(s?.[n]?.x)&&u.push(`translateX(${s[n].x})`),t(s?.[n]?.y)&&u.push(`translateY(${s[n].y})`)),t(l)&&u.push(l?"scaleX(-1)":""),t(c)&&u.push(c?"scaleY(-1)":""),0===u.length?"":r("transform",u.join(" "))},l=a?`${n}:hover`:n;return`\n\t\t${l} {\n\t\t\t${s(e,"desktop")}\n\t\t}\n\t\t${o}{\n\t\t\t${l} {\n\t\t\t\t${s(e,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${i}{\n\t\t\t${l} {\n\t\t\t\t${s(e,"mobile")}\n\t\t\t}\n\t\t}\n\t`},p=t=>{const{padding:e,margin:n,height:o,width:i}=t||{},a=(t,e)=>r(t,e),l=(t,e,n)=>a(t,e?.[t]?.[n])+a(`min-${t}`,e?.min?.[n])+a(`max-${t}`,e?.max?.[n]),c=t=>r("padding",s(t)),M=t=>r("margin",s(t));return{desktop:c(e?.desktop)+M(n?.desktop)+l("height",o,"desktop")+l("width",i,"desktop"),tablet:c(e?.tablet)+M(n?.tablet)+l("height",o,"tablet")+l("width",i,"tablet"),mobile:c(e?.mobile)+M(n?.mobile)+l("height",o,"mobile")+l("width",i,"mobile")}},$=t=>{const{normal:e,hover:n}=t||{},o=t=>{const{border:e,radius:n,shadow:o}=t||{},i=r("border-radius",s(n)),a=r("box-shadow",((t,e="box")=>{let n="";return t?.map(((o,i)=>{const{hOffset:a="0px",vOffset:r="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:M=!1}=o||{},d=M?"inset":"",u=`${a} ${r} ${s}`,p=i+1>=t.length?"":", ";n+="text"===e?`${u} ${c}${p}`:`${u} ${l} ${c} ${d}${p}`})),n||""})(o,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:o="0px"}=t;return`${o} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():r("border",e(t))})(e)+i+a};return{normal:o(e),hover:o(n)}},m=e=>{const{zIndex:n,overflow:o}=e||{},i=o?`overflow: ${o};`:"",a=e=>`${r("z-index",n?.[e])} ${r("position",t(n?.[e])?"relative":"")}`;return{desktop:a("desktop")+i,tablet:a("tablet"),mobile:a("mobile")}},y=(t,e)=>{const{desktop:n=!1,tablet:o=!1,mobile:i=!1}=t||{},a=e?"opacity: 0.5;":"display: none;",r=t=>t?a:"";return{desktop:r(n),tablet:r(o),mobile:r(i)}},j=(e,s,l=!1,c=!0)=>{const{dimension:j,transform:N,background:b,borderShadow:L,mask:x,animation:g,visibility:w,responsive:D,position:h={},floating:z={},motion:f={},css:v=""}=s||{},T=l?`#${e}>div>div${c?":first-child":""}`:`#${e}>div`;((t,e,n)=>{const o=n?`#${e} > div`:`#${e}`,i=document.querySelector(o);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(g,e,l);const k=p(j).desktop+m(w).desktop+((t,e,n)=>{const{transition:o=.4}=t||{},{transition:i=.4}=e||{},{transition:a=200}=n||{};return`transition: background ${o}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${a}ms ease-in-out;`})(b,L,N)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===n.type?a(n.url):`url(${(l=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDY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UsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===l))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===i.type?`${r("-webkit-mask-position-x",i.x)}\n\t\t\t${r("-webkit-mask-position-y",i.y)}`:`${r("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${s};`:""}`:"";var l})(x),I=p(j).tablet+m(w).tablet+y(D,l).tablet,S=p(j).mobile+m(w).mobile+y(D,l).mobile,O=$(L).normal,E=$(L).hover,Y=y(D,l).desktop;return`\n\t\t${k||O?`${T} {\n\t\t\t${k}\n\t\t\t${O}\n\t\t}`:""}\n\t\t${E?`${T}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${Y?`${n} {\n\t\t\t${T}{\n\t\t\t\t${Y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${o} {\n\t\t\t${T}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${i} {\n\t\t\t${T}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${M(b?.normal,T)}\n\t\t${M(b?.hover,T,!0)}\n\t\t${d(b?.overlay,T)}\n\t\t${d(b?.hoverOverlay,T,!0)}\n\t\t${t(N?.normal)?u(N?.normal,T):""}\n\t\t${t(N?.hover)?u(N?.hover,T,!0):""}\n\t\t${((t,e)=>{const{desktop:n={},tablet:a={},mobile:s={}}=t,l=(t={})=>`\n\t\t${e}{\n\t\t\t${r("position",t?.type)}\n\t\t\t${r("left",t?.horizontal?.left)}\n\t\t\t${r("right",t?.horizontal?.right)}\n\t\t\t${r("top",t?.vertical?.top)}\n\t\t\t${r("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${n?.type?l(n):""}\n\t\t\n\t\t${o}{\n\t\t\t${a?.type?l(a):""}\n\t\t}\n\n\t\t${i}{\n\t\t\t${s?.type?l(s):""}\n\t\t}\n\t`})(h,T)}\n\t\t${((e,n,o="")=>{const{translate:i={},rotate:a={},scale:r={},isEnabled:s=!1}=e||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:i,value:e=>["x","y"].some((n=>t(i?.[n]?.[e])))?`${i?.x?.[e]||0}px ${i?.y?.[e]||0}px`:""},{name:"Rotate",property:"transform",values:a,value:e=>["x","y","z"].filter((n=>t(a?.[n]?.[e]))).map((t=>`rotate${t.toUpperCase()}(${a[t][e]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:r,value:e=>{const n=r?.y?.[e],o=r?.z?.[e];return t(n)||t(o)?t(o)?`1 ${t(n)?n:1} ${o}`:`1 ${n}`:""}}].forEach((({name:t,property:e,values:n,value:i})=>{const a=i("from"),r=i("to");if(!a||!r)return;const s=Number(n?.duration)>0?Number(n.duration):1e3,M=Number(n?.delay)>0?Number(n.delay):0,d=`advFloat${t}${o?`-${o}`:""}`;l.push(`@keyframes ${d}{ from{ ${e}: ${a}; } to{ ${e}: ${r}; } }`),c.push(`${d} ${s}ms ease-in-out ${M}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${n}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(z,T,e)}\n\t\t${((e,a,r)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:M={},blur:d={},rotate:u={},scale:p={},effectsRelativeTo:$="viewport",effectOn:m=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:y=!1,mouseTrack:j={},tilt:N={},sticky:b={}}=e||{},L=(e,n)=>t(e)&&!isNaN(e)?Number(e):n,x="viewport"===$,g=x?"view()":"scroll(nearest block)",w=[],D=[],h=[],z=[],f=String(r??"").replace(/[^a-zA-Z0-9]/g,""),v=(t,e,n)=>{w.push(`@keyframes advMe${t}${f}{ ${e} }`),D.push(`advMe${t}${f}`),h.push(g),z.push((t=>{const e=L(t?.top,0),n=L(t?.bottom,100),o=Math.min(e,n),i=Math.max(e,n);return x?`cover ${o}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*o}vh, ${o}%) min(${3*i}vh, ${i}%)`})(n))};if(s){const t=l?.direction,e=c?.direction,n=t?100*L(l?.speed,4):0,o=e?100*L(c?.speed,4):0;if(n||o){const i="up"===t?-n:n,a="to-left"===e?-o:o,r=[n&&l,o&&c].filter(Boolean);v("Translate",`from{ translate: 0px 0px; } to{ translate: ${a}px ${i}px; }`,{top:Math.min(...r.map((t=>L(t?.top,0)))),bottom:Math.max(...r.map((t=>L(t?.bottom,100))))})}const i=M?.direction;if(i){const t=Math.max(0,1-L(M?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[i];e&&v("Opacity",e,M)}const a=d?.direction;if(a){const t=3*L(d?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[a];e&&v("Blur",e,d)}const r=u?.direction;if(r){const t=20*L(u?.level,4);v("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===r?-t:t}deg; }`,u)}if(p?.direction){const t=.15*L(p?.level,4),e=Math.max(0,1-t),n=1+t,o={"scale-up":`from{ scale: 1; } to{ scale: ${n}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${n}; } 100%{ scale: 1; }`}[p.direction];o&&v("Scale",o,p)}}const T=[];if(y){if(j?.direction){const t="direct"===j?.direction?100:-100;T.push(((e,n)=>`translate(${(e*t).toFixed(2)}px, ${(n*t).toFixed(2)}px)`))}if(N?.direction){const t=12*("direct"===N?.direction?1:-1);T.push(((e,n)=>`perspective(1000px) rotateX(${(n*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const k=(t,e,n)=>{if(!t||!t.defaultView)return;const o=t.defaultView,i=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),r=i.items.get(a)||{x:0,y:0};if(r.rate=e,r.build=n,i.items.set(a,r),i.bound)return;i.bound=!0;const s=e=>{const n=i.last?Math.min(e-i.last,100):16.7;i.last=e;let a=!1;i.items.forEach(((e,o)=>{const r=e.el&&e.el.isConnected?e.el:t.querySelector(o);if(!r)return;e.el=r;const s=e.rate*n/1e3,l=i.x-e.x,c=i.y-e.y,M=Math.sqrt(l*l+c*c);M<=s?(e.x=i.x,e.y=i.y):(e.x+=l/M*s,e.y+=c/M*s,a=!0),r.style.transform=e.build(e.x,e.y)})),i.frame=a?o.requestAnimationFrame(s):0,i.last=a?e:0};t.addEventListener("pointermove",(t=>{i.x=2*(t.clientX/o.innerWidth-.5),i.y=2*(t.clientY/o.innerHeight-.5),i.frame||(i.frame=o.requestAnimationFrame(s))}))};if(T.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*L(j?.speed,L(N?.speed,4))),e=(t,e)=>T.map((n=>n(t,e))).join(" ");k(document,t,e),k(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>b?.[t]||("desktop"===t?b?.undefined:""),S=a.split(">")[0],O=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},E=Array.isArray(m)?m:t(m)?[m]:[],Y=t=>!E.length||E.includes(t)?"":`${a}{ animation-name: none; }`;return`\n\t\t${D.length?`\n\t\t${w.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${a}{\n\t\t\t\tanimation-name: ${D.join(", ")};\n\t\t\t\tanimation-duration: ${D.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${D.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${D.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${D.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${h.join(", ")};\n\t\t\t\tanimation-range: ${z.join(", ")};\n\t\t\t}\n\t\t\t${Y("desktop")?`${n}{ ${Y("desktop")} }`:""}\n\t\t\t${Y("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${Y("tablet-portrait")} }`:""}\n\t\t\t${Y("mobile-portrait")?`${i}{ ${Y("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${T.length?`${a}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${O("desktop")?`${S}{ ${O("desktop")} }`:""}\n\t\t${O("tablet")?`${o}{ ${S}{ ${O("tablet")} } }`:""}\n\t\t${O("mobile")?`${i}{ ${S}{ ${O("mobile")} } }`:""}\n\t`})(f,T,e)}\n\t\t${v}\n\t`.replace(/\s+/g," ")};document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll("[data-bblocks-advanced]"),e=document.createElement("style");let n="";t.length&&t.forEach((t=>{(t=>{const e=t.getAttribute("data-bblocks-advanced");if(e)try{const o=JSON.parse(e),{animation:i}=o;i&&i?.type&&setTimeout((()=>{window.AOS.init()}),[]);const a=j(t.id,o);n+=a,t.removeAttribute("data-bblocks-advanced")}catch(t){console.error("Invalid JSON in data-bblocks-advanced attribute:",t)}})(t)})),n&&(e.innerHTML=n,document.head.appendChild(e))}))})(); | |
| 1 | +(()=>{"use strict";const t=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),e=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),i=e.documentElement;return!i||"svg"!==i.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),i=await e.text();return this.sanitize(`${i}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const i=e.name,n=i.toLowerCase(),o=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(i);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(o))return void t.removeAttribute(i);const r=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(o)?t.removeAttribute(i):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(i,this.sanitizeCss(o)):t.removeAttribute(i)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const i="@media only screen and (min-width: 1025px)",n="@media only screen and (max-width: 1024px)",o="@media only screen and (max-width: 640px)";window.React;const r=t=>{const i=e(t);return i?`url('${i.replace(/['"()]/g,"")}')`:"none"},a=(e,i)=>t(i)?`${e}: ${i};`:"",s=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},l=e=>{const{position:i="center center",xPosition:n=0,yPosition:o=0,attachment:r="",repeat:a="no-repeat",size:s="cover",customSize:l="0px"}=e||{},c=e=>"initial"!==e||t(e);return`\n\t\t${c(i)?`background-position: ${"custom"===i?`${n} ${o}`:i};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(a)?`background-repeat: ${a};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},c=(e={})=>e?{desktop:t(e.url)?`background-image: ${r(e.url)}; ${l(e?.desktop)}`:"",tablet:t(e.url)?l(e?.tablet):"",mobile:t(e.url)?l(e?.mobile):""}:"",d=(i,r,s=!1)=>{const{type:l="color",color:d,gradient:p,img:u,video:M}=i||{},m="color"===l?a("background",d):"gradient"===l?(e=>{const{type:i="linear",radialType:n="ellipse",colors:o=[],centerPositions:r={x:0,y:0},angel:s=0}=e||{};if(t(e)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${s}deg, ${t})`;return a("background","radial"===i?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(p):"image"===l?c(u).desktop:"",y="image"===l?c(u).tablet:"",$="image"===l?c(u).mobile:"",b=s?`${r}:hover`:r;return`\n\t\t${"video"===l?((t,i)=>{const{url:n,loop:o}=t||{},r=document.querySelector(i),a=r?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!a&&r&&n){const t=e(n);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=o,s.play(),`${i} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(M,r):""}\n\n\t\t${m?`${b}{\n\t\t\t${m}\n\t\t}`:""}\n\n\t\t${y?`${n} {\n\t\t\t${b}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${$?`${o} {\n\t\t\t${b}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},p=(e,i,n=!1)=>{const{isEnabled:o,colors:r,opacity:s=1,blend:l,filter:c="",blur:p=0,brightness:u=100,contrast:M=100,saturation:m=100,hue:y=0,position:$={top:0,right:0,bottom:0,left:0},zIndex:b=-1}=e||{},g=`${100!==u?`brightness(${u}%)`:""} ${100!==M?`contrast(${M}%)`:""} ${100!==m?`saturate(${m}%)`:""} ${0!==p?`blur(${p}px)`:""} ${0!==y?`hue-rotate(${y}deg)`:""}`,h=`${c}: ${c?g:""}; -webkit-${c}: ${c?g:""};`,w=n?`${i}:hover::after`:`${i}::after`;return o?`\n\t\t${i}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${i}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${t($.top)?$.top:0};\n\t\t\tright:${t($.right)?$.right:0};\n\t\t\tbottom:${t($.bottom)?$.bottom:0};\n\t\t\tleft:${t($.left)?$.left:0};\n\t\t\tz-index:${b};\n\t\t}\n\t\t${d(r,w,!1)}\n\t\t${w}{\n\t\t\t${a("opacity",s)}\n\t\t\t${a("mix-blend-mode",l)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},u=(e,i,r=!1)=>{const s=(e,i="desktop")=>{if(!t(e))return"";const{skew:n,scale:o,rotate:r,offset:s,flipX:l,flipY:c}=e,{threeDRotate:d}=r||{},{isProportion:p}=o||{},u=[];return t(n)&&(t(n?.[i]?.x)&&u.push(`skewX(${n[i].x}deg)`),t(n?.[i]?.y)&&u.push(`skewY(${n[i].y}deg)`)),p?t(o?.[i]?.scale)&&u.push(`scale(${o[i].scale})`):(t(o?.[i]?.x)&&u.push(`scaleX(${o[i].x})`),t(o?.[i]?.y)&&u.push(`scaleY(${o[i].y})`)),t(r)&&(t(r?.[i]?.z)&&u.push(`rotateZ(${r[i].z}deg)`),d&&(t(r?.[i]?.x)&&u.push(`rotateX(${r[i].x}deg)`),t(r?.[i]?.y)&&u.push(`rotateY(${r[i].y}deg)`))),t(s)&&(t(s?.[i]?.x)&&u.push(`translateX(${s[i].x})`),t(s?.[i]?.y)&&u.push(`translateY(${s[i].y})`)),t(l)&&u.push(l?"scaleX(-1)":""),t(c)&&u.push(c?"scaleY(-1)":""), | |
| 2 | +0===u.length?"":a("transform",u.join(" "))},l=r?`${i}:hover`:i;return`\n\t\t${l} {\n\t\t\t${s(e,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${l} {\n\t\t\t\t${s(e,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${o}{\n\t\t\t${l} {\n\t\t\t\t${s(e,"mobile")}\n\t\t\t}\n\t\t}\n\t`},M=t=>{const{padding:e,margin:i,height:n,width:o}=t||{},r=(t,e)=>a(t,e),l=(t,e,i)=>r(t,e?.[t]?.[i])+r(`min-${t}`,e?.min?.[i])+r(`max-${t}`,e?.max?.[i]),c=t=>a("padding",s(t)),d=t=>a("margin",s(t));return{desktop:c(e?.desktop)+d(i?.desktop)+l("height",n,"desktop")+l("width",o,"desktop"),tablet:c(e?.tablet)+d(i?.tablet)+l("height",n,"tablet")+l("width",o,"tablet"),mobile:c(e?.mobile)+d(i?.mobile)+l("height",n,"mobile")+l("width",o,"mobile")}},m=t=>{const{normal:e,hover:i}=t||{},n=t=>{const{border:e,radius:i,shadow:n}=t||{},o=a("border-radius",s(i)),r=a("box-shadow",((t,e="box")=>{let i="";return t?.map(((n,o)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=n||{},p=d?"inset":"",u=`${r} ${a} ${s}`,M=o+1>=t.length?"":", ";i+="text"===e?`${u} ${c}${M}`:`${u} ${l} ${c} ${p}${M}`})),i||""})(n,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:i="solid",width:n="0px"}=t;return`${n} ${i} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((i=>t[i]?`border-${i}: ${e(t[i])};`:"")).join(" ").trim():a("border",e(t))})(e)+o+r};return{normal:n(e),hover:n(i)}},y=e=>{const{zIndex:i,overflow:n}=e||{},o=n?`overflow: ${n};`:"",r=e=>`${a("z-index",i?.[e])} ${a("position",t(i?.[e])?"relative":"")}`;return{desktop:r("desktop")+o,tablet:r("tablet"),mobile:r("mobile")}},$=(t,e)=>{const{desktop:i=!1,tablet:n=!1,mobile:o=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",a=t=>t?r:"";return{desktop:a(i),tablet:a(n),mobile:a(o)}},b=(e,s,l=!1,c=!0)=>{const{dimension:b,transform:g,background:h,borderShadow:w,mask:x,animation:j,visibility:N,responsive:L,position:f={},floating:D={},motion:v={},css:z=""}=s||{},k=l?`#${e}>div>div${c?":first-child":""}`:`#${e}>div`;((t,e,i)=>{const n=i?`#${e} > div`:`#${e}`,o=document.querySelector(n);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),i)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(j,e,l);const T=M(b).desktop+y(N).desktop+((t,e,i)=>{const{transition:n=.4}=t||{},{transition:o=.4}=e||{},{transition:r=200}=i||{};return`transition: background ${n}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${r}ms ease-in-out;`})(h,w,g)+(t=>{const{isMask:e=!1,shape:i={type:"circle"},size:n={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===i.type?r(i.url):`url(${(l=i.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64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((t=>t.type===l))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===o.type?`${a("-webkit-mask-position-x",o.x)}\n\t\t\t${a("-webkit-mask-position-y",o.y)}`:`${a("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${s};`:""}`:"";var l})(x),I=M(b).tablet+y(N).tablet+$(L,l).tablet,S=M(b).mobile+y(N).mobile+$(L,l).mobile,A=m(w).normal,E=m(w).hover,O=$(L,l).desktop;return`\n\t\t${T||A?`${k} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${k}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${i} {\n\t\t\t${k}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${n} {\n\t\t\t${k}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${o} {\n\t\t\t${k}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${d(h?.normal,k)}\n\t\t${d(h?.hover,k,!0)}\n\t\t${p(h?.overlay,k)}\n\t\t${p(h?.hoverOverlay,k,!0)}\n\t\t${t(g?.normal)?u(g?.normal,k):""}\n\t\t${t(g?.hover)?u(g?.hover,k,!0):""}\n\t\t${((t,e)=>{const{desktop:i={},tablet:r={},mobile:s={}}=t,l=(t={})=>`\n\t\t${e}{\n\t\t\t${a("position",t?.type)}\n\t\t\t${a("left",t?.horizontal?.left)}\n\t\t\t${a("right",t?.horizontal?.right)}\n\t\t\t${a("top",t?.vertical?.top)}\n\t\t\t${a("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${i?.type?l(i):""}\n\t\t\n\t\t${n}{\n\t\t\t${r?.type?l(r):""}\n\t\t}\n\n\t\t${o}{\n\t\t\t${s?.type?l(s):""}\n\t\t}\n\t`})(f,k)}\n\t\t${((e,i,n="")=>{ | |
| 3 | +const{translate:o={},rotate:r={},scale:a={},isEnabled:s=!1}=e||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:o,value:e=>["x","y"].some((i=>t(o?.[i]?.[e])))?`${o?.x?.[e]||0}px ${o?.y?.[e]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:e=>["x","y","z"].filter((i=>t(r?.[i]?.[e]))).map((t=>`rotate${t.toUpperCase()}(${r[t][e]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:a,value:e=>{const i=a?.y?.[e],n=a?.z?.[e];return t(i)||t(n)?t(n)?`1 ${t(i)?i:1} ${n}`:`1 ${i}`:""}}].forEach((({name:t,property:e,values:i,value:o})=>{const r=o("from"),a=o("to");if(!r||!a)return;const s=Number(i?.duration)>0?Number(i.duration):1e3,d=Number(i?.delay)>0?Number(i.delay):0,p=`advFloat${t}${n?`-${n}`:""}`;l.push(`@keyframes ${p}{ from{ ${e}: ${r}; } to{ ${e}: ${a}; } }`),c.push(`${p} ${s}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${i}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(D,k,e)}\n\t\t${((e,r,a)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:M={},effectsRelativeTo:m="viewport",effectOn:y=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:$=!1,mouseTrack:b={},tilt:g={},sticky:h={}}=e||{},w=(e,i)=>t(e)&&!isNaN(e)?Number(e):i,x="viewport"===m,j=x?"view()":"scroll(nearest block)",N=[],L=[],f=[],D=[],v=String(a??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,i)=>{N.push(`@keyframes advMe${t}${v}{ ${e} }`),L.push(`advMe${t}${v}`),f.push(j),D.push((t=>{const e=w(t?.top,0),i=w(t?.bottom,100),n=Math.min(e,i),o=Math.max(e,i);return x?`cover ${n}% ${o>=90?"contain 100%":`cover ${o}%`}`:`min(${3*n}vh, ${n}%) min(${3*o}vh, ${o}%)`})(i))};if(s){const t=l?.direction,e=c?.direction,i=t?100*w(l?.speed,4):0,n=e?100*w(c?.speed,4):0;if(i||n){const o="up"===t?-i:i,r="to-left"===e?-n:n,a=[i&&l,n&&c].filter(Boolean);z("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${o}px; }`,{top:Math.min(...a.map((t=>w(t?.top,0)))),bottom:Math.max(...a.map((t=>w(t?.bottom,100))))})}const o=d?.direction;if(o){const t=Math.max(0,1-w(d?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[o];e&&z("Opacity",e,d)}const r=p?.direction;if(r){const t=3*w(p?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[r];e&&z("Blur",e,p)}const a=u?.direction;if(a){const t=20*w(u?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===a?-t:t}deg; }`,u)}if(M?.direction){const t=.15*w(M?.level,4),e=Math.max(0,1-t),i=1+t,n={"scale-up":`from{ scale: 1; } to{ scale: ${i}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${i}; } 100%{ scale: 1; }`}[M.direction];n&&z("Scale",n,M)}}const k=[];if($){if(b?.direction){const t="direct"===b?.direction?100:-100;k.push(((e,i)=>`translate(${(e*t).toFixed(2)}px, ${(i*t).toFixed(2)}px)`))}if(g?.direction){const t=12*("direct"===g?.direction?1:-1);k.push(((e,i)=>`perspective(1000px) rotateX(${(i*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,i)=>{if(!t||!t.defaultView)return;const n=t.defaultView,o=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),a=o.items.get(r)||{x:0,y:0};if(a.rate=e,a.build=i,o.items.set(r,a),o.bound)return;o.bound=!0;const s=e=>{const i=o.last?Math.min(e-o.last,100):16.7;o.last=e;let r=!1;o.items.forEach(((e,n)=>{const a=e.el&&e.el.isConnected?e.el:t.querySelector(n);if(!a)return;e.el=a;const s=e.rate*i/1e3,l=o.x-e.x,c=o.y-e.y,d=Math.sqrt(l*l+c*c);d<=s?(e.x=o.x,e.y=o.y):(e.x+=l/d*s,e.y+=c/d*s,r=!0),a.style.transform=e.build(e.x,e.y)})),o.frame=r?n.requestAnimationFrame(s):0,o.last=r?e:0};t.addEventListener("pointermove",(t=>{o.x=2*(t.clientX/n.innerWidth-.5),o.y=2*(t.clientY/n.innerHeight-.5),o.frame||(o.frame=n.requestAnimationFrame(s))}))};if(k.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*w(b?.speed,w(g?.speed,4))),e=(t,e)=>k.map((i=>i(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>h?.[t]||("desktop"===t?h?.undefined:""),S=r.split(">")[0],A=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},E=Array.isArray(y)?y:t(y)?[y]:[],O=t=>!E.length||E.includes(t)?"":`${r}{ animation-name: none; }`;return`\n\t\t${L.length?`\n\t\t${N.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${r}{\n\t\t\t\tanimation-name: ${L.join(", ")};\n\t\t\t\tanimation-duration: ${L.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${L.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${L.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${L.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${f.join(", ")};\n\t\t\t\tanimation-range: ${D.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${i}{ ${O("desktop")} }`:""}\n\t\t\t${O("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${O("tablet-portrait")} }`:""}\n\t\t\t${O("mobile-portrait")?`${o}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${k.length?`${r}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${S}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${n}{ ${S}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${o}{ ${S}{ ${A("mobile")} } }`:""}\n\t`})(v,k,e)}\n\t\t${z}\n\t`.replace(/\s+/g," ")};document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll("[data-bblocks-advanced]"),e=document.createElement("style");let i="";t.length&&t.forEach((t=>{(t=>{const e=t.getAttribute("data-bblocks-advanced");if(e)try{const n=JSON.parse(e),{animation:o}=n;o&&o?.type&&setTimeout((()=>{window.AOS.init()}),[]);const r=b(t.id,n);i+=r,t.removeAttribute("data-bblocks-advanced")}catch(t){console.error("Invalid JSON in data-bblocks-advanced attribute:",t)}})(t)})),i&&(e.innerHTML=i,document.head.appendChild(e))}))})(); | |