PageSourceSearch

https://macaly-kzuw5a753cx1aui9ql53lrae.macaly.app/_next/static/ch…?dpl=dpl_9NXUYsLw1ZYUVmdSi7BTuWVvQSWN

js macaly-kzuw5a753cx1aui9ql53lrae.macaly.app collected 2026-10-03 04:59:14 UTC 208,152 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88143,(e,t,i)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:i,blurHeight:n,blurDataURL:s,objectFit:o}){let a=i?40*i:e,l=n?40*n:t,d=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},87690,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return o}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return d}}),e.r(33525);let r=e.r(43369),n=e.r(88143),s=e.r(87690),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:i=!1,priority:u=!1,preload:c=!1,loading:h,className:m,quality:p,width:f,height:g,fill:y=!1,style:v,overrideSrc:x,onLoad:b,onLoadingComplete:w,placeholder:k="empty",blurDataURL:j,fetchPriority:S,decoding:P="async",layout:T,objectFit:C,objectPosition:M,lazyBoundary:N,lazyRoot:E,...A},V){var R;let D,z,L,{imgConf:O,showAltText:I,blurComplete:F,defaultLoader:B}=V,$=O||s.imageConfigDefault;if("allSizes"in $)D=$;else{let e=[...$.deviceSizes,...$.imageSizes].sort((e,t)=>e-t),t=$.deviceSizes.sort((e,t)=>e-t),i=$.qualities?.sort((e,t)=>e-t);D={...$,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let _=A.loader||B;delete A.loader,delete A.srcSet;let U="__next_img_default"in _;if(U){if("custom"===D.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=_;_=t=>{let{config:i,...r}=t;return e(r)}}if(T){"fill"===T&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(v={...v,...e});let i={responsive:"100vw",fill:"100vw"}[T];i&&!t&&(t=i)}let W="",H=l(f),q=l(g);if((R=e)&&"object"==typeof R&&(a(R)||void 0!==R.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}
2`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(z=t.blurWidth,L=t.blurHeight,j=j||t.blurDataURL,W=t.src,!y)if(H||q){if(H&&!q){let e=H/t.width;q=Math.round(t.height*e)}else if(!H&&q){let e=q/t.height;H=Math.round(t.width*e)}}else H=t.width,q=t.height}let Y=!u&&!c&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,Y=!1),D.unoptimized&&(i=!0),U&&!D.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let X=l(p),G=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:M}:{},I?{}:{color:"transparent"},v),K=F||"empty"===k?null:"blur"===k?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:H,heightInt:q,blurWidth:z,blurHeight:L,blurDataURL:j||"",objectFit:G.objectFit})}")`:`url("${k}")`,Z=o.includes(G.objectFit)?"fill"===G.objectFit?"100% 100%":"cover":G.objectFit,J=K?{backgroundSize:Z,backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Q=function({config:e,src:t,unoptimized:i,width:n,quality:s,sizes:o,loader:a}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,r.getDeploymentId)();if(e){let i=t.indexOf("?");if(-1!==i){let r=new URLSearchParams(t.slice(i+1));r.get("dpl")||(r.append("dpl",e),t=t.slice(0,i)+"?"+r.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:d}=function({deviceSizes:e,allSizes:t},i,r){if(r){let i=/(^|\s)(1?\d?\d)vw/g,n=[];for(let e;e=i.exec(r);)n.push(parseInt(e[2]));if(n.length){let i=.01*Math.min(...n);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,o),u=l.length-1;return{sizes:o||"w"!==d?o:"100vw",srcSet:l.map((i,r)=>`${a({config:e,src:t,quality:s,width:i})} ${"w"===d?i:r+1}${d}`).join(", "),src:a({config:e,src:t,quality:s,width:l[u]})}}({config:D,src:e,unoptimized:i,width:H,quality:X,sizes:t,loader:_}),ee=Y?"lazy":h;return{props:{...A,loading:ee,fetchPriority:S,width:H,height:q,decoding:P,className:m,style:{...G,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:i,preload:c||u,placeholder:k,fill:y}}}},98879,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let r=e.r(71645),n="u"<typeof window,s=n?()=>{}:r.useLayoutEffect,o=n?()=>{}:r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:i}=e;function a(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(e))}}return n&&(t?.mountedInstances?.add(e.children),a()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},25633,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return f},defaultHead:function(){return c}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=e.r(55682),o=e.r(90809),a=e.r(43476),l=o._(e.r(71645)),d=s._(e.r(98879)),u=e.r(42732);function c(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(33525);let m=["name","httpEquiv","charSet","itemProp"];function p(e){let t,i,r,n;return e.reduce(h,[]).reverse().concat(c().reverse()).filter((t=new Set,i=new Set,r=new Set,n={},e=>{let s=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?s=!1:t.add(i)}switch(e.type){case"title":case"base":i.has(e.type)?s=!1:i.add(e.type);break;case"meta":for(let t=0,i=m.length;t<i;t++){let i=m[t];if(e.props.hasOwnProperty(i))if("charSet"===i)r.has(i)?s=!1:r.add(i);else{let t=e.props[i],r=n[i]||new Set;("name"!==i||!o)&&r.has(t)?s=!1:(r.add(t),n[i]=r)}}}return s})).reverse().map((e,t)=>{let i=e.key||t;return l.default.cloneElement(e,{key:i})})}let f=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,a.jsx)(d.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
2dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},18556,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let r=e.r(55682)._(e.r(71645)),n=e.r(87690),s=r.default.createContext(n.imageConfigDefault)},65856,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,i)=>{"use strict";function r(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return r}})},1948,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let r=e.r(70965),n=e.r(43369);function s({config:e,src:t,width:i,quality:o}){let a=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),r=i.get("dpl");if(r){a=r,i.delete("dpl");let n=i.toString();t=t.slice(0,e)+(n?"?"+n:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,r.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${l}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},18581,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=e.r(71645);function n(e,t){let i=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=i.current;e&&(i.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(i.current=s(e,r)),t&&(n.current=s(t,r))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let i=e(t);return"function"==typeof i?i:()=>e(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},85437,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return b}});let r=e.r(55682),n=e.r(90809),s=e.r(43476),o=n._(e.r(71645)),a=r._(e.r(74080)),l=r._(e.r(25633)),d=e.r(8927),u=e.r(87690),c=e.r(18556);e.r(33525);let h=e.r(65856),m=r._(e.r(1948)),p=e.r(18581),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,i,r,n,s,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,n=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,o.forwardRef)(({src:e,srcSet:t,sizes:i,height:r,width:n,decoding:a,className:l,style:d,fetchPriority:u,placeholder:c,loading:h,unoptimized:m,fill:f,onLoadRef:v,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,sizesInput:k,onLoad:j,onError:S,...P},T)=>{let C=(0,o.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&g(e,c,v,x,b,m,k))},[e,c,v,x,b,S,m,k]),M=(0,p.useMergedRef)(T,C);return(0,s.jsx)("img",{...P,...y(u),loading:h,width:n,height:r,decoding:a,"data-nimg":f?"fill":"1",className:l,style:d,sizes:i,srcSet:t,src:e,ref:M,onLoad:e=>{g(e.currentTarget,c,v,x,b,m,k)},onError:e=>{w(!0),"empty"!==c&&b(!0),S&&S(e)}})});function x({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let i=(0,o.useContext)(h.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),n=(0,o.useMemo)(()=>{let e=f||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),i=e.deviceSizes.sort((e,t)=>e-t),n=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:n,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:a,onLoadingComplete:l}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,b]=(0,o.useState)(!1),[w,k]=(0,o.useState)(!1),{props:j,meta:S}=(0,d.getImgProps)(e,{defaultLoader:m.default,imgConf:n,blurComplete:y,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...j,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:k,sizesInput:e.sizes,ref:t}),S.preload?(0,s.jsx)(x,{isAppRouter:!i,imgAttributes:j}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},94909,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return u},getImageProps:function(){return d}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=e.r(55682),o=e.r(8927),a=e.r(85437),l=s._(e.r(1948));function d(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let u=a.Image},57688,(e,t,i)=>{t.exports=e.r(94909)},8507,e=>{"use strict";let t,i,r,n,s;var o,a=e.i(43476),l=e.i(71645);let d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],u=new Set(d),c=(e,t,i)=>i>t?t:i<e?e:i,h={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},m={...h,transform:e=>c(0,1,e)},p={...h,default:1},f=e=>Math.round(1e5*e)/1e5,g=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,v=(e,t)=>i=>!!("string"==typeof i&&y.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),x=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(g);return{[e]:parseFloat(n),[t]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},b={...h,transform:e=>Math.round(c(0,255,e))},w={test:v("rgb","red"),parse:x("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:r=1})=>"rgba("+b.transform(e)+", "+b.transform(t)+", "+b.transform(i)+", "+f(m.transform(r))+")"},k={test:v("#"),parse:function(e){let t="",i="",r="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:w.transform},j=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),S=j("deg"),P=j("%"),T=j("px"),C=j("vh"),M=j("vw"),N={...P,parse:e=>P.parse(e)/100,transform:e=>P.transform(100*e)},E={test:v("hsl","hue"),parse:x("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:r=1})=>"hsla("+Math.round(e)+", "+P.transform(f(t))+", "+P.transform(f(i))+", "+f(m.transform(r))+")"},A={test:e=>w.test(e)||k.test(e)||E.test(e),parse:e=>w.test(e)?w.parse(e):E.test(e)?E.parse(e):k.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?w.transform(e):E.transform(e),getAnimatableNone:e=>{let t=A.parse(e);return t.alpha=0,A.transform(t)}},V=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",D="color",z=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=t.replace(z,e=>(A.test(e)?(r.color.push(s),n.push(D),i.push(A.parse(e))):e.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(e)):(r.number.push(s),n.push(R),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function O(e){return L(e).values}function I(e){let{split:t,types:i}=L(e),r=t.length;return e=>{let n="";for(let s=0;s<r;s++)if(n+=t[s],void 0!==e[s]){let t=i[s];t===R?n+=f(e[s]):t===D?n+=A.transform(e[s]):n+=e[s]}return n}}let F=e=>"number"==typeof e?0:A.test(e)?A.getAnimatableNone(e):e,B={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(g)?.length||0)+(e.match(V)?.length||0)>0},parse:O,createTransformer:I,getAnimatableNone:function(e){let t=O(e);return I(e)(t.map(F))}},$=new Set(["brightness","contrast","saturate","opacity"]);function _(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=i.match(g)||[];if(!r)return e;let n=i.replace(r,""),s=+!!$.has(t);return r!==i&&(s*=100),t+"("+s+n+")"}
3let U=/\b([a-z-]*)\(.*?\)/gu,W={...B,getAnimatableNone:e=>{let t=e.match(U);return t?t.map(_).join(" "):e}},H={...h,transform:Math.round},q={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,rotate:S,rotateX:S,rotateY:S,rotateZ:S,scale:p,scaleX:p,scaleY:p,scaleZ:p,skew:S,skewX:S,skewY:S,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:m,originX:N,originY:N,originZ:T,zIndex:H,fillOpacity:m,strokeOpacity:m,numOctaves:H},Y={...q,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:W,WebkitFilter:W},X=e=>Y[e],G=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:G(),y:G()}),Z=()=>({min:0,max:0}),J=()=>({x:Z(),y:Z()}),Q=e=>!!(e&&e.getVelocity),ee=new Set(["width","height","top","left","right","bottom",...d]),et=e=>t=>t.test(e),ei=[h,T,P,S,M,C,{test:e=>"auto"===e,parse:e=>e}],er=e=>ei.find(et(e));var en=e.i(47167);let es=()=>{},eo=()=>{};en.default;let ea=e=>t=>"string"==typeof t&&t.startsWith(e),el=ea("--"),ed=ea("var(--"),eu=e=>!!ed(e)&&ec.test(e.split("/*")[0].trim()),ec=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eh(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let em=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ep=e=>180*e/Math.PI,ef=e=>ey(ep(Math.atan2(e[1],e[0]))),eg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ef,rotateZ:ef,skewX:e=>ep(Math.atan(e[1])),skewY:e=>ep(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ey=e=>((e%=360)<0&&(e+=360),e),ev=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ex=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ev,scaleY:ex,scale:e=>(ev(e)+ex(e))/2,rotateX:e=>ey(ep(Math.atan2(e[6],e[5]))),rotateY:e=>ey(ep(Math.atan2(-e[2],e[0]))),rotateZ:ef,rotate:ef,skewX:e=>ep(Math.atan(e[4])),skewY:e=>ep(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ew(e){return+!!e.includes("scale")}function ek(e,t){let i,r;if(!e||"none"===e)return ew(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=eb,r=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eg,r=t}if(!r)return ew(t);let s=i[t],o=r[1].split(",").map(ej);return"function"==typeof s?s(o):o[s]}function ej(e){return parseFloat(e.trim())}let eS=e=>e===h||e===T,eP=new Set(["x","y","z"]),eT=d.filter(e=>!eP.has(e)),eC={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ek(t,"x"),y:(e,{transform:t})=>ek(t,"y")};eC.translateX=eC.x,eC.translateY=eC.y;let eM=e=>e,eN={},eE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eA(e,t){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=eE.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function d(t){o.has(t)&&(u.schedule(t),e()),l++,t(a)}let u={schedule:(e,t=!1,s=!1)=>{let a=s&&n?i:r;return t&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(a=e,n){s=!0;return}
3n=!0,[i,r]=[r,i],i.forEach(d),t,l=0,i.clear(),n=!1,s&&(s=!1,u.process(e))}};return u}(s,t?i:void 0),e),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:m,postRender:p}=o,f=()=>{let s=eN.useManualTiming?n.timestamp:performance.now();i=!1,eN.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1)),n.timestamp=s,n.isProcessing=!0,a.process(n),l.process(n),d.process(n),u.process(n),c.process(n),h.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&t&&(r=!1,e(f))};return{schedule:eE.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||e(f)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<eE.length;t++)o[eE[t]].cancel(e)},state:n,steps:o}}let{schedule:eV,cancel:eR,state:eD,steps:ez}=eA("u">typeof requestAnimationFrame?requestAnimationFrame:eM,!0),eL=new Set,eO=!1,eI=!1,eF=!1;function eB(){if(eI){let e=Array.from(eL).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,r=(t=[],eT.forEach(i=>{let r=e.getValue(i);void 0!==r&&(t.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),t);r.length&&(i.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eI=!1,eO=!1,eL.forEach(e=>e.complete(eF)),eL.clear()}function e$(){eL.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eI=!0)})}class e_{constructor(e,t,i,r,n,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eL.add(this),eO||(eO=!0,eV.read(e$),eV.resolveKeyframes(eB))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:r}=this;if(null===e[0]){let n=r?.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let r=i.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===n&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eL.delete(this)}cancel(){"scheduled"===this.state&&(eL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function eU(e,t){let i=X(e);return i!==W&&(i=B),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eW=new Set(["auto","none","0"]);class eH extends e_{constructor(e,t,i,r,n){super(e,t,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let r=e[i];if("string"==typeof r&&eu(r=r.trim())){let n=function e(t,i,r=1){eo(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(e){let t=em.exec(e);if(!t)return[,];let[,i,r,n]=t;return[`--${i??r}`,n]}(t);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let e=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eu(s)?e(s,i,r+1):s}(r,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ee.has(i)||2!==e.length)return;let[r,n]=e,s=er(r),o=er(n);if(eh(r)!==eh(n)&&eC[i]){this.needsMeasurement=!0;return}if(s!==o)if(eS(s)&&eS(o))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eC[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let r,n=0;for(;n<e.length&&!r;){let t=e[n];"string"==typeof t&&!eW.has(t)&&L(t).values.length&&(r=e[n]),n++}if(r&&i)for(let n of t)e[n]=eU(i,r)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eC[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(i,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let n=i.length-1,s=i[n];i[n]=eC[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
3h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eq=e=>1e3*e;function eY(e,t){-1===e.indexOf(t)&&e.push(t)}function eX(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eG{constructor(){this.subscriptions=[]}add(e){return eY(this.subscriptions,e),()=>eX(this.subscriptions,e)}notify(e,t,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eK(e){let t;return()=>(void 0===t&&(t=e()),t)}let eZ=eK(()=>void 0!==window.ScrollTimeline),eJ=e=>null!==e;function eQ(e,{repeat:t,repeatType:i="loop"},r,n=1){let s=e.filter(eJ),o=n<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}class e0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e1={layout:0,mainThread:0,waapi:0},e2=e=>Array.isArray(e)&&"number"==typeof e[0],e5={},e3=(n=eK(()=>{try{document.createElement("div").animate({opacity:0}
3,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>e5.linearEasing??n()),e4=(e,t,i=10)=>{let r="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)r+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e9=([e,t,i,r])=>`cubic-bezier(${e}, ${t}, ${i}, ${r})`,e6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e9([0,.65,.55,1]),circOut:e9([.55,0,1,.45]),backIn:e9([.31,.01,.66,-.59]),backOut:e9([.33,1.53,.69,.99])};function e8(e){return"function"==typeof e&&"applyToOptions"in e}class e7 extends e0{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:r,pseudoElement:n,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!n,this.allowFlatten=s,this.options=e,eo("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return e8(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},d){let u={[t]:i};l&&(u.offset=l);let c=function e(t,i){if(t)return"function"==typeof t?e3()?e4(t,i):"ease-out":e2(t)?e9(t):Array.isArray(t)?t.map(t=>e(t,i)||e6.easeOut):e6[t]}(a,n);Array.isArray(c)&&(u.easing=c);let h={delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};d&&(h.pseudoElement=d);let m=e.animate(u,h);return m}(t,i,r,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=eQ(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eq(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eZ())?(this.animation.timeline=e,eM):t(this)}}let te=new Set(["opacity","clipPath","filter","transform"]),{schedule:tt}=eA(queueMicrotask,!1);function ti(){t=void 0}let tr={now:()=>(void 0===t&&tr.set(eD.isProcessing||eN.useManualTiming?eD.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(ti)}};class tn{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eG);let i=this.events[e].add(t);return"change"===e?()=>{i(),eV.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ts(e,t){return new tn(e,t)}let to=[...ei,A,B],ta=new WeakMap;function tl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function td(e){return"string"==typeof e||Array.isArray(e)}let tu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tc=["initial",...tu];function th(e){return tl(e.animate)||tc.some(t=>td(e[t]))}function tm(e){return!!(th(e)||e.variants)}let tp={current:null},tf={current:!1},tg="u">typeof window;function ty(e){let t=[{},{}];
3return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tv(e,t,i,r){if("function"==typeof t){let[n,s]=ty(r);t=t(void 0!==i?i:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=ty(r);t=t(void 0!==i?i:e.custom,n,s)}return t}let tx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tb={};class tw{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=e_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eV.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=th(t),this.isVariantNode=tm(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&Q(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ta.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tf.current||function(){if(tf.current=!0,tg)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tp.current=e.matches;e.addEventListener("change",t),t()}else tp.current=!1}(),this.shouldReduceMotion=tp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eR(this.notifyUpdate),eR(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.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,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&te.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:n,ease:s,duration:o}=t.accelerate,a=new e7({element:this.current,name:e,keyframes:r,times:n,ease:s,duration:eq(o)}),l=i(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=u.has(e);r&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eV.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tb){let t=tb[e];if(!t)continue;let{isEnabled:i,Feature:r}=t;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];
3t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tx.length;t++){let i=tx[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=e["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(e,t,i){for(let r in t){let n=t[r],s=i[r];if(Q(n))e.addValue(r,n);else if(Q(s))e.addValue(r,ts(n,{owner:e}));else if(s!==n)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(r);e.addValue(r,ts(void 0!==t?t:n,{owner:e}))}}for(let r in i)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=ts(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let r,n;if("string"==typeof i&&(r=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let r;r=i,!to.find(et(r))&&B.test(t)&&(i=eU(e,t))}this.setBaseTarget(e,Q(i)?i.get():i)}return Q(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=tv(this.props,i,this.presenceContext?.custom);r&&(t=r[e])}if(i&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Q(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eG),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tt.render(this.render)}}class tk extends tw{constructor(){super(...arguments),this.KeyframeResolver=eH}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Q(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tj(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tS=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tT=d.length;function tC(e,t,i){let{style:r,vars:n,transformOrigin:s}=e,o=!1,a=!1;for(let e in t){let i=t[e];if(u.has(e)){o=!0;continue}if(el(e)){n[e]=i;continue}{let t=tS(i,q[e]);e.startsWith("origin")?(a=!0,s[e]=t):r[e]=t}}if(!t.transform&&(o||i?r.transform=function(e,t,i){let r="",n=!0;for(let s=0;s<tT;s++){let o=d[s],a=e[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let e=parseFloat(a);l=o.startsWith("scale")?1===e:0===e}if(!l||i){let e=tS(a,q[o]);if(!l){n=!1;let t=tP[o]||o;r+=`${t}(${e}) `}i&&(t[o]=e)}}return r=r.trim(),i?r=i(t,n?"":r):n&&(r="none"),r}(t,e.transform,i):r.transform&&(r.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;r.transformOrigin=`${e} ${t} ${i}`}}let tM={offset:"stroke-dashoffset",array:"stroke-dasharray"},tN={offset:"strokeDashoffset",array:"strokeDasharray"},tE=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tA(e,{attrX:t,attrY:i,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:o=0,...a}
3,l,d,u){if(tC(e,a,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:h}=e;for(let e of(c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),tE))void 0!==c[e]&&(h[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==n&&function(e,t,i=1,r=0,n=!0){e.pathLength=1;let s=n?tM:tN;e[s.offset]=`${-r}`,e[s.array]=`${t} ${i}`}(c,n,s,o,!1)}let tV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tR=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tD(e,{style:t,vars:i},r,n){let s,o=e.style;for(s in t)o[s]=t[s];for(s in n?.applyProjectionStyles(o,r),i)o.setProperty(s,i[s])}function tz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tL={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!T.test(e))return e;else e=parseFloat(e);let i=tz(e,t.target.x),r=tz(e,t.target.y);return`${i}% ${r}%`}},tO=(e,t,i)=>e+(t-e)*i,tI={borderRadius:{...tL,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tL,borderTopRightRadius:tL,borderBottomLeftRadius:tL,borderBottomRightRadius:tL,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let r=B.parse(e);if(r.length>5)return e;let n=B.createTransformer(e),s=+("number"!=typeof r[0]),o=i.x.scale*t.x,a=i.y.scale*t.y;r[0+s]/=o,r[1+s]/=a;let l=tO(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};function tF(e,{layout:t,layoutId:i}){return u.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tI[e]||"opacity"===e)}function tB(e,t,i){let r=e.style,n=t?.style,s={};if(!r)return s;for(let t in r)(Q(r[t])||n&&Q(n[t])||tF(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=r[t]);return s}function t$(e,t,i){let r=tB(e,t,i);for(let i in e)(Q(e[i])||Q(t[i]))&&(r[-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}class t_ extends tk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(u.has(t)){let e=X(t);return e&&e.default||0}return t=tV.has(t)?t:tj(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return t$(e,t,i)}build(e,t,i){tA(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,r){for(let i in tD(e,t,void 0,r),t.attrs)e.setAttribute(tV.has(i)?i:tj(i),t.attrs[i])}mount(e){this.isSVGTag=tR(e.tagName),super.mount(e)}}function tU({top:e,left:t,right:i,bottom:r}){return{x:{min:t,max:i},y:{min:e,max:r}}}function tW(e){return void 0===e||1===e}function tH({scale:e,scaleX:t,scaleY:i}){return!tW(e)||!tW(t)||!tW(i)}function tq(e){return tH(e)||tY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tY(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tX(e,t,i,r,n){return void 0!==n&&(e=r+n*(e-r)),r+i*(e-r)+t}function tG(e,t=0,i=1,r,n){e.min=tX(e.min,t,i,r,n),e.max=tX(e.max,t,i,r,n)}function tK(e,{x:t,y:i}){tG(e.x,t.translate,t.scale,t.originPoint),tG(e.y,i.translate,i.scale,i.originPoint)}function tZ(e,t){e.min=e.min+t,e.max=e.max+t}function tJ(e,t,i,r,n=.5){let s=tO(e.min,e.max,n);tG(e,t,i,s,r)}function tQ(e,t){tJ(e.x,t.x,t.scaleX,t.scale,t.originX),tJ(e.y,t.y,t.scaleY,t.scale,t.originY)}function t0(e,t){return tU(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t1 extends tk{constructor(){super(...arguments),this.type="html",this.renderInstance=tD}readValueFromInstance(e,t){if(u.has(t))return this.projection?.isProjecting?ew(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return ek(i,t)})(e,t);{let i=window.getComputedStyle(e),r=(el(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t0(e,t)}build(e,t,i){tC(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tB(e,t,i)}}let t2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t5(e){if("string"!=typeof e||e.includes("-"));else if(t2.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t3=(0,l.createContext)({}),t4=(0,l.createContext)({strict:!1}),t9=(0,l.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),t6=(0,l.createContext)({});function t8(e){return Array.isArray(e)?e.join(" "):e}let t7=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ie(e,t,i){for(let r in t)Q(t[r])||tF(r,i)||(e[r]=t[r])}let it=()=>({...t7(),attrs:{}}),ii=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ir(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ii.has(e)}let is=e=>!ir(e);try{o=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof o&&(is=e=>e.startsWith("on")?!ir(e):o(e))}catch{}function io(e){return Q(e)?e.get():e}let ia=(0,l.createContext)(null);function il(e){let t=(0,l.useRef)(null);return null===t.current&&(t.current=e()),t.current}let id=e=>(t,i)=>{let r=(0,l.useContext)(t6),n=(0,l.useContext)(ia),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,r,n){return{latestValues:function(e,t,i,r){let n={},s=r(e,{});for(let e in s)n[e]=io(s[e]);let{initial:o,animate:a}=e,l=th(e),d=tm(e);t&&d&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!tl(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let r=tv(e,t[i]);if(r){let{transitionEnd:e,transition:t,...i}=r;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,r,n,e),renderState:t()}})(e,t,r,n);return i?s():il(s)},iu=id({scrapeMotionValuesFromProps:tB,createRenderState:t7}),ic=id({scrapeMotionValuesFromProps:t$,createRenderState:it}),ih="u">typeof window,im={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ip=!1;function ig(){return!function(){if(ip)return;let e={};for(let t in im)e[t]={isEnabled:e=>im[t].some(t=>!!e[t])};tb=e,ip=!0}(),tb}let iy=Symbol.for("motionComponentSymbol"),iv="data-"+tj("framerAppearId"),ix=(0,l.createContext)({});function ib(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let iw=ih?l.useLayoutEffect:l.useEffect;function ik(e,{forwardMotionProps:t=!1,type:i}={},r,n){r&&function(e){let t=ig();for(let i in e)t[i]={...t[i],...e[i]};tb=t}(r);let s=i?"svg"===i:t5(e),o=s?ic:iu;function d(i,r){var d;let u,c,h,m={...(0,l.useContext)(t9),...i,layoutId:function({layoutId:e}){let t=(0,l.useContext)(t3).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:p}=m,f=function(e){let{initial:t,animate:i}=function(e,t){if(th(e)){let{initial:t,animate:i}=e;return{initial:!1===t||td(t)?t:void 0,animate:td(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(t6));return(0,l.useMemo)(()=>({initial:t,animate:i}),[t8(t),t8(i)])}(i),g=o(i,p);if(!p&&ih){(0,l.useContext)(t4).strict;let t=function(e){let{drag:t,layout:i}=ig();if(!t&&!i)return{};let r={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
3(m);u=t.MeasureLayout,f.visualElement=function(e,t,i,r,n,s){let{visualElement:o}=(0,l.useContext)(t6),a=(0,l.useContext)(t4),d=(0,l.useContext)(ia),u=(0,l.useContext)(t9),c=u.reducedMotion,h=u.skipAnimations,m=(0,l.useRef)(null),p=(0,l.useRef)(!1);r=r||a.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:o,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:c,skipAnimations:h,isSVG:s}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let f=m.current,g=(0,l.useContext)(ix);f&&!f.projection&&n&&("html"===f.type||"svg"===f.type)&&function(e,t,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&ib(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:d})}(m.current,i,n,g);let y=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{f&&y.current&&f.update(i,d)});let v=i[iv],x=(0,l.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return iw(()=>{p.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,l.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),x.current=!1),f.enteringChildren=void 0)}),f}(e,g,m,n,t.ProjectionNode,s)}return(0,a.jsxs)(t6.Provider,{value:f,children:[u&&f.visualElement?(0,a.jsx)(u,{visualElement:f.visualElement,...m}):null,function(e,t,i,{latestValues:r},n,s=!1,o){let a=(o??t5(e)?function(e,t,i,r){let n=(0,l.useMemo)(()=>{let i=it();return tA(i,t,tR(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ie(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,r,n={},s=(i=e.style||{},ie(r={},i,e),Object.assign(r,function({transformTemplate:e},t){return(0,l.useMemo)(()=>{let i=t7();return tC(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n})(t,r,n,e),d=function(e,t,i){let r={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(is(n)||!0===i&&ir(n)||!t&&!ir(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}(t,"string"==typeof e,s),u=e!==l.Fragment?{...d,...a,ref:i}:{},{children:c}=t,h=(0,l.useMemo)(()=>Q(c)?c.get():c,[c]);return(0,l.createElement)(e,{...u,children:h})}(e,i,(d=f.visualElement,c=(0,l.useRef)(r),(0,l.useInsertionEffect)(()=>{c.current=r}),h=(0,l.useRef)(null),(0,l.useCallback)(e=>{e&&g.onMount?.(e),d&&(e?d.mount(e):d.unmount());let t=c.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):t(e);else t&&(t.current=e)},[d])),g,p,t,s)]})}d.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let u=(0,l.forwardRef)(d);return u[iy]=e,u}class ij{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iS(e,t,i){let r=e.getProps();return tv(r,t,void 0!==i?i:r.custom,e)}function iP(e,t){if(e?.inherit&&t){let{inherit:i,...r}=e;return{...t,...r}}return e}function iT(e,t){let i=e?.[t]??e?.default??e;return i!==e?iP(i,e):i}let iC=e=>Array.isArray(e);function iM(e,t){let i=e.getValue("willChange");if(Q(i)&&i.add)return i.add(t);if(!i&&eN.WillChange){let i=new eN.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iN=(e,t)=>i=>t(e(i)),iE=(...e)=>e.reduce(iN);function iA(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iV(e,t){return i=>i>0?t:e}let iR=(e,t,i)=>{let r=e*e,n=i*(t*t-r)+r;return n<0?0:Math.sqrt(n)},iD=[k,w,E];function iz(e){let t=iD.find(t=>t.test(e));if(es(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===E&&(i=function({hue:e,saturation:t,lightness:i,alpha:r}){e/=360,i/=100;let n=0,s=0,o=0;if(t/=100){let r=i<.5?i*(1+t):i+t-i*t,a=2*i-r;n=iA(a,r,e+1/3),s=iA(a,r,e),o=iA(a,r,e-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let iL=(e,t)=>{let i=iz(e),r=iz(t);if(!i||!r)return iV(e,t);let n={...i};return e=>(n.red=iR(i.red,r.red,e),n.green=iR(i.green,r.green,e),n.blue=iR(i.blue,r.blue,e),n.alpha=tO(i.alpha,r.alpha,e),w.transform(n))},iO=new Set(["none","hidden"]);function iI(e,t){return i=>tO(e,t,i)}function iF(e){return"number"==typeof e?iI:"string"==typeof e?eu(e)?iV:A.test(e)?iL:i_:Array.isArray(e)?iB:"object"==typeof e?A.test(e)?iL:i$:iV}function iB(e,t){let i=[...e],r=i.length,n=e.map((e,i)=>iF(e)(e,t[i]));return e=>{for(let t=0;t<r;t++)i[t]=n[t](e);return i}}function i$(e,t){let i={...e,...t},r={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(r[n]=iF(e[n])(e[n],t[n]));return e=>{for(let t in r)i[t]=r[t](e);return i}}let i_=(e,t)=>{let i=B.createTransformer(t),r=L(e),n=L(t);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return es(!0,`Complex values '${e}' and '${t}
3' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iV(e,t);if(iO.has(e)&&!n.values.length||iO.has(t)&&!r.values.length)return iO.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iE(iB(function(e,t){let i=[],r={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let s=t.types[n],o=e.indexes[s][r[s]],a=e.values[o]??0;i[n]=a,r[s]++}return i}(r,n),n.values),i)};function iU(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tO(e,t,i):iF(e)(e,t)}let iW=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eV.update(t,e),stop:()=>eR(t),now:()=>eD.isProcessing?eD.timestamp:tr.now()}};function iH(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function iq(e,t,i){var r,n;let s=Math.max(t-5,0);return r=i-e(s),(n=t-s)?1e3/n*r:0}let iY=.01,iX=2,iG=.005,iK=.5;function iZ(e,t){return e*Math.sqrt(1-t*t)}let iJ=["duration","bounce"],iQ=["stiffness","damping","mass"];function i0(e,t){return t.some(t=>void 0!==e[t])}function i1(e=.3,t=.3){let i,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:s}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:d,damping:u,mass:h,duration:m,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!i0(e,iQ)&&i0(e,iJ))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),r=i*i,n=2*c(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:r=1}){let n,s;es(e<=eq(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=c(.05,1,o),e=c(.01,10,e/1e3),o<1?(n=t=>{let r=t*o,n=r*e;return .001-(r-i)/iZ(t,o)*Math.exp(-n)},s=t=>{let r=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=iZ(Math.pow(t,2),o);return(r*i+i-s)*a*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let a=function(e,t,i){let r=i;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(n,s,5/e);if(e=eq(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),g=p||0,y=u/(2*Math.sqrt(d*h)),v=a-o,x=Math.sqrt(d/h)/1e3,b=5>Math.abs(v);if(n||(n=b?iY:iX),s||(s=b?iG:iK),y<1){let e=iZ(x,y);i=t=>a-Math.exp(-y*x*t)*((g+y*x*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===y)i=e=>a-Math.exp(-x*e)*(v+(g+x*v)*e);else{let e=x*Math.sqrt(y*y-1);i=t=>{let i=Math.exp(-y*x*t),r=Math.min(e*t,300);return a-i*((g+y*x*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}let w={calculatedDuration:f&&m||null,next:e=>{let t=i(e);if(f)l.done=e>=m;else{let r=0===e?g:0;y<1&&(r=0===e?eq(g):iq(i,e,t));let o=Math.abs(a-t)<=s;l.done=Math.abs(r)<=n&&o}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(iH(w),2e4),t=e4(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function i2({keyframes:e,velocity:t=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:d=.5,restSpeed:u}){let c,h,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,y=void 0===o?g:o(g);y!==g&&(f=y-m);let v=e=>-f*Math.exp(-e/r),x=e=>y+v(e),b=e=>{let t=v(e),i=x(e);p.done=Math.abs(t)<=d,p.value=p.done?y:i},w=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var i;c=e,h=i1({keyframes:[p.value,(i=p.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iq(x,e,p.value),damping:n,stiffness:s,restDelta:d,restSpeed:u})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==c||(t=!0,b(e),w(e)),void 0!==c&&e>=c)?h.next(e-c):(t||b(e),p)}}}i1.applyToOptions=e=>{let t=function(e,t=100,i){let r=i({...e,keyframes:[0,t]}),n=Math.min(iH(r),2e4);return{type:"keyframes",ease:e=>r.next(n*e).value/t,duration:n/1e3}}(e,100,i1);return e.ease=t.ease,e.duration=eq(t.duration),e.type="keyframes",e};let i5=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function i3(e,t,i,r){return e===t&&i===r?eM:n=>0===n||1===n?n:i5(function(e,t,i,r,n){let s,o,a=0;do(s=i5(o=t+(i-t)/2,r,n)-e)>0?i=o:t=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,e,i),t,r)}let i4=i3(.42,0,1,1),i9=i3(0,0,.58,1),i6=i3(.42,0,.58,1),i8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i7=e=>t=>1-e(1-t),re=i3(.33,1.53,.69,.99),rt=i7(re),ri=i8(rt),rr=e=>(e*=2)<1?.5*rt(e):.5*(2-Math.pow(2,-10*(e-1))),rn=e=>1-Math.sin(Math.acos(e)),rs=i7(rn),ro=i8(rn),ra={linear:eM,easeIn:i4,easeInOut:i6,easeOut:i9,circIn:rn,circInOut:ro,circOut:rs,backIn:rt,backInOut:ri,backOut:re,anticipate:rr},rl=e=>{if(e2(e)){eo(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,r,n]=e;return i3(t,i,r,n)}return"string"==typeof e?(eo(void 0!==ra[e],`Invalid easing type '${e}
3'`,"invalid-easing-type"),ra[e]):e},rd=(e,t,i)=>{let r=t-e;return 0===r?1:(i-e)/r};function ru({duration:e=300,keyframes:t,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rl):rl(r),a={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:r,mixer:n}={}){let s=e.length;if(eo(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let r=[],n=i||eN.mix||iU,s=e.length-1;for(let i=0;i<s;i++){let s=n(e[i],e[i+1]);t&&(s=iE(Array.isArray(t)?t[i]||eM:t,s)),r.push(s)}return r}(t,r,n),l=a.length,d=i=>{if(o&&i<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(i<e[r+1]);r++);let n=rd(e[r],e[r+1],i);return a[r](n)};return i?t=>d(c(e[0],e[s-1],t)):d}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let r=1;r<=t;r++){let n=rd(0,t,r);e.push(tO(i,1,n))}}(s=[0],t.length-1),s),n.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||i6).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let rc={decay:i2,inertia:i2,tween:ru,keyframes:ru,spring:i1};function rh(e){"string"==typeof e.type&&(e.type=rc[e.type])}let rm=e=>e/100;class rp extends e0{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tr.now()&&this.tick(tr.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e1.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rh(e);let{type:t=ru,repeat:i=0,repeatDelay:r=0,repeatType:n,velocity:s=0}=e,{keyframes:o}=e,a=t||ru;a!==ru&&"number"!=typeof o[0]&&(this.mixKeyframes=iE(rm,iU(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iH(l));let{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:r,mixKeyframes:n,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:d,repeat:u,repeatType:h,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,b=i;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,u+1))%2&&("reverse"===h?(i=1-i,m&&(i-=m/o)):"mirror"===h&&(b=s)),x=c(0,1,i)*o}let w=v?{done:!1,value:d[0]}:b.next(x);n&&(w.value=n(w.value));let{done:k}=w;v||null===a||(k=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return j&&p!==i2&&(w.value=eQ(d,this.options,g,this.speed)),f&&f(w.value),j&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eq(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(tr.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iW,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tr.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e1.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rf={anticipate:rr,backInOut:ri,circInOut:ro};class rg extends e7{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rf&&(e.ease=rf[e.ease])}(e),rh(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:r,element:n,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new rp({...s,autoplay:!1}),a=Math.max(10,tr.now()-this.startTime),l=c(0,10,a-10);t.setWithVelocity(o.sample(Math.max(0,a-l)).value,o.sample(a).value,l),o.stop()}}let ry=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(B.test(e)||"0"===e)&&!e.startsWith("url("));function rv(e){e.duration=0,e.type="keyframes"}let rx=new Set(["opacity","clipPath","filter","transform"]),rb=eK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rw extends e0{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tr.now();const c={autoplay:e,delay:t,type:i,repeat:r,repeatDelay:n,repeatType:s,name:a,motionValue:l,element:d,...u},h=d?.KeyframeResolver||e_;this.keyframeResolver=new h(o,(e,t,i)=>this.onKeyframesResolved(e,t,c,!i),a,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,r){this.keyframeResolver=void 0;let{name:n,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:d}=i;this.resolvedAt=tr.now(),!function(e,t,i,r){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=ry(n,t),a=ry(s,t);return es(o===a,`You are trying to animate ${t} from "${n}" to "${s}". "${o?s:n}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||e8(i))&&r)}(e,n,s,o)&&((eN.instantAnimations||!a)&&d?.(eQ(e,i,t)),e[0]=e[e.length-1],rv(i),i.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},c=!l&&function(e){let{motionValue:t,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
3let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return rb()&&i&&rx.has(i)&&("transform"!==i||!l)&&!a&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}(u),h=u.motionValue?.owner?.current,m=c?new rg({...u,element:h}):new rp(u);m.finished.then(()=>{this.notifyFinished()}).catch(eM),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eF=!0,e$(),eB(),eF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rk={type:"spring",stiffness:500,damping:25,restSpeed:10},rj={type:"keyframes",duration:.8},rS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rP=e=>null!==e,rT=(e,t,i,r={},n,s)=>o=>{let a=iT(r,e)||{},l=a.delay||r.delay||0,{elapsed:d=0}=r;d-=eq(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-d,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function({when:e,delay:t,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:d,...u}){return!!Object.keys(u).length}(a)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?rj:u.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rk:rS)(e,c)),c.duration&&(c.duration=eq(c.duration)),c.repeatDelay&&(c.repeatDelay=eq(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(rv(c),0===c.delay&&(h=!0)),(eN.instantAnimations||eN.skipAnimations||n?.shouldSkipAnimations)&&(h=!0,rv(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"}){let r=e.filter(rP),n=t&&"loop"!==i&&t%2==1?0:r.length-1;return r[n]}(c.keyframes,a);if(void 0!==e)return void eV.update(()=>{c.onUpdate(e),c.onComplete()})}return a.isSync?new rp(c):new rw(c)};function rC(e,t,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?iP(s,l):l;let d=s?.reduceMotion;r&&(s=r);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let t in a){let r=e.getValue(t,e.latestValues[t]??null),n=a[t];if(void 0===n||c&&function({protectedKeys:e,needsAnimating:t},i){let r=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,r}(c,t))continue;let o={delay:i,...iT(s||{},t)},l=r.get();if(void 0!==l&&!r.isAnimating&&!Array.isArray(n)&&n===l&&!o.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let i=e.props[iv];if(i){let e=window.MotionHandoffAnimation(i,t,eV);null!==e&&(o.startTime=e,h=!0)}}iM(e,t);let m=d??e.shouldReduceMotion;r.start(rT(t,r,n,m&&ee.has(t)?{type:!1}:o,e,h));let p=r.animation;p&&u.push(p)}if(o){let t=()=>eV.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:r={},...n}=iS(e,t)||{};for(let t in n={...n,...i}){var s;let i=iC(s=n[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,ts(i))}}(e,o)});u.length?Promise.all(u).then(t):t()}return u}function rM(e,t,i,r=0,n=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*r;return"function"==typeof i?i(s,o):1===n?s*r:a-s*r}function rN(e,t,i={}){let r=iS(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>
3Promise.all(rC(e,r,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(e,t,i=0,r=0,n=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rN(l,t,{...o,delay:i+("function"==typeof r?0:r)+rM(e.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,s,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}let rE=tc.length;function rA(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}let rV=[...tu].reverse(),rR=tu.length;function rD(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rz(){return{animate:rD(!0),whileInView:rD(),whileHover:rD(),whileTap:rD(),whileDrag:rD(),whileFocus:rD(),exit:rD()}}let rL=0;function rO(e){return[e("x"),e("y")]}let rI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rF=new Set(["INPUT","SELECT","TEXTAREA"]);function rB(e,t,i,r={passive:!0}){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i)}let r$={x:!1,y:!1};function r_(e){return e.max-e.min}function rU(e,t,i,r=.5){e.origin=r,e.originPoint=tO(t.min,t.max,e.origin),e.scale=r_(i)/r_(t),e.translate=tO(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rW(e,t,i,r){rU(e.x,t.x,i.x,r?r.originX:void 0),rU(e.y,t.y,i.y,r?r.originY:void 0)}function rH(e,t,i){e.min=i.min+t.min,e.max=e.min+r_(t)}function rq(e,t,i){e.min=t.min-i.min,e.max=e.min+r_(t)}function rY(e,t,i){rq(e.x,t.x,i.x),rq(e.y,t.y,i.y)}function rX(e){return"object"==typeof e&&null!==e}function rG(e){return rX(e)&&"ownerSVGElement"in e}function rK(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let n=i?.[e]??r.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let rZ=new WeakMap,rJ=(e,t,i)=>(r,n)=>n&&n[0]?n[0][e+"Size"]:rG(r)&&"getBBox"in r?r.getBBox()[t]:r[i],rQ=rJ("inline","width","offsetWidth"),r0=rJ("block","height","offsetHeight");function r1({target:e,borderBoxSize:t}){rZ.get(e)?.forEach(i=>{i(e,{get width(){return rQ(e,t)},get height(){return r0(e,t)}})})}function r2(e){e.forEach(r1)}let r5=new Set;function r3(e,t){let n;return"function"==typeof e?(r5.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r5.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{r5.delete(e),r5.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(r2)),(n=rK(e)).forEach(e=>{let r=rZ.get(e);r||(r=new Set,rZ.set(e,r)),r.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let r=rZ.get(e);r?.delete(t),r?.size||i?.unobserve(e)})})}let r4=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function r9(e){return{point:{x:e.pageX,y:e.pageY}}}function r6(e,t,i,r){return rB(e,t,e=>r4(e)&&i(e,r9(e)),r)}let r8=({current:e})=>e?e.ownerDocument.defaultView:null,r7=(e,t)=>Math.abs(e-t),ne=new Set(["auto","scroll"]);class nt{constructor(e,t,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=nn(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(r7(e.x,t.x)**2+r7(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=eD;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>
3{this.lastMoveEvent=e,this.lastMoveEventInfo=ni(t,this.transformPagePoint),eV.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nn("pointercancel"===e.type?this.lastMoveEventInfo:ni(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),r&&r(e,s)},!r4(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const a=ni(r9(e),this.transformPagePoint),{point:l}=a,{timestamp:d}=eD;this.history=[{...l,timestamp:d}];const{onSessionStart:u}=t;u&&u(e,nn(a,this.history)),this.removeListeners=iE(r6(this.contextWindow,"pointermove",this.handlePointerMove),r6(this.contextWindow,"pointerup",this.handlePointerUp),r6(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ne.has(e.overflowX)||ne.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:r.x-t.x,y:r.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,r),eV.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eR(this.updatePoint)}}function ni(e,t){return t?{point:t(e.point)}:e}function nr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nn({point:e},t){return{point:e,delta:nr(e,ns(t)),offset:nr(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,r=ns(e);for(;t>=0&&(i=e[t],!(r.timestamp-i.timestamp>eq(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>2*eq(.1)&&(i=e[1]);let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function ns(e){return e[e.length-1]}function no(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function na(e,t){let i=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,r]=[r,i]),{min:i,max:r}}function nl(e,t,i){return{min:nd(e,t),max:nd(e,i)}}function nd(e,t){return"number"==typeof e?e:e[t]||0}let nu=new WeakMap;class nc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=e=>{t&&this.snapToCursor(r9(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(r$[e])return null;else return r$[e]=!0,()=>{r$[e]=!1};return r$.x||r$.y?null:(r$.x=r$.y=!0,()=>{r$.x=r$.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rO(e=>{let t=this.getAxisMotionValue(e).get()||0;if(P.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[e];r&&(t=r_(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eV.update(()=>n(e,t),!1,!0),iM(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&eV.update(()=>s(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new nt(e,{onSessionStart:n,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:r8(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,r=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!i)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&eV.postRender(()=>o(i,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:r}=this.getProps();if(!i||!nm(e,r,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},r){return void 0!==t&&e<t?e=r?tO(t,e,r.min):Math.max(e,t):void 0!==i&&e>i&&(e=r?tO(i,e,r.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&ib(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:r,right:n}){return{x:no(e.x,i,n),y:no(e.y,t,r)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nl(e,"left","right"),y:nl(e,"top","bottom")}}(t),r!==this.constraints&&!ib(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&rO(e=>{var t,r;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],r=this.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!ib(t))return!1;let r=t.current;eo(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(e,t,i){let r=t0(e,i),{scroll:n}=t;return n&&(tZ(r.x,n.offset.x),tZ(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(e=n.layout.layoutBox,{x:na(e.x,s.x),y:na(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=tU(e))}return o}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rO(o=>{if(!nm(o,t,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let d={type:"inertia",velocity:i?e[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,d)})).then(o)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iM(this.visualElement,e),i.start(rT(e,i,0,t,this.visualElement,!1))}stopAnimation(){rO(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){rO(t=>{let{drag:i}=this.getProps();if(!nm(t,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[t],o=n.get()||0;n.set(e[t]-tO(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!ib(t)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rO(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let s,o,a,l=t.get();r[e]=(i={min:l,max:l},n=this.constraints[e],s=.5,o=r_(i),(a=r_(n))>o?s=rd(n.min,n.max-o,i.min):o>a&&(s=rd(i.min,i.max-a,n.min)),c(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),rO(t=>{if(!nm(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];i.set(tO(n,s,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nu.set(this.visualElement,this);let t=this.visualElement.current,i=r6(t,"pointerdown",e=>{let{drag:i,dragListener:r=!0}=this.getProps(),n=e.target,s=n!==t&&(rF.has(n.tagName)||!0===n.isContentEditable);i&&r&&!s&&this.start(e)}),r=()=>{var i,r,n;let s,o,{dragConstraints:a}=this.getProps();ib(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,r=a.current,s=r3(i,nh(n=()=>this.scalePositionWithinConstraints())),o=r3(r,nh(n)),e=()=>{s(),o()}))},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eV.read(r);let o=rB(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rO(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function nh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nm(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let np=e=>(t,i)=>{e&&eV.update(()=>e(t,i),!1,!0)},nf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ng=l;function ny(e=!0){let t=(0,l.useContext)(ia);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=t,s=(0,l.useId)();(0,l.useEffect)(()=>
3{if(e)return n(s)},[e]);let o=(0,l.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!i&&r?[!1,o]:[!0]}let nv=!1;class nx extends ng.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&r&&i.register(n),nv&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:r,isPresent:n}=this.props,{projection:s}=i;return s&&(s.isPresent=n,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),nv=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==n?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||eV.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:r}=e;nv=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nb(e){let[t,i]=ny(),r=(0,ng.useContext)(t3);return(0,a.jsx)(nx,{...e,layoutGroup:r,switchLayoutGroup:(0,ng.useContext)(ix),isPresent:t,safeToRemove:i})}let nw=["TopLeft","TopRight","BottomLeft","BottomRight"],nk=nw.length,nj=e=>"string"==typeof e?parseFloat(e):e,nS=e=>"number"==typeof e||T.test(e);function nP(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nT=nM(0,.5,rs),nC=nM(.5,.95,eM);function nM(e,t,i){return r=>r<e?0:r>t?1:i(rd(e,t,r))}function nN(e,t){e.min=t.min,e.max=t.max}function nE(e,t){nN(e.x,t.x),nN(e.y,t.y)}function nA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nV(e,t,i,r,n){return e-=t,e=r+1/i*(e-r),void 0!==n&&(e=r+1/n*(e-r)),e}function nR(e,t,[i,r,n],s,o){!function(e,t=0,i=1,r=.5,n,s=e,o=e){if(P.test(t)&&(t=parseFloat(t),t=tO(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=tO(s.min,s.max,r);e===s&&(a-=t),e.min=nV(e.min,t,i,a,n),e.max=nV(e.max,t,i,a,n)}(e,t[i],t[r],t[n],t.scale,s,o)}let nD=["x","scaleX","originX"],nz=["y","scaleY","originY"];function nL(e,t,i,r){nR(e.x,t,nD,i?i.x:void 0,r?r.x:void 0),nR(e.y,t,nz,i?i.y:void 0,r?r.y:void 0)}function nO(e){return 0===e.translate&&1===e.scale}function nI(e){return nO(e.x)&&nO(e.y)}function nF(e,t){return e.min===t.min&&e.max===t.max}function nB(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n$(e,t){return nB(e.x,t.x)&&nB(e.y,t.y)}function n_(e){return r_(e.x)/r_(e.y)}function nU(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nW{constructor(){this.members=[]}add(e){eY(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let r=i.instance;r&&!1===r.isConnected&&!1!==i.isPresent&&!i.snapshot&&eX(this.members,i)}e.scheduleRender()}remove(e){if(eX(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e],r=i.instance;if(!1!==i.isPresent&&(!r||!1!==r.isConnected)){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender();let r=i.options.layoutDependency,n=e.options.layoutDependency;if(void 0===r||void 0===n||r!==n){let r=i.instance;!(r&&!1===r.isConnected&&!i.snapshot)&&(e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}let{crossfade:s}=e.options;!1===s&&i.hide()}}
3exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nH=(e,t)=>e.depth-t.depth;class nq{constructor(){this.children=[],this.isDirty=!1}add(e){eY(this.children,e),this.isDirty=!0}remove(e){eX(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nH),this.isDirty=!1,this.children.forEach(e)}}let nY=["","X","Y","Z"],nX=0;function nG(e,t,i,r){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nK({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=nX++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nQ),this.nodes.forEach(n9),this.nodes.forEach(n6),this.nodes.forEach(n0)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nq)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eG),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rG(t)&&!(rG(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||i)&&(this.isLayoutDirty=!0),e){let i,r=0,n=()=>this.root.updateBlockedByResize=!1;eV.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,s;r=e,this.root.updateBlockedByResize=!0,i&&i(),t=tr.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(eR(s),n(i-250))},eV.setup(s,!0),i=()=>eR(s),nf.hasAnimatedSinceResize&&(nf.hasAnimatedSinceResize=!1,this.nodes.forEach(n4))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||sr,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!n$(this.targetLayout,r),d=!t&&i;if(this.options.layoutRoot||this.resumeFrom||d||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iT(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,d)}else t||n4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eR(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
3h(n8),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let r=i.props[iv];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eV,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n2);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n5);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n3),this.nodes.forEach(nZ),this.nodes.forEach(nJ)):this.nodes.forEach(n5),this.clearAllSnapshots();let e=tr.now();eD.delta=c(0,1e3/60,e-eD.timestamp),eD.timestamp=e,eD.isProcessing=!0,ez.update.process(eD),ez.preRender.process(eD),ez.render.process(eD),eD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n1),this.sharedNodes.forEach(n7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eV.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eV.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||r_(this.snapshot.measuredBox.x)||r_(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nI(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tq(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),r=this.removeElementScroll(i);return e&&(r=this.removeTransform(r)),so((t=r).x),so(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sl))){let{scroll:e}=this.root;e&&(tZ(t.x,e.offset.x),tZ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(nE(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&nE(t,e),tZ(t.x,n.offset.x),tZ(t.y,n.offset.y))}return t}applyTransform(e,t=!1){let i=J();nE(i,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tQ(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tq(r.latestValues)&&tQ(i,r.latestValues)}return tq(this.latestValues)&&tQ(i,this.latestValues),i}removeTransform(e){let t=J();nE(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!tq(i.latestValues))continue;tH(i.latestValues)&&i.updateSnapshot();let r=J();nE(r,i.measurePageBox()),nL(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return tq(this.latestValues)&&nL(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
3isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(!this.layout||!(r||n))return;this.resolvedRelativeTargetAt=eD.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,rH(o.x,a.x,l.x),rH(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nE(this.target,this.layout.layoutBox),tK(this.target,this.targetDelta)):nE(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tH(this.parent.latestValues)||tY(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),rY(this.relativeTargetOrigin,t,i),nE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eD.timestamp&&(i=!1),i)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;nE(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,r=!1){let n,s,o=i.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tQ(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tK(e,s)),r&&tq(n.latestValues)&&tQ(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nA(this.prevProjectionDelta.x,this.projectionDelta.x),nA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rW(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nU(this.projectionDelta.x,this.prevProjectionDelta.x)&&nU(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(e,t=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=J(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),u=!d||d.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(si));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(se(o.x,e.x,r),se(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,h,m,p,f,g;rY(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,g=r,st(m.x,p.x,f.x,g),st(m.y,p.y,f.y,g),i&&(d=this.relativeTarget,h=i,nF(d.x,h.x)&&nF(d.y,h.y))&&(this.isProjectionDirty=!1),i||(i=J()),nE(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,r,n,s){n?(e.opacity=tO(0,i.opacity??1,nT(r)),e.o
3pacityExit=tO(t.opacity??1,0,nC(r))):s&&(e.opacity=tO(t.opacity??1,i.opacity??1,r));for(let n=0;n<nk;n++){let s=`border${nw[n]}Radius`,o=nP(t,s),a=nP(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nS(o)===nS(a)?(e[s]=Math.max(tO(nj(o),nj(a),r),0),(P.test(a)||P.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||i.rotate)&&(e.rotate=tO(t.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eV.update(()=>{var t,i,r;let n;nf.hasAnimatedSinceResize=!0,e1.layout++,this.motionValue||(this.motionValue=ts(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e1.layout--},onComplete:()=>{e1.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=Q(t)?t:ts(t)).start(rT("",n,i,r)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:r,latestValues:n}=e;if(t&&i&&r){if(this!==e&&this.layout&&r&&sa(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||J();let t=r_(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let r=r_(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+r}nE(t,i),tQ(t,n),rW(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nW),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let r={};i.z&&nG("z",e,r,this.animationValues);for(let t=0;t<nY.length;t++)nG(`rotate${nY[t]}`,e,r,this.animationValues),nG(`skew${nY[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=io(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=io(t?.pointerEvents)||""),this.hasProjected&&!tq(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let r="",n=e.x.translate/t.x,s=e.y.translate/t.y,o=i?.z||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l}
3)`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(s=i(n,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=r===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tI){if(void 0===n[t])continue;let{correct:i,applyTo:o,isCSSVariable:a}=tI[t],l="none"===s?n[t]:i(n[t],r);if(o){let t=o.length;for(let i=0;i<t;i++)e[o[i]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?io(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n2),this.root.sharedNodes.clear()}}}function nZ(e){e.updateLayout()}function nJ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:n}=e.options,s=t.source!==e.layout.source;"size"===n?rO(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],n=r_(r);r.min=i[e].min,r.max=r.min+n}):sa(n,t.layoutBox,i)&&rO(r=>{let n=s?t.measuredBox[r]:t.layoutBox[r],o=r_(i[r]);n.max=n.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=K();rW(o,i,t.layoutBox);let a=K();s?rW(a,e.applyTransform(r,!0),t.measuredBox):rW(a,i,t.layoutBox);let l=!nI(o),d=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=J();rY(o,t.layoutBox,n.layoutBox);let a=J();rY(a,i,s.layoutBox),n$(o,a)||(d=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nQ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n0(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n1(e){e.clearSnapshot()}function n2(e){e.clearMeasurements()}function n5(e){e.isLayoutDirty=!1}function n3(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n9(e){e.resolveTargetDelta()}function n6(e){e.calcProjection()}function n8(e){e.resetSkewAndRotation()}function n7(e){e.removeLeadSnapshot()}function se(e,t,i){e.translate=tO(t.translate,0,i),e.scale=tO(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function st(e,t,i,r){e.min=tO(t.min,i.min,r),e.max=tO(t.max,i.max,r)}function si(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sr={duration:.45,ease:[.4,0,.1,1]},sn=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ss=sn("applewebkit/")&&!sn("chrome/")?Math.round:eM;function so(e){e.min=ss(e.min),e.max=ss(e.max)}function sa(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n_(t)-n_(i)))}function sl(e){return e!==e.root&&e.scroll?.wasRoot}let sd=nK({attachResizeListener:(e,t)=>rB(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),su={current:void 0},sc=nK({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!su.current){let e=new sd({});e.mount(window),e.setOptions({layoutScroll:!0}),su.current=e}return su.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sh(e,t){let i=rK(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sm(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&eV.postRender(()=>n(t,r9(t)))}function sp(e){return rX(e)&&"offsetHeight"in e}let sf=(e,t)=>
3!!t&&(e===t||sf(e,t.parentElement)),sg=new WeakSet;function sy(e){return t=>{"Enter"===t.key&&e(t)}}function sv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sx(e){return r4(e)&&!(r$.x||r$.y)}let sb=new WeakSet;function sw(e,t,i){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&eV.postRender(()=>n(t,r9(t)))}let sk=new WeakMap,sj=new WeakMap,sS=e=>{let t=sk.get(e.target);t&&t(e)},sP=e=>{e.forEach(sS)},sT={some:0,all:1},sC=function(e,t){if("u"<typeof Proxy)return ik;let i=new Map,r=(i,r)=>ik(i,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(n,s)=>"create"===s?r:(i.has(s)||i.set(s,ik(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends ij{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rN(e,t,i)));else if("string"==typeof t)r=rN(e,t,i);else{let n="function"==typeof t?iS(e,t,i.custom):t;r=Promise.all(rC(e,n,i))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=rz(),r=!0,n=t=>(i,r)=>{let n=iS(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...r}=n;i={...i,...r,...t}}return i};function s(s){let{props:o}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<rE;e++){let r=tc[e],n=t.props[r];(td(n)||!1===n)&&(i[r]=n)}return i}(e.parent)||{},l=[],d=new Set,u={},c=1/0;for(let t=0;t<rR;t++){var h,m;let p=rV[t],f=i[p],g=void 0!==o[p]?o[p]:a[p],y=td(g),v=p===s?f.isActive:null;!1===v&&(c=t);let x=g===a[p]&&g!==o[p]&&y;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===v||!g&&!f.prevProp||tl(g)||"boolean"==typeof g)continue;if("exit"===p&&f.isActive&&!0!==v){f.prevResolvedValues&&(u={...u,...f.prevResolvedValues});continue}let b=(h=f.prevProp,"string"==typeof(m=g)?m!==h:!!Array.isArray(m)&&!rA(m,h)),w=b||p===s&&f.isActive&&!x&&y||t>c&&y,k=!1,j=Array.isArray(g)?g:[g],S=j.reduce(n(p),{});!1===v&&(S={});let{prevResolvedValues:P={}}=f,T={...P,...S},C=t=>{w=!0,d.has(t)&&(k=!0,d.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in T){let t=S[e],i=P[e];if(!u.hasOwnProperty(e))(iC(t)&&iC(i)?rA(t,i):t===i)?void 0!==t&&d.has(e)?C(e):f.protectedKeys[e]=!0:null!=t?C(e):d.add(e)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(w=!1);let M=x&&b,N=!M||k;w&&N&&l.push(...j.map(t=>{let i={type:p};if("string"==typeof t&&r&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,n=iS(r,t);if(r.enteringChildren&&n){let{delayChildren:t}=n.transition||{};i.delay=rM(r.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(d.size){let t={};if("boolean"!=typeof o.initial){let i=iS(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}d.forEach(i=>{let r=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(i[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),i[t].isActive=r;let n=s(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=rz()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ij{constructor(){super(...arguments),this.id=rL++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
3{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends ij{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:sT[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,o&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=t?i:r;n&&n(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;sj.has(i)||sj.set(i,{});let r=sj.get(i),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(sP,{root:e,...t})),r[n]}(a),sk.set(e,l),t.observe(e),()=>{sk.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ij{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[r,n,s]=sh(e,i),o=e=>{let r=e.currentTarget;if(!sx(e)||sb.has(e))return;sg.add(r),i.stopPropagation&&sb.add(e);let s=t(r,e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sg.has(r)&&sg.delete(r),sx(e)&&"function"==typeof s&&s(e,{success:t})},a=e=>{o(e,r===window||r===document||i.useGlobalTarget||sf(r,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",o,n),sp(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let r=sy(()=>{if(sg.has(i))return;sv(i,"down");let e=sy(()=>{sv(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sv(i,"cancel"),t)});i.addEventListener("keydown",r,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),t)})(e,n)),rI.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sw(this.node,t,"Start"),(e,{success:t})=>sw(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ij{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iE(rB(this.node.current,"focus",()=>this.onFocus()),rB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ij{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[r,n,s]=sh(e,i);return r.forEach(e=>{let i,r=!1,s=!1,o=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(e))},l=e=>{if("touch"!==e.pointerType){if(r){s=!0;return}o(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||r$.x||r$.y)return;s=!1;let o=t(e,r);"function"==typeof o&&(i=o,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),s}(e,(e,t)=>(sm(this.node,t,"Start"),e=>sm(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends ij{constructor(){super(...arguments),this.removePointerDownListener=eM}onPointerDown(e){this.session=new nt(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r8(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:np(e),onStart:np(t),onMove:np(i),onEnd:(e,t)=>{delete this.session,r&&eV.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=r6(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ij{constructor(e){super(e),this.removeGroupControls=eM,this.removeListeners=eM,this.controls=new nc(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eM}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sc,MeasureLayout:nb},layout:{ProjectionNode:sc,MeasureLayout:nb}},(e,t)=>t.isSVG??t5(e)?new t_(t):new t1(t,{allowProjection:e!==l.Fragment})),sM=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},sN=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim();var sE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let sA=(0,l.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:n="",children:s,iconNode:o,...a},d)=>(0,l.createElement)("svg",{ref:d,...sE,width:t,height:t,stroke:e,strokeWidth:r?24*Number(i)/Number(t):i,className:sN("lucide",n),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(a)&&{"aria-hidden":"true"},...a},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(s)?s:[s]])),sV=(e,t)=>{let i=(0,l.forwardRef)(({className:i,...r},n)=>(0,l.createElement)(sA,{ref:n,iconNode:t,className:sN(`lucide-${sM(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...r}));return i.displayName=sM(e),i},sR=sV("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),sD=sV("image-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]),sz=sV("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),sL=sV("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 
31.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),sO=sV("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),sI=sV("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),sF=sV("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]),sB=sV("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var s$=l;function s_(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class sU extends s$.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=sp(e)&&e.offsetWidth||0,r=sp(e)&&e.offsetHeight||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=i-n.width-n.left,n.bottom=r-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function sW({children:e,isPresent:t,anchorX:i,anchorY:r,root:n,pop:s}){let o=(0,s$.useId)(),d=(0,s$.useRef)(null),u=(0,s$.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,s$.useContext)(t9),h=function(...e){return l.useCallback(function(...e){return t=>{let i=!1,r=e.map(e=>{let r=s_(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof i?i():s_(e[t],null)}}}}(...e),e)}(d,e.props?.ref??e?.ref);return(0,s$.useInsertionEffect)(()=>{let{width:e,height:a,top:l,left:h,right:m,bottom:p}=u.current;if(t||!1===s||!d.current||!e||!a)return;let f="left"===i?`left: ${h}`:`right: ${m}`,g="bottom"===r?`bottom: ${p}`:`top: ${l}`;d.current.dataset.motionPopId=o;let y=document.createElement("style");c&&(y.nonce=c);let v=n??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`
4          [data-motion-pop-id="${o}"] {
5            position: absolute !important;
6            width: ${e}px !important;
7            height: ${a}px !important;
8            ${f}px !important;
9            ${g}px !important;
10          }
11        `),()=>{v.contains(y)&&v.removeChild(y)}},[t]),(0,a.jsx)(sU,{isPresent:t,childRef:d,sizeRef:u,pop:s,children:!1===s?e:s$.cloneElement(e,{ref:h})})}let sH=({children:e,initial:t,isPresent:i,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:o,anchorX:d,anchorY:u,root:c})=>{let h=il(sq),m=(0,l.useId)(),p=!0,f=(0,l.useMemo)(()=>(p=!1,{id:m,initial:t,isPresent:i,custom:n,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;r&&r()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[i,h,r]);return s&&p&&(f={...f}),(0,l.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[i]),l.useEffect(()=>{i||h.size||!r||r()},[i]),e=(0,a.jsx)(sW,{pop:"popLayout"===o,isPresent:i,anchorX:d,anchorY:u,root:c,children:e}),(0,a.jsx)(ia.Provider,{value:f,children:e})};function sq(){return new Map}let sY=e=>e.key||"";function sX(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}let sG=({children:e,custom:t,initial:i=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:s="sync",propagate:o=!1,anchorX:d="left",anchorY:u="top",root:c})=>{let[h,m]=ny(o),p=(0,l.useMemo)(()=>sX(e),[e]),f=o&&!h?[]:p.map(sY),g=(0,l.useRef)(!0),y=(0,l.useRef)(p),v=il(()=>new Map),x=(0,l.useRef)(new Set),[b,w]=(0,l.useState)(p),[k,j]=(0,l.useState)(p);iw(()=>{g.current=!1,y.current=p;for(let e=0;e<k.length;e++){let t=sY(k[e]);f.includes(t)?(v.delete(t),x.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[k,f.length,f.join("-")]);let S=[];if(p!==b){let e=[...p];for(let t=0;t<k.length;t++){let i=k[t],r=sY(i);f.includes(r)||(e.splice(t,0,i),S.push(i))}return"wait"===s&&S.length&&(e=S),j(sX(e)),w(p),null}let{forceRender:P}=(0,l.useContext)(t3);return(0,a.jsx)(a.Fragment,{children:k.map(e=>
11{let l=sY(e),b=(!o||!!h)&&(p===k||f.includes(l));return(0,a.jsx)(sH,{isPresent:b,initial:(!g.current||!!i)&&void 0,custom:t,presenceAffectsLayout:n,mode:s,root:c,onExitComplete:b?void 0:()=>{if(x.current.has(l)||(x.current.add(l),!v.has(l)))return;v.set(l,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(P?.(),j(y.current),o&&m?.(),r&&r())},anchorX:d,anchorY:u,children:e},l)})})},sK=[{name:"Všechny",value:"",class:""},{name:"Červená",value:"red",class:"bg-red-500"},{name:"Oranžová",value:"orange",class:"bg-orange-500"},{name:"Žlutá",value:"yellow",class:"bg-yellow-400"},{name:"Zelená",value:"green",class:"bg-green-500"},{name:"Tyrkysová",value:"turquoise",class:"bg-teal-400"},{name:"Modrá",value:"blue",class:"bg-blue-500"},{name:"Fialová",value:"violet",class:"bg-violet-500"},{name:"Růžová",value:"pink",class:"bg-pink-400"},{name:"Hnědá",value:"brown",class:"bg-amber-800"},{name:"Černá",value:"black",class:"bg-neutral-900"},{name:"Šedá",value:"gray",class:"bg-gray-400"},{name:"Bílá",value:"white",class:"bg-white border border-gray-300"}],sZ={free:{badge:"Volně k užití",color:"bg-emerald-100 text-emerald-700 border-emerald-200",description:"Volně dostupné pod licencí Pexels. Uvedení autora není povinné, ale je vítáno.",attributionRequired:!1,commercialUse:!0,modificationAllowed:!0,details:["Není nutné uvádět autora","Komerční použití povoleno","Úpravy povoleny","Nelze prodávat nezměněné kopie","Nelze použít způsobem, který by poškodil zobrazené osoby"]},cc0:{badge:"CC0 / Veřejná doména",color:"bg-sky-100 text-sky-700 border-sky-200",description:"Uvolněno do veřejné domény. Žádná autorská omezení. Použijte libovolně.",attributionRequired:!1,commercialUse:!0,modificationAllowed:!0,details:["Nulová autorská omezení","Není nutné uvádět autora","Komerční použití povoleno","Lze volně upravovat","Lze použít v ochranných známkách"]},"creative-commons":{badge:"CC BY Attribution",color:"bg-amber-100 text-amber-700 border-amber-200",description:"Licence Creative Commons s uvedením autora. Volně k použití se správným připsáním.",attributionRequired:!0,commercialUse:!0,modificationAllowed:!0,details:["Uvedení autora povinné","Komerční použití povoleno","Úpravy povoleny","Při úpravách sdílet stejnou licenci (CC BY-SA)","Nelze přidávat další omezení"]},editorial:{badge:"Pouze editoriální",color:"bg-orange-100 text-orange-700 border-orange-200",description:"Pouze editoriální použití. Nelze použít pro komerční reklamu nebo propagaci produktu.",attributionRequired:!0,commercialUse:!1,modificationAllowed:!1,details:["Pouze zpravodajské, komentáře nebo vzdělávací účely","Žádná komerční reklama","Nelze propagovat produkty nebo služby","Uvedení autora obvykle vyžadováno","Často obsahuje rozpoznatelné osoby nebo ochranné známky"]},"rights-managed":{badge:"Spravovaná práva",color:"bg-rose-100 text-rose-700 border-rose-200",description:"Vyžaduje placenou licenci. Cena závisí na způsobu použití, trvání, území a typu média.",attributionRequired:!1,commercialUse:!0,modificationAllowed:!1,details:["Vyžadována placená licence","Platí omezení použití (čas, geografické, média)","Typicky nevýhradně","Souhlas s modelováním obvykle zahrnut","Cena se liší podle zamýšleného použití"]}};function sJ(e){return sZ[e.avg_color?parseInt(e.avg_color.replace("#",""),16)%100<90?"free":"cc0":"free"]}function sQ({filters:e,onFilterChange:t}){let[i,r]=(0,l.useState)(!1),n=i=>{t({...e,...i})},s=+("all"!==e.orientation)+ +(""!==e.color)+ +("all"!==e.licenseType)+ +("relevance"!==e.sortBy),o="flex items-center gap-2 px-3.5 py-2 rounded-xl border border-border bg-background hover:bg-muted transition-colors text-sm font-medium";return(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsxs)("select",{value:e.sortBy,onChange:e=>n({sortBy:e.target.value}),className:`${o} appearance-none pr-9 cursor-pointer`,children:[(0,a.jsx)("option",{value:"relevance",children:"Nejrelevantnější"}),(0,a.jsx)("option",{value:"newest",children:"Nejnovější"}),(0,a.jsx)("option",{value:"popular",children:"Největší rozlišení"})]}),(0,a.jsx)(sI,{className:"w-3.5 h-3.5 text-muted-foreground absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none"})]}),(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsxs)("select",{value:e.orientation,onChange:e=>n({orientation:e.target.value}),className:`${o} appearance-none pr-9 cursor-pointer`,children:[(0,a.jsx)("option",{value:"all",children:"Jakákoli orientace"}),(0,a.jsx)("option",{value:"landscape",children:"Krajina"}),(0,a.jsx)("option",{value:"portrait",children:"Portrét"}),(0,a.jsx)("option",{value:"square",children:"Čtverec"})]}),(0,a.jsx)(sI,{className:"w-3.5 h-3.5 text-muted-foreground absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none"})]}),(0,a.jsxs)("button",{onClick:()=>r(!i),className:`${o} ${i?"bg-muted border-primary/30":""}`,children:[(0,a.jsx)(sF,{className:"w-3.5 h-3.5"}),(0,a.jsx)("span",{children:"Další filtry"}),s>0&&(0,a.jsx)("span",{className:"ml-0.5 w-5 h-5 rounded-full bg-primary text-primary-foreground text-[10px] font-bold flex items-center justify-center",children:s})]})]}),(0,a.jsx)(sG,{children:i&&(0,a.jsx)(sC.div,{initial:{height:0,opacity:0}
11,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25},className:"overflow-hidden",children:(0,a.jsxs)("div",{className:"bg-muted/40 rounded-xl p-4 space-y-4 border border-border",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2 block",children:"Barevná paleta"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:sK.map(t=>(0,a.jsxs)("button",{onClick:()=>n({color:e.color===t.value?"":t.value}),className:`flex items-center gap-1.5 px-2.5 py-1.5 rounded-full border text-xs font-medium transition-all ${e.color===t.value?"border-primary bg-primary/10 text-foreground ring-1 ring-primary/30":"border-border bg-background text-muted-foreground hover:border-muted-foreground/30"}`,children:[t.class&&(0,a.jsx)("span",{className:`w-3.5 h-3.5 rounded-full ${t.class} ${"white"===t.value?"border border-gray-300":""}`}),t.name]},t.value))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2 block",children:"Licence / Práva"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:[{label:"Vše",value:"all"},{label:"Volně k užití",value:"free"},{label:"CC0 / Veřejná doména",value:"cc0"},{label:"Creative Commons",value:"creative-commons"},{label:"Editoriální",value:"editorial"},{label:"Spravovaná práva",value:"rights-managed"}].map(t=>(0,a.jsx)("button",{onClick:()=>n({licenseType:t.value}),className:`px-3 py-1.5 rounded-full border text-xs font-medium transition-all ${e.licenseType===t.value?"border-primary bg-primary/10 text-foreground":"border-border bg-background text-muted-foreground hover:border-muted-foreground/30"}`,children:t.label},t.value))})]}),s>0&&(0,a.jsxs)("button",{onClick:()=>t({orientation:"all",color:"",licenseType:"all",sortBy:"relevance"}),className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[(0,a.jsx)(sB,{className:"w-3 h-3"}),"Vymazat všechny filtry"]})]})})})]})}var s0=e.i(57688);let s1=sV("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),s2=sV("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]),s5=sV("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),s3=sV("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function s4({photo:e,index:t,onSelect:i,isSaved:r=!1,onToggleSave:n}){var s;let[o,d]=(0,l.useState)("loading"),u=(s=e).width&&s.height&&!(s.width<=0)?Math.max(180,Math.min(520,Math.round(280*(s.height/s.width)))):300,c=async t=>{t.stopPropagation();try{let t=await fetch(e.src.large2x);if(!t.ok)throw Error("Chyba sítě");let i=await t.blob(),r=URL.createObjectURL(i),n=document.createElement("a");n.href=r,n.download=`pexels-${e.photographer.replace(/\s+/g,"-")}-${e.id}.jpg`,document.body.appendChild(n),n.click(),n.remove(),setTimeout(()=>URL.revokeObjectURL(r),5e3)}catch(t){console.error("Stahování selhalo:",t),window.open(e.url,"_blank","noopener,noreferrer")}};return(0,a.jsxs)(sC.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:Math.min(.05*t,.4),duration:.35},className:"group relative rounded-xl overflow-hidden bg-card shadow-sm hover:shadow-lg transition-all duration-300 cursor-pointer mb-4 break-inside-avoid",onClick:()=>i(e),role:"button",tabIndex:0,onKeyDown:t=>"Enter"===t.key&&i(e),"aria-label":`Zobrazit ${e.alt||"obrázek"} od ${e.photographer}`,children:[(0,a.jsxs)("div",{className:"relative w-full overflow-hidden",style:{height:u},children:["loading"===o&&(0,a.jsx)("div",{className:"absolute inset-0 bg-muted animate-pulse"}),(0,a.jsx)(s0.default,{src:e.src.large,alt:e.alt||`Fotka od ${e.photographer}`,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100v
11w, (max-width: 1024px) 50vw, 33vw",loading:t<6?"eager":"lazy",onLoad:()=>d("loaded"),onError:()=>d("error")}),"error"===o&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-muted",children:(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Načítání selhalo"})})]}),(0,a.jsxs)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col justify-end p-4",children:[(0,a.jsxs)("div",{className:"absolute top-3 right-3 flex gap-2 opacity-0 group-hover:opacity-100 transition-all duration-300 translate-y-2 group-hover:translate-y-0",children:[n&&(0,a.jsx)("button",{onClick:t=>{t.stopPropagation(),n?.(e)},className:`w-9 h-9 rounded-full flex items-center justify-center transition-colors ${r?"bg-blue-600 text-white":"bg-white text-neutral-800 hover:bg-gray-100"}`,"aria-label":r?"Odstranit z kolekce":"Uložit do kolekce",children:(0,a.jsx)(s2,{className:`w-4 h-4 ${r?"fill-current":""}`})}),(0,a.jsx)("button",{onClick:c,className:"w-9 h-9 rounded-full bg-white text-neutral-800 hover:bg-gray-100 flex items-center justify-center transition-colors shadow-sm","aria-label":"Stáhnout obrázek",children:(0,a.jsx)(s1,{className:"w-4 h-4"})}),(0,a.jsx)("button",{onClick:t=>{t.stopPropagation(),i(e)},className:"w-9 h-9 rounded-full bg-white text-neutral-800 hover:bg-gray-100 flex items-center justify-center transition-colors shadow-sm","aria-label":"Info",children:(0,a.jsx)(s5,{className:"w-4 h-4"})})]}),(0,a.jsxs)("div",{className:"flex items-end justify-between gap-3",children:[(0,a.jsxs)("button",{onClick:t=>{t.stopPropagation(),window.open(e.photographer_url,"_blank","noopener,noreferrer")},className:"flex items-center gap-2 min-w-0 text-left group/photographer",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-white flex items-center justify-center shrink-0",children:(0,a.jsx)(s3,{className:"w-4 h-4 text-neutral-600"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-white truncate group-hover/photographer:underline",children:e.photographer}),(0,a.jsx)("p",{className:"text-xs text-white/60",children:e.width&&e.height?`${e.width} \xd7 ${e.height}`:e.alt||"Fotka"})]})]}),(0,a.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:(0,a.jsx)("span",{className:"text-xs font-medium px-3 py-1.5 rounded-full bg-white text-neutral-800 shadow-sm",children:"Stáhnout"})})]})]})]})}function s9({photos:e,onSelect:t,isSaved:i,onToggleSave:r}){return(0,a.jsx)("div",{className:"columns-1 sm:columns-2 lg:columns-3 xl:columns-4 gap-4",children:e.map((e,n)=>(0,a.jsx)(sC.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:Math.min(.05*n,.5),ease:"easeOut"},children:(0,a.jsx)(s4,{photo:e,index:n,onSelect:t,isSaved:i?.(e.id),onToggleSave:r})},`${e.id}-${n}`))})}let s6=sV("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),s8=sV("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),s7=sV("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),oe=sV("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),ot=sV("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),oi=sV("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]),or=sV("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
11y:"oel41y"}]]),on=sV("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),os=sV("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),oo=sV("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);function oa({photo:e,isOpen:t,onClose:i,isSaved:r=!1,onToggleSave:n}){let s,[o,d]=(0,l.useState)(!1),u=(0,l.useCallback)(()=>{i()},[i]);if((0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&u()};return t&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[t,u]),!e)return null;let c=`Fotka od ${e.photographer} na Pexels`,h=sJ(e);h.commercialUse&&h.attributionRequired;let m=null!=e.width&&null!=e.height&&e.width>0&&e.height>0,p=async()=>{try{await navigator.clipboard.writeText(c),d(!0),setTimeout(()=>d(!1),2e3)}catch{alert("Nepodařilo se zkopírovat text atribuce.")}},f=async(t,i)=>{try{let r=await fetch(t);if(!r.ok)throw Error("Chyba sítě");let n=await r.blob(),s=URL.createObjectURL(n),o=document.createElement("a");o.href=s,o.download=`pexels-${e.photographer.replace(/\s+/g,"-")}-${e.id}-${i}.jpg`,document.body.appendChild(o),o.click(),o.remove(),setTimeout(()=>URL.revokeObjectURL(s),5e3)}catch(t){console.error("Stahování selhalo:",t),window.open(e.url,"_blank","noopener,noreferrer")}},g=(s=encodeURIComponent(e.alt||e.photographer||"stock foto"),[{name:"Shutterstock",url:`https://www.shutterstock.com/search/${s}`,icon:"S",description:"Přes 400 milionů obrázků, vektorů a videí"},{name:"Adobe Stock",url:`https://stock.adobe.com/search?k=${s}`,icon:"A",description:"Profesionální kvalita, integrované s Creative Cloud"},{name:"iStock",url:`https://www.istockphoto.com/search/2/image?phrase=${s}`,icon:"i",description:"Dostupné royalty-free obrázky"},{name:"Getty Images",url:`https://www.gettyimages.com/search/2/image?phrase=${s}`,icon:"G",description:"Editoriální a kreativní prémiová fotografie"}]);return(0,a.jsx)(sG,{children:t&&(0,a.jsxs)(sC.div,{initial:{opacity:0}
11,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4",onClick:u,role:"dialog","aria-modal":"true","aria-label":"Náhled obrázku",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/80 backdrop-blur-sm"}),(0,a.jsxs)(sC.div,{initial:{opacity:0,y:40,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:40,scale:.96},transition:{duration:.3,ease:"easeOut"},onClick:e=>e.stopPropagation(),className:"relative w-full max-w-5xl max-h-[92vh] bg-background rounded-2xl shadow-2xl overflow-hidden flex flex-col",children:[(0,a.jsx)("button",{onClick:u,className:"absolute top-3 right-3 z-10 w-9 h-9 rounded-full bg-black/40 hover:bg-black/60 text-white flex items-center justify-center backdrop-blur-md transition-colors","aria-label":"Zavřít modal",children:(0,a.jsx)(sB,{className:"w-5 h-5"})}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,a.jsx)("div",{className:"relative md:w-3/5 bg-muted flex items-center justify-center p-2 min-h-[220px] md:min-h-[500px]",children:(0,a.jsx)(s0.default,{src:e.src.large2x,alt:e.alt||`Fotka od ${e.photographer}`,width:e.width||800,height:e.height||600,className:"max-w-full max-h-[60vh] md:max-h-[80vh] w-auto h-auto object-contain rounded-xl",priority:!0})}),(0,a.jsxs)("div",{className:"md:w-2/5 p-5 md:p-6 flex flex-col gap-5 border-t md:border-t-0 md:border-l border-border",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-foreground mb-1",children:e.alt||"Fotka bez názvu"}),(0,a.jsxs)("button",{onClick:()=>window.open(e.photographer_url,"_blank","noopener,noreferrer"),className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors group",children:[(0,a.jsx)("div",{className:"w-7 h-7 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)(s3,{className:"w-3.5 h-3.5 text-primary"})}),(0,a.jsx)("span",{className:"text-sm font-medium group-hover:underline",children:e.photographer}),(0,a.jsx)(s6,{className:"w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[m?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ol,{icon:(0,a.jsx)(oe,{className:"w-4 h-4"}),label:"Rozměry",value:`${e.width} \xd7 ${e.height} px`}),(0,a.jsx)(ol,{icon:(0,a.jsx)(ot,{className:"w-4 h-4"}),label:"Poměr stran",value:`${(e.width/e.height).toFixed(2)}`})]}):(0,a.jsxs)("div",{className:"col-span-2 flex items-center gap-3 p-3 rounded-xl bg-muted/60",children:[(0,a.jsx)(s5,{className:"w-4 h-4 text-muted-foreground"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Rozměry nejsou dostupné."})]}),(0,a.jsx)(ol,{icon:(0,a.jsx)(oi,{className:"w-4 h-4"}),label:"Převládající barva",value:e.avg_color||"Neznámá",color:e.avg_color}),(0,a.jsx)(ol,{icon:(0,a.jsx)(on,{className:"w-4 h-4"}),label:"Zdroj",value:"Pexels"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(or,{className:"w-4 h-4 text-muted-foreground"}),(0,a.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Licence"})]}),(0,a.jsxs)("div",{className:`p-3 rounded-xl border ${h.color} space-y-2`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-semibold",children:h.badge}),(0,a.jsx)("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-background/60",children:h.attributionRequired?"Je třeba uvést zdroj":"Není nutné uvést zdroj"})]}),(0,a.jsx)("p",{className:"text-xs leading-relaxed",children:h.description}),(0,a.jsx)("ul",{className:"space-y-1",children:h.details.slice(0,3).map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-1.5 text-xs",children:[(0,a.jsx)("span",{className:"mt-1 w-1 h-1 rounded-full bg-current shrink-0"}),e]},t))})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Atribuce"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("div",{className:"flex-1 bg-muted rounded-lg px-3 py-2 text-sm text-muted-foreground truncate select-all",children:c}),(0,a.jsx)("button",{onClick:p,className:"px-3 py-2 rounded-lg border border-border hover:bg-muted transition-colors flex items-center gap-1.5 shrink-0","aria-label":"Kopírovat atribuci",children:o?(0,a.jsx)(s7,{className:"w-4 h-4 text-emerald-500"}):(0,a.jsx)(s8,{className:"w-4 h-4"})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-xs font-medium text-muted-foreground mb-2 block",children:"Stáhnout"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsx)(od,{onClick:()=>f(e.src.original,"original"),label:"Originál"}),(0,a.jsx)(od,{onClick:()=>f(e.src.large2x,"large2x"),label:"Velký 2x"}),(0,a.jsx)(od,{onClick:()=>f(e.src.large,"large"),label:"Velký"}),(0,a.jsx)(od,{onClick:()=>f(e.src.medium,"medium"),label:"Střední"})]})]}),(0,a.jsxs)("div",{className:"border-t border-border pt-4 space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(os,{className:"w-4 h-4 text-amber-500"}),(0,a.jsx)("span",{className:"text-sm font-semibold text-foreground",children:"Koupit prémiové alternativy"})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Tyto tržiště nabízejí vyšší rozlišení nebo exkluzivní verze podobných obrázků s rozšířenou licencí."}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-2",children:g.map(e=>(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 rounded-xl border border-border hover:border-primary/40 hover:bg-muted/50 transition-all group",children:[(0,a.jsx)("div",{className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center text-primary font-bold text-sm shrink-0",children:e.icon}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-foreground group-hover:text-primary transition-colors",children:e.name}),(0,a.jsx)(oo,{className:"w-3 h-3 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.description})]})]},e.name))})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 mt-auto pt-2",children:[n&&(0,a.jsxs)("button",{onClick:n,className:`flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl border transition-colors min-w-[100px] ${r?"bg-primary/10 border-primary/30 text-primary":"border-border hover:bg-muted"}`,children:[(0,a.jsx)(s2,{className:`w-4 h-4 ${r?"fill-current":""}`}),(0,a.jsx)("span",{className:"text-sm font-medium",children:r?"Uloženo":"Uložit"})]}),(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl border border-border hover:bg-muted transition-colors text-sm font-medium min-w-[100px]",children:[(0,a.jsx)(s6,{className:"w-4 h-4"}),"Zobrazit na Pexels"]})]})]})]})})]})]})})}function ol({icon:e,label:t,value:i,color:r}){return(0,a.jsxs)("div",{className:"flex items-center gap-2.5 p-2.5 rounded-xl bg-muted/60",children:[(0,a.jsx)("div",{className:"text-muted-foreground",children:e}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wide",children:t}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[r&&(0,a.jsx)("div",{className:"w-3 h-3 rounded-full border border-gray-200 shrink-0",style:{backgroundColor:r}}),(0,a.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:i})]})]})]})}function od({onClick:e,label:t}){return(0,a.jsxs)("button",{onClick:e,className:"flex items-center justify-between px-3 py-2 rounded-xl border border-border hover:border-primary/40 hover:bg-muted/50 transition-all group text-left",children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"text-sm font-medium text-foreground group-hover:text-primary transition-colors",children:t})}),(0,a.jsx)(s1,{className:"w-4 h-4 text-muted-foreground group-hover:text-primary transition-colors"})]})}let ou=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),oc=[],oh=(e,t,i)=>{if(0==e.length-t)return i.classGroupId;let r=e[t],n=i.nextPart.get(r);if(n){let i=oh(e,t+1,n);if(i)return i}let s=i.validators;if(null===s)return;let o=0===t?e.join("-"):e.slice(t).join("-"),a=s.length;for(let e=0;e<a;e++){let t=s[e];if(t.validator(o))return t.classGroupId}},om=(e,t)=>{let i=ou();for(let r in e)op(e[r],i,r,t);return i},op=(e,t,i,r)=>{let n=e.length;for(let s=0;s<n;s++)of(e[s],t,i,r)},of=(e,t,i,r)=>{"string"==typeof e?og(e,t,i):"function"==typeof e?oy(e,t,i,r):ov(e,t,i,r)},og=(e,t,i)=>{(""===e?t:ox(t,e)).classGroupId=i},oy=(e,t,i,r)=>{ob(e)?op(e(r),t,i,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:i,validator:e}))},ov=(e,t,i,r)=>{let n=Object.entries(e),s=n.length;for(let e=0;e<s;e++){let[s,o]=n[e];op(o,ox(t,s),i,r)}},ox=(e,t)=>{let i=e,r=t.split("-"),n=r.length;for(let e=0;e<n;e++){let t=r[e],n=i.nextPart.get(t);n||(n=ou(),i.nextPart.set(t,n)),i=n}return i},ob=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,ow=[],ok=(e,t,i,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),oj=/\s+/,oS=e=>{let t;if("string"==typeof e)return e;let i="";for(let r=0;r<e.length;r++)e[r]&&(t=oS(e[r]))&&(i&&(i+=" "),i+=t);return i},oP=[],oT=e=>{let t=t=>t[e]||oP;return t.isThemeGetter=!0,t},oC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oN=/^\d+\/\d+$/,oE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oz=e=>oN.test(e),oL=e=>!!e&&!Number.isNaN(Number(e)),oO=e=>!!e&&Number.isInteger(Number(e)),oI=e=>e.endsWith("%")&&oL(e.slice(0,-1)),oF=e=>oE.test(e),oB=()=>!0,o$=e=>oA.test(e)&&!oV.test(e),o_=()=>!1,oU=e=>oR.test(e),oW=e=>oD.test(e),oH=e=>!oY(e)&&!oQ(e),oq=e=>o9(e,ae,o_),oY=e=>oC.test(e),oX=e=>o9(e,at,o$),oG=e=>o9(e,ai,oL),oK=e=>o9(e,o8,o_),oZ=e=>o9(e,o7,oW),oJ=e=>o9(e,an,oU),oQ=e=>oM.test(e),o0=e=>o6(e,at),o1=e=>o6(e,ar),o2=e=>o6(e,o8),o5=e=>o6(e,ae),o3=e=>o6(e,o7),o4=e=>o6(e,an,!0),o9=(e,t,i)=>{let r=oC.exec(e);return!!r&&(r[1]?t(r[1]):i(r[2]))},o6=(e,t,i=!1)=>{let r=oM.exec(e);return!!r&&(r[1]?t(r[1]):i)},o8=e=>"position"===e||"percentage"===e,o7=e=>"image"===e||"url"===e,ae=e=>"length"===e||"size"===e||"bg-size"===e,at=e=>
11"length"===e,ai=e=>"number"===e,ar=e=>"family-name"===e,an=e=>"shadow"===e,as=((e,...t)=>{let i,r,n,s,o=e=>{let t=r(e);if(t)return t;let s=((e,t)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s}=t,o=[],a=e.trim().split(oj),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:d,modifiers:u,hasImportantModifier:c,baseClassName:h,maybePostfixModifierPosition:m}=i(t);if(d){l=t+(l.length>0?" "+l:l);continue}let p=!!m,f=r(p?h.substring(0,m):h);if(!f){if(!p||!(f=r(h))){l=t+(l.length>0?" "+l:l);continue}p=!1}let g=0===u.length?"":1===u.length?u[0]:s(u).join(":"),y=c?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let x=n(f,p);for(let e=0;e<x.length;++e){let t=x[e];o.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,i);return n(e,s),s};return s=a=>{var l;let d;return r=(i={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=Object.create(null),r=Object.create(null),n=(n,s)=>{i[n]=s,++t>e&&(t=0,r=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=r[e])?(n(e,t),t):void 0},set(e,t){e in i?i[e]=t:n(e,t)}}})((l=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:i}=e,r=e=>{let t,i=[],r=0,n=0,s=0,o=e.length;for(let a=0;a<o;a++){let o=e[a];if(0===r&&0===n){if(":"===o){i.push(e.slice(s,a)),s=a+1;continue}if("/"===o){t=a;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let a=0===i.length?e:e.slice(s),l=a,d=!1;return a.endsWith("!")?(l=a.slice(0,-1),d=!0):a.startsWith("!")&&(l=a.slice(1),d=!0),ok(i,d,l,t&&t>s?t-s:void 0)};if(t){let e=t+":",i=r;r=t=>t.startsWith(e)?i(t.slice(e.length)):ok(ow,!1,t,void 0,!0)}if(i){let e=r;r=t=>i({className:t,parseClassName:e})}return r})(l),sortModifiers:(d=new Map,l.orderSensitiveModifiers.forEach((e,t)=>{d.set(e,1e6+t)}),e=>{let t=[],i=[];for(let r=0;r<e.length;r++){let n=e[r],s="["===n[0],o=d.has(n);s||o?(i.length>0&&(i.sort(),t.push(...i),i=[]),t.push(n)):i.push(n)}return i.length>0&&(i.sort(),t.push(...i)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:i}=e;return om(i,t)})(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var i;let t,r,n;return -1===(i=e).slice(1,-1).indexOf(":")?void 0:(r=(t=i.slice(1,-1)).indexOf(":"),(n=t.slice(0,r))?"arbitrary.."+n:void 0)}let r=e.split("-"),n=+(""===r[0]&&r.length>1);return oh(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],n=i[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let i=0;i<t.length;i++)e[n.length+i]=t[i];return e}return t}return n||oc}return i[e]||oc}}})(l)}).cache.get,n=i.cache.set,s=o,o(a)},(...e)=>s(((...e)=>{let t,i,r=0,n="";for(;r<e.length;)(t=e[r++])&&(i=oS(t))&&(n&&(n+=" "),n+=i);return n})(...e))})(()=>{let e=oT("color"),t=oT("font"),i=oT("text"),r=oT("font-weight"),n=oT("tracking"),s=oT("leading"),o=oT("breakpoint"),a=oT("container"),l=oT("spacing"),d=oT("radius"),u=oT("shadow"),c=oT("inset-shadow"),h=oT("text-shadow"),m=oT("drop-shadow"),p=oT("blur"),f=oT("perspective"),g=oT("aspect"),y=oT("ease"),v=oT("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...b(),oQ,oY],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[oQ,oY,l],P=()=>[oz,"full","auto",...S()],T=()=>[oO,"none","subgrid",oQ,oY],C=()=>["auto",{span:["full",oO,oQ,oY]},oO,oQ,oY],M=()=>[oO,"auto",oQ,oY],N=()=>["auto","min","max","fr",oQ,oY],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...S()],R=()=>[oz,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],D=()=>[e,oQ,oY],z=()=>[...b(),o2,oK,{position:[oQ,oY]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",o5,oq,{size:[oQ,oY]}],I=()=>[oI,o0,oX],F=()=>
vendor: 6,661 bytes, line 11
11["","none","full",d,oQ,oY],B=()=>["",oL,o0,oX],$=()=>["solid","dashed","dotted","double"],_=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[oL,oI,o2,oK],W=()=>["","none",p,oQ,oY],H=()=>["none",oL,oQ,oY],q=()=>["none",oL,oQ,oY],Y=()=>[oL,oQ,oY],X=()=>[oz,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oF],breakpoint:[oF],color:[oB],container:[oF],"drop-shadow":[oF],ease:["in","out","in-out"],font:[oH],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oF],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oF],shadow:[oF],spacing:["px",oL],text:[oF],"text-shadow":[oF],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oz,oY,oQ,g]}],container:["container"],columns:[{columns:[oL,oY,oQ,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[oO,"auto",oQ,oY]}],basis:[{basis:[oz,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[oL,oz,"auto","initial","none",oY]}],grow:[{grow:["",oL,oQ,oY]}],shrink:[{shrink:["",oL,oQ,oY]}],order:[{order:[oO,"first","last","none",oQ,oY]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],w:[{w:[a,"screen",...R()]}],"min-w":[{"min-w":[a,"screen","none",...R()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",i,o0,oX]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,oQ,oG]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oI,oY]}],"font-family":[{font:[o1,oY,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,oQ,oY]}],"line-clamp":[{"line-clamp":[oL,"none",oQ,oG]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",oQ,oY]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oQ,oY]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[oL,"from-font","auto",oQ,oX]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[oL,"auto",oQ,oY]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oQ,oY]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oQ,oY]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oO,oQ,oY],radial:["",oQ,oY],conic:[oO,oQ,oY]},o3,oZ]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:I()}
11],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}
vendor: 7,575 bytes, line 11
11],"divide-color":[{divide:D()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[oL,oQ,oY]}],"outline-w":[{outline:["",oL,o0,oX]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,o4,oJ]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",c,o4,oJ]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[oL,oX]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",h,o4,oJ]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[oL,oQ,oY]}],"mix-blend":[{"mix-blend":[..._(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[oL]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[oQ,oY]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[oL]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oQ,oY]}],filter:[{filter:["","none",oQ,oY]}],blur:[{blur:W()}],brightness:[{brightness:[oL,oQ,oY]}],contrast:[{contrast:[oL,oQ,oY]}],"drop-shadow":[{"drop-shadow":["","none",m,o4,oJ]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",oL,oQ,oY]}],"hue-rotate":[{"hue-rotate":[oL,oQ,oY]}],invert:[{invert:["",oL,oQ,oY]}],saturate:[{saturate:[oL,oQ,oY]}],sepia:[{sepia:["",oL,oQ,oY]}],"backdrop-filter":[{"backdrop-filter":["","none",oQ,oY]}],"backdrop-blur":[{"backdrop-blur":W()}],"backdrop-brightness":[{"backdrop-brightness":[oL,oQ,oY]}],"backdrop-contrast":[{"backdrop-contrast":[oL,oQ,oY]}],"backdrop-grayscale":[{"backdrop-grayscale":["",oL,oQ,oY]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[oL,oQ,oY]}],"backdrop-invert":[{"backdrop-invert":["",oL,oQ,oY]}],"backdrop-opacity":[{"backdrop-opacity":[oL,oQ,oY]}],"backdrop-saturate":[{"backdrop-saturate":[oL,oQ,oY]}],"backdrop-sepia":[{"backdrop-sepia":["",oL,oQ,oY]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oQ,oY]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[oL,"initial",oQ,oY]}],ease:[{ease:["linear","initial",y,oQ,oY]}],delay:[{delay:[oL,oQ,oY]}],animate:[{animate:["none",v,oQ,oY]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,oQ,oY]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[oQ,oY,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oQ,oY]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oQ,oY]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[oL,o0,oX,oG]}],stroke:[{stroke:["none",...D()]}
11],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ao({className:e,...t}){return(0,a.jsx)("div",{className:function(...e){return as(function(){for(var e,t,i=0,r="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=function e(t){var i,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(i=0;i<s;i++)t[i]&&(r=e(t[i]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}(e))&&(r&&(r+=" "),r+=t);return r}(e))}("animate-pulse rounded-md bg-muted",e),...t})}function aa({count:e=12}){return(0,a.jsx)("div",{className:"columns-1 sm:columns-2 lg:columns-3 xl:columns-4 gap-4 space-y-4",children:Array.from({length:e}).map((e,t)=>{let i;return(0,a.jsxs)("div",{className:"break-inside-avoid mb-4",children:[(0,a.jsx)(ao,{className:"w-full rounded-xl",style:{height:(i=[200,250,300,350,280,320],`${i[Math.floor(Math.random()*i.length)]}px`)}}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2 px-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(ao,{className:"w-6 h-6 rounded-full"}),(0,a.jsx)(ao,{className:"w-20 h-3"})]}),(0,a.jsx)(ao,{className:"w-12 h-3"})]})]},t)})})}let al="image-search-collections",ad=sV("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),au=sV("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),ac=sV("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
11]]);function ah({isOpen:e,onClose:t,collections:i,onRemove:r,onSelect:n,onCreateCollection:s,onDeleteCollection:o,onMoveItem:d}){let[u,c]=(0,l.useState)(i[0]?.name||"Oblíbené"),[h,m]=(0,l.useState)(!1),[p,f]=(0,l.useState)(""),[g,y]=(0,l.useState)(null),v=i.find(e=>e.name===u),x=i.flatMap(e=>e.items),b=()=>{let e=p.trim();e&&(s(e),c(e),f(""),m(!1))};return(0,a.jsx)(sG,{children:e&&(0,a.jsxs)(sC.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-50 flex justify-end",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:t}),(0,a.jsxs)(sC.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:30,stiffness:300},className:"relative w-full max-w-md bg-background border-l border-border shadow-2xl flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border shrink-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)("div",{className:"w-9 h-9 rounded-xl bg-primary/10 flex items-center justify-center",children:(0,a.jsx)(sO,{className:"w-4.5 h-4.5 text-primary fill-primary"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Moje kolekce"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[x.length," uloženo"]})]})]}),(0,a.jsx)("button",{onClick:t,className:"w-8 h-8 rounded-lg hover:bg-muted flex items-center justify-center transition-colors","aria-label":"Zavřít kolekce",children:(0,a.jsx)(sB,{className:"w-4 h-4"})})]}),(0,a.jsxs)("div",{className:"px-5 pt-4 pb-2 shrink-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[i.map(e=>(0,a.jsxs)("button",{onClick:()=>c(e.name),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${u===e.name?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground hover:text-foreground hover:bg-muted/80"}`,children:[(0,a.jsx)(au,{className:"w-3 h-3"}),e.name,(0,a.jsxs)("span",{className:"opacity-60",children:["(",e.items.length,")"]})]},e.name)),(0,a.jsxs)("button",{onClick:()=>m(!0),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg text-xs font-medium border border-dashed border-border text-muted-foreground hover:text-foreground hover:border-muted-foreground/40 transition-all",children:[(0,a.jsx)(ac,{className:"w-3 h-3"}),"Nová"]})]}),h&&(0,a.jsxs)(sC.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-3 flex gap-2",children:[(0,a.jsx)("input",{type:"text",autoFocus:!0,value:p,onChange:e=>f(e.target.value),onKeyDown:e=>{"Enter"===e.key&&b(),"Escape"===e.key&&(m(!1),f(""))},placeholder:"Název kolekce...",className:"flex-1 px-3 py-2 text-sm bg-muted rounded-lg border border-border focus:outline-none focus:ring-1 focus:ring-primary/30"}),(0,a.jsx)("button",{onClick:b,disabled:!p.trim(),className:"px-3 py-2 bg-primary text-primary-foreground rounded-lg text-sm font-medium disabled:opacity-40 transition-colors",children:"Přidat"})]})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:v&&0!==v.items.length?(0,a.jsx)("div",{className:"space-y-3",children:v.items.map(e=>(0,a.jsxs)(sC.div,{layout:!0,initial:{opacity:0,x:20},animate:{opacity:+(g!==e.photo.id),x:g===e.photo.id?-30:0,scale:g===e.ph
11oto.id?.9:1},transition:{duration:.25},className:"group flex items-center gap-3 p-2.5 rounded-xl border border-border hover:border-primary/30 hover:bg-muted/40 transition-all cursor-pointer",onClick:()=>n(e.photo),children:[(0,a.jsx)("div",{className:"relative w-16 h-16 rounded-lg overflow-hidden shrink-0 bg-muted",children:(0,a.jsx)(s0.default,{src:e.photo.src.small,alt:e.photo.alt||"Uložený obrázek",fill:!0,className:"object-cover",sizes:"64px"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-foreground truncate",children:e.photo.alt||"Bez názvu"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground truncate",children:["od ",e.photo.photographer]}),(0,a.jsx)("p",{className:"text-[10px] text-muted-foreground/60 mt-0.5",children:function(e){try{return new Date(e).toLocaleDateString("cs-CZ",{month:"short",day:"numeric",year:"numeric"})}catch{return""}}(e.savedAt)})]}),(0,a.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,a.jsx)("button",{onClick:t=>{var i;t.stopPropagation(),y(i=e.photo.id),setTimeout(()=>{r(i),y(null)},250)},className:"w-8 h-8 rounded-lg hover:bg-red-50 text-muted-foreground hover:text-red-500 flex items-center justify-center transition-colors","aria-label":"Odstranit z kolekce",children:(0,a.jsx)(ad,{className:"w-3.5 h-3.5"})})})]},e.photo.id))}):(0,a.jsxs)(sC.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,a.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-muted flex items-center justify-center mb-4",children:(0,a.jsx)(sD,{className:"w-7 h-7 text-muted-foreground/50"})}),(0,a.jsxs)("p",{className:"text-sm font-medium text-foreground mb-1",children:[v?.name||"Tato kolekce"," je prázdná"]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground max-w-[220px]",children:"Klikněte na ikonu záložky u jakéhokoli obrázku a uložte si jej sem."})]})}),v&&v.items.length>0&&(0,a.jsx)("div",{className:"px-5 py-3 border-t border-border shrink-0",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground text-center",children:[v.items.length," ",1===v.items.length?"obrázek v":v.items.length>=2&&v.items.length<=4?"obrázky v":"obrázků v"," ",(0,a.jsx)("span",{className:"font-medium text-foreground",children:v.name})]})})]})]})})}let am=sV("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),ap=sV("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function af({currentPage:e,totalPages:t,totalItems:i,perPage:r,onPageChange:n}){if(t<=1)return null;let s=Math.min(e*r,i),o=(()=>{let i=[];if(t<=7){for(let e=1;e<=t;e++)i.push(e);return i}i.push(1);let r=Math.max(2,e-1),n=Math.min(t-1,e+1);r>2&&i.push("...");for(let e=r;e<=n;e++)e>1&&e<t&&i.push(e);return n<t-1&&i.push("..."),i.push(t),i})();return(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 mt-8 pt-6 border-t border-border/60",children:[(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Zobrazeno ",(0,a.jsxs)("span",{className:"font-medium text-foreground",children:[(e-1)*r+1,"–",s]})," z ",(0,a.jsx)("span",{className:"font-medium text-foreground",children:i.toLocaleString("cs-CZ")})," výsledků"]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("button",{onClick:()=>n(e-1),disabled:e<=1,className:"inline-flex items-center justify-center w-9 h-9 rounded-lg border border-border hover:bg-muted disabled:opacity-35 disabled:cursor-not-allowed transition-colors","aria-label":"Předchozí stránka",children:(0,a.jsx)(am,{className:"w-4 h-4"})}),(0,a.jsx)("div",{className:"flex items-center gap-1 mx-1",children:o.map((t,i)=>"..."===t?(0,a.jsx)("span",{className:"inline-flex items-center justify-center w-9 h-9 text-muted-foreground text-sm",children:"…"},`ellipsis-${i}`):(0,a.jsx)("button",{onClick:()=>n(t),className:`inline-flex items-center justify-center w-9 h-9 rounded-lg text-sm font-semibold transition-colors ${e===t?"bg-primary text-primary-foreground":"border border-border hover:bg-muted text-foreground"}`,"aria-label":`Str\xe1nka ${t}`,"aria-current":e===t?"page":void 0,children:t},t))}),(0,a.jsx)("button",{onClick:()=>n(e+1),disabled:e>=t,className:"inline-flex items-center justify-center w-9 h-9 rounded-lg border border-border hover:bg-muted disabled:opacity-35 disabled:cursor-not-allowed transition-colors","aria-label":"Další stránka",children:(0,a.jsx)(ap,{className:"w-4 h-4"})})]})]})}let ag={orientation:"all",color:"",licenseType:"all",sortBy:"relevance"};
11e.s(["ImageSearchApp",0,function(){let[e,t]=(0,l.useState)(""),[i,r]=(0,l.useState)(""),[n,s]=(0,l.useState)(ag),[o,d]=(0,l.useState)({photos:[],page:1,total:0,totalPages:0}),[u,c]=(0,l.useState)(!1),[h,m]=(0,l.useState)(null),[p,f]=(0,l.useState)(!1),[g,y]=(0,l.useState)(null),[v,x]=(0,l.useState)(1),[b,w]=(0,l.useState)(!1),k=(0,l.useRef)(null),{collections:j,isSaved:S,savedCount:P,toggleSave:T,removeFromCollection:C,createCollection:M,deleteCollection:N,moveItem:E}=function(){let[e,t]=(0,l.useState)([]),[i,r]=(0,l.useState)(!1);(0,l.useEffect)(()=>{t(function(){try{let e=localStorage.getItem(al);if(!e)return[{name:"Favorites",items:[],createdAt:new Date().toISOString()}];let t=JSON.parse(e);return Array.isArray(t)&&t.length>0?t:[{name:"Favorites",items:[],createdAt:new Date().toISOString()}]}catch{return[{name:"Favorites",items:[],createdAt:new Date().toISOString()}]}}()),r(!0)},[]),(0,l.useEffect)(()=>{i&&function(e){try{localStorage.setItem(al,JSON.stringify(e))}catch{}}(e)},[e,i]);let n=(0,l.useCallback)(t=>e.some(e=>e.items.some(e=>e.photo.id===t)),[e]),s=e.reduce((e,t)=>e+t.items.length,0),o=(0,l.useCallback)((e,i)=>{let r=i||"Favorites";t(t=>{let i=t.map(t=>({...t,items:t.items.filter(t=>t.photo.id!==e.id)}));return i.find(e=>e.name===r)?i.map(t=>t.name===r?{...t,items:[{photo:e,savedAt:new Date().toISOString(),collectionName:r},...t.items]}:t):[...i,{name:r,items:[{photo:e,savedAt:new Date().toISOString(),collectionName:r}],createdAt:new Date().toISOString()}]})},[]),a=(0,l.useCallback)(e=>{t(t=>t.map(t=>({...t,items:t.items.filter(t=>t.photo.id!==e)})))},[]),d=(0,l.useCallback)(e=>{n(e.id)?a(e.id):o(e)},[n,o,a]),u=(0,l.useCallback)(e=>{t(t=>t.some(t=>t.name===e)?t:[...t,{name:e,items:[],createdAt:new Date().toISOString()}])},[]);return{collections:e,isSaved:n,savedCount:s,addToCollection:o,removeFromCollection:a,toggleSave:d,createCollection:u,deleteCollection:(0,l.useCallback)(e=>{t(t=>t.filter(t=>t.name!==e))},[]),moveItem:(0,l.useCallback)((e,i)=>{t(t=>{let r=t.flatMap(e=>e.items).find(t=>t.photo.id===e);return r?t.map(t=>({...t,items:t.items.filter(t=>t.photo.id!==e)})).map(e=>e.name===i?{...e,items:[{...r,collectionName:i,savedAt:new Date().toISOString()},...e.items]}:e):t})},[]),isHydrated:i}}(),A=(0,l.useCallback)(async e=>{c(!0),m(null);try{let t=i||"nature",r=new URLSearchParams;r.set("q",t),r.set("page",String(e)),r.set("per_page","40"),"all"!==n.orientation&&r.set("orientation",n.orientation),n.color&&r.set("color",n.color);let s=await fetch(`/api/pexels?${r.toString()}`);if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(e.error||`Chyba: ${s.status}`)}let o=await s.json(),a=o.photos;if("all"!==n.licenseType){let e=n.licenseType;a=a.filter(t=>{let i=sJ(t);return"free"===e?i.commercialUse&&!i.attributionRequired:"cc0"===e?i.badge.includes("CC0"):"editorial"===e?!i.commercialUse:"creative-commons"===e?i.attributionRequired&&i.commercialUse:!i.commercialUse||i.attributionRequired})}let l=Math.ceil(o.total_results/40);d({photos:a,page:e,total:o.total_results,totalPages:Math.min(l,100)})}catch(e){m(e.message||"Něco se pokazilo.")}finally{c(!1)}},[i,n.orientation,n.color,n.licenseType,n.sortBy]);(0,l.useEffect)(()=>{x(1),A(1)},[A]);let V=(0,l.useCallback)(()=>{y(null)},[]),R=function(e,t){let i=[...e];switch(t){case"newest":return i.sort((e,t)=>t.id-e.id);case"popular":return i.sort((e,t)=>t.width*t.height-e.width*e.height);default:return i}}(o.photos,n.sortBy);return(0,a.jsxs)("div",{className:"min-h-screen",children:[(0,a.jsxs)("div",{className:"relative overflow-hidden bg-gradient-to-b from-amber-50/60 via-background to-background pb-10 pt-12 sm:pt-20 px-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-[0.03] bg-[radial-gradient(circle_at_1px_1px,currentColor_1px,transparent_0)] bg-[size:24px_24px]"}),(0,a.jsxs)("div",{className:"relative max-w-3xl mx-auto text-center",children:[(0,a.jsxs)(sC.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-amber-100 text-amber-700 text-xs font-semibold mb-5 tracking-wide",children:[(0,a.jsx)(sL,{className:"w-3.5 h-3.5"}),"HD STOCK FOTKY"]}),(0,a.jsx)(sC.h1,{initial:{opacity:0,y:15}
11,animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"font-serif text-3xl sm:text-5xl font-bold tracking-tight text-foreground mb-3",style:{fontFamily:"'Playfair Display', Georgia, serif"},children:"Pixelo"}),(0,a.jsx)(sC.p,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"text-muted-foreground text-base sm:text-lg max-w-lg mx-auto leading-relaxed",children:"Prohlížejte tisíce krásných, volně dostupných fotek od talentovaných tvůrců z celého světa."}),(0,a.jsx)(sC.form,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},onSubmit:t=>{t.preventDefault(),e.trim()&&(r(e.trim()),x(1))},className:"mt-8 max-w-xl mx-auto",children:(0,a.jsxs)("div",{className:`relative flex items-center bg-background border rounded-2xl shadow-sm transition-all duration-200 ${p?"border-primary ring-2 ring-primary/10 shadow-md":"border-border hover:border-muted-foreground/25"}`,children:[(0,a.jsx)(sR,{className:"absolute left-4 w-5 h-5 text-muted-foreground pointer-events-none"}),(0,a.jsx)("input",{ref:k,type:"text",value:e,onChange:e=>t(e.target.value),onFocus:()=>f(!0),onBlur:()=>f(!1),placeholder:"Hledejte fotky, např. 'horní západ slunce'...",className:"flex-1 pl-12 pr-4 py-3.5 bg-transparent text-foreground placeholder:text-muted-foreground/60 focus:outline-none rounded-2xl text-sm sm:text-base","aria-label":"Hledat fotky"}),P>0&&(0,a.jsxs)("button",{type:"button",onClick:()=>w(!0),className:"mr-2 flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-amber-100 text-amber-700 text-xs font-semibold hover:bg-amber-200 transition-colors",children:[(0,a.jsx)(sO,{className:"w-3 h-3 fill-current"}),P," uloženo"]}),e&&(0,a.jsxs)("button",{type:"button",onClick:()=>{t(""),r(""),k.current?.focus()},className:"mr-3 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Vymazat vyhledávání",children:[(0,a.jsx)("span",{className:"sr-only",children:"Vymazat"}),(0,a.jsx)("span",{className:"text-lg leading-none",children:"×"})]}),(0,a.jsx)("button",{type:"submit",disabled:!e.trim()||u,className:"mr-1.5 px-5 py-2.5 bg-primary text-primary-foreground rounded-xl text-sm font-semibold hover:bg-primary/90 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:"Hledat"})]})})]})]}),(0,a.jsx)("div",{className:"sticky top-0 z-30 bg-background/80 backdrop-blur-xl border-b border-border/60 px-4 py-3",children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,a.jsx)(sQ,{filters:n,onFilterChange:e=>{s(e),x(1)}})})}),(0,a.jsxs)("main",{className:"max-w-7xl mx-auto px-4 py-6 sm:py-8",children:[i&&!u&&!h&&(0,a.jsxs)(sC.p,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:"text-sm text-muted-foreground mb-5",children:[o.total.toLocaleString("cs-CZ")," výsledků pro ",(0,a.jsxs)("span",{className:"font-semibold text-foreground",children:['"',i,'"']}),"all"!==n.orientation&&` \xb7 ${"landscape"===n.orientation?"krajina":"portrait"===n.orientation?"portrét":"čtverec"}`,n.color&&` \xb7 ${n.color}`]}),h&&(0,a.jsxs)(sC.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,a.jsx)(sz,{className:"w-12 h-12 text-red-400 mb-3"}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-1",children:"Jejda, něco se pokazilo"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm mb-4",children:h}),(0,a.jsx)("button",{onClick:()=>{x(1),A(1)},className:"px-5 py-2.5 rounded-xl bg-primary text-primary-foreground text-sm font-semibold hover:bg-primary/90 transition-colors",children:"Zkusit znovu"})]}),!h&&R.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s9,{photos:R,onSelect:e=>y(e),isSaved:e=>S(e),onToggleSave:T}),o.totalPages>1&&(0,a.jsx)(af,{currentPage:v,totalPages:o.totalPages,totalItems:o.total,perPage:40,onPageChange:e=>{e===v||e<1||e>o.totalPages||(x(e),A(e),window.scrollTo({top:0,behavior:"smooth"}))}})]}),!u&&!h&&i&&0===R.length&&(0,a.jsxs)(sC.div,{initial:{opacity:0}
11,animate:{opacity:1},className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,a.jsx)(sD,{className:"w-12 h-12 text-muted-foreground/40 mb-3"}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-1",children:"Žádné obrázky nenalezeny"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm",children:"Zkuste upravit vyhledávací dotaz nebo filtry, abyste našli to, co hledáte."})]}),u&&0===R.length&&(0,a.jsx)(aa,{})]}),(0,a.jsx)(oa,{photo:g,isOpen:!!g,onClose:V,isSaved:!!g&&S(g.id),onToggleSave:()=>g&&T(g)}),(0,a.jsx)(ah,{isOpen:b,onClose:()=>w(!1),collections:j,onRemove:C,onSelect:e=>{y(e),w(!1)},onCreateCollection:M,onDeleteCollection:N,onMoveItem:E}),(0,a.jsx)("footer",{className:"border-t border-border/60 bg-muted/30 py-10 px-4",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsx)("p",{className:"text-lg font-serif font-semibold text-foreground mb-1",style:{fontFamily:"'Playfair Display', Georgia, serif"},children:"Pixelo"}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Vyhledávač stock fotografií"})]}),(0,a.jsxs)("div",{className:"border-t border-border/40 pt-6",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground uppercase tracking-wider mb-3 font-semibold text-center",children:"Autoři"}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center gap-x-8 gap-y-2 text-sm text-foreground",children:[(0,a.jsx)("span",{className:"hover:text-primary transition-colors cursor-default",children:"Ondřej Papež"}),(0,a.jsx)("span",{className:"hover:text-primary transition-colors cursor-default",children:"Petr Ježek"}),(0,a.jsx)("span",{className:"hover:text-primary transition-colors cursor-default",children:"Michal Starý"})]})]})]})})]})}],8507)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.